* device/lib/pic16/libio/i2c/i2cnack.c (i2c_nack): fixed ACKDT bit
[fw/sdcc] / ChangeLog
1 2006-09-20 Raphael Neider <rneider AT web.de>
2
3         * device/lib/pic16/libio/i2c/i2cnack.c (i2c_nack): fixed ACKDT bit
4
5 2006-09-19 Maarten Brock <sourceforge.brock AT dse.nl>
6
7         * as/link/aslink.h: cosmetic changes
8         * as/link/mcs51/Makefile.in,
9         * as/link/z80/Makefile.in: fixed build on CF where VPATH is used
10
11 2006-09-17 Maarten Brock <sourceforge.brock AT dse.nl>
12
13         * as/link/aslink.h,
14         * as/link/mcs51/aslink.h,
15         * as/link/z80/aslink.h: merged and moved to as/link/
16         * as/link/lkstore.c,
17         * as/link/mcs51/lkstore.c: moved to as/link/
18         * as/link/clean.mk: remove *.o
19         * as/link/mcs51/alloc.h: deleted
20         * as/link/mcs51/lkarea.c: added lnksect prototype
21         * as/link/mcs51/lkdata.c,
22         * as/link/mcs51/lklex.c,
23         * as/link/mcs51/lkmain.c: renamed as_getline to lk_getline
24         * as/link/mcs51/lkmem.c,
25         * as/link/mcs51/lknoice.c: removed include strcmpi.h
26         * as/link/mcs51/lksym.c: include stdlib.h instead of malloc.h or alloc.h
27         * as/link/mcs51/aslink.dsp,
28         * as/link/mcs51/Makefile.aslink,
29         * as/link/mcs51/Makefile.bcc,
30         * as/link/mcs51/Makefile.in: updated for moved files
31         * as/link/z80/lkarea.c,
32         * as/link/z80/lkhead.c,
33         * as/link/z80/lklex.c,
34         * as/link/z80/lklibr.c,
35         * as/link/z80/lklist.c,
36         * as/link/z80/lkmain.c,
37         * as/link/z80/lkrloc.c,
38         * as/link/z80/lksym.c: synced with mcs51
39         * as/link/z80/lkdata.c,
40         * as/link/z80/lkeval.c,
41         * as/link/z80/lkihx.c,
42         * as/link/z80/lks19.c: cosmetic changes
43         * as/link/z80/Makefile.in,
44         * as/link/z80/linkgbz80.dsp,
45         * as/link/z80/linkz80.dsp: updated for moved files
46
47 2006-09-16 Borut Razem <borut.razem AT siol.net>
48
49         * debugger/mcs51/sdcdb.c: partially fixed
50           [ 1203664 ] sdcdb fails to open files w. two "." periods
51         * debugger/mcs51/simi.c, debugger/mcs51/symtab.c,
52           debugger/mcs51/symtab.h: fixed indenting
53         * configure.in, configure: up to date with latest Maarten's changes
54
55 2006-09-15 Maarten Brock <sourceforge.brock AT dse.nl>
56
57         as/link/mcs51
58         as/aslink.dsp,                  as/link/mcs51/aslink.dsp,
59         as/link/mcs51/aslink.h,         as/mcs51/aslink.h,
60         as/link/mcs51/aslink.mak,       as/mcs51/aslink.mak,
61         as/link/mcs51/lkaomf51.c,       as/mcs51/lkaomf51.c,
62         as/link/mcs51/lkarea.c,         as/mcs51/lkarea.c,
63         as/link/mcs51/lkdata.c,         as/mcs51/lkdata.c,
64         as/link/mcs51/lkeval.c,         as/mcs51/lkeval.c,
65         as/link/mcs51/lkhead.c,         as/mcs51/lkhead.c,
66         as/link/mcs51/lkihx.c,          as/mcs51/lkihx.c,
67         as/link/mcs51/lklex.c,          as/mcs51/lklex.c,
68         as/link/mcs51/lklibr.c,         as/mcs51/lklibr.c,
69         as/link/mcs51/lklist.c,         as/mcs51/lklist.c,
70         as/link/mcs51/lkmain.c,         as/mcs51/lkmain.c,
71         as/link/mcs51/lkmem.c,          as/mcs51/lkmem.c,
72         as/link/mcs51/lknoice.c,        as/mcs51/lknoice.c,
73         as/link/mcs51/lkrloc.c,         as/mcs51/lkrloc.c,
74         as/link/mcs51/lks19.c,          as/mcs51/lks19.c,
75         as/link/mcs51/lkstore.c,        as/mcs51/lkstore.c,
76         as/link/mcs51/lksym.c,          as/mcs51/lksym.c,
77         as/link/mcs51/Makefile.aslink,  as/mcs51/Makefile.aslink,
78         as/link/mcs51/alloc.h,
79         as/link/mcs51/clean.mk,
80         as/link/mcs51/conf.mk,
81         as/link/mcs51/Makefile.bcc,
82         as/link/mcs51/Makefile.in,
83         as/link/mcs51/readme.390,
84         as/link/mcs51/strcmpi.c,
85         as/link/mcs51/strcmpi.h,
86         as/mcs51/clean.mk,
87         as/mcs51/Makefile.bcc,
88         as/mcs51/Makefile.in,
89         configure,
90         Makefile.in,
91         sdcc.dsw: moved mcs51 linker to as/link/mcs51
92
93 2006-09-14 Maarten Brock <sourceforge.brock AT dse.nl>
94
95         * as/link,
96         * as/link/Makefile.in,
97         * as/link/z80/linkgbz80.dsp,
98         * as/link/z80/linkz80.dsp,
99         * configure,
100         * link,
101         * link/clean.mk,
102         * link/Makefile.in,
103         * link/README,
104         * link/z80,
105         * link/z80/aslink.h,
106         * link/z80/clean.mk,
107         * link/z80/conf.mk,
108         * link/z80/linkgbz80.dsp,
109         * link/z80/linkz80.dsp,
110         * link/z80/lkarea.c,
111         * link/z80/lkdata.c,
112         * link/z80/lkeval.c,
113         * link/z80/lkgb.c,
114         * link/z80/lkgg.c,
115         * link/z80/lkhead.c,
116         * link/z80/lkihx.c,
117         * link/z80/lklex.c,
118         * link/z80/lklibr.c,
119         * link/z80/lklist.c,
120         * link/z80/lkmain.c,
121         * link/z80/lkrloc.c,
122         * link/z80/lks19.c,
123         * link/z80/lksym.c,
124         * link/z80/Makefile.in,
125         * Makefile.in,
126         * sdcc.dsw: moved link/ to as/link/
127
128 2006-09-11 Maarten Brock <sourceforge.brock AT dse.nl>
129
130         * as/mcs51/i51mch.c (machine): fixed warning
131
132 2006-09-10 Maarten Brock <sourceforge.brock AT dse.nl>
133
134         * as/mcs51/i51mch.c (machine): S_DJNZ fixed bug 1554318
135
136 2006-09-09 Borut Razem <borut.razem AT siol.net>
137
138         * debugger/mcs51/sdcdb.c, debugger/mcs51/simi.c:
139           sdcdb WIN32 native port
140         * src/clean.mk: fixed
141
142 2006-09-08 Borut Razem <borut.razem AT siol.net>
143
144         * doc/sdccman.lyx: SDCDB and ucSim are available on Win32 platforms.
145
146 2006-09-08 Raphael Neider <rneider AT web.de>
147
148         * src/pic16/main.c (_pic16_linkEdit,pic16_linkCmd),
149         * src/pic/main.c(_pic14_do_link, linkCmd): pass "-w" and "-r"
150             to gplink to disable processor mismatch warning and to allow
151             the use of devices with only aliased (shared) memory banks,
152           (_pic16_genAssemblerPreamble): include pXXX.inc on --mplab-comp
153
154 2006-09-07 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
155
156         * doc/sdccman.lyx: Some re-formating plus example on using
157           #pragma preproc_asm +/-
158
159 2006-09-07 Borut Razem <borut.razem AT siol.net>
160
161         * support/scripts/sdcc.nsi: added SDCDB executables in a separate
162           section
163
164 2006-09-06 Borut Razem <borut.razem AT siol.net>
165
166         * support/scripts/sdcc.nsi: fixed Error: unterminated string parsing
167           line at sdcc.nsi:153
168         * sdcc/debugger/mcs51/simi.c: argsToCmdLine() fixes
169
170 2006-09-05 Borut Razem <borut.razem AT siol.net>
171
172         * configure.in, configure: support for winsock2
173         * debugger/mcs51/break.h, debugger/mcs51/cmd.c,
174           debugger/mcs51/cmd.h, debugger/mcs51/sdcdb.c,
175           debugger/mcs51/sdcdb.h, debugger/mcs51/simi.c,
176           debugger/mcs51/simi.h, debugger/mcs51/symtab.c,
177           debugger/mcs51/symtab.h: sdcdb WIN32 native port
178
179 2006-09-05 Maarten Brock <sourceforge.brock AT dse.nl>
180
181         * src/SDCCopt.c (cnvToFcall): fixed bug 1551947 by updating OP_USES
182           and OP_DEFS
183         * support/regression/tests/bug1551947.c: new, added
184         * src/SDCCsymt.h: strings are char* not byte*
185
186 2006-09-05 Raphael Neider <rneider AT web.de>
187
188         * device/lib/pic16/libdev/pic18f4550.c,
189           device/include/pic16/pic18f4550.h: added PORTD/TRISD
190             declarations/definitions from patch #1520949
191
192 2006-09-05 Raphael Neider <rneider AT web.de>
193
194         * src/pic16/gen.c (genPackBits): fix assignment to 8-bit,
195           byte-aligned bitfields, fixes #1539278
196
197 2006-09-05 Raphael Neider <rneider AT web.de>
198
199         * src/pic/gen.c (genReceive): skip unreferenced arguments,
200           fixes #1544120
201
202 2006-09-04 Borut Razem <borut.razem AT siol.net>
203
204         * support/scripts/sdcc.nsi: move ucSim executables to a separate section
205         * support/scripts/sdcc_cygwin_mingw32: don't disable ucsim,
206           -mno-cygwin is a part of the compiler name
207         * support/scripts/sdcc_mingw32: don't disable ucsim
208
209 2006-09-03 Borut Razem <borut.razem AT siol.net>
210
211         * sdcc.spec: corrected for 2.6.0. Thanks to Christer Weinigel.
212         * device/lib/Makefile.in device/lib/clean.mk: small but essential corrections
213
214 2006-09-03 Raphael Neider <rneider AT web.de>
215
216         * src/pic/ralloc.c,
217         * src/pic/pcode.c (InitReuseRegs): allocate registers with pseudo
218           indices >= 0x1000 to disambiguate them from fixed regs __at(addr),
219           fixes #1550049
220
221 2006-09-01 Borut Razem <borut.razem AT siol.net>
222
223         * sim/ucsim/cmd.src/cmdutil.cc: #include <sys/time.h> and <unistd.h>
224           to make ppc-osx happy
225
226 2006-08-31 Borut Razem <borut.razem AT siol.net>
227
228         * sim/ucsim/cmd.src/newcmdposix.cc: #include <assert.h>
229         * sim/ucsim/cmd.src/newcmd.cc: #include <ctype.h>
230         * sim/ucsim/cmd.src/newcmd.cc: #include <ctype.h>
231         * support/regression/ports/ds390/spec.mk,
232           support/regression/ports/mcs51/spec.mk,
233           support/regression/ports/xa51/spec.mk: introduced DEV_NULL variable.
234           To run regression tests in mingw environment:
235           make DEV_NULL=NUL CC=gcc
236
237 2006-08-30 Borut Razem <borut.razem AT siol.net>
238
239         * sim/ucsim/cmd.src/newcmdposix.cc, sim/ucsim/cmd.src/newcmdposixcl.h,
240           sim/ucsim/cmd.src/newcmdwin32.cc, sim/ucsim/cmd.src/newcmdwin32cl.h,
241           sim/ucsim/app.cc, sim/ucsim/appcl.h, sim/ucsim/configure,
242           sim/ucsim/configure.in, sim/ucsim/ddconfig_in.h, sim/ucsim/error.cc,
243           sim/ucsim/errorcl.h, sim/ucsim/option.cc, sim/ucsim/optioncl.h,
244           sim/ucsim/utils.cc, sim/ucsim/utils.h, sim/ucsim/cmd.src/Makefile.in,
245           sim/ucsim/avr.src/avr.cc, sim/ucsim/avr.src/avrcl.h,
246           sim/ucsim/cmd.src/bp.cc, sim/ucsim/cmd.src/bpcl.h,
247           sim/ucsim/cmd.src/cmdconf.cc, sim/ucsim/cmd.src/cmdgui.cc,
248           sim/ucsim/cmd.src/cmdmem.cc, sim/ucsim/cmd.src/cmdset.cc,
249           sim/ucsim/cmd.src/cmdsetcl.h, sim/ucsim/cmd.src/cmdstat.cc,
250           sim/ucsim/cmd.src/cmduc.cc, sim/ucsim/cmd.src/cmduccl.h,
251           sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/cmdutil.h,
252           sim/ucsim/cmd.src/command.cc, sim/ucsim/cmd.src/commandcl.h,
253           sim/ucsim/cmd.src/get.cc, sim/ucsim/cmd.src/getcl.h,
254           sim/ucsim/cmd.src/info.cc, sim/ucsim/cmd.src/newcmd.cc,
255           sim/ucsim/cmd.src/newcmdcl.h, sim/ucsim/cmd.src/set.cc,
256           sim/ucsim/cmd.src/show.cc, sim/ucsim/cmd.src/timer.cc,
257           sim/ucsim/hc08.src/hc08.cc, sim/ucsim/hc08.src/hc08cl.h,
258           sim/ucsim/s51.src/Makefile.in, sim/ucsim/s51.src/interrupt.cc,
259           sim/ucsim/s51.src/interruptcl.h, sim/ucsim/s51.src/pca.cc,
260           sim/ucsim/s51.src/pcacl.h, sim/ucsim/s51.src/port.cc,
261           sim/ucsim/s51.src/portcl.h, sim/ucsim/s51.src/serial.cc,
262           sim/ucsim/s51.src/serialcl.h, sim/ucsim/s51.src/timer0.cc,
263           sim/ucsim/s51.src/timer0cl.h, sim/ucsim/s51.src/timer1.cc,
264           sim/ucsim/s51.src/timer1cl.h, sim/ucsim/s51.src/timer2.cc,
265           sim/ucsim/s51.src/timer2cl.h, sim/ucsim/s51.src/uc390.cc,
266           sim/ucsim/s51.src/uc390cl.h, sim/ucsim/s51.src/uc390hw.cc,
267           sim/ucsim/s51.src/uc390hwcl.h, sim/ucsim/s51.src/uc51.cc,
268           sim/ucsim/s51.src/uc51cl.h, sim/ucsim/s51.src/wdt.cc,
269           sim/ucsim/s51.src/wdtcl.h, sim/ucsim/sim.src/hw.cc,
270           sim/ucsim/sim.src/hwcl.h, sim/ucsim/sim.src/mem.cc,
271           sim/ucsim/sim.src/memcl.h, sim/ucsim/sim.src/obsolete.cc,
272           sim/ucsim/sim.src/obsolete.h, sim/ucsim/sim.src/sim.cc,
273           sim/ucsim/sim.src/simcl.h, sim/ucsim/sim.src/stack.cc,
274           sim/ucsim/sim.src/stackcl.h, sim/ucsim/sim.src/test_mem_speed.cc,
275           sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
276           sim/ucsim/xa.src/xa.cc, sim/ucsim/xa.src/xacl.h,
277           sim/ucsim/z80.src/z80.cc, sim/ucsim/z80.src/z80cl.h:
278           ucsim WIN32 native port
279
280 2006-08-30 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
281
282         * doc/sdccman.lyx: added note on dynamic memory heap initialization
283
284 2006-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
285
286         * src/mcs51/gen.c (genAnd, genOr, genXor): fixed bug 1546986
287         * src/ds390/gen.c (aopGetUsesAcc): handle AOP_DPTR2 and AOP_DPTRn too
288
289 2006-08-26 Maarten Brock <sourceforge.brock AT dse.nl>
290
291         * src/ds390/gen.c (genAnd, genOr, genXor): fixed bug 1546986
292         * support/regression/tests/bug1546986.c: new, added
293         * as/mcs51/.cvsignore,
294         * debugger/mcs51/.cvsignore,
295         * src/.cvsignore: deleted
296
297 2006-08-25 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
298
299         * device/include/mcs51/P89c51RD2.h: fixed bug 1546936 (error in sbit
300           definitions)
301
302 2006-08-20 Borut Razem <borut.razem AT siol.net>
303
304         * sim/ucsim/cmd.src/newcmd.cc, sim/ucsim/cmd.src/newcmdcl.h:
305           removed cl_listen_console::match(), cl_console::match(),
306           restructured cl_commander::proc_input()
307
308 2006-08-16 Borut Razem <borut.razem AT siol.net>
309
310         * sim/ucsim/cmd.src/newcmd.cc, sim/ucsim/cmd.src/newcmdcl.h,
311           sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/cmdutil.h,
312           sim/ucsim/sim.src/mem.cc, sim/ucsim/sim.src/uc.cc: code cleaning
313
314 2006-08-14 Borut Razem <borut.razem AT siol.net>
315
316         * support/regression/Makefile.in,
317           support/regression/ports/pic14/gpsim.cmd,
318           support/regression/ports/pic14/spec.mk,
319           support/regression/ports/pic14/support.c:
320           added pic14 regression test
321
322 2006-08-14 Maarten Brock <sourceforge.brock AT dse.nl>
323
324         * as/doc/asxhtm.html: documented changed ABS behaviour
325         * as/doc/README: fixed some typos
326
327 2006-08-13 Maarten Brock <sourceforge.brock AT dse.nl>
328
329         * support/regression/tests/float_trans.c: disabled test if __STDC_IEC_559__
330           not defined on host
331
332 2006-08-12 Borut Razem <borut.razem AT siol.net>
333
334         * support/regression/fwk/include/testfwk.h,
335           support/regression/fwk/lib/testfwk.c,
336           support/regression/generate-cases.py,
337           support/regression/Makefile.in:
338           regression test framework does not depend on function pointers and
339           variable arguments
340
341 2006-08-09 Maarten Brock <sourceforge.brock AT dse.nl>
342
343         * device/include/stddef.h: c temporary hack to fix bug 1518273
344
345 2006-08-09 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
346
347         * device/include/mcs51/cc2510fx.h: added
348         * src/z80/z80.dsp, src/gbz80/gbz80.dsp: added support/Util/strcmpi.ch
349           to projects.
350
351 2006-08-09 Maarten Brock <sourceforge.brock AT dse.nl>
352
353         * as/z80/assym.c (mlookup): ignore case when looking up mnemonics
354         * as/z80/Makefile.in: added strcmpi.c
355         * as/z80/z80adr.c: added upper case registers and lower case conditionals
356         * support/Util/strcmpi.ch: added with intention to remove from mcs51/hc08
357
358 2006-08-08 Maarten Brock <sourceforge.brock AT dse.nl>
359
360         * device/lib/gbz80/asm_strings.s,
361         * device/lib/gbz80/crt0_rle.s,
362         * device/lib/gbz80/div.s,
363         * device/lib/gbz80/mul.s,
364         * device/lib/gbz80/shift.s,
365         * device/lib/z80/asm_strings.s,
366         * device/lib/z80/crt0_rle.s,
367         * device/lib/z80/div.s,
368         * device/lib/z80/mul.s,
369         * device/lib/z80/shift.s: changed to all lower case menmonics except the
370           flags which are all upper case
371
372 2006-08-07 Maarten Brock <sourceforge.brock AT dse.nl>
373
374         * as/z80/asm.h: made CASE_SENSITIVE 1
375         * link/z80/aslink.h: made CASE_SENSITIVE 1
376         * src/z80/gen.c (throughout): made all conditionals upper case
377         * support/regression/tests/bug1503067.c: new
378
379 2006-08-07 Maarten Brock <sourceforge.brock AT dse.nl>
380
381         * src/z80/gen.c (aopPut): fixed bug !*ixy should be !*iyx,
382           (shiftIntoPair): added case 2 for PAIR_IY,
383           (setupToPreserveCarry): replaced parameters with iCode and check if
384            PAIR_DE is in use to fix bug 1399290,
385           (genPlus, genMinus): updated call to setupToPreserveCarry
386         * support/regression/tests/bug1399290.c: new
387
388 2006-08-06 Maarten Brock <sourceforge.brock AT dse.nl>
389
390         * device/lib/Makefile.in (Z80SOURCES): enabled float support
391         * sim/ucsim/z80.src/inst.cc (inst_rst): generate breakpoint on RST8,ACC==0
392         * src/ds390/gen.c (shiftRLong),
393         * src/hc08/gen.c (shiftLLong, shiftRLong): fixed bug 1533966
394         * src/mcs51/gen.c (sameReg): changed to sameByte,
395           (xch_a_aopGet): new,
396           (shiftL2Left2Result, shiftR2Left2Result, shiftRLeftOrResult, shiftLLong,
397            shiftRLong): fixed bug 1533966
398         * src/z80/gen.c (shiftR2Left2Result, shiftL2Left2Result, genlshTwo,
399           genLeftShiftLiteral, genrshTwo, genRightShiftLiteral): fixed bug 1533966
400         * support/regression/Makefile.in: disabled z80, enabled ucz80
401         * support/regression/tests/float_trans.c: enabled test for z80 and host
402         * support/regression/tests/shifts2.c: new, for testing bug 1533966
403
404 2006-08-01 Borut Razem <borut.razem AT siol.net>
405
406         * src/mcs51/gen.c, src/dc390/gen.c: fixed warning:
407           comparison is always false due to limited range of data type
408           on PPC64 machine (openpower-linux1) where "char = unsigned char"
409
410 2006-08-01 Maarten Brock <sourceforge.brock AT dse.nl>
411
412         * sim/ucsim/hc08.src/hc08mac.h: removed faulty and unused add_u16_disp
413         * sim/ucsim/hc08.src/hc08.cc: removed faulty and unused int8
414         * sim/ucsim/z80.src/z80mac.h (add_u16_disp): use explicit signed char cast
415         * sim/ucsim/z80.src/z80.cc: removed faulty and unused int8
416
417 2006-07-31 Borut Razem <borut.razem AT siol.net>
418
419         * sim/ucsim/configure, sim/ucsim/cmd.src/newcmdcl.h,
420           sim/ucsim/cmd.src/newcmd.cc, sim/ucsim/cmd.src/cmdutil.cc,
421           sim/ucsim/z80.src/Makefile.in, sim/ucsim/configure.in,
422           sim/ucsim/hc08.src/Makefile.in, sim/ucsim/hc08.src/hc08.cc,
423           sim/ucsim/ddconfig_in.h, sim/ucsim/s51.src/Makefile.in,
424           sim/ucsim/s51.src/uc51cl.h, sim/ucsim/s51.src/serialcl.h,
425           sim/ucsim/s51.src/uc51.cc, sim/ucsim/s51.src/serial.cc,
426           sim/ucsim/app.cc, sim/ucsim/avr.src/Makefile.in:
427           enable ucsim mingw compilation. Serial port is disabled,
428           since it uses termios.h API, which is not available on native
429           WIN32
430
431 2006-07-31 Borut Razem <borut.razem AT siol.net>
432
433         * Small Device C Compiler 2.6.0 released
434         * support/scripts/sdcc.nsi: added FULL_DOC option
435         * .version, doc/sdccman.lyx: changed sdcc version to 2.6.1
436
437 2006-07-28 Borut Razem <borut.razem AT siol.net>
438
439         * support/scripts/sdcc.nsi: remove $INSTDIR/include/asm/pic16/*.h
440         * doc/INSTALL.txt: updated
441
442 2006-07-27 Borut Razem <borut.razem AT siol.net>
443
444         * device/lib/pic/Makefile.in, device/lib/pic/Makefile.subdir,
445           device/lib/pic/libdev/Makefile.in: fixed bug
446           [ 1438354 ] pic libsdcc: distclean doesn't work
447         * device/lib/pic16/Makefile.in, device/lib/pic16/Makefile.subdir,
448           device/lib/pic16/libio/Makefile.in: fixed bug
449           [ 1438344 ] pic16 lib: clean doesn't work properly
450         * doc/knownbugs.html removed [ 1438354 ] and [ 1438344 ] from the list
451
452 2006-07-26 Maarten Brock <sourceforge.brock AT dse.nl>
453
454         * device/lib/pic/libsdcc/fsdiv.c,
455         * device/lib/pic/libsdcc/fsmul.c,
456         * device/lib/pic16/libsdcc/float/fsdiv.c,
457         * device/lib/pic16/libsdcc/float/fsmul.c,
458         * device/lib/_fsdiv.c,
459         * device/lib/_fsmul.c: bugfix, handle too large and too small numbers
460         * support/regression/tests/bug1520966.c: added
461         * doc/knownbugs.html: removed [ 1520966 ] from the list
462
463 2006-07-25 Borut Razem <borut.razem AT siol.net>
464
465         * configure.in, configure, sdccconf_in.h: fixed bug
466           [ 1519095 ] regression test onebyte.c fails on ppc64 host
467         * doc/knownbugs.html: removed [ 1519095 ] from the list
468
469 2006-07-25 Maarten Brock <sourceforge.brock AT dse.nl>
470
471         * doc/knownbugs.html: added, contains list of known bugs at release
472         * device/include/mcs51/compiler.h: fixed SFR32 for SDCC
473
474 2006-07-23 Maarten Brock <sourceforge.brock AT dse.nl>
475
476         * device/include/mcs51/compiler.h: added SFRX for xdata based special
477           function registers and corrected defaults with additional warning
478         * device/lib/malloc.c: cosmetic changes
479         * device/lib/realloc.c: bugfix for bug #1496907, Thanks Efim Monyak
480         * src/ds390/ralloc.c (getRegBitNoSpil): reenabled,
481           (fillGaps): and used it
482
483 2006-07-20 Raphael Neider <rneider AT web.de>
484
485         * src/pic/device.c (addMemRange,assignRegister): suppress verbose
486           output unless SDCCPICDEBUG is set
487         * device/lib/pic16/Makefile.rules (%.lib target): suppress verbose
488           output if SILENT is set
489
490 2006-07-11 Borut Razem <borut.razem AT siol.net>
491
492         * doc/README.txt: updated
493
494 2006-07-10 Borut Razem <borut.razem AT siol.net>
495
496         * support/scripts/sdcc.nsi: added device/include/asm/pic/features.h and
497           device/lib/src/pic/libm/*.c and device/lib/src/pic16/libsdcc/stack/*.S
498           in WIN32 installation
499         * .version, sdcc.spec, doc/sdccman.lyx: changed sdcc version to 2.6.0 -
500           release candidate 1
501
502 2006-07-08 Maarten Brock <sourceforge.brock AT dse.nl>
503
504         * device/include/mcs51/XC866.h: added sbit definitions for Px_x, P1_x, P2_x
505         * src/pic16/glue.c (initPointer): fixed bug 1496419 for pic16
506
507 2006-07-06 Maarten Brock <sourceforge.brock AT dse.nl>
508
509         * src/hc08/gen.c (genAddrOf): fixed bug when offset on stack is >127
510
511 2006-07-06 Borut Razem <borut.razem AT siol.net>
512
513         * support/regression/tests/bitfields.c:
514           fixed bug [ 1518322 ] regression test bitfields fails on ppc hosts
515         * support/regression/tests/constantRange.c:
516           fixed bug [ 1518317 ] regression test constantRange fails on alpha host
517
518 2006-07-04 Borut Razem <borut.razem AT siol.net>
519
520         * src/configure.in, src/configure, src/Makefile.in, as/z80/Makefile.in,
521           src/port.mk,
522           src/avr/Makefile.in, src/ds390/Makefile.in, src/ds400/Makefile.in,
523           src/hc08/Makefile.in, src/mcs51/Makefile.in, src/pic16/Makefile.in,
524           src/pic/Makefile.in, src/xa51/Makefile.in, src/z80/Makefile.in:
525           reverted changes from 2006-07-03
526         * Makefile.common.in: added @CPPFLAGS@ to CPPFLAGS
527         * support/regression/Makefile.in, support/regression/ports/host/spec.mk:
528           added CPPFLAGS, used by the host port
529
530 2006-07-03 Bernhard Held <bernhard AT bernhardheld.de>
531
532         * support/regression/valdiag/tests/switch.c,
533         * support/regression/valdiag/tests/constantRange.c: adapted to gcc 4
534         * support/regression/tests/libmullong.c: fixed for host
535         * support/regression/ports/host/spec.mk: disable all warnings for host,
536         SDCC runs with --less-pedantic too
537
538 2006-07-03 Borut Razem <borut.razem AT siol.net>
539
540         * src/configure.in, src/configure, src/Makefile.in, as/z80/Makefile.in:
541           defined CPPFLAGS
542         * src/port.mk: defined CPPFLAGS, renamed to src/port.mk.in
543         * src/avr/Makefile.in, src/ds390/Makefile.in, src/ds400/Makefile.in,
544           src/hc08/Makefile.in, src/mcs51/Makefile.in, src/pic16/Makefile.in,
545           src/pic/Makefile.in, src/xa51/Makefile.in, src/z80/Makefile.in:
546           include ../port.mk
547         * sim/ucsim/main_in.mk, sim/ucsim/avr.src/Makefile.in,
548           sim/ucsim/gui.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
549           sim/ucsim/s52.src/Makefile.in, sim/ucsim/sim.src/Makefile.in,
550           sim/ucsim/xa.src/Makefile.in: ignore header files for dependencies
551
552 2006-07-02 Raphael Neider <rneider AT web.de>
553
554         * src/pic16/devices.inc,
555         * device/include/pic16/pic18fregs.h,
556         * device/include/pic16/pic18f4550.h,
557         * device/lib/pic16/pics.all,
558         * device/lib/pic16/libdev/pic18f4550.c: added support for 18f4550
559
560 2006-07-01 Bernhard Held <bernhard AT bernhardheld.de>
561
562         * as/hc08/lkaomf51.c (OutputName),
563         * as/mcs51/lkaomf51.c (OutputName),
564         * as/z80/asmain.c (asmbl),
565         * src/ds390/main.c (asmLineNodeFromLineNode),
566         * src/hc08/ralloc.c (hc08_assignRegisters),
567         * src/mcs51/main.c (asmLineNodeFromLineNode),
568         * src/xa51/ralloc.c (checkRegMask),
569         * src/xa51/gen.c (emitcode),
570         * src/z80/gen.c (_emit2),
571         * src/SDCCast.c (searchLitOp),
572         * src/SDCCglobl.h,
573         * support/packihx/packihx.c,
574         * support/Util/MySystem.c (split_command): fix gcc 4 warnings
575         * src/ds390/gen.c (aopPutUsesAcc),
576         * src/ds390/ralloc.c (getRegBitNoSpil): unused, therefore disabled
577         * support/regression/tests/libmullong.c (mullong_wrapper),
578         * src/SDCCsymt.c (powof2),
579         * src/SDCCast.c,
580         * src/SDCCicode.c: renamed TYPE_WORD by TYPE_TARGET_INT and so on
581         * src/SDCCsymt.h: added TYPE_TARGET_*
582         * src/SDCCutil.c (doubleFromFixed16x16, fixed16x16FromDouble),
583         * src/SDCCutil.h (doubleFromFixed16x16, fixed16x16FromDouble): moved to
584         SDCCast because 1) header problems 2) this is the right place
585         * src/SDCCast.c (doubleFromFixed16x16, fixed16x16FromDouble): added
586         * src/SDCCval.h (doubleFromFixed16x16, fixed16x16FromDouble): added
587         prototype
588
589 2006-06-29 Bernhard Held <bernhard AT bernhardheld.de>
590
591         * src/SDCCicode.h: removed buggy semicolon in unused macro
592         * src/SDCClrange.c (findPrevUseSym, rlivePoint): fixed bug #1486853,
593         search for previous definiton of auto symbols too,
594         (findPrevUse): fixed logic of emitWarnings
595
596 2006-06-26 Raphael Neider <rneider AT web.de>
597
598         * src/pic16/gen.c (genFunction, genEndFunction): also preserve
599           PCLATH and PCLATU on interrupts, potentially fixes #1505141
600
601 2006-06-25 Raphael Neider <rneider AT web.de>
602
603         * device/lib/pic/libm: NEW, added math library functions
604         * device/lib/pic/libsdcc: NEW; added float support functions
605         * device/lib/pic/{Makefile.in,configure.in,configure}: added libm/
606         * device/include/pic/{limits.h,errno.h,sdcc-lib.h,float.h,math.h}:
607           NEW, added math related headers
608         * device/include/asm/pic/features.h: NEW
609         * src/pic/gen.c (emitpcode_real): emit warning on NULL pCodeOp,
610           (popGet): allow larger offsets for AOP_PCODE,
611           (genDataPointerSet): handle literals explicitly, more debug output,
612           (genAssign): fixed for float using aopLiteral ;-)
613         * src/pic/glue.c (pic14createInterruptVect): inserted pagesel before
614           GOTO initialisation routine
615         * src/pic/pcoderegs.c (pCodeRegMapLiveRangesInFlow): set wasUsed
616           flag on registers, fixes #1469043 (local variables do not work)
617         * src/pic/main.c (_pic14_do_link),
618         * src/pic16/main.c (_pic16_linkEdit): use fullDstFileName if
619           available
620
621 2006-06-25 Borut Razem <borut.razem AT siol.net>
622
623         * device/lib/pic16/libc/stdio/sprintf.c: return the number of
624           characters printed (not including the trailing '\0' used to end
625           output to strings). Problem detected in regression test bug-927659.c.
626           NOTE: printf() family functions should return int instead
627           unsigned int!
628         * device/lib/pic16/libc/stdio/vfprintf.c: "%%" prints "%", unknown
629           specifier are printed as themselves
630         * sdcc/support/regression/tests/bug1057979.c: pic16 printf doesn't
631           support flags, width and precision specifiers
632
633 2006-06-24 Borut Razem <borut.razem AT siol.net>
634
635         * sdcc/support/regression/tests/bitvars.c: added gbz80, pic16 and pic16
636           to the list of sdcc tagrets not supporting bit type
637         * sdcc/support/regression/tests/bug-905992.c.c: excluded regression
638           testfor pic16 due to bug:
639           [ 1511794 ] pic16: regression test bug-895992.c fails
640
641 2006-06-24 Maarten Brock <sourceforge.brock AT dse.nl>
642
643         * src/mcs51/gen.c (genCmp): optimization for RFE 1162453
644         * src/SDCCglue.c (initPointer), fixed bug 1496419
645         * support/regression/tests/bug1496419.c: new, added
646
647 2006-06-22 Borut Razem <borut.razem AT siol.net>
648
649         * support/regression/ports/pic16/support.c: use gpsim usart module from
650           libgpsim_modules library
651
652 2006-06-21 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
653
654         * device/include/mcs51/at89c51ed2.h: Fixed bug 1510144 changed
655         IP0H to IPH0.
656
657 2006-06-19 Raphael Neider <rneider AT web.de>
658
659         * src/pic/glue.h,src/pic16/glue.h: added prototypes
660         * src/pic/glue.c,src/pic16/glue.c (pic1x_stringInSet,
661           pic1x_emitSymbolIfNew): NEW, check for a string in a set,
662           (pic14printExterns,pic14printPublics,pic16printPublics,
663           pic16_printExterns): use new functions to emit symbols
664           (picglue,pic16glue): emit publics before emitting externs
665         * src/pic/gen.c,src/pic16/gen.c (genFunction): remember the names of
666           locally defined functions to avoid bug #1443651
667         * support/regression/tests/bug-716242.c: removed pic16 workaround
668         * support/regression/ports/pic16/spec.mk: ignore errors during build
669
670 2006-06-19 Raphael Neider <rneider AT web.de>
671
672         * src/pic/glue.h: added pic14aopLiteral prototype
673         * src/pic/glue.c (pic14aopLiteral): return unsigned int
674         * src/pic/gen.c: removed stdint.h dependency
675           (aopGet): use Safe_strdup()
676           (bitpatternFromVal): removed, replaced use with pic14aopLiteral
677           (genDataPointerSet): use pic14aopLiteral()
678         * src/pic16/glue.h, src/pic16/glue.c, src/pic16/gen.c: similar changes
679           for pic16; thanks to Bernhard and Maarten
680
681 2006-06-18 Borut Razem <borut.razem AT siol.net>
682
683         * support/regression/tests/structflexarray.c: flexible array members
684           not supported by gcc < 3
685         * sim/ucsim/configure, sim/ucsim/configure.in: do not compile serio
686           GUI tool by default
687         * src/pic/gen.c: don't include [p]strdin.h on solaris
688         * support/Util/pstdint.h: addad svn attributes
689         * support/regression/tests/constantRange.c,
690           support/regression/tests/rotate.c: include inttypes.h instead
691           stdint.h on solaris, addad svn attributes
692
693 2006-06-18 Raphael Neider <rneider AT web.de>
694
695         * src/SDCCsymt.c (initCSupport): change return type of divschar to
696           int for PIC16
697         * src/pic16/genarith.c (genAddLit): sign-extend via standard routine
698           (pic16_genMinusBits): simplified sign-extension
699           (pic16_genUMult8XLit_8,pic16_genUMult8X8_8): renamed to
700             pic16_genMult8XLit_n resp. pic16_genMult8X8_n, fixed and
701             adjusted to correctly handle mixed-signed operands, disabled
702             now unused multiplciation routines
703         * src/pic16/gen.c (pic16_pushpCodeOp): fixed to handle literals
704           (assignResultValue): added argument denoting the size of the result
705             as returned by the function (fixes upcasts in assigning from
706             function calls: char foo(); int i = foo();)
707           (genCall,genPcall,genGenPointerGet,genReceive): pass size of
708             function result to assignResultValue
709           (genMult): disabled inlined multiplication code
710           (genDiv): augmented to also handle the modulus operator, fixed to
711             handle mixed-signed operands correctly
712           (genMod): simply call genDiv, disabled unused code
713           (genAssign): fixed missing (sign-)extension on result
714         * src/pic16/main.c (_hasNativeMulFor): accept literals [-128..256) as
715             valid char operands, allow signed operands for native code, added
716             division and modulo operator handling
717         * device/lib/pic16/libsdcc/char/divschar.c: divschar returns an int
718
719         As a consequence, onebyte.c (if split into two files) and muldiv.c
720         pass regression tests.
721
722 2006-06-17 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
723
724         * doc/Makefile.in: two runs of makeindex seem needed to get
725         correct page references in the index of sdccman.pdf
726         * doc/sdccman.lyx: mentioned cmon51, added links, small changes
727
728 2006-06-17 Borut Razem <borut.razem AT siol.net>
729
730         * sdcc/device/lib/Makefile.in: corrected PORTINCDIR path
731
732 2006-06-17 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
733
734         * doc/sdccman.lyx: updated, added (porting source code, debugging),
735         mentioned ec2drv and paulmon
736
737 2006-06-16 Maarten Brock <sourceforge.brock AT dse.nl>
738
739         * as/mcs51/lkarea.c (lnkarea2): clear new xdatamap, bugfix for two
740           consecutive abs areas
741           (find_empty_space, allocate_space): added map to handle codemap or
742            xdatamap,
743           (lnksect2): renamed rloc to locIndex, fixed bug 960060 by handling
744            absolute idata and xdata
745         * as/mcs51/lkmem.c (summary2): updated legend
746
747 2006-06-16 Raphael Neider <rneider AT web.de>
748
749         * src/pic16/gen.c (shiftR2Left2Result): fixed bug #1507127
750
751 2006-06-13 Maarten Brock <sourceforge.brock AT dse.nl>
752
753         * debugger/mcs51/cmd.c (cmdListFunctions): fixed bugs 1181163 and
754           1208515
755         * src/SDCClrange.c (findPrevUse): fixed bug 1294475
756
757 2006-06-13 Vangelis Rokas <vrokas AT users.sourceforge.net>
758
759         * src/port.h (struct PORT): added field gp_tags, to hold the tag
760         value of generic pointers,
761         * src/avr/main.c,
762           src/ds390/main.c,
763           src/hc08/main.c,
764           src/izt/i186.c,
765           src/izt/tlcs900h.c,
766           src/mcs51/main.c,
767           src/pic/main.c,
768           src/pic16/main.c,
769           src/xa51/main.c,
770           src/z80/main.c: PORT structure, added elements for gp_tags field,
771         * src/SDCCsymt.h: replaced hardwired values of GPTYPE_* macros with
772         fields in the PORT structure of each port,
773         * src/SDCCast.c (decorateType): allow processing of generic pointers
774         for PIC16 port (FPTRSIZE equals GPTRSIZE), also set GPTYPE_NEAR for
775         S_FIXED symbols
776
777 2006-06-12 Maarten Brock <sourceforge.brock AT dse.nl>
778
779         * link/z80/lkgb.c,
780         * link/z80/lkgg.c,
781         * src/pic16/gen.c,
782         * src/pic16/main.c,
783         * src/pic16/pcode.c,
784         * src/pic/main.c,
785         * src/pic/pcoderegs.c,
786         * src/SDCCicode.c,
787         * src/SDCCmain.c,
788         * src/SDCCsymt.c: replaced all exit(-1) by exit(EXIT_FAILURE) to fix
789           bug 1504689 on minGW
790
791 2006-06-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
792
793         * device/lib/printf_tiny.c: fixed bug #1465675 (%x format specifier)
794
795 2006-06-12 Bernhard Held <bernhard AT bernhardheld.de>
796
797         * src/SDCCast.c (backPatchLabels): fixed bug #1504636
798
799 2006-06-11 Maarten Brock <sourceforge.brock AT dse.nl>
800
801         * device/lib/printf_large.c (OUTPUT_CHAR, _output_char): added and used
802           for optimization
803
804 2006-06-11 Vangelis Rokas <vrokas AT users.sourceforge.net>
805
806         * src/pic16/gen.c (genCast): fixed bug with assignment of a pointer
807         to a char variable. Fixed bug #1504211
808         * device/include/pic16/adc.h,
809         device/include/lib/pic16/libio/adc/adcopen.c: applied patch #1364387
810         and fixed bug #1364390
811
812 2006-06-10 Borut Razem <borut.razem AT siol.net>
813
814         * CVSROOT: removed the CVS left-over
815
816 2006-06-10 Maarten Brock <sourceforge.brock AT dse.nl>
817
818         * as/hc08/asmain.c (asexit),
819         * as/hc08/lkmain.c (lkexit),
820         * as/mcs51/asmain.c (asexit),
821         * as/mcs51/lkmain.c (lkexit),
822         * src/SDCCglue.c (DEFSETFUNC),
823         * src/SDCCmain.c (linkEdit, assemble),
824         * support/librarian/sdcclib.c (AddRel),
825           replaced unlink() by standard C remove()
826         * src/SDCC.y: replaced removePostIncDecOps() by createRMW()
827         * src/SDCCast.c (replaceAstWithTemporary, createRMW,
828           gatherImplicitVariables): new, added to fix bug 608752,
829           (createFunction): added gatherImplicitVariables()
830         * src/SDCCast.h: added createRMW prototype
831         * src/SDCCsymt.h (struct symbol): added infertype
832         * support/regression/tests/bug608752.c: new, added
833
834 2006-06-10 Raphael Neider <rneider AT web.de>
835
836         * src/pic16/gen.c (pic16_aopOp): use WREG as destination even for
837           multibyte dummy reads (fixes #1503234)
838
839 2006-06-10 Maarten Brock <sourceforge.brock AT dse.nl>
840
841         * device/include/mcs51/compiler.h: new, added header file to enable
842           creating common sfr definition header files for different compilers
843
844 2006-06-05 Raphael Neider <rneider AT web.de>
845
846         * src/pic16/{pcode.h,genarith.c}:
847           introduced pCodeOp combining any two pCodeOps (previously only
848           two register operands could be combined), removed pcop2 from
849           pCodepReg, replaced pCodeOpReg2 with pCodeOp2, fixes #1492366
850         * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): added case for PO_TWO_OPS
851         * src/pic16/gen.c (pic16_popGet2,pic16_popGet2p,pic16_popCombine2):
852           rewritten to use new PO_TWO_OPS
853         * src/pic16/main.c (_hasNativeMulFor): cover more cases natively,
854         * src/pic16/pcode.c (pic16_newpCodeOpImmd): initialize rIdx field,
855           (pic16_newpCodeOp): catch invalid attempts on PO_TWO_OPS,
856           (pic16_newpCodeOp2): NEW, create combined pCodeOp,
857           (pic16_get_op): embraced return arg to allow #define return(x),
858             added new case for combined opcodes
859           (pic16_get_op2): reduced to use pic16_get_op() on second pCodeOp,
860           (pic16_pCode2str,pic16_getRegFrompCodeOp,
861            pic16_getRegFromInstruction2): fixed/added handling of new pCodeOp
862
863 2006-06-04 Bernhard Held <bernhard AT bernhardheld.de>
864
865         * src/SDCCval.c (checkConstantRange): added
866         * src/SDCCval.h: added checkConstantRange
867         * support/Util/SDCCerr.c,
868         * support/Util/SDCCerr.h: replaced unused W_IF_NEVER_TRUE and
869         W_IF_ALWAYS_TRUE by W_COMP_RANGE and W_LIT_OVERFLOW
870         * src/SDCC.y: moved early 'condition transformations' to SDCCast.c
871         * src/SDCCast.c (decorateType): added checkConstantRange,
872         added 'condition transformations' from SDCC.y so that now W_COMP_RANGE
873         can be emitted with the correct always true/false warning,
874         added optimization for double '!';
875         result of decorateType() must be assigned back to the tree, because
876         decorateType() can change the tree
877         * src/SDCCicode.c (geniCodeLogic),
878         (geniCodeAssign): replaced new checkConstantRange, added warnings,
879         (checkConstantRange): removed, it was only a fragment which never
880         emitted a warning
881         * src/SDCCsymt.c (computeType): fixed promotion for
882         "-1 < (unsigned bit) b"
883         * src/pic/ralloc.c (packRegsForAssign),
884         * src/pic16/ralloc.c (packRegsForAssign),
885         * src/hc08/ralloc.c (packRegsForAssign),
886         * src/z80/ralloc.c (packRegsForAssign): ported fix for bug #930931
887         from mcs51
888         * src/mcs51/ralloc.c (packRegsForAssign): removed outcommented source
889         * support/regression/tests/constantRange.c: added
890         * support/valdiag/tests/constantRange.c: added
891         * support/valdiag/valdiag.py: added -DPORT_HOST=1
892
893 2006-06-02 Borut Razem <borut.razem AT siol.net>
894
895         * support/regression/ports/pic16/support.c: increase stack size
896           to 255 bytes
897         * support/regression/Makefile.in: sort tests by name so that the
898           resutlts can be compared on different machines / platforms
899
900 2006-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
901
902         * device/lib/printf_large.c (output_digit): optimized further, Tnx Frieder
903         * src/ds390/gen.c (emitLabel): new, added,
904           (genDjnz): fixed stack overflow bug,
905           (throughout): cosmetic changes to sync with mcs51/gen.c,
906           replaced emitcode("", "%05d$:", lbl->key + 100) with emitLabel(lbl)
907         * src/mcs51/gen.c (genEndFunction): small optimization,
908           (throughout): cosmetic changes to sync with ds390/gen.c
909
910 2006-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
911
912         * device/lib/printf_large.c (output_digit, calculate_digit): optimized,
913           (_print_format): fixed printing pointers
914         * src/mcs51/gen.c (emitLabel, movb): new, added,
915           (genAssign): small optimization,
916           (genDjnz): fixed stack overflow bug,
917           (throughout): replaced sprintf with SNPRINTF,
918           replaced mcs51_regWithIdx with REG_WITH_INDEX,
919           replaced emitcode("mov", "b,...") with MOVB(...),
920           replaced emitcode("", "%05d$:", lbl->key + 100) with emitLabel(lbl),
921           replaced D(emitcode("; genXXX", "")) with D(emitcode(";", "genXXX"))
922         * src/mcs51/peeph.def: added rules 140 and 264
923         * src/SDCCmem.c (allocLocal): store register declared locals in DSEG/OSEG
924           so they may get optimized into registers
925
926 2006-05-30 Maarten Brock <sourceforge.brock AT dse.nl>
927
928         * src/SDCCmain.c (optionsTable, parseCmdLine): handle --use-stdout
929           immediately when encountered,
930           (printUsage): always use stderr even on windows
931
932 2006-05-30 Bernhard Held <bernhard AT bernhardheld.de>
933
934         * src/SDCCast.c (isLoopCountable): fixed bug #1478316
935         (processParms): fixed bug #1247551
936         * src/SDCCmain.c (printVersionInfo, printOptions, printUsage,
937         parseCmdLine, main): print '--version' to stdout,
938         print 'help' to stdout if --help is given,
939         print 'help' to stderr and exit with EXIT_FAILURE if no or bad
940         arguments are given; fixed --help
941
942 2006-05-27 Bernhard Held <bernhard AT bernhardheld.de>
943
944         * src/SDCCcse.c (findPointerSet): fixed bug #1493710
945         * support/regression/tests/bug-1493710.c: added
946
947 2006-05-27 Borut Razem <borut.razem AT siol.net>
948
949         * support/regression/fwk/lib/testfwk.c: define array in _printn() as
950           static instead auto
951         * support/regression/ports/pic16/support.c: increase stack size
952           from default 64 bytes to 128 bytes
953         * support/regression/tests/staticinit.c,
954           support/regression/tests/float.c: regression tests fully enabled
955           for pic16 port by putting the initialized data arrays into the code
956           section
957         * support/regression/ports/pic16/spec.mk: don't link default libraries.
958           This was changed by mistake in the previous version.
959
960 2006-05-28 Vangelis Rokas <vrokas AT users.sourceforge.net>
961
962         * src/pic16/gen.c (genFunction, genEndFunction): some
963         beautifications, fixed bug with falsely restoring FSR2 in large
964         stack model, thanks to Beau E. Cox for reporting the bug
965
966 2006-05-26 Maarten Brock <sourceforge.brock AT dse.nl>
967
968         * debugger/mcs51/break.c,
969         * debugger/mcs51/cmd.c (throughout): removed unused variables and labels,
970           use %p to print pointers, made address variables unsigned
971         * debugger/mcs51/cmd.c (infoSymbols): added missing parameter to printf
972         * debugger/mcs51/symtab.c (parseSymbol): must return something
973         * src/mcs51/gen.c (aopForSym): small optimization,
974            moved declarations mcs51_ptrRegReq and mcs51_nRegs to ralloc.h,
975           (freeAsmop): added missing break,
976           (aopPut): removed parameter bvolatile, determine it inside the function,
977           (saveRegisters, unsaveRegisters): small optimization,
978           (genIpush): removed pointless check,
979           (throughout): replaced Safe_calloc, strcpy with Safe_strdup,
980           replaced sprintf with SNPRINTF,
981           replaced strcpy with strncpyz,
982           updated aopPut calls,
983           replaced D(emitcode("; genXXX", "")) with D(emitcode(";", "genXXX"))
984         * src/mcs51/ralloc.h:  added declarations mcs51_ptrRegReq and mcs51_nRegs
985
986 2006-05-24 Borut Razem <borut.razem AT siol.net>
987
988         * support/regression/tests/bug-221100.c: fixed xdata problem caused by
989           modification of test for the pic16 port, put the array to the code
990           memory for pic16port; thanks to Maarten Brock and Frieder Ferlemann
991
992 2006-05-23 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
993
994         * src/pic/gen.c: MSC 6 does not have <stdint.h>.  Use pstdint.h instead.
995         * support/Util/pstdint.h: added
996
997 2006-05-22 Borut Razem <borut.razem AT siol.net>
998
999         * src/regression/Makefile: removed bool2.c test, added -q linker option
1000         * src/regression/add2.c, src/regression/add3.c, src/regression/bool1.c,
1001           src/regression/bool3.c, src/regression/nestfor.c, src/regression/ptrfunc.c,
1002           src/regression/compare.c, src/regression/or1.c, src/regression/compare2.c,
1003           src/regression/while.c, src/regression/compare3.c, src/regression/compare4.c,
1004           src/regression/compare5.c, src/regression/sub2.c, src/regression/rotate1.c,
1005           src/regression/rotate2.c, src/regression/rotate3.c, src/regression/rotate4.c,
1006           src/regression/switch1.c, src/regression/rotate5.c, src/regression/for.c,
1007           src/regression/add.c, src/regression/sub.c, src/regression/call1.c:
1008           define SUPPORT_BIT_TYPES 0, removed unused bit variables
1009
1010 2006-05-22 Raphael Neider <rneider AT web.de>
1011
1012         * src/pic16/gen.c (pic16_storeForReturn): fragile fix for
1013           bug #1492360 (problematic due to generic pointers, see code)
1014
1015 2006-05-22 Borut Razem <borut.razem AT siol.net>
1016
1017         * support/regression/ports/pic16/specs.mk: removed stack size linker
1018           directive
1019         * support/regression/tests/array.c,
1020           support/regression/tests/bitopcse.c,
1021           support/regression/tests/bug-908454.c,
1022           support/regression/tests/malloc.c: modified for pic16 regression test
1023         * support/regression/tests/bitfields.c:
1024           pic16 - excluded bitfileds of size > 8
1025         * support/regression/tests/bp.c: pic16 - reduced data size
1026         * support/regression/tests/bug-221100.c: pic16 - reduced data size
1027         * support/regression/tests/bug-460010.c:
1028           pic16 - used the absolute address the fits in memory
1029         * support/regression/tests/bug-716242.c:
1030           bug [ 1443651 ] pic 16: redefining symbol that cannot be redefined.
1031         * support/regression/tests/float.c:
1032           pic16 - excluded - data size too big
1033         * support/regression/tests/onebyte.c:
1034           pic16 - bug [ 1444425 ] onebyte.c regression tes fails on pic16
1035         * support/regression/tests/shifts.c:
1036           pic16 - function names probably have to differ in first X characters
1037           (gpasm limitation?)
1038         * support/regression/tests/staticinit.c:
1039           pic16 - excluded some tests due error: no target memory available for
1040           section ".idata"
1041
1042 2006-05-22 Borut Razem <borut.razem AT siol.net>
1043
1044         * support/Util/dbuf.c: fixed bug #1489008 fix dbuf_c_str(),
1045           second try. Thanks Stas Sergeev once more.
1046
1047 2006-05-21 Maarten Brock <sourceforge.brock AT dse.nl>
1048
1049         * src/hc08/gen.c (transferAopAop): aop forced to stack was not restored,
1050           (genLeftShift, genRightShift): fixed bug 1491627
1051         * src/hc08/peeph.def (rules 7, 8.x): added
1052         * support/regression/tests/shifts.c (ShiftLeftByParam,
1053           ShiftRightByParam, testShiftByParam): added to test variable shifting
1054
1055 2006-05-20 Raphael Neider <rneider AT web.de>
1056
1057         * src/pic/gen.c (bitpatternFromVal): fixed for 64-bit machines
1058         * src/pic16/ralloc.c (newReg): use correct name in hashtable,
1059           (allocReg): add only new registers to dynAllocRegs,
1060           (pic16_assignRegisters): do not reset dynrIdx, fixes bugs
1061             #1489055, #1445850, and probably #1483693
1062
1063 2006-05-19 Vangelis Rokas <vrokas AT users.sourceforge.net>
1064
1065         * src/pic16/glue.c (pic16_emitConfigRegs, pic16_emitIDRegs): fixed
1066         bug in for-loop that didn't emit the last of CONFIG and ID registers
1067
1068 2006-05-18 Maarten Brock <sourceforge.brock AT dse.nl>
1069
1070         * src/mcs51/gen.c (genCodePointerGet): inc dptr instead of loading acc
1071           with offset
1072         * src/mcs51/peeph.def (186.x): updated and reenabled to fix bugs
1073           1489016, 1434401 and 1490124
1074         * src/ds390/peeph.def (186.x, 227.x): updated and reenabled to fix bugs
1075           1489016, 1434401 and 1490124
1076
1077 2006-05-17 Borut Razem <borut.razem AT siol.net>
1078
1079         * support/Util/dbuf.c: fixed bug #1489008 fix dbuf_c_str(),
1080           thanks Stas Sergeev
1081
1082 2006-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
1083
1084         * device/include/mcs51/P89c51RD2.h,
1085         * device/include/mcs51/P89LPC901.h,
1086         * device/include/mcs51/P89LPC922.h,
1087         * device/include/mcs51/P89LPC932.h: added, thanks Omar Espinosa
1088
1089 2006-05-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
1090
1091         * device/lib/pic16/libsdcc/stack/{stack.S, Makefile.in}: add workaround
1092         to fix missing stack pragma in compiled binary object file,
1093
1094 2006-05-14 Bernhard Held <bernhard AT bernhardheld.de>
1095
1096         * support/packihx/configure.in,
1097         * support/packihx/configure: removed warning, autoconf >= 2.5x can
1098         determine sizeof basic types even while cross compiling
1099
1100 2006-05-13 Bernhard Held <bernhard AT bernhardheld.de>
1101
1102         * src/avr/gen.c (aopop),
1103         * src/ds390/gen.c (aopOp),
1104         * src/hc08/gen.c (aopOp),
1105         * src/mcs51/gen.c (aopop),
1106         * src/pic16/gen.c (pic16_aopOp),
1107         * src/pic/gen.c (aopOp),
1108         * src/z80/gen.c (aopop): fix for bug #1479882; use new, exclusive asmop
1109         if size of operand is smaller than spill location
1110
1111 2006-05-12 Borut Razem <borut.razem AT siol.net>
1112
1113         * *.dsw, *.dsp: changed property svn:eol-style to CRLF since they
1114           have to have CR/LF line endings even if they are checked out on *nix
1115           or on WIN32 in cygwin binmode
1116
1117 2006-05-12 Maarten Brock <sourceforge.brock AT dse.nl>
1118
1119         * doc/sdccman.lyx: documented numeric ranges, WEBDOC #1442369
1120         * device/include/ds80c390.h: added sfr16 definitions
1121         * src/ds390/gen.c,
1122         * src/ds390/gen.h,
1123         * src/ds390/main.c,
1124         * src/ds390/ralloc.c,
1125         * src/ds390/ralloc.h: changes all over the place to sync with mcs51
1126           fixing several bugs and adding sfr16/sfr32, reentrant bit params,
1127           bit returning functions
1128         * support/regression/tests/sfr16.c: enabled test on ds390
1129
1130 2006-05-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1131
1132         * src/hc08/gen.c (asmopToBool, genIfx): fix for bug #1429722
1133         * src/hc08/gen.c (storeRegToAop): fix for bug #1439894
1134
1135 2006-05-11 Maarten Brock <sourceforge.brock AT dse.nl>
1136
1137         * sim/ucsim/sim.src/memcl.h: added get_decoder() to cl_address_space
1138         * sim/ucsim/sim.src/mem.cc: implemented cl_address_space::get_decoder,
1139           (cl_address_space constructor): removed expensive initialization,
1140           (cl_address_space::get_cell): extended for late initialization,
1141           (cl_address_space::*): use late initialization,
1142           (cl_address_decoder::activate): removed expensive initialization,
1143           This reduced regression test running time by 25%
1144
1145 2006-05-11 Bernhard Held <bernhard AT bernhardheld.de>
1146
1147         * packihx/,
1148         * configure.in,
1149         * configure,
1150         * sdcc.dsw,
1151         * Makefile.bcc,
1152         * Makefile.in,
1153         * support/packihx/Makefile.in,
1154         * support/packihx/clean.mk,
1155         * support/packihx/Makefile.bcc,
1156         * support/packihx/PackIhx.dsp: moved packihx to support/packihx
1157
1158 2006-05-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1159
1160         * src/SDCCval.c (valNot): fix for regression test failure
1161           of not.c on big endian hosts
1162
1163 2006-05-10 Maarten Brock <sourceforge.brock AT dse.nl>
1164
1165         * device/inlcude/mcs51/msc1210.h: new, added, thanks Philippe Latu
1166
1167 2006-05-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1168
1169         * device/lib/mcs51/Makefile.in: changed string comparison operator
1170           to = for POSIX compliance; == is bash extension
1171
1172 2006-05-10 Maarten Brock <sourceforge.brock AT dse.nl>
1173
1174         * device/lib/hc08/_mulint.c: applied patch 1485428, thanks
1175           kosmonaut_pirx
1176
1177 2006-05-09 Vangelis Rokas <vrokas AT users.sourceforge.net>
1178
1179         * src/pic16/gen.c (pic16_freeAsmop): release any temp registers
1180         allocated by aopForSym thus fixing bug #1478657 about failed testfwk.c
1181         * src/pic16/main.c (_pic16_keywords): added 'sfr16' keyword,
1182         * src/pic16/ralloc.c (pic16_allocWithIdx): also a fix for bug exposed by
1183         bug report #1478657,
1184
1185 2006-05-05 Borut Razem <borut.razem AT siol.net>
1186
1187         * doc/Makefile.in: remove of WARNINGS and labels.pl immediately after
1188           making the html
1189
1190 2006-05-02 Borut Razem <borut.razem AT siol.net>
1191
1192         * doc/Makefile.in: removed *.ind dependency since there is no rule to
1193           create *.ind, which made make to fail if invoked with -j 2
1194
1195 2006-05-01 Maarten Brock <sourceforge.brock AT dse.nl>
1196
1197         * src/SDCCglue.c (emitRegularMap): partial fix for bug 1477149, thanks
1198           Hubert Sack for patch 1479782
1199
1200 2006-05-01 Vangelis Rokas <vrokas AT users.sourceforge.net>
1201
1202         * src/pic16/glue.c (pic16_printIvalStruct): fixed bug #1445929
1203
1204 2006-05-01 Raphael Neider <rneider AT web.de>
1205
1206         * src/pic/device.c (sanitise_processor_name): only remove p(ic) prefix,
1207           (create_pic): store only prefix-free device name,
1208           (init_pic): check for device names with "16" prefix,
1209           (list_valid_pics),
1210         * src/pic/device.h (struct PIC_device),
1211         * src/pic/main.c (_pic14_genAssemblerPreamble): adapted to single
1212             stored device name,
1213         * device/include/pic/pic12f{635,675,629,683}.h,
1214         * device/lib/pic/libdev/pic12f{635,675,629,683}.c: NEW device libraries
1215         * device/lib/pic/libdev/Makefile.in: allow pic12* devices,
1216         * device/include/pic/pic16f505.h,
1217         * device/lib/pic/libdev/pic16f505.c: removed
1218         * device/include/pic/pic14devices.txt: added support for pic12f
1219             devices, removed unsupported non 16-bit devices
1220             [above changes provided by patch from Zik Saleeba]
1221         * src/pic/*, src/pic16/*, device/include/pic16/*,
1222           device/lib/pic/**, device/lib/pic16/**: obfuscated email address
1223
1224 2006-05-01 Borut Razem <borut.razem AT siol.net>
1225
1226         * configure.in, configure, doc/Makefile.in:
1227           sync with nightly build makefile - latex, dvipdf and dvips
1228           not needed any more
1229
1230 2006-04-30 Bernhard Held <bernhard AT bernhardheld.de>
1231
1232         * support/scripts/sdcc.nsi: removed all Readmes and Makefiles
1233         in the library source
1234
1235 2006-04-30 Maarten Brock <sourceforge.brock AT dse.nl>
1236
1237         * support/regression/ports/hc08/spec.mk: fixed bug 1478892
1238
1239 2006-04-28 Raphael Neider <rneider AT web.de>
1240
1241         * src/pic16/pcode.c (pic16_newpCodeOpLit12),
1242         * src/pic16/gen.c (pic16_popGetLit12): NEW, create 12 bit literal,
1243           (pic16_loadFSR0): handle 12 bit literals correctly, fixes #1440527
1244         * src/pic16/pcode.h: added prototype for pic16_newpCodeOpLit12()
1245
1246 2006-04-28 Bernhard Held <bernhard AT bernhardheld.de>
1247
1248         * device/lib/pic/libdev/Makefile.in,
1249         * device/lib/hc08/Makefile.in,
1250         * device/lib/gbz80/Makefile.in,
1251         * device/lib/z80/Makefile.in,
1252         * device/lib/ds390/Makefile.in,
1253         * device/lib/ds400/Makefile.in: added srcdir to include search path,
1254         thanks to Borut for the bug report
1255         * configure.in,
1256         * configure: always create doc/Makefile independent from --enable-doc
1257         * Makefile.in: always install from directory doc independent from
1258         --enable-doc
1259         * device/lib/pic/Makefile.in: added libdev again, it was erroneously
1260         removed
1261         * device/lib/pic/libdev/Makefile.in: fixed VPATH build
1262         * doc/Makefile.in: install *.txt if present
1263         * device/include/Makefile.in (install): added installation of pic/*.inc
1264         and pic/*.txt files again, they were erroneously removed
1265
1266 2006-04-28 Raphael Neider <rneider AT web.de>
1267
1268         * src/pic/{gen.c,main.h,pcode.c},
1269         * src/pic16/{gen.c,pcode.c}: quietened compiler warnings
1270             concerning signedness with casts
1271
1272 2006-04-28 Raphael Neider <rneider AT web.de>
1273
1274         * src/pic/gen.c (genFunction): set global pic14_hasInterrupt on
1275             definition of an interrupt handler,
1276         * src/pic/glue.c (pic14_emitInterruptHandler): moved output of
1277             interrupt handler stuff from picglue() to separate routine,
1278           (picglue): enabled definition of intr handlers in files w/o main()
1279
1280 2006-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
1281
1282         * support/librarian/sdcclib.c: moved include <limits.h> up to enable
1283           compilation with MSVC 2005 Express Edition (VC8)
1284
1285 2006-04-26 Bernhard Held <bernhard AT bernhardheld.de>
1286
1287         * device/lib/Makefile: fixed build of gbz80 lib
1288
1289 2006-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
1290
1291         * support/regression/tests/bug-460010.c,
1292         * support/regression/tests/bug-524691.c,
1293         * support/regression/tests/bug-716242.c: removed conditional defines
1294           that are already in testfwk.h
1295
1296 2006-04-25 Maarten Brock <sourceforge.brock AT dse.nl>
1297
1298         * src/ds390/gen.c (AccAXRrl1, AccAXLrl1): changed to real rotate by 1,
1299           (AccAXRsh1): added, shift right by 1,
1300           (AccAXLsh, AccAXRsh, AccAXRshS): updated for AccAXRrl1, AccAXRsh1 and
1301            AccAXLrl1
1302         * support/regression/tests/rotate.c: use <stdint.h> and enabled ds390
1303
1304 2006-04-25 Bernhard Held <bernhard AT bernhardheld.de>
1305
1306         * src/SDCCast.c (decorateType): partial fix for RFE 1475769,
1307         remove cast to same type
1308         * src/SDCCast.c (decorateType): fix for RFE 1475742,
1309         optimize 'ifx (op == 0)' resp. 'ifx (op != 0)'
1310         * as/z80/Makefile,
1311         * link/z80/Makefile: removed, they have moved to
1312         Makefile.in files
1313         * configure,
1314         * configure.in: replaced duplicate message about ucsim by missing sdcpp
1315         * install-sh: fix bug #1204398 by setting umask 0022
1316         * device/lib/Makefile: separate build of z80 and gbz80 lib
1317
1318 2006-04-24 Bernhard Held <bernhard AT bernhardheld.de>
1319
1320         Enabled VPATH feature: changed nearly all Makefiles (149 files).
1321         See sdccman.lyx '2.4.10 VPATH feature' about how to use it.
1322
1323         One basic decision: e.g. src/clean.mk includes further files. In order
1324         to make this work there are two solutions:
1325         - rename another dozen clean.mk to clean_in.mk, add srcdir to them and
1326           run configure on them. This way they can use
1327           'include $(srcdir)/port-clean.mk'
1328         - always include clean.mk by the Makefile at the same level. To avoid
1329           that `make clean` tries to include and build Makefile.dep the
1330           MAKECMDGOALS are examined (see e.g. src/Makefile.in). This has been
1331           implemented, because now even `make uninstall` doesn't create
1332           Makefile.in. clean.mk could be eliminated by pasting it in
1333           Makefile.in.
1334
1335         * debugger/mcs51/Makefile.in: build own objects from library sources
1336         (SLIB, SDCC) in current directory
1337
1338         * configure, configure.in: renamed --disable-device-lib-build in
1339         --disable-device-lib; added --enable-doc, the required tools are
1340         searched by configure; added result message; the toolchain for the
1341         belonging ports are now only built, if the port is enabled.
1342
1343         * support/regression/*: all output is written in directory gen, because
1344         the fwk and ports directories don't livet in the build tree using vpath
1345
1346         * doc/sdccman.lyx: renamed --disable-device-lib-build to
1347         --disable-device-lib, added --enable-doc, added section VPATH
1348
1349         * sim/ucsim/configure.in,
1350         * sim/ucsim/configure.in: hc08 couldn't be disabled, now hc08 and
1351         z80 are enabled by default
1352
1353 2006-04-24 Raphael Neider <rneider AT web.de>
1354
1355         * src/pic/device.c (pic14_assignConfigWordValue): remember assignments
1356             to config word, "pic14_"-prefixed some extern functions
1357           (pic14_emitConfigWord): emit __config directive(s) if assignment to
1358             config word has been found
1359         * src/pic/device.h: added prototypes
1360         * src/pic/pcode.c: added "pic14_"-prefix where needed
1361         * src/pic/ralloc.c (IS_CONFIG_ADDRESS,pic14_assignRegisters): cosmetic
1362             fixup
1363         * src/pic/glue.c (pic14_constructAbsMap): handle assignments to config
1364             words,
1365           (pic14emitRegularMap): ignore config words,
1366           (pic14createInterruptVect): moved generating __config directives away
1367           (picglue): have __config directives emitted
1368
1369 2006-04-24 Borut Razem <borut.razem AT siol.net>
1370
1371         * doc/Makefile: sync with nightly build makefile
1372
1373 2006-04-24 Raphael Neider <rneider AT web.de>
1374
1375         * src/pic/pcoderegs.c (OptimizeRegUsage): do not optimize
1376             registers that have not been assigned proper liveranges,
1377             fixes #1469504 and #1474602,
1378           (pCodeRegOptimizeRegUsage): fixed typo in comment
1379
1380 2006-04-24 Borut Razem <borut.razem AT siol.net>
1381
1382         * device/examples/main8051.c: deleted - it was removed from CVS
1383           24.mar.2000 and after that modified 18.feb.2001, so it reappered
1384           after the transition to Subversion
1385         * src/SDCCalloc.h: deleted - it was removed  from CVS
1386           3.feb.2001 and after that modified 18.feb.2001, so it reappered
1387           after the transition to Subversion
1388         * sim/ucsim/cpu.gif, sim/ucsim/interrupt.gif, sim/ucsim/new.gif,
1389           sim/ucsim/serial1.gif, sim/ucsim/serial2.gif,
1390           sim/ucsim/term_cpuopt.gif, sim/ucsim/timers.gif, sim/ucsim/wins.gif,
1391           sim/ucsim/post.jpg, sim/ucsim/UCsim.jpg: corrected
1392
1393 2006-04-22 Maarten Brock <sourceforge.brock AT dse.nl>
1394
1395         * as/asx8051.dsp: added mcs51/strcmpi.h
1396         * as/hc08/as_hc08.dsp: added asm.h, m6808.h, strcmpi.h
1397         * as/hc08/aslink.h: updated lnksect prototype
1398         * as/hc08/asm.h,
1399         * as/mcs51/asm.h: added a_addr to struct area and s_org to struct sym
1400         * as/hc08/asmain.c,
1401         * as/mcs51/asmain.c (asmbl): init dot.s_org for S_ORG,
1402           (newdot): handle A_ABS
1403         * as/hc08/asout.c,
1404         * as/mcs51/asout.c (outarea): output address
1405         * as/hc08/lkaomf51.c,
1406         * as/mcs51/lkaomf51.c: disabled unused array UsageType
1407         * as/hc08/m08pst.c,
1408         * as/mcs51/i51pst.c,
1409         * as/z80/z80pst.c: "ABS" is not A_OVR
1410         * as/hc08/lkarea.c (newarea): read a_addr,
1411           (lnkarea): added codemap array, sort absolute areas to the front,
1412            combine all GSINITx/GSFINAL,
1413           (find_empty_space, allocate_space): new functions,
1414           (lnksect): return next address, handle absolute sections
1415         * as/mcs51/lkarea.c (newarea): read a_addr,
1416           lnksect2 prototype changed,
1417           (lnkarea2): define codemap unsigned, combine all GSINITx/GSFINAL,
1418           (find_empty_space, allocate_space): new, factored out of lnksect2,
1419           (lnksect2): return next address, handle absolute sections
1420         * as/hc08/lkhead.c,
1421         * as/mcs51/lkhead.c (newhead): head is absolute but not overlay
1422         * as/hc08/lklibr.c (addfile, fndsym),
1423         * as/mcs51/lklibr.c (addfile, buildlibraryindex, fndsym): prevent
1424           index out of range and detect both '\' and '/'
1425         * device/include/mcs51/c8051f200.h: added _XPAGE, removed bad comment
1426         * device/include/stdbool.h: removed SDCC_ds390 from check to pass
1427           regression tests (ds390 cannot return bool yet)
1428         * doc/sdccman.lyx: changed version number, document changed --no-peep,
1429           document critical interrupts on z80, document changed SDCC define
1430         * src/asm.c (_asxxxx_mapping): fixed .org directive,
1431           (_a390_mapping): added .org directive
1432         * src/hc08/gen.c (transferAopAop): made bytemask log to fix warning,
1433           (genMultOneByte): fixed warnings
1434         * src/hc08/hc08.dsp: lowered warning level to 2 to suppress pedantic
1435           ones
1436         * src/pic16/device.c: removed newReg prototype, removed BYTE_IN_LONG
1437         * src/pic16/gen.c (pic16_popGetLabel): made parameter key signed,
1438           (pic16_genLeftShiftLiteral, genRightShiftLiteral): fixed warnings
1439         * src/pic16/gen.h: changed prototype for pic16_popGetLabel
1440         * src/pic16/main.c: removed newReg prototype
1441         * src/pic16/pcode.c,
1442         * src/pic16/pcode.h (pic16_emitDB): changed parameter c to int to fix
1443           warnings
1444         * src/pic16/pic16.dsp: lowered warning level to 2 to suppress pedantic
1445           ones
1446         * src/pic16/ralloc.c
1447         * src/pic16/ralloc.h (newReg): changed type to int and size to unsigned
1448           to fix warnings
1449         * src/pic/pcode.c (allocInternalRegister): changed parameter optype
1450           from short to PIC_OPTYPE
1451         * src/pic/pic.dsp: lowered warning level to 2 to suppress pedantic ones
1452         * src/pic/ralloc.c (newReg, allocInternalRegister): changed parameter
1453           optype from short to PIC_OPTYPE
1454         * src/port.h: made int_size unsigned to fix warnings
1455         * src/SDCC.y: fixed warning on MSVC
1456         * src/SDCCicode.c (getArraySizePtr): return unsigned int
1457         * src/SDCCopt.c (convertToFcall): fixed warnings
1458         * src/SDCCsymt.h: removed double prototype for genSymName
1459         * src/xa51/ralloc.c (allocReg): made size unsigned int, type int and
1460           offset int to fix warnings
1461
1462 2006-04-22 Borut Razem <borut.razem AT siol.net>
1463
1464         * doc/sdccman.lyx, */Makefile, */Makefile.in:
1465           references to CVS replaced with Subversion
1466
1467 2006-04-21 Borut Razem <borut.razem AT siol.net>
1468
1469         * doc/sdccman.lyx, */Makefile, */Makefile.in:
1470           references to CVS replaced with Subversion
1471
1472 2006-04-19 Borut Razem <borut.razem AT siol.net>
1473
1474         * src/version.awk: adapted for svn
1475         * /asxxxx/asxhtml/*.gif: set property svn:mime-type to image/gif
1476           sim/ucsim/doc/*.gif: set property svn:mime-type to image/gif
1477           sim/ucsim/doc/*.jpg: set property svn:mime-type to image/jpeg
1478           /binutils-avr/etc/*.vi, *.jin: removed all properties
1479           support/scripts/sdcc.ico: set property svn:mime-type to image/x-icon
1480
1481 2006-04-19 Borut Razem <borut.razem AT siol.net>
1482
1483         * CVS to Subversion migration completed
1484
1485 2006-04-18 Borut Razem <borut.razem AT siol.net>
1486
1487         * support/scripts/sdcc.nsi: removed unexisting ${DEV_ROOT}\lib\pic\*.o,
1488           ${DEV_ROOT}\lib\src\pic\libdev\*.S, ${DEV_ROOT}\lib\src\pic\libdev\*.inc
1489
1490 2006-04-17 Borut Razem <borut.razem AT siol.net>
1491
1492         * device/include/Makefile.in: added pic/*.inc to the installation
1493
1494 2006-04-15 Bernhard Held <bernhard AT bernhardheld.de>
1495
1496         * support/regression/collate-results.py: fixed output in case of
1497         a valdiag error
1498         * support/regression/generate-cases.py: fixed splitting of pathnames
1499         with dots
1500         * as/hc08/lklibr.c (addfile),
1501         * as/mcs51/lklibr.c (addfile): fixed off-by-one bug
1502
1503 2006-04-11 Raphael Neider <rneider AT web.de>
1504
1505         * src/pic16/gen.c (getFreePtr, pic16_popRegFromString),
1506         * src/pic16/ralloc.c (pic16_allocregWithName): removed debug output
1507         * src/pic16/pcode.c (assignValnums): fixed #1460578
1508
1509 2006-04-11 Raphael Neider <rneider AT web.de>
1510
1511         * device/lib/pic/libdev/*.c,
1512         * device/include/pic/*.h: replaced sfr and data with __sfr and __data,
1513           fixes #1468739, enables compilation in --std-c99 mode
1514         * support/scripts/inc2h.pl: emit __sfr/__data instead of sfr/data
1515
1516 2006-04-11 Raphael Neider <rneider AT web.de>
1517
1518         * src/pic/device.c (find_device): removed debug output
1519           (list_valid_pics): enabled verbose listing of supported devices
1520         * device/include/stdbool.h: define bool as char for pic14/16 as well
1521
1522 2006-04-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1523
1524         * src/SDCC.y: allow using brackets here: "__interrupt (1) __using (1)"
1525
1526 2006-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
1527
1528         * .version: bumped version to 2.5.6
1529         * src/pic/ralloc.c (newReg): MSVC doesn't support __builtin_return_address
1530
1531 2006-04-06 Raphael Neider <rneider AT web.de>
1532
1533         * .version: bumped version to 2.5.6 (pic14 ABI changed)
1534         * src/SDCCmain.c: add -DSDCC_PROCESSOR=<id> for pic14 port
1535         * src/pic/glue.c (emitSymbolToFile,pic14_constructAbsMap,
1536           pic14emitRegularMap,pic14emitMaps): moved output for absolute symbols to
1537             pic14_constructAbsMap
1538           (pic14printPublics): declare absolute global symbols as global
1539           (pic14createInterruptVect),
1540         * src/pic/ralloc.c (IS_CONFIG_ADDRESS): support second config word,
1541           (newReg): assume new registers unused, use correct name in
1542             hashtable (reg->name instead of name), more debugLog output
1543         * src/pic/device.h (PIC_device): added fields for verbose output
1544         * src/pic/device.c: moved device definition to pic14devices.txt,
1545             added routines for runtime parsing of pic14devices.txt,
1546             added support for second config word
1547         * src/pic/main.c (_process_pragma): removed #pragma maxram,
1548           (_pic14_keywords): no longer accept "bit" and "sbit" keywords
1549           (_pic14_initPaths): add search paths with "pic" suffix (not "pic14")
1550           (_pic14_parseOptions): moved pCodeInitRegisters here
1551           (_pic14_do_link): add "pic$(ARCH).lib" to linker arguments
1552         * src/pic/pcode.c (AnalyzeBanking): bail out on unset processor,
1553           (pCodeInitRegisters): rewrapped comments, perpared new approach to
1554             handling the pseudo stack
1555         * device/lib/Makefile.in: ignore failures in objects-pic16,
1556         * device/lib/pic/{configure,configure.in,Makefile}: added libdev/
1557         * device/lib/pic/NEWS: document new dependency on picXXX.lib
1558         * device/lib/pic/Makefile.subdir,
1559         * device/lib/pic16/Makefile.subdir: improved clean rules
1560         * device/lib/pic/libdev/: NEW, pic14 device libraries
1561         * device/lib/pic/libsdcc/_gptr{get,put}{1,2,3,4}.S: use _X not X
1562         * device/lib/pic/libsdcc/macros.inc: use _X not X, declare default SFRs
1563         * device/include/Makefile.in: create subdir and install pic14 headers
1564         * device/include/pic/p16f_common.inc: removed unused declarations
1565         * device/include/pic/pic16*.h: added header files for 100+ 14 bit
1566             PICs from inc2h.pl v1.6,
1567             replaced BIT_AT macros with struct declarations
1568         * device/include/pic/pic14devices.txt: definition of supported devices,
1569             all above improvements contributed by Zik Saleeba, thanks
1570         * support/scripts/inc2h.pl: removed BIT_AT, replaced with structs
1571         * support/scripts/sdcc.nsi: also install pic14 device libraries and
1572             headers
1573
1574 2006-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
1575
1576         * device/include/mcs51/c8051f410.h: added interrupt numbers,
1577         * device/include/mcs51/c8051f200.h: old SiLabs mcu completes the list,
1578           thanks to Charles Olds
1579
1580 2006-04-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1581
1582         * debugger/mcs51/cmd.c (infoRegisters): show return address on stack
1583
1584 2006-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
1585
1586         * src/SDCCpeeph.c (labelIsReturnOnly): fixed bug 1464657
1587         * src/mcs51/gen.c (genJumpTab): fixed bug in medium model
1588         * support/regression/bug1464657.c: added, new test
1589
1590 2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
1591
1592         * src/SDCCmain.c (preProcess): implemented RFE 1449908, define SDCC as the
1593           version number
1594
1595 2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
1596
1597         * src/SDCCpeeph.c (initPeepHole): implemented RFE 1460196, when both
1598           --no-peep and --peep-file <file> are used don't use default rules but
1599           do use the <file>
1600
1601 2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
1602
1603         * src/mcs51/gen.c (genCall): fixed bug 1457608
1604
1605 2006-03-30 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1606
1607         * doc/sdccman.lyx: reverted to version 1.129 of december as my latest
1608         changes seem to cause (trigger?) problems with the build system.
1609
1610 2006-03-29 Maarten Brock <sourceforge.brock AT dse.nl>
1611
1612         * src/SDCCpeeph.c (operandsLiteral): new, added,
1613           (callFuncByName): inserted operandsLiteral
1614         * src/mcs51/peeph.def: reenabled 132.e, added extra check to 132.x
1615
1616 2006-03-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1617
1618         * doc/sdccman.lyx: added paragraph "Use of SDCC in Education"
1619         * src/mcs51/peeph.def: disabled rule 132.e fixing bug #1453093
1620
1621 2006-03-24 Maarten Brock <sourceforge.brock AT dse.nl>
1622
1623         * src/z80/gen.c (genFunction, genEndFunction): fixed bug 1160666,
1624           implemented patch 1120823 Thanks to Willy De la Court (normal
1625           interrupts need an interrupt number now if they are made critical),
1626           and enabled nesting of critical functions though not for gbz80
1627           (genCritical, genEndCritical): added functions
1628           (genZ80Code): added cases for CRITICAL and ENDCRITICAL
1629         * src/z80/mappings.i: added "ei" to all mappings
1630
1631 2006-03-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1632
1633         * sim/ucsim/cmd.src/newcmdcl.h: applied patch fixing GCC 4.1 build
1634         submitted by the Debian SDCC maintainer Aurelien Jarno:
1635         "Credits goes to Martin Michlmayr, who rebuilt the whole Debian
1636         archive with gcc 4.1 on mips and wrote the patch"
1637
1638 2006-03-16 Raphael Neider <rneider AT web.de>
1639
1640         * src/pic16/genarith.c (genAddLit): simplified and fixed case where
1641           the left operand is shorter than the result (c* = lit-c* + int),
1642           fixes bug #1450796
1643         * src/pic16/gen.c (genRightShift): check IS_SYMOP before accessing
1644           OP_SYMBOL
1645
1646 2006-03-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
1647
1648         * src/.version: increased version number to 2.5.5
1649         * src/SDCCmain.c (linkEdit): do not test for PIC16 target since, PIC16
1650         linking is done manually in pic16 port's _linkEdit,
1651         * src/SDCCsymt.c (compStructSize): for target PIC16 and shell variable
1652         PIC16_PACKED_BITFIELDS, compact bitfield structures as much as possible,
1653         * src/pic16/gen.c (aopForSym): when direct register name is WREG then
1654         allocate asmop as AOP_ACC,
1655         (aopForRemat): added parameter 'bool result' in function declaration,
1656         (pic16_aopGet): return AOP_ACC when accessing WREG,
1657         (pic16_popGetTempReg): minor modification,
1658         (pic16_popRegFromIdx): first try with 'pic16_regWithIdx' then with
1659         'pic16_allocWithIdx',
1660         (genPcall): removed ftype, usage of OP_SYM_TYPE asserted error when
1661         calling function in absolute addresses,
1662         (genAssign): take into account AOP_ACC asmop,
1663         * src/pic16/pcode.c (pic16_newpCodeOpReg): minor modifications,
1664         * src/pic16/pcoderegs.c: some debug functions and lines added,
1665         * src/pic16/ralloc.c (decodeRegType): added but commented out,
1666         * (pic16_typeRegWithIdx): search 'pic16_dynInternalRegs' for given
1667         register too,
1668         * (pic16_findFreeReg, pic16_findFreeRegNext): allocate new register via
1669         call to allocReg, not by manually allocating a new one,
1670         (pic16_assignRegisters): now before going through the register
1671         allocating functions mark all registers as free. This eliminates some
1672         side effects resulting from peephole parser done earlier in the backbone
1673
1674 2006-03-13 Maarten Brock <sourceforge.brock AT dse.nl>
1675
1676         * src/SDCCicode.c (geniCodeLogic),
1677         * src/SDCCast.c (decorateType): applied patch by Bernhard for rfe 1422617
1678
1679 2006-03-10 Maarten Brock <sourceforge.brock AT dse.nl>
1680
1681         * src/mcs51/gen.c (sameReg): new, checks if two aop regs are the same,
1682           (genSend): bugfix, do not allocate and free twice,
1683           (shiftRLong): handle partially overlapping aops
1684         * support/regression/tests/bitopcse.c: fixed warning redefined idata
1685
1686 2006-03-08 Borut Razem <borut.razem AT siol.net>
1687
1688         * support/regression/fwk/include/testfwk.h: added defines for xdata, idata
1689           for pic16
1690
1691 2006-03-08 Maarten Brock <sourceforge.brock AT dse.nl>
1692
1693         * support/regression/tests/bug1409955.c: new, added
1694         * src/mcs51/gen.h: changed asmop.freed:1 to asmop.allocated for tracking
1695         * src/mcs51/gen.c (newAsmop): set asmop.allocated to 1,
1696           (aopForSym, aopOp): increment asmop.allocated if reused,
1697           (freeAsmop): decrement asmop.allocated and check for zero instead of
1698           using asmop.freed,
1699           (freeForBranchAsmop): use asmop.allocated instead of asmop.freed,
1700           (genNot, genCpl, genUminus, genMinus, genMult, genDiv, genMod, genCmpGt,
1701            genCmpLt, genAndOp, genOrOp, genAnd, genOr, genXor, genRRC, genRLC,
1702            genGetHbit, genGetAbit, genGetByte, genGetWord, genSwap,
1703            genLeftShiftLiteral, genLeftShift, genRightShiftLiteral,
1704            genSignedRightShift, genRightShift, genDataPointerGet,
1705            genPagedPointerGet, genFarPointerGet, genCodePointerGet,
1706            genGenPointerGet, genDataPointerSet, genAssign, genCast): free asmop's
1707             in reverse order from allocation,
1708           (genPlus, genCmpEq): free asmop's in reverse order from allocation and
1709             added swappedLR to keep track
1710         * support/regression/fwk/include/testfwk.h: added defines for xdata, idata,
1711           pdata & code for GCC, z80, gbz80 & hc08
1712         * support/regression/tests/zeropad.c: moved defines to testfwk.h
1713
1714 2006-03-08 Raphael Neider <rneider AT web.de>
1715
1716         * src/pic16/main.c (_hasNativeMulFor): fixed bug #1444425
1717
1718 2006-03-07 Maarten Brock <sourceforge.brock AT dse.nl>
1719
1720         * device/include/mcs51/c8051f410.h: new SiLabs mcu
1721         * src/ds390/peeph.def: disabled 186.d and 227.a as fix for #1434401
1722         * support/regression/tests/array.c: added parenthesis, made arrays unsigned
1723
1724 2006-03-06 Borut Razem <borut.razem AT siol.net>
1725
1726         * support/regression/ports/pic16/spec.mk: link with libm18f.lib,
1727           made the linker quiet
1728
1729 2006-03-06 Vangelis Rokas <vrokas AT users.sourceforge.net>
1730
1731         * src/pic16/gen.c (genPcall): fixed bug #1443644
1732         * src/pic16/device.h (struct pic16_options_t): added 'int CATregs' flag
1733         which dumps before the function entry point a data byte which represents
1734         the number of the local variables used by the specified function, added
1735         'xinst' for initial support for Extended Instruction Support,
1736         * src/pic16/gen.c (aopForSym, pic16_aopGet): beautifications,
1737         (pic16_testStackOverflow): do not prefix GSTACK_TEST_NAME with
1738         port->fun_prefix anymore (may change later),
1739         (genFunction, genEndFunction): do not store/restore local registers for
1740         _main (this should take care the --main-return command line option in
1741         the future),
1742         (genOr): removed some legacy pic-port instructions,
1743         * src/pic16/genarith.c (genAddLit): re-enabled old code because
1744         performing operations with SFR's causes data to be written more than
1745         once to each SFR. Perhaps SFRs should be handled in special cases...
1746         * src/pic16/glue.c: macros BIG_ENDIAN and BYTE_IN_LONG are moved to
1747         pcode.h
1748         * src/pic16/main.c (_process_pragma): stack bound checking did not take
1749         into account for stack starting position,
1750         (struct OPTIONS pic16_optionsTable): added command line argument
1751         --extended or -y for Extended Instruction Support,
1752         * src/pic16/ralloc.c (pic16_decodeOp): added case for FUNCTION,
1753         (deassignLRs): *** perhaps the most important change, old 'for' code
1754         (commented out for reference), didn't account for some registers which
1755         were left marked 'not free' after a pointer operation. The change
1756         reduces register usage a lot in some cases
1757
1758 2006-03-04 Borut Razem <borut.razem AT siol.net>
1759
1760         * support/regression/ports/hc08/spec.mk: remove *.asm in traget
1761           _clean
1762         * support/regression/tests/bug-524697.c: decreased array size for
1763           mcs51 to fit into the internal RAM
1764         * support/regression/Makefile.in: a little bit more verbose
1765
1766 2006-03-03 Borut Razem <borut.razem AT siol.net>
1767
1768         * support/regression/fwk/lib/testfwk.c,
1769           support/regression/fwk/include/testfwk.h: introduced function
1770           _prints(), nonrecursive _printn(), call _initEmu() from main()
1771         * support/regression/ports/gbz80/support.asm,
1772           support/regression/ports/ucz80/support.asm,
1773           support/regression/ports/z80/support.asm,
1774           support/regression/ports/ds390/support.c,
1775           support/regression/ports/hc08/support.c,
1776           support/regression/ports/host/support.c,
1777           support/regression/ports/mcs51/support.c,
1778           support/regression/ports/xa51/support.c: added empty _initEmu()
1779           function
1780         * support/regression/ports/pic16/gpsim.cmd,
1781           support/regression/ports/pic16/spec.mk,
1782           support/regression/ports/pic16/support.c,
1783           support/regression/Makefile.in: added pic16 regression test
1784
1785 2006-03-01 Raphael Neider <rneider AT web.de>
1786
1787         * src/pic16/gen.c (genPcall,pic16_derefPtr,genGenPointerGet,
1788           genConstPointerGet): use safe way of generating MOVFF to cover
1789             literals as well as registers, fixes bug #1440527
1790         * src/pic16/glue.c (pic16_printIvalBitFields): prevent NULL pointer
1791             dereference
1792           (pic16_printIvalUnion,pic16_isUnion): NEW, handle initialized unions
1793             more correctly, fixes bug #1232186
1794           (pic16_printIval): use pic16_printIvalUnion() for initialized unions
1795         * src/pic16/main.c (_pic16_linkEdit): reorder linker arguments to make
1796             gplink guess the correct processor in more cases, applied patch
1797             from Till Riedel attached to and fixing bug #1436552
1798
1799 2006-02-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1800
1801         * support/regression/tests/array.c: added, contains check for #1434401
1802         * src/mcs51/peeph.def: disabled 186.d as temporary fix for #1434401
1803
1804 2006-02-16 Maarten Brock <sourceforge.brock AT dse.nl>
1805
1806         * device/include/mcs51/at89s8253.h: new, thanks to Krzysztof Polomka
1807         * device/include/mcs51/at89S8252.h: fixed, thanks to Krzysztof Polomka
1808         * device/include/mcs51/c8051f326.h,
1809         * device/include/mcs51/c8051f340.h: new SiLabs mcu's
1810         * device/include/mcs51/c8051f000.h,
1811         * device/include/mcs51/c8051f018.h,
1812         * device/include/mcs51/c8051f020.h: used () with __at, renamed IDLE,STOP to
1813           PCON_IDLE,PCON_STOP and added sfr16 definitions
1814
1815 2006-02-14 Maarten Brock <sourceforge.brock AT dse.nl>
1816
1817         * src/mcs51/gen.c (genPlus, genMinus, genMult, genGetAbit, genGetByte,
1818           genGetWord): fixed bug 1409955
1819
1820 2006-02-14 Maarten Brock <sourceforge.brock AT dse.nl>
1821
1822         * device/include/hc08/mc68hc908gp32.h,
1823         * device/include/hc08/mc68hc908jb8.h: removed AWUL, added PTA6 & PTA7
1824
1825 2006-02-13 Maarten Brock <sourceforge.brock AT dse.nl>
1826
1827         * src/SDCCast.c (constExprValue): return NULL if not a value
1828         * src/SDCCglue.c (printIvalArray): fixed bug 1225568
1829         * src/hc08/gen.c(genUnpackBits, genUnpackBitsImmed): fixed bug 1019480
1830         * support/regression/tests/bitfields.c: enabled signed bitfield for all
1831
1832 2006-02-13 Borut Razem <borut.razem AT siol.net>
1833
1834         * src/regression/ptrarg.c: added, fails due to bug #1430967
1835         * src/regression/Makefile: ptrarg.c added, ...
1836
1837 2006-02-12 Maarten Brock <sourceforge.brock AT dse.nl>
1838
1839         * src/z80/gen.c (genUnpackBits): fixed bug 1019480
1840         * support/regression/tests/bitfields.c: enabled signed bitfield for z80
1841
1842 2006-02-11 Borut Razem <borut.razem AT siol.net>
1843
1844         * src/SDCCmain.c: Added "sdcc: Calling linker..." if --verbose,
1845           print "Processor: xxx" message to stdout only if --verbose
1846
1847 2006-02-11 Maarten Brock <sourceforge.brock AT dse.nl>
1848
1849         * src/SDCCglue.c (printIvalStruct): fixed bug 1426356 union initializer
1850         * support/regression/tests/bug1426356.c: added
1851         * support/regression/tests/bitfields.c: removed 2 tests
1852
1853 2006-02-10 Maarten Brock <sourceforge.brock AT dse.nl>
1854
1855         * device/include/mcs51/at89c51snd1c.h: updated comments, see patch 1428901
1856         * device/include/mcs51/c8051f330.h,
1857         * device/include/mcs51/c8051f350.h: used () with __at, renamed IDLE,STOP to
1858           PCON_IDLE,PCON_STOP and added sfr16 definitions
1859         * device/lib/_divsint.c,
1860         * device/lib/_divuint.c,
1861         * device/lib/_divulong.c,
1862         * device/lib/_divulong.c: renamed a,b to x,y to avoid confusion, fixed
1863           register bank bug for small stackauto
1864
1865 2006-02-09 Maarten Brock <sourceforge.brock AT dse.nl>
1866
1867         * support/regression/fwk/lib/timeout.c: include <stdlib.h> for exit()
1868
1869 2006-02-08 Maarten Brock <sourceforge.brock AT dse.nl>
1870
1871         * support/regression/ports/mcs51-xstack-auto/spec.mk: forgot -I(...)/mcs51
1872         * all.dsp: corrected several bin paths
1873         * device/include/mcs51/c8051f120.h,
1874         * device/include/mcs51/c8051f300.h,
1875         * device/include/mcs51/c8051f310.h: used () with __at and renamed IDLE,STOP
1876           to PCON_IDLE,PCON_STOP
1877         * device/include/mcs51/c8051f320.h: see above, also added sfr16 definitions
1878         * device/lib/printf_large.c (output_float): fixed bug 1388703
1879         * support/regression/tests/bug1057979.c: added test for bug 1388703
1880
1881 2006-02-08 Raphael Neider <rneider AT web.de>
1882
1883         * src/pic/pcode.c (pciTRIS): fixed typo,
1884           (BuildFlow,LinkFlow_pCode): added (disabled) debug output,
1885           (LinkFlow): fixed handling of flows that end in a call,
1886           (ReuseReg): perform safety check earlier
1887         * src/pic/pcoderegs.c (pCodeRegMapLiveRangesInFlow): fixed
1888             to work with flows at the beginning of a pBlock,
1889             fixes #1426557 (Symbol not previously defined),
1890           (pic14_ReMapLiveRanges): NEW, destroy and rebuild register
1891             usage information
1892           (RemoveUnusedRegisters): update register usage info
1893         * src/pic/ralloc.c (newReg): prevent duplicate registers from being
1894             created, reuse existing ones instead
1895         * src/pic/gen.c (genPcall): fixed #1424719
1896
1897 2006-02-07 Bernhard Held <bernhard AT bernhardheld.de>
1898
1899         * link/z80/lkmain.c,
1900         * link/z80/lklex.c,
1901         * link/z80/lkdata.c,
1902         * link/z80/aslink.h: fixed build on current cygwin:
1903         replaced getline() by lk_getline()
1904
1905 2006-02-01 Borut Razem <borut.razem AT siol.net>
1906
1907         * src/regression/add.c, src/regression/add2.c, src/regression/add3.c,
1908           src/regression/add4.c, src/regression/and1.c, src/regression/and2.c,
1909           src/regression/arrays.c, src/regression/b.c, src/regression/bank1.c,
1910           src/regression/bool1.c, src/regression/bool2.c,
1911           src/regression/bool3.c, src/regression/call1.c,
1912           src/regression/compare.c, src/regression/compare10.c,
1913           src/regression/compare2.c, src/regression/compare3.c,
1914           src/regression/compare4.c, src/regression/compare5.c,
1915           src/regression/compare6.c, src/regression/compare7.c,
1916           src/regression/compare8.c, src/regression/compare9.c,
1917           src/regression/configword.c, src/regression/for.c,
1918           src/regression/inline.c, src/regression/mult1.c,
1919           src/regression/nestfor.c, src/regression/or1.c,
1920           src/regression/pointer1.c, src/regression/ptrfunc.c,
1921           src/regression/rotate1.c, src/regression/rotate2.c,
1922           src/regression/rotate3.c, src/regression/rotate4.c,
1923           src/regression/rotate5.c, src/regression/rotate6.c,
1924           src/regression/rotate7.c, src/regression/string1.c,
1925           src/regression/struct1.c, src/regression/sub.c,
1926           src/regression/sub2.c, src/regression/switch1.c,
1927           src/regression/while.c, src/regression/xor.c,
1928           src/regression/create_stc, src/regression/simulate,
1929           src/regression/rt.sh, src/regression/Makefile: reenabled Scott's PIC14
1930           regression tests
1931         * src/regression/gpsim_assert.h: added
1932
1933 2006-01-28 Bernhard Held <bernhard AT bernhardheld.de>
1934
1935         * src/ds390/gen.c (unsaveRegisters): fixed literal function pointer
1936         ((void (code *) (void)) 0) ();
1937         * as/hc08/aslex.c,
1938         * as/hc08/aslink.h,
1939         * as/hc08/asm.h,
1940         * as/hc08/asmain.c,
1941         * as/hc08/lkdata.c,
1942         * as/hc08/lklex.c,
1943         * as/hc08/lkmain.c,
1944         * as/mcs51/aslex.c,
1945         * as/mcs51/aslink.h,
1946         * as/mcs51/asm.h,
1947         * as/mcs51/asmain.c,
1948         * as/mcs51/lkdata.c,
1949         * as/mcs51/lklex.c,
1950         * as/mcs51/lkmain.c,
1951         * as/z80/aslex.c,
1952         * as/z80/asm.h,
1953         * as/z80/asmain.c: fixed build on current cygwin:
1954         replaced getline() by as_getline()
1955
1956 2006-01-27 Bernhard Held <bernhard AT bernhardheld.de>
1957
1958         * src/SDCC.y: fixed bug #716242, exchanged pointer and function
1959         declarator in the symbol chain
1960         * src/SDCCsymt.h,
1961         * src/SDCCsymt.c (processFuncPtrArgs): added, removes "(void)"
1962         parameter list for function pointers
1963         * src/SDCCast.c (decorateType): added call of processFuncPtrArgs()
1964         * support/regression/tests/bug-716242.c: added
1965
1966 2006-01-20 Bernhard Held <bernhard AT bernhardheld.de>
1967
1968         * src/SDCCicode.c (geniCodeAdd, geniCodeArray): use char for array
1969         offset if possible
1970         * src/SDCCast.c (getLeftResultType): 255 fits in char, not 256
1971
1972 2006-01-18 Bernhard Held <bernhard AT bernhardheld.de>
1973
1974         * src/SDCCast.c (backPatchLabels): fixed bug #1408066: made it
1975         inifinitely recurseable, added static
1976         * support/regression/tests/bug-1408066.c: added
1977
1978 2006-01-17 Bernhard Held <bernhard AT bernhardheld.de>
1979
1980         * src/SDCCicode.h,
1981         * src/SDCCicode.c (newiTempPreheaderLabel, newiTempLoopHeaderLabel):
1982         renamed, added possibility to create "postLoopLbl"-labels
1983         * src/SDCCBBlock.c (iCodeBreakDown): renamed newiTempPreheaderLabel to
1984         newiTempLoopHeaderLabel
1985         * src/SDCCloop.c (newInduction, newRegion, backEdges, insertIntoLoop,
1986         isNotInBlocks, addToExitsMarkDepth, createLoop, dominatedBy,
1987         addDefInExprs, assignmentsToSym, isOperandInvariant, pointerAssigned,
1988         hasNonPtrUse, loopInvariants, addressTaken, findInduction,
1989         findDefInRegion, mergeRegions, ifMerged, mergeInnerLoops): made static,
1990         (pinduction, pregion, hasIncomingDefs, findLoopEndSeq): disabled,
1991         (basicInduction): fixed bug #136564, made static,
1992         (loopInduction): changed parameter of basicInduction, made static,
1993         (addPostLoopBlock): added
1994         * src/SDCCloop.h: removed backEdges, pregion, pinduction,
1995         loopOptimizations, addressTaken, findDefInRegion, hasIncomingDefs,
1996         findLoopEndSeq
1997         * support/regression/tests/bug-136564.c: added
1998         * support/regression/ports/mcs51-xstack-auto/spec.mk: added
1999         --std-sdcc99 to LIBSDCCFLAGS
2000
2001 2006-01-16 Bernhard Held <bernhard AT bernhardheld.de>
2002
2003         * src/SDCCicode.c (geniCodeIfx): fix bug 1406131: always false
2004         while loop
2005         * support/regression/tests/bug-1406131.c: added
2006
2007 2005-12-31 Bernhard Held <bernhard AT bernhardheld.de>
2008
2009         * src/SDCCast.c (decorateType): fix promotion of unary minus
2010         * src/SDCCsymt.c (computeType): beautified
2011         * src/SDCCval.c (cheapestVal): beautified, old non-Ansi version removed,
2012         (valUnaryPM, valComplement): fix sign and promotion,
2013         (valNot): ANSI: result type is int (SDCC: unsigned char)
2014         * support/regression/tests/uminus.c: speedup by removing superflous
2015         test case 'int'
2016         * support/regression/tests/onebyte.c: added promotion and signedness
2017         tests for unary minus
2018         * support/regressions/tests/bug-477927.c: disable warning about
2019         uninitialized variables
2020         * support/regression/tests/not.c: added
2021
2022 2005-12-28 Bernhard Held <bernhard AT bernhardheld.de>
2023
2024         * device/lib/Makefile.in: added --std-sdcc99 to CFLAGS
2025         * src/mcs51/gen.c (gen51Code): show final register usage after
2026         fillGaps in asm with --i-code-in-asm
2027         * src/SDCClrange.c (sequenceiCode, setLiveFrom, setLiveTo,
2028         markLiveRanges, markAlive, findNextUseSym, findNextUse, unvisitBlocks,
2029         incUsed, rliveClear, adjustIChain): made static,
2030         (setFromRange): excluded because it's unused,
2031         (findPrevUseSym, markWholeLoop): added,
2032         (findPrevUse): rewritten; fixes bug 895992; now a complete search
2033         through all branches of predecessors enables sdcc to emit the warning
2034         W_LOCAL_NOINIT, marking of outermost loop was incomplete,
2035         (rlivePoint): made static, added parameter emitWarnings which is only
2036         true during the first run out of two,
2037         (findRecursiveSucc, findRecursivePred): removed,
2038         (computeLiveRanges): made static, added parameter emitWarnings,
2039         (dumpIcRlive): added for debugging only
2040         * src/SDCClrange.h: added boolean parameter to computeLiveRanges(),
2041         removed prototype of setFromRange()
2042         * src/SDCCopt.c (eBBlockFromiCode): added new parameter emitWarnings
2043         in call of computeLiveRanges()
2044         * support/regression/tests/bug-895992.c: added
2045         * support/regression/tests/bug-971834.c: added
2046         * support/valdiag/tests/bug-895992.c: added
2047         * support/valdiag/tests/bug-971834.c: added
2048
2049 2005-12-18 Raphael Neider <rneider AT web.de>
2050
2051         * src/pic16/gen.c: added IS_DIRECT macro for "direct" operands,
2052           (genUnpackBits): improved code for direct operands,
2053           (genPackBits): improved code for literal assignment to bitfields
2054             and for direct destination operands (no FSR indirection),
2055             prevented redundant AND, fixes #1362800,
2056           (AccLsh): added parameter to disable masking of the result
2057         * src/pic16/pcode.c (pic16_safepCodeUnlink): fixed to work with
2058           skip instructions with side-effects (like incfsz),
2059           (pic16_pCodeIsAlive): suppress verbose output unless pcode_verbose,
2060         * src/pic16/pcoderegs.c (RemoveRegsFromSet): removed annoying warning
2061         * device/lib/pic16/Makefile.common.in: added --asm=@GPASM@ to CC,
2062           fixes #1375263
2063
2064 2005-12-11 Bernhard Held <bernhard AT bernhardheld.de>
2065
2066         * src/SDCCicode.c (geniCodeAssign): fixed bug 11369874, don't use
2067         volatile variables as spill location
2068
2069 2005-12-10 Bernhard Held <bernhard AT bernhardheld.de>
2070
2071         * src/SDCCcse.c (findCheaperOp): fixed bug 1376320, copy signedness to
2072         replacing literals
2073         * support/regression/tests/bug-1376320.c: added
2074
2075 2005-12-08 Raphael Neider <rneider AT web.de>
2076
2077         * src/pic/device.c: renamed is_shared to pic14_is_shared
2078         * src/pic/gen.c (genIfx): re-enabled handling of sbits
2079         * src/pic/glue.c (emitSymbolToFile): added workaround for sbits,
2080           (is_valid_identifier): added for above workaround
2081
2082 2005-12-07 Maarten Brock <sourceforge.brock AT dse.nl>
2083
2084         * device/lib/Makefile.in: fixed to enable port-specific-objects
2085         * device/lib/ds390/i2c390.c (BitOutI2C): optimized by making bout unsigned
2086           char, thanks Hubert Sack
2087         * doc/sdccman.lyx: documented --xstack-loc,
2088           elaborated a bit more on interrupts and pitfalls,
2089           removed "setjmp/longjmp unsupported",
2090           documented some unsupported C99 features
2091         * src/SDCCmain.c (linkEdit): adapted default lib path for --stack-auto
2092         * src/SDCCpeeph.c (readRules): inserted patch 1367130 for finding missing
2093           if, thanks Hubert Sack
2094         * src/mcs51/gen.c (genEndFunction): enabled "pop psw" for regbank 0 isr
2095         * support/regression/Makefile.in: test-mcs51-stack-auto no longer needs to
2096           make make_library
2097         * support/regression/get_ticks.py: new, get cpu cycles and code size, so
2098           regression tests can report resource usage (rfe 700441)
2099         * support/regression/collate-results.py: report resource usage
2100         * support/regression/ports/ds390/spec.mk,
2101         * support/regression/ports/hc08/spec.mk,
2102         * support/regression/ports/mcs51/spec.mk,
2103         * support/regression/ports/ucz80/spec.mk: run sim output through get_ticks
2104         * support/regression/ports/ds390/uCsim.cmd,
2105         * support/regression/ports/hc08/uCsim.cmd,
2106         * support/regression/ports/mcs51/uCsim.cmd,
2107         * support/regression/ports/ucz80/uCsim.cmd: inserted "state" to report time
2108         * support/regression/ports/mcs51-stack-auto/spec.mk: no need to build the
2109           library, use the default one
2110         * support/regression/ports/mcs51-xstack-auto/spec.mk: inserted rules for
2111           building the library
2112
2113 2005-12-06 Maarten Brock <sourceforge.brock AT dse.nl>
2114
2115         * config.dsp: added dependency on .version and configure_vc.awk
2116         * device/include/setjmp.h: updated for --stack-auto and --xstack
2117         * device/include/mcs51/at89c51snd1c.h: corrected line endings
2118         * device/include/mcs51/XC866.h: added, thanks Llewellyn van Zyl
2119         * device/lib/_setjmp.c: updated for --stack-auto and --xstack
2120         * device/lib/libsdcc.lib: added _setjmp
2121         * src/SDCCast.c (createIvalCharPtr): fixed warnings,
2122           (decorateType): fixed bug 1372851,
2123           (optimizeGetHbit): fixed warning
2124         * src/SDCCglue.c (printIvalChar, printIvalArray): adapted for flexible
2125           array initialisation
2126         * support/regression/tests/bug1057979.c: added test for bug 1358192
2127         * support/regression/tests/setjmp.c: added, test for setjmp/longjmp
2128
2129 2005-12-03 Borut Razem <borut.razem AT siol.net>
2130
2131         * support/scripts/sdcc.nsi: added /SOLID option to "SetCompressor lzma"
2132           command since the NSIS was upgraded to version 2.11 on CF x86-linux2
2133
2134 2005-11-29 Bernhard Held <bernhard AT bernhardheld.de>
2135
2136         * src/SDCCast.c (createIvalStruct, createIvalArray, createIvalPtr,
2137         createIval): implement symbol independant "flexible array member",
2138         (createIvalCharPtr): implemented flexible array initialisation with a
2139         string
2140         * src/SDCCsymt.c (copyStruct): removed,
2141         (getSize): fixed misleading comment,
2142         (getAllocSize): removed, the additional allocation size is now in
2143         sym->flexArrayLength,
2144         (checkStructFlexArray): new, syntax checks for flexible array members,
2145         (compStructSize): added syntax checks for "flexible array members"
2146         (copyStruct): removed,
2147         (copyLinkChain): removed inefficient fix for bug 770487
2148         * src/SDCCglue.c (emitRegularMap): getAllocSize has been removed
2149         * src/SDCCsymt.h: added structdef.b_flexArrayMember and
2150         symbol->flexArrayLength
2151         * src/SDCCerr.c,
2152         * src/SDCCerr.h: added W_INVALID_FLEXARRAY, W_C89_NO_FLEXARRAY,
2153         E_FLEXARRAY_NOTATEND and E_FLEXARRAY_INEMPTYSTRCT
2154         * support/regression/tests/structflexarray.c: added
2155         * support/valdiag/tests/structflexiblearray.c: added
2156
2157 2005-11-29 Bernhard Held <bernhard AT bernhardheld.de>
2158
2159         * src/SDCCast.c (decorateType): fixed bug 1368489
2160         * support/Util/SDCCerr.c,
2161         * support/Util/SDCCerr.h: added warning W_CMP_SU_CHAR
2162
2163 2005-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2164
2165         * device/include/mcs51/at89c51snd1c.h: added file submitted by
2166           Weston T. Schmidt <schmidtw AT users.sourceforge.net>, patch #1368001
2167
2168 2005-11-27 Borut Razem <borut.razem AT siol.net>
2169
2170         * support/cpp2/cppinit.c, support/cpp2/cpplib.h, support/cpp2/mkdeps.c,
2171           support/cpp2/mkdeps.h: added command line option
2172           -obj-ext=<extension> to SDCPP to define object file externion, used
2173           for generation of make dependencies (-M)
2174         * src/SDCCmain.c: pass -obj-ext=<extension> to SDCPP
2175
2176 2005-11-26 Borut Razem <borut.razem AT siol.net>
2177
2178         * support/scripts/sdcc.nsi: added small-stack-auto libraries,
2179           added missing device/lib/mcs51/crt*.asm, pic and pic16 sources,
2180           added pic and pic16 libraries
2181
2182 2005-11-26 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2183
2184         * device/include/float.h: Corrected typo in prototype of __fsgt
2185
2186 2005-11-25 Borut Razem <borut.razem AT siol.net>
2187
2188         * sdcc/device/lib/Makefile.in, sdcc/device/lib/incl.mk:
2189           added creation of model-mcs51-stack-auto libraries
2190
2191 2005-11-24 Bernhard Held <bernhard AT bernhardheld.de>
2192
2193         * src/SDCCsymt.c (copyLinkChain): fixed bug 770487, copy structdef
2194         and fields-list too
2195         * src/SDCCast.c (createIvalArray): removed obsolete comment
2196
2197 2005-11-24 Borut Razem <borut.razem AT siol.net>
2198
2199         * sdcc/device/lib/Makefile.in: remove all unnecessary files, 2nd try...,
2200           added missing device/lib/mcs51/crt*.asm sources
2201
2202 2005-11-23 Bernhard Held <bernhard AT bernhardheld.de>
2203
2204         * src/SDCCast.c (createIvalCharPtr): fixed bug 1348271
2205
2206 2005-11-22 Maarten Brock <sourceforge.brock AT dse.nl>
2207
2208         * device/lib/_fs2schar.c,
2209         * device/lib/_fs2sint.c,
2210         * device/lib/_fs2slong.c: optimized inline asm
2211
2212 2005-11-21 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2213
2214         * device/lib/_fs2slong.c, device/lib/_fs2sint.c, device/lib/_fs2char.c:
2215           Better handling of floats between -1.0 and 0.0.
2216
2217 2005-11-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2218
2219         * src/mcs51/peeph.def: added missing "if"s as noted by Hubert Sack.
2220           (the missing "if"s prohibited removal of redundant labels)
2221
2222 2005-11-19 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2223
2224         * device/lib/_fs2slong.c, device/lib/_fs2sint.c, device/lib/_fs2char.c:
2225           Properly convert floats between -1.0 and 0.0 to long, int, and char
2226           types (max integer value of negative floats tends to zero).
2227         * device/lib/modff.c, device/lib/ceilf.c, device/lib/floorf.c:
2228           Removed changes made so to work properly with floats between
2229           -1.0 and 0.0, as the problem is fixed in _fs2slong.c, _fs2sint.c,
2230           and _fs2char.c
2231
2232 2005-11-18 Bernhard Held <bernhard AT bernhardheld.de>
2233
2234         * src/SDCCcse.c (ReplaceOpWithCheaperOp): minor fix for debugging only
2235         * src/mcs51/gen.c (genUnpackBits): better code and a fix,
2236         (genCast) cosmetic change
2237         * src/ds390/gen.c (genUnpackBits, ): ported from mcs51
2238         * src/ds390/ralloc.c (packRegsForAssign): ported fix for bitfields
2239         from mcs51
2240         * support/regression/tests/bitfields (testSignedBitfields): added
2241
2242 2005-11-18 Borut Razem <borut.razem AT siol.net>
2243
2244         * sdcc/device/lib/Makefile.in: remove all unnecessary files
2245         * device/lib/pic/Makefile.rules, device/lib/pic16/Makefile.subdir:
2246           introduced SILENT option to make building of pic16 libraries less
2247
2248 2005-11-18 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2249
2250         * device/lib/modff.c, device/lib/ceilf.c, device/lib/floorf.c:
2251           Now they work properly with floats between -1.0 and 0.0
2252         * device/lib/printf_large.c: Removed temporary patch for bug 1358192
2253
2254 2005-11-18 Maarten Brock <sourceforge.brock AT dse.nl>
2255
2256         * src/SDCCicode.c (printOperand): added missing else
2257
2258 2005-11-18 Bernhard Held <bernhard AT bernhardheld.de>
2259
2260         * src/SDCCsymt.c (computeType): fixed bug 1358192: added missing else,
2261         reformatted for better readability
2262         * src/mcs51/gen.c (genUnpackBits): initial, incomplete support for
2263         signed bitfields
2264
2265 2005-11-17 Borut Razem <borut.razem AT siol.net>
2266
2267         * device/lib/pic16/Makefile.rules, device/lib/pic16/Makefile.subdir:
2268           introduced SILENT option to make building of pic16 libraries less
2269           verbose - used for nightly snapshot build
2270         * doc/sdccman.lyx: documented that SDCDB and ucSim are currently not
2271           available on Win32 platforms.
2272         * sdcc/device/lib/Makefile.in: added library sources for mcs51, small,
2273           medium, large, pic and pic16
2274
2275 2005-11-16 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2276
2277         * device/lib/printf_large.c: Temporary patch for bug 1358192:
2278           printf("%f"...) sets fraction to zero.
2279
2280 2005-11-16 Raphael Neider <rneider AT web.de>
2281
2282         * src/pic/pcode.c (LinkFlow): handle empty flows correctly,
2283           fixes #1357221
2284         * src/pic/gen.c (genIfx): implemented for CARRY bit
2285         * src/pic16/gen.c (genAssign,genCast): fixed assigning/casting
2286           to generic pointers, fixes #1357332,
2287           (pic16_movLit2f): NEW,
2288           (pic16_storeForReturn,genDataPointerSet): use pic16_movLit2f
2289
2290 2005-11-14 Maarten Brock <sourceforge.brock AT dse.nl>
2291
2292         * src/SDCCmain.c (parseCmdLine): fixed bug 1356800, thanks rsudjian
2293
2294 2005-11-11 Raphael Neider <rneider AT web.de>
2295
2296         * src/pic/gen.c: handle FPOINTERS like POINTERS everywhere
2297         * src/pic16/gen.c (pic16_derefPtr): now works for non-pointers as well,
2298           compute pointer's type from operand,
2299           (genUnpackBits,genPackBits): handle FPOINTERS correctly, re-indented,
2300           improved single bit reads, fixes bug #1353379
2301
2302 2005-11-09 Borut Razem <borut.razem AT siol.net>
2303
2304         * support/scripts/sdcc.nsi: added lib/pic to the package
2305
2306 2005-11-08 Maarten Brock <sourceforge.brock AT dse.nl>
2307
2308         * src/SDCCval.c (valUnaryPM): fixed bug 1350699
2309
2310 2005-11-06 Maarten Brock <sourceforge.brock AT dse.nl>
2311
2312         * support/regression/tests/bug1348008.c: added
2313         * src/mcs51/gen.c (saveRBank, unsaveRBank): fixed bug 1348008
2314         * support/regression/tests/bug1337835.c: updated comment
2315
2316 2005-11-06 Borut Razem <borut.razem AT siol.net>
2317
2318         * sim/ucsim/error.cc, sim/ucsim/errorcl.h,
2319           sim/ucsim/sim.src/stack.cc, sim/ucsim/sim.src/stackcl.h,
2320           sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
2321           sim/ucsim/sim.src/mem.cc, sim/ucsim/sim.src/memcl.h,
2322           sim/ucsim/cmd.src/set.cc, sim/ucsim/cmd.src/show.cc:
2323           dynamic construction of cl_error_class and derivates - 2.nd try
2324
2325 2005-11-05 Borut Razem <borut.razem AT siol.net>
2326
2327         * sim/ucsim/sim.src/error.cc: fixed uninitialized class member variable
2328           bug, which caused Bus Errors on sparc solaris
2329
2330 2005-11-04 Borut Razem <borut.razem AT siol.net>
2331
2332         * sim/ucsim/error.cc, sim/ucsim/errorcl.h,
2333           sim/ucsim/sim.src/stack.cc, sim/ucsim/sim.src/stackcl.h,
2334           sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
2335           sim/ucsim/sim.src/mem.cc, sim/ucsim/sim.src/memcl.h,
2336           sim/ucsim/cmd.src/cmdconf.cc: dynamic construction of cl_error_class
2337           and derivates to resolve the initialization problem on OSX
2338
2339 2005-11-02 Borut Razem <borut.razem AT siol.net>
2340
2341         * sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/newcmd.cc:
2342           corrected typo - #include <winsock2.h>
2343
2344 2005-11-02 Maarten Brock <sourceforge.brock AT dse.nl>
2345
2346         * src/asm.c (printILine): always close tmpFile, thanks Beau E. Cox,
2347           (_asxxxx_mapping): added org directive for future enhancements
2348
2349 2005-11-01 Borut Razem <borut.razem AT siol.net>
2350
2351         * sim/ucsim/app.cc, sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/newcmd.cc:
2352           enabled sockets on WIN32
2353         * sim/ucsim/cmd.src/newcmd.cc: fixed bug with uninitialized variables
2354
2355 2005-10-31 Borut Razem <borut.razem AT siol.net>
2356
2357         * support/regression/generate-cases.py: escape backslashes in {testcase}:
2358           WIN32 backslash path delimiters should be escaped when used in C strings
2359         * support/regression/tests/bitfields.c: exclude failing assertions for
2360           __CYGWIN32__ and __MINGW32__ hosts
2361
2362 2005-10-30 Borut Razem <borut.razem AT siol.net>
2363
2364         * src/SDCCutil.c: corrected double comparison typo
2365
2366 2005-10-30 Maarten Brock <sourceforge.brock AT dse.nl>
2367
2368         * device/lib/medium/Makefile: added for new memory model medium
2369         * device/include/asm/mcs51/features.h: updated for medium/pdata
2370         * device/include/mcs51/c8051f120.h: added sfr16/sfr32 definitions,
2371           added Multiply & Accumulate sbit's and MAC0_PAGE define
2372         * device/include/mcs51/c8051f300.h: added sfr16 definitions
2373         * device/include/mcs51/c8051f310.h: added sfr16 definitions
2374         * device/lib/_mullong.c: update for medium model
2375         * device/lib/incl.mk: added medium model
2376         * doc/sdccman.lyx: documented medium model
2377         * src/SDCCast.c (isBitAndPow2): simplified using updated powof2
2378         * src/SDCCicode.c (geniCodeMultiply, geniCodeDivision): use updated powof2
2379         * src/SDCCmain.c (optionsTable, linkEdit): enabled medium model
2380         * src/SDCCmem.c (allocIntoSeg): set iaccess for pdata symbols,
2381           (allocParms): set SCLS and OCLS to pdata for medium model
2382         * src/SDCCsymt.c (processFuncArgs): use default_local_map and set iaccess
2383           for pdata,
2384           (powof2): return <0 if not power of 2
2385         * src/avr/gen.c (genBitWise): use updated powof2
2386         * src/mcs51/gen.c (genMinusDec): use acc if necessary,
2387           (shiftR2Left2Result): small optimization in setup, save acc when storing,
2388           (shiftLLeftOrResult): use B if necessary
2389         * src/mcs51/main.c (_mcs51_finaliseOptions, mcs51_port): added medium model
2390         * src/mcs51/peeph.def: renamed 226 to 226.b, added 226.a
2391         * src/pic/main.c (_pic14_do_link): made void parameter list explicit
2392         * support/regression/Makefile.in: added test-mcs51-medium
2393         * support/regression/ports/mcs51-medium/spec.mk: added to test medium model
2394
2395 2005-10-28 Bernhard Held <bernhard AT bernhardheld.de>
2396
2397         * src/SDCCsymt.c (compStructSize): make bitfields without (un)signed
2398         specifier unsigned
2399         * device/lib/time.c (mktime): fixed bug 1334315
2400
2401 2005-10-28 Raphael Neider <rneider AT web.de>
2402
2403         * device/include/pic/p16f_common.inc: added common declarations
2404         * src/pic/ralloc.c (initStack): moved regs *r to block start for Alpha
2405
2406 2005-10-27 Maarten Brock <sourceforge.brock AT dse.nl>
2407
2408         * src/mcs51/gen.c (getTempRegs): return 0 if not enough registers found,
2409           (aopPutUsesAcc): added to predict accumulator use,
2410           (assignResultValue): save acc if necessary,
2411           (genMinusDec): store result if indirectly addressed,
2412           (genDivOneByte):  save acc if necessary,
2413           (movLeft2Result): bugfix if left already in acc,
2414           (genAnd, genOr, genXor, shiftL2Left2Result, shiftR2Left2Result): pay more
2415             attention to accumulator use (esp. pdata),
2416           (genReceive): receive pdata correctly
2417         * src/SDCCicode.c (isOperandInPagedSpace): added to detect pdata operands
2418         * src/SDCCicode.h: added isOperandInPagedSpace prototype
2419
2420 2005-10-27 Raphael Neider <rneider AT web.de>
2421
2422         * doc/sdccman.lyx: corrected version (should be 2.5.4 not 2.5.5)
2423
2424 2005-10-27 Raphael Neider <rneider AT web.de>
2425
2426         * .version: changed version to 2.5.4
2427         * doc/sdccman.lyx: changed version to 2.5.4, added some remarks to PIC14
2428         * device/lib/pic/libsdcc/{_mulint.c,_mullong.c}: use unsigned literals,
2429           (_divschar.c,divuchar.c,_mulchar.c,_modschar.c,_moduchar): NEW,
2430             arithmetics support routines
2431         * device/lib/pic/Makefile.rules: have assembler sources preprocessed
2432         * device/lib/Makefile.in: also create installdir for pic
2433
2434         * src/SDCCopt.c (cnvToFcall): mark support routines `extern' for
2435           pic14 port as well
2436         * src/pic/device.c (dump_sfr): rewritten to delegate register
2437           placement to the linker (use `extern sym' rather than sym EQU addr),
2438           (validAddress): fixed to check last specified address
2439         * src/pic/gen.c (aopForSym): added code to deal with array (useless?),
2440           (popGetLit): truncate literal value to 8 bit,
2441           (popGet): moved assert to more appropriate place
2442           (popGetExternal): create pCode operand from and mark the according
2443             symbol as being `extern'
2444           (popGetAddr): added sanity check on immediate's offset, provide
2445             GPOINTER tag on demand
2446           (aopPut): fixed for immediates,
2447           (mov2w_op): move operand's address or contents to WREG (depending on
2448             operand type), safer variant of mov2w,
2449           (movwf,call_libraryfunc): NEW, handy abbreviations,
2450           (get_argument_pcop,get_return_val_pcop,pass_argument,
2451           get_returnvalue): interface for accessing function parameters and
2452             return values,
2453           (assignResultValuei,genRet): use new parameter/return value interface
2454           (pic14_getDataSize): back to old version handling generic pointers,
2455           (pic14_toBoolean,genNot,genCpl,genCmpEq,genOrOp): heavily rewritten,
2456             provided implementation and/or fixed old one,
2457           (genMultOneByte,genDivOneByte,genModOneByte): implemented as library
2458             calls, removed legacy 8051 reference code
2459           (AccLsh,AccRsh): rewritten and fixed to deal with signed operands
2460           (loadSignToC): NEW, move the operands sign bit to CARRY,
2461           (genGenericShift): NEW, replaces genLeftShift, genRightShift and
2462             genRightShiftSigned, accepts negative shift counts,
2463           (setup_fsr): load FSR and adjust IRP (indirect memory access),
2464           (emitPtrByteGet,emitPtrByteSet): rewritten, now works with
2465             generic pointers, __data pointers and __code pointers,
2466           (genUnpackBits,genPackBits): rewritten to work with generic pointers
2467             and signed bitfields, limit bitfields to 8 bit,
2468           (genDataPointerGet): fixed number of bytes read,
2469           (genGenPointerGet,genConstPointerGet): fixed bitfield access,
2470           (genPointerGet,genPointerSet): fixed handling of __code pointers,
2471             pointers to constant data are no longer assumed to point to __code
2472             space, removed invalid pointer types,
2473           (bitpatternFromVal): retrieve the PICs representation of an integer
2474             or float literal,
2475           (genDataPointerSet): fixed assigning to po_immediate operands,
2476           (genGenPointerSet): implemented as library call,
2477           (genIfx): fixed incorrect condition,
2478           (genAddrOf): limit generic pointers' addresses to 2 bytes,
2479             provide GPOINTER tag according to destination's storage class,
2480           (genCast): added code to handle casting to generic pointers, added
2481             sign-/zero extension of the result
2482           (aop_isLitLike,op_isLitLike): fixed handling of immediates
2483         * src/pic/gen.h: added macros to access IRP bit in STATUS register
2484         * src/pic/genarith.c (genAddLit): use min(result's,left's) size, sign
2485           extend the result
2486         * src/pic/glue.c (is_shared_address,is_shared): check whether a given
2487           address/register resides in the shared banks
2488           (emitSymbolToFile): improved to handle global and `pinned' symbols,
2489             put all variables into separate sections (have the linker arrange
2490             them)
2491           (picglue): put init code and interrupt handlers in separate sections
2492         * src/pic/main.c: added port specific options table, modified to PORT
2493           structure to make GPOINTERs 3 byte, added pic14_options
2494           (_pic14_do_link): private linking routine (update paths to libraries,
2495             add libsdcc.lib by default)
2496         * src/pic/main.h: declare pic14_options
2497         * src/pic/pcode.c: fixed instructions i/o relations,
2498           (RegCond): reverted to correct version,
2499           (newpCodeOpLit): truncate literals to 8 bit,
2500           (genericPrint): added debug output,
2501           (getRegFromInstruction): fixed for various operand types, simplified
2502           (BuildFlow): fixed broken handling of isntructions with labels
2503           (LinkFlow): start at last instruction in flow (skip trailing comments),
2504             pass the flow on to the next instruction after CALL
2505           (pCodeReplace): NEW, replace a pCode and move meta data to the new one
2506           (insertPCodeInstruction): fixed inserting after a skip instruction,
2507           (DoBankSelect): fixed for labeled instructions
2508           (OptimizepBlock): honor --nopeep switch
2509           (AnalyzeFlow,ReuseReg): prevent crash on source files with no function
2510         * src/pic/pcodepeep.c (pCodePeepMatchRule): prevent NULL pointer accesses
2511         * src/pic/pcoderegs.c (regIsLocal): NEW, check visibility of a register
2512           (pCodeOptime2pCodes): allow disabling this optimization via
2513             --no-pcode-opt due seldomly occuring bugs, fixed some conditions
2514             but is still buggy), started implementation of a dataflow based
2515             pCode optimization (CSE + dead code elimination)
2516           (pCodeRegMapLiveRangesInFlow): removed bogus inCond
2517         * src/pic/ralloc.c (initStack): renamed stack registers to STK%d, the new
2518           names are independant of the stack location and therefore portable across
2519           devices
2520
2521 2005-10-27 Maarten Brock <sourceforge.brock AT dse.nl>
2522
2523         * src/mcs51/ralloc.c (bitType): added to detect bit variables,
2524           (selectSpil): fixed bug 1337835 by not spilling bit variables
2525         * support/regression/tests/bug1337835.c: added test for this bug
2526         * src/mcs51/peeph.def: restart after rule 3.c,
2527           addded rules 263.x to optimize loading constants
2528
2529 2005-10-26 Raphael Neider <rneider AT web.de>
2530
2531         * src/SDCCsymt.c (compStructSize): allow signed bitfields for PIC ports
2532         * src/pic16/gen.c (genUnpackBits): support signed bitfields,
2533           (genAssign): emit warning when casting literals to generic pointer
2534             type, also applies when taking the address of a fixed variable,
2535           (genCast): improved casting to generic pointers
2536         * src/pic16/glue.c (pic16emitStaticSeg): fixed(?) handling of fixed
2537           extern variables, added verbose error message
2538         * device/include/pic16/{string.h,errno.h}: added #pragma library c
2539
2540 2005-10-26 Bernhard Held <bernhard AT bernhardheld.de>
2541
2542         * src/mcs51/gen.c (genMinus): fixed bug 1270906: reverse subtraction,
2543         carry must be complemented too
2544         * src/mcs51/peeph.def: addded rule 262 to remove double cpl c, which
2545         could be emitted by genMinus
2546         * src/SDCCval.c (constVal): fixed bug 1305065
2547
2548 2005-10-25 Bernhard Held <bernhard AT bernhardheld.de>
2549
2550         * src/SDCCast.c (addCast): added promotion for bit variables
2551         (decorateType): emit W_COMPLEMENT before the problem vanishes behind
2552         promotion casts + optimisation
2553         (optimizeGetWord): fix warning 'i' might be used uninitialized
2554         * src/mcs51/gen.c (genCpl): removed W_COMPLEMENT
2555         * src/ds390/gen.c (genCpl): removed W_COMPLEMENT
2556
2557 2005-10-24 Bernhard Held <bernhard AT bernhardheld.de>
2558
2559         * src/SDCCicode.c (ast2iCode): reverted to 1.224 because of regression:
2560         all chars are promoted to int; promotion should be handled in SDCCast.c
2561
2562 2005-10-15 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2563
2564         * device/lib/_strcmp.c: Fixed bug 1326457
2565
2566 2005-10-11 Raphael Neider <rneider AT web.de>
2567
2568         * device/lib/pic16/libio/i2c.ignore: added 1320, fixes broken builds
2569         * device/lib/pic16/libdev/pic18f1320.c: added 1320's device library
2570
2571 2005-10-05 Maarten Brock <sourceforge.brock AT dse.nl>
2572
2573         * src/SDCC.y (AT): fixed bug with sfr32 addresses when built with GCC
2574         * support/regression/tests/sfr16.c: added test for the sfr32 bug
2575
2576 2005-10-04 Raphael Neider <rneider AT web.de>
2577
2578         * device/include/pic16/pic18fregs.h, src/pic16/devices.inc,
2579           device/lib/pic16/pics.all: added pic18f1320
2580         * src/pic16/pcode.c (mnem2key): fixed prototype's argument mismatch
2581
2582 2005-09-30 Raphael Neider <rneider AT web.de>
2583
2584         * src/pic16/device.c (Pics16[]): moved device descriptions to devices.inc
2585         * src/pic16/devices.inc: NEW, provides device descriptions
2586         * src/pic16/gen.c (genInline): fixed handling of ';'-comments
2587
2588 2005-09-26 Maarten Brock <sourceforge.brock AT dse.nl>
2589
2590         * src/SDCCicode.c (operandOperation): added GETABIT, GETBYTE, GETWORD and
2591           GETHBIT
2592
2593 2005-09-25 Maarten Brock <sourceforge.brock AT dse.nl>
2594
2595         * doc/sdccman.lyx: updated Highest Order Bit documentation,
2596           documented Any Order Bit, Higher Order Byte and Higher Order Word
2597         * src/SDCC.y: added tokens GETABIT, GETBYTE, GETWORD
2598         * src/SDCCast.c (optimizeGetHbit): updated to also accept bool=expr&(1<<n),
2599           (optimizeGetAbit): new, to get any bit, not only the high bit,
2600           (optimizeGetByte): new, to get a byte from a (long) int: expr>>(8*n),
2601           (optimizeGetWord): new, to get a word from a long int: expr>>(8*n),
2602           (isConformingBody): also check GETABIT, GETBYTE, GETWORD,
2603           (decorateType): '&': also try GETABIT, GETBYTE, GETWORD optimization,
2604             RIGHT_OP: also try GETBYTE, GETWORD optimization,
2605             GETABIT, GETBYTE, GETWORD: decorate them,
2606           (isShiftRightLitVal, isBitAndPowOf2): new helper functions,
2607           (ast_print): added GETABIT, GETBYTE, GETWORD
2608         * src/SDCCcse.c (isSignedOp): added GETABIT, GETBYTE, GETWORD
2609         * src/SDCCicode.c (codeTable): added GETABIT, GETBYTE, GETWORD,
2610           (geniCodeBinary): new generic binary icode,
2611           (ast2iCode): added GETABIT, GETBYTE, GETWORD
2612         * src/port.h: updated comment for PORT.hasExtBitOp
2613         * src/mcs51/gen.c (genGetAbit): new, to get any single bit,
2614           (genGetByte): new, to get a single byte,
2615           (genGetWord): new, to get a word from a long,
2616           (gen51Code): added GETABIT, GETBYTE, GETWORD
2617         * src/mcs51/main.c (hasExtBitOp): added GETABIT, GETBYTE, GETWORD
2618
2619 2005-09-23 Raphael Neider <rneider AT web.de>
2620
2621         * configure.in, configure: have device/lib/pic configured
2622         * device/lib/Makefile.in: added model-pic14
2623         * device/lib/clean.mk: added pic/ to clean rule
2624         * device/lib/pic: added rudimentary pic14 library providing support
2625           functions for multiplication/division/generic pointer access
2626         * src/SDCCopt.c (convilong): mark support functions as extern
2627           for pic14 port as well
2628         * src/pic/gen.c (genMult): added assertions,
2629           (genpic14Code): emit warning on unhandled iCodes
2630         * src/pic/main.c (_hasNativeMulFor): return true only for 8x8 bit
2631         * src/pic/pcode.c (pCodeOpCopy),
2632         * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): fixed handling of various
2633           pCodeOpReg-subtypes (PO_{STATUS,INTCON,PCL,PCLATH,PCLATU,BSR,
2634           SFR_REGISTER}), made safe for future extensions
2635         * src/pic16/pcode.c (pic16_safepCodeUnlink): allow for removal of
2636           instructions even if preceeded by SKIP instructions (also remove
2637           them); removed unused code
2638         * src/pic16/pcode.h: added arg2 to pCodeOpLit to match pCodeOpLit2,
2639           prevents leaving parts of the structure uninitialized after copying
2640
2641 2005-09-22 Maarten Brock <sourceforge.brock AT dse.nl>
2642
2643         * src/mcs51/gen.c (genMinus): fix for undetected bug introduced 3 months
2644           ago by me
2645         * support/regression/tests/addsub.c: added test for the bug
2646
2647 2005-09-21 Raphael Neider <rneider AT web.de>
2648
2649         * device/include/pic16/pic18f1220.h,
2650           device/lib/pic16/libdev/pic18f1220.c: added ECCPAS sfr and bitfield
2651         * device/lib/pic16/Makefile.rules: added missing opening paren
2652         * src/pic16/gen.c (pic16_genNot,pic16_genCpl): removed as these
2653           are provided in genutils.c,
2654           (genUminusFloat,genUminus,genCmpEq): added asserts on different
2655           operand/result sizes,
2656           (genCmp): assert on NULL pointers first, then check deref'ed values
2657         * src/pic16/genutils.c (pic16_genCpl): fixed for different operand/
2658           result size
2659
2660 2005-09-18 Raphael Neider <rneider AT web.de>
2661
2662         * src/pic16/gen.c (genFarPointerGet,genFarPointerSet): removed
2663           as these are now unused,
2664           (genPointerGet,genPointerSet): handle FPOINTERs like POINTERs
2665         * src/pic16/pcode.c (pic16_symIsSpecial): assume REG_TMPs to be
2666           local, avoids uninitialized pointer dereference on r->name
2667         * src/pic16/ralloc.c (newReg): fixed indentation
2668
2669 2005-09-13 Maarten Brock <sourceforge.brock AT dse.nl>
2670
2671         * src/SDCCval.c (constVal): fixed bug 730366
2672         * support/Util/SDCCerr.c,
2673         * support/Util/SDCCerr.h: added warning W_INVALID_INT_CONST
2674
2675 2005-09-10 Maarten Brock <sourceforge.brock AT dse.nl>
2676
2677         * as/mcs51/lkmem.c (summary2): fixed report for absolute areas (bug 1210220)
2678
2679 2005-09-09 Maarten Brock <sourceforge.brock AT dse.nl>
2680
2681         * src/mcs51/peeph.def (241.x): fixed bug when comparing generic pointers
2682
2683 2005-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
2684
2685         * as/hc08/lkaomf51.c (OutputName): made name unsigned char,
2686           (hex2dec): made hex_digit unsigned char, removed ascii dependance
2687         * as/mcs51/lkaomf51.c (OutputName): made name unsigned char,
2688           (hex2dec): made hex_digit unsigned char, removed ascii dependance
2689         * as/mcs51/lkarea.c (lnkarea2): sort absolute areas to the front
2690         * packihx/packihx.c (hexDigit): made c unsigned char
2691         * as/mcs51/lklibr.c (fndsym),
2692         * link/z80/lkgb.c (gb),
2693         * link/z80/lklibr.c (fndsym),
2694         * link/z80/lkrloc.c (relr),
2695         * sim/ucsim/libltdl/ltdl.c (load_deplibs, try_dlopen),
2696         * src/SDCC.lex (checkCurrFile, process_pragma),
2697         * src/SDCCglue.c (spacesToUnderscores),
2698         * src/SDCCmain.c (setParseWithComma, processFile),
2699         * src/asm.c (tvsprintf, printCLine),
2700         * src/avr/gen.c (emitcode, aopPut),
2701         * src/ds390/gen.c (emitcode),
2702         * src/hc08/gen.c (emitcode, emitinline),
2703         * src/mcs51/gen.c (emitcode, genInline),
2704         * src/pic/pcodepeep.c (cvt_extract_destination, cvt_extract_status,
2705           tokenizeLineNode),
2706         * src/pic/ralloc.c (debugLog),
2707         * src/pic16/pcodepeep.c (cvt_extract_destination, cvt_extract_status,
2708           tokenizeLineNode),
2709         * src/pic16/ralloc.c (debugLog),
2710         * src/z80/main.c (_process_pragma):
2711            made all ctype.h function calls safe
2712         * src/SDCCopt.c: include math.h for fabs
2713         * src/SDCCpeeph.c: added macros ISCHARDIGIT, ISCHARSPACE and ISCHARALNUM
2714           and used them throughout the code to make ctype.h function calls safe
2715         * src/ds390/main.c (asmLineNodeFromLineNode),
2716         * src/mcs51/main.c (asmLineNodeFromLineNode): made p unsigned char*
2717         * src/pic/gen.c (DEBUGpic14_emitcode, pic14_emitcode): made lbp
2718            unsigned char*
2719         * src/pic/pcode.c (mnem2key): made mnem unsigned char*,
2720           (newpCodeAsmDir): made ctype.h function calls safe
2721         * src/pic16/gen.c (pic16_emitpcomment, DEBUGpic16_emitcode,
2722           pic16_emitcode):  made lbp unsigned char*
2723         * src/pic16/pcode.c (mnem2key): made mnem unsigned char*,
2724           (pic16_newpCodeAsmDir): made ctype.h function calls safe
2725         * src/xa51/gen.c (emitcode),
2726         * src/z80/gen.c (_emit2): made lbp unsigned char*
2727         * support/Util/MySystem.c (split_command): made cmd_line and p unsigned
2728            char*
2729
2730 2005-09-05 Raphael Neider <rneider AT web.de>
2731
2732         * src/pic16/ralloc.c (pic16_allocDirReg): use device specific
2733           access bank splitpoint
2734
2735 2005-09-05 Raphael Neider <rneider AT web.de>
2736
2737         * device/lib/pic16/libc/Makefile: added (missing) string to SUBDIRS
2738
2739 2005-09-03 Maarten Brock <sourceforge.brock AT dse.nl>
2740
2741         * .version: changed to version 2.5.3
2742         * doc/sdccman.lyx: changed version to 2.5.3,
2743           documented --codeseg and --constseg and pragma codeseg and constseg,
2744           documented bit parameters (reentrant) and bit returning
2745         * src/SDCCicode.c (geniCodeReceive): fixed (possible) bug generating
2746            currFunc->recvSize, but is this ok for all ports?
2747           (ast2iCode): result of ~ on unsigned char must be cast to int for
2748            bool to work
2749         * src/SDCCmem.c (allocGlobal, allocLocal): don't put bit returning
2750           function pointers in bit space
2751         * src/SDCCsymt.c (checkSClass): allow bit returning function pointers,
2752           (processFuncArgs): call port.reg_parm() with reentrancy info
2753         * src/port.h,
2754         * src/avr/main.c,
2755         * src/ds390/main.c,
2756         * src/hc08/main.c,
2757         * src/pic/main.c,
2758         * src/pic16/main.c,
2759         * src/xa51/main.c,
2760         * src/z80/main.c: port.reg_parm prototype extended with
2761           "bool reentrant" parameter
2762         * src/mcs51/main.c (_mcs51_regparm): use parameter reentrant instead of
2763           options.stackAuto for allocating bit register parameters
2764         * src/mcs51/gen.c (genNot): optimized complementing direct bit,
2765           (genSend): set BitBankUsed if it is,
2766           (selectRegBank): factored out of genCall for use in genPcall,
2767           (genCall): removed redundant dtype assignmen, use selectRegBank,
2768           (genPcall): handle returning in Carry properly, save in F0 if needed,
2769           (genReceive): handle bit register parameters
2770         * src/mcs51/ralloc.c (updateRegUsage): update BitBankUsed along the way,
2771           (mcs51_assignRegisters): enable bit registers for all reentrant
2772            functions and don't set BitBankUsed unconditionally
2773         * src/mcs51/peeph.def (177.d): fixed bug if %2==%3
2774         * support/regression/tests/bitvars.c: enable tests for SDCC_STACK_AUTO
2775         * support/regression/tests/funptrs.c: added tests for BOOL and for return
2776
2777 2005-08-27 Borut Razem <borut.razem AT siol.net>
2778
2779         * device/lib/Makefile.in: cp on sparc-solaris (SunOS) and on
2780         ppc-osx (Darwin) does not support -u option. It seems that it is
2781         supported only on Linux - GNU cp
2782
2783 2005-08-25 Borut Razem <borut.razem AT siol.net>
2784
2785         * sim/ucsim/gui.src/serio.src/Makefile.in,
2786           sim/ucsim/s51.src/Makefile.in, sim/ucsim/avr.src/Makefile.in,
2787           sim/ucsim/z80.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
2788           sim/ucsim/xa.src/Makefile.in: install -s changed to 2 steps:
2789           install and strip, since the strip at /usr/ccs/bin should be used
2790           on solaris
2791
2792 2005-08-24 Borut Razem <borut.razem AT siol.net>
2793
2794         * clean.mk, device/lib/clean.mk: find on sparc-solaris does not support -maxdepth option
2795
2796 2005-08-23 Bernhard Held <bernhard AT bernhardheld.de>
2797
2798         * src/SDCCopt.c (convertToFcall): fixed modulus with divisors 1 and
2799         ffffffffu
2800
2801 2005-08-23 Maarten Brock <sourceforge.brock AT dse.nl>
2802
2803         * as/mcs51/aslink.h: completed lkrloc.c prototypes
2804         * as/mcs51/lkmain.c (link_main): fixed warning
2805         * device/include/stdbool.h: ds390 has no advanced bit support yet
2806         * src/SDCC.y: use SPEC_SHORT and renamed _signed to b_signed
2807         * src/SDCCsymt.c: use SPEC_SHORT and renamed _signed to b_signed
2808         * src/SDCCsymt.h (struct specifier): renamed _xxx bitfields to b_xxx
2809           and updated their macros
2810         * src/SDCCval.c (constVal): updated comment for renamed b_long
2811
2812 2005-08-22 Maarten Brock <sourceforge.brock AT dse.nl>
2813
2814         * as/mcs51/asdata.c: changed ctype['['] to BINOP
2815         * as/mcs51/asexpr.c (expr): added case '[' for bit access in bdata,
2816           (term): abused bit 15 of s_addr to indicate bit-addressable bytes,
2817           (oprio): set priority for '['
2818         * as/mcs51/aslink.h: added define R_BIT, and prototypes for adb_bit
2819            and adb_24_bit
2820         * as/mcs51/asm.h: added defines R_BIT and S_BIT
2821         * as/mcs51/lkarea.c (lnksect2): use T for seg BIT_BANK and overlay it
2822         * as/mcs51/lkdata.c: changed ctype['['] to BINOP
2823         * as/mcs51/lkmain.c (Areas51): rel2 contains 12 (=C) areas now,
2824           added overlayable BIT_BANK area
2825         * as/mcs51/lkmem.c (summary): add BIT_BANK to BSEG_BYTES in the report,
2826           (summary2): explain 'T' in legenda
2827         * as/mcs51/lkrloc.c: replaced old K&R style,
2828           (relr): added R_BIT processing,
2829           (errmsg): added "Bit-addressable relocation error",
2830           (adb_bit): added for converting from byte- to bit-addressable space,
2831           (adb_24_bit): added for converting from byte- to bit-addressable space
2832         * device/include/stdbool.h: changed BOOL to __bit for mcs51 as it can be
2833            used in reentrant functions now even as return value
2834         * device/lib/_gptrput.c (_gptrput): removed obsolete code
2835         * src/SDCCast.c (resultTypePropagate): also propagate AND_OP and OR_OP,
2836           (decorateType): case '!', GETHBIT, AND_OP, OR_OP: result in bool or char
2837         * src/SDCCglobl.h: added indicator BitBankUsed
2838         * src/SDCCglue.c (glue): emit area BIT_BANK with byte 'bits' and equ's for
2839            the bit registers b0-b7
2840         * src/SDCCicode.c (operandFromSymbol): removed IS_BITVAR check,
2841           (geniCodeCast): fixed bug 1263853,
2842           (geniCodeLogicAndOr): put result in bool or char,
2843           (geniCodeReceive): added parameter func for accessing the return type,
2844           (geniCodeFunctionBody): pass func to geniCodeReceive
2845         * src/SDCCmain.c: added indicator BitBankUsed
2846         * src/SDCCmem.c (allocLocal): explicitly set sclass for V_BIT
2847         * src/SDCCsymt.c (newBoolLink): added for creating a bool/bit,
2848           (checkSClass): don't put automatic bool/bit on stack,
2849           (checkFunction): removed check on function cannot return bit
2850         * src/SDCCsymt.h: added newBoolLink prototype
2851         * src/mcs51/gen.c (rb1regs): added bit registers,
2852           (movc): created for assigning to carry,
2853           (pushReg, popReg): created for pushing registers,
2854           (sameRegs): check both AOP_REG and AOP_CRY types,
2855           (aopOp): handle bit registers,
2856           (aopPut): optimization no self-assign,
2857           (saveRegisters): push reg->base (bits) only once for bit registers,
2858            and use pushReg,
2859           (unsaveRegisters): pop reg->base only once and use popReg,
2860           (assignResultValue): added parameter func and return in carry for bits,
2861           (genIpush): optimization no reload in A if not changed,
2862           (genSend): bit parameters in reentrant functions are passed in bit
2863            registers by first assigning to bits in B, then save registers and
2864            copy B to bits,
2865           (genCall): handle returning in Carry properly, save it in F0 if needed,
2866           (genPcall): updated assignResultValue call, this is not safe yet for bit
2867            returning function !!!
2868           (genFunction): don't generate equ's for bit registers and use pushReg,
2869           (genEndFunction): take care of bit returning functions and use popReg,
2870           (genRet): return bit in Carry,
2871           (genIfx): optimize bit registers and other directly addressable bits,
2872           (genReceive): updated assignResultValue call
2873         * src/mcs51/main.c (_mcs51_reset_regparm): added regBitParmFlg,
2874           (_mcs51_regparm): allow passing of upto 8 bit parameters in bit
2875            registers when using stack-auto
2876         * src/mcs51/ralloc.c (_G): added allBitregs,
2877           (regs8051): added the bit registers,
2878           (createStackSpil): use macro IS_BIT,
2879           (getRegBit): added to allocate a bit register, else spill,
2880           (getRegBitNoSpil): added to allocate a bit register, else a gpr,
2881           (updateRegUsage): factored out to ease stepping while debugging,
2882           (serialRegAssign): use updateRegUsage, only spill bits if necessary,
2883            also allocate bit registers,
2884           (fillGaps): handle bit registers,
2885           (findAllBitregs): added to create bit vector with all bit registers,
2886           (mcs51_allBitregs): returns this bit vector,
2887           (mcs51_assignRegisters): when using stack-auto use bit registers for
2888            passing parameters and creating local variables
2889         * src/mcs51/ralloc.h: added B0_IDX..B7_IDX and prototype mcs51_allBitregs
2890
2891 2005-08-22 Borut Razem <borut.razem AT siol.net>
2892
2893         * device/lib/Makefile.in: replaced find option -or with -o
2894           to make it run on solaris
2895
2896 2005-08-22 Raphael Neider <rneider AT web.de>
2897
2898         * src/pic16/gen.c (pic16_loadFromReturn): added check for AOP_PCODE,
2899           fixes #1265442 (crash on Solaris)
2900
2901 2005-08-20 Borut Razem <borut.razem AT siol.net>
2902
2903         * configure, configure.in: added tests for libsocket and libnsl libraries,
2904           requred by sdcdb on sparc-solaris; generate support/regression/Makefile
2905           from support/regression/Makefile.in
2906         * support/regression/Makefile.in: added
2907         * device/lib/pic16/Makefile.common.in: force make to use bash shell
2908         * sim/ucsim/libtool: regenerated on sparc-solaris
2909         * sim/ucsim/avr.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
2910           sim/ucsim/s51.src/Makefile.in, sim/ucsim/xa.src/Makefile.in,
2911           sim/ucsim/z80.src/Makefile.in: removed GNU ld specific linker options
2912           -Wl,--start-group and -Wl,--end-group to enable ucsim compilation on
2913           sparc-solaris, which doesn't use GNU ld linker
2914         * device/lib/Makefile.in: cp on sparc-solaris (SunOS) does not support -u option
2915         * as/Makefile: find on sparc-solaris does not support -maxdepth option
2916
2917 2005-08-19 Maarten Brock <sourceforge.brock AT dse.nl>
2918
2919         * src/mcs51/peeph.def: updated comments
2920
2921 2005-08-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2922
2923         * device/lib/_gptrget.c,
2924         * device/lib/_gptrput.c: slightly shorter
2925         * doc/sdccman.lyx: incremented version
2926         * src/mcs51/peeph.def: moved peephole comments to the line of first
2927           change to better keep line correlation, reanimated 186.e
2928         * src/mcs51/peeph.def: renamed similar peepholes by using suffixes
2929
2930 2005-08-16 Slade Rich <slade_rich AT users.sourceforge.net>
2931
2932         * src/pic/pcode.c : Pasted ".line" assembly directives patch from
2933           David Saxton with quotes around file name.
2934
2935 2005-08-15 Borut Razem <borut.razem AT siol.net>
2936
2937         * support/regression/tests/bitfields.c, support/regression/tests/bitvars.c,
2938           support/regression/tests/bitwise.c, support/regression/tests/literalop.c,
2939           support/regression/tests/rotate.c, support/regression/tests/zeropad.c:
2940           make tests run on x86_64 platform
2941
2942 2005-08-13 Raphael Neider <rneider AT web.de>
2943
2944         * device/lib/pic16/Makefile.subdir: weakened clean-intermediate rule
2945           as it might be executed DURING a build (parallel make is wonderful)
2946
2947 2005-08-13 Raphael Neider <rneider AT web.de>
2948
2949         * device/lib/Makefile.in (port-specific-objects-pic16):
2950           revert to cp $(PORT)/bin/*.* $(PORTDIR)
2951         * device/lib/pic16/Makefile: added .PHONY targets, removed builddir
2952           dependency
2953         * device/lib/pic16/Makefile.rules: build subdirs before creating
2954           the library, removed builddir rule, create $(builddir) early in
2955           recurse rule, use empty recurse rule for leaf directories
2956         * device/lib/pic16/Makefile.subdir: added phony targets, ignore
2957           mkdir errors (race condition), removed duplicate suffix "hex"
2958           from clean rules
2959         * device/lib/pic16/libdev/Makefile: recursive make via + and $(MAKE)
2960         * device/lib/pic16/libio/Makefile: create sub-make's builddir early,
2961           prevents mkdir -p from aborting on Alpha
2962
2963 2005-08-12 Raphael Neider <rneider AT web.de>
2964
2965         * src/pic16/glue.c (pic16_print(G)PointerType): do not flush
2966           db-statements in order to allow for arrays of pointers in code
2967           sections to be placed without interspersed 0-padding, fixes
2968           bug #1256215
2969         * (emitStatistics): fixed division by zero for pic18f1220
2970         * src/pic16/pcode.c: buffer (up to) 12 DB directives to allow for
2971           unpadded writing of 8-bit, 16-bit, 24-bit and 32-bit values
2972         * (pic16_emitDS): respect DB_ITEMS_PER_LINE
2973         * (pic16_pCodeConstString): keep track of already emitted string
2974           literals to prevent "duplicate definitions of symbol _str_NR"
2975         * src/pic16/ralloc.c (pic16_allocRegByName): removed not so helpful
2976           debug message
2977         * device/lib/Makefile.in: ignore failing PIC16 library builds
2978         * device/lib/pic16/Makefile: do not build if gputils are missing
2979         * device/lib/pic16/Makefile.common.in: do not enforce MAKEFLAGS=-s
2980
2981 2005-08-10 Raphael Neider <rneider AT web.de>
2982
2983         * device/lib/Makefile.in: fixed copying pic16 libraries (broken by
2984           my last commit)
2985
2986 2005-08-10 Raphael Neider <rneider AT web.de>
2987
2988         * src/*.c, src/pic16/{gen.c,glue.c,main.c}: applied Vangelis
2989           Rokas' patch to add the new fixed point type "__fixed16x16"
2990         * device/lib/pic16/libsdcc/fixed16x16: added Vangelis' support
2991           functions for __fixed16x16 arithmetics
2992         * device/lib/pic16: reimplemented the build system to support
2993           a separate build directory, better handling of libio (create
2994           the library in a separate subdir for each architecture) and
2995           easier configuration (centralized in Makefile.common)
2996
2997 2005-08-07 Raphael Neider <rneider AT web.de>
2998
2999         * src/pic16/gen.c (genrshTwo): fixed sign extension
3000         * src/pic16/device.c: added pic18f2320, 4220 and 4320
3001         * device/include/pic16/pic18f2220.h: changed some bit definitions,
3002           added T0CONbits
3003         * device/include/pic16/pic18f4220.h: NEW, header for
3004           pic18f4220 and pic18f4320
3005         * device/include/pic16/pic18fregs.h: added new devices,
3006           embraced Nop(), ClrWdt(), Sleep() and Reset() with do {} while(0)
3007         * device/include/pic16/signal.h: resolved name clashes
3008           on bit definitions, added DEF_HANDLER2(sig1,sig2,handler)
3009           to also allow testing for interrupt enable bits, added
3010           comments on how to use the macros
3011         * device/lib/pic16/libdev/pic18f2220.c: added T0CONbits
3012         * device/lib/pic16/libdev/pic18f{2320,4220,4320}.c: NEW,
3013           register definitions for the devices
3014         * device/lib/pic16/pics.all: added new devices
3015         * device/lib/pic16/libc/stdlib/calloc.c: fixed zeroing
3016           allocated memory
3017         * device/lib/pic16/libc/stdlib/memfree: do not count
3018           the block header as free memory
3019         * device/lib/pic16/libc/stdlib/memmisc.c (_initHeap):
3020           simplified and added missing end-of-blocklist-marker
3021           (reported by Peter Onion, fixes #1252814)
3022         * (_mergeHeapBlock): fixed loop condition
3023         * device/lib/pic16/libc/stdlib/realloc.c: return NULL for
3024           len==0, restructured code
3025         * device/lib/pic16/libc/stdlib/{malloc,memfreemax}.c: cleaned
3026           up a bit, reduced bitfield accesses, prevent endless loops
3027           in case of heap corruption
3028         * device/lib/pic16/libc/stdlib/x_ftoa.c: disabled
3029           "unreferenced arguments/must return a value" warnings
3030         * device/lib/pic16/libio/usart/ubaud.c (usart_baud):
3031           replaced BAUDREG with SPBRG
3032         * device/lib/pic16/libsdcc/lregs/{lrrest.c,lrst.c},
3033           device/lib/pic16/debug/gstack/gstack.c: replaced
3034           _naked, _asm, _endasm with __naked, __asm, __endasm
3035
3036 2005-08-05 Raphael Neider <rneider AT web.de>
3037
3038         * src/pic16/gen.c (pic16_aopGet): fixed handling of offsets in
3039           AOP_PCODE operands, fixes multibyte union-bitfield-accesses
3040
3041 2005-08-05 Borut Razem <borut.razem AT siol.net>
3042
3043         * device/lib/Makefile.in: added missing ';'
3044         * configure: removed ^M characters
3045
3046 2005-08-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3047
3048         * device/include/mcs51/at89c51ed2.h, device/include/mcs51/p89v51rd2.h,
3049           device/include/mcs51/at89s53.h: changed to GNU Lesser General Public
3050           License
3051
3052 2005-08-04 Borut Razem <borut.razem AT siol.net>
3053
3054         * configure.in: pic16 libraries build 2nd try - enable running
3055           configure in device/lib/pic16
3056         * configure: regenerated from configure.in
3057         * device/lib/Makefile.in: create $(PORT)/bin directory
3058
3059 2005-08-03 Raphael Neider <rneider AT web.de>
3060
3061         * src/pic16/gen.c (pic16_derefPtr): NEW, single place
3062           to get/set values via pointers
3063         * (genUnpackBits,genPackBits): changed detection of
3064           ptr->bitfield vs. sym.bitfield, fixed access via generic
3065           pointers, removed dead (wrong) code for multibyte bitfields
3066         * (genNearPointerGet, genGenPointerGet): removed useless code,
3067           fixed bitfield detection, fixes #1250594
3068         * (genNearPointerSet): removed useless code
3069         * src/pic16/gen.h: renamed pic16_emitpcode to pic16_emitpcode_real
3070           and introduced macro pic16_emitpcode that conditionally emits
3071           the origin of the following pCode (useful for debugging SDCC)
3072         * src/pic16/pcode.c: changed (and disabled) some debug outputs
3073         * (createDefmap): fixed handling of LFSR for --optimize-df
3074
3075 2005-08-02 Borut Razem <borut.razem AT siol.net>
3076
3077         * device/lib/Makefile.in: pic16 libraries build enabled since
3078           gputils-0.13.2 are now localy installed at sourceforge's compile farm
3079
3080 2005-08-02 Raphael Neider <rneider AT web.de>
3081
3082         * src/pic16/gen.c (genPackBits): removed deprecated warning
3083         * (genGenPointerSet): fixed bitfield detection
3084
3085 2005-08-02 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3086
3087         * device/include/mcs51/msm8xc154s.h: Removed PT2 definition, now in 8052.h.
3088
3089 2005-07-31 Raphael Neider <rneider AT web.de>
3090
3091         * device/lib/pic16/libdev/pic18f458.c,
3092           device/include/pic16/pic18f458.h: added missing T0CONbits
3093
3094 2005-07-29 Maarten Brock <sourceforge.brock AT dse.nl>
3095
3096         * device/include/mcs51/msm8xc154s.h: added, thanks to Matthias Arndt
3097
3098 2005-07-28 Maarten Brock <sourceforge.brock AT dse.nl>
3099
3100         * src/mcs51/gen.c (operandsEqu): fixed bug 1246687
3101
3102 2005-07-23 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3103
3104         * device/include/mcs51/at89c51ed2.h: added.
3105
3106 2005-07-23 Raphael Neider <rneider AT web.de>
3107
3108         * src/pic/gen.h: added emitpcode macro for debugging
3109         * src/pic/gen.c (emitpcode): renamed to emitpcode_real
3110           and replace by macro adding debug information on demand
3111         * (genNot): fixed to C semantics (!0 = 1; !x = 0 iff x != 0)
3112         * (gencjne): tried to fix; replaced with correct (slower) code
3113         * (gen{Unp,P}ackBits): fixed single bit access
3114         * src/pic/pcode.c (AnalyzepCode): fixed DFPRINTF argument
3115         * src/pic/pcodepeep.c (pCodeSearchCondition): fixed finding
3116           previous instruction
3117         * src/pic/pcoderegs.c (regIsSpecial): NEW, check whether a
3118           register has to be handled with care (forbidding movement
3119           of assignments/uses, removing assignments completely, ...)
3120         * (pCodeOptime2pCodes): make use of regIsSpecial
3121         * added lots of debugging output (commented out)
3122         * src/pic/rallloc.c (deassignLRs): prevent operand registers
3123           from being reused as result UNLESS it is known to work
3124
3125 2005-07-23 Maarten Brock <sourceforge.brock AT dse.nl>
3126
3127         * support/Util/dbuf.h: include <stddef.h> for size_t
3128         * .version: changed to version 2.5.2
3129
3130 2005-07-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3131
3132         * src/SDCCloop.c (loopInvariants): fixed bug #1234048
3133
3134 2005-07-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3135
3136         * src/hc08/gen.c (genMinus): fixed bug #1241835,
3137           (genModOneByte): removed needless psha/pula
3138
3139 2005-07-22 Raphael Neider <rneider AT web.de>
3140
3141         * src/SDCCmain.c (linkEdit): initialized linkerScriptFileName,
3142           have PIC14 handled like PIC16, fixes broken pic14 linker calls
3143         * src/pic/gen.c (resolveIfx): do not "invent" labels
3144         * (genSkipc): changed to positive logic
3145         * (genSkipCond): removed as no longer needed
3146         * (pic14_mov2w_regOrLit,genCmp): NEW, replacement for buggy version,
3147           backport from PIC16
3148         * (genLeftShift): check operands are in different registers
3149         * src/pic/genarith.c (genPlus): replaced INCF with ADDLW as
3150           INCF does not update CARRY...
3151         * src/pic/main.c: fixed _linkCmd
3152         * src/pic/pcode.c (unlinkpCode): added inactive code
3153         * src/pic/ralloc.c (deassignLRs): keep arguments to shift operations
3154           alive (do not assign result and operand overlapping registers)
3155
3156 2005-07-22 Raphael Neider <rneider AT web.de>
3157
3158         * src/pic/device.c (dump_sfr): replaced register declaration with
3159           call to emitSymbolToFile() to avoid duplicate symbols
3160         * (assignRelocatableRegisters): do not declare external symbols
3161         * src/pic/ralloc.c (allocNewDirReg): fixed to get size of arrays
3162           right (take size of type, not etype)
3163         * (allocDirReg): fixed call to allocNewDirReg() to pass OP_SYM_TYPE
3164         * (writeUsedRegs): also dump dynDirectRegs (e.g. local variables)
3165         * (packRegsForAccUse): disabled assignment of WREG as
3166           the result reg to prevent occurence of just fixed #1235003,
3167           fixes #1242954
3168         * src/pic/glue.c (emitSymbolToFile): NEW, central place to declare
3169           symbols (avoids duplicate symbols in .asm file)
3170         * (pic14emitRegularMap): use emitSymbolToFile()
3171         * src/pic/gen.c (aopOp): fixed spillLocation handling
3172         * (gen{Unp,P}ackBits): fixed acquiring bit-operands
3173         * (genDataPointerSet): removed unneccessary variables/output
3174
3175 2005-07-22 Maarten Brock <sourceforge.brock AT dse.nl>
3176
3177         * as/mcs51/lkarea.c: enlarged codemap for banked memory
3178         * device/lib/mcs51/crtbank.asm: added # to 0x0F
3179
3180 2005-07-21 Raphael Neider <rneider AT web.de>
3181
3182         * src/pic/gen.c (aopOp): do not generate AOP_ACC operands as pic14
3183           architecture cannot handle them efficiently, fixes bug #1235003
3184         * src/pic16/device.c (pic16_dump_{u,i}section,pic16_dump_int_registers):
3185           check for empty sets before using them (fixes bug #1232190)
3186
3187 2005-07-19 Maarten Brock <sourceforge.brock AT dse.nl>
3188
3189         * as/mcs51/lkarea.c (lnkarea, lnkarea2): improved BSEG size calculation,
3190           (lnksect2): generate warnings for memory overlap
3191         * src/SDCC.lex (doPragma, process_pragma): added pragma's codeseg and
3192           constseg to set the name of these segments so you can instruct the linker
3193           to place them in banks
3194         * src/SDCCast.c (decorateType): use new macro IS_FUNCPTR()
3195         * src/SDCCglobl.h: added MODEL_HUGE to enum,
3196           added code_seg and const_seg to options
3197         * src/SDCCglue.c (emitMaps): use options.const_seg,
3198           (createInterruptVect): put interrupt vectors in segment HOME,
3199           (glue): put HOME before static segment and put the main glue in HOME,
3200           (glue): use options.code_seg
3201         * src/SDCCicode.c (geniCodeCall): use new macro IS_FUNCPTR()
3202         * src/SDCCmain.c: added option --codeseg and --constseg to set the name of
3203           these segments so you can instruct the linker to place them in banks
3204           (linkEdit): use code_loc for HOME segment which should be the first
3205           segment in code memory now
3206         * src/SDCCmem.c: fixed more stuff like bug 1238386
3207         * src/SDCCsymt.c (getSize): use generic pointer size for banked functions,
3208           (changePointer): don't change function pointers to code pointers for
3209           banked functions,
3210           (compareType): added exceptional check for banked function pointers
3211         * src/SDCCsymt.h: changed IFFUNC_ISBANKEDCALL, added IS_FUNCPTR
3212         * src/hc08/main.c (_hc08_genAssemblerPreamble): put HOME first, put CSEG
3213           after static in code memory
3214         * src/mcs51/gen.c: added aopLiteralLong prototype,
3215           (aopForSym): use getSize for functions,
3216           (genCall): generate banked calls over one trampoline __sdcc_banked_call
3217           in HOME with lsb of address in r0, msb in r1 and bank in r2, use
3218           -Wl-bBANKSEG=0xbbaaaa option to set the address (aaaa) and bank (bb) of
3219           the segment,
3220           (genPcall): use call for literal function pointers and generate banked
3221           calls over the one trampoline so there's only one place for the user to
3222           modify according to his/hers hardware,
3223           (genEndFunction): jump to __sdcc_banked_ret in HOME for banked functions,
3224           (genPlusIncr): moved check icount>4 beyond inc dptr optimization
3225         * src/mcs51/main.c: added keyword banked,
3226           (_mcs51_genExtraAreas): put HOME first followed by GSINIT, STATIC and CSEG
3227         * support/Util/SDCCerr.c,
3228         * support/Util/SDCCerr.h: added E_BANKED_WITH_CALLEESAVES, registers are
3229           needed for passing the bank and address to the trampoline
3230         * device/lib/mcs51/crtbank.asm: added for bankswitching
3231         * device/lib/mcs51/Makefile: added crtbank
3232
3233 2005-07-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3234
3235         * src/SDCCcse.c (algebraicOpts): fixed loss of volatility
3236           for fields at offset 0 of a struct or union as reported
3237           on 2005-07-07 in the developer mailing list.
3238
3239 2005-07-15 Maarten Brock <sourceforge.brock AT dse.nl>
3240
3241         * src/SDCCmem.c: fixed bug 1238386
3242
3243 2005-07-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3244
3245         * src/mcs51/peeph.def: added labelrefcounting for peepholes
3246           (patch #1144962), added peephole 300, enabled 259.x
3247         * doc/sdccman.lyx: removed screenshot and provided link instead
3248
3249 2005-07-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3250
3251         * doc/sdccman.lyx: added section about debugging with ddd
3252         * doc/figures/ddd_example.eps: screenshot of debugging session
3253
3254 2005-07-04 Raphael Neider <rneider AT web.de>
3255
3256         * src/pic/gen.c (genPointerGet): handle pointers to CONST values
3257           like CODE pointers, fixes #1115683
3258         * src/pic/pcode.c (DoBankSelect): forget LastRegIdx during function
3259           call, fixes bugs #1232211, #1228110,
3260           fixed wrong casts to pCodeFlow from pCodeInstructions
3261
3262 2005-07-04 Raphael Neider <rneider AT web.de>
3263
3264         * src/pic/gen.c (popGet): changed assert to allow for
3265           bit operands
3266         * (popGetAddr): changed signature to provide
3267           an additional index, patched all call sites
3268         * (genCmpEq): handle literal-like operands correctly
3269         * (genAddrOf): added sanity checks on __code/__data pointers
3270         * (genAssign): added handling of symbols from __code section
3271         * (gencjne): do not generate code for comparisons whose result
3272           is neither stored nor used, fixes bug #1171114
3273         * (AccLsh, AccRsh): operate on operand instead of WREG
3274         * (shift{Left,Right}_Left2ResultLit): NEW, size independant
3275           replacement for Shift{LR}{12}Left2Result; shift (byte/int/long)
3276           by known count
3277         * rewrote complete shift-by-literal logic, commented unused
3278           functions out
3279         * (genConstPointerGet): get multiple bytes (if result size > 1),
3280           fixed handling of non-immediate addresses
3281         * (genPointerGet): handle CODE pointers like CONST pointers
3282         * (genpic14Code): insert C-SRC lines as Cource-pCodes
3283         * ({aop,op}_isLitLike): NEW, single place to decide whether an
3284           operand is to be treated as a literal or not
3285         * (mov2w,genPcall,genCmpEq),
3286           src/pic/genarith.c: use aop_isLitLike() to decide between
3287           literal/register contents
3288         * (addSign): added missing offset
3289         * src/pic/gen.h: remove newline after FENTRY/FEXIT comments,
3290           only emit comment in debug-mode,
3291           use {aop,op}_isLitLike throughout the file
3292         * src/pic/glue.c: fix initializers for pointers (work in progress)
3293         * src/pic/pcode.c (get_op): honor index on _const symbols
3294         * ({reset,dump}pCodeStatistics): NEW, estimate code size
3295         * (dumppBlock): added pCode size estimation
3296         * src/pic/ralloc.c (deassignLRs,serialRegAssign,packRegisters):
3297           check for IS_SYMOP before OP_SYMBOL'ing
3298         * fixed indentation, compacted switch-statements
3299         * (allocReg): find free register and allocate it instead of
3300           allocating new registers all the time
3301         * (deassignLRs): prevent POINTER_GET's from being assigned the same
3302           registers as its operands (necessary only for multibyte GETs)
3303
3304 2005-07-01 Raphael Neider <rneider AT web.de>
3305
3306         * src/pic/gen.h: added prototypes emitpComment, popGetAddr and
3307           debugging .asm-output macros FENTRY + FEXIT
3308         * src/pic/gen.c (Safe_vsnprintf): NEW, is there a more generic
3309           way... I wonder...
3310         * (emitpComment): NEW, printf to pCode
3311         * (popGet): added assert on too large offsets, fixed PO_IMMEDIATE's
3312           offset handling
3313         * (popGetAddr): NEW, variant of popGet to access an immediates
3314           high(er) bytes instead of the n'th byte of memory they reference,
3315           replaced popGet with popGetAddr where neccessary
3316         * (genDataPointerGet): reactivated and fixed implementation
3317         * (genNearPointerGet): enabled call to genDataPointerGet, fixes array-
3318           accesses
3319         * (genDataPointerSet): fixed multibyte assignments
3320         * (genpic14Code): fixed --i-code-in-asm handling
3321         * src/pic/genarith.c: fixed PO_IMMEDIATE issue using popGetAddr,
3322         * (genPlus): fixed index-out-of-bounds error
3323         * src/pic/pcode.c (get_op): fixed PO_IMMEDIATE's index/offset handling
3324         * src/pic/ralloc.c: added debugging output macro FENTRY2
3325         * (spillThis): fixed indentation, enbraced for-body for clarity
3326         * (rematStr): commented out as now unused
3327         * (regTypeNum): commented out special spill case (overwrites
3328           arbitrary values)
3329         * fixes bugs #1229346, #1216476 (both arrays) and #1115667 (SIGSEGV)
3330
3331 2005-06-30 Maarten Brock <sourceforge.brock AT dse.nl>
3332
3333         * doc/sdccman.lyx: documented sfr16/sfr32,
3334           added example for using storage class with function pointers
3335         * src/mcs51/gen.c (genPlusIncr): optimized small offsets from dptr
3336
3337 2005-06-28 Maarten Brock <sourceforge.brock AT dse.nl>
3338
3339         * device/lib/_gptrget.c: also push/pop _PSBANK, added # to 0x03
3340         * device/lib/_itoa.c,
3341         * device/lib/_ltoa.c: optimized codesize
3342         * src/SDCCsymt.c (checkSClass): added sanity check for sfr at addresses,
3343           but don't know how to suppress the double warning.
3344         * src/mcs51/gen.c (genPlusIncr): fixed bug when incrementing volatile int's
3345         * support/Util/SDCCerr.c,
3346         * support/Util/SDCCerr.h: added warning W_SFR_ABSRANGE for sanity check
3347
3348 2005-06-27 Maarten Brock <sourceforge.brock AT dse.nl>
3349
3350         * as/mcs51/asexpr.c (expr): disabled warning "not in .flat24 mode",
3351           fixed old K&R prototypes
3352         * as/mcs51/asout.c (outrb): always output as if generating 24bit addresses
3353         * device/lib/_gptrget.c,
3354         * device/lib/_gptrgetc.c,
3355         * device/lib/_gptrput.c: changed versions for new memory indicator values,
3356           also new versions for small generic pointers and banked generic pointers
3357         * src/port.h: added const_name
3358         * src/SDCC.lex: added keywords sfr16, __sfr16, sfr32, __sfr32
3359         * src/SDCC.y: added tokens SFR16, SFR32 and their sfr_attributes
3360         * src/SDCCcse.c (findPrevIc): check all associative operators
3361         * src/SDCCglue.c (emitMaps): use CONST_NAME if defined
3362         * src/SDCCicode.h: added macro IS_ASSOCIATIVE
3363         * src/SDCCmem.c: updated comments,
3364           set far-space to 0 for pdata, results in optimized code
3365         * src/SDCCmem.h: added macro CONST_NAME
3366         * src/SDCCsymt.h: renumerated generic pointer types GPTYPE_... thereby
3367           moving the info into the highest bits, see also gptrget/gptrput
3368         * src/src.dsp: added sdcc.ico to project files
3369         * src/avr/gen.c (genCast): fixed bug 0x%d
3370         * src/avr/main.c (avr_port): added "CONST (CODE)" for const_name
3371         * src/ds390/gen.c (aopForRemat, adjustArithmeticResult): disconnected direct
3372           relation between ptr_type and DCL_TYPE,
3373           (genCast): fixed bug 0x%d
3374         * src/ds390/main.c (ds390_port, tininative_port, ds400_port): added "CONST
3375           (CODE)" for const_name
3376         * src/hc08/gen.c (genCast): fixed bug 0x%d
3377         * src/hc08/main.c (_hc08_genAssemblerPreamble): added .area ...const_name,
3378           (hc08_port): added "CONST (CODE)" for const_name
3379         * src/mcs51/gen.c (aopForSym): optimized pushing ACC,
3380           (aopForRemat, adjustArithmeticResult): disconnected direct relation
3381           between ptr_type and DCL_TYPE,
3382           (aopGetUsesAcc, aopGet, aopPut): changed first parameter from asmop* to
3383           operand* and took AOP() inside function so sfr-ness can be checked,
3384           (all over): repaired calls to aopGetUsesAcc, aopGet, aopPut to comply with
3385           new prototype,
3386           (genFunction, genEndFunction): optimized stack setup,
3387           (genMinus): optimized for literals with ending zeroes (in bytes),
3388           (genCast): fixed bug 0x%d
3389         * src/mcs51/main.c (_mcs51_keywords): added sfr16 and sfr32,
3390           (mcs51_port): added "CONST (CODE)" for const_name
3391         * src/mcs51/peeph.def: made rule 226 more generic
3392         * src/pic/main.c (pic_port): added "CONST (CODE)" for const_name
3393         * src/pic16/main.c (pic16_port): added "CONST (CODE)" for const_name
3394         * src/xa51/main.c (xa51_port): added "CONST (CODE)" for const_name
3395         * src/z80/main.c (z80_port): added NULL for const_name,
3396           (gbz80_port): added NULL for const_name
3397         * support/regression/tests/bug663539.c,
3398         * support/regression/tests/sfr16.c: new tests
3399
3400 2005-06-25 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3401
3402         * device/include/mcs51/p89v51rd2.h, device/include/mcs51/at89s53.h: added.
3403
3404 2005-06-24 Raphael Neider <rneider AT web.de>
3405
3406         * device/lib/pic16/libdev/pic18f[68][567]20.c:
3407           corrected typos...
3408         * device/include/pic16/signal.h: added USBIF
3409           and SIG_USB
3410
3411 2005-06-24 Raphael Neider <rneider AT web.de>
3412
3413         * device/lib/pic16/libdev/pic18f2455.c,
3414           device/include/pic16/pic18f2455.h: NEW
3415         * device/include/pic16/pic18fregs.h,
3416           device/lib/pic16/pics.all,
3417           src/pic16/device.c: added 18f2455
3418         * device/lib/pic16/libdev/pic18f[68][567]20.c,
3419           device/include/pic16/{pic18f[68][567].h,usart.h}:
3420           replaced MULTIPLE_USARTS define with more relaible
3421           compatibility sfrs (for USART access)
3422
3423 2005-06-20 Slade Rich <slade_rich AT users.sourceforge.net>
3424
3425         * src/pic/pcode.c : Fixed problem when a string constant contains a "\r\n"
3426           and the output asm file line is printed on two lines.
3427
3428 2005-06-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3429
3430         * sim/ucsim/hc08.src/inst.cc (inst_condbranch): fixed simulation of
3431           BGT, BLE, BHI, and BLS instructions
3432         * src/hc08/gen.c (outAcc, outBitC, outBitNV, genCmpLt, genCmpGt,
3433           genCmpEq): removed
3434         * src/hc08/gen.c (genCmpEQorNE, genCmp, branchopCmp, nameCmp,
3435           negatedCmp, exchangedCmp, genhc08Code): rewrite of comparison handling,
3436           fixes bug #1216342
3437         * src/hc08/peeph.def: added rules 2g - 2l for new conditional branches
3438
3439 2005-06-15 Raphael Neider <rneider AT web.de>
3440
3441         * src/pic16/NOTES: moved Vangelis from active developers to people to contact
3442         * device/include/pic16/{6520.h,8520.h}: fixed configuration bits
3443         * src/pic16/gen.c (): prevent iTemps from being considered to be in CODESPACE,
3444           fixes bug #1221120; for symbols in CODESPACE get number of bytes to read from
3445           OP_SYM_TYPE() instead of OP_SYM_ETYPE()
3446
3447 2005-06-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3448
3449         * device/include/mcs51/reg764.h: Changed PB0 to PBO as requested by
3450           Marcel Telka in bug #1215704
3451
3452 2005-06-02 Slade Rich <slade_rich AT users.sourceforge.net>
3453
3454         * src/pic/pcode.c : Changed pseudo stack size to 15 to allow WSAVE to be
3455           located in shared memory bank.
3456
3457 2005-05-31 Raphael Neider <rneider AT web.de>
3458
3459         * src/pic16/{gen.c,genarith.c}: replaced sign-extension
3460           "CLRF, BTFSC <signbit>, DECF/COMF" with side-effect-free
3461           "CLRF, BTFSC <signbit>, SETF"; fixes "long>>9"
3462
3463 2005-05-27 Maarten Brock <sourceforge.brock AT dse.nl>
3464
3465         * device/lib/_strncpy.c: fixed the fix
3466
3467 2005-05-26 Raphael Neider <rneider AT web.de>
3468
3469         * src/pic16/glue.c (pic16_printIvalChar): fixed _constant_ string
3470           initializers with \0, bug #1208187
3471         * src/pic/glue.c (printIvalChar): fixed (non- and constant) string
3472           intializers with \0, bug #1208187
3473
3474 2005-05-26 Raphael Neider <rneider AT web.de>
3475
3476         * src/pic16/glue.c (pic16_printIvalChar): fixed string
3477           initializers with \0, bug #1208187
3478         * src/pic16/main.c (_process_pragma): added sanity checks
3479           for stack position and size, emit warnings when appropriate
3480
3481 2005-05-26 Maarten Brock <sourceforge.brock AT dse.nl>
3482
3483         * device/lib/_strncpy.c: fixed not filling with \0
3484
3485 2005-05-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3486
3487         * src/SDCCast.c (funcOfType, funcOfTypeVarg, stringToSymbol,
3488           createFunction),
3489         * src/SDCC.y (external_definition, enumerator, parameter_declaration,
3490           compound_statement),
3491         * src/SDCCsymt.h,
3492         * src/SDCCsymt.c (addSymChain, processFuncArgs): fixed bug #1159134
3493
3494 2005-05-24 Raphael Neider <rneider AT web.de>
3495
3496         * src/pic16/glue.c (pic16_printGPointerType): fixed #1207796
3497
3498 2005-05-24 Raphael Neider <rneider AT web.de>
3499
3500         * device/include/pic16/pic18f{442,452,458}.h: fixed wrong
3501           TRISE definitions, closes bug #1162453
3502
3503 2005-05-22 Raphael Neider <rneider AT web.de>
3504
3505         * src/pic16/main.c (_process_pragma): check for missing
3506           arguments to pragmas code and udata
3507         * device/include/pic16/pic18f{2550,4331,4455,4520}.h:
3508           consistency fixes to match other headers (thanks to Jim Paris)
3509         * device/lib/pic16/libio/i2c.ignore: 18f4331 provides no I2C
3510
3511 2005-05-21 Maarten Brock <sourceforge.brock AT dse.nl>
3512
3513         * src/SDCCicode.c (isOperandEqual): fixed missing ;
3514
3515 2005-05-19 Maarten Brock <sourceforge.brock AT dse.nl>
3516
3517         * support/regression/tests/bug1198642.c: new test
3518         * src/SDCCicode.c (isOperandEqual): fixed bug 1198642
3519         * src/SDCCcse.c (findPrevIc): added comment, please have a look
3520         * support/scripts/resource.h,
3521         * support/scripts/resource.rc,
3522         * src/src.dsp: added sdcc.ico to project as icon for sdcc.exe
3523         * support/scripts/sdcc.ico: added 32x32 icon
3524
3525 2005-05-18 Raphael Neider <rneider AT web.de>
3526
3527         * device/lib/pic16/libdev/pic18f*.c,
3528         * device/include/pic16/pic18f*.h: updated "sfr" and "at X"
3529           keywords to "__sfr" and "__at (X)"
3530         * device/include/pic16/pic18fregs.h: added pic18f4520
3531         * src/pic16/pcode.c (pic16_pCode2str): fixed (?) bug
3532           #1203088 (MPLAB compatibility)
3533
3534 2005-05-17 Raphael Neider <rneider AT web.de>
3535
3536         * device/include/pic16/pic18f{2550,4331,4455,4520}.h: NEW
3537         * device/lib/pic16/libdev/pic18f{2550,4331,4455,4520}.c: NEW
3538         * device/lib/pic16/pics.all: added new devices
3539         * src/pic16/device.c: added support for pic18f4520
3540
3541 2005-05-16 Raphael Neider <rneider AT web.de>
3542         * src/pic16/gen.{c,h}: s/mov2f/pic16_mov2f made public
3543         * src/pic16/genarith.c (genAddLit): fixed bug 1202480
3544         * src/pic16/pcode.{c,h} (pic16_newpCodeOpBit_simple): NEW
3545           convenience function for bit access
3546
3547 2005-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
3548
3549         * device/lib/printf_large.c: fixed bug 1193299
3550         * support/regression/tests/bug1057979.c: added test %3.3s
3551
3552 2005-05-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3553
3554         * device/include/mcs51/8051.h,
3555         * device/include/mcs51/8052.h: made parseable with lint
3556         * device/include/mcs51/lint.h: added include file for (sp)lint
3557         * doc/sdccman.lyx: added doc about use of splint (syntax checking tool)
3558         * doc/cdbfileformat.lyx,
3559         * doc/test_suite_spec.lyx: hardcoded date to the date of last text change
3560
3561 2005-05-14 Raphael Neider <rneider AT web.de>
3562
3563         * device/lib/pic16/Makefile.common.in: add --optimize-df to OPT_FLAGS
3564         * device/lib/pic16/libc/stdlib/itoa.c (new)
3565         * device/lib/pic16/libc/stdlib/Makefile: have itoa.c built
3566         * device/lib/pic16/libio/Makefile: exclude subdir according to
3567           ${subdir}.ignore for certain PICs (lacking e.g. i2c)
3568         * device/lib/pic16/libio/i2c.ignore (new): pic18f1220 has no I2C support
3569         * src/pic16/gen.c (genFunction): prevent annoying warning
3570         * src/pic16/pcode.c: renamed stack_t to dynstack_t to prevent
3571           nameclashes on BeOS
3572         * support/cpp2/cppmain.c (cpp_output_string): new
3573         * support/cpp2/cpplib.c (_cpp_do__Pragma): fixed _Pragma(""),
3574           fixes bug 1116802
3575
3576 2005-05-13 Borut Razem <borut.razem AT siol.net>
3577
3578         * src/SDCCmain.c (linkEdit): fixed bug 1195202
3579
3580 2005-05-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3581
3582         * .version: changed to version 2.5.1; back to bleeding edge development
3583
3584 2005-05-11 Borut Razem <borut.razem AT siol.net>
3585
3586         * doc/sdccman.lyx doc/cdbfileformat.lyx doc/test_suite_spec.lyx:
3587           generate PDF version 1.3 documents
3588
3589 2005-05-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3590
3591         * .version: changed to version 2.5.0
3592
3593 2005-04-27 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3594
3595         * doc/sdccman.lyx: updated weblinks, index and smaller updates
3596
3597 2005-04-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3598
3599         * doc/sdccman.lyx: changed version 2.5.0, documented --std-c89,
3600         --std-sdcc89, --std-c99, --std-sdcc99, and the corresponding #pragmas, as
3601         well as many smaller updates.
3602         * .version: changed to version 2.5.0-pre1
3603
3604 2005-04-26 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3605
3606         * src/SDCCmain.c (setIncludePath): added port->target to SDCC_INCLUDE_NAME
3607
3608 2005-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
3609
3610         * support/regression/tests/bug1185672.c: added
3611         * src/mcs51/gen.c (aopGetUsesAcc, genCpl, genAnd, genOr, genXor): fixed
3612           bug 1185672
3613         * src/mcs51/gen.c (genCall): added comments, made it look safer
3614         * src/mcs51/gen.c (genEndFunction): simplified
3615
3616 2005-04-25 Maarten Brock <sourceforge.brock AT dse.nl>
3617
3618         * src/mcs51/ralloc.c (serialRegAssign): fixed bug 1189609
3619
3620 2005-04-14 Borut Razem <borut.razem AT siol.net>
3621
3622         * fixed bug 1045046 - SIGSEGV with really simple code?:
3623           src/pic/pcode.c (pCodeInitRegisters)- pseudo stack size increased to 16
3624           src/pic/ralloc.c (typeRegWithIdx) - error message on pseudo stack overflow
3625
3626 2005-04-14 Borut Razem <borut.razem AT siol.net>
3627
3628         * src/pic16/gen.c (genInline), src/pic16/main.c (_process_pragma),
3629           src/pic16/device.h: temporarily disabled experimental #inline pragma
3630           for 2.5.0 release
3631
3632 2005-04-14 Maarten Brock <sourceforge.brock AT dse.nl>
3633
3634         * device/include/z80/stdio.h,
3635         * device/include/z80/string.h: removed these highly incomplete files so
3636           SDCC can use the default ones in device/include/
3637
3638 2005-04-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3639
3640         * src/mcs51/gen.c (genEndFunction): removed unused variable to fix
3641         gcc warning.
3642         * device/lib/Makefile.in: default PORTINCDIR to the mcs51 subdir to
3643         fix sdcpp warnings.
3644
3645 2005-04-12 Maarten Brock <sourceforge.brock AT dse.nl>
3646
3647         * device/include/malloc.h: removed redundant __reentrant prototypes
3648         * device/lib/_mullong.c: added working xstack variant in asm (C version
3649           doesn't pass regression tests)
3650         * device/lib/bpx.c: used __data and made bpx char for mcs51
3651         * src/SDCCast.c (decorateType): removed unused GPTYPE_IDATA,
3652           (createFunction): fixed bug with xstackPtr
3653         * src/SDCCcse.c: corrected comments
3654         * src/SDCCopt.c (convertToFcall): fixed warning in MSVC,
3655           (killDeadCode, eBBlockFromiCode): removed unused code
3656         * src/SDCCsymt.h: removed unused GPTYPE_GPTR and GPTYPE_IDATA,
3657           corrected comments
3658         * src/mcs51/gen.c (aopForSym, aopPut, toBoolean, unsaveRegisters,
3659           assignResultValue, genCall, genFunction, genEndFunction, genAnd,
3660           genOr, genXor, genAddrOf): fixed several bugs concerning xstack
3661           (genModOneByte): fixed warning in MSVC
3662         * src/mcs51/main.c (): added comments
3663         * src/mcs51/peeph.def: changed 129 to 129.a, added 129.b, 129.c & 129.d
3664
3665 2005-04-12 Maarten Brock <sourceforge.brock AT dse.nl>
3666
3667         * src/SDCCmain.c (linkEdit): oops, changed one line too many
3668
3669 2005-04-11 Maarten Brock <sourceforge.brock AT dse.nl>
3670
3671         * src/SDCCmain.c (linkEdit): fixed bug with finding crt0.o for z80
3672
3673 2005-04-10 Vangelis Rokas <vrokas AT users.sourceforge.net>
3674
3675         * src/pic16/glue.c (printIvalChar): fixed bug when emitting
3676         characters arrays of larger size than the declared one.
3677
3678 2005-04-10 Borut Razem <borut.razem AT siol.net>
3679
3680         * src/pic/gen.c (genInline),
3681           src/pic/pcode.c (newpCodeAsmDir), (pCode2str),
3682           (genericPrint), (unlinkpCodeFromBranch), (compareLabel),
3683           (findNextInstruction), (findPrevInstruction),
3684           (findInstructionUsingLabel),
3685           src/pic/pcode.h: fixed bug #1164907 - Labels not being recognized
3686         * src/pic/pcode.c (findLabel): added missing '\n'
3687         * src/src.dsp: added SDCCdwarf2.c to the project
3688
3689 2005-04-09 Borut Razem <borut.razem AT siol.net>
3690
3691         * support/scripts/sdcc.nsi: added include/hc08/* h to NSIS setup
3692
3693 2005-04-08 Raphael Neider <rneider AT web.de>
3694
3695         * src/pic16/pcode.c: added helpers defmapInsertAfter (insert a new item
3696           into the chain after a given one) and mergeDefmapSymbols (combine
3697           defmap entries for each symbol per pcode)
3698         * (createDefmap): have defmap entries merged in the end
3699         * (defmapReplaceSymRef): split defmap entries covering two accesses to
3700           a symbol before replacing one access type's symbol, merge symbols in
3701           the end (replacement symbol might already have an entry)
3702         * (assignValnums): keep reference to written WREG intact
3703
3704 2005-04-08 Raphael Neider <rneider AT web.de>
3705
3706         * src/pic16/pcode.c (struct defmap_s): named anonymous union (for
3707           Alpha)
3708
3709 2005-04-08 Vangelis Rokas <vrokas AT users.sourceforge.net>
3710
3711         * src/pic16/pcode.c (pic16_get_op2): enlarged size of array b to 128
3712         bytes
3713
3714 2005-04-07 Raphael Neider <rneider AT web.de>
3715
3716         * device/include/pic16/usart.h: added compatibility defines for
3717           devices with more than one USART
3718         * device/include/pic16/pic18f[68][567]20.h: activated above defines
3719
3720 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
3721
3722         * device/lib/Makefile.in: updated for port specific include
3723
3724 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
3725
3726         * support/regression/ports/mcs51/spec.mk: added mcs51 include
3727
3728 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
3729
3730         * device/include/8051.h,
3731         * device/include/8052.h,
3732         * device/include/at89S8252.h,
3733         * device/include/at89c55.h,
3734         * device/include/at89x051.h,
3735         * device/include/at89x51.h,
3736         * device/include/at89x52.h,
3737         * device/include/mcs51reg.h,
3738         * device/include/reg51.h,
3739         * device/include/reg764.h,
3740         * device/include/regc515c.h,
3741         * device/include/sab80515.h: (re)moved these 12 files
3742         * device/include/mcs51/8051.h,
3743         * device/include/mcs51/8052.h,
3744         * device/include/mcs51/at89S8252.h,
3745         * device/include/mcs51/at89c55.h,
3746         * device/include/mcs51/at89x051.h,
3747         * device/include/mcs51/at89x51.h,
3748         * device/include/mcs51/at89x52.h,
3749         * device/include/mcs51/mcs51reg.h,
3750         * device/include/mcs51/reg51.h,
3751         * device/include/mcs51/reg764.h,
3752         * device/include/mcs51/regc515c.h,
3753         * device/include/mcs51/sab80515.h: and added them here
3754
3755 2005-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
3756
3757         * device/include/stdarg.h: changed SDCC specific keywords to double
3758           underlined form.
3759         * device/include/stdint.h: changed intptr_t and uintptr_t for others than
3760           mcs51 and ds390.
3761         * device/include/hc08/mc68hc908gp32.h,
3762         * device/include/hc08/mc68hc908jb8.h,
3763         * device/include/hc08/mc68hc908jkjl.h,
3764         * device/include/hc08/mc68hc908qy.h: fixed comments
3765         * device/include/mcs51/README: updated
3766         * device/include/mcs51/c8051f120.h: added PINRSF
3767         * device/lib/pic16/libc/stdlib/crc16.c: fixed comments
3768         * src/pic16/pcode.c: MSVC6 doesn't accept declaring new variables
3769           amidst code. Also inline is not supported.
3770
3771 2005-04-06 Raphael Neider <rneider AT web.de>
3772
3773         * src/pic16/pcode.c (pic16_pCodeReplace): also update pcflow->end
3774         * (createDefmap): fixed CALLs to depend on FSR1 and RETLW to restore
3775           callers stack/frame pointers
3776
3777 2005-04-06 Vangelis Rokas <vrokas AT users.sourceforge.net>
3778
3779         * device/include/pic16/usart.h: added, missing in previous commit,
3780         * device/include/pic16/adc.h: fixed typo,
3781         * device/lib/pic16/libc/utils/cvtdec.S: added missing in previous
3782         commit,
3783         * device/lib/pic16/libc/stdlib/g_ftoa.S: modified to include
3784         <p18fxxx.inc>
3785         * device/lib/pic16/libc/stdio/streams.c: leave stdin, stdout
3786         uninitialized because a bug appears with gplink
3787         * device/lib/pic16/{some makefiles}: moved $(CSTD) from CFLAGS to
3788         COMPILE_FLAGS and added CPPFLAGS with -nostdinc because sdcpp
3789         complains for unrecognised option
3790
3791 2005-04-05 Raphael Neider <rneider AT web.de>
3792
3793         * src/pic16/gen.c (pic16_popCopyReg): made copying work for extended
3794           structs as well (using memcpy)
3795         * (genFunction): fixed comparison, used pCodeOpLabel to reduce warning
3796           on ISRs (GOTO has no label)
3797         * src/pic16/device.h: added OF_OPTIMIZE_DF
3798         * src/pic16/main.c: added compiler switch --optimize-df to enable the
3799           new data flow analysis/optimization
3800         * src/pic16/pcode.c: added (prototypes for and implementation of)
3801           dataflow analysis functions, fixed pCodeInstructions' inCond and
3802           outCond values, made RCALL a branch instruction
3803         * (pic16_unlinkpCode): keep C line if possible
3804         * (pic16_pCodeUnlink): removed cast on left side of assignment, have
3805           C line moved if possible
3806         * (pic16_getRegFrompCodeOp): NEW, improved version of...
3807         * (pic16_getRegFromInstruction,pic16_getRegFromInstruction2): changed
3808           to use new pic16_getRegFrompCodeOp (works for more SFRs)
3809         * (pic16_BuildFlow): fixed skip instructions with label (did not start
3810           new flow)
3811         * (pic16_getJumptabpCode): NEW, needed in...
3812         * (LinkFlow): fixed handling of jumptables, calls and conditional
3813           branches
3814         * (pic16_InsertCommentAfter): NEW
3815         * (pic16_pCodeReplace): made verbose and flow preserving
3816         * (AnalyzeFlow): added call to data flow analysis
3817         * src/pic16/pcode.h: added defmaps to pCodeFlow struct
3818         * src/pic16/pcodeflow.h: added PCC_STATUS to mean all STATUS bits
3819         * src/pic16/ralloc.c (packRegsForAssign): added return 1 in the end
3820
3821 2005-04-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3822
3823         * src/SDCCast.c (decorateType): fixed bug #1105626
3824
3825 2005-04-02 Vangelis Rokas <vrokas AT users.sourceforge.net>
3826
3827         * device/include/asm/pic16/features.h,
3828         * pic18f*.h headers,
3829         * device/include/pic16/adc.h,
3830         * device/include/pic16/delay.h,
3831         * device/include/pic16/i2c.h,
3832         * device/include/pic16/malloc.h,
3833         * device/include/pic16/stdio.h,
3834         * device/include/pic16/stdlib.h,
3835         * device/include/pic16/string.h,
3836         * device/lib/pic16/libc/stdio/printf_tiny.c,
3837         * device/lib/pic16/libc/stdio/printf_small.c,
3838         * device/lib/pic16/libc/stdio/strmgpsim.c,
3839         * device/lib/pic16/libc/stdio/strmmssp.c,
3840         * device/lib/pic16/libc/stdio/strmusart.c,
3841         * device/lib/pic16/libc/stdio/vfprintf.c,
3842         * device/lib/pic16/libc/stdlib/ltoa.c,
3843         * device/lib/pic16/libc/stdlib/putchar.c,
3844         * device/lib/pic16/libc/stdlib/x_ftoa.c,
3845         * device/lib/pic16/libc/stdlib/memchrpgm.c,
3846         * device/lib/pic16/libc/stdlib/memchrram.c,
3847         * device/lib/pic16/libc/stdlib/memcpypgm2ram.c,
3848         * device/lib/pic16/libc/stdlib/memcpyram2ram.c,
3849         * device/lib/pic16/libio/adc/adcbusy.c,
3850         * device/lib/pic16/libio/adc/adcread.c,
3851         * device/lib/pic16/libio/adc/adcsetch.c,
3852         * device/lib/pic16/libio/usart/ubaud.c,
3853         * device/lib/pic16/libio/usart/ubusy.c,
3854         * device/lib/pic16/libio/usart/udrdy.c,
3855         * device/lib/pic16/libio/usart/uopen.c,
3856         * device/lib/pic16/libio/usart/uputc.c,
3857         * device/lib/pic16/libsdcc/gptr/gptrget1.c,
3858         * device/lib/pic16/libsdcc/gptr/gptrget2.c,
3859         * device/lib/pic16/libsdcc/gptr/gptrget3.c,
3860         * device/lib/pic16/libsdcc/gptr/gptrget4.c,
3861         * device/lib/pic16/libsdcc/gptr/gptrput1.c,
3862         * device/lib/pic16/libsdcc/gptr/gptrput2.c,
3863         * device/lib/pic16/libsdcc/gptr/gptrput3.c,
3864         * device/lib/pic16/libsdcc/gptr/gptrput4.c: modified all SDCC
3865         specific keywords to double underlined form,
3866         * device/lib/pic16/libc/Makefile.rules,
3867         * device/lib/pic16/libsdcc/Makefile.rules,
3868         * device/lib/pic16/libm/Makefile,
3869         * device/lib/pic16/libio/Makefile.rules: added CSTD macro in CFLAGS
3870         to compile with C standard set in Makefile.common
3871         * device/lib/pic16/libc/stdlib/Makefile: added new C sources
3872         rand.c and crc.c in compilation process,
3873         * device/lib/pic16/libsdcc/int/divuint.c,
3874         * device/lib/pic16/libsdcc/long/divulong.c: changed declaration of
3875         `c' from signed to unsigned,
3876         * device/lib/pic16/startup/crt0.c,
3877         * device/lib/pic16/startup/crt0i.c,
3878         * device/lib/pic16/startup/crt0iz.c: adopted to all SDCC specific
3879         keywords to double underlined form, bug fixes in _do_cinit function
3880         which prevented the correct initialization of the .idata segment,
3881         * src/pic16/pcoderegs.c (insideLRBlock): fixed a bug that caused the
3882         core to enter a infinite loop
3883         * device/lib/pic16/libc/stdlib/rand.c, crc.c: new files
3884
3885 2005-04-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3886
3887         * src/SDCCicode.c (getArraySizePtr): fixed bug #1122171
3888
3889 2005-04-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3890
3891         * device/include/Makefile.in: add support for hc08 subdirectory
3892         * device/include/hc08/: new subdirectory
3893         * device/include/hc08/mc68hc908jkjl.h: new header contributed by
3894         Lucas Loizaga, thanks!
3895         * device/include/hc08/mc68hc908qy.h,
3896         * device/include/hc08/mc68hc908gp32.h,
3897         * device/include/hc08/mc68hc908jb8.h: moved hc08 register defs to
3898         their own directory. Changed internal macro names to use the compiler
3899         reserved namespace. Changed SDCC specific keywords to double
3900         underlined form.
3901         * device/include/math.h,
3902         * device/include/malloc.h,
3903         * device/include/stdarg.h,
3904         * device/include/stdbool.h
3905         * device/include/string.h,
3906         * device/include/tinibios.h,
3907         * device/include/ds400rom.h,
3908         * device/include/8051.h,
3909         * device/include/8052.h,
3910         * device/include/80c51xa.h,
3911         * device/include/at89c55.h,
3912         * device/include/at89S8252.h,
3913         * device/include/at89x51.h,
3914         * device/include/at89x52.h,
3915         * device/include/ds80c390.h,
3916         * device/include/reg764.h,
3917         * device/include/regc515c.h,
3918         * device/include/sab80515.h,
3919         * device/include/mcs51/c8051f000.h,
3920         * device/include/mcs51/c8051f018.h,
3921         * device/include/mcs51/c8051f020.h,
3922         * device/include/mcs51/c8051f040.h,
3923         * device/include/mcs51/c8051f060.h,
3924         * device/include/mcs51/c8051f120.h,
3925         * device/include/mcs51/c8051f300.h,
3926         * device/include/mcs51/c8051f310.h,
3927         * device/include/mcs51/c8051f320.h,
3928         * device/include/mcs51/c8051f330.h,
3929         * device/include/mcs51/c8051f350.h,
3930         * device/include/z180.h: Changed SDCC specific keywords to double
3931         underlined form.
3932
3933 2005-03-31 Vangelis Rokas <vrokas AT users.sourceforge.net>
3934
3935         * src/pic16/device.c (Pics16[]): added devices 18F2550, 18F4331,
3936         18F4455,
3937         * (pic16_assignConfigWordValue): disable testing of configuration
3938         register value with config mask,
3939         * src/pic16/gen.c (pic16_testStackOverflow): prefix stack test
3940         function with port->fun_prefix,
3941         * (genFunction): when generating a naked interrupt function never
3942         create an absolute segment placed in interrupt vector address, place
3943         the actual interrupt function at IVA instead, when an interrupt
3944         function is generated with unspecified interrupt then do not create
3945         the absolute section,
3946         * (genGenPointerGet, genGenPointerSet, genPackBits): replace all
3947         code for generating a call to generic pointer get/put function with
3948         a call to function pic16_callGenericPointer(),
3949         * src/pic16/genutils.c (pic16_callGenericPointerRW): NEW, generates
3950         the call to the generic pointer get/put functions with prefixing the
3951         function name with port->fun_prefix,
3952         * src/pic16/glue.c (pic16glue): ifdef-out test of OF_LR_SUPPORT,
3953         * src/pic16/main.c (_process_pragma): prefix function with
3954         port->fun_prefix,
3955         * (_pic16_finaliseOptions): define macro __18Fxxxx macro when
3956         calling assembler, old 18Fxxxx macro is deprecated,
3957         * src/pic16/pcode.c (unlinkpCodeFromBranch): added PC_INLINE and
3958         PC_ASMDIR in while condition,
3959         * (findInstruction): add PC_ASMDIR in while condition,
3960         * (buildCallTree): prefix main with port->fun_prefix,
3961         * (pic16_pCode2str): fixed bug that didn't emit the memory access
3962         identifier for variable with banked access in instructions BTFSS,
3963         BTFSC, BCF, BSF, BTG
3964         * (AnalyzeFlow): moved call to OptimizepCode to pic16_AnalyzeBanking,
3965         * src/pic16/pcodepeep.c (pCodeOpCompare): increase size of b to 1024,
3966         * src/pic16/pcoderegs.c (pic16_pCodeRegoptimizeRegUsage): don't
3967         perform optimization when enviroment variable NO_REG_OPT is set,
3968         * (insideLRBlock): NEW, return 1 if register is inside an
3969         INF_LOCALREGS block,
3970         * (RemoveRegFromLRBlock): remove a register that is completely
3971         eliminated by register optimization, but it is still left in local
3972         register store/restore in/from stack block,
3973         * (Remove2pcodes): after removing register, check to see if it
3974         should be removed from local register store/restore in/from stack
3975         block,
3976         * src/pic16/ralloc.c (pic16_decodeOp): added decode for
3977         DUMMY_READ_VOLATILE,
3978
3979         * device/include/pic16/adc.h: minor prototype modifications and
3980         update,
3981         * device/include/pic16/malloc.h: added GPL notice various
3982         modifications,
3983         * device/include/pic16/stdint.h: NEW, standard header for ints
3984         * device/include/pic16/delay.h: NEW, header for delay functions,
3985         delay10tcy, delay100tcy, delay1ktcy, delay10ktcy, delay100ktcy,
3986         delay1mtcy,
3987         * device/include/pic16/signal.h: NEW, header providing helper macros
3988         for implementing signal handlers,
3989         * device/include/pic16/stdio.h: added prototypes for functions,
3990         printf, vprintf, sprintf, vsprintf, fprintf, vfprintf. Added
3991         prototypes for stdin and stdout, added macro PUTCHAR to
3992         automatically implement putchar function prototype,
3993         * device/include/pic16/usart.h: modified and updated USART library,
3994         * device/lib/pic16/libio/adc/,
3995         * device/lib/pic16/libio/i2c: some modifications to improve library
3996         performance,
3997         * device/lib/pic16/libc/stdio/: modifications for the new printf*
3998         family of functions,
3999         * device/lib/pic16/libc/stdlib/: various modifications in the malloc
4000         family of functions and other sources,
4001         * device/lib/pic16/libio/usart/: NEW, c sources for the usart module
4002         of the PIC18Fxx[28] devices,
4003         * device/lib/pic16/libc/delay/: NEW, c sources for the delay functions,
4004         * device/lib/pic16/libc/utils/: minor modifications in the .S sources,
4005         * device/lib/pic16/startup/{crt0i.c, crt0iz.c}: redesign of the
4006         _do_cinit function, because the previous failed when local variables
4007         where not placed in the same memory bank,
4008         * device/lib/pic16/libsdcc/char/: various modifications to improve
4009         library performance,
4010         * doc/sdccman.lyx: some reorganization of the PIC16 part, added many
4011         information on the new functions of the c library and more...
4012
4013 2005-03-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4014
4015         * src/SDCCBBlock.c (iCodeBreakDown): fixed bug #1170212
4016
4017 2005-03-26 Raphael Neider <rneider AT web.de>
4018
4019         * src/pic16/gen.c (genSkipc): fixed semantics (execute branch
4020           if condition == CARRY)
4021         * (genCmp): adapted to new genSkipc semantics
4022         * src/pic16/genutils.c (pic6_genCmp_special): removed side effect
4023           on rIfx (genCmp was broken)
4024
4025 2005-03-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4026
4027         * src/SDCCmain.c (setDefaultOptions, optionsTable[], parseCmdLine),
4028         * src/z80/main.c (_keywords[]),
4029         * src/SDCCglobal.h (struct options),
4030         * src/SDCC.y,
4031         * src/SDCC.lex (isTargetKeyword, doPragma, pragma_tbl[]): new pragmas
4032         to enable/disable SDCC and C99 extensions/keywords (std_c89, std_sdcc89,
4033         std_c99, std_sdcc99). Also, equivalent command line options (--std-c89,
4034         --std-sdcc89, --std-c99, --std-sdcc99). SDCC specific keywords are
4035         always available in leading double underscore form. The C99 support is
4036         mostly missing, but it's a start.
4037         * support/regression/tests/bug-227710.c: fixed nonconforming use of
4038         reserved identifier "__data".
4039
4040 2005-03-24 Maarten Brock <sourceforge.brock AT dse.nl>
4041
4042         * src/mcs51/peeph.def: fixed bug 1170013
4043
4044 2005-03-22 Maarten Brock <sourceforge.brock AT dse.nl>
4045
4046         * device/include/mcs51reg.h: fixed bug 842007
4047
4048 2005-03-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4049
4050         * src/SDCCcflow.c (dfNumCompare): committed the wrong version of this
4051         last time.
4052
4053 2005-03-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4054
4055         * src/port.h (struct PORT),
4056         * src/avr/ralloc.c (avr_assignRegisters),
4057         * src/avr/main.c,
4058         * src/ds390/ralloc.c (ds390_assignRegisters),
4059         * src/ds390/main.c,
4060         * src/hc08/ralloc.c (hc08_assignRegisters),
4061         * src/hc08/main.c,
4062         * src/mcs51/ralloc.c (mcs51_assignRegisters),
4063         * src/mcs51/main.c,
4064         * src/pic/ralloc.c (pic14_assignRegisters),
4065         * src/pic/main.c,
4066         * src/pic16/ralloc.c (pic16_assignRegisters),
4067         * src/pic16/main.c,
4068         * src/xa51/ralloc.c (xa51_assignRegisters),
4069         * src/xa51/main.c,
4070         * src/z80/ralloc.c (z80_assignRegisters),
4071         * src/z80/ralloc.h,
4072         * src/SDCCopt.c (eBBlockFromiCode, replaceRegEqv, killDeadCode),
4073         * src/SDCCcse.c (ifxOptimize, cseBBlock, cseAllBlocks),
4074         * src/SDCCcse.h,
4075         * src/SDCCdflow.c (computeDataFlow),
4076         * src/SDCCdflow.h,
4077         * src/SDCCloop.c (addDefInExprs, loopInvariants, loopOptimizations),
4078         * src/SDCCloop.h,
4079         * src/SDCCcflow.c (*),
4080         * src/SDCCcflow.h,
4081         * src/SDCCBBlock.c (iCodeBreakDown, dumpEbbsToFileExt, eBBWithEntryLabel),
4082         * src/SDCCBBlock.h (struct ebbIndex): new struct that keeps two copies
4083         of the eBBlock list, sorted by both bbnum and dfnum. (fixes bug with
4084         immedDom() returning wrong block; probably fixes bug #1160833)
4085
4086 2005-03-20 Borut Razem <borut.razem AT siol.net>
4087
4088         * support/scripts/inc2h.pl: WIN32 port
4089
4090 2005-03-19 Maarten Brock <sourceforge.brock AT dse.nl>
4091
4092         * device/lib/makefile.in: added abs.c and labs.c
4093
4094 2005-03-17 Maarten Brock <sourceforge.brock AT dse.nl>
4095
4096         * device/include/stdint.h: added
4097         * device/lib/abs.c: added
4098         * device/lib/labs.c: added
4099         * device/include/stdlib.h: added abs() and labs() prototypes
4100         * device/lib/libsdcc.lib: added abs and labs
4101         * device/include/float.h,
4102         * device/lib/_fsmul.c,
4103         * device/lib/printf_fast.c,
4104         * device/lib/printf_tiny.c: updated comments
4105
4106 2005-03-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4107
4108         * src/SDCCicode.c (geniCodeSwitch, geniCodeJumpTable): fixed
4109         bug #1164313
4110
4111 2005-03-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4112
4113         * src/SDCCcse.c (cseBBlock): retain assignment to self when volatile
4114         * src/SDCCast.c (isLoopCountable): fixed bug #1161985
4115
4116 2005-03-15 Maarten Brock <sourceforge.brock AT dse.nl>
4117
4118         * device/lib/printf_large.c: removed inline assembly for portability and
4119           readability. Use printf_fast if speed or size are more important.
4120         * src/pic16/gen.c: removed conditions around use of DEBUGpc
4121         * src/pic16/genutils.h: added define for DEBUGpc for MSVC
4122
4123 2005-03-15 Vangelis Rokas <vrokas AT users.sourceforge.net>
4124
4125         * src/pic16/genutils.c (pic16_genCmp_special): initialized offs to
4126         prevent compiler warning
4127
4128 2005-03-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
4129
4130         * device/lib/pic16/startup/crt0i.c (_cinit): local variables where
4131         moved to level 0 and declared as static. Also they are explicit
4132         placed in access bank. This was necessery because some times they
4133         might cross memory bank boundaries. crt0iz.c is *NOT* updated!!!
4134         * src/pic16/device.h: added flag OPTIMIZE_CMP to enable some compare
4135         optimizations. Currently only compare to unsigned char is implemented,
4136         * src/pic16/gen.c: added fReturnIdx array,
4137         * (struct resolvedIfx) is moved to gen.h and made public,
4138         * (struct _G): added sregsAlloc and sregsAllocSet fields,
4139         * (aopForSym): added an optimization to directly store in stack of
4140         the operand of a SEND iCode,
4141         * (pic16_aopOp): don't return return registers as strings (AOP_STR)
4142         but as registers instead (AOP_REG) using the fReturnIdx array,
4143         * (pic16_freeAsmop): remove the freed register from the
4144         _G.sregsAlloc field,
4145         * (pic16_aopGet): in case AOP_STR, the compare to 'a' is changed to
4146         a compare of 'WREG',
4147         * (pic16_popGetTempRegCond): changed function prototype, now
4148         function takes also a bitVector argument v which holds the current
4149         set of registers that are allocated for stack access by aopForSym,
4150         registers allocated in aopForSym for accessing stack symbols are not
4151         any more part of the functions usedRegs field,
4152         * (genCall): some times aopOp is called for a stack variable to be
4153         send, aopForSym might perform the push, if this is true make sure
4154         that genCall doesn't push the variable twice by testing _G.resDirect,
4155         * (genFunction): changed testing for unspecified interrupt number
4156         from 256 to INTNO_UNSPEC,
4157         * modified selection scheme of frame pointer generation. Previously
4158         if function did use local registers a frame pointer was generated,
4159         now a frame pointer is generated only if function has arguments
4160         (that need PLUSW2 register access), or has stack arguments, or the
4161         compiler is not instructed to omit the frame pointer,
4162         * (genEndFunction): before restoring local registers that were saved
4163         in the function preamble, also restore the registers that *might*
4164         have been allocated for stack access,
4165         * (genRet): removed some old comments,
4166         * (genCmp, the active (RN's) version): added a call to the
4167         pic16_genCmp_special function to perform the compare with a more
4168         robust and optimized way,
4169         * (genInline): a feature has been added in inline code generation,
4170         which allows a wildcard variable substitution when writing inline
4171         assembly. Code is incomplete and experimental therefore undocumented,
4172         * (genCast): changed order of aopOp for result and right to allow
4173         aopForSym to directly load the result if possible,
4174         * src/pic16/genutils.c (selectCompareOp, pic16_genCmp_special): NEW,
4175         perform an optimized compare on some selected special occasions,
4176         * src/pic16/genutils.h: declaration of resolvedIfx structure from gen.c,
4177         * src/pic16/glue.c (pic16createInterrupVect): make sure we never
4178         generate an IVT any more,
4179         * src/pic16/main.c (pic16_optionsTable): added command line option
4180         --optimize-cmp,
4181         * (_pic16_initPaths): when calling C preprocessor define pic18fXXXX
4182         macro too, when calling assembler define pic18fXXXX *and* __18Fxxxx
4183         macros,
4184         * src/pic16/NOTES: Raphael Neider added in list of active developers
4185         * src/pic16/pcode.c (OPT_TYPE_STR): added strings jumptable_begin and
4186         jumptable_end to prevent bug #,
4187         * (pic16_pciADDWFC, ADDFWC, COMF, CLRF): added some missing flags in
4188         inCond and outCond fields,
4189         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): add a fix for bug #,
4190         * src/pic16/ralloc.c (serialRegAssign): explicit set willCS to 0 to
4191         turn off register spilling,
4192         * (packRegsForOneUse): synced with other ports' versions although it
4193         is not used currently,
4194         * (pic16_packRegisters): added an optimization while reading
4195         structure bitfields, some registers may be saved (malloc code is
4196         decreased by 80 bytes)
4197
4198 2005-03-12 Vangelis Rokas <vrokas AT users.sourceforge.net>
4199
4200         * src/SDCCcse.c (cseBBlock): inside 'do operand lookup' loop test if
4201         left is a bitfield, if yes, then don't optimize assignment. Perhaps
4202         this can be optimized more?
4203
4204 2005-03-10 Raphael Neider <rneider AT web.de>
4205
4206         * src/pic16/gen.c (pic16_loadFSR0, genPackBits, genUnpackBits,
4207           genNearPointerGet): (hopefully) fixed access to bitfields via
4208           pointers (p->bitN = x; and x = p->bitN; failed)
4209
4210 2005-03-09 Paul Stoffregen <paul AT pjrc.com>
4211
4212         * device/lib/printf_fast.c: fix leading zero format, eg "%02d"
4213
4214 2005-03-09 Raphael Neider <rneider AT web.de>
4215
4216         * src/SDCCopt.c (killDeadCode): fixed bug #1156016
4217
4218 2005-03-06 Maarten Brock <sourceforge.brock AT dse.nl>
4219
4220         * src/SDCCicode.h: moved CRITICAL and ENDCRITICAL from SKIP_IC2 to SKIP_IC
4221         * src/mcs51/ralloc.c (willCauseSpill): added check for REG_BIT type,
4222           (regTypeNum): set REG_BIT type if necessary
4223         * src/mcs51/ralloc.h: added define REG_BIT, used to fix bug 1144613
4224         * support/regression/tests/critical.c: check bug 1144613
4225
4226 2005-03-02 Raphael Neider <rneider AT web.de>
4227
4228         * src/pic16/gen.c (genRightShiftLiteral): fixed bug #1154256
4229
4230 2005-02-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4231
4232         * src/avr/ralloc.c (serialRegAssign),
4233         * src/ds390/ralloc.c (serialRegAssign),
4234         * src/hc08/ralloc.c (serialRegAssign),
4235         * src/mcs51/ralloc.c (serialRegAssign),
4236         * src/pic/ralloc.c (serialRegAssign),
4237         * src/pic16/ralloc.c (serialRegAssign),
4238         * src/xa51/ralloc.c (serialRegAssign),
4239         * src/z80/ralloc.c (serialRegAssign): fixed bug #1105154
4240
4241 2005-02-22 Maarten Brock <sourceforge.brock AT dse.nl>
4242
4243         * src/SDCCast.c (decorateType): fixed bug 1124787
4244
4245 2005-02-20 Hubert Sack <sack AT digiplan.de>
4246         committed by Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4247
4248         * src/mcs51/peeph.def: added peepholes 3.h-k and 132.a-f from
4249         patch #1121755
4250
4251 2005-02-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4252
4253         * src/SDCCpeeph.def: new keyword "labelRefCountChange" which allows peepholes
4254         to keep the correct label reference count when adding/removing references
4255         to labels. A peephole file using this is appended to patch #1144962.
4256
4257 2005-02-14 Raphael Neider <rneider AT web.de>
4258
4259         * device/lib/pic16/libc/string/memccpy.c: changed 3rd argument to char
4260         * src/SDCC.lex (process_pragma): fixed to make disable_warning work for PIC16
4261         * src/pic16/gen.c (aopForSym, calls to pic16_aopOp): prevent unneccessary
4262           retrievals of result operand's value on assignment
4263
4264 2005-02-13 Vangelis Rokas <vrokas AT otenet.gr>
4265
4266         * device/include/pic16/string.h: modified prototype for memccpy()
4267         to memccpy(void *, void *, char, size_t)
4268         * src/pic16/gen.c (genFunction, genEndFunction): reenable if-case to
4269         check whether to omit frame pointer or not,
4270         * (genInline): convert all occurences of "\n" to LF in inline
4271         assembler blocks, this helps formatting the inline text,
4272         * (pic16_loadFSR0): modified prototype,
4273         * (genNearPointerGet, genNearPointerSet): reorganization of code,
4274         removed some 8051 legacy code,
4275         * (genPackBits): enabled handling bitfields exceeding one byte in size,
4276         * src/pic16/ralloc.c (pic16_assignRegisters): clear dynrIdx variable
4277         before allocating temporary registers in functions,
4278
4279 2005-02-11 Maarten Brock <sourceforge.brock AT dse.nl>
4280
4281         * support/regression/tests/bitvars.c: corrected the "fix"
4282
4283 2005-02-10 Maarten Brock <sourceforge.brock AT dse.nl>
4284
4285         * support/regression/tests/bitvars.c,
4286         * support/regression/tests/bitwise.c,
4287         * support/regression/tests/rotate.c: "fixed" problems on Alpha
4288
4289 2005-02-10 Raphael Neider <rneider AT web.de>
4290
4291         * src/pic16/pcode.c (assignToSameBank) : fixed cast to pointer of
4292           different size for Alpha
4293         * src/pic16/gen.c (genCmpEq) : improved compare with 0
4294
4295 2005-02-09 Raphael Neider <rneider AT web.de>
4296
4297         * src/SDCC.lex(doPragma) : save and restore warning options as well
4298           (also added new stack plus clone- and copyAndFreeSDCCERRG())
4299         * have #pragma less_pedantic set the errorlevel to WARNING
4300           (fixes #1117001)
4301         * (cloneOptimize) : fixed wrong malloc's size
4302         * support/Util/SDCCerr.[ch] : made SDCCERRG globally accessible to
4303           facilitate correct handling of #pragma (save|restore)
4304
4305 2005-02-09 Maarten Brock <sourceforge.brock AT dse.nl>
4306
4307         * src/mcs51/gen.c: removed non-standard C nameless struct/union
4308
4309 2005-02-04 Slade Rich <slade_rich AT users.sourceforge.net>
4310
4311         * src/pic/gen.c : Fix for bugs #1080519 & #1115662.
4312
4313 2005-02-03 Maarten Brock <sourceforge.brock AT dse.nl>
4314
4315         * device/include/mcs51/c8051f120.h: added declarations for sbit port 2,3&4
4316
4317 2005-02-02 Raphael Neider <rneider AT web.de>
4318
4319         * src/SDCCast.c (processParms): disabled W_NONRENT_ARGS for pic16 port
4320         * src/pic16/gen.c (aopForSym): reenabled special case for function pointers
4321         * (pic16_storeForReturn): fixed to allow returning function pointers
4322         * (genPackBits): improved accessing full bytes, implemented for GPOINTERs
4323         * device/include/pic16/{stddef.h,stdbool.h}: added
4324
4325 2005-02-02 Maarten Brock <sourceforge.brock AT dse.nl>
4326
4327         * device/include/mcs51/c8051f040.h: added define CPT2_PAGE
4328
4329 2005-02-01 Slade Rich <slade_rich AT users.sourceforge.net>
4330
4331         * src/pic16/pic16.dsp : Added file graph.c to make it compile under windows
4332         * src/pic16/Makefile.bcc : Do not use this file but added file graph.c as it
4333          appeared to be required
4334
4335 2005-01-31 Borut Razem <borut.razem AT siol.net>
4336
4337         * support/scripts/sdcc.nsi: added include/asm/ds390, include/asm/mcs51,
4338           include/mcs51 and include/z80 directories to the package
4339
4340 2005-01-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4341
4342         * src/hc08/gen.c (genFunction): fixed bug #1112752
4343
4344 2005-01-30 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4345
4346         * src/mcs51/peeph.def: adapted peephole 258.x to changed gen.c (genAnd)
4347
4348 2005-01-29 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4349
4350         * src/mcs51/gen.c (genAnd): accessing LSB/MSB by rotating acc
4351
4352 2005-01-29 Maarten Brock <sourceforge.brock AT dse.nl>
4353
4354         * device/include/Makefile.in: create/copy mcs51 and z80 include subdirs
4355
4356 2005-01-27 Maarten Brock <sourceforge.brock AT dse.nl>
4357
4358         * device/include/c8051fxxx.h: removed these 6 files
4359         * device/include/mcs51/c8051fxxx.h: added these 11 new files
4360
4361 2005-01-26 Raphael Neider <rneider AT web.de>
4362
4363         * src/pic16/gen.c (genAssign): fixed assignment from longs
4364           in codespace (were cut to three bytes)
4365         * (genDummyRead): implemented (except for CODESPACE...),
4366           fixed bug #1108575
4367         * src/pic16/glue.c (emitStatistics): beautified
4368         * device/lib/pic16/libm/Makefile: added include path
4369
4370 2005-01-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4371
4372         * src/z80/gen.c (aopPut): fixed bug #1103902
4373
4374 2005-01-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4375
4376         * device/lib/expf.c: fixed bug #1095792
4377
4378 2005-01-24 Vangelis Rokas <vrokas AT otenet.gr>
4379
4380         * device/lib/pic16/libm: added Math library sources
4381
4382 2005-01-24 Raphael Neider <rneider AT web.de>
4383
4384         * src/pic16/pcode.h: added second memory operand to pCodeOpReg
4385           to enable upcast to pCodeOpReg2 (there is no type tag to
4386           differenciate the two and pic16_popGet2p cast into PCOR2)
4387         * src/pic16/main.c (_process_pragma): fixed another malloc bug
4388           (sizeof(sectNames) changed to sizeof(sectName))
4389           Both patches fix segfaults under MinGW.
4390
4391 2005-01-23 Raphael Neider <rneider AT web.de>
4392
4393         * src/pic16/{device.c,pcode.c}: s/free/Safe_free/g for
4394           Safe_[mc]?alloc()'ed variables
4395         * src/pic16/gen.c (pic16_aopOp,pic16_popGet): added handling
4396           of (byte sized) temporaries (assign them to WREG for now)
4397         * src/pic16/main.c (_process_pragma): fixed nasty malloc bug
4398           (used sizeof(set *sectSyms) instead of sizeof(struct sectSym)),
4399           this might fix SIGSEGVs on MinGW...
4400         * src/SDCCopt.c (killDeadCode): restored original behaviour
4401           (volatile operands might get thrown away though)
4402
4403 2005-01-23 Vangelis Rokas <vrokas AT otenet.gr>
4404
4405         * src/pic16/gen.c: fixed bug #1106975,
4406         * src/pic16/gen.c: fixed possible bug #1102572, now during TOS
4407         pointer update, INTCON is saved, global interrupts are disabled and
4408         restored after updateing TOS.
4409         * src/SDCC.y, src/SDCC.lex, src/SDCCsymt.c, src/SDCCsymt.h:
4410         * added function attribute 'shadowregs' to take advantage of shadow
4411         registers,
4412         * added function attribute 'wparam' as an alternative to the wparam
4413         pragma,
4414         * support/Utils/SDCCerr.[ch]: added error E_SHADOWREGS_NO_ISR when
4415         user declares a non-ISR function as 'shadowregs',
4416         * doc/sdccman.lyx: updated to reflect recent changes of pic16 port
4417
4418 2005-01-22 Vangelis Rokas <vrokas AT otenet.gr>
4419
4420         * .version: bumped version number to 2.4.8
4421         * device/lib/pic16/pics.all: list of PIC18F devices supported by
4422         pic16 port,
4423         * device/lib/pic16/libio/i2c/: I2C module support library,
4424         * device/include/pic16/i2c.h: I2C support library header,
4425         * device/lib/pic16/libc/stdio/: standard IO support sources,
4426         * (printf_small.c): printf_small() source, supports float print,
4427         * (printf_tiny.c): printf_tiny() source, does not support floats,
4428         * device/lib/pic16/Makefile.common.in: added OPT_FLAGS macro to
4429         enable global optimizations for entire library source, other
4430         Makefiles in the source tree are also modified to reflect this,
4431         * device/lib/pic16/libc/stdlib/putchar.c (putchar): dummy putchar()
4432         function,
4433         * doc/sdccman.lyx: updated to reflect new changes,
4434         * src/pic16/gen.c (aopForSym): don't handle sym->iaccess in
4435         sym->onStack if-case,
4436         * src/pic16/main.c (_pic16_keywords): commented out keywords bit,
4437         sbit, idata, _idata, xdata, _xdata,
4438         * added pragma library, to link an external library, (see doc),
4439         * removed command line options, --pomit-config-words, --pomit-ivt,
4440         --pleave-reset-vector,
4441         * (pic16_finaliseOptions): when define macro SDCC_MODEL_{SMALL/LARGE}
4442         when calling assembler to reflect memory model used, also define
4443         macro STACK_MODEL_{SMALL/LARGE} when compiling and assembling to
4444         reflect stack model used,
4445         * src/pic16/ralloc.c (pic16_allocDirReg): when operand is allocated
4446         on stack return NULL,
4447
4448 2005-01-22 Daniel Winkler <post AT danielwinkler.de>
4449
4450         * src/SDCCopt.c (killDeadCode): do not throw iCodes away if one
4451           of the operands is volatile. Fixes #1020220
4452
4453 2005-01-22 Daniel Winkler <post AT danielwinkler.de>
4454
4455         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): reenabled optimization
4456         * (OptimizeRegUsage): make sure that there is really no other flow where
4457           the first pCode is used
4458
4459 2005-01-22 Raphael Neider <rneider AT web.de>
4460
4461         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): disabled optimization
4462           to fix #1106967 (pCode->seq are not set up correctly)
4463
4464 2005-01-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4465
4466         * src/SDCCglue.c (glue): make sure code area is declared before the
4467         static initialization area.
4468
4469 2005-01-21 Raphael Neider <rneider AT web.de>
4470
4471         * device/lib/Makefile.in: fixed test for pic16 install dir
4472         * device/lib/pic16/*/Makefile*: modified compile flags to enable
4473           optimizations
4474         * doc/sdccman.lyx: updated banksel optimization, removed --flr-support and
4475           added --optimize-goto compiler switch and pragma wparam documentation
4476         * src/pic16/pcode.c (pic16_OptimizeBanksel): removed statistics dump
4477         * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): fixed copying of WREG, PRODL
4478           and PRODH closing bug #1071770 (peephole optimizer)
4479
4480 2005-01-19 Raphael Neider <rneider AT web.de>
4481
4482         * src/SDCCglobl.h: ensure that PATH_MAX >= 2048 to guarantee
4483           cmdLine buffers (used when calling sdcpp...) are large enough
4484           (MAX_PATH=256 truncates arguments leading to system halts when
4485           used in MinGW...)
4486         * src/pic16/gen.c (pic16_sameRegs): relaxed size criterion
4487         * (genUminus): rewritten to for efficiency
4488         * (genNearPointer[GS]et): enforce reloading of FSR0 (was still
4489           used uninitialized in some cases)
4490         * (genCast): upcasting a 16bit int to a 24bit GPOINTER may not
4491           copy the third byte from the int -- now assumes 0x80 (data memory)
4492         * src/pic16/genarith.c (pic16_genPlus): fixed bug when swapping
4493           operands (genAddLit expects the iCode's operands to swapped as
4494           well), fixed leftover bytes (crashed for short left operands)
4495         * (pic16_genMinusDec): performance improvements, removed false
4496           PIC14 emitSKPNCs
4497         * (pic16_genMinus): fixed to cope with differently sized operands
4498         * src/pic16/glue.c (pic16_glue): added new banksel optimization
4499           for --obanksel > 1
4500         * src/pic16/pcode.c: implemented (first phase of) banksel optimization
4501         * src/pic16/graph.[ch]: implementation of directed graphs, used by
4502           new banksel optimization
4503         * src/pic16/pcoderegs.c (pCodeRegMapLiveRangesInFlow): prevented
4504           analysis for temporary registers (segfaults...)
4505         * src/pic16/peeph.def: added rule
4506
4507 2005-01-18 Vangelis Rokas <vrokas AT otenet.gr>
4508
4509         * device/lib/pic16/libc/stdlib/x_ftoa.c: it defines x_ftoa function
4510         which converts a float number to its ASCII representation
4511         * device/lib/pic16/libc/utils/cnvfrac.S,cnvint.S: support
4512         functions to convert the fractional and integer part of a float to ASCII,
4513         * device/lib/pic16/libc/stdlib/(calloc.c,free.c, malloc.c,
4514         realloc.c): added _MALLOC_SPEC to explicit place variables in data
4515         ram
4516         * device/include/asm/pic16/features.h: added _CODE, _DATA, _AUTOMEM,
4517         _STATMEM macros,
4518         * device/include/pic16/adc.h: added GPL info,
4519         * src/pic16/gen.c (genIfxpCOpJump): perform an genIfxJump but using
4520         a pCodeOp as tested operand,
4521         * (genNearPointerGet): optimized bit testing, does not use
4522         intermediate register for bit value, test directly instead with
4523         BTFSS, BTFSC, works only for single bits,
4524         * (genpic16Code): dump the name of the iCode in the asm,
4525         * src/pic16/ralloc.c (decodeOp): removed static declaration and
4526         renamed to pic16_decodeOp,
4527         * (serialRegAssign): do not allocate a temporary register for iCode
4528         sequences that test a single bit for 1/0
4529
4530 2005-01-12 Vangelis Rokas <vrokas AT otenet.gr>
4531
4532         * src/pic16/pcode.[ch]: introduced pic16_stackpnt_*,
4533         pic16_framepnt_*, pic16_stack_*, pic1_frame_* pointer variables to
4534         access stack and frame pointers. They are initially assigned to
4535         point at pic16_pc_fsr1[lh] and pic16_pc_fsr2[lh] variables and other
4536         accessing SFRs. Updated all occurences of modification of stack or
4537         frame pointer in gen.c and pcode.c,
4538         * src/pic16/ralloc.c (serialRegAssign): fixed two bugs with
4539         assigning of a literal value to pointers,
4540         * src/pic16/main.c (pic16_finiliseOptions): set pre-processor define
4541         flag STACK_MODEL_SMALL or STACK_MODEL_LARGE according to the model
4542         selected
4543
4544 2005-01-11 Vangelis Rokas <vrokas AT otenet.gr>
4545
4546         * doc/sdccman.lyx: update documentation about stack pragma, added
4547         some info for stack memory models
4548
4549 2005-01-08 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4550
4551         * src/pic16/gen.c (DEBUGpc): MSVC 6 does not support macro variable arguments
4552
4553 2005-01-08 Raphael Neider <rneider AT web.de>
4554
4555         * src/pic16/device.c (pic16_dump_usection): changed naming scheme for
4556           udata sections to fix bug #1097823
4557
4558 2005-01-05 Raphael Neider <rneider AT web.de>
4559
4560         * src/pic16/gen.c (genGenericShift): added handling of differently
4561           sized left operand and result
4562
4563 2005-01-04 Raphael Neider <rneider AT web.de>
4564
4565         * src/pic16/gen.c (genIfxJump): fixed inverted skips on CARRY
4566         * (genIfx): fixed (?) read from uninitialized SPIL_LOC (now assumes CARRY
4567           to hold the condition bit)
4568         * added new version of genCmp (old code available via #define)
4569         * added new version of genShiftLeft/genShiftRight in a generic
4570           way, now supports shifting by negative values
4571         * (genLeftShiftLiteral, genRightShiftLiteral): use absolute value of
4572           shiftCount (expected by genGenericShift)
4573         * src/pic16/genarith.c (genPlus): added code for adding CARRY+literal
4574         * src/pic16/pcode.c (pic16_OptimizeJumps): removed annoying statistics
4575           dump
4576         * (pic16_newpCodeOpLit): changed to cast to unsigned char (as e.g. -32766
4577           is an invalid literal too...)
4578
4579 2005-01-04 Vangelis Rokas <vrokas AT otenet.gr>
4580
4581         * src/pic16/gen.c (aopForSym, genEndFunction): applied some fixes
4582         from Raphael Neider,
4583         * src/pic16/pcode.c (pic16_newpCodeOpLit): removed casting to char
4584         for 8-bit literals. This fixes some literal operands which are sign
4585         extended to 16-bits ints when instruction needs only 8-bits.
4586
4587 2004-12-31 Paul Stoffregen <paul AT pjrc.com>
4588
4589         * device/lib/logf.c: added mcs51 assembly version
4590         * device/lib/expf.c: added mcs51 assembly version
4591         * device/lib/_logexpf.c: new shared asm code for expf and logf
4592         * device/include/math.h: add defines for assembly math library
4593         * device/lib/Makefile.in: build new _logexpf.c
4594         * device/lib/libfloat.lib: use new _logexpf.c
4595
4596 2004-12-29 Slade Rich <slade_rich AT users.sourceforge.net>
4597
4598         * src/pic/device.c
4599         * src/pic/pcode.c : adjusted internal stack and pre-allocated registers for
4600           device types which have less than 0x7f registers.
4601
4602 2004-12-29 Slade Rich <slade_rich AT users.sourceforge.net>
4603
4604         * src/pic/genarith.c : Fixed problem with subtraction where the result would not be updated when borrowing.
4605
4606 2004-12-28 Paul Stoffregen <paul AT pjrc.com>
4607
4608         * device/lib/printf_fast.c: only build on supported arch.
4609         * device/lib/printf_tiny.c: only build on supported arch.
4610         * device/lib/printf_fast_f.c: only build if asm float lib
4611         * device/lib/_fsget1arg.c: only build if asm float lib
4612         * device/lib/_fsget2args.c: only build if asm float lib
4613         * device/lib/_fsnormalize.c: only build if asm float lib
4614         * device/lib/_fsreturnval.c: only build if asm float lib
4615         * device/lib/_fsrshift.c: only build if asm float lib
4616         * device/lib/_fsswapargs.c: only build if asm float lib
4617         * device/include/stdio.h: don't provide print_fast,
4618           print_fast_f, print_tiny prototypes if --xstack used
4619
4620 2004-12-28 Maarten Brock <sourceforge.brock AT dse.nl>
4621
4622         * device/lib/sincosf.c (sincosf): don't invert bit/bool by ~
4623         * support/regression/ports/mcs51-stack-auto/spec.mk: added new _fs.. files
4624           to the SOURCES
4625
4626 2004-12-28 Paul Stoffregen <paul AT pjrc.com>
4627
4628         * device/lib/printf_fast_f.c: same as printf_fast, but
4629           with floating point enabled
4630         * device/lib/printf_fast.c: minor tweaks
4631         * device/include/stdio.h: add printf_fast_f
4632
4633 2004-12-27 Paul Stoffregen <paul AT pjrc.com>
4634
4635         * src/SDCCmain.c: make --float-reent default for mcs51
4636         * device/lib/_fsadd.c: added mcs51 assembly version
4637         * device/lib/_fssub.c: added mcs51 assembly version
4638         * device/lib/_fsmul.c: added mcs51 assembly version
4639         * device/lib/_fsdiv.c: added mcs51 assembly version
4640         * device/lib/_fseq.c: added mcs51 assembly version
4641         * device/lib/_fsneq.c: added mcs51 assembly version
4642         * device/lib/_fsgt.c: added mcs51 assembly version
4643         * device/lib/_fslt.c: added mcs51 assembly version
4644         * device/lib/_fscmp.c: shared code for fseq,fsgt,fslt,fsneq
4645         * device/lib/Makefile.in: add _fscmp to build
4646         * device/lib/libfloat.lib: add _fscmp to build
4647
4648 2004-12-27 Paul Stoffregen <paul AT pjrc.com>
4649
4650         * device/lib/_fs2slong.c: added mcs51 assembly version
4651         * device/lib/_fs2sint.c: added mcs51 assembly version
4652         * device/lib/_fs2schar.c: added mcs51 assembly version
4653         * device/lib/_fs2ulong.c: added mcs51 assembly version
4654         * device/lib/_fs2uint.c: added mcs51 assembly version
4655         * device/lib/_fs2uchar.c: added mcs51 assembly version
4656         * device/lib/_slong2fs.c: added mcs51 assembly version
4657         * device/lib/_sint2fs.c: added mcs51 assembly version
4658         * device/lib/_schar2fs.c: added mcs51 assembly version
4659         * device/lib/_ulong2fs.c: added mcs51 assembly version
4660         * device/lib/_uint2fs.c: added mcs51 assembly version
4661         * device/lib/_uchar2fs.c: added mcs51 assembly version
4662         * device/include/float.h: added #define to select asm vs c
4663
4664 2004-12-26 Paul Stoffregen <paul AT pjrc.com>
4665
4666         * device/lib/printf_fast.c: improvements to float output
4667         * device/include/float.h: add defines for assembly float library
4668         * device/lib/_fsget1arg.c: receive 1 float arg
4669         * device/lib/_fsget2args.c: receive 2 float args (reentrant)
4670         * device/lib/_fsnormalize.c: normalize a float
4671         * device/lib/_fsreturnval.c: return float, various helper routines
4672         * device/lib/_fsrshift.c: right shift a float's mantissa
4673         * device/lib/_fsswapargs.c: swap 2 floats
4674         * device/lib/Makefile.in: build these 6 new files for mcs51
4675         * device/lib/libfloat.lib: add these 6 files to the library
4676
4677 2004-12-26 Borut Razem <borut.razem AT siol.net>
4678
4679         * sim/ucsim/avr.src/arith_inst.cc: fixed bug #1088372- savr is not
4680           built by gcc 3.4.2
4681
4682 2004-12-25 Paul Stoffregen <paul AT pjrc.com>
4683
4684         * device/lib/printf_tiny.c: printf for mcs51 in only 267 bytes,
4685           and fully reentrant and register bank neutral.
4686         * device/lib/printf_fast.c: added float (not enabled by default),
4687           added compact/slower integer (also not enabled by default),
4688           improved size/speed of fast integer code, other minor changes
4689         * device/include/stdio.h, device/lib/Makefile.in,
4690           device/lib/libsdcc.lib: integrate printf_tiny into mcs51 build
4691
4692 2004-12-24 Maarten Brock <sourceforge.brock AT dse.nl>
4693
4694         * src/pic16/pcode.c: declaring variables other than at the start of a
4695           block is not supported in C by VC6.
4696
4697 2004-12-22 Vangelis Rokas <vrokas AT otenet.gr>
4698
4699         * applied a previous patch from Raphael Neider that wasn't included
4700         in the previous commits, which fixes infinite loops within jumptable
4701         improvements,
4702         * made some fixes that previous patches introduced
4703
4704 2004-12-21 Vangelis Rokas <vrokas AT otenet.gr>
4705
4706         * src/pic16/gen.c (pic16_aopGet): applied fix from Raphael Neider
4707         that fixes an issue with AOP_PCODE asmop's offset,
4708         * (pic16_popCopyReg): update instance field too,
4709         * (mov2w): modified to pic16_mov2w because it conflicts with mov2w
4710         function of pic port,
4711         * (genCmp, genAnd, genAssign),
4712         * src/pic16/genarith.c (genAddLit): some fixes from Raphael Neider,
4713
4714 2004-12-20 Vangelis Rokas <vrokas AT otenet.gr>
4715
4716         * src/SDCCast.c (gatherAutoInit): allow pic16 to emit static
4717         variables initial values to idata section,
4718         * src/SDCCicode.c (geniCodeCall): patch from ### to fix unreferenced
4719         variables in some functions. This utilizes parmBytes field of iCode
4720         structure to hold the offset of the variable in stack. (might be
4721         able to use the stack field too?)
4722         * applied patch from Raphael Neider # ### , # ###
4723         * src/pic16/glue.c (pic16emitRegularMap): fix to print static
4724         variable initial values in idata section,
4725         * src/pic16/ralloc.c (pic16_allocDirReg): don't allocate register
4726         for static variables with initial value
4727         * src/device/lib/pic16/libsdcc/float/ulong2fs.c (__ulong2fs):
4728         applied fix in while loop from Raphael Neider.
4729
4730 2004-12-19 Maarten Brock <sourceforge.brock AT dse.nl>
4731
4732         * src/ds390/gen.c (genCpl): fixed bit=~(char/bit) bugs, added warning
4733         * src/ds390/main.c (_ds390_regparm): don't pass bit params in registers
4734         * src/ds390/ralloc.c (serialRegAssign): spill bits
4735         * src/mcs51/gen.c (genCpl): fixed bit=~(char) bugs, added warning
4736         * support/Util/SDCCerr.c,
4737         * support/Util/SDCCerr.h: added warning W_COMPLEMENT for using bit=~(bit)
4738         * support/regression/tests/bitvars.c: added tests for bitwise complement(~)
4739         * support/regression/tests/bitwise.c: added test for bitwise complement(~)
4740
4741 2004-12-09 Maarten Brock <sourceforge.brock AT dse.nl>
4742
4743         * device/include/sdcc-lib.h: inserted LGPL, added includes
4744           asm/ds390/features.h and asm/mcs51/features.h
4745         * device/include/asm/default/features.h,
4746         * device/include/asm/gbz80/features.h,
4747         * device/include/asm/z80/features.h: added empty _AUTOMEM
4748           and _STATMEM
4749         * device/include/asm/ds390/features.h,
4750         * device/include/asm/mcs51/features.h: added files with defines for
4751           _AUTOMEM and _STATMEM indicating automatic and static storage class
4752         * device/lib/printf_large.c (_print_format): optimized & used _AUTOMEM
4753         * doc/sdccman.lyx: version 2.4.7, updated xstack documentation
4754         * src/SDCCicode.c (geniCodeCast),
4755         * src/SDCCsymt.c (compareType): allow cast of data-ptr to idata-ptr
4756         * src/SDCCloop.c (loopInduction): removed unused variable lr
4757         * src/SDCCopt.c (convilong, convertToFcall): moved "easy special case"
4758           to convertToFcall to include char modulo (RFE 1065037), added check
4759           if left operand is unsigned and use abs of literal value
4760         * src/SDCCpeeph.c (setFromConditionArgs): removed double quotes option
4761           as it doesn't work after conversion from peephole.def to peephole.rul
4762         * src/mcs51/gen.c (toBoolean): added check for size,
4763           (genModOneByte): optimized code for signed char modulo a literal
4764           power of 2 (thanks to Hubert Sack),
4765           (genRRC): removed unnecessary "clr c",
4766           (genRLC): replaced "add a,acc" with cheaper "rlc a"
4767         * src/mcs51/peeph.def: renamed 115 to 115.a, added rule 115.b: another
4768           jump optimization,
4769           swapped rules 256.c and 256.d,
4770           extended 256.d by using new multiple checks (thanks Erik),
4771           added rules 256.e and 256.f,
4772           updated rule 261.a and 261.b to new generated code
4773         * support/regression/tests/muldiv.c: added test div/mod by a power of 2
4774
4775 2004-12-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4776
4777         * src/SDCCloop.c (basicInduction, loopInduction): fixed several
4778           induction related bugs, including first part of bug #1074377
4779
4780 2004-12-05 Vangelis Rokas <vrokas AT otenet.gr>
4781
4782         * applied patch from bug-report #1076292,
4783         * applied patches for genAnd and Goto-optimizations for Raphael
4784         Neider,
4785         * src/SDCCicode.c (printOperand): fixed !REGA source to compile and
4786         dump a less iCode information,
4787         * src/pic16/device.h (pic16_options_t): added field debgen,
4788         * src/pic16/gen.h: added macros DUMP_FUNCTION_ENTRY,
4789         DUMP_FUNCTION_EXIT, FENTRY, FENTRY2,
4790         * src/pic16/gen.c (my_powof2): renamed to pic16_my_powof2 and made
4791         puclic,
4792         * (various functions): added macros FENTRY and FENTRY2 to functions,
4793         to emit function prologue,
4794         * (various functions): fixed indentation,
4795         * (genNearPointerGet): fixed loading of FSR0,
4796         * (genPackBits): applied patch from Raphael Neider to fix updating
4797         of FSR0 and touching only the modified bits,
4798         * src/pic16/genarith.c (various functions): added macros FENTRY to
4799         emit function prologue in comments,
4800         * src/pic16/pcode.h: added functions debugf2, debugf3,
4801         * src/pic16/ralloc.c: partial fix for packForPush caused
4802         segmentation fault,
4803
4804 2004-12-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4805
4806         * src/mcs51/peeph.def: added 261.a,b (16 bit rotate) by Stas Sergeev
4807           <stsp AT users.sourceforge.net> with reversed byte order
4808         * support/regression/tests/rotate.c: added (ds390 skips some tests)
4809
4810 2004-12-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4811
4812         * src/z80/gen.c (genLeftShift, genRightShift): fixed second part of
4813           bug #1074377
4814         * src/hc08/gen.c (genrshFour, shiftRLong, shiftLLong),
4815         * src/mcs51/gen.c (shiftLLong): Fixed some shifting bugs Frieder found
4816
4817 2004-12-02 Slade Rich <slade_rich AT users.sourceforge.net>
4818
4819         * src/pic/pcode.c : fixed a problem where banksel was not being inserted.
4820
4821 2004-12-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4822
4823         * src/SDCCpeeph.c (callFuncByName): support combined peephole rule
4824           conditions,
4825           (setFromConditionArgs): friendly operand parser for peephole rules,
4826           (operandBaseName, operandsNotRelated): new peephole condition
4827           "operandsNotRelated" -- similar to "operandsNotSame", but takes
4828           architecture specific register naming into account, handles n-way
4829           comparisons, and supports quoted literals
4830         * src/mcs51/peeph.def: restored rule 177.d with an extra condition
4831
4832 2004-12-02 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4833
4834         * src/mcs51/peeph.def: fixed bug #1076940
4835
4836 2004-12-02 Slade Rich <slade_rich AT users.sourceforge.net>
4837
4838         * device/include/pic/pic16f877.h : added an include file for the PIC16F877 device.
4839
4840 2004-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4841
4842         Adding support for replacing ljmps with sjmps in jumptables
4843         generated for switch statements. For now you need to set the
4844         environment variable SDCC_SJMP_JUMPTABLE to enable this.
4845         Now 4 algorithms for mcs51 jumptable generation are used:
4846         ljmp or sjmp jumptables for up to 16 cases, stack-pushing target
4847         addresses loaded pc-relative for up to 112 cases and stack-pushing
4848         target addresses loaded with offset from dptr for up to 256 cases.
4849
4850         * src/SDCCpeeph.c: added peephole conditional labelJTInRange
4851         * src/mcs51/main.c: adapted constants for switch table generation
4852         * src/mcs51/peeph.def: added 260.x for replacing ljmp with sjmp
4853
4854 2004-11-26 Maarten Brock <sourceforge.brock AT dse.nl>
4855
4856         * device/lib/printf_large.c (_print_format): fixed bug 1073386
4857         * support/regression/tests/bug1057979.c: added test for bug 1073386
4858
4859 2004-11-25 Vangelis Rokas <vrokas AT otenet.gr>
4860
4861         * src/pic16/pcode.c: fixed bug which may produce error in non-GNU
4862         compilers
4863
4864 2004-11-25 Vangelis Rokas <vrokas AT otenet.gr>
4865
4866         * src/pic16/device.h,
4867         * src/pic16/genarith.c,
4868         * src/pic16/glue.c,
4869         * src/pic16/main.c,
4870         * src/pic16/pcode.c: applied patches #1068154 and #1070213
4871
4872 2004-11-24 Vangelis Rokas <vrokas AT otenet.gr>
4873
4874         Large cummulative patch for pic16 port.
4875         * device/lib/pic16/gstack.h: NEW, user can specify its own handler
4876         to call when a stack overflow occurs,
4877         * (malloc.h): added CVS Id tag,
4878         * (pic18f{242,252,442,452}.h): added T0CONbits structure and
4879         variable,
4880         * added libc directory. The current version of LibC contains string
4881         functions, ctype functions and macros and some functions of the
4882         stdlib set (like malloc/free/atof/atoi etc...). All functions are to
4883         be extensively tested in the future. Standard disclaimer here.
4884         Library is not automatically build yet. But one can build it by
4885         invoking 'make' inside the libc directory.
4886         * added ADC library under libio. Preliminary version yet.
4887
4888         * src/pic16/gen.h: added emitTOGC macro, to toggle Carry flag,
4889         * src/pic16/gen.c (aopForRemat): asmop size is filled by
4890         aopForRemat() now and not by pic16_aopOp(),
4891         * (pic16_popGetTempReg): removed warning messgae when allocating
4892         temporary registers, its a buggy feature and will be removed,
4893         * (pic16_popGet): set register instance field in AOP_CRY,
4894         * (pic16_outBitC): fixed for results in size greater than 1,
4895         * (genUminusFloat): fixed for pic16, ported code from mcs51,
4896         * (pic16_storeForReturn): optimized return of 0,
4897         * (genCmp): experimental code for new genCmp which uses PIC18's
4898         special compare&skip instructions. Initial tests fail some times
4899         with variables grater than 1 byte in size, so new code is disabled,
4900         * (genUnpackBits, genPackBits): more optimizations in reading/writing,
4901         a single bit,
4902         * (genCast): began a fix to optimize the casting of a bit to another
4903         bit, now assigning a bitfield to another bitfield will fail, sorry,
4904         * src/pic16/main.c: disabled the use of lr-support feature,
4905         * src/pic16/pcode.h: renamed PCASMDIR to PCAD,
4906         * added some function prototypes, added function _debugf prototype,
4907         * src/pic16/pcode.c: (pic16_get_op): fixed emitting operands of register
4908         bits with offset (case PO_GPR_BIT),
4909         * (genericPrint): don't emit INFO pcode when --pcode-verbose not in
4910         command line,
4911         * (isBankInstruction): modified to return 0 for no banking instruction,
4912         and 1 for banking instruction,
4913         * (pic16_isPCinFlow): check for PCAD (assembler directives) too,
4914         caused stop processing pCodes after a inline assembly block,
4915         * (pic16_popCopyGPR2Bit): updated to match bitfields with offset,
4916         * src/pic16/pcoderegs.c: fixed a bug with eliminating some temporary
4917         registers when it shouldn't,
4918         * src/pic16/ralloc.c (allocReg): add preliminary support for
4919         supporting a limited set of temporary registers,
4920
4921 2004-11-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4922
4923         * src/hc08/gen.c (genAssign, genPointerGetSetOfs, genDataPointerGet,
4924           genDataPointerSet): ensure assignments always copy in MSB to LSB
4925           order,
4926           (loadRegFromAop): recognize CLRH optimization,
4927           (genFunction): optimize RECEIVE iCodes in reentrant functions
4928
4929 2004-11-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4930
4931         * src/SDCCmain.c (parseCmdLine, optionsTable[]): fixed bug with
4932           --out-fmt-s19 turning into --out-fmt-elf if s19 was already
4933           selected.
4934         * src/SDCCmain.c (linkEdit): don't define SSEG for HC08
4935         * src/hc08/main.c (_hc08_setDefaultOptions): default xdata to be
4936           contiguous with data
4937
4938 2004-11-19 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4939
4940         * device/lib/_gptrget.c (_gptrget),
4941         * device/lib/_gptrgetc.c (_gptrgetc),
4942         * device/lib/_gptrput.c (_gptrput): _naked allows to use ret
4943           instead of sjmp to ret
4944         * src/mcs51/peeph.def: added peepholes 3.d-g and 177.g,h provided
4945           by Hubert Sack <hsack2002 AT arcor.de> in RFE #1067986, thanks
4946
4947 2004-11-18 Maarten Brock <sourceforge.brock AT dse.nl>
4948
4949         * .version: bumped version to 2.4.7
4950         * device/lib/_gptrget.c (_gptrget): is now _naked
4951         * device/lib/_gptrgetc.c (_gptrgetc): is now _naked
4952         * device/lib/_gptrput.c (_gptrput): is now _naked
4953         * src/SDCCast.c (createBlock): removed ridiculous self-assignment,
4954           (createFunction): fixed xstack
4955         * src/SDCCglue.c (emitMaps): set allocation required for bit area
4956         * src/SDCCicode.c (geniCodeCast): don't change SPEC_OCLS for literal
4957           or bit either,
4958           (geniCodeCritical): store original interrupt state in an iTemp bit
4959           var unless stack-auto
4960         * src/SDCCicode.h: added CRITICAL and ENDCRITICAL to SKIP_IC2
4961         * src/SDCCmain.c (setIncludePath): added include/target to search path
4962         * src/SDCCmem.c (allocParms): store bit vars in bit space, not overlay
4963         * src/SDCCsymt.c (checkFunction): don't check regbank for isr's against
4964           prototype,
4965           (processFuncArgs): put bit vars in bit area
4966         * src/mcs51/gen.c (saveRegisters, unsaveRegisters, genXpush, saveRBank,
4967           unsaveRBank): fixed xstack,
4968           (genFunction): bugfix: replaced (global!) reentrant with fReentrant,
4969           (genFunction, genEndFunction): fixed xstack,
4970           (genAssign): optimization don't walk backwards through mem
4971         * src/mcs51/main.c (_mcs51_regparm): don't pass bit params in registers
4972         * src/mcs51/ralloc.c (createStackSpil): spill bits to bit area
4973         * support/regression/Makefile: also make library (for stack-auto) when
4974           making "all" and added "test-mcs51-xstack-auto"
4975         * support/regression/fwk/lib/testfwk.c: added T2_isr prototype for mcs51
4976         * support/regression/ports/mcs51/T2_isr.c: added this file as a stub
4977         * support/regression/ports/mcs51/fwk.lib: added to link T2_isr stub
4978         * support/regression/ports/mcs51/spec.mk: added rules for fwk.lib
4979         * support/regression/ports/mcs51-stack-auto/spec.mk: replaced
4980           make-library by MAKE_LIBRARY
4981         * support/regression/ports/mcs51-xstack-auto/spec.mk: file added to run
4982           regression tests for xstack
4983         * support/regression/tests/bitvars.c: test for bit vars (bug 938782)
4984         * support/regression/tests/critical.c: test for critical on mcs51
4985
4986 2004-11-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4987
4988         * support/regression/ports/ucz80/spec.mk: use include and lib files from
4989           built version of sdcc instead of installed version
4990
4991 2004-11-14 Maarten Brock <sourceforge.brock AT dse.nl>
4992
4993         * src/mcs51/gen.c (toBoolean): fixed bug 1065458
4994         * device/lib/Makefile.in: z80 uses printf_large.c, sprintf.c and
4995           vprintf.c now
4996         * device/lib/printf_large.c (calculate_digit): fixed bug 1057979
4997         * device/lib/z80/Makefile: don't use printf.c as it fails bug 1057979
4998           WARNING: remove device/lib/build/z80/printf.o by hand when
4999           updating from previous build!
5000         * device/lib/z80/printf.c: updated comment
5001         * support/regression/tests/bug1057979.c: test all ports now
5002         * support/regression/tests/bug1065458.c: file added
5003
5004 2004-11-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5005
5006         * src/z80/gen.c (genFunction, genEndFunction): avoided generating
5007           *_start and *_end symbols for static functions
5008
5009 2004-11-11 Maarten Brock <sourceforge.brock AT dse.nl>
5010
5011         * src/SDCCmain.c (linkEdit): don't suppress crt0 if --nostdlib is used
5012           and search crt0.o in all library paths,
5013           (setIncludePath): proper handling of --nostdinc,
5014           (setLibPath): proper handling of --nostdlib
5015         * support/regression/Makefile,
5016         * support/regression/ports/ds390/spec.mk,
5017         * support/regression/ports/gbz80/spec.mk,
5018         * support/regression/ports/hc08/spec.mk,
5019         * support/regression/ports/mcs51/spec.mk,
5020         * support/regression/ports/mcs51-large/spec.mk,
5021         * support/regression/ports/mcs51-stack-auto/spec.mk,
5022         * support/regression/ports/z80/spec.mk: use include and lib files from
5023           built version of sdcc instead of installed version
5024         * doc/sdccman.lyx: fixed typo in --nostdinc
5025
5026 2004-11-10 Slade Rich <slade_rich AT users.sourceforge.net>
5027
5028         * src/pic/pcode.c,
5029         * src/pic/device.c,
5030         * src/pic/ralloc.c,
5031         * src/pic/gen.c : added support to generate code for struct bit fields.
5032
5033 2004-11-06 Maarten Brock <sourceforge.brock AT dse.nl>
5034
5035         * as/xa51/xa_version.h,
5036         * device/include/errno.h,
5037         * device/include/regc515c.h,
5038         * device/lib/_itoa.c,
5039         * device/lib/_ltoa.c,
5040         * device/lib/ser_ir_cts_rts.c,
5041         * sim/ucsim/xa.src/glob.cc,
5042         * sim/ucsim/xa.src/inst_gen.cc,
5043         * sim/ucsim/xa.src/xa_bit.cc,
5044         * sim/ucsim/xa.src/xa_sfr.cc,
5045         * sim/ucsim/z80.src/inst_dd.cc,
5046         * sim/ucsim/z80.src/inst_fdcb.cc,
5047         * support/scripts/keil2sdcc.pl,
5048         * src/pic16/pic16.dsp,
5049         * src/pic16/pic16a.dsp: corrected cvs line endings
5050         * device/lib/printf_large.c: fixed bug 1057979
5051         * src/pic16/gen.c: fixed non-C standard code
5052         * src/SDCCmain.c: made --pack-iram default, added --no-pack-iram
5053         * src/SDCCglobl.h: changed pack_iram to no_pack_iram
5054         * support/regression/ports/mcs51/support.c: reload T1 asap
5055         * doc/sdccman.lyx: updated for options --pack-iram and --no-pack-iram,
5056           pdata use and clear idata startup behaviour
5057         * support/regression/tests/bug1057979.c: added
5058
5059 2004-11-04 Maarten Brock <sourceforge.brock AT dse.nl>
5060
5061         * device/examples/ds390/ow390/ad26.h,
5062         * device/examples/ds390/ow390/cnt1d.h,
5063         * device/examples/ds390/ow390/crcutil.c,
5064         * device/examples/ds390/ow390/ownet.h,
5065         * device/examples/ds390/ow390/owsesu.c,
5066         * device/examples/ds390/ow390/swt12.h,
5067         * device/examples/ds390/ow390/swtoper.c,
5068         * device/examples/ds390/ow390/temp10.h,
5069         * device/examples/ds390/ow390/thermodl.c,
5070         * device/examples/ds390/tinitalk/tinitalk.dsp,
5071         * device/examples/ds390/tinitalk/tinitalk.dsw,
5072         * device/examples/mcs51/clock/hw.h,
5073         * device/examples/mcs51/simple2/go.bat,
5074         * device/examples/serialcomm/windows/serial.h,
5075         * device/examples/xa51/dummy.c,
5076         * device/examples/xa51/hello.c,
5077         * device/include/80c51xa.h,
5078         * device/include/at89x051.h: corrected cvs line endings
5079
5080 2004-11-04 Vangelis Rokas <vrokas AT otenet.gr>
5081
5082         * src/pic16/main.c (options): added command line --gstack, to trace
5083         stack over/under flows,
5084         * added pragma 'wparam' to allow passing first byte of function
5085         parameters via WREG, syntax is #pragma wparam my_function[, func2...]
5086         * src/pic16/gen.c (pic16_testStackOverflow): function which emits a
5087         call to __gstack_test function and sets up the symbol as extern,
5088         * (pic16_pushpCodeOp, pic16_poppCodeOp, pushw, pushaop, popaopidx,
5089         * popaop): added call to pic16_testStackOverflow,
5090         * (wParamCmp, inWparamList): NEW, test existence of a symbol in
5091         wparamList list,
5092         * (genCall, genPcall): now all parameters are passed via stack
5093         except in functions that are pass to wparam pragma in which WREG is
5094         used too,
5095         * (genPcall): REENTRANT flag is checked to see if variable prototype
5096         contains reentrant keyword, don't call a non-reentrant function, via
5097         a reentrant function pointer or vice versa, functions are never
5098         passed via WREG,
5099         * (genJumpTab): applied patch from bug #1057478 by R.Neider and
5100         D.Winkler,
5101         * src/pic16/glue.c (pic16emitRegularMap): fixed bug which caused a
5102         SIGSEGV when accessing a NULL register stucture,
5103         * (pic16_printGPointerType): modified to handle UPPER modifier for
5104         function initializers, changed prototype of function to simpler one,
5105         * (pic16_printIvalFuncPtr): check to see if function is already
5106         added in externs list,
5107         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): fixed bug which
5108         optimized a move from W to SFR with a move to the same register
5109         later after a CALL,
5110         * device/lib/pic16/debug: NEW directory, contains debug features
5111         which are enabled when linking with libdebug.lib, currently command
5112         line option --gstack enables stack pointer tracing for over/under
5113         flow, corresponding sources are in debug/gstack
5114
5115 2004-10-30 Vangelis Rokas <vrokas AT otenet.gr>
5116
5117         * doc/sdccman.lyx: updated SDCC version,
5118         * (PIC16 port): update list of command line options,
5119         * src/pic16/device.h (structure pic16_options_t): added field gstack
5120         to enable stack overflow tracing on push/pops,
5121         * src/pic16/device.c (statistics structure): added statistics
5122         structure,
5123         * (pic16_dump_access, pic16_dump_usection, pic16_dump_gsection,
5124         pic16_dump_int_registers): increase statistics counters for each
5125         * variable which is encountered
5126         * (pic16_dump_usection): emit each .udata variable to its own udata
5127         section,
5128         * src/pic16/gen.c (assignResultValue, genCall, genPcall, genFunction):
5129         when macro USE_WREG_IN_FUNC_PARAMS is set to 0 pass all function
5130         parameters via stack, otherwise use old scheme,
5131         * src/pic16/glue.c (pic16_emitStatistics): dump statistics in
5132         assembler output file,
5133         * src/pic16/main.c: added command line options --gstack to enable
5134         push/pop tracing for stack overflow,
5135         * src/pic16/pcode.c (all pCodeInstruction records for PIC18F
5136         instructions): added size of each instruction,
5137         * (pic16_countInstruction): estimate size of instructions in
5138         the_pFile list, inline assembly blocks are not counted,
5139         * (pic16_FixRegisterBanking): trace previous register usage, when
5140         banksel optimizations is greater than 0, don't emit a redudant
5141         banksel directive,
5142
5143 2004-10-26 Slade Rich <slade_rich AT users.sourceforge.net>
5144
5145         * src/pic/ralloc.c : fixed inefficient code produced when compiling a complimented bit operation.
5146         * src/pic16/ralloc.c : applied same fix for pic16.
5147         * src/pic/gen.c : tidied it up a little.
5148
5149 2004-10-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5150
5151         * src/mcs51/peeph.def: disabled 259.a,b for removing redundant ret,
5152         thanks to Martin Helmling for reporting (mail on sdcc-devel 2004-10-25)
5153
5154 2004-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5155
5156         * src/SDCCast.c (reverseParms): fixed bug #1040577 (part 2)
5157
5158 2004-10-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5159
5160         * device/lib/ser_ir_cts_rts.c: integer promotion caused a call to the
5161         non-reentrant function __modsint in the interrupt function (thus
5162         corrupting math operations during serial I/O)
5163         * device/lib/ser_ir.c: as above, changed buffersize
5164         * src/mcs51/peeph.def: added 259.a,b for removing redundant ret,
5165         256.c,d for zeroing
5166         * doc/Makefile: added option -t for rsync
5167
5168 2004-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5169
5170         * src/SDCCast.h (struct ast),
5171         * src/SDCCast.c (reverseParms, copyAst): fixed bug #1040577 (part 1)
5172
5173 2004-10-20 Borut Razem <borut.razem AT siol.net>
5174
5175         * support/scripts/sdcc.nsi: added include/pic16/*.h to the setup
5176         package
5177
5178 2004-10-20 Vangelis Rokas <vrokas AT otenet.gr>
5179
5180         * device/lib/pic16/libsdcc/Makefile: added lregs directory in
5181         makefile targets,
5182         * device/lib/pic16/libsdcc/lregs/{Makefile,lrst.c,lrrest.c}: NEW
5183         support functions to replace long sequences of MOVFF's from access
5184         bank registers to stack and vice versa,
5185         * src/pic16/device.h: added new field opt_flags, where optimization
5186         flags can be set to enable certain features,
5187         * src/pic16/gen.c (pic16_emitpinfo): NEW to add PC_INFO pCode in
5188         * pBlock, (genFunction, genEndFunction): surroung loop for
5189         saving/loading used registers in stack with PC_INFO pCodes,
5190         INF_LREGS. Code in between can then be optimized by pCode optimizer
5191         to support function calls,
5192         * (genDataPointerSet): fixed bug which loaded float fields in
5193         structures with corrupt data,
5194         * src/pic16/genutils.c (debugf, _debugf): macro/function which emits
5195         in a standard way debug info on stderr. Feature used for developing
5196         and debugging only,
5197         * src/pic16/glue.c (pic16glue): reformatted, deleted some old and
5198         obsolete chunks of code,
5199         * if optimization flag OF_LR_SUPPORT was set, call pic16_OptimizeLocalRegs,
5200         * src/pic16/main.c (_pic16_parseOptions): added handler for --flr-support,
5201         * pic16/src/pcode.c (pic16_newpCodeInfo,
5202         * (pic16_newpCodeOpLocalRegs),
5203         * (pic16_convertLocalRegs2Support): NEW, to support new optimization
5204         feature,
5205         * (pic16_pCodeConstString): printing of the initial value of a
5206         symbol as a comment is inhibited since parsing was already done by
5207         copyStr and output is corrupt,
5208         * (pic16_pCode2str, genericPrint): handle PC_INFO pCode,
5209
5210 2004-10-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5211
5212         * src/mcs51/ralloc.c (packRegisters): fixed bug #1044601
5213
5214 2004-10-19 Maarten Brock <sourceforge.brock AT dse.nl>
5215
5216         * as/mcs51/lkarea.c: removed old K&R style,
5217           (lnksect): changed check on boundary error,
5218           (lnksect2): changed check on boundary error,
5219           (lnksect2): extend XSTK to end of page if size = 1
5220         * as/mcs51/lkmain.c: removed old K&R style,
5221           (Areas51): create l_IRAM symbol
5222         * as/mcs51/lkmem.c (summary2): added report on PSEG and XSTK
5223         * device/lib/Makefile.in: renamed model-mcs51-reentrant to
5224           model-mcs51-stack-auto, added model-mcs51-xstack-auto
5225         * device/lib/_mullong.c: added version to be compiled with xstack
5226         * device/lib/mcs51/crtclear.asm: clear only upto --iram-size
5227         * device/lib/mcs51/crtxclear.asm: clear pdata as well
5228         * device/lib/mcs51/crtxstack.asm: fixed comment
5229         * src/SDCCglue.c: maxInterrupts defaults to 0,
5230           (emitMaps): added pdata,
5231           (createInterruptVect): (re)moved default,
5232           (glue): added pdata,
5233           (glue): moved __start__xstack to XSTK with default size 1
5234         * src/SDCCmain.c (parseCmdLine): automatically set options.intlong_rent
5235           and options.float_rent when options.stackAuto is set,
5236           (linkEdit): only write XDATA_NAME if provided on command line
5237         * src/SDCCmem.h,
5238         * src/SDCCmem.c: added pdata
5239         * src/port.h: added pdata_name to PORT
5240         * src/mcs51/gen.c (toBoolean): fixed for Acc use of aopGet,
5241           (saveRegisters, unsaveRegisters): removed usage of B,
5242           (genMinus): fixed accumulator clash,
5243           (genJumpTab): added comment, this needs another look
5244         * src/mcs51/gen.c: added check for "B in use" paranoia,
5245           added pushB() and popB()
5246         * src/mcs51/peeph.def: restart after 177.c so 177.a can get a second
5247           chance
5248         * src/avr/main.c,
5249         * src/ds390/main.c,
5250         * src/hc08/main.c,
5251         * src/mcs51/main.c,
5252         * src/pic/main.c,
5253         * src/pic16/main.c,
5254         * src/xa51/main.c,
5255         * src/z80/main.c: (reset_regparms) made void parameter explicit and
5256           added PSEG (PAG,XDATA) or NULL to port specifier
5257         * src/ds390/main.c (_ds390_genIVT): moved implemented default in here
5258         * src/mcs51/main.c (_mcs51_genIVT): moved implemented default in here,
5259           (_mcs51_genInitStartup): removed __start__xstack equ,
5260           (mcs51_port): moved xstack from XSEG (XDATA) to XSTK (PAG,XDATA)
5261         * src/pic16/device.c (pic16_dump_usection, pic16_dump_isection),
5262         * src/z80/gen.c (_rleAppend): fixed warnings
5263         * support/regression/tests/zeropad.c: added pdata test
5264         * .version: bumped to 2.4.6
5265
5266 2004-10-17 Borut Razem <borut.razem AT siol.net>
5267
5268         * support/scripts/sdcc.nsi: cross compiling of WIN32 setup.exe on Linux
5269         as a part of nightly build
5270
5271 2004-10-16 Vangelis Rokas <vrokas AT otenet.gr>
5272
5273         * src/pic16/gen.c (struct _G): added field useWreg, is set to 1 when
5274         WREG holds the first byte function parameters,
5275         * (aopForSym): take special case for symbols which are in FARSPACE
5276         but in CODESPACE too,
5277         * (assignResultValue): modified to take into account _G.useWreg,
5278         * (genCall): don't use wreg for parameter passing when function is
5279         declared as reentrant, too, added optimization INCF to stack
5280         pointer when stack parameter count is 1,
5281         * (genFunction, genEndFunction): refurnished and fixed to not using
5282         wreg for passing parameters when function has varargs or is
5283         reentrant, fixed bug with symbol name compare for generating
5284         functions in absolute address,
5285         * (pic16_storeForReturn): refurnished,
5286         * (genCmp): began writing a new version of the function, not ready
5287         yet, therefore it is disabled,
5288         * (genAssign): do not read code memory when assigning a function to
5289         a pointer function,
5290         * src/pic16/glue.c (pic16emitStaticSeg): abSym->name is defined an
5291         array of characters, not pointer,
5292         * (pic16initialComments): in debug mode emit an .ident directive for
5293         the assembler,
5294         * (_process_pragma): emit a new warning type (internal to pic16)
5295         when setting stack to default length, emit a similar warning when
5296         placing a function at absolute address and address is not word aligned
5297         * (_pic16_parseOptions): added 'return TRUE' statement,
5298         * (_pic16_linkEdit): if compiling a source, then add the source's
5299         file object, first in the list of objects to link,
5300
5301 2004-10-13 Slade Rich <slade_rich AT users.sourceforge.net>
5302
5303         * src/pic/pcoderegs.c : increased count on regUsedinRange to prevent unnecessary warning.
5304         * src/pic/main.c : removed VC warning.
5305         * src/pic/gen.c : changed comment.
5306
5307 2004-10-12 Vangelis Rokas <vrokas AT otenet.gr>
5308
5309         * device/lib/pic16/libsdcc/gptr/gptrput[234].c: an external
5310         reference to a deprecated symbol _GPTRREG was causing failure to
5311         link. Thanks G. M. Gallant for the info.
5312
5313 2004-10-12 Slade Rich <slade_rich AT users.sourceforge.net>
5314
5315         * src/pic/pcode.c : Applied a code patch supplied by Paul Ashmore in
5316         comments for Bugs item #954788.
5317
5318 2004-10-10 Vangelis Rokas <vrokas AT otenet.gr>
5319
5320         * src/pic16/device.c (pic16_dump_gsection,
5321         * pic16_groupRegistersInSection): handle symbols declared to be in
5322         access bank differently,
5323         * src/pic16/gen.c (struct _G): added field resDirect,
5324         * (aopForSym): if symbol on stack and iCode is '=' and result exists,
5325         send values read from stack directly to result and don't allocate
5326         temporary values,
5327         * (pic16_sameRegs): fixed bug that allowed MOVFF to move between
5328         same registers,
5329         * (pic16_sameRegsOfs): NEW,
5330         * (freeAsmop): if _G.resDirect is set then do not mark registers as
5331         free because they were not allocated from temporary pool,
5332         * pic16_popRegFromString): workaround to fix a problem with
5333         allocating variables twice or never,
5334         * (genGenPointerGet): using PRODL instead of FSR0H,
5335         * (genGenPointerSet): using POSTDEC1 (that is a stack location)
5336         instead of FSR0H,
5337         * (genAssign): take advantage of the _G.resDirect flag,
5338         * (genCast): around line 11844, use mov2f instead of directly
5339         MOVFF'ing between operands to account for literal values,
5340         * src/pic16/genutils.c: some new debug functions for gpsim have been
5341         added,
5342         * src/pic16/glue.c (pic16_printIvalType): fixed bug that initialized
5343         float with integer part only,
5344         * src/pic16/main.c (_process_pragma): handle pragma udata access to
5345         place variables in access bank
5346         * device/lib/pic16/libsdcc/gptr/gptr*.c: using BRA instead of GOTO,
5347         updated sources to reflect recent changes in gen.c
5348
5349 2004-10-06 Vangelis Rokas <vrokas AT otenet.gr>
5350
5351         * device/lib/pic16/libsdcc/Makefile.rules: fixed bug concerning
5352         sources that searched for headers in installation path, now the
5353         device/include/pic16 is used,
5354         * src/pic16/glue.c (pic16glue),
5355         * src/pic16/pcode.c (pCode2str, genericPrint): don't print .file or
5356         .line directives if not in debug mode, this suppresses assembler's
5357         warnings for ignored directives
5358
5359 2004-10-05 Maarten Brock <sourceforge.brock AT dse.nl>
5360
5361         * src/port.h: made reset_regparms prototype void parameter explicit.
5362         * src/SDCCsymt.c (processFuncArgs): removed argument "func".
5363         * src/mcs51/ralloc.c (packRegisters): new fix for bugs 898889 & 979599.
5364         * doc/sdccman.lyx: documented warning disabling and how to use
5365           printf_large to make it print floats.
5366         * device/include/stdbool.h: NEW
5367         * device/lib/_atof.c,
5368         * device/lib/_divuint.c,
5369         * device/lib/_divulong.c,
5370         * device/lib/expf.c,
5371         * device/lib/printf_large.c,
5372         * device/lib/sincosf.c,
5373         * device/lib/sincoshf.c: used stdbool.h, all compile with stack-auto now
5374         * device/lib/Makefile.in: added target for model-mcs51-reentrant to build
5375           a completely reentrant lib.
5376
5377 2004-10-05 Vangelis Rokas <vrokas AT otenet.gr>
5378
5379         * device/lib/pic16/libsdcc/gptr/gptr*.c: added return statements
5380         * device/include/pic16/stdio.h: fixed bug with colon
5381
5382 2004-10-03 Vangelis Rokas <vrokas AT otenet.gr>
5383
5384         * device/include/pic16/stdio.h,
5385         * device/include/pic16/stdlib.h,
5386         * device/include/pic16/math.h: NEW
5387         * device/lib/pic16/libsdcc/gptr/*.c (gptrget*, gptrput*): functions
5388         declared as _naked to reduce overhead
5389         * device/lib/Makefile.in (target port-specific-objects-pic16):
5390         changed * to *.* so to ignore the CVS directory,
5391         * src/pic16/gen.c (pic16_freeAsmop): added code to store result of
5392         stacked variables back in stack,
5393         * (genEndFunction): fixed bug reported by G.M. Gallant with stack
5394         corruption
5395
5396 2004-10-01 Vangelis Rokas <vrokas AT otenet.gr>
5397
5398         * .version: bumped version number to 2.4.5
5399         * support/Util/SDCCerr.h: added warning W_POSSBUG2.
5400         * support/Util/SDCCerr.c (messages structure): added entry for
5401         W_POSSBUG2
5402
5403         Large cumulative patch for pic16 port and libraries.
5404         * device/include/pic16/sdcc-lib.h,
5405         * device/include/pic16/stdarg.h,
5406         * device/include/asm/pic16/features.h,
5407         * device/include/lib/pic16/libsdcc/gptr/{*.c, Makefile}: NEW,
5408         * device/include/pic16/float.h: changes reentrant keyword with
5409         _FS_REENTRANT, added prototype for __fsneq, included sdcc-lib.h
5410         * device/lib/pic16/libsdcc/Makefile: added target directory gptr,
5411         updated target build-libraries to include objects from gptr,
5412         * device/lib/pic16/libsdcc/{char,int,long}/*.c: added macro
5413         _IL_REENTRANT to all function headings, included sdcc-lib.h header,
5414         * device/lib/pic16/libsdcc/float/*.c: added macro _FS_REENTRANT to
5415         all function headings,
5416         * src/SDCCmain.c: added global parameter userIncDirsSet,
5417         * (parseCmdLine): when option -I is encountered add directory to
5418         userIncDirsSet too,
5419         * src/version.awk: added space between control and long,
5420         * src/pic16/NOTES: added some notes for the port,
5421         * src/pic16/gen.c: added prototype for mov2fp function,
5422         * (fReturnpic16[]): properly named return value registers,
5423         * (_G structure): added fields stackRegSet, fregsUsed, stack_lat,
5424         * (aopForSym): added code to handle symbols with onStack flag set,
5425         symbols onStack are allocated PTRSIZE bytes,
5426         * (aopFreeAsmop): handles special case where asmops are stack objects,
5427         * (aopGet, pic16_popGet): adde cod to handle new asmop AOP_STA,
5428         * (pic16_popGetTempReg, pic16_popGetTempRegCond, pic16_popReleaseTempReg):
5429         added argument lock to trace flaws in allocating temporary registers
5430         when developing port,
5431         * (pic16_popGetLit, pic16_popGetLit2): changed lit from unsigned to signed
5432         * (pic16_popRegFromString): reenabled allocating a direct register
5433         from string,
5434         * (assignResultValue): various beautifications,
5435         * fixed bug #1037717 (patch from R. Neider & D. Wrinkler) with mistaken
5436         referenced function argument,
5437         * (genIpush): reenabled to allow stacked arguments, handles only
5438         ic->parmPush iCodes,
5439         * (genCall, genPcall): major changes to allow for variable argument
5440         functions, fixed a bug with falsely restoring stack pointer after
5441         returning from call,
5442         * (genFunction): pending code for critical function,
5443         * (shiftR1Left2ResultSigned, shiftR1Left2Result, shiftL2Left2Result,
5444         * (shiftR2Left2Result, shiftLLong) applied patch #1032155 from R.Neider,
5445         * (genNearPointerGet): fixed bug with indirect reading, was always
5446         reading from INDF0
5447         * (genGenPointerGet, genGenPointerSet): rewrote to support generic
5448         pointers,
5449         * (genAddrOf): rewrote code to take address of a stacked function parameter
5450         * (genCast): fixed casting to generic pointer type,
5451         * src/pic16/gen.h: added AOP_STA,
5452         * (struct asmop): added field stk,
5453         * src/pic16/genarith.c (pic16_AopType): handle AOP_STA,
5454         * (pic16_genPlusIncr): changed emitSKPNZ to emitSKPNZ,
5455         * (pic16_genAddLit, pic16_genPlus): applied patch #1034042 by tecodev,
5456         * (pic16_genMinus): fixed bug #1035119 with patch submitted by tecodev,
5457         * src/pic16/genutils.c (pic16_genNot): removed symbol *tlbl,
5458         * src/pic16/glue.c (pic16_printGPPointerType): fixed to support new
5459         generic pointers,
5460         * src/pic16/main.c (_pic16_initPaths): ignores default SDCC include
5461         and library paths,
5462         * (pic16_port structure): generic pointer size is set to 3,
5463         * src/pic16/pcode.c (pic16_newpCodeOpLit): correctly print literal integer,
5464         * (insertBankSwitch): cast to (char *) to prevent 64bit CPUs'
5465         compiler warning,
5466         * src/pic16/ralloc.c (allocReg): prevent allocating register when
5467         operand is an iTemp,
5468
5469 2004-09-24 Martin Helmling <mh AT octo-soft.de>
5470
5471         * debugger/mcs51/cmd.c: set PC if a symbol at pc reg is set
5472         * debugger/mcs51/simi.c: addapt new syntax of s51
5473
5474 2004-09-23 Vangelis Rokas <vrokas AT otenet.gr>
5475
5476         * src/pic16/genutils.c (pic16_genNot): fixed bug #1032265,
5477         * src/pic16/pcode.c: commented out some calls to free() in order to
5478         fix bug #989576,
5479
5480 2004-09-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5481
5482         * src/SDCCicode.h,
5483         * src/SDCCicode.c (isiCodeInFunctionCall),
5484         * src/avr/ralloc.c (selectSpil),
5485         * src/pic/ralloc.c (selectSpil),
5486         * src/pic16/ralloc.c (selectSpil),
5487         * src/ds390/ralloc.c (selectSpil),
5488         * src/hc08/ralloc.c (selectSpil),
5489         * src/xa51/ralloc.c (selectSpil),
5490         * src/mcs51/ralloc.c (selectSpil): Don't use remainSpil to spill to the
5491         stack in the middle of a function call sequence (fixes bug #1020268)
5492         * src/SDCCicode.c (geniCodeJumpTable): fixed error in computing the
5493         costs associated with the minimum switch case.
5494
5495 2004-09-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5496
5497         * src/SDCC.lex: fixed bug #1030549
5498
5499 2004-09-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5500
5501         * src/SDCCcse.h (struct cseDef),
5502         * src/SDCCcse.c (cseBBlock, newCseDef, ifFromAddrTaken): purge CSEs
5503         over a function call if the CSE is derived from a symbol whose
5504         address has been taken (fixes bug #1029883)
5505         * support/regression/tests/bug-1029883: a new regression test for
5506         this bug
5507
5508 2004-09-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5509
5510         * src/hc08/gen.c (emitinline): fixed bug #1029778
5511         * src/SDCC.y (assignment_expr): fixed the grammer so that assignment
5512         to a cast object is no longer a syntax error ("fixes" bug #1030006,
5513         and starts toward RFE #905167)
5514
5515 2004-09-17 Vangelis Rokas <vrokas AT otenet.gr>
5516
5517         * src/pic16/gen.c (mov2f): New function to move an operand to
5518         another without considering if it is a literal or a register,
5519         * (pic16_sameRegs): don't check if they are both AOP_REG,
5520         * (AccRsh): removed andmask=0 lines,
5521         * (genLeftShift): duplicated to be improved in future versions,
5522         * src/pic16/main.c (_process_pragma): emit stack default size in hex,
5523         * src/pic16/pcode.c: added POC_INFSNZW, updated inverted_op fields
5524         in POC_INCFSZ, POC_INCFSZW, POC_INFSNZ,
5525         * (pic16initMnemonics): added initialization for POC_INFSNZW,
5526         * (insertBankSwitch): fixed inserting banksel directives algorithm
5527         for instructions that follow a skip instruction, this fixes a report
5528         for broken subtraction code generation,
5529         * src/pic16/ralloc.c (deassignLRs): do not free register if current
5530         iCode is a left op, just in case result and right share the same
5531         registers
5532
5533 2004-09-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5534
5535         * src/hc08/main.c,
5536         * src/hc08/gen.c (genJumpTable): more efficient jump table, supports
5537         preservation of HX
5538         * src/hc08/gen.c (pullRegs): fixed order of HX & XA pairs
5539         * src/mcs51/ralloc.c (packRegisters): removed the patch applied
5540         on 2004-09-12; it was buggy
5541
5542 2004-09-15 Bernhard Held <bernhard AT bernhardheld.de>
5543
5544         * src/SDCCsymt.h: removed RESULT_CHECK
5545         * src/SDCCast.c,
5546         * src/SDCCglue.c,
5547         * src/SDCCval.c,
5548         * src/pic/glue.c,
5549         * src/pic16/glue.c: replaced RESULT_CHECK with RESULT_TYPE_NONE
5550
5551 2004-09-15 Vangelis Rokas <vrokas AT otenet.gr>
5552
5553         * src/SDCCicode.c (piCode): applied patch from Raphael Neider,
5554         * src/pic16/device.c (pic16_assignConfigWordValues): wrong
5555         configuration values no more rejected by compiler, they are assigned
5556         to configuration registers with a warning message instead,
5557         * src/pic16/glue.c (pic16_emitConfigRegs): added +1 at top-limit of
5558         the for-loop so last conf register is emitted too,
5559         * (_pic16_initPaths): link library libsdcc.lib by default,
5560         * (_hasNativeMulFor): modified test for multiplication according to
5561         Raphael Neider's remarks. Integer multiplication is also done with
5562         support functions,
5563         * device/include/pic16/pic18fregs.h: corrected type error in while
5564         testing and including 18f6720 header file
5565
5566 2004-09-14 Vangelis Rokas <vrokas AT otenet.gr>
5567
5568         * src/pic16/device.h (pic16_options): removed field use_crt,
5569         * src/pic16/gen.c (genUnpackBits): added call to pic16_loadFSR0
5570         until an optimization to handle single bits is added,
5571         * (pic16_loadFSR0): moved before genUnpackBits,
5572         * (genAnd): some white lines removed,
5573         * src/pic16/main.c (_pic16_finaliseOptions): set omit_ivt and clear
5574         leave_reset flags in pic16_options when using crt modules,
5575
5576 2004-09-12 Maarten Brock <sourceforge.brock AT dse.nl>
5577
5578         * src/mcs51/ralloc.c (packRegisters): applied fix by Bernhard Held
5579           for bugs 898889 & 979599. Also used some safer print instructions.
5580
5581 2004-09-12 Vangelis Rokas <vrokas AT otenet.gr>
5582
5583         * src/pic16/device.h (pic16_options_t): added field use_crt,
5584         crt_name, no_crt,
5585         * src/pic16/genarith.c (pic16_genPlus): added an assert(0) line to
5586         catch a probable future bug,
5587         * src/pic16/gen.c: aopIdx function commented out,
5588         * (genAssign): commented out old code which used aopIdx,
5589         * src/pic16/glue.c (pic16glue): removed some legacy fragments of
5590         code, added if conditionals to take into account the --use-crt
5591         command line options,
5592         * src/pic16/main.c (pic16_optionsTable): added new command line
5593         options, --use-crt= and --no-crt,
5594         * (_pic16_linkEdit): now the proper crt object is added in the
5595         linker command line except than when --no-crt is specified,
5596         * src/pic16/pcode.c,
5597         * src/pic16/pcode.h: added some structures and functions for a new
5598         optimization scheme to compansate for instruction overhead between
5599         same iCodes, this scheme is currently under development and is not
5600         working in any way,
5601         * src/pic16/gen.c (genAnd): added patch provided by Aaron Collwell
5602         to && operator,
5603         * device/lib/pic16/startup/crt0i.c,
5604         * device/lib/pic16/startup/crt0iz.c: added global char variable
5605         __uflags to force the generation of an idata section
5606
5607 2004-09-12 Bernhard Held <bernhard AT bernhardheld.de>
5608
5609         * doc/Makefile,
5610         * doc/clean.mk: added support for easy creation of sdcc-doc.tar.bz2
5611         * doc/sdccman.lyx: updated sdcc version to 2.4.4
5612
5613 2004-09-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5614
5615         * doc/sdccman.lyx: fixed a problem with my new index entries (thanks
5616         Frieder) and clarified the default code optimization mode
5617
5618 2004-09-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5619
5620         * src/SDCC.lex (doPragma, process_pragma),
5621         * src/SDCCglobl.h (struct optimize): added pragmas "opt_code_speed",
5622         "opt_code_size", and "opt_code_balanced"
5623         * src/SDCCmain.c (optionsTable[], printOptions, scanOptionsTable):
5624         regrouped options by category, added support for category headers
5625         * src/SDCCmain.c (parseCmdLine): added options "--opt-code-speed"
5626         and "--opt-code-size"
5627         * doc/sdccman.lyx: documented these new options and pragmas
5628         * src/hc08/gen.c (AccLsh, AccRsh): take speed/size optimization
5629         preference into account
5630
5631 2004-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
5632
5633         * src/SDCCicode.c (geniCodePostInc, geniCodePreInc, geniCodePostDec,
5634           geniCodePreDec): Fixed bug 904237 by generating a warning
5635         * src/SDCCerr.h,
5636         * src/SDCCerr.c: added warning W_SIZEOF_VOID
5637
5638 2004-09-09 Slade Rich <slade_rich AT users.sourceforge.net>
5639
5640         * src/pic/device.c : When no max ram set validate full memory range.
5641         * src/pic/pcode.c,
5642         * src/pic/pcodepeep.c : Copy C code comments to optimised replacement code.
5643
5644 2004-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
5645
5646         * device/lib/_gptrget.c,
5647         * device/lib/_gptrput.c: updated comment
5648         * device/lib/calloc.c,
5649         * device/lib/free.c,
5650         * device/lib/malloc.c,
5651         * device/lib/realloc.c: added LGPL, made them reentrant-safe
5652         * src/SDCCcse.c (cseBBlock),
5653         * src/SDCCicode.c (printOperand, geniCodeArray),
5654         * src/SDCCicode.h (struct operand): fixed bug 868103
5655         * support/regression/tests/bug-868103.c: added
5656         * src/SDCCast.c (searchLitOp),
5657         * src/SDCCcse.h (struct cseDef),
5658         * src/SDCCglue.c (printIvalArray, spacesToUnderscores),
5659         * src/SDCCicode.h (struct operand),
5660         * src/SDCCsymt.h (struct sym_link),
5661         * src/avr/gen.c (hasInc),
5662         * src/ds390/gen.c (hasInc),
5663         * src/hc08/gen.c (genPlusIncr, hasInc),
5664         * src/mcs51/gen.c (hasInc),
5665         * src/pic16/glue.c (pic16_printIvalChar),
5666         * src/pic16/ralloc.c (regWithIdx),
5667         * src/xa51/gen.c (hasInc) : removed warnings
5668         * src/SDCCast.c (createBlock): added comment ???
5669         * src/hc08/ralloc.c: updated comments
5670
5671 2004-09-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5672
5673         * doc/sdccman.lyx: updated section on switch statements, added
5674         section about semaphore locking
5675         * doc/Makefile: added option -info for latex2html
5676         * device/lib/_gptrget.c,
5677         * device/lib/_gptrput.c: __XPAGE instead of P2 in outcommented code
5678
5679 2004-09-06 Slade Rich <slade_rich AT users.sourceforge.net>
5680
5681         * src/pic/device.h,
5682         * src/pic/device.c,
5683         * src/pic/port.c : Changed PIC14 code to not set bit RP1 when
5684          maxram is less than 0x100.
5685
5686 2004-09-06 Slade Rich <slade_rich AT users.sourceforge.net>
5687
5688         * Bug fixes for PIC14 - signed RSHIFT problem. Patch supplied by Allen(agschrum).
5689
5690 2004-09-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5691
5692         * src/port.h,
5693         * src/mcs51/main.c,
5694         * src/ds390/main.c,
5695         * src/z80/main.c,
5696         * src/hc08/main.c,
5697         * src/pic/main.c,
5698         * src/pic16/main.c,
5699         * src/avr/main.c,
5700         * src/xa51/main.c
5701         * src/SDCCicode.c (geniCodeJumpTable): Better logic to determine if a
5702         a jump table is the best form for a switch statement, including
5703         automatic insertion of missing cases to make the case range
5704         continuous. Developed in collaboration with Frieder Ferlemann.
5705
5706 2004-09-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5707
5708         * src/hc08/ralloc.c (canDefAccResult): multi-byte shift is unsafe for
5709         accumulator result if it needs sign extension
5710
5711 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
5712
5713         * src/hc08/ralloc.c (canUseAccOperand): fixed comparison bug
5714
5715 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
5716
5717         * device/lib/gbz80/printf.c,
5718         * device/lib/z80/printf.c: removed define for NULL
5719
5720 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
5721
5722         * as/xa51/xa_link.c,
5723         * device/examples/ds390/ow390/ad26.c,
5724         * device/examples/ds390/ow390/cnt1d.c,
5725         * device/examples/ds390/ow390/counter.c,
5726         * device/examples/ds390/ow390/ds2480.h,
5727         * device/examples/ds390/ow390/ds2480ut.c,
5728         * device/examples/ds390/ow390/findtype.c,
5729         * device/examples/ds390/ow390/gethumd.c,
5730         * device/examples/ds390/ow390/owllu.c,
5731         * device/examples/ds390/ow390/ownetu.c,
5732         * device/examples/ds390/ow390/swt12.c,
5733         * device/examples/ds390/ow390/swtloop.c,
5734         * device/examples/ds390/ow390/temp.c,
5735         * device/examples/ds390/ow390/temp10.c,
5736         * device/examples/ds390/ow390/thermo21.c,
5737         * device/examples/ds390/ow390/tinilnk.c,
5738         * device/examples/ds390/ow390/tstfind.c,
5739         * device/examples/serialcomm/windows/serial.cpp,
5740         * device/examples/serialcomm/windows/test_serialcomm.cpp,
5741         * device/include/reg51.h: fixed line endings for cvs
5742
5743 2004-09-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5744
5745         * src/hc08/ralloc.c (canDefAccResult, canUseAccOperand,
5746         packRegsForAccUse, packRegisters): new accumulator register
5747         packing algorithm
5748         * support/regression/ports/hc08/support.c (_putchar): suppress
5749         warning of unused variable
5750         * src/SDCCicode.c: added SWAP entry to codeTable
5751
5752 2004-09-01 Maarten Brock <sourceforge.brock AT dse.nl>
5753
5754         * device/lib/sprintf.c: forgot to add this file before previous commit
5755
5756 2004-09-01 Vangelis Rokas <vrokas AT otenet.gr>
5757
5758         * src/pic16/gen.c (genPackBits): added operand right in function
5759         parameters, load result directly if p_type is POINTER (that is
5760         called by genNearPointerSet)
5761         * (genUnPackBits): added operand left in function parameters,
5762         * (genNearPointerGet, genNearPointerSet): prevent the loading of
5763         FSR0 if accessing bitfields,
5764
5765 2004-08-31 Maarten Brock <sourceforge.brock AT dse.nl>
5766
5767         * device/include/stdio.h: added NULL, size_t, typedef pfn_outputchar,
5768           _print_format; updated printf, sprintf, vsprintf
5769         * device/include/asm/default/features.h: corrected comment/define
5770         * device/lib/Makefile.in: added sprintf.c
5771         * device/lib/libsdcc.lib: added sprintf module
5772         * device/lib/printf_large.c,
5773         * device/lib/vprintf.c,
5774         * device/lib/sprintf.c: totally refactored printf_large and vprintf
5775           into these 3 files
5776         * support/regression/Makefile: changed ALL_PORTS into a usefull default
5777         * support/regression/ports/mcs51-stack-auto/spec.mk: added sprintf
5778         * support/regression/tests/bug-927659.c: removed dummy putchar, enabled
5779           hc08 test
5780         * support/regression/tests/zeropad.c: define idata as data for hc08
5781
5782 2004-08-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5783
5784         * src/SDCCpeeph.c (labelIsReturnOnly): support hc08 rts opcode also
5785         * src/SDCCpeeph.c (buildLabelRefCountHash): assume function entry point
5786         labels are referenced at least once (even if a reference is not found)
5787         * src/hc08/gen.c (emitcode): set isComment flag for comments
5788         * src/hc08/peeph.def: added rules 5a..5f (optimize redundant immediate
5789         loads), rules 6a..6b (optimize jumps to return)
5790
5791 2004-08-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5792
5793         * device/lib/acosf.c (acosf),
5794         * device/lib/asinf.c (asinf),
5795         * device/lib/atanf.c (atanf),
5796         * device/lib/ceilf.c (ceilf),
5797         * device/lib/cosf.c (cosf),
5798         * device/lib/coshf.c (coshf),
5799         * device/lib/cotf.c (cotf),
5800         * device/lib/fabsf.c (fabsf),
5801         * device/lib/floorf.c (floorf),
5802         * device/lib/log10f.c (log10f),
5803         * device/lib/logf.c (logf),
5804         * device/lib/sinf.c (sinf),
5805         * device/lib/sinhf.c (sinhf),
5806         * device/lib/sqrtf.c (sqrtf),
5807         * device/lib/tanf.c (tanf),
5808         * device/lib/tanhf.c (tanhf),
5809         * device/include/math.h: defined _FLOAT_FUNC_REENTRANT macro and
5810         replaced all instances of "reentrant" in the library functions
5811         defined in math.h with this macro.
5812         * support/regression/tests/float_trans.c: reenabled test for hc08
5813
5814 2004-08-30 Bernhard Held <bernhard AT bernhardheld.de>
5815
5816         * device/lib/pic16/Makefile.common.in: added MODELFLAGS again, it was
5817         erroneously deleted
5818
5819 2004-08-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5820
5821         * src/hc08/gen.c (loadRegFromAop): better use of clra & clrx
5822         * src/hc08/gen.c (genAnd, genOr): fixed bug with conditional when
5823         multi-byte volatile operands are used
5824         * src/hc08/gen.c (shiftRLong): fixed bug with wrong rotate direction
5825         * src/hc08/main.c (_hc08_genAssemblerPreamble): moved the built-in
5826         initialization to area GSINIT0 so that it would always precede
5827         any static initializers in GSINIT
5828         * support/regression/tests/zeropad.c: fixed idata define for hc08
5829         * support/regression/tests/bug-927659.c,
5830         * support/regression/tests/float_trans.c: disabled tests for hc08
5831         pending missing library routines
5832         * .version: increased version number to 2.4.4 - hc08 port now passes
5833         regression tests
5834
5835
5836 2004-08-29 Bernhard Held <bernhard AT bernhardheld.de>
5837
5838         * device/lib/pic16/Makefile.common.in: added $(MM) to fix `make clean`
5839         * Makefile.common.in,
5840         * as/Makefile,
5841         * as/hc08/Makefile.in,
5842         * as/mcs51/Makefile.in,
5843         * as/z80/Makefile.in,
5844         * debugger/mcs51/Makefile.in,
5845         * device/include/Makefile.in,
5846         * device/lib/Makefile.in,
5847         * doc/Makefile,
5848         * link/Makefile,
5849         * link/z80/Makefile.in,
5850         * packihx/Makefile.in,
5851         * sim/ucsim/main_in.mk,
5852         * sim/ucsim/avr.src/Makefile.in,
5853         * sim/ucsim/doc/Makefile.in,
5854         * sim/ucsim/gui.src/serio.src/Makefile.in,
5855         * sim/ucsim/hc08.src/Makefile.in,
5856         * sim/ucsim/s51.src/Makefile.in,
5857         * sim/ucsim/xa.src/Makefile.in,
5858         * sim/ucsim/z80.src/Makefile.in,
5859         * src/Makefile.in,
5860         * support/cpp2/Makefile.in,
5861         * support/librarian/Makefile,
5862         * support/makebin/Makefile: added DESTDIR to the install path proposed
5863         by "Maciej 'Agaran' Pijanka" <agaran AT pld-linux.org>
5864         * doc/sdccman.lyx: added DESTDIR documentation
5865
5866 2004-08-29 Vangelis Rokas (vrokas AT otenet.gr>
5867
5868         * src/pic16/gen.c (genFunction, genEndFunction): fixed return
5869         instruction for interrupt handlers, use fast returns when returning
5870         from high priority interrupts
5871
5872 2004-08-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5873
5874         * src/hc08/gen.c (genAnd, genOr, transferAopAop, rmwWithAop): optimized
5875         code generation
5876         * src/hc08/gen.c (genrshFour, genCpl): fixed bugs
5877         * src/hc08/gen.c (genMultOneByte, genDivOneByte, genModOneByte): fixed
5878         bugs, ported much of Bernhard's code from mcs51
5879         * src/mcs51/gen.c (genSend),
5880         * src/hc08/gen.c (genSend): fixed bug with lost SEND iCodes if more
5881         than one when calling a reentrant function
5882         * device/lib/_mullong.c: defined an alternate struct layout for big
5883         endian ports (hc08)
5884
5885 2004-08-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5886
5887         * src/hc08/gen.c (shiftL2Left2Result): fix for bug-500536 regression
5888         test
5889
5890 2004-08-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5891
5892         * src/SDCCsymt.c (processFuncArgs): make sure parameter types
5893         are sane and complete before asking the port its prefered parameter
5894         passing method (fixes bug #1017633)
5895         * device/lib/hc08/_ret.c: added "data" storage class to _ret2
5896         and _ret3
5897
5898 2004-08-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5899
5900         * src/hc08/gen.c (genPackBitsImmed, genUnpackBitsImmed): fix offset
5901         problem in bitfields >= 8 bits.
5902
5903 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
5904
5905         * src/SDCCsymt.c: undid changes that were not meant to be committed
5906
5907 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
5908
5909         * support/regression/ports/hc08spec.mk: REENTRANT must be reentrant
5910
5911 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
5912
5913         * src/hc08/gen.c (genUminusFloat): fixed bug where only 3 bytes were
5914           copied and wrong bit got inverted
5915
5916 2004-08-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5917
5918         * src/hc08/gen.c (genPointerSet, genFarPointerSet): moved code from
5919         genFarPointerSet into genPointerSet; eliminated genFarPointerSet
5920         * src/hc08/gen.c (genPointerGet, genFarPointerGet): moved code from
5921         genFarPointerGet into genPointerGet; eliminated genFarPointerGet
5922         * src/hc08/gen.c (genPackBitsImmed): generate optimized code for
5923         assignments to bitfields at known addresses
5924         * src/hc08/gen.c (genUnpackBitsImmed): generate optimized code for
5925         reads from bitfields at known addresses
5926         * src/hc08/ralloc.c (packRegisters),
5927         * src/hc08/gen.c (genPointerGet, genUnpackBits, genUnpackBitsImmed,
5928         genhc08Code): optimize pointer get values used as conditionals
5929         * src/hc08/peeph.def: added rules 2e & 2f to optimize bit test
5930         and branch
5931
5932 2004-08-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5933
5934         * src/mcs51/gen.c (genPointerGet, genNearPointerGet, genPagedPointerGet,
5935         genFarPointerGet, genCodePointerGet, genGenPointerGet, genUnpackBits),
5936         * src/mcs51/ralloc.c (packRegisters): optimize pointer get values used
5937         as conditionals
5938
5939 2004-08-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5940
5941         * src/mcs51/peeph.def: peepholes 248.i-m for xdata bitfields
5942
5943 2004-08-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5944
5945         * src/mcs51/ralloc.c (packRegsForOneuse): fixed bug #1012650 and some
5946         related problems
5947
5948 2004-08-21 Bernhard Held <bernhard AT bernhardheld.de>
5949
5950         * sim/ucsim/cmd.src/Makefile.in: run lex only if $(PRJDIR)/devel exists
5951
5952 2004-08-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5953
5954         * src/z80/ralloc.c (packRegsForAssign): ported some bug fixes from the
5955         mcs51 port
5956
5957 2004-08-16 Slade Rich <slade_rich AT users.sourceforge.net>
5958
5959         * src/pic/gen.c: Restored fn genRet as previous fix was incorrect.
5960
5961 2004-08-14 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5962
5963         * src/mcs51/gen.c (genJumpTab): jumptables for more than 16 switch
5964         cases use more compact code.
5965
5966 2004-08-13 Slade Rich <slade_rich AT users.sourceforge.net>
5967
5968         * src/pic/gen.c: Fixed problem with fn returning a variable bigger than a char.
5969
5970 2004-08-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5971
5972         * src/SDCClrange.c (findPrevUse): fixed bug #1007371
5973
5974 2004-08-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5975
5976         * src/SDCCsymt.h,
5977         * src/SDCCsymt.c (changePointer, checkDecl, addSymChain): changed
5978         parameter of changePointer() from symbol* to sym_link*
5979         * src/SDCCast.c (decorateType): call changePointer() for CAST op
5980         * src/SDCCsymt.c (compareType): void* type is castable to other
5981         pointers, but not necesarily an exact match.
5982         * src/SDCCicode.c (geniCodeCast): allow void* casting here since it
5983         is no longer blindly treated as an exact match.
5984         * src/SDCCval.c (valCastLiteral): treat missing type as cast to void
5985
5986 2004-08-12 Slade Rich <slade_rich AT users.sourceforge.net>
5987
5988         * src/pic/glue.c: Added struct initialisation fn printIvalStruct.
5989
5990 2004-08-11 Slade Rich <slade_rich AT users.sourceforge.net>
5991
5992         * src/pic/gen.c,
5993         * src/pic/pcode.c,
5994         * src/pic/ralloc.h,
5995         * src/pic/ralloc.c: Printing rIdx on internal verbose debug.
5996
5997 2004-08-10 Slade Rich <slade_rich AT users.sourceforge.net>
5998
5999         * src/pic/device.c,
6000         * src/pic/device.h,
6001         * src/pic/device.c: Will no longer exit if #pragma maxram has not been defined.
6002
6003 2004-08-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6004
6005         * src/mcs51/gen.c (emitcode): fixed bug #992819
6006
6007 2004-08-05 Maarten Brock <sourceforge.brock AT dse.nl>
6008
6009         * src/pic/ralloc.c (deassignLR): allthough pic port is buggy already,
6010           there's no need to make it worse
6011
6012 2004-08-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6013
6014         * src/mcs51/ralloc.c (deassignLR),
6015         * src/ds390/ralloc.c (deassignLR),
6016         * src/hc08/ralloc.c (deassignLR),
6017         * src/z80/ralloc.c (deassignLR),
6018         * src/pic/ralloc.c (deassignLR),
6019         * src/pic16/ralloc.c (deassignLR),
6020         * src/avr/ralloc.c (deassignLR),
6021         * src/SDCClrange.c (findRecursiveSucc, findRecursivePred, findPrevUse,
6022         rlivePoint): fixed another part of bug #971834
6023
6024 2004-08-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6025
6026         * src/z80/main.c: enabled "critical" keyword
6027         * src/z80/mappings.i,
6028         * src/z80/gen.c (genFunction, genEndFunction): support for interrupt
6029         functions (fixes bug #979646)
6030         * doc/sdccman.lyx: added a subsection explaining z80 interrupt support
6031
6032 2004-08-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6033
6034         * src/mcs51/gen.c (genInline): Add \n for labels, not DOS/WIN dirs
6035           such as c:\mydir.
6036
6037 2004-08-03 Maarten Brock <sourceforge.brock AT dse.nl>
6038
6039         * src/SDCCloop.c (loopInvariants): fixed bug 983545, hope this
6040           doesn't disable too much optimizations
6041
6042 2004-08-02 Slade Rich <slade_rich AT users.sourceforge.net>
6043
6044         * src/pic/glue.c Disabled "WARNING: function 'main' undefined" when -S option is used.
6045
6046 2004-08-02 Maarten Brock <sourceforge.brock AT dse.nl>
6047
6048         * src/SDCClrange.c (rlivePoint): fixed bug 988568, thanks to anonymous
6049
6050 2004-08-02 Slade Rich <slade_rich AT users.sourceforge.net>
6051
6052         * src/pic/gen.c tidied up tabs
6053         * src/pic/genarith.c tidied up tabs and fixed bug with literal multiple where same register was used for hi and low byte
6054         * src/pic/main.c tidied up tabs
6055         * src/pic/pcode.c tidied up tabs and disabled verbose code generation
6056         * src/pic/pcoderegs.c tidied up tabs
6057         * src/pic/ralloc.c tidied up tabs
6058
6059 2004-07-30 Vangelis Rokas <vrokas AT otenet.gr>
6060
6061         * src/SDCCmem.c (allocGlobal): don't turn S_REGISTER storage class
6062         to S_FIXED for pic16 port and when symbol is not in level 0,
6063         allocate for S_REGISTER storage class and pic16 port, too,
6064         * src/pic16/device.h: prototype for checkSym,
6065         * src/pic16/device.c (pic16_dump_access, checkSym): NEW,
6066         * (pic16_assignConfigWordValue): test the value and the mask to
6067         validate that the value is suitable for the configuration word,
6068         * src/pic16/glue.c (pic16_printIvalFuncPtr): use 'externs' to
6069         collect extern declared symbols, don't emit symbol twice, check
6070         first if symbol is in publics set first,
6071         * src/pic16/main.c (_pic16_keywords[]): added keyword 'register',
6072         * added command line '--fstack' which enables an experimental
6073         feature for stack access, too buggy to be used yet...
6074         * src/pic16/ralloc.c (pic16_accessregWithName): NEW,
6075         * (pic16_allocDirReg): when register has storage class S_REGISTER
6076         allocate in pic16_dynAccessRegs,
6077         * device/include/pic16/pic18f????.h: modified configuration word
6078         naming convention, words started as CONFIG0H but should be CONFIG1H
6079
6080 2004-07-29 Maarten Brock <sourceforge.brock AT dse.nl>
6081
6082         * device/include/mcs51reg.h: fixed bug 970993
6083
6084 2004-07-27 Maarten Brock <sourceforge.brock AT dse.nl>
6085
6086         * added lib/calloc.c, lib/free.c, lib/realloc.c, include/stddef.h
6087         * updated lib/malloc.c, lib/libsdcc.lib, lib/Makefile.in, include/malloc.h
6088         * src/SDCC.lex (doPragma): added pragma disable_warning <nnn>
6089         * src/SDCCmain.c (parseCmdLine): added option --disable-warning <nnn>
6090         * src/ds390/gen.c (genPlusIncr): fixed bug when incrementing generic pointers
6091         * support/Util/SDCCerr.c (vwerror): suppress disabled warnings and output
6092           error/warning numbers,
6093           added function setWarningDisabled()
6094         * support/Util/SDCCerr.h: added setWarningDisabled() and MAX_ERROR_WARNING
6095         * support/regression/ports/mcs51-stack-auto/spec.mk: added dependencies
6096           _memcmp.c _memmove.c calloc.c realloc.c free.c
6097         * support/regression/tests/malloc.c: added tests for new functionality
6098         * support/regression/tests/zeropad.c: added tests for truncated initializers
6099           and initialized char arrays starting with '\x0'
6100         * src/mcs51/peeph.def: fixed regression, added peephole 177.f
6101
6102 2004-07-26 Bernhard Held <bernhard AT bernhardheld.de>
6103
6104         * support/valdiag/tests/overflow.c: fixed warning on (1 >> 40)
6105
6106 2004-07-26 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6107
6108         * doc/sdccman.lyx: updated example in section "Absolute Addressing"
6109         * src/mcs51/peeph.def: added contributed fix for "bug" #995347 as
6110         peephole 177.e. Thanks to anonymous
6111
6112 2004-07-25 Vangelis Rokas <vrokas AT otenet.gr>
6113
6114         * src/pic16/glue.c (pic16_printIvalFuncPtr): when an extern
6115         function isn't used in the source but referenced as a
6116         variable initializer then declare it as extern in .asm file
6117
6118 2004-07-24 Vangelis Rokas <vrokas AT otenet.gr>
6119
6120         * .version: increased version number to 2.4.3
6121
6122         Adding version extension according to ChangeLog CVS revision
6123         * src/Makefile.in (target all): added dependency 'version.h'
6124         * (rule version.h): added rule to create version.h from ChangeLog,
6125         * (rule dep): added dependency version.h,
6126         * src/version.awk: AWK script to create version.h
6127         * src/SDCCdwarf2.c (dwWriteModule),
6128         * src/SDCCglue.c (initialComments),
6129         * src/SDCCmain.c (printVersionInfo): modified to write after
6130         version string the version extension number,
6131         * src/SDCCutil.c: included "version.h"
6132         * (getBuildNumber): NEW, returns SDCC's ChangeLog minor revision
6133         number,
6134         * src/SDCCutil.h: added prototype for getBuildNumber
6135
6136         * src/SDCCmain.c (parseCmdLine): when sOpt is 'I' add rest in
6137         includeDirsSet, too,
6138         * src/SDCCsymt.c (checkSClass): don't emit error when a variable,
6139         const char [] is found in function prototype...
6140
6141         * src/pic16/genarith.c (pic16_genUMult8XLit_8): optimization to omit
6142         moving to WREG with source is already in WREG,
6143         * src/pic16/gen.h: added AOP_FSR0 and AOP_FSR2 in enum,
6144         * src/pic16/gen.c (getFreePtr): updated to look for FSR0 and FSR2,
6145         * (aopForSym): stack'ed symbols are partially supported, added
6146         if-clause to support symbols in FARSPACE,
6147         * (sameRegs): added test for AOP_ACC to see if registers are same,
6148         * (pic16_freeAsmop): added case for AOP_FSR0 and AOP_FSR2,
6149         * (pic16_aopGet): added case for AOP_FSR0 and AOP_FSR2,
6150         * (pic16_popRegFromString): will not allocate a new register if it
6151         doesn't find one by name, bug may have introduced...
6152         * (pic16_popGet): added case for AOP_FSR0 and AOP_FSR2,
6153         * (genIpush): revived to use pic16 port's stack,
6154         * (genAddrOf): added incomplete case for stack'ed operand,
6155         * (genCast): optimized a pair of MOVFW,MOVWF to MOVFF
6156         * src/pic16/genutils.c (pic16_genNot): almot new vesrion for NOT,
6157         can handle multibyte operands,
6158         * src/pic16/glue.c (pic16_printIval*): some debug info added,
6159         * (pic16initialComments): added message for MPLAB compatibility
6160         mode enabled,
6161         * src/pic16/main.h: prototype for pic16_mplab_comp,
6162         * src/pic16/main.c (pic16_optionsTable): new option --mplab-comp,
6163         which enabled MPLAB compatibility mode (i.e. no #LINE/#FILE, BANKED)
6164         * (_pic16_linkEdit): NEW, handles link stage, transferred here
6165         because of increased complexity of procedure,
6166         * (_process_pragma): stack pragma changed to format 'stack pos len',
6167         emit symbol '_stack_end' to conform with gplink,
6168         * src/pic16/pcode.c (pic16_newpCodeOpBit): using pic16_regWithName
6169         to search for register,
6170         * (pic16_get_op, pic16_get_op2): added case for PO_W, PO_WREG and
6171         PO_GPR_REGISTER,
6172         * (pic16_pCode2str): when in MPLAB compatibility mode, comment out
6173         #LINE directives and replace 'B' with 'BANKED' in instruction opcodes
6174         * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): added
6175         case for PO_GPR_REGISTER,
6176         * (pic16_AnalyzeBanking): removed the old message for inc2h.pl, past
6177         dies, the new era is ahead !...
6178         * src/pic16/ralloc.c: added hash reposits pic16_dynAllocRegNames and
6179         pic16_dynInternalRegs,
6180         * (pic16_allocregWithName, pic16_procregWithName, pic16_regWithname): NEW,
6181         * (pic16_allocDirReg): minor optimizations and bug fixes,
6182         * (pic16_allocWithIdx): when searching pic16_dynProcessorRegs use fixed,
6183
6184         * device/lib/pic16/startup/crt0*.c: extern definition of stack_end,
6185         load stack and frame pointer with address of 'stack_end' symbol
6186
6187 2004-07-23 Vangelis Rokas <vrokas AT otenet.gr>
6188
6189         * src/pic16/glue.c (pic16emitStaticSeg): fixed bug with files
6190         without source code but only variable initializers
6191
6192 2004-07-20 Vangelis Rokas <vrokas AT otenet.gr>
6193
6194         * src/pic16/glue.c (pic16emitRegularMap): unused functions marked as
6195         external are not declared as extern to reduce overhead while linking
6196
6197 2004-07-20 Maarten Brock <sourceforge.brock AT dse.nl>
6198
6199         * src/SDCCast.c (decorateType): removed buggy fix for bug #979599
6200
6201 2004-07-11 Maarten Brock <sourceforge.brock AT dse.nl>
6202
6203         * src/SDCCglue.c (printIvalArray): fixed bug #984229, thanks to Phuah
6204           Yee Keat for the patch
6205         * src/SDCCast.c (decorateType): fixed bug #979599
6206         * src/ds390/gen.h: removed local fReturnSizeDS390
6207         * src/ds390/gen.c: made fReturnSizeDS390 signed short to remove a warning
6208         * src/ds390/gen.c (genAnd, genOr, genXor),
6209         * src/mcs51/gen.c (genAnd, genOr, genXor): generate better optimized code
6210
6211 2004-07-04 Vangelis Rokas <vrokas AT otenet.gr>
6212
6213         * src/SDCCmain.c (linkEdit): modifications only for pic16 port,
6214         add relFilesSet to $3, manipulate $2 to handle linking of object
6215         files without source files in command line,
6216         * device/include/pic16 (all headers): added ID location macros,
6217         * src/pic16/device.c (struct PIC16_device Pics16[]): added field
6218         entries for ID location bytes,
6219         * (pic16_assignIdByteValue): NEW,
6220         * src/pic16/device.h: new structures idRegInfo_t and idBytesInfo_t,
6221         added field dumpcalltree to pic16_options_t,
6222         * src/pic16/gen.c (genCmp): fixed bug case so a temporary register
6223         is used instead of pic16_Gstack_base_addr, check if (ifx) before
6224         emitting rFalseIfx label after check_carry label,
6225         * src/pic16/glue.c (PIC16_IS_IDLOC_ADDRESS, PIC16_IS_HWREG_ADDRESS,
6226         pic16_emitDIRegs), NEW
6227         * (pic16glue): dump .calltree file when option --calltree found,
6228         * src/pic16/main.c (OPTION _pic16_optionsTable): new option --calltree
6229         * (_pic16_genAssemblerPreamble): emit ID locations after
6230         configuration registers,
6231         * (pic16_linkCmd): modifications of the link command,
6232         * src/pic16/pcode.c (pic16_pciMOVFF): PCC_REGISTER replaces PCC_REGISTER2
6233         * (pic16_pCodeInitRegisters): don't init stack registers,
6234         * (pic16_findPrevInstruction): fixed bug,
6235         * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): fixed
6236         bug with immediate registers,
6237         * (buildCallTree): traces stack push and pop,
6238         * (pct2): dump also stack usage for each function,
6239         * src/pic16/ralloc.c (dynrIdx): registers names start from 0x00
6240         * (pic16_allocDirReg): various modifications,
6241         * (pic16_typeRegWithIdx): when searching pic16_dynProcessorRegs set
6242         fixed to 1,
6243
6244 2004-07-02 Vangelis Rokas <vrokas AT otenet.gr>
6245
6246         * src/pic16/pcode.c: removed buggy double colon
6247
6248 2004-07-01 Borut Razem <borut.razem AT siol.net>
6249
6250         * support/scripts/sdcc.nsi: added include/pic16 to setup
6251
6252 2004-06-30 Vangelis Rokas <vrokas AT otenet.gr>
6253
6254         * device/lib/Makefile.in: fixed bug in target objects-pic16,
6255         * device/lib/pic16/Makefile: prefixed with dash (-) command under
6256         target 'clean',
6257         * doc/sdccman.lyx: changed version to 2.4.2 and added some port
6258         specific command line arguments. Also added sample lkr script
6259         for placing a variable at a specific memory bank.
6260         * src/pic16/device.c (pic16_dump_gsection): NEW, to dump variables
6261         at a specific memory bank,
6262         * (pic16_dump_isection): fixed bug which caused string literals to
6263         be omitted when dumping idata section,
6264         * (pic16_groupRegistersInSection): added code to handle registers
6265         in specific memory banks,
6266         * src/pic16/gen.c: labelOffset is prefixed with pic16_ and made
6267         public, all references are renamed too,
6268         * (pic16_aopGet): removed switch cases for AOP_R0,AOP_R1,AOP_DPTR,
6269         AOP_DPTR2,
6270         * (pic16_storeForReturn): added case to handle when dest is WREG,
6271         * src/pic16/genarith.c (pic16_pCodeOpSubType): NEW,
6272         * src/pic16/glue.c (pic16emitRegularMap): when adding a register in
6273         pic16_rel_udata, check to see if that register is marked as being
6274         a member of a specific memory bank,
6275         * (pic16_printIvalCharPtr): added code to add string literals either
6276         to code or the idata sections,
6277         * src/pic16/main.c (_process_pragma): added \n to WHITE constant,
6278         also accept the 'udata' pragma,
6279         * src/pic16/main.h: new structure types sectName and sectSym
6280         * src/pic16/pcode.c: added new pCodeInstruction entry for BANKSEL
6281         * (newpCodeOpBit): added PIC_OPTYPE subt in function prototype,
6282         * (pic16_findPrevInstruction): fixed, it returned nothing,
6283         * (insertBankSwitch): fixed to emit banksel/skip and skip/banksel
6284         instruction combinations,
6285         * (pic16_FixRegisterBanking): heavily reorganised,
6286         * (pic16_AnalyzeBanking): if generating banksel directives is
6287         disabled, then don't call FixRegisterBanking at all,
6288         * src/pic16/ralloc.c (bitEQUs, aliasEQUs, allDefsOutOfRange):
6289         completely removed,
6290         * (pic16_writeUsedRegisters): added call to pic16_dump_gsection
6291
6292 2004-06-29 Bernhard Held <bernhard AT bernhardheld.de>
6293
6294         * src/SDCCglue.c (printChar): fixed bug #973350, patch provided by
6295         Phuah Yee Keat <yk.phuah AT nestac.com>
6296
6297 2004-06-28 Vangelis Rokas <vrokas AT otenet.gr>
6298
6299         * src/pic16/glue.c (pic16createInterruptVect): function now emits
6300         correctly the IVT even if it is relocated to some other location
6301
6302 2004-06-28 Vangelis Rokas <vrokas AT otenet.gr>
6303
6304         * device/include/pic16/pic18fregs.h: added case for pic18f2220.h
6305         * device/include/pic16/pic18f2220.h: NEW,
6306         * device/lib/pic16/libdev/pic18f2220.c: NEW,
6307         * device/lib/pic16/libdev/Makefile: added 18f2220 in DEVS,
6308         * src/pic16/device.c (struct Pics16): added info for 18f2220,
6309         * src/pic16/device.h (struct pic16_options): added ivt_loc and
6310         nodefaultlibs, ivt_loc is the location of the interrupt vector
6311         table, and nodefaultlibs signs that default libraries should not be
6312         linked in link stage,
6313         * src/pic16/gen.c (genFunction): relocate interrupt vector functions
6314         according to --ivt-loc argument,
6315         * src/pic16/main.c (_process_pragma): emit '_stack' as public symbol
6316         when pragma stack is found,
6317
6318 2004-06-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6319
6320         * src/mcs51/peeph.def: added peepholes 182.d (return 0.0),
6321         256 (range check), 257 (do while), 258.a-f (bit banging
6322         f.e. on 3-wire SPI bus)
6323
6324 2004-06-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6325
6326         * src/SDCClrange.c (findNextUseSym): fixed a live range bug with
6327         variables used exclusively within a loop
6328
6329 2004-06-21 Bernhard Held <bernhard AT bernhardheld.de>
6330
6331         * src/mcs51/gen.c (genCpl): quick fix for bug #974835
6332
6333 2004-06-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6334
6335         * src/SDCClrange.c (computeClash): fixed bug #971834
6336
6337 2004-06-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6338
6339         * src/mcs51/gen.c (genCmp): fixed bug #975903
6340         * src/hc08/gen.c (operandsEqu),
6341         * src/ds390/gen.c (operandsEqu),
6342         * src/z80/gen.c (operandsEqu),
6343         * src/pic/gen.c (operandsEqu),
6344         * src/pic16/gen.c (operandsEqu),
6345         * src/mcs51/gen.c (operandsEqu): fixed bug #976283
6346         * src/SDCCmain.c (parseCmdLine): report --unknown-option only once
6347
6348 2004-06-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6349
6350         * src/SDCCcse.c (cseBBlock): fixed bug #966963
6351
6352 2004-06-12 Vangelis Rokas <vrokas AT otenet.gr>
6353
6354         * src/pic16/gen.c (genPointerGet): added E_INTERNAL_ERROR for
6355         default case in switch statement,
6356         * glue.c (pic16_initPointer): expr is initialised via decoarteType
6357         to eliminate problem with initialisation of pointers, but problem
6358         still exists,
6359         * (pic16_pointerTypeToGPByte): removed, no needed for pic16,
6360         * (emitStaticSegment): removed various lines emitting debug info,
6361         * src/pic16/pcode.c, src/pic16/pcode.h, src/pic16/ralloc.h:
6362         added processor registers for utilizing EEPROM,
6363         * src/pic16/pcode.c (pic16_emitDB): number of DBs emitted is not
6364         configurable and set 8
6365
6366 2004-06-08 Vangelis Rokas <vrokas AT otenet.gr>
6367
6368         * .version: increased version number to 2.4.2,
6369
6370         Cumulative patch for pic16 port
6371         * src/pic16/device.c: changed scheme to dump initial values for
6372         variables in idata segment, all print_idata* functions were removed,
6373         now the pic16_printIval* will be called,
6374         * src/pic16/glue.c: (pic16_initPointer, pic16_pointerTypeToGPByte,
6375         * _pic16_printPointerType, pic16_printPointerType,
6376         * pic16_printGPointerType, pic16_printIvalArray, pic16_printIvalStruct,
6377         * pic16_printIvalBitFields, pic16_printIvalFuncPtr, pic16_printIvalPtr:
6378         NEW, similar to the respective functions in SDCCglue.c,
6379         * src/pic16/pcode.c (pic16_emitDB, pic16_flushDB): reverted to old
6380         way, emitting hex bytes,
6381         * (pic16_emitDS): NEW, emits a string for pointer initialisation,
6382
6383 2004-06-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6384
6385         * src/avr/ralloc.c (serialRegAssign),
6386         * src/xa51/ralloc.c (serialRegAssign),
6387         * src/pic/ralloc.c (serialRegAssign),
6388         * src/pic16/ralloc.c (serialRegAssign),
6389         * src/hc08/ralloc.c (serialRegAssign),
6390         * src/z80/ralloc.c (serialRegAssign),
6391         * src/ds390/ralloc.c (serialRegAssign),
6392         * src/mcs51/ralloc.c (serialRegAssign): fixed bug #964479
6393
6394 2004-06-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6395
6396         * src/SDCCicode.c (geniCodeJumpTable): fixed bug #967601
6397         * src/SDCCpeeph.c (labelIsReturnOnly): fixed bug #966505
6398
6399 2004-06-07 Vangelis Rokas <vrokas AT otenet.gr>
6400
6401         Cumulative patch for pic16 port:
6402         * src/pic16/device.h (typedef PIC16_device) modified fields for
6403         defining microcontrollers,
6404         * src/pic16/device.c: added new info for all devices in Pics16 array,
6405         * src/pic16/gen.c (genPcall): fixed bug that caused the return label
6406         to be optimised out by the pCode optimiser,
6407         * src/pic16/glue.c (pic16emitRegularMap): treat implicit aggragates
6408         specially, bug reported by G.M. Gallant,
6409         * src/pic16/pcode.c (pic16_newpCodeLabelFORCE): NEW, marks a label
6410         as force'd so that cannot be optimised out by pCode optimiser,
6411         * src/pic16/pcode.c,
6412         * src/pic16/pcodepeeph.c,
6413         * src/pic16/pcoderegs.c: many modifications to re-enable peepholes,
6414         they are disabled by default, but can be enabled explicit with
6415         command argument --denable-peeps, for testing,
6416         * device/lib/pic16/startup/Makefile: added --no-peep,--pomit-config-words,
6417         --pomit-ivt in COMPILE_FLAGS
6418
6419 2004-06-06 Maarten Brock <sourceforge.brock AT dse.nl>
6420
6421         * src/pic16/pcode.c (pic16_emitDB): removed double semicolon which fails
6422           compilation on MSVC
6423
6424 2004-06-06 Maarten Brock <sourceforge.brock AT dse.nl>
6425
6426         * device/include/sab80515.h: added sfr P6, changed GPL to LGPL
6427
6428 2004-06-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6429
6430         device/include/sab80515.h: fixed bug #967492, DAPR is defined at adress
6431         0xd8, but the correct adress is 0xda. Thanks to anonymous for reporting
6432
6433 2004-06-06 Vangelis Rokas <vrokas AT otenet.gr>
6434
6435         * src/pic16/device.c (pic16_assignConfigWord): fixed bug that
6436         would only assign 0x300001 register.
6437
6438 2004-06-05 Vangelis Rokas <vrokas AT otenet.gr>
6439
6440         * device/lib/pic16/startup/Makefile: added $(MODELFLAGS)
6441         in COMPILE_FLAGS. Thanks to G. Gallant for report.
6442
6443 2004-06-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6444
6445         * doc/sdccman.lyx: minor changes, mentioned beta vendor support
6446         for ds80c400
6447         * src/mcs51/peeph.def: ran unexpand -a over peeph.def
6448         * src/mcs51/peeph.def: removed obsolete peephole 100.a,
6449         added peephole 254 (left shift), 255 (jump table)
6450
6451 2004-06-04 Vangelis Rokas <vrokas AT otenet.gr>
6452
6453         * device/lib/Makefile.in: removed comment line with model-pic16,
6454         * (target port-specific-objects-pic16): the libraries and objects
6455         are copied to the build directory form the device/lib/pic16/bin
6456         directory
6457
6458         Cumulative patch concerning pic16 port:
6459         * library directory has been re-organized,
6460         * added support for PIC18F1220,
6461         * added headers and library sources for chips 18f1220,18f6520,
6462         18f6620,18f6680,18f6720,18f8520,18f8620,18f8680,18f8720
6463
6464         * configuration registers setting has changed, now each supported
6465         device has a complete description of the registers it uses,
6466         * all initialisations are moved to idata sections, these section
6467         can be absolute or relocatable,
6468         * fixed initialisation of codespace variables,
6469         * fixed warning about PCLATU and gpsim,
6470         * src/pic16/gen.c (genCmp): now can handle partially iCodes with no ifx,
6471         * (genAssign): use table reads when assigning from variables in codespace,
6472         * src/pic16/glue.c (pic16emitStaticSeg): fixed to correctly initialise
6473         char/int variables placed in codespace,
6474         * (pic16_emitConfigRegs): NEW, emits a list with configuration
6475         registers set in .asm file, no need for --pomit-config-words anymore,
6476         * (pic16glue): some 8051 legacy segments are commented out
6477         (to be removed completely),
6478         * added support for alternative assembler and linker with --asm=
6479         and --link= command line arguments,
6480         * peepholes are disabled automatically in the port, no need to
6481         specify on command line,
6482         * port supports natively char/int/long multiplication, but converts
6483         all divisions to support functions,
6484         * main.c: pic16_linkCmd and pic16_asmCmd changed to force output
6485         to the file set in variable $2,
6486         * pcode.c (pic16_emitDB, pic16_flushDB): modified to print printable
6487         strings in ASCII format and not in hex,
6488         * ralloc.c (serialRegAssign): added a triplet of conditional calls
6489         to pic16_allocDirReg for IC_RESULT, IC_LEFT and IC_RIGHT so to
6490         allocate proper register if iCodes aren't temporary,
6491
6492 2004-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
6493
6494         * support/regression/tests/zeropad.c: added TEST_G macro for alpha
6495
6496 2004-06-02 Vangelis Rokas <vrokas AT otenet.gr>
6497
6498         * src/pic16/gen.c (genPcall): warning about gpsim and PCLATU
6499         is commented out
6500
6501 2004-06-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6502
6503         * src/hc08/gen.c (genPointerGetSetOfs): disabled optimization if
6504         computed address is reused
6505         * src/hc08/gen.c (genPackBits): fixed offsets in assignments to
6506         multi-byte bitfields
6507
6508 2004-06-01 Maarten Brock <sourceforge.brock AT dse.nl>
6509
6510         * src/z80/gen.c: (genArrayInit): must check for pointers too
6511
6512 2004-06-01 Maarten Brock <sourceforge.brock AT dse.nl>
6513
6514         * support/regression/tests/zeropad.c: never meant to commit the
6515           nestedstruct test: removed, added check for GCC version
6516
6517 2004-05-31 Maarten Brock <sourceforge.brock AT dse.nl>
6518
6519         * src/SDCCast.c (createIvalArray): fixed bug 770487 SIGSEGV
6520         * src/SDCCglue.c (emitRegularMap): fixed bug 770484 allocation problem
6521         * src/SDCCglue.c (initPointer, printIvalType, printIvalStruct,
6522           printIvalArray, printIvalFuncPtr, printIvalPtr, printIval): fixed
6523           bugs 928906 and 954082 half-empty initializers
6524         * src/SDCCsymt.h,
6525         * src/SDCCsymt.c (getAllocSize): added for above fix
6526         * src/z80/gen.c (genArrayInit): fixed bug 741044
6527         * support/regression/tests/zeropad.c: added tests
6528
6529 2004-05-30 Vangelis Rokas <vrokas AT otenet.gr>
6530
6531         * src/pic16/device.c (pic16_dump_section): corrected bug which
6532         caused some symbols of the libraries to be misplaced
6533
6534 2004-05-28 Vangelis Rokas <vrokas AT otenet.gr>
6535
6536         * src/pic16/glue.c,
6537         * src/pic16/ralloc.h,
6538         * src/pic16/ralloc.cc: prefixed IS_CONFIG_ADDRESS with PIC16_
6539         to fix conflict with pic port
6540
6541 2004-05-28 Vangelis Rokas <vrokas AT otenet.gr>
6542
6543         * src/pic16/glue.c (pic16emitStaticSeg): do not print as publics or
6544         externs configuration variables,
6545         * src/pic16/ralloc.h,
6546         * src/pic16/ralloc.cc: IS_CONFIG_ADDRESS is made public and added
6547         prototype in header, commented out some debug messages
6548
6549 2004-05-26 Vangelis Rokas <vrokas AT otenet.gr>
6550
6551         * src/pic16/glue.c,
6552         * src/pic16/main.c,
6553         * src/pic16/pcode.c: added gpasm directives #FILE/#LINE
6554         for gpasm COFF object generation. Thanks to D. Hawkins for
6555         his patch info
6556
6557 2004-05-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6558
6559         * src/ds390/main.c,
6560         * src/mcs51/main.c: fixed sort order of mnemonics (thanks to Maarten
6561         Brock for spotting this)
6562         * src/ds390/gen.c (genEndFunction),
6563         * src/mcs51/gen.c (genEndFunction): always save psw if function is an
6564         interrupt handler and critical. Disable push/pop optimizations when
6565         peephole optimizations disabled.
6566
6567 2004-05-25 Vangelis Rokas <vrokas AT otenet.gr>
6568
6569         Updated pic16 library sources and headers.
6570         * device/lib/pic16/pic18f*/ ,
6571         * device/include/pic16/*.h: modified to handle structured SFR
6572         definitions
6573
6574 2004-05-25 Vangelis Rokas <vrokas AT otenet.gr>
6575
6576         * src/port.h (PORT structure): added hook initPaths, now each
6577         port can declare its own default search paths,
6578         which can been seen with the --print-search-dirs option,
6579         see pic16 port for example,
6580         * src/SDCCmain.c (setBinPaths, setIncludePaths, setLibPath,
6581         setDataPaths): test to options.printSearchDirs is ifdef'ed out,
6582         * (doPrintSearchDirs): NEW, replaces in a central manner the
6583         printing of search dirs which was split in set*Paths functions,
6584         * (main): added call to port->initPaths and doPrintSearchDirs,
6585         * src/avr/main.c,
6586         * src/ds390/main.c,
6587         * src/hc08/main.c,
6588         * src/izt/i186.c,
6589         * src/izt/tlcs900h.c,
6590         * src/mcs51/main.c,
6591         * src/pic/main.c,
6592         * src/pic16/main.c: modified port structures to reflect addition of
6593         initPaths hook,
6594
6595         * src/pic16/device.c (regCompare): registers are finally sorted by name,
6596         * (pic16_dump_section): for registers in same address reserve memory once,
6597         * src/pic16/device.h (struct PIC16_device): changed variable gen_banksel
6598         to no_banksel,
6599         * src/pic16/genarith.c (pic16_genPlus): added code to handle cases where
6600         result is greater in size than right or left,
6601         * (pic16_genUMult8X8_8): there are some cases where the result can
6602         be 16 bits size, so handle these,
6603         * src/pic16/gen.c: changed some pic16_emitpcomment to DEBUGpic16_emitcode,
6604         * (pic16_outBitC): modified to emit pcodes,
6605         * (pic16_storeForReturn): using is_LitOp to see if operand is literal
6606         or not,
6607         * (genDivOneByte): implemented algorithm to divide 8-bits,
6608         * (genCmp): uncommented goto, but issues still exist,
6609         * (genAnd): fixed a bug with variables >8bits,
6610         * (genPackBits): optimization added that uses BCF/BSF to change a
6611         single bit,
6612         * (genAssign): fixed bug when assigning floating point literals,
6613         * src/pic16/glue.c (pic16glue): added assembler directive 'code' before
6614         __sdcc_gsinit_startup label,
6615         * src/pic16/main.c (_pic16_init): removed search directory
6616         initialisations,
6617         * (_pic16_initPaths): NEW, used to initialise search directories,
6618         * (_hasNativeMulFor): support functions for all except char/int
6619         multiplication, and char division,
6620         * (PIC16_port struct): modified entry for native mul support,
6621         * src/pic16/pcode.c (insertBankSwitch): modified to support the renamed
6622         no_banksel option,
6623         * (buildCallTree): call to register_usage is ifdef'ed out,
6624
6625 2004-05-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6626
6627         * device/include/string.h: applied Stas Sergeev's patch to make this
6628         header file compatible with the preprocessor -Wundef option
6629         * src/SDCCmain.c (main): abort compilation if preprocessor reports
6630         failure (fixes bug #941458)
6631
6632 2004-05-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6633
6634         * src/SDCCopt.c (killDeadCode): fixed bug #907733
6635         * support/Util/SDCCerr.c: reworded E_AUTO_ASSUMED diagnostic to clarify
6636         that the variable, not the function, should be static
6637         * src/SDCCval.c (valCastLiteral): fixed bit initialization from literal
6638         to be consistent with non-literal case
6639
6640 2004-05-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6641
6642         * src/SDCCast.c (isConformingBody): fixed bug #949967
6643         * src/SDCCopt.c (cnvToFcall, cnvToFloatCast, cnvFromFloatCast,
6644         convilong): fixed bug #952086
6645
6646 2004-05-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6647
6648         * src/SDCCmem.c (allocVariables): fixed bug #955321
6649
6650 2004-05-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6651
6652         * src/hc08/main.c (_hc08_genAssemblerEnd),
6653         * src/SDCCdwarf2.c (dwOpenFile, dwCloseFile, dwWriteFunction,
6654         dwWriteModule, dwWriteCLine, dwWriteALine, dwarf2FinalizeFile):
6655         completely eliminated the use of a temporary file
6656         * src/SDCCdwarf2.c (dwWriteAttr): fixed bug with location list offset
6657         when more than one file linked
6658         * src/SDCCloop.c (pointerAssigned): fixed bug #954163
6659
6660 2004-05-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6661
6662         * src/SDCCval.c (valForArray): applied Maarten Brock's patch #947682
6663         which fixes bug #543481
6664         * support/regression/tests/bug-751703.c: fixed comments left from a
6665         cut and paste error
6666         * src/SDCCdwarf2.c (dwCloseFile): don't explicitly close a temp file
6667         * src/SDCCdwarf2.c (dwTagFromType): added bitfield support
6668         * src/SDCCdwarf2.c (dwWriteSymbolInternal): handle extern within local
6669         scopes
6670         * src/SDCCdwarf2.c (dwWriteLineNumber): line number deltas are signed
6671         * src/SDCCmain.c (processFile, parseCmdLine): non-alphanumeric chars
6672         are now changed to underscores in moduleName
6673
6674 2004-05-15 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6675
6676         * as/mcs51/lkmem.c: better fix for bug #954173
6677
6678 2004-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
6679         committed by Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6680
6681         * device/include/c8051f020.h: newly added SiLabs (Cygnal) header file
6682         * device/include/c8051f000.h,
6683         * device/include/c8051f120.h,
6684         * device/include/c8051f300.h,
6685         * device/include/c8051f310.h,
6686         * device/include/c8051f320.h: updated (added _XPAGE, CAPN, CAPP,
6687         PWM16) and detab'ed
6688
6689 2004-05-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6690
6691         * doc/sdccman.lyx: mentioned sourceforge's delay between web frontend
6692         and mailing lists, doc'ed --no-peep-comments, removed reference
6693         to knoppix (newest version has no LyX/LaTeX), other minor changes
6694         * src/SDCCglue.c (glue): save 2 bytes stack space with
6695         option --main-return. The ljmp could probably be avoided too
6696
6697 2004-05-14 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6698
6699         * as/mcs51/lkmem.c, as/mcs51/lkaomf51: fixed bug 954173
6700
6701 2004-05-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6702
6703         * src/SDCCsymt.h: added IS_AUTO(symbol) test macro
6704         * src/SDCCopt.c (isLocalWithoutDef),
6705         * src/SDCCicode.c (operandFromSymbol): use the IS_AUTO test macro
6706         which adds a !IS_EXTERN codition. Fixes bugs #877426 and #751703.
6707         (credit to Maarten Brock for patch #949363, on which this is based)
6708         * support/regression/tests/bug-751703.c: some test cases of extern used
6709         within inner scopes.
6710
6711 2004-05-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6712
6713         * src/SDCCdwarf2.c (dwMatchTypes): structs must have matching
6714         SPEC_STRUCT
6715         * src/SDCCdwarf2.c (dwTagFromType): fix to handle recursive
6716         struct definitions
6717         * src/SDCCdwarf2.c (dwWriteModule, dwNewDebugSymbol, dwWriteEndFunction,
6718         dwWriteLabel): fix to create valid debugger symbols even when
6719         the module name has non-alphanumeric symbols in it
6720         * src/SDCCdwarf2.c (dwWriteSymbolInternal): better detection for
6721         when a variable's allocation has been optimized away
6722
6723
6724 2004-05-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6725
6726         * src/hc08/gen.c (hc08_emitDebuggerSymbol),
6727         * src/hc08/main.c,
6728         * src/mcs51/gen.c (mcs51_emitDebuggerSymbol),
6729         * src/mcs51/main.c,
6730         * src/ds390/gen.c (ds390_emitDebuggerSymbol),
6731         * src/ds390/main.c,
6732         * src/z80/gen.c (z80_emitDebuggerSymbol),
6733         * src/z80/main.c,
6734         * src/pic/gen.c (pic14_emitDebuggerSymbol),
6735         * src/pic/main.c,
6736         * src/pic16/gen.c (pic14_emitDebuggerSymbol),
6737         * src/pic16/main.c,
6738         * src/avr/gen.c (avr_emitDebuggerSymbol),
6739         * src/avr/main.c,
6740         * src/xa51/gen.c (xa51_emitDebuggerSymbol),
6741         * src/xa51/main.c,
6742         * src/SDCCdebug.c (emitDebuggerSymbol),
6743         * src/SDCCdebug.h,
6744         * src/port.h: added a debugger struct to the port struct. Added a
6745         callback for defining debugger symbols
6746
6747         * src/SDCCast.c (createLabel),
6748         * src/SDCC.y (labeled_statement): mark all compiler generated labels
6749         with isitmp = 1
6750         * src/SDCCicode.h,
6751         * src/SDCCicode.c (geniCodeFunctionBody): added a link from the FUNCTION
6752         iCode back to the ast for the function
6753
6754         * src/hc08/ralloc.c (hc08_assignRegisters),
6755         * src/hc08/ralloc.h: define a regs struct for the stack pointer. Removed
6756         unneeded fields from the regs struct.
6757         * src/hc08/gen.c (transferRegReg, genFunction, genEndFunction): use the
6758         pushReg() & pullReg() functions instead of emitcode()
6759
6760         * src/hc08/gen.c (genLabel, genhc08Code),
6761         * src/SDCCdebug.h: Added additional debugger hooks needed for DWARF
6762
6763         * src/cdbFile.c (cdbWriteLabel, cdbWriteScope): Added stubs for unneeded
6764         debugger hooks
6765
6766         * src/hc08/gen.c (genEndFunction, genhc08Code),
6767         * src/hc08/gen.h,
6768         * src/mcs51/gen.c (genEndFunction, gen51Code),
6769         * src/mcs51/gen.h,
6770         * src/ds390/gen.c (genEndFunction, gen390Code),
6771         * src/ds390/gen.h,
6772         * src/z80/gen.c (genEndFunction, genZ80Code),
6773         * src/z80/gen.h,
6774         * src/z80/z80.h,
6775         * src/pic/gen.c (genEndFunction, genpic14Code),
6776         * src/pic/gen.h,
6777         * src/pic16/gen.c (genEndFunction, genpic16Code),
6778         * src/pic16/gen.h,
6779         * src/avr/gen.c (genEndFunction, genAVRCode),
6780         * src/avr/gen.h,
6781         * src/xa51/gen.c (genEndFunction, genXA51Code),
6782         * src/xa51/gen.h,
6783         * src/cdbFile.c (cdbWriteFunction, cdbWriteEndFunction): moved cdb
6784         specific code to cdbFile.c and out of the backend code generators
6785
6786         * as/hc08/lkmain.c (main): removed OMF51 support from link-hc08
6787         * as/hc08/lkarea.c (lnkarea): areas with NOLOAD attribute default
6788         starting address is now 0
6789
6790         * as/hc08/asm.h,
6791         * as/hc08/m08pst.c,
6792         * as/hc08/asmain.c (asmbl): implemented the .sleb128 and .uleb128
6793         assembler directive for DWARF support
6794         * as/hc08/lkelf.c (elf): only increment address when rtflg[] set
6795
6796         * src/src.dsp,
6797         * src/Makefile.in,
6798         * src/SDCCdwarf2.c: preliminary DWARF (ver 2) debugger data generator
6799
6800 2004-05-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6801
6802         * src/hc08/gen.c (genJumpTab, emitcode, genhc08code): fixed stack error
6803         and inappropriate peephole optimization in jump tables
6804
6805 2004-04-30 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6806
6807         * as/hc08/m08pst.c,
6808         * src/SDCCglue.c: sdccopt works for the hc08 port now
6809
6810 2004-04-27 Bernhard Held <bernhard AT bernhardheld.de>
6811
6812         * src/SDCCicode.c (geniCodePreInc, geniCodePreDec): fixed bug #942130
6813
6814 2004-04-27 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6815
6816         * as/hc08/lkelf.c: sdccconf.h is not available in WIN32
6817
6818 2004-04-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6819
6820         * src/SDCCpeeph.c (replaceRule): support empty replacement peephole
6821         rules
6822         * src/SDCCmain.c,
6823         * src/SDCCglobl.h,
6824         * src/SDCCpeeph.c (getPeepLine): new option --no-peep-comments omits
6825         comments from the peephole optimizer replacement rules
6826         * src/SDCCmem.c (printAllocInfoSeg): give actual location of spilled
6827         symbols
6828         * src/SDCCcse.c (updateSpillLocation),
6829         * src/SDCCopt.c (killDeadCode, findReqv): better tracking of register
6830         equivalents
6831         * src/hc08/ralloc.c (regTypeNum): pseudo symbols must be in DATA only
6832         * src/hc08/main.c (_hc08_finaliseOptions): made pointers to stack
6833         objects far pointers
6834
6835 2004-04-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6836
6837         * src/SDCCsymt.h: a missing part of my last change
6838         * src/pic/ralloc.c (regTypeNum),
6839         * src/pic16/ralloc.c (regTypeNum): fixed statement/declaration order
6840
6841 2004-04-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6842
6843         * src/SDCCicode.h,
6844         * src/SDCCicode.c (aggrToPtrDclType),
6845         * src/SDCCptropt.h,
6846         * src/SDCCptropt.c (ptrBaseRematSym, ptrPseudoSymSafe,
6847         ptrPseudoSymConvert),
6848         * src/pic/ralloc.c (regTypeNum),
6849         * src/pic16/ralloc.c (regTypeNum),
6850         * src/hc08/ralloc.c (regTypeNum),
6851         * src/ds390/ralloc.c (regTypeNum),
6852         * src/mcs51/ralloc.c (regTypeNum): check for dependancy hazards before
6853         creating pseudo symbols (fixed bugs #777768, #930484, and #933966)
6854
6855 2004-04-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6856
6857         * link/z80/lkmain.c (afile),
6858         * as/hc08/lkmain.c (afile),
6859         * as/mcs51/lkmain.c (afile): fix suggested by Maarten Brock to
6860         prevent a pointer problem when a filename has no directory and
6861         no extension specified.
6862
6863 2004-04-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6864
6865         * link/z80/lkmain.c (afile): allow periods in directory names
6866         * link/z80/lkmain.c (afile),
6867         * as/mcs51/lkmain.c (afile),
6868         * as/hc08/lkmain.c (afile): allow linker script file to have an
6869         extension other than ".lnk"
6870         * link/z80/lklex.c (getfid),
6871         * link/z80/lkmain.c (parse),
6872         * as/mcs51/lklex.c (getfid),
6873         * as/mcs51/lkmain.c (parse),
6874         * as/hc08/lklex.c (getfid),
6875         * as/hc08/lkmain.c (parse): Support comments in the linker script
6876         file on lines by themselves and after filenames
6877
6878 2004-04-20 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6879
6880         * as/link_hc08.dsp: Added as/hc08/lkelf.c to project.
6881
6882 2004-04-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6883
6884         * src/z80/peeph-z80.def: removed some peephole rules that don't
6885         work with multibyte arithmetic (fixed bug #937126)
6886         * src/mcs51/peeph.def: fixed peephole rules 150-158 to apply only
6887         to registers and not global variables
6888         * src/SDCCicode.c (geniCodeAssign, ast2iCode, geniCodePostInc,
6889         geniCodePreInc, geniCodePostDec, geniCodePreDec,
6890         geniCodeLogicAndOr, geniCodeConditional): enforce strict lvalue
6891         checking for assignments not internally generated (fixed bug #931895)
6892         * src/SDCC.y (postfix_expr): ignore typedefs when looking for a
6893         structure member (fixed bug #930072)
6894
6895 2004-04-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6896
6897         * src/SDCCmain.c (linkEdit),
6898         * src/hc08/main.c (_hc08_parseOptions),
6899         * as/hc08/Makefile.in,
6900         * as/hc08/aslink.h,
6901         * as/hc08/asm.h,
6902         * as/hc08/m08pst.c,
6903         * as/hc08/lkrloc.c (relr, rele),
6904         * as/hc08/lkarea.c (lnkarea)
6905         * as/hc08/lkmain.c (afile, parse),
6906         * as/hc08/lkelf.c: support for ELF output
6907         * as/hc08/lks19.c (s19),
6908         * as/hc08/lkihx.c (ihx): ignore areas with the NOLOAD attribute
6909
6910 2004-04-17 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6911
6912         * as/mcs51/lkihx.c: Fixed bug #899105.
6913
6914 2004-04-16 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6915
6916         * doc/sdccman.lyx: Added instructons on how to convert MSVC .dsw and
6917         .dsp files from Unix to DOS.
6918
6919 2004-04-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6920
6921         * doc/sdccman.lyx: removed the ANSI-C noncompliance note regarding
6922         function pointers; we have been compliant for several months now.
6923         * src/mcs51/ralloc.c (serialRegAssign): enabled part of my 2004-04-13
6924         change that was accidently commented out
6925         * src/mcs51/gen.c (freeAsmop, getFreePtr, freeForBranchAsmop, genIfxJump,
6926         genCmpEq, jmpTrueOrFalse, genCmp, genAnd, genOr, genXor, genIfx): fixed
6927         bug #922319
6928
6929 2004-04-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6930
6931         * src/hc08/gen.c: output of all of the internal debugging information
6932         is now controlled by the D() macro; it is disabled by default
6933
6934 2004-04-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6935
6936         * src/mcs51/ralloc.c (serialRegAssign, fillGaps, allocThisReg): try
6937         harder to keep the same registers during a CAST iCode
6938         * src/SDCCopt.c (optimizeCastCast, eBBlockFromiCode): casts of char to
6939         long via int can be done in a single cast, if the signedness is
6940         correct.
6941         * support/regression/tests/bug-927659.c: fixed to avoid conflict with
6942         putchar() in tinibios.c in ds390's library
6943
6944 2004-04-12 Bernhard Held <bernhard AT bernhardheld.de>
6945
6946         * src/SDCCast.c (decorateType): fixed bug #898889,
6947         cast result of a literal complement too
6948         * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #930931,
6949         fixed check for bitfields
6950
6951 2004-04-11 Bernhard Held <bernhard AT bernhardheld.de>
6952
6953         * src/SDCCicode.c (geniCodeLogic): made it static,
6954         (geniCodeLogicAndOr): added in order to fix bug #905492,
6955         (ast2iCode): fixed bug #905492
6956         * support/regression/tests/bug-905492.c: added
6957         * src/SDCCast.c (decorateType): don't decorate/process parms twice,
6958         (processParms): fixed bug #927659: don't copy parms, this will clear
6959         decorated flag
6960         * support/regression/tests/bug-927659.c: added
6961
6962 2004-03-29 Bernhard Held <bernhard AT bernhardheld.de>
6963
6964         * src/SDCCast.c (addCast): don't cast float to char
6965         * device/lib/libsdcc.lib: added _memmove
6966
6967 2004-03-28 Bernhard Held <bernhard AT bernhardheld.de>
6968
6969         * device/lib/large/Makefile: fixed parallel execution by
6970         replacing `make` by `$(MAKE)`
6971
6972 2004-03-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6973
6974         * src/hc08/gen.c (genPointerGetSetOfs): correctly handle 1 byte array
6975         offsets (fixes bug #923936)
6976
6977 2004-03-26 Bernhard Held <bernhard AT bernhardheld.de>
6978
6979         * device/lib/small/Makefile: fixed parallel execution by
6980         replacing `make` by `$(MAKE)`
6981
6982 2004-03-23 Bernhard Held <bernhard AT bernhardheld.de>
6983
6984         * device/lib/vprintf.c (vsprintf): minor optimization, see bug #801101
6985
6986 2004-03-23  Scott Dattalo  <scott AT dattalo.com>
6987
6988         * src/pic/gen.c (genCpl): multi-byte complements were not working.
6989         * src/regression/Makefile: Regression test was not running.
6990
6991 2004-03-23 Bernhard Held <bernhard AT bernhardheld.de>
6992
6993         * src/SDCCast.c (resultTypePropagate, decorateType): avoid promotion to int for
6994         complement if possible
6995         * src/SDCCval.c (valComplement),
6996         * src/SDCCicode.c (operandOperation): fixed complement of literal
6997         * support/regression/tests/onebyte.c (testComplement): added
6998
6999 2004-03-22 Bernhard Held <bernhard AT bernhardheld.de>
7000
7001         * src/SDCCast.c (processParms): fixed bug #920866; decorateType() can
7002         return an optimized tree; actually replace actParm with the new tree
7003         * src/SDCCast.h: added some parantheses to remove side effects
7004         * support/regression/tests/bug-920866.c
7005
7006 2004-03-21  Scott Dattalo  <scott AT dattalo.com>
7007         * src/pic/gen.c, src/pic/gen.h, src/pic/genarith.c, src/pic/pcode.c:
7008         Bit operands were not being handled properly in the pic14 port.
7009         (now src/regression/add.c passes again).
7010
7011 2004-03-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7012
7013         * src/SDCC.y (labeled_statement): case and default no longer require
7014         a following statement (RFE #893037)
7015
7016 2004-03-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7017
7018         * src/mcs51/gen.c (pushSide, genSignedRightShift, genDjnz, geniPush):
7019         use MOVA macro to avoid "mov a,acc" when peephole optimizer is
7020         disabled (fixes bug #916294)
7021         * sim/ucsim/s51.src/mov.cc (inst_mov_a_addr): Throw an error on
7022         "mov a,acc"; patch provided by Lenny Story
7023         * device/include/mc68hc908gp32.h: header contibuted by Juan Gonzalez
7024
7025 2004-03-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7026
7027         * src/mcs51/gen.c (genFunction): optimize RECEIVE in reentrant
7028         functions
7029         * src/ds390/gen.c (genFunction, genEndFunction),
7030         * src/ds390/ralloc.c (ds390_assignRegisters),
7031         * src/mcs51/gen.c (genFunction, genEndFunction, mcs51_assignRegisters):
7032         * src/mcs51/ralloc.c (mcs51_assignRegisters): Skip optimizing registers
7033         pushed if there are parameters passed on the stack. Also, a cleaner
7034         way to decide if r0/r1 should be pushed/popped. (Together they fix
7035         bug #918693)
7036
7037 2004-03-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7038
7039         * doc/sdccman.lyx,
7040         * device/lib/mcs51/crtpagesfr.asm,
7041         * device/lib/mcs51/crtxinit.asm,
7042         * device/lib/mcs51/crtxstack.asm: Changed name of _PAGESFR to _XPAGE
7043         to avoid confusion with Si Lab's SFRPAGE register.
7044
7045 2004-03-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7046
7047         * src/SDCCglue.c (emitMaps): allow public sfr variables
7048         * src/SDCCglue.c (initialComments): include compiler build date
7049         with compiler version and put the timestamp of the generated
7050         assembly file on a serperate line to be less confusing.
7051         * src/port.h: added genInitStartup hook
7052         * src/avr/main.c,
7053         * src/ds390/main.c,
7054         * src/hc08/main.c,
7055         * src/pic/main.c,
7056         * src/pic16/main.c,
7057         * src/xa51/main.c,
7058         * src/z80/main.c: genInitStartup initialize as NULL (default to
7059         historical behaviour)
7060         * src/SDCCglue.c (glue): _sdcc_gsinit_startup is now port specific.
7061         * src/mcs51/main.c: (_mcs51_genInitStartup, _mcs51_genExtraAreas,
7062         _mcs51_genXINIT, _mcs51_genRAMCLEAR): link initialization code from the
7063         library instead of hard coding it into the compiler.
7064         * support/regression/ports/mcs51-stack-auto/spec.mk,
7065         * src/SDCCmain.c (linkEdit): added mcs51.lib to the link libraries
7066         * device/lib/mcs51/Makefile,
7067         * device/lib/small/Makefile,
7068         * device/lib/large/Makefile,
7069         * device/lib/mcs51/crtpagesfr.asm,
7070         * device/lib/mcs51/crtstart.asm,
7071         * device/lib/mcs51/crtxclear.asm,
7072         * device/lib/mcs51/crtxinit.asm,
7073         * device/lib/mcs51/crtclear.asm,
7074         * device/lib/mcs51/crtxstack.asm: move most of the mcs51 C runtime
7075         startup/initialization out of src/SDCCglue.c and src/mcs51/main.c
7076         and into user configurable files.
7077         * device/lib/clean.mk: clean mcs51 directory too
7078         * support/regression/tests/longlit.c: added static to T1 declaration
7079         * doc/sdccman.lyx: documented _PAGESFR sfr for customizing pdata
7080         accesses in the initialization code
7081
7082 2004-03-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7083
7084         * device/include/mc68hc908qy.h: corrected declarations of FLBPR and
7085         OSCTRIMVAL as noted in bug #916008
7086
7087 2004-03-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7088
7089         * src/SDCCloop.c (basicInduction): fixed bug with loop induction
7090         in loops with multiple exits (reported as incorrect registers
7091         used by Martin Helmling in Sdcc-user list)
7092
7093 2004-03-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7094
7095         * src/ds390/main.c (_ds390_genAssemblerPreamble): cosmetic change,
7096         made ds390 register extensions look less like error messages
7097
7098 2004-03-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7099
7100         * src/SDCCglue.c (printIvalPtr): fixed bug with pointer initializer
7101         reported by Adam Wozniak in Sdcc-user list
7102
7103 2004-03-10 Bernhard Held <bernhard AT bernhardheld.de>
7104
7105         * src/SDCCast.c (decorateType): fixed with bug and promotion in
7106         arithmetic optimizations, added debug output
7107
7108 2004-03-09 Bernhard Held <bernhard AT bernhardheld.de>
7109
7110         * device/lib/time.c (mktime): fixed bug reported by Bert Thomas
7111         * sdcc.spec: updated and split sdcc into 3 rpms
7112         * src/SDCCast.c (decorateType): &|^ don't need addCast(); addCast() is
7113         needed for literals of LEFT_OP and '+'
7114         * src/SDCCicode.c (geniCodeLogic): I must have been braindead when I
7115         introduced RESULT_TYPE_NOPROM
7116         (geniCodeMultiply): fixed logic for decision if mul is optimized to
7117         left shift
7118         * src/SDCCsymt.c (computeType): op is int; added RESULT_TYPE_OTHER;
7119         limited promotion to int only for '*'
7120         * src/SDCCsymt.h (computeType): op is int, removed RESULT_TYPE_NOPROM
7121
7122 2004-03-09 Hans Dorn <hjdorn AT users.sourceforge.net>
7123
7124         * src/pic16/gen.c (genSkip),
7125         (genc16bit2lit), (gencjneshort): commented out
7126         (is_LitOp): new helper function, checks operand type
7127         (genCmpEq): rewritten
7128
7129 2004-03-08 Bernhard Held <bernhard AT bernhardheld.de>
7130
7131         * support/regression/tests/bug-908454.c: added
7132
7133 2004-03-07 Bernhard Held <bernhard AT bernhardheld.de>
7134
7135         * src/SDCCast.c (addCast): fixed bug #908454 by promoting bits to char
7136         * src/SDCCicode.c (usualBinaryConversions): op needs int type
7137         (geniCodeCast): cosmetic, don't preserve bit storage class
7138         (geniCodeLeftShift): added promotion
7139         (geniCodeLogic): fixed regression
7140         * src/SDCCsymt.c (computeTypeOr): accept bits too
7141         (compareType): 2nd part of fix for bug #908454, needed for bitfields
7142
7143 2004-03-07  Borut Razem <borut.razem AT siol.net>
7144
7145         * support/Util/findme.c: alloca() replaced with malloc()/free() pair
7146
7147 2004-03-06 Vangelis Rokas <vrokas AT otenet.gr>
7148
7149         * src/pic16/ralloc.c (pic16_genPackRegisters): reverted to old
7150         version of pic16_genPackRegisters which does not check if ic is a
7151         CAST operator,
7152         * src/pic16/gen.c (ifxForOp): disabled new and untested code in
7153         function cause string1.c regression test fails
7154
7155 2004-03-06 Bernhard Held <bernhard AT bernhardheld.de>
7156
7157         * sim/ucsim/configure.in,
7158         * sim/ucsim/configure,
7159         * sim/ucsim/doc/Makefile.in: use docdir
7160         * src/SDCC.y: fixed sbit atrributes
7161         * src/SDCCast.c (getResultTypeFromType): added support for bitfields
7162         * src/SDCCast.c (decorateType): |^& need special promotion handling
7163         * src/SDCCast.h,
7164         * src/SDCCsymt.h: moved definition of RESULT_TYPE
7165         * src/SDCCsymt.h (computeType),
7166         * src/SDCCicode.c: computeType() needs op
7167         * src/SDCCsymt.c (checkTypeSanity),
7168         * doc/sddman.lyx: "plain" bitfields are unsigned
7169         * src/SDCCsymt.c (computeTypeOr): added
7170         * src/SDCCsymt.c (computeType): added support for bitfields, fixed
7171         |^& ops
7172         * src/SDCCval.c (val*): computeType() needs op
7173         * src/SDCCval.c (valCastLiteral): fixed casting of bitfields
7174         * support/regression/tests/onebyte.c: added tests for |^&
7175
7176 2004-03-06 Hans Dorn <hjdorn AT users.sourceforge.net>
7177
7178         * src/pic16/gen.c: (genpic16Code) use copy of printILine's output
7179         for writing icode into asm output.
7180
7181 2004-03-05 Vangelis Rokas <vrokas AT otenet.gr>
7182
7183         * src/pic16/device.c: added some debug lines enabled
7184         with macro DEBUG_CHECK,
7185         * src/pic16/genarith.c: more debug in genPlus,
7186         * (pic16_genUMult8XLit_16, pic16_genUMult8X8_16): removed,
7187         * (pic16_genUMult16X16_16, pic16_genUMult16XLit_16): NEW,
7188         * src/pic16/gen.c: added prototypes for pic16_genMult16X16_16,
7189         * (aopForSym): onStack symbols are re-placed in data memspace,
7190         and onStack flag is cleared,
7191         * (pic16_popGetTempReg, pic16_popReleaseTempReg): modified to
7192         copy temporary pcodeop,
7193         * (genPcall): added warning for not updating PCLATU,
7194         * (genFunction): removed test with IFFUNC_CALLEESAVES, its
7195         always true for pic16 port,
7196         * (genMultOneWord): NEW, supports integer multiplication,
7197         * (genMult): modified to call genMultOneWord,
7198         * (ifxForOp): added warning when return NULL,
7199         * src/pic16/glue.c (pic16emitRegularMap): symbol implicit
7200         flag is set before call to operandFromSymbol for implicit
7201         added structures,
7202         * src/pic16/main.c (_pic16_finaliseOptions): options.float_rent,
7203         options.intlong_rent are set by default,
7204         * (_hasNativeMulFor): modified to allow port generation of integer
7205         multiplication,
7206         * src/pic16/ralloc.c (pic16_allocDirReg): commented out line which
7207         set regtype to REG_SFR for all registers, restricting seting the
7208         accessBank flag for registers 0<= r < 0x80 and 0xf80<=r<=0xfff,
7209
7210 2004-03-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7211
7212         * src/mcs51/peephole.def: added 251.b and 253.x. 253.x are applied
7213         more than 500 times in the regression tests
7214
7215 2004-03-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7216
7217         * support/Util/SDCCerr.h,
7218         * support/Util/SDCCerr.c,
7219         * src/SDCC.y (struct_or_union_specifier, enum_specifier,
7220         enumerator_list),
7221         * src/SDCCsymt.c (addSymChain): show location of oriignal definition
7222         for symbol conflicts.
7223         * support/valdiags/tests/enum.c,
7224         * support/valdiags/tests/tentdecl.c,
7225         * support/valdiags/tests/struct.c: expect possible error messages
7226         referring to original symbol definitions.
7227         * src/SDCC.y (struct_or_union_specifier, struct_declarator),
7228         * src/SDCCsymt.h,
7229         * src/SDCCsymt.c (promoteAnonStructs): support anonymous struct/union
7230
7231 2004-03-03 Hans Dorn <hjdorn AT users.sourceforge.net>
7232
7233         * src/pic16/gen.c (gencjne): fixed for right=REG / left=LIT
7234
7235 2004-02-03 Vangelis Rokas <vrokas AT otenet.gr>
7236
7237         * src/pic16/ralloc.c (newReg): fixed bug #908929
7238
7239 2004-03-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7240
7241         * src/ds390/gen.c: added missing #include "main.h"
7242
7243 2004-03-02 Vangelis Rokas <vrokas AT otenet.gr>
7244
7245         * src/pic16/device.c (checkAddSym): NEW, adds a symbol to set while
7246         checking if symbol is already in set,
7247         * src/pic16/device.h: prototype for checkAddSym,
7248         * src/pic16/gen.c: (_G): added entry interruptvector,
7249         * (assignResultValue): removed some commented out lines,
7250         * (genFunction): check for ISR via sym->type, absolute section for
7251         interrupt code is created via a new pBlock, the goto instruction is
7252         placed now correctly at the interrupt vector position, changed all
7253         references from ivec to _G.interruptvector,
7254         * WREG,STATUS,BSR are not saved in stack upon an entry to interrupt
7255         is the interrupt is a high priority one, same for return from ISR,
7256         * src/pic16/glue.c: changed all calls of addSetHead for publics and
7257         externs to calls of checkAddSym,
7258         * src/pic16/pcode.c (pic16_pBlockConvert2*): emit warning when
7259         pic16_pcode_verbose flag is set,
7260         * src/pic16/pcode.h: extern to pic16_pcode_verbose,
7261         * src/pic16/pcoderegs.c: message about how many registers are saved
7262         will only be emitted if pic16_pcode_verbose flag is set,
7263
7264 2004-03-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7265
7266         * src/ds390/ralloc.h,
7267         * src/ds390/ralloc.c (ds390_regWithIdx),
7268         * src/ds390/gen.c (emitcode),
7269         * src/ds390/main.h,
7270         * src/ds390/main.c (instructionSize, ds390newAsmLineNode, updateOpRW,
7271         ds390opcodeCompare, asmLineNodeFromLineNode, getInstructionSize,
7272         ds390operandCompare, getRegsRead, getRegsWritten,
7273         initializeAsmLineNode): customized instruction size calculation for
7274         ds390, started basis for some register optimizations
7275         * src/ds390/gen.c (gen390Code, emitcode): associate iCodes with
7276         corresponding assembly output
7277         * src/ds390/gen.c (genFunction, genEndFunction): added case to handle
7278         missing push/pop of r0/r1. Optimized push/pops
7279
7280 2004-03-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7281
7282         * src/mcs51/main.c (instructionSize): fixed ACALL size
7283         * src/mcs51/main.c (updateOpRW): fixed bug with @dptr, @a+dptr operands
7284
7285 2004-03-01 Vangelis Rokas <vrokas AT otenet.gr>
7286
7287         * src/pic16/device.c (pic16_dump_section): fixed a bug that allowed
7288         the sorting of rlist with NULL elements
7289         * (print_idataType, print_idata): NEW to create idata sections
7290         * src/pic16/device.h: idataSymSet new variable
7291         * src/pic16/gen.c (genFunction): fixed some bugs in string
7292         comparing, improved the absolute section creation for ISRs,
7293         added FSR0L/FSR0H in registers that are saved in an ISR,
7294         * (genInline): fixed the processing of inline snippets,
7295         now they undergo no process by the peephole optimizer
7296         * src/pic16/glue.c (pic16emitRegularMap): symbols with initialiser
7297         are placed in idataSymSet,
7298         * (pic16emitStaticSeg): extern symbols are added in externs,
7299         * src/pic16/ralloc.c (pic16_allocDirReg): work around to reduce bank
7300         switching when aboslute variables are placed in access bank memory
7301         * (pic16_writeUsedRegs): added call to pic16_dump_idata,
7302         * (packRegsForSupport,packRegsForAccUse,packRegsForOneuse):
7303         commented out with #if,
7304         * (pic16_packRegisters): reintroduce the check for CAST because some
7305         symbols are not correctly handled,
7306         * src/pic16/pcode.h: changed the definition of pCodeAsmDir to hold a
7307         pCodeInstruction instead of pCode,
7308         * src/pic16/pcode.c (pic16_newpCodeAsmDir): modified for the new
7309         pCodeAsmDir definition,
7310         * (pic16_pCode2str, genericPrint): when an AsmDir pcode has a NULL
7311         directive, then the argument directive is emitted without the leading
7312         tab, hack for inline labels which must be in the first column,
7313         * (compareLabel,pic16_findNextInstruction),
7314         * (pic16_findPrevInstruction): added case for PO_ASMDIR,
7315         * (insertBankSwitch): modified for the new pCodeAsmDir,
7316
7317 2004-03-01 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
7318         patch applied by Vangelis Rokas <vrokas AT otenet.gr>
7319
7320         * src/pic16/gen.c (pic16_popGet): case PO_DIR, adds the offset to
7321         instance,
7322         * (pushSide): commented out with #if,
7323         * (assignResultValue): fixed some typos in saving
7324         registers,
7325         * (genPcall): FIXED and sync'ed with genCall,
7326         * (genDataPointerGet,genDataPointerSet): using offset not leoffset
7327         * (genNearPointerGet): fixed to handle some more cases,
7328         implementation scheme via table reads,
7329         * (genConstPointerGet): modified to access code memory correct,
7330         * (genCodePointerGet,genNearPointerSet,genGenPointerSet): modified
7331         and improved to handle some cases
7332         * glue.c (printIvalType,printIvalChar,emitStaticSeg): use "DB"
7333         instead of "RETLW" for init data
7334         * src/pic16/ralloc.c (pic16_allocDirReg): warning when a symbol is
7335         not IN_DIRSPACE, work around to reduce bank switching when aboslute
7336         variables are placed in access bank memory (<0x80 and >=0xf80),
7337         * src/pic16/pcode.c: added SFRs TBLPTR, TABLAT, added opcodes TBLRD,
7338         TBLRD_POSTINC,TBLRD_POSTDEC,TBLRD_PREINC,TBLWT,TBLWT_POSTINC,
7339         TBLWT_POSTDEC,TBLWT_PREINC
7340         * Fixed initialisation of BSR, set "alias" for SSAVE to "0"
7341         * (pic16_emitDB,pic16_flushDB): New functions to generate "DB"
7342         directives
7343         * (pic16_pCodeConstString): use "DB" instead of "RETLW"
7344         * src/pic16/pcode.h: added TBLRD*,TBLWT*, added pic16_emitDB,
7345         pic16_flushDB, made pic16_newpCodeAsmDir public, added TBLPTR, TABLAT
7346         * src/pic16/ralloc.h: added IDX_BSR,IDX_TBLPTR*,IDX_TABLAT
7347
7348 2004-02-29  Borut Razem <borut.razem AT siol.net>
7349
7350         * src/Makefile.in, src/SDCCutil.c, support/Util/findme.c,
7351         support/Util/findme.h, support/Util/system.h: enhance binary relative
7352         search for lib and include by using findProgramPath()
7353
7354 2004-02-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7355
7356         * src/SDCCpeeph.h,
7357         * src/SDCCpeeph.c (pcDistance),
7358         * src/port.h,
7359         * src/mcs51/ralloc.h,
7360         * src/mcs51/ralloc.c (mcs51_regWithIdx),
7361         * src/mcs51/main.h,
7362         * src/mcs51/main.c (instructionSize, asmLineNode, updateOpRW,
7363         mcs51opcodeCompare, asmLineNodeFromLineNode, getInstructionSize,
7364         mcs51operandCompare, getRegsRead, getRegsWritten): made instruction
7365         size calculation port specific, started basis for some register
7366         optimizations
7367         * src/mcs51/gen.c (genFunction, genEndFunction): added case to handle
7368         missing push/pop of r0/r1. Optimized push/pops
7369         * src/mcs51/ralloc.c (packregisters): fixed bug #727095
7370         * device/lib/_modsint.c (_modsint),
7371         * device/lib/_modslong.c (_modslong): fixed sign of result in non-asm
7372         and stack version so regression tests pass
7373
7374 2004-02-26 Bernhard Held <bernhard AT bernhardheld.de>
7375
7376         * src/Makefile.in (dep): include SLIBOBJS in dependency check
7377         * src/SDCCast.c (decorateType): catch another small optimization
7378         with '?' operator
7379         * src/SDCCsymt.c (computeType): added comments and cosmetic changes
7380         * src/SDCCval.c (valMult, valDiv, valMod, valPlus, valMinus, valShift):
7381         modified to finally use computeType() all over SDCC,
7382         see Feature Request #877103
7383         * src/SDCCval.h: cosmetic
7384         * src/SDCCicode.c (operandOperation): fixed EQ_OP bug, now same as in
7385         valCompare(); regression tested in muldiv.c
7386         * support/regression/tests/muldiv.c (testMod): mod sign follows
7387         dividend only
7388
7389 2004-02-23 Bernhard Held <bernhard AT bernhardheld.de>
7390
7391         * src/SDCCast.c (decorateType): fixed bug #902362
7392         * doc/INSTALL.txt: fixed install instructions for win32
7393
7394 2004-02-21 Bernhard Held <bernhard AT bernhardheld.de>
7395
7396         * device/include/Makefile.in (install): fixed by replacing spaces
7397         by tabs
7398         * doc/README.txt,
7399         * doc/INSTALL.txt: updated for release
7400         * doc/sdccman.lyx: added warning for --xstack being buggy
7401
7402 2004-02-20 Bernhard Held <bernhard AT bernhardheld.de>
7403
7404         * src/pic16/ralloc.c (packRegsForAccUse):  disabled functions with #if
7405         to eliminate build warnings.
7406         * src/pic16/gen.c (pic16_popGet): fixed for gcc 2.95.4
7407
7408 2004-02-20 Vangelis Rokas <vrokas AT otenet.gr>
7409            Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
7410
7411         * doc/sdccman.lyx: removed PIC16 from PIC16 Port Specific Options,
7412         removed -penable-stack, added comment for stack pragma, added
7413         warning for not initializing the stack/frame registers, removed
7414         comment at interrupts section
7415
7416         Stack is made permanent, there is no ability to disable stack usage.
7417         * src/pic16/device.h,
7418         * src/pic16/device.c: removed all references to USE_STACK macro,
7419         * src/pic16/device.c (pic16_dump_section): when no elements in
7420         rlist, free rlist before return,
7421         * (pic16_dump_int_registers): NEW, internal registers are a new set
7422         of general purpose registers reused by each function,
7423         * (checkAddReg): returns 1 if registers is added to set,
7424         * (pic16_groupRegistersInSection): when a registers is of type
7425         PO_GPR_TEMP add it in pic16_int_regs and not in pic16_rel_udata,
7426         * src/pic16/device.h: memRange and Assigned Memory are deleted,
7427         SRCASECMP macro is moved here from device.c
7428         * src/pic16/genarith.c (pic16_pCodeOpType): added cases for
7429         PO_PCLATU, PO_PRODL, PO_PRODH,
7430         * (pic16_pCodeOpType, genMinus,
7431         changed compares to "a" register, with AOP_ACC,
7432         * (pic16_genPlus): fixed some bugs and indented properly,
7433         * (pic16_addSign): changed size to size+offset in the MOVWF
7434         instruction,
7435         * (pic16_genUMult8XLit_8): NEW, uses processor MULLW instruction to
7436         multiply 8-bit operand by literal, result is 8-bit,
7437         * (pic16_genUMult8X8_8): NEW, uses processor MULWF instruction to
7438         multiply 2 8-bit operand, result is 8-bit,
7439         * (pic16_genMult8X8_8): modified to call genUMult8X*_8 functions and not
7440         genUMult8X*_16,
7441         * src/pic16/gen.c: changed accUse to contain WREG only,
7442         * (pic16_emitcomment): renamed to pic16_emitpcomment,
7443         * (aopForSym): allocated dir register when IN_DIRSPACE(space) is,
7444         true, do not use immediate addressing any more unless sym is a
7445         pointer in codespace,
7446         * (aopForRemat): do not use immediate addressing when symbol not in
7447         codespace and when symbol's address is requested,
7448         * (aopOp): for-loop in if(sym->accUse) is modified for the new
7449         accUse size (= 1),
7450         * (aopGet): added case for AOP_ACC and don't return "accumulator
7451         bug" but WREG instead,
7452         * (popGetTempReg): pushes contents of temporary register in stack,
7453         * (popReleaseTempReg): pops contents of temporary register from
7454         stack. Use popGetTempReg/popReleaseTempReg in aligned pairs,
7455         * (pic16_popGet): separated case AOP_ACC to return register WREG
7456         from processor registers, AOP_PCODE not checks if pcop is PO_DIR
7457         or PO_IMMEDIATE and initializes their instance/offset appropriately,
7458         * The whole issue with aopForSym,aopForRemat,popGet) is to minimize
7459         the use of immediate pointers to certain cases only.
7460
7461         * (pic16_pushpCodeOpReg, pic16_poppCodeOpReg): use pic16_popGet2p,
7462         * (pic16_loadFromReturn, pic16_storeForReturn: NEW,
7463         * (assignResultValue, genCall, genRet): modified to use the new
7464         function return value scheme with WREG,PRODL,PRODH,FSR0L and FSR0,
7465         genPcall is still broken,
7466         * (genFunction): added code to create 'A' type pBlocks when
7467         interrupt functions are generated, code not extensively tested yet,
7468         ISRs push WREG,STATUS,BSR,PRODL,PRODH,FSR0L,FSR0H registers on stack,
7469         * (genEndFunction): modified so ISRs pop stored registers from stack,
7470         * (genMultOneByte): cleanup,
7471         * (AccRsh): added flag andmask, to and result with appropriate mask,
7472         * (genUnpackBits,genPackBits): fixed and can handle bit fields,
7473         * (genDataPointerGet): fixed and reenabled its use,
7474         * (genNearDataPointerGet): bugs fixed,
7475         * (genDataPointerSet): bugs fixed,
7476         * src/pic16/genutils.c: added functions pic16_DumpValue,pic16_DumpAop,
7477         pic16_DumpSymbol, pic16_DumpOp,
7478         * src/pic16/genutils.h: function prototypes for the above functions,
7479         * src/pic16/glue.c: new flags initsfpnt, to initialize stack/frame
7480         pointers,
7481         * (pic16emitRegularMap): many many many improvements, but needs a
7482         major cleanup,
7483         * src/pic16/main.c: enable_stack in pic16_options is removed,
7484         * (_pic16_parseOptions): removed command line options -penable-stack,
7485         * (_process_pragma): emit stack symbol only when stack pragma is
7486         processed,
7487         * src/pic16/pcode.c: pic16_pc_fsr0 is removed, all operations are
7488         redirected to FSR0L/FSR0H pair,
7489         * (pic16_get_op, pic16_get_op2): modifications and improvements,
7490         * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): added
7491         cases PO_PRODL,PO_PRODH, pic16_getRegFromInstruction2 returns sane
7492         for immediates,
7493         * (insertBankSwitch): modified to handle cases like: (alfa + 1)
7494         * (dumpPicOptype): NEW,
7495         * src/pic16/pcode.h: added PO_PCLATU,PO_PRODL,PO_PRODH in enum,
7496         * src/pic16/pcoderegs.c (pCodeRegMapLiveRangesInFlow): fixed bug
7497         with movff instruction,
7498         * src/pic16/ralloc.c: renamed typeRegWithIdx to pic16_typeRegWithIdx,
7499         added pic16_int_regs, some packRegsFor* functions are commented out,
7500         because produce errors,
7501         * src/pic16/NOTES: minor modifications
7502
7503 2004-02-18  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7504
7505         * as/mcs51/aslink.h, as/mcs51/lkarea.c, as/mcs51/lkdata.c, as/mcs51/lkmain.c,
7506         as/mcs51/lkmem.c, src/SDCCglob.h, src/SDCCmain.c: added options --stack-size and
7507         --pack-iram.
7508         * doc/sdccman.lyx: described options --stack-size and --pack-iram.
7509         * as/mcs51/lkaomf51.c: fixed bug #895763
7510
7511 2004-02-17 Bernhard Held <bernhard AT bernhardheld.de>
7512
7513         * device/include/c8051f320.h: added. Contributed by Maarten Brock.
7514
7515 2004-02-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7516
7517         * doc/sdccman.lyx: added details about the HC08 storage classes and
7518         interrupts, fixed the register usage info for z80 & gbz80
7519
7520 2004-02-17 Vangelis Rokas <vrokas AT otenet.gr>
7521
7522         * doc/sdccman.lyx: added more pic16 port documentation
7523         * device/include/pic16/: added header pic18fregs.h
7524
7525 2004-02-16 Bernhard Held <bernhard AT bernhardheld.de>
7526
7527         * doc/sdccman.lyx: added Vangelis' contribution
7528
7529 2004-02-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7530
7531         * src/SDCClrange.c (rlivePoint): live range of SEND operand should
7532         extend to the next CALL or PCALL, not just to the next CALL.
7533
7534 2004-02-16 Vangelis Rokas <vrokas AT otenet.gr>
7535
7536         * src/pic16/gen.c (genInline): fixed bug #896482 with inline assembly
7537
7538 2004-02-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7539
7540         * src/mcs51/ralloc.c (packRegsForAssign, reassignAliasedSym): fixed
7541         bug #895752 and a better fix for bug #716790
7542
7543 2004-02-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7544
7545         * src/SDCCsymt.c (processFuncArgs): fixed bug #896796
7546
7547 2004-02-14 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7548
7549         * doc/sdccman.lyx: minor changes, minor changed
7550
7551 2004-02-13 Bernhard Held <bernhard AT bernhardheld.de>
7552
7553         * src/SDCCicode.c (usualBinaryConversions): removed pic16 from ports
7554         which can't handle SDCC_NEWONEBYTEOPS,
7555         (geniCodeMultiply): removed conversion from mult to shift for pic14
7556         and pic16
7557
7558 2004-02-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7559
7560         * src/hc08/gen.h,
7561         * src/hc08/gen.c (storeRegToAop, aopOp, aopAdrStr, accopWithAop,
7562         rmwWithAop): Ported my 2003-10-02 fix for bug #663539 to the hc08,
7563         thus fixing bug #895406
7564
7565 2004-02-11 Bernhard Held <bernhard AT bernhardheld.de>
7566
7567         * device/lib/_modsint.c,
7568         * device/lib/_modslong.c: sign follows divisor only
7569         * src/hc08/gen.c (genMultOneByte): if result size is 1,
7570         signs or signedness can be ignored
7571         * src/SDCCast.c (addCast): cosmetic - added lineno to CAST
7572         * src/SDCCast.c (resultTypePropagate): added even more ops: +, - and *,
7573         added optimization for IFX,
7574         (decorateType): Mult/Div/ModOneByte ops can handle all kind of signed
7575         arguments;
7576         reenabled optimization for IFX, which was removed on 2004-01-11
7577         * src/SDCCast.h: added return type IFX
7578         * src/SDCCicode.c: Mult/Div/ModOneByte ops can handle all kind of signed
7579         arguments with 8 or 16 bit results; pic14 and pic16 ports use old
7580         promotion behaviour; env. var. SDCC_NEWONEBYTEOPS selects the new,
7581         SDCC_OLDONEBYTEOPS selects the old behaviour
7582         * src/SDCCsymt.c (computeType): type2 can be NULL (for LEFT_OP);
7583         changed again and commented promotion rule
7584         * src/SDCCval.c (valDiv): promotion no longer necessary
7585         * src/ds390/gen.c (genMultOneByte) (genDivOneByte) (genModOneByte),
7586         * src/mcs51/gen.c (genMultOneByte) (genDivOneByte) (genModOneByte):
7587         rewritten
7588         * support/regression/tests/onebyte.c: added
7589
7590 2004-02-11 Vangelis Rokas <vrokas AT otenet.gr>
7591
7592         * gen.c (genInline): reverted to old code for assemnling inline
7593         code because of bug reported James Chadd
7594
7595 2004-02-10 Vangelis Rokas <vrokas AT otenet.gr>
7596
7597         * ralloc.h: missing declarations from previous patch,
7598         seems that patch for ralloc.h was never applied, fixed
7599
7600 2004-02-10 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
7601            patch committed by Vangelis Rokas <vrokas AT otenet.gr>
7602
7603         * pcode.c,
7604         * pcode.h,
7605         * ralloc.h: added FSR0L, FSR0H and other missing PIC16 SFR's for
7606         indirect addressing. Marked FSR0 as deprecated
7607         * gen.c (pointerCode): commented out, not needed now
7608         (pic16_popGet2p): new MOVFF helper function
7609         (genGenPointerGet),
7610         (genGenPointerSet): reimplemented with MOVFF and POSTINC0
7611         (shiftRLong): removed duplicate debugging info
7612
7613 2004-02-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7614
7615         * src/ds390/gen.c (genNearPointerGet),
7616         * src/mcs51/gen.c (genNearPointerGet): allow the genDataPointerGet()
7617         optimization with bits, but not bitfields.
7618         * src/ds390/ralloc.c (packRegisters),
7619         * src/mcs51/ralloc.c (packRegisters): fixed bug #884453 & #880832
7620
7621 2004-02-09 Bernhard Held <bernhard AT bernhardheld.de>
7622
7623         * src/SDCCcse.c (algebraicOpts): copy operands before modification
7624
7625 2004-02-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7626
7627         * src/SDCCsymt.h,
7628         * src/SDCCicode.c (operandFromSymbol),
7629         * src/mcs51/ralloc.c (verifyRegsAssigned, serialRegAssign),
7630         * src/ds390/ralloc.c (verifyRegsAssigned, serialRegAssign),
7631         * src/z80/ralloc.c (verifyRegsAssigned, serialRegAssign),
7632         * src/hc08/ralloc.c (verifyRegsAssigned, serialRegAssign),
7633         * src/pic/ralloc.c (verifyRegsAssigned, serialRegAssign),
7634         * src/pic16/ralloc.c (verifyRegsAssigned, serialRegAssign): fixed
7635         bug #892038
7636         * src/SDCCast.c (createIvalStruct, createIvalArray, gatherAutoInit),
7637         * src/SDCCglue.c (emitRegularMap, printIvalStruct, printIvalArray,
7638         printIvalCharPtr, printIvalPtr, printIval, emitStaticSeg, emitOverlay)
7639         * src/SDCCsymt.c (newSymbol),
7640         * src/SDCC.y (struct_or_union_specifier, enum_specifier,
7641         enumerator_list),
7642         * src/SDCCval.h,
7643         * src/SDCCval.c (newiList): fixed bug #885705
7644
7645 2004-02-08  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7646
7647         * doc/sdccman.lyx: added section 3.1.4: sdcclib.
7648         * as/mcs51/lkmem.c: report the size of the stack in .mem file.
7649
7650 2004-02-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7651
7652         * device/include/c8051f120.h,
7653         * device/include/c8051f300.h,
7654         * device/include/c8051f310.h: added/updated header files for Silicon
7655         Laboratories (formerly Cygnal) CPUs. Contributed by Maarten Brock.
7656         * doc/sdccman.lyx: minor changes, recommended diff -Naur and diff -u
7657         in new section Submitting patches
7658
7659 2004-02-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7660
7661         * src/mcs51/gen.c (genNearPointerGet, genPagedPointerGet,
7662         genFarPointerGet, genCodePointerGet, genGenPointerGet,
7663         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
7664         genGenPointerSet),
7665         * src/ds390/gen.c (genNearPointerGet, genPagedPointerGet,
7666         genFarPointerGet, genCodePointerGet, genGenPointerGet,
7667         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
7668         genGenPointerSet),
7669         * src/pic16/gen.c (genNearPointerGet, genPagedPointerGet,
7670         genFarPointerGet, genCodePointerGet, genGenPointerGet,
7671         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
7672         genGenPointerSet),
7673         * src/pic/gen.c (genNearPointerGet, genPagedPointerGet,
7674         genFarPointerGet, genCodePointerGet, genGenPointerGet,
7675         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
7676         genGenPointerSet): fixed bug #892400
7677         * src/pic16/gen.c (genSkipz, AccRol): disabled functions with #if 0
7678         to eliminate build warnings.
7679         * src/SDCCast.c (processParms),
7680         * src/SDCC.y (function_declarator2, declarator2_function_attributes):
7681         fixed bug 751859
7682         * support/valdiag/valdiag.py: added GCC to the list of defines active
7683         when compiling with gcc
7684
7685 2004-02-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7686
7687         * support/Util/SDCCerr.h,
7688         * support/Util/SDCCerr.c,
7689         * src/SDCCast.c (decorateType, sizeofOp): complain when sizeof is used
7690         with an incomplete type (fixed bug #883734)
7691         * src/SDCCicode.c (geniCodeCast): fixed bug #890510
7692
7693 2004-02-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7694
7695         * src/pic16/gen.c (genCmpEq, shiftRLong): fixed declarations
7696
7697 2004-02-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7698
7699         * src/SDCCast.c (decorateType),
7700         * src/SDCCicode.c (geniCodeParms, geniCodeCall): fixed bugs in my ANSI
7701         function pointer implementation
7702         * support/regression/tests/funptrs.c: added tests to verify both forms
7703         of function pointers work correctly. Added tests to verify parameters
7704         are passed in the correct order.
7705
7706 2004-02-06  Vangelis Rokas <vrokas AT otenet.gr>
7707
7708         * device.c (regCompare): registers are sorted by ascending
7709         address and increasing size,
7710         * main.c (_pic16_finaliseOptions): removed the declaration
7711         of compiler macro MCU. Now a macro of the format pic18fxxxx
7712         will be defined from the command line
7713
7714 2004-02-06  Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
7715             patch committed by Vangelis Rokas <vrokas AT otenet.gr>
7716
7717         * pcode.c (pic16initMnemonics): fixed typo in assignment to PCOP_RLNCF
7718         PCOP_RLCF was overwritten!
7719         * gen.c (genSkip): commented out calls to pic16_emitcode,
7720         * (genCmpEQ): fixed "long" compares, only high word did get compared,
7721         * (genlshTwo),
7722         * (genRRC): added debugging info,
7723         * (shiftL2Left2Result): Fixed bug, if offr > offl. Result got
7724         overwritten while shifting,
7725         * (shiftR2Left2Result): Fixed bug, if offr < offl. Result got
7726         overwritten while shifting,
7727         * (AccLsh),
7728         * (AccRsh),
7729         * (shiftLLeftOrResult),
7730         * (shiftRLeftOrResult),
7731         * (shiftRLong),
7732         * (shiftLLong): Implemented with pic16_emitpcode
7733         * (genlshFour): Replaced pic16_aopPut with pic16_emitpcode,
7734         * (genLeftShift): Fixed bug, operand for shift by variable always
7735         was "and"ed with 0x0f,
7736         * (genLeftShiftLiteral),
7737         * (genrshTwo),
7738         * (genRightShiftLiteral): added debugging info,
7739         * (genrshFour): added comment,
7740         * (genRightShift): determined signedness from operand "left"
7741         instead of "result"
7742
7743 2004-02-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7744
7745         * src/SDCCicode.c (geniCodeParms),
7746         * src/SDCCast.c (decorateType, processParms): support for ANSI-style
7747         function pointers, fixed function pointer bugs #861242 and #861896
7748
7749 2004-01-31 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7750
7751         * device/include/c8051f000.h,
7752         * device/include/c8051f120.h,
7753         * device/include/c8051f300.h: added header files for Silicon
7754         Laboratories (formerly Cygnal) CPUs. Contributed by Maarten Brock.
7755
7756 2004-01-31 Bernhard Held <bernhard AT bernhardheld.de>
7757
7758         * src/SDCCast.c (processParams): added new type flow and restructured
7759         (gatherAutoInit): added new type flow
7760         (addCast): cosmetic changes
7761         (getLeftResultType): added new type flow for array indices, patch
7762         provided by Stas, see FR #877103
7763         (decorateType): SDCC_NEWTYPEFLOW removed, new type flow is now standard;
7764         array index patch by Stas
7765         * src/SDCCast.h: added prototype getResultTypeFromType()
7766         * src/SDCCval.h,
7767         * src/SDCCval.c (resolveIvalSym) (resolveIvalSym),
7768         * src/pic/glue.c (pic14emitStaticSeg),
7769         * src/pic16/glue.c (pic16emitStaticSeg),
7770         * src/SDCCglue.c (emitRegularMap) (emitStaticSeg): added new type flow
7771         for initialization of symbols
7772         * src/SDCCicode.c (geniCodeArray): removed warning W_ARRAY_BOUND
7773         * support/Util/SDCCerr.h:
7774         * support/Util/SDCCerr.c: replaced W_ARRAY_BOUND by W_IDX_OUT_OF_BOUNDS
7775         * .version: bumped version number to 2.3.8
7776         * device/include/Makefile.in (install),
7777         * doc/Makefile (install): changed to 'rm `find ...`' construct to
7778         avoid warnings
7779
7780 2004-01-30 Bernhard Held <bernhard AT bernhardheld.de>
7781
7782         * support/regression/tests/libmullong.c: fixed for 64 bit hosts
7783         Slade Rich fixed an optimization bug
7784         * src/pic/pcodepeep.c,
7785         * src/pic/pcoderegs.c
7786         * doc/Makefile (install): added test for directory
7787
7788 2004-01-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7789
7790         * src/mcs51/ralloc.c (getRegPtr, getRegGpr),
7791         * src/ds390/ralloc.c (getRegPtr, getRegGpr),
7792         * src/pic/ralloc.c (getRegPtr, getRegGpr),
7793         * src/pic16/ralloc.c (getRegPtr, getRegGpr),
7794         * src/z80/ralloc.c (getRegGpr): fixed bug #883361
7795         * as/mcs51/asexpr.c (term),
7796         * as/hc08/asexpr.c (term): fixed bug #887146
7797
7798 2004-01-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7799
7800         * src/z80/gen.c (genMult): handle single byte result product
7801         * src/SDCCopt.c (killDeadCode): never convert ADDRESS_OF iCode to
7802         DUMMY_READ_VOLATILE (fixed bug #886367)
7803
7804 2004-01-27 Bernhard Held <bernhard AT bernhardheld.de>
7805
7806         * support/regression/tests/libmullong.c: fixed logic, on little endian
7807         hosts we ended without a mullong_wrapper()
7808
7809 2004-01-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7810
7811         * ChangeLog: changed "@" to " AT " in hopes of reducing spam and
7812         virus/worm forged address usage.
7813
7814 2004-01-27 Bernhard Held <bernhard AT bernhardheld.de>
7815
7816         Fixed promotion, it should be done on AST level:
7817         * src/SDCCast.c (addCast): added promotion to int
7818         (decorateType): updated call to upCast()
7819         * src/SDCCicode.c (geniCodeLeftShift): removed call to
7820         usualUnaryConversions()
7821
7822 2004-01-26  Michael Hope  <michaelh AT juju.net.nz>
7823
7824         * support/regression/tests/literalop.c (mulWrapper): Added a
7825         wrapper to remove integer overflow warnings.
7826
7827         * support/regression/tests/float_trans.c: Made work on host.
7828
7829         * support/regression/ports/ucz80/spec.mk (UCZ80): Made detect the
7830         location of sz80.
7831
7832         * support/regression/generate-cases.py (main): Changed from inline
7833         to a main method.
7834
7835         * doc/Makefile (install): Changed to depth first to get rid of
7836         missing directory install warning.
7837
7838         * as/Makefile (install-doc): Made work on Mac.
7839
7840 2004-01-25 Bernhard Held <bernhard AT bernhardheld.de>
7841
7842         * src/SDCCast.c: added an additional type flow in decorateType() of
7843         opposite direction, see feature request #860006; it's enabled at runtime
7844         by setting the environment variable SDCC_NEWTYPEFLOW
7845         * src/SDCCast.h: changed prototype of decorateType()
7846         * src/SDCCglue.c (emitRegularMap): updated call of decorateType()
7847         * src/SDCCicode.c (geniCodeDivision) (geniCodeModulus): promotion from
7848         'char' to 'int' can be omitted, if both operands are 'unsigned char';
7849         see feature request #877103
7850         * src/SDCCval.c: updated call of decorateType()
7851         (valBitwise): fixed bug #882876
7852         (valMinus): added promotion
7853         (valLogicAndOr): result is unsigned
7854         (cheapestVal) (constVal): literals from 0...255 are 'unsigned char' now
7855         * src/SDCCsymt.c (computeType),
7856         * src/mcs51/gen.c (genCmpGt) (genCmpLt): literal 'unsigned char'
7857         must not cause an unsigned operation
7858         * src/pic/glue (pic14emitRegularMap),
7859         * src/pic16/glue.c (pic16emitRegularMap): updated call of decorateType()
7860
7861 2004-01-23 Bernhard Held <bernhard AT bernhardheld.de>
7862
7863         * src/pic/pcode.c (PCodeID): commented out left over debug code
7864
7865 2004-01-20 Bernhard Held <bernhard AT bernhardheld.de>
7866
7867         * support/valdiag/tests/overflow.c: added shift tests
7868         * src/pic/device.c,
7869         * src/pic/gen.c,
7870         * src/pic/gen.h,
7871         * src/pic/glue.c,
7872         * src/pic/main.c,
7873         * src/pic/pcode.c,
7874         * src/pic/pcode.h,
7875         * src/pic/pcodepeep.c,
7876         * src/pic/pcoderegs.c,
7877         * src/pic/ralloc.c,
7878         * src/pic/ralloc.h: applied patch from Slade Rich;
7879         added support for multiple code pages and multiple RAM banks on the
7880         PIC 14 port. The ASM files now no longer simply assume all the
7881         code / RAM are in the same page / bank. This means the linker can
7882         safely allocate code/RAM of separate ASM files to different pages/banks.
7883         * doc/sdccman.lyx: added Slade's tips
7884         * src/mcs51/peeph.def: fixed bug #880768
7885
7886 2004-01-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7887
7888         * src/hc08/ralloc.c (rematStr): fixed bug #879282
7889         * src/SDCCast.c (decorateType): fixed bug #880197
7890
7891 2004-01-20  Michael Hope  <michaelh AT juju.net.nz>
7892
7893         * sim/ucsim/gui.src/serio.src/main.cc: Fixed unconditional use of
7894         getopt.h.
7895
7896         * debugger/mcs51/cmd.c (getValBasic): Changed strtof to strtod as
7897         strtof is not part of C89 and isn't included with Mac OS X.
7898
7899 2004-01-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7900
7901         * src/hc08/gen.c (genPlusIncr, genUminus, genMinusDec, genCmp,
7902         shiftL2Left2Result): fixed bug #879326
7903         (genAnd, genOr, genXor): fixed bug when result was of type AOP_CRY
7904         (genMultOneByte): fixed bug in signed vs unsigned multiplication
7905         * sim/ucsim/hc08.src/inst.cc (inst_clr): added missing effective
7906         address fetch for clr instruction
7907         * device/lib/hc08/_mulint.c: created optimized assembly version
7908         * src/SDCCdflow.c (computeDataFlow): fixed bug #878209
7909
7910 2004-01-19 Bernhard Held <bernhard AT bernhardheld.de>
7911
7912         * src/SDCCicode.c (geniCodeArray): applied patch from Stas Sergeev
7913         proposed in FR #877103
7914
7915 2004-01-18 Bernhard Held <bernhard AT bernhardheld.de>
7916
7917         * src/SDCCval.c (cheapestVal): added missing checks
7918         * src/SDCCicode.c (usualBinaryConversions): fixed condition
7919         * src/SDCCicode.c (geniCodeAdd): fixed part of bug #877103
7920
7921 2004-01-16 Klaus Flittner <klaus_flittner AT gmx.de>
7922
7923         * src/ds390/gen.c (aopOp3): fixed the assignment of different dptrs to
7924         equal operands
7925
7926 2004-01-16 Vangelis Rokas <vrokas AT otenet.gr>
7927
7928         * src/SDCCmain.c (linkEdit): variable $3 of the linker command is
7929         loaded with the linker search paths (-L arguments) and the libraries
7930         to be linked with the current source (-l arguments). Changes
7931         currently will affect only the pic16 port.
7932         * src/pic16/main.c (_pic16_finaliseOptions): add to the linker
7933         include path the port specific paths and port specific libraries,
7934         * gplink command now contains the $3 argument,
7935         * src/pic16/device.h,
7936         * src/pic16/device.c,: structure PIC_device is made public and
7937         renamed to PIC16_device, the same for variable Pics which is renamed
7938         to Pics16. Updated all references to them.
7939         * src/pic16/glue.c (pic16glue): corrected bug with code
7940         initialization which bypassed the variable initializations block.
7941
7942         * device/lib/pic16/Makefile.rules: removed --penable-stack from
7943         COMPILE_FLAGS and added the --nostdinc option
7944
7945 2004-01-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7946
7947         * device/include/mc68hc908jb8.h: Register defs for another member
7948         of the hc08 family. Contributed by Bjorn Bringert - thanks!
7949
7950 2004-01-14 Vangelis Rokas <vrokas AT otenet.gr>
7951
7952         Documenting changes from previous commits.
7953         * configure.in (version 1.56),
7954         * configure: initially I've added AC_CONFIG_SUBDIRS(device/lib/pic16)
7955         when generating output files to configure the pic16 library,
7956         but now I've commented it out, since gputils aren't installed in the
7957         SF compile farm, so library won't compile
7958
7959         * device/lib/Makefile.in (version 1.56): initially I've added in
7960         target 'all' the prerequestive 'model-pic16' so it compiled the
7961         pic16 library, but now I've commented it out for the same reasons
7962         above,
7963         * added targets 'model-pic16' and 'objects-pic16' to compile the
7964         library
7965         * added target 'port-specific-objects-pic16' to handle the
7966         generated libraries and copy them into the build/ directory
7967         * added target 'clean-intermediate-pic16' to clean intermediate
7968         files into pic16 directory
7969         * in target 'installdirs' added line to create directory pic16 in
7970         the installation path
7971
7972         * device/include/Makefile.in (version 1.11): in target 'install'
7973         added lines to copy all header files to installation path,
7974         * in target 'installdirs' added line create directory for pic16
7975         headers in the installation path
7976
7977 2004-01-13 Klaus Flittner <klaus_flittner AT gmx.de>
7978
7979         * src/ds390/gen.c (genCall): fixed a double use of acc and b after
7980          a function call
7981
7982 2004-01-13 Bernhard Held <bernhard AT bernhardheld.de>
7983
7984         * configure,
7985         * device/lib/configure.in,
7986         * device/lib/configure: fixed for autoconf 2.57
7987
7988 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7989
7990         * src/z80/main.c (_parseOptions): fixed the portmode= command line
7991         option so that it actually works. Made it specific to the z80, since
7992         the gbz80 doesn't have these kinds of I/O ports.
7993
7994 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7995
7996         * device/include/z180.h,
7997         * device/lib/_memcpy.c,
7998         * device/lib/_memmove.c,
7999         * device/lib/_mulint.c,
8000         * device/lib/ser_ir.c,
8001         * device/lib/ser_ir_cts_rts.c,
8002         * device/lib/_strcmp.c,
8003         * device/lib/_strtok.c: fixed pragmas to non-deprecated form
8004         * src/z80/main.c (_process_pragma): add support for pragmas bank and
8005         portmode; added deprecation warning for bank= and protmode= forms.
8006         Also, guard against buffer overflow.
8007         * src/z80/gen.c (aopGet): generate better code for sfr banked read
8008
8009 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8010
8011         * src/hc08/main.c (_hc08_genAssemblerPreamble): fixed bug #875487. Also
8012         changed interrupt vector table generation to only emit declared vectors.
8013         * device/include/Makefile.in: added missing backslash
8014         * device/lib/pic16/Makefile.rules: add $(MODELFLAGS) to $(CFLAGS)
8015
8016 2004-01-13 Vangelis Rokas <vrokas AT otenet.gr>
8017
8018         Mainly changes to support compilation of the device libraries
8019         * src/pic16/device.c: stack is allocated via symbol and not
8020         via literal number. The symbol is placed in the corresponding
8021         position of the data ram
8022         * (pic16_dump_section): relocatable and absolute uninitialized
8023         data are now emitted in sorted order to reduce section naming,
8024         * src/pic16/ralloc.c (newReg): fixed bug with SFR's that
8025         weren't marked as being in the access bank,
8026
8027 2004-01-13 Vangelis Rokas <vrokas AT otenet.gr>
8028
8029         Added portion of GNU PIC Library under the directory
8030         device/include/pic16 and device/lib/pic16. These files
8031         contain the declarations of SFRs for the PIC18Fxx2 devices.
8032         The directory is initialized via configure from toplevel.
8033
8034 2004-01-12 Klaus Flittner <klaus_flittner AT gmx.de>
8035
8036         * src/ds390/gen.c (operandsEqu): fixed a little typo, that prevented
8037         the spilllocations to be compared correctly
8038
8039 2004-01-12 Bernhard Held <bernhard AT bernhardheld.de>
8040
8041         * src/SDCCast.c (decorateType): fixed bug introduced today
8042
8043 2004-01-12  Borut Razem <borut.razem AT siol.net>
8044
8045         * src/SDCC.lex, support/Util/SDCCerr.h, support/Util/SDCCerr.c,
8046         doc/sdccman.lyx: upper case pragmas are deprecated
8047
8048 2004-01-12 Bernhard Held <bernhard AT bernhardheld.de>
8049
8050         * src/SDCCast.c (decorateType): replacing 'ul > 0' by  '!ul' results
8051         in simpler and even better code
8052
8053 2004-01-11 Bernhard Held <bernhard AT bernhardheld.de>
8054
8055         * src/SDCCicode.c (operandOperation): fixed bug #874819
8056         * src/SDCCast.c (decorateType): fixed
8057         char foo (unsigned long ul) { return ul > 0; }
8058
8059 2004-01-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8060
8061         * doc/sdccman.lyx: Moved and added some sections, small changes
8062         all over. Telling LaTeX to be less strict with word spacing
8063         to better keep the right margin. Changed some notes about
8064         maintainance of the ports in section 3.2.1 - is it OK like this?
8065
8066 2004-01-11 Vangelis Rokas <vrokas AT otenet.gr>
8067
8068         SDCC source changes:
8069         * src/SDCCopt.c (cntToFcall, cnvToFloatCast, cnvFromFloatCast,
8070         convilong): modified to inform the pic16 port that builtin functions
8071         are external
8072
8073         PIC16 PORT specific changes:
8074         * src/pic16/device.c pic16_dump_equates() added,
8075         processor registers declared internally by the port are emitted in
8076         the translation as equates,
8077         * src/pic16/gen.c: inline code is passed unprocessed to the
8078         translation,
8079         * (pic16_popGetLit2): fnuction modified to take second operand as
8080         pCodeOp pointer and not as literal,
8081         * (popRegFromIdx): prefixed with pic16_,
8082         * (pic16_popCombine2): modified to receive already allocated pCode
8083         operands,
8084         * (pic16_pushpCodeOpReg, pic16_poppCodeOpReg): added
8085         * (genFunction): initializes local stack frame and pushes on stack
8086         all the registers used by this function,
8087         * (genEndFunction): restores all registers from stack and restores
8088         stack frame,
8089         * src/pic16/glue.c (pic16emitRegularMap): various changes and
8090         improvements,
8091         * (pic16glue): changed the program startup sequence,
8092         * added new dbName code 'A' for functions placed in absolute section
8093         * src/pic16/main.c: added function attribute _naked,
8094         * added pragma 'code' to place a fnuction at an absolute address,
8095         * added command line arguments --debug-ralloc and --pcode-verbose,
8096         * (_pic16_finiliseOptions): options.all_callee_saves is set by default
8097         * src/pic16/pcode.c (pic16_pBlockConvert2Absolute) added,
8098         * (pic16_newpCodeOpLit2): modified to take the second operand as
8099         pCodeOp pointer,
8100         * (pic16_printpBlock): modified to emit each function in a separate
8101         section,
8102         * (pic16_get_op): modified to use the gpasm modifiers LOW,HIGH and
8103         UPPER for immediate operands,
8104         * src/pic16/pcodepeeph.c: added peephole support for the LFSR
8105         instruction,
8106         * src/pic16/peeph.def: all peepholes with movff are commented out,
8107         because there is a problem in the pcode peep optimizer,
8108         * src/pic16/ralloc.c: the register allocator can now reuse local
8109         function symbols for another function. This saves register usage.
8110         * src/pic16/ralloc.h: added flag isLocal in structure regs,
8111
8112         Added file src/pic16/NOTES with information about program writing on
8113         the current port version.
8114
8115 2004-01-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8116
8117         * src/mcs51/peephole.def: added peepholes 177.c,d (redundant moves)
8118         and peephole 252 (array access)
8119
8120 2004-01-09  Borut Razem <borut.razem AT siol.net>
8121
8122         * src/SDCCmain.c : fixed #872250: -l command line defined library
8123           files are scanned before standard library files
8124
8125 2004-01-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8126
8127         * src/SDCCast.c (decorateType): fixed bug #874046
8128
8129 2004-01-09  Borut Razem <borut.razem AT siol.net>
8130
8131         * support/scripts/sdcc.nsi: remove previous installation
8132
8133 2004-01-09 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8134
8135         * src/SDCCglue.c (createInterruptVect): don't append 7(5) padding
8136         bytes for last interrupt vector (mcs51)
8137         * sdcc.spec: fixed typo
8138
8139 2004-01-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8140
8141         * src/mcs51/gen.c (genFunction, genEndFunction, genReceive, getTempRegs,
8142         gen51Code): more efficient parameter receive for --model-large
8143         ("bug" #845294)
8144
8145 2004-01-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8146
8147         * src/ds390/main.c,
8148         * src/z80/main.c: added missed needLinkerScript flags (more than
8149         one port structure defined in these file)
8150         * src/ds390/gen.c (aopForSym, aopOp, operandsEqu, aopOp3): fixed
8151         bug #795325
8152
8153 2004-01-08 Vangelis Rokas <vrokas AT otenet.gr>
8154
8155         * src/SDCCmain.c: removed various references to DEFAULT_PORT
8156         * src/port.h: added flag needLinkerScript in port->linker
8157         structure to inform whether to create a .lnk file or not,
8158         * src/avr/main.c,
8159         * src/ds390/main.c,
8160         * src/hc08/main.c,
8161         * src/mcs51/main.c,
8162         * src/pic/main.c,
8163         * src/pic16/main.c,
8164         * src/xa51/main.c,
8165         * src/z80/main.c: changed appropriately to configure
8166         needLinkerScript flag
8167         * src/pic/gen.c,
8168         * src/pic16/gen.c (genAddrOf): fixed bug #863624
8169         * src/pic/glue.c: added variable udata_section_name to
8170         override default uninitialized data segment definition for
8171         devices only with SHAREBANK memory (reported from Erik Epetrich)
8172         * (pic14emitOverlay): modified to emit a commented overlay segment
8173         directive when no overlay data exist
8174         * (picglue): modified to emit uninitialized data segment
8175         according to udata_section_name
8176         * src/pic/main.c (_pic14_parseOptions): added command line
8177         options --udata-section-name=[name] to override default
8178         udata definition name
8179         * modified _linkCmd and _asmCmd to include compiler passed
8180         arguments via -W option
8181         * src/pic16/main.c: added $l in _asmCmd, changed extension for
8182         object file from '.rel' to '.o' in port->linker structure,
8183         changed size of fptr from 2 to 3 in port structure
8184
8185 2004-01-07  Borut Razem <borut.razem AT siol.net>
8186
8187         * support/scripts/sdcc.nsi: update PATH
8188         * support/scripts/sdcc.ico: craeted
8189
8190 2004-01-07 Bernhard Held <bernhard AT bernhardheld.de>
8191
8192         * device/include/Makefile.in: fix install
8193         * doc/Makefile: fix install
8194
8195 2004-01-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8196
8197         * src/SDCCsymt.c (processFuncArgs): fixed superflous allocation noted
8198         in bug #860505
8199         * src/SDCCmem.c (printAllocInfoSeg, printAllocInfo): minor changes to
8200         how the function variable allocation summary is displayed; also
8201         include information about variables allocated to the overlay
8202         segment
8203
8204 2004-01-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8205
8206         * as/mcs51/lkmain.c: Help about -Y option
8207         * as/mcs51/lkarea.c: Fixed gcc warnings
8208
8209 2004-01-06 Bernhard Held <bernhard AT bernhardheld.de>
8210
8211         * src/SDCCval.c (valShift): changed from 16 to 32 bit shift count,
8212         fixed warning
8213         * support/valdiag/tests/overflow.c: added
8214         * src/SDCCast.c (decorateType),
8215         * src/SDCCicode.c (geniCodeLeftShift): added promotion to int for
8216         LEFT_OP (left shift)
8217
8218 2004-01-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8219
8220         * as/mcs51/lkmain.c: stack must be after data when option -Y is not used
8221         (default behaviour).
8222
8223 2004-01-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8224
8225         A python script to validate compiler diagnostic messages. It can be
8226         used to verify that sdcc complains about bad c source code and
8227         gives a good location of the error.
8228         * support/valdiag/Makefile,
8229         * support/valdiag/valdiag.py,
8230         * support/valdiag/tests/*
8231
8232 2004-01-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8233
8234         * src/SDCC.y (enum_specifier, enumerator_list, opt_assign_expr),
8235         * src/SDCCsymt.c (newEnumType),
8236         * src/SDCCsymt.h
8237         * support/Util/SDCCerr.c,
8238         * support/Util/SDCCerr.h: fixed bug #871258 and some other unreported
8239         enum related bugs.
8240         * support/regression/tests/enum.c: added test for enum values that
8241         require at least 2 bytes of storage.
8242
8243 2004-01-06 Vangelis Rokas <vrokas AT otenet.gr>
8244
8245         * src/common.h: added ifndef/define/endif macros
8246         around the header file.
8247         Bug reported from Jesus Calvino-Fraga
8248
8249 2004-01-06 Bernhard Held <bernhard AT bernhardheld.de>
8250
8251         * sdcc.spec: updated
8252         * device/include/Makefile.in: don't install CVS directories
8253         * device/lib/Makefile.in: added removal of CVS directories after install
8254         * doc/Makefile: fixed install, added local_icons
8255         * sim/ucsim/gui.src/Makefile.in: fixed an old typo
8256         * src/mcs51/gen.c (genRightShift): fixed bug #870788
8257         * src/ds390/gen.c (genRightShift): fixed bug #870788
8258         * src/SDCCast.c (decorateType): fixed bug #870781
8259
8260 2004-01-06 Vangelis Rokas <vrokas AT otenet.gr>
8261
8262         PIC16 port related changes:
8263         * device.c: removed pic16_finalMapping and pic16_finalMappingSize,
8264         added variable stackPos,
8265
8266         * gen.c: genCall, assignResultValue: added support for
8267         pushing/retrieving function parameters to/from stack,
8268         genFunction,genEndFunction: setup stack frame for the
8269         generated function,
8270         genAddrOf: will be changed according to bug 863624
8271
8272         * added files genutils.c and genutils.h which contain gen*
8273         debugged and optimised functions extracted from gen.c
8274
8275         * glue.c: added variable 'externs' which holds extern symbols,
8276         pic16emitRegularMap: is modified to properly handle relocatable
8277          symbols under the new scheme,
8278         pic16createInterruptVect: is modified
8279         pic16printPublics: is modified to emit 'global' assembler directives,
8280         added pic16_printExterns to print extern symbols,
8281         pic16glue: initializes stack/frame pointer in the beginning of
8282         the assembly output. Temporary hack, will be corrected later,
8283         because gplink yet does not support stack and SDCC does not
8284         yet support a type of crt0.o object to create the final binary.
8285
8286         * Removed many lines that contain 8051 legacy code.
8287         * The code is finally placed under a 'code' directive.
8288         * Added port specific options.
8289
8290         * _process_pragma: simplified since now we do not need *special*
8291         include file to define SFR registers. But a separate header
8292         will be needed. This will be developed later.
8293         * _pic16_parseOptions: added, parses port specific options:
8294         --pgen-banksel, --obanksel=, --pomit-config-words, --pomit-ivt,
8295         --pleave-reset-vector, --penable-stack, --pstack-model, --debug-xtra
8296         --preplace-udata-with=
8297
8298         * _pic16_setDefaultOptions: modified to initialize section names,
8299         but hack is temporarly out of order since it needs improvement.
8300         * _pic16_genAssemblerPreamble: configuration words are emitted by
8301         their address instead of their name. This part is incomplete and
8302         supports only the 18Fxx2 devices. Other devices will emit an error
8303         during assembly since they do not contain the same set of config
8304         registers
8305         * _pic16_genIVT: is modified,
8306
8307         * pcode.c: added definitions for some hardware registers that are needed
8308         for stack support
8309         * added flag is2LitOp and variable pci_magic in pCodeInstruction.
8310         All PCI entries are updated. Now LFSR is supported.
8311         * Removed pic16_pciTRIS is mentioned by mdubuc in source
8312         * added pic16_newpCodeOpLit2 to support instructions with
8313         two literal arguments
8314         * pic16_pCode2str: corrected code that emits assembler instructions
8315         with two literal operands and those that have an access bit modifier
8316         * genericPrint: now PC_ASMDIR pCodes, can emit a label if it exists,
8317         this fixes a bug which caused some labels to be lost, when an
8318         assembler directive was added, i.e. banksel,
8319         * pic16_FixRegisterBanking: improved logic that causes the insertion
8320         of bank switching,
8321         * InlineFunction: functions that are called once, are not any more
8322         inlined. This can be a port option in the future,
8323
8324         * pcode.h: added pCodeOpLit2 and added variable label in pCodeAsmDir
8325
8326         * ralloc.c: added pic16_rel_udata and pic16_fix_udata variables which
8327         hold the corresponding uninitialized symbols,
8328         * pic16_allocProcessorRegister: registers have explicit marked the
8329         accessBank field,
8330         * pic16_allocInternalRegister: registers are explicit marked as
8331         not used,
8332         * pic16_writeUsedRegs: pic16_dynDirectBitRegs was missing from the
8333         processing list, so bit registers were lost,
8334         *
8335
8336         * ralloc.h: added field 'accessBank' and original symbol operand
8337         in register definition,
8338         * removed the field isMapped from register definition,
8339
8340         ** Several functions have been removed from various sources:
8341         BanksUsedFlow2,BanksUsedFlow,FixBankFlow,InstructionRegBank,
8342         pic16_addMemRange,pic16_isREGinBank,pic16_dump_map,pic16_dump_cblock
8343         isSFR,validAddress,mapRegister,assignRegister,pic16_assignFixedRegisters
8344         pic16_assignRelocatableRegisters
8345
8346         ** others have been introduced:
8347         pic16_areRegsSame,pic16_dump_section,checkAddReg,pic16_groupRegistersInSection
8348         pic16_popGetLit2,pic16_popCombine2,pushw,pushaop
8349
8350 2004-01-05 Vangelis Rokas <vrokas AT otenet.gr>
8351
8352         * support/scripts/inc2h.pl: changed definition of BIT_AT
8353         to emit 'sbit at' instead of 'bit at'. This was a request.
8354
8355         PIC16 port related preliminary changes:
8356         * gen.c: prefixed function popRegFromString with
8357         pic16_ and all references to it corrected
8358         * pcode.c: all pic16_pc_* hardware registers prefixed
8359         with underscore (_),
8360         pic16_popCopyGPR2Bit(): function sets register wasUsed=1
8361         * ralloc.c: newReg(): when register is REG_SFR then
8362         set address to rIdx,
8363         pic16_allocProcessorRegister(): marks register wasUsed=0
8364         pic16_writeUsedRegs(): added a call to assign processor
8365         registers via pic16_assignFixedRegisters
8366
8367 2004-01-04  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8368
8369         * as/mcs51/aslink.h, as/mcs51/lkarea.c, as/mcs51/lkdata.c,
8370         as/mcs51/lkmain.c, as/mcs51/lkmem.c: 8051 linker can now pack
8371         variables in unused register banks.  Also the SSEG is placed
8372         wherever there is enough space for it, and IDATA can be anywhere
8373         in internal RAM.  For now compile using -Wl-Y[stack_size].
8374         The mem file is different for this option as well, since it
8375         makes no sense of talking about DSEG lenght.
8376
8377 2004-01-02 Vangelis Rokas <vrokas AT otenet.gr>
8378
8379         * src/SDCClrange.c: fixed bug 869095 that caused segfault
8380         in certain cases, e.g. when ROM assignment, patch provided
8381         from Albert den Haan.
8382
8383 2004-01-01 Bernhard Held <bernhard AT bernhardheld.de>
8384
8385         Many signedness and type propagation fixes:
8386         * src/SDCCicode.c: made geniCodeCast() static
8387         replaced SPEC_ by IS_ (cosmetic)
8388         (operandOperation): fixed div and mod operation
8389         (usualBinaryConversions): added support for promotion of char
8390         (geniCodeMultiply): replaced (unsigned long) by (TYPE_UDWORD)
8391         (geniCodeDivision): replaced (unsigned long) by (TYPE_UDWORD)
8392         (geniCodeAdd): an array index will stay unsigned, even if promoted
8393         from char to int
8394         (geniCodeArray): ditto
8395         * src/SDCCicode.h: made geniCodeCast() static: removed prototype
8396         * src/SDCCsymt.c (computeType): added more support for char;
8397         promotion of char is selectable by promoteCharToInt, fixed signedness
8398         for all cases
8399         (powof2): replaced (unsigned long) by (TYPE_UDWORD)
8400         * src/SDCCsymt.h (powof2): replaced (unsigned long) by (TYPE_UDWORD)
8401         * src/SDCCval (val*): replaced signedness calculation by
8402         computeType()
8403         rearranged if-branches (cosmetic)
8404         (valShift): added warning W_SHIFT_CHANGED
8405         (valCompare): fixed problem with different types
8406         * src/hc08/rallo.c (leastUsedLR): fixed gcc 3.3 warning
8407         * support/regression/tests/literalop.c: added many cases
8408         * support/regression/tests/ast_constant_folding.c: changed finally to
8409         'unsigned int'
8410         * .version: new year, new version: 2.3.7
8411         * src/SDCCmain.c (main): applied patch #866468
8412         * debugger/mcs51/sdcdb.c (parseCmdLine): added -k for ucsim, patch
8413         provided by Scott Bronson
8414         * doc/sdccman.lyx: updated documentation for sdcdb
8415         updated and added chapter tips
8416
8417 2004-01-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8418
8419         * src/SDCCsymt.h: missing from yesterday's commits
8420
8421 2003-12-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8422
8423         * src/SDCC.y (struct_or_union_specifier),
8424         * support/Util/SDCCerr.c,
8425         * support/Util/SDCCerr.h: verify that struct & union tags are used
8426         as declared.
8427
8428 2003-12-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8429
8430         * src/SDCCglobl.h: missing from yesterday's commits
8431
8432 2003-12-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8433
8434         * src/SDCC.y (external_definition, type_specifier2, sfr_reg_bit,
8435         sft_attributes, struct_declaration, parameter_declaration,
8436         type_name, start_block, declaration_list),
8437         * src/SDCC.lex (check_type): support redefinition of typedef names
8438
8439 2003-12-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8440
8441         * src/mcs51/gen.c (genPlus): added special handling for 256 byte
8442         aligned xdata arrays. Erik helped me with the if clause.
8443
8444 2003-12-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8445
8446         * device/lib/ds390/tinibios.c (CpuSpeed): suppress unreachable code
8447         warning
8448
8449 2003-12-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8450
8451         * src/SDCCast.h,
8452         * src/SDCCast.c (newAst_),
8453         * src/SDCCicode.h,
8454         * src/SDCCicode.c (ast2iCode, newiCode),
8455         * src/SDCCglobl.h,
8456         * src/SDCC.y (logical_and_expr, logical_or_expr, conditional_expr,
8457         expr, statement, expression_statement, selection_statement,
8458         iteration_statement, expr_opt, jump_statement): foundation for tracking
8459         sequence points
8460         * src/SDCCopt.c (killDeadCode): fixed bug #861580 (needs the sequence
8461         point code too)
8462
8463 2003-12-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8464
8465         * support/Util/SDCCerr.c,
8466         * src/SDCCast.h,
8467         * src/SDCCast.c (createCase, createDefault, decorateType),
8468         * src/SDCClabel.c (labelUnreach),
8469         * src/SDCC.y (labeled_statement, jump_statement): More improvements
8470         to error messages.
8471         * support/Util/SDCCerr.c (werrorfl): fixed a non-standard declaration
8472         (with thanks to Stas Sergeev)
8473         * device/include/time.h,
8474         * device/lib/time.c (CheckTime): suppress unreachable code warning
8475
8476 2003-12-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8477
8478         * src/SDCCast.c (createIvalCharPtr),
8479         * src/SDCCglue.c (printChar): fixed bug #862241 (an error in my fix for
8480         bug #753752)
8481         * support/regression/tests/nullstring.c: tests for these two bugs
8482
8483 2003-12-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8484
8485         * support/Util/SDCCerr.h,
8486         * support/Util/SDCCerr.c (E_NOT_ALLOWED),
8487         * src/SDCC.y (struct_declaration, struct_or_union_specifier): complain
8488         about storage class and 'at' used inside struct or union
8489         * src/SDCCBBlock.c (iCodeFromeBBlock),
8490         * src/SDCCcse.c (ifxOptimize),
8491         * src/SDCCglue.c (emitRegularMap, initPointer, printIvalStruct,
8492         printIvalArray, printiValFuncPtr, printIvalCharPtr, printIvalPtr,
8493         printIval, emitStaticSeg, emitOverlay),
8494         * src/SDCClabel.c (deleteIfx),
8495         * src/SDCCopt.c (replaceRegEqv, eBBlockFromiCode),
8496         * src/SDCCast.c (resolveSymbols, createIvalStruct, createIvalArray,
8497         gatherAutoInit, processParms),
8498         * support/Util/SDCCerr.h,
8499         * support/Util/SDCCerr.c (werrorfl): Support for better error location
8500         reporting for post-parse errors.
8501
8502 2003-12-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8503
8504         * src/SDCCval.c (valPlus, valMinus, valShift): fixed some problems with
8505         implicit casts via union; they don't work on big endian systems
8506         (possible fix for bug #861138)
8507
8508 2003-12-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8509
8510         (committed by Erik Petrich <epetrich AT ivorytower.norman.ok.us> on Frieder's behalf)
8511         * src/mcs51/main.c: fixed the fix for bug #737001
8512
8513 2003-12-15  Borut Razem <borut.razem AT siol.net>
8514
8515         * support/scripts/sdcc.nsi: updated for NSIS 2.0 beta 4
8516
8517 2003-12-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8518
8519         * support/makebin/makebin.c: put output in binary mode
8520
8521 2003-12-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8522
8523         * src/mcs51/main.c: fixed bug #737001 for the mcs51. SDCC clears
8524         xdata and data memory on startup. Set the environment variable
8525         SDCC_NOGENRAMCLEAR to disable this.
8526         * src/mcs51/peephole.def,
8527         * src/ds390/peephole.def: using the atomic test and clear instruction jbc
8528         (allows non-interrupt and interrupt code to safely compete for a resource
8529         without the non-interrupt code having to disable interrupts)
8530
8531 2003-12-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8532
8533         * src/SDCCicode.c (geniCodeAdd),
8534         * src/SDCCast.c (decorateType): fixed bug #857753 (need to be careful
8535         with valFromType if type might be a pointer and host is big endian).
8536         * src/SDCCast.c (decorateType): unary plus compatible with all arithmetic
8537         types, not just integer types.
8538         * src/SDCCsymt.c (addSymChain): clarified error message when symbol is
8539         multiply defined with mismatching "at" address.
8540
8541 2003-12-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8542
8543         * src/ds390/main.c (PORT tininative_port): fixed bug #858416
8544         * src/SDCCglue.c (printChar, printIvalChar, emitStaticSeg),
8545         * src/SDCCast.c (createIvalCharPtr, stringToSymbol): handle strings
8546         with embedded nulls (fixed bug #753752)
8547
8548 2003-12-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8549
8550         * src/mcs51/main.c(_mcs51_genRAMCLEAR): using r0 instead of r1/r2.
8551         Apparently this did not see much testing (endless loop)
8552
8553 2003-12-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8554
8555         * src/z80/ralloc.c: set DISABLE_PACK_HL = 1 as a temporary fix to bug #855165
8556
8557 2003-12-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8558
8559         * src/SDCCdebug.c (outputDebugSymbols, outputDebugStackSymbols, dumpSymInfo):
8560         gracefully handle NULL memmap pointers
8561
8562 2003-12-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8563
8564         * src/SDCCopt.c (killDeadCode): change iCode type to DUMMY_READ_VOLATILE
8565         instead of deleting the iCode when an operand is volatile
8566         * src/z80/gen.c (genDummyRead),
8567         * src/mcs51/gen.c (genDummyRead),
8568         * src/ds390/gen.c (genDummyRead),
8569         * src/hc08/gen.c (genDummyRead): handle operands in IC_LEFT and/or IC_RIGHT,
8570         not just IC_RIGHT
8571         * src/SDCCicode.c (geniCodeCall): fixed bug #851607
8572         * src/SDCC.y: fixed bug #850420
8573
8574 2003-12-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8575
8576         Applied z80 i/o port patch from Peter Townson and fixed some operators
8577         to better handle operands in A register.
8578         * device/include/z180.h
8579         * src/SDCC.y
8580         * src/SDCCglue.c
8581         * src/z80/gen.c
8582         * src/z80/gen.h
8583         * src/z80/main.c
8584         * src/z80/peeph-z80.def
8585         * src/z80/peeph.def
8586         * src/z80/z80.h
8587
8588 2003-12-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8589
8590         * src/SDCCsymt.c (addSymChain, compareTypeExact): fixed bug #838241 again
8591
8592 2003-12-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8593
8594         * device/lib/hc08/_mullong.c: Removed extra #endif
8595
8596 2003-12-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8597
8598         * sim/ucsim/hc08.src/inst.cc,
8599         * sim/ucsim/hc08.src/hc08mac.h: fixed some problems with CC flag bits and
8600         carries from x to h
8601         * src/hc08/gen.c (aopAdrStr): fixed problem with 16 bit immediate
8602         * src/hc08/gen.c (XAccRsh): fixed problem with right shift
8603         * device/include/stdarg.h: fixed varargs for hc08
8604         * device/lib/Makefile.in,
8605         * device/lib/hc08/Makefile,
8606         * device/lib/hc08/_mulint.c,
8607         * device/lib/hc08/_mullong.c: fixed some endian problems
8608
8609 2003-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8610
8611         * sdcc/src/mcs51/gen.c (genMultOneByte): help peephole 105
8612         * sdcc/src/mcs51/peeph.def: added peephole 186.e array access in code space
8613         * device/lib/_gptrget.c,
8614         * device/lib/_gptrput.c: P2 not used any more (related to #850747, #785979)
8615
8616 2003-11-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8617
8618         * src/SDCClrange.c (findNextUseSym, rlivePoint): fixed bug #849795
8619         * src/SDCCast.c (astErrors): fixed bug #846007
8620         * src/SDCCsymt.c (checkFunction): fixed follow-up bug on bug #846007
8621
8622 2003-11-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8623
8624         * src/SDCCast.c (decorateType): disabled a transformation I added in
8625         revision 1.188 (access to fields of a structure at an absolute address);
8626         it breaks with bitfields, extern declarations, and gcse analysis.
8627         * src/SDCCopt.c (isLocalWithoutDef): if ADDRESS_OF applied to a symbol, it
8628         could be assigned through a pointer, so don't complain.
8629         * src/SDCCast.c (astErrors),
8630         * src/SDCCast.h,
8631         * src/SDCCglue.c (emitRegularMap): fixed bug #847813
8632
8633 2003-11-26 Vangelis Rokas <vrokas AT otenet.gr>
8634
8635         * src/pic16/main.c (_pic16_genIVT): fixed interrupt vector table
8636         * src/pic16/main.c (_pic16_genAssemblerPreamble): re-enabled the
8637         output of __config directives, since gpasm now supports them
8638         * src/pic16/main.c (_pic16_finaliseOptions): define MCU
8639         pre-processor macro, i.e. -DMCU=p18f452
8640         * src/pic16/ralloc.c: renamed packRegisters to pic16_packRegisters,
8641         and modified to handle 'cast' icode similarly to '=' icode
8642         * src/pic16/device.h (typedef struct PIC_device): added field
8643         'extMIface' to indicate that chip has external memory interface
8644         * src/pic16/device.c: added chips 18F248, 18F258, 18F448, 18F458,
8645         18F6520, 18F6620, 18F6680, 18F6720, 18F8520, 18F8620, 18F8680,
8646         18F8720
8647
8648 2003-11-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8649
8650         * src/SDCC.y (pointer): fixed bug #846006
8651         * support/Util/SDCCerr.c: made W_PTR_TYPE_INVALID message clearer
8652         * src/SDCCast.c (decorateType): fixed bug #846009
8653         * src/ds390/peeph.def,
8654         * src/ds390/gen.c (genAnd, genOr),
8655         * src/mcs51/peeph.def,
8656         * src/mcs51/gen.c (genAnd, genOr): fixed bug #846777
8657
8658 2003-11-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8659
8660         Fixed several common-sub-expression bugs (#772861, #768380, & #755323)
8661         * src/SDCCdflow.c
8662         * src/SDCCcse.c
8663         * src/SDCCcse.h
8664         * src/SDCCBBlock.h
8665         * src/SDCCBBlock.c
8666
8667 2003-11-23 Klaus Flittner <klaus_flittner AT gmx.de>
8668
8669         fixed bug #845089
8670         * src/SDCCbitv.h,
8671         * src/SDCCbitv.c: added function to free a bitvector
8672         * src/SDCClrange.h,
8673         * src/SDCClrange.c: added function to recompute the liveranges
8674         * src/avr/ralloc.c,
8675         * src/ds390/ralloc.c,
8676         * src/hc08/ralloc.c,
8677         * src/mcs51/ralloc.c,
8678         * src/pic/ralloc.c,
8679         * src/pic16/ralloc.c,
8680         * src/xa51/ralloc.c,
8681         * src/z80/ralloc.c: recompute the liveranges after register packing
8682
8683 2003-11-21 Klaus Flittner <klaus_flittner AT gmx.de>
8684
8685         * src/SDCCloop.c (newInduction): fixed bug #845630
8686
8687 2003-11-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8688
8689         * src/SDCCsymt.c (compareTypesExact): disabled debugging output
8690         inadvertantly left behind from my 2003-11-12 change
8691
8692 2003-11-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8693
8694         Updated headers I neglected to commit yesterday.
8695         * src/SDCClrange.h,
8696         * src/SDCCicode.h
8697
8698 2003-11-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8699
8700         * src/SDCCcse.c (algebraicOpts): fixed bug #773153
8701         * src/SDCClrange.c (rlivePoint): need to mark IC_RESULT used if POINTER_SET op
8702         * src/SDCCopt.c (eBBlockFromiCode),
8703         * src/SDCClrange.c (hashiCodeKeys, sequenceiCode, computeLiveRanges): seperated
8704         the creation of the key hash table from the sequencing so it can be used
8705         earlier (for some GCSE bug fixes still pending)
8706
8707 2003-11-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8708
8709         * src/mcs51/gen.c (genPlus): generate shortcut for adding 0xab00
8710         * support/regression/tests/addsub.c: testing genPlus shortcut
8711
8712 2003-11-15  Borut Razem <borut.razem AT siol.net>
8713
8714         * src/SDCCmain.c: fixed bug #841645: -MM command line option passed to sdcpp
8715
8716 2003-11-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8717
8718         * src/SDCCcse.c (cseBBlock): fixed bug #527779
8719         * src/SDCCcse.c (deleteGetPointers): rewrote so that the set
8720         ordering is immaterial.
8721         * src/SDCCdflow.c (mergeInExprs): fixed bug #587536
8722
8723 2003-11-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8724
8725         * src/SDCCicode.c (geniCodeAddressOf): fixed part of bug #840381
8726         * src/SDCCopt.c (replaceRegEqv, isLocalWithoutDef): fixed other part
8727         (SIGSEV) of bug #840381
8728         * src/SDCCmain.c (linkEdit, assemble): fixed bug #841606 (don't
8729         unlink new file before rename if new and old filenames are the same)
8730
8731 2003-11-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8732
8733         * src/mcs51/main.c: started fixing bug #737001 (SDCC not clearing
8734         uninitialized variables) for the mcs51. Set environment variable
8735         SDCC_GENRAMCLEAR to test.
8736         xdata initialization slightly shorter
8737
8738 2003-11-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8739
8740         * src/SDCCsymt.h,
8741         * src/SDCCsymt.c (addSymTypeChain, compareTypesExact): fixed bugs
8742         #838241 & 780691 (basicly the same bug)
8743         * src/SDCCBBlock.c (iCode2eBBlock): fixed bug #840148
8744         * src/SDCCBBlock.c (iCodeFromeBBlock): fixed bug #840162
8745
8746 2003-11-11 Bernhard Held <bernhard AT bernhardheld.de>
8747
8748         * src/SDCCmain.c (linkEdit): "fix" #834252
8749
8750 2003-11-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8751
8752         * src/SDCCast.c (removePostIncDecOps, removePreIncDecOps),
8753         * src/SDCCast.h,
8754         * src/SDCC.y: fixed bug #819403
8755
8756 2003-11-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8757
8758         * support/regression/fwk/lib/testfwk.c: printn is recursive and thus needs
8759         the reentrant attribute.
8760         * src/hc08/gen.c (genPackBits): added missing stack readjustment
8761         * sim/ucsim/hc08.src/inst.cc (inst_mov): fixed bugs with mov instruction
8762         simulation
8763         * src/SDCCast.c (decorateType): fixed bug with storage class not being
8764         updated during pointer dereference; f.e. ~(((char *)1)*) was being
8765         erroneously reduced to a literal.
8766         * src/hc08/ralloc.c (packRegisters, rematStr),
8767         * src/hc08/gen.c (aopForRemat): allow literals to be rematerialized in
8768         some cases
8769
8770 2003-11-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8771
8772         * src/mcs51/main.c: fixed bug #838385. Thanks to Josef Pavlik for finding and fixing
8773         * doc/sdccman.lyx: changed from 'article' to 'book'
8774         * doc/Makefile: readded test_suite_spec and cdbfileformat
8775
8776 2003-11-08 Bernhard Held <bernhard AT bernhardheld.de>
8777
8778         * device/include/stdlib.h: include malloc.h to comply with ANSI
8779         * support/regression/tests/malloc.c: include stdlib.h instead of malloc.h
8780
8781 2003-11-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8782
8783         * doc/Makefile: sdccman.pdf should build with correct references (more info in commit msg)
8784         * doc/clean.mk: also remove *.out files
8785         * doc/sdccman.lyx: some additions, larger top/bottom margins
8786
8787 2003-11-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8788
8789         * src/SDCC.y: fixed bug #837365
8790         * support/regression/tests/bitopcse.c
8791         * src/hc08/gen.c (genPointerGet): Don't assume pointer operand is
8792         a symbol (might be valop instead)
8793         * device/lib/Makefile.in: added errno.c to HC08SOURCES
8794         * device/lib/clean.mk: added hc08 to the cleaning list
8795
8796 2003-11-04  Borut Razem <borut.razem AT siol.net>
8797
8798         * configure, configure.in, sdcc_vc_in.h, sdcconf_in.h: reverted changes,
8799           made 2003-11-04
8800         * support/Util/NewAlloc.c, as/hc08/lklibr.c, as/mcs51/lklibr.c,
8801           as/z80/aslist.c, as/z80/assym.c: removed inclusion of nonstandard malloc.h;
8802           malloc is declared in standard stdlib.h
8803
8804 2003-11-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8805
8806         * device/lib/hc08/Makefile: need to clean .rel not .o files
8807         * src/hc08/gen.c (genDjnz): can't use djnz with extended addressing mode
8808
8809 2003-11-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8810
8811         * src/port.h,
8812         * src/hc08/main.c,
8813         * src/mcs51/main.c,
8814         * src/ds390/main.c,
8815         * src/z80/main.c,
8816         * src/avr/main.c,
8817         * src/pic/main.c,
8818         * src/pic16/main.c,
8819         * src/xa51/main.c: added hasExtBitOp & oclsExpense functions to ports
8820         * src/SDCCicode.c: changed several IS_FARSPACE tests to isOclsExpensive
8821         tests (which uses the port's oclsExpense function)
8822         * src/SDCC.y,
8823         * src/SDCCast.c,
8824         * src/SDCCicode.c,
8825         * src/hc08/gen.c,
8826         * src/ds390/gen.c,
8827         * src/mcs51/gen.c: added support for the SWAP iCode (RFE #834167)
8828
8829 2003-11-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8830
8831         * src/SDCCcse.c (ifxOptimize),
8832         * src/SDCClabel.c (labelIfx, deleteIfx): When the condition to
8833         an IFX iCode is volatile, convert to DUMMY_READ_VOLATILE instead
8834         deleting the IFX iCode.
8835         * src/hc08/ralloc.c: reduced unneeded slocs
8836         * src/hc08/gen.c: fixed bug in asmopToBoolean
8837
8838 2003-11-04  Borut Razem <borut.razem AT siol.net>
8839
8840         * configure, configure.in, sdcc_vc_in.h, sdcconf_in.h,
8841           support/Util/NewAlloc.c, as/hc08/lklibr.c, as/mcs51/lklibr.c,
8842           as/z80/aslist.c, as/z80/assym.c: decision to include malloc.h
8843           transferred to configure
8844
8845 2003-11-03 Bernhard Held <bernhard AT bernhardheld.de>
8846
8847         Use headers defined in the C[++] standards:
8848         * sim/ucsim/gui.src/serio.src/fileio.cc
8849         * sim/ucsim/gui.src/serio.src/frontend.cc
8850         * sim/ucsim/gui.src/serio.src/main.cc
8851         * sim/ucsim/gui.src/serio.src/posix_signal.cc
8852         * support/Util/NewAlloc.c
8853         * as/hc08/lklibr.c
8854         * as/mcs51/lklibr.c
8855         * as/z80/aslist.c
8856         * as/z80/assym.c
8857
8858 2003-11-03  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8859
8860         * Added MSVC projects for hc08 assembler and linker:
8861         all.dsp, config.dsp, sdcc.dsw, /as/hc08/as_hc08.dsp,
8862         /as/hc08/link_hc08.dsp
8863
8864 2003-11-03 Martin Helmling <Martin.Helmling AT octo-soft.de>
8865
8866         * debugger/mcs51/cmd.c: allows filename starting with digit(+ some debug)
8867
8868 2003-11-02 Bernhard Held <bernhard AT bernhardheld.de>
8869
8870         * src/SDCCmain.c (linkEdit): "fixed" again bug #833605
8871
8872 2003-11-01 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8873
8874         * src/mcs51/main.c: xdata initialization is 13 bytes shorter now
8875
8876 2003-10-31  Borut Razem <borut.razem AT siol.net>
8877
8878         * support/cpp2/cpplib.h,
8879           support/cpp2/cpplib.c,
8880           support/cpp2/cpplex.c,
8881           support/cpp2/cppinit.c: introduced #pragma preproc_asm [ + | - ]
8882           to switch _asm block preprocessing on / off. Default is
8883           #pragma preproc_asm +
8884
8885 2003-10-31  Borut Razem <borut.razem AT siol.net>
8886
8887         * support/cpp2/cpplex.c: Fixed _WIN32 problem with CR-CR-LF sequences
8888           when outputting comment blocks (when executed with -C option) and
8889           _asm (SDCPP specific) blocks
8890
8891 2003-10-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8892
8893         * as/hc08/lkrloc.c (relr): Fixed ihx output, fixed lastAreaIndex warning
8894
8895 2003-10-31 Klaus Flittner <klaus_flittner AT gmx.de>
8896
8897         * src/SDCCcse.c (updateSpillLocation): fixed bug #808027
8898
8899 2003-10-31 Bernhard Held <bernhard AT bernhardheld.de>
8900
8901         * src/SDCCmain.c (linkEdit): "fixed" bug #833605
8902         * src/SDCCast.c (decorateType): fixed bug #832664
8903
8904 2003-10-31  Borut Razem <borut.razem AT siol.net>
8905
8906         * support/cpp2/cpplex.c: fixed for SDCPP:
8907           comments(when executed with -C option) and _asm blocks
8908           were included even if they where in skipped #if block.
8909           Applied solution from GCC cpp 3.3.2
8910
8911 2003-10-31  Borut Razem <borut.razem AT siol.net>
8912
8913         * src/SDCC.lex: sdcc now understands both formats:
8914           '# <line_number> <file_name>' and
8915           '#line <line_number> <file_name>'
8916         * support/cpp2/cppmain.c: sdcpp now generates the standard
8917           '# <line_number> <file_name>' instead of former
8918           '#line <line_number> <file_name>'
8919
8920 2003-10-30  Borut Razem <borut.razem AT siol.net>
8921
8922         * support/cpp2/cpphash.h,
8923         * support/cpp2/cpplib.h
8924         * support/cpp2/cpplex.c,
8925         * support/cpp2/cppmain.c,
8926         * support/cpp2/cppinit.c: fixed bug #828015 - Syntax variation for _asm character constants
8927
8928 2003-10-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8929
8930         Fixed a number of problems revealed by bug #827883.
8931         * src/SDCCloop.c (loopInvariants): Spill location of the
8932         result operand should be recomputed if extracted from
8933         a loop. Also, don't extract assignments of an iTemp
8934         from a literal.
8935         * src/SDCCast.c (isConformingBody): loop reversal should
8936         not occur if the control variable is involved with a
8937         relational operator.
8938
8939 2003-10-28 Bernhard Held <bernhard AT bernhardheld.de>
8940
8941         * .version: bumped to 2.3.6 to reflect the big improvements
8942         made by Erik and Klaus. Thanks!
8943
8944 2003-10-28 Klaus Flittner <klaus_flittner AT gmx.de>
8945
8946         Replaced the livrange code.
8947         * src/SDCClrange.c: added new LR code
8948         * src/SDCCloop.c,
8949         * src/SDCCBBlock.h: removed remainig parts from old LR code
8950         * src/ds390/ralloc.c,
8951         * src/ds390/gen.c: minor fixes to make it work with new code
8952
8953 2003-10-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8954
8955         * as/hc08/asm.h,
8956         * as/hc08/lkrloc.c,
8957         * src/hc08/gen.c,
8958         * src/hc08/ralloc.c: Fix various warnings related to the hc08
8959         * src/SDCCicode.c (geniCodePreInc, geniCodePreDec): Fixed bug #829717
8960         (tweaked fix for bug #818696)
8961
8962 2003-10-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8963
8964         * src/z80/ralloc.c (joinPushes): Fixed bug #828742
8965
8966 2003-10-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8967
8968         * src/SDCCmain.c,
8969         * sdccconf_in.h: Fixed bug #828387 (--disable-hc08-port didn't work)
8970         * src/mcs51/gen.c (gencjneshort),
8971         * src/ds390/gen.c (gencjneshort): Made comparison with AOP_IMMD operand
8972         more efficient (per Scott Bronson's suggestion)
8973
8974 2003-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8975
8976         Extended the semantics of the critical keyword to include
8977         individual statements. See RFE #827755 and #799831
8978         * src/SDCC.y
8979         * src/SDCCicode.c
8980         * src/SDCCopt.c
8981         * src/SDCCast.c
8982         * support/Util/SDCCerr.c
8983         * support/Util/SDCCerr.h
8984         * src/mcs51/gen.c
8985         * src/ds390/gen.c
8986         * src/hc08/gen.c
8987
8988 2003-10-19  Borut Razem <borut.razem AT siol.net>
8989
8990         * src/SDCC.lex: fixed bug #825944 - defined yytext_ptr to make it compile with flex 2.5.31
8991
8992 2003-10-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8993
8994         * src/SDCCicode.c (geniCodePreInc, geniCodePreDec, ast2iCode):
8995         Fixed bug #818696
8996         * src/SDCCast.c (ast_print): Fixed --dumptree so that preincrement
8997         and predecrement operand is displayed
8998
8999 2003-10-13 Bernhard Held <bernhard AT bernhardheld.de>
9000
9001         * src/SDCCval.c (valMinus): fixed bug #826041
9002
9003 2003-10-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9004
9005         Some hc08 related updates that I missed earlier
9006         * sim/ucsim/stypes.h
9007         * support/regression/ports/hc08/spec.mk
9008
9009 2003-10-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9010
9011         New target "hc08" for the Motorola 68hc08 family of micros
9012
9013         * configure
9014         * configure.in
9015         * Makefile
9016         * src/hc08/*
9017         * src/SDCCmain.c
9018         * src/port.h
9019         * sim/ucsim/hc08.src/*
9020         * sim/ucsim/configure.in
9021         * src/ucsim/configure
9022         * sim/ucsim/packages_in.mk
9023         * as/hc08/*
9024         * as/Makefile
9025         * device/include/mc68hc908qy.h
9026         * device/lib/hc08/*
9027         * device/lib/Makefile.in
9028         * support/regression/ports/hc08/*
9029         * support/regression/Makefile
9030
9031 2003-10-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9032
9033         * src/z80/gen.c: fixed bug revealed by ast_constant_folding.c
9034         regression test
9035         * src/ds390/gen.c (genCast): fixed bug #821957
9036
9037 2003-10-13 Bernhard Held <bernhard AT bernhardheld.de>
9038
9039         * device/lib/logf.c: "fixed" overlay bug
9040         * support/regression/ports/host/spec.mk: added m library
9041         * support/regression/ports/mcs51-stack-auto/spec.mk: added float funcs
9042         * support/regression/tests/float_trans: added (for Eric)
9043
9044 2003-10-12 Bernhard Held <bernhard AT bernhardheld.de>
9045
9046         * src/mcs51/gen.c (genCpl): fixed bug
9047         http://sf.net/mailarchive/message.php?msg_id=6263915
9048
9049 2003-10-10 Bernhard Held <bernhard AT bernhardheld.de>
9050
9051         * src/SDCCast.c (decorateType): added extended constant folding
9052         * src/SDCCsymt.c (computeType): cleanup
9053         * src/SDCCval.c (valShift): minor optimization
9054         * support/regression/tests/ast_constant_folding.c: added
9055
9056 2003-10-09  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9057
9058         * src/SDCCmain.c: removed some unintended changes
9059
9060 2003-10-09  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9061
9062         * src/SDCCmain.c (setParseWithComma): fixed bug #816685
9063         * src/z80/gen.c: fixed part of bug #817589
9064         * src/SDCCsymt.c (checkFunction): fixed bug #817895
9065
9066 2003-10-08 Bernhard Held <bernhard AT bernhardheld.de>
9067
9068         Replaced cast (void **) with (void *) to avoid gcc 3 warning:
9069         * src/SDCCcflow.c
9070         * src/SDCCcse.c
9071         * src/SDCCdflow.c
9072         * src/SDCClabel.c
9073         * src/SDCClrange.c
9074         * src/SDCCmem.c
9075         * src/SDCCopt.c
9076         * src/SDCCpeeph.c
9077         * src/SDCCset.c
9078         * src/avr/ralloc.c
9079         * src/ds390/ralloc.c
9080         * src/izt/ralloc.c
9081         * src/mcs51/ralloc.c
9082         * src/pic/ralloc.c
9083         * src/pic16/ralloc.c
9084         * src/xa51/ralloc.c
9085         * src/z80/ralloc.c
9086         * src/z80/gen.c: removed unused label "release:"
9087
9088 2003-10-06  Borut Razem <borut.razem AT siol.net>
9089
9090         * src/SDCC.lex: removed definition of unused variables
9091           save_optimize and save_options
9092
9093 2003-10-06 Bernhard Held <bernhard AT bernhardheld.de>
9094
9095         * clean.mk: removed '=' in "-maxdepth=1"
9096         * src/SDCCloop.c: replace LRKLAUS with SDCC_LRKLAUS
9097         * src/SDCClrange.c: replace LRKLAUS with SDCC_LRKLAUS
9098
9099 2003-10-06  Borut Razem <borut.razem AT siol.net>
9100
9101         * src/SDCC.lex, src/SDCC.lex: use dbuf for "_asm" definitions;
9102           my_unput() replaced by unput()
9103
9104 2003-10-05 Bernhard Held <bernhard AT bernhardheld.de>
9105
9106         * src/SDCCloop.c (assignmentsToSym, loopInduction): cast argument of
9107         setToNull() to (void *) to avoid gcc3.x's warning: "dereferencing
9108         type-punned pointer will break strict-aliasing rules"
9109         Old LR behaviour is again default; Klaus' LR can be choosen by
9110         defining the environment variable LRKLAUS
9111         * src/SDCCBBlock.h
9112         * src/SDCCloop.c
9113         * src/SDCClrange.c
9114         * src/ds390/ralloc.c (spillThis): applied Klaus' patch
9115         * clean.mk: fixed removal of files in bin/CVS/
9116         * device/lib/clean.mk: fixed removal of directories small and large
9117         * support/Util/SDCCerr.c: changed W_INT_OVL to ERROR_LEVEL_PEDANTIC
9118         * src/SDCCicode.c,
9119         * src/SDCCval.c: removed superflous test for pedantic
9120
9121 2003-10-05  Borut Razem <borut.razem AT siol.net>
9122
9123         * src/SDCC.lex, support/Util/SDCCerr.c, sdcc/support/Util/SDCCerr.h:
9124           Fixed bug #816692: introduced new ERROR_LEVEL_PEDANTIC warning
9125           message "unmatched #pragma SAVE and #pragma RESTORE"
9126
9127 2003-10-04  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9128
9129         * doc/sdccman.lyx: various additions and updates (interrupts, inline
9130           assembly, critical functions, atomic, nojtbound)
9131
9132 2003-10-04 Bernhard Held <bernhard AT bernhardheld.de>
9133
9134         Applied liferange patch from Klaus Flittner <klaus_flittner AT gmx.de>
9135         * src/SDCCBBlock.h
9136         * src/SDCCloop.c
9137         * src/SDCCloop.h
9138         * src/SDCClrange.c
9139
9140 2003-10-03  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9141
9142         * src/z80/gen.h,
9143         * src/z80/gen.c (aopOp, aopGet, aopPut, genDummyRead),
9144         * src/mcs51/gen.h
9145         * src/mcs51/gen.c (aopOp, aopGet, aopPut, genDummyRead),
9146         * src/ds390/gen.h
9147         * src/ds390/gen.c (aopOp, aopGet, aopPut, genDummyRead),
9148         * src/SDCCicode.c (ast2iCode, geniCodeDummyRead): Fixed bug #663539
9149         * src/SDCCopt.c (killDeadCode): Fixed bugs #663539 & #816705
9150
9151 2003-10-02  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9152
9153         * src/z80/gen.c (genRet): fixed bug #524753
9154         * src/z80/gen.c (genCast): fixed internal error on cast from
9155         pointer to long
9156         * src/z80/gen.c (_saveRegsForCall, emitCall): adapted Johan's
9157         fix for bug #477835 to the z80
9158         * src/z80/gen.c (genZ80code, _vemit2, _emit2): added support
9159         for tracking iCodes in the peephole optimizer for z80
9160
9161 2003-10-01  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9162
9163         * src/SDCCicode.c (geniCodeJumpTable, geniCodeSwitch): fixed
9164         the other part of bug #814548
9165         * src/SDCCpeeph.c (labelInRange): fixed bug #814558
9166
9167 2003-09-30  Bernhard Held <bernhard AT bernhardheld.de>
9168
9169         * src/SDCCcse.c: fixed part of bug #814548
9170
9171 2003-09-28  Borut Razem <borut.razem AT siol.net>
9172
9173         * src/asm.c: rewrite of printILine() to use temporary file instead
9174           a pipe
9175         * src/xa51/main.c: commented out declaration of int rewinds
9176
9177 2003-09-27  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9178
9179         * src/SDCCicode.c (geniCodeJumpTable): Fixed bug #813206
9180
9181 2003-09-26  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9182
9183         * src/SDCCdflow.c (computeDataFlow): Fixed bug #810746
9184         * src/asm.c (printILine): Fixed bug #811015
9185
9186 2003-09-22  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9187
9188         *link/z80/lklibr.c, as/mcs51/lklibr.c: Improved memory allocation and
9189         freeing.
9190
9191 2003-09-21  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9192
9193         * src/z80/gen.c (setupToPreserveCarry): Fixed bug #796955
9194         * src/z80/gen.c (setupPair, genMovePairPair): Fixed setupPair
9195         to correctly handle general case of AOP_PAIRPTR
9196         * src/z80/gen.c (aopGet, aopPut): Generalized AOP_PAIRPTR handling
9197
9198 2003-09-21  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9199
9200         * src/mcs51/ralloc.c (fillGaps),
9201         * src/ds390/ralloc.c (fillGaps): fixed bug #810093 (yet another
9202         register positioning bug)
9203
9204 2003-09-21  Bernhard Held <bernhard AT bernhardheld.de>
9205
9206         * device/lib/_fsdiv.c: replaced (1<<31) by (1ul<<31)
9207
9208 2003-09-19  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9209
9210         * src/mcs51/gen.c (loadDptrFromOperand, genFarPointerGet,
9211         genCodePointerGet, genGenPointerGet, genFarPointerSet,
9212         genGenPointerSet): handle AOP_DPTR correctly when loading dptr
9213         (ralloc doesn't intentionally do this now, but perhaps later)
9214         * src/mcs51/ralloc.c (serialRegAssign, fillGaps),
9215         * src/ds390/ralloc.c (serialRegAssign, fillGaps): fixed some
9216         register positioning bugs (Fixed bug #762602 and #795325)
9217         * src/SDCCicode.c (geniCodeDerefPtr): Track output class correctly
9218         (Fixed bug #808779)
9219         * src/z80/gen.c: increased _vemit2's buffer[] to handle long
9220         lines that --i-code-in-asm generates
9221
9222 2003-09-18  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9223
9224         *link/z80/lklibr.c, as/mcs51/lklibr.c: Fixed Linux segfaults when
9225         trying to fclose a FILE* that was already closed.
9226
9227 2003-09-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9228
9229         * src/SDCCsymt.c (structElemType): fixed bug #808291 (members
9230         of const struct should be treated as if const themselves)
9231
9232 2003-09-18  Bernhard Held <bernhard AT bernhardheld.de>
9233
9234         * src/SDCCval.c (valPlus, valMinus): fixed bug #808337
9235
9236 2003-07-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9237
9238         * support/librarian/sdcclib.c: Generate correct offsets for libraries with
9239         Unix (/n) and DOS (/r/n) line terminations.
9240
9241 2003-09-17  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9242
9243         * src/SDCCopt.c (cnvFromFloatCast, cnvToFloatCast): fixed
9244         bug #613775
9245
9246 2003-09-16  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9247
9248         * src/mcs51/gen.c (genFunction, genEndFunction),
9249         * src/ds390/gen.c (genFunction, genEndFunction): Moved save
9250         and restore of EA so that stack offsets to parameters are
9251         correct when using both critical and reentrant/stack-auto.
9252         * src/z80/gen.c (aopOp): removed erroneous assertion about sloc
9253         size (can be triggered in error if sloc is shared between
9254         different sized objects)
9255         * device/include/float.h: fixed macros to explicitly use
9256         unsigned long where needed
9257
9258 2003-09-15  Bernhard Held <bernhard AT bernhardheld.de>
9259
9260         Feature req. 799831: added code to allow nesting of critical functions
9261         * src/mcs51/gen.c (genFunction, genEndFunction)
9262         * src/ds390/gen.c (genFunction, genEndFunction)
9263
9264 2003-09-14  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9265
9266         * src/SDCCsymt.c (sclsFromPtr),
9267         * src/SDCCsymt.h,
9268         * src/SDCCast.c (decorateType): fixed bug #462971. Also, better
9269         support for standard C idiom of memory mapped variables; for
9270         example, *((xdata int*)0x1234) = 1 is now internally equivalent
9271         to xdata int at 0x1234 tempvar = 1.
9272         * sim/ucsim/z80.src/inst_xd.cc: fixed bug #805483 with patch
9273         provided by Akiya ISHIDA
9274
9275 2003-09-13  Bernhard Held <bernhard AT bernhardheld.de>
9276
9277         * src/SDCCval.c (cheapestVal): reenabled to reduce int to char
9278         * src/SDCCval.c (constVal): added reduction from int to char
9279         * src/SDCCval.c (valMult, valDiv): fixed sign handling
9280         * src/SDCCval.c (valShift): fixed after change of cheapestVal()
9281         * src/SDCCval.c (valCompare): fixed EQ_OP and NE_OP; they have
9282         to ignore the sign
9283         * support/regression/tests/shifts.c: fixed
9284
9285 2003-09-13  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9286
9287         * src/z80/gen.c (genXor): Fixed bug #805445
9288
9289 2003-09-12  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9290
9291         Fixed bug #621531 (const & volatile confusion in the type chain).
9292         DCL_PTR_CONST, DCL_PTR_VOLATILE, & IS_PTR_CONST now exclusively
9293         refer to the const or volatile state of the pointer itself.
9294
9295         * src/SDCCast.c
9296         * src/SDCCglue.c
9297         * src/SDCCicode.c
9298         * src/SDCCsymt.c
9299         * src/SDCCval.c
9300         * src/SDCC.y
9301         * src/SDCCsymt.h
9302         * src/pic/gen.c
9303         * src/pic/ralloc.c
9304         * src/pic16/gen.c
9305         * src/pic16/ralloc.c
9306         * support/regression/tests/const.c
9307
9308 2003-09-10  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9309
9310         When checking for duplicated modules, use absolute paths
9311         instead of relative paths.  Files changed:
9312
9313         * as/mcs51/lklib.c
9314         * link/z80/lklib.c
9315
9316 2003-09-09  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9317
9318         * src/SDCCicode.c (geniCodeLogic): fixed bug #797572
9319
9320 2003-09-07  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9321
9322         * device/include/string.h: added size_t typedef, changed
9323         prototypes to use size_t, eliminated separate reentrant and
9324         non-reentrant declarations, added _memmove declaration
9325         * device/lib/_memcpy.c: changed to use size_t instead of int,
9326         changed /4 to >>2 to avoid division library call
9327         * device/lib/_memcmp.c,
9328         * device/lib/_memset.c,
9329         * device/lib/_strncat.c,
9330         * device/lib/_strncpy.c,
9331         * device/lib/_strncmp.c: changed to use size_t instead of int
9332         * device/lib/_memmove.c: new file (fixed bug #772294)
9333         * device/lib/Makefile.in: added _memmove.c
9334         * device/lib/z80/asm_strings.s: fixed bug #772290
9335         * support/regression/tests/bitfields.c: attempt to fix host assertion
9336         failure on amd64-unknown-linux2.2
9337
9338 2003-09-06  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9339
9340         * src/z80/gen.c (aopPut, spillPairReg): fixed bug #800998
9341         * src/z80/gen.c (genFunction, genEndFunction): fixed "bug" #774700
9342         * as/z80/asmain.c (main): fixed bug #801766
9343
9344 2003-09-06  Bernhard Held <bernhard AT bernhardheld.de>
9345
9346         * src/SDCCicode.c (ast2iCode): fixed differences in iCode with different
9347         compilers
9348
9349 2003-09-05  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9350
9351         * src/SDCCast.c (isConformingBody): fixed loop reversal bug
9352         reported in bug #800609
9353
9354 2003-09-04  Vangelis Rokas <vrokas AT otenet.gr>
9355
9356         * Top header beautifications in src/pic16 directory:
9357           device.c, device.h, gen.c, gen.h, genarith.c, glue.c, pcode.c,
9358           pcodeflow.c, pcodeflow.h, pcode.h, pcodepeep.c, pcoderegs.c,
9359           pcoderegs.h, ralloc.c, ralloc.h
9360         * main.c: added top header and GPL license notice
9361         * pcode.c: fixed the if-conditional warning
9362
9363 2003-09-04  Bernhard Held <bernhard AT bernhardheld.de>
9364
9365         * device/lib/_mullong.c: replaced int by short for gcc
9366
9367 2003-08-31  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9368
9369         * src/SDCCpeeph.c (notVolatile, notVolatileVariable): handle IFX
9370         and JUMPTABLE iCodes properly now (worked by accident before)
9371         * src/mcs51/gen.c (leftRightUseAcc),
9372         * src/ds390/gen.c (leftRightUseAcc): handle IFX and JUMPTABLE
9373         iCode properly now. Use getSize instead of nRegs since a & b
9374         aren't part of the nRegs tally.
9375
9376 2003-08-31  Vangelis Rokas <vrokas AT otenet.gr>
9377
9378         * src/pic16/main.c: corrected offsets of interrupt vectors in _pic16_genIVT()
9379         * src/pic16/pcode.c: fix to disable inserting BANKSEL directive
9380           before instructions that use the _STATUS register
9381
9382 2003-08-31  Bernhard Held <bernhard AT bernhardheld.de>
9383
9384         * src/mcs51/gen.c (freeAsmop): fixed off by one in stack offset (AOP_STK)
9385         * src/mcs51/gen.c (genNearPointerSet): added missing opcode for
9386         fetching of the pointer
9387         * src/mcs51/gen.c (genNearPointerGet): added reuse of PREG,
9388         copied from genNearPointerSet()
9389         * src/mcs51/gen.c (genNearPointerGet): don't pop r0/r1, if RESULTONSTACK
9390         * src/mcs51/gen.c: changed order of freeAsmop(left/right/result)-calls.
9391         If they pop r0/r1 they must be called in the opposite order than aopOp().
9392         * device/lib/_mullong.c: fixed for "--model-large --int-long-reent"
9393         (resp. --stack-auto), prepared for --xstack
9394
9395 2003-08-28  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9396
9397         * doc/sdccman.lyx: reverted tables to those in cvs 1.64
9398
9399 2003-08-28  Bernhard Held <bernhard AT bernhardheld.de>
9400
9401         * device/lib/_startup.c: quick & dirty fix for ds390/ds400;
9402         these ports have their own __sdcc_external_start()
9403
9404 2003-08-26  Bernhard Held <bernhard AT bernhardheld.de>
9405
9406         pic patch provided by Slade Rich <slade_rich AT yahoo.com>
9407         * src/pic/glue.c (pic14printPublics): fixed bug introduced when symbol
9408         type for bits was changed. It resulted in bit variables becoming
9409         global, which is not permitted in PIC 14 assembly output.
9410
9411 2003-08-23  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9412
9413         * doc/sdccman.lyx: various additions and updates. Rearranged sections
9414
9415 2003-08-22  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9416
9417         Z80 and MCS51 linkers complaint if a public symbol is defined
9418         in more than one library module:
9419
9420         * as/mcs51/lklib.c
9421         * link/z80/lklib.c
9422         * as/mcs51/Makefile.in
9423
9424 2003-08-22  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9425
9426         A few small changes that speed up the peephole optimizer.
9427
9428         * src/SDCCpeeph.c
9429
9430 2003-08-22  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9431
9432         Try to make the peephole optimizer smarter by maintaining
9433         an association between the assembly source code and the
9434         iCodes that originated them. Put this information to use
9435         with a new peephole rule condition "notVolatile" so that
9436         the rules can be aggressive yet still safe.
9437
9438         * src/SDCCpeeph.c
9439         * src/SDCCpeeph.h
9440         * src/mcs51/gen.c
9441         * src/mcs51/peeph.def
9442
9443 2003-08-20  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9444
9445         Fixed bug #741761
9446
9447         * src/mcs51/gen.c (aopForSym, leftRightUseAcc),
9448         * src/ds390/gen.c (aopForSym, leftRightUseAcc): preserve A and B
9449         if the left or right operand symbols have the accuse flag set.
9450
9451 2003-08-20  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9452
9453         Changed the type of the result of the ! (NOT) operator to char;
9454         previously it returned the same type as the source. This allows
9455         us to eliminate all the genFloatNot functions (all of its target
9456         implementations were very buggy) since !float can use the same
9457         code as !long now.
9458
9459         * src/SDCCicode.c (ast2iCode): ! returns char
9460         * src/mcs51/gen.c (genNot, genNotFloat),
9461         * src/ds390/gen.c (genNot, genNotFloat),
9462         * src/z80/gen.c (genNot, genNotFloat),
9463         * src/pic/gen.c (genNot, genNotFloat),
9464         * src/pic16/gen.c (genNot, genNotFloat): eliminated genNotFloat
9465
9466 2003-08-19  Bernhard Held <bernhard AT bernhardheld.de>
9467
9468         pic patch provided by Slade Rich <slade_rich AT yahoo.com>
9469         1. Interrupt would not compile properly. Ensure PCLATH register is saved
9470            during interrupts. Ensure WSAVE is located at a shared bank address.
9471         2. Fixed page selection in some places
9472         3. Fixed BTFSS/C to where necessary use registers directly and not simply
9473            the registers name strings.
9474         4. Fixed "signed / unsigned compare" compiler warnings.
9475         5. The PIC port manages its own allocation of the general purpose
9476            registers, but makes no attempt to reuse them. As a result when
9477            compiling it soon runs out of general purpose registers. Some
9478            additional code was added to the files pcode.c and device.c to walk
9479            through the function call tree and rename the registers so that they
9480            get reused.
9481
9482         * src/pic/device.c
9483         * src/pic/gen.c
9484         * src/pic/glue.c
9485         * src/pic/pcode.c
9486         * src/pic/pcode.h
9487         * src/pic/ralloc.c
9488         * src/pic/ralloc.h
9489         * src/pic/genarith.c: Fixed problems with PIC 14 port in functions
9490         genPlus() & genMinus() when the result is the same as left or right
9491
9492 2003-08-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9493
9494         * src/z80/gen.c (isUnsplitable, fetchPairLong): fixed bug #770454
9495
9496 2003-08-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9497
9498         Made bitfield a distinct type from bit so that bitfields
9499         convert as per ANSI C and bits retain their traditional
9500         boolean style behaviour. Implemented bitfield support in
9501         the z80 port.
9502
9503         * src/SDCCsymt.h,
9504         * src/SDCCsymt.c,
9505         * src/SDCCast.c,
9506         * src/cdbFile.c,
9507         * src/mcs51/gen.c,
9508         * src/ds390/gen.c: bit v bitfield split
9509         * src/z80/gen.c: New support for bitfields
9510         * support/regression/tests/bitfields.c: reenabled z80,
9511         added more tests
9512
9513 2003-08-17  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9514
9515         Rules 246.x, 247.x relate to bitfields, the others speed up
9516         access to xdata mapped I/O devices.
9517
9518         * src/mcs51/peeph.def: added 26 peepholes 246.x - 248.x, 180.x
9519
9520 2003-08-16  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9521
9522         Cleaned up genPackBits and genUnpackBits and added two helper
9523         functions, emitPtrByteGet & emitPtrByteSet. Added optimizations
9524         for literal assignments in genPackBits (thanks to Frieder for
9525         reminding me).
9526
9527         * src/mcs51/gen.c
9528         * src/ds390/gen.c
9529
9530 2003-08-16  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9531
9532         Fixed bug #748310 (pointer to function type mishandled when the
9533         function name is omitted). Also fixed a SIGSEGV when a function
9534         attribute (reentrant, etc) is used on a non-function or on a
9535         function but misplaced before the parameter list.
9536
9537         * src/SDCC.y (abstract_declarator, abstract_declaractor2): fixed
9538         bug #748310
9539         * src/SDCC.y (declarator2_function_attributes): avoided SIGSEGV
9540         * support/Util/SDCCerr.h,
9541         * support/Util/SDCCerr.c: Added func attr misuse error msg
9542
9543 2003-08-13  Bernhard Held <bernhard AT bernhardheld.de>
9544
9545         Fixed bug #787649 by anonymous
9546         * src/SDCCglue.c (emitRegularMap): added emission of sloc for func ptr
9547         * src/ds390/gen.c (aopForSym): fixed func ptr in sloc
9548
9549 2003-08-14  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9550
9551         Fixed numerous bitfield problems.
9552
9553         * src/SDCC.y: More bitfield related error checking
9554         * src/SDCCsymt.h,
9555         * src/SDCCsymt.c (compStructSize): fixed bitfield offset calc
9556         * support/Util/SDCCerr.h,
9557         * support/Util/SDCCerr.c: Added & edited some bitfield err msgs
9558         * src/mcs51/gen.c (genPackBits, genUnpackBits): fixed mask bugs
9559         * src/ds390/gen.c (genPackBits, genUnpackBits): fixed mask bugs
9560         * support/regression/tests/bitfields.c: tests added
9561
9562 2003-08-13  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9563
9564         Made the constant following the "interrupt" keyword optional. If
9565         omitted, the function will not automatically be given an entry
9566         in the interrupt vector table (similar to #pragma NOIV, but
9567         less syntacticly kludgy). The interrupt number is also now
9568         range checked. Also fixed a bug in the high order bit example
9569         in the manual.
9570
9571         * src/SDCC.y
9572         * src/SDCCmem.c
9573         * src/SDCCglue.c
9574         * src/SDCCsymt.h
9575         * support/Util/SDCCerr.c
9576         * support/Util/SDCCerr.h
9577         * doc/sdccman.lyx
9578
9579 2003-08-13  Bernhard Held <bernhard AT bernhardheld.de>
9580
9581         * src/SDCCcse.c (algebraicOpts): fix bug converting op from value to type
9582         * src/SDCCicode.c (operandOperation): rewritten some ops
9583         (*, ==, unary_minus) to fix possible overflows and to accord with ANSI
9584         * src/SDCCsymt.c (computeType): literals are handled the same way as any
9585         other type
9586         * src/SDCCval.c (cheapestVal): removed, it doesn't accord with ANSI (can
9587         be re-activated by defining REDUCE_LITERALS)
9588         * src/SDCCval.c (constVal): fixed; hex and octal constants can be
9589         unsigned, but are signed by default
9590         * src/SDCCval.c (constVal): rearranged
9591         * src/SDCCval.c (valMod): preliminary fix
9592         * src/SDCCval.c (valCastLiteral): use TYPE_* types
9593         * support/regression/literalop.c: added, work in progress
9594
9595 2003-08-12  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9596
9597         Generate warnings for useless declarations like "char data;"
9598         that don't do what new users expect.
9599
9600         * src/SDCC.y
9601         * support/Util/SDCCerr.h
9602         * support/Util/SDCCerr.c
9603
9604 2003-08-09  Bernhard Held <bernhard AT bernhardheld.de>
9605
9606         * src/SDCCval.c (valMult): fix overflow detection of negative int
9607
9608 2003-08-07  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9609
9610         * src/z80/ralloc.c (joinPushes): made compatible with new signedness
9611
9612         Changes to support big endian targets:
9613
9614         * src/ports.h
9615         * src/SDCCglue.c
9616         * src/avr/main.c
9617         * src/ds390/main.c
9618         * src/izt/i186.c
9619         * src/mcs51/main.c
9620         * src/pic/main.c
9621         * src/pic16/main.c
9622         * src/xa51/main.c
9623         * src/z80/main.c
9624
9625 2003-08-06  Bernhard Held <bernhard AT bernhardheld.de>
9626
9627         * src/SDCCval.c (cheapestVal): changed behaviour to the same as constVal()
9628         * device/lib/time.c: fixed warning "integer overflow in expression"
9629
9630 2003-08-05  Bernhard Held <bernhard AT bernhardheld.de>
9631
9632         * src/SDCCval.c (cheapestVal, valueFromLit): use TYPE_* types
9633         * src/SDCCval.c (constVal): changed default to signed; hex and octal
9634         constants are unsigned; added recognition of "u" flag for unsigned
9635         * src/SDCCval.c (valMult): fixed signdness, added warning for overflow
9636         * src/SDCCval.c (valDiv, valMod): fixed signdness
9637         * src/SDCCicode.c (operandOperation): fixed critical typo; fixed
9638         signedness of modulo, left and right shift
9639         * support/Util/SDCCerr.c: added warning "integer overflow in expression"
9640         * support/Util/SDCCerr.h: added warning W_INT_OVL
9641         * src/SDCCast.c (decorateType): fixed gcc3.3 warning
9642         * src/SDCCast.c (ast_print): improved output of constants
9643
9644 2003-08-04  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9645
9646         Fixed some warnings when building with MSVC:
9647
9648         * as/mcs51/asdata.c
9649         * as/z80/asdata.c
9650         * as/mcs51/asm.h
9651         * as/z80/asm.h
9652         * link/z80/aslink.h
9653         * link/z80/lkdata.c
9654         * link/z80/lkeval.c
9655         * link/z80/lkgb.c
9656         * link/z80/lkihx.c
9657         * link/z80/lks19.c
9658         * link/z80/lksym.c
9659         * support/cpp2/cpplib.c
9660         * src/ds390/gen.c
9661         * src/mcs51/gen.c
9662
9663 2003-08-03  Bernhard Held <bernhard AT bernhardheld.de>
9664
9665         * src/SDCCast.c (constExprTree): fix bug #781827 by Carl Worth <cworth AT isi.edu>
9666
9667 2003-08-01  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9668
9669         * support/librarian/clean.mk: Do not remove Makefile.
9670         * support/librarian/Makefile: added.
9671
9672 2003-08-01  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9673
9674         Added librarian to MSVC build:
9675         * all.dsp
9676         * sdcc.dsw
9677         * support/librarian/librarian.dsp
9678
9679         'configure' not needed for librarian, removed:
9680         * support/librarian/configure
9681         * support/librarian/configure.in
9682         * support/librarian/config_in.h
9683         * support/librarian/Makefile.in
9684
9685         Hopefully these ones built the librarian and the rest of sdcc properly:
9686         * Makefile
9687         * Makefile.common.in
9688
9689         Messed up 'configure', so revert to previous version:
9690         * configure
9691         * configure.in
9692
9693 2003-07-31  Bernhard Held <bernhard AT bernhardheld.de>
9694
9695         * src/SDCCicode.c (operandOperation): 3. fix, this time for Alpha; ULONG has 64 bits
9696         there, while the mantissa of a double is "only" 53 bits wide.
9697
9698 2003-07-31  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9699
9700         Adding sdcclib to the build.  MSVC project coming soon.
9701         Files added/changed:
9702
9703         * support/librarian/clean.mk
9704         * support/librarian/configure
9705         * support/librarian/configure.in
9706         * support/librarian/config_in.h
9707         * support/librarian/Makefile.bcc
9708         * support/librarian/Makefile.in
9709         * support/librarian/sdcclib.c
9710         * Makefile.bcc
9711         * Makefile
9712         * Makefile.common.in
9713         * configure
9714         * configure.in
9715
9716 2003-07-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9717
9718         Linker now complaints if linked modules have conflicting options, for
9719         example, one compiled using --model-large and another one compiled with
9720         --model-small.  The following files were modified:
9721
9722         * as/mcs51/asdata.c
9723         * as/mcs51/aslink.h
9724         * as/mcs51/asm.h
9725         * as/mcs51/asmain.c
9726         * as/mcs51/asout.c
9727         * as/mcs51/i51pst.c
9728         * as/mcs51/lkdata.c
9729         * as/mcs51/lklibr.c
9730         * as/mcs51/lkmain.c
9731         * as/z80/asdata.c
9732         * as/z80/asm.h
9733         * as/z80/asmain.c
9734         * as/z80/asout.c
9735         * as/z80/z80pst.c
9736         * link/z80/aslink.h
9737         * link/z80/lkdata.c
9738         * link/z80/lklibr.c
9739         * link/z80/lkmain.c
9740         * src/SDCCglue.c
9741
9742 2003-07-28  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9743
9744         *link/z80/aslink.h, link/z80/lklibr.c, as/mcs51/aslink.h,
9745         as/mcs51/lklibr.c: Generate a warning when a library is not found.
9746
9747 2003-07-28  Bernhard Held <bernhard AT bernhardheld.de>
9748
9749         * src/z80/mappings.i: fix _mul[us][int,long] entries
9750
9751 2003-07-26  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9752
9753         *src/SDCCmain.c: do not search for crt0.o when using --nostdlib
9754
9755 2003-07-24  Bernhard Held <bernhard AT bernhardheld.de>
9756
9757         * src/SDCCicode.c (operandOperation): really fixed problem with bitops
9758         * support/regression/tests/bitopcse.c: added
9759         fixed warning:
9760         * src/avr/gen.c:
9761         * src/pic/gen.c:
9762         * src/pic16/gen.c:
9763         * src/z80/gen.c:
9764         * src/xa51/gen.c:
9765
9766 2003-07-24  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9767
9768         added support for new library format to z80, gbz80 linkers:
9769         *link/z80/aslink.h
9770         *link/z80/lklex.c
9771         *link/z80/lklib.c
9772         *link/z80/lklist.c
9773
9774 2003-07-24  Bernhard Held <bernhard AT bernhardheld.de>
9775
9776         * src/SDCCicode.c (operandOperation): fixed problem with bitops and 0xffffffff;
9777         after {double d = 0xffffffff; long l = d;} l will be 0x80000000 (LONG_MIN)
9778
9779 2003-07-23  Bernhard Held <bernhard AT bernhardheld.de>
9780
9781         added DUMMY_READ_VOLATILE:
9782         * src/SDCC.y:
9783         * src/avr/gen.c:
9784         * src/xa51/gen.c:
9785         * src/z80/gen.c:
9786         * src/pic/gen.c:
9787         * src/pic16/gen.c:
9788         * src/mcs51/gen.c:
9789         * src/ds390/gen.c:
9790         * src/SDCCcse.c (algebraicOpts): many improvements
9791         * src/SDCCcse.h: removed algebraicOpts()
9792         * src/SDCCicode.c (picDummyRead): added
9793
9794 2003-07-23  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9795
9796         * as/mcs51/lkmem.c: Changed message "Insufficient DRAM memory" to
9797         "Insufficient space in data memory".
9798
9799 2003-07-20  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9800
9801         * src/mcs51/gen.c: fixed bug #771358
9802         * src/z80/gen.c: fixed bug #759087
9803
9804 2003-07-20  Bernhard Held <bernhard AT bernhardheld.de>
9805
9806         * src/pic16/glue.c: minor cleanup by Vangelis
9807
9808 2003-07-19  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9809
9810         * device/include/regc515c.h: fixed #758477
9811         * device/lib/_gptrget.c: saving some cycles in generic pointer get
9812         * device/lib/_gptrput.c: saved a few bytes
9813         * my tab spacing is 8, yours too?)
9814         * device/lib/_ser.c: process RX bytes earlier than TX bytes
9815         * device/lib/serial.c: process RX bytes earlier than TX bytes
9816         * src/mcs51/gen.c(genGenPointerGet/Set): removed writing of type after postincrement
9817
9818 2003-07-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9819
9820         * src/z80/gen.c: fixed some right shift bugs (#772726 among them)
9821
9822 2003-07-17  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9823
9824     * link/z80/lklibr.c: fixed bug when there is a '.' in a library path.
9825
9826 2003-07-17  Bernhard Held <bernhard AT bernhardheld.de>
9827
9828         * device/lib/Makefile.in: bad fix, reverted to 1.43
9829
9830 2003-07-16  Bernhard Held <bernhard AT bernhardheld.de>
9831
9832         * device/lib/Makefile.in: added missing z80 object files
9833
9834 2003-07-14  Bernhard Held <bernhard AT bernhardheld.de>
9835
9836         * src/SDCCcse.c (algebraicOpts): CSE fun with &|^ and 0x00/0xff literals
9837         pic16 progress by Vangelis:
9838         * src/SDCCglobl.h:
9839         * src/SDCCmain.c:
9840         * src/pic/Makefile:
9841         * src/pic:
9842         * pic/Makefile:
9843         * pic16/device.c:
9844         * pic16/device.h:
9845         * pic16/gen.c:
9846         * pic16/gen.h:
9847         * pic16/genarith.c:
9848         * pic16/glue.c:
9849         * pic16/main.c:
9850         * pic16/pcode.c:
9851         * pic16/pcode.h:
9852         * pic16/pcodepeep.c:
9853         * pic16/peeph.def:
9854
9855 2003-07-13  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9856
9857     * src/SDCCmain.c, src/SDCCglobl.h: added option --no-std-crt0
9858
9859 2003-07-12  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9860
9861     * sdcc.dsw, all.dsp, link/z80/linkgbz80.dsp, as/z80/as-gbz80.dsp:
9862     added gbz80 build to MSVC project.
9863     * src/SDCCmain.c, src/SDCCglue.c, src/z80/main.c, src/z80/z80.dsp,
9864     link/z80/aslink.h, linkz80.dsp: cleaned up z80 and gbz80 asm files
9865     from 8051 stuff and setup so it links using a .lnk file.
9866
9867 2003-07-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9868
9869     * support/librarian/sdcclib.c: sdcc librarian.
9870     * as/mcs51/aslink.h, as/mcs51/lklib.c: Support for libraries created
9871     with sdcclib.
9872
9873 2003-07-03  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9874
9875     * as/mcs51/lkmain.c: properly handle extensions in function afile.
9876
9877 2003-07-02  Borut Razem <borut.razem AT siol.net>
9878
9879         * src/port.h, src/SDCCmain.c, src/pic/glue.h, src/pic/main.c,
9880         src/pic16/glue.h, sdcc/src/pic16/main.c, src/izt/i186.c,
9881         src/izt/tlcs900h.c, src/avr/main.c, src/ds390/main.c, src/mcs51/main.c,
9882         src/xa51/main.c, src/z80/main.c:
9883         virtualization of glue() function: each port has it's own glue function,
9884         which is accessed by do_glue function pointer in PORT.general structure
9885
9886 2003-07-01 Kevin Vigor <kevin AT vigor.nu>
9887
9888         * DS800C400 fun, improved ROM interface and tinibios.
9889
9890 2003-06-27 Kevin Vigor <kevin AT vigor.nu>
9891
9892         * More support for DS80C400. Now includes beginning of interface to ROM.
9893
9894 2003-06-25  Bernhard Held <bernhard AT bernhardheld.de>
9895
9896         * src/mcs51/gen.c (gencjneshort): fixed bug #760345
9897
9898 2003-06-20  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9899
9900         * as/mcs51/lkaomf51.c: Make sure the size of the last procedure is correct.
9901
9902 2003-06-19  Borut Razem <borut.razem AT siol.net>
9903
9904         * src/z80/main.c: fixed Z80 port again: missing -k library paths in linker command line
9905
9906 2003-06-19  Borut Razem <borut.razem AT siol.net>
9907
9908         * src/SDCCutil.h, src/SDCCutil.c, src/SDCCglobl.h, src/SDCCmain.c, src/z80/main.c:
9909         fixed Z80 port - crt0.o: cannot open.
9910
9911 2003-06-19  Bernhard Held <bernhard AT bernhardheld.de>
9912
9913         * support/Util/MySystem.c (merge_command): revert bad fix
9914
9915 2003-06-18  Borut Razem <borut.razem AT siol.net>
9916
9917         * src/SDCC.lex, src/SDCCmain.c: fixed some warnings, introduced with changes made 15.06.1003
9918
9919 2003-06-18  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9920
9921         * src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx:
9922         option --use-stdout sends errors to stdout instead of stderr.
9923
9924 2003-06-18  Bernhard Held <bernhard AT bernhardheld.de>
9925
9926         * support/Util/MySystem.c (merge_command): quick fix for Linux segfault with \"cmd\" arg
9927
9928 2003-06-15  Borut Razem <borut.razem AT siol.net>
9929
9930         * support/cpp2/sdcc.h: HAVE_DOS_BASED_FILE_SYSTEM defined for _WIN32
9931         * src/SDCC.lex: cloneXxx and copyAndFreeXxx functions for options and optimize stack handling
9932         * src/SDCCglobl.h, src/SDCCmain.c, src/ds390/main.c, src/mcs51/main.c, src/z80/main.c:
9933         fixed width array of pointers replaced with sets;
9934         multiple include and lib paths ared transferred to preprocessor and linker
9935         * src/SDCCset.c, src/SDCCset.h: added function setFromSetNonRev() and mergeSets()
9936         * src/SDCCsymt.c: reimplemented function inCalleeSaveList() by using sets instead
9937         fixed width array of pointers
9938         * src/SDCCutil.c, src/SDCCutil.h: added functions fputStrSet(), appendStrSet(), joinStrSet();
9939         removed functions addToList(), join(), joinn(), pathCharsEquivalent(), pathCharTransform(),
9940         fixupPath(), getPathDifference()
9941         * src/ds390/gen.c, src/mcs51/gen.c: reimplemented function  inExcludeList() by using sets instead
9942         fixed width array of pointers
9943
9944 2003-06-11  Bernhard Held <bernhard AT bernhardheld.de>
9945
9946         * src/pic16/ralloc.c: fix warnings
9947         * src/pic16/pcode.c: fix warning
9948
9949 2003-06-10  Scott Dattalo  <scott AT dattalo.com>
9950
9951          Scott D. for Vangelis Rokas (vrokas AT otenet.gr). I (scott) don't
9952         know all the details, but essentially this set of changes enable
9953         the pic16 port to generate movff instructions and generate assembler
9954         directives,
9955         * src/SDCCmain.c:
9956         * src/pic16/gen.c:
9957         * src/pic16/glue.c:
9958         * src/pic16/pcode.c:
9959         * src/pic16/device.c:
9960         * src/pic16/main.c:
9961         * src/pic16/pcode.h:
9962         * src/pic16/pcoderegs.c:
9963         * src/pic16/ralloc.c:
9964         * src/pic16/ralloc.h:
9965
9966 2003-06-08  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9967
9968         * support/Util/SDCCerr.c, src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx:
9969         added option --vc, so sdcc errors and warnings are compatible with
9970         Microsoft Visual Studio.
9971
9972 2003-06-07  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9973
9974         * device/lib/_atof.c, device/lib/Makefile.in, device/include/stdlib.h,
9975           device/lib/libfloat.lib: added atof function.
9976
9977 2003-06-04  Bernhard Held <bernhard AT bernhardheld.de>
9978
9979         * doc/sdccman.lyx: updated to Lyx 1.3
9980         * doc/cdbfileformat.lyx: updated to Lyx 1.3
9981         * doc/test_suite_spec.lyx: updated to Lyx 1.3
9982         * doc/Makefile: added fix for the \tabularnewline problem, thanks to Jesus
9983
9984 2003-06-03  Bernhard Held <bernhard AT bernhardheld.de>
9985
9986         * src/SDCCpeeph.c: separate peepRules2pCode() for pic16 by "Vangelis Rokas" <vrokas AT otenet.gr>
9987
9988 2003-06-02  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9989
9990         * doc/sdccman.lyx: cvs revision keywords, passing pdf information in latex preamble,
9991           additions to the "related tools/documentation" section
9992
9993 2003-06-02  Bernhard Held <bernhard AT bernhardheld.de>
9994
9995         * src/SDCCglue.c (tempfileandname): added check for missing TMP/TEMP/TMPDIR variable
9996
9997 2003-05-29  Bernhard Held <bernhard AT bernhardheld.de>
9998
9999         * src/pic/device.c: added 16F819, patch by "David I. Lehn" <dlehn AT vt.edu>
10000         * src/SDCCcse.c (algebraicOpts): fixed "c * 1"
10001
10002 2003-05-28  Bernhard Held <bernhard AT bernhardheld.de>
10003
10004         * doc/sdccman.lyx: fix double dash and other minor things
10005         * doc/Makefile: fix double dash
10006
10007 2003-05-28  Karl Bongers(patches from Martin Helmling)
10008         * debugger/mcs51/sdcdb.c,cmd.c,break.c and .h files. Martin adds
10009           condition and ignore commands.
10010
10011 2003-05-28  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10012
10013         * doc/sdccman.lyx: Changes all over, index improved, smaller margins. The manual
10014           is in parts still quite out of date, I did changes as far as I felt makes sense
10015           for a non-native english speaker.
10016           Please feel free to add to the manual or to correct my changes.
10017         * doc/Makefile: undid touching the date of intermediate tex files.
10018
10019 2003-05-26  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10020
10021         * doc/sdccman.lyx: Manual has an index now
10022
10023 2003-05-25  Bernhard Held <bernhard AT bernhardheld.de>
10024
10025         Finalize muluint/mulsint and mululong/mulslong merging:
10026         * device/lib/_mulint.c
10027         * device/lib/_mullong.c
10028         * device/lib/gbz80/mul.s
10029         * device/lib/gbz80/stubs.s
10030         * device/lib/z80/mul.s
10031         * device/lib/z80/stubs.s
10032         * src/SDCCsymt.c (initCSupport)
10033
10034 2003-05-25  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10035
10036         * as/mcs51/lkaomf51.c: Address space 'z' was missing.
10037         * src/avr/avr.dsp, src/ds390/ds390.dsp, src/mcs51/mcs51.dsp,
10038           src/pic/pic.dsp, src/pic16/pic16.dsp, src/xa51/xa51.dsp,
10039           src/x80/z80.dsp: peep.rul is bigger now, so /Zm1000 is used
10040           instead of /Zm500.
10041
10042 2003-05-25  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10043
10044         * src/mcs51/peeph.def: added rules 244.x, 245.x. Although they pass
10045           the regression tests I'm not brave enough to enable 245.b, 245.c
10046         * doc/sdccman.lyx: added latex preamble for hyperref package.
10047           Using pdflatex this will give you a hyperlinked pdf file with
10048           bookmarks. (prepend '%' before /usepackage if this breaks something)
10049
10050 2003-05-24  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10051
10052          * doc/sdccman.lyx: updated information about .adb files (fixed bug 742649)
10053
10054 2003-05-22  Bernhard Held <bernhard AT bernhardheld.de>
10055
10056         * src/pic16/pcode.c (pic16_get_op_from_instruction): fixed a gcc 3.x warning
10057
10058 2003-05-21    <johan AT balder>
10059
10060         * src/SDCCglue.c (printIval): fixed bug #739934
10061
10062 2003-05-19  Bernhard Held <bernhard AT bernhardheld.de>
10063
10064         Applied patch from bug 737905 (renamed yylineo to mylineno):
10065         * src/altlex.c
10066         * src/SDCCast.c
10067         * src/SDCglobl.h
10068         * src/SDCC.lex
10069         * src/SDCCsymt.c
10070         * src/SDCCval.c
10071         * src/pic16/pcode.c: Cleaned warnings
10072         * src/pic16/pcodeflow.c: Cleaned warnings
10073         * src/pic16/pcoderegs.c: Cleaned warnings
10074
10075 2003-05-19  Scott Dattalo  <scott AT dattalo.com>
10076
10077         * src/pic16/pcode.c: Cleaned warnings
10078         * src/pic16/pcodepeep.c: Cleaned warnings
10079         * src/pic16/ralloc.c: Cleaned warnings
10080
10081 2003-05-19  Bernhard Held <bernhard AT bernhardheld.de>
10082
10083         * doc/sdccman.lyx: fixed bug 739745
10084         * src/pic16/pcode.c (pic16_get_op): fixed warning on alpha
10085
10086 2003-05-18  Bernhard Held <bernhard AT bernhardheld.de>
10087
10088         * src/port.h: removed DEFAULT_PORT, it's not yet pic16 ;-)
10089         it can be defined with CFLAGS when running configure
10090         * src/SDCCmain.c: fixed compiling + linking with object files
10091
10092 2003-05-18  Vangelis Rokas (vrokas AT otenet.gr)
10093
10094         * configure.in: configure for pic16 port,
10095             added --disable-pic16-port
10096         * sdccconf_in.h: added macro OPT_DISABLE_PIC16
10097         * src/SDCCmain.c: linkOptions is changed to set *,
10098             added if/endif conditional macros to remove options help
10099             messages from optionsTable when a port is not configured, added
10100             support for the PIc16 port in the ports table, when executing
10101             the compiler with no port specified on command line, a default
10102             port is selected with the new macro DEFAULT_PORT which is
10103             defined in port.h, in setDefaultOptions() linkOptions is removed
10104             from initialization assignment, since now it is a set,
10105             parseCmdLine uses setParseWithComma for linkOptions, in
10106             linkEdit() linkOptions are accessed with new function indexSet()
10107             which returns the i'th item of a set variable. See SDCCset.c, in
10108             linkEdit() when calling buildCmdLine(), added linkOptions as
10109             last argument. Now users can pass arguments to gplink via the
10110             -Wl option, main() uses pic16glue() to glue up pic16 programs
10111         * src/SDCCpeeph.c: various changes to support pic16
10112         * src/SDCCset.c: added function  void *indexSet(set *, int)  to
10113             return the i'th item of the set
10114         * src/SDCCset.h: added function prototype for indexSet()
10115         * src/SDCCsymt.c: in checkSClass(), added support for PIC16
10116         * src/clean.mk: added pic16 in CLEANALLPORTS variable
10117         * src/port.h: added TARGET_ID_PIC16,TARGET_IS_PIC16 macro,
10118             added macro DEFAULT_PORT
10119         * src/pic/main.c: corrected arguments of gplnk in _linkCmd
10120         * src/pic16/gen.c: bug fix in genCpl(), now the correct code is
10121             generated
10122         * src/pic16/glue.c: commented out some error producing lines
10123         * src/pic16/main.c: __config directives are commented out to stop
10124             gpasm complaining and test the linkage with gplink, _linkCmd and
10125             _asmCmd changed to be more gplink and gpasm friendly
10126         * src/pic16/peeph.def: peep rule 3 is commented out, since it
10127             produced an error when parsed, peep rule 12 is added to utilize
10128             movff, but it is commented out since the pCode does not support
10129             yet a command with 2 address arguments
10130
10131 2003-05-18    <johan AT balder>
10132
10133         * src/ds390/gen.c (genArrayInit): removed obsolete and buggy ARRAYINIT
10134         * src/ds390/main.c (genArrayInit): removed obsolete and buggy ARRAYINIT
10135 2003-05-17  Karl Bongers(apply patches from Martin Helmling)
10136
10137         * debugger/mcs51/sdcdb.c,cmd.c,break.c and .h files.
10138   Added feature to script commands from file.
10139
10140 2003-05-14  Bernhard Held <bernhard AT bernhardheld.de>
10141
10142         * device/lib/_strtok.c: fixed bug #734355 by Lenny Story and Tim Woodall
10143         * src/SDCCutil.c: include ctype.h for win32
10144
10145 2003-05-13  Bernhard Held <bernhard AT bernhardheld.de>
10146
10147         * src/pic16/*: removed CR from many files, reported by Vangelis Rokas
10148
10149 2003-05-12  Karl Bongers(apply development patches from Martin Helmling)
10150
10151         * debugger/mcs51/sdcdb.c,simi.c,cmd.c,break.c and .h files.
10152   Fixed so you can set breakpoints prior to run, run does not stop
10153   on entry now.  Add tbreak.  Other enhancements and fixes for use
10154   with ddd.
10155
10156 2003-05-12  Borut Razem <borut.razem AT siol.net>
10157
10158         * src/SDCCmain.c: fixed the problem with searching the DATADIR as the last resort on *nix
10159
10160 2003-05-11  Borut Razem <borut.razem AT siol.net>
10161
10162         * src/SDCCutil.c: WIN32 version of getBinPath() calls GetModuleFileName() to determine
10163         the path of bin directory, so that PATH is the only env. variable, which has to be set
10164         in case of standard installation.
10165         * src/ds390/ds390.dsp: increased value of /Zm option to 1000
10166         * src/pic/main.c: add quotes to file name parameters for gplink and gpasm
10167         * src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx: added --print-search-dirs command line option
10168
10169 2003-05-04  Bernhard Held <bernhard AT bernhardheld.de>
10170
10171         * src/SDCCmain.c (linkEdit): fixed buffer overflow for gbz80
10172         * support/regression/Makefile: inter-port-clean is no longer nesessary, the
10173         temp files are in the port dir; clean the gen/test directory when
10174         generating new test.c
10175         * support/regression/ports/host/spec.mk: defined OBJEXT for target clean
10176         * support/regression/tests/vaargs.c: fixed gcc 3.3 warning
10177         * support/regression/tests/zeropad.c: added
10178
10179 2003-05-09    <johan AT balder>
10180
10181         * src/SDCCglue.c: fixed bug #597940
10182
10183 2003-05-05  Karl Bongers(apply patches from Martin Helmling)
10184
10185         * debugger/mcs51/sdcdb.c,simi.c,cmd.c,symtab.c and .h files.
10186   cache sfr, optimize next,step, fix off by one sourceline,
10187   support ddd list function.
10188         * sim/ucsim/cmd.src/newcmd.cc - small fix for sdcdb use.
10189
10190 2003-05-04  Bernhard Held <bernhard AT bernhardheld.de>
10191
10192         * support/regression/HTMLgen.py: added compare_s2f()
10193         * support/regression/Makefile: redo 1.27
10194         * support/regression/generate-cases.py: redo 1.5
10195
10196 2003-04-30  Bernhard Held <bernhard AT bernhardheld.de>
10197
10198         * support/regression/tests/float.c: workaround 33 bit hex constant
10199         * support/regression/tests/simplefloat.c: fix division for host
10200
10201 2003-04-29  Scott Dattalo  <scott AT dattalo.com>
10202
10203         * src/pic/pcoderegs.c Applied patch from Jim Hawkridge <jim AT jimhawkridge.uk.eu.org>
10204         that tame's the PIC's over-aggressive optimizer.
10205
10206 2003-04-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10207
10208          * src.dsw, link/z80/aslink.h, link/z80/linkz80.dsp: z80 linker
10209          support for MSVC.
10210
10211 2003-04-29  Kevin Vigor <kevin AT vigor.nu>
10212
10213         Initial support for DS80C400. "Hello world" runs on TINIm400
10214         (with polled I/O).
10215
10216 2003-04-28  Karl Bongers(apply patches for Martin Helmling)
10217
10218          * debugger/mcs51/sdcdb.c,simi.c,cmd.c,symtab.c and .h files.
10219          * Some notes on ddd usage added in debugger/README
10220          Martin Helmling adding more features and fixes for ddd GUI debugger.
10221          Code added for nexti, stepi, up, down, and other adjustments.
10222
10223 2003-04-28  Scott Dattalo  <scott AT DATTALO.COM>
10224
10225         * src/pic/pCodepeep.c non-wildcard asmops are now handled
10226         * src/pic/peeph.def Added two rules to optimize carry manipulation
10227         * src/pic/* removed debug printfs
10228
10229 2003-04-28  Bernhard Held <bernhard AT bernhardheld.de>
10230
10231         * debugger/mcs51/cmd.c: added header newalloc.h
10232
10233 2003-04-26  Bernhard Held <bernhard AT bernhardheld.de>
10234
10235         * as/Makefile: new EXEEXT
10236         * as/z80/Makefile: remove trailing slash of BUILDIR
10237         * as/z80/clean.mk: new EXEEXT
10238         * Makefile.common.in: add to CFLAGS (and others), don't replace it
10239         * support/cpp2/Makefile.in: new EXEEXT
10240         * src/pic/glue.c (pic14emitRegularMap): fixed warning
10241
10242 2003-04-24  Bernhard Held <bernhard AT bernhardheld.de>
10243
10244         Cygwin's gcc always appends .exe: 'gcc -o a a.c' creates a.exe;
10245         EXEEXT was introduced to fix all related problems with targets
10246         "clean", "install" and "uninstall"; a couple of further flaws
10247         especially with "clean" have been fixed too
10248         * as/mcs51/Makefile.in
10249         * as/mcs51/clean.mk
10250         * as/z80/Makefile
10251         * Makefile
10252         * clean.mk
10253         * debugger/mcs51/Makefile.in
10254         * debugger/mcs51/clean.mk
10255         * link/z80/Makefile
10256         * link/z80/Makefile.in
10257         * link/z80/clean.mk
10258         * link/Makefile
10259         * packihx/Makefile.in
10260         * packihx/clean.mk
10261         * sim/ucsim/Makefile
10262         * sim/ucsim/clean.mk
10263         * sim/ucsim/avr.src/Makefile.in
10264         * sim/ucsim/avr.src/clean.mk
10265         * sim/ucsim/s51.src/Makefile.in
10266         * sim/ucsim/s51.src/clean.mk
10267         * sim/ucsim/xa.src/Makefile.in
10268         * sim/ucsim/xa.src/clean.mk
10269         * sim/ucsim/z80.src/Makefile.in
10270         * sim/ucsim/z80.src/clean.mk
10271         * sim/ucsim/main_in.mk
10272         * sim/ucsim/packages_in.mk
10273         * sim/ucsim/gui.src/Makefile.in
10274         * sim/ucsim/gui.src/serio.src/Makefile.in
10275         * sim/ucsim/gui.src/serio.src/clean.mk
10276         * src/Makefile.in
10277         * src/clean.mk
10278         * support/cpp2/Makefile.in
10279         * support/cpp2/clean.mk
10280         * support/makebin/Makefile
10281         * support/makebin/clean.mk
10282         * support/scripts/sdcc_mingw32: --program-suffix no longer needed
10283         * doc/sdccman.lyx: --program-suffix no longer needed
10284
10285 2003-04-23  Karl Bongers(apply patches for Martin Helmling)
10286
10287          * debugger/mcs51/sdcdb.c,simi.c,cmd.c,..
10288          Martin Helmling added support for ddd GUI debugger.
10289          Code added to display assembly, set variables, and other commands
10290          to interface to ddd.
10291
10292 2003-04-23  Bernhard Held <bernhard AT bernhardheld.de>
10293
10294         * as/Makefile: fix target clean
10295         * as/clean.mk: fix target clean
10296         * as/z80/clean.mk: fix target clean
10297
10298 2003-04-22  Bernhard Held <bernhard AT bernhardheld.de>
10299
10300         * Makefile.common.in: added  AT EXEEXT AT
10301         * configure.in: removed all mingw32 stuff
10302         * configure: rebuilt from configure.in
10303         * doc/sdccman.lyx: updated section "installation"
10304         * support/scripts/sdcc_mingw32: adapted to configure
10305         * support/scripts/sdcc_cygwin_mingw32: added
10306
10307 2003-04-22  Scott Dattalo  <scott AT dattalo.com>
10308
10309         * src/pic Added object file support for the PIC port
10310         * src/pic Applied patch from Craig Franklin (this started the object file support)
10311         * src/regression Updated the PIC regression tests for object files
10312
10313 2003-04-20  Borut Razem <borut.razem AT siol.net>
10314
10315         * sdcc/as/mcs51/lklex.c: make getfid() more robust and fixed gcc warning:
10316           lklex.c: In function `getfid':
10317           lklex.c:203: warning: array subscript has type `char'
10318         * src/SDCCglobl.h: small change in stack handling macros, to avoid crash when compiled
10319           with MSVC with global optimization enabled (probably an cl compiler bug ;-)
10320         * support/Util/SDCCerr.c, support/Util/SDCCerr.h: added function fatal(), called from
10321           stack handling macros
10322
10323 2003-04-19  Borut Razem <borut.razem AT siol.net>
10324
10325         * "handling space characters in file path" task:
10326         * src/SDCCmacro.c: fixed bug in handlig quote at the end of line
10327         * support/Util/BuildCmd.c: define par as NULL if parameter value is invalid
10328         * support/Util/MySystem.h: make it self-sufficient
10329         * src/avr/main.c, src/ds390/main.c, src/mcs51/main.c, src/pic/main.c, src/xa51/main.c,
10330           src/z80/main.c, sdcc/as/mcs51/lklex.c:
10331           handling space characters in file path
10332         * src/SDCCmain.c: introduced setDataPaths() function, {datadir} macro
10333           (it will be used by assemblers, which have their own includes, e.g. gpasm)
10334         * support/Util/MySystem.c: handling space characters in executable's path
10335
10336 2003-04-19  Bernhard Held <bernhard AT bernhardheld.de>
10337
10338         * as/z80/Makefile: fix permanent rebuild of z80
10339         * sim/ucsim/gui.src/Makefile.in: target "install" builds the same packages as target "all"
10340         * support/regression/tests/bitfields.c: added Johan's bitfields.c
10341
10342 2003-04-18      Kevin Vigor <kevin AT vigor.nu>
10343
10344         * src/SDCCopt.c: add special case optimization to replace modulo by
10345           a power of two with a bitwise AND.
10346
10347 2003-04-18    <johan AT balder>
10348
10349         * src/mcs51/gen.c (getFreePtr): fixed bug #635354
10350
10351 2003-04-17    <johan AT balder>
10352
10353         * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #716790 and removes lot's of redundant register usage around function calls
10354         * src/mcs51/ralloc.c (packRegisters): fixed bug #720667
10355
10356 2003-04-13  Borut Razem <borut.razem AT siol.net>
10357
10358         * doc/sdccman.lyx: updated info about #pragma SAVE/RESTORE nesting
10359         * configure.in, configure: fixed problems on cygwin/WinCVS environmet with ports.* line endings;
10360           fixed mingw problem in adl_NORMALIZE_PATH
10361
10362 2003-04-12  Borut Razem <borut.razem AT siol.net>
10363
10364         * fixed "#pragma SAVE/RESTORE can not be nested":
10365         * src/SDCC.lex: reworked pragma handling functions
10366         * sdcc/src/SDCCglobl.h: reworked stack handling macros
10367         * support/Util/SDCCerr.c, support/Util/SDCCerr.h: added E_STACK_VIOLATION error
10368
10369 2003-04-12  Bernhard Held <bernhard AT bernhardheld.de>
10370
10371         * src/SDCCutil.c (pathEquivalent): defined but not used
10372         * debugger/mcs51/sdcdb.c: replace SDCC_LIB_DIR
10373         * configure.in: remove sdcc_datadir, sdcc_lib_dir and sdcc_include_dir
10374         * configure: rebuilt from configure.in
10375         * sdccconf_in.h: remove SDCC_LIB_DIR and SDCC_INCLUDE_DIR
10376         * sdcc_vc_in.h: remove SDCC_LIB_DIR and SDCC_INCLUDE_DIR
10377         * device/include/Makefile.in: replace sdcc_datadir
10378         * device/lib/Makefile.in: replace sdcc_datadir
10379         * Makefile.common.in: add LDFLAGS from configure
10380         * packihx/Makefile.in: use LDFLAGS
10381         * src/Makefile.in: use LDFLAGS
10382         * support/cpp2/Makefile.in: add LDFLAGS from configure
10383         * support/makebin/Makefile: use LDFLAGS
10384         * .version: bumped version number to 2.3.5
10385
10386 2003-04-12  Borut Razem <borut.razem AT siol.net>
10387
10388         * completed "different paths" task:
10389         * src/SDCCmacro.c: fixed bug in handling quotes
10390         * src/SDCCutil.c, src/SDCCutil.c: rewritten getPrefixFromBinPath()
10391         * src/SDCCmain.c: _discoverPaths() replaced with setBinPaths(), setIncludePath() and setLibPath()
10392
10393 2003-04-12  Bernhard Held <bernhard AT bernhardheld.de>
10394
10395         * src/pic/pcoderegs.c (Remove1pcode): fix warning on alpha
10396
10397 2003-04-11 kevin Vigor <kevin AT vigor.nu>
10398
10399         * ds390/gen.c ds390/peeph.def: fix bug 706781
10400
10401 2003-04-11  Borut Razem <borut.razem AT siol.net>
10402
10403         * support/Util/dbuf.c, support/Util/dbuf.h: update to version 1.1.1 - re-added C++ stuff to make it still more portable
10404
10405 2003-04-10  Scott Dattalo  <scott AT dattalo.com>
10406
10407         * src/pic/* Applied the pointer-to-function patch from Steve Tell.
10408         * src/pic/* Fixed several pointer bugs. (PIC port broke when the ruonly bit was
10409          set - this bit used to not be set...).
10410         * src/pic/gen.c Fixed buf 609268 ==> x = (x+1) & 0xf; generated
10411           bad code in PIC Port
10412         * src/regression/and2.c added to test bug 609268
10413         * src/regression/Makefile added and2.c to regression test
10414
10415
10416 2003-04-08    <johan AT CP255758-A>
10417
10418         * src/mcs51/gen.c (gen51Code): display reg usage in --icode-in-asm
10419         * src/mcs51/ralloc.c (serialRegAssign): update the registers in use and save some slocs
10420         * src/SDCCicode.h: added riu to show the register usage in --icode-in-asm
10421
10422 2003-04-07  Bernhard Held <bernhard AT bernhardheld.de>
10423
10424         * configure.in: fully support prefix, exec_prefix, datadir, docdir;
10425         fix bug #487815
10426         * support/cpp2/Makefile.in: fix bug #487815
10427         * configure: rebuilt from configure.in
10428         * Makefile.common.in: docdir changed, new path suffixes
10429         * sdccconf_in.h: new RETSIGTYPE, and other PATHs
10430         * sdcc_vc_in.h: reflect changes from sdccconf.h
10431         * src/SDCCglobl.h: remove *SEPARATOR_CHARS, they are now in sdccconf.h
10432         * src/SDCCutil.h: remove BINDIR hack
10433         * doc/sdccman.lyx: update new path hierarchy
10434
10435 2003-04-06    Paul Stoffregen <paul AT pjrc.com>
10436
10437         * src/SDCCpeeph.c: added okToRemoveSLOC test
10438
10439 2003-04-06    Paul Stoffregen <paul AT pjrc.com>
10440
10441         * device/lib/printf_fast.c: added leading zero format ("%06d", etc)
10442
10443 2003-04-06    Paul Stoffregen <paul AT pjrc.com>
10444
10445         * src/SDCCpeeph.c: added labelIsReturnOnly test
10446         * src/mcs51/peeph.def: Peephole 244: replace ljmp to ret with ret
10447
10448 2003-04-05    <johan AT balder>
10449
10450         * src/SDCCcse.c (cseAllBlocks): fixed bug #460088
10451         * src/SDCCloop.c (DEFSETFUNC): fixed bug #460088
10452         * src/SDCCopt.c (eBBlockFromiCode): fixed bug #460088
10453         * src/SDCCast.c: fixed a warning
10454         * src/SDCCast.h: fixed a warning
10455         * src/SDCCicode.c (operandFromAst): fixed a warning
10456
10457 2003-04-04    <johan AT balder>
10458
10459         * src/SDCCloop.c (DEFSETFUNC): undid the fix for bug #519584
10460         * src/SDCCast.c (decorateType): fixed bug #715076
10461         * src/SDCC.y: fixed bug #702907
10462
10463 2003-04-03    <johan AT balder>
10464
10465         * device/lib/_mulint.c (_muluint): new #pragma LESS_PEDANTIC
10466         * src/SDCCopt.c (eBBlockFromiCode): new #pragma LESS_PEDANTIC
10467         * src/SDCCglobl.h (PRAGMA_LESSPEDANTIC): new #pragma LESS_PEDANTIC
10468         * src/SDCC.lex (doPragma): new #pragma LESS_PEDANTIC
10469         * src/SDCCmain.c (parseCmdLine): new #pragma LESS_PEDANTIC
10470
10471 2003-04-03  Bernhard Held <bernhard AT bernhardheld.de>
10472
10473         * _decdptr.c: fix return values
10474         * _gptrget.c: fix return values
10475         * _gptrgetc.c: fix return values
10476         * _gptrput.c: fix return values
10477         * _mulint.c: fix return values
10478         * as/z80/Makefile: fix 'make -j' problem
10479
10480 2003-04-02  Bernhard Held <bernhard AT bernhardheld.de>
10481
10482         * Makefile.common.in: unused PORT, SCC and SAS removed, fixed docdir
10483         * configure.in: big cleanup, updated to autoconf 2.5x
10484         * configure: rebuilt from configure.in
10485         * sdccconf_in.h: new RETSIGTYPE, and other PATHs
10486         * sdcc_vc_in.h: reflect changes from sdccconf.h
10487         * doc/Makefile: fixed a flaw in "make install"
10488
10489 2003-04-02    <johan AT balder>
10490
10491         * src/ds390/gen.c (genCmp): no comments
10492         * src/mcs51/gen.c (genCmp): no comments
10493         * src/SDCCopt.c (eBBlockFromiCode): detect missing return values
10494         * src/SDCCast.c (ast_print): fixed the function type in --dumptree
10495
10496 2003-04-01  Bernhard Held <bernhard AT bernhardheld.de>
10497
10498         * support/regression/generate-cases.py: place generated file in given sub directory
10499         * support/regression/ports/host/spec.mk: prevent removal of testfwk.o
10500         * support/regression/Makefile: improvements for 'make -j';
10501         side effect: it's simpler and faster now
10502
10503 2003-03-31  Borut Razem <borut.razem AT siol.net>
10504
10505         * src/z80/main.c: link-{port} and as-{port} defined without path
10506         * src/src.dsp: support/Util/MySystem.h and src/SDCCutil.h added to project
10507
10508 2003-03-31  Bernhard Held <bernhard AT bernhardheld.de>
10509
10510         * Makefile, src/Makefile.in: add dependencies, so that 'make -j' works
10511
10512 2003-03-30  Borut Razem <borut.razem AT siol.net>
10513
10514         * support/Util/BuildCmd.c, support/Util/BuildCmd.h: rewrite buildCmdLine(),
10515           changed type of list parameter to set
10516         * src/ds390/main.c: changed type of parameter asmOptions to set in _tininative_do_assemble()
10517         * src/port.h: changed type of do_assemble() parameter to set
10518         * src/SDCCmain.c: type of asmOptions changed to set, introduced setParseWithComma(),
10519           sdcpp defined without path, removed variable VersionString, introduced set binPathSet,
10520           definition of "cppoutfilename" macro with NULL value in preProcess()
10521         * src/SDCCglobl.h: included "SDCCset.h", added declaration of setParseWithComma()
10522         * src/SDCCglue.c: removed variable VersionString, inroduced spacesToUnderscores()
10523         * support/Util/MySystem.c, support/Util/MySystem.h: rewrite, char *ExePathList[]
10524           replaced with set *binPathSet
10525         * shash_add() deallocates the item, if allready exsists, before adding the new one
10526         * src/SDCCmacro.c: handling macros with empty or NULL values in _evalMacros()
10527
10528 2003-03-30  Scott Dattalo  <scott AT dattalo.com>
10529
10530         * src/pic/gen.c: Commit patch from Steve Tell <tell AT telltronics.org> that fixes
10531           a nested for loop bug in the PIC port
10532         * src/regression/nestfor.c: new regression test file Steve wrote to test nested
10533           for loops
10534
10535 2003-03-29  Bernhard Held <bernhard AT bernhardheld.de>
10536
10537         * support/Util/dbuf.h: remove C++ stuff to make it portable
10538
10539 2003-03-28  Borut Razem <borut.razem AT siol.net>
10540
10541         * src/SDCC.lex: Fix for bug #711240: dynamic buffer handling of C
10542           literal strings in stringLiteral()
10543         * support/Util/dbuf.c, support/Util/dbuf.h: added: dynamic buffer handling
10544         * src/Makefile.bcc, src/Makefile.in, src/src.dsp: added support/Util/dbuf.c
10545           to the project
10546
10547 2003-03-27  Paul Stoffregen <paul AT pjrc.com>
10548
10549         * src/SDCCpeeph.c (pcDistance): accurate byte distance for mcs51
10550
10551 2003-03-26    <johan AT balder>
10552
10553         * src/mcs51/gen.c (saveRegisters): catched symbol abuse
10554         * src/ds390/gen.c (saveRegisters): catched symbol abuse
10555         * src/SDCCast.c (decorateType): fixed " -v < 3"
10556
10557 2003-03-23  Bernhard Held <bernhard AT bernhardheld.de>
10558
10559         * doc/cdbfile.html: removed, replaced by cdbfileformat.lyx
10560         Added Lenny Story's debug infrastructure changes:
10561         * src/Makefile.in:  added new files cdbFile.c and SDCCdebug.c
10562         * src/Makefile.bcc: added new files cdbFile.c and SDCCdebug.c
10563         * src/cdbFile.c: added
10564         * src/SDCCdebug.c: added
10565         * src/SDCCdebug.h: added
10566         * src/SDCCast.c (createFunction)
10567         * src/SDCCglue.c (emitRegularMap, emitStaticSeg, emitOverlay, glue)
10568         * src/SDCCmain.c (parseCmdLine, main)
10569         * src/SDCCmem.c (redoStackOffsets)
10570         * src/SDCCsymt.c (cdbStructBlock, cdbTypeInfo, cdbSymbol, cdbStruct, cdbStructBlock)
10571         * src/SDCCsymt.h
10572         * src/common.h
10573         * src/avr/gen.c (genAVRCode)
10574         * src/ds390/gen.c (gen390Code)
10575         * src/mcs51/gen.c (gen51Code)
10576         * src/pic/gen.c (genpic14Code)
10577         * src/pic/glue.c (pic14emitRegularMap, pic14emitStaticSeg, pic14emitOverlay, picglue)
10578         * src/xa51/gen.c (genXA51Code)
10579         * src/SDCCast.c: fixed "void foo(void){char c; -c < 0;}"
10580
10581 2003-03-22  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10582
10583         * src/mcs51/gen.c (genCodePointerGet): quicker code for bug #700797
10584         * src/mcs51/peeph.def: added rules 177, 241.x to 243, touched 181, 182.x, 193.x
10585
10586 2003-03-22    <johan AT balder>
10587
10588         * src/SDCCicode.c (geniCodeDerefPtr): fixed bug #698231
10589
10590 2003-03-21  Bernhard Held <bernhard AT bernhardheld.de>
10591
10592         * support/scripts/sdcc_mingw32: adapted to configure from autoconf 2.54
10593         * doc/cdbfileformat.lyx: added, written by Lenny Story
10594         * doc/Makefile: added cdbfileformat.lyx
10595         * doc/clean.mk: added cdbfileformat.lyx
10596
10597 2003-03-20  Bernhard Held <bernhard AT bernhardheld.de>
10598
10599         * src/mcs51/peeph.def: fix bug #705773
10600
10601 2003-03-20    <johan AT balder>
10602
10603         An sfr/sbit can have an "at #" AND an initializer
10604         * src/SDCCsymt.c (checkSClass):
10605         * src/SDCCmem.c (allocGlobal):
10606         * src/SDCCmem.c (allocLocal):
10607         * src/SDCCast.c (createBlock):
10608
10609 2003-03-17  Bernhard Held <bernhard AT bernhardheld.de>
10610
10611         * src/ds390/peeph.def: fix bug #704878: added rule 213.b suggested by Jan Rejlek
10612
10613 2003-03-16    <johan AT balder>
10614
10615         Undid the hackup of const and volatile, the problem is much bigger
10616         * src/SDCC.y:1.65
10617         * src/SDCCast.c:1.171
10618         * src/SDCCglue.c:1.138
10619         * src/SDCCicode.c:1.146
10620         * src/SDCCsymt.c:1.150
10621         * src/SDCCval.c:1.65
10622
10623 2003-03-15  Bernhard Held <bernhard AT bernhardheld.de>
10624
10625         * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #703541
10626         * src/ds390/gen.c (genAddrOf): fixed bug #704087
10627
10628 2003-03-13    <johan AT balder>
10629
10630         Hackup const and volatile modifiers in type chains a bit:
10631         * src/SDCC.y:1.63
10632         * src/SDCCast.c:1.169
10633         * src/SDCCglue.c:1.136
10634         * src/SDCCicode.c:1.143
10635         * src/SDCCsymt.c1.146
10636         * src/SDCCsymt.h1.59
10637         * src/SDCCval.c:1.63
10638
10639 2003-03-12    <johan AT balder>
10640
10641         * src/SDCCBBlock.h: more LRH debugging junk
10642         * src/SDCCcflow.h: more LRH debugging junk
10643         * src/SDCCloop.c: more LRH debugging junk
10644         * src/SDCC.y (struct_declaration): fixed bug #697590
10645         * src/SDCCsymt.[hc] (cloneSpec): NEVER EVER use this again
10646         * src/ds390/gen.c (aopForRemat): fixed bug #700031
10647         * src/SDCCglue.c (emitStaticSeg): fixed bug #700797
10648
10649 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
10650         * src/SDCCpeeph.c: quit being lazy and made proper fix (peephole
10651         test function names must now match exactly).
10652         * src/SDCCcse.c: added special case in findCheaperOp to allow
10653         extending a short integer. Makes less awful code for bug 700121 test case.
10654
10655 2003-03-11  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10656
10657         * as/mcs51/lkmain.c: Added ASlink-Warning to messages
10658         * as/mcs51/lkaomf51.c: Fixed bug when linking asmblink example
10659
10660 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
10661
10662         * src/SDCCpeeph.c: fix so that operandsNotEqualX functions are
10663         actually called (operandsNotEqual() was called for all
10664         operandsNotEqualX tests).
10665
10666 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
10667
10668         * src/SDCCcse.c: fix findCheaperOp to prevent replacing int types
10669         with shorter literals. Fixes bug 700121.
10670
10671 2003-03-11    <johan AT balder>
10672
10673         * src/SDCCsymt.c (compareType): a (void *) can be assigned to any pointer
10674
10675 2003-03-11  Bernhard Held <bernhard AT bernhardheld.de>
10676
10677         * src/SDCCloop.c (mergeRegions): an evil beast is dead
10678         * src/SDCCmain.c (preProcess): minor cleanup: eliminate preOutName
10679
10680 2003-03-10  Borut Razem <borut.razem AT siol.net>
10681
10682         * src/SDCCmain.c: pipe preprocessor's output
10683         * support/Util/MySystem.c, support/Util/MySystem.h: added my_popen()
10684         * sdcc_vc_in.h: define pclose as _pclose for WIN32
10685         * src/SDCCglue.c, src/SDCCglue.h: added set pipeSet, added function closePipes,
10686         which closes all pipes in pipeSet set
10687         * src/SDCCset.c: free deleted item in function deleteSetItem()
10688         * src/src.dsp, src/z80/z80.dsp: files support/Util/BuildCmd.c and support/Util/MySystem.c
10689         moved from z80 to src subproject
10690         * .version: increased version number to 2.3.4
10691
10692 2003-03-10  Bernhard Held <bernhard AT bernhardheld.de>
10693
10694         * support/regression/ports/mcs51/spec.mk: increase timeout for CF's sparc to 30s
10695         * support/regression/ports/ds390/spec.mk: increase timeout for CF's sparc to 25s
10696         * support/regression/ports/xa51/spec.mk: fix typo
10697
10698 2003-03-09  Bernhard Held <bernhard AT bernhardheld.de>
10699
10700         * src/SDCCglobl.h: PATH_MAX is already defined in mingw32 headers
10701
10702 2003-03-09  Borut Razem <borut.razem AT siol.net>
10703
10704         * src/SDCCmain.c: pipe preprocessor's output
10705         * support/Util/MySystem.c, support/Util/MySystem.h: added my_popen()
10706         * sdcc_vc_in.h: define pclose as _pclose for WIN32
10707         * src/SDCCglue.c, src/SDCCglue.h: added set pipeSet, added function closePipes,
10708         which closes all pipes in pipeSet set
10709         * src/SDCCset.c: free deleted item in function deleteSetItem()
10710         * src/src.dsp, src/z80/z80.dsp: files support/Util/BuildCmd.c and support/Util/MySystem.c
10711         moved from z80 to src subproject
10712
10713 2003-03-09  Borut Razem <borut.razem AT siol.net>
10714
10715         * src/SDCCglue.c: re-implemented tempfilename() and tempfile(): using mkstemp() if available
10716         * src/SDCCsymt.h: fixed MSVC and BORLANDC compilation (included SDCCglobl.h instead srccconf.h)
10717         * sdcc_vc_in.h: explicitly undefined HAVE_MKSTEMP which is not available on BORLANDC and MSVC
10718         * src/SDCCset.h: removed inclusion of sdccconf.h or sdcc_vc.h
10719         * src/SDCCglobl.h: unification of WIN32 native definitions
10720
10721 2003-03-09  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10722
10723         * src/mcs51/gen.c: applied in-/dec patch mentioned on sdcc-devel 2003-03-01
10724
10725 2003-03-08  Bernhard Held <bernhard AT bernhardheld.de>
10726
10727         * src/configure.in:   check for endianess (even while cross-compiling)
10728         * src/configure:      check for endianess (even while cross-compiling)
10729         * src/configure_in.h: check for endianess (even while cross-compiling)
10730         * src/avr/gen.c:        remove old endianess stuff
10731         * src/mcs51/gen.c:      remove old endianess stuff
10732         * src/ds390/gen.c:      remove old endianess stuff
10733         * src/pic/gen.c:        remove old endianess stuff
10734         * src/pic/genarith.c:   remove old endianess stuff
10735         * src/pic/glue.c:       fix endianess check
10736         * src/pic16/gen.c:      remove old endianess stuff
10737         * src/pic16/genarith.c: remove old endianess stuff
10738         * src/pic16/glue.c:     fix endianess check
10739         * src/xa51/gen.c:       remove old endianess stuff
10740         * src/z80/gen.c:        fix endianess check
10741         * src/SDCCglue.c:       fix endianess check
10742         * src/ds390/peeph.def: fix bug 700036
10743
10744 2003-03-08  Bernhard Held <bernhard AT bernhardheld.de>
10745
10746         * src/SDCCsymt.h: use appropriate data-types on host for SDCC's int and long
10747         * src/configure: find appropriate data-types on host for SDCC's int and long
10748         * src/configure.in: find appropriate data-types on host for SDCC's int and long
10749         * src/sdccconf_in.h: find appropriate data-types on host for SDCC's int and long
10750         * src/xa51/gen.c: use %d, not %ld for 4 byte variables
10751
10752 2003-03-07    <johan AT balder>
10753
10754         Just a big NOOP:
10755                 some minor cleanups before the big shot
10756                 OP_DEFS and OP_USES now use Kevin's protection
10757                 new option --nolabelopt
10758
10759         * src/SDCCBBlock.c:
10760         * src/SDCCast.c,:
10761         * src/SDCCcflow.c:
10762         * src/SDCCcse.c:
10763         * src/SDCCicode.c:
10764         * src/SDCCicode.h:
10765         * src/SDCClabel.c:
10766         * src/SDCCloop.c:
10767         * src/SDCCmain.c:
10768         * src/ds390/ralloc.c:
10769         * src/mcs51/ralloc.c:
10770         * src/pic/ralloc.c:
10771         * src/xa51/ralloc.c:
10772         * src/z80/ralloc.c:
10773
10774 2003-03-06  Bernhard Held <bernhard AT bernhardheld.de>
10775
10776         * src/pic/pcode.c (get_op): fix 64 bit warnings
10777         * src/pic/pcode.c (pCode2str): fix 64 bit warnings
10778         * src/SDCChasht.c (newHashTable): fix 64 bit warnings
10779         * src/SDCCsymt.c (checkTypeSanity): fix 64 bit warnings
10780         * support/regression/tests/malloc.c: fix 64 bit warnings
10781
10782 2003-03-04  Bernhard Held <bernhard AT bernhardheld.de>
10783
10784         * src/mcs51/gen.c (genMinus): fixed bug 696436
10785
10786 2003-03-02  Borut Razem <borut.razem AT siol.net>
10787
10788         * src/SDCCmain.c: added BORLANDC, corrected MSVC in printVersionInfo()
10789
10790 2003-02-26  Bernhard Held <bernhard AT bernhardheld.de>
10791
10792         * configure.in: test for mkstemp
10793         * sdccconf_in.h: add HAVE_MKSTEMP
10794
10795 2003-02-24  Bernhard Held <bernhard AT bernhardheld.de>
10796
10797         * device/include/ctype.h: removed warning while using --stack-auto
10798         * device/include/malloc.h: removed warning while using --stack-auto
10799         * device/include/string.h: removed warning while using --stack-auto
10800
10801 2003-02-23  Borut Razem <borut.razem AT siol.net>
10802
10803         * src/asm.h: corrected assertion in function printILine(): _pipe() was not executed on MSVC,
10804         because NDEBUG is defined (see man assert)
10805         * sdcc_vc_in.h: vsnprintf is defined as _vsnprintf on MSVC
10806
10807 2003-02-23  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10808
10809         * src/mcs51/gen.c (genUminusFloat): avoided dptr in-/decrement for xdata variables
10810         * src/mcs51/peeph.def: added rule suggested by Gernot Fink, white space/comment changes
10811
10812 2003-02-18  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10813
10814         * src/SDCCpeeph.c: added peephole conditions testing for same arguments
10815         * src/mcs51/peeph.def: added rules 238a-d which remove redundant moves
10816
10817 2003-02-18    <johan AT balder>
10818
10819         * as/mcs51/asmain.c (asmbl): module can start with a digit
10820         * as/z80/asmain.c (asmbl): module can start with a digit
10821
10822 2003-02-16  Bernhard Held <bernhard AT bernhardheld.de>
10823
10824         * sim/ucsim/mkecho: inserted #!/bin/sh for Cygwin, so that it's executable
10825         * src/asm.c: fix pipe() for Mingw32
10826
10827 2003-02-15  Bernhard Held <bernhard AT bernhardheld.de>
10828
10829         * src/SDCCglue.h: make tmpfileNameSet available for preOutName
10830         * src/SDCCmain.c (preProcess): make sure, that preOutName will be deleted;
10831         make -V work again; --c1mode reads now from stdin
10832         * doc/sdccman.lyx: added --c1mode
10833         * support/Util/SDCCerr.c: new messages for c1 mode
10834         * support/Util/SDCCerr.h: new messages for c1 mode
10835         * src/SDCC.lex (checkCurrFile): test if fullSrcFileName is NULL for c1mode
10836
10837 2003-02-15    <johan AT balder>
10838
10839         * src/asm.c: new options: --no-c-code-in-asm and --i-code-in-asm
10840
10841 2003-02-14  Bernhard Held <bernhard AT bernhardheld.de>
10842
10843         * doc/sdccman.lyx: Environment variables, -o and other minor things
10844
10845 2003-02-14    <johan AT balder>
10846
10847         * src/xa51/main.c: before anyone really tries to use it :)
10848
10849         * Install doc's in share/sdcc/doc
10850         * removed some obsolete files
10851         * Do a proper make distclean and uninstall
10852         M Makefile.common.in
10853         R sdccbuild.sh
10854         M as/Makefile
10855         M device/include/Makefile.in
10856         M device/lib/Makefile.in
10857         M doc/sdccman.lyx
10858         M link/Makefile
10859         M sim/ucsim/doc/Makefile.in
10860         M src/clean.mk
10861         R src/avr/peeph.rul
10862         R src/xa51/peeph.rul
10863         M support/cpp2/Makefile.in
10864         M support/makebin/Makefile
10865
10866
10867 2003-02-13  Bernhard Held <bernhard AT bernhardheld.de>
10868
10869         * support/regression/ports/host/spec.mk: use cc as host compiler for max osx
10870
10871 2003-02-10  Borut Razem <borut.razem AT siol.net>
10872
10873         * doc/bccinst.txt, packihx/packihx.c, sdcc_vc_in.h, src/SDCCset.h,
10874         support/cpp2/config.in: Borland C++ build doesn't depend on Cygwin configure
10875         * Bcc.ini, Makefile.bcc, as/mcs51/Makefile.bcc,
10876         device/examples/ds390/tinitalk/Makefile.bcc, packihx/Makefile.bcc,
10877         support/cpp2/Makefile.bcc, src/Makefile.bcc, src/avr/Makefile.bcc,
10878         src/ds390/Makefile.bcc, src/izt/Makefile.bcc, src/mcs51/Makefile.bcc,
10879         src/pic/Makefile.bcc, src/pic16/Makefile.bcc, src/xa15/Makefile.bcc,
10880         src/z80/Makefile.bcc: Borland Makefile cleanup
10881         * as/z80/Makefile.bcc: Added Borland Makefile
10882         * support/cpp2/borland.h: Removed
10883
10884 2003-02-10  Bernhard Held <bernhard AT bernhardheld.de>
10885
10886         * doc/sdccman.lyx: new pragma NOIV by "Johannes Stezenbach" <js AT convergence.de>
10887         * src/SDCC.lex: new pragma NOIV
10888         * src/SDCCglobl.h: new pragma NOIV
10889         * src/SDCCmem.c: new pragma NOIV
10890
10891 2003-02-09  Bernhard Held <bernhard AT bernhardheld.de>
10892
10893         * src/SDCCmain.c: signal handling is switched off by SDCC_LEAVE_SIGNALS
10894
10895 2003-02-09  Bernhard Held <bernhard AT bernhardheld.de>
10896
10897         * src/SDCCmain.c: signal handling is switched off by --debug
10898         * doc/Makefile: small fix for install; use clean.mk again
10899         * doc/clean.mk: clean *.pdf and *.html too
10900
10901 2003-02-08  Bernhard Held <bernhard AT bernhardheld.de>
10902
10903         * device/lib/_mulint.c: small fix for large/ds390 --int-long-reent resp. --stack-auto
10904         * device/lib/printfl.c: fix a ds390 bug by making it portable
10905         * src/SDCCsymt.c (initCSupport): fix compile warning on Cygwin
10906         * src/SDCCopt.c (cnvToFloatCast): fix compile warning on Cygwin
10907         * src/SDCCopt.c (cnvFromFloatCast): fix compile warning on Cygwin
10908         * debugger/mcs51/cmd.c: converted multi-line string literals
10909         * sim/ucsim/globals.cc: converted multi-line string literals
10910         * src/SDCCmain.c: introduced signal handler to remove temp files
10911         * doc/Makefile: small tweaks, implement clean
10912         * doc: removed generated files
10913
10914 2003-02-05  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10915
10916         * as/mcs51/aslink.h, as/mcs51/lkihx.c, as/mcs51/lkrloc.c:  Applied
10917         patch from Jan Rejlek <jr AT apex-lib.cz> to fix Bug 677692: "Extended
10918         Address Record is not correctly generated for DS390."
10919
10920 2003-02-02  Borut Razem <borut.razem AT siol.net>
10921
10922         * Makefile.bcc: removed non existing cpp project and non compilable izt project from makefile
10923         * as/mcs51/asm.h: fixed compilation with Borland C
10924         * support/cpp2/Makefile.bcc: added rule to generate auto-host.h
10925         * support/cpp2/auto-host_vc_in.h: fixed compilation with Borland C
10926         * src/mcs51/mcs51a.dsp: corrected misspelled project name from msc51a to mcs51a
10927         * src/avr/Makefile.bcc, src/ds390/Makefile.bcc, src/izt/Makefile.bcc,
10928         src/mcs51/Makefile.bcc, src/pic16/Makefile.bcc, src/xa51/Makefile.bcc,
10929         src/z80/Makefile.bcc: delete $(LIB) only if exist
10930         * src/Makefile.bcc, src/pic/Makefile.bcc:  fixed compilation with Borland C
10931
10932 2003-02-02  Bernhard Held <bernhard AT bernhardheld.de>
10933
10934         * device/include/malloc.h: introduced NULL
10935         * device/include/string.h: introduced NULL
10936         * device/include/stdlib.h: introduced NULL
10937         * device/lib/_memcpy.c: removed NULL
10938         * device/lib/_strcat.c: removed NULL
10939         * device/lib/_strchr.c: removed NULL
10940         * device/lib/_strcmp.c: removed NULL
10941         * device/lib/_strcpy.c: removed NULL
10942         * device/lib/_strcspn.c: removed NULL
10943         * device/lib/_strlen.c: removed NULL
10944         * device/lib/_strncat.c: removed NULL
10945         * device/lib/_strncmp.c: removed NULL
10946         * device/lib/_strncpy.c: removed NULL
10947         * device/lib/_strpbrk.c: removed NULL
10948         * device/lib/_strrchr.c: removed NULL
10949         * device/lib/_strspn.c: removed NULL
10950         * device/lib/_strstr.c: removed NULL
10951         * device/lib/_strtok.c: removed NULL
10952         * device/lib/malloc.c: removed NULL, include own header
10953
10954 2003-02-02    <johan AT balder>
10955
10956         * 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
10957         * support/regression/fwk/lib/testfwk.c: div and mod isn't broken anymore
10958         * regressions ds390/spec.mk and mcs51/spec.mk (timeout): my good old balder isn't fast enough for some tests
10959         * src/z80/gen.c (genZ80Code): added c-lines in asm comments
10960         * as/z80/asm.h (NINPUT): increased for long c-comments in regression tests
10961         * src/z80/gen.c (genRightShiftLiteral): fixed the (char)(-3)>>8 (I think)
10962
10963 2003-02-01  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10964
10965         * src/SDCCmain.c: Fixed bug 678574: "ds390: ASlink-Error-Stack overlaps
10966         area 'DATA'"
10967
10968 2003-02-01    <johan AT balder>
10969
10970         * src/SDCCval.c (valBitwise): fixed Karl's "2 | (1<<8)"
10971
10972 2003-01-31    <johan AT CP255758-A>
10973
10974         * src/ds390/main.c (_ds390_genAssemblerPreamble): applied Jan Rejlek's >64K startup patch
10975
10976 2003-01-30    <johan AT balder>
10977
10978         * src/SDCCBBlock.c: automatic bug detection
10979         * src/SDCCicode.c: automatic bug detection
10980
10981 2003-01-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10982
10983         * src/SDCCglobl.h:   now --xram-size 0 works
10984         * src/SDCCmain.c:    now --xram-size 0 works
10985
10986 2003-01-29    <johan AT balder>
10987
10988         * src/almosteverything: changed OP_DEFS and OP_USES from macros to functions to catch symbol abuse (a hot topic in the bug list :)
10989
10990 2003-01-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10991
10992         * as/mcs51/aslink.h: Added options --xram-size and --code-size
10993         * as/mcs51/lkdata.c: Added options --xram-size and --code-size
10994         * as/mcs51/lkmain.c: Added options --xram-size and --code-size
10995         * as/mcs51/lkmem.c:  Added options --xram-size and --code-size
10996         * src/SDCCglobl.h:   Added options --xram-size and --code-size
10997         * src/SDCCmain.c:    Added options --xram-size and --code-size
10998
10999 2003-01-28  Bernhard Held <bernhard AT bernhardheld.de>
11000
11001         * src/ds390/gen.c: fix deps by replacing <common.h> with "common.h"
11002         * src/SDCC.lex: rename P_OVERLAY to P_OVERLAY_ for cross-gcc 3.2 MINGW32
11003
11004 2003-01-27    <johan AT balder>
11005
11006         * src/SDCC.y: fixed bug #613764
11007
11008 2003-01-26    <johan AT balder>
11009
11010         * src/SDCClrange.c:  fixed Bernhard's "char * code ptr = &c"
11011         * src/SDCCsymt.h: fixed bug #673374
11012         * src/SDCCglue.c: fixed bug #661910
11013         * src/SDCCast.c: fixed bug #458099 and 673374
11014
11015 2003-01-26  Bernhard Held <bernhard AT bernhardheld.de>
11016
11017         * as/mcs51/strcmpi.c: added, provides Aurelien Jarno's as_strcmpi(); strcmpi() is not ANSI
11018         * as/mcs51/strcmpi.h: added
11019         * as/mcs51/asm.h: remove ugly "#define strcmpi strcmp"
11020         * as/mcs51/aslink.h: remove ugly "#define strcmpi strcmp"
11021         * as/mcs51/asmain.c: strcmpi -> as_strcmpi
11022         * as/mcs51/assym.c: strcmpi -> as_strcmpi
11023         * as/mcs51/lkmem.c: strcmpi -> as_strcmpi
11024         * as/mcs51/lknoice.c: strcmpi -> as_strcmpi
11025         * as/mcs51/lksym.c: strcmpi -> as_strcmpi
11026         * as/mcs51/Makefile.aslink: new module strcmpi
11027         * as/mcs51/Makefile.asx8051: new module strcmpi
11028         * as/mcs51/Makefil.bcc: new module strcmpi
11029         * as/mcs51/Makefile.in: new module strcmpi
11030         * sim/ucsim/s51.src/uc390.cc (get_mem_size): make RAM big enough for tinibios
11031
11032 2003-01-26    <johan AT balder>
11033
11034         * src/SDCCglue.c: reverted back to 1.124
11035         * src/SDCCast.c: reverted back to 1.156
11036         * src/mcs51/gen.c (aopGet): applied Frieder's efficiency patch
11037
11038 2003-01-25    <johan AT balder>
11039
11040         * src/SDCCglue.c: A better fix for bug #661910
11041         * src/SDCCast.c: A better fix for bug #661910
11042         * src/SDCCglue.c (emitRegularMap): That was a little too efficient
11043
11044 2003-01-24  Bernhard Held <bernhard AT bernhardheld.de>
11045
11046         * src/Makefile.in: remove spawn.o
11047         * src/SDCCmain.c: remove spawn.h
11048         * src/SDCCmain.c (printVersionInfo): report MINGW32 instead of UNIX
11049         * src/spawn.c: removed
11050         * src/spawn.h: removed
11051         * support/regression/ports/ds390/spec.mk: link with -r
11052
11053 2003-01-24    <johan AT CP255758-A>
11054
11055         * src/ds390/gen.c (aopOp): fixed bug #667458
11056         * src/SDCCglue.c (emitRegularMap): fixed bug #458099 again
11057         * src/SDCCast.c (createIvalCharPtr): fixed bug #661910
11058         (createIvalCharPtr): an ival doesn't always have a storage class anymore
11059
11060 2003-01-24  Bernhard Held <bernhard AT bernhardheld.de>
11061
11062         * src/mcs51/peeph.def: better assembler identation by Frieder
11063         * src/mcs51/gen.c: better assembler identation by Frieder
11064
11065 2003-01-22  Bernhard Held <bernhard AT bernhardheld.de>
11066
11067         * as/z80/string.h: removed for gcc 3.2
11068         * support/makebin/makebin.c: #include <string.h> for gcc 3.2
11069         * src/pic/pcode.c (get_op_from_instruction): fix concatenation of string literals with __FUNCTION__ for gcc 3.2
11070
11071 2003-01-19  Bernhard Held <bernhard AT bernhardheld.de>
11072
11073         * src/SDCCmain.c (linkEdit): rename mem and map files even in case of failure
11074         * src/SDCCpeeph.c (replaceRule): fix bug #663503
11075         * support/regression/Makefile: separate temp files for ports
11076         * support/regression/generate-cases.py: separate temp files for ports
11077         * src/mcs51/peeph.def: Frieder: removed 237 (obsolete by 236g and 105); added 237 a/b
11078         * src/ds390/peeph.def: Frieder: removed 237 (obsolete by 236g and 105); added 237 a/b
11079
11080 2003-01-19  Bernhard Held <bernhard AT bernhardheld.de>
11081
11082         * moved tinitalk to device/examples/ds390
11083
11084 2003-01-14  Bernhard Held <bernhard AT bernhardheld.de>
11085
11086         * as/mcs51/lkmem.c: rflag is for DS390
11087         * src/SDCCglobl.h: removed out_name and options stackOnData, genericPtr
11088         * src/SDCCmain.c (optionsTable, setDefaultOptions): removed --stack-after-data and --generic
11089                          (linkEdit): move mem- and map-files the same way as ihx-files
11090         * src/z80/main.c (_setDefaultOptions): removed --generic
11091         * src/SDCCmain.c (_processC1Arg, parseCmdLine, main): --c1mode works again
11092         * src/SDCCglue.c (createInterruptVect, glue): --c1mode works again
11093         * src/pic/glue.c (picglue): --c1mode works again
11094         * src/pic16/glue.c (pic16glue): --c1mode works again
11095         * src/asm.c (printCLine): fix #660034
11096
11097 2003-01-13  Bernhard Held <bernhard AT bernhardheld.de>
11098
11099         * src/ds390/peeph.def: fix #123; add 14 rules by Fiorenzo D. Ramaglia <fd.ramaglia AT tin.it>, 1 by Frieder
11100         * src/mcs51/peeph.def: fix #123; add 14 rules by Fiorenzo, 1 by Frieder
11101         * src/mcs51/gen.c (genFunction): emit r0 instead of ar0 by Fiorenzo
11102         * as/mcs51/lkmem (summary): better fix for sp problem
11103         * src/SDCCglue.c (glue): __start_stack - 1, saves 1 byte!
11104         * src/ds390/main.c (_ds390_finaliseOptions, _tininative_finaliseOptions): stack_loc = 0x400008
11105         * support/regression/ports/*/spec.mk: moving testfwk-object to port dir allow parallel execution of regression tests
11106                                               remove --stack-after-data
11107
11108 2003-01-12  Bernhard Held <bernhard AT bernhardheld.de>
11109
11110         * src/SDCCmain.c (main): port->finaliseOptions() moved for z80 linking
11111         * src/SDCCutil.c (join): ugly bug: missing '\0'
11112         * as/mcs51/lkmem.c (summary): sp on address 7 is safe
11113
11114 2003-01-11  Bernhard Held <bernhard AT bernhardheld.de>
11115
11116         * src/SDCCmain.c (assemble, linkEdit): preparations for -o
11117         * src/port.h: typo
11118         * src/pic/main.c (_asmCmd): gpasm supports -o
11119         * src/z80/main.c: more general macros
11120         * device/lib/Makefile.in: remove intermediate files
11121
11122 2003-01-11  Bernhard Held <bernhard AT bernhardheld.de>
11123
11124         * .version: Bumped version number to 2.3.3
11125         * src/SDCCBBlock.c: new option -o
11126         * src/SDCCglobl.h: new option -o
11127         * src/SDCCglue.c: new option -o
11128         * src/SDCCmain.c: new option -o
11129         * src/asm.c: new option -o
11130         * src/ds390/main.c: new option -o
11131         * src/pic/glue.c: new option -o
11132         * src/pic/pcode.c: new option -o
11133         * src/pic/ralloc.c: new option -o
11134         * src/pic16/glue.c: new option -o
11135         * src/pic16/pcode.c: new option -o
11136         * src/pic16/ralloc.c: new option -o
11137         * src/z80/main.c: new option -o
11138         * device/lib/Makefile.in: use -o
11139         * support/regression/ports/ds390/spec.mk: use -o
11140         * support/regression/ports/gbz80/spec.mk: use -o
11141         * support/regression/ports/mcs51/spec.mk: use -o
11142         * support/regression/ports/mcs51-stack-auto/spec.mk: use -o
11143         * support/regression/ports/z80/spec.mk: use -o
11144         * support/regression/ports/ucz80/spec.mk: use -o
11145         * support/regression/ports/xa51/spec.mk: use -o
11146         * support/regression/fwk/lib/timeout.c: fix usage string
11147
11148 2003-01-09  Bernhard Held <bernhard AT bernhardheld.de>
11149         * src/mcs51/gen.c (genPlus): replaced "mov b,acc" by "mov b,a" Fiorenzo D. Ramaglia <fd.ramaglia AT tin.it>
11150
11151 2003-01-07    <johan AT balder>
11152
11153         * src/SDCCast.c (decorateType): fixed bug #600035
11154
11155 2003-01-07  Bernhard Held <bernhard AT bernhardheld.de>
11156         * as/mcs51/lkmem.c: added several l-modifiers to printf to remove warnings
11157         * as/mcs51/lkaomf51.c: #include <ctype.h> to remove warnings
11158         * src/pic/main.c (_hasNativeMulFor): outcommented unused variables to remove warnings
11159         * src/pic/pcode.c: outcommented unused variable to remove warnings
11160         * src/pic/ralloc.c: outcommented unused variable to remove warnings
11161
11162 2003-01-06    <karl AT turbobit.com>
11163         * sim/ucsim/cmd.src/command.cc: fixed so "break xram r 0x7654" works again in
11164    regression tests.
11165
11166 2003-01-06    <johan AT balder>
11167
11168         * src/SDCCicode.c: fixed array add
11169
11170 2002-01-05  Bernhard Held <bernhard AT bernhardheld.de>
11171         * src/SDCCmacro.c: MAX_STRING_LENGTH increased to 2048; was too small for regression tests
11172         * support/regression/ports/host/support.c: #include <stdarg.h> for gcc 3.2
11173
11174 2003-01-04    <johan AT balder>
11175
11176         * src/SDCCval.c (getNelements): fixed the initialized array of structures
11177
11178 2002-12-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11179         * as/mcs51/Makefile.bcc: fixed typo lkomf51.o -> lkaomf51.o
11180
11181 2002-12-28  Bernhard Held <bernhard AT bernhardheld.de>
11182         * src/mcs51/peeph.def: added rules 234 and 235 from Frieder Ferlemann <frieder.ferlemann AT web.de>
11183         * support/regression/tests/bug-524697.c: fit mem usage into 8032
11184
11185 2002-12-28  Bernhard Held <bernhard AT bernhardheld.de>
11186         * src/mcs51/gen.c (aopGetUsesAcc): inserted missing "return FALSE"
11187
11188 2002-12-27  Bernhard Held <bernhard AT bernhardheld.de>
11189         * as/mcs51/Makefile.in: fixed typo lkomf51.o -> lkaomf51.o
11190
11191 2002-12-26  Bernhard Held <bernhard AT bernhardheld.de>
11192         * src/mcs51/main.c: removed {bindir}{sep} from aslink
11193
11194 2002-12-10  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11195
11196     * in /sdcc/as/mcs51/ changed these files in order to create an
11197     aomf51 file: aslink.h, lkdta.c, lklex.c, lklibr.c, lklist.c,
11198     lkmain.c.  Also added: lkmem.c and lkaomf51.c.  Changed the
11199     following files to include the previous two files: aslink.dsp,
11200     Makefile.aslink, Makefile.bcc, and Makefile.in.
11201
11202     * Changed /sdcc/src/SDCCmain.c so it creates files with extension
11203     .adb instead of .cdb
11204
11205 2002-11-09  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11206
11207         * /sdcc/as/mcs51/lklist.c: Now reports memory usage using the
11208         value from option --iram-size.
11209
11210 2002-09-20  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11211
11212         * /sdcc/as/mcs51/lklist.c: added boundary check before using
11213         dram[] array.
11214
11215 2002-09-18    <wiml AT hhhh.org>
11216
11217         * SDCClrange.h: exposed setFromRange() and setToRange()
11218         * mcs51/ralloc.c: fixed over-eager packRegsForSupport() and
11219           packRegsForAccUse() (bug 542397)
11220         * mcs51/gen.c: MOVA() is now a function to avoid calling aopGet()
11221           multiple times and emitting the fetch operations more than once
11222           added aopGetUsesAcc() function to allow binary operators to
11223           fetch their operands in the correct order; made genMinus() emit
11224           compact code for X = LITERAL - Y
11225
11226 2002-09-00  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11227         * /sdcc/as/mcs51/lklist.c: Fixed incorrect number of parameters to
11228         sprintf() in line 1267.
11229
11230 2002-09-08  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11231         * /sdcc/src/SDCCglue.c: Generate areas REG_BANK_[0-3] only for 8051
11232         like ports.
11233
11234 2002-09-04  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11235         Changes to aslink (All the changes are marked with 'JCF'):
11236
11237         * /sdcc/as/mcs51/aslink.h: External definition of sflag and
11238         summary().
11239
11240         * /sdcc/as/mcs51/lkarea.c: Computes the size of area BSEG_BYTES from
11241         area BSEG.  Also moves, if possible, the DATA area down into the internal
11242         ram so more space is available.
11243
11244         * /sdcc/as/mcs51/lkdata.c: Definition of memory summary output flag
11245         sflag.
11246
11247         * /sdcc/as/mcs51/lklist.c: For the BSEG area report the size in bits,
11248         not bytes.  Function summary() which creates a memory usage summary
11249         file with extension .mem.  Reports of overlaping stack and small stack
11250         size.  If the space for the stack is less than 16 bytes aslink trows a
11251         warning.
11252
11253         * /sdcc/as/mcs51/lkmain.c: Creation of some of the default areas for
11254         the 8051.  Option 'y' for memory summary output file.
11255
11256         Changes to sdcc (All the changes are marked with 'JCF'):
11257
11258         * /sdcc/src/SDCCglobl.h: External definition of RegBankUsed[4].
11259
11260         * /sdcc/src/SDCCglue.c:  If a register bank is used, creates an
11261         overlaying area for it (uses RegBankUsed[4]).
11262
11263         * /sdcc/src/SDCCmain.c: Definition RegBankUsed[4]; marks register
11264         bank zero as used by default.  By default aslink locates the stack
11265         (equivalent to --stack-after-data).  Pass option 'y' to aslink for
11266         the creation of the .mem file.  Delegates the allocation of data area
11267         to aslink (it is not longer 0x30 by default).  If --stack-loc passes
11268         the begining of the stack area to aslink.
11269
11270         * /sdcc/src/SDCCmem.c:  If a register bank is used, marks it so
11271         glue() in SDCCglue.c creates an area for it.
11272
11273 2002-09-03  Borut Razem <borut.razem AT siol.net>
11274         * sdcc/src/SDCCglue.c, sdcc/src/SDCCglue.h, sdcc/src/SDCCmain.c,
11275         sdcc/src/pic/glue.c:
11276         introduced atexit() handler for teporay files removal in case of
11277         errors, assertions, ...
11278
11279 2002-08-29  Borut Razem <borut.razem AT siol.net>
11280         * sdcc/support/cpp2/auto-host_vc_in.h:
11281         re-definition of O_BINARY and other O_XXX as _O_BINARY and _O_XXX, so the problem
11282         with the returned value from read() in sdcc/support/cpp2/cppfiles.c is solved for MSC.
11283         Maybe there is a similar problem with BORLANDC? It should be checked!
11284
11285         * sdcc/src/ds390/ralloc.c, sdcc/src/mcs51/ralloc.c, sdcc/src/z80/ralloc.c:
11286         corrected improper use of assert: the assignment to clr variable was done inside the assert.
11287         In case that NDEBUG was defined, the assert macro was substituted with no-op, so the assignment
11288         was not executed, and the compiler (cl) launched a warning:
11289         ralloc.c(1442) : warning C4700: local variable 'clr' used without having been initialized
11290
11291 2002-08-28  Bernhard Held <bernhard AT bernhardheld.de>
11292         * src/SDCCglue.c (printIvalArray): iterative calculation of array length
11293
11294 2002-08-28  Jesus Calvino-Fraga and Borut Razem <borut.razem AT siol.net>
11295         * sdcc/sdcc.dsw: added sdcpp, sdcppa, yacc, conf projects
11296
11297         * sdcc/src/src.dsp, sdcc/src/avr/avr.dsp, sdcc/src/ds390/ds390.dsp,
11298           sdcc/src/mcs51/mcs51.dsp, sdcc/src/pic/pic.dsp, sdcc/src/z80/z80.dsp,
11299           sdcc/src/xa51/xa51.dsp, sdcc/src/avr/avra.dsp,
11300           sdcc/src/ds390/ds390a.dsp, sdcc/src/mcs51/mcs51a.dsp,
11301           sdcc/src/pic/pica.dsp, sdcc/src/z80/z80a.dsp,
11302           sdcc/src/xa51/xa51a.dsp, sdcc/as/as_z80.dsp,
11303           sdcc/as/aslink.dsp, sdcc/as/asx8051.dsp, sdcc/packihx/packihx.dsp:
11304         - added Release configuration in VS projects
11305         - review of compiler an linker options
11306         - VC .exe files are generated in bin_vc directory, not to interfere
11307           with binaries generated from other projects (cygwin, mingw, bcc ...)
11308
11309         * sdcc/src/yacc.dsp: added
11310
11311         * sdcc/config.dsp, sdcc/configure_vc.awk, sdcc/sdcc_vc_in.h:
11312         added - genarate sdcc_vc.h using sdcc_vc_in.h as template
11313         and insert the version number definitions from .version
11314
11315         * sdcc/support/cpp2/sdcpp.dsp: added - VC project for sdcpp
11316
11317         * sdcc/support/cpp2/sdcppa.dsp, sdcc/support/cpp2/auto-host_vc_in.h:
11318         added - genarate auto-host.h using auto-host_vc_in.h as template
11319
11320         * sdcc/sdcc_vc.h,
11321         removed from CVS, generated automatically
11322
11323 2002-08-25  Bernhard Held <bernhard AT bernhardheld.de>
11324         * support/scripts/inc2h.pl: use gputils or gpasm (from Nathan Hurst)
11325
11326 2002-08-11  Borut Razem <borut.razem AT siol.net>
11327         * support/Util/NewAlloc.c: removed unneeded #include "sdccconf.h" (suggested by Jesus Calvino-Fraga)
11328
11329 2002-08-10  Borut Razem <borut.razem AT siol.net>
11330         * src/SDCCmain.c (main):
11331         file preOutName was unlinked before closed. This seems to be OK on UNIX and cygwin
11332         platforms, but it doesn't work with Visual Studio: the opened file can not be removed.
11333         The consequence was that some temporary files were not removed.
11334
11335         * src/SDCCglue.c:
11336         unification of code in functions tempfilename() and tempfile():
11337         function tempnam() is defined in Visual Studio 6.0 and .NET
11338
11339         * sdcc/sdcc.dsw: removed project sdcpp, added project xa51a
11340
11341         * sdcc/src/src.dsp, sdcc/src/avr/avr.dsp, sdcc/src/ds390/ds390.dsp,
11342           sdcc/src/mcs51/mcs51.dsp, sdcc/src/pic/pic.dsp, sdcc/src/z80/z80.dsp:
11343         - removed compiler command line option /WX: Treats all warnings as errors
11344         - update a list of source files, included into the project
11345
11346         * sdcc/src/avr/avra.dsp, sdcc/src/ds390/ds390a.dsp, sdcc/src/mcs51/mcs51a.dsp,
11347           sdcc/src/pic/pica.dsp, sdcc/src/z80/z80a.dsp:
11348         changed project type to Generic Project so that can be correcly converted to VS.NET project
11349
11350         * sdcc/as/mcs51/asm.h: definition of PATH_MAX for MSC
11351
11352         * sdcc/src/SDCCast.c: solved MSC error in function decorateType()
11353
11354         * sdcc/src/SDCC.y: added missing ending ';' to rules to get rid of bison warnings
11355
11356         * dcc/src/ds390/ralloc.c, sdcc/src/mcs51/ralloc.c:
11357         added return 0 statements after assert() to make compiler happy
11358
11359         * sdcc/src/xa51/peeph.rul, sdcc/src/xa51/peeph.def, sdcc/src/z80/ralloc.c:
11360         added newline in the def file to keep MSC compiler satisfied
11361
11362         * sdcc/src/z80/gen.c:
11363         - function strcasecmp() is not defined in MSC (and probably also in BORLANDC),
11364           so it is replaced with STRCASECMP, which is defined as stricmp in case of MSC and BORLANDC
11365         - solved MSC error in function aopDump()
11366
11367         * sdcc_vc.h: define PREFIX as "\\sdcc"
11368
11369 2002-07-18  Bernhard Held <bernhard AT bernhardheld.de>
11370         * src/SDCCast.c (decorateType): fixed access to array of structures http://sourceforge.net/mailarchive/forum.php?thread_id=902690&forum_id=4107
11371
11372 2002-06-22  Scott Dattalo <scott AT dattalo.com>
11373         * src/pic/*: Numerous bug fixes. Flow analysis has been enhanced.
11374         - Rewrote the register banking algorithm.
11375         - Added pCode live-range analysis to registers (for now, only non-used and
11376         singly-used registers optimized away)
11377
11378         * src/pic/pcoderegs.[ch]: Added new files for pCode live-range analysis
11379
11380         * 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.
11381
11382 2002-05-10  Scott Dattalo <scott AT dattalo.com>
11383         * src/pic/*: Added support for multiplication. Fixed many,many bugs.
11384
11385 2002-04-22  Michael Hope  <michaelh AT vroom>
11386
11387         * device/lib/z80/printf.c: Changed emitter to volatile to work around a pcall bug.
11388
11389         * configure.in (DD_COPT): Added include support required for gbdk.
11390
11391         * .version: Bumped version number just to increase it.
11392
11393         * src/SDCCmain.c: Added -nostdinc to the default options.
11394
11395 2002-04-15  Michael Hope  <michaelh AT vroom>
11396
11397         * device/lib/z80/printf.c (sprintf): Added.
11398
11399         * src/z80/ralloc.c (packRegisters): Disabled pack HL use for GB as it's broken.
11400
11401         * src/z80/peeph.def: Added transpose redundent load rule.
11402
11403         * src/z80/main.c: Added force callee saves for jaune.
11404
11405         * src/port.h: Removed the i186 and tlcs-900h ports as they weren't being being developed.
11406
11407         * src/SDCCmain.c: Pulled the options definition out so that you can add port specific options without changing the main file.
11408
11409 2002-03-28  Johan Knol  <johan AT balder>
11410
11411         * src/SDCCval.c: fixed bug #532436
11412
11413 2002-03-14  Scott Dattalo <scott AT dattalo.com>
11414         * /src/port.h:
11415         Added "char *Processor" field to the port structure.
11416
11417         * /src/SDCCmain.c:
11418         Added -p option. Allows port dependent processor to be specified.
11419
11420         * all ports:
11421         Initialized the new field char *Processor field to NULL in all ports
11422
11423         * /src/pic/*:
11424         Compiler generated registers for interrupt context saving
11425         were not getting allocated.
11426
11427 2002-03-16  Sandeep Dutta  <sandeep AT ddi.com>
11428
11429         * /src/SDCCast.c:
11430         Fixed left shift. Will promote the left side of a left shift
11431         if a) left shifting more than size of operand or b) when assigned
11432         to something size > size of left side
11433
11434 2002-03-14  Scott Dattalo <scott AT dattalo.com>
11435         * src/pic/*
11436         tons of changes. Register allocation has been
11437         rewritten. Added customization for the various PICs. Flow
11438         analysis is restructured. ...
11439
11440         * src/pic/device.h:
11441         Added
11442
11443         * src/pic/device.c:
11444         Added. device.c is a PIC port hack to accomodate variations
11445         in PIC devices.
11446
11447 2002-03-13  Michael Hope  <michaelh AT vroom>
11448
11449         * src/z80/gen.c (genGenPointerGet): Fixed a bug where a pointer in HL is dereferenced into HL but HL is not spilled.  Yeah.
11450
11451 2002-03-04  johanknol  <johanknol AT manik>
11452
11453         * /src/SDCCval.c: fixed
11454
11455         const unsigned char arr[][2] = { { 0, 1 } };
11456         t18.c:1: error: Initializer element is not constant
11457
11458 2002-03-04  bela  <bela AT manik>
11459
11460         * /device/include/mcs51reg.h:
11461         ds89c420 register definition update
11462
11463 2002-03-03    <johan AT FRIJA>
11464
11465         * support/Util/SDCCerr.c: did something, but don't no why anymore
11466
11467         * support/regression/tests/bug-524691.c: made it a little less shy
11468
11469         * src/SDCCast.c (decorateType): fixed bug #524697
11470
11471         * src/SDCCast.c: made some lineno improvements
11472
11473         * src/SDCCval.c (getNelements): changed warning to error
11474
11475         * src/SDCCglue.c (printIvalArray): changed warning to error
11476
11477         * src/SDCCicode.c: fixed a warning for mingw
11478
11479         * src/SDCCast.c (decorateType): fixed the << promotion for ops
11480
11481         * src/SDCCicode.c (geniCodeDivision): divide is shift only for unsigned (bug #524685)
11482
11483 2002-03-02  Sandeep Dutta  <sandeep AT ddi.com>
11484
11485         * src/ds390/peeph.def:
11486         Added some more peephole rules
11487
11488         * src/ds390/gen.c: Various fixes & enhancements
11489
11490         * src/SDCClrange.c, src/SDCClrange.h:
11491         functions "alldefsoutofrange" and "notusedinblock" moved to SDCClrange.c
11492
11493         * src/ds390/ralloc.c:
11494         various fixes & enhancements (ds390) specific
11495
11496         * src/avr/ralloc.c, src/mcs51/ralloc.c, src/pic/ralloc.c, src/xa51/ralloc.c, src/z80/ralloc.c:
11497         Functions "allDefsOutOfRange" & "notUsedinBlock" moved to SDCClrange.c
11498         from rallocs.
11499
11500         * sdcc/src/SDCCcse.c: Better fix for bug # 514308
11501
11502 2002-03-02    <johan AT FRIJA>
11503
11504         * src/SDCCast.c (decorateType): fixed bug #524708
11505
11506         * src/SDCCval.c (floatFromVal): fixed the literal void (whatever that may be)
11507
11508         * src/SDCCicode.c (geniCodePtrPtrSubtract): fixed bug #524691
11509
11510 2002-03-01  Michael Hope  <michaelh AT vroom>
11511
11512         * src/SDCCsymt.c (initCSupport): Removed managling of support function names.
11513
11514         * src/z80/ralloc.c (packRegsForIYUse): Fixed fp bug where four byte operands were packed into IY.
11515
11516 2002-03-01    <johan AT FRIJA>
11517
11518         * src/SDCCglue.c (printIvalPtr): fixed bug #524211
11519
11520         * src/SDCCast.c (decorateType): fixed bug #524209
11521
11522         * src/SDCCval.c (valNot): fixed bug #524195
11523
11524 2002-02-26    <johan AT balder>
11525
11526         * src/xa51/gen.c: fixed a warning
11527
11528         * src/SDCCglue.c (printIvalFuncPtr): fixed bug #522534
11529
11530         * src/SDCCast.c (decorateType): fixed bug #522534
11531
11532 2002-02-23    <johan AT balder>
11533
11534         * src/SDCCdflow.c (computeDataFlow): fixed bug #460088
11535
11536 2002-02-22    <johan AT balder>
11537
11538         * src/SDCCast.c: fixed bug #514865
11539
11540         * src/SDCCy.c ("SDCC.y"): fixed bug #516625
11541
11542 2002-02-21  Sandeep Dutta  <sandeep AT ddi.com>
11543
11544         * sdcc/src/SDCCloop.c:
11545         Previous fix was not good. basic blocks that have "break" or "return" are
11546         not really partof a loop , but live ranges used in these blocks should
11547         be live thru the entire loop, so set partOfLoop but don't add them to
11548         loop region
11549
11550 2002-02-21    <johan AT FRIJA>
11551
11552         * src/SDCCcse.c: fixed bug #514308
11553
11554 2002-02-20  Sandeep Dutta  <sandeep AT ddi.com>
11555
11556         * src/SDCCloop.c:
11557         Fixed BUG #519583. If a conditional block ended in a return/break
11558         statement inside a loop, it was not being considered part of the loop.
11559
11560         * src/SDCCcflow.c: Removed fix (Fixed in SDCCloop.c)
11561
11562 2002-02-10  Karl Bongers <karl AT turbobit.com>
11563
11564         * debugger/*:
11565         Fixed up SDCDB debugger somewhat.  Updated debugger/README
11566         with lots of comments and notes.
11567
11568         * device/examples/test2.c:
11569         Fix bug, "red" variable not being initialized(compiler complained).
11570
11571         * device/examples/Makefile, examples/test3.c:
11572         Add Makefile in device/examples folder, compiles test3.c
11573         for use as a multiple module SDCDB test case.
11574
11575         * sim/ucsim/cmd.src/cmdset.cc:
11576         Took out debug printfs in ucsim "next" command.
11577
11578         * sim/ucsim/xa.src:
11579         Karl and Johan start ucsim XA support.  Most dissassembly working,
11580         about 75% emulation done(plenty of work remaining).
11581
11582         * sim/ucsim/z80.src:
11583         Add Z80 support to ucsim, add test-ucz80 regression test,
11584         notice ucsim/z80 emulation fails on examples/test3.c/itoa code.
11585         Notice z80 compiler fails on examples/test3.c/crc code.
11586
11587 2002-01-30  Sandeep Dutta  <sandeep AT ddi.com>
11588
11589         * src/mcs51/gen.c, src/mcs51/main.c, src/mcs51/ralloc.c:
11590         Added support for --parms-in-bank1
11591
11592         * src/ds390/peeph.def:
11593         added a few more peephole optimzations
11594
11595         * src/ds390/main.c:
11596         1) added __builtin_inp & __builtin_outp used to read in data of given length
11597            from a memory mapped port
11598         2) added __builtin_memcmp
11599         3) added __builtin_swapw swap bytes of a short
11600
11601         * src/ds390/gen.c, src/ds390/gen.h, src/ds390/ralloc.c:
11602         1) handle multiple send & receives from register bank1
11603         2) ralloc can now allocate DPTR1 to some liveRanges
11604
11605         * src/SDCCsymt.c, src/SDCCsymt.h:
11606         changes to handle multiple sends & receives
11607
11608         * src/SDCCptropt.h:
11609         added some pointer arithmetic optimization
11610
11611         * src/SDCCptropt.c:
11612         added some pointer arithmetic optimizations but not stable yet so not
11613         called from anywhere (will get this working shortly)
11614
11615         * src/SDCCopt.c: fixed for multiple sends & receives
11616
11617         * src/SDCCmain.c:
11618         1) added options --parms-in-bank1 (ds390/mcs51) & --protect-sp-update
11619         2) preprocessing done AFTER port->finalizeoptions . This allows ports to
11620            set preprocessor defines (depending on options)
11621
11622         * src/SDCCicode.c, src/SDCCicode.h:
11623         changes made to handle multiple sends & receives
11624
11625         * src/SDCCglobl.h:
11626         Added options --protect-sp-update (ds390) and --parms-in-bank1 (ds390/mcs51)
11627
11628         * src/SDCCcse.c, src/SDCCcse.h:
11629         added function findbackward def (to be used in upcoming optimization)
11630
11631         * src/SDCCcflow.c, src/SDCCcflow.h:
11632         added function returnAtEnd - to determine if a basic block terminates with
11633         a RETURN iCode
11634
11635         * src/SDCCast.c, src/SDCCast.h:
11636         added option parms-in-bank1
11637
11638         * device/lib/_divsint.c, device/lib/_divslong.c, device/lib/_divuint.c
11639         * device/lib/_divulong.c, device/lib/_modsint.c, device/lib/_modslong.c
11640         * device/lib/_modulong.c, device/lib/_mulint.c, device/lib/_mullong.c:
11641         adjusted for --parms-in-bank1 option
11642
11643         * device/include/string.h:
11644         donot redefine "reentrant" keyword
11645
11646         * device/include/ds80c390.h: Added some more SFRs
11647
11648 2002-01-28  Bernhard Held  <bernhard AT bernhardheld.de>
11649
11650         * sim/ucsim: Merged branch ucsim-034-pre3 to main trunk; new version 0.4
11651
11652 2002-01-26  Bernhard Held  <bernhard AT bernhardheld.de>
11653
11654         * src/SDCCast.c (funcOfType): fix usage of double --float-reent
11655
11656 2002-01-22  Bernhard Held  <bernhard AT bernhardheld.de>
11657
11658         * support/regression/fwk/lib/testfwk.c (main): Removed workaround for bug #505387
11659
11660 2002-01-18  Paul Stoffregen  <paul AT pjrc.com>
11661
11662         * Added --xram-movc option
11663
11664 2002-01-13  Bernhard Held  <bernhard AT bernhardheld.de>
11665
11666         * support/regression/Makefile: don't include test-mcs51-stack-auto in target all
11667
11668 2002-01-11  Johan Knol
11669
11670         * Added math lib of Jesus Calvino-Fraga
11671
11672 2002-01-08  Bernhard Held  <bernhard AT bernhardheld.de>
11673
11674         * src/SDCCmain.c (processFile): fix processing of ../../src.c
11675         * support/regression/Makefile: new target test-mcs51-stack-auto
11676         * support/regression/ports/mcs51-stack-auto/spec.mk: added
11677
11678 2002-01-04  Bernhard Held  <bernhard AT bernhardheld.de>
11679
11680         * src/SDCCglue.h: printIvalCharPtr(), not printIvalChar()
11681
11682 2002-01-04  Bernhard Held  <bernhard AT bernhardheld.de>
11683
11684         * support/regression/ports/mcs51/support.c: correct setup of timer / UART
11685
11686 2002-01-03  Bernhard Held  <bernhard AT bernhardheld.de>
11687
11688         * src/SDCCsymt.c (processFuncArgs): fix #498307 by Johan
11689
11690         * src/SDCCglue.h: add definition for printIvalChar()
11691
11692 2002-01-02  Bernhard Held  <bernhard AT bernhardheld.de>
11693
11694         * src/SDCCast.c: fix #498138 by Johan
11695
11696         * src/SDCCglue.c: fix #498138 by Johan
11697
11698 2002-01-02  Bernhard Held  <bernhard AT bernhardheld.de>
11699
11700         * support/regression/Makefile: fix clean
11701
11702         * support/regression/ports/ds390/support.c: fix transmission of last character
11703
11704 2001-12-29  Sandeep Dutta  <sandeep AT ddi.com>
11705
11706         * /sdcc/src/ds390/gen.c:
11707         a) improved computing address of stack variable
11708         b) took out some #if 0 code
11709         c) improved parmBytes adjustment
11710         d) improved genPlusIncr & genMinusIncr
11711         e) genCmp could generate bad code (when left assigned to DPTR)
11712         f) Fixed bug in hasInc
11713
11714         * /sdcc/src/ds390/ralloc.c:
11715         a) packRegsForSupport could mess up live information (Fixed)
11716         b) packRegsDPTRuse could be incorrect for left & right shift
11717
11718         * /sdcc/src/mcs51/ralloc.c:
11719         packRegsForSupport could mess up the live information (Fixed)
11720
11721         * /sdcc/src/mcs51/gen.c: Fixed a bug in hasInc
11722
11723         * /sdcc/src/SDCCast.c:
11724         can reverse a loop even if function call is present as long
11725         as the loop control variable is local & is not passed as parameter
11726
11727 2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>
11728
11729         * /sdcc/ChangeLog: *** empty log message ***
11730
11731         * /sdcc/src/ds390/gen.c, /sdcc/src/ds390/main.c:
11732         More builtin function additions for TININative
11733
11734         * /sdcc/src/ds390/ralloc.c:
11735         Had broken the regression testsuite
11736
11737         * /sdcc/src/SDCCast.c: Fixed a bug in dumptree
11738
11739         * /sdcc/src/SDCCsymt.c, /sdcc/src/SDCCsymt.h:
11740         Added funcattr hasStackParms will be set for reentrant functions when there
11741         are paramteres on the stack, this helps in minimizing frame pointer generation
11742         typeFromStr can handle function pointers now
11743
11744         * /sdcc/doc/builtins.txt, /sdcc/doc/TININative.txt:
11745         *** empty log message ***
11746
11747 2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>
11748
11749         * /src/ds390/gen.c, /src/ds390/main.c:
11750         More builtin function additions for TININative
11751
11752         * /src/ds390/ralloc.c:
11753         Had broken the regression testsuite
11754
11755         * /src/SDCCast.c: Fixed a bug in dumptree
11756
11757         * /src/SDCCsymt.c, /src/SDCCsymt.h:
11758         Added funcattr hasStackParms will be set for reentrant functions when there
11759         are paramteres on the stack, this helps in minimizing frame pointer generation
11760         typeFromStr can handle function pointers now
11761
11762         * /doc/builtins.txt, /doc/TININative.txt:
11763         *** empty log message ***
11764
11765
11766 2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>
11767
11768         * /src/ds390/gen.c, /src/ds390/main.c, /src/ds390/peeph.def, /src/ds390/ralloc.c:
11769         ALPHA version for -mTININative
11770
11771         * /src/izt/i186.c, /src/izt/tlcs900h.c, /src/mcs51/main.c, /src/pic/main.c, /src/z80/main.c, /src/avr/main.c:
11772         updated to reflect changes in the port structure
11773
11774         * /src/port.h:
11775         added function do_assemble (similar to do_link) if non-null this function
11776         will be called to do assembly (-mTININative) requires a multi command
11777         assembly
11778         added function genAssemblerEnd will be called to generate assembler Epilogue
11779
11780         * /src/SDCCsymt.c:
11781         added _JavaNative to debug info printing
11782
11783         * /src/SDCCmain.c: added option --tini-libid
11784         added port->do_assemble function (-mTININative) has a multi command assemble
11785
11786         * /src/SDCCglue.c: Disabled "constExpr" check
11787         added port->genAssemblerEnd function
11788
11789         * /src/SDCCglobl.h: Added option --tini-libid value
11790
11791         * /src/SDCCast.h:
11792         tookout optimizeCompare from the header (has no external references)
11793
11794         * /src/SDCCast.c: made one more function "static"
11795
11796 2001-12-23  Michael Hope  <michaelh AT juju.net.nz>
11797
11798         * src/z80/mappings.i: Added z80asm support.
11799
11800         * src/z80/main.c: Added z80asm support on --asm=z80asm
11801
11802         * src/z80/gen.c: Fixed asm portability issues.
11803
11804         * src/asm.c (tvsprintf): Removed old code, added 'N' for function name.  For extern support.
11805
11806         * src/SDCCglue.c (printExterns): Added global/extern split.
11807
11808 2001-12-17  Bernhard Held  <bernhard AT bernhardheld.de>
11809
11810         * support/regression/Makefile: added test for mcs51 model large
11811
11812         * support/regression/ports/mcs51-large/spec.mk: added test for mcs51 model large
11813
11814         * support/regression/ports/gbz80/spec.mk: added -mgbz80
11815
11816 2001-12-05  Michael Hope  <michaelh AT juju.net.nz>
11817
11818         * src/diff.1 (Index): Many, many optmisiations.  Dhrystone up to 201.
11819
11820 1904-01-06  Michael Hope  <michaelh AT juju.net.nz>
11821
11822         * src/z80/ralloc.c (packRegsForIYUse): Fixed the case where an operand is in direct space.
11823
11824         * src/z80/gen.c (makeFreePairId): Optimised IY load by using a spare pair.
11825
11826 2001-12-02  Bernhard Held  <bernhard AT bernhardheld.de>
11827
11828         * src/mcs51/gen.c (genFunction): avoid excess "inc sp"
11829
11830         * support/regression/tests/simplefloat.c: Port to mcs51.
11831
11832 2001-11-25  Michael Hope  <michaelh AT juju.net.nz>
11833         * support/regression/tests/bug-485362.c: Added.
11834
11835         * support/regression/tests/simplefloat.c (testDivNearOne): Added.
11836
11837         * src/z80/gen.c (aopOp): Fixed case where left and result are in the same spill loc and they have different sizes.
11838
11839         * src/z80/peeph.def: Added rules for optimising two byte compares on the same thing, and to optimise two ptr assign.
11840
11841         * src/z80/gen.c (aopDump): Added a dump function.
11842
11843 2001-11-25  Bernhard Held  <bernhard AT bernhardheld.de>
11844         * sim/ucsim/s51.src/glob.cc: DS390 SFRs and bits added.
11845
11846         * sim/ucsim/s51.src/port.cc: Port 4 and 5 added.
11847
11848         * sim/ucsim/s51.src/regs51.h: DS390 SFRs added.
11849
11850         * sim/ucsim/s51.src/uc390.cc: Some details improved, CKRDY works for tinibios.
11851
11852         * sim/ucsim/s51.src/uc390cl.h: Work in progress.
11853
11854         * sim/ucsim/sim.src/uccl.h: 6 ports for DS390.
11855
11856         * support/regression/fwk/lib/testfwk.c: Run with tinibios.
11857
11858         * support/regression/ports/mcs51/spec.mk: Fine tuninig.
11859
11860         * support/regression/ports/ds390/support.c: Use tinibios.
11861
11862         * support/regression/ports/ds390/spec.mk: Fine tuning, use tinibios.
11863
11864 2001-11-23  Michael Hope  <michaelh AT juju.net.nz>support/regression/tests/bug-460010.c
11865
11866         * src/z80/ralloc.c (packRegsForHLUse3): Changed to not pack into HL if anything is in direct space.
11867         (packRegsForHLUse3): Added packing support for send, cast, and return value from a call.
11868
11869         * src/z80/peeph.def: Added rules for optimising pushes of part of a pair.
11870
11871         * src/z80/gen.c (emitCall): Changed the stack fixup to not use HL.
11872
11873 2001-11-18  Michael Hope  <michaelh AT juju.net.nz>
11874
11875         * src/z80/gen.c (genCmp): Fixed compare on unsigned.
11876
11877         * src/z80/ralloc.c (packRegsForHLUse3): Created and optimised.
11878         (packRegsForIYUse): Created and optimised.
11879
11880 2001-11-07  Michael Hope  <michaelh AT juju.net.nz>
11881
11882         * support/regression/tests/float.c (testFloatAdd): Fixed up warning.
11883 2001-11-18  Bernhard Held  <bernhard AT bernhardheld.de>
11884
11885         * sdcc/support/regression/tests/bug-460010.c: fix seg violation on host
11886
11887         * sdcc/support/regression/tests/muldiv.c: fix output on mcs51
11888
11889         * sdcc/support/regression/tests/stacks.c: fix DSEG overflow on mcs51
11890
11891 2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>
11892
11893         * sdcc/sim/device/lib/_gptrget.c: mem region 5 (idata) added
11894
11895         * sdcc/sim/device/lib/_gptrput.c: mem region 5 (idata) added
11896
11897 2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>
11898
11899         * sdcc/sim/ucsim/globals.cc: New: IXRAM.
11900
11901         * sdcc/sim/ucsim/stypes.h: New: IXRAM.
11902
11903         * sdcc/sim/ucsim/s51.src/uc390.cc: New: IXRAM.
11904
11905 2001-11-07  Michael Hope  <michaelh AT juju.net.nz>
11906
11907         * src/z80/ralloc.c (packRegsForHLUse): Banned IFXs from being packed into HL.
11908         (packRegsForHLUse): Added rule to pack address of/pointer get for itemps into HL for the Z80.
11909         (packRegsForAccUse2): Added rule to pack hbit IFXs into A.
11910
11911         * src/z80/main.c (_setDefaultOptions): Made float code re-entrant by default.
11912
11913         * src/z80/gen.c (aopGetLitWordLong): Added word support for floats.
11914         (genNotFloat): Added.
11915         (genUminusFloat): Added.
11916
11917         * device/lib/z80/Makefile: Added floating pt stubs.
11918
11919         * device/lib/Makefile.in (Z80SOURCES): Added floating pt support.
11920
11921         * src/z80/gen.c (genIpush): Fixed up a push of one byte when left is in a pair.
11922
11923         * device/lib/_fsadd.c (__fsadd): Fixed up return where the numbers are hugely different.
11924
11925 2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>
11926
11927         * sdcc/sim/ucsim/s51.src/glob.cc: Minor fix.
11928
11929         * sdcc/sim/ucsim/s51.src/regs51.h: Minor fix.
11930
11931         * sdcc/support/regression/Makefile: Add port ds390.
11932
11933         * sdcc/support/regression/ports/mcs51/spec.mk: Minor change.
11934
11935         * sdcc/support/regression/ports/z80/spec.mk: Minor change.
11936
11937         * sdcc/support/regression/ports/ds390/spec.mk: Added.
11938
11939         * sdcc/support/regression/ports/ds390/support.c: Added.
11940
11941         * sdcc/support/regression/ports/ds390/uCsim.cmd: Added.
11942
11943         * sdcc/support/regression/ports/mcs51/timeout.c: Cut.
11944
11945         * sdcc/support/regression/fwk/lib/timeout.c: Paste.
11946
11947 2001-11-04  Michael Hope  <michaelh AT juju.net.nz>
11948
11949         * device/include/malloc.h: Added z80 and gbz80 support.
11950
11951         * device/lib/gbz80/heap.s: Added.
11952
11953         * device/lib/z80/heap.s: Added.
11954
11955         * device/lib/malloc.c: Added z80 and gbz80 support.
11956
11957         * support/regression/tests/malloc.c (testMalloc): Added.
11958
11959         * src/SDCCmain.c (parseCmdLine): Added support for -Wp.
11960
11961         * support/regression/tests/bug-478094.c: Added.
11962
11963         * src/z80/gen.c (commitPair): Fixed silly gbz80/z80 commit to static bug.
11964
11965 2001-11-04  Bernhard Held  <bernhard AT bernhardheld.de>
11966
11967         * sdcc/sim/ucsim/s51.src/uc390cl.h: Improvement for ds390 to run regression tests
11968
11969         * sdcc/sim/ucsim/s51.src/uc390.h: Improvement for ds390 to run regression tests
11970
11971         * sdcc/sim/ucsim/s51.src/regs51.h: Improvement for ds390 to run regression tests
11972
11973         * sdcc/sim/ucsim/s51.src/glob.cc: Improvement for ds390 to run regression tests
11974
11975         * sdcc/support/regression/tests/bug-460010.c: Small change for ds390
11976
11977 2001-11-04  Michael Hope  <michaelh AT juju.net.nz>
11978
11979         * src/z80/peeph-gbz80.def: Removed a bad sub optimisation.
11980
11981 2001-11-03  Michael Hope  <michaelh AT juju.net.nz>
11982
11983         * support/regression/tests/bug-477927.c: Added.
11984
11985         * src/z80/peeph.def: Added minor rules.
11986
11987         * src/z80/gen.c (genPlusIncr): Added an extra plusinc rule.
11988
11989         * src/z80/peeph.def: Added jump optimisation modification.
11990
11991 2001-11-01  Michael Hope  <michaelh AT juju.net.nz>
11992
11993         * src/SDCCmain.c (linkEdit): Added runtime path detection to the mcs51 port.
11994
11995 2001-10-30  Michael Hope  <michaelh AT juju.net.nz>
11996
11997         * support/regression/tests/funptrs.c: Added.
11998
11999 2001-10-29  Michael Hope  <michaelh AT juju.net.nz>
12000
12001         * src/z80/ralloc.c (packRegsForHLUse): Fixed up bad spill due to pushing one byte via HL.
12002
12003 2001-10-28  Michael Hope  <michaelh AT juju.net.nz>
12004
12005         * src/z80/gen.c (genArrayInit): Made it work for on stack arrays.
12006
12007         * src/z80/main.c (gbz80_port =): Added rle support to the gbz80 port.
12008
12009         * src/z80/gen.c (genMinus): Fixed for where the result is one byte.
12010         (movLeft2ResultLong): Created.
12011
12012         * src/z80/ralloc.c (packRegsForHLUse): Added a couple of simple cases for the GB.
12013         (joinPushes): Added.  Joins two char pushes into a word push.
12014
12015 2001-10-27  Michael Hope  <michaelh AT juju.net.nz>
12016
12017         * support/cpp2/Makefile.in (install): Added creation of dest dir.
12018
12019         * support/makebin/Makefile (install): Added creation of dest dir.
12020
12021 2001-10-24 Karl Bongers <karl AT turbobit.com>
12022
12023         * configure.in, configure, Makefile, support/cpp: Removed cpp folder, since we have new cpp2 preprocessor code.
12024
12025 2001-10-21  Michael Hope  <michaelh AT juju.net.nz>
12026
12027         * src/z80/ralloc.c: Turned off faulty pack for one use.
12028
12029         * src/z80/peeph-gbz80.def: Removed redundent restart options.
12030
12031         * src/z80/gen.c (genMult): Added native mul for constants on the z80 and gbz80.
12032
12033 2001-10-21  Bernhard Held  <bernhard AT bernhardheld.de>
12034
12035         * support/regression/Makefile: Improved clean
12036
12037         * support/regression/ports/gbz80/spec.mk: Added clean
12038
12039         * support/regression/ports/host/spec.mk: Added clean
12040
12041         * support/regression/ports/z80/spec.mk: Added clean
12042
12043         * support/regression/ports/mcs51/spec.mk: Added clean, little improvements
12044
12045         * support/regression/ports/mcs51/timeout.c: little improvements
12046
12047 2001-10-17  Michael Hope  <michaelh AT juju.net.nz>
12048
12049         * device/lib/malloc.c (MEMHEADER): Fixed against new pedantic pointers.
12050
12051         * support/regression/fwk/include/testfwk.h: Fixed up to use function pts correctly.
12052
12053         * support/regression/generate-cases.py: Fixed up to use function pts correctly.
12054
12055 2001-10-16  Bernhard Held  <bernhard AT bernhardheld.de>
12056
12057         * support/regression/port/mcs51/spec.mk: add timeout for uCsim
12058
12059         * support/regression/port/mcs51/timeout.c: add timeout for uCsim
12060
12061 2001-10-13  Michael Hope  <michaelh AT juju.net.nz>
12062         * src/z80/gen.c (emitCall): Fixed up missing spill of HL when used to assign the result value.
12063
12064         * src/z80/ralloc.c: Turned off pack for one use as it's quite broken.
12065
12066         * src/SDCCmain.c (linkEdit): Added support for passing a legacy command line through the processor.
12067
12068         * src/mcs51/main.c (_linkCmd): Added bin path to command.
12069
12070         * src/SDCCmain.c (initValues): Added support for when it it called just to link.
12071
12072         * as/mcs51/lklibr.c (libfil;): Turned off 'library file' message.
12073
12074         * src/SDCCval.c (constVal): Fixed usage of 'L' modifier problems on ppc.
12075
12076         * support/regression/tests/longor.c: Added.
12077
12078 2001-10-11  Bernhard Held  <bernhard AT bernhardheld.de>
12079
12080         * as/mcs51/asdata.c: replaced FILENAME_MAX with PATH_MAX
12081
12082         * as/mcs51/aslink.h: define PATH_MAX
12083
12084         * as/mcs51/asm.h: define PATH_MAX
12085
12086         * as/mcs51/asmain.c: replaced FILENAME_MAX with PATH_MAX
12087
12088         * as/mcs51/asnoice.c: replaced FILENAME_MAX with PATH_MAX
12089
12090         * as/mcs51/lklex.c: replaced FILENAME_MAX with PATH_MAX
12091
12092         * as/mcs51/lkmain.c: replaced FILENAME_MAX with PATH_MAX
12093
12094         * src/SDCCglobl.h: define PATH_MAX
12095
12096         * src/SDCCmacro.c: replaced FILENAME_MAX with PATH_MAX
12097
12098         * src/SDCCmain.c: replaced FILENAME_MAX with PATH_MAX
12099
12100 2001-10-11  Michael Hope  <michaelh AT juju.net.nz>
12101
12102         * src/z80/gen.c (gencjneshort): Fixed
12103
12104         * src/z80/ralloc.c (packRegsForHLUse): Added pack into HL for cast then ipush.
12105
12106 2001-10-09  Michael Hope  <michaelh AT juju.net.nz>
12107
12108         * support/regression/tests/bug-469671.c: Added.
12109
12110         * src/z80/gen.c (shiftIntoPair): Fixed up warning.
12111
12112 2001-10-08  Michael Hope  <michaelh AT juju.net.nz>
12113
12114         * src/SDCCmain.c: Added --fommit-frame-pointer option and implemented in the z80 port.
12115
12116         * src/z80/gen.c (genPlus): Fixed to work with extended stack.  Also fixed genMinus, genCmp.  genUMinus is still left.
12117
12118 2001-10-08  Bernhar Held  <bernhard AT bernhardheld.de>
12119
12120         * src/SDCCmain.c (preProcess): added define SDCC_NOOVERLAY
12121
12122         * src/device/lib/_mulint.c  : removed hint: nooverlay bug
12123
12124         * src/device/lib/_mullong.c : removed hint: nooverlay bug
12125
12126         * src/device/lib/_divuint.c : removed hint: nooverlay bug
12127
12128         * src/device/lib/_divulong.c: removed hint: nooverlay bug
12129
12130         * src/device/lib/_moduint.c : removed hint: nooverlay bug
12131
12132         * src/device/lib/_modulong.c: removed hint: nooverlay bug
12133
12134 2001-10-07  Michael Hope  <michaelh AT juju.net.nz>
12135
12136         * 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.
12137
12138         * support/Util/NewAlloc.c (freeTrace): Changed free for the gc case to not free at all.  Fixes runtime segfault.
12139
12140         * support/regression/tests/scott-compare3.c (c_abcd): Fixed up casts.
12141
12142 2001-10-07    <johan AT FRIJA>
12143
12144         * device/lib/gets.c (gets): fixed the return value.
12145
12146 2001-10-06  Michael Hope  <michaelh AT juju.net.nz>
12147         * src/SDCCmain.c (WRITE_SEG_LOC): Fixed up to use Safe_strdup.
12148
12149         * 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.
12150
12151         * 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.
12152
12153         * src/z80/gen.c (genZ80Code): Added de-allocation via trace support.
12154
12155         * src/pic/gen.c: Removed Safe_strdup.
12156
12157         * configure.in: Added option to enable libgc support.
12158
12159         * src/SDCCbitv.c (bitVectnBitsOn): Optimised.
12160         (bitVectUnion): Optimised.
12161         (bitVectIntersect): Optimised.
12162         (bitVectBitsInCommon): Optimised.
12163         (bitVectCplAnd): Optimised.
12164
12165         * support/makebin/makebin.c (usage): Removed getopt as mingw32 doesn't have it.  Sigh.
12166
12167 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
12168
12169         * src/SDCCmain.c: distinguish between assembler debug and plain options
12170
12171         * src/avr/main.c:   remove standard assembler options
12172
12173         * src/ds390/main.c: remove standard assembler options
12174
12175         * src/mcs51/main.c: remove standard assembler options
12176
12177         * src/port.h: removed "PENDING" comment
12178
12179 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
12180
12181         * src/device/lib/_mulint.c  : new, with assember functions
12182
12183         * src/device/lib/_mullong.c : new, with assember functions
12184
12185         * src/device/lib/_divuint.c : with assember functions
12186
12187         * src/device/lib/_divsint.c : with assember functions
12188
12189         * src/device/lib/_divulong.c: with assember functions
12190
12191         * src/device/lib/_divslong.c: with assember functions
12192
12193         * src/device/lib/_moduint.c : with assember functions
12194
12195         * src/device/lib/_modsint.c : with assember functions
12196
12197         * src/device/lib/_modulong.c: with assember functions
12198
12199         * src/device/lib/_modslong.c: with assember functions
12200
12201         * src/device/lib/libint.lib:  replaced _muluint.c  and _mulsint.c  by _mulint.c
12202
12203         * src/device/lib/liblong.lib: replaced _mululong.c and _mulslong.c by _mullong.c
12204
12205         * src/device/lib/Makefile.in: replaced _muluint.c  and _mulsint.c  by _mulint.c
12206                                       replaced _mululong.c and _mulslong.c by _mullong.c
12207
12208 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
12209
12210         * src/SDCCsymt.c: sequence of specifiers in pintTypeChain() corrected
12211
12212 2001-10-01 Bernhard Held <bernhard AT bernhardheld.de>
12213
12214         * src/SDCCglue.c: test, if win32api is available for MINGW
12215
12216 2001-10-01 Bernhard Held <bernhard AT bernhardheld.de>
12217
12218         * src/SDCCsymt.c: no more _modifier in printTypeChain()
12219         * support/regression/tests/driverstruct.c: REENTRANT for mcs51
12220         * support/regression/ports/gbz80/spec.mk: removed GENERIC
12221         * support/regression/ports/host/spec.mk: removed GENERIC
12222         * support/regression/ports/mcs51/spec.mk: removed GENERIC
12223         * support/regression/ports/z80/spec.mk: removed GENERIC
12224
12225 2001-10-01  Michael Hope  <michaelh AT juju.net.nz>
12226
12227         * support/regression/fwk/lib/testfwk.c (__printf): Removed GENERIC.
12228
12229         * support/regression/tests/bug-467035.c: Created.
12230
12231 2001-10-01    <johan AT FRIJA>
12232
12233         * src/SDCC.y: fixed bug #466586 part 1
12234
12235 2001-10-01  Johan Knol <johan.knol AT iduna.nl>
12236
12237         * SDCCicode.c: z80 has no generic pointers
12238         * removed -s from strip in all Makefile(.in)'s. It is not needed, but Solaris chocks on it.
12239
12240 2001-09-30  Michael Hope  <michaelh AT juju.net.nz>
12241
12242         * sim/ucsim/cmd.src/Makefile.in ($(PRJDIR)/libcmd.a): Changed all ar references to $(AR) for Solaris.
12243
12244 2001-09-29  Michael Hope  <michaelh AT juju.net.nz>
12245
12246         * Makefile (sdcc-libs): Added makebin to the list of standard targets.
12247
12248         * support/regression/ports/z80/spec.mk: Updated to use env for sdcc bin dir for automatic regression.
12249
12250 2001-09-25  Michael Hope  <michaelh AT juju.net.nz>
12251
12252         * configure.in: Fixed up so that ucsim is only configured once.
12253
12254         * support/cpp2/configure.in: Fixed to use the program transform to append the .exe for the win32 build.
12255
12256         * src/SDCCutil.c (getPrefixFromBinPath): Fixed up to work with win32 in all of its glory.
12257         (getPathDifference): As above.
12258
12259         * src/SDCCmain.c (preProcess): Changed to use a temporary file in a proper temp directory.  Fixed case where pre-processing only.
12260
12261         * src/SDCCglue.c (tempfilename): Added function for pre-processor.
12262
12263 2001-09-23  Michael Hope  <michaelh AT juju.net.nz>
12264         * .version: Updated to 2.3.1
12265
12266         * src/z80/main.c (z80_port =): Added macro based linker and assembler command line support.
12267         Added copyright header.
12268
12269         * src/SDCCmain.c: Shifted various functions into SDCCutil.c
12270         (assemble): Added support for macro based assembler commands.
12271         (linkEdit): Added support for macro based linker commands.
12272         (preProcess): Changed the pre-processor to use macros.
12273         (_setPaths): Added functionality to autodetect the include, lib and bin dir paths.
12274         (_discoverPaths): Added support for overriding the install directory using the SDCCDIR env variable.
12275
12276         * device/lib/z80/crt0.s: Added module name for debugging.
12277
12278 2001-09-20  Michael Hope  <michaelh AT juju.net.nz>
12279
12280         * src/SDCCmain.c (printVersionInfo): Added the build date to the version info.
12281
12282         * src/SDCChasht.c (hTabDeleteByKey): Fixed delete as it would delete the last item from a bucket even if it wasn't the real one.
12283
12284         * src/SDCCglue.c: Moved gc_strdup to SDCCutil.c
12285
12286         * src/Makefile.in: Added SDCCmacro and SDCCutil
12287
12288 2001-09-19  Michael Hope  <michaelh AT juju.net.nz>
12289
12290         * src/SDCCmain.c (printVersionInfo): Added the build date to the version info.
12291
12292 2001-09-16    <johan AT FRIJA>
12293
12294         * 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.
12295
12296 2001-09-15    <johan AT FRIJA>
12297
12298         * src/mcs51/ralloc.c: (findAssignToSym): fixed bug #460662 part 1
12299         * src/ds390/ralloc.c (findAssignToSym): fixed bug #460662 part 1
12300
12301 2001-09-11    <johan AT FRIJA>
12302
12303         * src/SDCCval.c (valDiv Mod Minus Plus Shift): keep litteral expressions as small as possible (bug #460010)
12304
12305 2001-09-10  Michael Hope  <michaelh AT juju.net.nz>
12306
12307         * support/regression/tests/bug-460444.c: Added test case.
12308
12309         * src/z80/gen.c (genOr): bug 460444: if (a ^ lit) was broken for &, |, and ^.
12310         (genCast): Added justification for all of the asserts.
12311
12312 2001-09-10  Bernhard Held <bernhard AT bernhardheld.de>
12313
12314         * support/regression/support.c: _xdata replaced by xdata
12315
12316         * support/regression/spec.mk: removed _generic
12317
12318 2001-09-09  Michael Hope  <michaelh AT juju.net.nz>
12319
12320         * src/pic/ralloc.c (debugLogRegType): Removed some old types to get it to compile.
12321
12322         * src/z80/gen.c (shiftR2Left2Result): Improved the case when v = v >> n for small values of n to use less code space and time.
12323         (genrshTwo): Fixed v = v >> n where v is a negative int and n is > 8: bug 460010.
12324
12325         * src/z80/peeph.def: Added a rule to optimise shift then compare.
12326
12327         * support/regression/tests/bug-460000.c (testShiftByParam): Added test case.
12328
12329         * support/regression/tests/bug-460010.c: Added test case.
12330
12331         * support/regression/Makefile (test-host): Removed a silly 'clean' target when testing against gcc.
12332
12333 2001-09-09  Bernhard Held <bernhard AT bernhardheld.de>
12334
12335         * support/regression/Makefile: inter-port-clean adjusted for mcs51
12336
12337         * support/regression/testfwk.c: removed workaround for bug #436344
12338
12339         * support/regression/tests/bp.c: use less memory with mcs51
12340
12341         * support/regression/tests/bug-441448.c: use less memory
12342
12343         * support/regression/tests/ports/mcs51/spec.mk: cleanup, use --stack-after-data
12344
12345         * support/regression/collate-results.py: typo
12346
12347 2001-09-08  Michael Hope  <michaelh AT juju.net.nz>
12348
12349         * support/regression/tests/fetchoverlap.c: Added new test case.
12350
12351         * support/regression/tests/bp.c: Added new test case.
12352
12353         * support/regression/tests/bug-448984.c: Added new test case.
12354
12355         * support/regression/tests/pow2shifts.c: Added new test case.
12356
12357         * src/z80/gen.c: Turned off the noise it normally generates for the release.
12358         (genlshTwo): Fixed right shift for count > 8.
12359
12360         * src/z80/ralloc.c: Disabled most of the ACC packing rules as they weren't getting hit and weren't at all safe.
12361
12362 2001-09-08    <johan AT FRIJA>
12363
12364         * src/SDCCicode.c (geniCodeCall): a CPOINTER can be used as a function
12365
12366 2001-09-07    <johan AT FRIJA>
12367
12368         * src/SDCCicode.c (newiCodeCondition): fixed bug #456235 (1.77)
12369
12370         * src/SDCCglue.c (emitRegularMap): only delete a symbol when it is a symbol
12371
12372 2001-09-06    <johan AT FRIJA>
12373
12374         * src/SDCC.y: this could be a fix for bug #458744 (1.37)
12375         * bernhard noted me at this: "() equals to (void)" (1.38)
12376
12377 2001-09-05    <johan AT FRIJA>
12378
12379         * src/SDCCglue.c (emitRegularMap): a fix for bug #458099/2
12380
12381 2001-09-04    <johan AT FRIJA>
12382
12383         * src/SDCCsymt.c (checkSClass): a fix for bug #458099/1
12384
12385
12386 2001-09-04  Paul Stoffregen  <paul AT pjrc.com>
12387
12388         * pragma noinduction broke memcpy on mcs51 large model.  Moved it inside z80 optimization
12389
12390 2001-09-03  Michael Hope  <michaelh AT juju.net.nz>
12391
12392         * link/z80/aslink.h: Fixed path for PATH_MAX
12393
12394 2001-09-02  Michael Hope  <michaelh AT juju.net.nz>
12395
12396         * src/z80/gen.c (fetchLitPair): Changed so that it properly caches direct space references.
12397
12398         * support/regression/tests/addsub.c: Added cases to cover all the +, - combinations.
12399
12400         * support/regression/tests/uminus.c: Added a test for the unary minus operator.
12401
12402         * 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.
12403
12404 2001-09-01  Michael Hope  <michaelh AT juju.net.nz>
12405
12406         * src/z80/gen.c: Fixed up generator to pass the regresion tests, specifically fixing loads for longs, genCmp, and turned on the map file.
12407         (genCmp): Fixed up genCmp for the GB with longs.
12408
12409         * device/lib/gbz80/Makefile: Fixed up all the libraries to pass the regression tests.
12410
12411         * support/regression/ports/host/spec.mk: Updated to compile with the new type specifiers.
12412
12413         * device/lib/Makefile.in (Z80SOURCES): Removed old _mululong, _mulslong, and unneeded _mulint.
12414
12415         * device/lib/_mullong.c (_mulslong): Changed to actually return a value :)
12416
12417 2001-08-30  Paul Stoffregen  <paul AT pjrc.com>
12418
12419         * added peepholes 223 to 231 to mcs51 port.  These improve code when using large model.
12420
12421 2001-08-30  Michael Hope  <michaelh AT juju.net.nz>
12422
12423         * 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.
12424
12425         * src/z80/gen.c (genPlus): Changed bad long add for gb to a fall through.
12426
12427 2001-08-29  Michael Hope  <michaelh AT juju.net.nz>
12428
12429         * link/z80/aslink.h: Fixed long file name support.  Is now based off PATH_MAX instead of a constant.
12430
12431         * src/z80/gen.c: Fixed add and sub for the case where left or right are in static space.
12432
12433 2001-08-30 Bernhard Held   <bernhard AT bernhardheld.de>
12434
12435   * sim/ucsim/configure:    little improvement of Cygwin-detection
12436   * sim/ucsim/configure.in: little improvement of Cygwin-detection
12437   * sim/ucsim/cmd.src/newcmdcl.h: include <sys/types.h> to define fd_set automated build
12438   * support/regression/tests/bug-221100.c: small changes for mcs51
12439   * support/regression/tests/bug-221168.c: small changes for mcs51
12440   * support/regression/tests/bug-227710.c: small changes for mcs51
12441   * support/regression/tests/staticinit.c: small changes for mcs51
12442   * as/mcs51/aslink.h: accept everything as symbol name in rel-files, bug fix ID 452601
12443   * as/mcs51/lklex.c:  accept everything as symbol name in rel-files, bug fix ID 452601
12444   * as/mcs51/lksym.c:  accept everything as symbol name in rel-files, bug fix ID 452601
12445
12446 $Revision$