* src/port.h: added mem.cabs_name to PORT
[fw/sdcc] / ChangeLog
1 2006-09-30 Maarten Brock <sourceforge.brock AT dse.nl>
2
3         * src/port.h: added mem.cabs_name to PORT
4         * src/ds390/main.c,
5         * src/hc08/main.c,
6         * src/mcs51/main.c,
7         * src/pic16/main.c,
8         * src/pic/main.c,
9         * src/xa51/main.c,
10         * src/z80/main.c: added cabs_name initializers
11         * src/SDCCglue.c (emitStaticSeg): allocate and initialize absolute
12           constants
13           (emitMaps): emit absolutes in code memory into cabs_name
14         * src/SDCCmem.c,
15         * src/SDCCmem.h: added memory map c_abs and defined CABS_NAME
16         * src/ds390/gen.c (genCodePointerGet): fixed bug if left is a literal
17         * support/regression/fwk/include/testfwk.h: added define for at
18         * support/regression/tests/absolute.c: added, new
19
20 2006-09-29 Maarten Brock <sourceforge.brock AT dse.nl>
21
22         * src/mcs51/gen.c (genPlusIncr, genMinusDec, genAddrOf): small
23           optimizations, see also patch 887161 by Stas Sergeev
24         * src/mcs51/peeph.def(104, 207, 209, 212): disabled as they do not seem
25           to be necessary anymore,
26           (102, 103, 104, 127): renamed all occurances of bp to _bp
27
28 2006-09-27 Maarten Brock <sourceforge.brock AT dse.nl>
29
30         * device/include/mcs51/at89c51snd1c.h: fixed MSK_SREQ definition
31           thanks Weston T. Schmidt for patch 1555221
32         * src/mcs51/peeph.def: renamed rule 257 to 257.a, added 257.b
33         * src/SDCCicode.c(geniCodeMultiply): small optimization
34
35 2006-09-26 Maarten Brock <sourceforge.brock AT dse.nl>
36
37         * device/include/stdlib.h: added rand prototypes
38         * device/lib/rand.c: new, added
39         * device/lib/Makefile.in: added rand.c
40         * src/z80/peeph.def,
41         * src/z80/peeph-gbz80.def,
42         * src/z80/peeph-z80.def: updated conditonals, fixed bug 1565908
43
44 2006-09-20 Raphael Neider <rneider AT web.de>
45
46         * device/lib/pic16/libio/i2c/i2cnack.c (i2c_nack): fixed ACKDT bit
47
48 2006-09-19 Maarten Brock <sourceforge.brock AT dse.nl>
49
50         * as/link/aslink.h: cosmetic changes
51         * as/link/mcs51/Makefile.in,
52         * as/link/z80/Makefile.in: fixed build on CF where VPATH is used
53
54 2006-09-17 Maarten Brock <sourceforge.brock AT dse.nl>
55
56         * as/link/aslink.h,
57         * as/link/mcs51/aslink.h,
58         * as/link/z80/aslink.h: merged and moved to as/link/
59         * as/link/lkstore.c,
60         * as/link/mcs51/lkstore.c: moved to as/link/
61         * as/link/clean.mk: remove *.o
62         * as/link/mcs51/alloc.h: deleted
63         * as/link/mcs51/lkarea.c: added lnksect prototype
64         * as/link/mcs51/lkdata.c,
65         * as/link/mcs51/lklex.c,
66         * as/link/mcs51/lkmain.c: renamed as_getline to lk_getline
67         * as/link/mcs51/lkmem.c,
68         * as/link/mcs51/lknoice.c: removed include strcmpi.h
69         * as/link/mcs51/lksym.c: include stdlib.h instead of malloc.h or alloc.h
70         * as/link/mcs51/aslink.dsp,
71         * as/link/mcs51/Makefile.aslink,
72         * as/link/mcs51/Makefile.bcc,
73         * as/link/mcs51/Makefile.in: updated for moved files
74         * as/link/z80/lkarea.c,
75         * as/link/z80/lkhead.c,
76         * as/link/z80/lklex.c,
77         * as/link/z80/lklibr.c,
78         * as/link/z80/lklist.c,
79         * as/link/z80/lkmain.c,
80         * as/link/z80/lkrloc.c,
81         * as/link/z80/lksym.c: synced with mcs51
82         * as/link/z80/lkdata.c,
83         * as/link/z80/lkeval.c,
84         * as/link/z80/lkihx.c,
85         * as/link/z80/lks19.c: cosmetic changes
86         * as/link/z80/Makefile.in,
87         * as/link/z80/linkgbz80.dsp,
88         * as/link/z80/linkz80.dsp: updated for moved files
89
90 2006-09-16 Borut Razem <borut.razem AT siol.net>
91
92         * debugger/mcs51/sdcdb.c: partially fixed
93           [ 1203664 ] sdcdb fails to open files w. two "." periods
94         * debugger/mcs51/simi.c, debugger/mcs51/symtab.c,
95           debugger/mcs51/symtab.h: fixed indenting
96         * configure.in, configure: up to date with latest Maarten's changes
97
98 2006-09-15 Maarten Brock <sourceforge.brock AT dse.nl>
99
100         as/link/mcs51
101         as/aslink.dsp,                  as/link/mcs51/aslink.dsp,
102         as/link/mcs51/aslink.h,         as/mcs51/aslink.h,
103         as/link/mcs51/aslink.mak,       as/mcs51/aslink.mak,
104         as/link/mcs51/lkaomf51.c,       as/mcs51/lkaomf51.c,
105         as/link/mcs51/lkarea.c,         as/mcs51/lkarea.c,
106         as/link/mcs51/lkdata.c,         as/mcs51/lkdata.c,
107         as/link/mcs51/lkeval.c,         as/mcs51/lkeval.c,
108         as/link/mcs51/lkhead.c,         as/mcs51/lkhead.c,
109         as/link/mcs51/lkihx.c,          as/mcs51/lkihx.c,
110         as/link/mcs51/lklex.c,          as/mcs51/lklex.c,
111         as/link/mcs51/lklibr.c,         as/mcs51/lklibr.c,
112         as/link/mcs51/lklist.c,         as/mcs51/lklist.c,
113         as/link/mcs51/lkmain.c,         as/mcs51/lkmain.c,
114         as/link/mcs51/lkmem.c,          as/mcs51/lkmem.c,
115         as/link/mcs51/lknoice.c,        as/mcs51/lknoice.c,
116         as/link/mcs51/lkrloc.c,         as/mcs51/lkrloc.c,
117         as/link/mcs51/lks19.c,          as/mcs51/lks19.c,
118         as/link/mcs51/lkstore.c,        as/mcs51/lkstore.c,
119         as/link/mcs51/lksym.c,          as/mcs51/lksym.c,
120         as/link/mcs51/Makefile.aslink,  as/mcs51/Makefile.aslink,
121         as/link/mcs51/alloc.h,
122         as/link/mcs51/clean.mk,
123         as/link/mcs51/conf.mk,
124         as/link/mcs51/Makefile.bcc,
125         as/link/mcs51/Makefile.in,
126         as/link/mcs51/readme.390,
127         as/link/mcs51/strcmpi.c,
128         as/link/mcs51/strcmpi.h,
129         as/mcs51/clean.mk,
130         as/mcs51/Makefile.bcc,
131         as/mcs51/Makefile.in,
132         configure,
133         Makefile.in,
134         sdcc.dsw: moved mcs51 linker to as/link/mcs51
135
136 2006-09-14 Maarten Brock <sourceforge.brock AT dse.nl>
137
138         * as/link,
139         * as/link/Makefile.in,
140         * as/link/z80/linkgbz80.dsp,
141         * as/link/z80/linkz80.dsp,
142         * configure,
143         * link,
144         * link/clean.mk,
145         * link/Makefile.in,
146         * link/README,
147         * link/z80,
148         * link/z80/aslink.h,
149         * link/z80/clean.mk,
150         * link/z80/conf.mk,
151         * link/z80/linkgbz80.dsp,
152         * link/z80/linkz80.dsp,
153         * link/z80/lkarea.c,
154         * link/z80/lkdata.c,
155         * link/z80/lkeval.c,
156         * link/z80/lkgb.c,
157         * link/z80/lkgg.c,
158         * link/z80/lkhead.c,
159         * link/z80/lkihx.c,
160         * link/z80/lklex.c,
161         * link/z80/lklibr.c,
162         * link/z80/lklist.c,
163         * link/z80/lkmain.c,
164         * link/z80/lkrloc.c,
165         * link/z80/lks19.c,
166         * link/z80/lksym.c,
167         * link/z80/Makefile.in,
168         * Makefile.in,
169         * sdcc.dsw: moved link/ to as/link/
170
171 2006-09-11 Maarten Brock <sourceforge.brock AT dse.nl>
172
173         * as/mcs51/i51mch.c (machine): fixed warning
174
175 2006-09-10 Maarten Brock <sourceforge.brock AT dse.nl>
176
177         * as/mcs51/i51mch.c (machine): S_DJNZ fixed bug 1554318
178
179 2006-09-09 Borut Razem <borut.razem AT siol.net>
180
181         * debugger/mcs51/sdcdb.c, debugger/mcs51/simi.c:
182           sdcdb WIN32 native port
183         * src/clean.mk: fixed
184
185 2006-09-08 Borut Razem <borut.razem AT siol.net>
186
187         * doc/sdccman.lyx: SDCDB and ucSim are available on Win32 platforms.
188
189 2006-09-08 Raphael Neider <rneider AT web.de>
190
191         * src/pic16/main.c (_pic16_linkEdit,pic16_linkCmd),
192         * src/pic/main.c(_pic14_do_link, linkCmd): pass "-w" and "-r"
193             to gplink to disable processor mismatch warning and to allow
194             the use of devices with only aliased (shared) memory banks,
195           (_pic16_genAssemblerPreamble): include pXXX.inc on --mplab-comp
196
197 2006-09-07 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
198
199         * doc/sdccman.lyx: Some re-formating plus example on using
200           #pragma preproc_asm +/-
201
202 2006-09-07 Borut Razem <borut.razem AT siol.net>
203
204         * support/scripts/sdcc.nsi: added SDCDB executables in a separate
205           section
206
207 2006-09-06 Borut Razem <borut.razem AT siol.net>
208
209         * support/scripts/sdcc.nsi: fixed Error: unterminated string parsing
210           line at sdcc.nsi:153
211         * sdcc/debugger/mcs51/simi.c: argsToCmdLine() fixes
212
213 2006-09-05 Borut Razem <borut.razem AT siol.net>
214
215         * configure.in, configure: support for winsock2
216         * debugger/mcs51/break.h, debugger/mcs51/cmd.c,
217           debugger/mcs51/cmd.h, debugger/mcs51/sdcdb.c,
218           debugger/mcs51/sdcdb.h, debugger/mcs51/simi.c,
219           debugger/mcs51/simi.h, debugger/mcs51/symtab.c,
220           debugger/mcs51/symtab.h: sdcdb WIN32 native port
221
222 2006-09-05 Maarten Brock <sourceforge.brock AT dse.nl>
223
224         * src/SDCCopt.c (cnvToFcall): fixed bug 1551947 by updating OP_USES
225           and OP_DEFS
226         * support/regression/tests/bug1551947.c: new, added
227         * src/SDCCsymt.h: strings are char* not byte*
228
229 2006-09-05 Raphael Neider <rneider AT web.de>
230
231         * device/lib/pic16/libdev/pic18f4550.c,
232           device/include/pic16/pic18f4550.h: added PORTD/TRISD
233             declarations/definitions from patch #1520949
234
235 2006-09-05 Raphael Neider <rneider AT web.de>
236
237         * src/pic16/gen.c (genPackBits): fix assignment to 8-bit,
238           byte-aligned bitfields, fixes #1539278
239
240 2006-09-05 Raphael Neider <rneider AT web.de>
241
242         * src/pic/gen.c (genReceive): skip unreferenced arguments,
243           fixes #1544120
244
245 2006-09-04 Borut Razem <borut.razem AT siol.net>
246
247         * support/scripts/sdcc.nsi: move ucSim executables to a separate section
248         * support/scripts/sdcc_cygwin_mingw32: don't disable ucsim,
249           -mno-cygwin is a part of the compiler name
250         * support/scripts/sdcc_mingw32: don't disable ucsim
251
252 2006-09-03 Borut Razem <borut.razem AT siol.net>
253
254         * sdcc.spec: corrected for 2.6.0. Thanks to Christer Weinigel.
255         * device/lib/Makefile.in device/lib/clean.mk: small but essential corrections
256
257 2006-09-03 Raphael Neider <rneider AT web.de>
258
259         * src/pic/ralloc.c,
260         * src/pic/pcode.c (InitReuseRegs): allocate registers with pseudo
261           indices >= 0x1000 to disambiguate them from fixed regs __at(addr),
262           fixes #1550049
263
264 2006-09-01 Borut Razem <borut.razem AT siol.net>
265
266         * sim/ucsim/cmd.src/cmdutil.cc: #include <sys/time.h> and <unistd.h>
267           to make ppc-osx happy
268
269 2006-08-31 Borut Razem <borut.razem AT siol.net>
270
271         * sim/ucsim/cmd.src/newcmdposix.cc: #include <assert.h>
272         * sim/ucsim/cmd.src/newcmd.cc: #include <ctype.h>
273         * sim/ucsim/cmd.src/newcmd.cc: #include <ctype.h>
274         * support/regression/ports/ds390/spec.mk,
275           support/regression/ports/mcs51/spec.mk,
276           support/regression/ports/xa51/spec.mk: introduced DEV_NULL variable.
277           To run regression tests in mingw environment:
278           make DEV_NULL=NUL CC=gcc
279
280 2006-08-30 Borut Razem <borut.razem AT siol.net>
281
282         * sim/ucsim/cmd.src/newcmdposix.cc, sim/ucsim/cmd.src/newcmdposixcl.h,
283           sim/ucsim/cmd.src/newcmdwin32.cc, sim/ucsim/cmd.src/newcmdwin32cl.h,
284           sim/ucsim/app.cc, sim/ucsim/appcl.h, sim/ucsim/configure,
285           sim/ucsim/configure.in, sim/ucsim/ddconfig_in.h, sim/ucsim/error.cc,
286           sim/ucsim/errorcl.h, sim/ucsim/option.cc, sim/ucsim/optioncl.h,
287           sim/ucsim/utils.cc, sim/ucsim/utils.h, sim/ucsim/cmd.src/Makefile.in,
288           sim/ucsim/avr.src/avr.cc, sim/ucsim/avr.src/avrcl.h,
289           sim/ucsim/cmd.src/bp.cc, sim/ucsim/cmd.src/bpcl.h,
290           sim/ucsim/cmd.src/cmdconf.cc, sim/ucsim/cmd.src/cmdgui.cc,
291           sim/ucsim/cmd.src/cmdmem.cc, sim/ucsim/cmd.src/cmdset.cc,
292           sim/ucsim/cmd.src/cmdsetcl.h, sim/ucsim/cmd.src/cmdstat.cc,
293           sim/ucsim/cmd.src/cmduc.cc, sim/ucsim/cmd.src/cmduccl.h,
294           sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/cmdutil.h,
295           sim/ucsim/cmd.src/command.cc, sim/ucsim/cmd.src/commandcl.h,
296           sim/ucsim/cmd.src/get.cc, sim/ucsim/cmd.src/getcl.h,
297           sim/ucsim/cmd.src/info.cc, sim/ucsim/cmd.src/newcmd.cc,
298           sim/ucsim/cmd.src/newcmdcl.h, sim/ucsim/cmd.src/set.cc,
299           sim/ucsim/cmd.src/show.cc, sim/ucsim/cmd.src/timer.cc,
300           sim/ucsim/hc08.src/hc08.cc, sim/ucsim/hc08.src/hc08cl.h,
301           sim/ucsim/s51.src/Makefile.in, sim/ucsim/s51.src/interrupt.cc,
302           sim/ucsim/s51.src/interruptcl.h, sim/ucsim/s51.src/pca.cc,
303           sim/ucsim/s51.src/pcacl.h, sim/ucsim/s51.src/port.cc,
304           sim/ucsim/s51.src/portcl.h, sim/ucsim/s51.src/serial.cc,
305           sim/ucsim/s51.src/serialcl.h, sim/ucsim/s51.src/timer0.cc,
306           sim/ucsim/s51.src/timer0cl.h, sim/ucsim/s51.src/timer1.cc,
307           sim/ucsim/s51.src/timer1cl.h, sim/ucsim/s51.src/timer2.cc,
308           sim/ucsim/s51.src/timer2cl.h, sim/ucsim/s51.src/uc390.cc,
309           sim/ucsim/s51.src/uc390cl.h, sim/ucsim/s51.src/uc390hw.cc,
310           sim/ucsim/s51.src/uc390hwcl.h, sim/ucsim/s51.src/uc51.cc,
311           sim/ucsim/s51.src/uc51cl.h, sim/ucsim/s51.src/wdt.cc,
312           sim/ucsim/s51.src/wdtcl.h, sim/ucsim/sim.src/hw.cc,
313           sim/ucsim/sim.src/hwcl.h, sim/ucsim/sim.src/mem.cc,
314           sim/ucsim/sim.src/memcl.h, sim/ucsim/sim.src/obsolete.cc,
315           sim/ucsim/sim.src/obsolete.h, sim/ucsim/sim.src/sim.cc,
316           sim/ucsim/sim.src/simcl.h, sim/ucsim/sim.src/stack.cc,
317           sim/ucsim/sim.src/stackcl.h, sim/ucsim/sim.src/test_mem_speed.cc,
318           sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
319           sim/ucsim/xa.src/xa.cc, sim/ucsim/xa.src/xacl.h,
320           sim/ucsim/z80.src/z80.cc, sim/ucsim/z80.src/z80cl.h:
321           ucsim WIN32 native port
322
323 2006-08-30 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
324
325         * doc/sdccman.lyx: added note on dynamic memory heap initialization
326
327 2006-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
328
329         * src/mcs51/gen.c (genAnd, genOr, genXor): fixed bug 1546986
330         * src/ds390/gen.c (aopGetUsesAcc): handle AOP_DPTR2 and AOP_DPTRn too
331
332 2006-08-26 Maarten Brock <sourceforge.brock AT dse.nl>
333
334         * src/ds390/gen.c (genAnd, genOr, genXor): fixed bug 1546986
335         * support/regression/tests/bug1546986.c: new, added
336         * as/mcs51/.cvsignore,
337         * debugger/mcs51/.cvsignore,
338         * src/.cvsignore: deleted
339
340 2006-08-25 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
341
342         * device/include/mcs51/P89c51RD2.h: fixed bug 1546936 (error in sbit
343           definitions)
344
345 2006-08-20 Borut Razem <borut.razem AT siol.net>
346
347         * sim/ucsim/cmd.src/newcmd.cc, sim/ucsim/cmd.src/newcmdcl.h:
348           removed cl_listen_console::match(), cl_console::match(),
349           restructured cl_commander::proc_input()
350
351 2006-08-16 Borut Razem <borut.razem AT siol.net>
352
353         * sim/ucsim/cmd.src/newcmd.cc, sim/ucsim/cmd.src/newcmdcl.h,
354           sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/cmdutil.h,
355           sim/ucsim/sim.src/mem.cc, sim/ucsim/sim.src/uc.cc: code cleaning
356
357 2006-08-14 Borut Razem <borut.razem AT siol.net>
358
359         * support/regression/Makefile.in,
360           support/regression/ports/pic14/gpsim.cmd,
361           support/regression/ports/pic14/spec.mk,
362           support/regression/ports/pic14/support.c:
363           added pic14 regression test
364
365 2006-08-14 Maarten Brock <sourceforge.brock AT dse.nl>
366
367         * as/doc/asxhtm.html: documented changed ABS behaviour
368         * as/doc/README: fixed some typos
369
370 2006-08-13 Maarten Brock <sourceforge.brock AT dse.nl>
371
372         * support/regression/tests/float_trans.c: disabled test if __STDC_IEC_559__
373           not defined on host
374
375 2006-08-12 Borut Razem <borut.razem AT siol.net>
376
377         * support/regression/fwk/include/testfwk.h,
378           support/regression/fwk/lib/testfwk.c,
379           support/regression/generate-cases.py,
380           support/regression/Makefile.in:
381           regression test framework does not depend on function pointers and
382           variable arguments
383
384 2006-08-09 Maarten Brock <sourceforge.brock AT dse.nl>
385
386         * device/include/stddef.h: c temporary hack to fix bug 1518273
387
388 2006-08-09 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
389
390         * device/include/mcs51/cc2510fx.h: added
391         * src/z80/z80.dsp, src/gbz80/gbz80.dsp: added support/Util/strcmpi.ch
392           to projects.
393
394 2006-08-09 Maarten Brock <sourceforge.brock AT dse.nl>
395
396         * as/z80/assym.c (mlookup): ignore case when looking up mnemonics
397         * as/z80/Makefile.in: added strcmpi.c
398         * as/z80/z80adr.c: added upper case registers and lower case conditionals
399         * support/Util/strcmpi.ch: added with intention to remove from mcs51/hc08
400
401 2006-08-08 Maarten Brock <sourceforge.brock AT dse.nl>
402
403         * device/lib/gbz80/asm_strings.s,
404         * device/lib/gbz80/crt0_rle.s,
405         * device/lib/gbz80/div.s,
406         * device/lib/gbz80/mul.s,
407         * device/lib/gbz80/shift.s,
408         * device/lib/z80/asm_strings.s,
409         * device/lib/z80/crt0_rle.s,
410         * device/lib/z80/div.s,
411         * device/lib/z80/mul.s,
412         * device/lib/z80/shift.s: changed to all lower case menmonics except the
413           flags which are all upper case
414
415 2006-08-07 Maarten Brock <sourceforge.brock AT dse.nl>
416
417         * as/z80/asm.h: made CASE_SENSITIVE 1
418         * link/z80/aslink.h: made CASE_SENSITIVE 1
419         * src/z80/gen.c (throughout): made all conditionals upper case
420         * support/regression/tests/bug1503067.c: new
421
422 2006-08-07 Maarten Brock <sourceforge.brock AT dse.nl>
423
424         * src/z80/gen.c (aopPut): fixed bug !*ixy should be !*iyx,
425           (shiftIntoPair): added case 2 for PAIR_IY,
426           (setupToPreserveCarry): replaced parameters with iCode and check if
427            PAIR_DE is in use to fix bug 1399290,
428           (genPlus, genMinus): updated call to setupToPreserveCarry
429         * support/regression/tests/bug1399290.c: new
430
431 2006-08-06 Maarten Brock <sourceforge.brock AT dse.nl>
432
433         * device/lib/Makefile.in (Z80SOURCES): enabled float support
434         * sim/ucsim/z80.src/inst.cc (inst_rst): generate breakpoint on RST8,ACC==0
435         * src/ds390/gen.c (shiftRLong),
436         * src/hc08/gen.c (shiftLLong, shiftRLong): fixed bug 1533966
437         * src/mcs51/gen.c (sameReg): changed to sameByte,
438           (xch_a_aopGet): new,
439           (shiftL2Left2Result, shiftR2Left2Result, shiftRLeftOrResult, shiftLLong,
440            shiftRLong): fixed bug 1533966
441         * src/z80/gen.c (shiftR2Left2Result, shiftL2Left2Result, genlshTwo,
442           genLeftShiftLiteral, genrshTwo, genRightShiftLiteral): fixed bug 1533966
443         * support/regression/Makefile.in: disabled z80, enabled ucz80
444         * support/regression/tests/float_trans.c: enabled test for z80 and host
445         * support/regression/tests/shifts2.c: new, for testing bug 1533966
446
447 2006-08-01 Borut Razem <borut.razem AT siol.net>
448
449         * src/mcs51/gen.c, src/dc390/gen.c: fixed warning:
450           comparison is always false due to limited range of data type
451           on PPC64 machine (openpower-linux1) where "char = unsigned char"
452
453 2006-08-01 Maarten Brock <sourceforge.brock AT dse.nl>
454
455         * sim/ucsim/hc08.src/hc08mac.h: removed faulty and unused add_u16_disp
456         * sim/ucsim/hc08.src/hc08.cc: removed faulty and unused int8
457         * sim/ucsim/z80.src/z80mac.h (add_u16_disp): use explicit signed char cast
458         * sim/ucsim/z80.src/z80.cc: removed faulty and unused int8
459
460 2006-07-31 Borut Razem <borut.razem AT siol.net>
461
462         * sim/ucsim/configure, sim/ucsim/cmd.src/newcmdcl.h,
463           sim/ucsim/cmd.src/newcmd.cc, sim/ucsim/cmd.src/cmdutil.cc,
464           sim/ucsim/z80.src/Makefile.in, sim/ucsim/configure.in,
465           sim/ucsim/hc08.src/Makefile.in, sim/ucsim/hc08.src/hc08.cc,
466           sim/ucsim/ddconfig_in.h, sim/ucsim/s51.src/Makefile.in,
467           sim/ucsim/s51.src/uc51cl.h, sim/ucsim/s51.src/serialcl.h,
468           sim/ucsim/s51.src/uc51.cc, sim/ucsim/s51.src/serial.cc,
469           sim/ucsim/app.cc, sim/ucsim/avr.src/Makefile.in:
470           enable ucsim mingw compilation. Serial port is disabled,
471           since it uses termios.h API, which is not available on native
472           WIN32
473
474 2006-07-31 Borut Razem <borut.razem AT siol.net>
475
476         * Small Device C Compiler 2.6.0 released
477         * support/scripts/sdcc.nsi: added FULL_DOC option
478         * .version, doc/sdccman.lyx: changed sdcc version to 2.6.1
479
480 2006-07-28 Borut Razem <borut.razem AT siol.net>
481
482         * support/scripts/sdcc.nsi: remove $INSTDIR/include/asm/pic16/*.h
483         * doc/INSTALL.txt: updated
484
485 2006-07-27 Borut Razem <borut.razem AT siol.net>
486
487         * device/lib/pic/Makefile.in, device/lib/pic/Makefile.subdir,
488           device/lib/pic/libdev/Makefile.in: fixed bug
489           [ 1438354 ] pic libsdcc: distclean doesn't work
490         * device/lib/pic16/Makefile.in, device/lib/pic16/Makefile.subdir,
491           device/lib/pic16/libio/Makefile.in: fixed bug
492           [ 1438344 ] pic16 lib: clean doesn't work properly
493         * doc/knownbugs.html removed [ 1438354 ] and [ 1438344 ] from the list
494
495 2006-07-26 Maarten Brock <sourceforge.brock AT dse.nl>
496
497         * device/lib/pic/libsdcc/fsdiv.c,
498         * device/lib/pic/libsdcc/fsmul.c,
499         * device/lib/pic16/libsdcc/float/fsdiv.c,
500         * device/lib/pic16/libsdcc/float/fsmul.c,
501         * device/lib/_fsdiv.c,
502         * device/lib/_fsmul.c: bugfix, handle too large and too small numbers
503         * support/regression/tests/bug1520966.c: added
504         * doc/knownbugs.html: removed [ 1520966 ] from the list
505
506 2006-07-25 Borut Razem <borut.razem AT siol.net>
507
508         * configure.in, configure, sdccconf_in.h: fixed bug
509           [ 1519095 ] regression test onebyte.c fails on ppc64 host
510         * doc/knownbugs.html: removed [ 1519095 ] from the list
511
512 2006-07-25 Maarten Brock <sourceforge.brock AT dse.nl>
513
514         * doc/knownbugs.html: added, contains list of known bugs at release
515         * device/include/mcs51/compiler.h: fixed SFR32 for SDCC
516
517 2006-07-23 Maarten Brock <sourceforge.brock AT dse.nl>
518
519         * device/include/mcs51/compiler.h: added SFRX for xdata based special
520           function registers and corrected defaults with additional warning
521         * device/lib/malloc.c: cosmetic changes
522         * device/lib/realloc.c: bugfix for bug #1496907, Thanks Efim Monyak
523         * src/ds390/ralloc.c (getRegBitNoSpil): reenabled,
524           (fillGaps): and used it
525
526 2006-07-20 Raphael Neider <rneider AT web.de>
527
528         * src/pic/device.c (addMemRange,assignRegister): suppress verbose
529           output unless SDCCPICDEBUG is set
530         * device/lib/pic16/Makefile.rules (%.lib target): suppress verbose
531           output if SILENT is set
532
533 2006-07-11 Borut Razem <borut.razem AT siol.net>
534
535         * doc/README.txt: updated
536
537 2006-07-10 Borut Razem <borut.razem AT siol.net>
538
539         * support/scripts/sdcc.nsi: added device/include/asm/pic/features.h and
540           device/lib/src/pic/libm/*.c and device/lib/src/pic16/libsdcc/stack/*.S
541           in WIN32 installation
542         * .version, sdcc.spec, doc/sdccman.lyx: changed sdcc version to 2.6.0 -
543           release candidate 1
544
545 2006-07-08 Maarten Brock <sourceforge.brock AT dse.nl>
546
547         * device/include/mcs51/XC866.h: added sbit definitions for Px_x, P1_x, P2_x
548         * src/pic16/glue.c (initPointer): fixed bug 1496419 for pic16
549
550 2006-07-06 Maarten Brock <sourceforge.brock AT dse.nl>
551
552         * src/hc08/gen.c (genAddrOf): fixed bug when offset on stack is >127
553
554 2006-07-06 Borut Razem <borut.razem AT siol.net>
555
556         * support/regression/tests/bitfields.c:
557           fixed bug [ 1518322 ] regression test bitfields fails on ppc hosts
558         * support/regression/tests/constantRange.c:
559           fixed bug [ 1518317 ] regression test constantRange fails on alpha host
560
561 2006-07-04 Borut Razem <borut.razem AT siol.net>
562
563         * src/configure.in, src/configure, src/Makefile.in, as/z80/Makefile.in,
564           src/port.mk,
565           src/avr/Makefile.in, src/ds390/Makefile.in, src/ds400/Makefile.in,
566           src/hc08/Makefile.in, src/mcs51/Makefile.in, src/pic16/Makefile.in,
567           src/pic/Makefile.in, src/xa51/Makefile.in, src/z80/Makefile.in:
568           reverted changes from 2006-07-03
569         * Makefile.common.in: added @CPPFLAGS@ to CPPFLAGS
570         * support/regression/Makefile.in, support/regression/ports/host/spec.mk:
571           added CPPFLAGS, used by the host port
572
573 2006-07-03 Bernhard Held <bernhard AT bernhardheld.de>
574
575         * support/regression/valdiag/tests/switch.c,
576         * support/regression/valdiag/tests/constantRange.c: adapted to gcc 4
577         * support/regression/tests/libmullong.c: fixed for host
578         * support/regression/ports/host/spec.mk: disable all warnings for host,
579         SDCC runs with --less-pedantic too
580
581 2006-07-03 Borut Razem <borut.razem AT siol.net>
582
583         * src/configure.in, src/configure, src/Makefile.in, as/z80/Makefile.in:
584           defined CPPFLAGS
585         * src/port.mk: defined CPPFLAGS, renamed to src/port.mk.in
586         * src/avr/Makefile.in, src/ds390/Makefile.in, src/ds400/Makefile.in,
587           src/hc08/Makefile.in, src/mcs51/Makefile.in, src/pic16/Makefile.in,
588           src/pic/Makefile.in, src/xa51/Makefile.in, src/z80/Makefile.in:
589           include ../port.mk
590         * sim/ucsim/main_in.mk, sim/ucsim/avr.src/Makefile.in,
591           sim/ucsim/gui.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
592           sim/ucsim/s52.src/Makefile.in, sim/ucsim/sim.src/Makefile.in,
593           sim/ucsim/xa.src/Makefile.in: ignore header files for dependencies
594
595 2006-07-02 Raphael Neider <rneider AT web.de>
596
597         * src/pic16/devices.inc,
598         * device/include/pic16/pic18fregs.h,
599         * device/include/pic16/pic18f4550.h,
600         * device/lib/pic16/pics.all,
601         * device/lib/pic16/libdev/pic18f4550.c: added support for 18f4550
602
603 2006-07-01 Bernhard Held <bernhard AT bernhardheld.de>
604
605         * as/hc08/lkaomf51.c (OutputName),
606         * as/mcs51/lkaomf51.c (OutputName),
607         * as/z80/asmain.c (asmbl),
608         * src/ds390/main.c (asmLineNodeFromLineNode),
609         * src/hc08/ralloc.c (hc08_assignRegisters),
610         * src/mcs51/main.c (asmLineNodeFromLineNode),
611         * src/xa51/ralloc.c (checkRegMask),
612         * src/xa51/gen.c (emitcode),
613         * src/z80/gen.c (_emit2),
614         * src/SDCCast.c (searchLitOp),
615         * src/SDCCglobl.h,
616         * support/packihx/packihx.c,
617         * support/Util/MySystem.c (split_command): fix gcc 4 warnings
618         * src/ds390/gen.c (aopPutUsesAcc),
619         * src/ds390/ralloc.c (getRegBitNoSpil): unused, therefore disabled
620         * support/regression/tests/libmullong.c (mullong_wrapper),
621         * src/SDCCsymt.c (powof2),
622         * src/SDCCast.c,
623         * src/SDCCicode.c: renamed TYPE_WORD by TYPE_TARGET_INT and so on
624         * src/SDCCsymt.h: added TYPE_TARGET_*
625         * src/SDCCutil.c (doubleFromFixed16x16, fixed16x16FromDouble),
626         * src/SDCCutil.h (doubleFromFixed16x16, fixed16x16FromDouble): moved to
627         SDCCast because 1) header problems 2) this is the right place
628         * src/SDCCast.c (doubleFromFixed16x16, fixed16x16FromDouble): added
629         * src/SDCCval.h (doubleFromFixed16x16, fixed16x16FromDouble): added
630         prototype
631
632 2006-06-29 Bernhard Held <bernhard AT bernhardheld.de>
633
634         * src/SDCCicode.h: removed buggy semicolon in unused macro
635         * src/SDCClrange.c (findPrevUseSym, rlivePoint): fixed bug #1486853,
636         search for previous definiton of auto symbols too,
637         (findPrevUse): fixed logic of emitWarnings
638
639 2006-06-26 Raphael Neider <rneider AT web.de>
640
641         * src/pic16/gen.c (genFunction, genEndFunction): also preserve
642           PCLATH and PCLATU on interrupts, potentially fixes #1505141
643
644 2006-06-25 Raphael Neider <rneider AT web.de>
645
646         * device/lib/pic/libm: NEW, added math library functions
647         * device/lib/pic/libsdcc: NEW; added float support functions
648         * device/lib/pic/{Makefile.in,configure.in,configure}: added libm/
649         * device/include/pic/{limits.h,errno.h,sdcc-lib.h,float.h,math.h}:
650           NEW, added math related headers
651         * device/include/asm/pic/features.h: NEW
652         * src/pic/gen.c (emitpcode_real): emit warning on NULL pCodeOp,
653           (popGet): allow larger offsets for AOP_PCODE,
654           (genDataPointerSet): handle literals explicitly, more debug output,
655           (genAssign): fixed for float using aopLiteral ;-)
656         * src/pic/glue.c (pic14createInterruptVect): inserted pagesel before
657           GOTO initialisation routine
658         * src/pic/pcoderegs.c (pCodeRegMapLiveRangesInFlow): set wasUsed
659           flag on registers, fixes #1469043 (local variables do not work)
660         * src/pic/main.c (_pic14_do_link),
661         * src/pic16/main.c (_pic16_linkEdit): use fullDstFileName if
662           available
663
664 2006-06-25 Borut Razem <borut.razem AT siol.net>
665
666         * device/lib/pic16/libc/stdio/sprintf.c: return the number of
667           characters printed (not including the trailing '\0' used to end
668           output to strings). Problem detected in regression test bug-927659.c.
669           NOTE: printf() family functions should return int instead
670           unsigned int!
671         * device/lib/pic16/libc/stdio/vfprintf.c: "%%" prints "%", unknown
672           specifier are printed as themselves
673         * sdcc/support/regression/tests/bug1057979.c: pic16 printf doesn't
674           support flags, width and precision specifiers
675
676 2006-06-24 Borut Razem <borut.razem AT siol.net>
677
678         * sdcc/support/regression/tests/bitvars.c: added gbz80, pic16 and pic16
679           to the list of sdcc tagrets not supporting bit type
680         * sdcc/support/regression/tests/bug-905992.c.c: excluded regression
681           testfor pic16 due to bug:
682           [ 1511794 ] pic16: regression test bug-895992.c fails
683
684 2006-06-24 Maarten Brock <sourceforge.brock AT dse.nl>
685
686         * src/mcs51/gen.c (genCmp): optimization for RFE 1162453
687         * src/SDCCglue.c (initPointer), fixed bug 1496419
688         * support/regression/tests/bug1496419.c: new, added
689
690 2006-06-22 Borut Razem <borut.razem AT siol.net>
691
692         * support/regression/ports/pic16/support.c: use gpsim usart module from
693           libgpsim_modules library
694
695 2006-06-21 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
696
697         * device/include/mcs51/at89c51ed2.h: Fixed bug 1510144 changed
698         IP0H to IPH0.
699
700 2006-06-19 Raphael Neider <rneider AT web.de>
701
702         * src/pic/glue.h,src/pic16/glue.h: added prototypes
703         * src/pic/glue.c,src/pic16/glue.c (pic1x_stringInSet,
704           pic1x_emitSymbolIfNew): NEW, check for a string in a set,
705           (pic14printExterns,pic14printPublics,pic16printPublics,
706           pic16_printExterns): use new functions to emit symbols
707           (picglue,pic16glue): emit publics before emitting externs
708         * src/pic/gen.c,src/pic16/gen.c (genFunction): remember the names of
709           locally defined functions to avoid bug #1443651
710         * support/regression/tests/bug-716242.c: removed pic16 workaround
711         * support/regression/ports/pic16/spec.mk: ignore errors during build
712
713 2006-06-19 Raphael Neider <rneider AT web.de>
714
715         * src/pic/glue.h: added pic14aopLiteral prototype
716         * src/pic/glue.c (pic14aopLiteral): return unsigned int
717         * src/pic/gen.c: removed stdint.h dependency
718           (aopGet): use Safe_strdup()
719           (bitpatternFromVal): removed, replaced use with pic14aopLiteral
720           (genDataPointerSet): use pic14aopLiteral()
721         * src/pic16/glue.h, src/pic16/glue.c, src/pic16/gen.c: similar changes
722           for pic16; thanks to Bernhard and Maarten
723
724 2006-06-18 Borut Razem <borut.razem AT siol.net>
725
726         * support/regression/tests/structflexarray.c: flexible array members
727           not supported by gcc < 3
728         * sim/ucsim/configure, sim/ucsim/configure.in: do not compile serio
729           GUI tool by default
730         * src/pic/gen.c: don't include [p]strdin.h on solaris
731         * support/Util/pstdint.h: addad svn attributes
732         * support/regression/tests/constantRange.c,
733           support/regression/tests/rotate.c: include inttypes.h instead
734           stdint.h on solaris, addad svn attributes
735
736 2006-06-18 Raphael Neider <rneider AT web.de>
737
738         * src/SDCCsymt.c (initCSupport): change return type of divschar to
739           int for PIC16
740         * src/pic16/genarith.c (genAddLit): sign-extend via standard routine
741           (pic16_genMinusBits): simplified sign-extension
742           (pic16_genUMult8XLit_8,pic16_genUMult8X8_8): renamed to
743             pic16_genMult8XLit_n resp. pic16_genMult8X8_n, fixed and
744             adjusted to correctly handle mixed-signed operands, disabled
745             now unused multiplciation routines
746         * src/pic16/gen.c (pic16_pushpCodeOp): fixed to handle literals
747           (assignResultValue): added argument denoting the size of the result
748             as returned by the function (fixes upcasts in assigning from
749             function calls: char foo(); int i = foo();)
750           (genCall,genPcall,genGenPointerGet,genReceive): pass size of
751             function result to assignResultValue
752           (genMult): disabled inlined multiplication code
753           (genDiv): augmented to also handle the modulus operator, fixed to
754             handle mixed-signed operands correctly
755           (genMod): simply call genDiv, disabled unused code
756           (genAssign): fixed missing (sign-)extension on result
757         * src/pic16/main.c (_hasNativeMulFor): accept literals [-128..256) as
758             valid char operands, allow signed operands for native code, added
759             division and modulo operator handling
760         * device/lib/pic16/libsdcc/char/divschar.c: divschar returns an int
761
762         As a consequence, onebyte.c (if split into two files) and muldiv.c
763         pass regression tests.
764
765 2006-06-17 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
766
767         * doc/Makefile.in: two runs of makeindex seem needed to get
768         correct page references in the index of sdccman.pdf
769         * doc/sdccman.lyx: mentioned cmon51, added links, small changes
770
771 2006-06-17 Borut Razem <borut.razem AT siol.net>
772
773         * sdcc/device/lib/Makefile.in: corrected PORTINCDIR path
774
775 2006-06-17 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
776
777         * doc/sdccman.lyx: updated, added (porting source code, debugging),
778         mentioned ec2drv and paulmon
779
780 2006-06-16 Maarten Brock <sourceforge.brock AT dse.nl>
781
782         * as/mcs51/lkarea.c (lnkarea2): clear new xdatamap, bugfix for two
783           consecutive abs areas
784           (find_empty_space, allocate_space): added map to handle codemap or
785            xdatamap,
786           (lnksect2): renamed rloc to locIndex, fixed bug 960060 by handling
787            absolute idata and xdata
788         * as/mcs51/lkmem.c (summary2): updated legend
789
790 2006-06-16 Raphael Neider <rneider AT web.de>
791
792         * src/pic16/gen.c (shiftR2Left2Result): fixed bug #1507127
793
794 2006-06-13 Maarten Brock <sourceforge.brock AT dse.nl>
795
796         * debugger/mcs51/cmd.c (cmdListFunctions): fixed bugs 1181163 and
797           1208515
798         * src/SDCClrange.c (findPrevUse): fixed bug 1294475
799
800 2006-06-13 Vangelis Rokas <vrokas AT users.sourceforge.net>
801
802         * src/port.h (struct PORT): added field gp_tags, to hold the tag
803         value of generic pointers,
804         * src/avr/main.c,
805           src/ds390/main.c,
806           src/hc08/main.c,
807           src/izt/i186.c,
808           src/izt/tlcs900h.c,
809           src/mcs51/main.c,
810           src/pic/main.c,
811           src/pic16/main.c,
812           src/xa51/main.c,
813           src/z80/main.c: PORT structure, added elements for gp_tags field,
814         * src/SDCCsymt.h: replaced hardwired values of GPTYPE_* macros with
815         fields in the PORT structure of each port,
816         * src/SDCCast.c (decorateType): allow processing of generic pointers
817         for PIC16 port (FPTRSIZE equals GPTRSIZE), also set GPTYPE_NEAR for
818         S_FIXED symbols
819
820 2006-06-12 Maarten Brock <sourceforge.brock AT dse.nl>
821
822         * link/z80/lkgb.c,
823         * link/z80/lkgg.c,
824         * src/pic16/gen.c,
825         * src/pic16/main.c,
826         * src/pic16/pcode.c,
827         * src/pic/main.c,
828         * src/pic/pcoderegs.c,
829         * src/SDCCicode.c,
830         * src/SDCCmain.c,
831         * src/SDCCsymt.c: replaced all exit(-1) by exit(EXIT_FAILURE) to fix
832           bug 1504689 on minGW
833
834 2006-06-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
835
836         * device/lib/printf_tiny.c: fixed bug #1465675 (%x format specifier)
837
838 2006-06-12 Bernhard Held <bernhard AT bernhardheld.de>
839
840         * src/SDCCast.c (backPatchLabels): fixed bug #1504636
841
842 2006-06-11 Maarten Brock <sourceforge.brock AT dse.nl>
843
844         * device/lib/printf_large.c (OUTPUT_CHAR, _output_char): added and used
845           for optimization
846
847 2006-06-11 Vangelis Rokas <vrokas AT users.sourceforge.net>
848
849         * src/pic16/gen.c (genCast): fixed bug with assignment of a pointer
850         to a char variable. Fixed bug #1504211
851         * device/include/pic16/adc.h,
852         device/include/lib/pic16/libio/adc/adcopen.c: applied patch #1364387
853         and fixed bug #1364390
854
855 2006-06-10 Borut Razem <borut.razem AT siol.net>
856
857         * CVSROOT: removed the CVS left-over
858
859 2006-06-10 Maarten Brock <sourceforge.brock AT dse.nl>
860
861         * as/hc08/asmain.c (asexit),
862         * as/hc08/lkmain.c (lkexit),
863         * as/mcs51/asmain.c (asexit),
864         * as/mcs51/lkmain.c (lkexit),
865         * src/SDCCglue.c (DEFSETFUNC),
866         * src/SDCCmain.c (linkEdit, assemble),
867         * support/librarian/sdcclib.c (AddRel),
868           replaced unlink() by standard C remove()
869         * src/SDCC.y: replaced removePostIncDecOps() by createRMW()
870         * src/SDCCast.c (replaceAstWithTemporary, createRMW,
871           gatherImplicitVariables): new, added to fix bug 608752,
872           (createFunction): added gatherImplicitVariables()
873         * src/SDCCast.h: added createRMW prototype
874         * src/SDCCsymt.h (struct symbol): added infertype
875         * support/regression/tests/bug608752.c: new, added
876
877 2006-06-10 Raphael Neider <rneider AT web.de>
878
879         * src/pic16/gen.c (pic16_aopOp): use WREG as destination even for
880           multibyte dummy reads (fixes #1503234)
881
882 2006-06-10 Maarten Brock <sourceforge.brock AT dse.nl>
883
884         * device/include/mcs51/compiler.h: new, added header file to enable
885           creating common sfr definition header files for different compilers
886
887 2006-06-05 Raphael Neider <rneider AT web.de>
888
889         * src/pic16/{pcode.h,genarith.c}:
890           introduced pCodeOp combining any two pCodeOps (previously only
891           two register operands could be combined), removed pcop2 from
892           pCodepReg, replaced pCodeOpReg2 with pCodeOp2, fixes #1492366
893         * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): added case for PO_TWO_OPS
894         * src/pic16/gen.c (pic16_popGet2,pic16_popGet2p,pic16_popCombine2):
895           rewritten to use new PO_TWO_OPS
896         * src/pic16/main.c (_hasNativeMulFor): cover more cases natively,
897         * src/pic16/pcode.c (pic16_newpCodeOpImmd): initialize rIdx field,
898           (pic16_newpCodeOp): catch invalid attempts on PO_TWO_OPS,
899           (pic16_newpCodeOp2): NEW, create combined pCodeOp,
900           (pic16_get_op): embraced return arg to allow #define return(x),
901             added new case for combined opcodes
902           (pic16_get_op2): reduced to use pic16_get_op() on second pCodeOp,
903           (pic16_pCode2str,pic16_getRegFrompCodeOp,
904            pic16_getRegFromInstruction2): fixed/added handling of new pCodeOp
905
906 2006-06-04 Bernhard Held <bernhard AT bernhardheld.de>
907
908         * src/SDCCval.c (checkConstantRange): added
909         * src/SDCCval.h: added checkConstantRange
910         * support/Util/SDCCerr.c,
911         * support/Util/SDCCerr.h: replaced unused W_IF_NEVER_TRUE and
912         W_IF_ALWAYS_TRUE by W_COMP_RANGE and W_LIT_OVERFLOW
913         * src/SDCC.y: moved early 'condition transformations' to SDCCast.c
914         * src/SDCCast.c (decorateType): added checkConstantRange,
915         added 'condition transformations' from SDCC.y so that now W_COMP_RANGE
916         can be emitted with the correct always true/false warning,
917         added optimization for double '!';
918         result of decorateType() must be assigned back to the tree, because
919         decorateType() can change the tree
920         * src/SDCCicode.c (geniCodeLogic),
921         (geniCodeAssign): replaced new checkConstantRange, added warnings,
922         (checkConstantRange): removed, it was only a fragment which never
923         emitted a warning
924         * src/SDCCsymt.c (computeType): fixed promotion for
925         "-1 < (unsigned bit) b"
926         * src/pic/ralloc.c (packRegsForAssign),
927         * src/pic16/ralloc.c (packRegsForAssign),
928         * src/hc08/ralloc.c (packRegsForAssign),
929         * src/z80/ralloc.c (packRegsForAssign): ported fix for bug #930931
930         from mcs51
931         * src/mcs51/ralloc.c (packRegsForAssign): removed outcommented source
932         * support/regression/tests/constantRange.c: added
933         * support/valdiag/tests/constantRange.c: added
934         * support/valdiag/valdiag.py: added -DPORT_HOST=1
935
936 2006-06-02 Borut Razem <borut.razem AT siol.net>
937
938         * support/regression/ports/pic16/support.c: increase stack size
939           to 255 bytes
940         * support/regression/Makefile.in: sort tests by name so that the
941           resutlts can be compared on different machines / platforms
942
943 2006-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
944
945         * device/lib/printf_large.c (output_digit): optimized further, Tnx Frieder
946         * src/ds390/gen.c (emitLabel): new, added,
947           (genDjnz): fixed stack overflow bug,
948           (throughout): cosmetic changes to sync with mcs51/gen.c,
949           replaced emitcode("", "%05d$:", lbl->key + 100) with emitLabel(lbl)
950         * src/mcs51/gen.c (genEndFunction): small optimization,
951           (throughout): cosmetic changes to sync with ds390/gen.c
952
953 2006-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
954
955         * device/lib/printf_large.c (output_digit, calculate_digit): optimized,
956           (_print_format): fixed printing pointers
957         * src/mcs51/gen.c (emitLabel, movb): new, added,
958           (genAssign): small optimization,
959           (genDjnz): fixed stack overflow bug,
960           (throughout): replaced sprintf with SNPRINTF,
961           replaced mcs51_regWithIdx with REG_WITH_INDEX,
962           replaced emitcode("mov", "b,...") with MOVB(...),
963           replaced emitcode("", "%05d$:", lbl->key + 100) with emitLabel(lbl),
964           replaced D(emitcode("; genXXX", "")) with D(emitcode(";", "genXXX"))
965         * src/mcs51/peeph.def: added rules 140 and 264
966         * src/SDCCmem.c (allocLocal): store register declared locals in DSEG/OSEG
967           so they may get optimized into registers
968
969 2006-05-30 Maarten Brock <sourceforge.brock AT dse.nl>
970
971         * src/SDCCmain.c (optionsTable, parseCmdLine): handle --use-stdout
972           immediately when encountered,
973           (printUsage): always use stderr even on windows
974
975 2006-05-30 Bernhard Held <bernhard AT bernhardheld.de>
976
977         * src/SDCCast.c (isLoopCountable): fixed bug #1478316
978         (processParms): fixed bug #1247551
979         * src/SDCCmain.c (printVersionInfo, printOptions, printUsage,
980         parseCmdLine, main): print '--version' to stdout,
981         print 'help' to stdout if --help is given,
982         print 'help' to stderr and exit with EXIT_FAILURE if no or bad
983         arguments are given; fixed --help
984
985 2006-05-27 Bernhard Held <bernhard AT bernhardheld.de>
986
987         * src/SDCCcse.c (findPointerSet): fixed bug #1493710
988         * support/regression/tests/bug-1493710.c: added
989
990 2006-05-27 Borut Razem <borut.razem AT siol.net>
991
992         * support/regression/fwk/lib/testfwk.c: define array in _printn() as
993           static instead auto
994         * support/regression/ports/pic16/support.c: increase stack size
995           from default 64 bytes to 128 bytes
996         * support/regression/tests/staticinit.c,
997           support/regression/tests/float.c: regression tests fully enabled
998           for pic16 port by putting the initialized data arrays into the code
999           section
1000         * support/regression/ports/pic16/spec.mk: don't link default libraries.
1001           This was changed by mistake in the previous version.
1002
1003 2006-05-28 Vangelis Rokas <vrokas AT users.sourceforge.net>
1004
1005         * src/pic16/gen.c (genFunction, genEndFunction): some
1006         beautifications, fixed bug with falsely restoring FSR2 in large
1007         stack model, thanks to Beau E. Cox for reporting the bug
1008
1009 2006-05-26 Maarten Brock <sourceforge.brock AT dse.nl>
1010
1011         * debugger/mcs51/break.c,
1012         * debugger/mcs51/cmd.c (throughout): removed unused variables and labels,
1013           use %p to print pointers, made address variables unsigned
1014         * debugger/mcs51/cmd.c (infoSymbols): added missing parameter to printf
1015         * debugger/mcs51/symtab.c (parseSymbol): must return something
1016         * src/mcs51/gen.c (aopForSym): small optimization,
1017            moved declarations mcs51_ptrRegReq and mcs51_nRegs to ralloc.h,
1018           (freeAsmop): added missing break,
1019           (aopPut): removed parameter bvolatile, determine it inside the function,
1020           (saveRegisters, unsaveRegisters): small optimization,
1021           (genIpush): removed pointless check,
1022           (throughout): replaced Safe_calloc, strcpy with Safe_strdup,
1023           replaced sprintf with SNPRINTF,
1024           replaced strcpy with strncpyz,
1025           updated aopPut calls,
1026           replaced D(emitcode("; genXXX", "")) with D(emitcode(";", "genXXX"))
1027         * src/mcs51/ralloc.h:  added declarations mcs51_ptrRegReq and mcs51_nRegs
1028
1029 2006-05-24 Borut Razem <borut.razem AT siol.net>
1030
1031         * support/regression/tests/bug-221100.c: fixed xdata problem caused by
1032           modification of test for the pic16 port, put the array to the code
1033           memory for pic16port; thanks to Maarten Brock and Frieder Ferlemann
1034
1035 2006-05-23 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1036
1037         * src/pic/gen.c: MSC 6 does not have <stdint.h>.  Use pstdint.h instead.
1038         * support/Util/pstdint.h: added
1039
1040 2006-05-22 Borut Razem <borut.razem AT siol.net>
1041
1042         * src/regression/Makefile: removed bool2.c test, added -q linker option
1043         * src/regression/add2.c, src/regression/add3.c, src/regression/bool1.c,
1044           src/regression/bool3.c, src/regression/nestfor.c, src/regression/ptrfunc.c,
1045           src/regression/compare.c, src/regression/or1.c, src/regression/compare2.c,
1046           src/regression/while.c, src/regression/compare3.c, src/regression/compare4.c,
1047           src/regression/compare5.c, src/regression/sub2.c, src/regression/rotate1.c,
1048           src/regression/rotate2.c, src/regression/rotate3.c, src/regression/rotate4.c,
1049           src/regression/switch1.c, src/regression/rotate5.c, src/regression/for.c,
1050           src/regression/add.c, src/regression/sub.c, src/regression/call1.c:
1051           define SUPPORT_BIT_TYPES 0, removed unused bit variables
1052
1053 2006-05-22 Raphael Neider <rneider AT web.de>
1054
1055         * src/pic16/gen.c (pic16_storeForReturn): fragile fix for
1056           bug #1492360 (problematic due to generic pointers, see code)
1057
1058 2006-05-22 Borut Razem <borut.razem AT siol.net>
1059
1060         * support/regression/ports/pic16/specs.mk: removed stack size linker
1061           directive
1062         * support/regression/tests/array.c,
1063           support/regression/tests/bitopcse.c,
1064           support/regression/tests/bug-908454.c,
1065           support/regression/tests/malloc.c: modified for pic16 regression test
1066         * support/regression/tests/bitfields.c:
1067           pic16 - excluded bitfileds of size > 8
1068         * support/regression/tests/bp.c: pic16 - reduced data size
1069         * support/regression/tests/bug-221100.c: pic16 - reduced data size
1070         * support/regression/tests/bug-460010.c:
1071           pic16 - used the absolute address the fits in memory
1072         * support/regression/tests/bug-716242.c:
1073           bug [ 1443651 ] pic 16: redefining symbol that cannot be redefined.
1074         * support/regression/tests/float.c:
1075           pic16 - excluded - data size too big
1076         * support/regression/tests/onebyte.c:
1077           pic16 - bug [ 1444425 ] onebyte.c regression tes fails on pic16
1078         * support/regression/tests/shifts.c:
1079           pic16 - function names probably have to differ in first X characters
1080           (gpasm limitation?)
1081         * support/regression/tests/staticinit.c:
1082           pic16 - excluded some tests due error: no target memory available for
1083           section ".idata"
1084
1085 2006-05-22 Borut Razem <borut.razem AT siol.net>
1086
1087         * support/Util/dbuf.c: fixed bug #1489008 fix dbuf_c_str(),
1088           second try. Thanks Stas Sergeev once more.
1089
1090 2006-05-21 Maarten Brock <sourceforge.brock AT dse.nl>
1091
1092         * src/hc08/gen.c (transferAopAop): aop forced to stack was not restored,
1093           (genLeftShift, genRightShift): fixed bug 1491627
1094         * src/hc08/peeph.def (rules 7, 8.x): added
1095         * support/regression/tests/shifts.c (ShiftLeftByParam,
1096           ShiftRightByParam, testShiftByParam): added to test variable shifting
1097
1098 2006-05-20 Raphael Neider <rneider AT web.de>
1099
1100         * src/pic/gen.c (bitpatternFromVal): fixed for 64-bit machines
1101         * src/pic16/ralloc.c (newReg): use correct name in hashtable,
1102           (allocReg): add only new registers to dynAllocRegs,
1103           (pic16_assignRegisters): do not reset dynrIdx, fixes bugs
1104             #1489055, #1445850, and probably #1483693
1105
1106 2006-05-19 Vangelis Rokas <vrokas AT users.sourceforge.net>
1107
1108         * src/pic16/glue.c (pic16_emitConfigRegs, pic16_emitIDRegs): fixed
1109         bug in for-loop that didn't emit the last of CONFIG and ID registers
1110
1111 2006-05-18 Maarten Brock <sourceforge.brock AT dse.nl>
1112
1113         * src/mcs51/gen.c (genCodePointerGet): inc dptr instead of loading acc
1114           with offset
1115         * src/mcs51/peeph.def (186.x): updated and reenabled to fix bugs
1116           1489016, 1434401 and 1490124
1117         * src/ds390/peeph.def (186.x, 227.x): updated and reenabled to fix bugs
1118           1489016, 1434401 and 1490124
1119
1120 2006-05-17 Borut Razem <borut.razem AT siol.net>
1121
1122         * support/Util/dbuf.c: fixed bug #1489008 fix dbuf_c_str(),
1123           thanks Stas Sergeev
1124
1125 2006-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
1126
1127         * device/include/mcs51/P89c51RD2.h,
1128         * device/include/mcs51/P89LPC901.h,
1129         * device/include/mcs51/P89LPC922.h,
1130         * device/include/mcs51/P89LPC932.h: added, thanks Omar Espinosa
1131
1132 2006-05-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
1133
1134         * device/lib/pic16/libsdcc/stack/{stack.S, Makefile.in}: add workaround
1135         to fix missing stack pragma in compiled binary object file,
1136
1137 2006-05-14 Bernhard Held <bernhard AT bernhardheld.de>
1138
1139         * support/packihx/configure.in,
1140         * support/packihx/configure: removed warning, autoconf >= 2.5x can
1141         determine sizeof basic types even while cross compiling
1142
1143 2006-05-13 Bernhard Held <bernhard AT bernhardheld.de>
1144
1145         * src/avr/gen.c (aopop),
1146         * src/ds390/gen.c (aopOp),
1147         * src/hc08/gen.c (aopOp),
1148         * src/mcs51/gen.c (aopop),
1149         * src/pic16/gen.c (pic16_aopOp),
1150         * src/pic/gen.c (aopOp),
1151         * src/z80/gen.c (aopop): fix for bug #1479882; use new, exclusive asmop
1152         if size of operand is smaller than spill location
1153
1154 2006-05-12 Borut Razem <borut.razem AT siol.net>
1155
1156         * *.dsw, *.dsp: changed property svn:eol-style to CRLF since they
1157           have to have CR/LF line endings even if they are checked out on *nix
1158           or on WIN32 in cygwin binmode
1159
1160 2006-05-12 Maarten Brock <sourceforge.brock AT dse.nl>
1161
1162         * doc/sdccman.lyx: documented numeric ranges, WEBDOC #1442369
1163         * device/include/ds80c390.h: added sfr16 definitions
1164         * src/ds390/gen.c,
1165         * src/ds390/gen.h,
1166         * src/ds390/main.c,
1167         * src/ds390/ralloc.c,
1168         * src/ds390/ralloc.h: changes all over the place to sync with mcs51
1169           fixing several bugs and adding sfr16/sfr32, reentrant bit params,
1170           bit returning functions
1171         * support/regression/tests/sfr16.c: enabled test on ds390
1172
1173 2006-05-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1174
1175         * src/hc08/gen.c (asmopToBool, genIfx): fix for bug #1429722
1176         * src/hc08/gen.c (storeRegToAop): fix for bug #1439894
1177
1178 2006-05-11 Maarten Brock <sourceforge.brock AT dse.nl>
1179
1180         * sim/ucsim/sim.src/memcl.h: added get_decoder() to cl_address_space
1181         * sim/ucsim/sim.src/mem.cc: implemented cl_address_space::get_decoder,
1182           (cl_address_space constructor): removed expensive initialization,
1183           (cl_address_space::get_cell): extended for late initialization,
1184           (cl_address_space::*): use late initialization,
1185           (cl_address_decoder::activate): removed expensive initialization,
1186           This reduced regression test running time by 25%
1187
1188 2006-05-11 Bernhard Held <bernhard AT bernhardheld.de>
1189
1190         * packihx/,
1191         * configure.in,
1192         * configure,
1193         * sdcc.dsw,
1194         * Makefile.bcc,
1195         * Makefile.in,
1196         * support/packihx/Makefile.in,
1197         * support/packihx/clean.mk,
1198         * support/packihx/Makefile.bcc,
1199         * support/packihx/PackIhx.dsp: moved packihx to support/packihx
1200
1201 2006-05-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1202
1203         * src/SDCCval.c (valNot): fix for regression test failure
1204           of not.c on big endian hosts
1205
1206 2006-05-10 Maarten Brock <sourceforge.brock AT dse.nl>
1207
1208         * device/inlcude/mcs51/msc1210.h: new, added, thanks Philippe Latu
1209
1210 2006-05-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1211
1212         * device/lib/mcs51/Makefile.in: changed string comparison operator
1213           to = for POSIX compliance; == is bash extension
1214
1215 2006-05-10 Maarten Brock <sourceforge.brock AT dse.nl>
1216
1217         * device/lib/hc08/_mulint.c: applied patch 1485428, thanks
1218           kosmonaut_pirx
1219
1220 2006-05-09 Vangelis Rokas <vrokas AT users.sourceforge.net>
1221
1222         * src/pic16/gen.c (pic16_freeAsmop): release any temp registers
1223         allocated by aopForSym thus fixing bug #1478657 about failed testfwk.c
1224         * src/pic16/main.c (_pic16_keywords): added 'sfr16' keyword,
1225         * src/pic16/ralloc.c (pic16_allocWithIdx): also a fix for bug exposed by
1226         bug report #1478657,
1227
1228 2006-05-05 Borut Razem <borut.razem AT siol.net>
1229
1230         * doc/Makefile.in: remove of WARNINGS and labels.pl immediately after
1231           making the html
1232
1233 2006-05-02 Borut Razem <borut.razem AT siol.net>
1234
1235         * doc/Makefile.in: removed *.ind dependency since there is no rule to
1236           create *.ind, which made make to fail if invoked with -j 2
1237
1238 2006-05-01 Maarten Brock <sourceforge.brock AT dse.nl>
1239
1240         * src/SDCCglue.c (emitRegularMap): partial fix for bug 1477149, thanks
1241           Hubert Sack for patch 1479782
1242
1243 2006-05-01 Vangelis Rokas <vrokas AT users.sourceforge.net>
1244
1245         * src/pic16/glue.c (pic16_printIvalStruct): fixed bug #1445929
1246
1247 2006-05-01 Raphael Neider <rneider AT web.de>
1248
1249         * src/pic/device.c (sanitise_processor_name): only remove p(ic) prefix,
1250           (create_pic): store only prefix-free device name,
1251           (init_pic): check for device names with "16" prefix,
1252           (list_valid_pics),
1253         * src/pic/device.h (struct PIC_device),
1254         * src/pic/main.c (_pic14_genAssemblerPreamble): adapted to single
1255             stored device name,
1256         * device/include/pic/pic12f{635,675,629,683}.h,
1257         * device/lib/pic/libdev/pic12f{635,675,629,683}.c: NEW device libraries
1258         * device/lib/pic/libdev/Makefile.in: allow pic12* devices,
1259         * device/include/pic/pic16f505.h,
1260         * device/lib/pic/libdev/pic16f505.c: removed
1261         * device/include/pic/pic14devices.txt: added support for pic12f
1262             devices, removed unsupported non 16-bit devices
1263             [above changes provided by patch from Zik Saleeba]
1264         * src/pic/*, src/pic16/*, device/include/pic16/*,
1265           device/lib/pic/**, device/lib/pic16/**: obfuscated email address
1266
1267 2006-05-01 Borut Razem <borut.razem AT siol.net>
1268
1269         * configure.in, configure, doc/Makefile.in:
1270           sync with nightly build makefile - latex, dvipdf and dvips
1271           not needed any more
1272
1273 2006-04-30 Bernhard Held <bernhard AT bernhardheld.de>
1274
1275         * support/scripts/sdcc.nsi: removed all Readmes and Makefiles
1276         in the library source
1277
1278 2006-04-30 Maarten Brock <sourceforge.brock AT dse.nl>
1279
1280         * support/regression/ports/hc08/spec.mk: fixed bug 1478892
1281
1282 2006-04-28 Raphael Neider <rneider AT web.de>
1283
1284         * src/pic16/pcode.c (pic16_newpCodeOpLit12),
1285         * src/pic16/gen.c (pic16_popGetLit12): NEW, create 12 bit literal,
1286           (pic16_loadFSR0): handle 12 bit literals correctly, fixes #1440527
1287         * src/pic16/pcode.h: added prototype for pic16_newpCodeOpLit12()
1288
1289 2006-04-28 Bernhard Held <bernhard AT bernhardheld.de>
1290
1291         * device/lib/pic/libdev/Makefile.in,
1292         * device/lib/hc08/Makefile.in,
1293         * device/lib/gbz80/Makefile.in,
1294         * device/lib/z80/Makefile.in,
1295         * device/lib/ds390/Makefile.in,
1296         * device/lib/ds400/Makefile.in: added srcdir to include search path,
1297         thanks to Borut for the bug report
1298         * configure.in,
1299         * configure: always create doc/Makefile independent from --enable-doc
1300         * Makefile.in: always install from directory doc independent from
1301         --enable-doc
1302         * device/lib/pic/Makefile.in: added libdev again, it was erroneously
1303         removed
1304         * device/lib/pic/libdev/Makefile.in: fixed VPATH build
1305         * doc/Makefile.in: install *.txt if present
1306         * device/include/Makefile.in (install): added installation of pic/*.inc
1307         and pic/*.txt files again, they were erroneously removed
1308
1309 2006-04-28 Raphael Neider <rneider AT web.de>
1310
1311         * src/pic/{gen.c,main.h,pcode.c},
1312         * src/pic16/{gen.c,pcode.c}: quietened compiler warnings
1313             concerning signedness with casts
1314
1315 2006-04-28 Raphael Neider <rneider AT web.de>
1316
1317         * src/pic/gen.c (genFunction): set global pic14_hasInterrupt on
1318             definition of an interrupt handler,
1319         * src/pic/glue.c (pic14_emitInterruptHandler): moved output of
1320             interrupt handler stuff from picglue() to separate routine,
1321           (picglue): enabled definition of intr handlers in files w/o main()
1322
1323 2006-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
1324
1325         * support/librarian/sdcclib.c: moved include <limits.h> up to enable
1326           compilation with MSVC 2005 Express Edition (VC8)
1327
1328 2006-04-26 Bernhard Held <bernhard AT bernhardheld.de>
1329
1330         * device/lib/Makefile: fixed build of gbz80 lib
1331
1332 2006-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
1333
1334         * support/regression/tests/bug-460010.c,
1335         * support/regression/tests/bug-524691.c,
1336         * support/regression/tests/bug-716242.c: removed conditional defines
1337           that are already in testfwk.h
1338
1339 2006-04-25 Maarten Brock <sourceforge.brock AT dse.nl>
1340
1341         * src/ds390/gen.c (AccAXRrl1, AccAXLrl1): changed to real rotate by 1,
1342           (AccAXRsh1): added, shift right by 1,
1343           (AccAXLsh, AccAXRsh, AccAXRshS): updated for AccAXRrl1, AccAXRsh1 and
1344            AccAXLrl1
1345         * support/regression/tests/rotate.c: use <stdint.h> and enabled ds390
1346
1347 2006-04-25 Bernhard Held <bernhard AT bernhardheld.de>
1348
1349         * src/SDCCast.c (decorateType): partial fix for RFE 1475769,
1350         remove cast to same type
1351         * src/SDCCast.c (decorateType): fix for RFE 1475742,
1352         optimize 'ifx (op == 0)' resp. 'ifx (op != 0)'
1353         * as/z80/Makefile,
1354         * link/z80/Makefile: removed, they have moved to
1355         Makefile.in files
1356         * configure,
1357         * configure.in: replaced duplicate message about ucsim by missing sdcpp
1358         * install-sh: fix bug #1204398 by setting umask 0022
1359         * device/lib/Makefile: separate build of z80 and gbz80 lib
1360
1361 2006-04-24 Bernhard Held <bernhard AT bernhardheld.de>
1362
1363         Enabled VPATH feature: changed nearly all Makefiles (149 files).
1364         See sdccman.lyx '2.4.10 VPATH feature' about how to use it.
1365
1366         One basic decision: e.g. src/clean.mk includes further files. In order
1367         to make this work there are two solutions:
1368         - rename another dozen clean.mk to clean_in.mk, add srcdir to them and
1369           run configure on them. This way they can use
1370           'include $(srcdir)/port-clean.mk'
1371         - always include clean.mk by the Makefile at the same level. To avoid
1372           that `make clean` tries to include and build Makefile.dep the
1373           MAKECMDGOALS are examined (see e.g. src/Makefile.in). This has been
1374           implemented, because now even `make uninstall` doesn't create
1375           Makefile.in. clean.mk could be eliminated by pasting it in
1376           Makefile.in.
1377
1378         * debugger/mcs51/Makefile.in: build own objects from library sources
1379         (SLIB, SDCC) in current directory
1380
1381         * configure, configure.in: renamed --disable-device-lib-build in
1382         --disable-device-lib; added --enable-doc, the required tools are
1383         searched by configure; added result message; the toolchain for the
1384         belonging ports are now only built, if the port is enabled.
1385
1386         * support/regression/*: all output is written in directory gen, because
1387         the fwk and ports directories don't livet in the build tree using vpath
1388
1389         * doc/sdccman.lyx: renamed --disable-device-lib-build to
1390         --disable-device-lib, added --enable-doc, added section VPATH
1391
1392         * sim/ucsim/configure.in,
1393         * sim/ucsim/configure.in: hc08 couldn't be disabled, now hc08 and
1394         z80 are enabled by default
1395
1396 2006-04-24 Raphael Neider <rneider AT web.de>
1397
1398         * src/pic/device.c (pic14_assignConfigWordValue): remember assignments
1399             to config word, "pic14_"-prefixed some extern functions
1400           (pic14_emitConfigWord): emit __config directive(s) if assignment to
1401             config word has been found
1402         * src/pic/device.h: added prototypes
1403         * src/pic/pcode.c: added "pic14_"-prefix where needed
1404         * src/pic/ralloc.c (IS_CONFIG_ADDRESS,pic14_assignRegisters): cosmetic
1405             fixup
1406         * src/pic/glue.c (pic14_constructAbsMap): handle assignments to config
1407             words,
1408           (pic14emitRegularMap): ignore config words,
1409           (pic14createInterruptVect): moved generating __config directives away
1410           (picglue): have __config directives emitted
1411
1412 2006-04-24 Borut Razem <borut.razem AT siol.net>
1413
1414         * doc/Makefile: sync with nightly build makefile
1415
1416 2006-04-24 Raphael Neider <rneider AT web.de>
1417
1418         * src/pic/pcoderegs.c (OptimizeRegUsage): do not optimize
1419             registers that have not been assigned proper liveranges,
1420             fixes #1469504 and #1474602,
1421           (pCodeRegOptimizeRegUsage): fixed typo in comment
1422
1423 2006-04-24 Borut Razem <borut.razem AT siol.net>
1424
1425         * device/examples/main8051.c: deleted - it was removed from CVS
1426           24.mar.2000 and after that modified 18.feb.2001, so it reappered
1427           after the transition to Subversion
1428         * src/SDCCalloc.h: deleted - it was removed  from CVS
1429           3.feb.2001 and after that modified 18.feb.2001, so it reappered
1430           after the transition to Subversion
1431         * sim/ucsim/cpu.gif, sim/ucsim/interrupt.gif, sim/ucsim/new.gif,
1432           sim/ucsim/serial1.gif, sim/ucsim/serial2.gif,
1433           sim/ucsim/term_cpuopt.gif, sim/ucsim/timers.gif, sim/ucsim/wins.gif,
1434           sim/ucsim/post.jpg, sim/ucsim/UCsim.jpg: corrected
1435
1436 2006-04-22 Maarten Brock <sourceforge.brock AT dse.nl>
1437
1438         * as/asx8051.dsp: added mcs51/strcmpi.h
1439         * as/hc08/as_hc08.dsp: added asm.h, m6808.h, strcmpi.h
1440         * as/hc08/aslink.h: updated lnksect prototype
1441         * as/hc08/asm.h,
1442         * as/mcs51/asm.h: added a_addr to struct area and s_org to struct sym
1443         * as/hc08/asmain.c,
1444         * as/mcs51/asmain.c (asmbl): init dot.s_org for S_ORG,
1445           (newdot): handle A_ABS
1446         * as/hc08/asout.c,
1447         * as/mcs51/asout.c (outarea): output address
1448         * as/hc08/lkaomf51.c,
1449         * as/mcs51/lkaomf51.c: disabled unused array UsageType
1450         * as/hc08/m08pst.c,
1451         * as/mcs51/i51pst.c,
1452         * as/z80/z80pst.c: "ABS" is not A_OVR
1453         * as/hc08/lkarea.c (newarea): read a_addr,
1454           (lnkarea): added codemap array, sort absolute areas to the front,
1455            combine all GSINITx/GSFINAL,
1456           (find_empty_space, allocate_space): new functions,
1457           (lnksect): return next address, handle absolute sections
1458         * as/mcs51/lkarea.c (newarea): read a_addr,
1459           lnksect2 prototype changed,
1460           (lnkarea2): define codemap unsigned, combine all GSINITx/GSFINAL,
1461           (find_empty_space, allocate_space): new, factored out of lnksect2,
1462           (lnksect2): return next address, handle absolute sections
1463         * as/hc08/lkhead.c,
1464         * as/mcs51/lkhead.c (newhead): head is absolute but not overlay
1465         * as/hc08/lklibr.c (addfile, fndsym),
1466         * as/mcs51/lklibr.c (addfile, buildlibraryindex, fndsym): prevent
1467           index out of range and detect both '\' and '/'
1468         * device/include/mcs51/c8051f200.h: added _XPAGE, removed bad comment
1469         * device/include/stdbool.h: removed SDCC_ds390 from check to pass
1470           regression tests (ds390 cannot return bool yet)
1471         * doc/sdccman.lyx: changed version number, document changed --no-peep,
1472           document critical interrupts on z80, document changed SDCC define
1473         * src/asm.c (_asxxxx_mapping): fixed .org directive,
1474           (_a390_mapping): added .org directive
1475         * src/hc08/gen.c (transferAopAop): made bytemask log to fix warning,
1476           (genMultOneByte): fixed warnings
1477         * src/hc08/hc08.dsp: lowered warning level to 2 to suppress pedantic
1478           ones
1479         * src/pic16/device.c: removed newReg prototype, removed BYTE_IN_LONG
1480         * src/pic16/gen.c (pic16_popGetLabel): made parameter key signed,
1481           (pic16_genLeftShiftLiteral, genRightShiftLiteral): fixed warnings
1482         * src/pic16/gen.h: changed prototype for pic16_popGetLabel
1483         * src/pic16/main.c: removed newReg prototype
1484         * src/pic16/pcode.c,
1485         * src/pic16/pcode.h (pic16_emitDB): changed parameter c to int to fix
1486           warnings
1487         * src/pic16/pic16.dsp: lowered warning level to 2 to suppress pedantic
1488           ones
1489         * src/pic16/ralloc.c
1490         * src/pic16/ralloc.h (newReg): changed type to int and size to unsigned
1491           to fix warnings
1492         * src/pic/pcode.c (allocInternalRegister): changed parameter optype
1493           from short to PIC_OPTYPE
1494         * src/pic/pic.dsp: lowered warning level to 2 to suppress pedantic ones
1495         * src/pic/ralloc.c (newReg, allocInternalRegister): changed parameter
1496           optype from short to PIC_OPTYPE
1497         * src/port.h: made int_size unsigned to fix warnings
1498         * src/SDCC.y: fixed warning on MSVC
1499         * src/SDCCicode.c (getArraySizePtr): return unsigned int
1500         * src/SDCCopt.c (convertToFcall): fixed warnings
1501         * src/SDCCsymt.h: removed double prototype for genSymName
1502         * src/xa51/ralloc.c (allocReg): made size unsigned int, type int and
1503           offset int to fix warnings
1504
1505 2006-04-22 Borut Razem <borut.razem AT siol.net>
1506
1507         * doc/sdccman.lyx, */Makefile, */Makefile.in:
1508           references to CVS replaced with Subversion
1509
1510 2006-04-21 Borut Razem <borut.razem AT siol.net>
1511
1512         * doc/sdccman.lyx, */Makefile, */Makefile.in:
1513           references to CVS replaced with Subversion
1514
1515 2006-04-19 Borut Razem <borut.razem AT siol.net>
1516
1517         * src/version.awk: adapted for svn
1518         * /asxxxx/asxhtml/*.gif: set property svn:mime-type to image/gif
1519           sim/ucsim/doc/*.gif: set property svn:mime-type to image/gif
1520           sim/ucsim/doc/*.jpg: set property svn:mime-type to image/jpeg
1521           /binutils-avr/etc/*.vi, *.jin: removed all properties
1522           support/scripts/sdcc.ico: set property svn:mime-type to image/x-icon
1523
1524 2006-04-19 Borut Razem <borut.razem AT siol.net>
1525
1526         * CVS to Subversion migration completed
1527
1528 2006-04-18 Borut Razem <borut.razem AT siol.net>
1529
1530         * support/scripts/sdcc.nsi: removed unexisting ${DEV_ROOT}\lib\pic\*.o,
1531           ${DEV_ROOT}\lib\src\pic\libdev\*.S, ${DEV_ROOT}\lib\src\pic\libdev\*.inc
1532
1533 2006-04-17 Borut Razem <borut.razem AT siol.net>
1534
1535         * device/include/Makefile.in: added pic/*.inc to the installation
1536
1537 2006-04-15 Bernhard Held <bernhard AT bernhardheld.de>
1538
1539         * support/regression/collate-results.py: fixed output in case of
1540         a valdiag error
1541         * support/regression/generate-cases.py: fixed splitting of pathnames
1542         with dots
1543         * as/hc08/lklibr.c (addfile),
1544         * as/mcs51/lklibr.c (addfile): fixed off-by-one bug
1545
1546 2006-04-11 Raphael Neider <rneider AT web.de>
1547
1548         * src/pic16/gen.c (getFreePtr, pic16_popRegFromString),
1549         * src/pic16/ralloc.c (pic16_allocregWithName): removed debug output
1550         * src/pic16/pcode.c (assignValnums): fixed #1460578
1551
1552 2006-04-11 Raphael Neider <rneider AT web.de>
1553
1554         * device/lib/pic/libdev/*.c,
1555         * device/include/pic/*.h: replaced sfr and data with __sfr and __data,
1556           fixes #1468739, enables compilation in --std-c99 mode
1557         * support/scripts/inc2h.pl: emit __sfr/__data instead of sfr/data
1558
1559 2006-04-11 Raphael Neider <rneider AT web.de>
1560
1561         * src/pic/device.c (find_device): removed debug output
1562           (list_valid_pics): enabled verbose listing of supported devices
1563         * device/include/stdbool.h: define bool as char for pic14/16 as well
1564
1565 2006-04-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1566
1567         * src/SDCC.y: allow using brackets here: "__interrupt (1) __using (1)"
1568
1569 2006-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
1570
1571         * .version: bumped version to 2.5.6
1572         * src/pic/ralloc.c (newReg): MSVC doesn't support __builtin_return_address
1573
1574 2006-04-06 Raphael Neider <rneider AT web.de>
1575
1576         * .version: bumped version to 2.5.6 (pic14 ABI changed)
1577         * src/SDCCmain.c: add -DSDCC_PROCESSOR=<id> for pic14 port
1578         * src/pic/glue.c (emitSymbolToFile,pic14_constructAbsMap,
1579           pic14emitRegularMap,pic14emitMaps): moved output for absolute symbols to
1580             pic14_constructAbsMap
1581           (pic14printPublics): declare absolute global symbols as global
1582           (pic14createInterruptVect),
1583         * src/pic/ralloc.c (IS_CONFIG_ADDRESS): support second config word,
1584           (newReg): assume new registers unused, use correct name in
1585             hashtable (reg->name instead of name), more debugLog output
1586         * src/pic/device.h (PIC_device): added fields for verbose output
1587         * src/pic/device.c: moved device definition to pic14devices.txt,
1588             added routines for runtime parsing of pic14devices.txt,
1589             added support for second config word
1590         * src/pic/main.c (_process_pragma): removed #pragma maxram,
1591           (_pic14_keywords): no longer accept "bit" and "sbit" keywords
1592           (_pic14_initPaths): add search paths with "pic" suffix (not "pic14")
1593           (_pic14_parseOptions): moved pCodeInitRegisters here
1594           (_pic14_do_link): add "pic$(ARCH).lib" to linker arguments
1595         * src/pic/pcode.c (AnalyzeBanking): bail out on unset processor,
1596           (pCodeInitRegisters): rewrapped comments, perpared new approach to
1597             handling the pseudo stack
1598         * device/lib/Makefile.in: ignore failures in objects-pic16,
1599         * device/lib/pic/{configure,configure.in,Makefile}: added libdev/
1600         * device/lib/pic/NEWS: document new dependency on picXXX.lib
1601         * device/lib/pic/Makefile.subdir,
1602         * device/lib/pic16/Makefile.subdir: improved clean rules
1603         * device/lib/pic/libdev/: NEW, pic14 device libraries
1604         * device/lib/pic/libsdcc/_gptr{get,put}{1,2,3,4}.S: use _X not X
1605         * device/lib/pic/libsdcc/macros.inc: use _X not X, declare default SFRs
1606         * device/include/Makefile.in: create subdir and install pic14 headers
1607         * device/include/pic/p16f_common.inc: removed unused declarations
1608         * device/include/pic/pic16*.h: added header files for 100+ 14 bit
1609             PICs from inc2h.pl v1.6,
1610             replaced BIT_AT macros with struct declarations
1611         * device/include/pic/pic14devices.txt: definition of supported devices,
1612             all above improvements contributed by Zik Saleeba, thanks
1613         * support/scripts/inc2h.pl: removed BIT_AT, replaced with structs
1614         * support/scripts/sdcc.nsi: also install pic14 device libraries and
1615             headers
1616
1617 2006-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
1618
1619         * device/include/mcs51/c8051f410.h: added interrupt numbers,
1620         * device/include/mcs51/c8051f200.h: old SiLabs mcu completes the list,
1621           thanks to Charles Olds
1622
1623 2006-04-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1624
1625         * debugger/mcs51/cmd.c (infoRegisters): show return address on stack
1626
1627 2006-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
1628
1629         * src/SDCCpeeph.c (labelIsReturnOnly): fixed bug 1464657
1630         * src/mcs51/gen.c (genJumpTab): fixed bug in medium model
1631         * support/regression/bug1464657.c: added, new test
1632
1633 2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
1634
1635         * src/SDCCmain.c (preProcess): implemented RFE 1449908, define SDCC as the
1636           version number
1637
1638 2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
1639
1640         * src/SDCCpeeph.c (initPeepHole): implemented RFE 1460196, when both
1641           --no-peep and --peep-file <file> are used don't use default rules but
1642           do use the <file>
1643
1644 2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
1645
1646         * src/mcs51/gen.c (genCall): fixed bug 1457608
1647
1648 2006-03-30 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1649
1650         * doc/sdccman.lyx: reverted to version 1.129 of december as my latest
1651         changes seem to cause (trigger?) problems with the build system.
1652
1653 2006-03-29 Maarten Brock <sourceforge.brock AT dse.nl>
1654
1655         * src/SDCCpeeph.c (operandsLiteral): new, added,
1656           (callFuncByName): inserted operandsLiteral
1657         * src/mcs51/peeph.def: reenabled 132.e, added extra check to 132.x
1658
1659 2006-03-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1660
1661         * doc/sdccman.lyx: added paragraph "Use of SDCC in Education"
1662         * src/mcs51/peeph.def: disabled rule 132.e fixing bug #1453093
1663
1664 2006-03-24 Maarten Brock <sourceforge.brock AT dse.nl>
1665
1666         * src/z80/gen.c (genFunction, genEndFunction): fixed bug 1160666,
1667           implemented patch 1120823 Thanks to Willy De la Court (normal
1668           interrupts need an interrupt number now if they are made critical),
1669           and enabled nesting of critical functions though not for gbz80
1670           (genCritical, genEndCritical): added functions
1671           (genZ80Code): added cases for CRITICAL and ENDCRITICAL
1672         * src/z80/mappings.i: added "ei" to all mappings
1673
1674 2006-03-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1675
1676         * sim/ucsim/cmd.src/newcmdcl.h: applied patch fixing GCC 4.1 build
1677         submitted by the Debian SDCC maintainer Aurelien Jarno:
1678         "Credits goes to Martin Michlmayr, who rebuilt the whole Debian
1679         archive with gcc 4.1 on mips and wrote the patch"
1680
1681 2006-03-16 Raphael Neider <rneider AT web.de>
1682
1683         * src/pic16/genarith.c (genAddLit): simplified and fixed case where
1684           the left operand is shorter than the result (c* = lit-c* + int),
1685           fixes bug #1450796
1686         * src/pic16/gen.c (genRightShift): check IS_SYMOP before accessing
1687           OP_SYMBOL
1688
1689 2006-03-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
1690
1691         * src/.version: increased version number to 2.5.5
1692         * src/SDCCmain.c (linkEdit): do not test for PIC16 target since, PIC16
1693         linking is done manually in pic16 port's _linkEdit,
1694         * src/SDCCsymt.c (compStructSize): for target PIC16 and shell variable
1695         PIC16_PACKED_BITFIELDS, compact bitfield structures as much as possible,
1696         * src/pic16/gen.c (aopForSym): when direct register name is WREG then
1697         allocate asmop as AOP_ACC,
1698         (aopForRemat): added parameter 'bool result' in function declaration,
1699         (pic16_aopGet): return AOP_ACC when accessing WREG,
1700         (pic16_popGetTempReg): minor modification,
1701         (pic16_popRegFromIdx): first try with 'pic16_regWithIdx' then with
1702         'pic16_allocWithIdx',
1703         (genPcall): removed ftype, usage of OP_SYM_TYPE asserted error when
1704         calling function in absolute addresses,
1705         (genAssign): take into account AOP_ACC asmop,
1706         * src/pic16/pcode.c (pic16_newpCodeOpReg): minor modifications,
1707         * src/pic16/pcoderegs.c: some debug functions and lines added,
1708         * src/pic16/ralloc.c (decodeRegType): added but commented out,
1709         * (pic16_typeRegWithIdx): search 'pic16_dynInternalRegs' for given
1710         register too,
1711         * (pic16_findFreeReg, pic16_findFreeRegNext): allocate new register via
1712         call to allocReg, not by manually allocating a new one,
1713         (pic16_assignRegisters): now before going through the register
1714         allocating functions mark all registers as free. This eliminates some
1715         side effects resulting from peephole parser done earlier in the backbone
1716
1717 2006-03-13 Maarten Brock <sourceforge.brock AT dse.nl>
1718
1719         * src/SDCCicode.c (geniCodeLogic),
1720         * src/SDCCast.c (decorateType): applied patch by Bernhard for rfe 1422617
1721
1722 2006-03-10 Maarten Brock <sourceforge.brock AT dse.nl>
1723
1724         * src/mcs51/gen.c (sameReg): new, checks if two aop regs are the same,
1725           (genSend): bugfix, do not allocate and free twice,
1726           (shiftRLong): handle partially overlapping aops
1727         * support/regression/tests/bitopcse.c: fixed warning redefined idata
1728
1729 2006-03-08 Borut Razem <borut.razem AT siol.net>
1730
1731         * support/regression/fwk/include/testfwk.h: added defines for xdata, idata
1732           for pic16
1733
1734 2006-03-08 Maarten Brock <sourceforge.brock AT dse.nl>
1735
1736         * support/regression/tests/bug1409955.c: new, added
1737         * src/mcs51/gen.h: changed asmop.freed:1 to asmop.allocated for tracking
1738         * src/mcs51/gen.c (newAsmop): set asmop.allocated to 1,
1739           (aopForSym, aopOp): increment asmop.allocated if reused,
1740           (freeAsmop): decrement asmop.allocated and check for zero instead of
1741           using asmop.freed,
1742           (freeForBranchAsmop): use asmop.allocated instead of asmop.freed,
1743           (genNot, genCpl, genUminus, genMinus, genMult, genDiv, genMod, genCmpGt,
1744            genCmpLt, genAndOp, genOrOp, genAnd, genOr, genXor, genRRC, genRLC,
1745            genGetHbit, genGetAbit, genGetByte, genGetWord, genSwap,
1746            genLeftShiftLiteral, genLeftShift, genRightShiftLiteral,
1747            genSignedRightShift, genRightShift, genDataPointerGet,
1748            genPagedPointerGet, genFarPointerGet, genCodePointerGet,
1749            genGenPointerGet, genDataPointerSet, genAssign, genCast): free asmop's
1750             in reverse order from allocation,
1751           (genPlus, genCmpEq): free asmop's in reverse order from allocation and
1752             added swappedLR to keep track
1753         * support/regression/fwk/include/testfwk.h: added defines for xdata, idata,
1754           pdata & code for GCC, z80, gbz80 & hc08
1755         * support/regression/tests/zeropad.c: moved defines to testfwk.h
1756
1757 2006-03-08 Raphael Neider <rneider AT web.de>
1758
1759         * src/pic16/main.c (_hasNativeMulFor): fixed bug #1444425
1760
1761 2006-03-07 Maarten Brock <sourceforge.brock AT dse.nl>
1762
1763         * device/include/mcs51/c8051f410.h: new SiLabs mcu
1764         * src/ds390/peeph.def: disabled 186.d and 227.a as fix for #1434401
1765         * support/regression/tests/array.c: added parenthesis, made arrays unsigned
1766
1767 2006-03-06 Borut Razem <borut.razem AT siol.net>
1768
1769         * support/regression/ports/pic16/spec.mk: link with libm18f.lib,
1770           made the linker quiet
1771
1772 2006-03-06 Vangelis Rokas <vrokas AT users.sourceforge.net>
1773
1774         * src/pic16/gen.c (genPcall): fixed bug #1443644
1775         * src/pic16/device.h (struct pic16_options_t): added 'int CATregs' flag
1776         which dumps before the function entry point a data byte which represents
1777         the number of the local variables used by the specified function, added
1778         'xinst' for initial support for Extended Instruction Support,
1779         * src/pic16/gen.c (aopForSym, pic16_aopGet): beautifications,
1780         (pic16_testStackOverflow): do not prefix GSTACK_TEST_NAME with
1781         port->fun_prefix anymore (may change later),
1782         (genFunction, genEndFunction): do not store/restore local registers for
1783         _main (this should take care the --main-return command line option in
1784         the future),
1785         (genOr): removed some legacy pic-port instructions,
1786         * src/pic16/genarith.c (genAddLit): re-enabled old code because
1787         performing operations with SFR's causes data to be written more than
1788         once to each SFR. Perhaps SFRs should be handled in special cases...
1789         * src/pic16/glue.c: macros BIG_ENDIAN and BYTE_IN_LONG are moved to
1790         pcode.h
1791         * src/pic16/main.c (_process_pragma): stack bound checking did not take
1792         into account for stack starting position,
1793         (struct OPTIONS pic16_optionsTable): added command line argument
1794         --extended or -y for Extended Instruction Support,
1795         * src/pic16/ralloc.c (pic16_decodeOp): added case for FUNCTION,
1796         (deassignLRs): *** perhaps the most important change, old 'for' code
1797         (commented out for reference), didn't account for some registers which
1798         were left marked 'not free' after a pointer operation. The change
1799         reduces register usage a lot in some cases
1800
1801 2006-03-04 Borut Razem <borut.razem AT siol.net>
1802
1803         * support/regression/ports/hc08/spec.mk: remove *.asm in traget
1804           _clean
1805         * support/regression/tests/bug-524697.c: decreased array size for
1806           mcs51 to fit into the internal RAM
1807         * support/regression/Makefile.in: a little bit more verbose
1808
1809 2006-03-03 Borut Razem <borut.razem AT siol.net>
1810
1811         * support/regression/fwk/lib/testfwk.c,
1812           support/regression/fwk/include/testfwk.h: introduced function
1813           _prints(), nonrecursive _printn(), call _initEmu() from main()
1814         * support/regression/ports/gbz80/support.asm,
1815           support/regression/ports/ucz80/support.asm,
1816           support/regression/ports/z80/support.asm,
1817           support/regression/ports/ds390/support.c,
1818           support/regression/ports/hc08/support.c,
1819           support/regression/ports/host/support.c,
1820           support/regression/ports/mcs51/support.c,
1821           support/regression/ports/xa51/support.c: added empty _initEmu()
1822           function
1823         * support/regression/ports/pic16/gpsim.cmd,
1824           support/regression/ports/pic16/spec.mk,
1825           support/regression/ports/pic16/support.c,
1826           support/regression/Makefile.in: added pic16 regression test
1827
1828 2006-03-01 Raphael Neider <rneider AT web.de>
1829
1830         * src/pic16/gen.c (genPcall,pic16_derefPtr,genGenPointerGet,
1831           genConstPointerGet): use safe way of generating MOVFF to cover
1832             literals as well as registers, fixes bug #1440527
1833         * src/pic16/glue.c (pic16_printIvalBitFields): prevent NULL pointer
1834             dereference
1835           (pic16_printIvalUnion,pic16_isUnion): NEW, handle initialized unions
1836             more correctly, fixes bug #1232186
1837           (pic16_printIval): use pic16_printIvalUnion() for initialized unions
1838         * src/pic16/main.c (_pic16_linkEdit): reorder linker arguments to make
1839             gplink guess the correct processor in more cases, applied patch
1840             from Till Riedel attached to and fixing bug #1436552
1841
1842 2006-02-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1843
1844         * support/regression/tests/array.c: added, contains check for #1434401
1845         * src/mcs51/peeph.def: disabled 186.d as temporary fix for #1434401
1846
1847 2006-02-16 Maarten Brock <sourceforge.brock AT dse.nl>
1848
1849         * device/include/mcs51/at89s8253.h: new, thanks to Krzysztof Polomka
1850         * device/include/mcs51/at89S8252.h: fixed, thanks to Krzysztof Polomka
1851         * device/include/mcs51/c8051f326.h,
1852         * device/include/mcs51/c8051f340.h: new SiLabs mcu's
1853         * device/include/mcs51/c8051f000.h,
1854         * device/include/mcs51/c8051f018.h,
1855         * device/include/mcs51/c8051f020.h: used () with __at, renamed IDLE,STOP to
1856           PCON_IDLE,PCON_STOP and added sfr16 definitions
1857
1858 2006-02-14 Maarten Brock <sourceforge.brock AT dse.nl>
1859
1860         * src/mcs51/gen.c (genPlus, genMinus, genMult, genGetAbit, genGetByte,
1861           genGetWord): fixed bug 1409955
1862
1863 2006-02-14 Maarten Brock <sourceforge.brock AT dse.nl>
1864
1865         * device/include/hc08/mc68hc908gp32.h,
1866         * device/include/hc08/mc68hc908jb8.h: removed AWUL, added PTA6 & PTA7
1867
1868 2006-02-13 Maarten Brock <sourceforge.brock AT dse.nl>
1869
1870         * src/SDCCast.c (constExprValue): return NULL if not a value
1871         * src/SDCCglue.c (printIvalArray): fixed bug 1225568
1872         * src/hc08/gen.c(genUnpackBits, genUnpackBitsImmed): fixed bug 1019480
1873         * support/regression/tests/bitfields.c: enabled signed bitfield for all
1874
1875 2006-02-13 Borut Razem <borut.razem AT siol.net>
1876
1877         * src/regression/ptrarg.c: added, fails due to bug #1430967
1878         * src/regression/Makefile: ptrarg.c added, ...
1879
1880 2006-02-12 Maarten Brock <sourceforge.brock AT dse.nl>
1881
1882         * src/z80/gen.c (genUnpackBits): fixed bug 1019480
1883         * support/regression/tests/bitfields.c: enabled signed bitfield for z80
1884
1885 2006-02-11 Borut Razem <borut.razem AT siol.net>
1886
1887         * src/SDCCmain.c: Added "sdcc: Calling linker..." if --verbose,
1888           print "Processor: xxx" message to stdout only if --verbose
1889
1890 2006-02-11 Maarten Brock <sourceforge.brock AT dse.nl>
1891
1892         * src/SDCCglue.c (printIvalStruct): fixed bug 1426356 union initializer
1893         * support/regression/tests/bug1426356.c: added
1894         * support/regression/tests/bitfields.c: removed 2 tests
1895
1896 2006-02-10 Maarten Brock <sourceforge.brock AT dse.nl>
1897
1898         * device/include/mcs51/at89c51snd1c.h: updated comments, see patch 1428901
1899         * device/include/mcs51/c8051f330.h,
1900         * device/include/mcs51/c8051f350.h: used () with __at, renamed IDLE,STOP to
1901           PCON_IDLE,PCON_STOP and added sfr16 definitions
1902         * device/lib/_divsint.c,
1903         * device/lib/_divuint.c,
1904         * device/lib/_divulong.c,
1905         * device/lib/_divulong.c: renamed a,b to x,y to avoid confusion, fixed
1906           register bank bug for small stackauto
1907
1908 2006-02-09 Maarten Brock <sourceforge.brock AT dse.nl>
1909
1910         * support/regression/fwk/lib/timeout.c: include <stdlib.h> for exit()
1911
1912 2006-02-08 Maarten Brock <sourceforge.brock AT dse.nl>
1913
1914         * support/regression/ports/mcs51-xstack-auto/spec.mk: forgot -I(...)/mcs51
1915         * all.dsp: corrected several bin paths
1916         * device/include/mcs51/c8051f120.h,
1917         * device/include/mcs51/c8051f300.h,
1918         * device/include/mcs51/c8051f310.h: used () with __at and renamed IDLE,STOP
1919           to PCON_IDLE,PCON_STOP
1920         * device/include/mcs51/c8051f320.h: see above, also added sfr16 definitions
1921         * device/lib/printf_large.c (output_float): fixed bug 1388703
1922         * support/regression/tests/bug1057979.c: added test for bug 1388703
1923
1924 2006-02-08 Raphael Neider <rneider AT web.de>
1925
1926         * src/pic/pcode.c (pciTRIS): fixed typo,
1927           (BuildFlow,LinkFlow_pCode): added (disabled) debug output,
1928           (LinkFlow): fixed handling of flows that end in a call,
1929           (ReuseReg): perform safety check earlier
1930         * src/pic/pcoderegs.c (pCodeRegMapLiveRangesInFlow): fixed
1931             to work with flows at the beginning of a pBlock,
1932             fixes #1426557 (Symbol not previously defined),
1933           (pic14_ReMapLiveRanges): NEW, destroy and rebuild register
1934             usage information
1935           (RemoveUnusedRegisters): update register usage info
1936         * src/pic/ralloc.c (newReg): prevent duplicate registers from being
1937             created, reuse existing ones instead
1938         * src/pic/gen.c (genPcall): fixed #1424719
1939
1940 2006-02-07 Bernhard Held <bernhard AT bernhardheld.de>
1941
1942         * link/z80/lkmain.c,
1943         * link/z80/lklex.c,
1944         * link/z80/lkdata.c,
1945         * link/z80/aslink.h: fixed build on current cygwin:
1946         replaced getline() by lk_getline()
1947
1948 2006-02-01 Borut Razem <borut.razem AT siol.net>
1949
1950         * src/regression/add.c, src/regression/add2.c, src/regression/add3.c,
1951           src/regression/add4.c, src/regression/and1.c, src/regression/and2.c,
1952           src/regression/arrays.c, src/regression/b.c, src/regression/bank1.c,
1953           src/regression/bool1.c, src/regression/bool2.c,
1954           src/regression/bool3.c, src/regression/call1.c,
1955           src/regression/compare.c, src/regression/compare10.c,
1956           src/regression/compare2.c, src/regression/compare3.c,
1957           src/regression/compare4.c, src/regression/compare5.c,
1958           src/regression/compare6.c, src/regression/compare7.c,
1959           src/regression/compare8.c, src/regression/compare9.c,
1960           src/regression/configword.c, src/regression/for.c,
1961           src/regression/inline.c, src/regression/mult1.c,
1962           src/regression/nestfor.c, src/regression/or1.c,
1963           src/regression/pointer1.c, src/regression/ptrfunc.c,
1964           src/regression/rotate1.c, src/regression/rotate2.c,
1965           src/regression/rotate3.c, src/regression/rotate4.c,
1966           src/regression/rotate5.c, src/regression/rotate6.c,
1967           src/regression/rotate7.c, src/regression/string1.c,
1968           src/regression/struct1.c, src/regression/sub.c,
1969           src/regression/sub2.c, src/regression/switch1.c,
1970           src/regression/while.c, src/regression/xor.c,
1971           src/regression/create_stc, src/regression/simulate,
1972           src/regression/rt.sh, src/regression/Makefile: reenabled Scott's PIC14
1973           regression tests
1974         * src/regression/gpsim_assert.h: added
1975
1976 2006-01-28 Bernhard Held <bernhard AT bernhardheld.de>
1977
1978         * src/ds390/gen.c (unsaveRegisters): fixed literal function pointer
1979         ((void (code *) (void)) 0) ();
1980         * as/hc08/aslex.c,
1981         * as/hc08/aslink.h,
1982         * as/hc08/asm.h,
1983         * as/hc08/asmain.c,
1984         * as/hc08/lkdata.c,
1985         * as/hc08/lklex.c,
1986         * as/hc08/lkmain.c,
1987         * as/mcs51/aslex.c,
1988         * as/mcs51/aslink.h,
1989         * as/mcs51/asm.h,
1990         * as/mcs51/asmain.c,
1991         * as/mcs51/lkdata.c,
1992         * as/mcs51/lklex.c,
1993         * as/mcs51/lkmain.c,
1994         * as/z80/aslex.c,
1995         * as/z80/asm.h,
1996         * as/z80/asmain.c: fixed build on current cygwin:
1997         replaced getline() by as_getline()
1998
1999 2006-01-27 Bernhard Held <bernhard AT bernhardheld.de>
2000
2001         * src/SDCC.y: fixed bug #716242, exchanged pointer and function
2002         declarator in the symbol chain
2003         * src/SDCCsymt.h,
2004         * src/SDCCsymt.c (processFuncPtrArgs): added, removes "(void)"
2005         parameter list for function pointers
2006         * src/SDCCast.c (decorateType): added call of processFuncPtrArgs()
2007         * support/regression/tests/bug-716242.c: added
2008
2009 2006-01-20 Bernhard Held <bernhard AT bernhardheld.de>
2010
2011         * src/SDCCicode.c (geniCodeAdd, geniCodeArray): use char for array
2012         offset if possible
2013         * src/SDCCast.c (getLeftResultType): 255 fits in char, not 256
2014
2015 2006-01-18 Bernhard Held <bernhard AT bernhardheld.de>
2016
2017         * src/SDCCast.c (backPatchLabels): fixed bug #1408066: made it
2018         inifinitely recurseable, added static
2019         * support/regression/tests/bug-1408066.c: added
2020
2021 2006-01-17 Bernhard Held <bernhard AT bernhardheld.de>
2022
2023         * src/SDCCicode.h,
2024         * src/SDCCicode.c (newiTempPreheaderLabel, newiTempLoopHeaderLabel):
2025         renamed, added possibility to create "postLoopLbl"-labels
2026         * src/SDCCBBlock.c (iCodeBreakDown): renamed newiTempPreheaderLabel to
2027         newiTempLoopHeaderLabel
2028         * src/SDCCloop.c (newInduction, newRegion, backEdges, insertIntoLoop,
2029         isNotInBlocks, addToExitsMarkDepth, createLoop, dominatedBy,
2030         addDefInExprs, assignmentsToSym, isOperandInvariant, pointerAssigned,
2031         hasNonPtrUse, loopInvariants, addressTaken, findInduction,
2032         findDefInRegion, mergeRegions, ifMerged, mergeInnerLoops): made static,
2033         (pinduction, pregion, hasIncomingDefs, findLoopEndSeq): disabled,
2034         (basicInduction): fixed bug #136564, made static,
2035         (loopInduction): changed parameter of basicInduction, made static,
2036         (addPostLoopBlock): added
2037         * src/SDCCloop.h: removed backEdges, pregion, pinduction,
2038         loopOptimizations, addressTaken, findDefInRegion, hasIncomingDefs,
2039         findLoopEndSeq
2040         * support/regression/tests/bug-136564.c: added
2041         * support/regression/ports/mcs51-xstack-auto/spec.mk: added
2042         --std-sdcc99 to LIBSDCCFLAGS
2043
2044 2006-01-16 Bernhard Held <bernhard AT bernhardheld.de>
2045
2046         * src/SDCCicode.c (geniCodeIfx): fix bug 1406131: always false
2047         while loop
2048         * support/regression/tests/bug-1406131.c: added
2049
2050 2005-12-31 Bernhard Held <bernhard AT bernhardheld.de>
2051
2052         * src/SDCCast.c (decorateType): fix promotion of unary minus
2053         * src/SDCCsymt.c (computeType): beautified
2054         * src/SDCCval.c (cheapestVal): beautified, old non-Ansi version removed,
2055         (valUnaryPM, valComplement): fix sign and promotion,
2056         (valNot): ANSI: result type is int (SDCC: unsigned char)
2057         * support/regression/tests/uminus.c: speedup by removing superflous
2058         test case 'int'
2059         * support/regression/tests/onebyte.c: added promotion and signedness
2060         tests for unary minus
2061         * support/regressions/tests/bug-477927.c: disable warning about
2062         uninitialized variables
2063         * support/regression/tests/not.c: added
2064
2065 2005-12-28 Bernhard Held <bernhard AT bernhardheld.de>
2066
2067         * device/lib/Makefile.in: added --std-sdcc99 to CFLAGS
2068         * src/mcs51/gen.c (gen51Code): show final register usage after
2069         fillGaps in asm with --i-code-in-asm
2070         * src/SDCClrange.c (sequenceiCode, setLiveFrom, setLiveTo,
2071         markLiveRanges, markAlive, findNextUseSym, findNextUse, unvisitBlocks,
2072         incUsed, rliveClear, adjustIChain): made static,
2073         (setFromRange): excluded because it's unused,
2074         (findPrevUseSym, markWholeLoop): added,
2075         (findPrevUse): rewritten; fixes bug 895992; now a complete search
2076         through all branches of predecessors enables sdcc to emit the warning
2077         W_LOCAL_NOINIT, marking of outermost loop was incomplete,
2078         (rlivePoint): made static, added parameter emitWarnings which is only
2079         true during the first run out of two,
2080         (findRecursiveSucc, findRecursivePred): removed,
2081         (computeLiveRanges): made static, added parameter emitWarnings,
2082         (dumpIcRlive): added for debugging only
2083         * src/SDCClrange.h: added boolean parameter to computeLiveRanges(),
2084         removed prototype of setFromRange()
2085         * src/SDCCopt.c (eBBlockFromiCode): added new parameter emitWarnings
2086         in call of computeLiveRanges()
2087         * support/regression/tests/bug-895992.c: added
2088         * support/regression/tests/bug-971834.c: added
2089         * support/valdiag/tests/bug-895992.c: added
2090         * support/valdiag/tests/bug-971834.c: added
2091
2092 2005-12-18 Raphael Neider <rneider AT web.de>
2093
2094         * src/pic16/gen.c: added IS_DIRECT macro for "direct" operands,
2095           (genUnpackBits): improved code for direct operands,
2096           (genPackBits): improved code for literal assignment to bitfields
2097             and for direct destination operands (no FSR indirection),
2098             prevented redundant AND, fixes #1362800,
2099           (AccLsh): added parameter to disable masking of the result
2100         * src/pic16/pcode.c (pic16_safepCodeUnlink): fixed to work with
2101           skip instructions with side-effects (like incfsz),
2102           (pic16_pCodeIsAlive): suppress verbose output unless pcode_verbose,
2103         * src/pic16/pcoderegs.c (RemoveRegsFromSet): removed annoying warning
2104         * device/lib/pic16/Makefile.common.in: added --asm=@GPASM@ to CC,
2105           fixes #1375263
2106
2107 2005-12-11 Bernhard Held <bernhard AT bernhardheld.de>
2108
2109         * src/SDCCicode.c (geniCodeAssign): fixed bug 11369874, don't use
2110         volatile variables as spill location
2111
2112 2005-12-10 Bernhard Held <bernhard AT bernhardheld.de>
2113
2114         * src/SDCCcse.c (findCheaperOp): fixed bug 1376320, copy signedness to
2115         replacing literals
2116         * support/regression/tests/bug-1376320.c: added
2117
2118 2005-12-08 Raphael Neider <rneider AT web.de>
2119
2120         * src/pic/device.c: renamed is_shared to pic14_is_shared
2121         * src/pic/gen.c (genIfx): re-enabled handling of sbits
2122         * src/pic/glue.c (emitSymbolToFile): added workaround for sbits,
2123           (is_valid_identifier): added for above workaround
2124
2125 2005-12-07 Maarten Brock <sourceforge.brock AT dse.nl>
2126
2127         * device/lib/Makefile.in: fixed to enable port-specific-objects
2128         * device/lib/ds390/i2c390.c (BitOutI2C): optimized by making bout unsigned
2129           char, thanks Hubert Sack
2130         * doc/sdccman.lyx: documented --xstack-loc,
2131           elaborated a bit more on interrupts and pitfalls,
2132           removed "setjmp/longjmp unsupported",
2133           documented some unsupported C99 features
2134         * src/SDCCmain.c (linkEdit): adapted default lib path for --stack-auto
2135         * src/SDCCpeeph.c (readRules): inserted patch 1367130 for finding missing
2136           if, thanks Hubert Sack
2137         * src/mcs51/gen.c (genEndFunction): enabled "pop psw" for regbank 0 isr
2138         * support/regression/Makefile.in: test-mcs51-stack-auto no longer needs to
2139           make make_library
2140         * support/regression/get_ticks.py: new, get cpu cycles and code size, so
2141           regression tests can report resource usage (rfe 700441)
2142         * support/regression/collate-results.py: report resource usage
2143         * support/regression/ports/ds390/spec.mk,
2144         * support/regression/ports/hc08/spec.mk,
2145         * support/regression/ports/mcs51/spec.mk,
2146         * support/regression/ports/ucz80/spec.mk: run sim output through get_ticks
2147         * support/regression/ports/ds390/uCsim.cmd,
2148         * support/regression/ports/hc08/uCsim.cmd,
2149         * support/regression/ports/mcs51/uCsim.cmd,
2150         * support/regression/ports/ucz80/uCsim.cmd: inserted "state" to report time
2151         * support/regression/ports/mcs51-stack-auto/spec.mk: no need to build the
2152           library, use the default one
2153         * support/regression/ports/mcs51-xstack-auto/spec.mk: inserted rules for
2154           building the library
2155
2156 2005-12-06 Maarten Brock <sourceforge.brock AT dse.nl>
2157
2158         * config.dsp: added dependency on .version and configure_vc.awk
2159         * device/include/setjmp.h: updated for --stack-auto and --xstack
2160         * device/include/mcs51/at89c51snd1c.h: corrected line endings
2161         * device/include/mcs51/XC866.h: added, thanks Llewellyn van Zyl
2162         * device/lib/_setjmp.c: updated for --stack-auto and --xstack
2163         * device/lib/libsdcc.lib: added _setjmp
2164         * src/SDCCast.c (createIvalCharPtr): fixed warnings,
2165           (decorateType): fixed bug 1372851,
2166           (optimizeGetHbit): fixed warning
2167         * src/SDCCglue.c (printIvalChar, printIvalArray): adapted for flexible
2168           array initialisation
2169         * support/regression/tests/bug1057979.c: added test for bug 1358192
2170         * support/regression/tests/setjmp.c: added, test for setjmp/longjmp
2171
2172 2005-12-03 Borut Razem <borut.razem AT siol.net>
2173
2174         * support/scripts/sdcc.nsi: added /SOLID option to "SetCompressor lzma"
2175           command since the NSIS was upgraded to version 2.11 on CF x86-linux2
2176
2177 2005-11-29 Bernhard Held <bernhard AT bernhardheld.de>
2178
2179         * src/SDCCast.c (createIvalStruct, createIvalArray, createIvalPtr,
2180         createIval): implement symbol independant "flexible array member",
2181         (createIvalCharPtr): implemented flexible array initialisation with a
2182         string
2183         * src/SDCCsymt.c (copyStruct): removed,
2184         (getSize): fixed misleading comment,
2185         (getAllocSize): removed, the additional allocation size is now in
2186         sym->flexArrayLength,
2187         (checkStructFlexArray): new, syntax checks for flexible array members,
2188         (compStructSize): added syntax checks for "flexible array members"
2189         (copyStruct): removed,
2190         (copyLinkChain): removed inefficient fix for bug 770487
2191         * src/SDCCglue.c (emitRegularMap): getAllocSize has been removed
2192         * src/SDCCsymt.h: added structdef.b_flexArrayMember and
2193         symbol->flexArrayLength
2194         * src/SDCCerr.c,
2195         * src/SDCCerr.h: added W_INVALID_FLEXARRAY, W_C89_NO_FLEXARRAY,
2196         E_FLEXARRAY_NOTATEND and E_FLEXARRAY_INEMPTYSTRCT
2197         * support/regression/tests/structflexarray.c: added
2198         * support/valdiag/tests/structflexiblearray.c: added
2199
2200 2005-11-29 Bernhard Held <bernhard AT bernhardheld.de>
2201
2202         * src/SDCCast.c (decorateType): fixed bug 1368489
2203         * support/Util/SDCCerr.c,
2204         * support/Util/SDCCerr.h: added warning W_CMP_SU_CHAR
2205
2206 2005-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2207
2208         * device/include/mcs51/at89c51snd1c.h: added file submitted by
2209           Weston T. Schmidt <schmidtw AT users.sourceforge.net>, patch #1368001
2210
2211 2005-11-27 Borut Razem <borut.razem AT siol.net>
2212
2213         * support/cpp2/cppinit.c, support/cpp2/cpplib.h, support/cpp2/mkdeps.c,
2214           support/cpp2/mkdeps.h: added command line option
2215           -obj-ext=<extension> to SDCPP to define object file externion, used
2216           for generation of make dependencies (-M)
2217         * src/SDCCmain.c: pass -obj-ext=<extension> to SDCPP
2218
2219 2005-11-26 Borut Razem <borut.razem AT siol.net>
2220
2221         * support/scripts/sdcc.nsi: added small-stack-auto libraries,
2222           added missing device/lib/mcs51/crt*.asm, pic and pic16 sources,
2223           added pic and pic16 libraries
2224
2225 2005-11-26 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2226
2227         * device/include/float.h: Corrected typo in prototype of __fsgt
2228
2229 2005-11-25 Borut Razem <borut.razem AT siol.net>
2230
2231         * sdcc/device/lib/Makefile.in, sdcc/device/lib/incl.mk:
2232           added creation of model-mcs51-stack-auto libraries
2233
2234 2005-11-24 Bernhard Held <bernhard AT bernhardheld.de>
2235
2236         * src/SDCCsymt.c (copyLinkChain): fixed bug 770487, copy structdef
2237         and fields-list too
2238         * src/SDCCast.c (createIvalArray): removed obsolete comment
2239
2240 2005-11-24 Borut Razem <borut.razem AT siol.net>
2241
2242         * sdcc/device/lib/Makefile.in: remove all unnecessary files, 2nd try...,
2243           added missing device/lib/mcs51/crt*.asm sources
2244
2245 2005-11-23 Bernhard Held <bernhard AT bernhardheld.de>
2246
2247         * src/SDCCast.c (createIvalCharPtr): fixed bug 1348271
2248
2249 2005-11-22 Maarten Brock <sourceforge.brock AT dse.nl>
2250
2251         * device/lib/_fs2schar.c,
2252         * device/lib/_fs2sint.c,
2253         * device/lib/_fs2slong.c: optimized inline asm
2254
2255 2005-11-21 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2256
2257         * device/lib/_fs2slong.c, device/lib/_fs2sint.c, device/lib/_fs2char.c:
2258           Better handling of floats between -1.0 and 0.0.
2259
2260 2005-11-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2261
2262         * src/mcs51/peeph.def: added missing "if"s as noted by Hubert Sack.
2263           (the missing "if"s prohibited removal of redundant labels)
2264
2265 2005-11-19 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2266
2267         * device/lib/_fs2slong.c, device/lib/_fs2sint.c, device/lib/_fs2char.c:
2268           Properly convert floats between -1.0 and 0.0 to long, int, and char
2269           types (max integer value of negative floats tends to zero).
2270         * device/lib/modff.c, device/lib/ceilf.c, device/lib/floorf.c:
2271           Removed changes made so to work properly with floats between
2272           -1.0 and 0.0, as the problem is fixed in _fs2slong.c, _fs2sint.c,
2273           and _fs2char.c
2274
2275 2005-11-18 Bernhard Held <bernhard AT bernhardheld.de>
2276
2277         * src/SDCCcse.c (ReplaceOpWithCheaperOp): minor fix for debugging only
2278         * src/mcs51/gen.c (genUnpackBits): better code and a fix,
2279         (genCast) cosmetic change
2280         * src/ds390/gen.c (genUnpackBits, ): ported from mcs51
2281         * src/ds390/ralloc.c (packRegsForAssign): ported fix for bitfields
2282         from mcs51
2283         * support/regression/tests/bitfields (testSignedBitfields): added
2284
2285 2005-11-18 Borut Razem <borut.razem AT siol.net>
2286
2287         * sdcc/device/lib/Makefile.in: remove all unnecessary files
2288         * device/lib/pic/Makefile.rules, device/lib/pic16/Makefile.subdir:
2289           introduced SILENT option to make building of pic16 libraries less
2290
2291 2005-11-18 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2292
2293         * device/lib/modff.c, device/lib/ceilf.c, device/lib/floorf.c:
2294           Now they work properly with floats between -1.0 and 0.0
2295         * device/lib/printf_large.c: Removed temporary patch for bug 1358192
2296
2297 2005-11-18 Maarten Brock <sourceforge.brock AT dse.nl>
2298
2299         * src/SDCCicode.c (printOperand): added missing else
2300
2301 2005-11-18 Bernhard Held <bernhard AT bernhardheld.de>
2302
2303         * src/SDCCsymt.c (computeType): fixed bug 1358192: added missing else,
2304         reformatted for better readability
2305         * src/mcs51/gen.c (genUnpackBits): initial, incomplete support for
2306         signed bitfields
2307
2308 2005-11-17 Borut Razem <borut.razem AT siol.net>
2309
2310         * device/lib/pic16/Makefile.rules, device/lib/pic16/Makefile.subdir:
2311           introduced SILENT option to make building of pic16 libraries less
2312           verbose - used for nightly snapshot build
2313         * doc/sdccman.lyx: documented that SDCDB and ucSim are currently not
2314           available on Win32 platforms.
2315         * sdcc/device/lib/Makefile.in: added library sources for mcs51, small,
2316           medium, large, pic and pic16
2317
2318 2005-11-16 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2319
2320         * device/lib/printf_large.c: Temporary patch for bug 1358192:
2321           printf("%f"...) sets fraction to zero.
2322
2323 2005-11-16 Raphael Neider <rneider AT web.de>
2324
2325         * src/pic/pcode.c (LinkFlow): handle empty flows correctly,
2326           fixes #1357221
2327         * src/pic/gen.c (genIfx): implemented for CARRY bit
2328         * src/pic16/gen.c (genAssign,genCast): fixed assigning/casting
2329           to generic pointers, fixes #1357332,
2330           (pic16_movLit2f): NEW,
2331           (pic16_storeForReturn,genDataPointerSet): use pic16_movLit2f
2332
2333 2005-11-14 Maarten Brock <sourceforge.brock AT dse.nl>
2334
2335         * src/SDCCmain.c (parseCmdLine): fixed bug 1356800, thanks rsudjian
2336
2337 2005-11-11 Raphael Neider <rneider AT web.de>
2338
2339         * src/pic/gen.c: handle FPOINTERS like POINTERS everywhere
2340         * src/pic16/gen.c (pic16_derefPtr): now works for non-pointers as well,
2341           compute pointer's type from operand,
2342           (genUnpackBits,genPackBits): handle FPOINTERS correctly, re-indented,
2343           improved single bit reads, fixes bug #1353379
2344
2345 2005-11-09 Borut Razem <borut.razem AT siol.net>
2346
2347         * support/scripts/sdcc.nsi: added lib/pic to the package
2348
2349 2005-11-08 Maarten Brock <sourceforge.brock AT dse.nl>
2350
2351         * src/SDCCval.c (valUnaryPM): fixed bug 1350699
2352
2353 2005-11-06 Maarten Brock <sourceforge.brock AT dse.nl>
2354
2355         * support/regression/tests/bug1348008.c: added
2356         * src/mcs51/gen.c (saveRBank, unsaveRBank): fixed bug 1348008
2357         * support/regression/tests/bug1337835.c: updated comment
2358
2359 2005-11-06 Borut Razem <borut.razem AT siol.net>
2360
2361         * sim/ucsim/error.cc, sim/ucsim/errorcl.h,
2362           sim/ucsim/sim.src/stack.cc, sim/ucsim/sim.src/stackcl.h,
2363           sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
2364           sim/ucsim/sim.src/mem.cc, sim/ucsim/sim.src/memcl.h,
2365           sim/ucsim/cmd.src/set.cc, sim/ucsim/cmd.src/show.cc:
2366           dynamic construction of cl_error_class and derivates - 2.nd try
2367
2368 2005-11-05 Borut Razem <borut.razem AT siol.net>
2369
2370         * sim/ucsim/sim.src/error.cc: fixed uninitialized class member variable
2371           bug, which caused Bus Errors on sparc solaris
2372
2373 2005-11-04 Borut Razem <borut.razem AT siol.net>
2374
2375         * sim/ucsim/error.cc, sim/ucsim/errorcl.h,
2376           sim/ucsim/sim.src/stack.cc, sim/ucsim/sim.src/stackcl.h,
2377           sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
2378           sim/ucsim/sim.src/mem.cc, sim/ucsim/sim.src/memcl.h,
2379           sim/ucsim/cmd.src/cmdconf.cc: dynamic construction of cl_error_class
2380           and derivates to resolve the initialization problem on OSX
2381
2382 2005-11-02 Borut Razem <borut.razem AT siol.net>
2383
2384         * sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/newcmd.cc:
2385           corrected typo - #include <winsock2.h>
2386
2387 2005-11-02 Maarten Brock <sourceforge.brock AT dse.nl>
2388
2389         * src/asm.c (printILine): always close tmpFile, thanks Beau E. Cox,
2390           (_asxxxx_mapping): added org directive for future enhancements
2391
2392 2005-11-01 Borut Razem <borut.razem AT siol.net>
2393
2394         * sim/ucsim/app.cc, sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/newcmd.cc:
2395           enabled sockets on WIN32
2396         * sim/ucsim/cmd.src/newcmd.cc: fixed bug with uninitialized variables
2397
2398 2005-10-31 Borut Razem <borut.razem AT siol.net>
2399
2400         * support/regression/generate-cases.py: escape backslashes in {testcase}:
2401           WIN32 backslash path delimiters should be escaped when used in C strings
2402         * support/regression/tests/bitfields.c: exclude failing assertions for
2403           __CYGWIN32__ and __MINGW32__ hosts
2404
2405 2005-10-30 Borut Razem <borut.razem AT siol.net>
2406
2407         * src/SDCCutil.c: corrected double comparison typo
2408
2409 2005-10-30 Maarten Brock <sourceforge.brock AT dse.nl>
2410
2411         * device/lib/medium/Makefile: added for new memory model medium
2412         * device/include/asm/mcs51/features.h: updated for medium/pdata
2413         * device/include/mcs51/c8051f120.h: added sfr16/sfr32 definitions,
2414           added Multiply & Accumulate sbit's and MAC0_PAGE define
2415         * device/include/mcs51/c8051f300.h: added sfr16 definitions
2416         * device/include/mcs51/c8051f310.h: added sfr16 definitions
2417         * device/lib/_mullong.c: update for medium model
2418         * device/lib/incl.mk: added medium model
2419         * doc/sdccman.lyx: documented medium model
2420         * src/SDCCast.c (isBitAndPow2): simplified using updated powof2
2421         * src/SDCCicode.c (geniCodeMultiply, geniCodeDivision): use updated powof2
2422         * src/SDCCmain.c (optionsTable, linkEdit): enabled medium model
2423         * src/SDCCmem.c (allocIntoSeg): set iaccess for pdata symbols,
2424           (allocParms): set SCLS and OCLS to pdata for medium model
2425         * src/SDCCsymt.c (processFuncArgs): use default_local_map and set iaccess
2426           for pdata,
2427           (powof2): return <0 if not power of 2
2428         * src/avr/gen.c (genBitWise): use updated powof2
2429         * src/mcs51/gen.c (genMinusDec): use acc if necessary,
2430           (shiftR2Left2Result): small optimization in setup, save acc when storing,
2431           (shiftLLeftOrResult): use B if necessary
2432         * src/mcs51/main.c (_mcs51_finaliseOptions, mcs51_port): added medium model
2433         * src/mcs51/peeph.def: renamed 226 to 226.b, added 226.a
2434         * src/pic/main.c (_pic14_do_link): made void parameter list explicit
2435         * support/regression/Makefile.in: added test-mcs51-medium
2436         * support/regression/ports/mcs51-medium/spec.mk: added to test medium model
2437
2438 2005-10-28 Bernhard Held <bernhard AT bernhardheld.de>
2439
2440         * src/SDCCsymt.c (compStructSize): make bitfields without (un)signed
2441         specifier unsigned
2442         * device/lib/time.c (mktime): fixed bug 1334315
2443
2444 2005-10-28 Raphael Neider <rneider AT web.de>
2445
2446         * device/include/pic/p16f_common.inc: added common declarations
2447         * src/pic/ralloc.c (initStack): moved regs *r to block start for Alpha
2448
2449 2005-10-27 Maarten Brock <sourceforge.brock AT dse.nl>
2450
2451         * src/mcs51/gen.c (getTempRegs): return 0 if not enough registers found,
2452           (aopPutUsesAcc): added to predict accumulator use,
2453           (assignResultValue): save acc if necessary,
2454           (genMinusDec): store result if indirectly addressed,
2455           (genDivOneByte):  save acc if necessary,
2456           (movLeft2Result): bugfix if left already in acc,
2457           (genAnd, genOr, genXor, shiftL2Left2Result, shiftR2Left2Result): pay more
2458             attention to accumulator use (esp. pdata),
2459           (genReceive): receive pdata correctly
2460         * src/SDCCicode.c (isOperandInPagedSpace): added to detect pdata operands
2461         * src/SDCCicode.h: added isOperandInPagedSpace prototype
2462
2463 2005-10-27 Raphael Neider <rneider AT web.de>
2464
2465         * doc/sdccman.lyx: corrected version (should be 2.5.4 not 2.5.5)
2466
2467 2005-10-27 Raphael Neider <rneider AT web.de>
2468
2469         * .version: changed version to 2.5.4
2470         * doc/sdccman.lyx: changed version to 2.5.4, added some remarks to PIC14
2471         * device/lib/pic/libsdcc/{_mulint.c,_mullong.c}: use unsigned literals,
2472           (_divschar.c,divuchar.c,_mulchar.c,_modschar.c,_moduchar): NEW,
2473             arithmetics support routines
2474         * device/lib/pic/Makefile.rules: have assembler sources preprocessed
2475         * device/lib/Makefile.in: also create installdir for pic
2476
2477         * src/SDCCopt.c (cnvToFcall): mark support routines `extern' for
2478           pic14 port as well
2479         * src/pic/device.c (dump_sfr): rewritten to delegate register
2480           placement to the linker (use `extern sym' rather than sym EQU addr),
2481           (validAddress): fixed to check last specified address
2482         * src/pic/gen.c (aopForSym): added code to deal with array (useless?),
2483           (popGetLit): truncate literal value to 8 bit,
2484           (popGet): moved assert to more appropriate place
2485           (popGetExternal): create pCode operand from and mark the according
2486             symbol as being `extern'
2487           (popGetAddr): added sanity check on immediate's offset, provide
2488             GPOINTER tag on demand
2489           (aopPut): fixed for immediates,
2490           (mov2w_op): move operand's address or contents to WREG (depending on
2491             operand type), safer variant of mov2w,
2492           (movwf,call_libraryfunc): NEW, handy abbreviations,
2493           (get_argument_pcop,get_return_val_pcop,pass_argument,
2494           get_returnvalue): interface for accessing function parameters and
2495             return values,
2496           (assignResultValuei,genRet): use new parameter/return value interface
2497           (pic14_getDataSize): back to old version handling generic pointers,
2498           (pic14_toBoolean,genNot,genCpl,genCmpEq,genOrOp): heavily rewritten,
2499             provided implementation and/or fixed old one,
2500           (genMultOneByte,genDivOneByte,genModOneByte): implemented as library
2501             calls, removed legacy 8051 reference code
2502           (AccLsh,AccRsh): rewritten and fixed to deal with signed operands
2503           (loadSignToC): NEW, move the operands sign bit to CARRY,
2504           (genGenericShift): NEW, replaces genLeftShift, genRightShift and
2505             genRightShiftSigned, accepts negative shift counts,
2506           (setup_fsr): load FSR and adjust IRP (indirect memory access),
2507           (emitPtrByteGet,emitPtrByteSet): rewritten, now works with
2508             generic pointers, __data pointers and __code pointers,
2509           (genUnpackBits,genPackBits): rewritten to work with generic pointers
2510             and signed bitfields, limit bitfields to 8 bit,
2511           (genDataPointerGet): fixed number of bytes read,
2512           (genGenPointerGet,genConstPointerGet): fixed bitfield access,
2513           (genPointerGet,genPointerSet): fixed handling of __code pointers,
2514             pointers to constant data are no longer assumed to point to __code
2515             space, removed invalid pointer types,
2516           (bitpatternFromVal): retrieve the PICs representation of an integer
2517             or float literal,
2518           (genDataPointerSet): fixed assigning to po_immediate operands,
2519           (genGenPointerSet): implemented as library call,
2520           (genIfx): fixed incorrect condition,
2521           (genAddrOf): limit generic pointers' addresses to 2 bytes,
2522             provide GPOINTER tag according to destination's storage class,
2523           (genCast): added code to handle casting to generic pointers, added
2524             sign-/zero extension of the result
2525           (aop_isLitLike,op_isLitLike): fixed handling of immediates
2526         * src/pic/gen.h: added macros to access IRP bit in STATUS register
2527         * src/pic/genarith.c (genAddLit): use min(result's,left's) size, sign
2528           extend the result
2529         * src/pic/glue.c (is_shared_address,is_shared): check whether a given
2530           address/register resides in the shared banks
2531           (emitSymbolToFile): improved to handle global and `pinned' symbols,
2532             put all variables into separate sections (have the linker arrange
2533             them)
2534           (picglue): put init code and interrupt handlers in separate sections
2535         * src/pic/main.c: added port specific options table, modified to PORT
2536           structure to make GPOINTERs 3 byte, added pic14_options
2537           (_pic14_do_link): private linking routine (update paths to libraries,
2538             add libsdcc.lib by default)
2539         * src/pic/main.h: declare pic14_options
2540         * src/pic/pcode.c: fixed instructions i/o relations,
2541           (RegCond): reverted to correct version,
2542           (newpCodeOpLit): truncate literals to 8 bit,
2543           (genericPrint): added debug output,
2544           (getRegFromInstruction): fixed for various operand types, simplified
2545           (BuildFlow): fixed broken handling of isntructions with labels
2546           (LinkFlow): start at last instruction in flow (skip trailing comments),
2547             pass the flow on to the next instruction after CALL
2548           (pCodeReplace): NEW, replace a pCode and move meta data to the new one
2549           (insertPCodeInstruction): fixed inserting after a skip instruction,
2550           (DoBankSelect): fixed for labeled instructions
2551           (OptimizepBlock): honor --nopeep switch
2552           (AnalyzeFlow,ReuseReg): prevent crash on source files with no function
2553         * src/pic/pcodepeep.c (pCodePeepMatchRule): prevent NULL pointer accesses
2554         * src/pic/pcoderegs.c (regIsLocal): NEW, check visibility of a register
2555           (pCodeOptime2pCodes): allow disabling this optimization via
2556             --no-pcode-opt due seldomly occuring bugs, fixed some conditions
2557             but is still buggy), started implementation of a dataflow based
2558             pCode optimization (CSE + dead code elimination)
2559           (pCodeRegMapLiveRangesInFlow): removed bogus inCond
2560         * src/pic/ralloc.c (initStack): renamed stack registers to STK%d, the new
2561           names are independant of the stack location and therefore portable across
2562           devices
2563
2564 2005-10-27 Maarten Brock <sourceforge.brock AT dse.nl>
2565
2566         * src/mcs51/ralloc.c (bitType): added to detect bit variables,
2567           (selectSpil): fixed bug 1337835 by not spilling bit variables
2568         * support/regression/tests/bug1337835.c: added test for this bug
2569         * src/mcs51/peeph.def: restart after rule 3.c,
2570           addded rules 263.x to optimize loading constants
2571
2572 2005-10-26 Raphael Neider <rneider AT web.de>
2573
2574         * src/SDCCsymt.c (compStructSize): allow signed bitfields for PIC ports
2575         * src/pic16/gen.c (genUnpackBits): support signed bitfields,
2576           (genAssign): emit warning when casting literals to generic pointer
2577             type, also applies when taking the address of a fixed variable,
2578           (genCast): improved casting to generic pointers
2579         * src/pic16/glue.c (pic16emitStaticSeg): fixed(?) handling of fixed
2580           extern variables, added verbose error message
2581         * device/include/pic16/{string.h,errno.h}: added #pragma library c
2582
2583 2005-10-26 Bernhard Held <bernhard AT bernhardheld.de>
2584
2585         * src/mcs51/gen.c (genMinus): fixed bug 1270906: reverse subtraction,
2586         carry must be complemented too
2587         * src/mcs51/peeph.def: addded rule 262 to remove double cpl c, which
2588         could be emitted by genMinus
2589         * src/SDCCval.c (constVal): fixed bug 1305065
2590
2591 2005-10-25 Bernhard Held <bernhard AT bernhardheld.de>
2592
2593         * src/SDCCast.c (addCast): added promotion for bit variables
2594         (decorateType): emit W_COMPLEMENT before the problem vanishes behind
2595         promotion casts + optimisation
2596         (optimizeGetWord): fix warning 'i' might be used uninitialized
2597         * src/mcs51/gen.c (genCpl): removed W_COMPLEMENT
2598         * src/ds390/gen.c (genCpl): removed W_COMPLEMENT
2599
2600 2005-10-24 Bernhard Held <bernhard AT bernhardheld.de>
2601
2602         * src/SDCCicode.c (ast2iCode): reverted to 1.224 because of regression:
2603         all chars are promoted to int; promotion should be handled in SDCCast.c
2604
2605 2005-10-15 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2606
2607         * device/lib/_strcmp.c: Fixed bug 1326457
2608
2609 2005-10-11 Raphael Neider <rneider AT web.de>
2610
2611         * device/lib/pic16/libio/i2c.ignore: added 1320, fixes broken builds
2612         * device/lib/pic16/libdev/pic18f1320.c: added 1320's device library
2613
2614 2005-10-05 Maarten Brock <sourceforge.brock AT dse.nl>
2615
2616         * src/SDCC.y (AT): fixed bug with sfr32 addresses when built with GCC
2617         * support/regression/tests/sfr16.c: added test for the sfr32 bug
2618
2619 2005-10-04 Raphael Neider <rneider AT web.de>
2620
2621         * device/include/pic16/pic18fregs.h, src/pic16/devices.inc,
2622           device/lib/pic16/pics.all: added pic18f1320
2623         * src/pic16/pcode.c (mnem2key): fixed prototype's argument mismatch
2624
2625 2005-09-30 Raphael Neider <rneider AT web.de>
2626
2627         * src/pic16/device.c (Pics16[]): moved device descriptions to devices.inc
2628         * src/pic16/devices.inc: NEW, provides device descriptions
2629         * src/pic16/gen.c (genInline): fixed handling of ';'-comments
2630
2631 2005-09-26 Maarten Brock <sourceforge.brock AT dse.nl>
2632
2633         * src/SDCCicode.c (operandOperation): added GETABIT, GETBYTE, GETWORD and
2634           GETHBIT
2635
2636 2005-09-25 Maarten Brock <sourceforge.brock AT dse.nl>
2637
2638         * doc/sdccman.lyx: updated Highest Order Bit documentation,
2639           documented Any Order Bit, Higher Order Byte and Higher Order Word
2640         * src/SDCC.y: added tokens GETABIT, GETBYTE, GETWORD
2641         * src/SDCCast.c (optimizeGetHbit): updated to also accept bool=expr&(1<<n),
2642           (optimizeGetAbit): new, to get any bit, not only the high bit,
2643           (optimizeGetByte): new, to get a byte from a (long) int: expr>>(8*n),
2644           (optimizeGetWord): new, to get a word from a long int: expr>>(8*n),
2645           (isConformingBody): also check GETABIT, GETBYTE, GETWORD,
2646           (decorateType): '&': also try GETABIT, GETBYTE, GETWORD optimization,
2647             RIGHT_OP: also try GETBYTE, GETWORD optimization,
2648             GETABIT, GETBYTE, GETWORD: decorate them,
2649           (isShiftRightLitVal, isBitAndPowOf2): new helper functions,
2650           (ast_print): added GETABIT, GETBYTE, GETWORD
2651         * src/SDCCcse.c (isSignedOp): added GETABIT, GETBYTE, GETWORD
2652         * src/SDCCicode.c (codeTable): added GETABIT, GETBYTE, GETWORD,
2653           (geniCodeBinary): new generic binary icode,
2654           (ast2iCode): added GETABIT, GETBYTE, GETWORD
2655         * src/port.h: updated comment for PORT.hasExtBitOp
2656         * src/mcs51/gen.c (genGetAbit): new, to get any single bit,
2657           (genGetByte): new, to get a single byte,
2658           (genGetWord): new, to get a word from a long,
2659           (gen51Code): added GETABIT, GETBYTE, GETWORD
2660         * src/mcs51/main.c (hasExtBitOp): added GETABIT, GETBYTE, GETWORD
2661
2662 2005-09-23 Raphael Neider <rneider AT web.de>
2663
2664         * configure.in, configure: have device/lib/pic configured
2665         * device/lib/Makefile.in: added model-pic14
2666         * device/lib/clean.mk: added pic/ to clean rule
2667         * device/lib/pic: added rudimentary pic14 library providing support
2668           functions for multiplication/division/generic pointer access
2669         * src/SDCCopt.c (convilong): mark support functions as extern
2670           for pic14 port as well
2671         * src/pic/gen.c (genMult): added assertions,
2672           (genpic14Code): emit warning on unhandled iCodes
2673         * src/pic/main.c (_hasNativeMulFor): return true only for 8x8 bit
2674         * src/pic/pcode.c (pCodeOpCopy),
2675         * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): fixed handling of various
2676           pCodeOpReg-subtypes (PO_{STATUS,INTCON,PCL,PCLATH,PCLATU,BSR,
2677           SFR_REGISTER}), made safe for future extensions
2678         * src/pic16/pcode.c (pic16_safepCodeUnlink): allow for removal of
2679           instructions even if preceeded by SKIP instructions (also remove
2680           them); removed unused code
2681         * src/pic16/pcode.h: added arg2 to pCodeOpLit to match pCodeOpLit2,
2682           prevents leaving parts of the structure uninitialized after copying
2683
2684 2005-09-22 Maarten Brock <sourceforge.brock AT dse.nl>
2685
2686         * src/mcs51/gen.c (genMinus): fix for undetected bug introduced 3 months
2687           ago by me
2688         * support/regression/tests/addsub.c: added test for the bug
2689
2690 2005-09-21 Raphael Neider <rneider AT web.de>
2691
2692         * device/include/pic16/pic18f1220.h,
2693           device/lib/pic16/libdev/pic18f1220.c: added ECCPAS sfr and bitfield
2694         * device/lib/pic16/Makefile.rules: added missing opening paren
2695         * src/pic16/gen.c (pic16_genNot,pic16_genCpl): removed as these
2696           are provided in genutils.c,
2697           (genUminusFloat,genUminus,genCmpEq): added asserts on different
2698           operand/result sizes,
2699           (genCmp): assert on NULL pointers first, then check deref'ed values
2700         * src/pic16/genutils.c (pic16_genCpl): fixed for different operand/
2701           result size
2702
2703 2005-09-18 Raphael Neider <rneider AT web.de>
2704
2705         * src/pic16/gen.c (genFarPointerGet,genFarPointerSet): removed
2706           as these are now unused,
2707           (genPointerGet,genPointerSet): handle FPOINTERs like POINTERs
2708         * src/pic16/pcode.c (pic16_symIsSpecial): assume REG_TMPs to be
2709           local, avoids uninitialized pointer dereference on r->name
2710         * src/pic16/ralloc.c (newReg): fixed indentation
2711
2712 2005-09-13 Maarten Brock <sourceforge.brock AT dse.nl>
2713
2714         * src/SDCCval.c (constVal): fixed bug 730366
2715         * support/Util/SDCCerr.c,
2716         * support/Util/SDCCerr.h: added warning W_INVALID_INT_CONST
2717
2718 2005-09-10 Maarten Brock <sourceforge.brock AT dse.nl>
2719
2720         * as/mcs51/lkmem.c (summary2): fixed report for absolute areas (bug 1210220)
2721
2722 2005-09-09 Maarten Brock <sourceforge.brock AT dse.nl>
2723
2724         * src/mcs51/peeph.def (241.x): fixed bug when comparing generic pointers
2725
2726 2005-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
2727
2728         * as/hc08/lkaomf51.c (OutputName): made name unsigned char,
2729           (hex2dec): made hex_digit unsigned char, removed ascii dependance
2730         * as/mcs51/lkaomf51.c (OutputName): made name unsigned char,
2731           (hex2dec): made hex_digit unsigned char, removed ascii dependance
2732         * as/mcs51/lkarea.c (lnkarea2): sort absolute areas to the front
2733         * packihx/packihx.c (hexDigit): made c unsigned char
2734         * as/mcs51/lklibr.c (fndsym),
2735         * link/z80/lkgb.c (gb),
2736         * link/z80/lklibr.c (fndsym),
2737         * link/z80/lkrloc.c (relr),
2738         * sim/ucsim/libltdl/ltdl.c (load_deplibs, try_dlopen),
2739         * src/SDCC.lex (checkCurrFile, process_pragma),
2740         * src/SDCCglue.c (spacesToUnderscores),
2741         * src/SDCCmain.c (setParseWithComma, processFile),
2742         * src/asm.c (tvsprintf, printCLine),
2743         * src/avr/gen.c (emitcode, aopPut),
2744         * src/ds390/gen.c (emitcode),
2745         * src/hc08/gen.c (emitcode, emitinline),
2746         * src/mcs51/gen.c (emitcode, genInline),
2747         * src/pic/pcodepeep.c (cvt_extract_destination, cvt_extract_status,
2748           tokenizeLineNode),
2749         * src/pic/ralloc.c (debugLog),
2750         * src/pic16/pcodepeep.c (cvt_extract_destination, cvt_extract_status,
2751           tokenizeLineNode),
2752         * src/pic16/ralloc.c (debugLog),
2753         * src/z80/main.c (_process_pragma):
2754            made all ctype.h function calls safe
2755         * src/SDCCopt.c: include math.h for fabs
2756         * src/SDCCpeeph.c: added macros ISCHARDIGIT, ISCHARSPACE and ISCHARALNUM
2757           and used them throughout the code to make ctype.h function calls safe
2758         * src/ds390/main.c (asmLineNodeFromLineNode),
2759         * src/mcs51/main.c (asmLineNodeFromLineNode): made p unsigned char*
2760         * src/pic/gen.c (DEBUGpic14_emitcode, pic14_emitcode): made lbp
2761            unsigned char*
2762         * src/pic/pcode.c (mnem2key): made mnem unsigned char*,
2763           (newpCodeAsmDir): made ctype.h function calls safe
2764         * src/pic16/gen.c (pic16_emitpcomment, DEBUGpic16_emitcode,
2765           pic16_emitcode):  made lbp unsigned char*
2766         * src/pic16/pcode.c (mnem2key): made mnem unsigned char*,
2767           (pic16_newpCodeAsmDir): made ctype.h function calls safe
2768         * src/xa51/gen.c (emitcode),
2769         * src/z80/gen.c (_emit2): made lbp unsigned char*
2770         * support/Util/MySystem.c (split_command): made cmd_line and p unsigned
2771            char*
2772
2773 2005-09-05 Raphael Neider <rneider AT web.de>
2774
2775         * src/pic16/ralloc.c (pic16_allocDirReg): use device specific
2776           access bank splitpoint
2777
2778 2005-09-05 Raphael Neider <rneider AT web.de>
2779
2780         * device/lib/pic16/libc/Makefile: added (missing) string to SUBDIRS
2781
2782 2005-09-03 Maarten Brock <sourceforge.brock AT dse.nl>
2783
2784         * .version: changed to version 2.5.3
2785         * doc/sdccman.lyx: changed version to 2.5.3,
2786           documented --codeseg and --constseg and pragma codeseg and constseg,
2787           documented bit parameters (reentrant) and bit returning
2788         * src/SDCCicode.c (geniCodeReceive): fixed (possible) bug generating
2789            currFunc->recvSize, but is this ok for all ports?
2790           (ast2iCode): result of ~ on unsigned char must be cast to int for
2791            bool to work
2792         * src/SDCCmem.c (allocGlobal, allocLocal): don't put bit returning
2793           function pointers in bit space
2794         * src/SDCCsymt.c (checkSClass): allow bit returning function pointers,
2795           (processFuncArgs): call port.reg_parm() with reentrancy info
2796         * src/port.h,
2797         * src/avr/main.c,
2798         * src/ds390/main.c,
2799         * src/hc08/main.c,
2800         * src/pic/main.c,
2801         * src/pic16/main.c,
2802         * src/xa51/main.c,
2803         * src/z80/main.c: port.reg_parm prototype extended with
2804           "bool reentrant" parameter
2805         * src/mcs51/main.c (_mcs51_regparm): use parameter reentrant instead of
2806           options.stackAuto for allocating bit register parameters
2807         * src/mcs51/gen.c (genNot): optimized complementing direct bit,
2808           (genSend): set BitBankUsed if it is,
2809           (selectRegBank): factored out of genCall for use in genPcall,
2810           (genCall): removed redundant dtype assignmen, use selectRegBank,
2811           (genPcall): handle returning in Carry properly, save in F0 if needed,
2812           (genReceive): handle bit register parameters
2813         * src/mcs51/ralloc.c (updateRegUsage): update BitBankUsed along the way,
2814           (mcs51_assignRegisters): enable bit registers for all reentrant
2815            functions and don't set BitBankUsed unconditionally
2816         * src/mcs51/peeph.def (177.d): fixed bug if %2==%3
2817         * support/regression/tests/bitvars.c: enable tests for SDCC_STACK_AUTO
2818         * support/regression/tests/funptrs.c: added tests for BOOL and for return
2819
2820 2005-08-27 Borut Razem <borut.razem AT siol.net>
2821
2822         * device/lib/Makefile.in: cp on sparc-solaris (SunOS) and on
2823         ppc-osx (Darwin) does not support -u option. It seems that it is
2824         supported only on Linux - GNU cp
2825
2826 2005-08-25 Borut Razem <borut.razem AT siol.net>
2827
2828         * sim/ucsim/gui.src/serio.src/Makefile.in,
2829           sim/ucsim/s51.src/Makefile.in, sim/ucsim/avr.src/Makefile.in,
2830           sim/ucsim/z80.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
2831           sim/ucsim/xa.src/Makefile.in: install -s changed to 2 steps:
2832           install and strip, since the strip at /usr/ccs/bin should be used
2833           on solaris
2834
2835 2005-08-24 Borut Razem <borut.razem AT siol.net>
2836
2837         * clean.mk, device/lib/clean.mk: find on sparc-solaris does not support -maxdepth option
2838
2839 2005-08-23 Bernhard Held <bernhard AT bernhardheld.de>
2840
2841         * src/SDCCopt.c (convertToFcall): fixed modulus with divisors 1 and
2842         ffffffffu
2843
2844 2005-08-23 Maarten Brock <sourceforge.brock AT dse.nl>
2845
2846         * as/mcs51/aslink.h: completed lkrloc.c prototypes
2847         * as/mcs51/lkmain.c (link_main): fixed warning
2848         * device/include/stdbool.h: ds390 has no advanced bit support yet
2849         * src/SDCC.y: use SPEC_SHORT and renamed _signed to b_signed
2850         * src/SDCCsymt.c: use SPEC_SHORT and renamed _signed to b_signed
2851         * src/SDCCsymt.h (struct specifier): renamed _xxx bitfields to b_xxx
2852           and updated their macros
2853         * src/SDCCval.c (constVal): updated comment for renamed b_long
2854
2855 2005-08-22 Maarten Brock <sourceforge.brock AT dse.nl>
2856
2857         * as/mcs51/asdata.c: changed ctype['['] to BINOP
2858         * as/mcs51/asexpr.c (expr): added case '[' for bit access in bdata,
2859           (term): abused bit 15 of s_addr to indicate bit-addressable bytes,
2860           (oprio): set priority for '['
2861         * as/mcs51/aslink.h: added define R_BIT, and prototypes for adb_bit
2862            and adb_24_bit
2863         * as/mcs51/asm.h: added defines R_BIT and S_BIT
2864         * as/mcs51/lkarea.c (lnksect2): use T for seg BIT_BANK and overlay it
2865         * as/mcs51/lkdata.c: changed ctype['['] to BINOP
2866         * as/mcs51/lkmain.c (Areas51): rel2 contains 12 (=C) areas now,
2867           added overlayable BIT_BANK area
2868         * as/mcs51/lkmem.c (summary): add BIT_BANK to BSEG_BYTES in the report,
2869           (summary2): explain 'T' in legenda
2870         * as/mcs51/lkrloc.c: replaced old K&R style,
2871           (relr): added R_BIT processing,
2872           (errmsg): added "Bit-addressable relocation error",
2873           (adb_bit): added for converting from byte- to bit-addressable space,
2874           (adb_24_bit): added for converting from byte- to bit-addressable space
2875         * device/include/stdbool.h: changed BOOL to __bit for mcs51 as it can be
2876            used in reentrant functions now even as return value
2877         * device/lib/_gptrput.c (_gptrput): removed obsolete code
2878         * src/SDCCast.c (resultTypePropagate): also propagate AND_OP and OR_OP,
2879           (decorateType): case '!', GETHBIT, AND_OP, OR_OP: result in bool or char
2880         * src/SDCCglobl.h: added indicator BitBankUsed
2881         * src/SDCCglue.c (glue): emit area BIT_BANK with byte 'bits' and equ's for
2882            the bit registers b0-b7
2883         * src/SDCCicode.c (operandFromSymbol): removed IS_BITVAR check,
2884           (geniCodeCast): fixed bug 1263853,
2885           (geniCodeLogicAndOr): put result in bool or char,
2886           (geniCodeReceive): added parameter func for accessing the return type,
2887           (geniCodeFunctionBody): pass func to geniCodeReceive
2888         * src/SDCCmain.c: added indicator BitBankUsed
2889         * src/SDCCmem.c (allocLocal): explicitly set sclass for V_BIT
2890         * src/SDCCsymt.c (newBoolLink): added for creating a bool/bit,
2891           (checkSClass): don't put automatic bool/bit on stack,
2892           (checkFunction): removed check on function cannot return bit
2893         * src/SDCCsymt.h: added newBoolLink prototype
2894         * src/mcs51/gen.c (rb1regs): added bit registers,
2895           (movc): created for assigning to carry,
2896           (pushReg, popReg): created for pushing registers,
2897           (sameRegs): check both AOP_REG and AOP_CRY types,
2898           (aopOp): handle bit registers,
2899           (aopPut): optimization no self-assign,
2900           (saveRegisters): push reg->base (bits) only once for bit registers,
2901            and use pushReg,
2902           (unsaveRegisters): pop reg->base only once and use popReg,
2903           (assignResultValue): added parameter func and return in carry for bits,
2904           (genIpush): optimization no reload in A if not changed,
2905           (genSend): bit parameters in reentrant functions are passed in bit
2906            registers by first assigning to bits in B, then save registers and
2907            copy B to bits,
2908           (genCall): handle returning in Carry properly, save it in F0 if needed,
2909           (genPcall): updated assignResultValue call, this is not safe yet for bit
2910            returning function !!!
2911           (genFunction): don't generate equ's for bit registers and use pushReg,
2912           (genEndFunction): take care of bit returning functions and use popReg,
2913           (genRet): return bit in Carry,
2914           (genIfx): optimize bit registers and other directly addressable bits,
2915           (genReceive): updated assignResultValue call
2916         * src/mcs51/main.c (_mcs51_reset_regparm): added regBitParmFlg,
2917           (_mcs51_regparm): allow passing of upto 8 bit parameters in bit
2918            registers when using stack-auto
2919         * src/mcs51/ralloc.c (_G): added allBitregs,
2920           (regs8051): added the bit registers,
2921           (createStackSpil): use macro IS_BIT,
2922           (getRegBit): added to allocate a bit register, else spill,
2923           (getRegBitNoSpil): added to allocate a bit register, else a gpr,
2924           (updateRegUsage): factored out to ease stepping while debugging,
2925           (serialRegAssign): use updateRegUsage, only spill bits if necessary,
2926            also allocate bit registers,
2927           (fillGaps): handle bit registers,
2928           (findAllBitregs): added to create bit vector with all bit registers,
2929           (mcs51_allBitregs): returns this bit vector,
2930           (mcs51_assignRegisters): when using stack-auto use bit registers for
2931            passing parameters and creating local variables
2932         * src/mcs51/ralloc.h: added B0_IDX..B7_IDX and prototype mcs51_allBitregs
2933
2934 2005-08-22 Borut Razem <borut.razem AT siol.net>
2935
2936         * device/lib/Makefile.in: replaced find option -or with -o
2937           to make it run on solaris
2938
2939 2005-08-22 Raphael Neider <rneider AT web.de>
2940
2941         * src/pic16/gen.c (pic16_loadFromReturn): added check for AOP_PCODE,
2942           fixes #1265442 (crash on Solaris)
2943
2944 2005-08-20 Borut Razem <borut.razem AT siol.net>
2945
2946         * configure, configure.in: added tests for libsocket and libnsl libraries,
2947           requred by sdcdb on sparc-solaris; generate support/regression/Makefile
2948           from support/regression/Makefile.in
2949         * support/regression/Makefile.in: added
2950         * device/lib/pic16/Makefile.common.in: force make to use bash shell
2951         * sim/ucsim/libtool: regenerated on sparc-solaris
2952         * sim/ucsim/avr.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
2953           sim/ucsim/s51.src/Makefile.in, sim/ucsim/xa.src/Makefile.in,
2954           sim/ucsim/z80.src/Makefile.in: removed GNU ld specific linker options
2955           -Wl,--start-group and -Wl,--end-group to enable ucsim compilation on
2956           sparc-solaris, which doesn't use GNU ld linker
2957         * device/lib/Makefile.in: cp on sparc-solaris (SunOS) does not support -u option
2958         * as/Makefile: find on sparc-solaris does not support -maxdepth option
2959
2960 2005-08-19 Maarten Brock <sourceforge.brock AT dse.nl>
2961
2962         * src/mcs51/peeph.def: updated comments
2963
2964 2005-08-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2965
2966         * device/lib/_gptrget.c,
2967         * device/lib/_gptrput.c: slightly shorter
2968         * doc/sdccman.lyx: incremented version
2969         * src/mcs51/peeph.def: moved peephole comments to the line of first
2970           change to better keep line correlation, reanimated 186.e
2971         * src/mcs51/peeph.def: renamed similar peepholes by using suffixes
2972
2973 2005-08-16 Slade Rich <slade_rich AT users.sourceforge.net>
2974
2975         * src/pic/pcode.c : Pasted ".line" assembly directives patch from
2976           David Saxton with quotes around file name.
2977
2978 2005-08-15 Borut Razem <borut.razem AT siol.net>
2979
2980         * support/regression/tests/bitfields.c, support/regression/tests/bitvars.c,
2981           support/regression/tests/bitwise.c, support/regression/tests/literalop.c,
2982           support/regression/tests/rotate.c, support/regression/tests/zeropad.c:
2983           make tests run on x86_64 platform
2984
2985 2005-08-13 Raphael Neider <rneider AT web.de>
2986
2987         * device/lib/pic16/Makefile.subdir: weakened clean-intermediate rule
2988           as it might be executed DURING a build (parallel make is wonderful)
2989
2990 2005-08-13 Raphael Neider <rneider AT web.de>
2991
2992         * device/lib/Makefile.in (port-specific-objects-pic16):
2993           revert to cp $(PORT)/bin/*.* $(PORTDIR)
2994         * device/lib/pic16/Makefile: added .PHONY targets, removed builddir
2995           dependency
2996         * device/lib/pic16/Makefile.rules: build subdirs before creating
2997           the library, removed builddir rule, create $(builddir) early in
2998           recurse rule, use empty recurse rule for leaf directories
2999         * device/lib/pic16/Makefile.subdir: added phony targets, ignore
3000           mkdir errors (race condition), removed duplicate suffix "hex"
3001           from clean rules
3002         * device/lib/pic16/libdev/Makefile: recursive make via + and $(MAKE)
3003         * device/lib/pic16/libio/Makefile: create sub-make's builddir early,
3004           prevents mkdir -p from aborting on Alpha
3005
3006 2005-08-12 Raphael Neider <rneider AT web.de>
3007
3008         * src/pic16/glue.c (pic16_print(G)PointerType): do not flush
3009           db-statements in order to allow for arrays of pointers in code
3010           sections to be placed without interspersed 0-padding, fixes
3011           bug #1256215
3012         * (emitStatistics): fixed division by zero for pic18f1220
3013         * src/pic16/pcode.c: buffer (up to) 12 DB directives to allow for
3014           unpadded writing of 8-bit, 16-bit, 24-bit and 32-bit values
3015         * (pic16_emitDS): respect DB_ITEMS_PER_LINE
3016         * (pic16_pCodeConstString): keep track of already emitted string
3017           literals to prevent "duplicate definitions of symbol _str_NR"
3018         * src/pic16/ralloc.c (pic16_allocRegByName): removed not so helpful
3019           debug message
3020         * device/lib/Makefile.in: ignore failing PIC16 library builds
3021         * device/lib/pic16/Makefile: do not build if gputils are missing
3022         * device/lib/pic16/Makefile.common.in: do not enforce MAKEFLAGS=-s
3023
3024 2005-08-10 Raphael Neider <rneider AT web.de>
3025
3026         * device/lib/Makefile.in: fixed copying pic16 libraries (broken by
3027           my last commit)
3028
3029 2005-08-10 Raphael Neider <rneider AT web.de>
3030
3031         * src/*.c, src/pic16/{gen.c,glue.c,main.c}: applied Vangelis
3032           Rokas' patch to add the new fixed point type "__fixed16x16"
3033         * device/lib/pic16/libsdcc/fixed16x16: added Vangelis' support
3034           functions for __fixed16x16 arithmetics
3035         * device/lib/pic16: reimplemented the build system to support
3036           a separate build directory, better handling of libio (create
3037           the library in a separate subdir for each architecture) and
3038           easier configuration (centralized in Makefile.common)
3039
3040 2005-08-07 Raphael Neider <rneider AT web.de>
3041
3042         * src/pic16/gen.c (genrshTwo): fixed sign extension
3043         * src/pic16/device.c: added pic18f2320, 4220 and 4320
3044         * device/include/pic16/pic18f2220.h: changed some bit definitions,
3045           added T0CONbits
3046         * device/include/pic16/pic18f4220.h: NEW, header for
3047           pic18f4220 and pic18f4320
3048         * device/include/pic16/pic18fregs.h: added new devices,
3049           embraced Nop(), ClrWdt(), Sleep() and Reset() with do {} while(0)
3050         * device/include/pic16/signal.h: resolved name clashes
3051           on bit definitions, added DEF_HANDLER2(sig1,sig2,handler)
3052           to also allow testing for interrupt enable bits, added
3053           comments on how to use the macros
3054         * device/lib/pic16/libdev/pic18f2220.c: added T0CONbits
3055         * device/lib/pic16/libdev/pic18f{2320,4220,4320}.c: NEW,
3056           register definitions for the devices
3057         * device/lib/pic16/pics.all: added new devices
3058         * device/lib/pic16/libc/stdlib/calloc.c: fixed zeroing
3059           allocated memory
3060         * device/lib/pic16/libc/stdlib/memfree: do not count
3061           the block header as free memory
3062         * device/lib/pic16/libc/stdlib/memmisc.c (_initHeap):
3063           simplified and added missing end-of-blocklist-marker
3064           (reported by Peter Onion, fixes #1252814)
3065         * (_mergeHeapBlock): fixed loop condition
3066         * device/lib/pic16/libc/stdlib/realloc.c: return NULL for
3067           len==0, restructured code
3068         * device/lib/pic16/libc/stdlib/{malloc,memfreemax}.c: cleaned
3069           up a bit, reduced bitfield accesses, prevent endless loops
3070           in case of heap corruption
3071         * device/lib/pic16/libc/stdlib/x_ftoa.c: disabled
3072           "unreferenced arguments/must return a value" warnings
3073         * device/lib/pic16/libio/usart/ubaud.c (usart_baud):
3074           replaced BAUDREG with SPBRG
3075         * device/lib/pic16/libsdcc/lregs/{lrrest.c,lrst.c},
3076           device/lib/pic16/debug/gstack/gstack.c: replaced
3077           _naked, _asm, _endasm with __naked, __asm, __endasm
3078
3079 2005-08-05 Raphael Neider <rneider AT web.de>
3080
3081         * src/pic16/gen.c (pic16_aopGet): fixed handling of offsets in
3082           AOP_PCODE operands, fixes multibyte union-bitfield-accesses
3083
3084 2005-08-05 Borut Razem <borut.razem AT siol.net>
3085
3086         * device/lib/Makefile.in: added missing ';'
3087         * configure: removed ^M characters
3088
3089 2005-08-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3090
3091         * device/include/mcs51/at89c51ed2.h, device/include/mcs51/p89v51rd2.h,
3092           device/include/mcs51/at89s53.h: changed to GNU Lesser General Public
3093           License
3094
3095 2005-08-04 Borut Razem <borut.razem AT siol.net>
3096
3097         * configure.in: pic16 libraries build 2nd try - enable running
3098           configure in device/lib/pic16
3099         * configure: regenerated from configure.in
3100         * device/lib/Makefile.in: create $(PORT)/bin directory
3101
3102 2005-08-03 Raphael Neider <rneider AT web.de>
3103
3104         * src/pic16/gen.c (pic16_derefPtr): NEW, single place
3105           to get/set values via pointers
3106         * (genUnpackBits,genPackBits): changed detection of
3107           ptr->bitfield vs. sym.bitfield, fixed access via generic
3108           pointers, removed dead (wrong) code for multibyte bitfields
3109         * (genNearPointerGet, genGenPointerGet): removed useless code,
3110           fixed bitfield detection, fixes #1250594
3111         * (genNearPointerSet): removed useless code
3112         * src/pic16/gen.h: renamed pic16_emitpcode to pic16_emitpcode_real
3113           and introduced macro pic16_emitpcode that conditionally emits
3114           the origin of the following pCode (useful for debugging SDCC)
3115         * src/pic16/pcode.c: changed (and disabled) some debug outputs
3116         * (createDefmap): fixed handling of LFSR for --optimize-df
3117
3118 2005-08-02 Borut Razem <borut.razem AT siol.net>
3119
3120         * device/lib/Makefile.in: pic16 libraries build enabled since
3121           gputils-0.13.2 are now localy installed at sourceforge's compile farm
3122
3123 2005-08-02 Raphael Neider <rneider AT web.de>
3124
3125         * src/pic16/gen.c (genPackBits): removed deprecated warning
3126         * (genGenPointerSet): fixed bitfield detection
3127
3128 2005-08-02 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3129
3130         * device/include/mcs51/msm8xc154s.h: Removed PT2 definition, now in 8052.h.
3131
3132 2005-07-31 Raphael Neider <rneider AT web.de>
3133
3134         * device/lib/pic16/libdev/pic18f458.c,
3135           device/include/pic16/pic18f458.h: added missing T0CONbits
3136
3137 2005-07-29 Maarten Brock <sourceforge.brock AT dse.nl>
3138
3139         * device/include/mcs51/msm8xc154s.h: added, thanks to Matthias Arndt
3140
3141 2005-07-28 Maarten Brock <sourceforge.brock AT dse.nl>
3142
3143         * src/mcs51/gen.c (operandsEqu): fixed bug 1246687
3144
3145 2005-07-23 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3146
3147         * device/include/mcs51/at89c51ed2.h: added.
3148
3149 2005-07-23 Raphael Neider <rneider AT web.de>
3150
3151         * src/pic/gen.h: added emitpcode macro for debugging
3152         * src/pic/gen.c (emitpcode): renamed to emitpcode_real
3153           and replace by macro adding debug information on demand
3154         * (genNot): fixed to C semantics (!0 = 1; !x = 0 iff x != 0)
3155         * (gencjne): tried to fix; replaced with correct (slower) code
3156         * (gen{Unp,P}ackBits): fixed single bit access
3157         * src/pic/pcode.c (AnalyzepCode): fixed DFPRINTF argument
3158         * src/pic/pcodepeep.c (pCodeSearchCondition): fixed finding
3159           previous instruction
3160         * src/pic/pcoderegs.c (regIsSpecial): NEW, check whether a
3161           register has to be handled with care (forbidding movement
3162           of assignments/uses, removing assignments completely, ...)
3163         * (pCodeOptime2pCodes): make use of regIsSpecial
3164         * added lots of debugging output (commented out)
3165         * src/pic/rallloc.c (deassignLRs): prevent operand registers
3166           from being reused as result UNLESS it is known to work
3167
3168 2005-07-23 Maarten Brock <sourceforge.brock AT dse.nl>
3169
3170         * support/Util/dbuf.h: include <stddef.h> for size_t
3171         * .version: changed to version 2.5.2
3172
3173 2005-07-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3174
3175         * src/SDCCloop.c (loopInvariants): fixed bug #1234048
3176
3177 2005-07-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3178
3179         * src/hc08/gen.c (genMinus): fixed bug #1241835,
3180           (genModOneByte): removed needless psha/pula
3181
3182 2005-07-22 Raphael Neider <rneider AT web.de>
3183
3184         * src/SDCCmain.c (linkEdit): initialized linkerScriptFileName,
3185           have PIC14 handled like PIC16, fixes broken pic14 linker calls
3186         * src/pic/gen.c (resolveIfx): do not "invent" labels
3187         * (genSkipc): changed to positive logic
3188         * (genSkipCond): removed as no longer needed
3189         * (pic14_mov2w_regOrLit,genCmp): NEW, replacement for buggy version,
3190           backport from PIC16
3191         * (genLeftShift): check operands are in different registers
3192         * src/pic/genarith.c (genPlus): replaced INCF with ADDLW as
3193           INCF does not update CARRY...
3194         * src/pic/main.c: fixed _linkCmd
3195         * src/pic/pcode.c (unlinkpCode): added inactive code
3196         * src/pic/ralloc.c (deassignLRs): keep arguments to shift operations
3197           alive (do not assign result and operand overlapping registers)
3198
3199 2005-07-22 Raphael Neider <rneider AT web.de>
3200
3201         * src/pic/device.c (dump_sfr): replaced register declaration with
3202           call to emitSymbolToFile() to avoid duplicate symbols
3203         * (assignRelocatableRegisters): do not declare external symbols
3204         * src/pic/ralloc.c (allocNewDirReg): fixed to get size of arrays
3205           right (take size of type, not etype)
3206         * (allocDirReg): fixed call to allocNewDirReg() to pass OP_SYM_TYPE
3207         * (writeUsedRegs): also dump dynDirectRegs (e.g. local variables)
3208         * (packRegsForAccUse): disabled assignment of WREG as
3209           the result reg to prevent occurence of just fixed #1235003,
3210           fixes #1242954
3211         * src/pic/glue.c (emitSymbolToFile): NEW, central place to declare
3212           symbols (avoids duplicate symbols in .asm file)
3213         * (pic14emitRegularMap): use emitSymbolToFile()
3214         * src/pic/gen.c (aopOp): fixed spillLocation handling
3215         * (gen{Unp,P}ackBits): fixed acquiring bit-operands
3216         * (genDataPointerSet): removed unneccessary variables/output
3217
3218 2005-07-22 Maarten Brock <sourceforge.brock AT dse.nl>
3219
3220         * as/mcs51/lkarea.c: enlarged codemap for banked memory
3221         * device/lib/mcs51/crtbank.asm: added # to 0x0F
3222
3223 2005-07-21 Raphael Neider <rneider AT web.de>
3224
3225         * src/pic/gen.c (aopOp): do not generate AOP_ACC operands as pic14
3226           architecture cannot handle them efficiently, fixes bug #1235003
3227         * src/pic16/device.c (pic16_dump_{u,i}section,pic16_dump_int_registers):
3228           check for empty sets before using them (fixes bug #1232190)
3229
3230 2005-07-19 Maarten Brock <sourceforge.brock AT dse.nl>
3231
3232         * as/mcs51/lkarea.c (lnkarea, lnkarea2): improved BSEG size calculation,
3233           (lnksect2): generate warnings for memory overlap
3234         * src/SDCC.lex (doPragma, process_pragma): added pragma's codeseg and
3235           constseg to set the name of these segments so you can instruct the linker
3236           to place them in banks
3237         * src/SDCCast.c (decorateType): use new macro IS_FUNCPTR()
3238         * src/SDCCglobl.h: added MODEL_HUGE to enum,
3239           added code_seg and const_seg to options
3240         * src/SDCCglue.c (emitMaps): use options.const_seg,
3241           (createInterruptVect): put interrupt vectors in segment HOME,
3242           (glue): put HOME before static segment and put the main glue in HOME,
3243           (glue): use options.code_seg
3244         * src/SDCCicode.c (geniCodeCall): use new macro IS_FUNCPTR()
3245         * src/SDCCmain.c: added option --codeseg and --constseg to set the name of
3246           these segments so you can instruct the linker to place them in banks
3247           (linkEdit): use code_loc for HOME segment which should be the first
3248           segment in code memory now
3249         * src/SDCCmem.c: fixed more stuff like bug 1238386
3250         * src/SDCCsymt.c (getSize): use generic pointer size for banked functions,
3251           (changePointer): don't change function pointers to code pointers for
3252           banked functions,
3253           (compareType): added exceptional check for banked function pointers
3254         * src/SDCCsymt.h: changed IFFUNC_ISBANKEDCALL, added IS_FUNCPTR
3255         * src/hc08/main.c (_hc08_genAssemblerPreamble): put HOME first, put CSEG
3256           after static in code memory
3257         * src/mcs51/gen.c: added aopLiteralLong prototype,
3258           (aopForSym): use getSize for functions,
3259           (genCall): generate banked calls over one trampoline __sdcc_banked_call
3260           in HOME with lsb of address in r0, msb in r1 and bank in r2, use
3261           -Wl-bBANKSEG=0xbbaaaa option to set the address (aaaa) and bank (bb) of
3262           the segment,
3263           (genPcall): use call for literal function pointers and generate banked
3264           calls over the one trampoline so there's only one place for the user to
3265           modify according to his/hers hardware,
3266           (genEndFunction): jump to __sdcc_banked_ret in HOME for banked functions,
3267           (genPlusIncr): moved check icount>4 beyond inc dptr optimization
3268         * src/mcs51/main.c: added keyword banked,
3269           (_mcs51_genExtraAreas): put HOME first followed by GSINIT, STATIC and CSEG
3270         * support/Util/SDCCerr.c,
3271         * support/Util/SDCCerr.h: added E_BANKED_WITH_CALLEESAVES, registers are
3272           needed for passing the bank and address to the trampoline
3273         * device/lib/mcs51/crtbank.asm: added for bankswitching
3274         * device/lib/mcs51/Makefile: added crtbank
3275
3276 2005-07-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3277
3278         * src/SDCCcse.c (algebraicOpts): fixed loss of volatility
3279           for fields at offset 0 of a struct or union as reported
3280           on 2005-07-07 in the developer mailing list.
3281
3282 2005-07-15 Maarten Brock <sourceforge.brock AT dse.nl>
3283
3284         * src/SDCCmem.c: fixed bug 1238386
3285
3286 2005-07-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3287
3288         * src/mcs51/peeph.def: added labelrefcounting for peepholes
3289           (patch #1144962), added peephole 300, enabled 259.x
3290         * doc/sdccman.lyx: removed screenshot and provided link instead
3291
3292 2005-07-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3293
3294         * doc/sdccman.lyx: added section about debugging with ddd
3295         * doc/figures/ddd_example.eps: screenshot of debugging session
3296
3297 2005-07-04 Raphael Neider <rneider AT web.de>
3298
3299         * src/pic/gen.c (genPointerGet): handle pointers to CONST values
3300           like CODE pointers, fixes #1115683
3301         * src/pic/pcode.c (DoBankSelect): forget LastRegIdx during function
3302           call, fixes bugs #1232211, #1228110,
3303           fixed wrong casts to pCodeFlow from pCodeInstructions
3304
3305 2005-07-04 Raphael Neider <rneider AT web.de>
3306
3307         * src/pic/gen.c (popGet): changed assert to allow for
3308           bit operands
3309         * (popGetAddr): changed signature to provide
3310           an additional index, patched all call sites
3311         * (genCmpEq): handle literal-like operands correctly
3312         * (genAddrOf): added sanity checks on __code/__data pointers
3313         * (genAssign): added handling of symbols from __code section
3314         * (gencjne): do not generate code for comparisons whose result
3315           is neither stored nor used, fixes bug #1171114
3316         * (AccLsh, AccRsh): operate on operand instead of WREG
3317         * (shift{Left,Right}_Left2ResultLit): NEW, size independant
3318           replacement for Shift{LR}{12}Left2Result; shift (byte/int/long)
3319           by known count
3320         * rewrote complete shift-by-literal logic, commented unused
3321           functions out
3322         * (genConstPointerGet): get multiple bytes (if result size > 1),
3323           fixed handling of non-immediate addresses
3324         * (genPointerGet): handle CODE pointers like CONST pointers
3325         * (genpic14Code): insert C-SRC lines as Cource-pCodes
3326         * ({aop,op}_isLitLike): NEW, single place to decide whether an
3327           operand is to be treated as a literal or not
3328         * (mov2w,genPcall,genCmpEq),
3329           src/pic/genarith.c: use aop_isLitLike() to decide between
3330           literal/register contents
3331         * (addSign): added missing offset
3332         * src/pic/gen.h: remove newline after FENTRY/FEXIT comments,
3333           only emit comment in debug-mode,
3334           use {aop,op}_isLitLike throughout the file
3335         * src/pic/glue.c: fix initializers for pointers (work in progress)
3336         * src/pic/pcode.c (get_op): honor index on _const symbols
3337         * ({reset,dump}pCodeStatistics): NEW, estimate code size
3338         * (dumppBlock): added pCode size estimation
3339         * src/pic/ralloc.c (deassignLRs,serialRegAssign,packRegisters):
3340           check for IS_SYMOP before OP_SYMBOL'ing
3341         * fixed indentation, compacted switch-statements
3342         * (allocReg): find free register and allocate it instead of
3343           allocating new registers all the time
3344         * (deassignLRs): prevent POINTER_GET's from being assigned the same
3345           registers as its operands (necessary only for multibyte GETs)
3346
3347 2005-07-01 Raphael Neider <rneider AT web.de>
3348
3349         * src/pic/gen.h: added prototypes emitpComment, popGetAddr and
3350           debugging .asm-output macros FENTRY + FEXIT
3351         * src/pic/gen.c (Safe_vsnprintf): NEW, is there a more generic
3352           way... I wonder...
3353         * (emitpComment): NEW, printf to pCode
3354         * (popGet): added assert on too large offsets, fixed PO_IMMEDIATE's
3355           offset handling
3356         * (popGetAddr): NEW, variant of popGet to access an immediates
3357           high(er) bytes instead of the n'th byte of memory they reference,
3358           replaced popGet with popGetAddr where neccessary
3359         * (genDataPointerGet): reactivated and fixed implementation
3360         * (genNearPointerGet): enabled call to genDataPointerGet, fixes array-
3361           accesses
3362         * (genDataPointerSet): fixed multibyte assignments
3363         * (genpic14Code): fixed --i-code-in-asm handling
3364         * src/pic/genarith.c: fixed PO_IMMEDIATE issue using popGetAddr,
3365         * (genPlus): fixed index-out-of-bounds error
3366         * src/pic/pcode.c (get_op): fixed PO_IMMEDIATE's index/offset handling
3367         * src/pic/ralloc.c: added debugging output macro FENTRY2
3368         * (spillThis): fixed indentation, enbraced for-body for clarity
3369         * (rematStr): commented out as now unused
3370         * (regTypeNum): commented out special spill case (overwrites
3371           arbitrary values)
3372         * fixes bugs #1229346, #1216476 (both arrays) and #1115667 (SIGSEGV)
3373
3374 2005-06-30 Maarten Brock <sourceforge.brock AT dse.nl>
3375
3376         * doc/sdccman.lyx: documented sfr16/sfr32,
3377           added example for using storage class with function pointers
3378         * src/mcs51/gen.c (genPlusIncr): optimized small offsets from dptr
3379
3380 2005-06-28 Maarten Brock <sourceforge.brock AT dse.nl>
3381
3382         * device/lib/_gptrget.c: also push/pop _PSBANK, added # to 0x03
3383         * device/lib/_itoa.c,
3384         * device/lib/_ltoa.c: optimized codesize
3385         * src/SDCCsymt.c (checkSClass): added sanity check for sfr at addresses,
3386           but don't know how to suppress the double warning.
3387         * src/mcs51/gen.c (genPlusIncr): fixed bug when incrementing volatile int's
3388         * support/Util/SDCCerr.c,
3389         * support/Util/SDCCerr.h: added warning W_SFR_ABSRANGE for sanity check
3390
3391 2005-06-27 Maarten Brock <sourceforge.brock AT dse.nl>
3392
3393         * as/mcs51/asexpr.c (expr): disabled warning "not in .flat24 mode",
3394           fixed old K&R prototypes
3395         * as/mcs51/asout.c (outrb): always output as if generating 24bit addresses
3396         * device/lib/_gptrget.c,
3397         * device/lib/_gptrgetc.c,
3398         * device/lib/_gptrput.c: changed versions for new memory indicator values,
3399           also new versions for small generic pointers and banked generic pointers
3400         * src/port.h: added const_name
3401         * src/SDCC.lex: added keywords sfr16, __sfr16, sfr32, __sfr32
3402         * src/SDCC.y: added tokens SFR16, SFR32 and their sfr_attributes
3403         * src/SDCCcse.c (findPrevIc): check all associative operators
3404         * src/SDCCglue.c (emitMaps): use CONST_NAME if defined
3405         * src/SDCCicode.h: added macro IS_ASSOCIATIVE
3406         * src/SDCCmem.c: updated comments,
3407           set far-space to 0 for pdata, results in optimized code
3408         * src/SDCCmem.h: added macro CONST_NAME
3409         * src/SDCCsymt.h: renumerated generic pointer types GPTYPE_... thereby
3410           moving the info into the highest bits, see also gptrget/gptrput
3411         * src/src.dsp: added sdcc.ico to project files
3412         * src/avr/gen.c (genCast): fixed bug 0x%d
3413         * src/avr/main.c (avr_port): added "CONST (CODE)" for const_name
3414         * src/ds390/gen.c (aopForRemat, adjustArithmeticResult): disconnected direct
3415           relation between ptr_type and DCL_TYPE,
3416           (genCast): fixed bug 0x%d
3417         * src/ds390/main.c (ds390_port, tininative_port, ds400_port): added "CONST
3418           (CODE)" for const_name
3419         * src/hc08/gen.c (genCast): fixed bug 0x%d
3420         * src/hc08/main.c (_hc08_genAssemblerPreamble): added .area ...const_name,
3421           (hc08_port): added "CONST (CODE)" for const_name
3422         * src/mcs51/gen.c (aopForSym): optimized pushing ACC,
3423           (aopForRemat, adjustArithmeticResult): disconnected direct relation
3424           between ptr_type and DCL_TYPE,
3425           (aopGetUsesAcc, aopGet, aopPut): changed first parameter from asmop* to
3426           operand* and took AOP() inside function so sfr-ness can be checked,
3427           (all over): repaired calls to aopGetUsesAcc, aopGet, aopPut to comply with
3428           new prototype,
3429           (genFunction, genEndFunction): optimized stack setup,
3430           (genMinus): optimized for literals with ending zeroes (in bytes),
3431           (genCast): fixed bug 0x%d
3432         * src/mcs51/main.c (_mcs51_keywords): added sfr16 and sfr32,
3433           (mcs51_port): added "CONST (CODE)" for const_name
3434         * src/mcs51/peeph.def: made rule 226 more generic
3435         * src/pic/main.c (pic_port): added "CONST (CODE)" for const_name
3436         * src/pic16/main.c (pic16_port): added "CONST (CODE)" for const_name
3437         * src/xa51/main.c (xa51_port): added "CONST (CODE)" for const_name
3438         * src/z80/main.c (z80_port): added NULL for const_name,
3439           (gbz80_port): added NULL for const_name
3440         * support/regression/tests/bug663539.c,
3441         * support/regression/tests/sfr16.c: new tests
3442
3443 2005-06-25 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3444
3445         * device/include/mcs51/p89v51rd2.h, device/include/mcs51/at89s53.h: added.
3446
3447 2005-06-24 Raphael Neider <rneider AT web.de>
3448
3449         * device/lib/pic16/libdev/pic18f[68][567]20.c:
3450           corrected typos...
3451         * device/include/pic16/signal.h: added USBIF
3452           and SIG_USB
3453
3454 2005-06-24 Raphael Neider <rneider AT web.de>
3455
3456         * device/lib/pic16/libdev/pic18f2455.c,
3457           device/include/pic16/pic18f2455.h: NEW
3458         * device/include/pic16/pic18fregs.h,
3459           device/lib/pic16/pics.all,
3460           src/pic16/device.c: added 18f2455
3461         * device/lib/pic16/libdev/pic18f[68][567]20.c,
3462           device/include/pic16/{pic18f[68][567].h,usart.h}:
3463           replaced MULTIPLE_USARTS define with more relaible
3464           compatibility sfrs (for USART access)
3465
3466 2005-06-20 Slade Rich <slade_rich AT users.sourceforge.net>
3467
3468         * src/pic/pcode.c : Fixed problem when a string constant contains a "\r\n"
3469           and the output asm file line is printed on two lines.
3470
3471 2005-06-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3472
3473         * sim/ucsim/hc08.src/inst.cc (inst_condbranch): fixed simulation of
3474           BGT, BLE, BHI, and BLS instructions
3475         * src/hc08/gen.c (outAcc, outBitC, outBitNV, genCmpLt, genCmpGt,
3476           genCmpEq): removed
3477         * src/hc08/gen.c (genCmpEQorNE, genCmp, branchopCmp, nameCmp,
3478           negatedCmp, exchangedCmp, genhc08Code): rewrite of comparison handling,
3479           fixes bug #1216342
3480         * src/hc08/peeph.def: added rules 2g - 2l for new conditional branches
3481
3482 2005-06-15 Raphael Neider <rneider AT web.de>
3483
3484         * src/pic16/NOTES: moved Vangelis from active developers to people to contact
3485         * device/include/pic16/{6520.h,8520.h}: fixed configuration bits
3486         * src/pic16/gen.c (): prevent iTemps from being considered to be in CODESPACE,
3487           fixes bug #1221120; for symbols in CODESPACE get number of bytes to read from
3488           OP_SYM_TYPE() instead of OP_SYM_ETYPE()
3489
3490 2005-06-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3491
3492         * device/include/mcs51/reg764.h: Changed PB0 to PBO as requested by
3493           Marcel Telka in bug #1215704
3494
3495 2005-06-02 Slade Rich <slade_rich AT users.sourceforge.net>
3496
3497         * src/pic/pcode.c : Changed pseudo stack size to 15 to allow WSAVE to be
3498           located in shared memory bank.
3499
3500 2005-05-31 Raphael Neider <rneider AT web.de>
3501
3502         * src/pic16/{gen.c,genarith.c}: replaced sign-extension
3503           "CLRF, BTFSC <signbit>, DECF/COMF" with side-effect-free
3504           "CLRF, BTFSC <signbit>, SETF"; fixes "long>>9"
3505
3506 2005-05-27 Maarten Brock <sourceforge.brock AT dse.nl>
3507
3508         * device/lib/_strncpy.c: fixed the fix
3509
3510 2005-05-26 Raphael Neider <rneider AT web.de>
3511
3512         * src/pic16/glue.c (pic16_printIvalChar): fixed _constant_ string
3513           initializers with \0, bug #1208187
3514         * src/pic/glue.c (printIvalChar): fixed (non- and constant) string
3515           intializers with \0, bug #1208187
3516
3517 2005-05-26 Raphael Neider <rneider AT web.de>
3518
3519         * src/pic16/glue.c (pic16_printIvalChar): fixed string
3520           initializers with \0, bug #1208187
3521         * src/pic16/main.c (_process_pragma): added sanity checks
3522           for stack position and size, emit warnings when appropriate
3523
3524 2005-05-26 Maarten Brock <sourceforge.brock AT dse.nl>
3525
3526         * device/lib/_strncpy.c: fixed not filling with \0
3527
3528 2005-05-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3529
3530         * src/SDCCast.c (funcOfType, funcOfTypeVarg, stringToSymbol,
3531           createFunction),
3532         * src/SDCC.y (external_definition, enumerator, parameter_declaration,
3533           compound_statement),
3534         * src/SDCCsymt.h,
3535         * src/SDCCsymt.c (addSymChain, processFuncArgs): fixed bug #1159134
3536
3537 2005-05-24 Raphael Neider <rneider AT web.de>
3538
3539         * src/pic16/glue.c (pic16_printGPointerType): fixed #1207796
3540
3541 2005-05-24 Raphael Neider <rneider AT web.de>
3542
3543         * device/include/pic16/pic18f{442,452,458}.h: fixed wrong
3544           TRISE definitions, closes bug #1162453
3545
3546 2005-05-22 Raphael Neider <rneider AT web.de>
3547
3548         * src/pic16/main.c (_process_pragma): check for missing
3549           arguments to pragmas code and udata
3550         * device/include/pic16/pic18f{2550,4331,4455,4520}.h:
3551           consistency fixes to match other headers (thanks to Jim Paris)
3552         * device/lib/pic16/libio/i2c.ignore: 18f4331 provides no I2C
3553
3554 2005-05-21 Maarten Brock <sourceforge.brock AT dse.nl>
3555
3556         * src/SDCCicode.c (isOperandEqual): fixed missing ;
3557
3558 2005-05-19 Maarten Brock <sourceforge.brock AT dse.nl>
3559
3560         * support/regression/tests/bug1198642.c: new test
3561         * src/SDCCicode.c (isOperandEqual): fixed bug 1198642
3562         * src/SDCCcse.c (findPrevIc): added comment, please have a look
3563         * support/scripts/resource.h,
3564         * support/scripts/resource.rc,
3565         * src/src.dsp: added sdcc.ico to project as icon for sdcc.exe
3566         * support/scripts/sdcc.ico: added 32x32 icon
3567
3568 2005-05-18 Raphael Neider <rneider AT web.de>
3569
3570         * device/lib/pic16/libdev/pic18f*.c,
3571         * device/include/pic16/pic18f*.h: updated "sfr" and "at X"
3572           keywords to "__sfr" and "__at (X)"
3573         * device/include/pic16/pic18fregs.h: added pic18f4520
3574         * src/pic16/pcode.c (pic16_pCode2str): fixed (?) bug
3575           #1203088 (MPLAB compatibility)
3576
3577 2005-05-17 Raphael Neider <rneider AT web.de>
3578
3579         * device/include/pic16/pic18f{2550,4331,4455,4520}.h: NEW
3580         * device/lib/pic16/libdev/pic18f{2550,4331,4455,4520}.c: NEW
3581         * device/lib/pic16/pics.all: added new devices
3582         * src/pic16/device.c: added support for pic18f4520
3583
3584 2005-05-16 Raphael Neider <rneider AT web.de>
3585         * src/pic16/gen.{c,h}: s/mov2f/pic16_mov2f made public
3586         * src/pic16/genarith.c (genAddLit): fixed bug 1202480
3587         * src/pic16/pcode.{c,h} (pic16_newpCodeOpBit_simple): NEW
3588           convenience function for bit access
3589
3590 2005-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
3591
3592         * device/lib/printf_large.c: fixed bug 1193299
3593         * support/regression/tests/bug1057979.c: added test %3.3s
3594
3595 2005-05-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3596
3597         * device/include/mcs51/8051.h,
3598         * device/include/mcs51/8052.h: made parseable with lint
3599         * device/include/mcs51/lint.h: added include file for (sp)lint
3600         * doc/sdccman.lyx: added doc about use of splint (syntax checking tool)
3601         * doc/cdbfileformat.lyx,
3602         * doc/test_suite_spec.lyx: hardcoded date to the date of last text change
3603
3604 2005-05-14 Raphael Neider <rneider AT web.de>
3605
3606         * device/lib/pic16/Makefile.common.in: add --optimize-df to OPT_FLAGS
3607         * device/lib/pic16/libc/stdlib/itoa.c (new)
3608         * device/lib/pic16/libc/stdlib/Makefile: have itoa.c built
3609         * device/lib/pic16/libio/Makefile: exclude subdir according to
3610           ${subdir}.ignore for certain PICs (lacking e.g. i2c)
3611         * device/lib/pic16/libio/i2c.ignore (new): pic18f1220 has no I2C support
3612         * src/pic16/gen.c (genFunction): prevent annoying warning
3613         * src/pic16/pcode.c: renamed stack_t to dynstack_t to prevent
3614           nameclashes on BeOS
3615         * support/cpp2/cppmain.c (cpp_output_string): new
3616         * support/cpp2/cpplib.c (_cpp_do__Pragma): fixed _Pragma(""),
3617           fixes bug 1116802
3618
3619 2005-05-13 Borut Razem <borut.razem AT siol.net>
3620
3621         * src/SDCCmain.c (linkEdit): fixed bug 1195202
3622
3623 2005-05-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3624
3625         * .version: changed to version 2.5.1; back to bleeding edge development
3626
3627 2005-05-11 Borut Razem <borut.razem AT siol.net>
3628
3629         * doc/sdccman.lyx doc/cdbfileformat.lyx doc/test_suite_spec.lyx:
3630           generate PDF version 1.3 documents
3631
3632 2005-05-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3633
3634         * .version: changed to version 2.5.0
3635
3636 2005-04-27 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3637
3638         * doc/sdccman.lyx: updated weblinks, index and smaller updates
3639
3640 2005-04-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3641
3642         * doc/sdccman.lyx: changed version 2.5.0, documented --std-c89,
3643         --std-sdcc89, --std-c99, --std-sdcc99, and the corresponding #pragmas, as
3644         well as many smaller updates.
3645         * .version: changed to version 2.5.0-pre1
3646
3647 2005-04-26 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3648
3649         * src/SDCCmain.c (setIncludePath): added port->target to SDCC_INCLUDE_NAME
3650
3651 2005-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
3652
3653         * support/regression/tests/bug1185672.c: added
3654         * src/mcs51/gen.c (aopGetUsesAcc, genCpl, genAnd, genOr, genXor): fixed
3655           bug 1185672
3656         * src/mcs51/gen.c (genCall): added comments, made it look safer
3657         * src/mcs51/gen.c (genEndFunction): simplified
3658
3659 2005-04-25 Maarten Brock <sourceforge.brock AT dse.nl>
3660
3661         * src/mcs51/ralloc.c (serialRegAssign): fixed bug 1189609
3662
3663 2005-04-14 Borut Razem <borut.razem AT siol.net>
3664
3665         * fixed bug 1045046 - SIGSEGV with really simple code?:
3666           src/pic/pcode.c (pCodeInitRegisters)- pseudo stack size increased to 16
3667           src/pic/ralloc.c (typeRegWithIdx) - error message on pseudo stack overflow
3668
3669 2005-04-14 Borut Razem <borut.razem AT siol.net>
3670
3671         * src/pic16/gen.c (genInline), src/pic16/main.c (_process_pragma),
3672           src/pic16/device.h: temporarily disabled experimental #inline pragma
3673           for 2.5.0 release
3674
3675 2005-04-14 Maarten Brock <sourceforge.brock AT dse.nl>
3676
3677         * device/include/z80/stdio.h,
3678         * device/include/z80/string.h: removed these highly incomplete files so
3679           SDCC can use the default ones in device/include/
3680
3681 2005-04-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3682
3683         * src/mcs51/gen.c (genEndFunction): removed unused variable to fix
3684         gcc warning.
3685         * device/lib/Makefile.in: default PORTINCDIR to the mcs51 subdir to
3686         fix sdcpp warnings.
3687
3688 2005-04-12 Maarten Brock <sourceforge.brock AT dse.nl>
3689
3690         * device/include/malloc.h: removed redundant __reentrant prototypes
3691         * device/lib/_mullong.c: added working xstack variant in asm (C version
3692           doesn't pass regression tests)
3693         * device/lib/bpx.c: used __data and made bpx char for mcs51
3694         * src/SDCCast.c (decorateType): removed unused GPTYPE_IDATA,
3695           (createFunction): fixed bug with xstackPtr
3696         * src/SDCCcse.c: corrected comments
3697         * src/SDCCopt.c (convertToFcall): fixed warning in MSVC,
3698           (killDeadCode, eBBlockFromiCode): removed unused code
3699         * src/SDCCsymt.h: removed unused GPTYPE_GPTR and GPTYPE_IDATA,
3700           corrected comments
3701         * src/mcs51/gen.c (aopForSym, aopPut, toBoolean, unsaveRegisters,
3702           assignResultValue, genCall, genFunction, genEndFunction, genAnd,
3703           genOr, genXor, genAddrOf): fixed several bugs concerning xstack
3704           (genModOneByte): fixed warning in MSVC
3705         * src/mcs51/main.c (): added comments
3706         * src/mcs51/peeph.def: changed 129 to 129.a, added 129.b, 129.c & 129.d
3707
3708 2005-04-12 Maarten Brock <sourceforge.brock AT dse.nl>
3709
3710         * src/SDCCmain.c (linkEdit): oops, changed one line too many
3711
3712 2005-04-11 Maarten Brock <sourceforge.brock AT dse.nl>
3713
3714         * src/SDCCmain.c (linkEdit): fixed bug with finding crt0.o for z80
3715
3716 2005-04-10 Vangelis Rokas <vrokas AT users.sourceforge.net>
3717
3718         * src/pic16/glue.c (printIvalChar): fixed bug when emitting
3719         characters arrays of larger size than the declared one.
3720
3721 2005-04-10 Borut Razem <borut.razem AT siol.net>
3722
3723         * src/pic/gen.c (genInline),
3724           src/pic/pcode.c (newpCodeAsmDir), (pCode2str),
3725           (genericPrint), (unlinkpCodeFromBranch), (compareLabel),
3726           (findNextInstruction), (findPrevInstruction),
3727           (findInstructionUsingLabel),
3728           src/pic/pcode.h: fixed bug #1164907 - Labels not being recognized
3729         * src/pic/pcode.c (findLabel): added missing '\n'
3730         * src/src.dsp: added SDCCdwarf2.c to the project
3731
3732 2005-04-09 Borut Razem <borut.razem AT siol.net>
3733
3734         * support/scripts/sdcc.nsi: added include/hc08/* h to NSIS setup
3735
3736 2005-04-08 Raphael Neider <rneider AT web.de>
3737
3738         * src/pic16/pcode.c: added helpers defmapInsertAfter (insert a new item
3739           into the chain after a given one) and mergeDefmapSymbols (combine
3740           defmap entries for each symbol per pcode)
3741         * (createDefmap): have defmap entries merged in the end
3742         * (defmapReplaceSymRef): split defmap entries covering two accesses to
3743           a symbol before replacing one access type's symbol, merge symbols in
3744           the end (replacement symbol might already have an entry)
3745         * (assignValnums): keep reference to written WREG intact
3746
3747 2005-04-08 Raphael Neider <rneider AT web.de>
3748
3749         * src/pic16/pcode.c (struct defmap_s): named anonymous union (for
3750           Alpha)
3751
3752 2005-04-08 Vangelis Rokas <vrokas AT users.sourceforge.net>
3753
3754         * src/pic16/pcode.c (pic16_get_op2): enlarged size of array b to 128
3755         bytes
3756
3757 2005-04-07 Raphael Neider <rneider AT web.de>
3758
3759         * device/include/pic16/usart.h: added compatibility defines for
3760           devices with more than one USART
3761         * device/include/pic16/pic18f[68][567]20.h: activated above defines
3762
3763 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
3764
3765         * device/lib/Makefile.in: updated for port specific include
3766
3767 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
3768
3769         * support/regression/ports/mcs51/spec.mk: added mcs51 include
3770
3771 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
3772
3773         * device/include/8051.h,
3774         * device/include/8052.h,
3775         * device/include/at89S8252.h,
3776         * device/include/at89c55.h,
3777         * device/include/at89x051.h,
3778         * device/include/at89x51.h,
3779         * device/include/at89x52.h,
3780         * device/include/mcs51reg.h,
3781         * device/include/reg51.h,
3782         * device/include/reg764.h,
3783         * device/include/regc515c.h,
3784         * device/include/sab80515.h: (re)moved these 12 files
3785         * device/include/mcs51/8051.h,
3786         * device/include/mcs51/8052.h,
3787         * device/include/mcs51/at89S8252.h,
3788         * device/include/mcs51/at89c55.h,
3789         * device/include/mcs51/at89x051.h,
3790         * device/include/mcs51/at89x51.h,
3791         * device/include/mcs51/at89x52.h,
3792         * device/include/mcs51/mcs51reg.h,
3793         * device/include/mcs51/reg51.h,
3794         * device/include/mcs51/reg764.h,
3795         * device/include/mcs51/regc515c.h,
3796         * device/include/mcs51/sab80515.h: and added them here
3797
3798 2005-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
3799
3800         * device/include/stdarg.h: changed SDCC specific keywords to double
3801           underlined form.
3802         * device/include/stdint.h: changed intptr_t and uintptr_t for others than
3803           mcs51 and ds390.
3804         * device/include/hc08/mc68hc908gp32.h,
3805         * device/include/hc08/mc68hc908jb8.h,
3806         * device/include/hc08/mc68hc908jkjl.h,
3807         * device/include/hc08/mc68hc908qy.h: fixed comments
3808         * device/include/mcs51/README: updated
3809         * device/include/mcs51/c8051f120.h: added PINRSF
3810         * device/lib/pic16/libc/stdlib/crc16.c: fixed comments
3811         * src/pic16/pcode.c: MSVC6 doesn't accept declaring new variables
3812           amidst code. Also inline is not supported.
3813
3814 2005-04-06 Raphael Neider <rneider AT web.de>
3815
3816         * src/pic16/pcode.c (pic16_pCodeReplace): also update pcflow->end
3817         * (createDefmap): fixed CALLs to depend on FSR1 and RETLW to restore
3818           callers stack/frame pointers
3819
3820 2005-04-06 Vangelis Rokas <vrokas AT users.sourceforge.net>
3821
3822         * device/include/pic16/usart.h: added, missing in previous commit,
3823         * device/include/pic16/adc.h: fixed typo,
3824         * device/lib/pic16/libc/utils/cvtdec.S: added missing in previous
3825         commit,
3826         * device/lib/pic16/libc/stdlib/g_ftoa.S: modified to include
3827         <p18fxxx.inc>
3828         * device/lib/pic16/libc/stdio/streams.c: leave stdin, stdout
3829         uninitialized because a bug appears with gplink
3830         * device/lib/pic16/{some makefiles}: moved $(CSTD) from CFLAGS to
3831         COMPILE_FLAGS and added CPPFLAGS with -nostdinc because sdcpp
3832         complains for unrecognised option
3833
3834 2005-04-05 Raphael Neider <rneider AT web.de>
3835
3836         * src/pic16/gen.c (pic16_popCopyReg): made copying work for extended
3837           structs as well (using memcpy)
3838         * (genFunction): fixed comparison, used pCodeOpLabel to reduce warning
3839           on ISRs (GOTO has no label)
3840         * src/pic16/device.h: added OF_OPTIMIZE_DF
3841         * src/pic16/main.c: added compiler switch --optimize-df to enable the
3842           new data flow analysis/optimization
3843         * src/pic16/pcode.c: added (prototypes for and implementation of)
3844           dataflow analysis functions, fixed pCodeInstructions' inCond and
3845           outCond values, made RCALL a branch instruction
3846         * (pic16_unlinkpCode): keep C line if possible
3847         * (pic16_pCodeUnlink): removed cast on left side of assignment, have
3848           C line moved if possible
3849         * (pic16_getRegFrompCodeOp): NEW, improved version of...
3850         * (pic16_getRegFromInstruction,pic16_getRegFromInstruction2): changed
3851           to use new pic16_getRegFrompCodeOp (works for more SFRs)
3852         * (pic16_BuildFlow): fixed skip instructions with label (did not start
3853           new flow)
3854         * (pic16_getJumptabpCode): NEW, needed in...
3855         * (LinkFlow): fixed handling of jumptables, calls and conditional
3856           branches
3857         * (pic16_InsertCommentAfter): NEW
3858         * (pic16_pCodeReplace): made verbose and flow preserving
3859         * (AnalyzeFlow): added call to data flow analysis
3860         * src/pic16/pcode.h: added defmaps to pCodeFlow struct
3861         * src/pic16/pcodeflow.h: added PCC_STATUS to mean all STATUS bits
3862         * src/pic16/ralloc.c (packRegsForAssign): added return 1 in the end
3863
3864 2005-04-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3865
3866         * src/SDCCast.c (decorateType): fixed bug #1105626
3867
3868 2005-04-02 Vangelis Rokas <vrokas AT users.sourceforge.net>
3869
3870         * device/include/asm/pic16/features.h,
3871         * pic18f*.h headers,
3872         * device/include/pic16/adc.h,
3873         * device/include/pic16/delay.h,
3874         * device/include/pic16/i2c.h,
3875         * device/include/pic16/malloc.h,
3876         * device/include/pic16/stdio.h,
3877         * device/include/pic16/stdlib.h,
3878         * device/include/pic16/string.h,
3879         * device/lib/pic16/libc/stdio/printf_tiny.c,
3880         * device/lib/pic16/libc/stdio/printf_small.c,
3881         * device/lib/pic16/libc/stdio/strmgpsim.c,
3882         * device/lib/pic16/libc/stdio/strmmssp.c,
3883         * device/lib/pic16/libc/stdio/strmusart.c,
3884         * device/lib/pic16/libc/stdio/vfprintf.c,
3885         * device/lib/pic16/libc/stdlib/ltoa.c,
3886         * device/lib/pic16/libc/stdlib/putchar.c,
3887         * device/lib/pic16/libc/stdlib/x_ftoa.c,
3888         * device/lib/pic16/libc/stdlib/memchrpgm.c,
3889         * device/lib/pic16/libc/stdlib/memchrram.c,
3890         * device/lib/pic16/libc/stdlib/memcpypgm2ram.c,
3891         * device/lib/pic16/libc/stdlib/memcpyram2ram.c,
3892         * device/lib/pic16/libio/adc/adcbusy.c,
3893         * device/lib/pic16/libio/adc/adcread.c,
3894         * device/lib/pic16/libio/adc/adcsetch.c,
3895         * device/lib/pic16/libio/usart/ubaud.c,
3896         * device/lib/pic16/libio/usart/ubusy.c,
3897         * device/lib/pic16/libio/usart/udrdy.c,
3898         * device/lib/pic16/libio/usart/uopen.c,
3899         * device/lib/pic16/libio/usart/uputc.c,
3900         * device/lib/pic16/libsdcc/gptr/gptrget1.c,
3901         * device/lib/pic16/libsdcc/gptr/gptrget2.c,
3902         * device/lib/pic16/libsdcc/gptr/gptrget3.c,
3903         * device/lib/pic16/libsdcc/gptr/gptrget4.c,
3904         * device/lib/pic16/libsdcc/gptr/gptrput1.c,
3905         * device/lib/pic16/libsdcc/gptr/gptrput2.c,
3906         * device/lib/pic16/libsdcc/gptr/gptrput3.c,
3907         * device/lib/pic16/libsdcc/gptr/gptrput4.c: modified all SDCC
3908         specific keywords to double underlined form,
3909         * device/lib/pic16/libc/Makefile.rules,
3910         * device/lib/pic16/libsdcc/Makefile.rules,
3911         * device/lib/pic16/libm/Makefile,
3912         * device/lib/pic16/libio/Makefile.rules: added CSTD macro in CFLAGS
3913         to compile with C standard set in Makefile.common
3914         * device/lib/pic16/libc/stdlib/Makefile: added new C sources
3915         rand.c and crc.c in compilation process,
3916         * device/lib/pic16/libsdcc/int/divuint.c,
3917         * device/lib/pic16/libsdcc/long/divulong.c: changed declaration of
3918         `c' from signed to unsigned,
3919         * device/lib/pic16/startup/crt0.c,
3920         * device/lib/pic16/startup/crt0i.c,
3921         * device/lib/pic16/startup/crt0iz.c: adopted to all SDCC specific
3922         keywords to double underlined form, bug fixes in _do_cinit function
3923         which prevented the correct initialization of the .idata segment,
3924         * src/pic16/pcoderegs.c (insideLRBlock): fixed a bug that caused the
3925         core to enter a infinite loop
3926         * device/lib/pic16/libc/stdlib/rand.c, crc.c: new files
3927
3928 2005-04-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3929
3930         * src/SDCCicode.c (getArraySizePtr): fixed bug #1122171
3931
3932 2005-04-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3933
3934         * device/include/Makefile.in: add support for hc08 subdirectory
3935         * device/include/hc08/: new subdirectory
3936         * device/include/hc08/mc68hc908jkjl.h: new header contributed by
3937         Lucas Loizaga, thanks!
3938         * device/include/hc08/mc68hc908qy.h,
3939         * device/include/hc08/mc68hc908gp32.h,
3940         * device/include/hc08/mc68hc908jb8.h: moved hc08 register defs to
3941         their own directory. Changed internal macro names to use the compiler
3942         reserved namespace. Changed SDCC specific keywords to double
3943         underlined form.
3944         * device/include/math.h,
3945         * device/include/malloc.h,
3946         * device/include/stdarg.h,
3947         * device/include/stdbool.h
3948         * device/include/string.h,
3949         * device/include/tinibios.h,
3950         * device/include/ds400rom.h,
3951         * device/include/8051.h,
3952         * device/include/8052.h,
3953         * device/include/80c51xa.h,
3954         * device/include/at89c55.h,
3955         * device/include/at89S8252.h,
3956         * device/include/at89x51.h,
3957         * device/include/at89x52.h,
3958         * device/include/ds80c390.h,
3959         * device/include/reg764.h,
3960         * device/include/regc515c.h,
3961         * device/include/sab80515.h,
3962         * device/include/mcs51/c8051f000.h,
3963         * device/include/mcs51/c8051f018.h,
3964         * device/include/mcs51/c8051f020.h,
3965         * device/include/mcs51/c8051f040.h,
3966         * device/include/mcs51/c8051f060.h,
3967         * device/include/mcs51/c8051f120.h,
3968         * device/include/mcs51/c8051f300.h,
3969         * device/include/mcs51/c8051f310.h,
3970         * device/include/mcs51/c8051f320.h,
3971         * device/include/mcs51/c8051f330.h,
3972         * device/include/mcs51/c8051f350.h,
3973         * device/include/z180.h: Changed SDCC specific keywords to double
3974         underlined form.
3975
3976 2005-03-31 Vangelis Rokas <vrokas AT users.sourceforge.net>
3977
3978         * src/pic16/device.c (Pics16[]): added devices 18F2550, 18F4331,
3979         18F4455,
3980         * (pic16_assignConfigWordValue): disable testing of configuration
3981         register value with config mask,
3982         * src/pic16/gen.c (pic16_testStackOverflow): prefix stack test
3983         function with port->fun_prefix,
3984         * (genFunction): when generating a naked interrupt function never
3985         create an absolute segment placed in interrupt vector address, place
3986         the actual interrupt function at IVA instead, when an interrupt
3987         function is generated with unspecified interrupt then do not create
3988         the absolute section,
3989         * (genGenPointerGet, genGenPointerSet, genPackBits): replace all
3990         code for generating a call to generic pointer get/put function with
3991         a call to function pic16_callGenericPointer(),
3992         * src/pic16/genutils.c (pic16_callGenericPointerRW): NEW, generates
3993         the call to the generic pointer get/put functions with prefixing the
3994         function name with port->fun_prefix,
3995         * src/pic16/glue.c (pic16glue): ifdef-out test of OF_LR_SUPPORT,
3996         * src/pic16/main.c (_process_pragma): prefix function with
3997         port->fun_prefix,
3998         * (_pic16_finaliseOptions): define macro __18Fxxxx macro when
3999         calling assembler, old 18Fxxxx macro is deprecated,
4000         * src/pic16/pcode.c (unlinkpCodeFromBranch): added PC_INLINE and
4001         PC_ASMDIR in while condition,
4002         * (findInstruction): add PC_ASMDIR in while condition,
4003         * (buildCallTree): prefix main with port->fun_prefix,
4004         * (pic16_pCode2str): fixed bug that didn't emit the memory access
4005         identifier for variable with banked access in instructions BTFSS,
4006         BTFSC, BCF, BSF, BTG
4007         * (AnalyzeFlow): moved call to OptimizepCode to pic16_AnalyzeBanking,
4008         * src/pic16/pcodepeep.c (pCodeOpCompare): increase size of b to 1024,
4009         * src/pic16/pcoderegs.c (pic16_pCodeRegoptimizeRegUsage): don't
4010         perform optimization when enviroment variable NO_REG_OPT is set,
4011         * (insideLRBlock): NEW, return 1 if register is inside an
4012         INF_LOCALREGS block,
4013         * (RemoveRegFromLRBlock): remove a register that is completely
4014         eliminated by register optimization, but it is still left in local
4015         register store/restore in/from stack block,
4016         * (Remove2pcodes): after removing register, check to see if it
4017         should be removed from local register store/restore in/from stack
4018         block,
4019         * src/pic16/ralloc.c (pic16_decodeOp): added decode for
4020         DUMMY_READ_VOLATILE,
4021
4022         * device/include/pic16/adc.h: minor prototype modifications and
4023         update,
4024         * device/include/pic16/malloc.h: added GPL notice various
4025         modifications,
4026         * device/include/pic16/stdint.h: NEW, standard header for ints
4027         * device/include/pic16/delay.h: NEW, header for delay functions,
4028         delay10tcy, delay100tcy, delay1ktcy, delay10ktcy, delay100ktcy,
4029         delay1mtcy,
4030         * device/include/pic16/signal.h: NEW, header providing helper macros
4031         for implementing signal handlers,
4032         * device/include/pic16/stdio.h: added prototypes for functions,
4033         printf, vprintf, sprintf, vsprintf, fprintf, vfprintf. Added
4034         prototypes for stdin and stdout, added macro PUTCHAR to
4035         automatically implement putchar function prototype,
4036         * device/include/pic16/usart.h: modified and updated USART library,
4037         * device/lib/pic16/libio/adc/,
4038         * device/lib/pic16/libio/i2c: some modifications to improve library
4039         performance,
4040         * device/lib/pic16/libc/stdio/: modifications for the new printf*
4041         family of functions,
4042         * device/lib/pic16/libc/stdlib/: various modifications in the malloc
4043         family of functions and other sources,
4044         * device/lib/pic16/libio/usart/: NEW, c sources for the usart module
4045         of the PIC18Fxx[28] devices,
4046         * device/lib/pic16/libc/delay/: NEW, c sources for the delay functions,
4047         * device/lib/pic16/libc/utils/: minor modifications in the .S sources,
4048         * device/lib/pic16/startup/{crt0i.c, crt0iz.c}: redesign of the
4049         _do_cinit function, because the previous failed when local variables
4050         where not placed in the same memory bank,
4051         * device/lib/pic16/libsdcc/char/: various modifications to improve
4052         library performance,
4053         * doc/sdccman.lyx: some reorganization of the PIC16 part, added many
4054         information on the new functions of the c library and more...
4055
4056 2005-03-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4057
4058         * src/SDCCBBlock.c (iCodeBreakDown): fixed bug #1170212
4059
4060 2005-03-26 Raphael Neider <rneider AT web.de>
4061
4062         * src/pic16/gen.c (genSkipc): fixed semantics (execute branch
4063           if condition == CARRY)
4064         * (genCmp): adapted to new genSkipc semantics
4065         * src/pic16/genutils.c (pic6_genCmp_special): removed side effect
4066           on rIfx (genCmp was broken)
4067
4068 2005-03-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4069
4070         * src/SDCCmain.c (setDefaultOptions, optionsTable[], parseCmdLine),
4071         * src/z80/main.c (_keywords[]),
4072         * src/SDCCglobal.h (struct options),
4073         * src/SDCC.y,
4074         * src/SDCC.lex (isTargetKeyword, doPragma, pragma_tbl[]): new pragmas
4075         to enable/disable SDCC and C99 extensions/keywords (std_c89, std_sdcc89,
4076         std_c99, std_sdcc99). Also, equivalent command line options (--std-c89,
4077         --std-sdcc89, --std-c99, --std-sdcc99). SDCC specific keywords are
4078         always available in leading double underscore form. The C99 support is
4079         mostly missing, but it's a start.
4080         * support/regression/tests/bug-227710.c: fixed nonconforming use of
4081         reserved identifier "__data".
4082
4083 2005-03-24 Maarten Brock <sourceforge.brock AT dse.nl>
4084
4085         * src/mcs51/peeph.def: fixed bug 1170013
4086
4087 2005-03-22 Maarten Brock <sourceforge.brock AT dse.nl>
4088
4089         * device/include/mcs51reg.h: fixed bug 842007
4090
4091 2005-03-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4092
4093         * src/SDCCcflow.c (dfNumCompare): committed the wrong version of this
4094         last time.
4095
4096 2005-03-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4097
4098         * src/port.h (struct PORT),
4099         * src/avr/ralloc.c (avr_assignRegisters),
4100         * src/avr/main.c,
4101         * src/ds390/ralloc.c (ds390_assignRegisters),
4102         * src/ds390/main.c,
4103         * src/hc08/ralloc.c (hc08_assignRegisters),
4104         * src/hc08/main.c,
4105         * src/mcs51/ralloc.c (mcs51_assignRegisters),
4106         * src/mcs51/main.c,
4107         * src/pic/ralloc.c (pic14_assignRegisters),
4108         * src/pic/main.c,
4109         * src/pic16/ralloc.c (pic16_assignRegisters),
4110         * src/pic16/main.c,
4111         * src/xa51/ralloc.c (xa51_assignRegisters),
4112         * src/xa51/main.c,
4113         * src/z80/ralloc.c (z80_assignRegisters),
4114         * src/z80/ralloc.h,
4115         * src/SDCCopt.c (eBBlockFromiCode, replaceRegEqv, killDeadCode),
4116         * src/SDCCcse.c (ifxOptimize, cseBBlock, cseAllBlocks),
4117         * src/SDCCcse.h,
4118         * src/SDCCdflow.c (computeDataFlow),
4119         * src/SDCCdflow.h,
4120         * src/SDCCloop.c (addDefInExprs, loopInvariants, loopOptimizations),
4121         * src/SDCCloop.h,
4122         * src/SDCCcflow.c (*),
4123         * src/SDCCcflow.h,
4124         * src/SDCCBBlock.c (iCodeBreakDown, dumpEbbsToFileExt, eBBWithEntryLabel),
4125         * src/SDCCBBlock.h (struct ebbIndex): new struct that keeps two copies
4126         of the eBBlock list, sorted by both bbnum and dfnum. (fixes bug with
4127         immedDom() returning wrong block; probably fixes bug #1160833)
4128
4129 2005-03-20 Borut Razem <borut.razem AT siol.net>
4130
4131         * support/scripts/inc2h.pl: WIN32 port
4132
4133 2005-03-19 Maarten Brock <sourceforge.brock AT dse.nl>
4134
4135         * device/lib/makefile.in: added abs.c and labs.c
4136
4137 2005-03-17 Maarten Brock <sourceforge.brock AT dse.nl>
4138
4139         * device/include/stdint.h: added
4140         * device/lib/abs.c: added
4141         * device/lib/labs.c: added
4142         * device/include/stdlib.h: added abs() and labs() prototypes
4143         * device/lib/libsdcc.lib: added abs and labs
4144         * device/include/float.h,
4145         * device/lib/_fsmul.c,
4146         * device/lib/printf_fast.c,
4147         * device/lib/printf_tiny.c: updated comments
4148
4149 2005-03-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4150
4151         * src/SDCCicode.c (geniCodeSwitch, geniCodeJumpTable): fixed
4152         bug #1164313
4153
4154 2005-03-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4155
4156         * src/SDCCcse.c (cseBBlock): retain assignment to self when volatile
4157         * src/SDCCast.c (isLoopCountable): fixed bug #1161985
4158
4159 2005-03-15 Maarten Brock <sourceforge.brock AT dse.nl>
4160
4161         * device/lib/printf_large.c: removed inline assembly for portability and
4162           readability. Use printf_fast if speed or size are more important.
4163         * src/pic16/gen.c: removed conditions around use of DEBUGpc
4164         * src/pic16/genutils.h: added define for DEBUGpc for MSVC
4165
4166 2005-03-15 Vangelis Rokas <vrokas AT users.sourceforge.net>
4167
4168         * src/pic16/genutils.c (pic16_genCmp_special): initialized offs to
4169         prevent compiler warning
4170
4171 2005-03-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
4172
4173         * device/lib/pic16/startup/crt0i.c (_cinit): local variables where
4174         moved to level 0 and declared as static. Also they are explicit
4175         placed in access bank. This was necessery because some times they
4176         might cross memory bank boundaries. crt0iz.c is *NOT* updated!!!
4177         * src/pic16/device.h: added flag OPTIMIZE_CMP to enable some compare
4178         optimizations. Currently only compare to unsigned char is implemented,
4179         * src/pic16/gen.c: added fReturnIdx array,
4180         * (struct resolvedIfx) is moved to gen.h and made public,
4181         * (struct _G): added sregsAlloc and sregsAllocSet fields,
4182         * (aopForSym): added an optimization to directly store in stack of
4183         the operand of a SEND iCode,
4184         * (pic16_aopOp): don't return return registers as strings (AOP_STR)
4185         but as registers instead (AOP_REG) using the fReturnIdx array,
4186         * (pic16_freeAsmop): remove the freed register from the
4187         _G.sregsAlloc field,
4188         * (pic16_aopGet): in case AOP_STR, the compare to 'a' is changed to
4189         a compare of 'WREG',
4190         * (pic16_popGetTempRegCond): changed function prototype, now
4191         function takes also a bitVector argument v which holds the current
4192         set of registers that are allocated for stack access by aopForSym,
4193         registers allocated in aopForSym for accessing stack symbols are not
4194         any more part of the functions usedRegs field,
4195         * (genCall): some times aopOp is called for a stack variable to be
4196         send, aopForSym might perform the push, if this is true make sure
4197         that genCall doesn't push the variable twice by testing _G.resDirect,
4198         * (genFunction): changed testing for unspecified interrupt number
4199         from 256 to INTNO_UNSPEC,
4200         * modified selection scheme of frame pointer generation. Previously
4201         if function did use local registers a frame pointer was generated,
4202         now a frame pointer is generated only if function has arguments
4203         (that need PLUSW2 register access), or has stack arguments, or the
4204         compiler is not instructed to omit the frame pointer,
4205         * (genEndFunction): before restoring local registers that were saved
4206         in the function preamble, also restore the registers that *might*
4207         have been allocated for stack access,
4208         * (genRet): removed some old comments,
4209         * (genCmp, the active (RN's) version): added a call to the
4210         pic16_genCmp_special function to perform the compare with a more
4211         robust and optimized way,
4212         * (genInline): a feature has been added in inline code generation,
4213         which allows a wildcard variable substitution when writing inline
4214         assembly. Code is incomplete and experimental therefore undocumented,
4215         * (genCast): changed order of aopOp for result and right to allow
4216         aopForSym to directly load the result if possible,
4217         * src/pic16/genutils.c (selectCompareOp, pic16_genCmp_special): NEW,
4218         perform an optimized compare on some selected special occasions,
4219         * src/pic16/genutils.h: declaration of resolvedIfx structure from gen.c,
4220         * src/pic16/glue.c (pic16createInterrupVect): make sure we never
4221         generate an IVT any more,
4222         * src/pic16/main.c (pic16_optionsTable): added command line option
4223         --optimize-cmp,
4224         * (_pic16_initPaths): when calling C preprocessor define pic18fXXXX
4225         macro too, when calling assembler define pic18fXXXX *and* __18Fxxxx
4226         macros,
4227         * src/pic16/NOTES: Raphael Neider added in list of active developers
4228         * src/pic16/pcode.c (OPT_TYPE_STR): added strings jumptable_begin and
4229         jumptable_end to prevent bug #,
4230         * (pic16_pciADDWFC, ADDFWC, COMF, CLRF): added some missing flags in
4231         inCond and outCond fields,
4232         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): add a fix for bug #,
4233         * src/pic16/ralloc.c (serialRegAssign): explicit set willCS to 0 to
4234         turn off register spilling,
4235         * (packRegsForOneUse): synced with other ports' versions although it
4236         is not used currently,
4237         * (pic16_packRegisters): added an optimization while reading
4238         structure bitfields, some registers may be saved (malloc code is
4239         decreased by 80 bytes)
4240
4241 2005-03-12 Vangelis Rokas <vrokas AT users.sourceforge.net>
4242
4243         * src/SDCCcse.c (cseBBlock): inside 'do operand lookup' loop test if
4244         left is a bitfield, if yes, then don't optimize assignment. Perhaps
4245         this can be optimized more?
4246
4247 2005-03-10 Raphael Neider <rneider AT web.de>
4248
4249         * src/pic16/gen.c (pic16_loadFSR0, genPackBits, genUnpackBits,
4250           genNearPointerGet): (hopefully) fixed access to bitfields via
4251           pointers (p->bitN = x; and x = p->bitN; failed)
4252
4253 2005-03-09 Paul Stoffregen <paul AT pjrc.com>
4254
4255         * device/lib/printf_fast.c: fix leading zero format, eg "%02d"
4256
4257 2005-03-09 Raphael Neider <rneider AT web.de>
4258
4259         * src/SDCCopt.c (killDeadCode): fixed bug #1156016
4260
4261 2005-03-06 Maarten Brock <sourceforge.brock AT dse.nl>
4262
4263         * src/SDCCicode.h: moved CRITICAL and ENDCRITICAL from SKIP_IC2 to SKIP_IC
4264         * src/mcs51/ralloc.c (willCauseSpill): added check for REG_BIT type,
4265           (regTypeNum): set REG_BIT type if necessary
4266         * src/mcs51/ralloc.h: added define REG_BIT, used to fix bug 1144613
4267         * support/regression/tests/critical.c: check bug 1144613
4268
4269 2005-03-02 Raphael Neider <rneider AT web.de>
4270
4271         * src/pic16/gen.c (genRightShiftLiteral): fixed bug #1154256
4272
4273 2005-02-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4274
4275         * src/avr/ralloc.c (serialRegAssign),
4276         * src/ds390/ralloc.c (serialRegAssign),
4277         * src/hc08/ralloc.c (serialRegAssign),
4278         * src/mcs51/ralloc.c (serialRegAssign),
4279         * src/pic/ralloc.c (serialRegAssign),
4280         * src/pic16/ralloc.c (serialRegAssign),
4281         * src/xa51/ralloc.c (serialRegAssign),
4282         * src/z80/ralloc.c (serialRegAssign): fixed bug #1105154
4283
4284 2005-02-22 Maarten Brock <sourceforge.brock AT dse.nl>
4285
4286         * src/SDCCast.c (decorateType): fixed bug 1124787
4287
4288 2005-02-20 Hubert Sack <sack AT digiplan.de>
4289         committed by Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4290
4291         * src/mcs51/peeph.def: added peepholes 3.h-k and 132.a-f from
4292         patch #1121755
4293
4294 2005-02-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4295
4296         * src/SDCCpeeph.def: new keyword "labelRefCountChange" which allows peepholes
4297         to keep the correct label reference count when adding/removing references
4298         to labels. A peephole file using this is appended to patch #1144962.
4299
4300 2005-02-14 Raphael Neider <rneider AT web.de>
4301
4302         * device/lib/pic16/libc/string/memccpy.c: changed 3rd argument to char
4303         * src/SDCC.lex (process_pragma): fixed to make disable_warning work for PIC16
4304         * src/pic16/gen.c (aopForSym, calls to pic16_aopOp): prevent unneccessary
4305           retrievals of result operand's value on assignment
4306
4307 2005-02-13 Vangelis Rokas <vrokas AT otenet.gr>
4308
4309         * device/include/pic16/string.h: modified prototype for memccpy()
4310         to memccpy(void *, void *, char, size_t)
4311         * src/pic16/gen.c (genFunction, genEndFunction): reenable if-case to
4312         check whether to omit frame pointer or not,
4313         * (genInline): convert all occurences of "\n" to LF in inline
4314         assembler blocks, this helps formatting the inline text,
4315         * (pic16_loadFSR0): modified prototype,
4316         * (genNearPointerGet, genNearPointerSet): reorganization of code,
4317         removed some 8051 legacy code,
4318         * (genPackBits): enabled handling bitfields exceeding one byte in size,
4319         * src/pic16/ralloc.c (pic16_assignRegisters): clear dynrIdx variable
4320         before allocating temporary registers in functions,
4321
4322 2005-02-11 Maarten Brock <sourceforge.brock AT dse.nl>
4323
4324         * support/regression/tests/bitvars.c: corrected the "fix"
4325
4326 2005-02-10 Maarten Brock <sourceforge.brock AT dse.nl>
4327
4328         * support/regression/tests/bitvars.c,
4329         * support/regression/tests/bitwise.c,
4330         * support/regression/tests/rotate.c: "fixed" problems on Alpha
4331
4332 2005-02-10 Raphael Neider <rneider AT web.de>
4333
4334         * src/pic16/pcode.c (assignToSameBank) : fixed cast to pointer of
4335           different size for Alpha
4336         * src/pic16/gen.c (genCmpEq) : improved compare with 0
4337
4338 2005-02-09 Raphael Neider <rneider AT web.de>
4339
4340         * src/SDCC.lex(doPragma) : save and restore warning options as well
4341           (also added new stack plus clone- and copyAndFreeSDCCERRG())
4342         * have #pragma less_pedantic set the errorlevel to WARNING
4343           (fixes #1117001)
4344         * (cloneOptimize) : fixed wrong malloc's size
4345         * support/Util/SDCCerr.[ch] : made SDCCERRG globally accessible to
4346           facilitate correct handling of #pragma (save|restore)
4347
4348 2005-02-09 Maarten Brock <sourceforge.brock AT dse.nl>
4349
4350         * src/mcs51/gen.c: removed non-standard C nameless struct/union
4351
4352 2005-02-04 Slade Rich <slade_rich AT users.sourceforge.net>
4353
4354         * src/pic/gen.c : Fix for bugs #1080519 & #1115662.
4355
4356 2005-02-03 Maarten Brock <sourceforge.brock AT dse.nl>
4357
4358         * device/include/mcs51/c8051f120.h: added declarations for sbit port 2,3&4
4359
4360 2005-02-02 Raphael Neider <rneider AT web.de>
4361
4362         * src/SDCCast.c (processParms): disabled W_NONRENT_ARGS for pic16 port
4363         * src/pic16/gen.c (aopForSym): reenabled special case for function pointers
4364         * (pic16_storeForReturn): fixed to allow returning function pointers
4365         * (genPackBits): improved accessing full bytes, implemented for GPOINTERs
4366         * device/include/pic16/{stddef.h,stdbool.h}: added
4367
4368 2005-02-02 Maarten Brock <sourceforge.brock AT dse.nl>
4369
4370         * device/include/mcs51/c8051f040.h: added define CPT2_PAGE
4371
4372 2005-02-01 Slade Rich <slade_rich AT users.sourceforge.net>
4373
4374         * src/pic16/pic16.dsp : Added file graph.c to make it compile under windows
4375         * src/pic16/Makefile.bcc : Do not use this file but added file graph.c as it
4376          appeared to be required
4377
4378 2005-01-31 Borut Razem <borut.razem AT siol.net>
4379
4380         * support/scripts/sdcc.nsi: added include/asm/ds390, include/asm/mcs51,
4381           include/mcs51 and include/z80 directories to the package
4382
4383 2005-01-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4384
4385         * src/hc08/gen.c (genFunction): fixed bug #1112752
4386
4387 2005-01-30 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4388
4389         * src/mcs51/peeph.def: adapted peephole 258.x to changed gen.c (genAnd)
4390
4391 2005-01-29 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4392
4393         * src/mcs51/gen.c (genAnd): accessing LSB/MSB by rotating acc
4394
4395 2005-01-29 Maarten Brock <sourceforge.brock AT dse.nl>
4396
4397         * device/include/Makefile.in: create/copy mcs51 and z80 include subdirs
4398
4399 2005-01-27 Maarten Brock <sourceforge.brock AT dse.nl>
4400
4401         * device/include/c8051fxxx.h: removed these 6 files
4402         * device/include/mcs51/c8051fxxx.h: added these 11 new files
4403
4404 2005-01-26 Raphael Neider <rneider AT web.de>
4405
4406         * src/pic16/gen.c (genAssign): fixed assignment from longs
4407           in codespace (were cut to three bytes)
4408         * (genDummyRead): implemented (except for CODESPACE...),
4409           fixed bug #1108575
4410         * src/pic16/glue.c (emitStatistics): beautified
4411         * device/lib/pic16/libm/Makefile: added include path
4412
4413 2005-01-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4414
4415         * src/z80/gen.c (aopPut): fixed bug #1103902
4416
4417 2005-01-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4418
4419         * device/lib/expf.c: fixed bug #1095792
4420
4421 2005-01-24 Vangelis Rokas <vrokas AT otenet.gr>
4422
4423         * device/lib/pic16/libm: added Math library sources
4424
4425 2005-01-24 Raphael Neider <rneider AT web.de>
4426
4427         * src/pic16/pcode.h: added second memory operand to pCodeOpReg
4428           to enable upcast to pCodeOpReg2 (there is no type tag to
4429           differenciate the two and pic16_popGet2p cast into PCOR2)
4430         * src/pic16/main.c (_process_pragma): fixed another malloc bug
4431           (sizeof(sectNames) changed to sizeof(sectName))
4432           Both patches fix segfaults under MinGW.
4433
4434 2005-01-23 Raphael Neider <rneider AT web.de>
4435
4436         * src/pic16/{device.c,pcode.c}: s/free/Safe_free/g for
4437           Safe_[mc]?alloc()'ed variables
4438         * src/pic16/gen.c (pic16_aopOp,pic16_popGet): added handling
4439           of (byte sized) temporaries (assign them to WREG for now)
4440         * src/pic16/main.c (_process_pragma): fixed nasty malloc bug
4441           (used sizeof(set *sectSyms) instead of sizeof(struct sectSym)),
4442           this might fix SIGSEGVs on MinGW...
4443         * src/SDCCopt.c (killDeadCode): restored original behaviour
4444           (volatile operands might get thrown away though)
4445
4446 2005-01-23 Vangelis Rokas <vrokas AT otenet.gr>
4447
4448         * src/pic16/gen.c: fixed bug #1106975,
4449         * src/pic16/gen.c: fixed possible bug #1102572, now during TOS
4450         pointer update, INTCON is saved, global interrupts are disabled and
4451         restored after updateing TOS.
4452         * src/SDCC.y, src/SDCC.lex, src/SDCCsymt.c, src/SDCCsymt.h:
4453         * added function attribute 'shadowregs' to take advantage of shadow
4454         registers,
4455         * added function attribute 'wparam' as an alternative to the wparam
4456         pragma,
4457         * support/Utils/SDCCerr.[ch]: added error E_SHADOWREGS_NO_ISR when
4458         user declares a non-ISR function as 'shadowregs',
4459         * doc/sdccman.lyx: updated to reflect recent changes of pic16 port
4460
4461 2005-01-22 Vangelis Rokas <vrokas AT otenet.gr>
4462
4463         * .version: bumped version number to 2.4.8
4464         * device/lib/pic16/pics.all: list of PIC18F devices supported by
4465         pic16 port,
4466         * device/lib/pic16/libio/i2c/: I2C module support library,
4467         * device/include/pic16/i2c.h: I2C support library header,
4468         * device/lib/pic16/libc/stdio/: standard IO support sources,
4469         * (printf_small.c): printf_small() source, supports float print,
4470         * (printf_tiny.c): printf_tiny() source, does not support floats,
4471         * device/lib/pic16/Makefile.common.in: added OPT_FLAGS macro to
4472         enable global optimizations for entire library source, other
4473         Makefiles in the source tree are also modified to reflect this,
4474         * device/lib/pic16/libc/stdlib/putchar.c (putchar): dummy putchar()
4475         function,
4476         * doc/sdccman.lyx: updated to reflect new changes,
4477         * src/pic16/gen.c (aopForSym): don't handle sym->iaccess in
4478         sym->onStack if-case,
4479         * src/pic16/main.c (_pic16_keywords): commented out keywords bit,
4480         sbit, idata, _idata, xdata, _xdata,
4481         * added pragma library, to link an external library, (see doc),
4482         * removed command line options, --pomit-config-words, --pomit-ivt,
4483         --pleave-reset-vector,
4484         * (pic16_finaliseOptions): when define macro SDCC_MODEL_{SMALL/LARGE}
4485         when calling assembler to reflect memory model used, also define
4486         macro STACK_MODEL_{SMALL/LARGE} when compiling and assembling to
4487         reflect stack model used,
4488         * src/pic16/ralloc.c (pic16_allocDirReg): when operand is allocated
4489         on stack return NULL,
4490
4491 2005-01-22 Daniel Winkler <post AT danielwinkler.de>
4492
4493         * src/SDCCopt.c (killDeadCode): do not throw iCodes away if one
4494           of the operands is volatile. Fixes #1020220
4495
4496 2005-01-22 Daniel Winkler <post AT danielwinkler.de>
4497
4498         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): reenabled optimization
4499         * (OptimizeRegUsage): make sure that there is really no other flow where
4500           the first pCode is used
4501
4502 2005-01-22 Raphael Neider <rneider AT web.de>
4503
4504         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): disabled optimization
4505           to fix #1106967 (pCode->seq are not set up correctly)
4506
4507 2005-01-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4508
4509         * src/SDCCglue.c (glue): make sure code area is declared before the
4510         static initialization area.
4511
4512 2005-01-21 Raphael Neider <rneider AT web.de>
4513
4514         * device/lib/Makefile.in: fixed test for pic16 install dir
4515         * device/lib/pic16/*/Makefile*: modified compile flags to enable
4516           optimizations
4517         * doc/sdccman.lyx: updated banksel optimization, removed --flr-support and
4518           added --optimize-goto compiler switch and pragma wparam documentation
4519         * src/pic16/pcode.c (pic16_OptimizeBanksel): removed statistics dump
4520         * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): fixed copying of WREG, PRODL
4521           and PRODH closing bug #1071770 (peephole optimizer)
4522
4523 2005-01-19 Raphael Neider <rneider AT web.de>
4524
4525         * src/SDCCglobl.h: ensure that PATH_MAX >= 2048 to guarantee
4526           cmdLine buffers (used when calling sdcpp...) are large enough
4527           (MAX_PATH=256 truncates arguments leading to system halts when
4528           used in MinGW...)
4529         * src/pic16/gen.c (pic16_sameRegs): relaxed size criterion
4530         * (genUminus): rewritten to for efficiency
4531         * (genNearPointer[GS]et): enforce reloading of FSR0 (was still
4532           used uninitialized in some cases)
4533         * (genCast): upcasting a 16bit int to a 24bit GPOINTER may not
4534           copy the third byte from the int -- now assumes 0x80 (data memory)
4535         * src/pic16/genarith.c (pic16_genPlus): fixed bug when swapping
4536           operands (genAddLit expects the iCode's operands to swapped as
4537           well), fixed leftover bytes (crashed for short left operands)
4538         * (pic16_genMinusDec): performance improvements, removed false
4539           PIC14 emitSKPNCs
4540         * (pic16_genMinus): fixed to cope with differently sized operands
4541         * src/pic16/glue.c (pic16_glue): added new banksel optimization
4542           for --obanksel > 1
4543         * src/pic16/pcode.c: implemented (first phase of) banksel optimization
4544         * src/pic16/graph.[ch]: implementation of directed graphs, used by
4545           new banksel optimization
4546         * src/pic16/pcoderegs.c (pCodeRegMapLiveRangesInFlow): prevented
4547           analysis for temporary registers (segfaults...)
4548         * src/pic16/peeph.def: added rule
4549
4550 2005-01-18 Vangelis Rokas <vrokas AT otenet.gr>
4551
4552         * device/lib/pic16/libc/stdlib/x_ftoa.c: it defines x_ftoa function
4553         which converts a float number to its ASCII representation
4554         * device/lib/pic16/libc/utils/cnvfrac.S,cnvint.S: support
4555         functions to convert the fractional and integer part of a float to ASCII,
4556         * device/lib/pic16/libc/stdlib/(calloc.c,free.c, malloc.c,
4557         realloc.c): added _MALLOC_SPEC to explicit place variables in data
4558         ram
4559         * device/include/asm/pic16/features.h: added _CODE, _DATA, _AUTOMEM,
4560         _STATMEM macros,
4561         * device/include/pic16/adc.h: added GPL info,
4562         * src/pic16/gen.c (genIfxpCOpJump): perform an genIfxJump but using
4563         a pCodeOp as tested operand,
4564         * (genNearPointerGet): optimized bit testing, does not use
4565         intermediate register for bit value, test directly instead with
4566         BTFSS, BTFSC, works only for single bits,
4567         * (genpic16Code): dump the name of the iCode in the asm,
4568         * src/pic16/ralloc.c (decodeOp): removed static declaration and
4569         renamed to pic16_decodeOp,
4570         * (serialRegAssign): do not allocate a temporary register for iCode
4571         sequences that test a single bit for 1/0
4572
4573 2005-01-12 Vangelis Rokas <vrokas AT otenet.gr>
4574
4575         * src/pic16/pcode.[ch]: introduced pic16_stackpnt_*,
4576         pic16_framepnt_*, pic16_stack_*, pic1_frame_* pointer variables to
4577         access stack and frame pointers. They are initially assigned to
4578         point at pic16_pc_fsr1[lh] and pic16_pc_fsr2[lh] variables and other
4579         accessing SFRs. Updated all occurences of modification of stack or
4580         frame pointer in gen.c and pcode.c,
4581         * src/pic16/ralloc.c (serialRegAssign): fixed two bugs with
4582         assigning of a literal value to pointers,
4583         * src/pic16/main.c (pic16_finiliseOptions): set pre-processor define
4584         flag STACK_MODEL_SMALL or STACK_MODEL_LARGE according to the model
4585         selected
4586
4587 2005-01-11 Vangelis Rokas <vrokas AT otenet.gr>
4588
4589         * doc/sdccman.lyx: update documentation about stack pragma, added
4590         some info for stack memory models
4591
4592 2005-01-08 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4593
4594         * src/pic16/gen.c (DEBUGpc): MSVC 6 does not support macro variable arguments
4595
4596 2005-01-08 Raphael Neider <rneider AT web.de>
4597
4598         * src/pic16/device.c (pic16_dump_usection): changed naming scheme for
4599           udata sections to fix bug #1097823
4600
4601 2005-01-05 Raphael Neider <rneider AT web.de>
4602
4603         * src/pic16/gen.c (genGenericShift): added handling of differently
4604           sized left operand and result
4605
4606 2005-01-04 Raphael Neider <rneider AT web.de>
4607
4608         * src/pic16/gen.c (genIfxJump): fixed inverted skips on CARRY
4609         * (genIfx): fixed (?) read from uninitialized SPIL_LOC (now assumes CARRY
4610           to hold the condition bit)
4611         * added new version of genCmp (old code available via #define)
4612         * added new version of genShiftLeft/genShiftRight in a generic
4613           way, now supports shifting by negative values
4614         * (genLeftShiftLiteral, genRightShiftLiteral): use absolute value of
4615           shiftCount (expected by genGenericShift)
4616         * src/pic16/genarith.c (genPlus): added code for adding CARRY+literal
4617         * src/pic16/pcode.c (pic16_OptimizeJumps): removed annoying statistics
4618           dump
4619         * (pic16_newpCodeOpLit): changed to cast to unsigned char (as e.g. -32766
4620           is an invalid literal too...)
4621
4622 2005-01-04 Vangelis Rokas <vrokas AT otenet.gr>
4623
4624         * src/pic16/gen.c (aopForSym, genEndFunction): applied some fixes
4625         from Raphael Neider,
4626         * src/pic16/pcode.c (pic16_newpCodeOpLit): removed casting to char
4627         for 8-bit literals. This fixes some literal operands which are sign
4628         extended to 16-bits ints when instruction needs only 8-bits.
4629
4630 2004-12-31 Paul Stoffregen <paul AT pjrc.com>
4631
4632         * device/lib/logf.c: added mcs51 assembly version
4633         * device/lib/expf.c: added mcs51 assembly version
4634         * device/lib/_logexpf.c: new shared asm code for expf and logf
4635         * device/include/math.h: add defines for assembly math library
4636         * device/lib/Makefile.in: build new _logexpf.c
4637         * device/lib/libfloat.lib: use new _logexpf.c
4638
4639 2004-12-29 Slade Rich <slade_rich AT users.sourceforge.net>
4640
4641         * src/pic/device.c
4642         * src/pic/pcode.c : adjusted internal stack and pre-allocated registers for
4643           device types which have less than 0x7f registers.
4644
4645 2004-12-29 Slade Rich <slade_rich AT users.sourceforge.net>
4646
4647         * src/pic/genarith.c : Fixed problem with subtraction where the result would not be updated when borrowing.
4648
4649 2004-12-28 Paul Stoffregen <paul AT pjrc.com>
4650
4651         * device/lib/printf_fast.c: only build on supported arch.
4652         * device/lib/printf_tiny.c: only build on supported arch.
4653         * device/lib/printf_fast_f.c: only build if asm float lib
4654         * device/lib/_fsget1arg.c: only build if asm float lib
4655         * device/lib/_fsget2args.c: only build if asm float lib
4656         * device/lib/_fsnormalize.c: only build if asm float lib
4657         * device/lib/_fsreturnval.c: only build if asm float lib
4658         * device/lib/_fsrshift.c: only build if asm float lib
4659         * device/lib/_fsswapargs.c: only build if asm float lib
4660         * device/include/stdio.h: don't provide print_fast,
4661           print_fast_f, print_tiny prototypes if --xstack used
4662
4663 2004-12-28 Maarten Brock <sourceforge.brock AT dse.nl>
4664
4665         * device/lib/sincosf.c (sincosf): don't invert bit/bool by ~
4666         * support/regression/ports/mcs51-stack-auto/spec.mk: added new _fs.. files
4667           to the SOURCES
4668
4669 2004-12-28 Paul Stoffregen <paul AT pjrc.com>
4670
4671         * device/lib/printf_fast_f.c: same as printf_fast, but
4672           with floating point enabled
4673         * device/lib/printf_fast.c: minor tweaks
4674         * device/include/stdio.h: add printf_fast_f
4675
4676 2004-12-27 Paul Stoffregen <paul AT pjrc.com>
4677
4678         * src/SDCCmain.c: make --float-reent default for mcs51
4679         * device/lib/_fsadd.c: added mcs51 assembly version
4680         * device/lib/_fssub.c: added mcs51 assembly version
4681         * device/lib/_fsmul.c: added mcs51 assembly version
4682         * device/lib/_fsdiv.c: added mcs51 assembly version
4683         * device/lib/_fseq.c: added mcs51 assembly version
4684         * device/lib/_fsneq.c: added mcs51 assembly version
4685         * device/lib/_fsgt.c: added mcs51 assembly version
4686         * device/lib/_fslt.c: added mcs51 assembly version
4687         * device/lib/_fscmp.c: shared code for fseq,fsgt,fslt,fsneq
4688         * device/lib/Makefile.in: add _fscmp to build
4689         * device/lib/libfloat.lib: add _fscmp to build
4690
4691 2004-12-27 Paul Stoffregen <paul AT pjrc.com>
4692
4693         * device/lib/_fs2slong.c: added mcs51 assembly version
4694         * device/lib/_fs2sint.c: added mcs51 assembly version
4695         * device/lib/_fs2schar.c: added mcs51 assembly version
4696         * device/lib/_fs2ulong.c: added mcs51 assembly version
4697         * device/lib/_fs2uint.c: added mcs51 assembly version
4698         * device/lib/_fs2uchar.c: added mcs51 assembly version
4699         * device/lib/_slong2fs.c: added mcs51 assembly version
4700         * device/lib/_sint2fs.c: added mcs51 assembly version
4701         * device/lib/_schar2fs.c: added mcs51 assembly version
4702         * device/lib/_ulong2fs.c: added mcs51 assembly version
4703         * device/lib/_uint2fs.c: added mcs51 assembly version
4704         * device/lib/_uchar2fs.c: added mcs51 assembly version
4705         * device/include/float.h: added #define to select asm vs c
4706
4707 2004-12-26 Paul Stoffregen <paul AT pjrc.com>
4708
4709         * device/lib/printf_fast.c: improvements to float output
4710         * device/include/float.h: add defines for assembly float library
4711         * device/lib/_fsget1arg.c: receive 1 float arg
4712         * device/lib/_fsget2args.c: receive 2 float args (reentrant)
4713         * device/lib/_fsnormalize.c: normalize a float
4714         * device/lib/_fsreturnval.c: return float, various helper routines
4715         * device/lib/_fsrshift.c: right shift a float's mantissa
4716         * device/lib/_fsswapargs.c: swap 2 floats
4717         * device/lib/Makefile.in: build these 6 new files for mcs51
4718         * device/lib/libfloat.lib: add these 6 files to the library
4719
4720 2004-12-26 Borut Razem <borut.razem AT siol.net>
4721
4722         * sim/ucsim/avr.src/arith_inst.cc: fixed bug #1088372- savr is not
4723           built by gcc 3.4.2
4724
4725 2004-12-25 Paul Stoffregen <paul AT pjrc.com>
4726
4727         * device/lib/printf_tiny.c: printf for mcs51 in only 267 bytes,
4728           and fully reentrant and register bank neutral.
4729         * device/lib/printf_fast.c: added float (not enabled by default),
4730           added compact/slower integer (also not enabled by default),
4731           improved size/speed of fast integer code, other minor changes
4732         * device/include/stdio.h, device/lib/Makefile.in,
4733           device/lib/libsdcc.lib: integrate printf_tiny into mcs51 build
4734
4735 2004-12-24 Maarten Brock <sourceforge.brock AT dse.nl>
4736
4737         * src/pic16/pcode.c: declaring variables other than at the start of a
4738           block is not supported in C by VC6.
4739
4740 2004-12-22 Vangelis Rokas <vrokas AT otenet.gr>
4741
4742         * applied a previous patch from Raphael Neider that wasn't included
4743         in the previous commits, which fixes infinite loops within jumptable
4744         improvements,
4745         * made some fixes that previous patches introduced
4746
4747 2004-12-21 Vangelis Rokas <vrokas AT otenet.gr>
4748
4749         * src/pic16/gen.c (pic16_aopGet): applied fix from Raphael Neider
4750         that fixes an issue with AOP_PCODE asmop's offset,
4751         * (pic16_popCopyReg): update instance field too,
4752         * (mov2w): modified to pic16_mov2w because it conflicts with mov2w
4753         function of pic port,
4754         * (genCmp, genAnd, genAssign),
4755         * src/pic16/genarith.c (genAddLit): some fixes from Raphael Neider,
4756
4757 2004-12-20 Vangelis Rokas <vrokas AT otenet.gr>
4758
4759         * src/SDCCast.c (gatherAutoInit): allow pic16 to emit static
4760         variables initial values to idata section,
4761         * src/SDCCicode.c (geniCodeCall): patch from ### to fix unreferenced
4762         variables in some functions. This utilizes parmBytes field of iCode
4763         structure to hold the offset of the variable in stack. (might be
4764         able to use the stack field too?)
4765         * applied patch from Raphael Neider # ### , # ###
4766         * src/pic16/glue.c (pic16emitRegularMap): fix to print static
4767         variable initial values in idata section,
4768         * src/pic16/ralloc.c (pic16_allocDirReg): don't allocate register
4769         for static variables with initial value
4770         * src/device/lib/pic16/libsdcc/float/ulong2fs.c (__ulong2fs):
4771         applied fix in while loop from Raphael Neider.
4772
4773 2004-12-19 Maarten Brock <sourceforge.brock AT dse.nl>
4774
4775         * src/ds390/gen.c (genCpl): fixed bit=~(char/bit) bugs, added warning
4776         * src/ds390/main.c (_ds390_regparm): don't pass bit params in registers
4777         * src/ds390/ralloc.c (serialRegAssign): spill bits
4778         * src/mcs51/gen.c (genCpl): fixed bit=~(char) bugs, added warning
4779         * support/Util/SDCCerr.c,
4780         * support/Util/SDCCerr.h: added warning W_COMPLEMENT for using bit=~(bit)
4781         * support/regression/tests/bitvars.c: added tests for bitwise complement(~)
4782         * support/regression/tests/bitwise.c: added test for bitwise complement(~)
4783
4784 2004-12-09 Maarten Brock <sourceforge.brock AT dse.nl>
4785
4786         * device/include/sdcc-lib.h: inserted LGPL, added includes
4787           asm/ds390/features.h and asm/mcs51/features.h
4788         * device/include/asm/default/features.h,
4789         * device/include/asm/gbz80/features.h,
4790         * device/include/asm/z80/features.h: added empty _AUTOMEM
4791           and _STATMEM
4792         * device/include/asm/ds390/features.h,
4793         * device/include/asm/mcs51/features.h: added files with defines for
4794           _AUTOMEM and _STATMEM indicating automatic and static storage class
4795         * device/lib/printf_large.c (_print_format): optimized & used _AUTOMEM
4796         * doc/sdccman.lyx: version 2.4.7, updated xstack documentation
4797         * src/SDCCicode.c (geniCodeCast),
4798         * src/SDCCsymt.c (compareType): allow cast of data-ptr to idata-ptr
4799         * src/SDCCloop.c (loopInduction): removed unused variable lr
4800         * src/SDCCopt.c (convilong, convertToFcall): moved "easy special case"
4801           to convertToFcall to include char modulo (RFE 1065037), added check
4802           if left operand is unsigned and use abs of literal value
4803         * src/SDCCpeeph.c (setFromConditionArgs): removed double quotes option
4804           as it doesn't work after conversion from peephole.def to peephole.rul
4805         * src/mcs51/gen.c (toBoolean): added check for size,
4806           (genModOneByte): optimized code for signed char modulo a literal
4807           power of 2 (thanks to Hubert Sack),
4808           (genRRC): removed unnecessary "clr c",
4809           (genRLC): replaced "add a,acc" with cheaper "rlc a"
4810         * src/mcs51/peeph.def: renamed 115 to 115.a, added rule 115.b: another
4811           jump optimization,
4812           swapped rules 256.c and 256.d,
4813           extended 256.d by using new multiple checks (thanks Erik),
4814           added rules 256.e and 256.f,
4815           updated rule 261.a and 261.b to new generated code
4816         * support/regression/tests/muldiv.c: added test div/mod by a power of 2
4817
4818 2004-12-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4819
4820         * src/SDCCloop.c (basicInduction, loopInduction): fixed several
4821           induction related bugs, including first part of bug #1074377
4822
4823 2004-12-05 Vangelis Rokas <vrokas AT otenet.gr>
4824
4825         * applied patch from bug-report #1076292,
4826         * applied patches for genAnd and Goto-optimizations for Raphael
4827         Neider,
4828         * src/SDCCicode.c (printOperand): fixed !REGA source to compile and
4829         dump a less iCode information,
4830         * src/pic16/device.h (pic16_options_t): added field debgen,
4831         * src/pic16/gen.h: added macros DUMP_FUNCTION_ENTRY,
4832         DUMP_FUNCTION_EXIT, FENTRY, FENTRY2,
4833         * src/pic16/gen.c (my_powof2): renamed to pic16_my_powof2 and made
4834         puclic,
4835         * (various functions): added macros FENTRY and FENTRY2 to functions,
4836         to emit function prologue,
4837         * (various functions): fixed indentation,
4838         * (genNearPointerGet): fixed loading of FSR0,
4839         * (genPackBits): applied patch from Raphael Neider to fix updating
4840         of FSR0 and touching only the modified bits,
4841         * src/pic16/genarith.c (various functions): added macros FENTRY to
4842         emit function prologue in comments,
4843         * src/pic16/pcode.h: added functions debugf2, debugf3,
4844         * src/pic16/ralloc.c: partial fix for packForPush caused
4845         segmentation fault,
4846
4847 2004-12-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4848
4849         * src/mcs51/peeph.def: added 261.a,b (16 bit rotate) by Stas Sergeev
4850           <stsp AT users.sourceforge.net> with reversed byte order
4851         * support/regression/tests/rotate.c: added (ds390 skips some tests)
4852
4853 2004-12-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4854
4855         * src/z80/gen.c (genLeftShift, genRightShift): fixed second part of
4856           bug #1074377
4857         * src/hc08/gen.c (genrshFour, shiftRLong, shiftLLong),
4858         * src/mcs51/gen.c (shiftLLong): Fixed some shifting bugs Frieder found
4859
4860 2004-12-02 Slade Rich <slade_rich AT users.sourceforge.net>
4861
4862         * src/pic/pcode.c : fixed a problem where banksel was not being inserted.
4863
4864 2004-12-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4865
4866         * src/SDCCpeeph.c (callFuncByName): support combined peephole rule
4867           conditions,
4868           (setFromConditionArgs): friendly operand parser for peephole rules,
4869           (operandBaseName, operandsNotRelated): new peephole condition
4870           "operandsNotRelated" -- similar to "operandsNotSame", but takes
4871           architecture specific register naming into account, handles n-way
4872           comparisons, and supports quoted literals
4873         * src/mcs51/peeph.def: restored rule 177.d with an extra condition
4874
4875 2004-12-02 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4876
4877         * src/mcs51/peeph.def: fixed bug #1076940
4878
4879 2004-12-02 Slade Rich <slade_rich AT users.sourceforge.net>
4880
4881         * device/include/pic/pic16f877.h : added an include file for the PIC16F877 device.
4882
4883 2004-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4884
4885         Adding support for replacing ljmps with sjmps in jumptables
4886         generated for switch statements. For now you need to set the
4887         environment variable SDCC_SJMP_JUMPTABLE to enable this.
4888         Now 4 algorithms for mcs51 jumptable generation are used:
4889         ljmp or sjmp jumptables for up to 16 cases, stack-pushing target
4890         addresses loaded pc-relative for up to 112 cases and stack-pushing
4891         target addresses loaded with offset from dptr for up to 256 cases.
4892
4893         * src/SDCCpeeph.c: added peephole conditional labelJTInRange
4894         * src/mcs51/main.c: adapted constants for switch table generation
4895         * src/mcs51/peeph.def: added 260.x for replacing ljmp with sjmp
4896
4897 2004-11-26 Maarten Brock <sourceforge.brock AT dse.nl>
4898
4899         * device/lib/printf_large.c (_print_format): fixed bug 1073386
4900         * support/regression/tests/bug1057979.c: added test for bug 1073386
4901
4902 2004-11-25 Vangelis Rokas <vrokas AT otenet.gr>
4903
4904         * src/pic16/pcode.c: fixed bug which may produce error in non-GNU
4905         compilers
4906
4907 2004-11-25 Vangelis Rokas <vrokas AT otenet.gr>
4908
4909         * src/pic16/device.h,
4910         * src/pic16/genarith.c,
4911         * src/pic16/glue.c,
4912         * src/pic16/main.c,
4913         * src/pic16/pcode.c: applied patches #1068154 and #1070213
4914
4915 2004-11-24 Vangelis Rokas <vrokas AT otenet.gr>
4916
4917         Large cummulative patch for pic16 port.
4918         * device/lib/pic16/gstack.h: NEW, user can specify its own handler
4919         to call when a stack overflow occurs,
4920         * (malloc.h): added CVS Id tag,
4921         * (pic18f{242,252,442,452}.h): added T0CONbits structure and
4922         variable,
4923         * added libc directory. The current version of LibC contains string
4924         functions, ctype functions and macros and some functions of the
4925         stdlib set (like malloc/free/atof/atoi etc...). All functions are to
4926         be extensively tested in the future. Standard disclaimer here.
4927         Library is not automatically build yet. But one can build it by
4928         invoking 'make' inside the libc directory.
4929         * added ADC library under libio. Preliminary version yet.
4930
4931         * src/pic16/gen.h: added emitTOGC macro, to toggle Carry flag,
4932         * src/pic16/gen.c (aopForRemat): asmop size is filled by
4933         aopForRemat() now and not by pic16_aopOp(),
4934         * (pic16_popGetTempReg): removed warning messgae when allocating
4935         temporary registers, its a buggy feature and will be removed,
4936         * (pic16_popGet): set register instance field in AOP_CRY,
4937         * (pic16_outBitC): fixed for results in size greater than 1,
4938         * (genUminusFloat): fixed for pic16, ported code from mcs51,
4939         * (pic16_storeForReturn): optimized return of 0,
4940         * (genCmp): experimental code for new genCmp which uses PIC18's
4941         special compare&skip instructions. Initial tests fail some times
4942         with variables grater than 1 byte in size, so new code is disabled,
4943         * (genUnpackBits, genPackBits): more optimizations in reading/writing,
4944         a single bit,
4945         * (genCast): began a fix to optimize the casting of a bit to another
4946         bit, now assigning a bitfield to another bitfield will fail, sorry,
4947         * src/pic16/main.c: disabled the use of lr-support feature,
4948         * src/pic16/pcode.h: renamed PCASMDIR to PCAD,
4949         * added some function prototypes, added function _debugf prototype,
4950         * src/pic16/pcode.c: (pic16_get_op): fixed emitting operands of register
4951         bits with offset (case PO_GPR_BIT),
4952         * (genericPrint): don't emit INFO pcode when --pcode-verbose not in
4953         command line,
4954         * (isBankInstruction): modified to return 0 for no banking instruction,
4955         and 1 for banking instruction,
4956         * (pic16_isPCinFlow): check for PCAD (assembler directives) too,
4957         caused stop processing pCodes after a inline assembly block,
4958         * (pic16_popCopyGPR2Bit): updated to match bitfields with offset,
4959         * src/pic16/pcoderegs.c: fixed a bug with eliminating some temporary
4960         registers when it shouldn't,
4961         * src/pic16/ralloc.c (allocReg): add preliminary support for
4962         supporting a limited set of temporary registers,
4963
4964 2004-11-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4965
4966         * src/hc08/gen.c (genAssign, genPointerGetSetOfs, genDataPointerGet,
4967           genDataPointerSet): ensure assignments always copy in MSB to LSB
4968           order,
4969           (loadRegFromAop): recognize CLRH optimization,
4970           (genFunction): optimize RECEIVE iCodes in reentrant functions
4971
4972 2004-11-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4973
4974         * src/SDCCmain.c (parseCmdLine, optionsTable[]): fixed bug with
4975           --out-fmt-s19 turning into --out-fmt-elf if s19 was already
4976           selected.
4977         * src/SDCCmain.c (linkEdit): don't define SSEG for HC08
4978         * src/hc08/main.c (_hc08_setDefaultOptions): default xdata to be
4979           contiguous with data
4980
4981 2004-11-19 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4982
4983         * device/lib/_gptrget.c (_gptrget),
4984         * device/lib/_gptrgetc.c (_gptrgetc),
4985         * device/lib/_gptrput.c (_gptrput): _naked allows to use ret
4986           instead of sjmp to ret
4987         * src/mcs51/peeph.def: added peepholes 3.d-g and 177.g,h provided
4988           by Hubert Sack <hsack2002 AT arcor.de> in RFE #1067986, thanks
4989
4990 2004-11-18 Maarten Brock <sourceforge.brock AT dse.nl>
4991
4992         * .version: bumped version to 2.4.7
4993         * device/lib/_gptrget.c (_gptrget): is now _naked
4994         * device/lib/_gptrgetc.c (_gptrgetc): is now _naked
4995         * device/lib/_gptrput.c (_gptrput): is now _naked
4996         * src/SDCCast.c (createBlock): removed ridiculous self-assignment,
4997           (createFunction): fixed xstack
4998         * src/SDCCglue.c (emitMaps): set allocation required for bit area
4999         * src/SDCCicode.c (geniCodeCast): don't change SPEC_OCLS for literal
5000           or bit either,
5001           (geniCodeCritical): store original interrupt state in an iTemp bit
5002           var unless stack-auto
5003         * src/SDCCicode.h: added CRITICAL and ENDCRITICAL to SKIP_IC2
5004         * src/SDCCmain.c (setIncludePath): added include/target to search path
5005         * src/SDCCmem.c (allocParms): store bit vars in bit space, not overlay
5006         * src/SDCCsymt.c (checkFunction): don't check regbank for isr's against
5007           prototype,
5008           (processFuncArgs): put bit vars in bit area
5009         * src/mcs51/gen.c (saveRegisters, unsaveRegisters, genXpush, saveRBank,
5010           unsaveRBank): fixed xstack,
5011           (genFunction): bugfix: replaced (global!) reentrant with fReentrant,
5012           (genFunction, genEndFunction): fixed xstack,
5013           (genAssign): optimization don't walk backwards through mem
5014         * src/mcs51/main.c (_mcs51_regparm): don't pass bit params in registers
5015         * src/mcs51/ralloc.c (createStackSpil): spill bits to bit area
5016         * support/regression/Makefile: also make library (for stack-auto) when
5017           making "all" and added "test-mcs51-xstack-auto"
5018         * support/regression/fwk/lib/testfwk.c: added T2_isr prototype for mcs51
5019         * support/regression/ports/mcs51/T2_isr.c: added this file as a stub
5020         * support/regression/ports/mcs51/fwk.lib: added to link T2_isr stub
5021         * support/regression/ports/mcs51/spec.mk: added rules for fwk.lib
5022         * support/regression/ports/mcs51-stack-auto/spec.mk: replaced
5023           make-library by MAKE_LIBRARY
5024         * support/regression/ports/mcs51-xstack-auto/spec.mk: file added to run
5025           regression tests for xstack
5026         * support/regression/tests/bitvars.c: test for bit vars (bug 938782)
5027         * support/regression/tests/critical.c: test for critical on mcs51
5028
5029 2004-11-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5030
5031         * support/regression/ports/ucz80/spec.mk: use include and lib files from
5032           built version of sdcc instead of installed version
5033
5034 2004-11-14 Maarten Brock <sourceforge.brock AT dse.nl>
5035
5036         * src/mcs51/gen.c (toBoolean): fixed bug 1065458
5037         * device/lib/Makefile.in: z80 uses printf_large.c, sprintf.c and
5038           vprintf.c now
5039         * device/lib/printf_large.c (calculate_digit): fixed bug 1057979
5040         * device/lib/z80/Makefile: don't use printf.c as it fails bug 1057979
5041           WARNING: remove device/lib/build/z80/printf.o by hand when
5042           updating from previous build!
5043         * device/lib/z80/printf.c: updated comment
5044         * support/regression/tests/bug1057979.c: test all ports now
5045         * support/regression/tests/bug1065458.c: file added
5046
5047 2004-11-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5048
5049         * src/z80/gen.c (genFunction, genEndFunction): avoided generating
5050           *_start and *_end symbols for static functions
5051
5052 2004-11-11 Maarten Brock <sourceforge.brock AT dse.nl>
5053
5054         * src/SDCCmain.c (linkEdit): don't suppress crt0 if --nostdlib is used
5055           and search crt0.o in all library paths,
5056           (setIncludePath): proper handling of --nostdinc,
5057           (setLibPath): proper handling of --nostdlib
5058         * support/regression/Makefile,
5059         * support/regression/ports/ds390/spec.mk,
5060         * support/regression/ports/gbz80/spec.mk,
5061         * support/regression/ports/hc08/spec.mk,
5062         * support/regression/ports/mcs51/spec.mk,
5063         * support/regression/ports/mcs51-large/spec.mk,
5064         * support/regression/ports/mcs51-stack-auto/spec.mk,
5065         * support/regression/ports/z80/spec.mk: use include and lib files from
5066           built version of sdcc instead of installed version
5067         * doc/sdccman.lyx: fixed typo in --nostdinc
5068
5069 2004-11-10 Slade Rich <slade_rich AT users.sourceforge.net>
5070
5071         * src/pic/pcode.c,
5072         * src/pic/device.c,
5073         * src/pic/ralloc.c,
5074         * src/pic/gen.c : added support to generate code for struct bit fields.
5075
5076 2004-11-06 Maarten Brock <sourceforge.brock AT dse.nl>
5077
5078         * as/xa51/xa_version.h,
5079         * device/include/errno.h,
5080         * device/include/regc515c.h,
5081         * device/lib/_itoa.c,
5082         * device/lib/_ltoa.c,
5083         * device/lib/ser_ir_cts_rts.c,
5084         * sim/ucsim/xa.src/glob.cc,
5085         * sim/ucsim/xa.src/inst_gen.cc,
5086         * sim/ucsim/xa.src/xa_bit.cc,
5087         * sim/ucsim/xa.src/xa_sfr.cc,
5088         * sim/ucsim/z80.src/inst_dd.cc,
5089         * sim/ucsim/z80.src/inst_fdcb.cc,
5090         * support/scripts/keil2sdcc.pl,
5091         * src/pic16/pic16.dsp,
5092         * src/pic16/pic16a.dsp: corrected cvs line endings
5093         * device/lib/printf_large.c: fixed bug 1057979
5094         * src/pic16/gen.c: fixed non-C standard code
5095         * src/SDCCmain.c: made --pack-iram default, added --no-pack-iram
5096         * src/SDCCglobl.h: changed pack_iram to no_pack_iram
5097         * support/regression/ports/mcs51/support.c: reload T1 asap
5098         * doc/sdccman.lyx: updated for options --pack-iram and --no-pack-iram,
5099           pdata use and clear idata startup behaviour
5100         * support/regression/tests/bug1057979.c: added
5101
5102 2004-11-04 Maarten Brock <sourceforge.brock AT dse.nl>
5103
5104         * device/examples/ds390/ow390/ad26.h,
5105         * device/examples/ds390/ow390/cnt1d.h,
5106         * device/examples/ds390/ow390/crcutil.c,
5107         * device/examples/ds390/ow390/ownet.h,
5108         * device/examples/ds390/ow390/owsesu.c,
5109         * device/examples/ds390/ow390/swt12.h,
5110         * device/examples/ds390/ow390/swtoper.c,
5111         * device/examples/ds390/ow390/temp10.h,
5112         * device/examples/ds390/ow390/thermodl.c,
5113         * device/examples/ds390/tinitalk/tinitalk.dsp,
5114         * device/examples/ds390/tinitalk/tinitalk.dsw,
5115         * device/examples/mcs51/clock/hw.h,
5116         * device/examples/mcs51/simple2/go.bat,
5117         * device/examples/serialcomm/windows/serial.h,
5118         * device/examples/xa51/dummy.c,
5119         * device/examples/xa51/hello.c,
5120         * device/include/80c51xa.h,
5121         * device/include/at89x051.h: corrected cvs line endings
5122
5123 2004-11-04 Vangelis Rokas <vrokas AT otenet.gr>
5124
5125         * src/pic16/main.c (options): added command line --gstack, to trace
5126         stack over/under flows,
5127         * added pragma 'wparam' to allow passing first byte of function
5128         parameters via WREG, syntax is #pragma wparam my_function[, func2...]
5129         * src/pic16/gen.c (pic16_testStackOverflow): function which emits a
5130         call to __gstack_test function and sets up the symbol as extern,
5131         * (pic16_pushpCodeOp, pic16_poppCodeOp, pushw, pushaop, popaopidx,
5132         * popaop): added call to pic16_testStackOverflow,
5133         * (wParamCmp, inWparamList): NEW, test existence of a symbol in
5134         wparamList list,
5135         * (genCall, genPcall): now all parameters are passed via stack
5136         except in functions that are pass to wparam pragma in which WREG is
5137         used too,
5138         * (genPcall): REENTRANT flag is checked to see if variable prototype
5139         contains reentrant keyword, don't call a non-reentrant function, via
5140         a reentrant function pointer or vice versa, functions are never
5141         passed via WREG,
5142         * (genJumpTab): applied patch from bug #1057478 by R.Neider and
5143         D.Winkler,
5144         * src/pic16/glue.c (pic16emitRegularMap): fixed bug which caused a
5145         SIGSEGV when accessing a NULL register stucture,
5146         * (pic16_printGPointerType): modified to handle UPPER modifier for
5147         function initializers, changed prototype of function to simpler one,
5148         * (pic16_printIvalFuncPtr): check to see if function is already
5149         added in externs list,
5150         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): fixed bug which
5151         optimized a move from W to SFR with a move to the same register
5152         later after a CALL,
5153         * device/lib/pic16/debug: NEW directory, contains debug features
5154         which are enabled when linking with libdebug.lib, currently command
5155         line option --gstack enables stack pointer tracing for over/under
5156         flow, corresponding sources are in debug/gstack
5157
5158 2004-10-30 Vangelis Rokas <vrokas AT otenet.gr>
5159
5160         * doc/sdccman.lyx: updated SDCC version,
5161         * (PIC16 port): update list of command line options,
5162         * src/pic16/device.h (structure pic16_options_t): added field gstack
5163         to enable stack overflow tracing on push/pops,
5164         * src/pic16/device.c (statistics structure): added statistics
5165         structure,
5166         * (pic16_dump_access, pic16_dump_usection, pic16_dump_gsection,
5167         pic16_dump_int_registers): increase statistics counters for each
5168         * variable which is encountered
5169         * (pic16_dump_usection): emit each .udata variable to its own udata
5170         section,
5171         * src/pic16/gen.c (assignResultValue, genCall, genPcall, genFunction):
5172         when macro USE_WREG_IN_FUNC_PARAMS is set to 0 pass all function
5173         parameters via stack, otherwise use old scheme,
5174         * src/pic16/glue.c (pic16_emitStatistics): dump statistics in
5175         assembler output file,
5176         * src/pic16/main.c: added command line options --gstack to enable
5177         push/pop tracing for stack overflow,
5178         * src/pic16/pcode.c (all pCodeInstruction records for PIC18F
5179         instructions): added size of each instruction,
5180         * (pic16_countInstruction): estimate size of instructions in
5181         the_pFile list, inline assembly blocks are not counted,
5182         * (pic16_FixRegisterBanking): trace previous register usage, when
5183         banksel optimizations is greater than 0, don't emit a redudant
5184         banksel directive,
5185
5186 2004-10-26 Slade Rich <slade_rich AT users.sourceforge.net>
5187
5188         * src/pic/ralloc.c : fixed inefficient code produced when compiling a complimented bit operation.
5189         * src/pic16/ralloc.c : applied same fix for pic16.
5190         * src/pic/gen.c : tidied it up a little.
5191
5192 2004-10-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5193
5194         * src/mcs51/peeph.def: disabled 259.a,b for removing redundant ret,
5195         thanks to Martin Helmling for reporting (mail on sdcc-devel 2004-10-25)
5196
5197 2004-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5198
5199         * src/SDCCast.c (reverseParms): fixed bug #1040577 (part 2)
5200
5201 2004-10-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5202
5203         * device/lib/ser_ir_cts_rts.c: integer promotion caused a call to the
5204         non-reentrant function __modsint in the interrupt function (thus
5205         corrupting math operations during serial I/O)
5206         * device/lib/ser_ir.c: as above, changed buffersize
5207         * src/mcs51/peeph.def: added 259.a,b for removing redundant ret,
5208         256.c,d for zeroing
5209         * doc/Makefile: added option -t for rsync
5210
5211 2004-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5212
5213         * src/SDCCast.h (struct ast),
5214         * src/SDCCast.c (reverseParms, copyAst): fixed bug #1040577 (part 1)
5215
5216 2004-10-20 Borut Razem <borut.razem AT siol.net>
5217
5218         * support/scripts/sdcc.nsi: added include/pic16/*.h to the setup
5219         package
5220
5221 2004-10-20 Vangelis Rokas <vrokas AT otenet.gr>
5222
5223         * device/lib/pic16/libsdcc/Makefile: added lregs directory in
5224         makefile targets,
5225         * device/lib/pic16/libsdcc/lregs/{Makefile,lrst.c,lrrest.c}: NEW
5226         support functions to replace long sequences of MOVFF's from access
5227         bank registers to stack and vice versa,
5228         * src/pic16/device.h: added new field opt_flags, where optimization
5229         flags can be set to enable certain features,
5230         * src/pic16/gen.c (pic16_emitpinfo): NEW to add PC_INFO pCode in
5231         * pBlock, (genFunction, genEndFunction): surroung loop for
5232         saving/loading used registers in stack with PC_INFO pCodes,
5233         INF_LREGS. Code in between can then be optimized by pCode optimizer
5234         to support function calls,
5235         * (genDataPointerSet): fixed bug which loaded float fields in
5236         structures with corrupt data,
5237         * src/pic16/genutils.c (debugf, _debugf): macro/function which emits
5238         in a standard way debug info on stderr. Feature used for developing
5239         and debugging only,
5240         * src/pic16/glue.c (pic16glue): reformatted, deleted some old and
5241         obsolete chunks of code,
5242         * if optimization flag OF_LR_SUPPORT was set, call pic16_OptimizeLocalRegs,
5243         * src/pic16/main.c (_pic16_parseOptions): added handler for --flr-support,
5244         * pic16/src/pcode.c (pic16_newpCodeInfo,
5245         * (pic16_newpCodeOpLocalRegs),
5246         * (pic16_convertLocalRegs2Support): NEW, to support new optimization
5247         feature,
5248         * (pic16_pCodeConstString): printing of the initial value of a
5249         symbol as a comment is inhibited since parsing was already done by
5250         copyStr and output is corrupt,
5251         * (pic16_pCode2str, genericPrint): handle PC_INFO pCode,
5252
5253 2004-10-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5254
5255         * src/mcs51/ralloc.c (packRegisters): fixed bug #1044601
5256
5257 2004-10-19 Maarten Brock <sourceforge.brock AT dse.nl>
5258
5259         * as/mcs51/lkarea.c: removed old K&R style,
5260           (lnksect): changed check on boundary error,
5261           (lnksect2): changed check on boundary error,
5262           (lnksect2): extend XSTK to end of page if size = 1
5263         * as/mcs51/lkmain.c: removed old K&R style,
5264           (Areas51): create l_IRAM symbol
5265         * as/mcs51/lkmem.c (summary2): added report on PSEG and XSTK
5266         * device/lib/Makefile.in: renamed model-mcs51-reentrant to
5267           model-mcs51-stack-auto, added model-mcs51-xstack-auto
5268         * device/lib/_mullong.c: added version to be compiled with xstack
5269         * device/lib/mcs51/crtclear.asm: clear only upto --iram-size
5270         * device/lib/mcs51/crtxclear.asm: clear pdata as well
5271         * device/lib/mcs51/crtxstack.asm: fixed comment
5272         * src/SDCCglue.c: maxInterrupts defaults to 0,
5273           (emitMaps): added pdata,
5274           (createInterruptVect): (re)moved default,
5275           (glue): added pdata,
5276           (glue): moved __start__xstack to XSTK with default size 1
5277         * src/SDCCmain.c (parseCmdLine): automatically set options.intlong_rent
5278           and options.float_rent when options.stackAuto is set,
5279           (linkEdit): only write XDATA_NAME if provided on command line
5280         * src/SDCCmem.h,
5281         * src/SDCCmem.c: added pdata
5282         * src/port.h: added pdata_name to PORT
5283         * src/mcs51/gen.c (toBoolean): fixed for Acc use of aopGet,
5284           (saveRegisters, unsaveRegisters): removed usage of B,
5285           (genMinus): fixed accumulator clash,
5286           (genJumpTab): added comment, this needs another look
5287         * src/mcs51/gen.c: added check for "B in use" paranoia,
5288           added pushB() and popB()
5289         * src/mcs51/peeph.def: restart after 177.c so 177.a can get a second
5290           chance
5291         * src/avr/main.c,
5292         * src/ds390/main.c,
5293         * src/hc08/main.c,
5294         * src/mcs51/main.c,
5295         * src/pic/main.c,
5296         * src/pic16/main.c,
5297         * src/xa51/main.c,
5298         * src/z80/main.c: (reset_regparms) made void parameter explicit and
5299           added PSEG (PAG,XDATA) or NULL to port specifier
5300         * src/ds390/main.c (_ds390_genIVT): moved implemented default in here
5301         * src/mcs51/main.c (_mcs51_genIVT): moved implemented default in here,
5302           (_mcs51_genInitStartup): removed __start__xstack equ,
5303           (mcs51_port): moved xstack from XSEG (XDATA) to XSTK (PAG,XDATA)
5304         * src/pic16/device.c (pic16_dump_usection, pic16_dump_isection),
5305         * src/z80/gen.c (_rleAppend): fixed warnings
5306         * support/regression/tests/zeropad.c: added pdata test
5307         * .version: bumped to 2.4.6
5308
5309 2004-10-17 Borut Razem <borut.razem AT siol.net>
5310
5311         * support/scripts/sdcc.nsi: cross compiling of WIN32 setup.exe on Linux
5312         as a part of nightly build
5313
5314 2004-10-16 Vangelis Rokas <vrokas AT otenet.gr>
5315
5316         * src/pic16/gen.c (struct _G): added field useWreg, is set to 1 when
5317         WREG holds the first byte function parameters,
5318         * (aopForSym): take special case for symbols which are in FARSPACE
5319         but in CODESPACE too,
5320         * (assignResultValue): modified to take into account _G.useWreg,
5321         * (genCall): don't use wreg for parameter passing when function is
5322         declared as reentrant, too, added optimization INCF to stack
5323         pointer when stack parameter count is 1,
5324         * (genFunction, genEndFunction): refurnished and fixed to not using
5325         wreg for passing parameters when function has varargs or is
5326         reentrant, fixed bug with symbol name compare for generating
5327         functions in absolute address,
5328         * (pic16_storeForReturn): refurnished,
5329         * (genCmp): began writing a new version of the function, not ready
5330         yet, therefore it is disabled,
5331         * (genAssign): do not read code memory when assigning a function to
5332         a pointer function,
5333         * src/pic16/glue.c (pic16emitStaticSeg): abSym->name is defined an
5334         array of characters, not pointer,
5335         * (pic16initialComments): in debug mode emit an .ident directive for
5336         the assembler,
5337         * (_process_pragma): emit a new warning type (internal to pic16)
5338         when setting stack to default length, emit a similar warning when
5339         placing a function at absolute address and address is not word aligned
5340         * (_pic16_parseOptions): added 'return TRUE' statement,
5341         * (_pic16_linkEdit): if compiling a source, then add the source's
5342         file object, first in the list of objects to link,
5343
5344 2004-10-13 Slade Rich <slade_rich AT users.sourceforge.net>
5345
5346         * src/pic/pcoderegs.c : increased count on regUsedinRange to prevent unnecessary warning.
5347         * src/pic/main.c : removed VC warning.
5348         * src/pic/gen.c : changed comment.
5349
5350 2004-10-12 Vangelis Rokas <vrokas AT otenet.gr>
5351
5352         * device/lib/pic16/libsdcc/gptr/gptrput[234].c: an external
5353         reference to a deprecated symbol _GPTRREG was causing failure to
5354         link. Thanks G. M. Gallant for the info.
5355
5356 2004-10-12 Slade Rich <slade_rich AT users.sourceforge.net>
5357
5358         * src/pic/pcode.c : Applied a code patch supplied by Paul Ashmore in
5359         comments for Bugs item #954788.
5360
5361 2004-10-10 Vangelis Rokas <vrokas AT otenet.gr>
5362
5363         * src/pic16/device.c (pic16_dump_gsection,
5364         * pic16_groupRegistersInSection): handle symbols declared to be in
5365         access bank differently,
5366         * src/pic16/gen.c (struct _G): added field resDirect,
5367         * (aopForSym): if symbol on stack and iCode is '=' and result exists,
5368         send values read from stack directly to result and don't allocate
5369         temporary values,
5370         * (pic16_sameRegs): fixed bug that allowed MOVFF to move between
5371         same registers,
5372         * (pic16_sameRegsOfs): NEW,
5373         * (freeAsmop): if _G.resDirect is set then do not mark registers as
5374         free because they were not allocated from temporary pool,
5375         * pic16_popRegFromString): workaround to fix a problem with
5376         allocating variables twice or never,
5377         * (genGenPointerGet): using PRODL instead of FSR0H,
5378         * (genGenPointerSet): using POSTDEC1 (that is a stack location)
5379         instead of FSR0H,
5380         * (genAssign): take advantage of the _G.resDirect flag,
5381         * (genCast): around line 11844, use mov2f instead of directly
5382         MOVFF'ing between operands to account for literal values,
5383         * src/pic16/genutils.c: some new debug functions for gpsim have been
5384         added,
5385         * src/pic16/glue.c (pic16_printIvalType): fixed bug that initialized
5386         float with integer part only,
5387         * src/pic16/main.c (_process_pragma): handle pragma udata access to
5388         place variables in access bank
5389         * device/lib/pic16/libsdcc/gptr/gptr*.c: using BRA instead of GOTO,
5390         updated sources to reflect recent changes in gen.c
5391
5392 2004-10-06 Vangelis Rokas <vrokas AT otenet.gr>
5393
5394         * device/lib/pic16/libsdcc/Makefile.rules: fixed bug concerning
5395         sources that searched for headers in installation path, now the
5396         device/include/pic16 is used,
5397         * src/pic16/glue.c (pic16glue),
5398         * src/pic16/pcode.c (pCode2str, genericPrint): don't print .file or
5399         .line directives if not in debug mode, this suppresses assembler's
5400         warnings for ignored directives
5401
5402 2004-10-05 Maarten Brock <sourceforge.brock AT dse.nl>
5403
5404         * src/port.h: made reset_regparms prototype void parameter explicit.
5405         * src/SDCCsymt.c (processFuncArgs): removed argument "func".
5406         * src/mcs51/ralloc.c (packRegisters): new fix for bugs 898889 & 979599.
5407         * doc/sdccman.lyx: documented warning disabling and how to use
5408           printf_large to make it print floats.
5409         * device/include/stdbool.h: NEW
5410         * device/lib/_atof.c,
5411         * device/lib/_divuint.c,
5412         * device/lib/_divulong.c,
5413         * device/lib/expf.c,
5414         * device/lib/printf_large.c,
5415         * device/lib/sincosf.c,
5416         * device/lib/sincoshf.c: used stdbool.h, all compile with stack-auto now
5417         * device/lib/Makefile.in: added target for model-mcs51-reentrant to build
5418           a completely reentrant lib.
5419
5420 2004-10-05 Vangelis Rokas <vrokas AT otenet.gr>
5421
5422         * device/lib/pic16/libsdcc/gptr/gptr*.c: added return statements
5423         * device/include/pic16/stdio.h: fixed bug with colon
5424
5425 2004-10-03 Vangelis Rokas <vrokas AT otenet.gr>
5426
5427         * device/include/pic16/stdio.h,
5428         * device/include/pic16/stdlib.h,
5429         * device/include/pic16/math.h: NEW
5430         * device/lib/pic16/libsdcc/gptr/*.c (gptrget*, gptrput*): functions
5431         declared as _naked to reduce overhead
5432         * device/lib/Makefile.in (target port-specific-objects-pic16):
5433         changed * to *.* so to ignore the CVS directory,
5434         * src/pic16/gen.c (pic16_freeAsmop): added code to store result of
5435         stacked variables back in stack,
5436         * (genEndFunction): fixed bug reported by G.M. Gallant with stack
5437         corruption
5438
5439 2004-10-01 Vangelis Rokas <vrokas AT otenet.gr>
5440
5441         * .version: bumped version number to 2.4.5
5442         * support/Util/SDCCerr.h: added warning W_POSSBUG2.
5443         * support/Util/SDCCerr.c (messages structure): added entry for
5444         W_POSSBUG2
5445
5446         Large cumulative patch for pic16 port and libraries.
5447         * device/include/pic16/sdcc-lib.h,
5448         * device/include/pic16/stdarg.h,
5449         * device/include/asm/pic16/features.h,
5450         * device/include/lib/pic16/libsdcc/gptr/{*.c, Makefile}: NEW,
5451         * device/include/pic16/float.h: changes reentrant keyword with
5452         _FS_REENTRANT, added prototype for __fsneq, included sdcc-lib.h
5453         * device/lib/pic16/libsdcc/Makefile: added target directory gptr,
5454         updated target build-libraries to include objects from gptr,
5455         * device/lib/pic16/libsdcc/{char,int,long}/*.c: added macro
5456         _IL_REENTRANT to all function headings, included sdcc-lib.h header,
5457         * device/lib/pic16/libsdcc/float/*.c: added macro _FS_REENTRANT to
5458         all function headings,
5459         * src/SDCCmain.c: added global parameter userIncDirsSet,
5460         * (parseCmdLine): when option -I is encountered add directory to
5461         userIncDirsSet too,
5462         * src/version.awk: added space between control and long,
5463         * src/pic16/NOTES: added some notes for the port,
5464         * src/pic16/gen.c: added prototype for mov2fp function,
5465         * (fReturnpic16[]): properly named return value registers,
5466         * (_G structure): added fields stackRegSet, fregsUsed, stack_lat,
5467         * (aopForSym): added code to handle symbols with onStack flag set,
5468         symbols onStack are allocated PTRSIZE bytes,
5469         * (aopFreeAsmop): handles special case where asmops are stack objects,
5470         * (aopGet, pic16_popGet): adde cod to handle new asmop AOP_STA,
5471         * (pic16_popGetTempReg, pic16_popGetTempRegCond, pic16_popReleaseTempReg):
5472         added argument lock to trace flaws in allocating temporary registers
5473         when developing port,
5474         * (pic16_popGetLit, pic16_popGetLit2): changed lit from unsigned to signed
5475         * (pic16_popRegFromString): reenabled allocating a direct register
5476         from string,
5477         * (assignResultValue): various beautifications,
5478         * fixed bug #1037717 (patch from R. Neider & D. Wrinkler) with mistaken
5479         referenced function argument,
5480         * (genIpush): reenabled to allow stacked arguments, handles only
5481         ic->parmPush iCodes,
5482         * (genCall, genPcall): major changes to allow for variable argument
5483         functions, fixed a bug with falsely restoring stack pointer after
5484         returning from call,
5485         * (genFunction): pending code for critical function,
5486         * (shiftR1Left2ResultSigned, shiftR1Left2Result, shiftL2Left2Result,
5487         * (shiftR2Left2Result, shiftLLong) applied patch #1032155 from R.Neider,
5488         * (genNearPointerGet): fixed bug with indirect reading, was always
5489         reading from INDF0
5490         * (genGenPointerGet, genGenPointerSet): rewrote to support generic
5491         pointers,
5492         * (genAddrOf): rewrote code to take address of a stacked function parameter
5493         * (genCast): fixed casting to generic pointer type,
5494         * src/pic16/gen.h: added AOP_STA,
5495         * (struct asmop): added field stk,
5496         * src/pic16/genarith.c (pic16_AopType): handle AOP_STA,
5497         * (pic16_genPlusIncr): changed emitSKPNZ to emitSKPNZ,
5498         * (pic16_genAddLit, pic16_genPlus): applied patch #1034042 by tecodev,
5499         * (pic16_genMinus): fixed bug #1035119 with patch submitted by tecodev,
5500         * src/pic16/genutils.c (pic16_genNot): removed symbol *tlbl,
5501         * src/pic16/glue.c (pic16_printGPPointerType): fixed to support new
5502         generic pointers,
5503         * src/pic16/main.c (_pic16_initPaths): ignores default SDCC include
5504         and library paths,
5505         * (pic16_port structure): generic pointer size is set to 3,
5506         * src/pic16/pcode.c (pic16_newpCodeOpLit): correctly print literal integer,
5507         * (insertBankSwitch): cast to (char *) to prevent 64bit CPUs'
5508         compiler warning,
5509         * src/pic16/ralloc.c (allocReg): prevent allocating register when
5510         operand is an iTemp,
5511
5512 2004-09-24 Martin Helmling <mh AT octo-soft.de>
5513
5514         * debugger/mcs51/cmd.c: set PC if a symbol at pc reg is set
5515         * debugger/mcs51/simi.c: addapt new syntax of s51
5516
5517 2004-09-23 Vangelis Rokas <vrokas AT otenet.gr>
5518
5519         * src/pic16/genutils.c (pic16_genNot): fixed bug #1032265,
5520         * src/pic16/pcode.c: commented out some calls to free() in order to
5521         fix bug #989576,
5522
5523 2004-09-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5524
5525         * src/SDCCicode.h,
5526         * src/SDCCicode.c (isiCodeInFunctionCall),
5527         * src/avr/ralloc.c (selectSpil),
5528         * src/pic/ralloc.c (selectSpil),
5529         * src/pic16/ralloc.c (selectSpil),
5530         * src/ds390/ralloc.c (selectSpil),
5531         * src/hc08/ralloc.c (selectSpil),
5532         * src/xa51/ralloc.c (selectSpil),
5533         * src/mcs51/ralloc.c (selectSpil): Don't use remainSpil to spill to the
5534         stack in the middle of a function call sequence (fixes bug #1020268)
5535         * src/SDCCicode.c (geniCodeJumpTable): fixed error in computing the
5536         costs associated with the minimum switch case.
5537
5538 2004-09-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5539
5540         * src/SDCC.lex: fixed bug #1030549
5541
5542 2004-09-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5543
5544         * src/SDCCcse.h (struct cseDef),
5545         * src/SDCCcse.c (cseBBlock, newCseDef, ifFromAddrTaken): purge CSEs
5546         over a function call if the CSE is derived from a symbol whose
5547         address has been taken (fixes bug #1029883)
5548         * support/regression/tests/bug-1029883: a new regression test for
5549         this bug
5550
5551 2004-09-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5552
5553         * src/hc08/gen.c (emitinline): fixed bug #1029778
5554         * src/SDCC.y (assignment_expr): fixed the grammer so that assignment
5555         to a cast object is no longer a syntax error ("fixes" bug #1030006,
5556         and starts toward RFE #905167)
5557
5558 2004-09-17 Vangelis Rokas <vrokas AT otenet.gr>
5559
5560         * src/pic16/gen.c (mov2f): New function to move an operand to
5561         another without considering if it is a literal or a register,
5562         * (pic16_sameRegs): don't check if they are both AOP_REG,
5563         * (AccRsh): removed andmask=0 lines,
5564         * (genLeftShift): duplicated to be improved in future versions,
5565         * src/pic16/main.c (_process_pragma): emit stack default size in hex,
5566         * src/pic16/pcode.c: added POC_INFSNZW, updated inverted_op fields
5567         in POC_INCFSZ, POC_INCFSZW, POC_INFSNZ,
5568         * (pic16initMnemonics): added initialization for POC_INFSNZW,
5569         * (insertBankSwitch): fixed inserting banksel directives algorithm
5570         for instructions that follow a skip instruction, this fixes a report
5571         for broken subtraction code generation,
5572         * src/pic16/ralloc.c (deassignLRs): do not free register if current
5573         iCode is a left op, just in case result and right share the same
5574         registers
5575
5576 2004-09-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5577
5578         * src/hc08/main.c,
5579         * src/hc08/gen.c (genJumpTable): more efficient jump table, supports
5580         preservation of HX
5581         * src/hc08/gen.c (pullRegs): fixed order of HX & XA pairs
5582         * src/mcs51/ralloc.c (packRegisters): removed the patch applied
5583         on 2004-09-12; it was buggy
5584
5585 2004-09-15 Bernhard Held <bernhard AT bernhardheld.de>
5586
5587         * src/SDCCsymt.h: removed RESULT_CHECK
5588         * src/SDCCast.c,
5589         * src/SDCCglue.c,
5590         * src/SDCCval.c,
5591         * src/pic/glue.c,
5592         * src/pic16/glue.c: replaced RESULT_CHECK with RESULT_TYPE_NONE
5593
5594 2004-09-15 Vangelis Rokas <vrokas AT otenet.gr>
5595
5596         * src/SDCCicode.c (piCode): applied patch from Raphael Neider,
5597         * src/pic16/device.c (pic16_assignConfigWordValues): wrong
5598         configuration values no more rejected by compiler, they are assigned
5599         to configuration registers with a warning message instead,
5600         * src/pic16/glue.c (pic16_emitConfigRegs): added +1 at top-limit of
5601         the for-loop so last conf register is emitted too,
5602         * (_pic16_initPaths): link library libsdcc.lib by default,
5603         * (_hasNativeMulFor): modified test for multiplication according to
5604         Raphael Neider's remarks. Integer multiplication is also done with
5605         support functions,
5606         * device/include/pic16/pic18fregs.h: corrected type error in while
5607         testing and including 18f6720 header file
5608
5609 2004-09-14 Vangelis Rokas <vrokas AT otenet.gr>
5610
5611         * src/pic16/device.h (pic16_options): removed field use_crt,
5612         * src/pic16/gen.c (genUnpackBits): added call to pic16_loadFSR0
5613         until an optimization to handle single bits is added,
5614         * (pic16_loadFSR0): moved before genUnpackBits,
5615         * (genAnd): some white lines removed,
5616         * src/pic16/main.c (_pic16_finaliseOptions): set omit_ivt and clear
5617         leave_reset flags in pic16_options when using crt modules,
5618
5619 2004-09-12 Maarten Brock <sourceforge.brock AT dse.nl>
5620
5621         * src/mcs51/ralloc.c (packRegisters): applied fix by Bernhard Held
5622           for bugs 898889 & 979599. Also used some safer print instructions.
5623
5624 2004-09-12 Vangelis Rokas <vrokas AT otenet.gr>
5625
5626         * src/pic16/device.h (pic16_options_t): added field use_crt,
5627         crt_name, no_crt,
5628         * src/pic16/genarith.c (pic16_genPlus): added an assert(0) line to
5629         catch a probable future bug,
5630         * src/pic16/gen.c: aopIdx function commented out,
5631         * (genAssign): commented out old code which used aopIdx,
5632         * src/pic16/glue.c (pic16glue): removed some legacy fragments of
5633         code, added if conditionals to take into account the --use-crt
5634         command line options,
5635         * src/pic16/main.c (pic16_optionsTable): added new command line
5636         options, --use-crt= and --no-crt,
5637         * (_pic16_linkEdit): now the proper crt object is added in the
5638         linker command line except than when --no-crt is specified,
5639         * src/pic16/pcode.c,
5640         * src/pic16/pcode.h: added some structures and functions for a new
5641         optimization scheme to compansate for instruction overhead between
5642         same iCodes, this scheme is currently under development and is not
5643         working in any way,
5644         * src/pic16/gen.c (genAnd): added patch provided by Aaron Collwell
5645         to && operator,
5646         * device/lib/pic16/startup/crt0i.c,
5647         * device/lib/pic16/startup/crt0iz.c: added global char variable
5648         __uflags to force the generation of an idata section
5649
5650 2004-09-12 Bernhard Held <bernhard AT bernhardheld.de>
5651
5652         * doc/Makefile,
5653         * doc/clean.mk: added support for easy creation of sdcc-doc.tar.bz2
5654         * doc/sdccman.lyx: updated sdcc version to 2.4.4
5655
5656 2004-09-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5657
5658         * doc/sdccman.lyx: fixed a problem with my new index entries (thanks
5659         Frieder) and clarified the default code optimization mode
5660
5661 2004-09-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5662
5663         * src/SDCC.lex (doPragma, process_pragma),
5664         * src/SDCCglobl.h (struct optimize): added pragmas "opt_code_speed",
5665         "opt_code_size", and "opt_code_balanced"
5666         * src/SDCCmain.c (optionsTable[], printOptions, scanOptionsTable):
5667         regrouped options by category, added support for category headers
5668         * src/SDCCmain.c (parseCmdLine): added options "--opt-code-speed"
5669         and "--opt-code-size"
5670         * doc/sdccman.lyx: documented these new options and pragmas
5671         * src/hc08/gen.c (AccLsh, AccRsh): take speed/size optimization
5672         preference into account
5673
5674 2004-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
5675
5676         * src/SDCCicode.c (geniCodePostInc, geniCodePreInc, geniCodePostDec,
5677           geniCodePreDec): Fixed bug 904237 by generating a warning
5678         * src/SDCCerr.h,
5679         * src/SDCCerr.c: added warning W_SIZEOF_VOID
5680
5681 2004-09-09 Slade Rich <slade_rich AT users.sourceforge.net>
5682
5683         * src/pic/device.c : When no max ram set validate full memory range.
5684         * src/pic/pcode.c,
5685         * src/pic/pcodepeep.c : Copy C code comments to optimised replacement code.
5686
5687 2004-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
5688
5689         * device/lib/_gptrget.c,
5690         * device/lib/_gptrput.c: updated comment
5691         * device/lib/calloc.c,
5692         * device/lib/free.c,
5693         * device/lib/malloc.c,
5694         * device/lib/realloc.c: added LGPL, made them reentrant-safe
5695         * src/SDCCcse.c (cseBBlock),
5696         * src/SDCCicode.c (printOperand, geniCodeArray),
5697         * src/SDCCicode.h (struct operand): fixed bug 868103
5698         * support/regression/tests/bug-868103.c: added
5699         * src/SDCCast.c (searchLitOp),
5700         * src/SDCCcse.h (struct cseDef),
5701         * src/SDCCglue.c (printIvalArray, spacesToUnderscores),
5702         * src/SDCCicode.h (struct operand),
5703         * src/SDCCsymt.h (struct sym_link),
5704         * src/avr/gen.c (hasInc),
5705         * src/ds390/gen.c (hasInc),
5706         * src/hc08/gen.c (genPlusIncr, hasInc),
5707         * src/mcs51/gen.c (hasInc),
5708         * src/pic16/glue.c (pic16_printIvalChar),
5709         * src/pic16/ralloc.c (regWithIdx),
5710         * src/xa51/gen.c (hasInc) : removed warnings
5711         * src/SDCCast.c (createBlock): added comment ???
5712         * src/hc08/ralloc.c: updated comments
5713
5714 2004-09-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5715
5716         * doc/sdccman.lyx: updated section on switch statements, added
5717         section about semaphore locking
5718         * doc/Makefile: added option -info for latex2html
5719         * device/lib/_gptrget.c,
5720         * device/lib/_gptrput.c: __XPAGE instead of P2 in outcommented code
5721
5722 2004-09-06 Slade Rich <slade_rich AT users.sourceforge.net>
5723
5724         * src/pic/device.h,
5725         * src/pic/device.c,
5726         * src/pic/port.c : Changed PIC14 code to not set bit RP1 when
5727          maxram is less than 0x100.
5728
5729 2004-09-06 Slade Rich <slade_rich AT users.sourceforge.net>
5730
5731         * Bug fixes for PIC14 - signed RSHIFT problem. Patch supplied by Allen(agschrum).
5732
5733 2004-09-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5734
5735         * src/port.h,
5736         * src/mcs51/main.c,
5737         * src/ds390/main.c,
5738         * src/z80/main.c,
5739         * src/hc08/main.c,
5740         * src/pic/main.c,
5741         * src/pic16/main.c,
5742         * src/avr/main.c,
5743         * src/xa51/main.c
5744         * src/SDCCicode.c (geniCodeJumpTable): Better logic to determine if a
5745         a jump table is the best form for a switch statement, including
5746         automatic insertion of missing cases to make the case range
5747         continuous. Developed in collaboration with Frieder Ferlemann.
5748
5749 2004-09-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5750
5751         * src/hc08/ralloc.c (canDefAccResult): multi-byte shift is unsafe for
5752         accumulator result if it needs sign extension
5753
5754 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
5755
5756         * src/hc08/ralloc.c (canUseAccOperand): fixed comparison bug
5757
5758 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
5759
5760         * device/lib/gbz80/printf.c,
5761         * device/lib/z80/printf.c: removed define for NULL
5762
5763 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
5764
5765         * as/xa51/xa_link.c,
5766         * device/examples/ds390/ow390/ad26.c,
5767         * device/examples/ds390/ow390/cnt1d.c,
5768         * device/examples/ds390/ow390/counter.c,
5769         * device/examples/ds390/ow390/ds2480.h,
5770         * device/examples/ds390/ow390/ds2480ut.c,
5771         * device/examples/ds390/ow390/findtype.c,
5772         * device/examples/ds390/ow390/gethumd.c,
5773         * device/examples/ds390/ow390/owllu.c,
5774         * device/examples/ds390/ow390/ownetu.c,
5775         * device/examples/ds390/ow390/swt12.c,
5776         * device/examples/ds390/ow390/swtloop.c,
5777         * device/examples/ds390/ow390/temp.c,
5778         * device/examples/ds390/ow390/temp10.c,
5779         * device/examples/ds390/ow390/thermo21.c,
5780         * device/examples/ds390/ow390/tinilnk.c,
5781         * device/examples/ds390/ow390/tstfind.c,
5782         * device/examples/serialcomm/windows/serial.cpp,
5783         * device/examples/serialcomm/windows/test_serialcomm.cpp,
5784         * device/include/reg51.h: fixed line endings for cvs
5785
5786 2004-09-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5787
5788         * src/hc08/ralloc.c (canDefAccResult, canUseAccOperand,
5789         packRegsForAccUse, packRegisters): new accumulator register
5790         packing algorithm
5791         * support/regression/ports/hc08/support.c (_putchar): suppress
5792         warning of unused variable
5793         * src/SDCCicode.c: added SWAP entry to codeTable
5794
5795 2004-09-01 Maarten Brock <sourceforge.brock AT dse.nl>
5796
5797         * device/lib/sprintf.c: forgot to add this file before previous commit
5798
5799 2004-09-01 Vangelis Rokas <vrokas AT otenet.gr>
5800
5801         * src/pic16/gen.c (genPackBits): added operand right in function
5802         parameters, load result directly if p_type is POINTER (that is
5803         called by genNearPointerSet)
5804         * (genUnPackBits): added operand left in function parameters,
5805         * (genNearPointerGet, genNearPointerSet): prevent the loading of
5806         FSR0 if accessing bitfields,
5807
5808 2004-08-31 Maarten Brock <sourceforge.brock AT dse.nl>
5809
5810         * device/include/stdio.h: added NULL, size_t, typedef pfn_outputchar,
5811           _print_format; updated printf, sprintf, vsprintf
5812         * device/include/asm/default/features.h: corrected comment/define
5813         * device/lib/Makefile.in: added sprintf.c
5814         * device/lib/libsdcc.lib: added sprintf module
5815         * device/lib/printf_large.c,
5816         * device/lib/vprintf.c,
5817         * device/lib/sprintf.c: totally refactored printf_large and vprintf
5818           into these 3 files
5819         * support/regression/Makefile: changed ALL_PORTS into a usefull default
5820         * support/regression/ports/mcs51-stack-auto/spec.mk: added sprintf
5821         * support/regression/tests/bug-927659.c: removed dummy putchar, enabled
5822           hc08 test
5823         * support/regression/tests/zeropad.c: define idata as data for hc08
5824
5825 2004-08-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5826
5827         * src/SDCCpeeph.c (labelIsReturnOnly): support hc08 rts opcode also
5828         * src/SDCCpeeph.c (buildLabelRefCountHash): assume function entry point
5829         labels are referenced at least once (even if a reference is not found)
5830         * src/hc08/gen.c (emitcode): set isComment flag for comments
5831         * src/hc08/peeph.def: added rules 5a..5f (optimize redundant immediate
5832         loads), rules 6a..6b (optimize jumps to return)
5833
5834 2004-08-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5835
5836         * device/lib/acosf.c (acosf),
5837         * device/lib/asinf.c (asinf),
5838         * device/lib/atanf.c (atanf),
5839         * device/lib/ceilf.c (ceilf),
5840         * device/lib/cosf.c (cosf),
5841         * device/lib/coshf.c (coshf),
5842         * device/lib/cotf.c (cotf),
5843         * device/lib/fabsf.c (fabsf),
5844         * device/lib/floorf.c (floorf),
5845         * device/lib/log10f.c (log10f),
5846         * device/lib/logf.c (logf),
5847         * device/lib/sinf.c (sinf),
5848         * device/lib/sinhf.c (sinhf),
5849         * device/lib/sqrtf.c (sqrtf),
5850         * device/lib/tanf.c (tanf),
5851         * device/lib/tanhf.c (tanhf),
5852         * device/include/math.h: defined _FLOAT_FUNC_REENTRANT macro and
5853         replaced all instances of "reentrant" in the library functions
5854         defined in math.h with this macro.
5855         * support/regression/tests/float_trans.c: reenabled test for hc08
5856
5857 2004-08-30 Bernhard Held <bernhard AT bernhardheld.de>
5858
5859         * device/lib/pic16/Makefile.common.in: added MODELFLAGS again, it was
5860         erroneously deleted
5861
5862 2004-08-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5863
5864         * src/hc08/gen.c (loadRegFromAop): better use of clra & clrx
5865         * src/hc08/gen.c (genAnd, genOr): fixed bug with conditional when
5866         multi-byte volatile operands are used
5867         * src/hc08/gen.c (shiftRLong): fixed bug with wrong rotate direction
5868         * src/hc08/main.c (_hc08_genAssemblerPreamble): moved the built-in
5869         initialization to area GSINIT0 so that it would always precede
5870         any static initializers in GSINIT
5871         * support/regression/tests/zeropad.c: fixed idata define for hc08
5872         * support/regression/tests/bug-927659.c,
5873         * support/regression/tests/float_trans.c: disabled tests for hc08
5874         pending missing library routines
5875         * .version: increased version number to 2.4.4 - hc08 port now passes
5876         regression tests
5877
5878
5879 2004-08-29 Bernhard Held <bernhard AT bernhardheld.de>
5880
5881         * device/lib/pic16/Makefile.common.in: added $(MM) to fix `make clean`
5882         * Makefile.common.in,
5883         * as/Makefile,
5884         * as/hc08/Makefile.in,
5885         * as/mcs51/Makefile.in,
5886         * as/z80/Makefile.in,
5887         * debugger/mcs51/Makefile.in,
5888         * device/include/Makefile.in,
5889         * device/lib/Makefile.in,
5890         * doc/Makefile,
5891         * link/Makefile,
5892         * link/z80/Makefile.in,
5893         * packihx/Makefile.in,
5894         * sim/ucsim/main_in.mk,
5895         * sim/ucsim/avr.src/Makefile.in,
5896         * sim/ucsim/doc/Makefile.in,
5897         * sim/ucsim/gui.src/serio.src/Makefile.in,
5898         * sim/ucsim/hc08.src/Makefile.in,
5899         * sim/ucsim/s51.src/Makefile.in,
5900         * sim/ucsim/xa.src/Makefile.in,
5901         * sim/ucsim/z80.src/Makefile.in,
5902         * src/Makefile.in,
5903         * support/cpp2/Makefile.in,
5904         * support/librarian/Makefile,
5905         * support/makebin/Makefile: added DESTDIR to the install path proposed
5906         by "Maciej 'Agaran' Pijanka" <agaran AT pld-linux.org>
5907         * doc/sdccman.lyx: added DESTDIR documentation
5908
5909 2004-08-29 Vangelis Rokas (vrokas AT otenet.gr>
5910
5911         * src/pic16/gen.c (genFunction, genEndFunction): fixed return
5912         instruction for interrupt handlers, use fast returns when returning
5913         from high priority interrupts
5914
5915 2004-08-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5916
5917         * src/hc08/gen.c (genAnd, genOr, transferAopAop, rmwWithAop): optimized
5918         code generation
5919         * src/hc08/gen.c (genrshFour, genCpl): fixed bugs
5920         * src/hc08/gen.c (genMultOneByte, genDivOneByte, genModOneByte): fixed
5921         bugs, ported much of Bernhard's code from mcs51
5922         * src/mcs51/gen.c (genSend),
5923         * src/hc08/gen.c (genSend): fixed bug with lost SEND iCodes if more
5924         than one when calling a reentrant function
5925         * device/lib/_mullong.c: defined an alternate struct layout for big
5926         endian ports (hc08)
5927
5928 2004-08-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5929
5930         * src/hc08/gen.c (shiftL2Left2Result): fix for bug-500536 regression
5931         test
5932
5933 2004-08-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5934
5935         * src/SDCCsymt.c (processFuncArgs): make sure parameter types
5936         are sane and complete before asking the port its prefered parameter
5937         passing method (fixes bug #1017633)
5938         * device/lib/hc08/_ret.c: added "data" storage class to _ret2
5939         and _ret3
5940
5941 2004-08-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5942
5943         * src/hc08/gen.c (genPackBitsImmed, genUnpackBitsImmed): fix offset
5944         problem in bitfields >= 8 bits.
5945
5946 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
5947
5948         * src/SDCCsymt.c: undid changes that were not meant to be committed
5949
5950 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
5951
5952         * support/regression/ports/hc08spec.mk: REENTRANT must be reentrant
5953
5954 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
5955
5956         * src/hc08/gen.c (genUminusFloat): fixed bug where only 3 bytes were
5957           copied and wrong bit got inverted
5958
5959 2004-08-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5960
5961         * src/hc08/gen.c (genPointerSet, genFarPointerSet): moved code from
5962         genFarPointerSet into genPointerSet; eliminated genFarPointerSet
5963         * src/hc08/gen.c (genPointerGet, genFarPointerGet): moved code from
5964         genFarPointerGet into genPointerGet; eliminated genFarPointerGet
5965         * src/hc08/gen.c (genPackBitsImmed): generate optimized code for
5966         assignments to bitfields at known addresses
5967         * src/hc08/gen.c (genUnpackBitsImmed): generate optimized code for
5968         reads from bitfields at known addresses
5969         * src/hc08/ralloc.c (packRegisters),
5970         * src/hc08/gen.c (genPointerGet, genUnpackBits, genUnpackBitsImmed,
5971         genhc08Code): optimize pointer get values used as conditionals
5972         * src/hc08/peeph.def: added rules 2e & 2f to optimize bit test
5973         and branch
5974
5975 2004-08-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5976
5977         * src/mcs51/gen.c (genPointerGet, genNearPointerGet, genPagedPointerGet,
5978         genFarPointerGet, genCodePointerGet, genGenPointerGet, genUnpackBits),
5979         * src/mcs51/ralloc.c (packRegisters): optimize pointer get values used
5980         as conditionals
5981
5982 2004-08-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5983
5984         * src/mcs51/peeph.def: peepholes 248.i-m for xdata bitfields
5985
5986 2004-08-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5987
5988         * src/mcs51/ralloc.c (packRegsForOneuse): fixed bug #1012650 and some
5989         related problems
5990
5991 2004-08-21 Bernhard Held <bernhard AT bernhardheld.de>
5992
5993         * sim/ucsim/cmd.src/Makefile.in: run lex only if $(PRJDIR)/devel exists
5994
5995 2004-08-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5996
5997         * src/z80/ralloc.c (packRegsForAssign): ported some bug fixes from the
5998         mcs51 port
5999
6000 2004-08-16 Slade Rich <slade_rich AT users.sourceforge.net>
6001
6002         * src/pic/gen.c: Restored fn genRet as previous fix was incorrect.
6003
6004 2004-08-14 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6005
6006         * src/mcs51/gen.c (genJumpTab): jumptables for more than 16 switch
6007         cases use more compact code.
6008
6009 2004-08-13 Slade Rich <slade_rich AT users.sourceforge.net>
6010
6011         * src/pic/gen.c: Fixed problem with fn returning a variable bigger than a char.
6012
6013 2004-08-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6014
6015         * src/SDCClrange.c (findPrevUse): fixed bug #1007371
6016
6017 2004-08-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6018
6019         * src/SDCCsymt.h,
6020         * src/SDCCsymt.c (changePointer, checkDecl, addSymChain): changed
6021         parameter of changePointer() from symbol* to sym_link*
6022         * src/SDCCast.c (decorateType): call changePointer() for CAST op
6023         * src/SDCCsymt.c (compareType): void* type is castable to other
6024         pointers, but not necesarily an exact match.
6025         * src/SDCCicode.c (geniCodeCast): allow void* casting here since it
6026         is no longer blindly treated as an exact match.
6027         * src/SDCCval.c (valCastLiteral): treat missing type as cast to void
6028
6029 2004-08-12 Slade Rich <slade_rich AT users.sourceforge.net>
6030
6031         * src/pic/glue.c: Added struct initialisation fn printIvalStruct.
6032
6033 2004-08-11 Slade Rich <slade_rich AT users.sourceforge.net>
6034
6035         * src/pic/gen.c,
6036         * src/pic/pcode.c,
6037         * src/pic/ralloc.h,
6038         * src/pic/ralloc.c: Printing rIdx on internal verbose debug.
6039
6040 2004-08-10 Slade Rich <slade_rich AT users.sourceforge.net>
6041
6042         * src/pic/device.c,
6043         * src/pic/device.h,
6044         * src/pic/device.c: Will no longer exit if #pragma maxram has not been defined.
6045
6046 2004-08-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6047
6048         * src/mcs51/gen.c (emitcode): fixed bug #992819
6049
6050 2004-08-05 Maarten Brock <sourceforge.brock AT dse.nl>
6051
6052         * src/pic/ralloc.c (deassignLR): allthough pic port is buggy already,
6053           there's no need to make it worse
6054
6055 2004-08-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6056
6057         * src/mcs51/ralloc.c (deassignLR),
6058         * src/ds390/ralloc.c (deassignLR),
6059         * src/hc08/ralloc.c (deassignLR),
6060         * src/z80/ralloc.c (deassignLR),
6061         * src/pic/ralloc.c (deassignLR),
6062         * src/pic16/ralloc.c (deassignLR),
6063         * src/avr/ralloc.c (deassignLR),
6064         * src/SDCClrange.c (findRecursiveSucc, findRecursivePred, findPrevUse,
6065         rlivePoint): fixed another part of bug #971834
6066
6067 2004-08-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6068
6069         * src/z80/main.c: enabled "critical" keyword
6070         * src/z80/mappings.i,
6071         * src/z80/gen.c (genFunction, genEndFunction): support for interrupt
6072         functions (fixes bug #979646)
6073         * doc/sdccman.lyx: added a subsection explaining z80 interrupt support
6074
6075 2004-08-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6076
6077         * src/mcs51/gen.c (genInline): Add \n for labels, not DOS/WIN dirs
6078           such as c:\mydir.
6079
6080 2004-08-03 Maarten Brock <sourceforge.brock AT dse.nl>
6081
6082         * src/SDCCloop.c (loopInvariants): fixed bug 983545, hope this
6083           doesn't disable too much optimizations
6084
6085 2004-08-02 Slade Rich <slade_rich AT users.sourceforge.net>
6086
6087         * src/pic/glue.c Disabled "WARNING: function 'main' undefined" when -S option is used.
6088
6089 2004-08-02 Maarten Brock <sourceforge.brock AT dse.nl>
6090
6091         * src/SDCClrange.c (rlivePoint): fixed bug 988568, thanks to anonymous
6092
6093 2004-08-02 Slade Rich <slade_rich AT users.sourceforge.net>
6094
6095         * src/pic/gen.c tidied up tabs
6096         * src/pic/genarith.c tidied up tabs and fixed bug with literal multiple where same register was used for hi and low byte
6097         * src/pic/main.c tidied up tabs
6098         * src/pic/pcode.c tidied up tabs and disabled verbose code generation
6099         * src/pic/pcoderegs.c tidied up tabs
6100         * src/pic/ralloc.c tidied up tabs
6101
6102 2004-07-30 Vangelis Rokas <vrokas AT otenet.gr>
6103
6104         * src/SDCCmem.c (allocGlobal): don't turn S_REGISTER storage class
6105         to S_FIXED for pic16 port and when symbol is not in level 0,
6106         allocate for S_REGISTER storage class and pic16 port, too,
6107         * src/pic16/device.h: prototype for checkSym,
6108         * src/pic16/device.c (pic16_dump_access, checkSym): NEW,
6109         * (pic16_assignConfigWordValue): test the value and the mask to
6110         validate that the value is suitable for the configuration word,
6111         * src/pic16/glue.c (pic16_printIvalFuncPtr): use 'externs' to
6112         collect extern declared symbols, don't emit symbol twice, check
6113         first if symbol is in publics set first,
6114         * src/pic16/main.c (_pic16_keywords[]): added keyword 'register',
6115         * added command line '--fstack' which enables an experimental
6116         feature for stack access, too buggy to be used yet...
6117         * src/pic16/ralloc.c (pic16_accessregWithName): NEW,
6118         * (pic16_allocDirReg): when register has storage class S_REGISTER
6119         allocate in pic16_dynAccessRegs,
6120         * device/include/pic16/pic18f????.h: modified configuration word
6121         naming convention, words started as CONFIG0H but should be CONFIG1H
6122
6123 2004-07-29 Maarten Brock <sourceforge.brock AT dse.nl>
6124
6125         * device/include/mcs51reg.h: fixed bug 970993
6126
6127 2004-07-27 Maarten Brock <sourceforge.brock AT dse.nl>
6128
6129         * added lib/calloc.c, lib/free.c, lib/realloc.c, include/stddef.h
6130         * updated lib/malloc.c, lib/libsdcc.lib, lib/Makefile.in, include/malloc.h
6131         * src/SDCC.lex (doPragma): added pragma disable_warning <nnn>
6132         * src/SDCCmain.c (parseCmdLine): added option --disable-warning <nnn>
6133         * src/ds390/gen.c (genPlusIncr): fixed bug when incrementing generic pointers
6134         * support/Util/SDCCerr.c (vwerror): suppress disabled warnings and output
6135           error/warning numbers,
6136           added function setWarningDisabled()
6137         * support/Util/SDCCerr.h: added setWarningDisabled() and MAX_ERROR_WARNING
6138         * support/regression/ports/mcs51-stack-auto/spec.mk: added dependencies
6139           _memcmp.c _memmove.c calloc.c realloc.c free.c
6140         * support/regression/tests/malloc.c: added tests for new functionality
6141         * support/regression/tests/zeropad.c: added tests for truncated initializers
6142           and initialized char arrays starting with '\x0'
6143         * src/mcs51/peeph.def: fixed regression, added peephole 177.f
6144
6145 2004-07-26 Bernhard Held <bernhard AT bernhardheld.de>
6146
6147         * support/valdiag/tests/overflow.c: fixed warning on (1 >> 40)
6148
6149 2004-07-26 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6150
6151         * doc/sdccman.lyx: updated example in section "Absolute Addressing"
6152         * src/mcs51/peeph.def: added contributed fix for "bug" #995347 as
6153         peephole 177.e. Thanks to anonymous
6154
6155 2004-07-25 Vangelis Rokas <vrokas AT otenet.gr>
6156
6157         * src/pic16/glue.c (pic16_printIvalFuncPtr): when an extern
6158         function isn't used in the source but referenced as a
6159         variable initializer then declare it as extern in .asm file
6160
6161 2004-07-24 Vangelis Rokas <vrokas AT otenet.gr>
6162
6163         * .version: increased version number to 2.4.3
6164
6165         Adding version extension according to ChangeLog CVS revision
6166         * src/Makefile.in (target all): added dependency 'version.h'
6167         * (rule version.h): added rule to create version.h from ChangeLog,
6168         * (rule dep): added dependency version.h,
6169         * src/version.awk: AWK script to create version.h
6170         * src/SDCCdwarf2.c (dwWriteModule),
6171         * src/SDCCglue.c (initialComments),
6172         * src/SDCCmain.c (printVersionInfo): modified to write after
6173         version string the version extension number,
6174         * src/SDCCutil.c: included "version.h"
6175         * (getBuildNumber): NEW, returns SDCC's ChangeLog minor revision
6176         number,
6177         * src/SDCCutil.h: added prototype for getBuildNumber
6178
6179         * src/SDCCmain.c (parseCmdLine): when sOpt is 'I' add rest in
6180         includeDirsSet, too,
6181         * src/SDCCsymt.c (checkSClass): don't emit error when a variable,
6182         const char [] is found in function prototype...
6183
6184         * src/pic16/genarith.c (pic16_genUMult8XLit_8): optimization to omit
6185         moving to WREG with source is already in WREG,
6186         * src/pic16/gen.h: added AOP_FSR0 and AOP_FSR2 in enum,
6187         * src/pic16/gen.c (getFreePtr): updated to look for FSR0 and FSR2,
6188         * (aopForSym): stack'ed symbols are partially supported, added
6189         if-clause to support symbols in FARSPACE,
6190         * (sameRegs): added test for AOP_ACC to see if registers are same,
6191         * (pic16_freeAsmop): added case for AOP_FSR0 and AOP_FSR2,
6192         * (pic16_aopGet): added case for AOP_FSR0 and AOP_FSR2,
6193         * (pic16_popRegFromString): will not allocate a new register if it
6194         doesn't find one by name, bug may have introduced...
6195         * (pic16_popGet): added case for AOP_FSR0 and AOP_FSR2,
6196         * (genIpush): revived to use pic16 port's stack,
6197         * (genAddrOf): added incomplete case for stack'ed operand,
6198         * (genCast): optimized a pair of MOVFW,MOVWF to MOVFF
6199         * src/pic16/genutils.c (pic16_genNot): almot new vesrion for NOT,
6200         can handle multibyte operands,
6201         * src/pic16/glue.c (pic16_printIval*): some debug info added,
6202         * (pic16initialComments): added message for MPLAB compatibility
6203         mode enabled,
6204         * src/pic16/main.h: prototype for pic16_mplab_comp,
6205         * src/pic16/main.c (pic16_optionsTable): new option --mplab-comp,
6206         which enabled MPLAB compatibility mode (i.e. no #LINE/#FILE, BANKED)
6207         * (_pic16_linkEdit): NEW, handles link stage, transferred here
6208         because of increased complexity of procedure,
6209         * (_process_pragma): stack pragma changed to format 'stack pos len',
6210         emit symbol '_stack_end' to conform with gplink,
6211         * src/pic16/pcode.c (pic16_newpCodeOpBit): using pic16_regWithName
6212         to search for register,
6213         * (pic16_get_op, pic16_get_op2): added case for PO_W, PO_WREG and
6214         PO_GPR_REGISTER,
6215         * (pic16_pCode2str): when in MPLAB compatibility mode, comment out
6216         #LINE directives and replace 'B' with 'BANKED' in instruction opcodes
6217         * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): added
6218         case for PO_GPR_REGISTER,
6219         * (pic16_AnalyzeBanking): removed the old message for inc2h.pl, past
6220         dies, the new era is ahead !...
6221         * src/pic16/ralloc.c: added hash reposits pic16_dynAllocRegNames and
6222         pic16_dynInternalRegs,
6223         * (pic16_allocregWithName, pic16_procregWithName, pic16_regWithname): NEW,
6224         * (pic16_allocDirReg): minor optimizations and bug fixes,
6225         * (pic16_allocWithIdx): when searching pic16_dynProcessorRegs use fixed,
6226
6227         * device/lib/pic16/startup/crt0*.c: extern definition of stack_end,
6228         load stack and frame pointer with address of 'stack_end' symbol
6229
6230 2004-07-23 Vangelis Rokas <vrokas AT otenet.gr>
6231
6232         * src/pic16/glue.c (pic16emitStaticSeg): fixed bug with files
6233         without source code but only variable initializers
6234
6235 2004-07-20 Vangelis Rokas <vrokas AT otenet.gr>
6236
6237         * src/pic16/glue.c (pic16emitRegularMap): unused functions marked as
6238         external are not declared as extern to reduce overhead while linking
6239
6240 2004-07-20 Maarten Brock <sourceforge.brock AT dse.nl>
6241
6242         * src/SDCCast.c (decorateType): removed buggy fix for bug #979599
6243
6244 2004-07-11 Maarten Brock <sourceforge.brock AT dse.nl>
6245
6246         * src/SDCCglue.c (printIvalArray): fixed bug #984229, thanks to Phuah
6247           Yee Keat for the patch
6248         * src/SDCCast.c (decorateType): fixed bug #979599
6249         * src/ds390/gen.h: removed local fReturnSizeDS390
6250         * src/ds390/gen.c: made fReturnSizeDS390 signed short to remove a warning
6251         * src/ds390/gen.c (genAnd, genOr, genXor),
6252         * src/mcs51/gen.c (genAnd, genOr, genXor): generate better optimized code
6253
6254 2004-07-04 Vangelis Rokas <vrokas AT otenet.gr>
6255
6256         * src/SDCCmain.c (linkEdit): modifications only for pic16 port,
6257         add relFilesSet to $3, manipulate $2 to handle linking of object
6258         files without source files in command line,
6259         * device/include/pic16 (all headers): added ID location macros,
6260         * src/pic16/device.c (struct PIC16_device Pics16[]): added field
6261         entries for ID location bytes,
6262         * (pic16_assignIdByteValue): NEW,
6263         * src/pic16/device.h: new structures idRegInfo_t and idBytesInfo_t,
6264         added field dumpcalltree to pic16_options_t,
6265         * src/pic16/gen.c (genCmp): fixed bug case so a temporary register
6266         is used instead of pic16_Gstack_base_addr, check if (ifx) before
6267         emitting rFalseIfx label after check_carry label,
6268         * src/pic16/glue.c (PIC16_IS_IDLOC_ADDRESS, PIC16_IS_HWREG_ADDRESS,
6269         pic16_emitDIRegs), NEW
6270         * (pic16glue): dump .calltree file when option --calltree found,
6271         * src/pic16/main.c (OPTION _pic16_optionsTable): new option --calltree
6272         * (_pic16_genAssemblerPreamble): emit ID locations after
6273         configuration registers,
6274         * (pic16_linkCmd): modifications of the link command,
6275         * src/pic16/pcode.c (pic16_pciMOVFF): PCC_REGISTER replaces PCC_REGISTER2
6276         * (pic16_pCodeInitRegisters): don't init stack registers,
6277         * (pic16_findPrevInstruction): fixed bug,
6278         * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): fixed
6279         bug with immediate registers,
6280         * (buildCallTree): traces stack push and pop,
6281         * (pct2): dump also stack usage for each function,
6282         * src/pic16/ralloc.c (dynrIdx): registers names start from 0x00
6283         * (pic16_allocDirReg): various modifications,
6284         * (pic16_typeRegWithIdx): when searching pic16_dynProcessorRegs set
6285         fixed to 1,
6286
6287 2004-07-02 Vangelis Rokas <vrokas AT otenet.gr>
6288
6289         * src/pic16/pcode.c: removed buggy double colon
6290
6291 2004-07-01 Borut Razem <borut.razem AT siol.net>
6292
6293         * support/scripts/sdcc.nsi: added include/pic16 to setup
6294
6295 2004-06-30 Vangelis Rokas <vrokas AT otenet.gr>
6296
6297         * device/lib/Makefile.in: fixed bug in target objects-pic16,
6298         * device/lib/pic16/Makefile: prefixed with dash (-) command under
6299         target 'clean',
6300         * doc/sdccman.lyx: changed version to 2.4.2 and added some port
6301         specific command line arguments. Also added sample lkr script
6302         for placing a variable at a specific memory bank.
6303         * src/pic16/device.c (pic16_dump_gsection): NEW, to dump variables
6304         at a specific memory bank,
6305         * (pic16_dump_isection): fixed bug which caused string literals to
6306         be omitted when dumping idata section,
6307         * (pic16_groupRegistersInSection): added code to handle registers
6308         in specific memory banks,
6309         * src/pic16/gen.c: labelOffset is prefixed with pic16_ and made
6310         public, all references are renamed too,
6311         * (pic16_aopGet): removed switch cases for AOP_R0,AOP_R1,AOP_DPTR,
6312         AOP_DPTR2,
6313         * (pic16_storeForReturn): added case to handle when dest is WREG,
6314         * src/pic16/genarith.c (pic16_pCodeOpSubType): NEW,
6315         * src/pic16/glue.c (pic16emitRegularMap): when adding a register in
6316         pic16_rel_udata, check to see if that register is marked as being
6317         a member of a specific memory bank,
6318         * (pic16_printIvalCharPtr): added code to add string literals either
6319         to code or the idata sections,
6320         * src/pic16/main.c (_process_pragma): added \n to WHITE constant,
6321         also accept the 'udata' pragma,
6322         * src/pic16/main.h: new structure types sectName and sectSym
6323         * src/pic16/pcode.c: added new pCodeInstruction entry for BANKSEL
6324         * (newpCodeOpBit): added PIC_OPTYPE subt in function prototype,
6325         * (pic16_findPrevInstruction): fixed, it returned nothing,
6326         * (insertBankSwitch): fixed to emit banksel/skip and skip/banksel
6327         instruction combinations,
6328         * (pic16_FixRegisterBanking): heavily reorganised,
6329         * (pic16_AnalyzeBanking): if generating banksel directives is
6330         disabled, then don't call FixRegisterBanking at all,
6331         * src/pic16/ralloc.c (bitEQUs, aliasEQUs, allDefsOutOfRange):
6332         completely removed,
6333         * (pic16_writeUsedRegisters): added call to pic16_dump_gsection
6334
6335 2004-06-29 Bernhard Held <bernhard AT bernhardheld.de>
6336
6337         * src/SDCCglue.c (printChar): fixed bug #973350, patch provided by
6338         Phuah Yee Keat <yk.phuah AT nestac.com>
6339
6340 2004-06-28 Vangelis Rokas <vrokas AT otenet.gr>
6341
6342         * src/pic16/glue.c (pic16createInterruptVect): function now emits
6343         correctly the IVT even if it is relocated to some other location
6344
6345 2004-06-28 Vangelis Rokas <vrokas AT otenet.gr>
6346
6347         * device/include/pic16/pic18fregs.h: added case for pic18f2220.h
6348         * device/include/pic16/pic18f2220.h: NEW,
6349         * device/lib/pic16/libdev/pic18f2220.c: NEW,
6350         * device/lib/pic16/libdev/Makefile: added 18f2220 in DEVS,
6351         * src/pic16/device.c (struct Pics16): added info for 18f2220,
6352         * src/pic16/device.h (struct pic16_options): added ivt_loc and
6353         nodefaultlibs, ivt_loc is the location of the interrupt vector
6354         table, and nodefaultlibs signs that default libraries should not be
6355         linked in link stage,
6356         * src/pic16/gen.c (genFunction): relocate interrupt vector functions
6357         according to --ivt-loc argument,
6358         * src/pic16/main.c (_process_pragma): emit '_stack' as public symbol
6359         when pragma stack is found,
6360
6361 2004-06-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6362
6363         * src/mcs51/peeph.def: added peepholes 182.d (return 0.0),
6364         256 (range check), 257 (do while), 258.a-f (bit banging
6365         f.e. on 3-wire SPI bus)
6366
6367 2004-06-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6368
6369         * src/SDCClrange.c (findNextUseSym): fixed a live range bug with
6370         variables used exclusively within a loop
6371
6372 2004-06-21 Bernhard Held <bernhard AT bernhardheld.de>
6373
6374         * src/mcs51/gen.c (genCpl): quick fix for bug #974835
6375
6376 2004-06-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6377
6378         * src/SDCClrange.c (computeClash): fixed bug #971834
6379
6380 2004-06-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6381
6382         * src/mcs51/gen.c (genCmp): fixed bug #975903
6383         * src/hc08/gen.c (operandsEqu),
6384         * src/ds390/gen.c (operandsEqu),
6385         * src/z80/gen.c (operandsEqu),
6386         * src/pic/gen.c (operandsEqu),
6387         * src/pic16/gen.c (operandsEqu),
6388         * src/mcs51/gen.c (operandsEqu): fixed bug #976283
6389         * src/SDCCmain.c (parseCmdLine): report --unknown-option only once
6390
6391 2004-06-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6392
6393         * src/SDCCcse.c (cseBBlock): fixed bug #966963
6394
6395 2004-06-12 Vangelis Rokas <vrokas AT otenet.gr>
6396
6397         * src/pic16/gen.c (genPointerGet): added E_INTERNAL_ERROR for
6398         default case in switch statement,
6399         * glue.c (pic16_initPointer): expr is initialised via decoarteType
6400         to eliminate problem with initialisation of pointers, but problem
6401         still exists,
6402         * (pic16_pointerTypeToGPByte): removed, no needed for pic16,
6403         * (emitStaticSegment): removed various lines emitting debug info,
6404         * src/pic16/pcode.c, src/pic16/pcode.h, src/pic16/ralloc.h:
6405         added processor registers for utilizing EEPROM,
6406         * src/pic16/pcode.c (pic16_emitDB): number of DBs emitted is not
6407         configurable and set 8
6408
6409 2004-06-08 Vangelis Rokas <vrokas AT otenet.gr>
6410
6411         * .version: increased version number to 2.4.2,
6412
6413         Cumulative patch for pic16 port
6414         * src/pic16/device.c: changed scheme to dump initial values for
6415         variables in idata segment, all print_idata* functions were removed,
6416         now the pic16_printIval* will be called,
6417         * src/pic16/glue.c: (pic16_initPointer, pic16_pointerTypeToGPByte,
6418         * _pic16_printPointerType, pic16_printPointerType,
6419         * pic16_printGPointerType, pic16_printIvalArray, pic16_printIvalStruct,
6420         * pic16_printIvalBitFields, pic16_printIvalFuncPtr, pic16_printIvalPtr:
6421         NEW, similar to the respective functions in SDCCglue.c,
6422         * src/pic16/pcode.c (pic16_emitDB, pic16_flushDB): reverted to old
6423         way, emitting hex bytes,
6424         * (pic16_emitDS): NEW, emits a string for pointer initialisation,
6425
6426 2004-06-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6427
6428         * src/avr/ralloc.c (serialRegAssign),
6429         * src/xa51/ralloc.c (serialRegAssign),
6430         * src/pic/ralloc.c (serialRegAssign),
6431         * src/pic16/ralloc.c (serialRegAssign),
6432         * src/hc08/ralloc.c (serialRegAssign),
6433         * src/z80/ralloc.c (serialRegAssign),
6434         * src/ds390/ralloc.c (serialRegAssign),
6435         * src/mcs51/ralloc.c (serialRegAssign): fixed bug #964479
6436
6437 2004-06-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6438
6439         * src/SDCCicode.c (geniCodeJumpTable): fixed bug #967601
6440         * src/SDCCpeeph.c (labelIsReturnOnly): fixed bug #966505
6441
6442 2004-06-07 Vangelis Rokas <vrokas AT otenet.gr>
6443
6444         Cumulative patch for pic16 port:
6445         * src/pic16/device.h (typedef PIC16_device) modified fields for
6446         defining microcontrollers,
6447         * src/pic16/device.c: added new info for all devices in Pics16 array,
6448         * src/pic16/gen.c (genPcall): fixed bug that caused the return label
6449         to be optimised out by the pCode optimiser,
6450         * src/pic16/glue.c (pic16emitRegularMap): treat implicit aggragates
6451         specially, bug reported by G.M. Gallant,
6452         * src/pic16/pcode.c (pic16_newpCodeLabelFORCE): NEW, marks a label
6453         as force'd so that cannot be optimised out by pCode optimiser,
6454         * src/pic16/pcode.c,
6455         * src/pic16/pcodepeeph.c,
6456         * src/pic16/pcoderegs.c: many modifications to re-enable peepholes,
6457         they are disabled by default, but can be enabled explicit with
6458         command argument --denable-peeps, for testing,
6459         * device/lib/pic16/startup/Makefile: added --no-peep,--pomit-config-words,
6460         --pomit-ivt in COMPILE_FLAGS
6461
6462 2004-06-06 Maarten Brock <sourceforge.brock AT dse.nl>
6463
6464         * src/pic16/pcode.c (pic16_emitDB): removed double semicolon which fails
6465           compilation on MSVC
6466
6467 2004-06-06 Maarten Brock <sourceforge.brock AT dse.nl>
6468
6469         * device/include/sab80515.h: added sfr P6, changed GPL to LGPL
6470
6471 2004-06-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6472
6473         device/include/sab80515.h: fixed bug #967492, DAPR is defined at adress
6474         0xd8, but the correct adress is 0xda. Thanks to anonymous for reporting
6475
6476 2004-06-06 Vangelis Rokas <vrokas AT otenet.gr>
6477
6478         * src/pic16/device.c (pic16_assignConfigWord): fixed bug that
6479         would only assign 0x300001 register.
6480
6481 2004-06-05 Vangelis Rokas <vrokas AT otenet.gr>
6482
6483         * device/lib/pic16/startup/Makefile: added $(MODELFLAGS)
6484         in COMPILE_FLAGS. Thanks to G. Gallant for report.
6485
6486 2004-06-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6487
6488         * doc/sdccman.lyx: minor changes, mentioned beta vendor support
6489         for ds80c400
6490         * src/mcs51/peeph.def: ran unexpand -a over peeph.def
6491         * src/mcs51/peeph.def: removed obsolete peephole 100.a,
6492         added peephole 254 (left shift), 255 (jump table)
6493
6494 2004-06-04 Vangelis Rokas <vrokas AT otenet.gr>
6495
6496         * device/lib/Makefile.in: removed comment line with model-pic16,
6497         * (target port-specific-objects-pic16): the libraries and objects
6498         are copied to the build directory form the device/lib/pic16/bin
6499         directory
6500
6501         Cumulative patch concerning pic16 port:
6502         * library directory has been re-organized,
6503         * added support for PIC18F1220,
6504         * added headers and library sources for chips 18f1220,18f6520,
6505         18f6620,18f6680,18f6720,18f8520,18f8620,18f8680,18f8720
6506
6507         * configuration registers setting has changed, now each supported
6508         device has a complete description of the registers it uses,
6509         * all initialisations are moved to idata sections, these section
6510         can be absolute or relocatable,
6511         * fixed initialisation of codespace variables,
6512         * fixed warning about PCLATU and gpsim,
6513         * src/pic16/gen.c (genCmp): now can handle partially iCodes with no ifx,
6514         * (genAssign): use table reads when assigning from variables in codespace,
6515         * src/pic16/glue.c (pic16emitStaticSeg): fixed to correctly initialise
6516         char/int variables placed in codespace,
6517         * (pic16_emitConfigRegs): NEW, emits a list with configuration
6518         registers set in .asm file, no need for --pomit-config-words anymore,
6519         * (pic16glue): some 8051 legacy segments are commented out
6520         (to be removed completely),
6521         * added support for alternative assembler and linker with --asm=
6522         and --link= command line arguments,
6523         * peepholes are disabled automatically in the port, no need to
6524         specify on command line,
6525         * port supports natively char/int/long multiplication, but converts
6526         all divisions to support functions,
6527         * main.c: pic16_linkCmd and pic16_asmCmd changed to force output
6528         to the file set in variable $2,
6529         * pcode.c (pic16_emitDB, pic16_flushDB): modified to print printable
6530         strings in ASCII format and not in hex,
6531         * ralloc.c (serialRegAssign): added a triplet of conditional calls
6532         to pic16_allocDirReg for IC_RESULT, IC_LEFT and IC_RIGHT so to
6533         allocate proper register if iCodes aren't temporary,
6534
6535 2004-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
6536
6537         * support/regression/tests/zeropad.c: added TEST_G macro for alpha
6538
6539 2004-06-02 Vangelis Rokas <vrokas AT otenet.gr>
6540
6541         * src/pic16/gen.c (genPcall): warning about gpsim and PCLATU
6542         is commented out
6543
6544 2004-06-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6545
6546         * src/hc08/gen.c (genPointerGetSetOfs): disabled optimization if
6547         computed address is reused
6548         * src/hc08/gen.c (genPackBits): fixed offsets in assignments to
6549         multi-byte bitfields
6550
6551 2004-06-01 Maarten Brock <sourceforge.brock AT dse.nl>
6552
6553         * src/z80/gen.c: (genArrayInit): must check for pointers too
6554
6555 2004-06-01 Maarten Brock <sourceforge.brock AT dse.nl>
6556
6557         * support/regression/tests/zeropad.c: never meant to commit the
6558           nestedstruct test: removed, added check for GCC version
6559
6560 2004-05-31 Maarten Brock <sourceforge.brock AT dse.nl>
6561
6562         * src/SDCCast.c (createIvalArray): fixed bug 770487 SIGSEGV
6563         * src/SDCCglue.c (emitRegularMap): fixed bug 770484 allocation problem
6564         * src/SDCCglue.c (initPointer, printIvalType, printIvalStruct,
6565           printIvalArray, printIvalFuncPtr, printIvalPtr, printIval): fixed
6566           bugs 928906 and 954082 half-empty initializers
6567         * src/SDCCsymt.h,
6568         * src/SDCCsymt.c (getAllocSize): added for above fix
6569         * src/z80/gen.c (genArrayInit): fixed bug 741044
6570         * support/regression/tests/zeropad.c: added tests
6571
6572 2004-05-30 Vangelis Rokas <vrokas AT otenet.gr>
6573
6574         * src/pic16/device.c (pic16_dump_section): corrected bug which
6575         caused some symbols of the libraries to be misplaced
6576
6577 2004-05-28 Vangelis Rokas <vrokas AT otenet.gr>
6578
6579         * src/pic16/glue.c,
6580         * src/pic16/ralloc.h,
6581         * src/pic16/ralloc.cc: prefixed IS_CONFIG_ADDRESS with PIC16_
6582         to fix conflict with pic port
6583
6584 2004-05-28 Vangelis Rokas <vrokas AT otenet.gr>
6585
6586         * src/pic16/glue.c (pic16emitStaticSeg): do not print as publics or
6587         externs configuration variables,
6588         * src/pic16/ralloc.h,
6589         * src/pic16/ralloc.cc: IS_CONFIG_ADDRESS is made public and added
6590         prototype in header, commented out some debug messages
6591
6592 2004-05-26 Vangelis Rokas <vrokas AT otenet.gr>
6593
6594         * src/pic16/glue.c,
6595         * src/pic16/main.c,
6596         * src/pic16/pcode.c: added gpasm directives #FILE/#LINE
6597         for gpasm COFF object generation. Thanks to D. Hawkins for
6598         his patch info
6599
6600 2004-05-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6601
6602         * src/ds390/main.c,
6603         * src/mcs51/main.c: fixed sort order of mnemonics (thanks to Maarten
6604         Brock for spotting this)
6605         * src/ds390/gen.c (genEndFunction),
6606         * src/mcs51/gen.c (genEndFunction): always save psw if function is an
6607         interrupt handler and critical. Disable push/pop optimizations when
6608         peephole optimizations disabled.
6609
6610 2004-05-25 Vangelis Rokas <vrokas AT otenet.gr>
6611
6612         Updated pic16 library sources and headers.
6613         * device/lib/pic16/pic18f*/ ,
6614         * device/include/pic16/*.h: modified to handle structured SFR
6615         definitions
6616
6617 2004-05-25 Vangelis Rokas <vrokas AT otenet.gr>
6618
6619         * src/port.h (PORT structure): added hook initPaths, now each
6620         port can declare its own default search paths,
6621         which can been seen with the --print-search-dirs option,
6622         see pic16 port for example,
6623         * src/SDCCmain.c (setBinPaths, setIncludePaths, setLibPath,
6624         setDataPaths): test to options.printSearchDirs is ifdef'ed out,
6625         * (doPrintSearchDirs): NEW, replaces in a central manner the
6626         printing of search dirs which was split in set*Paths functions,
6627         * (main): added call to port->initPaths and doPrintSearchDirs,
6628         * src/avr/main.c,
6629         * src/ds390/main.c,
6630         * src/hc08/main.c,
6631         * src/izt/i186.c,
6632         * src/izt/tlcs900h.c,
6633         * src/mcs51/main.c,
6634         * src/pic/main.c,
6635         * src/pic16/main.c: modified port structures to reflect addition of
6636         initPaths hook,
6637
6638         * src/pic16/device.c (regCompare): registers are finally sorted by name,
6639         * (pic16_dump_section): for registers in same address reserve memory once,
6640         * src/pic16/device.h (struct PIC16_device): changed variable gen_banksel
6641         to no_banksel,
6642         * src/pic16/genarith.c (pic16_genPlus): added code to handle cases where
6643         result is greater in size than right or left,
6644         * (pic16_genUMult8X8_8): there are some cases where the result can
6645         be 16 bits size, so handle these,
6646         * src/pic16/gen.c: changed some pic16_emitpcomment to DEBUGpic16_emitcode,
6647         * (pic16_outBitC): modified to emit pcodes,
6648         * (pic16_storeForReturn): using is_LitOp to see if operand is literal
6649         or not,
6650         * (genDivOneByte): implemented algorithm to divide 8-bits,
6651         * (genCmp): uncommented goto, but issues still exist,
6652         * (genAnd): fixed a bug with variables >8bits,
6653         * (genPackBits): optimization added that uses BCF/BSF to change a
6654         single bit,
6655         * (genAssign): fixed bug when assigning floating point literals,
6656         * src/pic16/glue.c (pic16glue): added assembler directive 'code' before
6657         __sdcc_gsinit_startup label,
6658         * src/pic16/main.c (_pic16_init): removed search directory
6659         initialisations,
6660         * (_pic16_initPaths): NEW, used to initialise search directories,
6661         * (_hasNativeMulFor): support functions for all except char/int
6662         multiplication, and char division,
6663         * (PIC16_port struct): modified entry for native mul support,
6664         * src/pic16/pcode.c (insertBankSwitch): modified to support the renamed
6665         no_banksel option,
6666         * (buildCallTree): call to register_usage is ifdef'ed out,
6667
6668 2004-05-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6669
6670         * device/include/string.h: applied Stas Sergeev's patch to make this
6671         header file compatible with the preprocessor -Wundef option
6672         * src/SDCCmain.c (main): abort compilation if preprocessor reports
6673         failure (fixes bug #941458)
6674
6675 2004-05-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6676
6677         * src/SDCCopt.c (killDeadCode): fixed bug #907733
6678         * support/Util/SDCCerr.c: reworded E_AUTO_ASSUMED diagnostic to clarify
6679         that the variable, not the function, should be static
6680         * src/SDCCval.c (valCastLiteral): fixed bit initialization from literal
6681         to be consistent with non-literal case
6682
6683 2004-05-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6684
6685         * src/SDCCast.c (isConformingBody): fixed bug #949967
6686         * src/SDCCopt.c (cnvToFcall, cnvToFloatCast, cnvFromFloatCast,
6687         convilong): fixed bug #952086
6688
6689 2004-05-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6690
6691         * src/SDCCmem.c (allocVariables): fixed bug #955321
6692
6693 2004-05-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6694
6695         * src/hc08/main.c (_hc08_genAssemblerEnd),
6696         * src/SDCCdwarf2.c (dwOpenFile, dwCloseFile, dwWriteFunction,
6697         dwWriteModule, dwWriteCLine, dwWriteALine, dwarf2FinalizeFile):
6698         completely eliminated the use of a temporary file
6699         * src/SDCCdwarf2.c (dwWriteAttr): fixed bug with location list offset
6700         when more than one file linked
6701         * src/SDCCloop.c (pointerAssigned): fixed bug #954163
6702
6703 2004-05-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6704
6705         * src/SDCCval.c (valForArray): applied Maarten Brock's patch #947682
6706         which fixes bug #543481
6707         * support/regression/tests/bug-751703.c: fixed comments left from a
6708         cut and paste error
6709         * src/SDCCdwarf2.c (dwCloseFile): don't explicitly close a temp file
6710         * src/SDCCdwarf2.c (dwTagFromType): added bitfield support
6711         * src/SDCCdwarf2.c (dwWriteSymbolInternal): handle extern within local
6712         scopes
6713         * src/SDCCdwarf2.c (dwWriteLineNumber): line number deltas are signed
6714         * src/SDCCmain.c (processFile, parseCmdLine): non-alphanumeric chars
6715         are now changed to underscores in moduleName
6716
6717 2004-05-15 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6718
6719         * as/mcs51/lkmem.c: better fix for bug #954173
6720
6721 2004-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
6722         committed by Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6723
6724         * device/include/c8051f020.h: newly added SiLabs (Cygnal) header file
6725         * device/include/c8051f000.h,
6726         * device/include/c8051f120.h,
6727         * device/include/c8051f300.h,
6728         * device/include/c8051f310.h,
6729         * device/include/c8051f320.h: updated (added _XPAGE, CAPN, CAPP,
6730         PWM16) and detab'ed
6731
6732 2004-05-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6733
6734         * doc/sdccman.lyx: mentioned sourceforge's delay between web frontend
6735         and mailing lists, doc'ed --no-peep-comments, removed reference
6736         to knoppix (newest version has no LyX/LaTeX), other minor changes
6737         * src/SDCCglue.c (glue): save 2 bytes stack space with
6738         option --main-return. The ljmp could probably be avoided too
6739
6740 2004-05-14 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6741
6742         * as/mcs51/lkmem.c, as/mcs51/lkaomf51: fixed bug 954173
6743
6744 2004-05-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6745
6746         * src/SDCCsymt.h: added IS_AUTO(symbol) test macro
6747         * src/SDCCopt.c (isLocalWithoutDef),
6748         * src/SDCCicode.c (operandFromSymbol): use the IS_AUTO test macro
6749         which adds a !IS_EXTERN codition. Fixes bugs #877426 and #751703.
6750         (credit to Maarten Brock for patch #949363, on which this is based)
6751         * support/regression/tests/bug-751703.c: some test cases of extern used
6752         within inner scopes.
6753
6754 2004-05-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6755
6756         * src/SDCCdwarf2.c (dwMatchTypes): structs must have matching
6757         SPEC_STRUCT
6758         * src/SDCCdwarf2.c (dwTagFromType): fix to handle recursive
6759         struct definitions
6760         * src/SDCCdwarf2.c (dwWriteModule, dwNewDebugSymbol, dwWriteEndFunction,
6761         dwWriteLabel): fix to create valid debugger symbols even when
6762         the module name has non-alphanumeric symbols in it
6763         * src/SDCCdwarf2.c (dwWriteSymbolInternal): better detection for
6764         when a variable's allocation has been optimized away
6765
6766
6767 2004-05-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6768
6769         * src/hc08/gen.c (hc08_emitDebuggerSymbol),
6770         * src/hc08/main.c,
6771         * src/mcs51/gen.c (mcs51_emitDebuggerSymbol),
6772         * src/mcs51/main.c,
6773         * src/ds390/gen.c (ds390_emitDebuggerSymbol),
6774         * src/ds390/main.c,
6775         * src/z80/gen.c (z80_emitDebuggerSymbol),
6776         * src/z80/main.c,
6777         * src/pic/gen.c (pic14_emitDebuggerSymbol),
6778         * src/pic/main.c,
6779         * src/pic16/gen.c (pic14_emitDebuggerSymbol),
6780         * src/pic16/main.c,
6781         * src/avr/gen.c (avr_emitDebuggerSymbol),
6782         * src/avr/main.c,
6783         * src/xa51/gen.c (xa51_emitDebuggerSymbol),
6784         * src/xa51/main.c,
6785         * src/SDCCdebug.c (emitDebuggerSymbol),
6786         * src/SDCCdebug.h,
6787         * src/port.h: added a debugger struct to the port struct. Added a
6788         callback for defining debugger symbols
6789
6790         * src/SDCCast.c (createLabel),
6791         * src/SDCC.y (labeled_statement): mark all compiler generated labels
6792         with isitmp = 1
6793         * src/SDCCicode.h,
6794         * src/SDCCicode.c (geniCodeFunctionBody): added a link from the FUNCTION
6795         iCode back to the ast for the function
6796
6797         * src/hc08/ralloc.c (hc08_assignRegisters),
6798         * src/hc08/ralloc.h: define a regs struct for the stack pointer. Removed
6799         unneeded fields from the regs struct.
6800         * src/hc08/gen.c (transferRegReg, genFunction, genEndFunction): use the
6801         pushReg() & pullReg() functions instead of emitcode()
6802
6803         * src/hc08/gen.c (genLabel, genhc08Code),
6804         * src/SDCCdebug.h: Added additional debugger hooks needed for DWARF
6805
6806         * src/cdbFile.c (cdbWriteLabel, cdbWriteScope): Added stubs for unneeded
6807         debugger hooks
6808
6809         * src/hc08/gen.c (genEndFunction, genhc08Code),
6810         * src/hc08/gen.h,
6811         * src/mcs51/gen.c (genEndFunction, gen51Code),
6812         * src/mcs51/gen.h,
6813         * src/ds390/gen.c (genEndFunction, gen390Code),
6814         * src/ds390/gen.h,
6815         * src/z80/gen.c (genEndFunction, genZ80Code),
6816         * src/z80/gen.h,
6817         * src/z80/z80.h,
6818         * src/pic/gen.c (genEndFunction, genpic14Code),
6819         * src/pic/gen.h,
6820         * src/pic16/gen.c (genEndFunction, genpic16Code),
6821         * src/pic16/gen.h,
6822         * src/avr/gen.c (genEndFunction, genAVRCode),
6823         * src/avr/gen.h,
6824         * src/xa51/gen.c (genEndFunction, genXA51Code),
6825         * src/xa51/gen.h,
6826         * src/cdbFile.c (cdbWriteFunction, cdbWriteEndFunction): moved cdb
6827         specific code to cdbFile.c and out of the backend code generators
6828
6829         * as/hc08/lkmain.c (main): removed OMF51 support from link-hc08
6830         * as/hc08/lkarea.c (lnkarea): areas with NOLOAD attribute default
6831         starting address is now 0
6832
6833         * as/hc08/asm.h,
6834         * as/hc08/m08pst.c,
6835         * as/hc08/asmain.c (asmbl): implemented the .sleb128 and .uleb128
6836         assembler directive for DWARF support
6837         * as/hc08/lkelf.c (elf): only increment address when rtflg[] set
6838
6839         * src/src.dsp,
6840         * src/Makefile.in,
6841         * src/SDCCdwarf2.c: preliminary DWARF (ver 2) debugger data generator
6842
6843 2004-05-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6844
6845         * src/hc08/gen.c (genJumpTab, emitcode, genhc08code): fixed stack error
6846         and inappropriate peephole optimization in jump tables
6847
6848 2004-04-30 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6849
6850         * as/hc08/m08pst.c,
6851         * src/SDCCglue.c: sdccopt works for the hc08 port now
6852
6853 2004-04-27 Bernhard Held <bernhard AT bernhardheld.de>
6854
6855         * src/SDCCicode.c (geniCodePreInc, geniCodePreDec): fixed bug #942130
6856
6857 2004-04-27 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6858
6859         * as/hc08/lkelf.c: sdccconf.h is not available in WIN32
6860
6861 2004-04-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6862
6863         * src/SDCCpeeph.c (replaceRule): support empty replacement peephole
6864         rules
6865         * src/SDCCmain.c,
6866         * src/SDCCglobl.h,
6867         * src/SDCCpeeph.c (getPeepLine): new option --no-peep-comments omits
6868         comments from the peephole optimizer replacement rules
6869         * src/SDCCmem.c (printAllocInfoSeg): give actual location of spilled
6870         symbols
6871         * src/SDCCcse.c (updateSpillLocation),
6872         * src/SDCCopt.c (killDeadCode, findReqv): better tracking of register
6873         equivalents
6874         * src/hc08/ralloc.c (regTypeNum): pseudo symbols must be in DATA only
6875         * src/hc08/main.c (_hc08_finaliseOptions): made pointers to stack
6876         objects far pointers
6877
6878 2004-04-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6879
6880         * src/SDCCsymt.h: a missing part of my last change
6881         * src/pic/ralloc.c (regTypeNum),
6882         * src/pic16/ralloc.c (regTypeNum): fixed statement/declaration order
6883
6884 2004-04-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6885
6886         * src/SDCCicode.h,
6887         * src/SDCCicode.c (aggrToPtrDclType),
6888         * src/SDCCptropt.h,
6889         * src/SDCCptropt.c (ptrBaseRematSym, ptrPseudoSymSafe,
6890         ptrPseudoSymConvert),
6891         * src/pic/ralloc.c (regTypeNum),
6892         * src/pic16/ralloc.c (regTypeNum),
6893         * src/hc08/ralloc.c (regTypeNum),
6894         * src/ds390/ralloc.c (regTypeNum),
6895         * src/mcs51/ralloc.c (regTypeNum): check for dependancy hazards before
6896         creating pseudo symbols (fixed bugs #777768, #930484, and #933966)
6897
6898 2004-04-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6899
6900         * link/z80/lkmain.c (afile),
6901         * as/hc08/lkmain.c (afile),
6902         * as/mcs51/lkmain.c (afile): fix suggested by Maarten Brock to
6903         prevent a pointer problem when a filename has no directory and
6904         no extension specified.
6905
6906 2004-04-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6907
6908         * link/z80/lkmain.c (afile): allow periods in directory names
6909         * link/z80/lkmain.c (afile),
6910         * as/mcs51/lkmain.c (afile),
6911         * as/hc08/lkmain.c (afile): allow linker script file to have an
6912         extension other than ".lnk"
6913         * link/z80/lklex.c (getfid),
6914         * link/z80/lkmain.c (parse),
6915         * as/mcs51/lklex.c (getfid),
6916         * as/mcs51/lkmain.c (parse),
6917         * as/hc08/lklex.c (getfid),
6918         * as/hc08/lkmain.c (parse): Support comments in the linker script
6919         file on lines by themselves and after filenames
6920
6921 2004-04-20 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6922
6923         * as/link_hc08.dsp: Added as/hc08/lkelf.c to project.
6924
6925 2004-04-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6926
6927         * src/z80/peeph-z80.def: removed some peephole rules that don't
6928         work with multibyte arithmetic (fixed bug #937126)
6929         * src/mcs51/peeph.def: fixed peephole rules 150-158 to apply only
6930         to registers and not global variables
6931         * src/SDCCicode.c (geniCodeAssign, ast2iCode, geniCodePostInc,
6932         geniCodePreInc, geniCodePostDec, geniCodePreDec,
6933         geniCodeLogicAndOr, geniCodeConditional): enforce strict lvalue
6934         checking for assignments not internally generated (fixed bug #931895)
6935         * src/SDCC.y (postfix_expr): ignore typedefs when looking for a
6936         structure member (fixed bug #930072)
6937
6938 2004-04-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6939
6940         * src/SDCCmain.c (linkEdit),
6941         * src/hc08/main.c (_hc08_parseOptions),
6942         * as/hc08/Makefile.in,
6943         * as/hc08/aslink.h,
6944         * as/hc08/asm.h,
6945         * as/hc08/m08pst.c,
6946         * as/hc08/lkrloc.c (relr, rele),
6947         * as/hc08/lkarea.c (lnkarea)
6948         * as/hc08/lkmain.c (afile, parse),
6949         * as/hc08/lkelf.c: support for ELF output
6950         * as/hc08/lks19.c (s19),
6951         * as/hc08/lkihx.c (ihx): ignore areas with the NOLOAD attribute
6952
6953 2004-04-17 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6954
6955         * as/mcs51/lkihx.c: Fixed bug #899105.
6956
6957 2004-04-16 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6958
6959         * doc/sdccman.lyx: Added instructons on how to convert MSVC .dsw and
6960         .dsp files from Unix to DOS.
6961
6962 2004-04-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6963
6964         * doc/sdccman.lyx: removed the ANSI-C noncompliance note regarding
6965         function pointers; we have been compliant for several months now.
6966         * src/mcs51/ralloc.c (serialRegAssign): enabled part of my 2004-04-13
6967         change that was accidently commented out
6968         * src/mcs51/gen.c (freeAsmop, getFreePtr, freeForBranchAsmop, genIfxJump,
6969         genCmpEq, jmpTrueOrFalse, genCmp, genAnd, genOr, genXor, genIfx): fixed
6970         bug #922319
6971
6972 2004-04-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6973
6974         * src/hc08/gen.c: output of all of the internal debugging information
6975         is now controlled by the D() macro; it is disabled by default
6976
6977 2004-04-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6978
6979         * src/mcs51/ralloc.c (serialRegAssign, fillGaps, allocThisReg): try
6980         harder to keep the same registers during a CAST iCode
6981         * src/SDCCopt.c (optimizeCastCast, eBBlockFromiCode): casts of char to
6982         long via int can be done in a single cast, if the signedness is
6983         correct.
6984         * support/regression/tests/bug-927659.c: fixed to avoid conflict with
6985         putchar() in tinibios.c in ds390's library
6986
6987 2004-04-12 Bernhard Held <bernhard AT bernhardheld.de>
6988
6989         * src/SDCCast.c (decorateType): fixed bug #898889,
6990         cast result of a literal complement too
6991         * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #930931,
6992         fixed check for bitfields
6993
6994 2004-04-11 Bernhard Held <bernhard AT bernhardheld.de>
6995
6996         * src/SDCCicode.c (geniCodeLogic): made it static,
6997         (geniCodeLogicAndOr): added in order to fix bug #905492,
6998         (ast2iCode): fixed bug #905492
6999         * support/regression/tests/bug-905492.c: added
7000         * src/SDCCast.c (decorateType): don't decorate/process parms twice,
7001         (processParms): fixed bug #927659: don't copy parms, this will clear
7002         decorated flag
7003         * support/regression/tests/bug-927659.c: added
7004
7005 2004-03-29 Bernhard Held <bernhard AT bernhardheld.de>
7006
7007         * src/SDCCast.c (addCast): don't cast float to char
7008         * device/lib/libsdcc.lib: added _memmove
7009
7010 2004-03-28 Bernhard Held <bernhard AT bernhardheld.de>
7011
7012         * device/lib/large/Makefile: fixed parallel execution by
7013         replacing `make` by `$(MAKE)`
7014
7015 2004-03-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7016
7017         * src/hc08/gen.c (genPointerGetSetOfs): correctly handle 1 byte array
7018         offsets (fixes bug #923936)
7019
7020 2004-03-26 Bernhard Held <bernhard AT bernhardheld.de>
7021
7022         * device/lib/small/Makefile: fixed parallel execution by
7023         replacing `make` by `$(MAKE)`
7024
7025 2004-03-23 Bernhard Held <bernhard AT bernhardheld.de>
7026
7027         * device/lib/vprintf.c (vsprintf): minor optimization, see bug #801101
7028
7029 2004-03-23  Scott Dattalo  <scott AT dattalo.com>
7030
7031         * src/pic/gen.c (genCpl): multi-byte complements were not working.
7032         * src/regression/Makefile: Regression test was not running.
7033
7034 2004-03-23 Bernhard Held <bernhard AT bernhardheld.de>
7035
7036         * src/SDCCast.c (resultTypePropagate, decorateType): avoid promotion to int for
7037         complement if possible
7038         * src/SDCCval.c (valComplement),
7039         * src/SDCCicode.c (operandOperation): fixed complement of literal
7040         * support/regression/tests/onebyte.c (testComplement): added
7041
7042 2004-03-22 Bernhard Held <bernhard AT bernhardheld.de>
7043
7044         * src/SDCCast.c (processParms): fixed bug #920866; decorateType() can
7045         return an optimized tree; actually replace actParm with the new tree
7046         * src/SDCCast.h: added some parantheses to remove side effects
7047         * support/regression/tests/bug-920866.c
7048
7049 2004-03-21  Scott Dattalo  <scott AT dattalo.com>
7050         * src/pic/gen.c, src/pic/gen.h, src/pic/genarith.c, src/pic/pcode.c:
7051         Bit operands were not being handled properly in the pic14 port.
7052         (now src/regression/add.c passes again).
7053
7054 2004-03-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7055
7056         * src/SDCC.y (labeled_statement): case and default no longer require
7057         a following statement (RFE #893037)
7058
7059 2004-03-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7060
7061         * src/mcs51/gen.c (pushSide, genSignedRightShift, genDjnz, geniPush):
7062         use MOVA macro to avoid "mov a,acc" when peephole optimizer is
7063         disabled (fixes bug #916294)
7064         * sim/ucsim/s51.src/mov.cc (inst_mov_a_addr): Throw an error on
7065         "mov a,acc"; patch provided by Lenny Story
7066         * device/include/mc68hc908gp32.h: header contibuted by Juan Gonzalez
7067
7068 2004-03-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7069
7070         * src/mcs51/gen.c (genFunction): optimize RECEIVE in reentrant
7071         functions
7072         * src/ds390/gen.c (genFunction, genEndFunction),
7073         * src/ds390/ralloc.c (ds390_assignRegisters),
7074         * src/mcs51/gen.c (genFunction, genEndFunction, mcs51_assignRegisters):
7075         * src/mcs51/ralloc.c (mcs51_assignRegisters): Skip optimizing registers
7076         pushed if there are parameters passed on the stack. Also, a cleaner
7077         way to decide if r0/r1 should be pushed/popped. (Together they fix
7078         bug #918693)
7079
7080 2004-03-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7081
7082         * doc/sdccman.lyx,
7083         * device/lib/mcs51/crtpagesfr.asm,
7084         * device/lib/mcs51/crtxinit.asm,
7085         * device/lib/mcs51/crtxstack.asm: Changed name of _PAGESFR to _XPAGE
7086         to avoid confusion with Si Lab's SFRPAGE register.
7087
7088 2004-03-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7089
7090         * src/SDCCglue.c (emitMaps): allow public sfr variables
7091         * src/SDCCglue.c (initialComments): include compiler build date
7092         with compiler version and put the timestamp of the generated
7093         assembly file on a serperate line to be less confusing.
7094         * src/port.h: added genInitStartup hook
7095         * src/avr/main.c,
7096         * src/ds390/main.c,
7097         * src/hc08/main.c,
7098         * src/pic/main.c,
7099         * src/pic16/main.c,
7100         * src/xa51/main.c,
7101         * src/z80/main.c: genInitStartup initialize as NULL (default to
7102         historical behaviour)
7103         * src/SDCCglue.c (glue): _sdcc_gsinit_startup is now port specific.
7104         * src/mcs51/main.c: (_mcs51_genInitStartup, _mcs51_genExtraAreas,
7105         _mcs51_genXINIT, _mcs51_genRAMCLEAR): link initialization code from the
7106         library instead of hard coding it into the compiler.
7107         * support/regression/ports/mcs51-stack-auto/spec.mk,
7108         * src/SDCCmain.c (linkEdit): added mcs51.lib to the link libraries
7109         * device/lib/mcs51/Makefile,
7110         * device/lib/small/Makefile,
7111         * device/lib/large/Makefile,
7112         * device/lib/mcs51/crtpagesfr.asm,
7113         * device/lib/mcs51/crtstart.asm,
7114         * device/lib/mcs51/crtxclear.asm,
7115         * device/lib/mcs51/crtxinit.asm,
7116         * device/lib/mcs51/crtclear.asm,
7117         * device/lib/mcs51/crtxstack.asm: move most of the mcs51 C runtime
7118         startup/initialization out of src/SDCCglue.c and src/mcs51/main.c
7119         and into user configurable files.
7120         * device/lib/clean.mk: clean mcs51 directory too
7121         * support/regression/tests/longlit.c: added static to T1 declaration
7122         * doc/sdccman.lyx: documented _PAGESFR sfr for customizing pdata
7123         accesses in the initialization code
7124
7125 2004-03-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7126
7127         * device/include/mc68hc908qy.h: corrected declarations of FLBPR and
7128         OSCTRIMVAL as noted in bug #916008
7129
7130 2004-03-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7131
7132         * src/SDCCloop.c (basicInduction): fixed bug with loop induction
7133         in loops with multiple exits (reported as incorrect registers
7134         used by Martin Helmling in Sdcc-user list)
7135
7136 2004-03-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7137
7138         * src/ds390/main.c (_ds390_genAssemblerPreamble): cosmetic change,
7139         made ds390 register extensions look less like error messages
7140
7141 2004-03-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7142
7143         * src/SDCCglue.c (printIvalPtr): fixed bug with pointer initializer
7144         reported by Adam Wozniak in Sdcc-user list
7145
7146 2004-03-10 Bernhard Held <bernhard AT bernhardheld.de>
7147
7148         * src/SDCCast.c (decorateType): fixed with bug and promotion in
7149         arithmetic optimizations, added debug output
7150
7151 2004-03-09 Bernhard Held <bernhard AT bernhardheld.de>
7152
7153         * device/lib/time.c (mktime): fixed bug reported by Bert Thomas
7154         * sdcc.spec: updated and split sdcc into 3 rpms
7155         * src/SDCCast.c (decorateType): &|^ don't need addCast(); addCast() is
7156         needed for literals of LEFT_OP and '+'
7157         * src/SDCCicode.c (geniCodeLogic): I must have been braindead when I
7158         introduced RESULT_TYPE_NOPROM
7159         (geniCodeMultiply): fixed logic for decision if mul is optimized to
7160         left shift
7161         * src/SDCCsymt.c (computeType): op is int; added RESULT_TYPE_OTHER;
7162         limited promotion to int only for '*'
7163         * src/SDCCsymt.h (computeType): op is int, removed RESULT_TYPE_NOPROM
7164
7165 2004-03-09 Hans Dorn <hjdorn AT users.sourceforge.net>
7166
7167         * src/pic16/gen.c (genSkip),
7168         (genc16bit2lit), (gencjneshort): commented out
7169         (is_LitOp): new helper function, checks operand type
7170         (genCmpEq): rewritten
7171
7172 2004-03-08 Bernhard Held <bernhard AT bernhardheld.de>
7173
7174         * support/regression/tests/bug-908454.c: added
7175
7176 2004-03-07 Bernhard Held <bernhard AT bernhardheld.de>
7177
7178         * src/SDCCast.c (addCast): fixed bug #908454 by promoting bits to char
7179         * src/SDCCicode.c (usualBinaryConversions): op needs int type
7180         (geniCodeCast): cosmetic, don't preserve bit storage class
7181         (geniCodeLeftShift): added promotion
7182         (geniCodeLogic): fixed regression
7183         * src/SDCCsymt.c (computeTypeOr): accept bits too
7184         (compareType): 2nd part of fix for bug #908454, needed for bitfields
7185
7186 2004-03-07  Borut Razem <borut.razem AT siol.net>
7187
7188         * support/Util/findme.c: alloca() replaced with malloc()/free() pair
7189
7190 2004-03-06 Vangelis Rokas <vrokas AT otenet.gr>
7191
7192         * src/pic16/ralloc.c (pic16_genPackRegisters): reverted to old
7193         version of pic16_genPackRegisters which does not check if ic is a
7194         CAST operator,
7195         * src/pic16/gen.c (ifxForOp): disabled new and untested code in
7196         function cause string1.c regression test fails
7197
7198 2004-03-06 Bernhard Held <bernhard AT bernhardheld.de>
7199
7200         * sim/ucsim/configure.in,
7201         * sim/ucsim/configure,
7202         * sim/ucsim/doc/Makefile.in: use docdir
7203         * src/SDCC.y: fixed sbit atrributes
7204         * src/SDCCast.c (getResultTypeFromType): added support for bitfields
7205         * src/SDCCast.c (decorateType): |^& need special promotion handling
7206         * src/SDCCast.h,
7207         * src/SDCCsymt.h: moved definition of RESULT_TYPE
7208         * src/SDCCsymt.h (computeType),
7209         * src/SDCCicode.c: computeType() needs op
7210         * src/SDCCsymt.c (checkTypeSanity),
7211         * doc/sddman.lyx: "plain" bitfields are unsigned
7212         * src/SDCCsymt.c (computeTypeOr): added
7213         * src/SDCCsymt.c (computeType): added support for bitfields, fixed
7214         |^& ops
7215         * src/SDCCval.c (val*): computeType() needs op
7216         * src/SDCCval.c (valCastLiteral): fixed casting of bitfields
7217         * support/regression/tests/onebyte.c: added tests for |^&
7218
7219 2004-03-06 Hans Dorn <hjdorn AT users.sourceforge.net>
7220
7221         * src/pic16/gen.c: (genpic16Code) use copy of printILine's output
7222         for writing icode into asm output.
7223
7224 2004-03-05 Vangelis Rokas <vrokas AT otenet.gr>
7225
7226         * src/pic16/device.c: added some debug lines enabled
7227         with macro DEBUG_CHECK,
7228         * src/pic16/genarith.c: more debug in genPlus,
7229         * (pic16_genUMult8XLit_16, pic16_genUMult8X8_16): removed,
7230         * (pic16_genUMult16X16_16, pic16_genUMult16XLit_16): NEW,
7231         * src/pic16/gen.c: added prototypes for pic16_genMult16X16_16,
7232         * (aopForSym): onStack symbols are re-placed in data memspace,
7233         and onStack flag is cleared,
7234         * (pic16_popGetTempReg, pic16_popReleaseTempReg): modified to
7235         copy temporary pcodeop,
7236         * (genPcall): added warning for not updating PCLATU,
7237         * (genFunction): removed test with IFFUNC_CALLEESAVES, its
7238         always true for pic16 port,
7239         * (genMultOneWord): NEW, supports integer multiplication,
7240         * (genMult): modified to call genMultOneWord,
7241         * (ifxForOp): added warning when return NULL,
7242         * src/pic16/glue.c (pic16emitRegularMap): symbol implicit
7243         flag is set before call to operandFromSymbol for implicit
7244         added structures,
7245         * src/pic16/main.c (_pic16_finaliseOptions): options.float_rent,
7246         options.intlong_rent are set by default,
7247         * (_hasNativeMulFor): modified to allow port generation of integer
7248         multiplication,
7249         * src/pic16/ralloc.c (pic16_allocDirReg): commented out line which
7250         set regtype to REG_SFR for all registers, restricting seting the
7251         accessBank flag for registers 0<= r < 0x80 and 0xf80<=r<=0xfff,
7252
7253 2004-03-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7254
7255         * src/mcs51/peephole.def: added 251.b and 253.x. 253.x are applied
7256         more than 500 times in the regression tests
7257
7258 2004-03-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7259
7260         * support/Util/SDCCerr.h,
7261         * support/Util/SDCCerr.c,
7262         * src/SDCC.y (struct_or_union_specifier, enum_specifier,
7263         enumerator_list),
7264         * src/SDCCsymt.c (addSymChain): show location of oriignal definition
7265         for symbol conflicts.
7266         * support/valdiags/tests/enum.c,
7267         * support/valdiags/tests/tentdecl.c,
7268         * support/valdiags/tests/struct.c: expect possible error messages
7269         referring to original symbol definitions.
7270         * src/SDCC.y (struct_or_union_specifier, struct_declarator),
7271         * src/SDCCsymt.h,
7272         * src/SDCCsymt.c (promoteAnonStructs): support anonymous struct/union
7273
7274 2004-03-03 Hans Dorn <hjdorn AT users.sourceforge.net>
7275
7276         * src/pic16/gen.c (gencjne): fixed for right=REG / left=LIT
7277
7278 2004-02-03 Vangelis Rokas <vrokas AT otenet.gr>
7279
7280         * src/pic16/ralloc.c (newReg): fixed bug #908929
7281
7282 2004-03-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7283
7284         * src/ds390/gen.c: added missing #include "main.h"
7285
7286 2004-03-02 Vangelis Rokas <vrokas AT otenet.gr>
7287
7288         * src/pic16/device.c (checkAddSym): NEW, adds a symbol to set while
7289         checking if symbol is already in set,
7290         * src/pic16/device.h: prototype for checkAddSym,
7291         * src/pic16/gen.c: (_G): added entry interruptvector,
7292         * (assignResultValue): removed some commented out lines,
7293         * (genFunction): check for ISR via sym->type, absolute section for
7294         interrupt code is created via a new pBlock, the goto instruction is
7295         placed now correctly at the interrupt vector position, changed all
7296         references from ivec to _G.interruptvector,
7297         * WREG,STATUS,BSR are not saved in stack upon an entry to interrupt
7298         is the interrupt is a high priority one, same for return from ISR,
7299         * src/pic16/glue.c: changed all calls of addSetHead for publics and
7300         externs to calls of checkAddSym,
7301         * src/pic16/pcode.c (pic16_pBlockConvert2*): emit warning when
7302         pic16_pcode_verbose flag is set,
7303         * src/pic16/pcode.h: extern to pic16_pcode_verbose,
7304         * src/pic16/pcoderegs.c: message about how many registers are saved
7305         will only be emitted if pic16_pcode_verbose flag is set,
7306
7307 2004-03-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7308
7309         * src/ds390/ralloc.h,
7310         * src/ds390/ralloc.c (ds390_regWithIdx),
7311         * src/ds390/gen.c (emitcode),
7312         * src/ds390/main.h,
7313         * src/ds390/main.c (instructionSize, ds390newAsmLineNode, updateOpRW,
7314         ds390opcodeCompare, asmLineNodeFromLineNode, getInstructionSize,
7315         ds390operandCompare, getRegsRead, getRegsWritten,
7316         initializeAsmLineNode): customized instruction size calculation for
7317         ds390, started basis for some register optimizations
7318         * src/ds390/gen.c (gen390Code, emitcode): associate iCodes with
7319         corresponding assembly output
7320         * src/ds390/gen.c (genFunction, genEndFunction): added case to handle
7321         missing push/pop of r0/r1. Optimized push/pops
7322
7323 2004-03-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7324
7325         * src/mcs51/main.c (instructionSize): fixed ACALL size
7326         * src/mcs51/main.c (updateOpRW): fixed bug with @dptr, @a+dptr operands
7327
7328 2004-03-01 Vangelis Rokas <vrokas AT otenet.gr>
7329
7330         * src/pic16/device.c (pic16_dump_section): fixed a bug that allowed
7331         the sorting of rlist with NULL elements
7332         * (print_idataType, print_idata): NEW to create idata sections
7333         * src/pic16/device.h: idataSymSet new variable
7334         * src/pic16/gen.c (genFunction): fixed some bugs in string
7335         comparing, improved the absolute section creation for ISRs,
7336         added FSR0L/FSR0H in registers that are saved in an ISR,
7337         * (genInline): fixed the processing of inline snippets,
7338         now they undergo no process by the peephole optimizer
7339         * src/pic16/glue.c (pic16emitRegularMap): symbols with initialiser
7340         are placed in idataSymSet,
7341         * (pic16emitStaticSeg): extern symbols are added in externs,
7342         * src/pic16/ralloc.c (pic16_allocDirReg): work around to reduce bank
7343         switching when aboslute variables are placed in access bank memory
7344         * (pic16_writeUsedRegs): added call to pic16_dump_idata,
7345         * (packRegsForSupport,packRegsForAccUse,packRegsForOneuse):
7346         commented out with #if,
7347         * (pic16_packRegisters): reintroduce the check for CAST because some
7348         symbols are not correctly handled,
7349         * src/pic16/pcode.h: changed the definition of pCodeAsmDir to hold a
7350         pCodeInstruction instead of pCode,
7351         * src/pic16/pcode.c (pic16_newpCodeAsmDir): modified for the new
7352         pCodeAsmDir definition,
7353         * (pic16_pCode2str, genericPrint): when an AsmDir pcode has a NULL
7354         directive, then the argument directive is emitted without the leading
7355         tab, hack for inline labels which must be in the first column,
7356         * (compareLabel,pic16_findNextInstruction),
7357         * (pic16_findPrevInstruction): added case for PO_ASMDIR,
7358         * (insertBankSwitch): modified for the new pCodeAsmDir,
7359
7360 2004-03-01 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
7361         patch applied by Vangelis Rokas <vrokas AT otenet.gr>
7362
7363         * src/pic16/gen.c (pic16_popGet): case PO_DIR, adds the offset to
7364         instance,
7365         * (pushSide): commented out with #if,
7366         * (assignResultValue): fixed some typos in saving
7367         registers,
7368         * (genPcall): FIXED and sync'ed with genCall,
7369         * (genDataPointerGet,genDataPointerSet): using offset not leoffset
7370         * (genNearPointerGet): fixed to handle some more cases,
7371         implementation scheme via table reads,
7372         * (genConstPointerGet): modified to access code memory correct,
7373         * (genCodePointerGet,genNearPointerSet,genGenPointerSet): modified
7374         and improved to handle some cases
7375         * glue.c (printIvalType,printIvalChar,emitStaticSeg): use "DB"
7376         instead of "RETLW" for init data
7377         * src/pic16/ralloc.c (pic16_allocDirReg): warning when a symbol is
7378         not IN_DIRSPACE, work around to reduce bank switching when aboslute
7379         variables are placed in access bank memory (<0x80 and >=0xf80),
7380         * src/pic16/pcode.c: added SFRs TBLPTR, TABLAT, added opcodes TBLRD,
7381         TBLRD_POSTINC,TBLRD_POSTDEC,TBLRD_PREINC,TBLWT,TBLWT_POSTINC,
7382         TBLWT_POSTDEC,TBLWT_PREINC
7383         * Fixed initialisation of BSR, set "alias" for SSAVE to "0"
7384         * (pic16_emitDB,pic16_flushDB): New functions to generate "DB"
7385         directives
7386         * (pic16_pCodeConstString): use "DB" instead of "RETLW"
7387         * src/pic16/pcode.h: added TBLRD*,TBLWT*, added pic16_emitDB,
7388         pic16_flushDB, made pic16_newpCodeAsmDir public, added TBLPTR, TABLAT
7389         * src/pic16/ralloc.h: added IDX_BSR,IDX_TBLPTR*,IDX_TABLAT
7390
7391 2004-02-29  Borut Razem <borut.razem AT siol.net>
7392
7393         * src/Makefile.in, src/SDCCutil.c, support/Util/findme.c,
7394         support/Util/findme.h, support/Util/system.h: enhance binary relative
7395         search for lib and include by using findProgramPath()
7396
7397 2004-02-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7398
7399         * src/SDCCpeeph.h,
7400         * src/SDCCpeeph.c (pcDistance),
7401         * src/port.h,
7402         * src/mcs51/ralloc.h,
7403         * src/mcs51/ralloc.c (mcs51_regWithIdx),
7404         * src/mcs51/main.h,
7405         * src/mcs51/main.c (instructionSize, asmLineNode, updateOpRW,
7406         mcs51opcodeCompare, asmLineNodeFromLineNode, getInstructionSize,
7407         mcs51operandCompare, getRegsRead, getRegsWritten): made instruction
7408         size calculation port specific, started basis for some register
7409         optimizations
7410         * src/mcs51/gen.c (genFunction, genEndFunction): added case to handle
7411         missing push/pop of r0/r1. Optimized push/pops
7412         * src/mcs51/ralloc.c (packregisters): fixed bug #727095
7413         * device/lib/_modsint.c (_modsint),
7414         * device/lib/_modslong.c (_modslong): fixed sign of result in non-asm
7415         and stack version so regression tests pass
7416
7417 2004-02-26 Bernhard Held <bernhard AT bernhardheld.de>
7418
7419         * src/Makefile.in (dep): include SLIBOBJS in dependency check
7420         * src/SDCCast.c (decorateType): catch another small optimization
7421         with '?' operator
7422         * src/SDCCsymt.c (computeType): added comments and cosmetic changes
7423         * src/SDCCval.c (valMult, valDiv, valMod, valPlus, valMinus, valShift):
7424         modified to finally use computeType() all over SDCC,
7425         see Feature Request #877103
7426         * src/SDCCval.h: cosmetic
7427         * src/SDCCicode.c (operandOperation): fixed EQ_OP bug, now same as in
7428         valCompare(); regression tested in muldiv.c
7429         * support/regression/tests/muldiv.c (testMod): mod sign follows
7430         dividend only
7431
7432 2004-02-23 Bernhard Held <bernhard AT bernhardheld.de>
7433
7434         * src/SDCCast.c (decorateType): fixed bug #902362
7435         * doc/INSTALL.txt: fixed install instructions for win32
7436
7437 2004-02-21 Bernhard Held <bernhard AT bernhardheld.de>
7438
7439         * device/include/Makefile.in (install): fixed by replacing spaces
7440         by tabs
7441         * doc/README.txt,
7442         * doc/INSTALL.txt: updated for release
7443         * doc/sdccman.lyx: added warning for --xstack being buggy
7444
7445 2004-02-20 Bernhard Held <bernhard AT bernhardheld.de>
7446
7447         * src/pic16/ralloc.c (packRegsForAccUse):  disabled functions with #if
7448         to eliminate build warnings.
7449         * src/pic16/gen.c (pic16_popGet): fixed for gcc 2.95.4
7450
7451 2004-02-20 Vangelis Rokas <vrokas AT otenet.gr>
7452            Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
7453
7454         * doc/sdccman.lyx: removed PIC16 from PIC16 Port Specific Options,
7455         removed -penable-stack, added comment for stack pragma, added
7456         warning for not initializing the stack/frame registers, removed
7457         comment at interrupts section
7458
7459         Stack is made permanent, there is no ability to disable stack usage.
7460         * src/pic16/device.h,
7461         * src/pic16/device.c: removed all references to USE_STACK macro,
7462         * src/pic16/device.c (pic16_dump_section): when no elements in
7463         rlist, free rlist before return,
7464         * (pic16_dump_int_registers): NEW, internal registers are a new set
7465         of general purpose registers reused by each function,
7466         * (checkAddReg): returns 1 if registers is added to set,
7467         * (pic16_groupRegistersInSection): when a registers is of type
7468         PO_GPR_TEMP add it in pic16_int_regs and not in pic16_rel_udata,
7469         * src/pic16/device.h: memRange and Assigned Memory are deleted,
7470         SRCASECMP macro is moved here from device.c
7471         * src/pic16/genarith.c (pic16_pCodeOpType): added cases for
7472         PO_PCLATU, PO_PRODL, PO_PRODH,
7473         * (pic16_pCodeOpType, genMinus,
7474         changed compares to "a" register, with AOP_ACC,
7475         * (pic16_genPlus): fixed some bugs and indented properly,
7476         * (pic16_addSign): changed size to size+offset in the MOVWF
7477         instruction,
7478         * (pic16_genUMult8XLit_8): NEW, uses processor MULLW instruction to
7479         multiply 8-bit operand by literal, result is 8-bit,
7480         * (pic16_genUMult8X8_8): NEW, uses processor MULWF instruction to
7481         multiply 2 8-bit operand, result is 8-bit,
7482         * (pic16_genMult8X8_8): modified to call genUMult8X*_8 functions and not
7483         genUMult8X*_16,
7484         * src/pic16/gen.c: changed accUse to contain WREG only,
7485         * (pic16_emitcomment): renamed to pic16_emitpcomment,
7486         * (aopForSym): allocated dir register when IN_DIRSPACE(space) is,
7487         true, do not use immediate addressing any more unless sym is a
7488         pointer in codespace,
7489         * (aopForRemat): do not use immediate addressing when symbol not in
7490         codespace and when symbol's address is requested,
7491         * (aopOp): for-loop in if(sym->accUse) is modified for the new
7492         accUse size (= 1),
7493         * (aopGet): added case for AOP_ACC and don't return "accumulator
7494         bug" but WREG instead,
7495         * (popGetTempReg): pushes contents of temporary register in stack,
7496         * (popReleaseTempReg): pops contents of temporary register from
7497         stack. Use popGetTempReg/popReleaseTempReg in aligned pairs,
7498         * (pic16_popGet): separated case AOP_ACC to return register WREG
7499         from processor registers, AOP_PCODE not checks if pcop is PO_DIR
7500         or PO_IMMEDIATE and initializes their instance/offset appropriately,
7501         * The whole issue with aopForSym,aopForRemat,popGet) is to minimize
7502         the use of immediate pointers to certain cases only.
7503
7504         * (pic16_pushpCodeOpReg, pic16_poppCodeOpReg): use pic16_popGet2p,
7505         * (pic16_loadFromReturn, pic16_storeForReturn: NEW,
7506         * (assignResultValue, genCall, genRet): modified to use the new
7507         function return value scheme with WREG,PRODL,PRODH,FSR0L and FSR0,
7508         genPcall is still broken,
7509         * (genFunction): added code to create 'A' type pBlocks when
7510         interrupt functions are generated, code not extensively tested yet,
7511         ISRs push WREG,STATUS,BSR,PRODL,PRODH,FSR0L,FSR0H registers on stack,
7512         * (genEndFunction): modified so ISRs pop stored registers from stack,
7513         * (genMultOneByte): cleanup,
7514         * (AccRsh): added flag andmask, to and result with appropriate mask,
7515         * (genUnpackBits,genPackBits): fixed and can handle bit fields,
7516         * (genDataPointerGet): fixed and reenabled its use,
7517         * (genNearDataPointerGet): bugs fixed,
7518         * (genDataPointerSet): bugs fixed,
7519         * src/pic16/genutils.c: added functions pic16_DumpValue,pic16_DumpAop,
7520         pic16_DumpSymbol, pic16_DumpOp,
7521         * src/pic16/genutils.h: function prototypes for the above functions,
7522         * src/pic16/glue.c: new flags initsfpnt, to initialize stack/frame
7523         pointers,
7524         * (pic16emitRegularMap): many many many improvements, but needs a
7525         major cleanup,
7526         * src/pic16/main.c: enable_stack in pic16_options is removed,
7527         * (_pic16_parseOptions): removed command line options -penable-stack,
7528         * (_process_pragma): emit stack symbol only when stack pragma is
7529         processed,
7530         * src/pic16/pcode.c: pic16_pc_fsr0 is removed, all operations are
7531         redirected to FSR0L/FSR0H pair,
7532         * (pic16_get_op, pic16_get_op2): modifications and improvements,
7533         * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): added
7534         cases PO_PRODL,PO_PRODH, pic16_getRegFromInstruction2 returns sane
7535         for immediates,
7536         * (insertBankSwitch): modified to handle cases like: (alfa + 1)
7537         * (dumpPicOptype): NEW,
7538         * src/pic16/pcode.h: added PO_PCLATU,PO_PRODL,PO_PRODH in enum,
7539         * src/pic16/pcoderegs.c (pCodeRegMapLiveRangesInFlow): fixed bug
7540         with movff instruction,
7541         * src/pic16/ralloc.c: renamed typeRegWithIdx to pic16_typeRegWithIdx,
7542         added pic16_int_regs, some packRegsFor* functions are commented out,
7543         because produce errors,
7544         * src/pic16/NOTES: minor modifications
7545
7546 2004-02-18  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7547
7548         * as/mcs51/aslink.h, as/mcs51/lkarea.c, as/mcs51/lkdata.c, as/mcs51/lkmain.c,
7549         as/mcs51/lkmem.c, src/SDCCglob.h, src/SDCCmain.c: added options --stack-size and
7550         --pack-iram.
7551         * doc/sdccman.lyx: described options --stack-size and --pack-iram.
7552         * as/mcs51/lkaomf51.c: fixed bug #895763
7553
7554 2004-02-17 Bernhard Held <bernhard AT bernhardheld.de>
7555
7556         * device/include/c8051f320.h: added. Contributed by Maarten Brock.
7557
7558 2004-02-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7559
7560         * doc/sdccman.lyx: added details about the HC08 storage classes and
7561         interrupts, fixed the register usage info for z80 & gbz80
7562
7563 2004-02-17 Vangelis Rokas <vrokas AT otenet.gr>
7564
7565         * doc/sdccman.lyx: added more pic16 port documentation
7566         * device/include/pic16/: added header pic18fregs.h
7567
7568 2004-02-16 Bernhard Held <bernhard AT bernhardheld.de>
7569
7570         * doc/sdccman.lyx: added Vangelis' contribution
7571
7572 2004-02-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7573
7574         * src/SDCClrange.c (rlivePoint): live range of SEND operand should
7575         extend to the next CALL or PCALL, not just to the next CALL.
7576
7577 2004-02-16 Vangelis Rokas <vrokas AT otenet.gr>
7578
7579         * src/pic16/gen.c (genInline): fixed bug #896482 with inline assembly
7580
7581 2004-02-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7582
7583         * src/mcs51/ralloc.c (packRegsForAssign, reassignAliasedSym): fixed
7584         bug #895752 and a better fix for bug #716790
7585
7586 2004-02-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7587
7588         * src/SDCCsymt.c (processFuncArgs): fixed bug #896796
7589
7590 2004-02-14 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7591
7592         * doc/sdccman.lyx: minor changes, minor changed
7593
7594 2004-02-13 Bernhard Held <bernhard AT bernhardheld.de>
7595
7596         * src/SDCCicode.c (usualBinaryConversions): removed pic16 from ports
7597         which can't handle SDCC_NEWONEBYTEOPS,
7598         (geniCodeMultiply): removed conversion from mult to shift for pic14
7599         and pic16
7600
7601 2004-02-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7602
7603         * src/hc08/gen.h,
7604         * src/hc08/gen.c (storeRegToAop, aopOp, aopAdrStr, accopWithAop,
7605         rmwWithAop): Ported my 2003-10-02 fix for bug #663539 to the hc08,
7606         thus fixing bug #895406
7607
7608 2004-02-11 Bernhard Held <bernhard AT bernhardheld.de>
7609
7610         * device/lib/_modsint.c,
7611         * device/lib/_modslong.c: sign follows divisor only
7612         * src/hc08/gen.c (genMultOneByte): if result size is 1,
7613         signs or signedness can be ignored
7614         * src/SDCCast.c (addCast): cosmetic - added lineno to CAST
7615         * src/SDCCast.c (resultTypePropagate): added even more ops: +, - and *,
7616         added optimization for IFX,
7617         (decorateType): Mult/Div/ModOneByte ops can handle all kind of signed
7618         arguments;
7619         reenabled optimization for IFX, which was removed on 2004-01-11
7620         * src/SDCCast.h: added return type IFX
7621         * src/SDCCicode.c: Mult/Div/ModOneByte ops can handle all kind of signed
7622         arguments with 8 or 16 bit results; pic14 and pic16 ports use old
7623         promotion behaviour; env. var. SDCC_NEWONEBYTEOPS selects the new,
7624         SDCC_OLDONEBYTEOPS selects the old behaviour
7625         * src/SDCCsymt.c (computeType): type2 can be NULL (for LEFT_OP);
7626         changed again and commented promotion rule
7627         * src/SDCCval.c (valDiv): promotion no longer necessary
7628         * src/ds390/gen.c (genMultOneByte) (genDivOneByte) (genModOneByte),
7629         * src/mcs51/gen.c (genMultOneByte) (genDivOneByte) (genModOneByte):
7630         rewritten
7631         * support/regression/tests/onebyte.c: added
7632
7633 2004-02-11 Vangelis Rokas <vrokas AT otenet.gr>
7634
7635         * gen.c (genInline): reverted to old code for assemnling inline
7636         code because of bug reported James Chadd
7637
7638 2004-02-10 Vangelis Rokas <vrokas AT otenet.gr>
7639
7640         * ralloc.h: missing declarations from previous patch,
7641         seems that patch for ralloc.h was never applied, fixed
7642
7643 2004-02-10 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
7644            patch committed by Vangelis Rokas <vrokas AT otenet.gr>
7645
7646         * pcode.c,
7647         * pcode.h,
7648         * ralloc.h: added FSR0L, FSR0H and other missing PIC16 SFR's for
7649         indirect addressing. Marked FSR0 as deprecated
7650         * gen.c (pointerCode): commented out, not needed now
7651         (pic16_popGet2p): new MOVFF helper function
7652         (genGenPointerGet),
7653         (genGenPointerSet): reimplemented with MOVFF and POSTINC0
7654         (shiftRLong): removed duplicate debugging info
7655
7656 2004-02-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7657
7658         * src/ds390/gen.c (genNearPointerGet),
7659         * src/mcs51/gen.c (genNearPointerGet): allow the genDataPointerGet()
7660         optimization with bits, but not bitfields.
7661         * src/ds390/ralloc.c (packRegisters),
7662         * src/mcs51/ralloc.c (packRegisters): fixed bug #884453 & #880832
7663
7664 2004-02-09 Bernhard Held <bernhard AT bernhardheld.de>
7665
7666         * src/SDCCcse.c (algebraicOpts): copy operands before modification
7667
7668 2004-02-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7669
7670         * src/SDCCsymt.h,
7671         * src/SDCCicode.c (operandFromSymbol),
7672         * src/mcs51/ralloc.c (verifyRegsAssigned, serialRegAssign),
7673         * src/ds390/ralloc.c (verifyRegsAssigned, serialRegAssign),
7674         * src/z80/ralloc.c (verifyRegsAssigned, serialRegAssign),
7675         * src/hc08/ralloc.c (verifyRegsAssigned, serialRegAssign),
7676         * src/pic/ralloc.c (verifyRegsAssigned, serialRegAssign),
7677         * src/pic16/ralloc.c (verifyRegsAssigned, serialRegAssign): fixed
7678         bug #892038
7679         * src/SDCCast.c (createIvalStruct, createIvalArray, gatherAutoInit),
7680         * src/SDCCglue.c (emitRegularMap, printIvalStruct, printIvalArray,
7681         printIvalCharPtr, printIvalPtr, printIval, emitStaticSeg, emitOverlay)
7682         * src/SDCCsymt.c (newSymbol),
7683         * src/SDCC.y (struct_or_union_specifier, enum_specifier,
7684         enumerator_list),
7685         * src/SDCCval.h,
7686         * src/SDCCval.c (newiList): fixed bug #885705
7687
7688 2004-02-08  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7689
7690         * doc/sdccman.lyx: added section 3.1.4: sdcclib.
7691         * as/mcs51/lkmem.c: report the size of the stack in .mem file.
7692
7693 2004-02-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7694
7695         * device/include/c8051f120.h,
7696         * device/include/c8051f300.h,
7697         * device/include/c8051f310.h: added/updated header files for Silicon
7698         Laboratories (formerly Cygnal) CPUs. Contributed by Maarten Brock.
7699         * doc/sdccman.lyx: minor changes, recommended diff -Naur and diff -u
7700         in new section Submitting patches
7701
7702 2004-02-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7703
7704         * src/mcs51/gen.c (genNearPointerGet, genPagedPointerGet,
7705         genFarPointerGet, genCodePointerGet, genGenPointerGet,
7706         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
7707         genGenPointerSet),
7708         * src/ds390/gen.c (genNearPointerGet, genPagedPointerGet,
7709         genFarPointerGet, genCodePointerGet, genGenPointerGet,
7710         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
7711         genGenPointerSet),
7712         * src/pic16/gen.c (genNearPointerGet, genPagedPointerGet,
7713         genFarPointerGet, genCodePointerGet, genGenPointerGet,
7714         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
7715         genGenPointerSet),
7716         * src/pic/gen.c (genNearPointerGet, genPagedPointerGet,
7717         genFarPointerGet, genCodePointerGet, genGenPointerGet,
7718         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
7719         genGenPointerSet): fixed bug #892400
7720         * src/pic16/gen.c (genSkipz, AccRol): disabled functions with #if 0
7721         to eliminate build warnings.
7722         * src/SDCCast.c (processParms),
7723         * src/SDCC.y (function_declarator2, declarator2_function_attributes):
7724         fixed bug 751859
7725         * support/valdiag/valdiag.py: added GCC to the list of defines active
7726         when compiling with gcc
7727
7728 2004-02-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7729
7730         * support/Util/SDCCerr.h,
7731         * support/Util/SDCCerr.c,
7732         * src/SDCCast.c (decorateType, sizeofOp): complain when sizeof is used
7733         with an incomplete type (fixed bug #883734)
7734         * src/SDCCicode.c (geniCodeCast): fixed bug #890510
7735
7736 2004-02-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7737
7738         * src/pic16/gen.c (genCmpEq, shiftRLong): fixed declarations
7739
7740 2004-02-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7741
7742         * src/SDCCast.c (decorateType),
7743         * src/SDCCicode.c (geniCodeParms, geniCodeCall): fixed bugs in my ANSI
7744         function pointer implementation
7745         * support/regression/tests/funptrs.c: added tests to verify both forms
7746         of function pointers work correctly. Added tests to verify parameters
7747         are passed in the correct order.
7748
7749 2004-02-06  Vangelis Rokas <vrokas AT otenet.gr>
7750
7751         * device.c (regCompare): registers are sorted by ascending
7752         address and increasing size,
7753         * main.c (_pic16_finaliseOptions): removed the declaration
7754         of compiler macro MCU. Now a macro of the format pic18fxxxx
7755         will be defined from the command line
7756
7757 2004-02-06  Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
7758             patch committed by Vangelis Rokas <vrokas AT otenet.gr>
7759
7760         * pcode.c (pic16initMnemonics): fixed typo in assignment to PCOP_RLNCF
7761         PCOP_RLCF was overwritten!
7762         * gen.c (genSkip): commented out calls to pic16_emitcode,
7763         * (genCmpEQ): fixed "long" compares, only high word did get compared,
7764         * (genlshTwo),
7765         * (genRRC): added debugging info,
7766         * (shiftL2Left2Result): Fixed bug, if offr > offl. Result got
7767         overwritten while shifting,
7768         * (shiftR2Left2Result): Fixed bug, if offr < offl. Result got
7769         overwritten while shifting,
7770         * (AccLsh),
7771         * (AccRsh),
7772         * (shiftLLeftOrResult),
7773         * (shiftRLeftOrResult),
7774         * (shiftRLong),
7775         * (shiftLLong): Implemented with pic16_emitpcode
7776         * (genlshFour): Replaced pic16_aopPut with pic16_emitpcode,
7777         * (genLeftShift): Fixed bug, operand for shift by variable always
7778         was "and"ed with 0x0f,
7779         * (genLeftShiftLiteral),
7780         * (genrshTwo),
7781         * (genRightShiftLiteral): added debugging info,
7782         * (genrshFour): added comment,
7783         * (genRightShift): determined signedness from operand "left"
7784         instead of "result"
7785
7786 2004-02-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7787
7788         * src/SDCCicode.c (geniCodeParms),
7789         * src/SDCCast.c (decorateType, processParms): support for ANSI-style
7790         function pointers, fixed function pointer bugs #861242 and #861896
7791
7792 2004-01-31 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7793
7794         * device/include/c8051f000.h,
7795         * device/include/c8051f120.h,
7796         * device/include/c8051f300.h: added header files for Silicon
7797         Laboratories (formerly Cygnal) CPUs. Contributed by Maarten Brock.
7798
7799 2004-01-31 Bernhard Held <bernhard AT bernhardheld.de>
7800
7801         * src/SDCCast.c (processParams): added new type flow and restructured
7802         (gatherAutoInit): added new type flow
7803         (addCast): cosmetic changes
7804         (getLeftResultType): added new type flow for array indices, patch
7805         provided by Stas, see FR #877103
7806         (decorateType): SDCC_NEWTYPEFLOW removed, new type flow is now standard;
7807         array index patch by Stas
7808         * src/SDCCast.h: added prototype getResultTypeFromType()
7809         * src/SDCCval.h,
7810         * src/SDCCval.c (resolveIvalSym) (resolveIvalSym),
7811         * src/pic/glue.c (pic14emitStaticSeg),
7812         * src/pic16/glue.c (pic16emitStaticSeg),
7813         * src/SDCCglue.c (emitRegularMap) (emitStaticSeg): added new type flow
7814         for initialization of symbols
7815         * src/SDCCicode.c (geniCodeArray): removed warning W_ARRAY_BOUND
7816         * support/Util/SDCCerr.h:
7817         * support/Util/SDCCerr.c: replaced W_ARRAY_BOUND by W_IDX_OUT_OF_BOUNDS
7818         * .version: bumped version number to 2.3.8
7819         * device/include/Makefile.in (install),
7820         * doc/Makefile (install): changed to 'rm `find ...`' construct to
7821         avoid warnings
7822
7823 2004-01-30 Bernhard Held <bernhard AT bernhardheld.de>
7824
7825         * support/regression/tests/libmullong.c: fixed for 64 bit hosts
7826         Slade Rich fixed an optimization bug
7827         * src/pic/pcodepeep.c,
7828         * src/pic/pcoderegs.c
7829         * doc/Makefile (install): added test for directory
7830
7831 2004-01-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7832
7833         * src/mcs51/ralloc.c (getRegPtr, getRegGpr),
7834         * src/ds390/ralloc.c (getRegPtr, getRegGpr),
7835         * src/pic/ralloc.c (getRegPtr, getRegGpr),
7836         * src/pic16/ralloc.c (getRegPtr, getRegGpr),
7837         * src/z80/ralloc.c (getRegGpr): fixed bug #883361
7838         * as/mcs51/asexpr.c (term),
7839         * as/hc08/asexpr.c (term): fixed bug #887146
7840
7841 2004-01-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7842
7843         * src/z80/gen.c (genMult): handle single byte result product
7844         * src/SDCCopt.c (killDeadCode): never convert ADDRESS_OF iCode to
7845         DUMMY_READ_VOLATILE (fixed bug #886367)
7846
7847 2004-01-27 Bernhard Held <bernhard AT bernhardheld.de>
7848
7849         * support/regression/tests/libmullong.c: fixed logic, on little endian
7850         hosts we ended without a mullong_wrapper()
7851
7852 2004-01-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7853
7854         * ChangeLog: changed "@" to " AT " in hopes of reducing spam and
7855         virus/worm forged address usage.
7856
7857 2004-01-27 Bernhard Held <bernhard AT bernhardheld.de>
7858
7859         Fixed promotion, it should be done on AST level:
7860         * src/SDCCast.c (addCast): added promotion to int
7861         (decorateType): updated call to upCast()
7862         * src/SDCCicode.c (geniCodeLeftShift): removed call to
7863         usualUnaryConversions()
7864
7865 2004-01-26  Michael Hope  <michaelh AT juju.net.nz>
7866
7867         * support/regression/tests/literalop.c (mulWrapper): Added a
7868         wrapper to remove integer overflow warnings.
7869
7870         * support/regression/tests/float_trans.c: Made work on host.
7871
7872         * support/regression/ports/ucz80/spec.mk (UCZ80): Made detect the
7873         location of sz80.
7874
7875         * support/regression/generate-cases.py (main): Changed from inline
7876         to a main method.
7877
7878         * doc/Makefile (install): Changed to depth first to get rid of
7879         missing directory install warning.
7880
7881         * as/Makefile (install-doc): Made work on Mac.
7882
7883 2004-01-25 Bernhard Held <bernhard AT bernhardheld.de>
7884
7885         * src/SDCCast.c: added an additional type flow in decorateType() of
7886         opposite direction, see feature request #860006; it's enabled at runtime
7887         by setting the environment variable SDCC_NEWTYPEFLOW
7888         * src/SDCCast.h: changed prototype of decorateType()
7889         * src/SDCCglue.c (emitRegularMap): updated call of decorateType()
7890         * src/SDCCicode.c (geniCodeDivision) (geniCodeModulus): promotion from
7891         'char' to 'int' can be omitted, if both operands are 'unsigned char';
7892         see feature request #877103
7893         * src/SDCCval.c: updated call of decorateType()
7894         (valBitwise): fixed bug #882876
7895         (valMinus): added promotion
7896         (valLogicAndOr): result is unsigned
7897         (cheapestVal) (constVal): literals from 0...255 are 'unsigned char' now
7898         * src/SDCCsymt.c (computeType),
7899         * src/mcs51/gen.c (genCmpGt) (genCmpLt): literal 'unsigned char'
7900         must not cause an unsigned operation
7901         * src/pic/glue (pic14emitRegularMap),
7902         * src/pic16/glue.c (pic16emitRegularMap): updated call of decorateType()
7903
7904 2004-01-23 Bernhard Held <bernhard AT bernhardheld.de>
7905
7906         * src/pic/pcode.c (PCodeID): commented out left over debug code
7907
7908 2004-01-20 Bernhard Held <bernhard AT bernhardheld.de>
7909
7910         * support/valdiag/tests/overflow.c: added shift tests
7911         * src/pic/device.c,
7912         * src/pic/gen.c,
7913         * src/pic/gen.h,
7914         * src/pic/glue.c,
7915         * src/pic/main.c,
7916         * src/pic/pcode.c,
7917         * src/pic/pcode.h,
7918         * src/pic/pcodepeep.c,
7919         * src/pic/pcoderegs.c,
7920         * src/pic/ralloc.c,
7921         * src/pic/ralloc.h: applied patch from Slade Rich;
7922         added support for multiple code pages and multiple RAM banks on the
7923         PIC 14 port. The ASM files now no longer simply assume all the
7924         code / RAM are in the same page / bank. This means the linker can
7925         safely allocate code/RAM of separate ASM files to different pages/banks.
7926         * doc/sdccman.lyx: added Slade's tips
7927         * src/mcs51/peeph.def: fixed bug #880768
7928
7929 2004-01-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7930
7931         * src/hc08/ralloc.c (rematStr): fixed bug #879282
7932         * src/SDCCast.c (decorateType): fixed bug #880197
7933
7934 2004-01-20  Michael Hope  <michaelh AT juju.net.nz>
7935
7936         * sim/ucsim/gui.src/serio.src/main.cc: Fixed unconditional use of
7937         getopt.h.
7938
7939         * debugger/mcs51/cmd.c (getValBasic): Changed strtof to strtod as
7940         strtof is not part of C89 and isn't included with Mac OS X.
7941
7942 2004-01-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7943
7944         * src/hc08/gen.c (genPlusIncr, genUminus, genMinusDec, genCmp,
7945         shiftL2Left2Result): fixed bug #879326
7946         (genAnd, genOr, genXor): fixed bug when result was of type AOP_CRY
7947         (genMultOneByte): fixed bug in signed vs unsigned multiplication
7948         * sim/ucsim/hc08.src/inst.cc (inst_clr): added missing effective
7949         address fetch for clr instruction
7950         * device/lib/hc08/_mulint.c: created optimized assembly version
7951         * src/SDCCdflow.c (computeDataFlow): fixed bug #878209
7952
7953 2004-01-19 Bernhard Held <bernhard AT bernhardheld.de>
7954
7955         * src/SDCCicode.c (geniCodeArray): applied patch from Stas Sergeev
7956         proposed in FR #877103
7957
7958 2004-01-18 Bernhard Held <bernhard AT bernhardheld.de>
7959
7960         * src/SDCCval.c (cheapestVal): added missing checks
7961         * src/SDCCicode.c (usualBinaryConversions): fixed condition
7962         * src/SDCCicode.c (geniCodeAdd): fixed part of bug #877103
7963
7964 2004-01-16 Klaus Flittner <klaus_flittner AT gmx.de>
7965
7966         * src/ds390/gen.c (aopOp3): fixed the assignment of different dptrs to
7967         equal operands
7968
7969 2004-01-16 Vangelis Rokas <vrokas AT otenet.gr>
7970
7971         * src/SDCCmain.c (linkEdit): variable $3 of the linker command is
7972         loaded with the linker search paths (-L arguments) and the libraries
7973         to be linked with the current source (-l arguments). Changes
7974         currently will affect only the pic16 port.
7975         * src/pic16/main.c (_pic16_finaliseOptions): add to the linker
7976         include path the port specific paths and port specific libraries,
7977         * gplink command now contains the $3 argument,
7978         * src/pic16/device.h,
7979         * src/pic16/device.c,: structure PIC_device is made public and
7980         renamed to PIC16_device, the same for variable Pics which is renamed
7981         to Pics16. Updated all references to them.
7982         * src/pic16/glue.c (pic16glue): corrected bug with code
7983         initialization which bypassed the variable initializations block.
7984
7985         * device/lib/pic16/Makefile.rules: removed --penable-stack from
7986         COMPILE_FLAGS and added the --nostdinc option
7987
7988 2004-01-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7989
7990         * device/include/mc68hc908jb8.h: Register defs for another member
7991         of the hc08 family. Contributed by Bjorn Bringert - thanks!
7992
7993 2004-01-14 Vangelis Rokas <vrokas AT otenet.gr>
7994
7995         Documenting changes from previous commits.
7996         * configure.in (version 1.56),
7997         * configure: initially I've added AC_CONFIG_SUBDIRS(device/lib/pic16)
7998         when generating output files to configure the pic16 library,
7999         but now I've commented it out, since gputils aren't installed in the
8000         SF compile farm, so library won't compile
8001
8002         * device/lib/Makefile.in (version 1.56): initially I've added in
8003         target 'all' the prerequestive 'model-pic16' so it compiled the
8004         pic16 library, but now I've commented it out for the same reasons
8005         above,
8006         * added targets 'model-pic16' and 'objects-pic16' to compile the
8007         library
8008         * added target 'port-specific-objects-pic16' to handle the
8009         generated libraries and copy them into the build/ directory
8010         * added target 'clean-intermediate-pic16' to clean intermediate
8011         files into pic16 directory
8012         * in target 'installdirs' added line to create directory pic16 in
8013         the installation path
8014
8015         * device/include/Makefile.in (version 1.11): in target 'install'
8016         added lines to copy all header files to installation path,
8017         * in target 'installdirs' added line create directory for pic16
8018         headers in the installation path
8019
8020 2004-01-13 Klaus Flittner <klaus_flittner AT gmx.de>
8021
8022         * src/ds390/gen.c (genCall): fixed a double use of acc and b after
8023          a function call
8024
8025 2004-01-13 Bernhard Held <bernhard AT bernhardheld.de>
8026
8027         * configure,
8028         * device/lib/configure.in,
8029         * device/lib/configure: fixed for autoconf 2.57
8030
8031 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8032
8033         * src/z80/main.c (_parseOptions): fixed the portmode= command line
8034         option so that it actually works. Made it specific to the z80, since
8035         the gbz80 doesn't have these kinds of I/O ports.
8036
8037 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8038
8039         * device/include/z180.h,
8040         * device/lib/_memcpy.c,
8041         * device/lib/_memmove.c,
8042         * device/lib/_mulint.c,
8043         * device/lib/ser_ir.c,
8044         * device/lib/ser_ir_cts_rts.c,
8045         * device/lib/_strcmp.c,
8046         * device/lib/_strtok.c: fixed pragmas to non-deprecated form
8047         * src/z80/main.c (_process_pragma): add support for pragmas bank and
8048         portmode; added deprecation warning for bank= and protmode= forms.
8049         Also, guard against buffer overflow.
8050         * src/z80/gen.c (aopGet): generate better code for sfr banked read
8051
8052 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8053
8054         * src/hc08/main.c (_hc08_genAssemblerPreamble): fixed bug #875487. Also
8055         changed interrupt vector table generation to only emit declared vectors.
8056         * device/include/Makefile.in: added missing backslash
8057         * device/lib/pic16/Makefile.rules: add $(MODELFLAGS) to $(CFLAGS)
8058
8059 2004-01-13 Vangelis Rokas <vrokas AT otenet.gr>
8060
8061         Mainly changes to support compilation of the device libraries
8062         * src/pic16/device.c: stack is allocated via symbol and not
8063         via literal number. The symbol is placed in the corresponding
8064         position of the data ram
8065         * (pic16_dump_section): relocatable and absolute uninitialized
8066         data are now emitted in sorted order to reduce section naming,
8067         * src/pic16/ralloc.c (newReg): fixed bug with SFR's that
8068         weren't marked as being in the access bank,
8069
8070 2004-01-13 Vangelis Rokas <vrokas AT otenet.gr>
8071
8072         Added portion of GNU PIC Library under the directory
8073         device/include/pic16 and device/lib/pic16. These files
8074         contain the declarations of SFRs for the PIC18Fxx2 devices.
8075         The directory is initialized via configure from toplevel.
8076
8077 2004-01-12 Klaus Flittner <klaus_flittner AT gmx.de>
8078
8079         * src/ds390/gen.c (operandsEqu): fixed a little typo, that prevented
8080         the spilllocations to be compared correctly
8081
8082 2004-01-12 Bernhard Held <bernhard AT bernhardheld.de>
8083
8084         * src/SDCCast.c (decorateType): fixed bug introduced today
8085
8086 2004-01-12  Borut Razem <borut.razem AT siol.net>
8087
8088         * src/SDCC.lex, support/Util/SDCCerr.h, support/Util/SDCCerr.c,
8089         doc/sdccman.lyx: upper case pragmas are deprecated
8090
8091 2004-01-12 Bernhard Held <bernhard AT bernhardheld.de>
8092
8093         * src/SDCCast.c (decorateType): replacing 'ul > 0' by  '!ul' results
8094         in simpler and even better code
8095
8096 2004-01-11 Bernhard Held <bernhard AT bernhardheld.de>
8097
8098         * src/SDCCicode.c (operandOperation): fixed bug #874819
8099         * src/SDCCast.c (decorateType): fixed
8100         char foo (unsigned long ul) { return ul > 0; }
8101
8102 2004-01-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8103
8104         * doc/sdccman.lyx: Moved and added some sections, small changes
8105         all over. Telling LaTeX to be less strict with word spacing
8106         to better keep the right margin. Changed some notes about
8107         maintainance of the ports in section 3.2.1 - is it OK like this?
8108
8109 2004-01-11 Vangelis Rokas <vrokas AT otenet.gr>
8110
8111         SDCC source changes:
8112         * src/SDCCopt.c (cntToFcall, cnvToFloatCast, cnvFromFloatCast,
8113         convilong): modified to inform the pic16 port that builtin functions
8114         are external
8115
8116         PIC16 PORT specific changes:
8117         * src/pic16/device.c pic16_dump_equates() added,
8118         processor registers declared internally by the port are emitted in
8119         the translation as equates,
8120         * src/pic16/gen.c: inline code is passed unprocessed to the
8121         translation,
8122         * (pic16_popGetLit2): fnuction modified to take second operand as
8123         pCodeOp pointer and not as literal,
8124         * (popRegFromIdx): prefixed with pic16_,
8125         * (pic16_popCombine2): modified to receive already allocated pCode
8126         operands,
8127         * (pic16_pushpCodeOpReg, pic16_poppCodeOpReg): added
8128         * (genFunction): initializes local stack frame and pushes on stack
8129         all the registers used by this function,
8130         * (genEndFunction): restores all registers from stack and restores
8131         stack frame,
8132         * src/pic16/glue.c (pic16emitRegularMap): various changes and
8133         improvements,
8134         * (pic16glue): changed the program startup sequence,
8135         * added new dbName code 'A' for functions placed in absolute section
8136         * src/pic16/main.c: added function attribute _naked,
8137         * added pragma 'code' to place a fnuction at an absolute address,
8138         * added command line arguments --debug-ralloc and --pcode-verbose,
8139         * (_pic16_finiliseOptions): options.all_callee_saves is set by default
8140         * src/pic16/pcode.c (pic16_pBlockConvert2Absolute) added,
8141         * (pic16_newpCodeOpLit2): modified to take the second operand as
8142         pCodeOp pointer,
8143         * (pic16_printpBlock): modified to emit each function in a separate
8144         section,
8145         * (pic16_get_op): modified to use the gpasm modifiers LOW,HIGH and
8146         UPPER for immediate operands,
8147         * src/pic16/pcodepeeph.c: added peephole support for the LFSR
8148         instruction,
8149         * src/pic16/peeph.def: all peepholes with movff are commented out,
8150         because there is a problem in the pcode peep optimizer,
8151         * src/pic16/ralloc.c: the register allocator can now reuse local
8152         function symbols for another function. This saves register usage.
8153         * src/pic16/ralloc.h: added flag isLocal in structure regs,
8154
8155         Added file src/pic16/NOTES with information about program writing on
8156         the current port version.
8157
8158 2004-01-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8159
8160         * src/mcs51/peephole.def: added peepholes 177.c,d (redundant moves)
8161         and peephole 252 (array access)
8162
8163 2004-01-09  Borut Razem <borut.razem AT siol.net>
8164
8165         * src/SDCCmain.c : fixed #872250: -l command line defined library
8166           files are scanned before standard library files
8167
8168 2004-01-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8169
8170         * src/SDCCast.c (decorateType): fixed bug #874046
8171
8172 2004-01-09  Borut Razem <borut.razem AT siol.net>
8173
8174         * support/scripts/sdcc.nsi: remove previous installation
8175
8176 2004-01-09 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8177
8178         * src/SDCCglue.c (createInterruptVect): don't append 7(5) padding
8179         bytes for last interrupt vector (mcs51)
8180         * sdcc.spec: fixed typo
8181
8182 2004-01-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8183
8184         * src/mcs51/gen.c (genFunction, genEndFunction, genReceive, getTempRegs,
8185         gen51Code): more efficient parameter receive for --model-large
8186         ("bug" #845294)
8187
8188 2004-01-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8189
8190         * src/ds390/main.c,
8191         * src/z80/main.c: added missed needLinkerScript flags (more than
8192         one port structure defined in these file)
8193         * src/ds390/gen.c (aopForSym, aopOp, operandsEqu, aopOp3): fixed
8194         bug #795325
8195
8196 2004-01-08 Vangelis Rokas <vrokas AT otenet.gr>
8197
8198         * src/SDCCmain.c: removed various references to DEFAULT_PORT
8199         * src/port.h: added flag needLinkerScript in port->linker
8200         structure to inform whether to create a .lnk file or not,
8201         * src/avr/main.c,
8202         * src/ds390/main.c,
8203         * src/hc08/main.c,
8204         * src/mcs51/main.c,
8205         * src/pic/main.c,
8206         * src/pic16/main.c,
8207         * src/xa51/main.c,
8208         * src/z80/main.c: changed appropriately to configure
8209         needLinkerScript flag
8210         * src/pic/gen.c,
8211         * src/pic16/gen.c (genAddrOf): fixed bug #863624
8212         * src/pic/glue.c: added variable udata_section_name to
8213         override default uninitialized data segment definition for
8214         devices only with SHAREBANK memory (reported from Erik Epetrich)
8215         * (pic14emitOverlay): modified to emit a commented overlay segment
8216         directive when no overlay data exist
8217         * (picglue): modified to emit uninitialized data segment
8218         according to udata_section_name
8219         * src/pic/main.c (_pic14_parseOptions): added command line
8220         options --udata-section-name=[name] to override default
8221         udata definition name
8222         * modified _linkCmd and _asmCmd to include compiler passed
8223         arguments via -W option
8224         * src/pic16/main.c: added $l in _asmCmd, changed extension for
8225         object file from '.rel' to '.o' in port->linker structure,
8226         changed size of fptr from 2 to 3 in port structure
8227
8228 2004-01-07  Borut Razem <borut.razem AT siol.net>
8229
8230         * support/scripts/sdcc.nsi: update PATH
8231         * support/scripts/sdcc.ico: craeted
8232
8233 2004-01-07 Bernhard Held <bernhard AT bernhardheld.de>
8234
8235         * device/include/Makefile.in: fix install
8236         * doc/Makefile: fix install
8237
8238 2004-01-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8239
8240         * src/SDCCsymt.c (processFuncArgs): fixed superflous allocation noted
8241         in bug #860505
8242         * src/SDCCmem.c (printAllocInfoSeg, printAllocInfo): minor changes to
8243         how the function variable allocation summary is displayed; also
8244         include information about variables allocated to the overlay
8245         segment
8246
8247 2004-01-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8248
8249         * as/mcs51/lkmain.c: Help about -Y option
8250         * as/mcs51/lkarea.c: Fixed gcc warnings
8251
8252 2004-01-06 Bernhard Held <bernhard AT bernhardheld.de>
8253
8254         * src/SDCCval.c (valShift): changed from 16 to 32 bit shift count,
8255         fixed warning
8256         * support/valdiag/tests/overflow.c: added
8257         * src/SDCCast.c (decorateType),
8258         * src/SDCCicode.c (geniCodeLeftShift): added promotion to int for
8259         LEFT_OP (left shift)
8260
8261 2004-01-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8262
8263         * as/mcs51/lkmain.c: stack must be after data when option -Y is not used
8264         (default behaviour).
8265
8266 2004-01-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8267
8268         A python script to validate compiler diagnostic messages. It can be
8269         used to verify that sdcc complains about bad c source code and
8270         gives a good location of the error.
8271         * support/valdiag/Makefile,
8272         * support/valdiag/valdiag.py,
8273         * support/valdiag/tests/*
8274
8275 2004-01-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8276
8277         * src/SDCC.y (enum_specifier, enumerator_list, opt_assign_expr),
8278         * src/SDCCsymt.c (newEnumType),
8279         * src/SDCCsymt.h
8280         * support/Util/SDCCerr.c,
8281         * support/Util/SDCCerr.h: fixed bug #871258 and some other unreported
8282         enum related bugs.
8283         * support/regression/tests/enum.c: added test for enum values that
8284         require at least 2 bytes of storage.
8285
8286 2004-01-06 Vangelis Rokas <vrokas AT otenet.gr>
8287
8288         * src/common.h: added ifndef/define/endif macros
8289         around the header file.
8290         Bug reported from Jesus Calvino-Fraga
8291
8292 2004-01-06 Bernhard Held <bernhard AT bernhardheld.de>
8293
8294         * sdcc.spec: updated
8295         * device/include/Makefile.in: don't install CVS directories
8296         * device/lib/Makefile.in: added removal of CVS directories after install
8297         * doc/Makefile: fixed install, added local_icons
8298         * sim/ucsim/gui.src/Makefile.in: fixed an old typo
8299         * src/mcs51/gen.c (genRightShift): fixed bug #870788
8300         * src/ds390/gen.c (genRightShift): fixed bug #870788
8301         * src/SDCCast.c (decorateType): fixed bug #870781
8302
8303 2004-01-06 Vangelis Rokas <vrokas AT otenet.gr>
8304
8305         PIC16 port related changes:
8306         * device.c: removed pic16_finalMapping and pic16_finalMappingSize,
8307         added variable stackPos,
8308
8309         * gen.c: genCall, assignResultValue: added support for
8310         pushing/retrieving function parameters to/from stack,
8311         genFunction,genEndFunction: setup stack frame for the
8312         generated function,
8313         genAddrOf: will be changed according to bug 863624
8314
8315         * added files genutils.c and genutils.h which contain gen*
8316         debugged and optimised functions extracted from gen.c
8317
8318         * glue.c: added variable 'externs' which holds extern symbols,
8319         pic16emitRegularMap: is modified to properly handle relocatable
8320          symbols under the new scheme,
8321         pic16createInterruptVect: is modified
8322         pic16printPublics: is modified to emit 'global' assembler directives,
8323         added pic16_printExterns to print extern symbols,
8324         pic16glue: initializes stack/frame pointer in the beginning of
8325         the assembly output. Temporary hack, will be corrected later,
8326         because gplink yet does not support stack and SDCC does not
8327         yet support a type of crt0.o object to create the final binary.
8328
8329         * Removed many lines that contain 8051 legacy code.
8330         * The code is finally placed under a 'code' directive.
8331         * Added port specific options.
8332
8333         * _process_pragma: simplified since now we do not need *special*
8334         include file to define SFR registers. But a separate header
8335         will be needed. This will be developed later.
8336         * _pic16_parseOptions: added, parses port specific options:
8337         --pgen-banksel, --obanksel=, --pomit-config-words, --pomit-ivt,
8338         --pleave-reset-vector, --penable-stack, --pstack-model, --debug-xtra
8339         --preplace-udata-with=
8340
8341         * _pic16_setDefaultOptions: modified to initialize section names,
8342         but hack is temporarly out of order since it needs improvement.
8343         * _pic16_genAssemblerPreamble: configuration words are emitted by
8344         their address instead of their name. This part is incomplete and
8345         supports only the 18Fxx2 devices. Other devices will emit an error
8346         during assembly since they do not contain the same set of config
8347         registers
8348         * _pic16_genIVT: is modified,
8349
8350         * pcode.c: added definitions for some hardware registers that are needed
8351         for stack support
8352         * added flag is2LitOp and variable pci_magic in pCodeInstruction.
8353         All PCI entries are updated. Now LFSR is supported.
8354         * Removed pic16_pciTRIS is mentioned by mdubuc in source
8355         * added pic16_newpCodeOpLit2 to support instructions with
8356         two literal arguments
8357         * pic16_pCode2str: corrected code that emits assembler instructions
8358         with two literal operands and those that have an access bit modifier
8359         * genericPrint: now PC_ASMDIR pCodes, can emit a label if it exists,
8360         this fixes a bug which caused some labels to be lost, when an
8361         assembler directive was added, i.e. banksel,
8362         * pic16_FixRegisterBanking: improved logic that causes the insertion
8363         of bank switching,
8364         * InlineFunction: functions that are called once, are not any more
8365         inlined. This can be a port option in the future,
8366
8367         * pcode.h: added pCodeOpLit2 and added variable label in pCodeAsmDir
8368
8369         * ralloc.c: added pic16_rel_udata and pic16_fix_udata variables which
8370         hold the corresponding uninitialized symbols,
8371         * pic16_allocProcessorRegister: registers have explicit marked the
8372         accessBank field,
8373         * pic16_allocInternalRegister: registers are explicit marked as
8374         not used,
8375         * pic16_writeUsedRegs: pic16_dynDirectBitRegs was missing from the
8376         processing list, so bit registers were lost,
8377         *
8378
8379         * ralloc.h: added field 'accessBank' and original symbol operand
8380         in register definition,
8381         * removed the field isMapped from register definition,
8382
8383         ** Several functions have been removed from various sources:
8384         BanksUsedFlow2,BanksUsedFlow,FixBankFlow,InstructionRegBank,
8385         pic16_addMemRange,pic16_isREGinBank,pic16_dump_map,pic16_dump_cblock
8386         isSFR,validAddress,mapRegister,assignRegister,pic16_assignFixedRegisters
8387         pic16_assignRelocatableRegisters
8388
8389         ** others have been introduced:
8390         pic16_areRegsSame,pic16_dump_section,checkAddReg,pic16_groupRegistersInSection
8391         pic16_popGetLit2,pic16_popCombine2,pushw,pushaop
8392
8393 2004-01-05 Vangelis Rokas <vrokas AT otenet.gr>
8394
8395         * support/scripts/inc2h.pl: changed definition of BIT_AT
8396         to emit 'sbit at' instead of 'bit at'. This was a request.
8397
8398         PIC16 port related preliminary changes:
8399         * gen.c: prefixed function popRegFromString with
8400         pic16_ and all references to it corrected
8401         * pcode.c: all pic16_pc_* hardware registers prefixed
8402         with underscore (_),
8403         pic16_popCopyGPR2Bit(): function sets register wasUsed=1
8404         * ralloc.c: newReg(): when register is REG_SFR then
8405         set address to rIdx,
8406         pic16_allocProcessorRegister(): marks register wasUsed=0
8407         pic16_writeUsedRegs(): added a call to assign processor
8408         registers via pic16_assignFixedRegisters
8409
8410 2004-01-04  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8411
8412         * as/mcs51/aslink.h, as/mcs51/lkarea.c, as/mcs51/lkdata.c,
8413         as/mcs51/lkmain.c, as/mcs51/lkmem.c: 8051 linker can now pack
8414         variables in unused register banks.  Also the SSEG is placed
8415         wherever there is enough space for it, and IDATA can be anywhere
8416         in internal RAM.  For now compile using -Wl-Y[stack_size].
8417         The mem file is different for this option as well, since it
8418         makes no sense of talking about DSEG lenght.
8419
8420 2004-01-02 Vangelis Rokas <vrokas AT otenet.gr>
8421
8422         * src/SDCClrange.c: fixed bug 869095 that caused segfault
8423         in certain cases, e.g. when ROM assignment, patch provided
8424         from Albert den Haan.
8425
8426 2004-01-01 Bernhard Held <bernhard AT bernhardheld.de>
8427
8428         Many signedness and type propagation fixes:
8429         * src/SDCCicode.c: made geniCodeCast() static
8430         replaced SPEC_ by IS_ (cosmetic)
8431         (operandOperation): fixed div and mod operation
8432         (usualBinaryConversions): added support for promotion of char
8433         (geniCodeMultiply): replaced (unsigned long) by (TYPE_UDWORD)
8434         (geniCodeDivision): replaced (unsigned long) by (TYPE_UDWORD)
8435         (geniCodeAdd): an array index will stay unsigned, even if promoted
8436         from char to int
8437         (geniCodeArray): ditto
8438         * src/SDCCicode.h: made geniCodeCast() static: removed prototype
8439         * src/SDCCsymt.c (computeType): added more support for char;
8440         promotion of char is selectable by promoteCharToInt, fixed signedness
8441         for all cases
8442         (powof2): replaced (unsigned long) by (TYPE_UDWORD)
8443         * src/SDCCsymt.h (powof2): replaced (unsigned long) by (TYPE_UDWORD)
8444         * src/SDCCval (val*): replaced signedness calculation by
8445         computeType()
8446         rearranged if-branches (cosmetic)
8447         (valShift): added warning W_SHIFT_CHANGED
8448         (valCompare): fixed problem with different types
8449         * src/hc08/rallo.c (leastUsedLR): fixed gcc 3.3 warning
8450         * support/regression/tests/literalop.c: added many cases
8451         * support/regression/tests/ast_constant_folding.c: changed finally to
8452         'unsigned int'
8453         * .version: new year, new version: 2.3.7
8454         * src/SDCCmain.c (main): applied patch #866468
8455         * debugger/mcs51/sdcdb.c (parseCmdLine): added -k for ucsim, patch
8456         provided by Scott Bronson
8457         * doc/sdccman.lyx: updated documentation for sdcdb
8458         updated and added chapter tips
8459
8460 2004-01-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8461
8462         * src/SDCCsymt.h: missing from yesterday's commits
8463
8464 2003-12-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8465
8466         * src/SDCC.y (struct_or_union_specifier),
8467         * support/Util/SDCCerr.c,
8468         * support/Util/SDCCerr.h: verify that struct & union tags are used
8469         as declared.
8470
8471 2003-12-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8472
8473         * src/SDCCglobl.h: missing from yesterday's commits
8474
8475 2003-12-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8476
8477         * src/SDCC.y (external_definition, type_specifier2, sfr_reg_bit,
8478         sft_attributes, struct_declaration, parameter_declaration,
8479         type_name, start_block, declaration_list),
8480         * src/SDCC.lex (check_type): support redefinition of typedef names
8481
8482 2003-12-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8483
8484         * src/mcs51/gen.c (genPlus): added special handling for 256 byte
8485         aligned xdata arrays. Erik helped me with the if clause.
8486
8487 2003-12-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8488
8489         * device/lib/ds390/tinibios.c (CpuSpeed): suppress unreachable code
8490         warning
8491
8492 2003-12-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8493
8494         * src/SDCCast.h,
8495         * src/SDCCast.c (newAst_),
8496         * src/SDCCicode.h,
8497         * src/SDCCicode.c (ast2iCode, newiCode),
8498         * src/SDCCglobl.h,
8499         * src/SDCC.y (logical_and_expr, logical_or_expr, conditional_expr,
8500         expr, statement, expression_statement, selection_statement,
8501         iteration_statement, expr_opt, jump_statement): foundation for tracking
8502         sequence points
8503         * src/SDCCopt.c (killDeadCode): fixed bug #861580 (needs the sequence
8504         point code too)
8505
8506 2003-12-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8507
8508         * support/Util/SDCCerr.c,
8509         * src/SDCCast.h,
8510         * src/SDCCast.c (createCase, createDefault, decorateType),
8511         * src/SDCClabel.c (labelUnreach),
8512         * src/SDCC.y (labeled_statement, jump_statement): More improvements
8513         to error messages.
8514         * support/Util/SDCCerr.c (werrorfl): fixed a non-standard declaration
8515         (with thanks to Stas Sergeev)
8516         * device/include/time.h,
8517         * device/lib/time.c (CheckTime): suppress unreachable code warning
8518
8519 2003-12-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8520
8521         * src/SDCCast.c (createIvalCharPtr),
8522         * src/SDCCglue.c (printChar): fixed bug #862241 (an error in my fix for
8523         bug #753752)
8524         * support/regression/tests/nullstring.c: tests for these two bugs
8525
8526 2003-12-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8527
8528         * support/Util/SDCCerr.h,
8529         * support/Util/SDCCerr.c (E_NOT_ALLOWED),
8530         * src/SDCC.y (struct_declaration, struct_or_union_specifier): complain
8531         about storage class and 'at' used inside struct or union
8532         * src/SDCCBBlock.c (iCodeFromeBBlock),
8533         * src/SDCCcse.c (ifxOptimize),
8534         * src/SDCCglue.c (emitRegularMap, initPointer, printIvalStruct,
8535         printIvalArray, printiValFuncPtr, printIvalCharPtr, printIvalPtr,
8536         printIval, emitStaticSeg, emitOverlay),
8537         * src/SDCClabel.c (deleteIfx),
8538         * src/SDCCopt.c (replaceRegEqv, eBBlockFromiCode),
8539         * src/SDCCast.c (resolveSymbols, createIvalStruct, createIvalArray,
8540         gatherAutoInit, processParms),
8541         * support/Util/SDCCerr.h,
8542         * support/Util/SDCCerr.c (werrorfl): Support for better error location
8543         reporting for post-parse errors.
8544
8545 2003-12-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8546
8547         * src/SDCCval.c (valPlus, valMinus, valShift): fixed some problems with
8548         implicit casts via union; they don't work on big endian systems
8549         (possible fix for bug #861138)
8550
8551 2003-12-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8552
8553         (committed by Erik Petrich <epetrich AT ivorytower.norman.ok.us> on Frieder's behalf)
8554         * src/mcs51/main.c: fixed the fix for bug #737001
8555
8556 2003-12-15  Borut Razem <borut.razem AT siol.net>
8557
8558         * support/scripts/sdcc.nsi: updated for NSIS 2.0 beta 4
8559
8560 2003-12-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8561
8562         * support/makebin/makebin.c: put output in binary mode
8563
8564 2003-12-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8565
8566         * src/mcs51/main.c: fixed bug #737001 for the mcs51. SDCC clears
8567         xdata and data memory on startup. Set the environment variable
8568         SDCC_NOGENRAMCLEAR to disable this.
8569         * src/mcs51/peephole.def,
8570         * src/ds390/peephole.def: using the atomic test and clear instruction jbc
8571         (allows non-interrupt and interrupt code to safely compete for a resource
8572         without the non-interrupt code having to disable interrupts)
8573
8574 2003-12-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8575
8576         * src/SDCCicode.c (geniCodeAdd),
8577         * src/SDCCast.c (decorateType): fixed bug #857753 (need to be careful
8578         with valFromType if type might be a pointer and host is big endian).
8579         * src/SDCCast.c (decorateType): unary plus compatible with all arithmetic
8580         types, not just integer types.
8581         * src/SDCCsymt.c (addSymChain): clarified error message when symbol is
8582         multiply defined with mismatching "at" address.
8583
8584 2003-12-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8585
8586         * src/ds390/main.c (PORT tininative_port): fixed bug #858416
8587         * src/SDCCglue.c (printChar, printIvalChar, emitStaticSeg),
8588         * src/SDCCast.c (createIvalCharPtr, stringToSymbol): handle strings
8589         with embedded nulls (fixed bug #753752)
8590
8591 2003-12-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8592
8593         * src/mcs51/main.c(_mcs51_genRAMCLEAR): using r0 instead of r1/r2.
8594         Apparently this did not see much testing (endless loop)
8595
8596 2003-12-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8597
8598         * src/z80/ralloc.c: set DISABLE_PACK_HL = 1 as a temporary fix to bug #855165
8599
8600 2003-12-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8601
8602         * src/SDCCdebug.c (outputDebugSymbols, outputDebugStackSymbols, dumpSymInfo):
8603         gracefully handle NULL memmap pointers
8604
8605 2003-12-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8606
8607         * src/SDCCopt.c (killDeadCode): change iCode type to DUMMY_READ_VOLATILE
8608         instead of deleting the iCode when an operand is volatile
8609         * src/z80/gen.c (genDummyRead),
8610         * src/mcs51/gen.c (genDummyRead),
8611         * src/ds390/gen.c (genDummyRead),
8612         * src/hc08/gen.c (genDummyRead): handle operands in IC_LEFT and/or IC_RIGHT,
8613         not just IC_RIGHT
8614         * src/SDCCicode.c (geniCodeCall): fixed bug #851607
8615         * src/SDCC.y: fixed bug #850420
8616
8617 2003-12-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8618
8619         Applied z80 i/o port patch from Peter Townson and fixed some operators
8620         to better handle operands in A register.
8621         * device/include/z180.h
8622         * src/SDCC.y
8623         * src/SDCCglue.c
8624         * src/z80/gen.c
8625         * src/z80/gen.h
8626         * src/z80/main.c
8627         * src/z80/peeph-z80.def
8628         * src/z80/peeph.def
8629         * src/z80/z80.h
8630
8631 2003-12-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8632
8633         * src/SDCCsymt.c (addSymChain, compareTypeExact): fixed bug #838241 again
8634
8635 2003-12-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8636
8637         * device/lib/hc08/_mullong.c: Removed extra #endif
8638
8639 2003-12-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8640
8641         * sim/ucsim/hc08.src/inst.cc,
8642         * sim/ucsim/hc08.src/hc08mac.h: fixed some problems with CC flag bits and
8643         carries from x to h
8644         * src/hc08/gen.c (aopAdrStr): fixed problem with 16 bit immediate
8645         * src/hc08/gen.c (XAccRsh): fixed problem with right shift
8646         * device/include/stdarg.h: fixed varargs for hc08
8647         * device/lib/Makefile.in,
8648         * device/lib/hc08/Makefile,
8649         * device/lib/hc08/_mulint.c,
8650         * device/lib/hc08/_mullong.c: fixed some endian problems
8651
8652 2003-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8653
8654         * sdcc/src/mcs51/gen.c (genMultOneByte): help peephole 105
8655         * sdcc/src/mcs51/peeph.def: added peephole 186.e array access in code space
8656         * device/lib/_gptrget.c,
8657         * device/lib/_gptrput.c: P2 not used any more (related to #850747, #785979)
8658
8659 2003-11-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8660
8661         * src/SDCClrange.c (findNextUseSym, rlivePoint): fixed bug #849795
8662         * src/SDCCast.c (astErrors): fixed bug #846007
8663         * src/SDCCsymt.c (checkFunction): fixed follow-up bug on bug #846007
8664
8665 2003-11-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8666
8667         * src/SDCCast.c (decorateType): disabled a transformation I added in
8668         revision 1.188 (access to fields of a structure at an absolute address);
8669         it breaks with bitfields, extern declarations, and gcse analysis.
8670         * src/SDCCopt.c (isLocalWithoutDef): if ADDRESS_OF applied to a symbol, it
8671         could be assigned through a pointer, so don't complain.
8672         * src/SDCCast.c (astErrors),
8673         * src/SDCCast.h,
8674         * src/SDCCglue.c (emitRegularMap): fixed bug #847813
8675
8676 2003-11-26 Vangelis Rokas <vrokas AT otenet.gr>
8677
8678         * src/pic16/main.c (_pic16_genIVT): fixed interrupt vector table
8679         * src/pic16/main.c (_pic16_genAssemblerPreamble): re-enabled the
8680         output of __config directives, since gpasm now supports them
8681         * src/pic16/main.c (_pic16_finaliseOptions): define MCU
8682         pre-processor macro, i.e. -DMCU=p18f452
8683         * src/pic16/ralloc.c: renamed packRegisters to pic16_packRegisters,
8684         and modified to handle 'cast' icode similarly to '=' icode
8685         * src/pic16/device.h (typedef struct PIC_device): added field
8686         'extMIface' to indicate that chip has external memory interface
8687         * src/pic16/device.c: added chips 18F248, 18F258, 18F448, 18F458,
8688         18F6520, 18F6620, 18F6680, 18F6720, 18F8520, 18F8620, 18F8680,
8689         18F8720
8690
8691 2003-11-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8692
8693         * src/SDCC.y (pointer): fixed bug #846006
8694         * support/Util/SDCCerr.c: made W_PTR_TYPE_INVALID message clearer
8695         * src/SDCCast.c (decorateType): fixed bug #846009
8696         * src/ds390/peeph.def,
8697         * src/ds390/gen.c (genAnd, genOr),
8698         * src/mcs51/peeph.def,
8699         * src/mcs51/gen.c (genAnd, genOr): fixed bug #846777
8700
8701 2003-11-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8702
8703         Fixed several common-sub-expression bugs (#772861, #768380, & #755323)
8704         * src/SDCCdflow.c
8705         * src/SDCCcse.c
8706         * src/SDCCcse.h
8707         * src/SDCCBBlock.h
8708         * src/SDCCBBlock.c
8709
8710 2003-11-23 Klaus Flittner <klaus_flittner AT gmx.de>
8711
8712         fixed bug #845089
8713         * src/SDCCbitv.h,
8714         * src/SDCCbitv.c: added function to free a bitvector
8715         * src/SDCClrange.h,
8716         * src/SDCClrange.c: added function to recompute the liveranges
8717         * src/avr/ralloc.c,
8718         * src/ds390/ralloc.c,
8719         * src/hc08/ralloc.c,
8720         * src/mcs51/ralloc.c,
8721         * src/pic/ralloc.c,
8722         * src/pic16/ralloc.c,
8723         * src/xa51/ralloc.c,
8724         * src/z80/ralloc.c: recompute the liveranges after register packing
8725
8726 2003-11-21 Klaus Flittner <klaus_flittner AT gmx.de>
8727
8728         * src/SDCCloop.c (newInduction): fixed bug #845630
8729
8730 2003-11-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8731
8732         * src/SDCCsymt.c (compareTypesExact): disabled debugging output
8733         inadvertantly left behind from my 2003-11-12 change
8734
8735 2003-11-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8736
8737         Updated headers I neglected to commit yesterday.
8738         * src/SDCClrange.h,
8739         * src/SDCCicode.h
8740
8741 2003-11-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8742
8743         * src/SDCCcse.c (algebraicOpts): fixed bug #773153
8744         * src/SDCClrange.c (rlivePoint): need to mark IC_RESULT used if POINTER_SET op
8745         * src/SDCCopt.c (eBBlockFromiCode),
8746         * src/SDCClrange.c (hashiCodeKeys, sequenceiCode, computeLiveRanges): seperated
8747         the creation of the key hash table from the sequencing so it can be used
8748         earlier (for some GCSE bug fixes still pending)
8749
8750 2003-11-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8751
8752         * src/mcs51/gen.c (genPlus): generate shortcut for adding 0xab00
8753         * support/regression/tests/addsub.c: testing genPlus shortcut
8754
8755 2003-11-15  Borut Razem <borut.razem AT siol.net>
8756
8757         * src/SDCCmain.c: fixed bug #841645: -MM command line option passed to sdcpp
8758
8759 2003-11-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8760
8761         * src/SDCCcse.c (cseBBlock): fixed bug #527779
8762         * src/SDCCcse.c (deleteGetPointers): rewrote so that the set
8763         ordering is immaterial.
8764         * src/SDCCdflow.c (mergeInExprs): fixed bug #587536
8765
8766 2003-11-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8767
8768         * src/SDCCicode.c (geniCodeAddressOf): fixed part of bug #840381
8769         * src/SDCCopt.c (replaceRegEqv, isLocalWithoutDef): fixed other part
8770         (SIGSEV) of bug #840381
8771         * src/SDCCmain.c (linkEdit, assemble): fixed bug #841606 (don't
8772         unlink new file before rename if new and old filenames are the same)
8773
8774 2003-11-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8775
8776         * src/mcs51/main.c: started fixing bug #737001 (SDCC not clearing
8777         uninitialized variables) for the mcs51. Set environment variable
8778         SDCC_GENRAMCLEAR to test.
8779         xdata initialization slightly shorter
8780
8781 2003-11-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8782
8783         * src/SDCCsymt.h,
8784         * src/SDCCsymt.c (addSymTypeChain, compareTypesExact): fixed bugs
8785         #838241 & 780691 (basicly the same bug)
8786         * src/SDCCBBlock.c (iCode2eBBlock): fixed bug #840148
8787         * src/SDCCBBlock.c (iCodeFromeBBlock): fixed bug #840162
8788
8789 2003-11-11 Bernhard Held <bernhard AT bernhardheld.de>
8790
8791         * src/SDCCmain.c (linkEdit): "fix" #834252
8792
8793 2003-11-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8794
8795         * src/SDCCast.c (removePostIncDecOps, removePreIncDecOps),
8796         * src/SDCCast.h,
8797         * src/SDCC.y: fixed bug #819403
8798
8799 2003-11-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8800
8801         * support/regression/fwk/lib/testfwk.c: printn is recursive and thus needs
8802         the reentrant attribute.
8803         * src/hc08/gen.c (genPackBits): added missing stack readjustment
8804         * sim/ucsim/hc08.src/inst.cc (inst_mov): fixed bugs with mov instruction
8805         simulation
8806         * src/SDCCast.c (decorateType): fixed bug with storage class not being
8807         updated during pointer dereference; f.e. ~(((char *)1)*) was being
8808         erroneously reduced to a literal.
8809         * src/hc08/ralloc.c (packRegisters, rematStr),
8810         * src/hc08/gen.c (aopForRemat): allow literals to be rematerialized in
8811         some cases
8812
8813 2003-11-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8814
8815         * src/mcs51/main.c: fixed bug #838385. Thanks to Josef Pavlik for finding and fixing
8816         * doc/sdccman.lyx: changed from 'article' to 'book'
8817         * doc/Makefile: readded test_suite_spec and cdbfileformat
8818
8819 2003-11-08 Bernhard Held <bernhard AT bernhardheld.de>
8820
8821         * device/include/stdlib.h: include malloc.h to comply with ANSI
8822         * support/regression/tests/malloc.c: include stdlib.h instead of malloc.h
8823
8824 2003-11-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8825
8826         * doc/Makefile: sdccman.pdf should build with correct references (more info in commit msg)
8827         * doc/clean.mk: also remove *.out files
8828         * doc/sdccman.lyx: some additions, larger top/bottom margins
8829
8830 2003-11-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8831
8832         * src/SDCC.y: fixed bug #837365
8833         * support/regression/tests/bitopcse.c
8834         * src/hc08/gen.c (genPointerGet): Don't assume pointer operand is
8835         a symbol (might be valop instead)
8836         * device/lib/Makefile.in: added errno.c to HC08SOURCES
8837         * device/lib/clean.mk: added hc08 to the cleaning list
8838
8839 2003-11-04  Borut Razem <borut.razem AT siol.net>
8840
8841         * configure, configure.in, sdcc_vc_in.h, sdcconf_in.h: reverted changes,
8842           made 2003-11-04
8843         * support/Util/NewAlloc.c, as/hc08/lklibr.c, as/mcs51/lklibr.c,
8844           as/z80/aslist.c, as/z80/assym.c: removed inclusion of nonstandard malloc.h;
8845           malloc is declared in standard stdlib.h
8846
8847 2003-11-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8848
8849         * device/lib/hc08/Makefile: need to clean .rel not .o files
8850         * src/hc08/gen.c (genDjnz): can't use djnz with extended addressing mode
8851
8852 2003-11-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8853
8854         * src/port.h,
8855         * src/hc08/main.c,
8856         * src/mcs51/main.c,
8857         * src/ds390/main.c,
8858         * src/z80/main.c,
8859         * src/avr/main.c,
8860         * src/pic/main.c,
8861         * src/pic16/main.c,
8862         * src/xa51/main.c: added hasExtBitOp & oclsExpense functions to ports
8863         * src/SDCCicode.c: changed several IS_FARSPACE tests to isOclsExpensive
8864         tests (which uses the port's oclsExpense function)
8865         * src/SDCC.y,
8866         * src/SDCCast.c,
8867         * src/SDCCicode.c,
8868         * src/hc08/gen.c,
8869         * src/ds390/gen.c,
8870         * src/mcs51/gen.c: added support for the SWAP iCode (RFE #834167)
8871
8872 2003-11-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8873
8874         * src/SDCCcse.c (ifxOptimize),
8875         * src/SDCClabel.c (labelIfx, deleteIfx): When the condition to
8876         an IFX iCode is volatile, convert to DUMMY_READ_VOLATILE instead
8877         deleting the IFX iCode.
8878         * src/hc08/ralloc.c: reduced unneeded slocs
8879         * src/hc08/gen.c: fixed bug in asmopToBoolean
8880
8881 2003-11-04  Borut Razem <borut.razem AT siol.net>
8882
8883         * configure, configure.in, sdcc_vc_in.h, sdcconf_in.h,
8884           support/Util/NewAlloc.c, as/hc08/lklibr.c, as/mcs51/lklibr.c,
8885           as/z80/aslist.c, as/z80/assym.c: decision to include malloc.h
8886           transferred to configure
8887
8888 2003-11-03 Bernhard Held <bernhard AT bernhardheld.de>
8889
8890         Use headers defined in the C[++] standards:
8891         * sim/ucsim/gui.src/serio.src/fileio.cc
8892         * sim/ucsim/gui.src/serio.src/frontend.cc
8893         * sim/ucsim/gui.src/serio.src/main.cc
8894         * sim/ucsim/gui.src/serio.src/posix_signal.cc
8895         * support/Util/NewAlloc.c
8896         * as/hc08/lklibr.c
8897         * as/mcs51/lklibr.c
8898         * as/z80/aslist.c
8899         * as/z80/assym.c
8900
8901 2003-11-03  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8902
8903         * Added MSVC projects for hc08 assembler and linker:
8904         all.dsp, config.dsp, sdcc.dsw, /as/hc08/as_hc08.dsp,
8905         /as/hc08/link_hc08.dsp
8906
8907 2003-11-03 Martin Helmling <Martin.Helmling AT octo-soft.de>
8908
8909         * debugger/mcs51/cmd.c: allows filename starting with digit(+ some debug)
8910
8911 2003-11-02 Bernhard Held <bernhard AT bernhardheld.de>
8912
8913         * src/SDCCmain.c (linkEdit): "fixed" again bug #833605
8914
8915 2003-11-01 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8916
8917         * src/mcs51/main.c: xdata initialization is 13 bytes shorter now
8918
8919 2003-10-31  Borut Razem <borut.razem AT siol.net>
8920
8921         * support/cpp2/cpplib.h,
8922           support/cpp2/cpplib.c,
8923           support/cpp2/cpplex.c,
8924           support/cpp2/cppinit.c: introduced #pragma preproc_asm [ + | - ]
8925           to switch _asm block preprocessing on / off. Default is
8926           #pragma preproc_asm +
8927
8928 2003-10-31  Borut Razem <borut.razem AT siol.net>
8929
8930         * support/cpp2/cpplex.c: Fixed _WIN32 problem with CR-CR-LF sequences
8931           when outputting comment blocks (when executed with -C option) and
8932           _asm (SDCPP specific) blocks
8933
8934 2003-10-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8935
8936         * as/hc08/lkrloc.c (relr): Fixed ihx output, fixed lastAreaIndex warning
8937
8938 2003-10-31 Klaus Flittner <klaus_flittner AT gmx.de>
8939
8940         * src/SDCCcse.c (updateSpillLocation): fixed bug #808027
8941
8942 2003-10-31 Bernhard Held <bernhard AT bernhardheld.de>
8943
8944         * src/SDCCmain.c (linkEdit): "fixed" bug #833605
8945         * src/SDCCast.c (decorateType): fixed bug #832664
8946
8947 2003-10-31  Borut Razem <borut.razem AT siol.net>
8948
8949         * support/cpp2/cpplex.c: fixed for SDCPP:
8950           comments(when executed with -C option) and _asm blocks
8951           were included even if they where in skipped #if block.
8952           Applied solution from GCC cpp 3.3.2
8953
8954 2003-10-31  Borut Razem <borut.razem AT siol.net>
8955
8956         * src/SDCC.lex: sdcc now understands both formats:
8957           '# <line_number> <file_name>' and
8958           '#line <line_number> <file_name>'
8959         * support/cpp2/cppmain.c: sdcpp now generates the standard
8960           '# <line_number> <file_name>' instead of former
8961           '#line <line_number> <file_name>'
8962
8963 2003-10-30  Borut Razem <borut.razem AT siol.net>
8964
8965         * support/cpp2/cpphash.h,
8966         * support/cpp2/cpplib.h
8967         * support/cpp2/cpplex.c,
8968         * support/cpp2/cppmain.c,
8969         * support/cpp2/cppinit.c: fixed bug #828015 - Syntax variation for _asm character constants
8970
8971 2003-10-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8972
8973         Fixed a number of problems revealed by bug #827883.
8974         * src/SDCCloop.c (loopInvariants): Spill location of the
8975         result operand should be recomputed if extracted from
8976         a loop. Also, don't extract assignments of an iTemp
8977         from a literal.
8978         * src/SDCCast.c (isConformingBody): loop reversal should
8979         not occur if the control variable is involved with a
8980         relational operator.
8981
8982 2003-10-28 Bernhard Held <bernhard AT bernhardheld.de>
8983
8984         * .version: bumped to 2.3.6 to reflect the big improvements
8985         made by Erik and Klaus. Thanks!
8986
8987 2003-10-28 Klaus Flittner <klaus_flittner AT gmx.de>
8988
8989         Replaced the livrange code.
8990         * src/SDCClrange.c: added new LR code
8991         * src/SDCCloop.c,
8992         * src/SDCCBBlock.h: removed remainig parts from old LR code
8993         * src/ds390/ralloc.c,
8994         * src/ds390/gen.c: minor fixes to make it work with new code
8995
8996 2003-10-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8997
8998         * as/hc08/asm.h,
8999         * as/hc08/lkrloc.c,
9000         * src/hc08/gen.c,
9001         * src/hc08/ralloc.c: Fix various warnings related to the hc08
9002         * src/SDCCicode.c (geniCodePreInc, geniCodePreDec): Fixed bug #829717
9003         (tweaked fix for bug #818696)
9004
9005 2003-10-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9006
9007         * src/z80/ralloc.c (joinPushes): Fixed bug #828742
9008
9009 2003-10-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9010
9011         * src/SDCCmain.c,
9012         * sdccconf_in.h: Fixed bug #828387 (--disable-hc08-port didn't work)
9013         * src/mcs51/gen.c (gencjneshort),
9014         * src/ds390/gen.c (gencjneshort): Made comparison with AOP_IMMD operand
9015         more efficient (per Scott Bronson's suggestion)
9016
9017 2003-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9018
9019         Extended the semantics of the critical keyword to include
9020         individual statements. See RFE #827755 and #799831
9021         * src/SDCC.y
9022         * src/SDCCicode.c
9023         * src/SDCCopt.c
9024         * src/SDCCast.c
9025         * support/Util/SDCCerr.c
9026         * support/Util/SDCCerr.h
9027         * src/mcs51/gen.c
9028         * src/ds390/gen.c
9029         * src/hc08/gen.c
9030
9031 2003-10-19  Borut Razem <borut.razem AT siol.net>
9032
9033         * src/SDCC.lex: fixed bug #825944 - defined yytext_ptr to make it compile with flex 2.5.31
9034
9035 2003-10-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9036
9037         * src/SDCCicode.c (geniCodePreInc, geniCodePreDec, ast2iCode):
9038         Fixed bug #818696
9039         * src/SDCCast.c (ast_print): Fixed --dumptree so that preincrement
9040         and predecrement operand is displayed
9041
9042 2003-10-13 Bernhard Held <bernhard AT bernhardheld.de>
9043
9044         * src/SDCCval.c (valMinus): fixed bug #826041
9045
9046 2003-10-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9047
9048         Some hc08 related updates that I missed earlier
9049         * sim/ucsim/stypes.h
9050         * support/regression/ports/hc08/spec.mk
9051
9052 2003-10-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9053
9054         New target "hc08" for the Motorola 68hc08 family of micros
9055
9056         * configure
9057         * configure.in
9058         * Makefile
9059         * src/hc08/*
9060         * src/SDCCmain.c
9061         * src/port.h
9062         * sim/ucsim/hc08.src/*
9063         * sim/ucsim/configure.in
9064         * src/ucsim/configure
9065         * sim/ucsim/packages_in.mk
9066         * as/hc08/*
9067         * as/Makefile
9068         * device/include/mc68hc908qy.h
9069         * device/lib/hc08/*
9070         * device/lib/Makefile.in
9071         * support/regression/ports/hc08/*
9072         * support/regression/Makefile
9073
9074 2003-10-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9075
9076         * src/z80/gen.c: fixed bug revealed by ast_constant_folding.c
9077         regression test
9078         * src/ds390/gen.c (genCast): fixed bug #821957
9079
9080 2003-10-13 Bernhard Held <bernhard AT bernhardheld.de>
9081
9082         * device/lib/logf.c: "fixed" overlay bug
9083         * support/regression/ports/host/spec.mk: added m library
9084         * support/regression/ports/mcs51-stack-auto/spec.mk: added float funcs
9085         * support/regression/tests/float_trans: added (for Eric)
9086
9087 2003-10-12 Bernhard Held <bernhard AT bernhardheld.de>
9088
9089         * src/mcs51/gen.c (genCpl): fixed bug
9090         http://sf.net/mailarchive/message.php?msg_id=6263915
9091
9092 2003-10-10 Bernhard Held <bernhard AT bernhardheld.de>
9093
9094         * src/SDCCast.c (decorateType): added extended constant folding
9095         * src/SDCCsymt.c (computeType): cleanup
9096         * src/SDCCval.c (valShift): minor optimization
9097         * support/regression/tests/ast_constant_folding.c: added
9098
9099 2003-10-09  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9100
9101         * src/SDCCmain.c: removed some unintended changes
9102
9103 2003-10-09  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9104
9105         * src/SDCCmain.c (setParseWithComma): fixed bug #816685
9106         * src/z80/gen.c: fixed part of bug #817589
9107         * src/SDCCsymt.c (checkFunction): fixed bug #817895
9108
9109 2003-10-08 Bernhard Held <bernhard AT bernhardheld.de>
9110
9111         Replaced cast (void **) with (void *) to avoid gcc 3 warning:
9112         * src/SDCCcflow.c
9113         * src/SDCCcse.c
9114         * src/SDCCdflow.c
9115         * src/SDCClabel.c
9116         * src/SDCClrange.c
9117         * src/SDCCmem.c
9118         * src/SDCCopt.c
9119         * src/SDCCpeeph.c
9120         * src/SDCCset.c
9121         * src/avr/ralloc.c
9122         * src/ds390/ralloc.c
9123         * src/izt/ralloc.c
9124         * src/mcs51/ralloc.c
9125         * src/pic/ralloc.c
9126         * src/pic16/ralloc.c
9127         * src/xa51/ralloc.c
9128         * src/z80/ralloc.c
9129         * src/z80/gen.c: removed unused label "release:"
9130
9131 2003-10-06  Borut Razem <borut.razem AT siol.net>
9132
9133         * src/SDCC.lex: removed definition of unused variables
9134           save_optimize and save_options
9135
9136 2003-10-06 Bernhard Held <bernhard AT bernhardheld.de>
9137
9138         * clean.mk: removed '=' in "-maxdepth=1"
9139         * src/SDCCloop.c: replace LRKLAUS with SDCC_LRKLAUS
9140         * src/SDCClrange.c: replace LRKLAUS with SDCC_LRKLAUS
9141
9142 2003-10-06  Borut Razem <borut.razem AT siol.net>
9143
9144         * src/SDCC.lex, src/SDCC.lex: use dbuf for "_asm" definitions;
9145           my_unput() replaced by unput()
9146
9147 2003-10-05 Bernhard Held <bernhard AT bernhardheld.de>
9148
9149         * src/SDCCloop.c (assignmentsToSym, loopInduction): cast argument of
9150         setToNull() to (void *) to avoid gcc3.x's warning: "dereferencing
9151         type-punned pointer will break strict-aliasing rules"
9152         Old LR behaviour is again default; Klaus' LR can be choosen by
9153         defining the environment variable LRKLAUS
9154         * src/SDCCBBlock.h
9155         * src/SDCCloop.c
9156         * src/SDCClrange.c
9157         * src/ds390/ralloc.c (spillThis): applied Klaus' patch
9158         * clean.mk: fixed removal of files in bin/CVS/
9159         * device/lib/clean.mk: fixed removal of directories small and large
9160         * support/Util/SDCCerr.c: changed W_INT_OVL to ERROR_LEVEL_PEDANTIC
9161         * src/SDCCicode.c,
9162         * src/SDCCval.c: removed superflous test for pedantic
9163
9164 2003-10-05  Borut Razem <borut.razem AT siol.net>
9165
9166         * src/SDCC.lex, support/Util/SDCCerr.c, sdcc/support/Util/SDCCerr.h:
9167           Fixed bug #816692: introduced new ERROR_LEVEL_PEDANTIC warning
9168           message "unmatched #pragma SAVE and #pragma RESTORE"
9169
9170 2003-10-04  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9171
9172         * doc/sdccman.lyx: various additions and updates (interrupts, inline
9173           assembly, critical functions, atomic, nojtbound)
9174
9175 2003-10-04 Bernhard Held <bernhard AT bernhardheld.de>
9176
9177         Applied liferange patch from Klaus Flittner <klaus_flittner AT gmx.de>
9178         * src/SDCCBBlock.h
9179         * src/SDCCloop.c
9180         * src/SDCCloop.h
9181         * src/SDCClrange.c
9182
9183 2003-10-03  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9184
9185         * src/z80/gen.h,
9186         * src/z80/gen.c (aopOp, aopGet, aopPut, genDummyRead),
9187         * src/mcs51/gen.h
9188         * src/mcs51/gen.c (aopOp, aopGet, aopPut, genDummyRead),
9189         * src/ds390/gen.h
9190         * src/ds390/gen.c (aopOp, aopGet, aopPut, genDummyRead),
9191         * src/SDCCicode.c (ast2iCode, geniCodeDummyRead): Fixed bug #663539
9192         * src/SDCCopt.c (killDeadCode): Fixed bugs #663539 & #816705
9193
9194 2003-10-02  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9195
9196         * src/z80/gen.c (genRet): fixed bug #524753
9197         * src/z80/gen.c (genCast): fixed internal error on cast from
9198         pointer to long
9199         * src/z80/gen.c (_saveRegsForCall, emitCall): adapted Johan's
9200         fix for bug #477835 to the z80
9201         * src/z80/gen.c (genZ80code, _vemit2, _emit2): added support
9202         for tracking iCodes in the peephole optimizer for z80
9203
9204 2003-10-01  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9205
9206         * src/SDCCicode.c (geniCodeJumpTable, geniCodeSwitch): fixed
9207         the other part of bug #814548
9208         * src/SDCCpeeph.c (labelInRange): fixed bug #814558
9209
9210 2003-09-30  Bernhard Held <bernhard AT bernhardheld.de>
9211
9212         * src/SDCCcse.c: fixed part of bug #814548
9213
9214 2003-09-28  Borut Razem <borut.razem AT siol.net>
9215
9216         * src/asm.c: rewrite of printILine() to use temporary file instead
9217           a pipe
9218         * src/xa51/main.c: commented out declaration of int rewinds
9219
9220 2003-09-27  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9221
9222         * src/SDCCicode.c (geniCodeJumpTable): Fixed bug #813206
9223
9224 2003-09-26  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9225
9226         * src/SDCCdflow.c (computeDataFlow): Fixed bug #810746
9227         * src/asm.c (printILine): Fixed bug #811015
9228
9229 2003-09-22  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9230
9231         *link/z80/lklibr.c, as/mcs51/lklibr.c: Improved memory allocation and
9232         freeing.
9233
9234 2003-09-21  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9235
9236         * src/z80/gen.c (setupToPreserveCarry): Fixed bug #796955
9237         * src/z80/gen.c (setupPair, genMovePairPair): Fixed setupPair
9238         to correctly handle general case of AOP_PAIRPTR
9239         * src/z80/gen.c (aopGet, aopPut): Generalized AOP_PAIRPTR handling
9240
9241 2003-09-21  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9242
9243         * src/mcs51/ralloc.c (fillGaps),
9244         * src/ds390/ralloc.c (fillGaps): fixed bug #810093 (yet another
9245         register positioning bug)
9246
9247 2003-09-21  Bernhard Held <bernhard AT bernhardheld.de>
9248
9249         * device/lib/_fsdiv.c: replaced (1<<31) by (1ul<<31)
9250
9251 2003-09-19  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9252
9253         * src/mcs51/gen.c (loadDptrFromOperand, genFarPointerGet,
9254         genCodePointerGet, genGenPointerGet, genFarPointerSet,
9255         genGenPointerSet): handle AOP_DPTR correctly when loading dptr
9256         (ralloc doesn't intentionally do this now, but perhaps later)
9257         * src/mcs51/ralloc.c (serialRegAssign, fillGaps),
9258         * src/ds390/ralloc.c (serialRegAssign, fillGaps): fixed some
9259         register positioning bugs (Fixed bug #762602 and #795325)
9260         * src/SDCCicode.c (geniCodeDerefPtr): Track output class correctly
9261         (Fixed bug #808779)
9262         * src/z80/gen.c: increased _vemit2's buffer[] to handle long
9263         lines that --i-code-in-asm generates
9264
9265 2003-09-18  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9266
9267         *link/z80/lklibr.c, as/mcs51/lklibr.c: Fixed Linux segfaults when
9268         trying to fclose a FILE* that was already closed.
9269
9270 2003-09-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9271
9272         * src/SDCCsymt.c (structElemType): fixed bug #808291 (members
9273         of const struct should be treated as if const themselves)
9274
9275 2003-09-18  Bernhard Held <bernhard AT bernhardheld.de>
9276
9277         * src/SDCCval.c (valPlus, valMinus): fixed bug #808337
9278
9279 2003-07-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9280
9281         * support/librarian/sdcclib.c: Generate correct offsets for libraries with
9282         Unix (/n) and DOS (/r/n) line terminations.
9283
9284 2003-09-17  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9285
9286         * src/SDCCopt.c (cnvFromFloatCast, cnvToFloatCast): fixed
9287         bug #613775
9288
9289 2003-09-16  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9290
9291         * src/mcs51/gen.c (genFunction, genEndFunction),
9292         * src/ds390/gen.c (genFunction, genEndFunction): Moved save
9293         and restore of EA so that stack offsets to parameters are
9294         correct when using both critical and reentrant/stack-auto.
9295         * src/z80/gen.c (aopOp): removed erroneous assertion about sloc
9296         size (can be triggered in error if sloc is shared between
9297         different sized objects)
9298         * device/include/float.h: fixed macros to explicitly use
9299         unsigned long where needed
9300
9301 2003-09-15  Bernhard Held <bernhard AT bernhardheld.de>
9302
9303         Feature req. 799831: added code to allow nesting of critical functions
9304         * src/mcs51/gen.c (genFunction, genEndFunction)
9305         * src/ds390/gen.c (genFunction, genEndFunction)
9306
9307 2003-09-14  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9308
9309         * src/SDCCsymt.c (sclsFromPtr),
9310         * src/SDCCsymt.h,
9311         * src/SDCCast.c (decorateType): fixed bug #462971. Also, better
9312         support for standard C idiom of memory mapped variables; for
9313         example, *((xdata int*)0x1234) = 1 is now internally equivalent
9314         to xdata int at 0x1234 tempvar = 1.
9315         * sim/ucsim/z80.src/inst_xd.cc: fixed bug #805483 with patch
9316         provided by Akiya ISHIDA
9317
9318 2003-09-13  Bernhard Held <bernhard AT bernhardheld.de>
9319
9320         * src/SDCCval.c (cheapestVal): reenabled to reduce int to char
9321         * src/SDCCval.c (constVal): added reduction from int to char
9322         * src/SDCCval.c (valMult, valDiv): fixed sign handling
9323         * src/SDCCval.c (valShift): fixed after change of cheapestVal()
9324         * src/SDCCval.c (valCompare): fixed EQ_OP and NE_OP; they have
9325         to ignore the sign
9326         * support/regression/tests/shifts.c: fixed
9327
9328 2003-09-13  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9329
9330         * src/z80/gen.c (genXor): Fixed bug #805445
9331
9332 2003-09-12  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9333
9334         Fixed bug #621531 (const & volatile confusion in the type chain).
9335         DCL_PTR_CONST, DCL_PTR_VOLATILE, & IS_PTR_CONST now exclusively
9336         refer to the const or volatile state of the pointer itself.
9337
9338         * src/SDCCast.c
9339         * src/SDCCglue.c
9340         * src/SDCCicode.c
9341         * src/SDCCsymt.c
9342         * src/SDCCval.c
9343         * src/SDCC.y
9344         * src/SDCCsymt.h
9345         * src/pic/gen.c
9346         * src/pic/ralloc.c
9347         * src/pic16/gen.c
9348         * src/pic16/ralloc.c
9349         * support/regression/tests/const.c
9350
9351 2003-09-10  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9352
9353         When checking for duplicated modules, use absolute paths
9354         instead of relative paths.  Files changed:
9355
9356         * as/mcs51/lklib.c
9357         * link/z80/lklib.c
9358
9359 2003-09-09  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9360
9361         * src/SDCCicode.c (geniCodeLogic): fixed bug #797572
9362
9363 2003-09-07  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9364
9365         * device/include/string.h: added size_t typedef, changed
9366         prototypes to use size_t, eliminated separate reentrant and
9367         non-reentrant declarations, added _memmove declaration
9368         * device/lib/_memcpy.c: changed to use size_t instead of int,
9369         changed /4 to >>2 to avoid division library call
9370         * device/lib/_memcmp.c,
9371         * device/lib/_memset.c,
9372         * device/lib/_strncat.c,
9373         * device/lib/_strncpy.c,
9374         * device/lib/_strncmp.c: changed to use size_t instead of int
9375         * device/lib/_memmove.c: new file (fixed bug #772294)
9376         * device/lib/Makefile.in: added _memmove.c
9377         * device/lib/z80/asm_strings.s: fixed bug #772290
9378         * support/regression/tests/bitfields.c: attempt to fix host assertion
9379         failure on amd64-unknown-linux2.2
9380
9381 2003-09-06  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9382
9383         * src/z80/gen.c (aopPut, spillPairReg): fixed bug #800998
9384         * src/z80/gen.c (genFunction, genEndFunction): fixed "bug" #774700
9385         * as/z80/asmain.c (main): fixed bug #801766
9386
9387 2003-09-06  Bernhard Held <bernhard AT bernhardheld.de>
9388
9389         * src/SDCCicode.c (ast2iCode): fixed differences in iCode with different
9390         compilers
9391
9392 2003-09-05  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9393
9394         * src/SDCCast.c (isConformingBody): fixed loop reversal bug
9395         reported in bug #800609
9396
9397 2003-09-04  Vangelis Rokas <vrokas AT otenet.gr>
9398
9399         * Top header beautifications in src/pic16 directory:
9400           device.c, device.h, gen.c, gen.h, genarith.c, glue.c, pcode.c,
9401           pcodeflow.c, pcodeflow.h, pcode.h, pcodepeep.c, pcoderegs.c,
9402           pcoderegs.h, ralloc.c, ralloc.h
9403         * main.c: added top header and GPL license notice
9404         * pcode.c: fixed the if-conditional warning
9405
9406 2003-09-04  Bernhard Held <bernhard AT bernhardheld.de>
9407
9408         * device/lib/_mullong.c: replaced int by short for gcc
9409
9410 2003-08-31  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9411
9412         * src/SDCCpeeph.c (notVolatile, notVolatileVariable): handle IFX
9413         and JUMPTABLE iCodes properly now (worked by accident before)
9414         * src/mcs51/gen.c (leftRightUseAcc),
9415         * src/ds390/gen.c (leftRightUseAcc): handle IFX and JUMPTABLE
9416         iCode properly now. Use getSize instead of nRegs since a & b
9417         aren't part of the nRegs tally.
9418
9419 2003-08-31  Vangelis Rokas <vrokas AT otenet.gr>
9420
9421         * src/pic16/main.c: corrected offsets of interrupt vectors in _pic16_genIVT()
9422         * src/pic16/pcode.c: fix to disable inserting BANKSEL directive
9423           before instructions that use the _STATUS register
9424
9425 2003-08-31  Bernhard Held <bernhard AT bernhardheld.de>
9426
9427         * src/mcs51/gen.c (freeAsmop): fixed off by one in stack offset (AOP_STK)
9428         * src/mcs51/gen.c (genNearPointerSet): added missing opcode for
9429         fetching of the pointer
9430         * src/mcs51/gen.c (genNearPointerGet): added reuse of PREG,
9431         copied from genNearPointerSet()
9432         * src/mcs51/gen.c (genNearPointerGet): don't pop r0/r1, if RESULTONSTACK
9433         * src/mcs51/gen.c: changed order of freeAsmop(left/right/result)-calls.
9434         If they pop r0/r1 they must be called in the opposite order than aopOp().
9435         * device/lib/_mullong.c: fixed for "--model-large --int-long-reent"
9436         (resp. --stack-auto), prepared for --xstack
9437
9438 2003-08-28  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9439
9440         * doc/sdccman.lyx: reverted tables to those in cvs 1.64
9441
9442 2003-08-28  Bernhard Held <bernhard AT bernhardheld.de>
9443
9444         * device/lib/_startup.c: quick & dirty fix for ds390/ds400;
9445         these ports have their own __sdcc_external_start()
9446
9447 2003-08-26  Bernhard Held <bernhard AT bernhardheld.de>
9448
9449         pic patch provided by Slade Rich <slade_rich AT yahoo.com>
9450         * src/pic/glue.c (pic14printPublics): fixed bug introduced when symbol
9451         type for bits was changed. It resulted in bit variables becoming
9452         global, which is not permitted in PIC 14 assembly output.
9453
9454 2003-08-23  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9455
9456         * doc/sdccman.lyx: various additions and updates. Rearranged sections
9457
9458 2003-08-22  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9459
9460         Z80 and MCS51 linkers complaint if a public symbol is defined
9461         in more than one library module:
9462
9463         * as/mcs51/lklib.c
9464         * link/z80/lklib.c
9465         * as/mcs51/Makefile.in
9466
9467 2003-08-22  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9468
9469         A few small changes that speed up the peephole optimizer.
9470
9471         * src/SDCCpeeph.c
9472
9473 2003-08-22  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9474
9475         Try to make the peephole optimizer smarter by maintaining
9476         an association between the assembly source code and the
9477         iCodes that originated them. Put this information to use
9478         with a new peephole rule condition "notVolatile" so that
9479         the rules can be aggressive yet still safe.
9480
9481         * src/SDCCpeeph.c
9482         * src/SDCCpeeph.h
9483         * src/mcs51/gen.c
9484         * src/mcs51/peeph.def
9485
9486 2003-08-20  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9487
9488         Fixed bug #741761
9489
9490         * src/mcs51/gen.c (aopForSym, leftRightUseAcc),
9491         * src/ds390/gen.c (aopForSym, leftRightUseAcc): preserve A and B
9492         if the left or right operand symbols have the accuse flag set.
9493
9494 2003-08-20  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9495
9496         Changed the type of the result of the ! (NOT) operator to char;
9497         previously it returned the same type as the source. This allows
9498         us to eliminate all the genFloatNot functions (all of its target
9499         implementations were very buggy) since !float can use the same
9500         code as !long now.
9501
9502         * src/SDCCicode.c (ast2iCode): ! returns char
9503         * src/mcs51/gen.c (genNot, genNotFloat),
9504         * src/ds390/gen.c (genNot, genNotFloat),
9505         * src/z80/gen.c (genNot, genNotFloat),
9506         * src/pic/gen.c (genNot, genNotFloat),
9507         * src/pic16/gen.c (genNot, genNotFloat): eliminated genNotFloat
9508
9509 2003-08-19  Bernhard Held <bernhard AT bernhardheld.de>
9510
9511         pic patch provided by Slade Rich <slade_rich AT yahoo.com>
9512         1. Interrupt would not compile properly. Ensure PCLATH register is saved
9513            during interrupts. Ensure WSAVE is located at a shared bank address.
9514         2. Fixed page selection in some places
9515         3. Fixed BTFSS/C to where necessary use registers directly and not simply
9516            the registers name strings.
9517         4. Fixed "signed / unsigned compare" compiler warnings.
9518         5. The PIC port manages its own allocation of the general purpose
9519            registers, but makes no attempt to reuse them. As a result when
9520            compiling it soon runs out of general purpose registers. Some
9521            additional code was added to the files pcode.c and device.c to walk
9522            through the function call tree and rename the registers so that they
9523            get reused.
9524
9525         * src/pic/device.c
9526         * src/pic/gen.c
9527         * src/pic/glue.c
9528         * src/pic/pcode.c
9529         * src/pic/pcode.h
9530         * src/pic/ralloc.c
9531         * src/pic/ralloc.h
9532         * src/pic/genarith.c: Fixed problems with PIC 14 port in functions
9533         genPlus() & genMinus() when the result is the same as left or right
9534
9535 2003-08-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9536
9537         * src/z80/gen.c (isUnsplitable, fetchPairLong): fixed bug #770454
9538
9539 2003-08-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9540
9541         Made bitfield a distinct type from bit so that bitfields
9542         convert as per ANSI C and bits retain their traditional
9543         boolean style behaviour. Implemented bitfield support in
9544         the z80 port.
9545
9546         * src/SDCCsymt.h,
9547         * src/SDCCsymt.c,
9548         * src/SDCCast.c,
9549         * src/cdbFile.c,
9550         * src/mcs51/gen.c,
9551         * src/ds390/gen.c: bit v bitfield split
9552         * src/z80/gen.c: New support for bitfields
9553         * support/regression/tests/bitfields.c: reenabled z80,
9554         added more tests
9555
9556 2003-08-17  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9557
9558         Rules 246.x, 247.x relate to bitfields, the others speed up
9559         access to xdata mapped I/O devices.
9560
9561         * src/mcs51/peeph.def: added 26 peepholes 246.x - 248.x, 180.x
9562
9563 2003-08-16  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9564
9565         Cleaned up genPackBits and genUnpackBits and added two helper
9566         functions, emitPtrByteGet & emitPtrByteSet. Added optimizations
9567         for literal assignments in genPackBits (thanks to Frieder for
9568         reminding me).
9569
9570         * src/mcs51/gen.c
9571         * src/ds390/gen.c
9572
9573 2003-08-16  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9574
9575         Fixed bug #748310 (pointer to function type mishandled when the
9576         function name is omitted). Also fixed a SIGSEGV when a function
9577         attribute (reentrant, etc) is used on a non-function or on a
9578         function but misplaced before the parameter list.
9579
9580         * src/SDCC.y (abstract_declarator, abstract_declaractor2): fixed
9581         bug #748310
9582         * src/SDCC.y (declarator2_function_attributes): avoided SIGSEGV
9583         * support/Util/SDCCerr.h,
9584         * support/Util/SDCCerr.c: Added func attr misuse error msg
9585
9586 2003-08-13  Bernhard Held <bernhard AT bernhardheld.de>
9587
9588         Fixed bug #787649 by anonymous
9589         * src/SDCCglue.c (emitRegularMap): added emission of sloc for func ptr
9590         * src/ds390/gen.c (aopForSym): fixed func ptr in sloc
9591
9592 2003-08-14  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9593
9594         Fixed numerous bitfield problems.
9595
9596         * src/SDCC.y: More bitfield related error checking
9597         * src/SDCCsymt.h,
9598         * src/SDCCsymt.c (compStructSize): fixed bitfield offset calc
9599         * support/Util/SDCCerr.h,
9600         * support/Util/SDCCerr.c: Added & edited some bitfield err msgs
9601         * src/mcs51/gen.c (genPackBits, genUnpackBits): fixed mask bugs
9602         * src/ds390/gen.c (genPackBits, genUnpackBits): fixed mask bugs
9603         * support/regression/tests/bitfields.c: tests added
9604
9605 2003-08-13  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9606
9607         Made the constant following the "interrupt" keyword optional. If
9608         omitted, the function will not automatically be given an entry
9609         in the interrupt vector table (similar to #pragma NOIV, but
9610         less syntacticly kludgy). The interrupt number is also now
9611         range checked. Also fixed a bug in the high order bit example
9612         in the manual.
9613
9614         * src/SDCC.y
9615         * src/SDCCmem.c
9616         * src/SDCCglue.c
9617         * src/SDCCsymt.h
9618         * support/Util/SDCCerr.c
9619         * support/Util/SDCCerr.h
9620         * doc/sdccman.lyx
9621
9622 2003-08-13  Bernhard Held <bernhard AT bernhardheld.de>
9623
9624         * src/SDCCcse.c (algebraicOpts): fix bug converting op from value to type
9625         * src/SDCCicode.c (operandOperation): rewritten some ops
9626         (*, ==, unary_minus) to fix possible overflows and to accord with ANSI
9627         * src/SDCCsymt.c (computeType): literals are handled the same way as any
9628         other type
9629         * src/SDCCval.c (cheapestVal): removed, it doesn't accord with ANSI (can
9630         be re-activated by defining REDUCE_LITERALS)
9631         * src/SDCCval.c (constVal): fixed; hex and octal constants can be
9632         unsigned, but are signed by default
9633         * src/SDCCval.c (constVal): rearranged
9634         * src/SDCCval.c (valMod): preliminary fix
9635         * src/SDCCval.c (valCastLiteral): use TYPE_* types
9636         * support/regression/literalop.c: added, work in progress
9637
9638 2003-08-12  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9639
9640         Generate warnings for useless declarations like "char data;"
9641         that don't do what new users expect.
9642
9643         * src/SDCC.y
9644         * support/Util/SDCCerr.h
9645         * support/Util/SDCCerr.c
9646
9647 2003-08-09  Bernhard Held <bernhard AT bernhardheld.de>
9648
9649         * src/SDCCval.c (valMult): fix overflow detection of negative int
9650
9651 2003-08-07  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9652
9653         * src/z80/ralloc.c (joinPushes): made compatible with new signedness
9654
9655         Changes to support big endian targets:
9656
9657         * src/ports.h
9658         * src/SDCCglue.c
9659         * src/avr/main.c
9660         * src/ds390/main.c
9661         * src/izt/i186.c
9662         * src/mcs51/main.c
9663         * src/pic/main.c
9664         * src/pic16/main.c
9665         * src/xa51/main.c
9666         * src/z80/main.c
9667
9668 2003-08-06  Bernhard Held <bernhard AT bernhardheld.de>
9669
9670         * src/SDCCval.c (cheapestVal): changed behaviour to the same as constVal()
9671         * device/lib/time.c: fixed warning "integer overflow in expression"
9672
9673 2003-08-05  Bernhard Held <bernhard AT bernhardheld.de>
9674
9675         * src/SDCCval.c (cheapestVal, valueFromLit): use TYPE_* types
9676         * src/SDCCval.c (constVal): changed default to signed; hex and octal
9677         constants are unsigned; added recognition of "u" flag for unsigned
9678         * src/SDCCval.c (valMult): fixed signdness, added warning for overflow
9679         * src/SDCCval.c (valDiv, valMod): fixed signdness
9680         * src/SDCCicode.c (operandOperation): fixed critical typo; fixed
9681         signedness of modulo, left and right shift
9682         * support/Util/SDCCerr.c: added warning "integer overflow in expression"
9683         * support/Util/SDCCerr.h: added warning W_INT_OVL
9684         * src/SDCCast.c (decorateType): fixed gcc3.3 warning
9685         * src/SDCCast.c (ast_print): improved output of constants
9686
9687 2003-08-04  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9688
9689         Fixed some warnings when building with MSVC:
9690
9691         * as/mcs51/asdata.c
9692         * as/z80/asdata.c
9693         * as/mcs51/asm.h
9694         * as/z80/asm.h
9695         * link/z80/aslink.h
9696         * link/z80/lkdata.c
9697         * link/z80/lkeval.c
9698         * link/z80/lkgb.c
9699         * link/z80/lkihx.c
9700         * link/z80/lks19.c
9701         * link/z80/lksym.c
9702         * support/cpp2/cpplib.c
9703         * src/ds390/gen.c
9704         * src/mcs51/gen.c
9705
9706 2003-08-03  Bernhard Held <bernhard AT bernhardheld.de>
9707
9708         * src/SDCCast.c (constExprTree): fix bug #781827 by Carl Worth <cworth AT isi.edu>
9709
9710 2003-08-01  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9711
9712         * support/librarian/clean.mk: Do not remove Makefile.
9713         * support/librarian/Makefile: added.
9714
9715 2003-08-01  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9716
9717         Added librarian to MSVC build:
9718         * all.dsp
9719         * sdcc.dsw
9720         * support/librarian/librarian.dsp
9721
9722         'configure' not needed for librarian, removed:
9723         * support/librarian/configure
9724         * support/librarian/configure.in
9725         * support/librarian/config_in.h
9726         * support/librarian/Makefile.in
9727
9728         Hopefully these ones built the librarian and the rest of sdcc properly:
9729         * Makefile
9730         * Makefile.common.in
9731
9732         Messed up 'configure', so revert to previous version:
9733         * configure
9734         * configure.in
9735
9736 2003-07-31  Bernhard Held <bernhard AT bernhardheld.de>
9737
9738         * src/SDCCicode.c (operandOperation): 3. fix, this time for Alpha; ULONG has 64 bits
9739         there, while the mantissa of a double is "only" 53 bits wide.
9740
9741 2003-07-31  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9742
9743         Adding sdcclib to the build.  MSVC project coming soon.
9744         Files added/changed:
9745
9746         * support/librarian/clean.mk
9747         * support/librarian/configure
9748         * support/librarian/configure.in
9749         * support/librarian/config_in.h
9750         * support/librarian/Makefile.bcc
9751         * support/librarian/Makefile.in
9752         * support/librarian/sdcclib.c
9753         * Makefile.bcc
9754         * Makefile
9755         * Makefile.common.in
9756         * configure
9757         * configure.in
9758
9759 2003-07-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9760
9761         Linker now complaints if linked modules have conflicting options, for
9762         example, one compiled using --model-large and another one compiled with
9763         --model-small.  The following files were modified:
9764
9765         * as/mcs51/asdata.c
9766         * as/mcs51/aslink.h
9767         * as/mcs51/asm.h
9768         * as/mcs51/asmain.c
9769         * as/mcs51/asout.c
9770         * as/mcs51/i51pst.c
9771         * as/mcs51/lkdata.c
9772         * as/mcs51/lklibr.c
9773         * as/mcs51/lkmain.c
9774         * as/z80/asdata.c
9775         * as/z80/asm.h
9776         * as/z80/asmain.c
9777         * as/z80/asout.c
9778         * as/z80/z80pst.c
9779         * link/z80/aslink.h
9780         * link/z80/lkdata.c
9781         * link/z80/lklibr.c
9782         * link/z80/lkmain.c
9783         * src/SDCCglue.c
9784
9785 2003-07-28  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9786
9787         *link/z80/aslink.h, link/z80/lklibr.c, as/mcs51/aslink.h,
9788         as/mcs51/lklibr.c: Generate a warning when a library is not found.
9789
9790 2003-07-28  Bernhard Held <bernhard AT bernhardheld.de>
9791
9792         * src/z80/mappings.i: fix _mul[us][int,long] entries
9793
9794 2003-07-26  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9795
9796         *src/SDCCmain.c: do not search for crt0.o when using --nostdlib
9797
9798 2003-07-24  Bernhard Held <bernhard AT bernhardheld.de>
9799
9800         * src/SDCCicode.c (operandOperation): really fixed problem with bitops
9801         * support/regression/tests/bitopcse.c: added
9802         fixed warning:
9803         * src/avr/gen.c:
9804         * src/pic/gen.c:
9805         * src/pic16/gen.c:
9806         * src/z80/gen.c:
9807         * src/xa51/gen.c:
9808
9809 2003-07-24  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9810
9811         added support for new library format to z80, gbz80 linkers:
9812         *link/z80/aslink.h
9813         *link/z80/lklex.c
9814         *link/z80/lklib.c
9815         *link/z80/lklist.c
9816
9817 2003-07-24  Bernhard Held <bernhard AT bernhardheld.de>
9818
9819         * src/SDCCicode.c (operandOperation): fixed problem with bitops and 0xffffffff;
9820         after {double d = 0xffffffff; long l = d;} l will be 0x80000000 (LONG_MIN)
9821
9822 2003-07-23  Bernhard Held <bernhard AT bernhardheld.de>
9823
9824         added DUMMY_READ_VOLATILE:
9825         * src/SDCC.y:
9826         * src/avr/gen.c:
9827         * src/xa51/gen.c:
9828         * src/z80/gen.c:
9829         * src/pic/gen.c:
9830         * src/pic16/gen.c:
9831         * src/mcs51/gen.c:
9832         * src/ds390/gen.c:
9833         * src/SDCCcse.c (algebraicOpts): many improvements
9834         * src/SDCCcse.h: removed algebraicOpts()
9835         * src/SDCCicode.c (picDummyRead): added
9836
9837 2003-07-23  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9838
9839         * as/mcs51/lkmem.c: Changed message "Insufficient DRAM memory" to
9840         "Insufficient space in data memory".
9841
9842 2003-07-20  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9843
9844         * src/mcs51/gen.c: fixed bug #771358
9845         * src/z80/gen.c: fixed bug #759087
9846
9847 2003-07-20  Bernhard Held <bernhard AT bernhardheld.de>
9848
9849         * src/pic16/glue.c: minor cleanup by Vangelis
9850
9851 2003-07-19  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9852
9853         * device/include/regc515c.h: fixed #758477
9854         * device/lib/_gptrget.c: saving some cycles in generic pointer get
9855         * device/lib/_gptrput.c: saved a few bytes
9856         * my tab spacing is 8, yours too?)
9857         * device/lib/_ser.c: process RX bytes earlier than TX bytes
9858         * device/lib/serial.c: process RX bytes earlier than TX bytes
9859         * src/mcs51/gen.c(genGenPointerGet/Set): removed writing of type after postincrement
9860
9861 2003-07-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9862
9863         * src/z80/gen.c: fixed some right shift bugs (#772726 among them)
9864
9865 2003-07-17  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9866
9867     * link/z80/lklibr.c: fixed bug when there is a '.' in a library path.
9868
9869 2003-07-17  Bernhard Held <bernhard AT bernhardheld.de>
9870
9871         * device/lib/Makefile.in: bad fix, reverted to 1.43
9872
9873 2003-07-16  Bernhard Held <bernhard AT bernhardheld.de>
9874
9875         * device/lib/Makefile.in: added missing z80 object files
9876
9877 2003-07-14  Bernhard Held <bernhard AT bernhardheld.de>
9878
9879         * src/SDCCcse.c (algebraicOpts): CSE fun with &|^ and 0x00/0xff literals
9880         pic16 progress by Vangelis:
9881         * src/SDCCglobl.h:
9882         * src/SDCCmain.c:
9883         * src/pic/Makefile:
9884         * src/pic:
9885         * pic/Makefile:
9886         * pic16/device.c:
9887         * pic16/device.h:
9888         * pic16/gen.c:
9889         * pic16/gen.h:
9890         * pic16/genarith.c:
9891         * pic16/glue.c:
9892         * pic16/main.c:
9893         * pic16/pcode.c:
9894         * pic16/pcode.h:
9895         * pic16/pcodepeep.c:
9896         * pic16/peeph.def:
9897
9898 2003-07-13  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9899
9900     * src/SDCCmain.c, src/SDCCglobl.h: added option --no-std-crt0
9901
9902 2003-07-12  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9903
9904     * sdcc.dsw, all.dsp, link/z80/linkgbz80.dsp, as/z80/as-gbz80.dsp:
9905     added gbz80 build to MSVC project.
9906     * src/SDCCmain.c, src/SDCCglue.c, src/z80/main.c, src/z80/z80.dsp,
9907     link/z80/aslink.h, linkz80.dsp: cleaned up z80 and gbz80 asm files
9908     from 8051 stuff and setup so it links using a .lnk file.
9909
9910 2003-07-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9911
9912     * support/librarian/sdcclib.c: sdcc librarian.
9913     * as/mcs51/aslink.h, as/mcs51/lklib.c: Support for libraries created
9914     with sdcclib.
9915
9916 2003-07-03  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9917
9918     * as/mcs51/lkmain.c: properly handle extensions in function afile.
9919
9920 2003-07-02  Borut Razem <borut.razem AT siol.net>
9921
9922         * src/port.h, src/SDCCmain.c, src/pic/glue.h, src/pic/main.c,
9923         src/pic16/glue.h, sdcc/src/pic16/main.c, src/izt/i186.c,
9924         src/izt/tlcs900h.c, src/avr/main.c, src/ds390/main.c, src/mcs51/main.c,
9925         src/xa51/main.c, src/z80/main.c:
9926         virtualization of glue() function: each port has it's own glue function,
9927         which is accessed by do_glue function pointer in PORT.general structure
9928
9929 2003-07-01 Kevin Vigor <kevin AT vigor.nu>
9930
9931         * DS800C400 fun, improved ROM interface and tinibios.
9932
9933 2003-06-27 Kevin Vigor <kevin AT vigor.nu>
9934
9935         * More support for DS80C400. Now includes beginning of interface to ROM.
9936
9937 2003-06-25  Bernhard Held <bernhard AT bernhardheld.de>
9938
9939         * src/mcs51/gen.c (gencjneshort): fixed bug #760345
9940
9941 2003-06-20  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9942
9943         * as/mcs51/lkaomf51.c: Make sure the size of the last procedure is correct.
9944
9945 2003-06-19  Borut Razem <borut.razem AT siol.net>
9946
9947         * src/z80/main.c: fixed Z80 port again: missing -k library paths in linker command line
9948
9949 2003-06-19  Borut Razem <borut.razem AT siol.net>
9950
9951         * src/SDCCutil.h, src/SDCCutil.c, src/SDCCglobl.h, src/SDCCmain.c, src/z80/main.c:
9952         fixed Z80 port - crt0.o: cannot open.
9953
9954 2003-06-19  Bernhard Held <bernhard AT bernhardheld.de>
9955
9956         * support/Util/MySystem.c (merge_command): revert bad fix
9957
9958 2003-06-18  Borut Razem <borut.razem AT siol.net>
9959
9960         * src/SDCC.lex, src/SDCCmain.c: fixed some warnings, introduced with changes made 15.06.1003
9961
9962 2003-06-18  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9963
9964         * src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx:
9965         option --use-stdout sends errors to stdout instead of stderr.
9966
9967 2003-06-18  Bernhard Held <bernhard AT bernhardheld.de>
9968
9969         * support/Util/MySystem.c (merge_command): quick fix for Linux segfault with \"cmd\" arg
9970
9971 2003-06-15  Borut Razem <borut.razem AT siol.net>
9972
9973         * support/cpp2/sdcc.h: HAVE_DOS_BASED_FILE_SYSTEM defined for _WIN32
9974         * src/SDCC.lex: cloneXxx and copyAndFreeXxx functions for options and optimize stack handling
9975         * src/SDCCglobl.h, src/SDCCmain.c, src/ds390/main.c, src/mcs51/main.c, src/z80/main.c:
9976         fixed width array of pointers replaced with sets;
9977         multiple include and lib paths ared transferred to preprocessor and linker
9978         * src/SDCCset.c, src/SDCCset.h: added function setFromSetNonRev() and mergeSets()
9979         * src/SDCCsymt.c: reimplemented function inCalleeSaveList() by using sets instead
9980         fixed width array of pointers
9981         * src/SDCCutil.c, src/SDCCutil.h: added functions fputStrSet(), appendStrSet(), joinStrSet();
9982         removed functions addToList(), join(), joinn(), pathCharsEquivalent(), pathCharTransform(),
9983         fixupPath(), getPathDifference()
9984         * src/ds390/gen.c, src/mcs51/gen.c: reimplemented function  inExcludeList() by using sets instead
9985         fixed width array of pointers
9986
9987 2003-06-11  Bernhard Held <bernhard AT bernhardheld.de>
9988
9989         * src/pic16/ralloc.c: fix warnings
9990         * src/pic16/pcode.c: fix warning
9991
9992 2003-06-10  Scott Dattalo  <scott AT dattalo.com>
9993
9994          Scott D. for Vangelis Rokas (vrokas AT otenet.gr). I (scott) don't
9995         know all the details, but essentially this set of changes enable
9996         the pic16 port to generate movff instructions and generate assembler
9997         directives,
9998         * src/SDCCmain.c:
9999         * src/pic16/gen.c:
10000         * src/pic16/glue.c:
10001         * src/pic16/pcode.c:
10002         * src/pic16/device.c:
10003         * src/pic16/main.c:
10004         * src/pic16/pcode.h:
10005         * src/pic16/pcoderegs.c:
10006         * src/pic16/ralloc.c:
10007         * src/pic16/ralloc.h:
10008
10009 2003-06-08  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10010
10011         * support/Util/SDCCerr.c, src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx:
10012         added option --vc, so sdcc errors and warnings are compatible with
10013         Microsoft Visual Studio.
10014
10015 2003-06-07  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10016
10017         * device/lib/_atof.c, device/lib/Makefile.in, device/include/stdlib.h,
10018           device/lib/libfloat.lib: added atof function.
10019
10020 2003-06-04  Bernhard Held <bernhard AT bernhardheld.de>
10021
10022         * doc/sdccman.lyx: updated to Lyx 1.3
10023         * doc/cdbfileformat.lyx: updated to Lyx 1.3
10024         * doc/test_suite_spec.lyx: updated to Lyx 1.3
10025         * doc/Makefile: added fix for the \tabularnewline problem, thanks to Jesus
10026
10027 2003-06-03  Bernhard Held <bernhard AT bernhardheld.de>
10028
10029         * src/SDCCpeeph.c: separate peepRules2pCode() for pic16 by "Vangelis Rokas" <vrokas AT otenet.gr>
10030
10031 2003-06-02  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10032
10033         * doc/sdccman.lyx: cvs revision keywords, passing pdf information in latex preamble,
10034           additions to the "related tools/documentation" section
10035
10036 2003-06-02  Bernhard Held <bernhard AT bernhardheld.de>
10037
10038         * src/SDCCglue.c (tempfileandname): added check for missing TMP/TEMP/TMPDIR variable
10039
10040 2003-05-29  Bernhard Held <bernhard AT bernhardheld.de>
10041
10042         * src/pic/device.c: added 16F819, patch by "David I. Lehn" <dlehn AT vt.edu>
10043         * src/SDCCcse.c (algebraicOpts): fixed "c * 1"
10044
10045 2003-05-28  Bernhard Held <bernhard AT bernhardheld.de>
10046
10047         * doc/sdccman.lyx: fix double dash and other minor things
10048         * doc/Makefile: fix double dash
10049
10050 2003-05-28  Karl Bongers(patches from Martin Helmling)
10051         * debugger/mcs51/sdcdb.c,cmd.c,break.c and .h files. Martin adds
10052           condition and ignore commands.
10053
10054 2003-05-28  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10055
10056         * doc/sdccman.lyx: Changes all over, index improved, smaller margins. The manual
10057           is in parts still quite out of date, I did changes as far as I felt makes sense
10058           for a non-native english speaker.
10059           Please feel free to add to the manual or to correct my changes.
10060         * doc/Makefile: undid touching the date of intermediate tex files.
10061
10062 2003-05-26  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10063
10064         * doc/sdccman.lyx: Manual has an index now
10065
10066 2003-05-25  Bernhard Held <bernhard AT bernhardheld.de>
10067
10068         Finalize muluint/mulsint and mululong/mulslong merging:
10069         * device/lib/_mulint.c
10070         * device/lib/_mullong.c
10071         * device/lib/gbz80/mul.s
10072         * device/lib/gbz80/stubs.s
10073         * device/lib/z80/mul.s
10074         * device/lib/z80/stubs.s
10075         * src/SDCCsymt.c (initCSupport)
10076
10077 2003-05-25  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10078
10079         * as/mcs51/lkaomf51.c: Address space 'z' was missing.
10080         * src/avr/avr.dsp, src/ds390/ds390.dsp, src/mcs51/mcs51.dsp,
10081           src/pic/pic.dsp, src/pic16/pic16.dsp, src/xa51/xa51.dsp,
10082           src/x80/z80.dsp: peep.rul is bigger now, so /Zm1000 is used
10083           instead of /Zm500.
10084
10085 2003-05-25  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10086
10087         * src/mcs51/peeph.def: added rules 244.x, 245.x. Although they pass
10088           the regression tests I'm not brave enough to enable 245.b, 245.c
10089         * doc/sdccman.lyx: added latex preamble for hyperref package.
10090           Using pdflatex this will give you a hyperlinked pdf file with
10091           bookmarks. (prepend '%' before /usepackage if this breaks something)
10092
10093 2003-05-24  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10094
10095          * doc/sdccman.lyx: updated information about .adb files (fixed bug 742649)
10096
10097 2003-05-22  Bernhard Held <bernhard AT bernhardheld.de>
10098
10099         * src/pic16/pcode.c (pic16_get_op_from_instruction): fixed a gcc 3.x warning
10100
10101 2003-05-21    <johan AT balder>
10102
10103         * src/SDCCglue.c (printIval): fixed bug #739934
10104
10105 2003-05-19  Bernhard Held <bernhard AT bernhardheld.de>
10106
10107         Applied patch from bug 737905 (renamed yylineo to mylineno):
10108         * src/altlex.c
10109         * src/SDCCast.c
10110         * src/SDCglobl.h
10111         * src/SDCC.lex
10112         * src/SDCCsymt.c
10113         * src/SDCCval.c
10114         * src/pic16/pcode.c: Cleaned warnings
10115         * src/pic16/pcodeflow.c: Cleaned warnings
10116         * src/pic16/pcoderegs.c: Cleaned warnings
10117
10118 2003-05-19  Scott Dattalo  <scott AT dattalo.com>
10119
10120         * src/pic16/pcode.c: Cleaned warnings
10121         * src/pic16/pcodepeep.c: Cleaned warnings
10122         * src/pic16/ralloc.c: Cleaned warnings
10123
10124 2003-05-19  Bernhard Held <bernhard AT bernhardheld.de>
10125
10126         * doc/sdccman.lyx: fixed bug 739745
10127         * src/pic16/pcode.c (pic16_get_op): fixed warning on alpha
10128
10129 2003-05-18  Bernhard Held <bernhard AT bernhardheld.de>
10130
10131         * src/port.h: removed DEFAULT_PORT, it's not yet pic16 ;-)
10132         it can be defined with CFLAGS when running configure
10133         * src/SDCCmain.c: fixed compiling + linking with object files
10134
10135 2003-05-18  Vangelis Rokas (vrokas AT otenet.gr)
10136
10137         * configure.in: configure for pic16 port,
10138             added --disable-pic16-port
10139         * sdccconf_in.h: added macro OPT_DISABLE_PIC16
10140         * src/SDCCmain.c: linkOptions is changed to set *,
10141             added if/endif conditional macros to remove options help
10142             messages from optionsTable when a port is not configured, added
10143             support for the PIc16 port in the ports table, when executing
10144             the compiler with no port specified on command line, a default
10145             port is selected with the new macro DEFAULT_PORT which is
10146             defined in port.h, in setDefaultOptions() linkOptions is removed
10147             from initialization assignment, since now it is a set,
10148             parseCmdLine uses setParseWithComma for linkOptions, in
10149             linkEdit() linkOptions are accessed with new function indexSet()
10150             which returns the i'th item of a set variable. See SDCCset.c, in
10151             linkEdit() when calling buildCmdLine(), added linkOptions as
10152             last argument. Now users can pass arguments to gplink via the
10153             -Wl option, main() uses pic16glue() to glue up pic16 programs
10154         * src/SDCCpeeph.c: various changes to support pic16
10155         * src/SDCCset.c: added function  void *indexSet(set *, int)  to
10156             return the i'th item of the set
10157         * src/SDCCset.h: added function prototype for indexSet()
10158         * src/SDCCsymt.c: in checkSClass(), added support for PIC16
10159         * src/clean.mk: added pic16 in CLEANALLPORTS variable
10160         * src/port.h: added TARGET_ID_PIC16,TARGET_IS_PIC16 macro,
10161             added macro DEFAULT_PORT
10162         * src/pic/main.c: corrected arguments of gplnk in _linkCmd
10163         * src/pic16/gen.c: bug fix in genCpl(), now the correct code is
10164             generated
10165         * src/pic16/glue.c: commented out some error producing lines
10166         * src/pic16/main.c: __config directives are commented out to stop
10167             gpasm complaining and test the linkage with gplink, _linkCmd and
10168             _asmCmd changed to be more gplink and gpasm friendly
10169         * src/pic16/peeph.def: peep rule 3 is commented out, since it
10170             produced an error when parsed, peep rule 12 is added to utilize
10171             movff, but it is commented out since the pCode does not support
10172             yet a command with 2 address arguments
10173
10174 2003-05-18    <johan AT balder>
10175
10176         * src/ds390/gen.c (genArrayInit): removed obsolete and buggy ARRAYINIT
10177         * src/ds390/main.c (genArrayInit): removed obsolete and buggy ARRAYINIT
10178 2003-05-17  Karl Bongers(apply patches from Martin Helmling)
10179
10180         * debugger/mcs51/sdcdb.c,cmd.c,break.c and .h files.
10181   Added feature to script commands from file.
10182
10183 2003-05-14  Bernhard Held <bernhard AT bernhardheld.de>
10184
10185         * device/lib/_strtok.c: fixed bug #734355 by Lenny Story and Tim Woodall
10186         * src/SDCCutil.c: include ctype.h for win32
10187
10188 2003-05-13  Bernhard Held <bernhard AT bernhardheld.de>
10189
10190         * src/pic16/*: removed CR from many files, reported by Vangelis Rokas
10191
10192 2003-05-12  Karl Bongers(apply development patches from Martin Helmling)
10193
10194         * debugger/mcs51/sdcdb.c,simi.c,cmd.c,break.c and .h files.
10195   Fixed so you can set breakpoints prior to run, run does not stop
10196   on entry now.  Add tbreak.  Other enhancements and fixes for use
10197   with ddd.
10198
10199 2003-05-12  Borut Razem <borut.razem AT siol.net>
10200
10201         * src/SDCCmain.c: fixed the problem with searching the DATADIR as the last resort on *nix
10202
10203 2003-05-11  Borut Razem <borut.razem AT siol.net>
10204
10205         * src/SDCCutil.c: WIN32 version of getBinPath() calls GetModuleFileName() to determine
10206         the path of bin directory, so that PATH is the only env. variable, which has to be set
10207         in case of standard installation.
10208         * src/ds390/ds390.dsp: increased value of /Zm option to 1000
10209         * src/pic/main.c: add quotes to file name parameters for gplink and gpasm
10210         * src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx: added --print-search-dirs command line option
10211
10212 2003-05-04  Bernhard Held <bernhard AT bernhardheld.de>
10213
10214         * src/SDCCmain.c (linkEdit): fixed buffer overflow for gbz80
10215         * support/regression/Makefile: inter-port-clean is no longer nesessary, the
10216         temp files are in the port dir; clean the gen/test directory when
10217         generating new test.c
10218         * support/regression/ports/host/spec.mk: defined OBJEXT for target clean
10219         * support/regression/tests/vaargs.c: fixed gcc 3.3 warning
10220         * support/regression/tests/zeropad.c: added
10221
10222 2003-05-09    <johan AT balder>
10223
10224         * src/SDCCglue.c: fixed bug #597940
10225
10226 2003-05-05  Karl Bongers(apply patches from Martin Helmling)
10227
10228         * debugger/mcs51/sdcdb.c,simi.c,cmd.c,symtab.c and .h files.
10229   cache sfr, optimize next,step, fix off by one sourceline,
10230   support ddd list function.
10231         * sim/ucsim/cmd.src/newcmd.cc - small fix for sdcdb use.
10232
10233 2003-05-04  Bernhard Held <bernhard AT bernhardheld.de>
10234
10235         * support/regression/HTMLgen.py: added compare_s2f()
10236         * support/regression/Makefile: redo 1.27
10237         * support/regression/generate-cases.py: redo 1.5
10238
10239 2003-04-30  Bernhard Held <bernhard AT bernhardheld.de>
10240
10241         * support/regression/tests/float.c: workaround 33 bit hex constant
10242         * support/regression/tests/simplefloat.c: fix division for host
10243
10244 2003-04-29  Scott Dattalo  <scott AT dattalo.com>
10245
10246         * src/pic/pcoderegs.c Applied patch from Jim Hawkridge <jim AT jimhawkridge.uk.eu.org>
10247         that tame's the PIC's over-aggressive optimizer.
10248
10249 2003-04-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10250
10251          * src.dsw, link/z80/aslink.h, link/z80/linkz80.dsp: z80 linker
10252          support for MSVC.
10253
10254 2003-04-29  Kevin Vigor <kevin AT vigor.nu>
10255
10256         Initial support for DS80C400. "Hello world" runs on TINIm400
10257         (with polled I/O).
10258
10259 2003-04-28  Karl Bongers(apply patches for Martin Helmling)
10260
10261          * debugger/mcs51/sdcdb.c,simi.c,cmd.c,symtab.c and .h files.
10262          * Some notes on ddd usage added in debugger/README
10263          Martin Helmling adding more features and fixes for ddd GUI debugger.
10264          Code added for nexti, stepi, up, down, and other adjustments.
10265
10266 2003-04-28  Scott Dattalo  <scott AT DATTALO.COM>
10267
10268         * src/pic/pCodepeep.c non-wildcard asmops are now handled
10269         * src/pic/peeph.def Added two rules to optimize carry manipulation
10270         * src/pic/* removed debug printfs
10271
10272 2003-04-28  Bernhard Held <bernhard AT bernhardheld.de>
10273
10274         * debugger/mcs51/cmd.c: added header newalloc.h
10275
10276 2003-04-26  Bernhard Held <bernhard AT bernhardheld.de>
10277
10278         * as/Makefile: new EXEEXT
10279         * as/z80/Makefile: remove trailing slash of BUILDIR
10280         * as/z80/clean.mk: new EXEEXT
10281         * Makefile.common.in: add to CFLAGS (and others), don't replace it
10282         * support/cpp2/Makefile.in: new EXEEXT
10283         * src/pic/glue.c (pic14emitRegularMap): fixed warning
10284
10285 2003-04-24  Bernhard Held <bernhard AT bernhardheld.de>
10286
10287         Cygwin's gcc always appends .exe: 'gcc -o a a.c' creates a.exe;
10288         EXEEXT was introduced to fix all related problems with targets
10289         "clean", "install" and "uninstall"; a couple of further flaws
10290         especially with "clean" have been fixed too
10291         * as/mcs51/Makefile.in
10292         * as/mcs51/clean.mk
10293         * as/z80/Makefile
10294         * Makefile
10295         * clean.mk
10296         * debugger/mcs51/Makefile.in
10297         * debugger/mcs51/clean.mk
10298         * link/z80/Makefile
10299         * link/z80/Makefile.in
10300         * link/z80/clean.mk
10301         * link/Makefile
10302         * packihx/Makefile.in
10303         * packihx/clean.mk
10304         * sim/ucsim/Makefile
10305         * sim/ucsim/clean.mk
10306         * sim/ucsim/avr.src/Makefile.in
10307         * sim/ucsim/avr.src/clean.mk
10308         * sim/ucsim/s51.src/Makefile.in
10309         * sim/ucsim/s51.src/clean.mk
10310         * sim/ucsim/xa.src/Makefile.in
10311         * sim/ucsim/xa.src/clean.mk
10312         * sim/ucsim/z80.src/Makefile.in
10313         * sim/ucsim/z80.src/clean.mk
10314         * sim/ucsim/main_in.mk
10315         * sim/ucsim/packages_in.mk
10316         * sim/ucsim/gui.src/Makefile.in
10317         * sim/ucsim/gui.src/serio.src/Makefile.in
10318         * sim/ucsim/gui.src/serio.src/clean.mk
10319         * src/Makefile.in
10320         * src/clean.mk
10321         * support/cpp2/Makefile.in
10322         * support/cpp2/clean.mk
10323         * support/makebin/Makefile
10324         * support/makebin/clean.mk
10325         * support/scripts/sdcc_mingw32: --program-suffix no longer needed
10326         * doc/sdccman.lyx: --program-suffix no longer needed
10327
10328 2003-04-23  Karl Bongers(apply patches for Martin Helmling)
10329
10330          * debugger/mcs51/sdcdb.c,simi.c,cmd.c,..
10331          Martin Helmling added support for ddd GUI debugger.
10332          Code added to display assembly, set variables, and other commands
10333          to interface to ddd.
10334
10335 2003-04-23  Bernhard Held <bernhard AT bernhardheld.de>
10336
10337         * as/Makefile: fix target clean
10338         * as/clean.mk: fix target clean
10339         * as/z80/clean.mk: fix target clean
10340
10341 2003-04-22  Bernhard Held <bernhard AT bernhardheld.de>
10342
10343         * Makefile.common.in: added  AT EXEEXT AT
10344         * configure.in: removed all mingw32 stuff
10345         * configure: rebuilt from configure.in
10346         * doc/sdccman.lyx: updated section "installation"
10347         * support/scripts/sdcc_mingw32: adapted to configure
10348         * support/scripts/sdcc_cygwin_mingw32: added
10349
10350 2003-04-22  Scott Dattalo  <scott AT dattalo.com>
10351
10352         * src/pic Added object file support for the PIC port
10353         * src/pic Applied patch from Craig Franklin (this started the object file support)
10354         * src/regression Updated the PIC regression tests for object files
10355
10356 2003-04-20  Borut Razem <borut.razem AT siol.net>
10357
10358         * sdcc/as/mcs51/lklex.c: make getfid() more robust and fixed gcc warning:
10359           lklex.c: In function `getfid':
10360           lklex.c:203: warning: array subscript has type `char'
10361         * src/SDCCglobl.h: small change in stack handling macros, to avoid crash when compiled
10362           with MSVC with global optimization enabled (probably an cl compiler bug ;-)
10363         * support/Util/SDCCerr.c, support/Util/SDCCerr.h: added function fatal(), called from
10364           stack handling macros
10365
10366 2003-04-19  Borut Razem <borut.razem AT siol.net>
10367
10368         * "handling space characters in file path" task:
10369         * src/SDCCmacro.c: fixed bug in handlig quote at the end of line
10370         * support/Util/BuildCmd.c: define par as NULL if parameter value is invalid
10371         * support/Util/MySystem.h: make it self-sufficient
10372         * src/avr/main.c, src/ds390/main.c, src/mcs51/main.c, src/pic/main.c, src/xa51/main.c,
10373           src/z80/main.c, sdcc/as/mcs51/lklex.c:
10374           handling space characters in file path
10375         * src/SDCCmain.c: introduced setDataPaths() function, {datadir} macro
10376           (it will be used by assemblers, which have their own includes, e.g. gpasm)
10377         * support/Util/MySystem.c: handling space characters in executable's path
10378
10379 2003-04-19  Bernhard Held <bernhard AT bernhardheld.de>
10380
10381         * as/z80/Makefile: fix permanent rebuild of z80
10382         * sim/ucsim/gui.src/Makefile.in: target "install" builds the same packages as target "all"
10383         * support/regression/tests/bitfields.c: added Johan's bitfields.c
10384
10385 2003-04-18      Kevin Vigor <kevin AT vigor.nu>
10386
10387         * src/SDCCopt.c: add special case optimization to replace modulo by
10388           a power of two with a bitwise AND.
10389
10390 2003-04-18    <johan AT balder>
10391
10392         * src/mcs51/gen.c (getFreePtr): fixed bug #635354
10393
10394 2003-04-17    <johan AT balder>
10395
10396         * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #716790 and removes lot's of redundant register usage around function calls
10397         * src/mcs51/ralloc.c (packRegisters): fixed bug #720667
10398
10399 2003-04-13  Borut Razem <borut.razem AT siol.net>
10400
10401         * doc/sdccman.lyx: updated info about #pragma SAVE/RESTORE nesting
10402         * configure.in, configure: fixed problems on cygwin/WinCVS environmet with ports.* line endings;
10403           fixed mingw problem in adl_NORMALIZE_PATH
10404
10405 2003-04-12  Borut Razem <borut.razem AT siol.net>
10406
10407         * fixed "#pragma SAVE/RESTORE can not be nested":
10408         * src/SDCC.lex: reworked pragma handling functions
10409         * sdcc/src/SDCCglobl.h: reworked stack handling macros
10410         * support/Util/SDCCerr.c, support/Util/SDCCerr.h: added E_STACK_VIOLATION error
10411
10412 2003-04-12  Bernhard Held <bernhard AT bernhardheld.de>
10413
10414         * src/SDCCutil.c (pathEquivalent): defined but not used
10415         * debugger/mcs51/sdcdb.c: replace SDCC_LIB_DIR
10416         * configure.in: remove sdcc_datadir, sdcc_lib_dir and sdcc_include_dir
10417         * configure: rebuilt from configure.in
10418         * sdccconf_in.h: remove SDCC_LIB_DIR and SDCC_INCLUDE_DIR
10419         * sdcc_vc_in.h: remove SDCC_LIB_DIR and SDCC_INCLUDE_DIR
10420         * device/include/Makefile.in: replace sdcc_datadir
10421         * device/lib/Makefile.in: replace sdcc_datadir
10422         * Makefile.common.in: add LDFLAGS from configure
10423         * packihx/Makefile.in: use LDFLAGS
10424         * src/Makefile.in: use LDFLAGS
10425         * support/cpp2/Makefile.in: add LDFLAGS from configure
10426         * support/makebin/Makefile: use LDFLAGS
10427         * .version: bumped version number to 2.3.5
10428
10429 2003-04-12  Borut Razem <borut.razem AT siol.net>
10430
10431         * completed "different paths" task:
10432         * src/SDCCmacro.c: fixed bug in handling quotes
10433         * src/SDCCutil.c, src/SDCCutil.c: rewritten getPrefixFromBinPath()
10434         * src/SDCCmain.c: _discoverPaths() replaced with setBinPaths(), setIncludePath() and setLibPath()
10435
10436 2003-04-12  Bernhard Held <bernhard AT bernhardheld.de>
10437
10438         * src/pic/pcoderegs.c (Remove1pcode): fix warning on alpha
10439
10440 2003-04-11 kevin Vigor <kevin AT vigor.nu>
10441
10442         * ds390/gen.c ds390/peeph.def: fix bug 706781
10443
10444 2003-04-11  Borut Razem <borut.razem AT siol.net>
10445
10446         * support/Util/dbuf.c, support/Util/dbuf.h: update to version 1.1.1 - re-added C++ stuff to make it still more portable
10447
10448 2003-04-10  Scott Dattalo  <scott AT dattalo.com>
10449
10450         * src/pic/* Applied the pointer-to-function patch from Steve Tell.
10451         * src/pic/* Fixed several pointer bugs. (PIC port broke when the ruonly bit was
10452          set - this bit used to not be set...).
10453         * src/pic/gen.c Fixed buf 609268 ==> x = (x+1) & 0xf; generated
10454           bad code in PIC Port
10455         * src/regression/and2.c added to test bug 609268
10456         * src/regression/Makefile added and2.c to regression test
10457
10458
10459 2003-04-08    <johan AT CP255758-A>
10460
10461         * src/mcs51/gen.c (gen51Code): display reg usage in --icode-in-asm
10462         * src/mcs51/ralloc.c (serialRegAssign): update the registers in use and save some slocs
10463         * src/SDCCicode.h: added riu to show the register usage in --icode-in-asm
10464
10465 2003-04-07  Bernhard Held <bernhard AT bernhardheld.de>
10466
10467         * configure.in: fully support prefix, exec_prefix, datadir, docdir;
10468         fix bug #487815
10469         * support/cpp2/Makefile.in: fix bug #487815
10470         * configure: rebuilt from configure.in
10471         * Makefile.common.in: docdir changed, new path suffixes
10472         * sdccconf_in.h: new RETSIGTYPE, and other PATHs
10473         * sdcc_vc_in.h: reflect changes from sdccconf.h
10474         * src/SDCCglobl.h: remove *SEPARATOR_CHARS, they are now in sdccconf.h
10475         * src/SDCCutil.h: remove BINDIR hack
10476         * doc/sdccman.lyx: update new path hierarchy
10477
10478 2003-04-06    Paul Stoffregen <paul AT pjrc.com>
10479
10480         * src/SDCCpeeph.c: added okToRemoveSLOC test
10481
10482 2003-04-06    Paul Stoffregen <paul AT pjrc.com>
10483
10484         * device/lib/printf_fast.c: added leading zero format ("%06d", etc)
10485
10486 2003-04-06    Paul Stoffregen <paul AT pjrc.com>
10487
10488         * src/SDCCpeeph.c: added labelIsReturnOnly test
10489         * src/mcs51/peeph.def: Peephole 244: replace ljmp to ret with ret
10490
10491 2003-04-05    <johan AT balder>
10492
10493         * src/SDCCcse.c (cseAllBlocks): fixed bug #460088
10494         * src/SDCCloop.c (DEFSETFUNC): fixed bug #460088
10495         * src/SDCCopt.c (eBBlockFromiCode): fixed bug #460088
10496         * src/SDCCast.c: fixed a warning
10497         * src/SDCCast.h: fixed a warning
10498         * src/SDCCicode.c (operandFromAst): fixed a warning
10499
10500 2003-04-04    <johan AT balder>
10501
10502         * src/SDCCloop.c (DEFSETFUNC): undid the fix for bug #519584
10503         * src/SDCCast.c (decorateType): fixed bug #715076
10504         * src/SDCC.y: fixed bug #702907
10505
10506 2003-04-03    <johan AT balder>
10507
10508         * device/lib/_mulint.c (_muluint): new #pragma LESS_PEDANTIC
10509         * src/SDCCopt.c (eBBlockFromiCode): new #pragma LESS_PEDANTIC
10510         * src/SDCCglobl.h (PRAGMA_LESSPEDANTIC): new #pragma LESS_PEDANTIC
10511         * src/SDCC.lex (doPragma): new #pragma LESS_PEDANTIC
10512         * src/SDCCmain.c (parseCmdLine): new #pragma LESS_PEDANTIC
10513
10514 2003-04-03  Bernhard Held <bernhard AT bernhardheld.de>
10515
10516         * _decdptr.c: fix return values
10517         * _gptrget.c: fix return values
10518         * _gptrgetc.c: fix return values
10519         * _gptrput.c: fix return values
10520         * _mulint.c: fix return values
10521         * as/z80/Makefile: fix 'make -j' problem
10522
10523 2003-04-02  Bernhard Held <bernhard AT bernhardheld.de>
10524
10525         * Makefile.common.in: unused PORT, SCC and SAS removed, fixed docdir
10526         * configure.in: big cleanup, updated to autoconf 2.5x
10527         * configure: rebuilt from configure.in
10528         * sdccconf_in.h: new RETSIGTYPE, and other PATHs
10529         * sdcc_vc_in.h: reflect changes from sdccconf.h
10530         * doc/Makefile: fixed a flaw in "make install"
10531
10532 2003-04-02    <johan AT balder>
10533
10534         * src/ds390/gen.c (genCmp): no comments
10535         * src/mcs51/gen.c (genCmp): no comments
10536         * src/SDCCopt.c (eBBlockFromiCode): detect missing return values
10537         * src/SDCCast.c (ast_print): fixed the function type in --dumptree
10538
10539 2003-04-01  Bernhard Held <bernhard AT bernhardheld.de>
10540
10541         * support/regression/generate-cases.py: place generated file in given sub directory
10542         * support/regression/ports/host/spec.mk: prevent removal of testfwk.o
10543         * support/regression/Makefile: improvements for 'make -j';
10544         side effect: it's simpler and faster now
10545
10546 2003-03-31  Borut Razem <borut.razem AT siol.net>
10547
10548         * src/z80/main.c: link-{port} and as-{port} defined without path
10549         * src/src.dsp: support/Util/MySystem.h and src/SDCCutil.h added to project
10550
10551 2003-03-31  Bernhard Held <bernhard AT bernhardheld.de>
10552
10553         * Makefile, src/Makefile.in: add dependencies, so that 'make -j' works
10554
10555 2003-03-30  Borut Razem <borut.razem AT siol.net>
10556
10557         * support/Util/BuildCmd.c, support/Util/BuildCmd.h: rewrite buildCmdLine(),
10558           changed type of list parameter to set
10559         * src/ds390/main.c: changed type of parameter asmOptions to set in _tininative_do_assemble()
10560         * src/port.h: changed type of do_assemble() parameter to set
10561         * src/SDCCmain.c: type of asmOptions changed to set, introduced setParseWithComma(),
10562           sdcpp defined without path, removed variable VersionString, introduced set binPathSet,
10563           definition of "cppoutfilename" macro with NULL value in preProcess()
10564         * src/SDCCglobl.h: included "SDCCset.h", added declaration of setParseWithComma()
10565         * src/SDCCglue.c: removed variable VersionString, inroduced spacesToUnderscores()
10566         * support/Util/MySystem.c, support/Util/MySystem.h: rewrite, char *ExePathList[]
10567           replaced with set *binPathSet
10568         * shash_add() deallocates the item, if allready exsists, before adding the new one
10569         * src/SDCCmacro.c: handling macros with empty or NULL values in _evalMacros()
10570
10571 2003-03-30  Scott Dattalo  <scott AT dattalo.com>
10572
10573         * src/pic/gen.c: Commit patch from Steve Tell <tell AT telltronics.org> that fixes
10574           a nested for loop bug in the PIC port
10575         * src/regression/nestfor.c: new regression test file Steve wrote to test nested
10576           for loops
10577
10578 2003-03-29  Bernhard Held <bernhard AT bernhardheld.de>
10579
10580         * support/Util/dbuf.h: remove C++ stuff to make it portable
10581
10582 2003-03-28  Borut Razem <borut.razem AT siol.net>
10583
10584         * src/SDCC.lex: Fix for bug #711240: dynamic buffer handling of C
10585           literal strings in stringLiteral()
10586         * support/Util/dbuf.c, support/Util/dbuf.h: added: dynamic buffer handling
10587         * src/Makefile.bcc, src/Makefile.in, src/src.dsp: added support/Util/dbuf.c
10588           to the project
10589
10590 2003-03-27  Paul Stoffregen <paul AT pjrc.com>
10591
10592         * src/SDCCpeeph.c (pcDistance): accurate byte distance for mcs51
10593
10594 2003-03-26    <johan AT balder>
10595
10596         * src/mcs51/gen.c (saveRegisters): catched symbol abuse
10597         * src/ds390/gen.c (saveRegisters): catched symbol abuse
10598         * src/SDCCast.c (decorateType): fixed " -v < 3"
10599
10600 2003-03-23  Bernhard Held <bernhard AT bernhardheld.de>
10601
10602         * doc/cdbfile.html: removed, replaced by cdbfileformat.lyx
10603         Added Lenny Story's debug infrastructure changes:
10604         * src/Makefile.in:  added new files cdbFile.c and SDCCdebug.c
10605         * src/Makefile.bcc: added new files cdbFile.c and SDCCdebug.c
10606         * src/cdbFile.c: added
10607         * src/SDCCdebug.c: added
10608         * src/SDCCdebug.h: added
10609         * src/SDCCast.c (createFunction)
10610         * src/SDCCglue.c (emitRegularMap, emitStaticSeg, emitOverlay, glue)
10611         * src/SDCCmain.c (parseCmdLine, main)
10612         * src/SDCCmem.c (redoStackOffsets)
10613         * src/SDCCsymt.c (cdbStructBlock, cdbTypeInfo, cdbSymbol, cdbStruct, cdbStructBlock)
10614         * src/SDCCsymt.h
10615         * src/common.h
10616         * src/avr/gen.c (genAVRCode)
10617         * src/ds390/gen.c (gen390Code)
10618         * src/mcs51/gen.c (gen51Code)
10619         * src/pic/gen.c (genpic14Code)
10620         * src/pic/glue.c (pic14emitRegularMap, pic14emitStaticSeg, pic14emitOverlay, picglue)
10621         * src/xa51/gen.c (genXA51Code)
10622         * src/SDCCast.c: fixed "void foo(void){char c; -c < 0;}"
10623
10624 2003-03-22  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10625
10626         * src/mcs51/gen.c (genCodePointerGet): quicker code for bug #700797
10627         * src/mcs51/peeph.def: added rules 177, 241.x to 243, touched 181, 182.x, 193.x
10628
10629 2003-03-22    <johan AT balder>
10630
10631         * src/SDCCicode.c (geniCodeDerefPtr): fixed bug #698231
10632
10633 2003-03-21  Bernhard Held <bernhard AT bernhardheld.de>
10634
10635         * support/scripts/sdcc_mingw32: adapted to configure from autoconf 2.54
10636         * doc/cdbfileformat.lyx: added, written by Lenny Story
10637         * doc/Makefile: added cdbfileformat.lyx
10638         * doc/clean.mk: added cdbfileformat.lyx
10639
10640 2003-03-20  Bernhard Held <bernhard AT bernhardheld.de>
10641
10642         * src/mcs51/peeph.def: fix bug #705773
10643
10644 2003-03-20    <johan AT balder>
10645
10646         An sfr/sbit can have an "at #" AND an initializer
10647         * src/SDCCsymt.c (checkSClass):
10648         * src/SDCCmem.c (allocGlobal):
10649         * src/SDCCmem.c (allocLocal):
10650         * src/SDCCast.c (createBlock):
10651
10652 2003-03-17  Bernhard Held <bernhard AT bernhardheld.de>
10653
10654         * src/ds390/peeph.def: fix bug #704878: added rule 213.b suggested by Jan Rejlek
10655
10656 2003-03-16    <johan AT balder>
10657
10658         Undid the hackup of const and volatile, the problem is much bigger
10659         * src/SDCC.y:1.65
10660         * src/SDCCast.c:1.171
10661         * src/SDCCglue.c:1.138
10662         * src/SDCCicode.c:1.146
10663         * src/SDCCsymt.c:1.150
10664         * src/SDCCval.c:1.65
10665
10666 2003-03-15  Bernhard Held <bernhard AT bernhardheld.de>
10667
10668         * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #703541
10669         * src/ds390/gen.c (genAddrOf): fixed bug #704087
10670
10671 2003-03-13    <johan AT balder>
10672
10673         Hackup const and volatile modifiers in type chains a bit:
10674         * src/SDCC.y:1.63
10675         * src/SDCCast.c:1.169
10676         * src/SDCCglue.c:1.136
10677         * src/SDCCicode.c:1.143
10678         * src/SDCCsymt.c1.146
10679         * src/SDCCsymt.h1.59
10680         * src/SDCCval.c:1.63
10681
10682 2003-03-12    <johan AT balder>
10683
10684         * src/SDCCBBlock.h: more LRH debugging junk
10685         * src/SDCCcflow.h: more LRH debugging junk
10686         * src/SDCCloop.c: more LRH debugging junk
10687         * src/SDCC.y (struct_declaration): fixed bug #697590
10688         * src/SDCCsymt.[hc] (cloneSpec): NEVER EVER use this again
10689         * src/ds390/gen.c (aopForRemat): fixed bug #700031
10690         * src/SDCCglue.c (emitStaticSeg): fixed bug #700797
10691
10692 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
10693         * src/SDCCpeeph.c: quit being lazy and made proper fix (peephole
10694         test function names must now match exactly).
10695         * src/SDCCcse.c: added special case in findCheaperOp to allow
10696         extending a short integer. Makes less awful code for bug 700121 test case.
10697
10698 2003-03-11  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10699
10700         * as/mcs51/lkmain.c: Added ASlink-Warning to messages
10701         * as/mcs51/lkaomf51.c: Fixed bug when linking asmblink example
10702
10703 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
10704
10705         * src/SDCCpeeph.c: fix so that operandsNotEqualX functions are
10706         actually called (operandsNotEqual() was called for all
10707         operandsNotEqualX tests).
10708
10709 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
10710
10711         * src/SDCCcse.c: fix findCheaperOp to prevent replacing int types
10712         with shorter literals. Fixes bug 700121.
10713
10714 2003-03-11    <johan AT balder>
10715
10716         * src/SDCCsymt.c (compareType): a (void *) can be assigned to any pointer
10717
10718 2003-03-11  Bernhard Held <bernhard AT bernhardheld.de>
10719
10720         * src/SDCCloop.c (mergeRegions): an evil beast is dead
10721         * src/SDCCmain.c (preProcess): minor cleanup: eliminate preOutName
10722
10723 2003-03-10  Borut Razem <borut.razem AT siol.net>
10724
10725         * src/SDCCmain.c: pipe preprocessor's output
10726         * support/Util/MySystem.c, support/Util/MySystem.h: added my_popen()
10727         * sdcc_vc_in.h: define pclose as _pclose for WIN32
10728         * src/SDCCglue.c, src/SDCCglue.h: added set pipeSet, added function closePipes,
10729         which closes all pipes in pipeSet set
10730         * src/SDCCset.c: free deleted item in function deleteSetItem()
10731         * src/src.dsp, src/z80/z80.dsp: files support/Util/BuildCmd.c and support/Util/MySystem.c
10732         moved from z80 to src subproject
10733         * .version: increased version number to 2.3.4
10734
10735 2003-03-10  Bernhard Held <bernhard AT bernhardheld.de>
10736
10737         * support/regression/ports/mcs51/spec.mk: increase timeout for CF's sparc to 30s
10738         * support/regression/ports/ds390/spec.mk: increase timeout for CF's sparc to 25s
10739         * support/regression/ports/xa51/spec.mk: fix typo
10740
10741 2003-03-09  Bernhard Held <bernhard AT bernhardheld.de>
10742
10743         * src/SDCCglobl.h: PATH_MAX is already defined in mingw32 headers
10744
10745 2003-03-09  Borut Razem <borut.razem AT siol.net>
10746
10747         * src/SDCCmain.c: pipe preprocessor's output
10748         * support/Util/MySystem.c, support/Util/MySystem.h: added my_popen()
10749         * sdcc_vc_in.h: define pclose as _pclose for WIN32
10750         * src/SDCCglue.c, src/SDCCglue.h: added set pipeSet, added function closePipes,
10751         which closes all pipes in pipeSet set
10752         * src/SDCCset.c: free deleted item in function deleteSetItem()
10753         * src/src.dsp, src/z80/z80.dsp: files support/Util/BuildCmd.c and support/Util/MySystem.c
10754         moved from z80 to src subproject
10755
10756 2003-03-09  Borut Razem <borut.razem AT siol.net>
10757
10758         * src/SDCCglue.c: re-implemented tempfilename() and tempfile(): using mkstemp() if available
10759         * src/SDCCsymt.h: fixed MSVC and BORLANDC compilation (included SDCCglobl.h instead srccconf.h)
10760         * sdcc_vc_in.h: explicitly undefined HAVE_MKSTEMP which is not available on BORLANDC and MSVC
10761         * src/SDCCset.h: removed inclusion of sdccconf.h or sdcc_vc.h
10762         * src/SDCCglobl.h: unification of WIN32 native definitions
10763
10764 2003-03-09  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10765
10766         * src/mcs51/gen.c: applied in-/dec patch mentioned on sdcc-devel 2003-03-01
10767
10768 2003-03-08  Bernhard Held <bernhard AT bernhardheld.de>
10769
10770         * src/configure.in:   check for endianess (even while cross-compiling)
10771         * src/configure:      check for endianess (even while cross-compiling)
10772         * src/configure_in.h: check for endianess (even while cross-compiling)
10773         * src/avr/gen.c:        remove old endianess stuff
10774         * src/mcs51/gen.c:      remove old endianess stuff
10775         * src/ds390/gen.c:      remove old endianess stuff
10776         * src/pic/gen.c:        remove old endianess stuff
10777         * src/pic/genarith.c:   remove old endianess stuff
10778         * src/pic/glue.c:       fix endianess check
10779         * src/pic16/gen.c:      remove old endianess stuff
10780         * src/pic16/genarith.c: remove old endianess stuff
10781         * src/pic16/glue.c:     fix endianess check
10782         * src/xa51/gen.c:       remove old endianess stuff
10783         * src/z80/gen.c:        fix endianess check
10784         * src/SDCCglue.c:       fix endianess check
10785         * src/ds390/peeph.def: fix bug 700036
10786
10787 2003-03-08  Bernhard Held <bernhard AT bernhardheld.de>
10788
10789         * src/SDCCsymt.h: use appropriate data-types on host for SDCC's int and long
10790         * src/configure: find appropriate data-types on host for SDCC's int and long
10791         * src/configure.in: find appropriate data-types on host for SDCC's int and long
10792         * src/sdccconf_in.h: find appropriate data-types on host for SDCC's int and long
10793         * src/xa51/gen.c: use %d, not %ld for 4 byte variables
10794
10795 2003-03-07    <johan AT balder>
10796
10797         Just a big NOOP:
10798                 some minor cleanups before the big shot
10799                 OP_DEFS and OP_USES now use Kevin's protection
10800                 new option --nolabelopt
10801
10802         * src/SDCCBBlock.c:
10803         * src/SDCCast.c,:
10804         * src/SDCCcflow.c:
10805         * src/SDCCcse.c:
10806         * src/SDCCicode.c:
10807         * src/SDCCicode.h:
10808         * src/SDCClabel.c:
10809         * src/SDCCloop.c:
10810         * src/SDCCmain.c:
10811         * src/ds390/ralloc.c:
10812         * src/mcs51/ralloc.c:
10813         * src/pic/ralloc.c:
10814         * src/xa51/ralloc.c:
10815         * src/z80/ralloc.c:
10816
10817 2003-03-06  Bernhard Held <bernhard AT bernhardheld.de>
10818
10819         * src/pic/pcode.c (get_op): fix 64 bit warnings
10820         * src/pic/pcode.c (pCode2str): fix 64 bit warnings
10821         * src/SDCChasht.c (newHashTable): fix 64 bit warnings
10822         * src/SDCCsymt.c (checkTypeSanity): fix 64 bit warnings
10823         * support/regression/tests/malloc.c: fix 64 bit warnings
10824
10825 2003-03-04  Bernhard Held <bernhard AT bernhardheld.de>
10826
10827         * src/mcs51/gen.c (genMinus): fixed bug 696436
10828
10829 2003-03-02  Borut Razem <borut.razem AT siol.net>
10830
10831         * src/SDCCmain.c: added BORLANDC, corrected MSVC in printVersionInfo()
10832
10833 2003-02-26  Bernhard Held <bernhard AT bernhardheld.de>
10834
10835         * configure.in: test for mkstemp
10836         * sdccconf_in.h: add HAVE_MKSTEMP
10837
10838 2003-02-24  Bernhard Held <bernhard AT bernhardheld.de>
10839
10840         * device/include/ctype.h: removed warning while using --stack-auto
10841         * device/include/malloc.h: removed warning while using --stack-auto
10842         * device/include/string.h: removed warning while using --stack-auto
10843
10844 2003-02-23  Borut Razem <borut.razem AT siol.net>
10845
10846         * src/asm.h: corrected assertion in function printILine(): _pipe() was not executed on MSVC,
10847         because NDEBUG is defined (see man assert)
10848         * sdcc_vc_in.h: vsnprintf is defined as _vsnprintf on MSVC
10849
10850 2003-02-23  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10851
10852         * src/mcs51/gen.c (genUminusFloat): avoided dptr in-/decrement for xdata variables
10853         * src/mcs51/peeph.def: added rule suggested by Gernot Fink, white space/comment changes
10854
10855 2003-02-18  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10856
10857         * src/SDCCpeeph.c: added peephole conditions testing for same arguments
10858         * src/mcs51/peeph.def: added rules 238a-d which remove redundant moves
10859
10860 2003-02-18    <johan AT balder>
10861
10862         * as/mcs51/asmain.c (asmbl): module can start with a digit
10863         * as/z80/asmain.c (asmbl): module can start with a digit
10864
10865 2003-02-16  Bernhard Held <bernhard AT bernhardheld.de>
10866
10867         * sim/ucsim/mkecho: inserted #!/bin/sh for Cygwin, so that it's executable
10868         * src/asm.c: fix pipe() for Mingw32
10869
10870 2003-02-15  Bernhard Held <bernhard AT bernhardheld.de>
10871
10872         * src/SDCCglue.h: make tmpfileNameSet available for preOutName
10873         * src/SDCCmain.c (preProcess): make sure, that preOutName will be deleted;
10874         make -V work again; --c1mode reads now from stdin
10875         * doc/sdccman.lyx: added --c1mode
10876         * support/Util/SDCCerr.c: new messages for c1 mode
10877         * support/Util/SDCCerr.h: new messages for c1 mode
10878         * src/SDCC.lex (checkCurrFile): test if fullSrcFileName is NULL for c1mode
10879
10880 2003-02-15    <johan AT balder>
10881
10882         * src/asm.c: new options: --no-c-code-in-asm and --i-code-in-asm
10883
10884 2003-02-14  Bernhard Held <bernhard AT bernhardheld.de>
10885
10886         * doc/sdccman.lyx: Environment variables, -o and other minor things
10887
10888 2003-02-14    <johan AT balder>
10889
10890         * src/xa51/main.c: before anyone really tries to use it :)
10891
10892         * Install doc's in share/sdcc/doc
10893         * removed some obsolete files
10894         * Do a proper make distclean and uninstall
10895         M Makefile.common.in
10896         R sdccbuild.sh
10897         M as/Makefile
10898         M device/include/Makefile.in
10899         M device/lib/Makefile.in
10900         M doc/sdccman.lyx
10901         M link/Makefile
10902         M sim/ucsim/doc/Makefile.in
10903         M src/clean.mk
10904         R src/avr/peeph.rul
10905         R src/xa51/peeph.rul
10906         M support/cpp2/Makefile.in
10907         M support/makebin/Makefile
10908
10909
10910 2003-02-13  Bernhard Held <bernhard AT bernhardheld.de>
10911
10912         * support/regression/ports/host/spec.mk: use cc as host compiler for max osx
10913
10914 2003-02-10  Borut Razem <borut.razem AT siol.net>
10915
10916         * doc/bccinst.txt, packihx/packihx.c, sdcc_vc_in.h, src/SDCCset.h,
10917         support/cpp2/config.in: Borland C++ build doesn't depend on Cygwin configure
10918         * Bcc.ini, Makefile.bcc, as/mcs51/Makefile.bcc,
10919         device/examples/ds390/tinitalk/Makefile.bcc, packihx/Makefile.bcc,
10920         support/cpp2/Makefile.bcc, src/Makefile.bcc, src/avr/Makefile.bcc,
10921         src/ds390/Makefile.bcc, src/izt/Makefile.bcc, src/mcs51/Makefile.bcc,
10922         src/pic/Makefile.bcc, src/pic16/Makefile.bcc, src/xa15/Makefile.bcc,
10923         src/z80/Makefile.bcc: Borland Makefile cleanup
10924         * as/z80/Makefile.bcc: Added Borland Makefile
10925         * support/cpp2/borland.h: Removed
10926
10927 2003-02-10  Bernhard Held <bernhard AT bernhardheld.de>
10928
10929         * doc/sdccman.lyx: new pragma NOIV by "Johannes Stezenbach" <js AT convergence.de>
10930         * src/SDCC.lex: new pragma NOIV
10931         * src/SDCCglobl.h: new pragma NOIV
10932         * src/SDCCmem.c: new pragma NOIV
10933
10934 2003-02-09  Bernhard Held <bernhard AT bernhardheld.de>
10935
10936         * src/SDCCmain.c: signal handling is switched off by SDCC_LEAVE_SIGNALS
10937
10938 2003-02-09  Bernhard Held <bernhard AT bernhardheld.de>
10939
10940         * src/SDCCmain.c: signal handling is switched off by --debug
10941         * doc/Makefile: small fix for install; use clean.mk again
10942         * doc/clean.mk: clean *.pdf and *.html too
10943
10944 2003-02-08  Bernhard Held <bernhard AT bernhardheld.de>
10945
10946         * device/lib/_mulint.c: small fix for large/ds390 --int-long-reent resp. --stack-auto
10947         * device/lib/printfl.c: fix a ds390 bug by making it portable
10948         * src/SDCCsymt.c (initCSupport): fix compile warning on Cygwin
10949         * src/SDCCopt.c (cnvToFloatCast): fix compile warning on Cygwin
10950         * src/SDCCopt.c (cnvFromFloatCast): fix compile warning on Cygwin
10951         * debugger/mcs51/cmd.c: converted multi-line string literals
10952         * sim/ucsim/globals.cc: converted multi-line string literals
10953         * src/SDCCmain.c: introduced signal handler to remove temp files
10954         * doc/Makefile: small tweaks, implement clean
10955         * doc: removed generated files
10956
10957 2003-02-05  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10958
10959         * as/mcs51/aslink.h, as/mcs51/lkihx.c, as/mcs51/lkrloc.c:  Applied
10960         patch from Jan Rejlek <jr AT apex-lib.cz> to fix Bug 677692: "Extended
10961         Address Record is not correctly generated for DS390."
10962
10963 2003-02-02  Borut Razem <borut.razem AT siol.net>
10964
10965         * Makefile.bcc: removed non existing cpp project and non compilable izt project from makefile
10966         * as/mcs51/asm.h: fixed compilation with Borland C
10967         * support/cpp2/Makefile.bcc: added rule to generate auto-host.h
10968         * support/cpp2/auto-host_vc_in.h: fixed compilation with Borland C
10969         * src/mcs51/mcs51a.dsp: corrected misspelled project name from msc51a to mcs51a
10970         * src/avr/Makefile.bcc, src/ds390/Makefile.bcc, src/izt/Makefile.bcc,
10971         src/mcs51/Makefile.bcc, src/pic16/Makefile.bcc, src/xa51/Makefile.bcc,
10972         src/z80/Makefile.bcc: delete $(LIB) only if exist
10973         * src/Makefile.bcc, src/pic/Makefile.bcc:  fixed compilation with Borland C
10974
10975 2003-02-02  Bernhard Held <bernhard AT bernhardheld.de>
10976
10977         * device/include/malloc.h: introduced NULL
10978         * device/include/string.h: introduced NULL
10979         * device/include/stdlib.h: introduced NULL
10980         * device/lib/_memcpy.c: removed NULL
10981         * device/lib/_strcat.c: removed NULL
10982         * device/lib/_strchr.c: removed NULL
10983         * device/lib/_strcmp.c: removed NULL
10984         * device/lib/_strcpy.c: removed NULL
10985         * device/lib/_strcspn.c: removed NULL
10986         * device/lib/_strlen.c: removed NULL
10987         * device/lib/_strncat.c: removed NULL
10988         * device/lib/_strncmp.c: removed NULL
10989         * device/lib/_strncpy.c: removed NULL
10990         * device/lib/_strpbrk.c: removed NULL
10991         * device/lib/_strrchr.c: removed NULL
10992         * device/lib/_strspn.c: removed NULL
10993         * device/lib/_strstr.c: removed NULL
10994         * device/lib/_strtok.c: removed NULL
10995         * device/lib/malloc.c: removed NULL, include own header
10996
10997 2003-02-02    <johan AT balder>
10998
10999         * 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
11000         * support/regression/fwk/lib/testfwk.c: div and mod isn't broken anymore
11001         * regressions ds390/spec.mk and mcs51/spec.mk (timeout): my good old balder isn't fast enough for some tests
11002         * src/z80/gen.c (genZ80Code): added c-lines in asm comments
11003         * as/z80/asm.h (NINPUT): increased for long c-comments in regression tests
11004         * src/z80/gen.c (genRightShiftLiteral): fixed the (char)(-3)>>8 (I think)
11005
11006 2003-02-01  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11007
11008         * src/SDCCmain.c: Fixed bug 678574: "ds390: ASlink-Error-Stack overlaps
11009         area 'DATA'"
11010
11011 2003-02-01    <johan AT balder>
11012
11013         * src/SDCCval.c (valBitwise): fixed Karl's "2 | (1<<8)"
11014
11015 2003-01-31    <johan AT CP255758-A>
11016
11017         * src/ds390/main.c (_ds390_genAssemblerPreamble): applied Jan Rejlek's >64K startup patch
11018
11019 2003-01-30    <johan AT balder>
11020
11021         * src/SDCCBBlock.c: automatic bug detection
11022         * src/SDCCicode.c: automatic bug detection
11023
11024 2003-01-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11025
11026         * src/SDCCglobl.h:   now --xram-size 0 works
11027         * src/SDCCmain.c:    now --xram-size 0 works
11028
11029 2003-01-29    <johan AT balder>
11030
11031         * src/almosteverything: changed OP_DEFS and OP_USES from macros to functions to catch symbol abuse (a hot topic in the bug list :)
11032
11033 2003-01-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11034
11035         * as/mcs51/aslink.h: Added options --xram-size and --code-size
11036         * as/mcs51/lkdata.c: Added options --xram-size and --code-size
11037         * as/mcs51/lkmain.c: Added options --xram-size and --code-size
11038         * as/mcs51/lkmem.c:  Added options --xram-size and --code-size
11039         * src/SDCCglobl.h:   Added options --xram-size and --code-size
11040         * src/SDCCmain.c:    Added options --xram-size and --code-size
11041
11042 2003-01-28  Bernhard Held <bernhard AT bernhardheld.de>
11043
11044         * src/ds390/gen.c: fix deps by replacing <common.h> with "common.h"
11045         * src/SDCC.lex: rename P_OVERLAY to P_OVERLAY_ for cross-gcc 3.2 MINGW32
11046
11047 2003-01-27    <johan AT balder>
11048
11049         * src/SDCC.y: fixed bug #613764
11050
11051 2003-01-26    <johan AT balder>
11052
11053         * src/SDCClrange.c:  fixed Bernhard's "char * code ptr = &c"
11054         * src/SDCCsymt.h: fixed bug #673374
11055         * src/SDCCglue.c: fixed bug #661910
11056         * src/SDCCast.c: fixed bug #458099 and 673374
11057
11058 2003-01-26  Bernhard Held <bernhard AT bernhardheld.de>
11059
11060         * as/mcs51/strcmpi.c: added, provides Aurelien Jarno's as_strcmpi(); strcmpi() is not ANSI
11061         * as/mcs51/strcmpi.h: added
11062         * as/mcs51/asm.h: remove ugly "#define strcmpi strcmp"
11063         * as/mcs51/aslink.h: remove ugly "#define strcmpi strcmp"
11064         * as/mcs51/asmain.c: strcmpi -> as_strcmpi
11065         * as/mcs51/assym.c: strcmpi -> as_strcmpi
11066         * as/mcs51/lkmem.c: strcmpi -> as_strcmpi
11067         * as/mcs51/lknoice.c: strcmpi -> as_strcmpi
11068         * as/mcs51/lksym.c: strcmpi -> as_strcmpi
11069         * as/mcs51/Makefile.aslink: new module strcmpi
11070         * as/mcs51/Makefile.asx8051: new module strcmpi
11071         * as/mcs51/Makefil.bcc: new module strcmpi
11072         * as/mcs51/Makefile.in: new module strcmpi
11073         * sim/ucsim/s51.src/uc390.cc (get_mem_size): make RAM big enough for tinibios
11074
11075 2003-01-26    <johan AT balder>
11076
11077         * src/SDCCglue.c: reverted back to 1.124
11078         * src/SDCCast.c: reverted back to 1.156
11079         * src/mcs51/gen.c (aopGet): applied Frieder's efficiency patch
11080
11081 2003-01-25    <johan AT balder>
11082
11083         * src/SDCCglue.c: A better fix for bug #661910
11084         * src/SDCCast.c: A better fix for bug #661910
11085         * src/SDCCglue.c (emitRegularMap): That was a little too efficient
11086
11087 2003-01-24  Bernhard Held <bernhard AT bernhardheld.de>
11088
11089         * src/Makefile.in: remove spawn.o
11090         * src/SDCCmain.c: remove spawn.h
11091         * src/SDCCmain.c (printVersionInfo): report MINGW32 instead of UNIX
11092         * src/spawn.c: removed
11093         * src/spawn.h: removed
11094         * support/regression/ports/ds390/spec.mk: link with -r
11095
11096 2003-01-24    <johan AT CP255758-A>
11097
11098         * src/ds390/gen.c (aopOp): fixed bug #667458
11099         * src/SDCCglue.c (emitRegularMap): fixed bug #458099 again
11100         * src/SDCCast.c (createIvalCharPtr): fixed bug #661910
11101         (createIvalCharPtr): an ival doesn't always have a storage class anymore
11102
11103 2003-01-24  Bernhard Held <bernhard AT bernhardheld.de>
11104
11105         * src/mcs51/peeph.def: better assembler identation by Frieder
11106         * src/mcs51/gen.c: better assembler identation by Frieder
11107
11108 2003-01-22  Bernhard Held <bernhard AT bernhardheld.de>
11109
11110         * as/z80/string.h: removed for gcc 3.2
11111         * support/makebin/makebin.c: #include <string.h> for gcc 3.2
11112         * src/pic/pcode.c (get_op_from_instruction): fix concatenation of string literals with __FUNCTION__ for gcc 3.2
11113
11114 2003-01-19  Bernhard Held <bernhard AT bernhardheld.de>
11115
11116         * src/SDCCmain.c (linkEdit): rename mem and map files even in case of failure
11117         * src/SDCCpeeph.c (replaceRule): fix bug #663503
11118         * support/regression/Makefile: separate temp files for ports
11119         * support/regression/generate-cases.py: separate temp files for ports
11120         * src/mcs51/peeph.def: Frieder: removed 237 (obsolete by 236g and 105); added 237 a/b
11121         * src/ds390/peeph.def: Frieder: removed 237 (obsolete by 236g and 105); added 237 a/b
11122
11123 2003-01-19  Bernhard Held <bernhard AT bernhardheld.de>
11124
11125         * moved tinitalk to device/examples/ds390
11126
11127 2003-01-14  Bernhard Held <bernhard AT bernhardheld.de>
11128
11129         * as/mcs51/lkmem.c: rflag is for DS390
11130         * src/SDCCglobl.h: removed out_name and options stackOnData, genericPtr
11131         * src/SDCCmain.c (optionsTable, setDefaultOptions): removed --stack-after-data and --generic
11132                          (linkEdit): move mem- and map-files the same way as ihx-files
11133         * src/z80/main.c (_setDefaultOptions): removed --generic
11134         * src/SDCCmain.c (_processC1Arg, parseCmdLine, main): --c1mode works again
11135         * src/SDCCglue.c (createInterruptVect, glue): --c1mode works again
11136         * src/pic/glue.c (picglue): --c1mode works again
11137         * src/pic16/glue.c (pic16glue): --c1mode works again
11138         * src/asm.c (printCLine): fix #660034
11139
11140 2003-01-13  Bernhard Held <bernhard AT bernhardheld.de>
11141
11142         * src/ds390/peeph.def: fix #123; add 14 rules by Fiorenzo D. Ramaglia <fd.ramaglia AT tin.it>, 1 by Frieder
11143         * src/mcs51/peeph.def: fix #123; add 14 rules by Fiorenzo, 1 by Frieder
11144         * src/mcs51/gen.c (genFunction): emit r0 instead of ar0 by Fiorenzo
11145         * as/mcs51/lkmem (summary): better fix for sp problem
11146         * src/SDCCglue.c (glue): __start_stack - 1, saves 1 byte!
11147         * src/ds390/main.c (_ds390_finaliseOptions, _tininative_finaliseOptions): stack_loc = 0x400008
11148         * support/regression/ports/*/spec.mk: moving testfwk-object to port dir allow parallel execution of regression tests
11149                                               remove --stack-after-data
11150
11151 2003-01-12  Bernhard Held <bernhard AT bernhardheld.de>
11152
11153         * src/SDCCmain.c (main): port->finaliseOptions() moved for z80 linking
11154         * src/SDCCutil.c (join): ugly bug: missing '\0'
11155         * as/mcs51/lkmem.c (summary): sp on address 7 is safe
11156
11157 2003-01-11  Bernhard Held <bernhard AT bernhardheld.de>
11158
11159         * src/SDCCmain.c (assemble, linkEdit): preparations for -o
11160         * src/port.h: typo
11161         * src/pic/main.c (_asmCmd): gpasm supports -o
11162         * src/z80/main.c: more general macros
11163         * device/lib/Makefile.in: remove intermediate files
11164
11165 2003-01-11  Bernhard Held <bernhard AT bernhardheld.de>
11166
11167         * .version: Bumped version number to 2.3.3
11168         * src/SDCCBBlock.c: new option -o
11169         * src/SDCCglobl.h: new option -o
11170         * src/SDCCglue.c: new option -o
11171         * src/SDCCmain.c: new option -o
11172         * src/asm.c: new option -o
11173         * src/ds390/main.c: new option -o
11174         * src/pic/glue.c: new option -o
11175         * src/pic/pcode.c: new option -o
11176         * src/pic/ralloc.c: new option -o
11177         * src/pic16/glue.c: new option -o
11178         * src/pic16/pcode.c: new option -o
11179         * src/pic16/ralloc.c: new option -o
11180         * src/z80/main.c: new option -o
11181         * device/lib/Makefile.in: use -o
11182         * support/regression/ports/ds390/spec.mk: use -o
11183         * support/regression/ports/gbz80/spec.mk: use -o
11184         * support/regression/ports/mcs51/spec.mk: use -o
11185         * support/regression/ports/mcs51-stack-auto/spec.mk: use -o
11186         * support/regression/ports/z80/spec.mk: use -o
11187         * support/regression/ports/ucz80/spec.mk: use -o
11188         * support/regression/ports/xa51/spec.mk: use -o
11189         * support/regression/fwk/lib/timeout.c: fix usage string
11190
11191 2003-01-09  Bernhard Held <bernhard AT bernhardheld.de>
11192         * src/mcs51/gen.c (genPlus): replaced "mov b,acc" by "mov b,a" Fiorenzo D. Ramaglia <fd.ramaglia AT tin.it>
11193
11194 2003-01-07    <johan AT balder>
11195
11196         * src/SDCCast.c (decorateType): fixed bug #600035
11197
11198 2003-01-07  Bernhard Held <bernhard AT bernhardheld.de>
11199         * as/mcs51/lkmem.c: added several l-modifiers to printf to remove warnings
11200         * as/mcs51/lkaomf51.c: #include <ctype.h> to remove warnings
11201         * src/pic/main.c (_hasNativeMulFor): outcommented unused variables to remove warnings
11202         * src/pic/pcode.c: outcommented unused variable to remove warnings
11203         * src/pic/ralloc.c: outcommented unused variable to remove warnings
11204
11205 2003-01-06    <karl AT turbobit.com>
11206         * sim/ucsim/cmd.src/command.cc: fixed so "break xram r 0x7654" works again in
11207    regression tests.
11208
11209 2003-01-06    <johan AT balder>
11210
11211         * src/SDCCicode.c: fixed array add
11212
11213 2002-01-05  Bernhard Held <bernhard AT bernhardheld.de>
11214         * src/SDCCmacro.c: MAX_STRING_LENGTH increased to 2048; was too small for regression tests
11215         * support/regression/ports/host/support.c: #include <stdarg.h> for gcc 3.2
11216
11217 2003-01-04    <johan AT balder>
11218
11219         * src/SDCCval.c (getNelements): fixed the initialized array of structures
11220
11221 2002-12-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11222         * as/mcs51/Makefile.bcc: fixed typo lkomf51.o -> lkaomf51.o
11223
11224 2002-12-28  Bernhard Held <bernhard AT bernhardheld.de>
11225         * src/mcs51/peeph.def: added rules 234 and 235 from Frieder Ferlemann <frieder.ferlemann AT web.de>
11226         * support/regression/tests/bug-524697.c: fit mem usage into 8032
11227
11228 2002-12-28  Bernhard Held <bernhard AT bernhardheld.de>
11229         * src/mcs51/gen.c (aopGetUsesAcc): inserted missing "return FALSE"
11230
11231 2002-12-27  Bernhard Held <bernhard AT bernhardheld.de>
11232         * as/mcs51/Makefile.in: fixed typo lkomf51.o -> lkaomf51.o
11233
11234 2002-12-26  Bernhard Held <bernhard AT bernhardheld.de>
11235         * src/mcs51/main.c: removed {bindir}{sep} from aslink
11236
11237 2002-12-10  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11238
11239     * in /sdcc/as/mcs51/ changed these files in order to create an
11240     aomf51 file: aslink.h, lkdta.c, lklex.c, lklibr.c, lklist.c,
11241     lkmain.c.  Also added: lkmem.c and lkaomf51.c.  Changed the
11242     following files to include the previous two files: aslink.dsp,
11243     Makefile.aslink, Makefile.bcc, and Makefile.in.
11244
11245     * Changed /sdcc/src/SDCCmain.c so it creates files with extension
11246     .adb instead of .cdb
11247
11248 2002-11-09  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11249
11250         * /sdcc/as/mcs51/lklist.c: Now reports memory usage using the
11251         value from option --iram-size.
11252
11253 2002-09-20  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11254
11255         * /sdcc/as/mcs51/lklist.c: added boundary check before using
11256         dram[] array.
11257
11258 2002-09-18    <wiml AT hhhh.org>
11259
11260         * SDCClrange.h: exposed setFromRange() and setToRange()
11261         * mcs51/ralloc.c: fixed over-eager packRegsForSupport() and
11262           packRegsForAccUse() (bug 542397)
11263         * mcs51/gen.c: MOVA() is now a function to avoid calling aopGet()
11264           multiple times and emitting the fetch operations more than once
11265           added aopGetUsesAcc() function to allow binary operators to
11266           fetch their operands in the correct order; made genMinus() emit
11267           compact code for X = LITERAL - Y
11268
11269 2002-09-00  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11270         * /sdcc/as/mcs51/lklist.c: Fixed incorrect number of parameters to
11271         sprintf() in line 1267.
11272
11273 2002-09-08  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11274         * /sdcc/src/SDCCglue.c: Generate areas REG_BANK_[0-3] only for 8051
11275         like ports.
11276
11277 2002-09-04  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11278         Changes to aslink (All the changes are marked with 'JCF'):
11279
11280         * /sdcc/as/mcs51/aslink.h: External definition of sflag and
11281         summary().
11282
11283         * /sdcc/as/mcs51/lkarea.c: Computes the size of area BSEG_BYTES from
11284         area BSEG.  Also moves, if possible, the DATA area down into the internal
11285         ram so more space is available.
11286
11287         * /sdcc/as/mcs51/lkdata.c: Definition of memory summary output flag
11288         sflag.
11289
11290         * /sdcc/as/mcs51/lklist.c: For the BSEG area report the size in bits,
11291         not bytes.  Function summary() which creates a memory usage summary
11292         file with extension .mem.  Reports of overlaping stack and small stack
11293         size.  If the space for the stack is less than 16 bytes aslink trows a
11294         warning.
11295
11296         * /sdcc/as/mcs51/lkmain.c: Creation of some of the default areas for
11297         the 8051.  Option 'y' for memory summary output file.
11298
11299         Changes to sdcc (All the changes are marked with 'JCF'):
11300
11301         * /sdcc/src/SDCCglobl.h: External definition of RegBankUsed[4].
11302
11303         * /sdcc/src/SDCCglue.c:  If a register bank is used, creates an
11304         overlaying area for it (uses RegBankUsed[4]).
11305
11306         * /sdcc/src/SDCCmain.c: Definition RegBankUsed[4]; marks register
11307         bank zero as used by default.  By default aslink locates the stack
11308         (equivalent to --stack-after-data).  Pass option 'y' to aslink for
11309         the creation of the .mem file.  Delegates the allocation of data area
11310         to aslink (it is not longer 0x30 by default).  If --stack-loc passes
11311         the begining of the stack area to aslink.
11312
11313         * /sdcc/src/SDCCmem.c:  If a register bank is used, marks it so
11314         glue() in SDCCglue.c creates an area for it.
11315
11316 2002-09-03  Borut Razem <borut.razem AT siol.net>
11317         * sdcc/src/SDCCglue.c, sdcc/src/SDCCglue.h, sdcc/src/SDCCmain.c,
11318         sdcc/src/pic/glue.c:
11319         introduced atexit() handler for teporay files removal in case of
11320         errors, assertions, ...
11321
11322 2002-08-29  Borut Razem <borut.razem AT siol.net>
11323         * sdcc/support/cpp2/auto-host_vc_in.h:
11324         re-definition of O_BINARY and other O_XXX as _O_BINARY and _O_XXX, so the problem
11325         with the returned value from read() in sdcc/support/cpp2/cppfiles.c is solved for MSC.
11326         Maybe there is a similar problem with BORLANDC? It should be checked!
11327
11328         * sdcc/src/ds390/ralloc.c, sdcc/src/mcs51/ralloc.c, sdcc/src/z80/ralloc.c:
11329         corrected improper use of assert: the assignment to clr variable was done inside the assert.
11330         In case that NDEBUG was defined, the assert macro was substituted with no-op, so the assignment
11331         was not executed, and the compiler (cl) launched a warning:
11332         ralloc.c(1442) : warning C4700: local variable 'clr' used without having been initialized
11333
11334 2002-08-28  Bernhard Held <bernhard AT bernhardheld.de>
11335         * src/SDCCglue.c (printIvalArray): iterative calculation of array length
11336
11337 2002-08-28  Jesus Calvino-Fraga and Borut Razem <borut.razem AT siol.net>
11338         * sdcc/sdcc.dsw: added sdcpp, sdcppa, yacc, conf projects
11339
11340         * sdcc/src/src.dsp, sdcc/src/avr/avr.dsp, sdcc/src/ds390/ds390.dsp,
11341           sdcc/src/mcs51/mcs51.dsp, sdcc/src/pic/pic.dsp, sdcc/src/z80/z80.dsp,
11342           sdcc/src/xa51/xa51.dsp, sdcc/src/avr/avra.dsp,
11343           sdcc/src/ds390/ds390a.dsp, sdcc/src/mcs51/mcs51a.dsp,
11344           sdcc/src/pic/pica.dsp, sdcc/src/z80/z80a.dsp,
11345           sdcc/src/xa51/xa51a.dsp, sdcc/as/as_z80.dsp,
11346           sdcc/as/aslink.dsp, sdcc/as/asx8051.dsp, sdcc/packihx/packihx.dsp:
11347         - added Release configuration in VS projects
11348         - review of compiler an linker options
11349         - VC .exe files are generated in bin_vc directory, not to interfere
11350           with binaries generated from other projects (cygwin, mingw, bcc ...)
11351
11352         * sdcc/src/yacc.dsp: added
11353
11354         * sdcc/config.dsp, sdcc/configure_vc.awk, sdcc/sdcc_vc_in.h:
11355         added - genarate sdcc_vc.h using sdcc_vc_in.h as template
11356         and insert the version number definitions from .version
11357
11358         * sdcc/support/cpp2/sdcpp.dsp: added - VC project for sdcpp
11359
11360         * sdcc/support/cpp2/sdcppa.dsp, sdcc/support/cpp2/auto-host_vc_in.h:
11361         added - genarate auto-host.h using auto-host_vc_in.h as template
11362
11363         * sdcc/sdcc_vc.h,
11364         removed from CVS, generated automatically
11365
11366 2002-08-25  Bernhard Held <bernhard AT bernhardheld.de>
11367         * support/scripts/inc2h.pl: use gputils or gpasm (from Nathan Hurst)
11368
11369 2002-08-11  Borut Razem <borut.razem AT siol.net>
11370         * support/Util/NewAlloc.c: removed unneeded #include "sdccconf.h" (suggested by Jesus Calvino-Fraga)
11371
11372 2002-08-10  Borut Razem <borut.razem AT siol.net>
11373         * src/SDCCmain.c (main):
11374         file preOutName was unlinked before closed. This seems to be OK on UNIX and cygwin
11375         platforms, but it doesn't work with Visual Studio: the opened file can not be removed.
11376         The consequence was that some temporary files were not removed.
11377
11378         * src/SDCCglue.c:
11379         unification of code in functions tempfilename() and tempfile():
11380         function tempnam() is defined in Visual Studio 6.0 and .NET
11381
11382         * sdcc/sdcc.dsw: removed project sdcpp, added project xa51a
11383
11384         * sdcc/src/src.dsp, sdcc/src/avr/avr.dsp, sdcc/src/ds390/ds390.dsp,
11385           sdcc/src/mcs51/mcs51.dsp, sdcc/src/pic/pic.dsp, sdcc/src/z80/z80.dsp:
11386         - removed compiler command line option /WX: Treats all warnings as errors
11387         - update a list of source files, included into the project
11388
11389         * sdcc/src/avr/avra.dsp, sdcc/src/ds390/ds390a.dsp, sdcc/src/mcs51/mcs51a.dsp,
11390           sdcc/src/pic/pica.dsp, sdcc/src/z80/z80a.dsp:
11391         changed project type to Generic Project so that can be correcly converted to VS.NET project
11392
11393         * sdcc/as/mcs51/asm.h: definition of PATH_MAX for MSC
11394
11395         * sdcc/src/SDCCast.c: solved MSC error in function decorateType()
11396
11397         * sdcc/src/SDCC.y: added missing ending ';' to rules to get rid of bison warnings
11398
11399         * dcc/src/ds390/ralloc.c, sdcc/src/mcs51/ralloc.c:
11400         added return 0 statements after assert() to make compiler happy
11401
11402         * sdcc/src/xa51/peeph.rul, sdcc/src/xa51/peeph.def, sdcc/src/z80/ralloc.c:
11403         added newline in the def file to keep MSC compiler satisfied
11404
11405         * sdcc/src/z80/gen.c:
11406         - function strcasecmp() is not defined in MSC (and probably also in BORLANDC),
11407           so it is replaced with STRCASECMP, which is defined as stricmp in case of MSC and BORLANDC
11408         - solved MSC error in function aopDump()
11409
11410         * sdcc_vc.h: define PREFIX as "\\sdcc"
11411
11412 2002-07-18  Bernhard Held <bernhard AT bernhardheld.de>
11413         * src/SDCCast.c (decorateType): fixed access to array of structures http://sourceforge.net/mailarchive/forum.php?thread_id=902690&forum_id=4107
11414
11415 2002-06-22  Scott Dattalo <scott AT dattalo.com>
11416         * src/pic/*: Numerous bug fixes. Flow analysis has been enhanced.
11417         - Rewrote the register banking algorithm.
11418         - Added pCode live-range analysis to registers (for now, only non-used and
11419         singly-used registers optimized away)
11420
11421         * src/pic/pcoderegs.[ch]: Added new files for pCode live-range analysis
11422
11423         * 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.
11424
11425 2002-05-10  Scott Dattalo <scott AT dattalo.com>
11426         * src/pic/*: Added support for multiplication. Fixed many,many bugs.
11427
11428 2002-04-22  Michael Hope  <michaelh AT vroom>
11429
11430         * device/lib/z80/printf.c: Changed emitter to volatile to work around a pcall bug.
11431
11432         * configure.in (DD_COPT): Added include support required for gbdk.
11433
11434         * .version: Bumped version number just to increase it.
11435
11436         * src/SDCCmain.c: Added -nostdinc to the default options.
11437
11438 2002-04-15  Michael Hope  <michaelh AT vroom>
11439
11440         * device/lib/z80/printf.c (sprintf): Added.
11441
11442         * src/z80/ralloc.c (packRegisters): Disabled pack HL use for GB as it's broken.
11443
11444         * src/z80/peeph.def: Added transpose redundent load rule.
11445
11446         * src/z80/main.c: Added force callee saves for jaune.
11447
11448         * src/port.h: Removed the i186 and tlcs-900h ports as they weren't being being developed.
11449
11450         * src/SDCCmain.c: Pulled the options definition out so that you can add port specific options without changing the main file.
11451
11452 2002-03-28  Johan Knol  <johan AT balder>
11453
11454         * src/SDCCval.c: fixed bug #532436
11455
11456 2002-03-14  Scott Dattalo <scott AT dattalo.com>
11457         * /src/port.h:
11458         Added "char *Processor" field to the port structure.
11459
11460         * /src/SDCCmain.c:
11461         Added -p option. Allows port dependent processor to be specified.
11462
11463         * all ports:
11464         Initialized the new field char *Processor field to NULL in all ports
11465
11466         * /src/pic/*:
11467         Compiler generated registers for interrupt context saving
11468         were not getting allocated.
11469
11470 2002-03-16  Sandeep Dutta  <sandeep AT ddi.com>
11471
11472         * /src/SDCCast.c:
11473         Fixed left shift. Will promote the left side of a left shift
11474         if a) left shifting more than size of operand or b) when assigned
11475         to something size > size of left side
11476
11477 2002-03-14  Scott Dattalo <scott AT dattalo.com>
11478         * src/pic/*
11479         tons of changes. Register allocation has been
11480         rewritten. Added customization for the various PICs. Flow
11481         analysis is restructured. ...
11482
11483         * src/pic/device.h:
11484         Added
11485
11486         * src/pic/device.c:
11487         Added. device.c is a PIC port hack to accomodate variations
11488         in PIC devices.
11489
11490 2002-03-13  Michael Hope  <michaelh AT vroom>
11491
11492         * src/z80/gen.c (genGenPointerGet): Fixed a bug where a pointer in HL is dereferenced into HL but HL is not spilled.  Yeah.
11493
11494 2002-03-04  johanknol  <johanknol AT manik>
11495
11496         * /src/SDCCval.c: fixed
11497
11498         const unsigned char arr[][2] = { { 0, 1 } };
11499         t18.c:1: error: Initializer element is not constant
11500
11501 2002-03-04  bela  <bela AT manik>
11502
11503         * /device/include/mcs51reg.h:
11504         ds89c420 register definition update
11505
11506 2002-03-03    <johan AT FRIJA>
11507
11508         * support/Util/SDCCerr.c: did something, but don't no why anymore
11509
11510         * support/regression/tests/bug-524691.c: made it a little less shy
11511
11512         * src/SDCCast.c (decorateType): fixed bug #524697
11513
11514         * src/SDCCast.c: made some lineno improvements
11515
11516         * src/SDCCval.c (getNelements): changed warning to error
11517
11518         * src/SDCCglue.c (printIvalArray): changed warning to error
11519
11520         * src/SDCCicode.c: fixed a warning for mingw
11521
11522         * src/SDCCast.c (decorateType): fixed the << promotion for ops
11523
11524         * src/SDCCicode.c (geniCodeDivision): divide is shift only for unsigned (bug #524685)
11525
11526 2002-03-02  Sandeep Dutta  <sandeep AT ddi.com>
11527
11528         * src/ds390/peeph.def:
11529         Added some more peephole rules
11530
11531         * src/ds390/gen.c: Various fixes & enhancements
11532
11533         * src/SDCClrange.c, src/SDCClrange.h:
11534         functions "alldefsoutofrange" and "notusedinblock" moved to SDCClrange.c
11535
11536         * src/ds390/ralloc.c:
11537         various fixes & enhancements (ds390) specific
11538
11539         * src/avr/ralloc.c, src/mcs51/ralloc.c, src/pic/ralloc.c, src/xa51/ralloc.c, src/z80/ralloc.c:
11540         Functions "allDefsOutOfRange" & "notUsedinBlock" moved to SDCClrange.c
11541         from rallocs.
11542
11543         * sdcc/src/SDCCcse.c: Better fix for bug # 514308
11544
11545 2002-03-02    <johan AT FRIJA>
11546
11547         * src/SDCCast.c (decorateType): fixed bug #524708
11548
11549         * src/SDCCval.c (floatFromVal): fixed the literal void (whatever that may be)
11550
11551         * src/SDCCicode.c (geniCodePtrPtrSubtract): fixed bug #524691
11552
11553 2002-03-01  Michael Hope  <michaelh AT vroom>
11554
11555         * src/SDCCsymt.c (initCSupport): Removed managling of support function names.
11556
11557         * src/z80/ralloc.c (packRegsForIYUse): Fixed fp bug where four byte operands were packed into IY.
11558
11559 2002-03-01    <johan AT FRIJA>
11560
11561         * src/SDCCglue.c (printIvalPtr): fixed bug #524211
11562
11563         * src/SDCCast.c (decorateType): fixed bug #524209
11564
11565         * src/SDCCval.c (valNot): fixed bug #524195
11566
11567 2002-02-26    <johan AT balder>
11568
11569         * src/xa51/gen.c: fixed a warning
11570
11571         * src/SDCCglue.c (printIvalFuncPtr): fixed bug #522534
11572
11573         * src/SDCCast.c (decorateType): fixed bug #522534
11574
11575 2002-02-23    <johan AT balder>
11576
11577         * src/SDCCdflow.c (computeDataFlow): fixed bug #460088
11578
11579 2002-02-22    <johan AT balder>
11580
11581         * src/SDCCast.c: fixed bug #514865
11582
11583         * src/SDCCy.c ("SDCC.y"): fixed bug #516625
11584
11585 2002-02-21  Sandeep Dutta  <sandeep AT ddi.com>
11586
11587         * sdcc/src/SDCCloop.c:
11588         Previous fix was not good. basic blocks that have "break" or "return" are
11589         not really partof a loop , but live ranges used in these blocks should
11590         be live thru the entire loop, so set partOfLoop but don't add them to
11591         loop region
11592
11593 2002-02-21    <johan AT FRIJA>
11594
11595         * src/SDCCcse.c: fixed bug #514308
11596
11597 2002-02-20  Sandeep Dutta  <sandeep AT ddi.com>
11598
11599         * src/SDCCloop.c:
11600         Fixed BUG #519583. If a conditional block ended in a return/break
11601         statement inside a loop, it was not being considered part of the loop.
11602
11603         * src/SDCCcflow.c: Removed fix (Fixed in SDCCloop.c)
11604
11605 2002-02-10  Karl Bongers <karl AT turbobit.com>
11606
11607         * debugger/*:
11608         Fixed up SDCDB debugger somewhat.  Updated debugger/README
11609         with lots of comments and notes.
11610
11611         * device/examples/test2.c:
11612         Fix bug, "red" variable not being initialized(compiler complained).
11613
11614         * device/examples/Makefile, examples/test3.c:
11615         Add Makefile in device/examples folder, compiles test3.c
11616         for use as a multiple module SDCDB test case.
11617
11618         * sim/ucsim/cmd.src/cmdset.cc:
11619         Took out debug printfs in ucsim "next" command.
11620
11621         * sim/ucsim/xa.src:
11622         Karl and Johan start ucsim XA support.  Most dissassembly working,
11623         about 75% emulation done(plenty of work remaining).
11624
11625         * sim/ucsim/z80.src:
11626         Add Z80 support to ucsim, add test-ucz80 regression test,
11627         notice ucsim/z80 emulation fails on examples/test3.c/itoa code.
11628         Notice z80 compiler fails on examples/test3.c/crc code.
11629
11630 2002-01-30  Sandeep Dutta  <sandeep AT ddi.com>
11631
11632         * src/mcs51/gen.c, src/mcs51/main.c, src/mcs51/ralloc.c:
11633         Added support for --parms-in-bank1
11634
11635         * src/ds390/peeph.def:
11636         added a few more peephole optimzations
11637
11638         * src/ds390/main.c:
11639         1) added __builtin_inp & __builtin_outp used to read in data of given length
11640            from a memory mapped port
11641         2) added __builtin_memcmp
11642         3) added __builtin_swapw swap bytes of a short
11643
11644         * src/ds390/gen.c, src/ds390/gen.h, src/ds390/ralloc.c:
11645         1) handle multiple send & receives from register bank1
11646         2) ralloc can now allocate DPTR1 to some liveRanges
11647
11648         * src/SDCCsymt.c, src/SDCCsymt.h:
11649         changes to handle multiple sends & receives
11650
11651         * src/SDCCptropt.h:
11652         added some pointer arithmetic optimization
11653
11654         * src/SDCCptropt.c:
11655         added some pointer arithmetic optimizations but not stable yet so not
11656         called from anywhere (will get this working shortly)
11657
11658         * src/SDCCopt.c: fixed for multiple sends & receives
11659
11660         * src/SDCCmain.c:
11661         1) added options --parms-in-bank1 (ds390/mcs51) & --protect-sp-update
11662         2) preprocessing done AFTER port->finalizeoptions . This allows ports to
11663            set preprocessor defines (depending on options)
11664
11665         * src/SDCCicode.c, src/SDCCicode.h:
11666         changes made to handle multiple sends & receives
11667
11668         * src/SDCCglobl.h:
11669         Added options --protect-sp-update (ds390) and --parms-in-bank1 (ds390/mcs51)
11670
11671         * src/SDCCcse.c, src/SDCCcse.h:
11672         added function findbackward def (to be used in upcoming optimization)
11673
11674         * src/SDCCcflow.c, src/SDCCcflow.h:
11675         added function returnAtEnd - to determine if a basic block terminates with
11676         a RETURN iCode
11677
11678         * src/SDCCast.c, src/SDCCast.h:
11679         added option parms-in-bank1
11680
11681         * device/lib/_divsint.c, device/lib/_divslong.c, device/lib/_divuint.c
11682         * device/lib/_divulong.c, device/lib/_modsint.c, device/lib/_modslong.c
11683         * device/lib/_modulong.c, device/lib/_mulint.c, device/lib/_mullong.c:
11684         adjusted for --parms-in-bank1 option
11685
11686         * device/include/string.h:
11687         donot redefine "reentrant" keyword
11688
11689         * device/include/ds80c390.h: Added some more SFRs
11690
11691 2002-01-28  Bernhard Held  <bernhard AT bernhardheld.de>
11692
11693         * sim/ucsim: Merged branch ucsim-034-pre3 to main trunk; new version 0.4
11694
11695 2002-01-26  Bernhard Held  <bernhard AT bernhardheld.de>
11696
11697         * src/SDCCast.c (funcOfType): fix usage of double --float-reent
11698
11699 2002-01-22  Bernhard Held  <bernhard AT bernhardheld.de>
11700
11701         * support/regression/fwk/lib/testfwk.c (main): Removed workaround for bug #505387
11702
11703 2002-01-18  Paul Stoffregen  <paul AT pjrc.com>
11704
11705         * Added --xram-movc option
11706
11707 2002-01-13  Bernhard Held  <bernhard AT bernhardheld.de>
11708
11709         * support/regression/Makefile: don't include test-mcs51-stack-auto in target all
11710
11711 2002-01-11  Johan Knol
11712
11713         * Added math lib of Jesus Calvino-Fraga
11714
11715 2002-01-08  Bernhard Held  <bernhard AT bernhardheld.de>
11716
11717         * src/SDCCmain.c (processFile): fix processing of ../../src.c
11718         * support/regression/Makefile: new target test-mcs51-stack-auto
11719         * support/regression/ports/mcs51-stack-auto/spec.mk: added
11720
11721 2002-01-04  Bernhard Held  <bernhard AT bernhardheld.de>
11722
11723         * src/SDCCglue.h: printIvalCharPtr(), not printIvalChar()
11724
11725 2002-01-04  Bernhard Held  <bernhard AT bernhardheld.de>
11726
11727         * support/regression/ports/mcs51/support.c: correct setup of timer / UART
11728
11729 2002-01-03  Bernhard Held  <bernhard AT bernhardheld.de>
11730
11731         * src/SDCCsymt.c (processFuncArgs): fix #498307 by Johan
11732
11733         * src/SDCCglue.h: add definition for printIvalChar()
11734
11735 2002-01-02  Bernhard Held  <bernhard AT bernhardheld.de>
11736
11737         * src/SDCCast.c: fix #498138 by Johan
11738
11739         * src/SDCCglue.c: fix #498138 by Johan
11740
11741 2002-01-02  Bernhard Held  <bernhard AT bernhardheld.de>
11742
11743         * support/regression/Makefile: fix clean
11744
11745         * support/regression/ports/ds390/support.c: fix transmission of last character
11746
11747 2001-12-29  Sandeep Dutta  <sandeep AT ddi.com>
11748
11749         * /sdcc/src/ds390/gen.c:
11750         a) improved computing address of stack variable
11751         b) took out some #if 0 code
11752         c) improved parmBytes adjustment
11753         d) improved genPlusIncr & genMinusIncr
11754         e) genCmp could generate bad code (when left assigned to DPTR)
11755         f) Fixed bug in hasInc
11756
11757         * /sdcc/src/ds390/ralloc.c:
11758         a) packRegsForSupport could mess up live information (Fixed)
11759         b) packRegsDPTRuse could be incorrect for left & right shift
11760
11761         * /sdcc/src/mcs51/ralloc.c:
11762         packRegsForSupport could mess up the live information (Fixed)
11763
11764         * /sdcc/src/mcs51/gen.c: Fixed a bug in hasInc
11765
11766         * /sdcc/src/SDCCast.c:
11767         can reverse a loop even if function call is present as long
11768         as the loop control variable is local & is not passed as parameter
11769
11770 2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>
11771
11772         * /sdcc/ChangeLog: *** empty log message ***
11773
11774         * /sdcc/src/ds390/gen.c, /sdcc/src/ds390/main.c:
11775         More builtin function additions for TININative
11776
11777         * /sdcc/src/ds390/ralloc.c:
11778         Had broken the regression testsuite
11779
11780         * /sdcc/src/SDCCast.c: Fixed a bug in dumptree
11781
11782         * /sdcc/src/SDCCsymt.c, /sdcc/src/SDCCsymt.h:
11783         Added funcattr hasStackParms will be set for reentrant functions when there
11784         are paramteres on the stack, this helps in minimizing frame pointer generation
11785         typeFromStr can handle function pointers now
11786
11787         * /sdcc/doc/builtins.txt, /sdcc/doc/TININative.txt:
11788         *** empty log message ***
11789
11790 2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>
11791
11792         * /src/ds390/gen.c, /src/ds390/main.c:
11793         More builtin function additions for TININative
11794
11795         * /src/ds390/ralloc.c:
11796         Had broken the regression testsuite
11797
11798         * /src/SDCCast.c: Fixed a bug in dumptree
11799
11800         * /src/SDCCsymt.c, /src/SDCCsymt.h:
11801         Added funcattr hasStackParms will be set for reentrant functions when there
11802         are paramteres on the stack, this helps in minimizing frame pointer generation
11803         typeFromStr can handle function pointers now
11804
11805         * /doc/builtins.txt, /doc/TININative.txt:
11806         *** empty log message ***
11807
11808
11809 2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>
11810
11811         * /src/ds390/gen.c, /src/ds390/main.c, /src/ds390/peeph.def, /src/ds390/ralloc.c:
11812         ALPHA version for -mTININative
11813
11814         * /src/izt/i186.c, /src/izt/tlcs900h.c, /src/mcs51/main.c, /src/pic/main.c, /src/z80/main.c, /src/avr/main.c:
11815         updated to reflect changes in the port structure
11816
11817         * /src/port.h:
11818         added function do_assemble (similar to do_link) if non-null this function
11819         will be called to do assembly (-mTININative) requires a multi command
11820         assembly
11821         added function genAssemblerEnd will be called to generate assembler Epilogue
11822
11823         * /src/SDCCsymt.c:
11824         added _JavaNative to debug info printing
11825
11826         * /src/SDCCmain.c: added option --tini-libid
11827         added port->do_assemble function (-mTININative) has a multi command assemble
11828
11829         * /src/SDCCglue.c: Disabled "constExpr" check
11830         added port->genAssemblerEnd function
11831
11832         * /src/SDCCglobl.h: Added option --tini-libid value
11833
11834         * /src/SDCCast.h:
11835         tookout optimizeCompare from the header (has no external references)
11836
11837         * /src/SDCCast.c: made one more function "static"
11838
11839 2001-12-23  Michael Hope  <michaelh AT juju.net.nz>
11840
11841         * src/z80/mappings.i: Added z80asm support.
11842
11843         * src/z80/main.c: Added z80asm support on --asm=z80asm
11844
11845         * src/z80/gen.c: Fixed asm portability issues.
11846
11847         * src/asm.c (tvsprintf): Removed old code, added 'N' for function name.  For extern support.
11848
11849         * src/SDCCglue.c (printExterns): Added global/extern split.
11850
11851 2001-12-17  Bernhard Held  <bernhard AT bernhardheld.de>
11852
11853         * support/regression/Makefile: added test for mcs51 model large
11854
11855         * support/regression/ports/mcs51-large/spec.mk: added test for mcs51 model large
11856
11857         * support/regression/ports/gbz80/spec.mk: added -mgbz80
11858
11859 2001-12-05  Michael Hope  <michaelh AT juju.net.nz>
11860
11861         * src/diff.1 (Index): Many, many optmisiations.  Dhrystone up to 201.
11862
11863 1904-01-06  Michael Hope  <michaelh AT juju.net.nz>
11864
11865         * src/z80/ralloc.c (packRegsForIYUse): Fixed the case where an operand is in direct space.
11866
11867         * src/z80/gen.c (makeFreePairId): Optimised IY load by using a spare pair.
11868
11869 2001-12-02  Bernhard Held  <bernhard AT bernhardheld.de>
11870
11871         * src/mcs51/gen.c (genFunction): avoid excess "inc sp"
11872
11873         * support/regression/tests/simplefloat.c: Port to mcs51.
11874
11875 2001-11-25  Michael Hope  <michaelh AT juju.net.nz>
11876         * support/regression/tests/bug-485362.c: Added.
11877
11878         * support/regression/tests/simplefloat.c (testDivNearOne): Added.
11879
11880         * src/z80/gen.c (aopOp): Fixed case where left and result are in the same spill loc and they have different sizes.
11881
11882         * src/z80/peeph.def: Added rules for optimising two byte compares on the same thing, and to optimise two ptr assign.
11883
11884         * src/z80/gen.c (aopDump): Added a dump function.
11885
11886 2001-11-25  Bernhard Held  <bernhard AT bernhardheld.de>
11887         * sim/ucsim/s51.src/glob.cc: DS390 SFRs and bits added.
11888
11889         * sim/ucsim/s51.src/port.cc: Port 4 and 5 added.
11890
11891         * sim/ucsim/s51.src/regs51.h: DS390 SFRs added.
11892
11893         * sim/ucsim/s51.src/uc390.cc: Some details improved, CKRDY works for tinibios.
11894
11895         * sim/ucsim/s51.src/uc390cl.h: Work in progress.
11896
11897         * sim/ucsim/sim.src/uccl.h: 6 ports for DS390.
11898
11899         * support/regression/fwk/lib/testfwk.c: Run with tinibios.
11900
11901         * support/regression/ports/mcs51/spec.mk: Fine tuninig.
11902
11903         * support/regression/ports/ds390/support.c: Use tinibios.
11904
11905         * support/regression/ports/ds390/spec.mk: Fine tuning, use tinibios.
11906
11907 2001-11-23  Michael Hope  <michaelh AT juju.net.nz>support/regression/tests/bug-460010.c
11908
11909         * src/z80/ralloc.c (packRegsForHLUse3): Changed to not pack into HL if anything is in direct space.
11910         (packRegsForHLUse3): Added packing support for send, cast, and return value from a call.
11911
11912         * src/z80/peeph.def: Added rules for optimising pushes of part of a pair.
11913
11914         * src/z80/gen.c (emitCall): Changed the stack fixup to not use HL.
11915
11916 2001-11-18  Michael Hope  <michaelh AT juju.net.nz>
11917
11918         * src/z80/gen.c (genCmp): Fixed compare on unsigned.
11919
11920         * src/z80/ralloc.c (packRegsForHLUse3): Created and optimised.
11921         (packRegsForIYUse): Created and optimised.
11922
11923 2001-11-07  Michael Hope  <michaelh AT juju.net.nz>
11924
11925         * support/regression/tests/float.c (testFloatAdd): Fixed up warning.
11926 2001-11-18  Bernhard Held  <bernhard AT bernhardheld.de>
11927
11928         * sdcc/support/regression/tests/bug-460010.c: fix seg violation on host
11929
11930         * sdcc/support/regression/tests/muldiv.c: fix output on mcs51
11931
11932         * sdcc/support/regression/tests/stacks.c: fix DSEG overflow on mcs51
11933
11934 2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>
11935
11936         * sdcc/sim/device/lib/_gptrget.c: mem region 5 (idata) added
11937
11938         * sdcc/sim/device/lib/_gptrput.c: mem region 5 (idata) added
11939
11940 2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>
11941
11942         * sdcc/sim/ucsim/globals.cc: New: IXRAM.
11943
11944         * sdcc/sim/ucsim/stypes.h: New: IXRAM.
11945
11946         * sdcc/sim/ucsim/s51.src/uc390.cc: New: IXRAM.
11947
11948 2001-11-07  Michael Hope  <michaelh AT juju.net.nz>
11949
11950         * src/z80/ralloc.c (packRegsForHLUse): Banned IFXs from being packed into HL.
11951         (packRegsForHLUse): Added rule to pack address of/pointer get for itemps into HL for the Z80.
11952         (packRegsForAccUse2): Added rule to pack hbit IFXs into A.
11953
11954         * src/z80/main.c (_setDefaultOptions): Made float code re-entrant by default.
11955
11956         * src/z80/gen.c (aopGetLitWordLong): Added word support for floats.
11957         (genNotFloat): Added.
11958         (genUminusFloat): Added.
11959
11960         * device/lib/z80/Makefile: Added floating pt stubs.
11961
11962         * device/lib/Makefile.in (Z80SOURCES): Added floating pt support.
11963
11964         * src/z80/gen.c (genIpush): Fixed up a push of one byte when left is in a pair.
11965
11966         * device/lib/_fsadd.c (__fsadd): Fixed up return where the numbers are hugely different.
11967
11968 2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>
11969
11970         * sdcc/sim/ucsim/s51.src/glob.cc: Minor fix.
11971
11972         * sdcc/sim/ucsim/s51.src/regs51.h: Minor fix.
11973
11974         * sdcc/support/regression/Makefile: Add port ds390.
11975
11976         * sdcc/support/regression/ports/mcs51/spec.mk: Minor change.
11977
11978         * sdcc/support/regression/ports/z80/spec.mk: Minor change.
11979
11980         * sdcc/support/regression/ports/ds390/spec.mk: Added.
11981
11982         * sdcc/support/regression/ports/ds390/support.c: Added.
11983
11984         * sdcc/support/regression/ports/ds390/uCsim.cmd: Added.
11985
11986         * sdcc/support/regression/ports/mcs51/timeout.c: Cut.
11987
11988         * sdcc/support/regression/fwk/lib/timeout.c: Paste.
11989
11990 2001-11-04  Michael Hope  <michaelh AT juju.net.nz>
11991
11992         * device/include/malloc.h: Added z80 and gbz80 support.
11993
11994         * device/lib/gbz80/heap.s: Added.
11995
11996         * device/lib/z80/heap.s: Added.
11997
11998         * device/lib/malloc.c: Added z80 and gbz80 support.
11999
12000         * support/regression/tests/malloc.c (testMalloc): Added.
12001
12002         * src/SDCCmain.c (parseCmdLine): Added support for -Wp.
12003
12004         * support/regression/tests/bug-478094.c: Added.
12005
12006         * src/z80/gen.c (commitPair): Fixed silly gbz80/z80 commit to static bug.
12007
12008 2001-11-04  Bernhard Held  <bernhard AT bernhardheld.de>
12009
12010         * sdcc/sim/ucsim/s51.src/uc390cl.h: Improvement for ds390 to run regression tests
12011
12012         * sdcc/sim/ucsim/s51.src/uc390.h: Improvement for ds390 to run regression tests
12013
12014         * sdcc/sim/ucsim/s51.src/regs51.h: Improvement for ds390 to run regression tests
12015
12016         * sdcc/sim/ucsim/s51.src/glob.cc: Improvement for ds390 to run regression tests
12017
12018         * sdcc/support/regression/tests/bug-460010.c: Small change for ds390
12019
12020 2001-11-04  Michael Hope  <michaelh AT juju.net.nz>
12021
12022         * src/z80/peeph-gbz80.def: Removed a bad sub optimisation.
12023
12024 2001-11-03  Michael Hope  <michaelh AT juju.net.nz>
12025
12026         * support/regression/tests/bug-477927.c: Added.
12027
12028         * src/z80/peeph.def: Added minor rules.
12029
12030         * src/z80/gen.c (genPlusIncr): Added an extra plusinc rule.
12031
12032         * src/z80/peeph.def: Added jump optimisation modification.
12033
12034 2001-11-01  Michael Hope  <michaelh AT juju.net.nz>
12035
12036         * src/SDCCmain.c (linkEdit): Added runtime path detection to the mcs51 port.
12037
12038 2001-10-30  Michael Hope  <michaelh AT juju.net.nz>
12039
12040         * support/regression/tests/funptrs.c: Added.
12041
12042 2001-10-29  Michael Hope  <michaelh AT juju.net.nz>
12043
12044         * src/z80/ralloc.c (packRegsForHLUse): Fixed up bad spill due to pushing one byte via HL.
12045
12046 2001-10-28  Michael Hope  <michaelh AT juju.net.nz>
12047
12048         * src/z80/gen.c (genArrayInit): Made it work for on stack arrays.
12049
12050         * src/z80/main.c (gbz80_port =): Added rle support to the gbz80 port.
12051
12052         * src/z80/gen.c (genMinus): Fixed for where the result is one byte.
12053         (movLeft2ResultLong): Created.
12054
12055         * src/z80/ralloc.c (packRegsForHLUse): Added a couple of simple cases for the GB.
12056         (joinPushes): Added.  Joins two char pushes into a word push.
12057
12058 2001-10-27  Michael Hope  <michaelh AT juju.net.nz>
12059
12060         * support/cpp2/Makefile.in (install): Added creation of dest dir.
12061
12062         * support/makebin/Makefile (install): Added creation of dest dir.
12063
12064 2001-10-24 Karl Bongers <karl AT turbobit.com>
12065
12066         * configure.in, configure, Makefile, support/cpp: Removed cpp folder, since we have new cpp2 preprocessor code.
12067
12068 2001-10-21  Michael Hope  <michaelh AT juju.net.nz>
12069
12070         * src/z80/ralloc.c: Turned off faulty pack for one use.
12071
12072         * src/z80/peeph-gbz80.def: Removed redundent restart options.
12073
12074         * src/z80/gen.c (genMult): Added native mul for constants on the z80 and gbz80.
12075
12076 2001-10-21  Bernhard Held  <bernhard AT bernhardheld.de>
12077
12078         * support/regression/Makefile: Improved clean
12079
12080         * support/regression/ports/gbz80/spec.mk: Added clean
12081
12082         * support/regression/ports/host/spec.mk: Added clean
12083
12084         * support/regression/ports/z80/spec.mk: Added clean
12085
12086         * support/regression/ports/mcs51/spec.mk: Added clean, little improvements
12087
12088         * support/regression/ports/mcs51/timeout.c: little improvements
12089
12090 2001-10-17  Michael Hope  <michaelh AT juju.net.nz>
12091
12092         * device/lib/malloc.c (MEMHEADER): Fixed against new pedantic pointers.
12093
12094         * support/regression/fwk/include/testfwk.h: Fixed up to use function pts correctly.
12095
12096         * support/regression/generate-cases.py: Fixed up to use function pts correctly.
12097
12098 2001-10-16  Bernhard Held  <bernhard AT bernhardheld.de>
12099
12100         * support/regression/port/mcs51/spec.mk: add timeout for uCsim
12101
12102         * support/regression/port/mcs51/timeout.c: add timeout for uCsim
12103
12104 2001-10-13  Michael Hope  <michaelh AT juju.net.nz>
12105         * src/z80/gen.c (emitCall): Fixed up missing spill of HL when used to assign the result value.
12106
12107         * src/z80/ralloc.c: Turned off pack for one use as it's quite broken.
12108
12109         * src/SDCCmain.c (linkEdit): Added support for passing a legacy command line through the processor.
12110
12111         * src/mcs51/main.c (_linkCmd): Added bin path to command.
12112
12113         * src/SDCCmain.c (initValues): Added support for when it it called just to link.
12114
12115         * as/mcs51/lklibr.c (libfil;): Turned off 'library file' message.
12116
12117         * src/SDCCval.c (constVal): Fixed usage of 'L' modifier problems on ppc.
12118
12119         * support/regression/tests/longor.c: Added.
12120
12121 2001-10-11  Bernhard Held  <bernhard AT bernhardheld.de>
12122
12123         * as/mcs51/asdata.c: replaced FILENAME_MAX with PATH_MAX
12124
12125         * as/mcs51/aslink.h: define PATH_MAX
12126
12127         * as/mcs51/asm.h: define PATH_MAX
12128
12129         * as/mcs51/asmain.c: replaced FILENAME_MAX with PATH_MAX
12130
12131         * as/mcs51/asnoice.c: replaced FILENAME_MAX with PATH_MAX
12132
12133         * as/mcs51/lklex.c: replaced FILENAME_MAX with PATH_MAX
12134
12135         * as/mcs51/lkmain.c: replaced FILENAME_MAX with PATH_MAX
12136
12137         * src/SDCCglobl.h: define PATH_MAX
12138
12139         * src/SDCCmacro.c: replaced FILENAME_MAX with PATH_MAX
12140
12141         * src/SDCCmain.c: replaced FILENAME_MAX with PATH_MAX
12142
12143 2001-10-11  Michael Hope  <michaelh AT juju.net.nz>
12144
12145         * src/z80/gen.c (gencjneshort): Fixed
12146
12147         * src/z80/ralloc.c (packRegsForHLUse): Added pack into HL for cast then ipush.
12148
12149 2001-10-09  Michael Hope  <michaelh AT juju.net.nz>
12150
12151         * support/regression/tests/bug-469671.c: Added.
12152
12153         * src/z80/gen.c (shiftIntoPair): Fixed up warning.
12154
12155 2001-10-08  Michael Hope  <michaelh AT juju.net.nz>
12156
12157         * src/SDCCmain.c: Added --fommit-frame-pointer option and implemented in the z80 port.
12158
12159         * src/z80/gen.c (genPlus): Fixed to work with extended stack.  Also fixed genMinus, genCmp.  genUMinus is still left.
12160
12161 2001-10-08  Bernhar Held  <bernhard AT bernhardheld.de>
12162
12163         * src/SDCCmain.c (preProcess): added define SDCC_NOOVERLAY
12164
12165         * src/device/lib/_mulint.c  : removed hint: nooverlay bug
12166
12167         * src/device/lib/_mullong.c : removed hint: nooverlay bug
12168
12169         * src/device/lib/_divuint.c : removed hint: nooverlay bug
12170
12171         * src/device/lib/_divulong.c: removed hint: nooverlay bug
12172
12173         * src/device/lib/_moduint.c : removed hint: nooverlay bug
12174
12175         * src/device/lib/_modulong.c: removed hint: nooverlay bug
12176
12177 2001-10-07  Michael Hope  <michaelh AT juju.net.nz>
12178
12179         * 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.
12180
12181         * support/Util/NewAlloc.c (freeTrace): Changed free for the gc case to not free at all.  Fixes runtime segfault.
12182
12183         * support/regression/tests/scott-compare3.c (c_abcd): Fixed up casts.
12184
12185 2001-10-07    <johan AT FRIJA>
12186
12187         * device/lib/gets.c (gets): fixed the return value.
12188
12189 2001-10-06  Michael Hope  <michaelh AT juju.net.nz>
12190         * src/SDCCmain.c (WRITE_SEG_LOC): Fixed up to use Safe_strdup.
12191
12192         * 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.
12193
12194         * 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.
12195
12196         * src/z80/gen.c (genZ80Code): Added de-allocation via trace support.
12197
12198         * src/pic/gen.c: Removed Safe_strdup.
12199
12200         * configure.in: Added option to enable libgc support.
12201
12202         * src/SDCCbitv.c (bitVectnBitsOn): Optimised.
12203         (bitVectUnion): Optimised.
12204         (bitVectIntersect): Optimised.
12205         (bitVectBitsInCommon): Optimised.
12206         (bitVectCplAnd): Optimised.
12207
12208         * support/makebin/makebin.c (usage): Removed getopt as mingw32 doesn't have it.  Sigh.
12209
12210 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
12211
12212         * src/SDCCmain.c: distinguish between assembler debug and plain options
12213
12214         * src/avr/main.c:   remove standard assembler options
12215
12216         * src/ds390/main.c: remove standard assembler options
12217
12218         * src/mcs51/main.c: remove standard assembler options
12219
12220         * src/port.h: removed "PENDING" comment
12221
12222 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
12223
12224         * src/device/lib/_mulint.c  : new, with assember functions
12225
12226         * src/device/lib/_mullong.c : new, with assember functions
12227
12228         * src/device/lib/_divuint.c : with assember functions
12229
12230         * src/device/lib/_divsint.c : with assember functions
12231
12232         * src/device/lib/_divulong.c: with assember functions
12233
12234         * src/device/lib/_divslong.c: with assember functions
12235
12236         * src/device/lib/_moduint.c : with assember functions
12237
12238         * src/device/lib/_modsint.c : with assember functions
12239
12240         * src/device/lib/_modulong.c: with assember functions
12241
12242         * src/device/lib/_modslong.c: with assember functions
12243
12244         * src/device/lib/libint.lib:  replaced _muluint.c  and _mulsint.c  by _mulint.c
12245
12246         * src/device/lib/liblong.lib: replaced _mululong.c and _mulslong.c by _mullong.c
12247
12248         * src/device/lib/Makefile.in: replaced _muluint.c  and _mulsint.c  by _mulint.c
12249                                       replaced _mululong.c and _mulslong.c by _mullong.c
12250
12251 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
12252
12253         * src/SDCCsymt.c: sequence of specifiers in pintTypeChain() corrected
12254
12255 2001-10-01 Bernhard Held <bernhard AT bernhardheld.de>
12256
12257         * src/SDCCglue.c: test, if win32api is available for MINGW
12258
12259 2001-10-01 Bernhard Held <bernhard AT bernhardheld.de>
12260
12261         * src/SDCCsymt.c: no more _modifier in printTypeChain()
12262         * support/regression/tests/driverstruct.c: REENTRANT for mcs51
12263         * support/regression/ports/gbz80/spec.mk: removed GENERIC
12264         * support/regression/ports/host/spec.mk: removed GENERIC
12265         * support/regression/ports/mcs51/spec.mk: removed GENERIC
12266         * support/regression/ports/z80/spec.mk: removed GENERIC
12267
12268 2001-10-01  Michael Hope  <michaelh AT juju.net.nz>
12269
12270         * support/regression/fwk/lib/testfwk.c (__printf): Removed GENERIC.
12271
12272         * support/regression/tests/bug-467035.c: Created.
12273
12274 2001-10-01    <johan AT FRIJA>
12275
12276         * src/SDCC.y: fixed bug #466586 part 1
12277
12278 2001-10-01  Johan Knol <johan.knol AT iduna.nl>
12279
12280         * SDCCicode.c: z80 has no generic pointers
12281         * removed -s from strip in all Makefile(.in)'s. It is not needed, but Solaris chocks on it.
12282
12283 2001-09-30  Michael Hope  <michaelh AT juju.net.nz>
12284
12285         * sim/ucsim/cmd.src/Makefile.in ($(PRJDIR)/libcmd.a): Changed all ar references to $(AR) for Solaris.
12286
12287 2001-09-29  Michael Hope  <michaelh AT juju.net.nz>
12288
12289         * Makefile (sdcc-libs): Added makebin to the list of standard targets.
12290
12291         * support/regression/ports/z80/spec.mk: Updated to use env for sdcc bin dir for automatic regression.
12292
12293 2001-09-25  Michael Hope  <michaelh AT juju.net.nz>
12294
12295         * configure.in: Fixed up so that ucsim is only configured once.
12296
12297         * support/cpp2/configure.in: Fixed to use the program transform to append the .exe for the win32 build.
12298
12299         * src/SDCCutil.c (getPrefixFromBinPath): Fixed up to work with win32 in all of its glory.
12300         (getPathDifference): As above.
12301
12302         * src/SDCCmain.c (preProcess): Changed to use a temporary file in a proper temp directory.  Fixed case where pre-processing only.
12303
12304         * src/SDCCglue.c (tempfilename): Added function for pre-processor.
12305
12306 2001-09-23  Michael Hope  <michaelh AT juju.net.nz>
12307         * .version: Updated to 2.3.1
12308
12309         * src/z80/main.c (z80_port =): Added macro based linker and assembler command line support.
12310         Added copyright header.
12311
12312         * src/SDCCmain.c: Shifted various functions into SDCCutil.c
12313         (assemble): Added support for macro based assembler commands.
12314         (linkEdit): Added support for macro based linker commands.
12315         (preProcess): Changed the pre-processor to use macros.
12316         (_setPaths): Added functionality to autodetect the include, lib and bin dir paths.
12317         (_discoverPaths): Added support for overriding the install directory using the SDCCDIR env variable.
12318
12319         * device/lib/z80/crt0.s: Added module name for debugging.
12320
12321 2001-09-20  Michael Hope  <michaelh AT juju.net.nz>
12322
12323         * src/SDCCmain.c (printVersionInfo): Added the build date to the version info.
12324
12325         * src/SDCChasht.c (hTabDeleteByKey): Fixed delete as it would delete the last item from a bucket even if it wasn't the real one.
12326
12327         * src/SDCCglue.c: Moved gc_strdup to SDCCutil.c
12328
12329         * src/Makefile.in: Added SDCCmacro and SDCCutil
12330
12331 2001-09-19  Michael Hope  <michaelh AT juju.net.nz>
12332
12333         * src/SDCCmain.c (printVersionInfo): Added the build date to the version info.
12334
12335 2001-09-16    <johan AT FRIJA>
12336
12337         * 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.
12338
12339 2001-09-15    <johan AT FRIJA>
12340
12341         * src/mcs51/ralloc.c: (findAssignToSym): fixed bug #460662 part 1
12342         * src/ds390/ralloc.c (findAssignToSym): fixed bug #460662 part 1
12343
12344 2001-09-11    <johan AT FRIJA>
12345
12346         * src/SDCCval.c (valDiv Mod Minus Plus Shift): keep litteral expressions as small as possible (bug #460010)
12347
12348 2001-09-10  Michael Hope  <michaelh AT juju.net.nz>
12349
12350         * support/regression/tests/bug-460444.c: Added test case.
12351
12352         * src/z80/gen.c (genOr): bug 460444: if (a ^ lit) was broken for &, |, and ^.
12353         (genCast): Added justification for all of the asserts.
12354
12355 2001-09-10  Bernhard Held <bernhard AT bernhardheld.de>
12356
12357         * support/regression/support.c: _xdata replaced by xdata
12358
12359         * support/regression/spec.mk: removed _generic
12360
12361 2001-09-09  Michael Hope  <michaelh AT juju.net.nz>
12362
12363         * src/pic/ralloc.c (debugLogRegType): Removed some old types to get it to compile.
12364
12365         * src/z80/gen.c (shiftR2Left2Result): Improved the case when v = v >> n for small values of n to use less code space and time.
12366         (genrshTwo): Fixed v = v >> n where v is a negative int and n is > 8: bug 460010.
12367
12368         * src/z80/peeph.def: Added a rule to optimise shift then compare.
12369
12370         * support/regression/tests/bug-460000.c (testShiftByParam): Added test case.
12371
12372         * support/regression/tests/bug-460010.c: Added test case.
12373
12374         * support/regression/Makefile (test-host): Removed a silly 'clean' target when testing against gcc.
12375
12376 2001-09-09  Bernhard Held <bernhard AT bernhardheld.de>
12377
12378         * support/regression/Makefile: inter-port-clean adjusted for mcs51
12379
12380         * support/regression/testfwk.c: removed workaround for bug #436344
12381
12382         * support/regression/tests/bp.c: use less memory with mcs51
12383
12384         * support/regression/tests/bug-441448.c: use less memory
12385
12386         * support/regression/tests/ports/mcs51/spec.mk: cleanup, use --stack-after-data
12387
12388         * support/regression/collate-results.py: typo
12389
12390 2001-09-08  Michael Hope  <michaelh AT juju.net.nz>
12391
12392         * support/regression/tests/fetchoverlap.c: Added new test case.
12393
12394         * support/regression/tests/bp.c: Added new test case.
12395
12396         * support/regression/tests/bug-448984.c: Added new test case.
12397
12398         * support/regression/tests/pow2shifts.c: Added new test case.
12399
12400         * src/z80/gen.c: Turned off the noise it normally generates for the release.
12401         (genlshTwo): Fixed right shift for count > 8.
12402
12403         * src/z80/ralloc.c: Disabled most of the ACC packing rules as they weren't getting hit and weren't at all safe.
12404
12405 2001-09-08    <johan AT FRIJA>
12406
12407         * src/SDCCicode.c (geniCodeCall): a CPOINTER can be used as a function
12408
12409 2001-09-07    <johan AT FRIJA>
12410
12411         * src/SDCCicode.c (newiCodeCondition): fixed bug #456235 (1.77)
12412
12413         * src/SDCCglue.c (emitRegularMap): only delete a symbol when it is a symbol
12414
12415 2001-09-06    <johan AT FRIJA>
12416
12417         * src/SDCC.y: this could be a fix for bug #458744 (1.37)
12418         * bernhard noted me at this: "() equals to (void)" (1.38)
12419
12420 2001-09-05    <johan AT FRIJA>
12421
12422         * src/SDCCglue.c (emitRegularMap): a fix for bug #458099/2
12423
12424 2001-09-04    <johan AT FRIJA>
12425
12426         * src/SDCCsymt.c (checkSClass): a fix for bug #458099/1
12427
12428
12429 2001-09-04  Paul Stoffregen  <paul AT pjrc.com>
12430
12431         * pragma noinduction broke memcpy on mcs51 large model.  Moved it inside z80 optimization
12432
12433 2001-09-03  Michael Hope  <michaelh AT juju.net.nz>
12434
12435         * link/z80/aslink.h: Fixed path for PATH_MAX
12436
12437 2001-09-02  Michael Hope  <michaelh AT juju.net.nz>
12438
12439         * src/z80/gen.c (fetchLitPair): Changed so that it properly caches direct space references.
12440
12441         * support/regression/tests/addsub.c: Added cases to cover all the +, - combinations.
12442
12443         * support/regression/tests/uminus.c: Added a test for the unary minus operator.
12444
12445         * 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.
12446
12447 2001-09-01  Michael Hope  <michaelh AT juju.net.nz>
12448
12449         * src/z80/gen.c: Fixed up generator to pass the regresion tests, specifically fixing loads for longs, genCmp, and turned on the map file.
12450         (genCmp): Fixed up genCmp for the GB with longs.
12451
12452         * device/lib/gbz80/Makefile: Fixed up all the libraries to pass the regression tests.
12453
12454         * support/regression/ports/host/spec.mk: Updated to compile with the new type specifiers.
12455
12456         * device/lib/Makefile.in (Z80SOURCES): Removed old _mululong, _mulslong, and unneeded _mulint.
12457
12458         * device/lib/_mullong.c (_mulslong): Changed to actually return a value :)
12459
12460 2001-08-30  Paul Stoffregen  <paul AT pjrc.com>
12461
12462         * added peepholes 223 to 231 to mcs51 port.  These improve code when using large model.
12463
12464 2001-08-30  Michael Hope  <michaelh AT juju.net.nz>
12465
12466         * 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.
12467
12468         * src/z80/gen.c (genPlus): Changed bad long add for gb to a fall through.
12469
12470 2001-08-29  Michael Hope  <michaelh AT juju.net.nz>
12471
12472         * link/z80/aslink.h: Fixed long file name support.  Is now based off PATH_MAX instead of a constant.
12473
12474         * src/z80/gen.c: Fixed add and sub for the case where left or right are in static space.
12475
12476 2001-08-30 Bernhard Held   <bernhard AT bernhardheld.de>
12477
12478   * sim/ucsim/configure:    little improvement of Cygwin-detection
12479   * sim/ucsim/configure.in: little improvement of Cygwin-detection
12480   * sim/ucsim/cmd.src/newcmdcl.h: include <sys/types.h> to define fd_set automated build
12481   * support/regression/tests/bug-221100.c: small changes for mcs51
12482   * support/regression/tests/bug-221168.c: small changes for mcs51
12483   * support/regression/tests/bug-227710.c: small changes for mcs51
12484   * support/regression/tests/staticinit.c: small changes for mcs51
12485   * as/mcs51/aslink.h: accept everything as symbol name in rel-files, bug fix ID 452601
12486   * as/mcs51/lklex.c:  accept everything as symbol name in rel-files, bug fix ID 452601
12487   * as/mcs51/lksym.c:  accept everything as symbol name in rel-files, bug fix ID 452601
12488
12489 $Revision$