moved link/ to as/link/
[fw/sdcc] / ChangeLog
1 2006-09-14 Maarten Brock <sourceforge.brock AT dse.nl>
2
3         * as/link,
4         * as/link/Makefile.in,
5         * as/link/z80/linkgbz80.dsp,
6         * as/link/z80/linkz80.dsp,
7         * configure,
8         * link,
9         * link/clean.mk,
10         * link/Makefile.in,
11         * link/README,
12         * link/z80,
13         * link/z80/aslink.h,
14         * link/z80/clean.mk,
15         * link/z80/conf.mk,
16         * link/z80/linkgbz80.dsp,
17         * link/z80/linkz80.dsp,
18         * link/z80/lkarea.c,
19         * link/z80/lkdata.c,
20         * link/z80/lkeval.c,
21         * link/z80/lkgb.c,
22         * link/z80/lkgg.c,
23         * link/z80/lkhead.c,
24         * link/z80/lkihx.c,
25         * link/z80/lklex.c,
26         * link/z80/lklibr.c,
27         * link/z80/lklist.c,
28         * link/z80/lkmain.c,
29         * link/z80/lkrloc.c,
30         * link/z80/lks19.c,
31         * link/z80/lksym.c,
32         * link/z80/Makefile.in,
33         * Makefile.in,
34         * sdcc.dsw: moved link/ to as/link/
35
36 2006-09-11 Maarten Brock <sourceforge.brock AT dse.nl>
37
38         * as/mcs51/i51mch.c (machine): fixed warning
39
40 2006-09-10 Maarten Brock <sourceforge.brock AT dse.nl>
41
42         * as/mcs51/i51mch.c (machine): S_DJNZ fixed bug 1554318
43
44 2006-09-09 Borut Razem <borut.razem AT siol.net>
45
46         * debugger/mcs51/sdcdb.c, debugger/mcs51/simi.c:
47           sdcdb WIN32 native port
48         * src/clean.mk: fixed
49
50 2006-09-08 Borut Razem <borut.razem AT siol.net>
51
52         * doc/sdccman.lyx: SDCDB and ucSim are available on Win32 platforms.
53
54 2006-09-08 Raphael Neider <rneider AT web.de>
55
56         * src/pic16/main.c (_pic16_linkEdit,pic16_linkCmd),
57         * src/pic/main.c(_pic14_do_link, linkCmd): pass "-w" and "-r"
58             to gplink to disable processor mismatch warning and to allow
59             the use of devices with only aliased (shared) memory banks,
60           (_pic16_genAssemblerPreamble): include pXXX.inc on --mplab-comp
61
62 2006-09-07 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
63
64         * doc/sdccman.lyx: Some re-formating plus example on using
65           #pragma preproc_asm +/-
66
67 2006-09-07 Borut Razem <borut.razem AT siol.net>
68
69         * support/scripts/sdcc.nsi: added SDCDB executables in a separate
70           section
71
72 2006-09-06 Borut Razem <borut.razem AT siol.net>
73
74         * support/scripts/sdcc.nsi: fixed Error: unterminated string parsing
75           line at sdcc.nsi:153
76         * sdcc/debugger/mcs51/simi.c: argsToCmdLine() fixes
77
78 2006-09-05 Borut Razem <borut.razem AT siol.net>
79
80         * configure.in, configure: support for winsock2
81         * debugger/mcs51/break.h, debugger/mcs51/cmd.c,
82           debugger/mcs51/cmd.h, debugger/mcs51/sdcdb.c,
83           debugger/mcs51/sdcdb.h, debugger/mcs51/simi.c,
84           debugger/mcs51/simi.h, debugger/mcs51/symtab.c,
85           debugger/mcs51/symtab.h: sdcdb WIN32 native port
86
87 2006-09-05 Maarten Brock <sourceforge.brock AT dse.nl>
88
89         * src/SDCCopt.c (cnvToFcall): fixed bug 1551947 by updating OP_USES
90           and OP_DEFS
91         * support/regression/tests/bug1551947.c: new, added
92         * src/SDCCsymt.h: strings are char* not byte*
93
94 2006-09-05 Raphael Neider <rneider AT web.de>
95
96         * device/lib/pic16/libdev/pic18f4550.c,
97           device/include/pic16/pic18f4550.h: added PORTD/TRISD
98             declarations/definitions from patch #1520949
99
100 2006-09-05 Raphael Neider <rneider AT web.de>
101
102         * src/pic16/gen.c (genPackBits): fix assignment to 8-bit,
103           byte-aligned bitfields, fixes #1539278
104
105 2006-09-05 Raphael Neider <rneider AT web.de>
106
107         * src/pic/gen.c (genReceive): skip unreferenced arguments,
108           fixes #1544120
109
110 2006-09-04 Borut Razem <borut.razem AT siol.net>
111
112         * support/scripts/sdcc.nsi: move ucSim executables to a separate section
113         * support/scripts/sdcc_cygwin_mingw32: don't disable ucsim,
114           -mno-cygwin is a part of the compiler name
115         * support/scripts/sdcc_mingw32: don't disable ucsim
116
117 2006-09-03 Borut Razem <borut.razem AT siol.net>
118
119         * sdcc.spec: corrected for 2.6.0. Thanks to Christer Weinigel.
120         * device/lib/Makefile.in device/lib/clean.mk: small but essential corrections
121
122 2006-09-03 Raphael Neider <rneider AT web.de>
123
124         * src/pic/ralloc.c,
125         * src/pic/pcode.c (InitReuseRegs): allocate registers with pseudo
126           indices >= 0x1000 to disambiguate them from fixed regs __at(addr),
127           fixes #1550049
128
129 2006-09-01 Borut Razem <borut.razem AT siol.net>
130
131         * sim/ucsim/cmd.src/cmdutil.cc: #include <sys/time.h> and <unistd.h>
132           to make ppc-osx happy
133
134 2006-08-31 Borut Razem <borut.razem AT siol.net>
135
136         * sim/ucsim/cmd.src/newcmdposix.cc: #include <assert.h>
137         * sim/ucsim/cmd.src/newcmd.cc: #include <ctype.h>
138         * sim/ucsim/cmd.src/newcmd.cc: #include <ctype.h>
139         * support/regression/ports/ds390/spec.mk,
140           support/regression/ports/mcs51/spec.mk,
141           support/regression/ports/xa51/spec.mk: introduced DEV_NULL variable.
142           To run regression tests in mingw environment:
143           make DEV_NULL=NUL CC=gcc
144
145 2006-08-30 Borut Razem <borut.razem AT siol.net>
146
147         * sim/ucsim/cmd.src/newcmdposix.cc, sim/ucsim/cmd.src/newcmdposixcl.h,
148           sim/ucsim/cmd.src/newcmdwin32.cc, sim/ucsim/cmd.src/newcmdwin32cl.h,
149           sim/ucsim/app.cc, sim/ucsim/appcl.h, sim/ucsim/configure,
150           sim/ucsim/configure.in, sim/ucsim/ddconfig_in.h, sim/ucsim/error.cc,
151           sim/ucsim/errorcl.h, sim/ucsim/option.cc, sim/ucsim/optioncl.h,
152           sim/ucsim/utils.cc, sim/ucsim/utils.h, sim/ucsim/cmd.src/Makefile.in,
153           sim/ucsim/avr.src/avr.cc, sim/ucsim/avr.src/avrcl.h,
154           sim/ucsim/cmd.src/bp.cc, sim/ucsim/cmd.src/bpcl.h,
155           sim/ucsim/cmd.src/cmdconf.cc, sim/ucsim/cmd.src/cmdgui.cc,
156           sim/ucsim/cmd.src/cmdmem.cc, sim/ucsim/cmd.src/cmdset.cc,
157           sim/ucsim/cmd.src/cmdsetcl.h, sim/ucsim/cmd.src/cmdstat.cc,
158           sim/ucsim/cmd.src/cmduc.cc, sim/ucsim/cmd.src/cmduccl.h,
159           sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/cmdutil.h,
160           sim/ucsim/cmd.src/command.cc, sim/ucsim/cmd.src/commandcl.h,
161           sim/ucsim/cmd.src/get.cc, sim/ucsim/cmd.src/getcl.h,
162           sim/ucsim/cmd.src/info.cc, sim/ucsim/cmd.src/newcmd.cc,
163           sim/ucsim/cmd.src/newcmdcl.h, sim/ucsim/cmd.src/set.cc,
164           sim/ucsim/cmd.src/show.cc, sim/ucsim/cmd.src/timer.cc,
165           sim/ucsim/hc08.src/hc08.cc, sim/ucsim/hc08.src/hc08cl.h,
166           sim/ucsim/s51.src/Makefile.in, sim/ucsim/s51.src/interrupt.cc,
167           sim/ucsim/s51.src/interruptcl.h, sim/ucsim/s51.src/pca.cc,
168           sim/ucsim/s51.src/pcacl.h, sim/ucsim/s51.src/port.cc,
169           sim/ucsim/s51.src/portcl.h, sim/ucsim/s51.src/serial.cc,
170           sim/ucsim/s51.src/serialcl.h, sim/ucsim/s51.src/timer0.cc,
171           sim/ucsim/s51.src/timer0cl.h, sim/ucsim/s51.src/timer1.cc,
172           sim/ucsim/s51.src/timer1cl.h, sim/ucsim/s51.src/timer2.cc,
173           sim/ucsim/s51.src/timer2cl.h, sim/ucsim/s51.src/uc390.cc,
174           sim/ucsim/s51.src/uc390cl.h, sim/ucsim/s51.src/uc390hw.cc,
175           sim/ucsim/s51.src/uc390hwcl.h, sim/ucsim/s51.src/uc51.cc,
176           sim/ucsim/s51.src/uc51cl.h, sim/ucsim/s51.src/wdt.cc,
177           sim/ucsim/s51.src/wdtcl.h, sim/ucsim/sim.src/hw.cc,
178           sim/ucsim/sim.src/hwcl.h, sim/ucsim/sim.src/mem.cc,
179           sim/ucsim/sim.src/memcl.h, sim/ucsim/sim.src/obsolete.cc,
180           sim/ucsim/sim.src/obsolete.h, sim/ucsim/sim.src/sim.cc,
181           sim/ucsim/sim.src/simcl.h, sim/ucsim/sim.src/stack.cc,
182           sim/ucsim/sim.src/stackcl.h, sim/ucsim/sim.src/test_mem_speed.cc,
183           sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
184           sim/ucsim/xa.src/xa.cc, sim/ucsim/xa.src/xacl.h,
185           sim/ucsim/z80.src/z80.cc, sim/ucsim/z80.src/z80cl.h:
186           ucsim WIN32 native port
187
188 2006-08-30 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
189
190         * doc/sdccman.lyx: added note on dynamic memory heap initialization
191
192 2006-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
193
194         * src/mcs51/gen.c (genAnd, genOr, genXor): fixed bug 1546986
195         * src/ds390/gen.c (aopGetUsesAcc): handle AOP_DPTR2 and AOP_DPTRn too
196
197 2006-08-26 Maarten Brock <sourceforge.brock AT dse.nl>
198
199         * src/ds390/gen.c (genAnd, genOr, genXor): fixed bug 1546986
200         * support/regression/tests/bug1546986.c: new, added
201         * as/mcs51/.cvsignore,
202         * debugger/mcs51/.cvsignore,
203         * src/.cvsignore: deleted
204
205 2006-08-25 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
206
207         * device/include/mcs51/P89c51RD2.h: fixed bug 1546936 (error in sbit
208           definitions)
209
210 2006-08-20 Borut Razem <borut.razem AT siol.net>
211
212         * sim/ucsim/cmd.src/newcmd.cc, sim/ucsim/cmd.src/newcmdcl.h:
213           removed cl_listen_console::match(), cl_console::match(),
214           restructured cl_commander::proc_input()
215
216 2006-08-16 Borut Razem <borut.razem AT siol.net>
217
218         * sim/ucsim/cmd.src/newcmd.cc, sim/ucsim/cmd.src/newcmdcl.h,
219           sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/cmdutil.h,
220           sim/ucsim/sim.src/mem.cc, sim/ucsim/sim.src/uc.cc: code cleaning
221
222 2006-08-14 Borut Razem <borut.razem AT siol.net>
223
224         * support/regression/Makefile.in,
225           support/regression/ports/pic14/gpsim.cmd,
226           support/regression/ports/pic14/spec.mk,
227           support/regression/ports/pic14/support.c:
228           added pic14 regression test
229
230 2006-08-14 Maarten Brock <sourceforge.brock AT dse.nl>
231
232         * as/doc/asxhtm.html: documented changed ABS behaviour
233         * as/doc/README: fixed some typos
234
235 2006-08-13 Maarten Brock <sourceforge.brock AT dse.nl>
236
237         * support/regression/tests/float_trans.c: disabled test if __STDC_IEC_559__
238           not defined on host
239
240 2006-08-12 Borut Razem <borut.razem AT siol.net>
241
242         * support/regression/fwk/include/testfwk.h,
243           support/regression/fwk/lib/testfwk.c,
244           support/regression/generate-cases.py,
245           support/regression/Makefile.in:
246           regression test framework does not depend on function pointers and
247           variable arguments
248
249 2006-08-09 Maarten Brock <sourceforge.brock AT dse.nl>
250
251         * device/include/stddef.h: c temporary hack to fix bug 1518273
252
253 2006-08-09 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
254
255         * device/include/mcs51/cc2510fx.h: added
256         * src/z80/z80.dsp, src/gbz80/gbz80.dsp: added support/Util/strcmpi.ch
257           to projects.
258
259 2006-08-09 Maarten Brock <sourceforge.brock AT dse.nl>
260
261         * as/z80/assym.c (mlookup): ignore case when looking up mnemonics
262         * as/z80/Makefile.in: added strcmpi.c
263         * as/z80/z80adr.c: added upper case registers and lower case conditionals
264         * support/Util/strcmpi.ch: added with intention to remove from mcs51/hc08
265
266 2006-08-08 Maarten Brock <sourceforge.brock AT dse.nl>
267
268         * device/lib/gbz80/asm_strings.s,
269         * device/lib/gbz80/crt0_rle.s,
270         * device/lib/gbz80/div.s,
271         * device/lib/gbz80/mul.s,
272         * device/lib/gbz80/shift.s,
273         * device/lib/z80/asm_strings.s,
274         * device/lib/z80/crt0_rle.s,
275         * device/lib/z80/div.s,
276         * device/lib/z80/mul.s,
277         * device/lib/z80/shift.s: changed to all lower case menmonics except the
278           flags which are all upper case
279
280 2006-08-07 Maarten Brock <sourceforge.brock AT dse.nl>
281
282         * as/z80/asm.h: made CASE_SENSITIVE 1
283         * link/z80/aslink.h: made CASE_SENSITIVE 1
284         * src/z80/gen.c (throughout): made all conditionals upper case
285         * support/regression/tests/bug1503067.c: new
286
287 2006-08-07 Maarten Brock <sourceforge.brock AT dse.nl>
288
289         * src/z80/gen.c (aopPut): fixed bug !*ixy should be !*iyx,
290           (shiftIntoPair): added case 2 for PAIR_IY,
291           (setupToPreserveCarry): replaced parameters with iCode and check if
292            PAIR_DE is in use to fix bug 1399290,
293           (genPlus, genMinus): updated call to setupToPreserveCarry
294         * support/regression/tests/bug1399290.c: new
295
296 2006-08-06 Maarten Brock <sourceforge.brock AT dse.nl>
297
298         * device/lib/Makefile.in (Z80SOURCES): enabled float support
299         * sim/ucsim/z80.src/inst.cc (inst_rst): generate breakpoint on RST8,ACC==0
300         * src/ds390/gen.c (shiftRLong),
301         * src/hc08/gen.c (shiftLLong, shiftRLong): fixed bug 1533966
302         * src/mcs51/gen.c (sameReg): changed to sameByte,
303           (xch_a_aopGet): new,
304           (shiftL2Left2Result, shiftR2Left2Result, shiftRLeftOrResult, shiftLLong,
305            shiftRLong): fixed bug 1533966
306         * src/z80/gen.c (shiftR2Left2Result, shiftL2Left2Result, genlshTwo,
307           genLeftShiftLiteral, genrshTwo, genRightShiftLiteral): fixed bug 1533966
308         * support/regression/Makefile.in: disabled z80, enabled ucz80
309         * support/regression/tests/float_trans.c: enabled test for z80 and host
310         * support/regression/tests/shifts2.c: new, for testing bug 1533966
311
312 2006-08-01 Borut Razem <borut.razem AT siol.net>
313
314         * src/mcs51/gen.c, src/dc390/gen.c: fixed warning:
315           comparison is always false due to limited range of data type
316           on PPC64 machine (openpower-linux1) where "char = unsigned char"
317
318 2006-08-01 Maarten Brock <sourceforge.brock AT dse.nl>
319
320         * sim/ucsim/hc08.src/hc08mac.h: removed faulty and unused add_u16_disp
321         * sim/ucsim/hc08.src/hc08.cc: removed faulty and unused int8
322         * sim/ucsim/z80.src/z80mac.h (add_u16_disp): use explicit signed char cast
323         * sim/ucsim/z80.src/z80.cc: removed faulty and unused int8
324
325 2006-07-31 Borut Razem <borut.razem AT siol.net>
326
327         * sim/ucsim/configure, sim/ucsim/cmd.src/newcmdcl.h,
328           sim/ucsim/cmd.src/newcmd.cc, sim/ucsim/cmd.src/cmdutil.cc,
329           sim/ucsim/z80.src/Makefile.in, sim/ucsim/configure.in,
330           sim/ucsim/hc08.src/Makefile.in, sim/ucsim/hc08.src/hc08.cc,
331           sim/ucsim/ddconfig_in.h, sim/ucsim/s51.src/Makefile.in,
332           sim/ucsim/s51.src/uc51cl.h, sim/ucsim/s51.src/serialcl.h,
333           sim/ucsim/s51.src/uc51.cc, sim/ucsim/s51.src/serial.cc,
334           sim/ucsim/app.cc, sim/ucsim/avr.src/Makefile.in:
335           enable ucsim mingw compilation. Serial port is disabled,
336           since it uses termios.h API, which is not available on native
337           WIN32
338
339 2006-07-31 Borut Razem <borut.razem AT siol.net>
340
341         * Small Device C Compiler 2.6.0 released
342         * support/scripts/sdcc.nsi: added FULL_DOC option
343         * .version, doc/sdccman.lyx: changed sdcc version to 2.6.1
344
345 2006-07-28 Borut Razem <borut.razem AT siol.net>
346
347         * support/scripts/sdcc.nsi: remove $INSTDIR/include/asm/pic16/*.h
348         * doc/INSTALL.txt: updated
349
350 2006-07-27 Borut Razem <borut.razem AT siol.net>
351
352         * device/lib/pic/Makefile.in, device/lib/pic/Makefile.subdir,
353           device/lib/pic/libdev/Makefile.in: fixed bug
354           [ 1438354 ] pic libsdcc: distclean doesn't work
355         * device/lib/pic16/Makefile.in, device/lib/pic16/Makefile.subdir,
356           device/lib/pic16/libio/Makefile.in: fixed bug
357           [ 1438344 ] pic16 lib: clean doesn't work properly
358         * doc/knownbugs.html removed [ 1438354 ] and [ 1438344 ] from the list
359
360 2006-07-26 Maarten Brock <sourceforge.brock AT dse.nl>
361
362         * device/lib/pic/libsdcc/fsdiv.c,
363         * device/lib/pic/libsdcc/fsmul.c,
364         * device/lib/pic16/libsdcc/float/fsdiv.c,
365         * device/lib/pic16/libsdcc/float/fsmul.c,
366         * device/lib/_fsdiv.c,
367         * device/lib/_fsmul.c: bugfix, handle too large and too small numbers
368         * support/regression/tests/bug1520966.c: added
369         * doc/knownbugs.html: removed [ 1520966 ] from the list
370
371 2006-07-25 Borut Razem <borut.razem AT siol.net>
372
373         * configure.in, configure, sdccconf_in.h: fixed bug
374           [ 1519095 ] regression test onebyte.c fails on ppc64 host
375         * doc/knownbugs.html: removed [ 1519095 ] from the list
376
377 2006-07-25 Maarten Brock <sourceforge.brock AT dse.nl>
378
379         * doc/knownbugs.html: added, contains list of known bugs at release
380         * device/include/mcs51/compiler.h: fixed SFR32 for SDCC
381
382 2006-07-23 Maarten Brock <sourceforge.brock AT dse.nl>
383
384         * device/include/mcs51/compiler.h: added SFRX for xdata based special
385           function registers and corrected defaults with additional warning
386         * device/lib/malloc.c: cosmetic changes
387         * device/lib/realloc.c: bugfix for bug #1496907, Thanks Efim Monyak
388         * src/ds390/ralloc.c (getRegBitNoSpil): reenabled,
389           (fillGaps): and used it
390
391 2006-07-20 Raphael Neider <rneider AT web.de>
392
393         * src/pic/device.c (addMemRange,assignRegister): suppress verbose
394           output unless SDCCPICDEBUG is set
395         * device/lib/pic16/Makefile.rules (%.lib target): suppress verbose
396           output if SILENT is set
397
398 2006-07-11 Borut Razem <borut.razem AT siol.net>
399
400         * doc/README.txt: updated
401
402 2006-07-10 Borut Razem <borut.razem AT siol.net>
403
404         * support/scripts/sdcc.nsi: added device/include/asm/pic/features.h and
405           device/lib/src/pic/libm/*.c and device/lib/src/pic16/libsdcc/stack/*.S
406           in WIN32 installation
407         * .version, sdcc.spec, doc/sdccman.lyx: changed sdcc version to 2.6.0 -
408           release candidate 1
409
410 2006-07-08 Maarten Brock <sourceforge.brock AT dse.nl>
411
412         * device/include/mcs51/XC866.h: added sbit definitions for Px_x, P1_x, P2_x
413         * src/pic16/glue.c (initPointer): fixed bug 1496419 for pic16
414
415 2006-07-06 Maarten Brock <sourceforge.brock AT dse.nl>
416
417         * src/hc08/gen.c (genAddrOf): fixed bug when offset on stack is >127
418
419 2006-07-06 Borut Razem <borut.razem AT siol.net>
420
421         * support/regression/tests/bitfields.c:
422           fixed bug [ 1518322 ] regression test bitfields fails on ppc hosts
423         * support/regression/tests/constantRange.c:
424           fixed bug [ 1518317 ] regression test constantRange fails on alpha host
425
426 2006-07-04 Borut Razem <borut.razem AT siol.net>
427
428         * src/configure.in, src/configure, src/Makefile.in, as/z80/Makefile.in,
429           src/port.mk,
430           src/avr/Makefile.in, src/ds390/Makefile.in, src/ds400/Makefile.in,
431           src/hc08/Makefile.in, src/mcs51/Makefile.in, src/pic16/Makefile.in,
432           src/pic/Makefile.in, src/xa51/Makefile.in, src/z80/Makefile.in:
433           reverted changes from 2006-07-03
434         * Makefile.common.in: added @CPPFLAGS@ to CPPFLAGS
435         * support/regression/Makefile.in, support/regression/ports/host/spec.mk:
436           added CPPFLAGS, used by the host port
437
438 2006-07-03 Bernhard Held <bernhard AT bernhardheld.de>
439
440         * support/regression/valdiag/tests/switch.c,
441         * support/regression/valdiag/tests/constantRange.c: adapted to gcc 4
442         * support/regression/tests/libmullong.c: fixed for host
443         * support/regression/ports/host/spec.mk: disable all warnings for host,
444         SDCC runs with --less-pedantic too
445
446 2006-07-03 Borut Razem <borut.razem AT siol.net>
447
448         * src/configure.in, src/configure, src/Makefile.in, as/z80/Makefile.in:
449           defined CPPFLAGS
450         * src/port.mk: defined CPPFLAGS, renamed to src/port.mk.in
451         * src/avr/Makefile.in, src/ds390/Makefile.in, src/ds400/Makefile.in,
452           src/hc08/Makefile.in, src/mcs51/Makefile.in, src/pic16/Makefile.in,
453           src/pic/Makefile.in, src/xa51/Makefile.in, src/z80/Makefile.in:
454           include ../port.mk
455         * sim/ucsim/main_in.mk, sim/ucsim/avr.src/Makefile.in,
456           sim/ucsim/gui.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
457           sim/ucsim/s52.src/Makefile.in, sim/ucsim/sim.src/Makefile.in,
458           sim/ucsim/xa.src/Makefile.in: ignore header files for dependencies
459
460 2006-07-02 Raphael Neider <rneider AT web.de>
461
462         * src/pic16/devices.inc,
463         * device/include/pic16/pic18fregs.h,
464         * device/include/pic16/pic18f4550.h,
465         * device/lib/pic16/pics.all,
466         * device/lib/pic16/libdev/pic18f4550.c: added support for 18f4550
467
468 2006-07-01 Bernhard Held <bernhard AT bernhardheld.de>
469
470         * as/hc08/lkaomf51.c (OutputName),
471         * as/mcs51/lkaomf51.c (OutputName),
472         * as/z80/asmain.c (asmbl),
473         * src/ds390/main.c (asmLineNodeFromLineNode),
474         * src/hc08/ralloc.c (hc08_assignRegisters),
475         * src/mcs51/main.c (asmLineNodeFromLineNode),
476         * src/xa51/ralloc.c (checkRegMask),
477         * src/xa51/gen.c (emitcode),
478         * src/z80/gen.c (_emit2),
479         * src/SDCCast.c (searchLitOp),
480         * src/SDCCglobl.h,
481         * support/packihx/packihx.c,
482         * support/Util/MySystem.c (split_command): fix gcc 4 warnings
483         * src/ds390/gen.c (aopPutUsesAcc),
484         * src/ds390/ralloc.c (getRegBitNoSpil): unused, therefore disabled
485         * support/regression/tests/libmullong.c (mullong_wrapper),
486         * src/SDCCsymt.c (powof2),
487         * src/SDCCast.c,
488         * src/SDCCicode.c: renamed TYPE_WORD by TYPE_TARGET_INT and so on
489         * src/SDCCsymt.h: added TYPE_TARGET_*
490         * src/SDCCutil.c (doubleFromFixed16x16, fixed16x16FromDouble),
491         * src/SDCCutil.h (doubleFromFixed16x16, fixed16x16FromDouble): moved to
492         SDCCast because 1) header problems 2) this is the right place
493         * src/SDCCast.c (doubleFromFixed16x16, fixed16x16FromDouble): added
494         * src/SDCCval.h (doubleFromFixed16x16, fixed16x16FromDouble): added
495         prototype
496
497 2006-06-29 Bernhard Held <bernhard AT bernhardheld.de>
498
499         * src/SDCCicode.h: removed buggy semicolon in unused macro
500         * src/SDCClrange.c (findPrevUseSym, rlivePoint): fixed bug #1486853,
501         search for previous definiton of auto symbols too,
502         (findPrevUse): fixed logic of emitWarnings
503
504 2006-06-26 Raphael Neider <rneider AT web.de>
505
506         * src/pic16/gen.c (genFunction, genEndFunction): also preserve
507           PCLATH and PCLATU on interrupts, potentially fixes #1505141
508
509 2006-06-25 Raphael Neider <rneider AT web.de>
510
511         * device/lib/pic/libm: NEW, added math library functions
512         * device/lib/pic/libsdcc: NEW; added float support functions
513         * device/lib/pic/{Makefile.in,configure.in,configure}: added libm/
514         * device/include/pic/{limits.h,errno.h,sdcc-lib.h,float.h,math.h}:
515           NEW, added math related headers
516         * device/include/asm/pic/features.h: NEW
517         * src/pic/gen.c (emitpcode_real): emit warning on NULL pCodeOp,
518           (popGet): allow larger offsets for AOP_PCODE,
519           (genDataPointerSet): handle literals explicitly, more debug output,
520           (genAssign): fixed for float using aopLiteral ;-)
521         * src/pic/glue.c (pic14createInterruptVect): inserted pagesel before
522           GOTO initialisation routine
523         * src/pic/pcoderegs.c (pCodeRegMapLiveRangesInFlow): set wasUsed
524           flag on registers, fixes #1469043 (local variables do not work)
525         * src/pic/main.c (_pic14_do_link),
526         * src/pic16/main.c (_pic16_linkEdit): use fullDstFileName if
527           available
528
529 2006-06-25 Borut Razem <borut.razem AT siol.net>
530
531         * device/lib/pic16/libc/stdio/sprintf.c: return the number of
532           characters printed (not including the trailing '\0' used to end
533           output to strings). Problem detected in regression test bug-927659.c.
534           NOTE: printf() family functions should return int instead
535           unsigned int!
536         * device/lib/pic16/libc/stdio/vfprintf.c: "%%" prints "%", unknown
537           specifier are printed as themselves
538         * sdcc/support/regression/tests/bug1057979.c: pic16 printf doesn't
539           support flags, width and precision specifiers
540
541 2006-06-24 Borut Razem <borut.razem AT siol.net>
542
543         * sdcc/support/regression/tests/bitvars.c: added gbz80, pic16 and pic16
544           to the list of sdcc tagrets not supporting bit type
545         * sdcc/support/regression/tests/bug-905992.c.c: excluded regression
546           testfor pic16 due to bug:
547           [ 1511794 ] pic16: regression test bug-895992.c fails
548
549 2006-06-24 Maarten Brock <sourceforge.brock AT dse.nl>
550
551         * src/mcs51/gen.c (genCmp): optimization for RFE 1162453
552         * src/SDCCglue.c (initPointer), fixed bug 1496419
553         * support/regression/tests/bug1496419.c: new, added
554
555 2006-06-22 Borut Razem <borut.razem AT siol.net>
556
557         * support/regression/ports/pic16/support.c: use gpsim usart module from
558           libgpsim_modules library
559
560 2006-06-21 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
561
562         * device/include/mcs51/at89c51ed2.h: Fixed bug 1510144 changed
563         IP0H to IPH0.
564
565 2006-06-19 Raphael Neider <rneider AT web.de>
566
567         * src/pic/glue.h,src/pic16/glue.h: added prototypes
568         * src/pic/glue.c,src/pic16/glue.c (pic1x_stringInSet,
569           pic1x_emitSymbolIfNew): NEW, check for a string in a set,
570           (pic14printExterns,pic14printPublics,pic16printPublics,
571           pic16_printExterns): use new functions to emit symbols
572           (picglue,pic16glue): emit publics before emitting externs
573         * src/pic/gen.c,src/pic16/gen.c (genFunction): remember the names of
574           locally defined functions to avoid bug #1443651
575         * support/regression/tests/bug-716242.c: removed pic16 workaround
576         * support/regression/ports/pic16/spec.mk: ignore errors during build
577
578 2006-06-19 Raphael Neider <rneider AT web.de>
579
580         * src/pic/glue.h: added pic14aopLiteral prototype
581         * src/pic/glue.c (pic14aopLiteral): return unsigned int
582         * src/pic/gen.c: removed stdint.h dependency
583           (aopGet): use Safe_strdup()
584           (bitpatternFromVal): removed, replaced use with pic14aopLiteral
585           (genDataPointerSet): use pic14aopLiteral()
586         * src/pic16/glue.h, src/pic16/glue.c, src/pic16/gen.c: similar changes
587           for pic16; thanks to Bernhard and Maarten
588
589 2006-06-18 Borut Razem <borut.razem AT siol.net>
590
591         * support/regression/tests/structflexarray.c: flexible array members
592           not supported by gcc < 3
593         * sim/ucsim/configure, sim/ucsim/configure.in: do not compile serio
594           GUI tool by default
595         * src/pic/gen.c: don't include [p]strdin.h on solaris
596         * support/Util/pstdint.h: addad svn attributes
597         * support/regression/tests/constantRange.c,
598           support/regression/tests/rotate.c: include inttypes.h instead
599           stdint.h on solaris, addad svn attributes
600
601 2006-06-18 Raphael Neider <rneider AT web.de>
602
603         * src/SDCCsymt.c (initCSupport): change return type of divschar to
604           int for PIC16
605         * src/pic16/genarith.c (genAddLit): sign-extend via standard routine
606           (pic16_genMinusBits): simplified sign-extension
607           (pic16_genUMult8XLit_8,pic16_genUMult8X8_8): renamed to
608             pic16_genMult8XLit_n resp. pic16_genMult8X8_n, fixed and
609             adjusted to correctly handle mixed-signed operands, disabled
610             now unused multiplciation routines
611         * src/pic16/gen.c (pic16_pushpCodeOp): fixed to handle literals
612           (assignResultValue): added argument denoting the size of the result
613             as returned by the function (fixes upcasts in assigning from
614             function calls: char foo(); int i = foo();)
615           (genCall,genPcall,genGenPointerGet,genReceive): pass size of
616             function result to assignResultValue
617           (genMult): disabled inlined multiplication code
618           (genDiv): augmented to also handle the modulus operator, fixed to
619             handle mixed-signed operands correctly
620           (genMod): simply call genDiv, disabled unused code
621           (genAssign): fixed missing (sign-)extension on result
622         * src/pic16/main.c (_hasNativeMulFor): accept literals [-128..256) as
623             valid char operands, allow signed operands for native code, added
624             division and modulo operator handling
625         * device/lib/pic16/libsdcc/char/divschar.c: divschar returns an int
626
627         As a consequence, onebyte.c (if split into two files) and muldiv.c
628         pass regression tests.
629
630 2006-06-17 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
631
632         * doc/Makefile.in: two runs of makeindex seem needed to get
633         correct page references in the index of sdccman.pdf
634         * doc/sdccman.lyx: mentioned cmon51, added links, small changes
635
636 2006-06-17 Borut Razem <borut.razem AT siol.net>
637
638         * sdcc/device/lib/Makefile.in: corrected PORTINCDIR path
639
640 2006-06-17 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
641
642         * doc/sdccman.lyx: updated, added (porting source code, debugging),
643         mentioned ec2drv and paulmon
644
645 2006-06-16 Maarten Brock <sourceforge.brock AT dse.nl>
646
647         * as/mcs51/lkarea.c (lnkarea2): clear new xdatamap, bugfix for two
648           consecutive abs areas
649           (find_empty_space, allocate_space): added map to handle codemap or
650            xdatamap,
651           (lnksect2): renamed rloc to locIndex, fixed bug 960060 by handling
652            absolute idata and xdata
653         * as/mcs51/lkmem.c (summary2): updated legend
654
655 2006-06-16 Raphael Neider <rneider AT web.de>
656
657         * src/pic16/gen.c (shiftR2Left2Result): fixed bug #1507127
658
659 2006-06-13 Maarten Brock <sourceforge.brock AT dse.nl>
660
661         * debugger/mcs51/cmd.c (cmdListFunctions): fixed bugs 1181163 and
662           1208515
663         * src/SDCClrange.c (findPrevUse): fixed bug 1294475
664
665 2006-06-13 Vangelis Rokas <vrokas AT users.sourceforge.net>
666
667         * src/port.h (struct PORT): added field gp_tags, to hold the tag
668         value of generic pointers,
669         * src/avr/main.c,
670           src/ds390/main.c,
671           src/hc08/main.c,
672           src/izt/i186.c,
673           src/izt/tlcs900h.c,
674           src/mcs51/main.c,
675           src/pic/main.c,
676           src/pic16/main.c,
677           src/xa51/main.c,
678           src/z80/main.c: PORT structure, added elements for gp_tags field,
679         * src/SDCCsymt.h: replaced hardwired values of GPTYPE_* macros with
680         fields in the PORT structure of each port,
681         * src/SDCCast.c (decorateType): allow processing of generic pointers
682         for PIC16 port (FPTRSIZE equals GPTRSIZE), also set GPTYPE_NEAR for
683         S_FIXED symbols
684
685 2006-06-12 Maarten Brock <sourceforge.brock AT dse.nl>
686
687         * link/z80/lkgb.c,
688         * link/z80/lkgg.c,
689         * src/pic16/gen.c,
690         * src/pic16/main.c,
691         * src/pic16/pcode.c,
692         * src/pic/main.c,
693         * src/pic/pcoderegs.c,
694         * src/SDCCicode.c,
695         * src/SDCCmain.c,
696         * src/SDCCsymt.c: replaced all exit(-1) by exit(EXIT_FAILURE) to fix
697           bug 1504689 on minGW
698
699 2006-06-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
700
701         * device/lib/printf_tiny.c: fixed bug #1465675 (%x format specifier)
702
703 2006-06-12 Bernhard Held <bernhard AT bernhardheld.de>
704
705         * src/SDCCast.c (backPatchLabels): fixed bug #1504636
706
707 2006-06-11 Maarten Brock <sourceforge.brock AT dse.nl>
708
709         * device/lib/printf_large.c (OUTPUT_CHAR, _output_char): added and used
710           for optimization
711
712 2006-06-11 Vangelis Rokas <vrokas AT users.sourceforge.net>
713
714         * src/pic16/gen.c (genCast): fixed bug with assignment of a pointer
715         to a char variable. Fixed bug #1504211
716         * device/include/pic16/adc.h,
717         device/include/lib/pic16/libio/adc/adcopen.c: applied patch #1364387
718         and fixed bug #1364390
719
720 2006-06-10 Borut Razem <borut.razem AT siol.net>
721
722         * CVSROOT: removed the CVS left-over
723
724 2006-06-10 Maarten Brock <sourceforge.brock AT dse.nl>
725
726         * as/hc08/asmain.c (asexit),
727         * as/hc08/lkmain.c (lkexit),
728         * as/mcs51/asmain.c (asexit),
729         * as/mcs51/lkmain.c (lkexit),
730         * src/SDCCglue.c (DEFSETFUNC),
731         * src/SDCCmain.c (linkEdit, assemble),
732         * support/librarian/sdcclib.c (AddRel),
733           replaced unlink() by standard C remove()
734         * src/SDCC.y: replaced removePostIncDecOps() by createRMW()
735         * src/SDCCast.c (replaceAstWithTemporary, createRMW,
736           gatherImplicitVariables): new, added to fix bug 608752,
737           (createFunction): added gatherImplicitVariables()
738         * src/SDCCast.h: added createRMW prototype
739         * src/SDCCsymt.h (struct symbol): added infertype
740         * support/regression/tests/bug608752.c: new, added
741
742 2006-06-10 Raphael Neider <rneider AT web.de>
743
744         * src/pic16/gen.c (pic16_aopOp): use WREG as destination even for
745           multibyte dummy reads (fixes #1503234)
746
747 2006-06-10 Maarten Brock <sourceforge.brock AT dse.nl>
748
749         * device/include/mcs51/compiler.h: new, added header file to enable
750           creating common sfr definition header files for different compilers
751
752 2006-06-05 Raphael Neider <rneider AT web.de>
753
754         * src/pic16/{pcode.h,genarith.c}:
755           introduced pCodeOp combining any two pCodeOps (previously only
756           two register operands could be combined), removed pcop2 from
757           pCodepReg, replaced pCodeOpReg2 with pCodeOp2, fixes #1492366
758         * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): added case for PO_TWO_OPS
759         * src/pic16/gen.c (pic16_popGet2,pic16_popGet2p,pic16_popCombine2):
760           rewritten to use new PO_TWO_OPS
761         * src/pic16/main.c (_hasNativeMulFor): cover more cases natively,
762         * src/pic16/pcode.c (pic16_newpCodeOpImmd): initialize rIdx field,
763           (pic16_newpCodeOp): catch invalid attempts on PO_TWO_OPS,
764           (pic16_newpCodeOp2): NEW, create combined pCodeOp,
765           (pic16_get_op): embraced return arg to allow #define return(x),
766             added new case for combined opcodes
767           (pic16_get_op2): reduced to use pic16_get_op() on second pCodeOp,
768           (pic16_pCode2str,pic16_getRegFrompCodeOp,
769            pic16_getRegFromInstruction2): fixed/added handling of new pCodeOp
770
771 2006-06-04 Bernhard Held <bernhard AT bernhardheld.de>
772
773         * src/SDCCval.c (checkConstantRange): added
774         * src/SDCCval.h: added checkConstantRange
775         * support/Util/SDCCerr.c,
776         * support/Util/SDCCerr.h: replaced unused W_IF_NEVER_TRUE and
777         W_IF_ALWAYS_TRUE by W_COMP_RANGE and W_LIT_OVERFLOW
778         * src/SDCC.y: moved early 'condition transformations' to SDCCast.c
779         * src/SDCCast.c (decorateType): added checkConstantRange,
780         added 'condition transformations' from SDCC.y so that now W_COMP_RANGE
781         can be emitted with the correct always true/false warning,
782         added optimization for double '!';
783         result of decorateType() must be assigned back to the tree, because
784         decorateType() can change the tree
785         * src/SDCCicode.c (geniCodeLogic),
786         (geniCodeAssign): replaced new checkConstantRange, added warnings,
787         (checkConstantRange): removed, it was only a fragment which never
788         emitted a warning
789         * src/SDCCsymt.c (computeType): fixed promotion for
790         "-1 < (unsigned bit) b"
791         * src/pic/ralloc.c (packRegsForAssign),
792         * src/pic16/ralloc.c (packRegsForAssign),
793         * src/hc08/ralloc.c (packRegsForAssign),
794         * src/z80/ralloc.c (packRegsForAssign): ported fix for bug #930931
795         from mcs51
796         * src/mcs51/ralloc.c (packRegsForAssign): removed outcommented source
797         * support/regression/tests/constantRange.c: added
798         * support/valdiag/tests/constantRange.c: added
799         * support/valdiag/valdiag.py: added -DPORT_HOST=1
800
801 2006-06-02 Borut Razem <borut.razem AT siol.net>
802
803         * support/regression/ports/pic16/support.c: increase stack size
804           to 255 bytes
805         * support/regression/Makefile.in: sort tests by name so that the
806           resutlts can be compared on different machines / platforms
807
808 2006-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
809
810         * device/lib/printf_large.c (output_digit): optimized further, Tnx Frieder
811         * src/ds390/gen.c (emitLabel): new, added,
812           (genDjnz): fixed stack overflow bug,
813           (throughout): cosmetic changes to sync with mcs51/gen.c,
814           replaced emitcode("", "%05d$:", lbl->key + 100) with emitLabel(lbl)
815         * src/mcs51/gen.c (genEndFunction): small optimization,
816           (throughout): cosmetic changes to sync with ds390/gen.c
817
818 2006-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
819
820         * device/lib/printf_large.c (output_digit, calculate_digit): optimized,
821           (_print_format): fixed printing pointers
822         * src/mcs51/gen.c (emitLabel, movb): new, added,
823           (genAssign): small optimization,
824           (genDjnz): fixed stack overflow bug,
825           (throughout): replaced sprintf with SNPRINTF,
826           replaced mcs51_regWithIdx with REG_WITH_INDEX,
827           replaced emitcode("mov", "b,...") with MOVB(...),
828           replaced emitcode("", "%05d$:", lbl->key + 100) with emitLabel(lbl),
829           replaced D(emitcode("; genXXX", "")) with D(emitcode(";", "genXXX"))
830         * src/mcs51/peeph.def: added rules 140 and 264
831         * src/SDCCmem.c (allocLocal): store register declared locals in DSEG/OSEG
832           so they may get optimized into registers
833
834 2006-05-30 Maarten Brock <sourceforge.brock AT dse.nl>
835
836         * src/SDCCmain.c (optionsTable, parseCmdLine): handle --use-stdout
837           immediately when encountered,
838           (printUsage): always use stderr even on windows
839
840 2006-05-30 Bernhard Held <bernhard AT bernhardheld.de>
841
842         * src/SDCCast.c (isLoopCountable): fixed bug #1478316
843         (processParms): fixed bug #1247551
844         * src/SDCCmain.c (printVersionInfo, printOptions, printUsage,
845         parseCmdLine, main): print '--version' to stdout,
846         print 'help' to stdout if --help is given,
847         print 'help' to stderr and exit with EXIT_FAILURE if no or bad
848         arguments are given; fixed --help
849
850 2006-05-27 Bernhard Held <bernhard AT bernhardheld.de>
851
852         * src/SDCCcse.c (findPointerSet): fixed bug #1493710
853         * support/regression/tests/bug-1493710.c: added
854
855 2006-05-27 Borut Razem <borut.razem AT siol.net>
856
857         * support/regression/fwk/lib/testfwk.c: define array in _printn() as
858           static instead auto
859         * support/regression/ports/pic16/support.c: increase stack size
860           from default 64 bytes to 128 bytes
861         * support/regression/tests/staticinit.c,
862           support/regression/tests/float.c: regression tests fully enabled
863           for pic16 port by putting the initialized data arrays into the code
864           section
865         * support/regression/ports/pic16/spec.mk: don't link default libraries.
866           This was changed by mistake in the previous version.
867
868 2006-05-28 Vangelis Rokas <vrokas AT users.sourceforge.net>
869
870         * src/pic16/gen.c (genFunction, genEndFunction): some
871         beautifications, fixed bug with falsely restoring FSR2 in large
872         stack model, thanks to Beau E. Cox for reporting the bug
873
874 2006-05-26 Maarten Brock <sourceforge.brock AT dse.nl>
875
876         * debugger/mcs51/break.c,
877         * debugger/mcs51/cmd.c (throughout): removed unused variables and labels,
878           use %p to print pointers, made address variables unsigned
879         * debugger/mcs51/cmd.c (infoSymbols): added missing parameter to printf
880         * debugger/mcs51/symtab.c (parseSymbol): must return something
881         * src/mcs51/gen.c (aopForSym): small optimization,
882            moved declarations mcs51_ptrRegReq and mcs51_nRegs to ralloc.h,
883           (freeAsmop): added missing break,
884           (aopPut): removed parameter bvolatile, determine it inside the function,
885           (saveRegisters, unsaveRegisters): small optimization,
886           (genIpush): removed pointless check,
887           (throughout): replaced Safe_calloc, strcpy with Safe_strdup,
888           replaced sprintf with SNPRINTF,
889           replaced strcpy with strncpyz,
890           updated aopPut calls,
891           replaced D(emitcode("; genXXX", "")) with D(emitcode(";", "genXXX"))
892         * src/mcs51/ralloc.h:  added declarations mcs51_ptrRegReq and mcs51_nRegs
893
894 2006-05-24 Borut Razem <borut.razem AT siol.net>
895
896         * support/regression/tests/bug-221100.c: fixed xdata problem caused by
897           modification of test for the pic16 port, put the array to the code
898           memory for pic16port; thanks to Maarten Brock and Frieder Ferlemann
899
900 2006-05-23 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
901
902         * src/pic/gen.c: MSC 6 does not have <stdint.h>.  Use pstdint.h instead.
903         * support/Util/pstdint.h: added
904
905 2006-05-22 Borut Razem <borut.razem AT siol.net>
906
907         * src/regression/Makefile: removed bool2.c test, added -q linker option
908         * src/regression/add2.c, src/regression/add3.c, src/regression/bool1.c,
909           src/regression/bool3.c, src/regression/nestfor.c, src/regression/ptrfunc.c,
910           src/regression/compare.c, src/regression/or1.c, src/regression/compare2.c,
911           src/regression/while.c, src/regression/compare3.c, src/regression/compare4.c,
912           src/regression/compare5.c, src/regression/sub2.c, src/regression/rotate1.c,
913           src/regression/rotate2.c, src/regression/rotate3.c, src/regression/rotate4.c,
914           src/regression/switch1.c, src/regression/rotate5.c, src/regression/for.c,
915           src/regression/add.c, src/regression/sub.c, src/regression/call1.c:
916           define SUPPORT_BIT_TYPES 0, removed unused bit variables
917
918 2006-05-22 Raphael Neider <rneider AT web.de>
919
920         * src/pic16/gen.c (pic16_storeForReturn): fragile fix for
921           bug #1492360 (problematic due to generic pointers, see code)
922
923 2006-05-22 Borut Razem <borut.razem AT siol.net>
924
925         * support/regression/ports/pic16/specs.mk: removed stack size linker
926           directive
927         * support/regression/tests/array.c,
928           support/regression/tests/bitopcse.c,
929           support/regression/tests/bug-908454.c,
930           support/regression/tests/malloc.c: modified for pic16 regression test
931         * support/regression/tests/bitfields.c:
932           pic16 - excluded bitfileds of size > 8
933         * support/regression/tests/bp.c: pic16 - reduced data size
934         * support/regression/tests/bug-221100.c: pic16 - reduced data size
935         * support/regression/tests/bug-460010.c:
936           pic16 - used the absolute address the fits in memory
937         * support/regression/tests/bug-716242.c:
938           bug [ 1443651 ] pic 16: redefining symbol that cannot be redefined.
939         * support/regression/tests/float.c:
940           pic16 - excluded - data size too big
941         * support/regression/tests/onebyte.c:
942           pic16 - bug [ 1444425 ] onebyte.c regression tes fails on pic16
943         * support/regression/tests/shifts.c:
944           pic16 - function names probably have to differ in first X characters
945           (gpasm limitation?)
946         * support/regression/tests/staticinit.c:
947           pic16 - excluded some tests due error: no target memory available for
948           section ".idata"
949
950 2006-05-22 Borut Razem <borut.razem AT siol.net>
951
952         * support/Util/dbuf.c: fixed bug #1489008 fix dbuf_c_str(),
953           second try. Thanks Stas Sergeev once more.
954
955 2006-05-21 Maarten Brock <sourceforge.brock AT dse.nl>
956
957         * src/hc08/gen.c (transferAopAop): aop forced to stack was not restored,
958           (genLeftShift, genRightShift): fixed bug 1491627
959         * src/hc08/peeph.def (rules 7, 8.x): added
960         * support/regression/tests/shifts.c (ShiftLeftByParam,
961           ShiftRightByParam, testShiftByParam): added to test variable shifting
962
963 2006-05-20 Raphael Neider <rneider AT web.de>
964
965         * src/pic/gen.c (bitpatternFromVal): fixed for 64-bit machines
966         * src/pic16/ralloc.c (newReg): use correct name in hashtable,
967           (allocReg): add only new registers to dynAllocRegs,
968           (pic16_assignRegisters): do not reset dynrIdx, fixes bugs
969             #1489055, #1445850, and probably #1483693
970
971 2006-05-19 Vangelis Rokas <vrokas AT users.sourceforge.net>
972
973         * src/pic16/glue.c (pic16_emitConfigRegs, pic16_emitIDRegs): fixed
974         bug in for-loop that didn't emit the last of CONFIG and ID registers
975
976 2006-05-18 Maarten Brock <sourceforge.brock AT dse.nl>
977
978         * src/mcs51/gen.c (genCodePointerGet): inc dptr instead of loading acc
979           with offset
980         * src/mcs51/peeph.def (186.x): updated and reenabled to fix bugs
981           1489016, 1434401 and 1490124
982         * src/ds390/peeph.def (186.x, 227.x): updated and reenabled to fix bugs
983           1489016, 1434401 and 1490124
984
985 2006-05-17 Borut Razem <borut.razem AT siol.net>
986
987         * support/Util/dbuf.c: fixed bug #1489008 fix dbuf_c_str(),
988           thanks Stas Sergeev
989
990 2006-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
991
992         * device/include/mcs51/P89c51RD2.h,
993         * device/include/mcs51/P89LPC901.h,
994         * device/include/mcs51/P89LPC922.h,
995         * device/include/mcs51/P89LPC932.h: added, thanks Omar Espinosa
996
997 2006-05-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
998
999         * device/lib/pic16/libsdcc/stack/{stack.S, Makefile.in}: add workaround
1000         to fix missing stack pragma in compiled binary object file,
1001
1002 2006-05-14 Bernhard Held <bernhard AT bernhardheld.de>
1003
1004         * support/packihx/configure.in,
1005         * support/packihx/configure: removed warning, autoconf >= 2.5x can
1006         determine sizeof basic types even while cross compiling
1007
1008 2006-05-13 Bernhard Held <bernhard AT bernhardheld.de>
1009
1010         * src/avr/gen.c (aopop),
1011         * src/ds390/gen.c (aopOp),
1012         * src/hc08/gen.c (aopOp),
1013         * src/mcs51/gen.c (aopop),
1014         * src/pic16/gen.c (pic16_aopOp),
1015         * src/pic/gen.c (aopOp),
1016         * src/z80/gen.c (aopop): fix for bug #1479882; use new, exclusive asmop
1017         if size of operand is smaller than spill location
1018
1019 2006-05-12 Borut Razem <borut.razem AT siol.net>
1020
1021         * *.dsw, *.dsp: changed property svn:eol-style to CRLF since they
1022           have to have CR/LF line endings even if they are checked out on *nix
1023           or on WIN32 in cygwin binmode
1024
1025 2006-05-12 Maarten Brock <sourceforge.brock AT dse.nl>
1026
1027         * doc/sdccman.lyx: documented numeric ranges, WEBDOC #1442369
1028         * device/include/ds80c390.h: added sfr16 definitions
1029         * src/ds390/gen.c,
1030         * src/ds390/gen.h,
1031         * src/ds390/main.c,
1032         * src/ds390/ralloc.c,
1033         * src/ds390/ralloc.h: changes all over the place to sync with mcs51
1034           fixing several bugs and adding sfr16/sfr32, reentrant bit params,
1035           bit returning functions
1036         * support/regression/tests/sfr16.c: enabled test on ds390
1037
1038 2006-05-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1039
1040         * src/hc08/gen.c (asmopToBool, genIfx): fix for bug #1429722
1041         * src/hc08/gen.c (storeRegToAop): fix for bug #1439894
1042
1043 2006-05-11 Maarten Brock <sourceforge.brock AT dse.nl>
1044
1045         * sim/ucsim/sim.src/memcl.h: added get_decoder() to cl_address_space
1046         * sim/ucsim/sim.src/mem.cc: implemented cl_address_space::get_decoder,
1047           (cl_address_space constructor): removed expensive initialization,
1048           (cl_address_space::get_cell): extended for late initialization,
1049           (cl_address_space::*): use late initialization,
1050           (cl_address_decoder::activate): removed expensive initialization,
1051           This reduced regression test running time by 25%
1052
1053 2006-05-11 Bernhard Held <bernhard AT bernhardheld.de>
1054
1055         * packihx/,
1056         * configure.in,
1057         * configure,
1058         * sdcc.dsw,
1059         * Makefile.bcc,
1060         * Makefile.in,
1061         * support/packihx/Makefile.in,
1062         * support/packihx/clean.mk,
1063         * support/packihx/Makefile.bcc,
1064         * support/packihx/PackIhx.dsp: moved packihx to support/packihx
1065
1066 2006-05-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1067
1068         * src/SDCCval.c (valNot): fix for regression test failure
1069           of not.c on big endian hosts
1070
1071 2006-05-10 Maarten Brock <sourceforge.brock AT dse.nl>
1072
1073         * device/inlcude/mcs51/msc1210.h: new, added, thanks Philippe Latu
1074
1075 2006-05-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1076
1077         * device/lib/mcs51/Makefile.in: changed string comparison operator
1078           to = for POSIX compliance; == is bash extension
1079
1080 2006-05-10 Maarten Brock <sourceforge.brock AT dse.nl>
1081
1082         * device/lib/hc08/_mulint.c: applied patch 1485428, thanks
1083           kosmonaut_pirx
1084
1085 2006-05-09 Vangelis Rokas <vrokas AT users.sourceforge.net>
1086
1087         * src/pic16/gen.c (pic16_freeAsmop): release any temp registers
1088         allocated by aopForSym thus fixing bug #1478657 about failed testfwk.c
1089         * src/pic16/main.c (_pic16_keywords): added 'sfr16' keyword,
1090         * src/pic16/ralloc.c (pic16_allocWithIdx): also a fix for bug exposed by
1091         bug report #1478657,
1092
1093 2006-05-05 Borut Razem <borut.razem AT siol.net>
1094
1095         * doc/Makefile.in: remove of WARNINGS and labels.pl immediately after
1096           making the html
1097
1098 2006-05-02 Borut Razem <borut.razem AT siol.net>
1099
1100         * doc/Makefile.in: removed *.ind dependency since there is no rule to
1101           create *.ind, which made make to fail if invoked with -j 2
1102
1103 2006-05-01 Maarten Brock <sourceforge.brock AT dse.nl>
1104
1105         * src/SDCCglue.c (emitRegularMap): partial fix for bug 1477149, thanks
1106           Hubert Sack for patch 1479782
1107
1108 2006-05-01 Vangelis Rokas <vrokas AT users.sourceforge.net>
1109
1110         * src/pic16/glue.c (pic16_printIvalStruct): fixed bug #1445929
1111
1112 2006-05-01 Raphael Neider <rneider AT web.de>
1113
1114         * src/pic/device.c (sanitise_processor_name): only remove p(ic) prefix,
1115           (create_pic): store only prefix-free device name,
1116           (init_pic): check for device names with "16" prefix,
1117           (list_valid_pics),
1118         * src/pic/device.h (struct PIC_device),
1119         * src/pic/main.c (_pic14_genAssemblerPreamble): adapted to single
1120             stored device name,
1121         * device/include/pic/pic12f{635,675,629,683}.h,
1122         * device/lib/pic/libdev/pic12f{635,675,629,683}.c: NEW device libraries
1123         * device/lib/pic/libdev/Makefile.in: allow pic12* devices,
1124         * device/include/pic/pic16f505.h,
1125         * device/lib/pic/libdev/pic16f505.c: removed
1126         * device/include/pic/pic14devices.txt: added support for pic12f
1127             devices, removed unsupported non 16-bit devices
1128             [above changes provided by patch from Zik Saleeba]
1129         * src/pic/*, src/pic16/*, device/include/pic16/*,
1130           device/lib/pic/**, device/lib/pic16/**: obfuscated email address
1131
1132 2006-05-01 Borut Razem <borut.razem AT siol.net>
1133
1134         * configure.in, configure, doc/Makefile.in:
1135           sync with nightly build makefile - latex, dvipdf and dvips
1136           not needed any more
1137
1138 2006-04-30 Bernhard Held <bernhard AT bernhardheld.de>
1139
1140         * support/scripts/sdcc.nsi: removed all Readmes and Makefiles
1141         in the library source
1142
1143 2006-04-30 Maarten Brock <sourceforge.brock AT dse.nl>
1144
1145         * support/regression/ports/hc08/spec.mk: fixed bug 1478892
1146
1147 2006-04-28 Raphael Neider <rneider AT web.de>
1148
1149         * src/pic16/pcode.c (pic16_newpCodeOpLit12),
1150         * src/pic16/gen.c (pic16_popGetLit12): NEW, create 12 bit literal,
1151           (pic16_loadFSR0): handle 12 bit literals correctly, fixes #1440527
1152         * src/pic16/pcode.h: added prototype for pic16_newpCodeOpLit12()
1153
1154 2006-04-28 Bernhard Held <bernhard AT bernhardheld.de>
1155
1156         * device/lib/pic/libdev/Makefile.in,
1157         * device/lib/hc08/Makefile.in,
1158         * device/lib/gbz80/Makefile.in,
1159         * device/lib/z80/Makefile.in,
1160         * device/lib/ds390/Makefile.in,
1161         * device/lib/ds400/Makefile.in: added srcdir to include search path,
1162         thanks to Borut for the bug report
1163         * configure.in,
1164         * configure: always create doc/Makefile independent from --enable-doc
1165         * Makefile.in: always install from directory doc independent from
1166         --enable-doc
1167         * device/lib/pic/Makefile.in: added libdev again, it was erroneously
1168         removed
1169         * device/lib/pic/libdev/Makefile.in: fixed VPATH build
1170         * doc/Makefile.in: install *.txt if present
1171         * device/include/Makefile.in (install): added installation of pic/*.inc
1172         and pic/*.txt files again, they were erroneously removed
1173
1174 2006-04-28 Raphael Neider <rneider AT web.de>
1175
1176         * src/pic/{gen.c,main.h,pcode.c},
1177         * src/pic16/{gen.c,pcode.c}: quietened compiler warnings
1178             concerning signedness with casts
1179
1180 2006-04-28 Raphael Neider <rneider AT web.de>
1181
1182         * src/pic/gen.c (genFunction): set global pic14_hasInterrupt on
1183             definition of an interrupt handler,
1184         * src/pic/glue.c (pic14_emitInterruptHandler): moved output of
1185             interrupt handler stuff from picglue() to separate routine,
1186           (picglue): enabled definition of intr handlers in files w/o main()
1187
1188 2006-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
1189
1190         * support/librarian/sdcclib.c: moved include <limits.h> up to enable
1191           compilation with MSVC 2005 Express Edition (VC8)
1192
1193 2006-04-26 Bernhard Held <bernhard AT bernhardheld.de>
1194
1195         * device/lib/Makefile: fixed build of gbz80 lib
1196
1197 2006-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
1198
1199         * support/regression/tests/bug-460010.c,
1200         * support/regression/tests/bug-524691.c,
1201         * support/regression/tests/bug-716242.c: removed conditional defines
1202           that are already in testfwk.h
1203
1204 2006-04-25 Maarten Brock <sourceforge.brock AT dse.nl>
1205
1206         * src/ds390/gen.c (AccAXRrl1, AccAXLrl1): changed to real rotate by 1,
1207           (AccAXRsh1): added, shift right by 1,
1208           (AccAXLsh, AccAXRsh, AccAXRshS): updated for AccAXRrl1, AccAXRsh1 and
1209            AccAXLrl1
1210         * support/regression/tests/rotate.c: use <stdint.h> and enabled ds390
1211
1212 2006-04-25 Bernhard Held <bernhard AT bernhardheld.de>
1213
1214         * src/SDCCast.c (decorateType): partial fix for RFE 1475769,
1215         remove cast to same type
1216         * src/SDCCast.c (decorateType): fix for RFE 1475742,
1217         optimize 'ifx (op == 0)' resp. 'ifx (op != 0)'
1218         * as/z80/Makefile,
1219         * link/z80/Makefile: removed, they have moved to
1220         Makefile.in files
1221         * configure,
1222         * configure.in: replaced duplicate message about ucsim by missing sdcpp
1223         * install-sh: fix bug #1204398 by setting umask 0022
1224         * device/lib/Makefile: separate build of z80 and gbz80 lib
1225
1226 2006-04-24 Bernhard Held <bernhard AT bernhardheld.de>
1227
1228         Enabled VPATH feature: changed nearly all Makefiles (149 files).
1229         See sdccman.lyx '2.4.10 VPATH feature' about how to use it.
1230
1231         One basic decision: e.g. src/clean.mk includes further files. In order
1232         to make this work there are two solutions:
1233         - rename another dozen clean.mk to clean_in.mk, add srcdir to them and
1234           run configure on them. This way they can use
1235           'include $(srcdir)/port-clean.mk'
1236         - always include clean.mk by the Makefile at the same level. To avoid
1237           that `make clean` tries to include and build Makefile.dep the
1238           MAKECMDGOALS are examined (see e.g. src/Makefile.in). This has been
1239           implemented, because now even `make uninstall` doesn't create
1240           Makefile.in. clean.mk could be eliminated by pasting it in
1241           Makefile.in.
1242
1243         * debugger/mcs51/Makefile.in: build own objects from library sources
1244         (SLIB, SDCC) in current directory
1245
1246         * configure, configure.in: renamed --disable-device-lib-build in
1247         --disable-device-lib; added --enable-doc, the required tools are
1248         searched by configure; added result message; the toolchain for the
1249         belonging ports are now only built, if the port is enabled.
1250
1251         * support/regression/*: all output is written in directory gen, because
1252         the fwk and ports directories don't livet in the build tree using vpath
1253
1254         * doc/sdccman.lyx: renamed --disable-device-lib-build to
1255         --disable-device-lib, added --enable-doc, added section VPATH
1256
1257         * sim/ucsim/configure.in,
1258         * sim/ucsim/configure.in: hc08 couldn't be disabled, now hc08 and
1259         z80 are enabled by default
1260
1261 2006-04-24 Raphael Neider <rneider AT web.de>
1262
1263         * src/pic/device.c (pic14_assignConfigWordValue): remember assignments
1264             to config word, "pic14_"-prefixed some extern functions
1265           (pic14_emitConfigWord): emit __config directive(s) if assignment to
1266             config word has been found
1267         * src/pic/device.h: added prototypes
1268         * src/pic/pcode.c: added "pic14_"-prefix where needed
1269         * src/pic/ralloc.c (IS_CONFIG_ADDRESS,pic14_assignRegisters): cosmetic
1270             fixup
1271         * src/pic/glue.c (pic14_constructAbsMap): handle assignments to config
1272             words,
1273           (pic14emitRegularMap): ignore config words,
1274           (pic14createInterruptVect): moved generating __config directives away
1275           (picglue): have __config directives emitted
1276
1277 2006-04-24 Borut Razem <borut.razem AT siol.net>
1278
1279         * doc/Makefile: sync with nightly build makefile
1280
1281 2006-04-24 Raphael Neider <rneider AT web.de>
1282
1283         * src/pic/pcoderegs.c (OptimizeRegUsage): do not optimize
1284             registers that have not been assigned proper liveranges,
1285             fixes #1469504 and #1474602,
1286           (pCodeRegOptimizeRegUsage): fixed typo in comment
1287
1288 2006-04-24 Borut Razem <borut.razem AT siol.net>
1289
1290         * device/examples/main8051.c: deleted - it was removed from CVS
1291           24.mar.2000 and after that modified 18.feb.2001, so it reappered
1292           after the transition to Subversion
1293         * src/SDCCalloc.h: deleted - it was removed  from CVS
1294           3.feb.2001 and after that modified 18.feb.2001, so it reappered
1295           after the transition to Subversion
1296         * sim/ucsim/cpu.gif, sim/ucsim/interrupt.gif, sim/ucsim/new.gif,
1297           sim/ucsim/serial1.gif, sim/ucsim/serial2.gif,
1298           sim/ucsim/term_cpuopt.gif, sim/ucsim/timers.gif, sim/ucsim/wins.gif,
1299           sim/ucsim/post.jpg, sim/ucsim/UCsim.jpg: corrected
1300
1301 2006-04-22 Maarten Brock <sourceforge.brock AT dse.nl>
1302
1303         * as/asx8051.dsp: added mcs51/strcmpi.h
1304         * as/hc08/as_hc08.dsp: added asm.h, m6808.h, strcmpi.h
1305         * as/hc08/aslink.h: updated lnksect prototype
1306         * as/hc08/asm.h,
1307         * as/mcs51/asm.h: added a_addr to struct area and s_org to struct sym
1308         * as/hc08/asmain.c,
1309         * as/mcs51/asmain.c (asmbl): init dot.s_org for S_ORG,
1310           (newdot): handle A_ABS
1311         * as/hc08/asout.c,
1312         * as/mcs51/asout.c (outarea): output address
1313         * as/hc08/lkaomf51.c,
1314         * as/mcs51/lkaomf51.c: disabled unused array UsageType
1315         * as/hc08/m08pst.c,
1316         * as/mcs51/i51pst.c,
1317         * as/z80/z80pst.c: "ABS" is not A_OVR
1318         * as/hc08/lkarea.c (newarea): read a_addr,
1319           (lnkarea): added codemap array, sort absolute areas to the front,
1320            combine all GSINITx/GSFINAL,
1321           (find_empty_space, allocate_space): new functions,
1322           (lnksect): return next address, handle absolute sections
1323         * as/mcs51/lkarea.c (newarea): read a_addr,
1324           lnksect2 prototype changed,
1325           (lnkarea2): define codemap unsigned, combine all GSINITx/GSFINAL,
1326           (find_empty_space, allocate_space): new, factored out of lnksect2,
1327           (lnksect2): return next address, handle absolute sections
1328         * as/hc08/lkhead.c,
1329         * as/mcs51/lkhead.c (newhead): head is absolute but not overlay
1330         * as/hc08/lklibr.c (addfile, fndsym),
1331         * as/mcs51/lklibr.c (addfile, buildlibraryindex, fndsym): prevent
1332           index out of range and detect both '\' and '/'
1333         * device/include/mcs51/c8051f200.h: added _XPAGE, removed bad comment
1334         * device/include/stdbool.h: removed SDCC_ds390 from check to pass
1335           regression tests (ds390 cannot return bool yet)
1336         * doc/sdccman.lyx: changed version number, document changed --no-peep,
1337           document critical interrupts on z80, document changed SDCC define
1338         * src/asm.c (_asxxxx_mapping): fixed .org directive,
1339           (_a390_mapping): added .org directive
1340         * src/hc08/gen.c (transferAopAop): made bytemask log to fix warning,
1341           (genMultOneByte): fixed warnings
1342         * src/hc08/hc08.dsp: lowered warning level to 2 to suppress pedantic
1343           ones
1344         * src/pic16/device.c: removed newReg prototype, removed BYTE_IN_LONG
1345         * src/pic16/gen.c (pic16_popGetLabel): made parameter key signed,
1346           (pic16_genLeftShiftLiteral, genRightShiftLiteral): fixed warnings
1347         * src/pic16/gen.h: changed prototype for pic16_popGetLabel
1348         * src/pic16/main.c: removed newReg prototype
1349         * src/pic16/pcode.c,
1350         * src/pic16/pcode.h (pic16_emitDB): changed parameter c to int to fix
1351           warnings
1352         * src/pic16/pic16.dsp: lowered warning level to 2 to suppress pedantic
1353           ones
1354         * src/pic16/ralloc.c
1355         * src/pic16/ralloc.h (newReg): changed type to int and size to unsigned
1356           to fix warnings
1357         * src/pic/pcode.c (allocInternalRegister): changed parameter optype
1358           from short to PIC_OPTYPE
1359         * src/pic/pic.dsp: lowered warning level to 2 to suppress pedantic ones
1360         * src/pic/ralloc.c (newReg, allocInternalRegister): changed parameter
1361           optype from short to PIC_OPTYPE
1362         * src/port.h: made int_size unsigned to fix warnings
1363         * src/SDCC.y: fixed warning on MSVC
1364         * src/SDCCicode.c (getArraySizePtr): return unsigned int
1365         * src/SDCCopt.c (convertToFcall): fixed warnings
1366         * src/SDCCsymt.h: removed double prototype for genSymName
1367         * src/xa51/ralloc.c (allocReg): made size unsigned int, type int and
1368           offset int to fix warnings
1369
1370 2006-04-22 Borut Razem <borut.razem AT siol.net>
1371
1372         * doc/sdccman.lyx, */Makefile, */Makefile.in:
1373           references to CVS replaced with Subversion
1374
1375 2006-04-21 Borut Razem <borut.razem AT siol.net>
1376
1377         * doc/sdccman.lyx, */Makefile, */Makefile.in:
1378           references to CVS replaced with Subversion
1379
1380 2006-04-19 Borut Razem <borut.razem AT siol.net>
1381
1382         * src/version.awk: adapted for svn
1383         * /asxxxx/asxhtml/*.gif: set property svn:mime-type to image/gif
1384           sim/ucsim/doc/*.gif: set property svn:mime-type to image/gif
1385           sim/ucsim/doc/*.jpg: set property svn:mime-type to image/jpeg
1386           /binutils-avr/etc/*.vi, *.jin: removed all properties
1387           support/scripts/sdcc.ico: set property svn:mime-type to image/x-icon
1388
1389 2006-04-19 Borut Razem <borut.razem AT siol.net>
1390
1391         * CVS to Subversion migration completed
1392
1393 2006-04-18 Borut Razem <borut.razem AT siol.net>
1394
1395         * support/scripts/sdcc.nsi: removed unexisting ${DEV_ROOT}\lib\pic\*.o,
1396           ${DEV_ROOT}\lib\src\pic\libdev\*.S, ${DEV_ROOT}\lib\src\pic\libdev\*.inc
1397
1398 2006-04-17 Borut Razem <borut.razem AT siol.net>
1399
1400         * device/include/Makefile.in: added pic/*.inc to the installation
1401
1402 2006-04-15 Bernhard Held <bernhard AT bernhardheld.de>
1403
1404         * support/regression/collate-results.py: fixed output in case of
1405         a valdiag error
1406         * support/regression/generate-cases.py: fixed splitting of pathnames
1407         with dots
1408         * as/hc08/lklibr.c (addfile),
1409         * as/mcs51/lklibr.c (addfile): fixed off-by-one bug
1410
1411 2006-04-11 Raphael Neider <rneider AT web.de>
1412
1413         * src/pic16/gen.c (getFreePtr, pic16_popRegFromString),
1414         * src/pic16/ralloc.c (pic16_allocregWithName): removed debug output
1415         * src/pic16/pcode.c (assignValnums): fixed #1460578
1416
1417 2006-04-11 Raphael Neider <rneider AT web.de>
1418
1419         * device/lib/pic/libdev/*.c,
1420         * device/include/pic/*.h: replaced sfr and data with __sfr and __data,
1421           fixes #1468739, enables compilation in --std-c99 mode
1422         * support/scripts/inc2h.pl: emit __sfr/__data instead of sfr/data
1423
1424 2006-04-11 Raphael Neider <rneider AT web.de>
1425
1426         * src/pic/device.c (find_device): removed debug output
1427           (list_valid_pics): enabled verbose listing of supported devices
1428         * device/include/stdbool.h: define bool as char for pic14/16 as well
1429
1430 2006-04-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1431
1432         * src/SDCC.y: allow using brackets here: "__interrupt (1) __using (1)"
1433
1434 2006-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
1435
1436         * .version: bumped version to 2.5.6
1437         * src/pic/ralloc.c (newReg): MSVC doesn't support __builtin_return_address
1438
1439 2006-04-06 Raphael Neider <rneider AT web.de>
1440
1441         * .version: bumped version to 2.5.6 (pic14 ABI changed)
1442         * src/SDCCmain.c: add -DSDCC_PROCESSOR=<id> for pic14 port
1443         * src/pic/glue.c (emitSymbolToFile,pic14_constructAbsMap,
1444           pic14emitRegularMap,pic14emitMaps): moved output for absolute symbols to
1445             pic14_constructAbsMap
1446           (pic14printPublics): declare absolute global symbols as global
1447           (pic14createInterruptVect),
1448         * src/pic/ralloc.c (IS_CONFIG_ADDRESS): support second config word,
1449           (newReg): assume new registers unused, use correct name in
1450             hashtable (reg->name instead of name), more debugLog output
1451         * src/pic/device.h (PIC_device): added fields for verbose output
1452         * src/pic/device.c: moved device definition to pic14devices.txt,
1453             added routines for runtime parsing of pic14devices.txt,
1454             added support for second config word
1455         * src/pic/main.c (_process_pragma): removed #pragma maxram,
1456           (_pic14_keywords): no longer accept "bit" and "sbit" keywords
1457           (_pic14_initPaths): add search paths with "pic" suffix (not "pic14")
1458           (_pic14_parseOptions): moved pCodeInitRegisters here
1459           (_pic14_do_link): add "pic$(ARCH).lib" to linker arguments
1460         * src/pic/pcode.c (AnalyzeBanking): bail out on unset processor,
1461           (pCodeInitRegisters): rewrapped comments, perpared new approach to
1462             handling the pseudo stack
1463         * device/lib/Makefile.in: ignore failures in objects-pic16,
1464         * device/lib/pic/{configure,configure.in,Makefile}: added libdev/
1465         * device/lib/pic/NEWS: document new dependency on picXXX.lib
1466         * device/lib/pic/Makefile.subdir,
1467         * device/lib/pic16/Makefile.subdir: improved clean rules
1468         * device/lib/pic/libdev/: NEW, pic14 device libraries
1469         * device/lib/pic/libsdcc/_gptr{get,put}{1,2,3,4}.S: use _X not X
1470         * device/lib/pic/libsdcc/macros.inc: use _X not X, declare default SFRs
1471         * device/include/Makefile.in: create subdir and install pic14 headers
1472         * device/include/pic/p16f_common.inc: removed unused declarations
1473         * device/include/pic/pic16*.h: added header files for 100+ 14 bit
1474             PICs from inc2h.pl v1.6,
1475             replaced BIT_AT macros with struct declarations
1476         * device/include/pic/pic14devices.txt: definition of supported devices,
1477             all above improvements contributed by Zik Saleeba, thanks
1478         * support/scripts/inc2h.pl: removed BIT_AT, replaced with structs
1479         * support/scripts/sdcc.nsi: also install pic14 device libraries and
1480             headers
1481
1482 2006-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
1483
1484         * device/include/mcs51/c8051f410.h: added interrupt numbers,
1485         * device/include/mcs51/c8051f200.h: old SiLabs mcu completes the list,
1486           thanks to Charles Olds
1487
1488 2006-04-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1489
1490         * debugger/mcs51/cmd.c (infoRegisters): show return address on stack
1491
1492 2006-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
1493
1494         * src/SDCCpeeph.c (labelIsReturnOnly): fixed bug 1464657
1495         * src/mcs51/gen.c (genJumpTab): fixed bug in medium model
1496         * support/regression/bug1464657.c: added, new test
1497
1498 2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
1499
1500         * src/SDCCmain.c (preProcess): implemented RFE 1449908, define SDCC as the
1501           version number
1502
1503 2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
1504
1505         * src/SDCCpeeph.c (initPeepHole): implemented RFE 1460196, when both
1506           --no-peep and --peep-file <file> are used don't use default rules but
1507           do use the <file>
1508
1509 2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
1510
1511         * src/mcs51/gen.c (genCall): fixed bug 1457608
1512
1513 2006-03-30 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1514
1515         * doc/sdccman.lyx: reverted to version 1.129 of december as my latest
1516         changes seem to cause (trigger?) problems with the build system.
1517
1518 2006-03-29 Maarten Brock <sourceforge.brock AT dse.nl>
1519
1520         * src/SDCCpeeph.c (operandsLiteral): new, added,
1521           (callFuncByName): inserted operandsLiteral
1522         * src/mcs51/peeph.def: reenabled 132.e, added extra check to 132.x
1523
1524 2006-03-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1525
1526         * doc/sdccman.lyx: added paragraph "Use of SDCC in Education"
1527         * src/mcs51/peeph.def: disabled rule 132.e fixing bug #1453093
1528
1529 2006-03-24 Maarten Brock <sourceforge.brock AT dse.nl>
1530
1531         * src/z80/gen.c (genFunction, genEndFunction): fixed bug 1160666,
1532           implemented patch 1120823 Thanks to Willy De la Court (normal
1533           interrupts need an interrupt number now if they are made critical),
1534           and enabled nesting of critical functions though not for gbz80
1535           (genCritical, genEndCritical): added functions
1536           (genZ80Code): added cases for CRITICAL and ENDCRITICAL
1537         * src/z80/mappings.i: added "ei" to all mappings
1538
1539 2006-03-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1540
1541         * sim/ucsim/cmd.src/newcmdcl.h: applied patch fixing GCC 4.1 build
1542         submitted by the Debian SDCC maintainer Aurelien Jarno:
1543         "Credits goes to Martin Michlmayr, who rebuilt the whole Debian
1544         archive with gcc 4.1 on mips and wrote the patch"
1545
1546 2006-03-16 Raphael Neider <rneider AT web.de>
1547
1548         * src/pic16/genarith.c (genAddLit): simplified and fixed case where
1549           the left operand is shorter than the result (c* = lit-c* + int),
1550           fixes bug #1450796
1551         * src/pic16/gen.c (genRightShift): check IS_SYMOP before accessing
1552           OP_SYMBOL
1553
1554 2006-03-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
1555
1556         * src/.version: increased version number to 2.5.5
1557         * src/SDCCmain.c (linkEdit): do not test for PIC16 target since, PIC16
1558         linking is done manually in pic16 port's _linkEdit,
1559         * src/SDCCsymt.c (compStructSize): for target PIC16 and shell variable
1560         PIC16_PACKED_BITFIELDS, compact bitfield structures as much as possible,
1561         * src/pic16/gen.c (aopForSym): when direct register name is WREG then
1562         allocate asmop as AOP_ACC,
1563         (aopForRemat): added parameter 'bool result' in function declaration,
1564         (pic16_aopGet): return AOP_ACC when accessing WREG,
1565         (pic16_popGetTempReg): minor modification,
1566         (pic16_popRegFromIdx): first try with 'pic16_regWithIdx' then with
1567         'pic16_allocWithIdx',
1568         (genPcall): removed ftype, usage of OP_SYM_TYPE asserted error when
1569         calling function in absolute addresses,
1570         (genAssign): take into account AOP_ACC asmop,
1571         * src/pic16/pcode.c (pic16_newpCodeOpReg): minor modifications,
1572         * src/pic16/pcoderegs.c: some debug functions and lines added,
1573         * src/pic16/ralloc.c (decodeRegType): added but commented out,
1574         * (pic16_typeRegWithIdx): search 'pic16_dynInternalRegs' for given
1575         register too,
1576         * (pic16_findFreeReg, pic16_findFreeRegNext): allocate new register via
1577         call to allocReg, not by manually allocating a new one,
1578         (pic16_assignRegisters): now before going through the register
1579         allocating functions mark all registers as free. This eliminates some
1580         side effects resulting from peephole parser done earlier in the backbone
1581
1582 2006-03-13 Maarten Brock <sourceforge.brock AT dse.nl>
1583
1584         * src/SDCCicode.c (geniCodeLogic),
1585         * src/SDCCast.c (decorateType): applied patch by Bernhard for rfe 1422617
1586
1587 2006-03-10 Maarten Brock <sourceforge.brock AT dse.nl>
1588
1589         * src/mcs51/gen.c (sameReg): new, checks if two aop regs are the same,
1590           (genSend): bugfix, do not allocate and free twice,
1591           (shiftRLong): handle partially overlapping aops
1592         * support/regression/tests/bitopcse.c: fixed warning redefined idata
1593
1594 2006-03-08 Borut Razem <borut.razem AT siol.net>
1595
1596         * support/regression/fwk/include/testfwk.h: added defines for xdata, idata
1597           for pic16
1598
1599 2006-03-08 Maarten Brock <sourceforge.brock AT dse.nl>
1600
1601         * support/regression/tests/bug1409955.c: new, added
1602         * src/mcs51/gen.h: changed asmop.freed:1 to asmop.allocated for tracking
1603         * src/mcs51/gen.c (newAsmop): set asmop.allocated to 1,
1604           (aopForSym, aopOp): increment asmop.allocated if reused,
1605           (freeAsmop): decrement asmop.allocated and check for zero instead of
1606           using asmop.freed,
1607           (freeForBranchAsmop): use asmop.allocated instead of asmop.freed,
1608           (genNot, genCpl, genUminus, genMinus, genMult, genDiv, genMod, genCmpGt,
1609            genCmpLt, genAndOp, genOrOp, genAnd, genOr, genXor, genRRC, genRLC,
1610            genGetHbit, genGetAbit, genGetByte, genGetWord, genSwap,
1611            genLeftShiftLiteral, genLeftShift, genRightShiftLiteral,
1612            genSignedRightShift, genRightShift, genDataPointerGet,
1613            genPagedPointerGet, genFarPointerGet, genCodePointerGet,
1614            genGenPointerGet, genDataPointerSet, genAssign, genCast): free asmop's
1615             in reverse order from allocation,
1616           (genPlus, genCmpEq): free asmop's in reverse order from allocation and
1617             added swappedLR to keep track
1618         * support/regression/fwk/include/testfwk.h: added defines for xdata, idata,
1619           pdata & code for GCC, z80, gbz80 & hc08
1620         * support/regression/tests/zeropad.c: moved defines to testfwk.h
1621
1622 2006-03-08 Raphael Neider <rneider AT web.de>
1623
1624         * src/pic16/main.c (_hasNativeMulFor): fixed bug #1444425
1625
1626 2006-03-07 Maarten Brock <sourceforge.brock AT dse.nl>
1627
1628         * device/include/mcs51/c8051f410.h: new SiLabs mcu
1629         * src/ds390/peeph.def: disabled 186.d and 227.a as fix for #1434401
1630         * support/regression/tests/array.c: added parenthesis, made arrays unsigned
1631
1632 2006-03-06 Borut Razem <borut.razem AT siol.net>
1633
1634         * support/regression/ports/pic16/spec.mk: link with libm18f.lib,
1635           made the linker quiet
1636
1637 2006-03-06 Vangelis Rokas <vrokas AT users.sourceforge.net>
1638
1639         * src/pic16/gen.c (genPcall): fixed bug #1443644
1640         * src/pic16/device.h (struct pic16_options_t): added 'int CATregs' flag
1641         which dumps before the function entry point a data byte which represents
1642         the number of the local variables used by the specified function, added
1643         'xinst' for initial support for Extended Instruction Support,
1644         * src/pic16/gen.c (aopForSym, pic16_aopGet): beautifications,
1645         (pic16_testStackOverflow): do not prefix GSTACK_TEST_NAME with
1646         port->fun_prefix anymore (may change later),
1647         (genFunction, genEndFunction): do not store/restore local registers for
1648         _main (this should take care the --main-return command line option in
1649         the future),
1650         (genOr): removed some legacy pic-port instructions,
1651         * src/pic16/genarith.c (genAddLit): re-enabled old code because
1652         performing operations with SFR's causes data to be written more than
1653         once to each SFR. Perhaps SFRs should be handled in special cases...
1654         * src/pic16/glue.c: macros BIG_ENDIAN and BYTE_IN_LONG are moved to
1655         pcode.h
1656         * src/pic16/main.c (_process_pragma): stack bound checking did not take
1657         into account for stack starting position,
1658         (struct OPTIONS pic16_optionsTable): added command line argument
1659         --extended or -y for Extended Instruction Support,
1660         * src/pic16/ralloc.c (pic16_decodeOp): added case for FUNCTION,
1661         (deassignLRs): *** perhaps the most important change, old 'for' code
1662         (commented out for reference), didn't account for some registers which
1663         were left marked 'not free' after a pointer operation. The change
1664         reduces register usage a lot in some cases
1665
1666 2006-03-04 Borut Razem <borut.razem AT siol.net>
1667
1668         * support/regression/ports/hc08/spec.mk: remove *.asm in traget
1669           _clean
1670         * support/regression/tests/bug-524697.c: decreased array size for
1671           mcs51 to fit into the internal RAM
1672         * support/regression/Makefile.in: a little bit more verbose
1673
1674 2006-03-03 Borut Razem <borut.razem AT siol.net>
1675
1676         * support/regression/fwk/lib/testfwk.c,
1677           support/regression/fwk/include/testfwk.h: introduced function
1678           _prints(), nonrecursive _printn(), call _initEmu() from main()
1679         * support/regression/ports/gbz80/support.asm,
1680           support/regression/ports/ucz80/support.asm,
1681           support/regression/ports/z80/support.asm,
1682           support/regression/ports/ds390/support.c,
1683           support/regression/ports/hc08/support.c,
1684           support/regression/ports/host/support.c,
1685           support/regression/ports/mcs51/support.c,
1686           support/regression/ports/xa51/support.c: added empty _initEmu()
1687           function
1688         * support/regression/ports/pic16/gpsim.cmd,
1689           support/regression/ports/pic16/spec.mk,
1690           support/regression/ports/pic16/support.c,
1691           support/regression/Makefile.in: added pic16 regression test
1692
1693 2006-03-01 Raphael Neider <rneider AT web.de>
1694
1695         * src/pic16/gen.c (genPcall,pic16_derefPtr,genGenPointerGet,
1696           genConstPointerGet): use safe way of generating MOVFF to cover
1697             literals as well as registers, fixes bug #1440527
1698         * src/pic16/glue.c (pic16_printIvalBitFields): prevent NULL pointer
1699             dereference
1700           (pic16_printIvalUnion,pic16_isUnion): NEW, handle initialized unions
1701             more correctly, fixes bug #1232186
1702           (pic16_printIval): use pic16_printIvalUnion() for initialized unions
1703         * src/pic16/main.c (_pic16_linkEdit): reorder linker arguments to make
1704             gplink guess the correct processor in more cases, applied patch
1705             from Till Riedel attached to and fixing bug #1436552
1706
1707 2006-02-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1708
1709         * support/regression/tests/array.c: added, contains check for #1434401
1710         * src/mcs51/peeph.def: disabled 186.d as temporary fix for #1434401
1711
1712 2006-02-16 Maarten Brock <sourceforge.brock AT dse.nl>
1713
1714         * device/include/mcs51/at89s8253.h: new, thanks to Krzysztof Polomka
1715         * device/include/mcs51/at89S8252.h: fixed, thanks to Krzysztof Polomka
1716         * device/include/mcs51/c8051f326.h,
1717         * device/include/mcs51/c8051f340.h: new SiLabs mcu's
1718         * device/include/mcs51/c8051f000.h,
1719         * device/include/mcs51/c8051f018.h,
1720         * device/include/mcs51/c8051f020.h: used () with __at, renamed IDLE,STOP to
1721           PCON_IDLE,PCON_STOP and added sfr16 definitions
1722
1723 2006-02-14 Maarten Brock <sourceforge.brock AT dse.nl>
1724
1725         * src/mcs51/gen.c (genPlus, genMinus, genMult, genGetAbit, genGetByte,
1726           genGetWord): fixed bug 1409955
1727
1728 2006-02-14 Maarten Brock <sourceforge.brock AT dse.nl>
1729
1730         * device/include/hc08/mc68hc908gp32.h,
1731         * device/include/hc08/mc68hc908jb8.h: removed AWUL, added PTA6 & PTA7
1732
1733 2006-02-13 Maarten Brock <sourceforge.brock AT dse.nl>
1734
1735         * src/SDCCast.c (constExprValue): return NULL if not a value
1736         * src/SDCCglue.c (printIvalArray): fixed bug 1225568
1737         * src/hc08/gen.c(genUnpackBits, genUnpackBitsImmed): fixed bug 1019480
1738         * support/regression/tests/bitfields.c: enabled signed bitfield for all
1739
1740 2006-02-13 Borut Razem <borut.razem AT siol.net>
1741
1742         * src/regression/ptrarg.c: added, fails due to bug #1430967
1743         * src/regression/Makefile: ptrarg.c added, ...
1744
1745 2006-02-12 Maarten Brock <sourceforge.brock AT dse.nl>
1746
1747         * src/z80/gen.c (genUnpackBits): fixed bug 1019480
1748         * support/regression/tests/bitfields.c: enabled signed bitfield for z80
1749
1750 2006-02-11 Borut Razem <borut.razem AT siol.net>
1751
1752         * src/SDCCmain.c: Added "sdcc: Calling linker..." if --verbose,
1753           print "Processor: xxx" message to stdout only if --verbose
1754
1755 2006-02-11 Maarten Brock <sourceforge.brock AT dse.nl>
1756
1757         * src/SDCCglue.c (printIvalStruct): fixed bug 1426356 union initializer
1758         * support/regression/tests/bug1426356.c: added
1759         * support/regression/tests/bitfields.c: removed 2 tests
1760
1761 2006-02-10 Maarten Brock <sourceforge.brock AT dse.nl>
1762
1763         * device/include/mcs51/at89c51snd1c.h: updated comments, see patch 1428901
1764         * device/include/mcs51/c8051f330.h,
1765         * device/include/mcs51/c8051f350.h: used () with __at, renamed IDLE,STOP to
1766           PCON_IDLE,PCON_STOP and added sfr16 definitions
1767         * device/lib/_divsint.c,
1768         * device/lib/_divuint.c,
1769         * device/lib/_divulong.c,
1770         * device/lib/_divulong.c: renamed a,b to x,y to avoid confusion, fixed
1771           register bank bug for small stackauto
1772
1773 2006-02-09 Maarten Brock <sourceforge.brock AT dse.nl>
1774
1775         * support/regression/fwk/lib/timeout.c: include <stdlib.h> for exit()
1776
1777 2006-02-08 Maarten Brock <sourceforge.brock AT dse.nl>
1778
1779         * support/regression/ports/mcs51-xstack-auto/spec.mk: forgot -I(...)/mcs51
1780         * all.dsp: corrected several bin paths
1781         * device/include/mcs51/c8051f120.h,
1782         * device/include/mcs51/c8051f300.h,
1783         * device/include/mcs51/c8051f310.h: used () with __at and renamed IDLE,STOP
1784           to PCON_IDLE,PCON_STOP
1785         * device/include/mcs51/c8051f320.h: see above, also added sfr16 definitions
1786         * device/lib/printf_large.c (output_float): fixed bug 1388703
1787         * support/regression/tests/bug1057979.c: added test for bug 1388703
1788
1789 2006-02-08 Raphael Neider <rneider AT web.de>
1790
1791         * src/pic/pcode.c (pciTRIS): fixed typo,
1792           (BuildFlow,LinkFlow_pCode): added (disabled) debug output,
1793           (LinkFlow): fixed handling of flows that end in a call,
1794           (ReuseReg): perform safety check earlier
1795         * src/pic/pcoderegs.c (pCodeRegMapLiveRangesInFlow): fixed
1796             to work with flows at the beginning of a pBlock,
1797             fixes #1426557 (Symbol not previously defined),
1798           (pic14_ReMapLiveRanges): NEW, destroy and rebuild register
1799             usage information
1800           (RemoveUnusedRegisters): update register usage info
1801         * src/pic/ralloc.c (newReg): prevent duplicate registers from being
1802             created, reuse existing ones instead
1803         * src/pic/gen.c (genPcall): fixed #1424719
1804
1805 2006-02-07 Bernhard Held <bernhard AT bernhardheld.de>
1806
1807         * link/z80/lkmain.c,
1808         * link/z80/lklex.c,
1809         * link/z80/lkdata.c,
1810         * link/z80/aslink.h: fixed build on current cygwin:
1811         replaced getline() by lk_getline()
1812
1813 2006-02-01 Borut Razem <borut.razem AT siol.net>
1814
1815         * src/regression/add.c, src/regression/add2.c, src/regression/add3.c,
1816           src/regression/add4.c, src/regression/and1.c, src/regression/and2.c,
1817           src/regression/arrays.c, src/regression/b.c, src/regression/bank1.c,
1818           src/regression/bool1.c, src/regression/bool2.c,
1819           src/regression/bool3.c, src/regression/call1.c,
1820           src/regression/compare.c, src/regression/compare10.c,
1821           src/regression/compare2.c, src/regression/compare3.c,
1822           src/regression/compare4.c, src/regression/compare5.c,
1823           src/regression/compare6.c, src/regression/compare7.c,
1824           src/regression/compare8.c, src/regression/compare9.c,
1825           src/regression/configword.c, src/regression/for.c,
1826           src/regression/inline.c, src/regression/mult1.c,
1827           src/regression/nestfor.c, src/regression/or1.c,
1828           src/regression/pointer1.c, src/regression/ptrfunc.c,
1829           src/regression/rotate1.c, src/regression/rotate2.c,
1830           src/regression/rotate3.c, src/regression/rotate4.c,
1831           src/regression/rotate5.c, src/regression/rotate6.c,
1832           src/regression/rotate7.c, src/regression/string1.c,
1833           src/regression/struct1.c, src/regression/sub.c,
1834           src/regression/sub2.c, src/regression/switch1.c,
1835           src/regression/while.c, src/regression/xor.c,
1836           src/regression/create_stc, src/regression/simulate,
1837           src/regression/rt.sh, src/regression/Makefile: reenabled Scott's PIC14
1838           regression tests
1839         * src/regression/gpsim_assert.h: added
1840
1841 2006-01-28 Bernhard Held <bernhard AT bernhardheld.de>
1842
1843         * src/ds390/gen.c (unsaveRegisters): fixed literal function pointer
1844         ((void (code *) (void)) 0) ();
1845         * as/hc08/aslex.c,
1846         * as/hc08/aslink.h,
1847         * as/hc08/asm.h,
1848         * as/hc08/asmain.c,
1849         * as/hc08/lkdata.c,
1850         * as/hc08/lklex.c,
1851         * as/hc08/lkmain.c,
1852         * as/mcs51/aslex.c,
1853         * as/mcs51/aslink.h,
1854         * as/mcs51/asm.h,
1855         * as/mcs51/asmain.c,
1856         * as/mcs51/lkdata.c,
1857         * as/mcs51/lklex.c,
1858         * as/mcs51/lkmain.c,
1859         * as/z80/aslex.c,
1860         * as/z80/asm.h,
1861         * as/z80/asmain.c: fixed build on current cygwin:
1862         replaced getline() by as_getline()
1863
1864 2006-01-27 Bernhard Held <bernhard AT bernhardheld.de>
1865
1866         * src/SDCC.y: fixed bug #716242, exchanged pointer and function
1867         declarator in the symbol chain
1868         * src/SDCCsymt.h,
1869         * src/SDCCsymt.c (processFuncPtrArgs): added, removes "(void)"
1870         parameter list for function pointers
1871         * src/SDCCast.c (decorateType): added call of processFuncPtrArgs()
1872         * support/regression/tests/bug-716242.c: added
1873
1874 2006-01-20 Bernhard Held <bernhard AT bernhardheld.de>
1875
1876         * src/SDCCicode.c (geniCodeAdd, geniCodeArray): use char for array
1877         offset if possible
1878         * src/SDCCast.c (getLeftResultType): 255 fits in char, not 256
1879
1880 2006-01-18 Bernhard Held <bernhard AT bernhardheld.de>
1881
1882         * src/SDCCast.c (backPatchLabels): fixed bug #1408066: made it
1883         inifinitely recurseable, added static
1884         * support/regression/tests/bug-1408066.c: added
1885
1886 2006-01-17 Bernhard Held <bernhard AT bernhardheld.de>
1887
1888         * src/SDCCicode.h,
1889         * src/SDCCicode.c (newiTempPreheaderLabel, newiTempLoopHeaderLabel):
1890         renamed, added possibility to create "postLoopLbl"-labels
1891         * src/SDCCBBlock.c (iCodeBreakDown): renamed newiTempPreheaderLabel to
1892         newiTempLoopHeaderLabel
1893         * src/SDCCloop.c (newInduction, newRegion, backEdges, insertIntoLoop,
1894         isNotInBlocks, addToExitsMarkDepth, createLoop, dominatedBy,
1895         addDefInExprs, assignmentsToSym, isOperandInvariant, pointerAssigned,
1896         hasNonPtrUse, loopInvariants, addressTaken, findInduction,
1897         findDefInRegion, mergeRegions, ifMerged, mergeInnerLoops): made static,
1898         (pinduction, pregion, hasIncomingDefs, findLoopEndSeq): disabled,
1899         (basicInduction): fixed bug #136564, made static,
1900         (loopInduction): changed parameter of basicInduction, made static,
1901         (addPostLoopBlock): added
1902         * src/SDCCloop.h: removed backEdges, pregion, pinduction,
1903         loopOptimizations, addressTaken, findDefInRegion, hasIncomingDefs,
1904         findLoopEndSeq
1905         * support/regression/tests/bug-136564.c: added
1906         * support/regression/ports/mcs51-xstack-auto/spec.mk: added
1907         --std-sdcc99 to LIBSDCCFLAGS
1908
1909 2006-01-16 Bernhard Held <bernhard AT bernhardheld.de>
1910
1911         * src/SDCCicode.c (geniCodeIfx): fix bug 1406131: always false
1912         while loop
1913         * support/regression/tests/bug-1406131.c: added
1914
1915 2005-12-31 Bernhard Held <bernhard AT bernhardheld.de>
1916
1917         * src/SDCCast.c (decorateType): fix promotion of unary minus
1918         * src/SDCCsymt.c (computeType): beautified
1919         * src/SDCCval.c (cheapestVal): beautified, old non-Ansi version removed,
1920         (valUnaryPM, valComplement): fix sign and promotion,
1921         (valNot): ANSI: result type is int (SDCC: unsigned char)
1922         * support/regression/tests/uminus.c: speedup by removing superflous
1923         test case 'int'
1924         * support/regression/tests/onebyte.c: added promotion and signedness
1925         tests for unary minus
1926         * support/regressions/tests/bug-477927.c: disable warning about
1927         uninitialized variables
1928         * support/regression/tests/not.c: added
1929
1930 2005-12-28 Bernhard Held <bernhard AT bernhardheld.de>
1931
1932         * device/lib/Makefile.in: added --std-sdcc99 to CFLAGS
1933         * src/mcs51/gen.c (gen51Code): show final register usage after
1934         fillGaps in asm with --i-code-in-asm
1935         * src/SDCClrange.c (sequenceiCode, setLiveFrom, setLiveTo,
1936         markLiveRanges, markAlive, findNextUseSym, findNextUse, unvisitBlocks,
1937         incUsed, rliveClear, adjustIChain): made static,
1938         (setFromRange): excluded because it's unused,
1939         (findPrevUseSym, markWholeLoop): added,
1940         (findPrevUse): rewritten; fixes bug 895992; now a complete search
1941         through all branches of predecessors enables sdcc to emit the warning
1942         W_LOCAL_NOINIT, marking of outermost loop was incomplete,
1943         (rlivePoint): made static, added parameter emitWarnings which is only
1944         true during the first run out of two,
1945         (findRecursiveSucc, findRecursivePred): removed,
1946         (computeLiveRanges): made static, added parameter emitWarnings,
1947         (dumpIcRlive): added for debugging only
1948         * src/SDCClrange.h: added boolean parameter to computeLiveRanges(),
1949         removed prototype of setFromRange()
1950         * src/SDCCopt.c (eBBlockFromiCode): added new parameter emitWarnings
1951         in call of computeLiveRanges()
1952         * support/regression/tests/bug-895992.c: added
1953         * support/regression/tests/bug-971834.c: added
1954         * support/valdiag/tests/bug-895992.c: added
1955         * support/valdiag/tests/bug-971834.c: added
1956
1957 2005-12-18 Raphael Neider <rneider AT web.de>
1958
1959         * src/pic16/gen.c: added IS_DIRECT macro for "direct" operands,
1960           (genUnpackBits): improved code for direct operands,
1961           (genPackBits): improved code for literal assignment to bitfields
1962             and for direct destination operands (no FSR indirection),
1963             prevented redundant AND, fixes #1362800,
1964           (AccLsh): added parameter to disable masking of the result
1965         * src/pic16/pcode.c (pic16_safepCodeUnlink): fixed to work with
1966           skip instructions with side-effects (like incfsz),
1967           (pic16_pCodeIsAlive): suppress verbose output unless pcode_verbose,
1968         * src/pic16/pcoderegs.c (RemoveRegsFromSet): removed annoying warning
1969         * device/lib/pic16/Makefile.common.in: added --asm=@GPASM@ to CC,
1970           fixes #1375263
1971
1972 2005-12-11 Bernhard Held <bernhard AT bernhardheld.de>
1973
1974         * src/SDCCicode.c (geniCodeAssign): fixed bug 11369874, don't use
1975         volatile variables as spill location
1976
1977 2005-12-10 Bernhard Held <bernhard AT bernhardheld.de>
1978
1979         * src/SDCCcse.c (findCheaperOp): fixed bug 1376320, copy signedness to
1980         replacing literals
1981         * support/regression/tests/bug-1376320.c: added
1982
1983 2005-12-08 Raphael Neider <rneider AT web.de>
1984
1985         * src/pic/device.c: renamed is_shared to pic14_is_shared
1986         * src/pic/gen.c (genIfx): re-enabled handling of sbits
1987         * src/pic/glue.c (emitSymbolToFile): added workaround for sbits,
1988           (is_valid_identifier): added for above workaround
1989
1990 2005-12-07 Maarten Brock <sourceforge.brock AT dse.nl>
1991
1992         * device/lib/Makefile.in: fixed to enable port-specific-objects
1993         * device/lib/ds390/i2c390.c (BitOutI2C): optimized by making bout unsigned
1994           char, thanks Hubert Sack
1995         * doc/sdccman.lyx: documented --xstack-loc,
1996           elaborated a bit more on interrupts and pitfalls,
1997           removed "setjmp/longjmp unsupported",
1998           documented some unsupported C99 features
1999         * src/SDCCmain.c (linkEdit): adapted default lib path for --stack-auto
2000         * src/SDCCpeeph.c (readRules): inserted patch 1367130 for finding missing
2001           if, thanks Hubert Sack
2002         * src/mcs51/gen.c (genEndFunction): enabled "pop psw" for regbank 0 isr
2003         * support/regression/Makefile.in: test-mcs51-stack-auto no longer needs to
2004           make make_library
2005         * support/regression/get_ticks.py: new, get cpu cycles and code size, so
2006           regression tests can report resource usage (rfe 700441)
2007         * support/regression/collate-results.py: report resource usage
2008         * support/regression/ports/ds390/spec.mk,
2009         * support/regression/ports/hc08/spec.mk,
2010         * support/regression/ports/mcs51/spec.mk,
2011         * support/regression/ports/ucz80/spec.mk: run sim output through get_ticks
2012         * support/regression/ports/ds390/uCsim.cmd,
2013         * support/regression/ports/hc08/uCsim.cmd,
2014         * support/regression/ports/mcs51/uCsim.cmd,
2015         * support/regression/ports/ucz80/uCsim.cmd: inserted "state" to report time
2016         * support/regression/ports/mcs51-stack-auto/spec.mk: no need to build the
2017           library, use the default one
2018         * support/regression/ports/mcs51-xstack-auto/spec.mk: inserted rules for
2019           building the library
2020
2021 2005-12-06 Maarten Brock <sourceforge.brock AT dse.nl>
2022
2023         * config.dsp: added dependency on .version and configure_vc.awk
2024         * device/include/setjmp.h: updated for --stack-auto and --xstack
2025         * device/include/mcs51/at89c51snd1c.h: corrected line endings
2026         * device/include/mcs51/XC866.h: added, thanks Llewellyn van Zyl
2027         * device/lib/_setjmp.c: updated for --stack-auto and --xstack
2028         * device/lib/libsdcc.lib: added _setjmp
2029         * src/SDCCast.c (createIvalCharPtr): fixed warnings,
2030           (decorateType): fixed bug 1372851,
2031           (optimizeGetHbit): fixed warning
2032         * src/SDCCglue.c (printIvalChar, printIvalArray): adapted for flexible
2033           array initialisation
2034         * support/regression/tests/bug1057979.c: added test for bug 1358192
2035         * support/regression/tests/setjmp.c: added, test for setjmp/longjmp
2036
2037 2005-12-03 Borut Razem <borut.razem AT siol.net>
2038
2039         * support/scripts/sdcc.nsi: added /SOLID option to "SetCompressor lzma"
2040           command since the NSIS was upgraded to version 2.11 on CF x86-linux2
2041
2042 2005-11-29 Bernhard Held <bernhard AT bernhardheld.de>
2043
2044         * src/SDCCast.c (createIvalStruct, createIvalArray, createIvalPtr,
2045         createIval): implement symbol independant "flexible array member",
2046         (createIvalCharPtr): implemented flexible array initialisation with a
2047         string
2048         * src/SDCCsymt.c (copyStruct): removed,
2049         (getSize): fixed misleading comment,
2050         (getAllocSize): removed, the additional allocation size is now in
2051         sym->flexArrayLength,
2052         (checkStructFlexArray): new, syntax checks for flexible array members,
2053         (compStructSize): added syntax checks for "flexible array members"
2054         (copyStruct): removed,
2055         (copyLinkChain): removed inefficient fix for bug 770487
2056         * src/SDCCglue.c (emitRegularMap): getAllocSize has been removed
2057         * src/SDCCsymt.h: added structdef.b_flexArrayMember and
2058         symbol->flexArrayLength
2059         * src/SDCCerr.c,
2060         * src/SDCCerr.h: added W_INVALID_FLEXARRAY, W_C89_NO_FLEXARRAY,
2061         E_FLEXARRAY_NOTATEND and E_FLEXARRAY_INEMPTYSTRCT
2062         * support/regression/tests/structflexarray.c: added
2063         * support/valdiag/tests/structflexiblearray.c: added
2064
2065 2005-11-29 Bernhard Held <bernhard AT bernhardheld.de>
2066
2067         * src/SDCCast.c (decorateType): fixed bug 1368489
2068         * support/Util/SDCCerr.c,
2069         * support/Util/SDCCerr.h: added warning W_CMP_SU_CHAR
2070
2071 2005-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2072
2073         * device/include/mcs51/at89c51snd1c.h: added file submitted by
2074           Weston T. Schmidt <schmidtw AT users.sourceforge.net>, patch #1368001
2075
2076 2005-11-27 Borut Razem <borut.razem AT siol.net>
2077
2078         * support/cpp2/cppinit.c, support/cpp2/cpplib.h, support/cpp2/mkdeps.c,
2079           support/cpp2/mkdeps.h: added command line option
2080           -obj-ext=<extension> to SDCPP to define object file externion, used
2081           for generation of make dependencies (-M)
2082         * src/SDCCmain.c: pass -obj-ext=<extension> to SDCPP
2083
2084 2005-11-26 Borut Razem <borut.razem AT siol.net>
2085
2086         * support/scripts/sdcc.nsi: added small-stack-auto libraries,
2087           added missing device/lib/mcs51/crt*.asm, pic and pic16 sources,
2088           added pic and pic16 libraries
2089
2090 2005-11-26 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2091
2092         * device/include/float.h: Corrected typo in prototype of __fsgt
2093
2094 2005-11-25 Borut Razem <borut.razem AT siol.net>
2095
2096         * sdcc/device/lib/Makefile.in, sdcc/device/lib/incl.mk:
2097           added creation of model-mcs51-stack-auto libraries
2098
2099 2005-11-24 Bernhard Held <bernhard AT bernhardheld.de>
2100
2101         * src/SDCCsymt.c (copyLinkChain): fixed bug 770487, copy structdef
2102         and fields-list too
2103         * src/SDCCast.c (createIvalArray): removed obsolete comment
2104
2105 2005-11-24 Borut Razem <borut.razem AT siol.net>
2106
2107         * sdcc/device/lib/Makefile.in: remove all unnecessary files, 2nd try...,
2108           added missing device/lib/mcs51/crt*.asm sources
2109
2110 2005-11-23 Bernhard Held <bernhard AT bernhardheld.de>
2111
2112         * src/SDCCast.c (createIvalCharPtr): fixed bug 1348271
2113
2114 2005-11-22 Maarten Brock <sourceforge.brock AT dse.nl>
2115
2116         * device/lib/_fs2schar.c,
2117         * device/lib/_fs2sint.c,
2118         * device/lib/_fs2slong.c: optimized inline asm
2119
2120 2005-11-21 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2121
2122         * device/lib/_fs2slong.c, device/lib/_fs2sint.c, device/lib/_fs2char.c:
2123           Better handling of floats between -1.0 and 0.0.
2124
2125 2005-11-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2126
2127         * src/mcs51/peeph.def: added missing "if"s as noted by Hubert Sack.
2128           (the missing "if"s prohibited removal of redundant labels)
2129
2130 2005-11-19 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2131
2132         * device/lib/_fs2slong.c, device/lib/_fs2sint.c, device/lib/_fs2char.c:
2133           Properly convert floats between -1.0 and 0.0 to long, int, and char
2134           types (max integer value of negative floats tends to zero).
2135         * device/lib/modff.c, device/lib/ceilf.c, device/lib/floorf.c:
2136           Removed changes made so to work properly with floats between
2137           -1.0 and 0.0, as the problem is fixed in _fs2slong.c, _fs2sint.c,
2138           and _fs2char.c
2139
2140 2005-11-18 Bernhard Held <bernhard AT bernhardheld.de>
2141
2142         * src/SDCCcse.c (ReplaceOpWithCheaperOp): minor fix for debugging only
2143         * src/mcs51/gen.c (genUnpackBits): better code and a fix,
2144         (genCast) cosmetic change
2145         * src/ds390/gen.c (genUnpackBits, ): ported from mcs51
2146         * src/ds390/ralloc.c (packRegsForAssign): ported fix for bitfields
2147         from mcs51
2148         * support/regression/tests/bitfields (testSignedBitfields): added
2149
2150 2005-11-18 Borut Razem <borut.razem AT siol.net>
2151
2152         * sdcc/device/lib/Makefile.in: remove all unnecessary files
2153         * device/lib/pic/Makefile.rules, device/lib/pic16/Makefile.subdir:
2154           introduced SILENT option to make building of pic16 libraries less
2155
2156 2005-11-18 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2157
2158         * device/lib/modff.c, device/lib/ceilf.c, device/lib/floorf.c:
2159           Now they work properly with floats between -1.0 and 0.0
2160         * device/lib/printf_large.c: Removed temporary patch for bug 1358192
2161
2162 2005-11-18 Maarten Brock <sourceforge.brock AT dse.nl>
2163
2164         * src/SDCCicode.c (printOperand): added missing else
2165
2166 2005-11-18 Bernhard Held <bernhard AT bernhardheld.de>
2167
2168         * src/SDCCsymt.c (computeType): fixed bug 1358192: added missing else,
2169         reformatted for better readability
2170         * src/mcs51/gen.c (genUnpackBits): initial, incomplete support for
2171         signed bitfields
2172
2173 2005-11-17 Borut Razem <borut.razem AT siol.net>
2174
2175         * device/lib/pic16/Makefile.rules, device/lib/pic16/Makefile.subdir:
2176           introduced SILENT option to make building of pic16 libraries less
2177           verbose - used for nightly snapshot build
2178         * doc/sdccman.lyx: documented that SDCDB and ucSim are currently not
2179           available on Win32 platforms.
2180         * sdcc/device/lib/Makefile.in: added library sources for mcs51, small,
2181           medium, large, pic and pic16
2182
2183 2005-11-16 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2184
2185         * device/lib/printf_large.c: Temporary patch for bug 1358192:
2186           printf("%f"...) sets fraction to zero.
2187
2188 2005-11-16 Raphael Neider <rneider AT web.de>
2189
2190         * src/pic/pcode.c (LinkFlow): handle empty flows correctly,
2191           fixes #1357221
2192         * src/pic/gen.c (genIfx): implemented for CARRY bit
2193         * src/pic16/gen.c (genAssign,genCast): fixed assigning/casting
2194           to generic pointers, fixes #1357332,
2195           (pic16_movLit2f): NEW,
2196           (pic16_storeForReturn,genDataPointerSet): use pic16_movLit2f
2197
2198 2005-11-14 Maarten Brock <sourceforge.brock AT dse.nl>
2199
2200         * src/SDCCmain.c (parseCmdLine): fixed bug 1356800, thanks rsudjian
2201
2202 2005-11-11 Raphael Neider <rneider AT web.de>
2203
2204         * src/pic/gen.c: handle FPOINTERS like POINTERS everywhere
2205         * src/pic16/gen.c (pic16_derefPtr): now works for non-pointers as well,
2206           compute pointer's type from operand,
2207           (genUnpackBits,genPackBits): handle FPOINTERS correctly, re-indented,
2208           improved single bit reads, fixes bug #1353379
2209
2210 2005-11-09 Borut Razem <borut.razem AT siol.net>
2211
2212         * support/scripts/sdcc.nsi: added lib/pic to the package
2213
2214 2005-11-08 Maarten Brock <sourceforge.brock AT dse.nl>
2215
2216         * src/SDCCval.c (valUnaryPM): fixed bug 1350699
2217
2218 2005-11-06 Maarten Brock <sourceforge.brock AT dse.nl>
2219
2220         * support/regression/tests/bug1348008.c: added
2221         * src/mcs51/gen.c (saveRBank, unsaveRBank): fixed bug 1348008
2222         * support/regression/tests/bug1337835.c: updated comment
2223
2224 2005-11-06 Borut Razem <borut.razem AT siol.net>
2225
2226         * sim/ucsim/error.cc, sim/ucsim/errorcl.h,
2227           sim/ucsim/sim.src/stack.cc, sim/ucsim/sim.src/stackcl.h,
2228           sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
2229           sim/ucsim/sim.src/mem.cc, sim/ucsim/sim.src/memcl.h,
2230           sim/ucsim/cmd.src/set.cc, sim/ucsim/cmd.src/show.cc:
2231           dynamic construction of cl_error_class and derivates - 2.nd try
2232
2233 2005-11-05 Borut Razem <borut.razem AT siol.net>
2234
2235         * sim/ucsim/sim.src/error.cc: fixed uninitialized class member variable
2236           bug, which caused Bus Errors on sparc solaris
2237
2238 2005-11-04 Borut Razem <borut.razem AT siol.net>
2239
2240         * sim/ucsim/error.cc, sim/ucsim/errorcl.h,
2241           sim/ucsim/sim.src/stack.cc, sim/ucsim/sim.src/stackcl.h,
2242           sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
2243           sim/ucsim/sim.src/mem.cc, sim/ucsim/sim.src/memcl.h,
2244           sim/ucsim/cmd.src/cmdconf.cc: dynamic construction of cl_error_class
2245           and derivates to resolve the initialization problem on OSX
2246
2247 2005-11-02 Borut Razem <borut.razem AT siol.net>
2248
2249         * sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/newcmd.cc:
2250           corrected typo - #include <winsock2.h>
2251
2252 2005-11-02 Maarten Brock <sourceforge.brock AT dse.nl>
2253
2254         * src/asm.c (printILine): always close tmpFile, thanks Beau E. Cox,
2255           (_asxxxx_mapping): added org directive for future enhancements
2256
2257 2005-11-01 Borut Razem <borut.razem AT siol.net>
2258
2259         * sim/ucsim/app.cc, sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/newcmd.cc:
2260           enabled sockets on WIN32
2261         * sim/ucsim/cmd.src/newcmd.cc: fixed bug with uninitialized variables
2262
2263 2005-10-31 Borut Razem <borut.razem AT siol.net>
2264
2265         * support/regression/generate-cases.py: escape backslashes in {testcase}:
2266           WIN32 backslash path delimiters should be escaped when used in C strings
2267         * support/regression/tests/bitfields.c: exclude failing assertions for
2268           __CYGWIN32__ and __MINGW32__ hosts
2269
2270 2005-10-30 Borut Razem <borut.razem AT siol.net>
2271
2272         * src/SDCCutil.c: corrected double comparison typo
2273
2274 2005-10-30 Maarten Brock <sourceforge.brock AT dse.nl>
2275
2276         * device/lib/medium/Makefile: added for new memory model medium
2277         * device/include/asm/mcs51/features.h: updated for medium/pdata
2278         * device/include/mcs51/c8051f120.h: added sfr16/sfr32 definitions,
2279           added Multiply & Accumulate sbit's and MAC0_PAGE define
2280         * device/include/mcs51/c8051f300.h: added sfr16 definitions
2281         * device/include/mcs51/c8051f310.h: added sfr16 definitions
2282         * device/lib/_mullong.c: update for medium model
2283         * device/lib/incl.mk: added medium model
2284         * doc/sdccman.lyx: documented medium model
2285         * src/SDCCast.c (isBitAndPow2): simplified using updated powof2
2286         * src/SDCCicode.c (geniCodeMultiply, geniCodeDivision): use updated powof2
2287         * src/SDCCmain.c (optionsTable, linkEdit): enabled medium model
2288         * src/SDCCmem.c (allocIntoSeg): set iaccess for pdata symbols,
2289           (allocParms): set SCLS and OCLS to pdata for medium model
2290         * src/SDCCsymt.c (processFuncArgs): use default_local_map and set iaccess
2291           for pdata,
2292           (powof2): return <0 if not power of 2
2293         * src/avr/gen.c (genBitWise): use updated powof2
2294         * src/mcs51/gen.c (genMinusDec): use acc if necessary,
2295           (shiftR2Left2Result): small optimization in setup, save acc when storing,
2296           (shiftLLeftOrResult): use B if necessary
2297         * src/mcs51/main.c (_mcs51_finaliseOptions, mcs51_port): added medium model
2298         * src/mcs51/peeph.def: renamed 226 to 226.b, added 226.a
2299         * src/pic/main.c (_pic14_do_link): made void parameter list explicit
2300         * support/regression/Makefile.in: added test-mcs51-medium
2301         * support/regression/ports/mcs51-medium/spec.mk: added to test medium model
2302
2303 2005-10-28 Bernhard Held <bernhard AT bernhardheld.de>
2304
2305         * src/SDCCsymt.c (compStructSize): make bitfields without (un)signed
2306         specifier unsigned
2307         * device/lib/time.c (mktime): fixed bug 1334315
2308
2309 2005-10-28 Raphael Neider <rneider AT web.de>
2310
2311         * device/include/pic/p16f_common.inc: added common declarations
2312         * src/pic/ralloc.c (initStack): moved regs *r to block start for Alpha
2313
2314 2005-10-27 Maarten Brock <sourceforge.brock AT dse.nl>
2315
2316         * src/mcs51/gen.c (getTempRegs): return 0 if not enough registers found,
2317           (aopPutUsesAcc): added to predict accumulator use,
2318           (assignResultValue): save acc if necessary,
2319           (genMinusDec): store result if indirectly addressed,
2320           (genDivOneByte):  save acc if necessary,
2321           (movLeft2Result): bugfix if left already in acc,
2322           (genAnd, genOr, genXor, shiftL2Left2Result, shiftR2Left2Result): pay more
2323             attention to accumulator use (esp. pdata),
2324           (genReceive): receive pdata correctly
2325         * src/SDCCicode.c (isOperandInPagedSpace): added to detect pdata operands
2326         * src/SDCCicode.h: added isOperandInPagedSpace prototype
2327
2328 2005-10-27 Raphael Neider <rneider AT web.de>
2329
2330         * doc/sdccman.lyx: corrected version (should be 2.5.4 not 2.5.5)
2331
2332 2005-10-27 Raphael Neider <rneider AT web.de>
2333
2334         * .version: changed version to 2.5.4
2335         * doc/sdccman.lyx: changed version to 2.5.4, added some remarks to PIC14
2336         * device/lib/pic/libsdcc/{_mulint.c,_mullong.c}: use unsigned literals,
2337           (_divschar.c,divuchar.c,_mulchar.c,_modschar.c,_moduchar): NEW,
2338             arithmetics support routines
2339         * device/lib/pic/Makefile.rules: have assembler sources preprocessed
2340         * device/lib/Makefile.in: also create installdir for pic
2341
2342         * src/SDCCopt.c (cnvToFcall): mark support routines `extern' for
2343           pic14 port as well
2344         * src/pic/device.c (dump_sfr): rewritten to delegate register
2345           placement to the linker (use `extern sym' rather than sym EQU addr),
2346           (validAddress): fixed to check last specified address
2347         * src/pic/gen.c (aopForSym): added code to deal with array (useless?),
2348           (popGetLit): truncate literal value to 8 bit,
2349           (popGet): moved assert to more appropriate place
2350           (popGetExternal): create pCode operand from and mark the according
2351             symbol as being `extern'
2352           (popGetAddr): added sanity check on immediate's offset, provide
2353             GPOINTER tag on demand
2354           (aopPut): fixed for immediates,
2355           (mov2w_op): move operand's address or contents to WREG (depending on
2356             operand type), safer variant of mov2w,
2357           (movwf,call_libraryfunc): NEW, handy abbreviations,
2358           (get_argument_pcop,get_return_val_pcop,pass_argument,
2359           get_returnvalue): interface for accessing function parameters and
2360             return values,
2361           (assignResultValuei,genRet): use new parameter/return value interface
2362           (pic14_getDataSize): back to old version handling generic pointers,
2363           (pic14_toBoolean,genNot,genCpl,genCmpEq,genOrOp): heavily rewritten,
2364             provided implementation and/or fixed old one,
2365           (genMultOneByte,genDivOneByte,genModOneByte): implemented as library
2366             calls, removed legacy 8051 reference code
2367           (AccLsh,AccRsh): rewritten and fixed to deal with signed operands
2368           (loadSignToC): NEW, move the operands sign bit to CARRY,
2369           (genGenericShift): NEW, replaces genLeftShift, genRightShift and
2370             genRightShiftSigned, accepts negative shift counts,
2371           (setup_fsr): load FSR and adjust IRP (indirect memory access),
2372           (emitPtrByteGet,emitPtrByteSet): rewritten, now works with
2373             generic pointers, __data pointers and __code pointers,
2374           (genUnpackBits,genPackBits): rewritten to work with generic pointers
2375             and signed bitfields, limit bitfields to 8 bit,
2376           (genDataPointerGet): fixed number of bytes read,
2377           (genGenPointerGet,genConstPointerGet): fixed bitfield access,
2378           (genPointerGet,genPointerSet): fixed handling of __code pointers,
2379             pointers to constant data are no longer assumed to point to __code
2380             space, removed invalid pointer types,
2381           (bitpatternFromVal): retrieve the PICs representation of an integer
2382             or float literal,
2383           (genDataPointerSet): fixed assigning to po_immediate operands,
2384           (genGenPointerSet): implemented as library call,
2385           (genIfx): fixed incorrect condition,
2386           (genAddrOf): limit generic pointers' addresses to 2 bytes,
2387             provide GPOINTER tag according to destination's storage class,
2388           (genCast): added code to handle casting to generic pointers, added
2389             sign-/zero extension of the result
2390           (aop_isLitLike,op_isLitLike): fixed handling of immediates
2391         * src/pic/gen.h: added macros to access IRP bit in STATUS register
2392         * src/pic/genarith.c (genAddLit): use min(result's,left's) size, sign
2393           extend the result
2394         * src/pic/glue.c (is_shared_address,is_shared): check whether a given
2395           address/register resides in the shared banks
2396           (emitSymbolToFile): improved to handle global and `pinned' symbols,
2397             put all variables into separate sections (have the linker arrange
2398             them)
2399           (picglue): put init code and interrupt handlers in separate sections
2400         * src/pic/main.c: added port specific options table, modified to PORT
2401           structure to make GPOINTERs 3 byte, added pic14_options
2402           (_pic14_do_link): private linking routine (update paths to libraries,
2403             add libsdcc.lib by default)
2404         * src/pic/main.h: declare pic14_options
2405         * src/pic/pcode.c: fixed instructions i/o relations,
2406           (RegCond): reverted to correct version,
2407           (newpCodeOpLit): truncate literals to 8 bit,
2408           (genericPrint): added debug output,
2409           (getRegFromInstruction): fixed for various operand types, simplified
2410           (BuildFlow): fixed broken handling of isntructions with labels
2411           (LinkFlow): start at last instruction in flow (skip trailing comments),
2412             pass the flow on to the next instruction after CALL
2413           (pCodeReplace): NEW, replace a pCode and move meta data to the new one
2414           (insertPCodeInstruction): fixed inserting after a skip instruction,
2415           (DoBankSelect): fixed for labeled instructions
2416           (OptimizepBlock): honor --nopeep switch
2417           (AnalyzeFlow,ReuseReg): prevent crash on source files with no function
2418         * src/pic/pcodepeep.c (pCodePeepMatchRule): prevent NULL pointer accesses
2419         * src/pic/pcoderegs.c (regIsLocal): NEW, check visibility of a register
2420           (pCodeOptime2pCodes): allow disabling this optimization via
2421             --no-pcode-opt due seldomly occuring bugs, fixed some conditions
2422             but is still buggy), started implementation of a dataflow based
2423             pCode optimization (CSE + dead code elimination)
2424           (pCodeRegMapLiveRangesInFlow): removed bogus inCond
2425         * src/pic/ralloc.c (initStack): renamed stack registers to STK%d, the new
2426           names are independant of the stack location and therefore portable across
2427           devices
2428
2429 2005-10-27 Maarten Brock <sourceforge.brock AT dse.nl>
2430
2431         * src/mcs51/ralloc.c (bitType): added to detect bit variables,
2432           (selectSpil): fixed bug 1337835 by not spilling bit variables
2433         * support/regression/tests/bug1337835.c: added test for this bug
2434         * src/mcs51/peeph.def: restart after rule 3.c,
2435           addded rules 263.x to optimize loading constants
2436
2437 2005-10-26 Raphael Neider <rneider AT web.de>
2438
2439         * src/SDCCsymt.c (compStructSize): allow signed bitfields for PIC ports
2440         * src/pic16/gen.c (genUnpackBits): support signed bitfields,
2441           (genAssign): emit warning when casting literals to generic pointer
2442             type, also applies when taking the address of a fixed variable,
2443           (genCast): improved casting to generic pointers
2444         * src/pic16/glue.c (pic16emitStaticSeg): fixed(?) handling of fixed
2445           extern variables, added verbose error message
2446         * device/include/pic16/{string.h,errno.h}: added #pragma library c
2447
2448 2005-10-26 Bernhard Held <bernhard AT bernhardheld.de>
2449
2450         * src/mcs51/gen.c (genMinus): fixed bug 1270906: reverse subtraction,
2451         carry must be complemented too
2452         * src/mcs51/peeph.def: addded rule 262 to remove double cpl c, which
2453         could be emitted by genMinus
2454         * src/SDCCval.c (constVal): fixed bug 1305065
2455
2456 2005-10-25 Bernhard Held <bernhard AT bernhardheld.de>
2457
2458         * src/SDCCast.c (addCast): added promotion for bit variables
2459         (decorateType): emit W_COMPLEMENT before the problem vanishes behind
2460         promotion casts + optimisation
2461         (optimizeGetWord): fix warning 'i' might be used uninitialized
2462         * src/mcs51/gen.c (genCpl): removed W_COMPLEMENT
2463         * src/ds390/gen.c (genCpl): removed W_COMPLEMENT
2464
2465 2005-10-24 Bernhard Held <bernhard AT bernhardheld.de>
2466
2467         * src/SDCCicode.c (ast2iCode): reverted to 1.224 because of regression:
2468         all chars are promoted to int; promotion should be handled in SDCCast.c
2469
2470 2005-10-15 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2471
2472         * device/lib/_strcmp.c: Fixed bug 1326457
2473
2474 2005-10-11 Raphael Neider <rneider AT web.de>
2475
2476         * device/lib/pic16/libio/i2c.ignore: added 1320, fixes broken builds
2477         * device/lib/pic16/libdev/pic18f1320.c: added 1320's device library
2478
2479 2005-10-05 Maarten Brock <sourceforge.brock AT dse.nl>
2480
2481         * src/SDCC.y (AT): fixed bug with sfr32 addresses when built with GCC
2482         * support/regression/tests/sfr16.c: added test for the sfr32 bug
2483
2484 2005-10-04 Raphael Neider <rneider AT web.de>
2485
2486         * device/include/pic16/pic18fregs.h, src/pic16/devices.inc,
2487           device/lib/pic16/pics.all: added pic18f1320
2488         * src/pic16/pcode.c (mnem2key): fixed prototype's argument mismatch
2489
2490 2005-09-30 Raphael Neider <rneider AT web.de>
2491
2492         * src/pic16/device.c (Pics16[]): moved device descriptions to devices.inc
2493         * src/pic16/devices.inc: NEW, provides device descriptions
2494         * src/pic16/gen.c (genInline): fixed handling of ';'-comments
2495
2496 2005-09-26 Maarten Brock <sourceforge.brock AT dse.nl>
2497
2498         * src/SDCCicode.c (operandOperation): added GETABIT, GETBYTE, GETWORD and
2499           GETHBIT
2500
2501 2005-09-25 Maarten Brock <sourceforge.brock AT dse.nl>
2502
2503         * doc/sdccman.lyx: updated Highest Order Bit documentation,
2504           documented Any Order Bit, Higher Order Byte and Higher Order Word
2505         * src/SDCC.y: added tokens GETABIT, GETBYTE, GETWORD
2506         * src/SDCCast.c (optimizeGetHbit): updated to also accept bool=expr&(1<<n),
2507           (optimizeGetAbit): new, to get any bit, not only the high bit,
2508           (optimizeGetByte): new, to get a byte from a (long) int: expr>>(8*n),
2509           (optimizeGetWord): new, to get a word from a long int: expr>>(8*n),
2510           (isConformingBody): also check GETABIT, GETBYTE, GETWORD,
2511           (decorateType): '&': also try GETABIT, GETBYTE, GETWORD optimization,
2512             RIGHT_OP: also try GETBYTE, GETWORD optimization,
2513             GETABIT, GETBYTE, GETWORD: decorate them,
2514           (isShiftRightLitVal, isBitAndPowOf2): new helper functions,
2515           (ast_print): added GETABIT, GETBYTE, GETWORD
2516         * src/SDCCcse.c (isSignedOp): added GETABIT, GETBYTE, GETWORD
2517         * src/SDCCicode.c (codeTable): added GETABIT, GETBYTE, GETWORD,
2518           (geniCodeBinary): new generic binary icode,
2519           (ast2iCode): added GETABIT, GETBYTE, GETWORD
2520         * src/port.h: updated comment for PORT.hasExtBitOp
2521         * src/mcs51/gen.c (genGetAbit): new, to get any single bit,
2522           (genGetByte): new, to get a single byte,
2523           (genGetWord): new, to get a word from a long,
2524           (gen51Code): added GETABIT, GETBYTE, GETWORD
2525         * src/mcs51/main.c (hasExtBitOp): added GETABIT, GETBYTE, GETWORD
2526
2527 2005-09-23 Raphael Neider <rneider AT web.de>
2528
2529         * configure.in, configure: have device/lib/pic configured
2530         * device/lib/Makefile.in: added model-pic14
2531         * device/lib/clean.mk: added pic/ to clean rule
2532         * device/lib/pic: added rudimentary pic14 library providing support
2533           functions for multiplication/division/generic pointer access
2534         * src/SDCCopt.c (convilong): mark support functions as extern
2535           for pic14 port as well
2536         * src/pic/gen.c (genMult): added assertions,
2537           (genpic14Code): emit warning on unhandled iCodes
2538         * src/pic/main.c (_hasNativeMulFor): return true only for 8x8 bit
2539         * src/pic/pcode.c (pCodeOpCopy),
2540         * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): fixed handling of various
2541           pCodeOpReg-subtypes (PO_{STATUS,INTCON,PCL,PCLATH,PCLATU,BSR,
2542           SFR_REGISTER}), made safe for future extensions
2543         * src/pic16/pcode.c (pic16_safepCodeUnlink): allow for removal of
2544           instructions even if preceeded by SKIP instructions (also remove
2545           them); removed unused code
2546         * src/pic16/pcode.h: added arg2 to pCodeOpLit to match pCodeOpLit2,
2547           prevents leaving parts of the structure uninitialized after copying
2548
2549 2005-09-22 Maarten Brock <sourceforge.brock AT dse.nl>
2550
2551         * src/mcs51/gen.c (genMinus): fix for undetected bug introduced 3 months
2552           ago by me
2553         * support/regression/tests/addsub.c: added test for the bug
2554
2555 2005-09-21 Raphael Neider <rneider AT web.de>
2556
2557         * device/include/pic16/pic18f1220.h,
2558           device/lib/pic16/libdev/pic18f1220.c: added ECCPAS sfr and bitfield
2559         * device/lib/pic16/Makefile.rules: added missing opening paren
2560         * src/pic16/gen.c (pic16_genNot,pic16_genCpl): removed as these
2561           are provided in genutils.c,
2562           (genUminusFloat,genUminus,genCmpEq): added asserts on different
2563           operand/result sizes,
2564           (genCmp): assert on NULL pointers first, then check deref'ed values
2565         * src/pic16/genutils.c (pic16_genCpl): fixed for different operand/
2566           result size
2567
2568 2005-09-18 Raphael Neider <rneider AT web.de>
2569
2570         * src/pic16/gen.c (genFarPointerGet,genFarPointerSet): removed
2571           as these are now unused,
2572           (genPointerGet,genPointerSet): handle FPOINTERs like POINTERs
2573         * src/pic16/pcode.c (pic16_symIsSpecial): assume REG_TMPs to be
2574           local, avoids uninitialized pointer dereference on r->name
2575         * src/pic16/ralloc.c (newReg): fixed indentation
2576
2577 2005-09-13 Maarten Brock <sourceforge.brock AT dse.nl>
2578
2579         * src/SDCCval.c (constVal): fixed bug 730366
2580         * support/Util/SDCCerr.c,
2581         * support/Util/SDCCerr.h: added warning W_INVALID_INT_CONST
2582
2583 2005-09-10 Maarten Brock <sourceforge.brock AT dse.nl>
2584
2585         * as/mcs51/lkmem.c (summary2): fixed report for absolute areas (bug 1210220)
2586
2587 2005-09-09 Maarten Brock <sourceforge.brock AT dse.nl>
2588
2589         * src/mcs51/peeph.def (241.x): fixed bug when comparing generic pointers
2590
2591 2005-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
2592
2593         * as/hc08/lkaomf51.c (OutputName): made name unsigned char,
2594           (hex2dec): made hex_digit unsigned char, removed ascii dependance
2595         * as/mcs51/lkaomf51.c (OutputName): made name unsigned char,
2596           (hex2dec): made hex_digit unsigned char, removed ascii dependance
2597         * as/mcs51/lkarea.c (lnkarea2): sort absolute areas to the front
2598         * packihx/packihx.c (hexDigit): made c unsigned char
2599         * as/mcs51/lklibr.c (fndsym),
2600         * link/z80/lkgb.c (gb),
2601         * link/z80/lklibr.c (fndsym),
2602         * link/z80/lkrloc.c (relr),
2603         * sim/ucsim/libltdl/ltdl.c (load_deplibs, try_dlopen),
2604         * src/SDCC.lex (checkCurrFile, process_pragma),
2605         * src/SDCCglue.c (spacesToUnderscores),
2606         * src/SDCCmain.c (setParseWithComma, processFile),
2607         * src/asm.c (tvsprintf, printCLine),
2608         * src/avr/gen.c (emitcode, aopPut),
2609         * src/ds390/gen.c (emitcode),
2610         * src/hc08/gen.c (emitcode, emitinline),
2611         * src/mcs51/gen.c (emitcode, genInline),
2612         * src/pic/pcodepeep.c (cvt_extract_destination, cvt_extract_status,
2613           tokenizeLineNode),
2614         * src/pic/ralloc.c (debugLog),
2615         * src/pic16/pcodepeep.c (cvt_extract_destination, cvt_extract_status,
2616           tokenizeLineNode),
2617         * src/pic16/ralloc.c (debugLog),
2618         * src/z80/main.c (_process_pragma):
2619            made all ctype.h function calls safe
2620         * src/SDCCopt.c: include math.h for fabs
2621         * src/SDCCpeeph.c: added macros ISCHARDIGIT, ISCHARSPACE and ISCHARALNUM
2622           and used them throughout the code to make ctype.h function calls safe
2623         * src/ds390/main.c (asmLineNodeFromLineNode),
2624         * src/mcs51/main.c (asmLineNodeFromLineNode): made p unsigned char*
2625         * src/pic/gen.c (DEBUGpic14_emitcode, pic14_emitcode): made lbp
2626            unsigned char*
2627         * src/pic/pcode.c (mnem2key): made mnem unsigned char*,
2628           (newpCodeAsmDir): made ctype.h function calls safe
2629         * src/pic16/gen.c (pic16_emitpcomment, DEBUGpic16_emitcode,
2630           pic16_emitcode):  made lbp unsigned char*
2631         * src/pic16/pcode.c (mnem2key): made mnem unsigned char*,
2632           (pic16_newpCodeAsmDir): made ctype.h function calls safe
2633         * src/xa51/gen.c (emitcode),
2634         * src/z80/gen.c (_emit2): made lbp unsigned char*
2635         * support/Util/MySystem.c (split_command): made cmd_line and p unsigned
2636            char*
2637
2638 2005-09-05 Raphael Neider <rneider AT web.de>
2639
2640         * src/pic16/ralloc.c (pic16_allocDirReg): use device specific
2641           access bank splitpoint
2642
2643 2005-09-05 Raphael Neider <rneider AT web.de>
2644
2645         * device/lib/pic16/libc/Makefile: added (missing) string to SUBDIRS
2646
2647 2005-09-03 Maarten Brock <sourceforge.brock AT dse.nl>
2648
2649         * .version: changed to version 2.5.3
2650         * doc/sdccman.lyx: changed version to 2.5.3,
2651           documented --codeseg and --constseg and pragma codeseg and constseg,
2652           documented bit parameters (reentrant) and bit returning
2653         * src/SDCCicode.c (geniCodeReceive): fixed (possible) bug generating
2654            currFunc->recvSize, but is this ok for all ports?
2655           (ast2iCode): result of ~ on unsigned char must be cast to int for
2656            bool to work
2657         * src/SDCCmem.c (allocGlobal, allocLocal): don't put bit returning
2658           function pointers in bit space
2659         * src/SDCCsymt.c (checkSClass): allow bit returning function pointers,
2660           (processFuncArgs): call port.reg_parm() with reentrancy info
2661         * src/port.h,
2662         * src/avr/main.c,
2663         * src/ds390/main.c,
2664         * src/hc08/main.c,
2665         * src/pic/main.c,
2666         * src/pic16/main.c,
2667         * src/xa51/main.c,
2668         * src/z80/main.c: port.reg_parm prototype extended with
2669           "bool reentrant" parameter
2670         * src/mcs51/main.c (_mcs51_regparm): use parameter reentrant instead of
2671           options.stackAuto for allocating bit register parameters
2672         * src/mcs51/gen.c (genNot): optimized complementing direct bit,
2673           (genSend): set BitBankUsed if it is,
2674           (selectRegBank): factored out of genCall for use in genPcall,
2675           (genCall): removed redundant dtype assignmen, use selectRegBank,
2676           (genPcall): handle returning in Carry properly, save in F0 if needed,
2677           (genReceive): handle bit register parameters
2678         * src/mcs51/ralloc.c (updateRegUsage): update BitBankUsed along the way,
2679           (mcs51_assignRegisters): enable bit registers for all reentrant
2680            functions and don't set BitBankUsed unconditionally
2681         * src/mcs51/peeph.def (177.d): fixed bug if %2==%3
2682         * support/regression/tests/bitvars.c: enable tests for SDCC_STACK_AUTO
2683         * support/regression/tests/funptrs.c: added tests for BOOL and for return
2684
2685 2005-08-27 Borut Razem <borut.razem AT siol.net>
2686
2687         * device/lib/Makefile.in: cp on sparc-solaris (SunOS) and on
2688         ppc-osx (Darwin) does not support -u option. It seems that it is
2689         supported only on Linux - GNU cp
2690
2691 2005-08-25 Borut Razem <borut.razem AT siol.net>
2692
2693         * sim/ucsim/gui.src/serio.src/Makefile.in,
2694           sim/ucsim/s51.src/Makefile.in, sim/ucsim/avr.src/Makefile.in,
2695           sim/ucsim/z80.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
2696           sim/ucsim/xa.src/Makefile.in: install -s changed to 2 steps:
2697           install and strip, since the strip at /usr/ccs/bin should be used
2698           on solaris
2699
2700 2005-08-24 Borut Razem <borut.razem AT siol.net>
2701
2702         * clean.mk, device/lib/clean.mk: find on sparc-solaris does not support -maxdepth option
2703
2704 2005-08-23 Bernhard Held <bernhard AT bernhardheld.de>
2705
2706         * src/SDCCopt.c (convertToFcall): fixed modulus with divisors 1 and
2707         ffffffffu
2708
2709 2005-08-23 Maarten Brock <sourceforge.brock AT dse.nl>
2710
2711         * as/mcs51/aslink.h: completed lkrloc.c prototypes
2712         * as/mcs51/lkmain.c (link_main): fixed warning
2713         * device/include/stdbool.h: ds390 has no advanced bit support yet
2714         * src/SDCC.y: use SPEC_SHORT and renamed _signed to b_signed
2715         * src/SDCCsymt.c: use SPEC_SHORT and renamed _signed to b_signed
2716         * src/SDCCsymt.h (struct specifier): renamed _xxx bitfields to b_xxx
2717           and updated their macros
2718         * src/SDCCval.c (constVal): updated comment for renamed b_long
2719
2720 2005-08-22 Maarten Brock <sourceforge.brock AT dse.nl>
2721
2722         * as/mcs51/asdata.c: changed ctype['['] to BINOP
2723         * as/mcs51/asexpr.c (expr): added case '[' for bit access in bdata,
2724           (term): abused bit 15 of s_addr to indicate bit-addressable bytes,
2725           (oprio): set priority for '['
2726         * as/mcs51/aslink.h: added define R_BIT, and prototypes for adb_bit
2727            and adb_24_bit
2728         * as/mcs51/asm.h: added defines R_BIT and S_BIT
2729         * as/mcs51/lkarea.c (lnksect2): use T for seg BIT_BANK and overlay it
2730         * as/mcs51/lkdata.c: changed ctype['['] to BINOP
2731         * as/mcs51/lkmain.c (Areas51): rel2 contains 12 (=C) areas now,
2732           added overlayable BIT_BANK area
2733         * as/mcs51/lkmem.c (summary): add BIT_BANK to BSEG_BYTES in the report,
2734           (summary2): explain 'T' in legenda
2735         * as/mcs51/lkrloc.c: replaced old K&R style,
2736           (relr): added R_BIT processing,
2737           (errmsg): added "Bit-addressable relocation error",
2738           (adb_bit): added for converting from byte- to bit-addressable space,
2739           (adb_24_bit): added for converting from byte- to bit-addressable space
2740         * device/include/stdbool.h: changed BOOL to __bit for mcs51 as it can be
2741            used in reentrant functions now even as return value
2742         * device/lib/_gptrput.c (_gptrput): removed obsolete code
2743         * src/SDCCast.c (resultTypePropagate): also propagate AND_OP and OR_OP,
2744           (decorateType): case '!', GETHBIT, AND_OP, OR_OP: result in bool or char
2745         * src/SDCCglobl.h: added indicator BitBankUsed
2746         * src/SDCCglue.c (glue): emit area BIT_BANK with byte 'bits' and equ's for
2747            the bit registers b0-b7
2748         * src/SDCCicode.c (operandFromSymbol): removed IS_BITVAR check,
2749           (geniCodeCast): fixed bug 1263853,
2750           (geniCodeLogicAndOr): put result in bool or char,
2751           (geniCodeReceive): added parameter func for accessing the return type,
2752           (geniCodeFunctionBody): pass func to geniCodeReceive
2753         * src/SDCCmain.c: added indicator BitBankUsed
2754         * src/SDCCmem.c (allocLocal): explicitly set sclass for V_BIT
2755         * src/SDCCsymt.c (newBoolLink): added for creating a bool/bit,
2756           (checkSClass): don't put automatic bool/bit on stack,
2757           (checkFunction): removed check on function cannot return bit
2758         * src/SDCCsymt.h: added newBoolLink prototype
2759         * src/mcs51/gen.c (rb1regs): added bit registers,
2760           (movc): created for assigning to carry,
2761           (pushReg, popReg): created for pushing registers,
2762           (sameRegs): check both AOP_REG and AOP_CRY types,
2763           (aopOp): handle bit registers,
2764           (aopPut): optimization no self-assign,
2765           (saveRegisters): push reg->base (bits) only once for bit registers,
2766            and use pushReg,
2767           (unsaveRegisters): pop reg->base only once and use popReg,
2768           (assignResultValue): added parameter func and return in carry for bits,
2769           (genIpush): optimization no reload in A if not changed,
2770           (genSend): bit parameters in reentrant functions are passed in bit
2771            registers by first assigning to bits in B, then save registers and
2772            copy B to bits,
2773           (genCall): handle returning in Carry properly, save it in F0 if needed,
2774           (genPcall): updated assignResultValue call, this is not safe yet for bit
2775            returning function !!!
2776           (genFunction): don't generate equ's for bit registers and use pushReg,
2777           (genEndFunction): take care of bit returning functions and use popReg,
2778           (genRet): return bit in Carry,
2779           (genIfx): optimize bit registers and other directly addressable bits,
2780           (genReceive): updated assignResultValue call
2781         * src/mcs51/main.c (_mcs51_reset_regparm): added regBitParmFlg,
2782           (_mcs51_regparm): allow passing of upto 8 bit parameters in bit
2783            registers when using stack-auto
2784         * src/mcs51/ralloc.c (_G): added allBitregs,
2785           (regs8051): added the bit registers,
2786           (createStackSpil): use macro IS_BIT,
2787           (getRegBit): added to allocate a bit register, else spill,
2788           (getRegBitNoSpil): added to allocate a bit register, else a gpr,
2789           (updateRegUsage): factored out to ease stepping while debugging,
2790           (serialRegAssign): use updateRegUsage, only spill bits if necessary,
2791            also allocate bit registers,
2792           (fillGaps): handle bit registers,
2793           (findAllBitregs): added to create bit vector with all bit registers,
2794           (mcs51_allBitregs): returns this bit vector,
2795           (mcs51_assignRegisters): when using stack-auto use bit registers for
2796            passing parameters and creating local variables
2797         * src/mcs51/ralloc.h: added B0_IDX..B7_IDX and prototype mcs51_allBitregs
2798
2799 2005-08-22 Borut Razem <borut.razem AT siol.net>
2800
2801         * device/lib/Makefile.in: replaced find option -or with -o
2802           to make it run on solaris
2803
2804 2005-08-22 Raphael Neider <rneider AT web.de>
2805
2806         * src/pic16/gen.c (pic16_loadFromReturn): added check for AOP_PCODE,
2807           fixes #1265442 (crash on Solaris)
2808
2809 2005-08-20 Borut Razem <borut.razem AT siol.net>
2810
2811         * configure, configure.in: added tests for libsocket and libnsl libraries,
2812           requred by sdcdb on sparc-solaris; generate support/regression/Makefile
2813           from support/regression/Makefile.in
2814         * support/regression/Makefile.in: added
2815         * device/lib/pic16/Makefile.common.in: force make to use bash shell
2816         * sim/ucsim/libtool: regenerated on sparc-solaris
2817         * sim/ucsim/avr.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
2818           sim/ucsim/s51.src/Makefile.in, sim/ucsim/xa.src/Makefile.in,
2819           sim/ucsim/z80.src/Makefile.in: removed GNU ld specific linker options
2820           -Wl,--start-group and -Wl,--end-group to enable ucsim compilation on
2821           sparc-solaris, which doesn't use GNU ld linker
2822         * device/lib/Makefile.in: cp on sparc-solaris (SunOS) does not support -u option
2823         * as/Makefile: find on sparc-solaris does not support -maxdepth option
2824
2825 2005-08-19 Maarten Brock <sourceforge.brock AT dse.nl>
2826
2827         * src/mcs51/peeph.def: updated comments
2828
2829 2005-08-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2830
2831         * device/lib/_gptrget.c,
2832         * device/lib/_gptrput.c: slightly shorter
2833         * doc/sdccman.lyx: incremented version
2834         * src/mcs51/peeph.def: moved peephole comments to the line of first
2835           change to better keep line correlation, reanimated 186.e
2836         * src/mcs51/peeph.def: renamed similar peepholes by using suffixes
2837
2838 2005-08-16 Slade Rich <slade_rich AT users.sourceforge.net>
2839
2840         * src/pic/pcode.c : Pasted ".line" assembly directives patch from
2841           David Saxton with quotes around file name.
2842
2843 2005-08-15 Borut Razem <borut.razem AT siol.net>
2844
2845         * support/regression/tests/bitfields.c, support/regression/tests/bitvars.c,
2846           support/regression/tests/bitwise.c, support/regression/tests/literalop.c,
2847           support/regression/tests/rotate.c, support/regression/tests/zeropad.c:
2848           make tests run on x86_64 platform
2849
2850 2005-08-13 Raphael Neider <rneider AT web.de>
2851
2852         * device/lib/pic16/Makefile.subdir: weakened clean-intermediate rule
2853           as it might be executed DURING a build (parallel make is wonderful)
2854
2855 2005-08-13 Raphael Neider <rneider AT web.de>
2856
2857         * device/lib/Makefile.in (port-specific-objects-pic16):
2858           revert to cp $(PORT)/bin/*.* $(PORTDIR)
2859         * device/lib/pic16/Makefile: added .PHONY targets, removed builddir
2860           dependency
2861         * device/lib/pic16/Makefile.rules: build subdirs before creating
2862           the library, removed builddir rule, create $(builddir) early in
2863           recurse rule, use empty recurse rule for leaf directories
2864         * device/lib/pic16/Makefile.subdir: added phony targets, ignore
2865           mkdir errors (race condition), removed duplicate suffix "hex"
2866           from clean rules
2867         * device/lib/pic16/libdev/Makefile: recursive make via + and $(MAKE)
2868         * device/lib/pic16/libio/Makefile: create sub-make's builddir early,
2869           prevents mkdir -p from aborting on Alpha
2870
2871 2005-08-12 Raphael Neider <rneider AT web.de>
2872
2873         * src/pic16/glue.c (pic16_print(G)PointerType): do not flush
2874           db-statements in order to allow for arrays of pointers in code
2875           sections to be placed without interspersed 0-padding, fixes
2876           bug #1256215
2877         * (emitStatistics): fixed division by zero for pic18f1220
2878         * src/pic16/pcode.c: buffer (up to) 12 DB directives to allow for
2879           unpadded writing of 8-bit, 16-bit, 24-bit and 32-bit values
2880         * (pic16_emitDS): respect DB_ITEMS_PER_LINE
2881         * (pic16_pCodeConstString): keep track of already emitted string
2882           literals to prevent "duplicate definitions of symbol _str_NR"
2883         * src/pic16/ralloc.c (pic16_allocRegByName): removed not so helpful
2884           debug message
2885         * device/lib/Makefile.in: ignore failing PIC16 library builds
2886         * device/lib/pic16/Makefile: do not build if gputils are missing
2887         * device/lib/pic16/Makefile.common.in: do not enforce MAKEFLAGS=-s
2888
2889 2005-08-10 Raphael Neider <rneider AT web.de>
2890
2891         * device/lib/Makefile.in: fixed copying pic16 libraries (broken by
2892           my last commit)
2893
2894 2005-08-10 Raphael Neider <rneider AT web.de>
2895
2896         * src/*.c, src/pic16/{gen.c,glue.c,main.c}: applied Vangelis
2897           Rokas' patch to add the new fixed point type "__fixed16x16"
2898         * device/lib/pic16/libsdcc/fixed16x16: added Vangelis' support
2899           functions for __fixed16x16 arithmetics
2900         * device/lib/pic16: reimplemented the build system to support
2901           a separate build directory, better handling of libio (create
2902           the library in a separate subdir for each architecture) and
2903           easier configuration (centralized in Makefile.common)
2904
2905 2005-08-07 Raphael Neider <rneider AT web.de>
2906
2907         * src/pic16/gen.c (genrshTwo): fixed sign extension
2908         * src/pic16/device.c: added pic18f2320, 4220 and 4320
2909         * device/include/pic16/pic18f2220.h: changed some bit definitions,
2910           added T0CONbits
2911         * device/include/pic16/pic18f4220.h: NEW, header for
2912           pic18f4220 and pic18f4320
2913         * device/include/pic16/pic18fregs.h: added new devices,
2914           embraced Nop(), ClrWdt(), Sleep() and Reset() with do {} while(0)
2915         * device/include/pic16/signal.h: resolved name clashes
2916           on bit definitions, added DEF_HANDLER2(sig1,sig2,handler)
2917           to also allow testing for interrupt enable bits, added
2918           comments on how to use the macros
2919         * device/lib/pic16/libdev/pic18f2220.c: added T0CONbits
2920         * device/lib/pic16/libdev/pic18f{2320,4220,4320}.c: NEW,
2921           register definitions for the devices
2922         * device/lib/pic16/pics.all: added new devices
2923         * device/lib/pic16/libc/stdlib/calloc.c: fixed zeroing
2924           allocated memory
2925         * device/lib/pic16/libc/stdlib/memfree: do not count
2926           the block header as free memory
2927         * device/lib/pic16/libc/stdlib/memmisc.c (_initHeap):
2928           simplified and added missing end-of-blocklist-marker
2929           (reported by Peter Onion, fixes #1252814)
2930         * (_mergeHeapBlock): fixed loop condition
2931         * device/lib/pic16/libc/stdlib/realloc.c: return NULL for
2932           len==0, restructured code
2933         * device/lib/pic16/libc/stdlib/{malloc,memfreemax}.c: cleaned
2934           up a bit, reduced bitfield accesses, prevent endless loops
2935           in case of heap corruption
2936         * device/lib/pic16/libc/stdlib/x_ftoa.c: disabled
2937           "unreferenced arguments/must return a value" warnings
2938         * device/lib/pic16/libio/usart/ubaud.c (usart_baud):
2939           replaced BAUDREG with SPBRG
2940         * device/lib/pic16/libsdcc/lregs/{lrrest.c,lrst.c},
2941           device/lib/pic16/debug/gstack/gstack.c: replaced
2942           _naked, _asm, _endasm with __naked, __asm, __endasm
2943
2944 2005-08-05 Raphael Neider <rneider AT web.de>
2945
2946         * src/pic16/gen.c (pic16_aopGet): fixed handling of offsets in
2947           AOP_PCODE operands, fixes multibyte union-bitfield-accesses
2948
2949 2005-08-05 Borut Razem <borut.razem AT siol.net>
2950
2951         * device/lib/Makefile.in: added missing ';'
2952         * configure: removed ^M characters
2953
2954 2005-08-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2955
2956         * device/include/mcs51/at89c51ed2.h, device/include/mcs51/p89v51rd2.h,
2957           device/include/mcs51/at89s53.h: changed to GNU Lesser General Public
2958           License
2959
2960 2005-08-04 Borut Razem <borut.razem AT siol.net>
2961
2962         * configure.in: pic16 libraries build 2nd try - enable running
2963           configure in device/lib/pic16
2964         * configure: regenerated from configure.in
2965         * device/lib/Makefile.in: create $(PORT)/bin directory
2966
2967 2005-08-03 Raphael Neider <rneider AT web.de>
2968
2969         * src/pic16/gen.c (pic16_derefPtr): NEW, single place
2970           to get/set values via pointers
2971         * (genUnpackBits,genPackBits): changed detection of
2972           ptr->bitfield vs. sym.bitfield, fixed access via generic
2973           pointers, removed dead (wrong) code for multibyte bitfields
2974         * (genNearPointerGet, genGenPointerGet): removed useless code,
2975           fixed bitfield detection, fixes #1250594
2976         * (genNearPointerSet): removed useless code
2977         * src/pic16/gen.h: renamed pic16_emitpcode to pic16_emitpcode_real
2978           and introduced macro pic16_emitpcode that conditionally emits
2979           the origin of the following pCode (useful for debugging SDCC)
2980         * src/pic16/pcode.c: changed (and disabled) some debug outputs
2981         * (createDefmap): fixed handling of LFSR for --optimize-df
2982
2983 2005-08-02 Borut Razem <borut.razem AT siol.net>
2984
2985         * device/lib/Makefile.in: pic16 libraries build enabled since
2986           gputils-0.13.2 are now localy installed at sourceforge's compile farm
2987
2988 2005-08-02 Raphael Neider <rneider AT web.de>
2989
2990         * src/pic16/gen.c (genPackBits): removed deprecated warning
2991         * (genGenPointerSet): fixed bitfield detection
2992
2993 2005-08-02 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2994
2995         * device/include/mcs51/msm8xc154s.h: Removed PT2 definition, now in 8052.h.
2996
2997 2005-07-31 Raphael Neider <rneider AT web.de>
2998
2999         * device/lib/pic16/libdev/pic18f458.c,
3000           device/include/pic16/pic18f458.h: added missing T0CONbits
3001
3002 2005-07-29 Maarten Brock <sourceforge.brock AT dse.nl>
3003
3004         * device/include/mcs51/msm8xc154s.h: added, thanks to Matthias Arndt
3005
3006 2005-07-28 Maarten Brock <sourceforge.brock AT dse.nl>
3007
3008         * src/mcs51/gen.c (operandsEqu): fixed bug 1246687
3009
3010 2005-07-23 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3011
3012         * device/include/mcs51/at89c51ed2.h: added.
3013
3014 2005-07-23 Raphael Neider <rneider AT web.de>
3015
3016         * src/pic/gen.h: added emitpcode macro for debugging
3017         * src/pic/gen.c (emitpcode): renamed to emitpcode_real
3018           and replace by macro adding debug information on demand
3019         * (genNot): fixed to C semantics (!0 = 1; !x = 0 iff x != 0)
3020         * (gencjne): tried to fix; replaced with correct (slower) code
3021         * (gen{Unp,P}ackBits): fixed single bit access
3022         * src/pic/pcode.c (AnalyzepCode): fixed DFPRINTF argument
3023         * src/pic/pcodepeep.c (pCodeSearchCondition): fixed finding
3024           previous instruction
3025         * src/pic/pcoderegs.c (regIsSpecial): NEW, check whether a
3026           register has to be handled with care (forbidding movement
3027           of assignments/uses, removing assignments completely, ...)
3028         * (pCodeOptime2pCodes): make use of regIsSpecial
3029         * added lots of debugging output (commented out)
3030         * src/pic/rallloc.c (deassignLRs): prevent operand registers
3031           from being reused as result UNLESS it is known to work
3032
3033 2005-07-23 Maarten Brock <sourceforge.brock AT dse.nl>
3034
3035         * support/Util/dbuf.h: include <stddef.h> for size_t
3036         * .version: changed to version 2.5.2
3037
3038 2005-07-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3039
3040         * src/SDCCloop.c (loopInvariants): fixed bug #1234048
3041
3042 2005-07-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3043
3044         * src/hc08/gen.c (genMinus): fixed bug #1241835,
3045           (genModOneByte): removed needless psha/pula
3046
3047 2005-07-22 Raphael Neider <rneider AT web.de>
3048
3049         * src/SDCCmain.c (linkEdit): initialized linkerScriptFileName,
3050           have PIC14 handled like PIC16, fixes broken pic14 linker calls
3051         * src/pic/gen.c (resolveIfx): do not "invent" labels
3052         * (genSkipc): changed to positive logic
3053         * (genSkipCond): removed as no longer needed
3054         * (pic14_mov2w_regOrLit,genCmp): NEW, replacement for buggy version,
3055           backport from PIC16
3056         * (genLeftShift): check operands are in different registers
3057         * src/pic/genarith.c (genPlus): replaced INCF with ADDLW as
3058           INCF does not update CARRY...
3059         * src/pic/main.c: fixed _linkCmd
3060         * src/pic/pcode.c (unlinkpCode): added inactive code
3061         * src/pic/ralloc.c (deassignLRs): keep arguments to shift operations
3062           alive (do not assign result and operand overlapping registers)
3063
3064 2005-07-22 Raphael Neider <rneider AT web.de>
3065
3066         * src/pic/device.c (dump_sfr): replaced register declaration with
3067           call to emitSymbolToFile() to avoid duplicate symbols
3068         * (assignRelocatableRegisters): do not declare external symbols
3069         * src/pic/ralloc.c (allocNewDirReg): fixed to get size of arrays
3070           right (take size of type, not etype)
3071         * (allocDirReg): fixed call to allocNewDirReg() to pass OP_SYM_TYPE
3072         * (writeUsedRegs): also dump dynDirectRegs (e.g. local variables)
3073         * (packRegsForAccUse): disabled assignment of WREG as
3074           the result reg to prevent occurence of just fixed #1235003,
3075           fixes #1242954
3076         * src/pic/glue.c (emitSymbolToFile): NEW, central place to declare
3077           symbols (avoids duplicate symbols in .asm file)
3078         * (pic14emitRegularMap): use emitSymbolToFile()
3079         * src/pic/gen.c (aopOp): fixed spillLocation handling
3080         * (gen{Unp,P}ackBits): fixed acquiring bit-operands
3081         * (genDataPointerSet): removed unneccessary variables/output
3082
3083 2005-07-22 Maarten Brock <sourceforge.brock AT dse.nl>
3084
3085         * as/mcs51/lkarea.c: enlarged codemap for banked memory
3086         * device/lib/mcs51/crtbank.asm: added # to 0x0F
3087
3088 2005-07-21 Raphael Neider <rneider AT web.de>
3089
3090         * src/pic/gen.c (aopOp): do not generate AOP_ACC operands as pic14
3091           architecture cannot handle them efficiently, fixes bug #1235003
3092         * src/pic16/device.c (pic16_dump_{u,i}section,pic16_dump_int_registers):
3093           check for empty sets before using them (fixes bug #1232190)
3094
3095 2005-07-19 Maarten Brock <sourceforge.brock AT dse.nl>
3096
3097         * as/mcs51/lkarea.c (lnkarea, lnkarea2): improved BSEG size calculation,
3098           (lnksect2): generate warnings for memory overlap
3099         * src/SDCC.lex (doPragma, process_pragma): added pragma's codeseg and
3100           constseg to set the name of these segments so you can instruct the linker
3101           to place them in banks
3102         * src/SDCCast.c (decorateType): use new macro IS_FUNCPTR()
3103         * src/SDCCglobl.h: added MODEL_HUGE to enum,
3104           added code_seg and const_seg to options
3105         * src/SDCCglue.c (emitMaps): use options.const_seg,
3106           (createInterruptVect): put interrupt vectors in segment HOME,
3107           (glue): put HOME before static segment and put the main glue in HOME,
3108           (glue): use options.code_seg
3109         * src/SDCCicode.c (geniCodeCall): use new macro IS_FUNCPTR()
3110         * src/SDCCmain.c: added option --codeseg and --constseg to set the name of
3111           these segments so you can instruct the linker to place them in banks
3112           (linkEdit): use code_loc for HOME segment which should be the first
3113           segment in code memory now
3114         * src/SDCCmem.c: fixed more stuff like bug 1238386
3115         * src/SDCCsymt.c (getSize): use generic pointer size for banked functions,
3116           (changePointer): don't change function pointers to code pointers for
3117           banked functions,
3118           (compareType): added exceptional check for banked function pointers
3119         * src/SDCCsymt.h: changed IFFUNC_ISBANKEDCALL, added IS_FUNCPTR
3120         * src/hc08/main.c (_hc08_genAssemblerPreamble): put HOME first, put CSEG
3121           after static in code memory
3122         * src/mcs51/gen.c: added aopLiteralLong prototype,
3123           (aopForSym): use getSize for functions,
3124           (genCall): generate banked calls over one trampoline __sdcc_banked_call
3125           in HOME with lsb of address in r0, msb in r1 and bank in r2, use
3126           -Wl-bBANKSEG=0xbbaaaa option to set the address (aaaa) and bank (bb) of
3127           the segment,
3128           (genPcall): use call for literal function pointers and generate banked
3129           calls over the one trampoline so there's only one place for the user to
3130           modify according to his/hers hardware,
3131           (genEndFunction): jump to __sdcc_banked_ret in HOME for banked functions,
3132           (genPlusIncr): moved check icount>4 beyond inc dptr optimization
3133         * src/mcs51/main.c: added keyword banked,
3134           (_mcs51_genExtraAreas): put HOME first followed by GSINIT, STATIC and CSEG
3135         * support/Util/SDCCerr.c,
3136         * support/Util/SDCCerr.h: added E_BANKED_WITH_CALLEESAVES, registers are
3137           needed for passing the bank and address to the trampoline
3138         * device/lib/mcs51/crtbank.asm: added for bankswitching
3139         * device/lib/mcs51/Makefile: added crtbank
3140
3141 2005-07-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3142
3143         * src/SDCCcse.c (algebraicOpts): fixed loss of volatility
3144           for fields at offset 0 of a struct or union as reported
3145           on 2005-07-07 in the developer mailing list.
3146
3147 2005-07-15 Maarten Brock <sourceforge.brock AT dse.nl>
3148
3149         * src/SDCCmem.c: fixed bug 1238386
3150
3151 2005-07-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3152
3153         * src/mcs51/peeph.def: added labelrefcounting for peepholes
3154           (patch #1144962), added peephole 300, enabled 259.x
3155         * doc/sdccman.lyx: removed screenshot and provided link instead
3156
3157 2005-07-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3158
3159         * doc/sdccman.lyx: added section about debugging with ddd
3160         * doc/figures/ddd_example.eps: screenshot of debugging session
3161
3162 2005-07-04 Raphael Neider <rneider AT web.de>
3163
3164         * src/pic/gen.c (genPointerGet): handle pointers to CONST values
3165           like CODE pointers, fixes #1115683
3166         * src/pic/pcode.c (DoBankSelect): forget LastRegIdx during function
3167           call, fixes bugs #1232211, #1228110,
3168           fixed wrong casts to pCodeFlow from pCodeInstructions
3169
3170 2005-07-04 Raphael Neider <rneider AT web.de>
3171
3172         * src/pic/gen.c (popGet): changed assert to allow for
3173           bit operands
3174         * (popGetAddr): changed signature to provide
3175           an additional index, patched all call sites
3176         * (genCmpEq): handle literal-like operands correctly
3177         * (genAddrOf): added sanity checks on __code/__data pointers
3178         * (genAssign): added handling of symbols from __code section
3179         * (gencjne): do not generate code for comparisons whose result
3180           is neither stored nor used, fixes bug #1171114
3181         * (AccLsh, AccRsh): operate on operand instead of WREG
3182         * (shift{Left,Right}_Left2ResultLit): NEW, size independant
3183           replacement for Shift{LR}{12}Left2Result; shift (byte/int/long)
3184           by known count
3185         * rewrote complete shift-by-literal logic, commented unused
3186           functions out
3187         * (genConstPointerGet): get multiple bytes (if result size > 1),
3188           fixed handling of non-immediate addresses
3189         * (genPointerGet): handle CODE pointers like CONST pointers
3190         * (genpic14Code): insert C-SRC lines as Cource-pCodes
3191         * ({aop,op}_isLitLike): NEW, single place to decide whether an
3192           operand is to be treated as a literal or not
3193         * (mov2w,genPcall,genCmpEq),
3194           src/pic/genarith.c: use aop_isLitLike() to decide between
3195           literal/register contents
3196         * (addSign): added missing offset
3197         * src/pic/gen.h: remove newline after FENTRY/FEXIT comments,
3198           only emit comment in debug-mode,
3199           use {aop,op}_isLitLike throughout the file
3200         * src/pic/glue.c: fix initializers for pointers (work in progress)
3201         * src/pic/pcode.c (get_op): honor index on _const symbols
3202         * ({reset,dump}pCodeStatistics): NEW, estimate code size
3203         * (dumppBlock): added pCode size estimation
3204         * src/pic/ralloc.c (deassignLRs,serialRegAssign,packRegisters):
3205           check for IS_SYMOP before OP_SYMBOL'ing
3206         * fixed indentation, compacted switch-statements
3207         * (allocReg): find free register and allocate it instead of
3208           allocating new registers all the time
3209         * (deassignLRs): prevent POINTER_GET's from being assigned the same
3210           registers as its operands (necessary only for multibyte GETs)
3211
3212 2005-07-01 Raphael Neider <rneider AT web.de>
3213
3214         * src/pic/gen.h: added prototypes emitpComment, popGetAddr and
3215           debugging .asm-output macros FENTRY + FEXIT
3216         * src/pic/gen.c (Safe_vsnprintf): NEW, is there a more generic
3217           way... I wonder...
3218         * (emitpComment): NEW, printf to pCode
3219         * (popGet): added assert on too large offsets, fixed PO_IMMEDIATE's
3220           offset handling
3221         * (popGetAddr): NEW, variant of popGet to access an immediates
3222           high(er) bytes instead of the n'th byte of memory they reference,
3223           replaced popGet with popGetAddr where neccessary
3224         * (genDataPointerGet): reactivated and fixed implementation
3225         * (genNearPointerGet): enabled call to genDataPointerGet, fixes array-
3226           accesses
3227         * (genDataPointerSet): fixed multibyte assignments
3228         * (genpic14Code): fixed --i-code-in-asm handling
3229         * src/pic/genarith.c: fixed PO_IMMEDIATE issue using popGetAddr,
3230         * (genPlus): fixed index-out-of-bounds error
3231         * src/pic/pcode.c (get_op): fixed PO_IMMEDIATE's index/offset handling
3232         * src/pic/ralloc.c: added debugging output macro FENTRY2
3233         * (spillThis): fixed indentation, enbraced for-body for clarity
3234         * (rematStr): commented out as now unused
3235         * (regTypeNum): commented out special spill case (overwrites
3236           arbitrary values)
3237         * fixes bugs #1229346, #1216476 (both arrays) and #1115667 (SIGSEGV)
3238
3239 2005-06-30 Maarten Brock <sourceforge.brock AT dse.nl>
3240
3241         * doc/sdccman.lyx: documented sfr16/sfr32,
3242           added example for using storage class with function pointers
3243         * src/mcs51/gen.c (genPlusIncr): optimized small offsets from dptr
3244
3245 2005-06-28 Maarten Brock <sourceforge.brock AT dse.nl>
3246
3247         * device/lib/_gptrget.c: also push/pop _PSBANK, added # to 0x03
3248         * device/lib/_itoa.c,
3249         * device/lib/_ltoa.c: optimized codesize
3250         * src/SDCCsymt.c (checkSClass): added sanity check for sfr at addresses,
3251           but don't know how to suppress the double warning.
3252         * src/mcs51/gen.c (genPlusIncr): fixed bug when incrementing volatile int's
3253         * support/Util/SDCCerr.c,
3254         * support/Util/SDCCerr.h: added warning W_SFR_ABSRANGE for sanity check
3255
3256 2005-06-27 Maarten Brock <sourceforge.brock AT dse.nl>
3257
3258         * as/mcs51/asexpr.c (expr): disabled warning "not in .flat24 mode",
3259           fixed old K&R prototypes
3260         * as/mcs51/asout.c (outrb): always output as if generating 24bit addresses
3261         * device/lib/_gptrget.c,
3262         * device/lib/_gptrgetc.c,
3263         * device/lib/_gptrput.c: changed versions for new memory indicator values,
3264           also new versions for small generic pointers and banked generic pointers
3265         * src/port.h: added const_name
3266         * src/SDCC.lex: added keywords sfr16, __sfr16, sfr32, __sfr32
3267         * src/SDCC.y: added tokens SFR16, SFR32 and their sfr_attributes
3268         * src/SDCCcse.c (findPrevIc): check all associative operators
3269         * src/SDCCglue.c (emitMaps): use CONST_NAME if defined
3270         * src/SDCCicode.h: added macro IS_ASSOCIATIVE
3271         * src/SDCCmem.c: updated comments,
3272           set far-space to 0 for pdata, results in optimized code
3273         * src/SDCCmem.h: added macro CONST_NAME
3274         * src/SDCCsymt.h: renumerated generic pointer types GPTYPE_... thereby
3275           moving the info into the highest bits, see also gptrget/gptrput
3276         * src/src.dsp: added sdcc.ico to project files
3277         * src/avr/gen.c (genCast): fixed bug 0x%d
3278         * src/avr/main.c (avr_port): added "CONST (CODE)" for const_name
3279         * src/ds390/gen.c (aopForRemat, adjustArithmeticResult): disconnected direct
3280           relation between ptr_type and DCL_TYPE,
3281           (genCast): fixed bug 0x%d
3282         * src/ds390/main.c (ds390_port, tininative_port, ds400_port): added "CONST
3283           (CODE)" for const_name
3284         * src/hc08/gen.c (genCast): fixed bug 0x%d
3285         * src/hc08/main.c (_hc08_genAssemblerPreamble): added .area ...const_name,
3286           (hc08_port): added "CONST (CODE)" for const_name
3287         * src/mcs51/gen.c (aopForSym): optimized pushing ACC,
3288           (aopForRemat, adjustArithmeticResult): disconnected direct relation
3289           between ptr_type and DCL_TYPE,
3290           (aopGetUsesAcc, aopGet, aopPut): changed first parameter from asmop* to
3291           operand* and took AOP() inside function so sfr-ness can be checked,
3292           (all over): repaired calls to aopGetUsesAcc, aopGet, aopPut to comply with
3293           new prototype,
3294           (genFunction, genEndFunction): optimized stack setup,
3295           (genMinus): optimized for literals with ending zeroes (in bytes),
3296           (genCast): fixed bug 0x%d
3297         * src/mcs51/main.c (_mcs51_keywords): added sfr16 and sfr32,
3298           (mcs51_port): added "CONST (CODE)" for const_name
3299         * src/mcs51/peeph.def: made rule 226 more generic
3300         * src/pic/main.c (pic_port): added "CONST (CODE)" for const_name
3301         * src/pic16/main.c (pic16_port): added "CONST (CODE)" for const_name
3302         * src/xa51/main.c (xa51_port): added "CONST (CODE)" for const_name
3303         * src/z80/main.c (z80_port): added NULL for const_name,
3304           (gbz80_port): added NULL for const_name
3305         * support/regression/tests/bug663539.c,
3306         * support/regression/tests/sfr16.c: new tests
3307
3308 2005-06-25 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3309
3310         * device/include/mcs51/p89v51rd2.h, device/include/mcs51/at89s53.h: added.
3311
3312 2005-06-24 Raphael Neider <rneider AT web.de>
3313
3314         * device/lib/pic16/libdev/pic18f[68][567]20.c:
3315           corrected typos...
3316         * device/include/pic16/signal.h: added USBIF
3317           and SIG_USB
3318
3319 2005-06-24 Raphael Neider <rneider AT web.de>
3320
3321         * device/lib/pic16/libdev/pic18f2455.c,
3322           device/include/pic16/pic18f2455.h: NEW
3323         * device/include/pic16/pic18fregs.h,
3324           device/lib/pic16/pics.all,
3325           src/pic16/device.c: added 18f2455
3326         * device/lib/pic16/libdev/pic18f[68][567]20.c,
3327           device/include/pic16/{pic18f[68][567].h,usart.h}:
3328           replaced MULTIPLE_USARTS define with more relaible
3329           compatibility sfrs (for USART access)
3330
3331 2005-06-20 Slade Rich <slade_rich AT users.sourceforge.net>
3332
3333         * src/pic/pcode.c : Fixed problem when a string constant contains a "\r\n"
3334           and the output asm file line is printed on two lines.
3335
3336 2005-06-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3337
3338         * sim/ucsim/hc08.src/inst.cc (inst_condbranch): fixed simulation of
3339           BGT, BLE, BHI, and BLS instructions
3340         * src/hc08/gen.c (outAcc, outBitC, outBitNV, genCmpLt, genCmpGt,
3341           genCmpEq): removed
3342         * src/hc08/gen.c (genCmpEQorNE, genCmp, branchopCmp, nameCmp,
3343           negatedCmp, exchangedCmp, genhc08Code): rewrite of comparison handling,
3344           fixes bug #1216342
3345         * src/hc08/peeph.def: added rules 2g - 2l for new conditional branches
3346
3347 2005-06-15 Raphael Neider <rneider AT web.de>
3348
3349         * src/pic16/NOTES: moved Vangelis from active developers to people to contact
3350         * device/include/pic16/{6520.h,8520.h}: fixed configuration bits
3351         * src/pic16/gen.c (): prevent iTemps from being considered to be in CODESPACE,
3352           fixes bug #1221120; for symbols in CODESPACE get number of bytes to read from
3353           OP_SYM_TYPE() instead of OP_SYM_ETYPE()
3354
3355 2005-06-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3356
3357         * device/include/mcs51/reg764.h: Changed PB0 to PBO as requested by
3358           Marcel Telka in bug #1215704
3359
3360 2005-06-02 Slade Rich <slade_rich AT users.sourceforge.net>
3361
3362         * src/pic/pcode.c : Changed pseudo stack size to 15 to allow WSAVE to be
3363           located in shared memory bank.
3364
3365 2005-05-31 Raphael Neider <rneider AT web.de>
3366
3367         * src/pic16/{gen.c,genarith.c}: replaced sign-extension
3368           "CLRF, BTFSC <signbit>, DECF/COMF" with side-effect-free
3369           "CLRF, BTFSC <signbit>, SETF"; fixes "long>>9"
3370
3371 2005-05-27 Maarten Brock <sourceforge.brock AT dse.nl>
3372
3373         * device/lib/_strncpy.c: fixed the fix
3374
3375 2005-05-26 Raphael Neider <rneider AT web.de>
3376
3377         * src/pic16/glue.c (pic16_printIvalChar): fixed _constant_ string
3378           initializers with \0, bug #1208187
3379         * src/pic/glue.c (printIvalChar): fixed (non- and constant) string
3380           intializers with \0, bug #1208187
3381
3382 2005-05-26 Raphael Neider <rneider AT web.de>
3383
3384         * src/pic16/glue.c (pic16_printIvalChar): fixed string
3385           initializers with \0, bug #1208187
3386         * src/pic16/main.c (_process_pragma): added sanity checks
3387           for stack position and size, emit warnings when appropriate
3388
3389 2005-05-26 Maarten Brock <sourceforge.brock AT dse.nl>
3390
3391         * device/lib/_strncpy.c: fixed not filling with \0
3392
3393 2005-05-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3394
3395         * src/SDCCast.c (funcOfType, funcOfTypeVarg, stringToSymbol,
3396           createFunction),
3397         * src/SDCC.y (external_definition, enumerator, parameter_declaration,
3398           compound_statement),
3399         * src/SDCCsymt.h,
3400         * src/SDCCsymt.c (addSymChain, processFuncArgs): fixed bug #1159134
3401
3402 2005-05-24 Raphael Neider <rneider AT web.de>
3403
3404         * src/pic16/glue.c (pic16_printGPointerType): fixed #1207796
3405
3406 2005-05-24 Raphael Neider <rneider AT web.de>
3407
3408         * device/include/pic16/pic18f{442,452,458}.h: fixed wrong
3409           TRISE definitions, closes bug #1162453
3410
3411 2005-05-22 Raphael Neider <rneider AT web.de>
3412
3413         * src/pic16/main.c (_process_pragma): check for missing
3414           arguments to pragmas code and udata
3415         * device/include/pic16/pic18f{2550,4331,4455,4520}.h:
3416           consistency fixes to match other headers (thanks to Jim Paris)
3417         * device/lib/pic16/libio/i2c.ignore: 18f4331 provides no I2C
3418
3419 2005-05-21 Maarten Brock <sourceforge.brock AT dse.nl>
3420
3421         * src/SDCCicode.c (isOperandEqual): fixed missing ;
3422
3423 2005-05-19 Maarten Brock <sourceforge.brock AT dse.nl>
3424
3425         * support/regression/tests/bug1198642.c: new test
3426         * src/SDCCicode.c (isOperandEqual): fixed bug 1198642
3427         * src/SDCCcse.c (findPrevIc): added comment, please have a look
3428         * support/scripts/resource.h,
3429         * support/scripts/resource.rc,
3430         * src/src.dsp: added sdcc.ico to project as icon for sdcc.exe
3431         * support/scripts/sdcc.ico: added 32x32 icon
3432
3433 2005-05-18 Raphael Neider <rneider AT web.de>
3434
3435         * device/lib/pic16/libdev/pic18f*.c,
3436         * device/include/pic16/pic18f*.h: updated "sfr" and "at X"
3437           keywords to "__sfr" and "__at (X)"
3438         * device/include/pic16/pic18fregs.h: added pic18f4520
3439         * src/pic16/pcode.c (pic16_pCode2str): fixed (?) bug
3440           #1203088 (MPLAB compatibility)
3441
3442 2005-05-17 Raphael Neider <rneider AT web.de>
3443
3444         * device/include/pic16/pic18f{2550,4331,4455,4520}.h: NEW
3445         * device/lib/pic16/libdev/pic18f{2550,4331,4455,4520}.c: NEW
3446         * device/lib/pic16/pics.all: added new devices
3447         * src/pic16/device.c: added support for pic18f4520
3448
3449 2005-05-16 Raphael Neider <rneider AT web.de>
3450         * src/pic16/gen.{c,h}: s/mov2f/pic16_mov2f made public
3451         * src/pic16/genarith.c (genAddLit): fixed bug 1202480
3452         * src/pic16/pcode.{c,h} (pic16_newpCodeOpBit_simple): NEW
3453           convenience function for bit access
3454
3455 2005-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
3456
3457         * device/lib/printf_large.c: fixed bug 1193299
3458         * support/regression/tests/bug1057979.c: added test %3.3s
3459
3460 2005-05-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3461
3462         * device/include/mcs51/8051.h,
3463         * device/include/mcs51/8052.h: made parseable with lint
3464         * device/include/mcs51/lint.h: added include file for (sp)lint
3465         * doc/sdccman.lyx: added doc about use of splint (syntax checking tool)
3466         * doc/cdbfileformat.lyx,
3467         * doc/test_suite_spec.lyx: hardcoded date to the date of last text change
3468
3469 2005-05-14 Raphael Neider <rneider AT web.de>
3470
3471         * device/lib/pic16/Makefile.common.in: add --optimize-df to OPT_FLAGS
3472         * device/lib/pic16/libc/stdlib/itoa.c (new)
3473         * device/lib/pic16/libc/stdlib/Makefile: have itoa.c built
3474         * device/lib/pic16/libio/Makefile: exclude subdir according to
3475           ${subdir}.ignore for certain PICs (lacking e.g. i2c)
3476         * device/lib/pic16/libio/i2c.ignore (new): pic18f1220 has no I2C support
3477         * src/pic16/gen.c (genFunction): prevent annoying warning
3478         * src/pic16/pcode.c: renamed stack_t to dynstack_t to prevent
3479           nameclashes on BeOS
3480         * support/cpp2/cppmain.c (cpp_output_string): new
3481         * support/cpp2/cpplib.c (_cpp_do__Pragma): fixed _Pragma(""),
3482           fixes bug 1116802
3483
3484 2005-05-13 Borut Razem <borut.razem AT siol.net>
3485
3486         * src/SDCCmain.c (linkEdit): fixed bug 1195202
3487
3488 2005-05-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3489
3490         * .version: changed to version 2.5.1; back to bleeding edge development
3491
3492 2005-05-11 Borut Razem <borut.razem AT siol.net>
3493
3494         * doc/sdccman.lyx doc/cdbfileformat.lyx doc/test_suite_spec.lyx:
3495           generate PDF version 1.3 documents
3496
3497 2005-05-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3498
3499         * .version: changed to version 2.5.0
3500
3501 2005-04-27 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3502
3503         * doc/sdccman.lyx: updated weblinks, index and smaller updates
3504
3505 2005-04-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3506
3507         * doc/sdccman.lyx: changed version 2.5.0, documented --std-c89,
3508         --std-sdcc89, --std-c99, --std-sdcc99, and the corresponding #pragmas, as
3509         well as many smaller updates.
3510         * .version: changed to version 2.5.0-pre1
3511
3512 2005-04-26 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3513
3514         * src/SDCCmain.c (setIncludePath): added port->target to SDCC_INCLUDE_NAME
3515
3516 2005-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
3517
3518         * support/regression/tests/bug1185672.c: added
3519         * src/mcs51/gen.c (aopGetUsesAcc, genCpl, genAnd, genOr, genXor): fixed
3520           bug 1185672
3521         * src/mcs51/gen.c (genCall): added comments, made it look safer
3522         * src/mcs51/gen.c (genEndFunction): simplified
3523
3524 2005-04-25 Maarten Brock <sourceforge.brock AT dse.nl>
3525
3526         * src/mcs51/ralloc.c (serialRegAssign): fixed bug 1189609
3527
3528 2005-04-14 Borut Razem <borut.razem AT siol.net>
3529
3530         * fixed bug 1045046 - SIGSEGV with really simple code?:
3531           src/pic/pcode.c (pCodeInitRegisters)- pseudo stack size increased to 16
3532           src/pic/ralloc.c (typeRegWithIdx) - error message on pseudo stack overflow
3533
3534 2005-04-14 Borut Razem <borut.razem AT siol.net>
3535
3536         * src/pic16/gen.c (genInline), src/pic16/main.c (_process_pragma),
3537           src/pic16/device.h: temporarily disabled experimental #inline pragma
3538           for 2.5.0 release
3539
3540 2005-04-14 Maarten Brock <sourceforge.brock AT dse.nl>
3541
3542         * device/include/z80/stdio.h,
3543         * device/include/z80/string.h: removed these highly incomplete files so
3544           SDCC can use the default ones in device/include/
3545
3546 2005-04-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3547
3548         * src/mcs51/gen.c (genEndFunction): removed unused variable to fix
3549         gcc warning.
3550         * device/lib/Makefile.in: default PORTINCDIR to the mcs51 subdir to
3551         fix sdcpp warnings.
3552
3553 2005-04-12 Maarten Brock <sourceforge.brock AT dse.nl>
3554
3555         * device/include/malloc.h: removed redundant __reentrant prototypes
3556         * device/lib/_mullong.c: added working xstack variant in asm (C version
3557           doesn't pass regression tests)
3558         * device/lib/bpx.c: used __data and made bpx char for mcs51
3559         * src/SDCCast.c (decorateType): removed unused GPTYPE_IDATA,
3560           (createFunction): fixed bug with xstackPtr
3561         * src/SDCCcse.c: corrected comments
3562         * src/SDCCopt.c (convertToFcall): fixed warning in MSVC,
3563           (killDeadCode, eBBlockFromiCode): removed unused code
3564         * src/SDCCsymt.h: removed unused GPTYPE_GPTR and GPTYPE_IDATA,
3565           corrected comments
3566         * src/mcs51/gen.c (aopForSym, aopPut, toBoolean, unsaveRegisters,
3567           assignResultValue, genCall, genFunction, genEndFunction, genAnd,
3568           genOr, genXor, genAddrOf): fixed several bugs concerning xstack
3569           (genModOneByte): fixed warning in MSVC
3570         * src/mcs51/main.c (): added comments
3571         * src/mcs51/peeph.def: changed 129 to 129.a, added 129.b, 129.c & 129.d
3572
3573 2005-04-12 Maarten Brock <sourceforge.brock AT dse.nl>
3574
3575         * src/SDCCmain.c (linkEdit): oops, changed one line too many
3576
3577 2005-04-11 Maarten Brock <sourceforge.brock AT dse.nl>
3578
3579         * src/SDCCmain.c (linkEdit): fixed bug with finding crt0.o for z80
3580
3581 2005-04-10 Vangelis Rokas <vrokas AT users.sourceforge.net>
3582
3583         * src/pic16/glue.c (printIvalChar): fixed bug when emitting
3584         characters arrays of larger size than the declared one.
3585
3586 2005-04-10 Borut Razem <borut.razem AT siol.net>
3587
3588         * src/pic/gen.c (genInline),
3589           src/pic/pcode.c (newpCodeAsmDir), (pCode2str),
3590           (genericPrint), (unlinkpCodeFromBranch), (compareLabel),
3591           (findNextInstruction), (findPrevInstruction),
3592           (findInstructionUsingLabel),
3593           src/pic/pcode.h: fixed bug #1164907 - Labels not being recognized
3594         * src/pic/pcode.c (findLabel): added missing '\n'
3595         * src/src.dsp: added SDCCdwarf2.c to the project
3596
3597 2005-04-09 Borut Razem <borut.razem AT siol.net>
3598
3599         * support/scripts/sdcc.nsi: added include/hc08/* h to NSIS setup
3600
3601 2005-04-08 Raphael Neider <rneider AT web.de>
3602
3603         * src/pic16/pcode.c: added helpers defmapInsertAfter (insert a new item
3604           into the chain after a given one) and mergeDefmapSymbols (combine
3605           defmap entries for each symbol per pcode)
3606         * (createDefmap): have defmap entries merged in the end
3607         * (defmapReplaceSymRef): split defmap entries covering two accesses to
3608           a symbol before replacing one access type's symbol, merge symbols in
3609           the end (replacement symbol might already have an entry)
3610         * (assignValnums): keep reference to written WREG intact
3611
3612 2005-04-08 Raphael Neider <rneider AT web.de>
3613
3614         * src/pic16/pcode.c (struct defmap_s): named anonymous union (for
3615           Alpha)
3616
3617 2005-04-08 Vangelis Rokas <vrokas AT users.sourceforge.net>
3618
3619         * src/pic16/pcode.c (pic16_get_op2): enlarged size of array b to 128
3620         bytes
3621
3622 2005-04-07 Raphael Neider <rneider AT web.de>
3623
3624         * device/include/pic16/usart.h: added compatibility defines for
3625           devices with more than one USART
3626         * device/include/pic16/pic18f[68][567]20.h: activated above defines
3627
3628 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
3629
3630         * device/lib/Makefile.in: updated for port specific include
3631
3632 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
3633
3634         * support/regression/ports/mcs51/spec.mk: added mcs51 include
3635
3636 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
3637
3638         * device/include/8051.h,
3639         * device/include/8052.h,
3640         * device/include/at89S8252.h,
3641         * device/include/at89c55.h,
3642         * device/include/at89x051.h,
3643         * device/include/at89x51.h,
3644         * device/include/at89x52.h,
3645         * device/include/mcs51reg.h,
3646         * device/include/reg51.h,
3647         * device/include/reg764.h,
3648         * device/include/regc515c.h,
3649         * device/include/sab80515.h: (re)moved these 12 files
3650         * device/include/mcs51/8051.h,
3651         * device/include/mcs51/8052.h,
3652         * device/include/mcs51/at89S8252.h,
3653         * device/include/mcs51/at89c55.h,
3654         * device/include/mcs51/at89x051.h,
3655         * device/include/mcs51/at89x51.h,
3656         * device/include/mcs51/at89x52.h,
3657         * device/include/mcs51/mcs51reg.h,
3658         * device/include/mcs51/reg51.h,
3659         * device/include/mcs51/reg764.h,
3660         * device/include/mcs51/regc515c.h,
3661         * device/include/mcs51/sab80515.h: and added them here
3662
3663 2005-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
3664
3665         * device/include/stdarg.h: changed SDCC specific keywords to double
3666           underlined form.
3667         * device/include/stdint.h: changed intptr_t and uintptr_t for others than
3668           mcs51 and ds390.
3669         * device/include/hc08/mc68hc908gp32.h,
3670         * device/include/hc08/mc68hc908jb8.h,
3671         * device/include/hc08/mc68hc908jkjl.h,
3672         * device/include/hc08/mc68hc908qy.h: fixed comments
3673         * device/include/mcs51/README: updated
3674         * device/include/mcs51/c8051f120.h: added PINRSF
3675         * device/lib/pic16/libc/stdlib/crc16.c: fixed comments
3676         * src/pic16/pcode.c: MSVC6 doesn't accept declaring new variables
3677           amidst code. Also inline is not supported.
3678
3679 2005-04-06 Raphael Neider <rneider AT web.de>
3680
3681         * src/pic16/pcode.c (pic16_pCodeReplace): also update pcflow->end
3682         * (createDefmap): fixed CALLs to depend on FSR1 and RETLW to restore
3683           callers stack/frame pointers
3684
3685 2005-04-06 Vangelis Rokas <vrokas AT users.sourceforge.net>
3686
3687         * device/include/pic16/usart.h: added, missing in previous commit,
3688         * device/include/pic16/adc.h: fixed typo,
3689         * device/lib/pic16/libc/utils/cvtdec.S: added missing in previous
3690         commit,
3691         * device/lib/pic16/libc/stdlib/g_ftoa.S: modified to include
3692         <p18fxxx.inc>
3693         * device/lib/pic16/libc/stdio/streams.c: leave stdin, stdout
3694         uninitialized because a bug appears with gplink
3695         * device/lib/pic16/{some makefiles}: moved $(CSTD) from CFLAGS to
3696         COMPILE_FLAGS and added CPPFLAGS with -nostdinc because sdcpp
3697         complains for unrecognised option
3698
3699 2005-04-05 Raphael Neider <rneider AT web.de>
3700
3701         * src/pic16/gen.c (pic16_popCopyReg): made copying work for extended
3702           structs as well (using memcpy)
3703         * (genFunction): fixed comparison, used pCodeOpLabel to reduce warning
3704           on ISRs (GOTO has no label)
3705         * src/pic16/device.h: added OF_OPTIMIZE_DF
3706         * src/pic16/main.c: added compiler switch --optimize-df to enable the
3707           new data flow analysis/optimization
3708         * src/pic16/pcode.c: added (prototypes for and implementation of)
3709           dataflow analysis functions, fixed pCodeInstructions' inCond and
3710           outCond values, made RCALL a branch instruction
3711         * (pic16_unlinkpCode): keep C line if possible
3712         * (pic16_pCodeUnlink): removed cast on left side of assignment, have
3713           C line moved if possible
3714         * (pic16_getRegFrompCodeOp): NEW, improved version of...
3715         * (pic16_getRegFromInstruction,pic16_getRegFromInstruction2): changed
3716           to use new pic16_getRegFrompCodeOp (works for more SFRs)
3717         * (pic16_BuildFlow): fixed skip instructions with label (did not start
3718           new flow)
3719         * (pic16_getJumptabpCode): NEW, needed in...
3720         * (LinkFlow): fixed handling of jumptables, calls and conditional
3721           branches
3722         * (pic16_InsertCommentAfter): NEW
3723         * (pic16_pCodeReplace): made verbose and flow preserving
3724         * (AnalyzeFlow): added call to data flow analysis
3725         * src/pic16/pcode.h: added defmaps to pCodeFlow struct
3726         * src/pic16/pcodeflow.h: added PCC_STATUS to mean all STATUS bits
3727         * src/pic16/ralloc.c (packRegsForAssign): added return 1 in the end
3728
3729 2005-04-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3730
3731         * src/SDCCast.c (decorateType): fixed bug #1105626
3732
3733 2005-04-02 Vangelis Rokas <vrokas AT users.sourceforge.net>
3734
3735         * device/include/asm/pic16/features.h,
3736         * pic18f*.h headers,
3737         * device/include/pic16/adc.h,
3738         * device/include/pic16/delay.h,
3739         * device/include/pic16/i2c.h,
3740         * device/include/pic16/malloc.h,
3741         * device/include/pic16/stdio.h,
3742         * device/include/pic16/stdlib.h,
3743         * device/include/pic16/string.h,
3744         * device/lib/pic16/libc/stdio/printf_tiny.c,
3745         * device/lib/pic16/libc/stdio/printf_small.c,
3746         * device/lib/pic16/libc/stdio/strmgpsim.c,
3747         * device/lib/pic16/libc/stdio/strmmssp.c,
3748         * device/lib/pic16/libc/stdio/strmusart.c,
3749         * device/lib/pic16/libc/stdio/vfprintf.c,
3750         * device/lib/pic16/libc/stdlib/ltoa.c,
3751         * device/lib/pic16/libc/stdlib/putchar.c,
3752         * device/lib/pic16/libc/stdlib/x_ftoa.c,
3753         * device/lib/pic16/libc/stdlib/memchrpgm.c,
3754         * device/lib/pic16/libc/stdlib/memchrram.c,
3755         * device/lib/pic16/libc/stdlib/memcpypgm2ram.c,
3756         * device/lib/pic16/libc/stdlib/memcpyram2ram.c,
3757         * device/lib/pic16/libio/adc/adcbusy.c,
3758         * device/lib/pic16/libio/adc/adcread.c,
3759         * device/lib/pic16/libio/adc/adcsetch.c,
3760         * device/lib/pic16/libio/usart/ubaud.c,
3761         * device/lib/pic16/libio/usart/ubusy.c,
3762         * device/lib/pic16/libio/usart/udrdy.c,
3763         * device/lib/pic16/libio/usart/uopen.c,
3764         * device/lib/pic16/libio/usart/uputc.c,
3765         * device/lib/pic16/libsdcc/gptr/gptrget1.c,
3766         * device/lib/pic16/libsdcc/gptr/gptrget2.c,
3767         * device/lib/pic16/libsdcc/gptr/gptrget3.c,
3768         * device/lib/pic16/libsdcc/gptr/gptrget4.c,
3769         * device/lib/pic16/libsdcc/gptr/gptrput1.c,
3770         * device/lib/pic16/libsdcc/gptr/gptrput2.c,
3771         * device/lib/pic16/libsdcc/gptr/gptrput3.c,
3772         * device/lib/pic16/libsdcc/gptr/gptrput4.c: modified all SDCC
3773         specific keywords to double underlined form,
3774         * device/lib/pic16/libc/Makefile.rules,
3775         * device/lib/pic16/libsdcc/Makefile.rules,
3776         * device/lib/pic16/libm/Makefile,
3777         * device/lib/pic16/libio/Makefile.rules: added CSTD macro in CFLAGS
3778         to compile with C standard set in Makefile.common
3779         * device/lib/pic16/libc/stdlib/Makefile: added new C sources
3780         rand.c and crc.c in compilation process,
3781         * device/lib/pic16/libsdcc/int/divuint.c,
3782         * device/lib/pic16/libsdcc/long/divulong.c: changed declaration of
3783         `c' from signed to unsigned,
3784         * device/lib/pic16/startup/crt0.c,
3785         * device/lib/pic16/startup/crt0i.c,
3786         * device/lib/pic16/startup/crt0iz.c: adopted to all SDCC specific
3787         keywords to double underlined form, bug fixes in _do_cinit function
3788         which prevented the correct initialization of the .idata segment,
3789         * src/pic16/pcoderegs.c (insideLRBlock): fixed a bug that caused the
3790         core to enter a infinite loop
3791         * device/lib/pic16/libc/stdlib/rand.c, crc.c: new files
3792
3793 2005-04-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3794
3795         * src/SDCCicode.c (getArraySizePtr): fixed bug #1122171
3796
3797 2005-04-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3798
3799         * device/include/Makefile.in: add support for hc08 subdirectory
3800         * device/include/hc08/: new subdirectory
3801         * device/include/hc08/mc68hc908jkjl.h: new header contributed by
3802         Lucas Loizaga, thanks!
3803         * device/include/hc08/mc68hc908qy.h,
3804         * device/include/hc08/mc68hc908gp32.h,
3805         * device/include/hc08/mc68hc908jb8.h: moved hc08 register defs to
3806         their own directory. Changed internal macro names to use the compiler
3807         reserved namespace. Changed SDCC specific keywords to double
3808         underlined form.
3809         * device/include/math.h,
3810         * device/include/malloc.h,
3811         * device/include/stdarg.h,
3812         * device/include/stdbool.h
3813         * device/include/string.h,
3814         * device/include/tinibios.h,
3815         * device/include/ds400rom.h,
3816         * device/include/8051.h,
3817         * device/include/8052.h,
3818         * device/include/80c51xa.h,
3819         * device/include/at89c55.h,
3820         * device/include/at89S8252.h,
3821         * device/include/at89x51.h,
3822         * device/include/at89x52.h,
3823         * device/include/ds80c390.h,
3824         * device/include/reg764.h,
3825         * device/include/regc515c.h,
3826         * device/include/sab80515.h,
3827         * device/include/mcs51/c8051f000.h,
3828         * device/include/mcs51/c8051f018.h,
3829         * device/include/mcs51/c8051f020.h,
3830         * device/include/mcs51/c8051f040.h,
3831         * device/include/mcs51/c8051f060.h,
3832         * device/include/mcs51/c8051f120.h,
3833         * device/include/mcs51/c8051f300.h,
3834         * device/include/mcs51/c8051f310.h,
3835         * device/include/mcs51/c8051f320.h,
3836         * device/include/mcs51/c8051f330.h,
3837         * device/include/mcs51/c8051f350.h,
3838         * device/include/z180.h: Changed SDCC specific keywords to double
3839         underlined form.
3840
3841 2005-03-31 Vangelis Rokas <vrokas AT users.sourceforge.net>
3842
3843         * src/pic16/device.c (Pics16[]): added devices 18F2550, 18F4331,
3844         18F4455,
3845         * (pic16_assignConfigWordValue): disable testing of configuration
3846         register value with config mask,
3847         * src/pic16/gen.c (pic16_testStackOverflow): prefix stack test
3848         function with port->fun_prefix,
3849         * (genFunction): when generating a naked interrupt function never
3850         create an absolute segment placed in interrupt vector address, place
3851         the actual interrupt function at IVA instead, when an interrupt
3852         function is generated with unspecified interrupt then do not create
3853         the absolute section,
3854         * (genGenPointerGet, genGenPointerSet, genPackBits): replace all
3855         code for generating a call to generic pointer get/put function with
3856         a call to function pic16_callGenericPointer(),
3857         * src/pic16/genutils.c (pic16_callGenericPointerRW): NEW, generates
3858         the call to the generic pointer get/put functions with prefixing the
3859         function name with port->fun_prefix,
3860         * src/pic16/glue.c (pic16glue): ifdef-out test of OF_LR_SUPPORT,
3861         * src/pic16/main.c (_process_pragma): prefix function with
3862         port->fun_prefix,
3863         * (_pic16_finaliseOptions): define macro __18Fxxxx macro when
3864         calling assembler, old 18Fxxxx macro is deprecated,
3865         * src/pic16/pcode.c (unlinkpCodeFromBranch): added PC_INLINE and
3866         PC_ASMDIR in while condition,
3867         * (findInstruction): add PC_ASMDIR in while condition,
3868         * (buildCallTree): prefix main with port->fun_prefix,
3869         * (pic16_pCode2str): fixed bug that didn't emit the memory access
3870         identifier for variable with banked access in instructions BTFSS,
3871         BTFSC, BCF, BSF, BTG
3872         * (AnalyzeFlow): moved call to OptimizepCode to pic16_AnalyzeBanking,
3873         * src/pic16/pcodepeep.c (pCodeOpCompare): increase size of b to 1024,
3874         * src/pic16/pcoderegs.c (pic16_pCodeRegoptimizeRegUsage): don't
3875         perform optimization when enviroment variable NO_REG_OPT is set,
3876         * (insideLRBlock): NEW, return 1 if register is inside an
3877         INF_LOCALREGS block,
3878         * (RemoveRegFromLRBlock): remove a register that is completely
3879         eliminated by register optimization, but it is still left in local
3880         register store/restore in/from stack block,
3881         * (Remove2pcodes): after removing register, check to see if it
3882         should be removed from local register store/restore in/from stack
3883         block,
3884         * src/pic16/ralloc.c (pic16_decodeOp): added decode for
3885         DUMMY_READ_VOLATILE,
3886
3887         * device/include/pic16/adc.h: minor prototype modifications and
3888         update,
3889         * device/include/pic16/malloc.h: added GPL notice various
3890         modifications,
3891         * device/include/pic16/stdint.h: NEW, standard header for ints
3892         * device/include/pic16/delay.h: NEW, header for delay functions,
3893         delay10tcy, delay100tcy, delay1ktcy, delay10ktcy, delay100ktcy,
3894         delay1mtcy,
3895         * device/include/pic16/signal.h: NEW, header providing helper macros
3896         for implementing signal handlers,
3897         * device/include/pic16/stdio.h: added prototypes for functions,
3898         printf, vprintf, sprintf, vsprintf, fprintf, vfprintf. Added
3899         prototypes for stdin and stdout, added macro PUTCHAR to
3900         automatically implement putchar function prototype,
3901         * device/include/pic16/usart.h: modified and updated USART library,
3902         * device/lib/pic16/libio/adc/,
3903         * device/lib/pic16/libio/i2c: some modifications to improve library
3904         performance,
3905         * device/lib/pic16/libc/stdio/: modifications for the new printf*
3906         family of functions,
3907         * device/lib/pic16/libc/stdlib/: various modifications in the malloc
3908         family of functions and other sources,
3909         * device/lib/pic16/libio/usart/: NEW, c sources for the usart module
3910         of the PIC18Fxx[28] devices,
3911         * device/lib/pic16/libc/delay/: NEW, c sources for the delay functions,
3912         * device/lib/pic16/libc/utils/: minor modifications in the .S sources,
3913         * device/lib/pic16/startup/{crt0i.c, crt0iz.c}: redesign of the
3914         _do_cinit function, because the previous failed when local variables
3915         where not placed in the same memory bank,
3916         * device/lib/pic16/libsdcc/char/: various modifications to improve
3917         library performance,
3918         * doc/sdccman.lyx: some reorganization of the PIC16 part, added many
3919         information on the new functions of the c library and more...
3920
3921 2005-03-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3922
3923         * src/SDCCBBlock.c (iCodeBreakDown): fixed bug #1170212
3924
3925 2005-03-26 Raphael Neider <rneider AT web.de>
3926
3927         * src/pic16/gen.c (genSkipc): fixed semantics (execute branch
3928           if condition == CARRY)
3929         * (genCmp): adapted to new genSkipc semantics
3930         * src/pic16/genutils.c (pic6_genCmp_special): removed side effect
3931           on rIfx (genCmp was broken)
3932
3933 2005-03-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3934
3935         * src/SDCCmain.c (setDefaultOptions, optionsTable[], parseCmdLine),
3936         * src/z80/main.c (_keywords[]),
3937         * src/SDCCglobal.h (struct options),
3938         * src/SDCC.y,
3939         * src/SDCC.lex (isTargetKeyword, doPragma, pragma_tbl[]): new pragmas
3940         to enable/disable SDCC and C99 extensions/keywords (std_c89, std_sdcc89,
3941         std_c99, std_sdcc99). Also, equivalent command line options (--std-c89,
3942         --std-sdcc89, --std-c99, --std-sdcc99). SDCC specific keywords are
3943         always available in leading double underscore form. The C99 support is
3944         mostly missing, but it's a start.
3945         * support/regression/tests/bug-227710.c: fixed nonconforming use of
3946         reserved identifier "__data".
3947
3948 2005-03-24 Maarten Brock <sourceforge.brock AT dse.nl>
3949
3950         * src/mcs51/peeph.def: fixed bug 1170013
3951
3952 2005-03-22 Maarten Brock <sourceforge.brock AT dse.nl>
3953
3954         * device/include/mcs51reg.h: fixed bug 842007
3955
3956 2005-03-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3957
3958         * src/SDCCcflow.c (dfNumCompare): committed the wrong version of this
3959         last time.
3960
3961 2005-03-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3962
3963         * src/port.h (struct PORT),
3964         * src/avr/ralloc.c (avr_assignRegisters),
3965         * src/avr/main.c,
3966         * src/ds390/ralloc.c (ds390_assignRegisters),
3967         * src/ds390/main.c,
3968         * src/hc08/ralloc.c (hc08_assignRegisters),
3969         * src/hc08/main.c,
3970         * src/mcs51/ralloc.c (mcs51_assignRegisters),
3971         * src/mcs51/main.c,
3972         * src/pic/ralloc.c (pic14_assignRegisters),
3973         * src/pic/main.c,
3974         * src/pic16/ralloc.c (pic16_assignRegisters),
3975         * src/pic16/main.c,
3976         * src/xa51/ralloc.c (xa51_assignRegisters),
3977         * src/xa51/main.c,
3978         * src/z80/ralloc.c (z80_assignRegisters),
3979         * src/z80/ralloc.h,
3980         * src/SDCCopt.c (eBBlockFromiCode, replaceRegEqv, killDeadCode),
3981         * src/SDCCcse.c (ifxOptimize, cseBBlock, cseAllBlocks),
3982         * src/SDCCcse.h,
3983         * src/SDCCdflow.c (computeDataFlow),
3984         * src/SDCCdflow.h,
3985         * src/SDCCloop.c (addDefInExprs, loopInvariants, loopOptimizations),
3986         * src/SDCCloop.h,
3987         * src/SDCCcflow.c (*),
3988         * src/SDCCcflow.h,
3989         * src/SDCCBBlock.c (iCodeBreakDown, dumpEbbsToFileExt, eBBWithEntryLabel),
3990         * src/SDCCBBlock.h (struct ebbIndex): new struct that keeps two copies
3991         of the eBBlock list, sorted by both bbnum and dfnum. (fixes bug with
3992         immedDom() returning wrong block; probably fixes bug #1160833)
3993
3994 2005-03-20 Borut Razem <borut.razem AT siol.net>
3995
3996         * support/scripts/inc2h.pl: WIN32 port
3997
3998 2005-03-19 Maarten Brock <sourceforge.brock AT dse.nl>
3999
4000         * device/lib/makefile.in: added abs.c and labs.c
4001
4002 2005-03-17 Maarten Brock <sourceforge.brock AT dse.nl>
4003
4004         * device/include/stdint.h: added
4005         * device/lib/abs.c: added
4006         * device/lib/labs.c: added
4007         * device/include/stdlib.h: added abs() and labs() prototypes
4008         * device/lib/libsdcc.lib: added abs and labs
4009         * device/include/float.h,
4010         * device/lib/_fsmul.c,
4011         * device/lib/printf_fast.c,
4012         * device/lib/printf_tiny.c: updated comments
4013
4014 2005-03-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4015
4016         * src/SDCCicode.c (geniCodeSwitch, geniCodeJumpTable): fixed
4017         bug #1164313
4018
4019 2005-03-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4020
4021         * src/SDCCcse.c (cseBBlock): retain assignment to self when volatile
4022         * src/SDCCast.c (isLoopCountable): fixed bug #1161985
4023
4024 2005-03-15 Maarten Brock <sourceforge.brock AT dse.nl>
4025
4026         * device/lib/printf_large.c: removed inline assembly for portability and
4027           readability. Use printf_fast if speed or size are more important.
4028         * src/pic16/gen.c: removed conditions around use of DEBUGpc
4029         * src/pic16/genutils.h: added define for DEBUGpc for MSVC
4030
4031 2005-03-15 Vangelis Rokas <vrokas AT users.sourceforge.net>
4032
4033         * src/pic16/genutils.c (pic16_genCmp_special): initialized offs to
4034         prevent compiler warning
4035
4036 2005-03-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
4037
4038         * device/lib/pic16/startup/crt0i.c (_cinit): local variables where
4039         moved to level 0 and declared as static. Also they are explicit
4040         placed in access bank. This was necessery because some times they
4041         might cross memory bank boundaries. crt0iz.c is *NOT* updated!!!
4042         * src/pic16/device.h: added flag OPTIMIZE_CMP to enable some compare
4043         optimizations. Currently only compare to unsigned char is implemented,
4044         * src/pic16/gen.c: added fReturnIdx array,
4045         * (struct resolvedIfx) is moved to gen.h and made public,
4046         * (struct _G): added sregsAlloc and sregsAllocSet fields,
4047         * (aopForSym): added an optimization to directly store in stack of
4048         the operand of a SEND iCode,
4049         * (pic16_aopOp): don't return return registers as strings (AOP_STR)
4050         but as registers instead (AOP_REG) using the fReturnIdx array,
4051         * (pic16_freeAsmop): remove the freed register from the
4052         _G.sregsAlloc field,
4053         * (pic16_aopGet): in case AOP_STR, the compare to 'a' is changed to
4054         a compare of 'WREG',
4055         * (pic16_popGetTempRegCond): changed function prototype, now
4056         function takes also a bitVector argument v which holds the current
4057         set of registers that are allocated for stack access by aopForSym,
4058         registers allocated in aopForSym for accessing stack symbols are not
4059         any more part of the functions usedRegs field,
4060         * (genCall): some times aopOp is called for a stack variable to be
4061         send, aopForSym might perform the push, if this is true make sure
4062         that genCall doesn't push the variable twice by testing _G.resDirect,
4063         * (genFunction): changed testing for unspecified interrupt number
4064         from 256 to INTNO_UNSPEC,
4065         * modified selection scheme of frame pointer generation. Previously
4066         if function did use local registers a frame pointer was generated,
4067         now a frame pointer is generated only if function has arguments
4068         (that need PLUSW2 register access), or has stack arguments, or the
4069         compiler is not instructed to omit the frame pointer,
4070         * (genEndFunction): before restoring local registers that were saved
4071         in the function preamble, also restore the registers that *might*
4072         have been allocated for stack access,
4073         * (genRet): removed some old comments,
4074         * (genCmp, the active (RN's) version): added a call to the
4075         pic16_genCmp_special function to perform the compare with a more
4076         robust and optimized way,
4077         * (genInline): a feature has been added in inline code generation,
4078         which allows a wildcard variable substitution when writing inline
4079         assembly. Code is incomplete and experimental therefore undocumented,
4080         * (genCast): changed order of aopOp for result and right to allow
4081         aopForSym to directly load the result if possible,
4082         * src/pic16/genutils.c (selectCompareOp, pic16_genCmp_special): NEW,
4083         perform an optimized compare on some selected special occasions,
4084         * src/pic16/genutils.h: declaration of resolvedIfx structure from gen.c,
4085         * src/pic16/glue.c (pic16createInterrupVect): make sure we never
4086         generate an IVT any more,
4087         * src/pic16/main.c (pic16_optionsTable): added command line option
4088         --optimize-cmp,
4089         * (_pic16_initPaths): when calling C preprocessor define pic18fXXXX
4090         macro too, when calling assembler define pic18fXXXX *and* __18Fxxxx
4091         macros,
4092         * src/pic16/NOTES: Raphael Neider added in list of active developers
4093         * src/pic16/pcode.c (OPT_TYPE_STR): added strings jumptable_begin and
4094         jumptable_end to prevent bug #,
4095         * (pic16_pciADDWFC, ADDFWC, COMF, CLRF): added some missing flags in
4096         inCond and outCond fields,
4097         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): add a fix for bug #,
4098         * src/pic16/ralloc.c (serialRegAssign): explicit set willCS to 0 to
4099         turn off register spilling,
4100         * (packRegsForOneUse): synced with other ports' versions although it
4101         is not used currently,
4102         * (pic16_packRegisters): added an optimization while reading
4103         structure bitfields, some registers may be saved (malloc code is
4104         decreased by 80 bytes)
4105
4106 2005-03-12 Vangelis Rokas <vrokas AT users.sourceforge.net>
4107
4108         * src/SDCCcse.c (cseBBlock): inside 'do operand lookup' loop test if
4109         left is a bitfield, if yes, then don't optimize assignment. Perhaps
4110         this can be optimized more?
4111
4112 2005-03-10 Raphael Neider <rneider AT web.de>
4113
4114         * src/pic16/gen.c (pic16_loadFSR0, genPackBits, genUnpackBits,
4115           genNearPointerGet): (hopefully) fixed access to bitfields via
4116           pointers (p->bitN = x; and x = p->bitN; failed)
4117
4118 2005-03-09 Paul Stoffregen <paul AT pjrc.com>
4119
4120         * device/lib/printf_fast.c: fix leading zero format, eg "%02d"
4121
4122 2005-03-09 Raphael Neider <rneider AT web.de>
4123
4124         * src/SDCCopt.c (killDeadCode): fixed bug #1156016
4125
4126 2005-03-06 Maarten Brock <sourceforge.brock AT dse.nl>
4127
4128         * src/SDCCicode.h: moved CRITICAL and ENDCRITICAL from SKIP_IC2 to SKIP_IC
4129         * src/mcs51/ralloc.c (willCauseSpill): added check for REG_BIT type,
4130           (regTypeNum): set REG_BIT type if necessary
4131         * src/mcs51/ralloc.h: added define REG_BIT, used to fix bug 1144613
4132         * support/regression/tests/critical.c: check bug 1144613
4133
4134 2005-03-02 Raphael Neider <rneider AT web.de>
4135
4136         * src/pic16/gen.c (genRightShiftLiteral): fixed bug #1154256
4137
4138 2005-02-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4139
4140         * src/avr/ralloc.c (serialRegAssign),
4141         * src/ds390/ralloc.c (serialRegAssign),
4142         * src/hc08/ralloc.c (serialRegAssign),
4143         * src/mcs51/ralloc.c (serialRegAssign),
4144         * src/pic/ralloc.c (serialRegAssign),
4145         * src/pic16/ralloc.c (serialRegAssign),
4146         * src/xa51/ralloc.c (serialRegAssign),
4147         * src/z80/ralloc.c (serialRegAssign): fixed bug #1105154
4148
4149 2005-02-22 Maarten Brock <sourceforge.brock AT dse.nl>
4150
4151         * src/SDCCast.c (decorateType): fixed bug 1124787
4152
4153 2005-02-20 Hubert Sack <sack AT digiplan.de>
4154         committed by Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4155
4156         * src/mcs51/peeph.def: added peepholes 3.h-k and 132.a-f from
4157         patch #1121755
4158
4159 2005-02-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4160
4161         * src/SDCCpeeph.def: new keyword "labelRefCountChange" which allows peepholes
4162         to keep the correct label reference count when adding/removing references
4163         to labels. A peephole file using this is appended to patch #1144962.
4164
4165 2005-02-14 Raphael Neider <rneider AT web.de>
4166
4167         * device/lib/pic16/libc/string/memccpy.c: changed 3rd argument to char
4168         * src/SDCC.lex (process_pragma): fixed to make disable_warning work for PIC16
4169         * src/pic16/gen.c (aopForSym, calls to pic16_aopOp): prevent unneccessary
4170           retrievals of result operand's value on assignment
4171
4172 2005-02-13 Vangelis Rokas <vrokas AT otenet.gr>
4173
4174         * device/include/pic16/string.h: modified prototype for memccpy()
4175         to memccpy(void *, void *, char, size_t)
4176         * src/pic16/gen.c (genFunction, genEndFunction): reenable if-case to
4177         check whether to omit frame pointer or not,
4178         * (genInline): convert all occurences of "\n" to LF in inline
4179         assembler blocks, this helps formatting the inline text,
4180         * (pic16_loadFSR0): modified prototype,
4181         * (genNearPointerGet, genNearPointerSet): reorganization of code,
4182         removed some 8051 legacy code,
4183         * (genPackBits): enabled handling bitfields exceeding one byte in size,
4184         * src/pic16/ralloc.c (pic16_assignRegisters): clear dynrIdx variable
4185         before allocating temporary registers in functions,
4186
4187 2005-02-11 Maarten Brock <sourceforge.brock AT dse.nl>
4188
4189         * support/regression/tests/bitvars.c: corrected the "fix"
4190
4191 2005-02-10 Maarten Brock <sourceforge.brock AT dse.nl>
4192
4193         * support/regression/tests/bitvars.c,
4194         * support/regression/tests/bitwise.c,
4195         * support/regression/tests/rotate.c: "fixed" problems on Alpha
4196
4197 2005-02-10 Raphael Neider <rneider AT web.de>
4198
4199         * src/pic16/pcode.c (assignToSameBank) : fixed cast to pointer of
4200           different size for Alpha
4201         * src/pic16/gen.c (genCmpEq) : improved compare with 0
4202
4203 2005-02-09 Raphael Neider <rneider AT web.de>
4204
4205         * src/SDCC.lex(doPragma) : save and restore warning options as well
4206           (also added new stack plus clone- and copyAndFreeSDCCERRG())
4207         * have #pragma less_pedantic set the errorlevel to WARNING
4208           (fixes #1117001)
4209         * (cloneOptimize) : fixed wrong malloc's size
4210         * support/Util/SDCCerr.[ch] : made SDCCERRG globally accessible to
4211           facilitate correct handling of #pragma (save|restore)
4212
4213 2005-02-09 Maarten Brock <sourceforge.brock AT dse.nl>
4214
4215         * src/mcs51/gen.c: removed non-standard C nameless struct/union
4216
4217 2005-02-04 Slade Rich <slade_rich AT users.sourceforge.net>
4218
4219         * src/pic/gen.c : Fix for bugs #1080519 & #1115662.
4220
4221 2005-02-03 Maarten Brock <sourceforge.brock AT dse.nl>
4222
4223         * device/include/mcs51/c8051f120.h: added declarations for sbit port 2,3&4
4224
4225 2005-02-02 Raphael Neider <rneider AT web.de>
4226
4227         * src/SDCCast.c (processParms): disabled W_NONRENT_ARGS for pic16 port
4228         * src/pic16/gen.c (aopForSym): reenabled special case for function pointers
4229         * (pic16_storeForReturn): fixed to allow returning function pointers
4230         * (genPackBits): improved accessing full bytes, implemented for GPOINTERs
4231         * device/include/pic16/{stddef.h,stdbool.h}: added
4232
4233 2005-02-02 Maarten Brock <sourceforge.brock AT dse.nl>
4234
4235         * device/include/mcs51/c8051f040.h: added define CPT2_PAGE
4236
4237 2005-02-01 Slade Rich <slade_rich AT users.sourceforge.net>
4238
4239         * src/pic16/pic16.dsp : Added file graph.c to make it compile under windows
4240         * src/pic16/Makefile.bcc : Do not use this file but added file graph.c as it
4241          appeared to be required
4242
4243 2005-01-31 Borut Razem <borut.razem AT siol.net>
4244
4245         * support/scripts/sdcc.nsi: added include/asm/ds390, include/asm/mcs51,
4246           include/mcs51 and include/z80 directories to the package
4247
4248 2005-01-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4249
4250         * src/hc08/gen.c (genFunction): fixed bug #1112752
4251
4252 2005-01-30 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4253
4254         * src/mcs51/peeph.def: adapted peephole 258.x to changed gen.c (genAnd)
4255
4256 2005-01-29 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4257
4258         * src/mcs51/gen.c (genAnd): accessing LSB/MSB by rotating acc
4259
4260 2005-01-29 Maarten Brock <sourceforge.brock AT dse.nl>
4261
4262         * device/include/Makefile.in: create/copy mcs51 and z80 include subdirs
4263
4264 2005-01-27 Maarten Brock <sourceforge.brock AT dse.nl>
4265
4266         * device/include/c8051fxxx.h: removed these 6 files
4267         * device/include/mcs51/c8051fxxx.h: added these 11 new files
4268
4269 2005-01-26 Raphael Neider <rneider AT web.de>
4270
4271         * src/pic16/gen.c (genAssign): fixed assignment from longs
4272           in codespace (were cut to three bytes)
4273         * (genDummyRead): implemented (except for CODESPACE...),
4274           fixed bug #1108575
4275         * src/pic16/glue.c (emitStatistics): beautified
4276         * device/lib/pic16/libm/Makefile: added include path
4277
4278 2005-01-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4279
4280         * src/z80/gen.c (aopPut): fixed bug #1103902
4281
4282 2005-01-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4283
4284         * device/lib/expf.c: fixed bug #1095792
4285
4286 2005-01-24 Vangelis Rokas <vrokas AT otenet.gr>
4287
4288         * device/lib/pic16/libm: added Math library sources
4289
4290 2005-01-24 Raphael Neider <rneider AT web.de>
4291
4292         * src/pic16/pcode.h: added second memory operand to pCodeOpReg
4293           to enable upcast to pCodeOpReg2 (there is no type tag to
4294           differenciate the two and pic16_popGet2p cast into PCOR2)
4295         * src/pic16/main.c (_process_pragma): fixed another malloc bug
4296           (sizeof(sectNames) changed to sizeof(sectName))
4297           Both patches fix segfaults under MinGW.
4298
4299 2005-01-23 Raphael Neider <rneider AT web.de>
4300
4301         * src/pic16/{device.c,pcode.c}: s/free/Safe_free/g for
4302           Safe_[mc]?alloc()'ed variables
4303         * src/pic16/gen.c (pic16_aopOp,pic16_popGet): added handling
4304           of (byte sized) temporaries (assign them to WREG for now)
4305         * src/pic16/main.c (_process_pragma): fixed nasty malloc bug
4306           (used sizeof(set *sectSyms) instead of sizeof(struct sectSym)),
4307           this might fix SIGSEGVs on MinGW...
4308         * src/SDCCopt.c (killDeadCode): restored original behaviour
4309           (volatile operands might get thrown away though)
4310
4311 2005-01-23 Vangelis Rokas <vrokas AT otenet.gr>
4312
4313         * src/pic16/gen.c: fixed bug #1106975,
4314         * src/pic16/gen.c: fixed possible bug #1102572, now during TOS
4315         pointer update, INTCON is saved, global interrupts are disabled and
4316         restored after updateing TOS.
4317         * src/SDCC.y, src/SDCC.lex, src/SDCCsymt.c, src/SDCCsymt.h:
4318         * added function attribute 'shadowregs' to take advantage of shadow
4319         registers,
4320         * added function attribute 'wparam' as an alternative to the wparam
4321         pragma,
4322         * support/Utils/SDCCerr.[ch]: added error E_SHADOWREGS_NO_ISR when
4323         user declares a non-ISR function as 'shadowregs',
4324         * doc/sdccman.lyx: updated to reflect recent changes of pic16 port
4325
4326 2005-01-22 Vangelis Rokas <vrokas AT otenet.gr>
4327
4328         * .version: bumped version number to 2.4.8
4329         * device/lib/pic16/pics.all: list of PIC18F devices supported by
4330         pic16 port,
4331         * device/lib/pic16/libio/i2c/: I2C module support library,
4332         * device/include/pic16/i2c.h: I2C support library header,
4333         * device/lib/pic16/libc/stdio/: standard IO support sources,
4334         * (printf_small.c): printf_small() source, supports float print,
4335         * (printf_tiny.c): printf_tiny() source, does not support floats,
4336         * device/lib/pic16/Makefile.common.in: added OPT_FLAGS macro to
4337         enable global optimizations for entire library source, other
4338         Makefiles in the source tree are also modified to reflect this,
4339         * device/lib/pic16/libc/stdlib/putchar.c (putchar): dummy putchar()
4340         function,
4341         * doc/sdccman.lyx: updated to reflect new changes,
4342         * src/pic16/gen.c (aopForSym): don't handle sym->iaccess in
4343         sym->onStack if-case,
4344         * src/pic16/main.c (_pic16_keywords): commented out keywords bit,
4345         sbit, idata, _idata, xdata, _xdata,
4346         * added pragma library, to link an external library, (see doc),
4347         * removed command line options, --pomit-config-words, --pomit-ivt,
4348         --pleave-reset-vector,
4349         * (pic16_finaliseOptions): when define macro SDCC_MODEL_{SMALL/LARGE}
4350         when calling assembler to reflect memory model used, also define
4351         macro STACK_MODEL_{SMALL/LARGE} when compiling and assembling to
4352         reflect stack model used,
4353         * src/pic16/ralloc.c (pic16_allocDirReg): when operand is allocated
4354         on stack return NULL,
4355
4356 2005-01-22 Daniel Winkler <post AT danielwinkler.de>
4357
4358         * src/SDCCopt.c (killDeadCode): do not throw iCodes away if one
4359           of the operands is volatile. Fixes #1020220
4360
4361 2005-01-22 Daniel Winkler <post AT danielwinkler.de>
4362
4363         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): reenabled optimization
4364         * (OptimizeRegUsage): make sure that there is really no other flow where
4365           the first pCode is used
4366
4367 2005-01-22 Raphael Neider <rneider AT web.de>
4368
4369         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): disabled optimization
4370           to fix #1106967 (pCode->seq are not set up correctly)
4371
4372 2005-01-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4373
4374         * src/SDCCglue.c (glue): make sure code area is declared before the
4375         static initialization area.
4376
4377 2005-01-21 Raphael Neider <rneider AT web.de>
4378
4379         * device/lib/Makefile.in: fixed test for pic16 install dir
4380         * device/lib/pic16/*/Makefile*: modified compile flags to enable
4381           optimizations
4382         * doc/sdccman.lyx: updated banksel optimization, removed --flr-support and
4383           added --optimize-goto compiler switch and pragma wparam documentation
4384         * src/pic16/pcode.c (pic16_OptimizeBanksel): removed statistics dump
4385         * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): fixed copying of WREG, PRODL
4386           and PRODH closing bug #1071770 (peephole optimizer)
4387
4388 2005-01-19 Raphael Neider <rneider AT web.de>
4389
4390         * src/SDCCglobl.h: ensure that PATH_MAX >= 2048 to guarantee
4391           cmdLine buffers (used when calling sdcpp...) are large enough
4392           (MAX_PATH=256 truncates arguments leading to system halts when
4393           used in MinGW...)
4394         * src/pic16/gen.c (pic16_sameRegs): relaxed size criterion
4395         * (genUminus): rewritten to for efficiency
4396         * (genNearPointer[GS]et): enforce reloading of FSR0 (was still
4397           used uninitialized in some cases)
4398         * (genCast): upcasting a 16bit int to a 24bit GPOINTER may not
4399           copy the third byte from the int -- now assumes 0x80 (data memory)
4400         * src/pic16/genarith.c (pic16_genPlus): fixed bug when swapping
4401           operands (genAddLit expects the iCode's operands to swapped as
4402           well), fixed leftover bytes (crashed for short left operands)
4403         * (pic16_genMinusDec): performance improvements, removed false
4404           PIC14 emitSKPNCs
4405         * (pic16_genMinus): fixed to cope with differently sized operands
4406         * src/pic16/glue.c (pic16_glue): added new banksel optimization
4407           for --obanksel > 1
4408         * src/pic16/pcode.c: implemented (first phase of) banksel optimization
4409         * src/pic16/graph.[ch]: implementation of directed graphs, used by
4410           new banksel optimization
4411         * src/pic16/pcoderegs.c (pCodeRegMapLiveRangesInFlow): prevented
4412           analysis for temporary registers (segfaults...)
4413         * src/pic16/peeph.def: added rule
4414
4415 2005-01-18 Vangelis Rokas <vrokas AT otenet.gr>
4416
4417         * device/lib/pic16/libc/stdlib/x_ftoa.c: it defines x_ftoa function
4418         which converts a float number to its ASCII representation
4419         * device/lib/pic16/libc/utils/cnvfrac.S,cnvint.S: support
4420         functions to convert the fractional and integer part of a float to ASCII,
4421         * device/lib/pic16/libc/stdlib/(calloc.c,free.c, malloc.c,
4422         realloc.c): added _MALLOC_SPEC to explicit place variables in data
4423         ram
4424         * device/include/asm/pic16/features.h: added _CODE, _DATA, _AUTOMEM,
4425         _STATMEM macros,
4426         * device/include/pic16/adc.h: added GPL info,
4427         * src/pic16/gen.c (genIfxpCOpJump): perform an genIfxJump but using
4428         a pCodeOp as tested operand,
4429         * (genNearPointerGet): optimized bit testing, does not use
4430         intermediate register for bit value, test directly instead with
4431         BTFSS, BTFSC, works only for single bits,
4432         * (genpic16Code): dump the name of the iCode in the asm,
4433         * src/pic16/ralloc.c (decodeOp): removed static declaration and
4434         renamed to pic16_decodeOp,
4435         * (serialRegAssign): do not allocate a temporary register for iCode
4436         sequences that test a single bit for 1/0
4437
4438 2005-01-12 Vangelis Rokas <vrokas AT otenet.gr>
4439
4440         * src/pic16/pcode.[ch]: introduced pic16_stackpnt_*,
4441         pic16_framepnt_*, pic16_stack_*, pic1_frame_* pointer variables to
4442         access stack and frame pointers. They are initially assigned to
4443         point at pic16_pc_fsr1[lh] and pic16_pc_fsr2[lh] variables and other
4444         accessing SFRs. Updated all occurences of modification of stack or
4445         frame pointer in gen.c and pcode.c,
4446         * src/pic16/ralloc.c (serialRegAssign): fixed two bugs with
4447         assigning of a literal value to pointers,
4448         * src/pic16/main.c (pic16_finiliseOptions): set pre-processor define
4449         flag STACK_MODEL_SMALL or STACK_MODEL_LARGE according to the model
4450         selected
4451
4452 2005-01-11 Vangelis Rokas <vrokas AT otenet.gr>
4453
4454         * doc/sdccman.lyx: update documentation about stack pragma, added
4455         some info for stack memory models
4456
4457 2005-01-08 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4458
4459         * src/pic16/gen.c (DEBUGpc): MSVC 6 does not support macro variable arguments
4460
4461 2005-01-08 Raphael Neider <rneider AT web.de>
4462
4463         * src/pic16/device.c (pic16_dump_usection): changed naming scheme for
4464           udata sections to fix bug #1097823
4465
4466 2005-01-05 Raphael Neider <rneider AT web.de>
4467
4468         * src/pic16/gen.c (genGenericShift): added handling of differently
4469           sized left operand and result
4470
4471 2005-01-04 Raphael Neider <rneider AT web.de>
4472
4473         * src/pic16/gen.c (genIfxJump): fixed inverted skips on CARRY
4474         * (genIfx): fixed (?) read from uninitialized SPIL_LOC (now assumes CARRY
4475           to hold the condition bit)
4476         * added new version of genCmp (old code available via #define)
4477         * added new version of genShiftLeft/genShiftRight in a generic
4478           way, now supports shifting by negative values
4479         * (genLeftShiftLiteral, genRightShiftLiteral): use absolute value of
4480           shiftCount (expected by genGenericShift)
4481         * src/pic16/genarith.c (genPlus): added code for adding CARRY+literal
4482         * src/pic16/pcode.c (pic16_OptimizeJumps): removed annoying statistics
4483           dump
4484         * (pic16_newpCodeOpLit): changed to cast to unsigned char (as e.g. -32766
4485           is an invalid literal too...)
4486
4487 2005-01-04 Vangelis Rokas <vrokas AT otenet.gr>
4488
4489         * src/pic16/gen.c (aopForSym, genEndFunction): applied some fixes
4490         from Raphael Neider,
4491         * src/pic16/pcode.c (pic16_newpCodeOpLit): removed casting to char
4492         for 8-bit literals. This fixes some literal operands which are sign
4493         extended to 16-bits ints when instruction needs only 8-bits.
4494
4495 2004-12-31 Paul Stoffregen <paul AT pjrc.com>
4496
4497         * device/lib/logf.c: added mcs51 assembly version
4498         * device/lib/expf.c: added mcs51 assembly version
4499         * device/lib/_logexpf.c: new shared asm code for expf and logf
4500         * device/include/math.h: add defines for assembly math library
4501         * device/lib/Makefile.in: build new _logexpf.c
4502         * device/lib/libfloat.lib: use new _logexpf.c
4503
4504 2004-12-29 Slade Rich <slade_rich AT users.sourceforge.net>
4505
4506         * src/pic/device.c
4507         * src/pic/pcode.c : adjusted internal stack and pre-allocated registers for
4508           device types which have less than 0x7f registers.
4509
4510 2004-12-29 Slade Rich <slade_rich AT users.sourceforge.net>
4511
4512         * src/pic/genarith.c : Fixed problem with subtraction where the result would not be updated when borrowing.
4513
4514 2004-12-28 Paul Stoffregen <paul AT pjrc.com>
4515
4516         * device/lib/printf_fast.c: only build on supported arch.
4517         * device/lib/printf_tiny.c: only build on supported arch.
4518         * device/lib/printf_fast_f.c: only build if asm float lib
4519         * device/lib/_fsget1arg.c: only build if asm float lib
4520         * device/lib/_fsget2args.c: only build if asm float lib
4521         * device/lib/_fsnormalize.c: only build if asm float lib
4522         * device/lib/_fsreturnval.c: only build if asm float lib
4523         * device/lib/_fsrshift.c: only build if asm float lib
4524         * device/lib/_fsswapargs.c: only build if asm float lib
4525         * device/include/stdio.h: don't provide print_fast,
4526           print_fast_f, print_tiny prototypes if --xstack used
4527
4528 2004-12-28 Maarten Brock <sourceforge.brock AT dse.nl>
4529
4530         * device/lib/sincosf.c (sincosf): don't invert bit/bool by ~
4531         * support/regression/ports/mcs51-stack-auto/spec.mk: added new _fs.. files
4532           to the SOURCES
4533
4534 2004-12-28 Paul Stoffregen <paul AT pjrc.com>
4535
4536         * device/lib/printf_fast_f.c: same as printf_fast, but
4537           with floating point enabled
4538         * device/lib/printf_fast.c: minor tweaks
4539         * device/include/stdio.h: add printf_fast_f
4540
4541 2004-12-27 Paul Stoffregen <paul AT pjrc.com>
4542
4543         * src/SDCCmain.c: make --float-reent default for mcs51
4544         * device/lib/_fsadd.c: added mcs51 assembly version
4545         * device/lib/_fssub.c: added mcs51 assembly version
4546         * device/lib/_fsmul.c: added mcs51 assembly version
4547         * device/lib/_fsdiv.c: added mcs51 assembly version
4548         * device/lib/_fseq.c: added mcs51 assembly version
4549         * device/lib/_fsneq.c: added mcs51 assembly version
4550         * device/lib/_fsgt.c: added mcs51 assembly version
4551         * device/lib/_fslt.c: added mcs51 assembly version
4552         * device/lib/_fscmp.c: shared code for fseq,fsgt,fslt,fsneq
4553         * device/lib/Makefile.in: add _fscmp to build
4554         * device/lib/libfloat.lib: add _fscmp to build
4555
4556 2004-12-27 Paul Stoffregen <paul AT pjrc.com>
4557
4558         * device/lib/_fs2slong.c: added mcs51 assembly version
4559         * device/lib/_fs2sint.c: added mcs51 assembly version
4560         * device/lib/_fs2schar.c: added mcs51 assembly version
4561         * device/lib/_fs2ulong.c: added mcs51 assembly version
4562         * device/lib/_fs2uint.c: added mcs51 assembly version
4563         * device/lib/_fs2uchar.c: added mcs51 assembly version
4564         * device/lib/_slong2fs.c: added mcs51 assembly version
4565         * device/lib/_sint2fs.c: added mcs51 assembly version
4566         * device/lib/_schar2fs.c: added mcs51 assembly version
4567         * device/lib/_ulong2fs.c: added mcs51 assembly version
4568         * device/lib/_uint2fs.c: added mcs51 assembly version
4569         * device/lib/_uchar2fs.c: added mcs51 assembly version
4570         * device/include/float.h: added #define to select asm vs c
4571
4572 2004-12-26 Paul Stoffregen <paul AT pjrc.com>
4573
4574         * device/lib/printf_fast.c: improvements to float output
4575         * device/include/float.h: add defines for assembly float library
4576         * device/lib/_fsget1arg.c: receive 1 float arg
4577         * device/lib/_fsget2args.c: receive 2 float args (reentrant)
4578         * device/lib/_fsnormalize.c: normalize a float
4579         * device/lib/_fsreturnval.c: return float, various helper routines
4580         * device/lib/_fsrshift.c: right shift a float's mantissa
4581         * device/lib/_fsswapargs.c: swap 2 floats
4582         * device/lib/Makefile.in: build these 6 new files for mcs51
4583         * device/lib/libfloat.lib: add these 6 files to the library
4584
4585 2004-12-26 Borut Razem <borut.razem AT siol.net>
4586
4587         * sim/ucsim/avr.src/arith_inst.cc: fixed bug #1088372- savr is not
4588           built by gcc 3.4.2
4589
4590 2004-12-25 Paul Stoffregen <paul AT pjrc.com>
4591
4592         * device/lib/printf_tiny.c: printf for mcs51 in only 267 bytes,
4593           and fully reentrant and register bank neutral.
4594         * device/lib/printf_fast.c: added float (not enabled by default),
4595           added compact/slower integer (also not enabled by default),
4596           improved size/speed of fast integer code, other minor changes
4597         * device/include/stdio.h, device/lib/Makefile.in,
4598           device/lib/libsdcc.lib: integrate printf_tiny into mcs51 build
4599
4600 2004-12-24 Maarten Brock <sourceforge.brock AT dse.nl>
4601
4602         * src/pic16/pcode.c: declaring variables other than at the start of a
4603           block is not supported in C by VC6.
4604
4605 2004-12-22 Vangelis Rokas <vrokas AT otenet.gr>
4606
4607         * applied a previous patch from Raphael Neider that wasn't included
4608         in the previous commits, which fixes infinite loops within jumptable
4609         improvements,
4610         * made some fixes that previous patches introduced
4611
4612 2004-12-21 Vangelis Rokas <vrokas AT otenet.gr>
4613
4614         * src/pic16/gen.c (pic16_aopGet): applied fix from Raphael Neider
4615         that fixes an issue with AOP_PCODE asmop's offset,
4616         * (pic16_popCopyReg): update instance field too,
4617         * (mov2w): modified to pic16_mov2w because it conflicts with mov2w
4618         function of pic port,
4619         * (genCmp, genAnd, genAssign),
4620         * src/pic16/genarith.c (genAddLit): some fixes from Raphael Neider,
4621
4622 2004-12-20 Vangelis Rokas <vrokas AT otenet.gr>
4623
4624         * src/SDCCast.c (gatherAutoInit): allow pic16 to emit static
4625         variables initial values to idata section,
4626         * src/SDCCicode.c (geniCodeCall): patch from ### to fix unreferenced
4627         variables in some functions. This utilizes parmBytes field of iCode
4628         structure to hold the offset of the variable in stack. (might be
4629         able to use the stack field too?)
4630         * applied patch from Raphael Neider # ### , # ###
4631         * src/pic16/glue.c (pic16emitRegularMap): fix to print static
4632         variable initial values in idata section,
4633         * src/pic16/ralloc.c (pic16_allocDirReg): don't allocate register
4634         for static variables with initial value
4635         * src/device/lib/pic16/libsdcc/float/ulong2fs.c (__ulong2fs):
4636         applied fix in while loop from Raphael Neider.
4637
4638 2004-12-19 Maarten Brock <sourceforge.brock AT dse.nl>
4639
4640         * src/ds390/gen.c (genCpl): fixed bit=~(char/bit) bugs, added warning
4641         * src/ds390/main.c (_ds390_regparm): don't pass bit params in registers
4642         * src/ds390/ralloc.c (serialRegAssign): spill bits
4643         * src/mcs51/gen.c (genCpl): fixed bit=~(char) bugs, added warning
4644         * support/Util/SDCCerr.c,
4645         * support/Util/SDCCerr.h: added warning W_COMPLEMENT for using bit=~(bit)
4646         * support/regression/tests/bitvars.c: added tests for bitwise complement(~)
4647         * support/regression/tests/bitwise.c: added test for bitwise complement(~)
4648
4649 2004-12-09 Maarten Brock <sourceforge.brock AT dse.nl>
4650
4651         * device/include/sdcc-lib.h: inserted LGPL, added includes
4652           asm/ds390/features.h and asm/mcs51/features.h
4653         * device/include/asm/default/features.h,
4654         * device/include/asm/gbz80/features.h,
4655         * device/include/asm/z80/features.h: added empty _AUTOMEM
4656           and _STATMEM
4657         * device/include/asm/ds390/features.h,
4658         * device/include/asm/mcs51/features.h: added files with defines for
4659           _AUTOMEM and _STATMEM indicating automatic and static storage class
4660         * device/lib/printf_large.c (_print_format): optimized & used _AUTOMEM
4661         * doc/sdccman.lyx: version 2.4.7, updated xstack documentation
4662         * src/SDCCicode.c (geniCodeCast),
4663         * src/SDCCsymt.c (compareType): allow cast of data-ptr to idata-ptr
4664         * src/SDCCloop.c (loopInduction): removed unused variable lr
4665         * src/SDCCopt.c (convilong, convertToFcall): moved "easy special case"
4666           to convertToFcall to include char modulo (RFE 1065037), added check
4667           if left operand is unsigned and use abs of literal value
4668         * src/SDCCpeeph.c (setFromConditionArgs): removed double quotes option
4669           as it doesn't work after conversion from peephole.def to peephole.rul
4670         * src/mcs51/gen.c (toBoolean): added check for size,
4671           (genModOneByte): optimized code for signed char modulo a literal
4672           power of 2 (thanks to Hubert Sack),
4673           (genRRC): removed unnecessary "clr c",
4674           (genRLC): replaced "add a,acc" with cheaper "rlc a"
4675         * src/mcs51/peeph.def: renamed 115 to 115.a, added rule 115.b: another
4676           jump optimization,
4677           swapped rules 256.c and 256.d,
4678           extended 256.d by using new multiple checks (thanks Erik),
4679           added rules 256.e and 256.f,
4680           updated rule 261.a and 261.b to new generated code
4681         * support/regression/tests/muldiv.c: added test div/mod by a power of 2
4682
4683 2004-12-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4684
4685         * src/SDCCloop.c (basicInduction, loopInduction): fixed several
4686           induction related bugs, including first part of bug #1074377
4687
4688 2004-12-05 Vangelis Rokas <vrokas AT otenet.gr>
4689
4690         * applied patch from bug-report #1076292,
4691         * applied patches for genAnd and Goto-optimizations for Raphael
4692         Neider,
4693         * src/SDCCicode.c (printOperand): fixed !REGA source to compile and
4694         dump a less iCode information,
4695         * src/pic16/device.h (pic16_options_t): added field debgen,
4696         * src/pic16/gen.h: added macros DUMP_FUNCTION_ENTRY,
4697         DUMP_FUNCTION_EXIT, FENTRY, FENTRY2,
4698         * src/pic16/gen.c (my_powof2): renamed to pic16_my_powof2 and made
4699         puclic,
4700         * (various functions): added macros FENTRY and FENTRY2 to functions,
4701         to emit function prologue,
4702         * (various functions): fixed indentation,
4703         * (genNearPointerGet): fixed loading of FSR0,
4704         * (genPackBits): applied patch from Raphael Neider to fix updating
4705         of FSR0 and touching only the modified bits,
4706         * src/pic16/genarith.c (various functions): added macros FENTRY to
4707         emit function prologue in comments,
4708         * src/pic16/pcode.h: added functions debugf2, debugf3,
4709         * src/pic16/ralloc.c: partial fix for packForPush caused
4710         segmentation fault,
4711
4712 2004-12-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4713
4714         * src/mcs51/peeph.def: added 261.a,b (16 bit rotate) by Stas Sergeev
4715           <stsp AT users.sourceforge.net> with reversed byte order
4716         * support/regression/tests/rotate.c: added (ds390 skips some tests)
4717
4718 2004-12-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4719
4720         * src/z80/gen.c (genLeftShift, genRightShift): fixed second part of
4721           bug #1074377
4722         * src/hc08/gen.c (genrshFour, shiftRLong, shiftLLong),
4723         * src/mcs51/gen.c (shiftLLong): Fixed some shifting bugs Frieder found
4724
4725 2004-12-02 Slade Rich <slade_rich AT users.sourceforge.net>
4726
4727         * src/pic/pcode.c : fixed a problem where banksel was not being inserted.
4728
4729 2004-12-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4730
4731         * src/SDCCpeeph.c (callFuncByName): support combined peephole rule
4732           conditions,
4733           (setFromConditionArgs): friendly operand parser for peephole rules,
4734           (operandBaseName, operandsNotRelated): new peephole condition
4735           "operandsNotRelated" -- similar to "operandsNotSame", but takes
4736           architecture specific register naming into account, handles n-way
4737           comparisons, and supports quoted literals
4738         * src/mcs51/peeph.def: restored rule 177.d with an extra condition
4739
4740 2004-12-02 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4741
4742         * src/mcs51/peeph.def: fixed bug #1076940
4743
4744 2004-12-02 Slade Rich <slade_rich AT users.sourceforge.net>
4745
4746         * device/include/pic/pic16f877.h : added an include file for the PIC16F877 device.
4747
4748 2004-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4749
4750         Adding support for replacing ljmps with sjmps in jumptables
4751         generated for switch statements. For now you need to set the
4752         environment variable SDCC_SJMP_JUMPTABLE to enable this.
4753         Now 4 algorithms for mcs51 jumptable generation are used:
4754         ljmp or sjmp jumptables for up to 16 cases, stack-pushing target
4755         addresses loaded pc-relative for up to 112 cases and stack-pushing
4756         target addresses loaded with offset from dptr for up to 256 cases.
4757
4758         * src/SDCCpeeph.c: added peephole conditional labelJTInRange
4759         * src/mcs51/main.c: adapted constants for switch table generation
4760         * src/mcs51/peeph.def: added 260.x for replacing ljmp with sjmp
4761
4762 2004-11-26 Maarten Brock <sourceforge.brock AT dse.nl>
4763
4764         * device/lib/printf_large.c (_print_format): fixed bug 1073386
4765         * support/regression/tests/bug1057979.c: added test for bug 1073386
4766
4767 2004-11-25 Vangelis Rokas <vrokas AT otenet.gr>
4768
4769         * src/pic16/pcode.c: fixed bug which may produce error in non-GNU
4770         compilers
4771
4772 2004-11-25 Vangelis Rokas <vrokas AT otenet.gr>
4773
4774         * src/pic16/device.h,
4775         * src/pic16/genarith.c,
4776         * src/pic16/glue.c,
4777         * src/pic16/main.c,
4778         * src/pic16/pcode.c: applied patches #1068154 and #1070213
4779
4780 2004-11-24 Vangelis Rokas <vrokas AT otenet.gr>
4781
4782         Large cummulative patch for pic16 port.
4783         * device/lib/pic16/gstack.h: NEW, user can specify its own handler
4784         to call when a stack overflow occurs,
4785         * (malloc.h): added CVS Id tag,
4786         * (pic18f{242,252,442,452}.h): added T0CONbits structure and
4787         variable,
4788         * added libc directory. The current version of LibC contains string
4789         functions, ctype functions and macros and some functions of the
4790         stdlib set (like malloc/free/atof/atoi etc...). All functions are to
4791         be extensively tested in the future. Standard disclaimer here.
4792         Library is not automatically build yet. But one can build it by
4793         invoking 'make' inside the libc directory.
4794         * added ADC library under libio. Preliminary version yet.
4795
4796         * src/pic16/gen.h: added emitTOGC macro, to toggle Carry flag,
4797         * src/pic16/gen.c (aopForRemat): asmop size is filled by
4798         aopForRemat() now and not by pic16_aopOp(),
4799         * (pic16_popGetTempReg): removed warning messgae when allocating
4800         temporary registers, its a buggy feature and will be removed,
4801         * (pic16_popGet): set register instance field in AOP_CRY,
4802         * (pic16_outBitC): fixed for results in size greater than 1,
4803         * (genUminusFloat): fixed for pic16, ported code from mcs51,
4804         * (pic16_storeForReturn): optimized return of 0,
4805         * (genCmp): experimental code for new genCmp which uses PIC18's
4806         special compare&skip instructions. Initial tests fail some times
4807         with variables grater than 1 byte in size, so new code is disabled,
4808         * (genUnpackBits, genPackBits): more optimizations in reading/writing,
4809         a single bit,
4810         * (genCast): began a fix to optimize the casting of a bit to another
4811         bit, now assigning a bitfield to another bitfield will fail, sorry,
4812         * src/pic16/main.c: disabled the use of lr-support feature,
4813         * src/pic16/pcode.h: renamed PCASMDIR to PCAD,
4814         * added some function prototypes, added function _debugf prototype,
4815         * src/pic16/pcode.c: (pic16_get_op): fixed emitting operands of register
4816         bits with offset (case PO_GPR_BIT),
4817         * (genericPrint): don't emit INFO pcode when --pcode-verbose not in
4818         command line,
4819         * (isBankInstruction): modified to return 0 for no banking instruction,
4820         and 1 for banking instruction,
4821         * (pic16_isPCinFlow): check for PCAD (assembler directives) too,
4822         caused stop processing pCodes after a inline assembly block,
4823         * (pic16_popCopyGPR2Bit): updated to match bitfields with offset,
4824         * src/pic16/pcoderegs.c: fixed a bug with eliminating some temporary
4825         registers when it shouldn't,
4826         * src/pic16/ralloc.c (allocReg): add preliminary support for
4827         supporting a limited set of temporary registers,
4828
4829 2004-11-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4830
4831         * src/hc08/gen.c (genAssign, genPointerGetSetOfs, genDataPointerGet,
4832           genDataPointerSet): ensure assignments always copy in MSB to LSB
4833           order,
4834           (loadRegFromAop): recognize CLRH optimization,
4835           (genFunction): optimize RECEIVE iCodes in reentrant functions
4836
4837 2004-11-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4838
4839         * src/SDCCmain.c (parseCmdLine, optionsTable[]): fixed bug with
4840           --out-fmt-s19 turning into --out-fmt-elf if s19 was already
4841           selected.
4842         * src/SDCCmain.c (linkEdit): don't define SSEG for HC08
4843         * src/hc08/main.c (_hc08_setDefaultOptions): default xdata to be
4844           contiguous with data
4845
4846 2004-11-19 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4847
4848         * device/lib/_gptrget.c (_gptrget),
4849         * device/lib/_gptrgetc.c (_gptrgetc),
4850         * device/lib/_gptrput.c (_gptrput): _naked allows to use ret
4851           instead of sjmp to ret
4852         * src/mcs51/peeph.def: added peepholes 3.d-g and 177.g,h provided
4853           by Hubert Sack <hsack2002 AT arcor.de> in RFE #1067986, thanks
4854
4855 2004-11-18 Maarten Brock <sourceforge.brock AT dse.nl>
4856
4857         * .version: bumped version to 2.4.7
4858         * device/lib/_gptrget.c (_gptrget): is now _naked
4859         * device/lib/_gptrgetc.c (_gptrgetc): is now _naked
4860         * device/lib/_gptrput.c (_gptrput): is now _naked
4861         * src/SDCCast.c (createBlock): removed ridiculous self-assignment,
4862           (createFunction): fixed xstack
4863         * src/SDCCglue.c (emitMaps): set allocation required for bit area
4864         * src/SDCCicode.c (geniCodeCast): don't change SPEC_OCLS for literal
4865           or bit either,
4866           (geniCodeCritical): store original interrupt state in an iTemp bit
4867           var unless stack-auto
4868         * src/SDCCicode.h: added CRITICAL and ENDCRITICAL to SKIP_IC2
4869         * src/SDCCmain.c (setIncludePath): added include/target to search path
4870         * src/SDCCmem.c (allocParms): store bit vars in bit space, not overlay
4871         * src/SDCCsymt.c (checkFunction): don't check regbank for isr's against
4872           prototype,
4873           (processFuncArgs): put bit vars in bit area
4874         * src/mcs51/gen.c (saveRegisters, unsaveRegisters, genXpush, saveRBank,
4875           unsaveRBank): fixed xstack,
4876           (genFunction): bugfix: replaced (global!) reentrant with fReentrant,
4877           (genFunction, genEndFunction): fixed xstack,
4878           (genAssign): optimization don't walk backwards through mem
4879         * src/mcs51/main.c (_mcs51_regparm): don't pass bit params in registers
4880         * src/mcs51/ralloc.c (createStackSpil): spill bits to bit area
4881         * support/regression/Makefile: also make library (for stack-auto) when
4882           making "all" and added "test-mcs51-xstack-auto"
4883         * support/regression/fwk/lib/testfwk.c: added T2_isr prototype for mcs51
4884         * support/regression/ports/mcs51/T2_isr.c: added this file as a stub
4885         * support/regression/ports/mcs51/fwk.lib: added to link T2_isr stub
4886         * support/regression/ports/mcs51/spec.mk: added rules for fwk.lib
4887         * support/regression/ports/mcs51-stack-auto/spec.mk: replaced
4888           make-library by MAKE_LIBRARY
4889         * support/regression/ports/mcs51-xstack-auto/spec.mk: file added to run
4890           regression tests for xstack
4891         * support/regression/tests/bitvars.c: test for bit vars (bug 938782)
4892         * support/regression/tests/critical.c: test for critical on mcs51
4893
4894 2004-11-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4895
4896         * support/regression/ports/ucz80/spec.mk: use include and lib files from
4897           built version of sdcc instead of installed version
4898
4899 2004-11-14 Maarten Brock <sourceforge.brock AT dse.nl>
4900
4901         * src/mcs51/gen.c (toBoolean): fixed bug 1065458
4902         * device/lib/Makefile.in: z80 uses printf_large.c, sprintf.c and
4903           vprintf.c now
4904         * device/lib/printf_large.c (calculate_digit): fixed bug 1057979
4905         * device/lib/z80/Makefile: don't use printf.c as it fails bug 1057979
4906           WARNING: remove device/lib/build/z80/printf.o by hand when
4907           updating from previous build!
4908         * device/lib/z80/printf.c: updated comment
4909         * support/regression/tests/bug1057979.c: test all ports now
4910         * support/regression/tests/bug1065458.c: file added
4911
4912 2004-11-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4913
4914         * src/z80/gen.c (genFunction, genEndFunction): avoided generating
4915           *_start and *_end symbols for static functions
4916
4917 2004-11-11 Maarten Brock <sourceforge.brock AT dse.nl>
4918
4919         * src/SDCCmain.c (linkEdit): don't suppress crt0 if --nostdlib is used
4920           and search crt0.o in all library paths,
4921           (setIncludePath): proper handling of --nostdinc,
4922           (setLibPath): proper handling of --nostdlib
4923         * support/regression/Makefile,
4924         * support/regression/ports/ds390/spec.mk,
4925         * support/regression/ports/gbz80/spec.mk,
4926         * support/regression/ports/hc08/spec.mk,
4927         * support/regression/ports/mcs51/spec.mk,
4928         * support/regression/ports/mcs51-large/spec.mk,
4929         * support/regression/ports/mcs51-stack-auto/spec.mk,
4930         * support/regression/ports/z80/spec.mk: use include and lib files from
4931           built version of sdcc instead of installed version
4932         * doc/sdccman.lyx: fixed typo in --nostdinc
4933
4934 2004-11-10 Slade Rich <slade_rich AT users.sourceforge.net>
4935
4936         * src/pic/pcode.c,
4937         * src/pic/device.c,
4938         * src/pic/ralloc.c,
4939         * src/pic/gen.c : added support to generate code for struct bit fields.
4940
4941 2004-11-06 Maarten Brock <sourceforge.brock AT dse.nl>
4942
4943         * as/xa51/xa_version.h,
4944         * device/include/errno.h,
4945         * device/include/regc515c.h,
4946         * device/lib/_itoa.c,
4947         * device/lib/_ltoa.c,
4948         * device/lib/ser_ir_cts_rts.c,
4949         * sim/ucsim/xa.src/glob.cc,
4950         * sim/ucsim/xa.src/inst_gen.cc,
4951         * sim/ucsim/xa.src/xa_bit.cc,
4952         * sim/ucsim/xa.src/xa_sfr.cc,
4953         * sim/ucsim/z80.src/inst_dd.cc,
4954         * sim/ucsim/z80.src/inst_fdcb.cc,
4955         * support/scripts/keil2sdcc.pl,
4956         * src/pic16/pic16.dsp,
4957         * src/pic16/pic16a.dsp: corrected cvs line endings
4958         * device/lib/printf_large.c: fixed bug 1057979
4959         * src/pic16/gen.c: fixed non-C standard code
4960         * src/SDCCmain.c: made --pack-iram default, added --no-pack-iram
4961         * src/SDCCglobl.h: changed pack_iram to no_pack_iram
4962         * support/regression/ports/mcs51/support.c: reload T1 asap
4963         * doc/sdccman.lyx: updated for options --pack-iram and --no-pack-iram,
4964           pdata use and clear idata startup behaviour
4965         * support/regression/tests/bug1057979.c: added
4966
4967 2004-11-04 Maarten Brock <sourceforge.brock AT dse.nl>
4968
4969         * device/examples/ds390/ow390/ad26.h,
4970         * device/examples/ds390/ow390/cnt1d.h,
4971         * device/examples/ds390/ow390/crcutil.c,
4972         * device/examples/ds390/ow390/ownet.h,
4973         * device/examples/ds390/ow390/owsesu.c,
4974         * device/examples/ds390/ow390/swt12.h,
4975         * device/examples/ds390/ow390/swtoper.c,
4976         * device/examples/ds390/ow390/temp10.h,
4977         * device/examples/ds390/ow390/thermodl.c,
4978         * device/examples/ds390/tinitalk/tinitalk.dsp,
4979         * device/examples/ds390/tinitalk/tinitalk.dsw,
4980         * device/examples/mcs51/clock/hw.h,
4981         * device/examples/mcs51/simple2/go.bat,
4982         * device/examples/serialcomm/windows/serial.h,
4983         * device/examples/xa51/dummy.c,
4984         * device/examples/xa51/hello.c,
4985         * device/include/80c51xa.h,
4986         * device/include/at89x051.h: corrected cvs line endings
4987
4988 2004-11-04 Vangelis Rokas <vrokas AT otenet.gr>
4989
4990         * src/pic16/main.c (options): added command line --gstack, to trace
4991         stack over/under flows,
4992         * added pragma 'wparam' to allow passing first byte of function
4993         parameters via WREG, syntax is #pragma wparam my_function[, func2...]
4994         * src/pic16/gen.c (pic16_testStackOverflow): function which emits a
4995         call to __gstack_test function and sets up the symbol as extern,
4996         * (pic16_pushpCodeOp, pic16_poppCodeOp, pushw, pushaop, popaopidx,
4997         * popaop): added call to pic16_testStackOverflow,
4998         * (wParamCmp, inWparamList): NEW, test existence of a symbol in
4999         wparamList list,
5000         * (genCall, genPcall): now all parameters are passed via stack
5001         except in functions that are pass to wparam pragma in which WREG is
5002         used too,
5003         * (genPcall): REENTRANT flag is checked to see if variable prototype
5004         contains reentrant keyword, don't call a non-reentrant function, via
5005         a reentrant function pointer or vice versa, functions are never
5006         passed via WREG,
5007         * (genJumpTab): applied patch from bug #1057478 by R.Neider and
5008         D.Winkler,
5009         * src/pic16/glue.c (pic16emitRegularMap): fixed bug which caused a
5010         SIGSEGV when accessing a NULL register stucture,
5011         * (pic16_printGPointerType): modified to handle UPPER modifier for
5012         function initializers, changed prototype of function to simpler one,
5013         * (pic16_printIvalFuncPtr): check to see if function is already
5014         added in externs list,
5015         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): fixed bug which
5016         optimized a move from W to SFR with a move to the same register
5017         later after a CALL,
5018         * device/lib/pic16/debug: NEW directory, contains debug features
5019         which are enabled when linking with libdebug.lib, currently command
5020         line option --gstack enables stack pointer tracing for over/under
5021         flow, corresponding sources are in debug/gstack
5022
5023 2004-10-30 Vangelis Rokas <vrokas AT otenet.gr>
5024
5025         * doc/sdccman.lyx: updated SDCC version,
5026         * (PIC16 port): update list of command line options,
5027         * src/pic16/device.h (structure pic16_options_t): added field gstack
5028         to enable stack overflow tracing on push/pops,
5029         * src/pic16/device.c (statistics structure): added statistics
5030         structure,
5031         * (pic16_dump_access, pic16_dump_usection, pic16_dump_gsection,
5032         pic16_dump_int_registers): increase statistics counters for each
5033         * variable which is encountered
5034         * (pic16_dump_usection): emit each .udata variable to its own udata
5035         section,
5036         * src/pic16/gen.c (assignResultValue, genCall, genPcall, genFunction):
5037         when macro USE_WREG_IN_FUNC_PARAMS is set to 0 pass all function
5038         parameters via stack, otherwise use old scheme,
5039         * src/pic16/glue.c (pic16_emitStatistics): dump statistics in
5040         assembler output file,
5041         * src/pic16/main.c: added command line options --gstack to enable
5042         push/pop tracing for stack overflow,
5043         * src/pic16/pcode.c (all pCodeInstruction records for PIC18F
5044         instructions): added size of each instruction,
5045         * (pic16_countInstruction): estimate size of instructions in
5046         the_pFile list, inline assembly blocks are not counted,
5047         * (pic16_FixRegisterBanking): trace previous register usage, when
5048         banksel optimizations is greater than 0, don't emit a redudant
5049         banksel directive,
5050
5051 2004-10-26 Slade Rich <slade_rich AT users.sourceforge.net>
5052
5053         * src/pic/ralloc.c : fixed inefficient code produced when compiling a complimented bit operation.
5054         * src/pic16/ralloc.c : applied same fix for pic16.
5055         * src/pic/gen.c : tidied it up a little.
5056
5057 2004-10-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5058
5059         * src/mcs51/peeph.def: disabled 259.a,b for removing redundant ret,
5060         thanks to Martin Helmling for reporting (mail on sdcc-devel 2004-10-25)
5061
5062 2004-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5063
5064         * src/SDCCast.c (reverseParms): fixed bug #1040577 (part 2)
5065
5066 2004-10-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5067
5068         * device/lib/ser_ir_cts_rts.c: integer promotion caused a call to the
5069         non-reentrant function __modsint in the interrupt function (thus
5070         corrupting math operations during serial I/O)
5071         * device/lib/ser_ir.c: as above, changed buffersize
5072         * src/mcs51/peeph.def: added 259.a,b for removing redundant ret,
5073         256.c,d for zeroing
5074         * doc/Makefile: added option -t for rsync
5075
5076 2004-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5077
5078         * src/SDCCast.h (struct ast),
5079         * src/SDCCast.c (reverseParms, copyAst): fixed bug #1040577 (part 1)
5080
5081 2004-10-20 Borut Razem <borut.razem AT siol.net>
5082
5083         * support/scripts/sdcc.nsi: added include/pic16/*.h to the setup
5084         package
5085
5086 2004-10-20 Vangelis Rokas <vrokas AT otenet.gr>
5087
5088         * device/lib/pic16/libsdcc/Makefile: added lregs directory in
5089         makefile targets,
5090         * device/lib/pic16/libsdcc/lregs/{Makefile,lrst.c,lrrest.c}: NEW
5091         support functions to replace long sequences of MOVFF's from access
5092         bank registers to stack and vice versa,
5093         * src/pic16/device.h: added new field opt_flags, where optimization
5094         flags can be set to enable certain features,
5095         * src/pic16/gen.c (pic16_emitpinfo): NEW to add PC_INFO pCode in
5096         * pBlock, (genFunction, genEndFunction): surroung loop for
5097         saving/loading used registers in stack with PC_INFO pCodes,
5098         INF_LREGS. Code in between can then be optimized by pCode optimizer
5099         to support function calls,
5100         * (genDataPointerSet): fixed bug which loaded float fields in
5101         structures with corrupt data,
5102         * src/pic16/genutils.c (debugf, _debugf): macro/function which emits
5103         in a standard way debug info on stderr. Feature used for developing
5104         and debugging only,
5105         * src/pic16/glue.c (pic16glue): reformatted, deleted some old and
5106         obsolete chunks of code,
5107         * if optimization flag OF_LR_SUPPORT was set, call pic16_OptimizeLocalRegs,
5108         * src/pic16/main.c (_pic16_parseOptions): added handler for --flr-support,
5109         * pic16/src/pcode.c (pic16_newpCodeInfo,
5110         * (pic16_newpCodeOpLocalRegs),
5111         * (pic16_convertLocalRegs2Support): NEW, to support new optimization
5112         feature,
5113         * (pic16_pCodeConstString): printing of the initial value of a
5114         symbol as a comment is inhibited since parsing was already done by
5115         copyStr and output is corrupt,
5116         * (pic16_pCode2str, genericPrint): handle PC_INFO pCode,
5117
5118 2004-10-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5119
5120         * src/mcs51/ralloc.c (packRegisters): fixed bug #1044601
5121
5122 2004-10-19 Maarten Brock <sourceforge.brock AT dse.nl>
5123
5124         * as/mcs51/lkarea.c: removed old K&R style,
5125           (lnksect): changed check on boundary error,
5126           (lnksect2): changed check on boundary error,
5127           (lnksect2): extend XSTK to end of page if size = 1
5128         * as/mcs51/lkmain.c: removed old K&R style,
5129           (Areas51): create l_IRAM symbol
5130         * as/mcs51/lkmem.c (summary2): added report on PSEG and XSTK
5131         * device/lib/Makefile.in: renamed model-mcs51-reentrant to
5132           model-mcs51-stack-auto, added model-mcs51-xstack-auto
5133         * device/lib/_mullong.c: added version to be compiled with xstack
5134         * device/lib/mcs51/crtclear.asm: clear only upto --iram-size
5135         * device/lib/mcs51/crtxclear.asm: clear pdata as well
5136         * device/lib/mcs51/crtxstack.asm: fixed comment
5137         * src/SDCCglue.c: maxInterrupts defaults to 0,
5138           (emitMaps): added pdata,
5139           (createInterruptVect): (re)moved default,
5140           (glue): added pdata,
5141           (glue): moved __start__xstack to XSTK with default size 1
5142         * src/SDCCmain.c (parseCmdLine): automatically set options.intlong_rent
5143           and options.float_rent when options.stackAuto is set,
5144           (linkEdit): only write XDATA_NAME if provided on command line
5145         * src/SDCCmem.h,
5146         * src/SDCCmem.c: added pdata
5147         * src/port.h: added pdata_name to PORT
5148         * src/mcs51/gen.c (toBoolean): fixed for Acc use of aopGet,
5149           (saveRegisters, unsaveRegisters): removed usage of B,
5150           (genMinus): fixed accumulator clash,
5151           (genJumpTab): added comment, this needs another look
5152         * src/mcs51/gen.c: added check for "B in use" paranoia,
5153           added pushB() and popB()
5154         * src/mcs51/peeph.def: restart after 177.c so 177.a can get a second
5155           chance
5156         * src/avr/main.c,
5157         * src/ds390/main.c,
5158         * src/hc08/main.c,
5159         * src/mcs51/main.c,
5160         * src/pic/main.c,
5161         * src/pic16/main.c,
5162         * src/xa51/main.c,
5163         * src/z80/main.c: (reset_regparms) made void parameter explicit and
5164           added PSEG (PAG,XDATA) or NULL to port specifier
5165         * src/ds390/main.c (_ds390_genIVT): moved implemented default in here
5166         * src/mcs51/main.c (_mcs51_genIVT): moved implemented default in here,
5167           (_mcs51_genInitStartup): removed __start__xstack equ,
5168           (mcs51_port): moved xstack from XSEG (XDATA) to XSTK (PAG,XDATA)
5169         * src/pic16/device.c (pic16_dump_usection, pic16_dump_isection),
5170         * src/z80/gen.c (_rleAppend): fixed warnings
5171         * support/regression/tests/zeropad.c: added pdata test
5172         * .version: bumped to 2.4.6
5173
5174 2004-10-17 Borut Razem <borut.razem AT siol.net>
5175
5176         * support/scripts/sdcc.nsi: cross compiling of WIN32 setup.exe on Linux
5177         as a part of nightly build
5178
5179 2004-10-16 Vangelis Rokas <vrokas AT otenet.gr>
5180
5181         * src/pic16/gen.c (struct _G): added field useWreg, is set to 1 when
5182         WREG holds the first byte function parameters,
5183         * (aopForSym): take special case for symbols which are in FARSPACE
5184         but in CODESPACE too,
5185         * (assignResultValue): modified to take into account _G.useWreg,
5186         * (genCall): don't use wreg for parameter passing when function is
5187         declared as reentrant, too, added optimization INCF to stack
5188         pointer when stack parameter count is 1,
5189         * (genFunction, genEndFunction): refurnished and fixed to not using
5190         wreg for passing parameters when function has varargs or is
5191         reentrant, fixed bug with symbol name compare for generating
5192         functions in absolute address,
5193         * (pic16_storeForReturn): refurnished,
5194         * (genCmp): began writing a new version of the function, not ready
5195         yet, therefore it is disabled,
5196         * (genAssign): do not read code memory when assigning a function to
5197         a pointer function,
5198         * src/pic16/glue.c (pic16emitStaticSeg): abSym->name is defined an
5199         array of characters, not pointer,
5200         * (pic16initialComments): in debug mode emit an .ident directive for
5201         the assembler,
5202         * (_process_pragma): emit a new warning type (internal to pic16)
5203         when setting stack to default length, emit a similar warning when
5204         placing a function at absolute address and address is not word aligned
5205         * (_pic16_parseOptions): added 'return TRUE' statement,
5206         * (_pic16_linkEdit): if compiling a source, then add the source's
5207         file object, first in the list of objects to link,
5208
5209 2004-10-13 Slade Rich <slade_rich AT users.sourceforge.net>
5210
5211         * src/pic/pcoderegs.c : increased count on regUsedinRange to prevent unnecessary warning.
5212         * src/pic/main.c : removed VC warning.
5213         * src/pic/gen.c : changed comment.
5214
5215 2004-10-12 Vangelis Rokas <vrokas AT otenet.gr>
5216
5217         * device/lib/pic16/libsdcc/gptr/gptrput[234].c: an external
5218         reference to a deprecated symbol _GPTRREG was causing failure to
5219         link. Thanks G. M. Gallant for the info.
5220
5221 2004-10-12 Slade Rich <slade_rich AT users.sourceforge.net>
5222
5223         * src/pic/pcode.c : Applied a code patch supplied by Paul Ashmore in
5224         comments for Bugs item #954788.
5225
5226 2004-10-10 Vangelis Rokas <vrokas AT otenet.gr>
5227
5228         * src/pic16/device.c (pic16_dump_gsection,
5229         * pic16_groupRegistersInSection): handle symbols declared to be in
5230         access bank differently,
5231         * src/pic16/gen.c (struct _G): added field resDirect,
5232         * (aopForSym): if symbol on stack and iCode is '=' and result exists,
5233         send values read from stack directly to result and don't allocate
5234         temporary values,
5235         * (pic16_sameRegs): fixed bug that allowed MOVFF to move between
5236         same registers,
5237         * (pic16_sameRegsOfs): NEW,
5238         * (freeAsmop): if _G.resDirect is set then do not mark registers as
5239         free because they were not allocated from temporary pool,
5240         * pic16_popRegFromString): workaround to fix a problem with
5241         allocating variables twice or never,
5242         * (genGenPointerGet): using PRODL instead of FSR0H,
5243         * (genGenPointerSet): using POSTDEC1 (that is a stack location)
5244         instead of FSR0H,
5245         * (genAssign): take advantage of the _G.resDirect flag,
5246         * (genCast): around line 11844, use mov2f instead of directly
5247         MOVFF'ing between operands to account for literal values,
5248         * src/pic16/genutils.c: some new debug functions for gpsim have been
5249         added,
5250         * src/pic16/glue.c (pic16_printIvalType): fixed bug that initialized
5251         float with integer part only,
5252         * src/pic16/main.c (_process_pragma): handle pragma udata access to
5253         place variables in access bank
5254         * device/lib/pic16/libsdcc/gptr/gptr*.c: using BRA instead of GOTO,
5255         updated sources to reflect recent changes in gen.c
5256
5257 2004-10-06 Vangelis Rokas <vrokas AT otenet.gr>
5258
5259         * device/lib/pic16/libsdcc/Makefile.rules: fixed bug concerning
5260         sources that searched for headers in installation path, now the
5261         device/include/pic16 is used,
5262         * src/pic16/glue.c (pic16glue),
5263         * src/pic16/pcode.c (pCode2str, genericPrint): don't print .file or
5264         .line directives if not in debug mode, this suppresses assembler's
5265         warnings for ignored directives
5266
5267 2004-10-05 Maarten Brock <sourceforge.brock AT dse.nl>
5268
5269         * src/port.h: made reset_regparms prototype void parameter explicit.
5270         * src/SDCCsymt.c (processFuncArgs): removed argument "func".
5271         * src/mcs51/ralloc.c (packRegisters): new fix for bugs 898889 & 979599.
5272         * doc/sdccman.lyx: documented warning disabling and how to use
5273           printf_large to make it print floats.
5274         * device/include/stdbool.h: NEW
5275         * device/lib/_atof.c,
5276         * device/lib/_divuint.c,
5277         * device/lib/_divulong.c,
5278         * device/lib/expf.c,
5279         * device/lib/printf_large.c,
5280         * device/lib/sincosf.c,
5281         * device/lib/sincoshf.c: used stdbool.h, all compile with stack-auto now
5282         * device/lib/Makefile.in: added target for model-mcs51-reentrant to build
5283           a completely reentrant lib.
5284
5285 2004-10-05 Vangelis Rokas <vrokas AT otenet.gr>
5286
5287         * device/lib/pic16/libsdcc/gptr/gptr*.c: added return statements
5288         * device/include/pic16/stdio.h: fixed bug with colon
5289
5290 2004-10-03 Vangelis Rokas <vrokas AT otenet.gr>
5291
5292         * device/include/pic16/stdio.h,
5293         * device/include/pic16/stdlib.h,
5294         * device/include/pic16/math.h: NEW
5295         * device/lib/pic16/libsdcc/gptr/*.c (gptrget*, gptrput*): functions
5296         declared as _naked to reduce overhead
5297         * device/lib/Makefile.in (target port-specific-objects-pic16):
5298         changed * to *.* so to ignore the CVS directory,
5299         * src/pic16/gen.c (pic16_freeAsmop): added code to store result of
5300         stacked variables back in stack,
5301         * (genEndFunction): fixed bug reported by G.M. Gallant with stack
5302         corruption
5303
5304 2004-10-01 Vangelis Rokas <vrokas AT otenet.gr>
5305
5306         * .version: bumped version number to 2.4.5
5307         * support/Util/SDCCerr.h: added warning W_POSSBUG2.
5308         * support/Util/SDCCerr.c (messages structure): added entry for
5309         W_POSSBUG2
5310
5311         Large cumulative patch for pic16 port and libraries.
5312         * device/include/pic16/sdcc-lib.h,
5313         * device/include/pic16/stdarg.h,
5314         * device/include/asm/pic16/features.h,
5315         * device/include/lib/pic16/libsdcc/gptr/{*.c, Makefile}: NEW,
5316         * device/include/pic16/float.h: changes reentrant keyword with
5317         _FS_REENTRANT, added prototype for __fsneq, included sdcc-lib.h
5318         * device/lib/pic16/libsdcc/Makefile: added target directory gptr,
5319         updated target build-libraries to include objects from gptr,
5320         * device/lib/pic16/libsdcc/{char,int,long}/*.c: added macro
5321         _IL_REENTRANT to all function headings, included sdcc-lib.h header,
5322         * device/lib/pic16/libsdcc/float/*.c: added macro _FS_REENTRANT to
5323         all function headings,
5324         * src/SDCCmain.c: added global parameter userIncDirsSet,
5325         * (parseCmdLine): when option -I is encountered add directory to
5326         userIncDirsSet too,
5327         * src/version.awk: added space between control and long,
5328         * src/pic16/NOTES: added some notes for the port,
5329         * src/pic16/gen.c: added prototype for mov2fp function,
5330         * (fReturnpic16[]): properly named return value registers,
5331         * (_G structure): added fields stackRegSet, fregsUsed, stack_lat,
5332         * (aopForSym): added code to handle symbols with onStack flag set,
5333         symbols onStack are allocated PTRSIZE bytes,
5334         * (aopFreeAsmop): handles special case where asmops are stack objects,
5335         * (aopGet, pic16_popGet): adde cod to handle new asmop AOP_STA,
5336         * (pic16_popGetTempReg, pic16_popGetTempRegCond, pic16_popReleaseTempReg):
5337         added argument lock to trace flaws in allocating temporary registers
5338         when developing port,
5339         * (pic16_popGetLit, pic16_popGetLit2): changed lit from unsigned to signed
5340         * (pic16_popRegFromString): reenabled allocating a direct register
5341         from string,
5342         * (assignResultValue): various beautifications,
5343         * fixed bug #1037717 (patch from R. Neider & D. Wrinkler) with mistaken
5344         referenced function argument,
5345         * (genIpush): reenabled to allow stacked arguments, handles only
5346         ic->parmPush iCodes,
5347         * (genCall, genPcall): major changes to allow for variable argument
5348         functions, fixed a bug with falsely restoring stack pointer after
5349         returning from call,
5350         * (genFunction): pending code for critical function,
5351         * (shiftR1Left2ResultSigned, shiftR1Left2Result, shiftL2Left2Result,
5352         * (shiftR2Left2Result, shiftLLong) applied patch #1032155 from R.Neider,
5353         * (genNearPointerGet): fixed bug with indirect reading, was always
5354         reading from INDF0
5355         * (genGenPointerGet, genGenPointerSet): rewrote to support generic
5356         pointers,
5357         * (genAddrOf): rewrote code to take address of a stacked function parameter
5358         * (genCast): fixed casting to generic pointer type,
5359         * src/pic16/gen.h: added AOP_STA,
5360         * (struct asmop): added field stk,
5361         * src/pic16/genarith.c (pic16_AopType): handle AOP_STA,
5362         * (pic16_genPlusIncr): changed emitSKPNZ to emitSKPNZ,
5363         * (pic16_genAddLit, pic16_genPlus): applied patch #1034042 by tecodev,
5364         * (pic16_genMinus): fixed bug #1035119 with patch submitted by tecodev,
5365         * src/pic16/genutils.c (pic16_genNot): removed symbol *tlbl,
5366         * src/pic16/glue.c (pic16_printGPPointerType): fixed to support new
5367         generic pointers,
5368         * src/pic16/main.c (_pic16_initPaths): ignores default SDCC include
5369         and library paths,
5370         * (pic16_port structure): generic pointer size is set to 3,
5371         * src/pic16/pcode.c (pic16_newpCodeOpLit): correctly print literal integer,
5372         * (insertBankSwitch): cast to (char *) to prevent 64bit CPUs'
5373         compiler warning,
5374         * src/pic16/ralloc.c (allocReg): prevent allocating register when
5375         operand is an iTemp,
5376
5377 2004-09-24 Martin Helmling <mh AT octo-soft.de>
5378
5379         * debugger/mcs51/cmd.c: set PC if a symbol at pc reg is set
5380         * debugger/mcs51/simi.c: addapt new syntax of s51
5381
5382 2004-09-23 Vangelis Rokas <vrokas AT otenet.gr>
5383
5384         * src/pic16/genutils.c (pic16_genNot): fixed bug #1032265,
5385         * src/pic16/pcode.c: commented out some calls to free() in order to
5386         fix bug #989576,
5387
5388 2004-09-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5389
5390         * src/SDCCicode.h,
5391         * src/SDCCicode.c (isiCodeInFunctionCall),
5392         * src/avr/ralloc.c (selectSpil),
5393         * src/pic/ralloc.c (selectSpil),
5394         * src/pic16/ralloc.c (selectSpil),
5395         * src/ds390/ralloc.c (selectSpil),
5396         * src/hc08/ralloc.c (selectSpil),
5397         * src/xa51/ralloc.c (selectSpil),
5398         * src/mcs51/ralloc.c (selectSpil): Don't use remainSpil to spill to the
5399         stack in the middle of a function call sequence (fixes bug #1020268)
5400         * src/SDCCicode.c (geniCodeJumpTable): fixed error in computing the
5401         costs associated with the minimum switch case.
5402
5403 2004-09-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5404
5405         * src/SDCC.lex: fixed bug #1030549
5406
5407 2004-09-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5408
5409         * src/SDCCcse.h (struct cseDef),
5410         * src/SDCCcse.c (cseBBlock, newCseDef, ifFromAddrTaken): purge CSEs
5411         over a function call if the CSE is derived from a symbol whose
5412         address has been taken (fixes bug #1029883)
5413         * support/regression/tests/bug-1029883: a new regression test for
5414         this bug
5415
5416 2004-09-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5417
5418         * src/hc08/gen.c (emitinline): fixed bug #1029778
5419         * src/SDCC.y (assignment_expr): fixed the grammer so that assignment
5420         to a cast object is no longer a syntax error ("fixes" bug #1030006,
5421         and starts toward RFE #905167)
5422
5423 2004-09-17 Vangelis Rokas <vrokas AT otenet.gr>
5424
5425         * src/pic16/gen.c (mov2f): New function to move an operand to
5426         another without considering if it is a literal or a register,
5427         * (pic16_sameRegs): don't check if they are both AOP_REG,
5428         * (AccRsh): removed andmask=0 lines,
5429         * (genLeftShift): duplicated to be improved in future versions,
5430         * src/pic16/main.c (_process_pragma): emit stack default size in hex,
5431         * src/pic16/pcode.c: added POC_INFSNZW, updated inverted_op fields
5432         in POC_INCFSZ, POC_INCFSZW, POC_INFSNZ,
5433         * (pic16initMnemonics): added initialization for POC_INFSNZW,
5434         * (insertBankSwitch): fixed inserting banksel directives algorithm
5435         for instructions that follow a skip instruction, this fixes a report
5436         for broken subtraction code generation,
5437         * src/pic16/ralloc.c (deassignLRs): do not free register if current
5438         iCode is a left op, just in case result and right share the same
5439         registers
5440
5441 2004-09-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5442
5443         * src/hc08/main.c,
5444         * src/hc08/gen.c (genJumpTable): more efficient jump table, supports
5445         preservation of HX
5446         * src/hc08/gen.c (pullRegs): fixed order of HX & XA pairs
5447         * src/mcs51/ralloc.c (packRegisters): removed the patch applied
5448         on 2004-09-12; it was buggy
5449
5450 2004-09-15 Bernhard Held <bernhard AT bernhardheld.de>
5451
5452         * src/SDCCsymt.h: removed RESULT_CHECK
5453         * src/SDCCast.c,
5454         * src/SDCCglue.c,
5455         * src/SDCCval.c,
5456         * src/pic/glue.c,
5457         * src/pic16/glue.c: replaced RESULT_CHECK with RESULT_TYPE_NONE
5458
5459 2004-09-15 Vangelis Rokas <vrokas AT otenet.gr>
5460
5461         * src/SDCCicode.c (piCode): applied patch from Raphael Neider,
5462         * src/pic16/device.c (pic16_assignConfigWordValues): wrong
5463         configuration values no more rejected by compiler, they are assigned
5464         to configuration registers with a warning message instead,
5465         * src/pic16/glue.c (pic16_emitConfigRegs): added +1 at top-limit of
5466         the for-loop so last conf register is emitted too,
5467         * (_pic16_initPaths): link library libsdcc.lib by default,
5468         * (_hasNativeMulFor): modified test for multiplication according to
5469         Raphael Neider's remarks. Integer multiplication is also done with
5470         support functions,
5471         * device/include/pic16/pic18fregs.h: corrected type error in while
5472         testing and including 18f6720 header file
5473
5474 2004-09-14 Vangelis Rokas <vrokas AT otenet.gr>
5475
5476         * src/pic16/device.h (pic16_options): removed field use_crt,
5477         * src/pic16/gen.c (genUnpackBits): added call to pic16_loadFSR0
5478         until an optimization to handle single bits is added,
5479         * (pic16_loadFSR0): moved before genUnpackBits,
5480         * (genAnd): some white lines removed,
5481         * src/pic16/main.c (_pic16_finaliseOptions): set omit_ivt and clear
5482         leave_reset flags in pic16_options when using crt modules,
5483
5484 2004-09-12 Maarten Brock <sourceforge.brock AT dse.nl>
5485
5486         * src/mcs51/ralloc.c (packRegisters): applied fix by Bernhard Held
5487           for bugs 898889 & 979599. Also used some safer print instructions.
5488
5489 2004-09-12 Vangelis Rokas <vrokas AT otenet.gr>
5490
5491         * src/pic16/device.h (pic16_options_t): added field use_crt,
5492         crt_name, no_crt,
5493         * src/pic16/genarith.c (pic16_genPlus): added an assert(0) line to
5494         catch a probable future bug,
5495         * src/pic16/gen.c: aopIdx function commented out,
5496         * (genAssign): commented out old code which used aopIdx,
5497         * src/pic16/glue.c (pic16glue): removed some legacy fragments of
5498         code, added if conditionals to take into account the --use-crt
5499         command line options,
5500         * src/pic16/main.c (pic16_optionsTable): added new command line
5501         options, --use-crt= and --no-crt,
5502         * (_pic16_linkEdit): now the proper crt object is added in the
5503         linker command line except than when --no-crt is specified,
5504         * src/pic16/pcode.c,
5505         * src/pic16/pcode.h: added some structures and functions for a new
5506         optimization scheme to compansate for instruction overhead between
5507         same iCodes, this scheme is currently under development and is not
5508         working in any way,
5509         * src/pic16/gen.c (genAnd): added patch provided by Aaron Collwell
5510         to && operator,
5511         * device/lib/pic16/startup/crt0i.c,
5512         * device/lib/pic16/startup/crt0iz.c: added global char variable
5513         __uflags to force the generation of an idata section
5514
5515 2004-09-12 Bernhard Held <bernhard AT bernhardheld.de>
5516
5517         * doc/Makefile,
5518         * doc/clean.mk: added support for easy creation of sdcc-doc.tar.bz2
5519         * doc/sdccman.lyx: updated sdcc version to 2.4.4
5520
5521 2004-09-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5522
5523         * doc/sdccman.lyx: fixed a problem with my new index entries (thanks
5524         Frieder) and clarified the default code optimization mode
5525
5526 2004-09-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5527
5528         * src/SDCC.lex (doPragma, process_pragma),
5529         * src/SDCCglobl.h (struct optimize): added pragmas "opt_code_speed",
5530         "opt_code_size", and "opt_code_balanced"
5531         * src/SDCCmain.c (optionsTable[], printOptions, scanOptionsTable):
5532         regrouped options by category, added support for category headers
5533         * src/SDCCmain.c (parseCmdLine): added options "--opt-code-speed"
5534         and "--opt-code-size"
5535         * doc/sdccman.lyx: documented these new options and pragmas
5536         * src/hc08/gen.c (AccLsh, AccRsh): take speed/size optimization
5537         preference into account
5538
5539 2004-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
5540
5541         * src/SDCCicode.c (geniCodePostInc, geniCodePreInc, geniCodePostDec,
5542           geniCodePreDec): Fixed bug 904237 by generating a warning
5543         * src/SDCCerr.h,
5544         * src/SDCCerr.c: added warning W_SIZEOF_VOID
5545
5546 2004-09-09 Slade Rich <slade_rich AT users.sourceforge.net>
5547
5548         * src/pic/device.c : When no max ram set validate full memory range.
5549         * src/pic/pcode.c,
5550         * src/pic/pcodepeep.c : Copy C code comments to optimised replacement code.
5551
5552 2004-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
5553
5554         * device/lib/_gptrget.c,
5555         * device/lib/_gptrput.c: updated comment
5556         * device/lib/calloc.c,
5557         * device/lib/free.c,
5558         * device/lib/malloc.c,
5559         * device/lib/realloc.c: added LGPL, made them reentrant-safe
5560         * src/SDCCcse.c (cseBBlock),
5561         * src/SDCCicode.c (printOperand, geniCodeArray),
5562         * src/SDCCicode.h (struct operand): fixed bug 868103
5563         * support/regression/tests/bug-868103.c: added
5564         * src/SDCCast.c (searchLitOp),
5565         * src/SDCCcse.h (struct cseDef),
5566         * src/SDCCglue.c (printIvalArray, spacesToUnderscores),
5567         * src/SDCCicode.h (struct operand),
5568         * src/SDCCsymt.h (struct sym_link),
5569         * src/avr/gen.c (hasInc),
5570         * src/ds390/gen.c (hasInc),
5571         * src/hc08/gen.c (genPlusIncr, hasInc),
5572         * src/mcs51/gen.c (hasInc),
5573         * src/pic16/glue.c (pic16_printIvalChar),
5574         * src/pic16/ralloc.c (regWithIdx),
5575         * src/xa51/gen.c (hasInc) : removed warnings
5576         * src/SDCCast.c (createBlock): added comment ???
5577         * src/hc08/ralloc.c: updated comments
5578
5579 2004-09-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5580
5581         * doc/sdccman.lyx: updated section on switch statements, added
5582         section about semaphore locking
5583         * doc/Makefile: added option -info for latex2html
5584         * device/lib/_gptrget.c,
5585         * device/lib/_gptrput.c: __XPAGE instead of P2 in outcommented code
5586
5587 2004-09-06 Slade Rich <slade_rich AT users.sourceforge.net>
5588
5589         * src/pic/device.h,
5590         * src/pic/device.c,
5591         * src/pic/port.c : Changed PIC14 code to not set bit RP1 when
5592          maxram is less than 0x100.
5593
5594 2004-09-06 Slade Rich <slade_rich AT users.sourceforge.net>
5595
5596         * Bug fixes for PIC14 - signed RSHIFT problem. Patch supplied by Allen(agschrum).
5597
5598 2004-09-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5599
5600         * src/port.h,
5601         * src/mcs51/main.c,
5602         * src/ds390/main.c,
5603         * src/z80/main.c,
5604         * src/hc08/main.c,
5605         * src/pic/main.c,
5606         * src/pic16/main.c,
5607         * src/avr/main.c,
5608         * src/xa51/main.c
5609         * src/SDCCicode.c (geniCodeJumpTable): Better logic to determine if a
5610         a jump table is the best form for a switch statement, including
5611         automatic insertion of missing cases to make the case range
5612         continuous. Developed in collaboration with Frieder Ferlemann.
5613
5614 2004-09-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5615
5616         * src/hc08/ralloc.c (canDefAccResult): multi-byte shift is unsafe for
5617         accumulator result if it needs sign extension
5618
5619 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
5620
5621         * src/hc08/ralloc.c (canUseAccOperand): fixed comparison bug
5622
5623 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
5624
5625         * device/lib/gbz80/printf.c,
5626         * device/lib/z80/printf.c: removed define for NULL
5627
5628 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
5629
5630         * as/xa51/xa_link.c,
5631         * device/examples/ds390/ow390/ad26.c,
5632         * device/examples/ds390/ow390/cnt1d.c,
5633         * device/examples/ds390/ow390/counter.c,
5634         * device/examples/ds390/ow390/ds2480.h,
5635         * device/examples/ds390/ow390/ds2480ut.c,
5636         * device/examples/ds390/ow390/findtype.c,
5637         * device/examples/ds390/ow390/gethumd.c,
5638         * device/examples/ds390/ow390/owllu.c,
5639         * device/examples/ds390/ow390/ownetu.c,
5640         * device/examples/ds390/ow390/swt12.c,
5641         * device/examples/ds390/ow390/swtloop.c,
5642         * device/examples/ds390/ow390/temp.c,
5643         * device/examples/ds390/ow390/temp10.c,
5644         * device/examples/ds390/ow390/thermo21.c,
5645         * device/examples/ds390/ow390/tinilnk.c,
5646         * device/examples/ds390/ow390/tstfind.c,
5647         * device/examples/serialcomm/windows/serial.cpp,
5648         * device/examples/serialcomm/windows/test_serialcomm.cpp,
5649         * device/include/reg51.h: fixed line endings for cvs
5650
5651 2004-09-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5652
5653         * src/hc08/ralloc.c (canDefAccResult, canUseAccOperand,
5654         packRegsForAccUse, packRegisters): new accumulator register
5655         packing algorithm
5656         * support/regression/ports/hc08/support.c (_putchar): suppress
5657         warning of unused variable
5658         * src/SDCCicode.c: added SWAP entry to codeTable
5659
5660 2004-09-01 Maarten Brock <sourceforge.brock AT dse.nl>
5661
5662         * device/lib/sprintf.c: forgot to add this file before previous commit
5663
5664 2004-09-01 Vangelis Rokas <vrokas AT otenet.gr>
5665
5666         * src/pic16/gen.c (genPackBits): added operand right in function
5667         parameters, load result directly if p_type is POINTER (that is
5668         called by genNearPointerSet)
5669         * (genUnPackBits): added operand left in function parameters,
5670         * (genNearPointerGet, genNearPointerSet): prevent the loading of
5671         FSR0 if accessing bitfields,
5672
5673 2004-08-31 Maarten Brock <sourceforge.brock AT dse.nl>
5674
5675         * device/include/stdio.h: added NULL, size_t, typedef pfn_outputchar,
5676           _print_format; updated printf, sprintf, vsprintf
5677         * device/include/asm/default/features.h: corrected comment/define
5678         * device/lib/Makefile.in: added sprintf.c
5679         * device/lib/libsdcc.lib: added sprintf module
5680         * device/lib/printf_large.c,
5681         * device/lib/vprintf.c,
5682         * device/lib/sprintf.c: totally refactored printf_large and vprintf
5683           into these 3 files
5684         * support/regression/Makefile: changed ALL_PORTS into a usefull default
5685         * support/regression/ports/mcs51-stack-auto/spec.mk: added sprintf
5686         * support/regression/tests/bug-927659.c: removed dummy putchar, enabled
5687           hc08 test
5688         * support/regression/tests/zeropad.c: define idata as data for hc08
5689
5690 2004-08-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5691
5692         * src/SDCCpeeph.c (labelIsReturnOnly): support hc08 rts opcode also
5693         * src/SDCCpeeph.c (buildLabelRefCountHash): assume function entry point
5694         labels are referenced at least once (even if a reference is not found)
5695         * src/hc08/gen.c (emitcode): set isComment flag for comments
5696         * src/hc08/peeph.def: added rules 5a..5f (optimize redundant immediate
5697         loads), rules 6a..6b (optimize jumps to return)
5698
5699 2004-08-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5700
5701         * device/lib/acosf.c (acosf),
5702         * device/lib/asinf.c (asinf),
5703         * device/lib/atanf.c (atanf),
5704         * device/lib/ceilf.c (ceilf),
5705         * device/lib/cosf.c (cosf),
5706         * device/lib/coshf.c (coshf),
5707         * device/lib/cotf.c (cotf),
5708         * device/lib/fabsf.c (fabsf),
5709         * device/lib/floorf.c (floorf),
5710         * device/lib/log10f.c (log10f),
5711         * device/lib/logf.c (logf),
5712         * device/lib/sinf.c (sinf),
5713         * device/lib/sinhf.c (sinhf),
5714         * device/lib/sqrtf.c (sqrtf),
5715         * device/lib/tanf.c (tanf),
5716         * device/lib/tanhf.c (tanhf),
5717         * device/include/math.h: defined _FLOAT_FUNC_REENTRANT macro and
5718         replaced all instances of "reentrant" in the library functions
5719         defined in math.h with this macro.
5720         * support/regression/tests/float_trans.c: reenabled test for hc08
5721
5722 2004-08-30 Bernhard Held <bernhard AT bernhardheld.de>
5723
5724         * device/lib/pic16/Makefile.common.in: added MODELFLAGS again, it was
5725         erroneously deleted
5726
5727 2004-08-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5728
5729         * src/hc08/gen.c (loadRegFromAop): better use of clra & clrx
5730         * src/hc08/gen.c (genAnd, genOr): fixed bug with conditional when
5731         multi-byte volatile operands are used
5732         * src/hc08/gen.c (shiftRLong): fixed bug with wrong rotate direction
5733         * src/hc08/main.c (_hc08_genAssemblerPreamble): moved the built-in
5734         initialization to area GSINIT0 so that it would always precede
5735         any static initializers in GSINIT
5736         * support/regression/tests/zeropad.c: fixed idata define for hc08
5737         * support/regression/tests/bug-927659.c,
5738         * support/regression/tests/float_trans.c: disabled tests for hc08
5739         pending missing library routines
5740         * .version: increased version number to 2.4.4 - hc08 port now passes
5741         regression tests
5742
5743
5744 2004-08-29 Bernhard Held <bernhard AT bernhardheld.de>
5745
5746         * device/lib/pic16/Makefile.common.in: added $(MM) to fix `make clean`
5747         * Makefile.common.in,
5748         * as/Makefile,
5749         * as/hc08/Makefile.in,
5750         * as/mcs51/Makefile.in,
5751         * as/z80/Makefile.in,
5752         * debugger/mcs51/Makefile.in,
5753         * device/include/Makefile.in,
5754         * device/lib/Makefile.in,
5755         * doc/Makefile,
5756         * link/Makefile,
5757         * link/z80/Makefile.in,
5758         * packihx/Makefile.in,
5759         * sim/ucsim/main_in.mk,
5760         * sim/ucsim/avr.src/Makefile.in,
5761         * sim/ucsim/doc/Makefile.in,
5762         * sim/ucsim/gui.src/serio.src/Makefile.in,
5763         * sim/ucsim/hc08.src/Makefile.in,
5764         * sim/ucsim/s51.src/Makefile.in,
5765         * sim/ucsim/xa.src/Makefile.in,
5766         * sim/ucsim/z80.src/Makefile.in,
5767         * src/Makefile.in,
5768         * support/cpp2/Makefile.in,
5769         * support/librarian/Makefile,
5770         * support/makebin/Makefile: added DESTDIR to the install path proposed
5771         by "Maciej 'Agaran' Pijanka" <agaran AT pld-linux.org>
5772         * doc/sdccman.lyx: added DESTDIR documentation
5773
5774 2004-08-29 Vangelis Rokas (vrokas AT otenet.gr>
5775
5776         * src/pic16/gen.c (genFunction, genEndFunction): fixed return
5777         instruction for interrupt handlers, use fast returns when returning
5778         from high priority interrupts
5779
5780 2004-08-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5781
5782         * src/hc08/gen.c (genAnd, genOr, transferAopAop, rmwWithAop): optimized
5783         code generation
5784         * src/hc08/gen.c (genrshFour, genCpl): fixed bugs
5785         * src/hc08/gen.c (genMultOneByte, genDivOneByte, genModOneByte): fixed
5786         bugs, ported much of Bernhard's code from mcs51
5787         * src/mcs51/gen.c (genSend),
5788         * src/hc08/gen.c (genSend): fixed bug with lost SEND iCodes if more
5789         than one when calling a reentrant function
5790         * device/lib/_mullong.c: defined an alternate struct layout for big
5791         endian ports (hc08)
5792
5793 2004-08-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5794
5795         * src/hc08/gen.c (shiftL2Left2Result): fix for bug-500536 regression
5796         test
5797
5798 2004-08-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5799
5800         * src/SDCCsymt.c (processFuncArgs): make sure parameter types
5801         are sane and complete before asking the port its prefered parameter
5802         passing method (fixes bug #1017633)
5803         * device/lib/hc08/_ret.c: added "data" storage class to _ret2
5804         and _ret3
5805
5806 2004-08-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5807
5808         * src/hc08/gen.c (genPackBitsImmed, genUnpackBitsImmed): fix offset
5809         problem in bitfields >= 8 bits.
5810
5811 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
5812
5813         * src/SDCCsymt.c: undid changes that were not meant to be committed
5814
5815 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
5816
5817         * support/regression/ports/hc08spec.mk: REENTRANT must be reentrant
5818
5819 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
5820
5821         * src/hc08/gen.c (genUminusFloat): fixed bug where only 3 bytes were
5822           copied and wrong bit got inverted
5823
5824 2004-08-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5825
5826         * src/hc08/gen.c (genPointerSet, genFarPointerSet): moved code from
5827         genFarPointerSet into genPointerSet; eliminated genFarPointerSet
5828         * src/hc08/gen.c (genPointerGet, genFarPointerGet): moved code from
5829         genFarPointerGet into genPointerGet; eliminated genFarPointerGet
5830         * src/hc08/gen.c (genPackBitsImmed): generate optimized code for
5831         assignments to bitfields at known addresses
5832         * src/hc08/gen.c (genUnpackBitsImmed): generate optimized code for
5833         reads from bitfields at known addresses
5834         * src/hc08/ralloc.c (packRegisters),
5835         * src/hc08/gen.c (genPointerGet, genUnpackBits, genUnpackBitsImmed,
5836         genhc08Code): optimize pointer get values used as conditionals
5837         * src/hc08/peeph.def: added rules 2e & 2f to optimize bit test
5838         and branch
5839
5840 2004-08-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5841
5842         * src/mcs51/gen.c (genPointerGet, genNearPointerGet, genPagedPointerGet,
5843         genFarPointerGet, genCodePointerGet, genGenPointerGet, genUnpackBits),
5844         * src/mcs51/ralloc.c (packRegisters): optimize pointer get values used
5845         as conditionals
5846
5847 2004-08-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5848
5849         * src/mcs51/peeph.def: peepholes 248.i-m for xdata bitfields
5850
5851 2004-08-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5852
5853         * src/mcs51/ralloc.c (packRegsForOneuse): fixed bug #1012650 and some
5854         related problems
5855
5856 2004-08-21 Bernhard Held <bernhard AT bernhardheld.de>
5857
5858         * sim/ucsim/cmd.src/Makefile.in: run lex only if $(PRJDIR)/devel exists
5859
5860 2004-08-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5861
5862         * src/z80/ralloc.c (packRegsForAssign): ported some bug fixes from the
5863         mcs51 port
5864
5865 2004-08-16 Slade Rich <slade_rich AT users.sourceforge.net>
5866
5867         * src/pic/gen.c: Restored fn genRet as previous fix was incorrect.
5868
5869 2004-08-14 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5870
5871         * src/mcs51/gen.c (genJumpTab): jumptables for more than 16 switch
5872         cases use more compact code.
5873
5874 2004-08-13 Slade Rich <slade_rich AT users.sourceforge.net>
5875
5876         * src/pic/gen.c: Fixed problem with fn returning a variable bigger than a char.
5877
5878 2004-08-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5879
5880         * src/SDCClrange.c (findPrevUse): fixed bug #1007371
5881
5882 2004-08-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5883
5884         * src/SDCCsymt.h,
5885         * src/SDCCsymt.c (changePointer, checkDecl, addSymChain): changed
5886         parameter of changePointer() from symbol* to sym_link*
5887         * src/SDCCast.c (decorateType): call changePointer() for CAST op
5888         * src/SDCCsymt.c (compareType): void* type is castable to other
5889         pointers, but not necesarily an exact match.
5890         * src/SDCCicode.c (geniCodeCast): allow void* casting here since it
5891         is no longer blindly treated as an exact match.
5892         * src/SDCCval.c (valCastLiteral): treat missing type as cast to void
5893
5894 2004-08-12 Slade Rich <slade_rich AT users.sourceforge.net>
5895
5896         * src/pic/glue.c: Added struct initialisation fn printIvalStruct.
5897
5898 2004-08-11 Slade Rich <slade_rich AT users.sourceforge.net>
5899
5900         * src/pic/gen.c,
5901         * src/pic/pcode.c,
5902         * src/pic/ralloc.h,
5903         * src/pic/ralloc.c: Printing rIdx on internal verbose debug.
5904
5905 2004-08-10 Slade Rich <slade_rich AT users.sourceforge.net>
5906
5907         * src/pic/device.c,
5908         * src/pic/device.h,
5909         * src/pic/device.c: Will no longer exit if #pragma maxram has not been defined.
5910
5911 2004-08-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5912
5913         * src/mcs51/gen.c (emitcode): fixed bug #992819
5914
5915 2004-08-05 Maarten Brock <sourceforge.brock AT dse.nl>
5916
5917         * src/pic/ralloc.c (deassignLR): allthough pic port is buggy already,
5918           there's no need to make it worse
5919
5920 2004-08-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5921
5922         * src/mcs51/ralloc.c (deassignLR),
5923         * src/ds390/ralloc.c (deassignLR),
5924         * src/hc08/ralloc.c (deassignLR),
5925         * src/z80/ralloc.c (deassignLR),
5926         * src/pic/ralloc.c (deassignLR),
5927         * src/pic16/ralloc.c (deassignLR),
5928         * src/avr/ralloc.c (deassignLR),
5929         * src/SDCClrange.c (findRecursiveSucc, findRecursivePred, findPrevUse,
5930         rlivePoint): fixed another part of bug #971834
5931
5932 2004-08-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5933
5934         * src/z80/main.c: enabled "critical" keyword
5935         * src/z80/mappings.i,
5936         * src/z80/gen.c (genFunction, genEndFunction): support for interrupt
5937         functions (fixes bug #979646)
5938         * doc/sdccman.lyx: added a subsection explaining z80 interrupt support
5939
5940 2004-08-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5941
5942         * src/mcs51/gen.c (genInline): Add \n for labels, not DOS/WIN dirs
5943           such as c:\mydir.
5944
5945 2004-08-03 Maarten Brock <sourceforge.brock AT dse.nl>
5946
5947         * src/SDCCloop.c (loopInvariants): fixed bug 983545, hope this
5948           doesn't disable too much optimizations
5949
5950 2004-08-02 Slade Rich <slade_rich AT users.sourceforge.net>
5951
5952         * src/pic/glue.c Disabled "WARNING: function 'main' undefined" when -S option is used.
5953
5954 2004-08-02 Maarten Brock <sourceforge.brock AT dse.nl>
5955
5956         * src/SDCClrange.c (rlivePoint): fixed bug 988568, thanks to anonymous
5957
5958 2004-08-02 Slade Rich <slade_rich AT users.sourceforge.net>
5959
5960         * src/pic/gen.c tidied up tabs
5961         * src/pic/genarith.c tidied up tabs and fixed bug with literal multiple where same register was used for hi and low byte
5962         * src/pic/main.c tidied up tabs
5963         * src/pic/pcode.c tidied up tabs and disabled verbose code generation
5964         * src/pic/pcoderegs.c tidied up tabs
5965         * src/pic/ralloc.c tidied up tabs
5966
5967 2004-07-30 Vangelis Rokas <vrokas AT otenet.gr>
5968
5969         * src/SDCCmem.c (allocGlobal): don't turn S_REGISTER storage class
5970         to S_FIXED for pic16 port and when symbol is not in level 0,
5971         allocate for S_REGISTER storage class and pic16 port, too,
5972         * src/pic16/device.h: prototype for checkSym,
5973         * src/pic16/device.c (pic16_dump_access, checkSym): NEW,
5974         * (pic16_assignConfigWordValue): test the value and the mask to
5975         validate that the value is suitable for the configuration word,
5976         * src/pic16/glue.c (pic16_printIvalFuncPtr): use 'externs' to
5977         collect extern declared symbols, don't emit symbol twice, check
5978         first if symbol is in publics set first,
5979         * src/pic16/main.c (_pic16_keywords[]): added keyword 'register',
5980         * added command line '--fstack' which enables an experimental
5981         feature for stack access, too buggy to be used yet...
5982         * src/pic16/ralloc.c (pic16_accessregWithName): NEW,
5983         * (pic16_allocDirReg): when register has storage class S_REGISTER
5984         allocate in pic16_dynAccessRegs,
5985         * device/include/pic16/pic18f????.h: modified configuration word
5986         naming convention, words started as CONFIG0H but should be CONFIG1H
5987
5988 2004-07-29 Maarten Brock <sourceforge.brock AT dse.nl>
5989
5990         * device/include/mcs51reg.h: fixed bug 970993
5991
5992 2004-07-27 Maarten Brock <sourceforge.brock AT dse.nl>
5993
5994         * added lib/calloc.c, lib/free.c, lib/realloc.c, include/stddef.h
5995         * updated lib/malloc.c, lib/libsdcc.lib, lib/Makefile.in, include/malloc.h
5996         * src/SDCC.lex (doPragma): added pragma disable_warning <nnn>
5997         * src/SDCCmain.c (parseCmdLine): added option --disable-warning <nnn>
5998         * src/ds390/gen.c (genPlusIncr): fixed bug when incrementing generic pointers
5999         * support/Util/SDCCerr.c (vwerror): suppress disabled warnings and output
6000           error/warning numbers,
6001           added function setWarningDisabled()
6002         * support/Util/SDCCerr.h: added setWarningDisabled() and MAX_ERROR_WARNING
6003         * support/regression/ports/mcs51-stack-auto/spec.mk: added dependencies
6004           _memcmp.c _memmove.c calloc.c realloc.c free.c
6005         * support/regression/tests/malloc.c: added tests for new functionality
6006         * support/regression/tests/zeropad.c: added tests for truncated initializers
6007           and initialized char arrays starting with '\x0'
6008         * src/mcs51/peeph.def: fixed regression, added peephole 177.f
6009
6010 2004-07-26 Bernhard Held <bernhard AT bernhardheld.de>
6011
6012         * support/valdiag/tests/overflow.c: fixed warning on (1 >> 40)
6013
6014 2004-07-26 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6015
6016         * doc/sdccman.lyx: updated example in section "Absolute Addressing"
6017         * src/mcs51/peeph.def: added contributed fix for "bug" #995347 as
6018         peephole 177.e. Thanks to anonymous
6019
6020 2004-07-25 Vangelis Rokas <vrokas AT otenet.gr>
6021
6022         * src/pic16/glue.c (pic16_printIvalFuncPtr): when an extern
6023         function isn't used in the source but referenced as a
6024         variable initializer then declare it as extern in .asm file
6025
6026 2004-07-24 Vangelis Rokas <vrokas AT otenet.gr>
6027
6028         * .version: increased version number to 2.4.3
6029
6030         Adding version extension according to ChangeLog CVS revision
6031         * src/Makefile.in (target all): added dependency 'version.h'
6032         * (rule version.h): added rule to create version.h from ChangeLog,
6033         * (rule dep): added dependency version.h,
6034         * src/version.awk: AWK script to create version.h
6035         * src/SDCCdwarf2.c (dwWriteModule),
6036         * src/SDCCglue.c (initialComments),
6037         * src/SDCCmain.c (printVersionInfo): modified to write after
6038         version string the version extension number,
6039         * src/SDCCutil.c: included "version.h"
6040         * (getBuildNumber): NEW, returns SDCC's ChangeLog minor revision
6041         number,
6042         * src/SDCCutil.h: added prototype for getBuildNumber
6043
6044         * src/SDCCmain.c (parseCmdLine): when sOpt is 'I' add rest in
6045         includeDirsSet, too,
6046         * src/SDCCsymt.c (checkSClass): don't emit error when a variable,
6047         const char [] is found in function prototype...
6048
6049         * src/pic16/genarith.c (pic16_genUMult8XLit_8): optimization to omit
6050         moving to WREG with source is already in WREG,
6051         * src/pic16/gen.h: added AOP_FSR0 and AOP_FSR2 in enum,
6052         * src/pic16/gen.c (getFreePtr): updated to look for FSR0 and FSR2,
6053         * (aopForSym): stack'ed symbols are partially supported, added
6054         if-clause to support symbols in FARSPACE,
6055         * (sameRegs): added test for AOP_ACC to see if registers are same,
6056         * (pic16_freeAsmop): added case for AOP_FSR0 and AOP_FSR2,
6057         * (pic16_aopGet): added case for AOP_FSR0 and AOP_FSR2,
6058         * (pic16_popRegFromString): will not allocate a new register if it
6059         doesn't find one by name, bug may have introduced...
6060         * (pic16_popGet): added case for AOP_FSR0 and AOP_FSR2,
6061         * (genIpush): revived to use pic16 port's stack,
6062         * (genAddrOf): added incomplete case for stack'ed operand,
6063         * (genCast): optimized a pair of MOVFW,MOVWF to MOVFF
6064         * src/pic16/genutils.c (pic16_genNot): almot new vesrion for NOT,
6065         can handle multibyte operands,
6066         * src/pic16/glue.c (pic16_printIval*): some debug info added,
6067         * (pic16initialComments): added message for MPLAB compatibility
6068         mode enabled,
6069         * src/pic16/main.h: prototype for pic16_mplab_comp,
6070         * src/pic16/main.c (pic16_optionsTable): new option --mplab-comp,
6071         which enabled MPLAB compatibility mode (i.e. no #LINE/#FILE, BANKED)
6072         * (_pic16_linkEdit): NEW, handles link stage, transferred here
6073         because of increased complexity of procedure,
6074         * (_process_pragma): stack pragma changed to format 'stack pos len',
6075         emit symbol '_stack_end' to conform with gplink,
6076         * src/pic16/pcode.c (pic16_newpCodeOpBit): using pic16_regWithName
6077         to search for register,
6078         * (pic16_get_op, pic16_get_op2): added case for PO_W, PO_WREG and
6079         PO_GPR_REGISTER,
6080         * (pic16_pCode2str): when in MPLAB compatibility mode, comment out
6081         #LINE directives and replace 'B' with 'BANKED' in instruction opcodes
6082         * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): added
6083         case for PO_GPR_REGISTER,
6084         * (pic16_AnalyzeBanking): removed the old message for inc2h.pl, past
6085         dies, the new era is ahead !...
6086         * src/pic16/ralloc.c: added hash reposits pic16_dynAllocRegNames and
6087         pic16_dynInternalRegs,
6088         * (pic16_allocregWithName, pic16_procregWithName, pic16_regWithname): NEW,
6089         * (pic16_allocDirReg): minor optimizations and bug fixes,
6090         * (pic16_allocWithIdx): when searching pic16_dynProcessorRegs use fixed,
6091
6092         * device/lib/pic16/startup/crt0*.c: extern definition of stack_end,
6093         load stack and frame pointer with address of 'stack_end' symbol
6094
6095 2004-07-23 Vangelis Rokas <vrokas AT otenet.gr>
6096
6097         * src/pic16/glue.c (pic16emitStaticSeg): fixed bug with files
6098         without source code but only variable initializers
6099
6100 2004-07-20 Vangelis Rokas <vrokas AT otenet.gr>
6101
6102         * src/pic16/glue.c (pic16emitRegularMap): unused functions marked as
6103         external are not declared as extern to reduce overhead while linking
6104
6105 2004-07-20 Maarten Brock <sourceforge.brock AT dse.nl>
6106
6107         * src/SDCCast.c (decorateType): removed buggy fix for bug #979599
6108
6109 2004-07-11 Maarten Brock <sourceforge.brock AT dse.nl>
6110
6111         * src/SDCCglue.c (printIvalArray): fixed bug #984229, thanks to Phuah
6112           Yee Keat for the patch
6113         * src/SDCCast.c (decorateType): fixed bug #979599
6114         * src/ds390/gen.h: removed local fReturnSizeDS390
6115         * src/ds390/gen.c: made fReturnSizeDS390 signed short to remove a warning
6116         * src/ds390/gen.c (genAnd, genOr, genXor),
6117         * src/mcs51/gen.c (genAnd, genOr, genXor): generate better optimized code
6118
6119 2004-07-04 Vangelis Rokas <vrokas AT otenet.gr>
6120
6121         * src/SDCCmain.c (linkEdit): modifications only for pic16 port,
6122         add relFilesSet to $3, manipulate $2 to handle linking of object
6123         files without source files in command line,
6124         * device/include/pic16 (all headers): added ID location macros,
6125         * src/pic16/device.c (struct PIC16_device Pics16[]): added field
6126         entries for ID location bytes,
6127         * (pic16_assignIdByteValue): NEW,
6128         * src/pic16/device.h: new structures idRegInfo_t and idBytesInfo_t,
6129         added field dumpcalltree to pic16_options_t,
6130         * src/pic16/gen.c (genCmp): fixed bug case so a temporary register
6131         is used instead of pic16_Gstack_base_addr, check if (ifx) before
6132         emitting rFalseIfx label after check_carry label,
6133         * src/pic16/glue.c (PIC16_IS_IDLOC_ADDRESS, PIC16_IS_HWREG_ADDRESS,
6134         pic16_emitDIRegs), NEW
6135         * (pic16glue): dump .calltree file when option --calltree found,
6136         * src/pic16/main.c (OPTION _pic16_optionsTable): new option --calltree
6137         * (_pic16_genAssemblerPreamble): emit ID locations after
6138         configuration registers,
6139         * (pic16_linkCmd): modifications of the link command,
6140         * src/pic16/pcode.c (pic16_pciMOVFF): PCC_REGISTER replaces PCC_REGISTER2
6141         * (pic16_pCodeInitRegisters): don't init stack registers,
6142         * (pic16_findPrevInstruction): fixed bug,
6143         * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): fixed
6144         bug with immediate registers,
6145         * (buildCallTree): traces stack push and pop,
6146         * (pct2): dump also stack usage for each function,
6147         * src/pic16/ralloc.c (dynrIdx): registers names start from 0x00
6148         * (pic16_allocDirReg): various modifications,
6149         * (pic16_typeRegWithIdx): when searching pic16_dynProcessorRegs set
6150         fixed to 1,
6151
6152 2004-07-02 Vangelis Rokas <vrokas AT otenet.gr>
6153
6154         * src/pic16/pcode.c: removed buggy double colon
6155
6156 2004-07-01 Borut Razem <borut.razem AT siol.net>
6157
6158         * support/scripts/sdcc.nsi: added include/pic16 to setup
6159
6160 2004-06-30 Vangelis Rokas <vrokas AT otenet.gr>
6161
6162         * device/lib/Makefile.in: fixed bug in target objects-pic16,
6163         * device/lib/pic16/Makefile: prefixed with dash (-) command under
6164         target 'clean',
6165         * doc/sdccman.lyx: changed version to 2.4.2 and added some port
6166         specific command line arguments. Also added sample lkr script
6167         for placing a variable at a specific memory bank.
6168         * src/pic16/device.c (pic16_dump_gsection): NEW, to dump variables
6169         at a specific memory bank,
6170         * (pic16_dump_isection): fixed bug which caused string literals to
6171         be omitted when dumping idata section,
6172         * (pic16_groupRegistersInSection): added code to handle registers
6173         in specific memory banks,
6174         * src/pic16/gen.c: labelOffset is prefixed with pic16_ and made
6175         public, all references are renamed too,
6176         * (pic16_aopGet): removed switch cases for AOP_R0,AOP_R1,AOP_DPTR,
6177         AOP_DPTR2,
6178         * (pic16_storeForReturn): added case to handle when dest is WREG,
6179         * src/pic16/genarith.c (pic16_pCodeOpSubType): NEW,
6180         * src/pic16/glue.c (pic16emitRegularMap): when adding a register in
6181         pic16_rel_udata, check to see if that register is marked as being
6182         a member of a specific memory bank,
6183         * (pic16_printIvalCharPtr): added code to add string literals either
6184         to code or the idata sections,
6185         * src/pic16/main.c (_process_pragma): added \n to WHITE constant,
6186         also accept the 'udata' pragma,
6187         * src/pic16/main.h: new structure types sectName and sectSym
6188         * src/pic16/pcode.c: added new pCodeInstruction entry for BANKSEL
6189         * (newpCodeOpBit): added PIC_OPTYPE subt in function prototype,
6190         * (pic16_findPrevInstruction): fixed, it returned nothing,
6191         * (insertBankSwitch): fixed to emit banksel/skip and skip/banksel
6192         instruction combinations,
6193         * (pic16_FixRegisterBanking): heavily reorganised,
6194         * (pic16_AnalyzeBanking): if generating banksel directives is
6195         disabled, then don't call FixRegisterBanking at all,
6196         * src/pic16/ralloc.c (bitEQUs, aliasEQUs, allDefsOutOfRange):
6197         completely removed,
6198         * (pic16_writeUsedRegisters): added call to pic16_dump_gsection
6199
6200 2004-06-29 Bernhard Held <bernhard AT bernhardheld.de>
6201
6202         * src/SDCCglue.c (printChar): fixed bug #973350, patch provided by
6203         Phuah Yee Keat <yk.phuah AT nestac.com>
6204
6205 2004-06-28 Vangelis Rokas <vrokas AT otenet.gr>
6206
6207         * src/pic16/glue.c (pic16createInterruptVect): function now emits
6208         correctly the IVT even if it is relocated to some other location
6209
6210 2004-06-28 Vangelis Rokas <vrokas AT otenet.gr>
6211
6212         * device/include/pic16/pic18fregs.h: added case for pic18f2220.h
6213         * device/include/pic16/pic18f2220.h: NEW,
6214         * device/lib/pic16/libdev/pic18f2220.c: NEW,
6215         * device/lib/pic16/libdev/Makefile: added 18f2220 in DEVS,
6216         * src/pic16/device.c (struct Pics16): added info for 18f2220,
6217         * src/pic16/device.h (struct pic16_options): added ivt_loc and
6218         nodefaultlibs, ivt_loc is the location of the interrupt vector
6219         table, and nodefaultlibs signs that default libraries should not be
6220         linked in link stage,
6221         * src/pic16/gen.c (genFunction): relocate interrupt vector functions
6222         according to --ivt-loc argument,
6223         * src/pic16/main.c (_process_pragma): emit '_stack' as public symbol
6224         when pragma stack is found,
6225
6226 2004-06-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6227
6228         * src/mcs51/peeph.def: added peepholes 182.d (return 0.0),
6229         256 (range check), 257 (do while), 258.a-f (bit banging
6230         f.e. on 3-wire SPI bus)
6231
6232 2004-06-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6233
6234         * src/SDCClrange.c (findNextUseSym): fixed a live range bug with
6235         variables used exclusively within a loop
6236
6237 2004-06-21 Bernhard Held <bernhard AT bernhardheld.de>
6238
6239         * src/mcs51/gen.c (genCpl): quick fix for bug #974835
6240
6241 2004-06-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6242
6243         * src/SDCClrange.c (computeClash): fixed bug #971834
6244
6245 2004-06-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6246
6247         * src/mcs51/gen.c (genCmp): fixed bug #975903
6248         * src/hc08/gen.c (operandsEqu),
6249         * src/ds390/gen.c (operandsEqu),
6250         * src/z80/gen.c (operandsEqu),
6251         * src/pic/gen.c (operandsEqu),
6252         * src/pic16/gen.c (operandsEqu),
6253         * src/mcs51/gen.c (operandsEqu): fixed bug #976283
6254         * src/SDCCmain.c (parseCmdLine): report --unknown-option only once
6255
6256 2004-06-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6257
6258         * src/SDCCcse.c (cseBBlock): fixed bug #966963
6259
6260 2004-06-12 Vangelis Rokas <vrokas AT otenet.gr>
6261
6262         * src/pic16/gen.c (genPointerGet): added E_INTERNAL_ERROR for
6263         default case in switch statement,
6264         * glue.c (pic16_initPointer): expr is initialised via decoarteType
6265         to eliminate problem with initialisation of pointers, but problem
6266         still exists,
6267         * (pic16_pointerTypeToGPByte): removed, no needed for pic16,
6268         * (emitStaticSegment): removed various lines emitting debug info,
6269         * src/pic16/pcode.c, src/pic16/pcode.h, src/pic16/ralloc.h:
6270         added processor registers for utilizing EEPROM,
6271         * src/pic16/pcode.c (pic16_emitDB): number of DBs emitted is not
6272         configurable and set 8
6273
6274 2004-06-08 Vangelis Rokas <vrokas AT otenet.gr>
6275
6276         * .version: increased version number to 2.4.2,
6277
6278         Cumulative patch for pic16 port
6279         * src/pic16/device.c: changed scheme to dump initial values for
6280         variables in idata segment, all print_idata* functions were removed,
6281         now the pic16_printIval* will be called,
6282         * src/pic16/glue.c: (pic16_initPointer, pic16_pointerTypeToGPByte,
6283         * _pic16_printPointerType, pic16_printPointerType,
6284         * pic16_printGPointerType, pic16_printIvalArray, pic16_printIvalStruct,
6285         * pic16_printIvalBitFields, pic16_printIvalFuncPtr, pic16_printIvalPtr:
6286         NEW, similar to the respective functions in SDCCglue.c,
6287         * src/pic16/pcode.c (pic16_emitDB, pic16_flushDB): reverted to old
6288         way, emitting hex bytes,
6289         * (pic16_emitDS): NEW, emits a string for pointer initialisation,
6290
6291 2004-06-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6292
6293         * src/avr/ralloc.c (serialRegAssign),
6294         * src/xa51/ralloc.c (serialRegAssign),
6295         * src/pic/ralloc.c (serialRegAssign),
6296         * src/pic16/ralloc.c (serialRegAssign),
6297         * src/hc08/ralloc.c (serialRegAssign),
6298         * src/z80/ralloc.c (serialRegAssign),
6299         * src/ds390/ralloc.c (serialRegAssign),
6300         * src/mcs51/ralloc.c (serialRegAssign): fixed bug #964479
6301
6302 2004-06-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6303
6304         * src/SDCCicode.c (geniCodeJumpTable): fixed bug #967601
6305         * src/SDCCpeeph.c (labelIsReturnOnly): fixed bug #966505
6306
6307 2004-06-07 Vangelis Rokas <vrokas AT otenet.gr>
6308
6309         Cumulative patch for pic16 port:
6310         * src/pic16/device.h (typedef PIC16_device) modified fields for
6311         defining microcontrollers,
6312         * src/pic16/device.c: added new info for all devices in Pics16 array,
6313         * src/pic16/gen.c (genPcall): fixed bug that caused the return label
6314         to be optimised out by the pCode optimiser,
6315         * src/pic16/glue.c (pic16emitRegularMap): treat implicit aggragates
6316         specially, bug reported by G.M. Gallant,
6317         * src/pic16/pcode.c (pic16_newpCodeLabelFORCE): NEW, marks a label
6318         as force'd so that cannot be optimised out by pCode optimiser,
6319         * src/pic16/pcode.c,
6320         * src/pic16/pcodepeeph.c,
6321         * src/pic16/pcoderegs.c: many modifications to re-enable peepholes,
6322         they are disabled by default, but can be enabled explicit with
6323         command argument --denable-peeps, for testing,
6324         * device/lib/pic16/startup/Makefile: added --no-peep,--pomit-config-words,
6325         --pomit-ivt in COMPILE_FLAGS
6326
6327 2004-06-06 Maarten Brock <sourceforge.brock AT dse.nl>
6328
6329         * src/pic16/pcode.c (pic16_emitDB): removed double semicolon which fails
6330           compilation on MSVC
6331
6332 2004-06-06 Maarten Brock <sourceforge.brock AT dse.nl>
6333
6334         * device/include/sab80515.h: added sfr P6, changed GPL to LGPL
6335
6336 2004-06-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6337
6338         device/include/sab80515.h: fixed bug #967492, DAPR is defined at adress
6339         0xd8, but the correct adress is 0xda. Thanks to anonymous for reporting
6340
6341 2004-06-06 Vangelis Rokas <vrokas AT otenet.gr>
6342
6343         * src/pic16/device.c (pic16_assignConfigWord): fixed bug that
6344         would only assign 0x300001 register.
6345
6346 2004-06-05 Vangelis Rokas <vrokas AT otenet.gr>
6347
6348         * device/lib/pic16/startup/Makefile: added $(MODELFLAGS)
6349         in COMPILE_FLAGS. Thanks to G. Gallant for report.
6350
6351 2004-06-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6352
6353         * doc/sdccman.lyx: minor changes, mentioned beta vendor support
6354         for ds80c400
6355         * src/mcs51/peeph.def: ran unexpand -a over peeph.def
6356         * src/mcs51/peeph.def: removed obsolete peephole 100.a,
6357         added peephole 254 (left shift), 255 (jump table)
6358
6359 2004-06-04 Vangelis Rokas <vrokas AT otenet.gr>
6360
6361         * device/lib/Makefile.in: removed comment line with model-pic16,
6362         * (target port-specific-objects-pic16): the libraries and objects
6363         are copied to the build directory form the device/lib/pic16/bin
6364         directory
6365
6366         Cumulative patch concerning pic16 port:
6367         * library directory has been re-organized,
6368         * added support for PIC18F1220,
6369         * added headers and library sources for chips 18f1220,18f6520,
6370         18f6620,18f6680,18f6720,18f8520,18f8620,18f8680,18f8720
6371
6372         * configuration registers setting has changed, now each supported
6373         device has a complete description of the registers it uses,
6374         * all initialisations are moved to idata sections, these section
6375         can be absolute or relocatable,
6376         * fixed initialisation of codespace variables,
6377         * fixed warning about PCLATU and gpsim,
6378         * src/pic16/gen.c (genCmp): now can handle partially iCodes with no ifx,
6379         * (genAssign): use table reads when assigning from variables in codespace,
6380         * src/pic16/glue.c (pic16emitStaticSeg): fixed to correctly initialise
6381         char/int variables placed in codespace,
6382         * (pic16_emitConfigRegs): NEW, emits a list with configuration
6383         registers set in .asm file, no need for --pomit-config-words anymore,
6384         * (pic16glue): some 8051 legacy segments are commented out
6385         (to be removed completely),
6386         * added support for alternative assembler and linker with --asm=
6387         and --link= command line arguments,
6388         * peepholes are disabled automatically in the port, no need to
6389         specify on command line,
6390         * port supports natively char/int/long multiplication, but converts
6391         all divisions to support functions,
6392         * main.c: pic16_linkCmd and pic16_asmCmd changed to force output
6393         to the file set in variable $2,
6394         * pcode.c (pic16_emitDB, pic16_flushDB): modified to print printable
6395         strings in ASCII format and not in hex,
6396         * ralloc.c (serialRegAssign): added a triplet of conditional calls
6397         to pic16_allocDirReg for IC_RESULT, IC_LEFT and IC_RIGHT so to
6398         allocate proper register if iCodes aren't temporary,
6399
6400 2004-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
6401
6402         * support/regression/tests/zeropad.c: added TEST_G macro for alpha
6403
6404 2004-06-02 Vangelis Rokas <vrokas AT otenet.gr>
6405
6406         * src/pic16/gen.c (genPcall): warning about gpsim and PCLATU
6407         is commented out
6408
6409 2004-06-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6410
6411         * src/hc08/gen.c (genPointerGetSetOfs): disabled optimization if
6412         computed address is reused
6413         * src/hc08/gen.c (genPackBits): fixed offsets in assignments to
6414         multi-byte bitfields
6415
6416 2004-06-01 Maarten Brock <sourceforge.brock AT dse.nl>
6417
6418         * src/z80/gen.c: (genArrayInit): must check for pointers too
6419
6420 2004-06-01 Maarten Brock <sourceforge.brock AT dse.nl>
6421
6422         * support/regression/tests/zeropad.c: never meant to commit the
6423           nestedstruct test: removed, added check for GCC version
6424
6425 2004-05-31 Maarten Brock <sourceforge.brock AT dse.nl>
6426
6427         * src/SDCCast.c (createIvalArray): fixed bug 770487 SIGSEGV
6428         * src/SDCCglue.c (emitRegularMap): fixed bug 770484 allocation problem
6429         * src/SDCCglue.c (initPointer, printIvalType, printIvalStruct,
6430           printIvalArray, printIvalFuncPtr, printIvalPtr, printIval): fixed
6431           bugs 928906 and 954082 half-empty initializers
6432         * src/SDCCsymt.h,
6433         * src/SDCCsymt.c (getAllocSize): added for above fix
6434         * src/z80/gen.c (genArrayInit): fixed bug 741044
6435         * support/regression/tests/zeropad.c: added tests
6436
6437 2004-05-30 Vangelis Rokas <vrokas AT otenet.gr>
6438
6439         * src/pic16/device.c (pic16_dump_section): corrected bug which
6440         caused some symbols of the libraries to be misplaced
6441
6442 2004-05-28 Vangelis Rokas <vrokas AT otenet.gr>
6443
6444         * src/pic16/glue.c,
6445         * src/pic16/ralloc.h,
6446         * src/pic16/ralloc.cc: prefixed IS_CONFIG_ADDRESS with PIC16_
6447         to fix conflict with pic port
6448
6449 2004-05-28 Vangelis Rokas <vrokas AT otenet.gr>
6450
6451         * src/pic16/glue.c (pic16emitStaticSeg): do not print as publics or
6452         externs configuration variables,
6453         * src/pic16/ralloc.h,
6454         * src/pic16/ralloc.cc: IS_CONFIG_ADDRESS is made public and added
6455         prototype in header, commented out some debug messages
6456
6457 2004-05-26 Vangelis Rokas <vrokas AT otenet.gr>
6458
6459         * src/pic16/glue.c,
6460         * src/pic16/main.c,
6461         * src/pic16/pcode.c: added gpasm directives #FILE/#LINE
6462         for gpasm COFF object generation. Thanks to D. Hawkins for
6463         his patch info
6464
6465 2004-05-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6466
6467         * src/ds390/main.c,
6468         * src/mcs51/main.c: fixed sort order of mnemonics (thanks to Maarten
6469         Brock for spotting this)
6470         * src/ds390/gen.c (genEndFunction),
6471         * src/mcs51/gen.c (genEndFunction): always save psw if function is an
6472         interrupt handler and critical. Disable push/pop optimizations when
6473         peephole optimizations disabled.
6474
6475 2004-05-25 Vangelis Rokas <vrokas AT otenet.gr>
6476
6477         Updated pic16 library sources and headers.
6478         * device/lib/pic16/pic18f*/ ,
6479         * device/include/pic16/*.h: modified to handle structured SFR
6480         definitions
6481
6482 2004-05-25 Vangelis Rokas <vrokas AT otenet.gr>
6483
6484         * src/port.h (PORT structure): added hook initPaths, now each
6485         port can declare its own default search paths,
6486         which can been seen with the --print-search-dirs option,
6487         see pic16 port for example,
6488         * src/SDCCmain.c (setBinPaths, setIncludePaths, setLibPath,
6489         setDataPaths): test to options.printSearchDirs is ifdef'ed out,
6490         * (doPrintSearchDirs): NEW, replaces in a central manner the
6491         printing of search dirs which was split in set*Paths functions,
6492         * (main): added call to port->initPaths and doPrintSearchDirs,
6493         * src/avr/main.c,
6494         * src/ds390/main.c,
6495         * src/hc08/main.c,
6496         * src/izt/i186.c,
6497         * src/izt/tlcs900h.c,
6498         * src/mcs51/main.c,
6499         * src/pic/main.c,
6500         * src/pic16/main.c: modified port structures to reflect addition of
6501         initPaths hook,
6502
6503         * src/pic16/device.c (regCompare): registers are finally sorted by name,
6504         * (pic16_dump_section): for registers in same address reserve memory once,
6505         * src/pic16/device.h (struct PIC16_device): changed variable gen_banksel
6506         to no_banksel,
6507         * src/pic16/genarith.c (pic16_genPlus): added code to handle cases where
6508         result is greater in size than right or left,
6509         * (pic16_genUMult8X8_8): there are some cases where the result can
6510         be 16 bits size, so handle these,
6511         * src/pic16/gen.c: changed some pic16_emitpcomment to DEBUGpic16_emitcode,
6512         * (pic16_outBitC): modified to emit pcodes,
6513         * (pic16_storeForReturn): using is_LitOp to see if operand is literal
6514         or not,
6515         * (genDivOneByte): implemented algorithm to divide 8-bits,
6516         * (genCmp): uncommented goto, but issues still exist,
6517         * (genAnd): fixed a bug with variables >8bits,
6518         * (genPackBits): optimization added that uses BCF/BSF to change a
6519         single bit,
6520         * (genAssign): fixed bug when assigning floating point literals,
6521         * src/pic16/glue.c (pic16glue): added assembler directive 'code' before
6522         __sdcc_gsinit_startup label,
6523         * src/pic16/main.c (_pic16_init): removed search directory
6524         initialisations,
6525         * (_pic16_initPaths): NEW, used to initialise search directories,
6526         * (_hasNativeMulFor): support functions for all except char/int
6527         multiplication, and char division,
6528         * (PIC16_port struct): modified entry for native mul support,
6529         * src/pic16/pcode.c (insertBankSwitch): modified to support the renamed
6530         no_banksel option,
6531         * (buildCallTree): call to register_usage is ifdef'ed out,
6532
6533 2004-05-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6534
6535         * device/include/string.h: applied Stas Sergeev's patch to make this
6536         header file compatible with the preprocessor -Wundef option
6537         * src/SDCCmain.c (main): abort compilation if preprocessor reports
6538         failure (fixes bug #941458)
6539
6540 2004-05-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6541
6542         * src/SDCCopt.c (killDeadCode): fixed bug #907733
6543         * support/Util/SDCCerr.c: reworded E_AUTO_ASSUMED diagnostic to clarify
6544         that the variable, not the function, should be static
6545         * src/SDCCval.c (valCastLiteral): fixed bit initialization from literal
6546         to be consistent with non-literal case
6547
6548 2004-05-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6549
6550         * src/SDCCast.c (isConformingBody): fixed bug #949967
6551         * src/SDCCopt.c (cnvToFcall, cnvToFloatCast, cnvFromFloatCast,
6552         convilong): fixed bug #952086
6553
6554 2004-05-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6555
6556         * src/SDCCmem.c (allocVariables): fixed bug #955321
6557
6558 2004-05-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6559
6560         * src/hc08/main.c (_hc08_genAssemblerEnd),
6561         * src/SDCCdwarf2.c (dwOpenFile, dwCloseFile, dwWriteFunction,
6562         dwWriteModule, dwWriteCLine, dwWriteALine, dwarf2FinalizeFile):
6563         completely eliminated the use of a temporary file
6564         * src/SDCCdwarf2.c (dwWriteAttr): fixed bug with location list offset
6565         when more than one file linked
6566         * src/SDCCloop.c (pointerAssigned): fixed bug #954163
6567
6568 2004-05-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6569
6570         * src/SDCCval.c (valForArray): applied Maarten Brock's patch #947682
6571         which fixes bug #543481
6572         * support/regression/tests/bug-751703.c: fixed comments left from a
6573         cut and paste error
6574         * src/SDCCdwarf2.c (dwCloseFile): don't explicitly close a temp file
6575         * src/SDCCdwarf2.c (dwTagFromType): added bitfield support
6576         * src/SDCCdwarf2.c (dwWriteSymbolInternal): handle extern within local
6577         scopes
6578         * src/SDCCdwarf2.c (dwWriteLineNumber): line number deltas are signed
6579         * src/SDCCmain.c (processFile, parseCmdLine): non-alphanumeric chars
6580         are now changed to underscores in moduleName
6581
6582 2004-05-15 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6583
6584         * as/mcs51/lkmem.c: better fix for bug #954173
6585
6586 2004-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
6587         committed by Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6588
6589         * device/include/c8051f020.h: newly added SiLabs (Cygnal) header file
6590         * device/include/c8051f000.h,
6591         * device/include/c8051f120.h,
6592         * device/include/c8051f300.h,
6593         * device/include/c8051f310.h,
6594         * device/include/c8051f320.h: updated (added _XPAGE, CAPN, CAPP,
6595         PWM16) and detab'ed
6596
6597 2004-05-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6598
6599         * doc/sdccman.lyx: mentioned sourceforge's delay between web frontend
6600         and mailing lists, doc'ed --no-peep-comments, removed reference
6601         to knoppix (newest version has no LyX/LaTeX), other minor changes
6602         * src/SDCCglue.c (glue): save 2 bytes stack space with
6603         option --main-return. The ljmp could probably be avoided too
6604
6605 2004-05-14 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6606
6607         * as/mcs51/lkmem.c, as/mcs51/lkaomf51: fixed bug 954173
6608
6609 2004-05-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6610
6611         * src/SDCCsymt.h: added IS_AUTO(symbol) test macro
6612         * src/SDCCopt.c (isLocalWithoutDef),
6613         * src/SDCCicode.c (operandFromSymbol): use the IS_AUTO test macro
6614         which adds a !IS_EXTERN codition. Fixes bugs #877426 and #751703.
6615         (credit to Maarten Brock for patch #949363, on which this is based)
6616         * support/regression/tests/bug-751703.c: some test cases of extern used
6617         within inner scopes.
6618
6619 2004-05-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6620
6621         * src/SDCCdwarf2.c (dwMatchTypes): structs must have matching
6622         SPEC_STRUCT
6623         * src/SDCCdwarf2.c (dwTagFromType): fix to handle recursive
6624         struct definitions
6625         * src/SDCCdwarf2.c (dwWriteModule, dwNewDebugSymbol, dwWriteEndFunction,
6626         dwWriteLabel): fix to create valid debugger symbols even when
6627         the module name has non-alphanumeric symbols in it
6628         * src/SDCCdwarf2.c (dwWriteSymbolInternal): better detection for
6629         when a variable's allocation has been optimized away
6630
6631
6632 2004-05-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6633
6634         * src/hc08/gen.c (hc08_emitDebuggerSymbol),
6635         * src/hc08/main.c,
6636         * src/mcs51/gen.c (mcs51_emitDebuggerSymbol),
6637         * src/mcs51/main.c,
6638         * src/ds390/gen.c (ds390_emitDebuggerSymbol),
6639         * src/ds390/main.c,
6640         * src/z80/gen.c (z80_emitDebuggerSymbol),
6641         * src/z80/main.c,
6642         * src/pic/gen.c (pic14_emitDebuggerSymbol),
6643         * src/pic/main.c,
6644         * src/pic16/gen.c (pic14_emitDebuggerSymbol),
6645         * src/pic16/main.c,
6646         * src/avr/gen.c (avr_emitDebuggerSymbol),
6647         * src/avr/main.c,
6648         * src/xa51/gen.c (xa51_emitDebuggerSymbol),
6649         * src/xa51/main.c,
6650         * src/SDCCdebug.c (emitDebuggerSymbol),
6651         * src/SDCCdebug.h,
6652         * src/port.h: added a debugger struct to the port struct. Added a
6653         callback for defining debugger symbols
6654
6655         * src/SDCCast.c (createLabel),
6656         * src/SDCC.y (labeled_statement): mark all compiler generated labels
6657         with isitmp = 1
6658         * src/SDCCicode.h,
6659         * src/SDCCicode.c (geniCodeFunctionBody): added a link from the FUNCTION
6660         iCode back to the ast for the function
6661
6662         * src/hc08/ralloc.c (hc08_assignRegisters),
6663         * src/hc08/ralloc.h: define a regs struct for the stack pointer. Removed
6664         unneeded fields from the regs struct.
6665         * src/hc08/gen.c (transferRegReg, genFunction, genEndFunction): use the
6666         pushReg() & pullReg() functions instead of emitcode()
6667
6668         * src/hc08/gen.c (genLabel, genhc08Code),
6669         * src/SDCCdebug.h: Added additional debugger hooks needed for DWARF
6670
6671         * src/cdbFile.c (cdbWriteLabel, cdbWriteScope): Added stubs for unneeded
6672         debugger hooks
6673
6674         * src/hc08/gen.c (genEndFunction, genhc08Code),
6675         * src/hc08/gen.h,
6676         * src/mcs51/gen.c (genEndFunction, gen51Code),
6677         * src/mcs51/gen.h,
6678         * src/ds390/gen.c (genEndFunction, gen390Code),
6679         * src/ds390/gen.h,
6680         * src/z80/gen.c (genEndFunction, genZ80Code),
6681         * src/z80/gen.h,
6682         * src/z80/z80.h,
6683         * src/pic/gen.c (genEndFunction, genpic14Code),
6684         * src/pic/gen.h,
6685         * src/pic16/gen.c (genEndFunction, genpic16Code),
6686         * src/pic16/gen.h,
6687         * src/avr/gen.c (genEndFunction, genAVRCode),
6688         * src/avr/gen.h,
6689         * src/xa51/gen.c (genEndFunction, genXA51Code),
6690         * src/xa51/gen.h,
6691         * src/cdbFile.c (cdbWriteFunction, cdbWriteEndFunction): moved cdb
6692         specific code to cdbFile.c and out of the backend code generators
6693
6694         * as/hc08/lkmain.c (main): removed OMF51 support from link-hc08
6695         * as/hc08/lkarea.c (lnkarea): areas with NOLOAD attribute default
6696         starting address is now 0
6697
6698         * as/hc08/asm.h,
6699         * as/hc08/m08pst.c,
6700         * as/hc08/asmain.c (asmbl): implemented the .sleb128 and .uleb128
6701         assembler directive for DWARF support
6702         * as/hc08/lkelf.c (elf): only increment address when rtflg[] set
6703
6704         * src/src.dsp,
6705         * src/Makefile.in,
6706         * src/SDCCdwarf2.c: preliminary DWARF (ver 2) debugger data generator
6707
6708 2004-05-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6709
6710         * src/hc08/gen.c (genJumpTab, emitcode, genhc08code): fixed stack error
6711         and inappropriate peephole optimization in jump tables
6712
6713 2004-04-30 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6714
6715         * as/hc08/m08pst.c,
6716         * src/SDCCglue.c: sdccopt works for the hc08 port now
6717
6718 2004-04-27 Bernhard Held <bernhard AT bernhardheld.de>
6719
6720         * src/SDCCicode.c (geniCodePreInc, geniCodePreDec): fixed bug #942130
6721
6722 2004-04-27 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6723
6724         * as/hc08/lkelf.c: sdccconf.h is not available in WIN32
6725
6726 2004-04-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6727
6728         * src/SDCCpeeph.c (replaceRule): support empty replacement peephole
6729         rules
6730         * src/SDCCmain.c,
6731         * src/SDCCglobl.h,
6732         * src/SDCCpeeph.c (getPeepLine): new option --no-peep-comments omits
6733         comments from the peephole optimizer replacement rules
6734         * src/SDCCmem.c (printAllocInfoSeg): give actual location of spilled
6735         symbols
6736         * src/SDCCcse.c (updateSpillLocation),
6737         * src/SDCCopt.c (killDeadCode, findReqv): better tracking of register
6738         equivalents
6739         * src/hc08/ralloc.c (regTypeNum): pseudo symbols must be in DATA only
6740         * src/hc08/main.c (_hc08_finaliseOptions): made pointers to stack
6741         objects far pointers
6742
6743 2004-04-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6744
6745         * src/SDCCsymt.h: a missing part of my last change
6746         * src/pic/ralloc.c (regTypeNum),
6747         * src/pic16/ralloc.c (regTypeNum): fixed statement/declaration order
6748
6749 2004-04-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6750
6751         * src/SDCCicode.h,
6752         * src/SDCCicode.c (aggrToPtrDclType),
6753         * src/SDCCptropt.h,
6754         * src/SDCCptropt.c (ptrBaseRematSym, ptrPseudoSymSafe,
6755         ptrPseudoSymConvert),
6756         * src/pic/ralloc.c (regTypeNum),
6757         * src/pic16/ralloc.c (regTypeNum),
6758         * src/hc08/ralloc.c (regTypeNum),
6759         * src/ds390/ralloc.c (regTypeNum),
6760         * src/mcs51/ralloc.c (regTypeNum): check for dependancy hazards before
6761         creating pseudo symbols (fixed bugs #777768, #930484, and #933966)
6762
6763 2004-04-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6764
6765         * link/z80/lkmain.c (afile),
6766         * as/hc08/lkmain.c (afile),
6767         * as/mcs51/lkmain.c (afile): fix suggested by Maarten Brock to
6768         prevent a pointer problem when a filename has no directory and
6769         no extension specified.
6770
6771 2004-04-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6772
6773         * link/z80/lkmain.c (afile): allow periods in directory names
6774         * link/z80/lkmain.c (afile),
6775         * as/mcs51/lkmain.c (afile),
6776         * as/hc08/lkmain.c (afile): allow linker script file to have an
6777         extension other than ".lnk"
6778         * link/z80/lklex.c (getfid),
6779         * link/z80/lkmain.c (parse),
6780         * as/mcs51/lklex.c (getfid),
6781         * as/mcs51/lkmain.c (parse),
6782         * as/hc08/lklex.c (getfid),
6783         * as/hc08/lkmain.c (parse): Support comments in the linker script
6784         file on lines by themselves and after filenames
6785
6786 2004-04-20 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6787
6788         * as/link_hc08.dsp: Added as/hc08/lkelf.c to project.
6789
6790 2004-04-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6791
6792         * src/z80/peeph-z80.def: removed some peephole rules that don't
6793         work with multibyte arithmetic (fixed bug #937126)
6794         * src/mcs51/peeph.def: fixed peephole rules 150-158 to apply only
6795         to registers and not global variables
6796         * src/SDCCicode.c (geniCodeAssign, ast2iCode, geniCodePostInc,
6797         geniCodePreInc, geniCodePostDec, geniCodePreDec,
6798         geniCodeLogicAndOr, geniCodeConditional): enforce strict lvalue
6799         checking for assignments not internally generated (fixed bug #931895)
6800         * src/SDCC.y (postfix_expr): ignore typedefs when looking for a
6801         structure member (fixed bug #930072)
6802
6803 2004-04-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6804
6805         * src/SDCCmain.c (linkEdit),
6806         * src/hc08/main.c (_hc08_parseOptions),
6807         * as/hc08/Makefile.in,
6808         * as/hc08/aslink.h,
6809         * as/hc08/asm.h,
6810         * as/hc08/m08pst.c,
6811         * as/hc08/lkrloc.c (relr, rele),
6812         * as/hc08/lkarea.c (lnkarea)
6813         * as/hc08/lkmain.c (afile, parse),
6814         * as/hc08/lkelf.c: support for ELF output
6815         * as/hc08/lks19.c (s19),
6816         * as/hc08/lkihx.c (ihx): ignore areas with the NOLOAD attribute
6817
6818 2004-04-17 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6819
6820         * as/mcs51/lkihx.c: Fixed bug #899105.
6821
6822 2004-04-16 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6823
6824         * doc/sdccman.lyx: Added instructons on how to convert MSVC .dsw and
6825         .dsp files from Unix to DOS.
6826
6827 2004-04-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6828
6829         * doc/sdccman.lyx: removed the ANSI-C noncompliance note regarding
6830         function pointers; we have been compliant for several months now.
6831         * src/mcs51/ralloc.c (serialRegAssign): enabled part of my 2004-04-13
6832         change that was accidently commented out
6833         * src/mcs51/gen.c (freeAsmop, getFreePtr, freeForBranchAsmop, genIfxJump,
6834         genCmpEq, jmpTrueOrFalse, genCmp, genAnd, genOr, genXor, genIfx): fixed
6835         bug #922319
6836
6837 2004-04-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6838
6839         * src/hc08/gen.c: output of all of the internal debugging information
6840         is now controlled by the D() macro; it is disabled by default
6841
6842 2004-04-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6843
6844         * src/mcs51/ralloc.c (serialRegAssign, fillGaps, allocThisReg): try
6845         harder to keep the same registers during a CAST iCode
6846         * src/SDCCopt.c (optimizeCastCast, eBBlockFromiCode): casts of char to
6847         long via int can be done in a single cast, if the signedness is
6848         correct.
6849         * support/regression/tests/bug-927659.c: fixed to avoid conflict with
6850         putchar() in tinibios.c in ds390's library
6851
6852 2004-04-12 Bernhard Held <bernhard AT bernhardheld.de>
6853
6854         * src/SDCCast.c (decorateType): fixed bug #898889,
6855         cast result of a literal complement too
6856         * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #930931,
6857         fixed check for bitfields
6858
6859 2004-04-11 Bernhard Held <bernhard AT bernhardheld.de>
6860
6861         * src/SDCCicode.c (geniCodeLogic): made it static,
6862         (geniCodeLogicAndOr): added in order to fix bug #905492,
6863         (ast2iCode): fixed bug #905492
6864         * support/regression/tests/bug-905492.c: added
6865         * src/SDCCast.c (decorateType): don't decorate/process parms twice,
6866         (processParms): fixed bug #927659: don't copy parms, this will clear
6867         decorated flag
6868         * support/regression/tests/bug-927659.c: added
6869
6870 2004-03-29 Bernhard Held <bernhard AT bernhardheld.de>
6871
6872         * src/SDCCast.c (addCast): don't cast float to char
6873         * device/lib/libsdcc.lib: added _memmove
6874
6875 2004-03-28 Bernhard Held <bernhard AT bernhardheld.de>
6876
6877         * device/lib/large/Makefile: fixed parallel execution by
6878         replacing `make` by `$(MAKE)`
6879
6880 2004-03-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6881
6882         * src/hc08/gen.c (genPointerGetSetOfs): correctly handle 1 byte array
6883         offsets (fixes bug #923936)
6884
6885 2004-03-26 Bernhard Held <bernhard AT bernhardheld.de>
6886
6887         * device/lib/small/Makefile: fixed parallel execution by
6888         replacing `make` by `$(MAKE)`
6889
6890 2004-03-23 Bernhard Held <bernhard AT bernhardheld.de>
6891
6892         * device/lib/vprintf.c (vsprintf): minor optimization, see bug #801101
6893
6894 2004-03-23  Scott Dattalo  <scott AT dattalo.com>
6895
6896         * src/pic/gen.c (genCpl): multi-byte complements were not working.
6897         * src/regression/Makefile: Regression test was not running.
6898
6899 2004-03-23 Bernhard Held <bernhard AT bernhardheld.de>
6900
6901         * src/SDCCast.c (resultTypePropagate, decorateType): avoid promotion to int for
6902         complement if possible
6903         * src/SDCCval.c (valComplement),
6904         * src/SDCCicode.c (operandOperation): fixed complement of literal
6905         * support/regression/tests/onebyte.c (testComplement): added
6906
6907 2004-03-22 Bernhard Held <bernhard AT bernhardheld.de>
6908
6909         * src/SDCCast.c (processParms): fixed bug #920866; decorateType() can
6910         return an optimized tree; actually replace actParm with the new tree
6911         * src/SDCCast.h: added some parantheses to remove side effects
6912         * support/regression/tests/bug-920866.c
6913
6914 2004-03-21  Scott Dattalo  <scott AT dattalo.com>
6915         * src/pic/gen.c, src/pic/gen.h, src/pic/genarith.c, src/pic/pcode.c:
6916         Bit operands were not being handled properly in the pic14 port.
6917         (now src/regression/add.c passes again).
6918
6919 2004-03-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6920
6921         * src/SDCC.y (labeled_statement): case and default no longer require
6922         a following statement (RFE #893037)
6923
6924 2004-03-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6925
6926         * src/mcs51/gen.c (pushSide, genSignedRightShift, genDjnz, geniPush):
6927         use MOVA macro to avoid "mov a,acc" when peephole optimizer is
6928         disabled (fixes bug #916294)
6929         * sim/ucsim/s51.src/mov.cc (inst_mov_a_addr): Throw an error on
6930         "mov a,acc"; patch provided by Lenny Story
6931         * device/include/mc68hc908gp32.h: header contibuted by Juan Gonzalez
6932
6933 2004-03-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6934
6935         * src/mcs51/gen.c (genFunction): optimize RECEIVE in reentrant
6936         functions
6937         * src/ds390/gen.c (genFunction, genEndFunction),
6938         * src/ds390/ralloc.c (ds390_assignRegisters),
6939         * src/mcs51/gen.c (genFunction, genEndFunction, mcs51_assignRegisters):
6940         * src/mcs51/ralloc.c (mcs51_assignRegisters): Skip optimizing registers
6941         pushed if there are parameters passed on the stack. Also, a cleaner
6942         way to decide if r0/r1 should be pushed/popped. (Together they fix
6943         bug #918693)
6944
6945 2004-03-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6946
6947         * doc/sdccman.lyx,
6948         * device/lib/mcs51/crtpagesfr.asm,
6949         * device/lib/mcs51/crtxinit.asm,
6950         * device/lib/mcs51/crtxstack.asm: Changed name of _PAGESFR to _XPAGE
6951         to avoid confusion with Si Lab's SFRPAGE register.
6952
6953 2004-03-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6954
6955         * src/SDCCglue.c (emitMaps): allow public sfr variables
6956         * src/SDCCglue.c (initialComments): include compiler build date
6957         with compiler version and put the timestamp of the generated
6958         assembly file on a serperate line to be less confusing.
6959         * src/port.h: added genInitStartup hook
6960         * src/avr/main.c,
6961         * src/ds390/main.c,
6962         * src/hc08/main.c,
6963         * src/pic/main.c,
6964         * src/pic16/main.c,
6965         * src/xa51/main.c,
6966         * src/z80/main.c: genInitStartup initialize as NULL (default to
6967         historical behaviour)
6968         * src/SDCCglue.c (glue): _sdcc_gsinit_startup is now port specific.
6969         * src/mcs51/main.c: (_mcs51_genInitStartup, _mcs51_genExtraAreas,
6970         _mcs51_genXINIT, _mcs51_genRAMCLEAR): link initialization code from the
6971         library instead of hard coding it into the compiler.
6972         * support/regression/ports/mcs51-stack-auto/spec.mk,
6973         * src/SDCCmain.c (linkEdit): added mcs51.lib to the link libraries
6974         * device/lib/mcs51/Makefile,
6975         * device/lib/small/Makefile,
6976         * device/lib/large/Makefile,
6977         * device/lib/mcs51/crtpagesfr.asm,
6978         * device/lib/mcs51/crtstart.asm,
6979         * device/lib/mcs51/crtxclear.asm,
6980         * device/lib/mcs51/crtxinit.asm,
6981         * device/lib/mcs51/crtclear.asm,
6982         * device/lib/mcs51/crtxstack.asm: move most of the mcs51 C runtime
6983         startup/initialization out of src/SDCCglue.c and src/mcs51/main.c
6984         and into user configurable files.
6985         * device/lib/clean.mk: clean mcs51 directory too
6986         * support/regression/tests/longlit.c: added static to T1 declaration
6987         * doc/sdccman.lyx: documented _PAGESFR sfr for customizing pdata
6988         accesses in the initialization code
6989
6990 2004-03-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6991
6992         * device/include/mc68hc908qy.h: corrected declarations of FLBPR and
6993         OSCTRIMVAL as noted in bug #916008
6994
6995 2004-03-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6996
6997         * src/SDCCloop.c (basicInduction): fixed bug with loop induction
6998         in loops with multiple exits (reported as incorrect registers
6999         used by Martin Helmling in Sdcc-user list)
7000
7001 2004-03-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7002
7003         * src/ds390/main.c (_ds390_genAssemblerPreamble): cosmetic change,
7004         made ds390 register extensions look less like error messages
7005
7006 2004-03-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7007
7008         * src/SDCCglue.c (printIvalPtr): fixed bug with pointer initializer
7009         reported by Adam Wozniak in Sdcc-user list
7010
7011 2004-03-10 Bernhard Held <bernhard AT bernhardheld.de>
7012
7013         * src/SDCCast.c (decorateType): fixed with bug and promotion in
7014         arithmetic optimizations, added debug output
7015
7016 2004-03-09 Bernhard Held <bernhard AT bernhardheld.de>
7017
7018         * device/lib/time.c (mktime): fixed bug reported by Bert Thomas
7019         * sdcc.spec: updated and split sdcc into 3 rpms
7020         * src/SDCCast.c (decorateType): &|^ don't need addCast(); addCast() is
7021         needed for literals of LEFT_OP and '+'
7022         * src/SDCCicode.c (geniCodeLogic): I must have been braindead when I
7023         introduced RESULT_TYPE_NOPROM
7024         (geniCodeMultiply): fixed logic for decision if mul is optimized to
7025         left shift
7026         * src/SDCCsymt.c (computeType): op is int; added RESULT_TYPE_OTHER;
7027         limited promotion to int only for '*'
7028         * src/SDCCsymt.h (computeType): op is int, removed RESULT_TYPE_NOPROM
7029
7030 2004-03-09 Hans Dorn <hjdorn AT users.sourceforge.net>
7031
7032         * src/pic16/gen.c (genSkip),
7033         (genc16bit2lit), (gencjneshort): commented out
7034         (is_LitOp): new helper function, checks operand type
7035         (genCmpEq): rewritten
7036
7037 2004-03-08 Bernhard Held <bernhard AT bernhardheld.de>
7038
7039         * support/regression/tests/bug-908454.c: added
7040
7041 2004-03-07 Bernhard Held <bernhard AT bernhardheld.de>
7042
7043         * src/SDCCast.c (addCast): fixed bug #908454 by promoting bits to char
7044         * src/SDCCicode.c (usualBinaryConversions): op needs int type
7045         (geniCodeCast): cosmetic, don't preserve bit storage class
7046         (geniCodeLeftShift): added promotion
7047         (geniCodeLogic): fixed regression
7048         * src/SDCCsymt.c (computeTypeOr): accept bits too
7049         (compareType): 2nd part of fix for bug #908454, needed for bitfields
7050
7051 2004-03-07  Borut Razem <borut.razem AT siol.net>
7052
7053         * support/Util/findme.c: alloca() replaced with malloc()/free() pair
7054
7055 2004-03-06 Vangelis Rokas <vrokas AT otenet.gr>
7056
7057         * src/pic16/ralloc.c (pic16_genPackRegisters): reverted to old
7058         version of pic16_genPackRegisters which does not check if ic is a
7059         CAST operator,
7060         * src/pic16/gen.c (ifxForOp): disabled new and untested code in
7061         function cause string1.c regression test fails
7062
7063 2004-03-06 Bernhard Held <bernhard AT bernhardheld.de>
7064
7065         * sim/ucsim/configure.in,
7066         * sim/ucsim/configure,
7067         * sim/ucsim/doc/Makefile.in: use docdir
7068         * src/SDCC.y: fixed sbit atrributes
7069         * src/SDCCast.c (getResultTypeFromType): added support for bitfields
7070         * src/SDCCast.c (decorateType): |^& need special promotion handling
7071         * src/SDCCast.h,
7072         * src/SDCCsymt.h: moved definition of RESULT_TYPE
7073         * src/SDCCsymt.h (computeType),
7074         * src/SDCCicode.c: computeType() needs op
7075         * src/SDCCsymt.c (checkTypeSanity),
7076         * doc/sddman.lyx: "plain" bitfields are unsigned
7077         * src/SDCCsymt.c (computeTypeOr): added
7078         * src/SDCCsymt.c (computeType): added support for bitfields, fixed
7079         |^& ops
7080         * src/SDCCval.c (val*): computeType() needs op
7081         * src/SDCCval.c (valCastLiteral): fixed casting of bitfields
7082         * support/regression/tests/onebyte.c: added tests for |^&
7083
7084 2004-03-06 Hans Dorn <hjdorn AT users.sourceforge.net>
7085
7086         * src/pic16/gen.c: (genpic16Code) use copy of printILine's output
7087         for writing icode into asm output.
7088
7089 2004-03-05 Vangelis Rokas <vrokas AT otenet.gr>
7090
7091         * src/pic16/device.c: added some debug lines enabled
7092         with macro DEBUG_CHECK,
7093         * src/pic16/genarith.c: more debug in genPlus,
7094         * (pic16_genUMult8XLit_16, pic16_genUMult8X8_16): removed,
7095         * (pic16_genUMult16X16_16, pic16_genUMult16XLit_16): NEW,
7096         * src/pic16/gen.c: added prototypes for pic16_genMult16X16_16,
7097         * (aopForSym): onStack symbols are re-placed in data memspace,
7098         and onStack flag is cleared,
7099         * (pic16_popGetTempReg, pic16_popReleaseTempReg): modified to
7100         copy temporary pcodeop,
7101         * (genPcall): added warning for not updating PCLATU,
7102         * (genFunction): removed test with IFFUNC_CALLEESAVES, its
7103         always true for pic16 port,
7104         * (genMultOneWord): NEW, supports integer multiplication,
7105         * (genMult): modified to call genMultOneWord,
7106         * (ifxForOp): added warning when return NULL,
7107         * src/pic16/glue.c (pic16emitRegularMap): symbol implicit
7108         flag is set before call to operandFromSymbol for implicit
7109         added structures,
7110         * src/pic16/main.c (_pic16_finaliseOptions): options.float_rent,
7111         options.intlong_rent are set by default,
7112         * (_hasNativeMulFor): modified to allow port generation of integer
7113         multiplication,
7114         * src/pic16/ralloc.c (pic16_allocDirReg): commented out line which
7115         set regtype to REG_SFR for all registers, restricting seting the
7116         accessBank flag for registers 0<= r < 0x80 and 0xf80<=r<=0xfff,
7117
7118 2004-03-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7119
7120         * src/mcs51/peephole.def: added 251.b and 253.x. 253.x are applied
7121         more than 500 times in the regression tests
7122
7123 2004-03-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7124
7125         * support/Util/SDCCerr.h,
7126         * support/Util/SDCCerr.c,
7127         * src/SDCC.y (struct_or_union_specifier, enum_specifier,
7128         enumerator_list),
7129         * src/SDCCsymt.c (addSymChain): show location of oriignal definition
7130         for symbol conflicts.
7131         * support/valdiags/tests/enum.c,
7132         * support/valdiags/tests/tentdecl.c,
7133         * support/valdiags/tests/struct.c: expect possible error messages
7134         referring to original symbol definitions.
7135         * src/SDCC.y (struct_or_union_specifier, struct_declarator),
7136         * src/SDCCsymt.h,
7137         * src/SDCCsymt.c (promoteAnonStructs): support anonymous struct/union
7138
7139 2004-03-03 Hans Dorn <hjdorn AT users.sourceforge.net>
7140
7141         * src/pic16/gen.c (gencjne): fixed for right=REG / left=LIT
7142
7143 2004-02-03 Vangelis Rokas <vrokas AT otenet.gr>
7144
7145         * src/pic16/ralloc.c (newReg): fixed bug #908929
7146
7147 2004-03-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7148
7149         * src/ds390/gen.c: added missing #include "main.h"
7150
7151 2004-03-02 Vangelis Rokas <vrokas AT otenet.gr>
7152
7153         * src/pic16/device.c (checkAddSym): NEW, adds a symbol to set while
7154         checking if symbol is already in set,
7155         * src/pic16/device.h: prototype for checkAddSym,
7156         * src/pic16/gen.c: (_G): added entry interruptvector,
7157         * (assignResultValue): removed some commented out lines,
7158         * (genFunction): check for ISR via sym->type, absolute section for
7159         interrupt code is created via a new pBlock, the goto instruction is
7160         placed now correctly at the interrupt vector position, changed all
7161         references from ivec to _G.interruptvector,
7162         * WREG,STATUS,BSR are not saved in stack upon an entry to interrupt
7163         is the interrupt is a high priority one, same for return from ISR,
7164         * src/pic16/glue.c: changed all calls of addSetHead for publics and
7165         externs to calls of checkAddSym,
7166         * src/pic16/pcode.c (pic16_pBlockConvert2*): emit warning when
7167         pic16_pcode_verbose flag is set,
7168         * src/pic16/pcode.h: extern to pic16_pcode_verbose,
7169         * src/pic16/pcoderegs.c: message about how many registers are saved
7170         will only be emitted if pic16_pcode_verbose flag is set,
7171
7172 2004-03-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7173
7174         * src/ds390/ralloc.h,
7175         * src/ds390/ralloc.c (ds390_regWithIdx),
7176         * src/ds390/gen.c (emitcode),
7177         * src/ds390/main.h,
7178         * src/ds390/main.c (instructionSize, ds390newAsmLineNode, updateOpRW,
7179         ds390opcodeCompare, asmLineNodeFromLineNode, getInstructionSize,
7180         ds390operandCompare, getRegsRead, getRegsWritten,
7181         initializeAsmLineNode): customized instruction size calculation for
7182         ds390, started basis for some register optimizations
7183         * src/ds390/gen.c (gen390Code, emitcode): associate iCodes with
7184         corresponding assembly output
7185         * src/ds390/gen.c (genFunction, genEndFunction): added case to handle
7186         missing push/pop of r0/r1. Optimized push/pops
7187
7188 2004-03-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7189
7190         * src/mcs51/main.c (instructionSize): fixed ACALL size
7191         * src/mcs51/main.c (updateOpRW): fixed bug with @dptr, @a+dptr operands
7192
7193 2004-03-01 Vangelis Rokas <vrokas AT otenet.gr>
7194
7195         * src/pic16/device.c (pic16_dump_section): fixed a bug that allowed
7196         the sorting of rlist with NULL elements
7197         * (print_idataType, print_idata): NEW to create idata sections
7198         * src/pic16/device.h: idataSymSet new variable
7199         * src/pic16/gen.c (genFunction): fixed some bugs in string
7200         comparing, improved the absolute section creation for ISRs,
7201         added FSR0L/FSR0H in registers that are saved in an ISR,
7202         * (genInline): fixed the processing of inline snippets,
7203         now they undergo no process by the peephole optimizer
7204         * src/pic16/glue.c (pic16emitRegularMap): symbols with initialiser
7205         are placed in idataSymSet,
7206         * (pic16emitStaticSeg): extern symbols are added in externs,
7207         * src/pic16/ralloc.c (pic16_allocDirReg): work around to reduce bank
7208         switching when aboslute variables are placed in access bank memory
7209         * (pic16_writeUsedRegs): added call to pic16_dump_idata,
7210         * (packRegsForSupport,packRegsForAccUse,packRegsForOneuse):
7211         commented out with #if,
7212         * (pic16_packRegisters): reintroduce the check for CAST because some
7213         symbols are not correctly handled,
7214         * src/pic16/pcode.h: changed the definition of pCodeAsmDir to hold a
7215         pCodeInstruction instead of pCode,
7216         * src/pic16/pcode.c (pic16_newpCodeAsmDir): modified for the new
7217         pCodeAsmDir definition,
7218         * (pic16_pCode2str, genericPrint): when an AsmDir pcode has a NULL
7219         directive, then the argument directive is emitted without the leading
7220         tab, hack for inline labels which must be in the first column,
7221         * (compareLabel,pic16_findNextInstruction),
7222         * (pic16_findPrevInstruction): added case for PO_ASMDIR,
7223         * (insertBankSwitch): modified for the new pCodeAsmDir,
7224
7225 2004-03-01 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
7226         patch applied by Vangelis Rokas <vrokas AT otenet.gr>
7227
7228         * src/pic16/gen.c (pic16_popGet): case PO_DIR, adds the offset to
7229         instance,
7230         * (pushSide): commented out with #if,
7231         * (assignResultValue): fixed some typos in saving
7232         registers,
7233         * (genPcall): FIXED and sync'ed with genCall,
7234         * (genDataPointerGet,genDataPointerSet): using offset not leoffset
7235         * (genNearPointerGet): fixed to handle some more cases,
7236         implementation scheme via table reads,
7237         * (genConstPointerGet): modified to access code memory correct,
7238         * (genCodePointerGet,genNearPointerSet,genGenPointerSet): modified
7239         and improved to handle some cases
7240         * glue.c (printIvalType,printIvalChar,emitStaticSeg): use "DB"
7241         instead of "RETLW" for init data
7242         * src/pic16/ralloc.c (pic16_allocDirReg): warning when a symbol is
7243         not IN_DIRSPACE, work around to reduce bank switching when aboslute
7244         variables are placed in access bank memory (<0x80 and >=0xf80),
7245         * src/pic16/pcode.c: added SFRs TBLPTR, TABLAT, added opcodes TBLRD,
7246         TBLRD_POSTINC,TBLRD_POSTDEC,TBLRD_PREINC,TBLWT,TBLWT_POSTINC,
7247         TBLWT_POSTDEC,TBLWT_PREINC
7248         * Fixed initialisation of BSR, set "alias" for SSAVE to "0"
7249         * (pic16_emitDB,pic16_flushDB): New functions to generate "DB"
7250         directives
7251         * (pic16_pCodeConstString): use "DB" instead of "RETLW"
7252         * src/pic16/pcode.h: added TBLRD*,TBLWT*, added pic16_emitDB,
7253         pic16_flushDB, made pic16_newpCodeAsmDir public, added TBLPTR, TABLAT
7254         * src/pic16/ralloc.h: added IDX_BSR,IDX_TBLPTR*,IDX_TABLAT
7255
7256 2004-02-29  Borut Razem <borut.razem AT siol.net>
7257
7258         * src/Makefile.in, src/SDCCutil.c, support/Util/findme.c,
7259         support/Util/findme.h, support/Util/system.h: enhance binary relative
7260         search for lib and include by using findProgramPath()
7261
7262 2004-02-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7263
7264         * src/SDCCpeeph.h,
7265         * src/SDCCpeeph.c (pcDistance),
7266         * src/port.h,
7267         * src/mcs51/ralloc.h,
7268         * src/mcs51/ralloc.c (mcs51_regWithIdx),
7269         * src/mcs51/main.h,
7270         * src/mcs51/main.c (instructionSize, asmLineNode, updateOpRW,
7271         mcs51opcodeCompare, asmLineNodeFromLineNode, getInstructionSize,
7272         mcs51operandCompare, getRegsRead, getRegsWritten): made instruction
7273         size calculation port specific, started basis for some register
7274         optimizations
7275         * src/mcs51/gen.c (genFunction, genEndFunction): added case to handle
7276         missing push/pop of r0/r1. Optimized push/pops
7277         * src/mcs51/ralloc.c (packregisters): fixed bug #727095
7278         * device/lib/_modsint.c (_modsint),
7279         * device/lib/_modslong.c (_modslong): fixed sign of result in non-asm
7280         and stack version so regression tests pass
7281
7282 2004-02-26 Bernhard Held <bernhard AT bernhardheld.de>
7283
7284         * src/Makefile.in (dep): include SLIBOBJS in dependency check
7285         * src/SDCCast.c (decorateType): catch another small optimization
7286         with '?' operator
7287         * src/SDCCsymt.c (computeType): added comments and cosmetic changes
7288         * src/SDCCval.c (valMult, valDiv, valMod, valPlus, valMinus, valShift):
7289         modified to finally use computeType() all over SDCC,
7290         see Feature Request #877103
7291         * src/SDCCval.h: cosmetic
7292         * src/SDCCicode.c (operandOperation): fixed EQ_OP bug, now same as in
7293         valCompare(); regression tested in muldiv.c
7294         * support/regression/tests/muldiv.c (testMod): mod sign follows
7295         dividend only
7296
7297 2004-02-23 Bernhard Held <bernhard AT bernhardheld.de>
7298
7299         * src/SDCCast.c (decorateType): fixed bug #902362
7300         * doc/INSTALL.txt: fixed install instructions for win32
7301
7302 2004-02-21 Bernhard Held <bernhard AT bernhardheld.de>
7303
7304         * device/include/Makefile.in (install): fixed by replacing spaces
7305         by tabs
7306         * doc/README.txt,
7307         * doc/INSTALL.txt: updated for release
7308         * doc/sdccman.lyx: added warning for --xstack being buggy
7309
7310 2004-02-20 Bernhard Held <bernhard AT bernhardheld.de>
7311
7312         * src/pic16/ralloc.c (packRegsForAccUse):  disabled functions with #if
7313         to eliminate build warnings.
7314         * src/pic16/gen.c (pic16_popGet): fixed for gcc 2.95.4
7315
7316 2004-02-20 Vangelis Rokas <vrokas AT otenet.gr>
7317            Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
7318
7319         * doc/sdccman.lyx: removed PIC16 from PIC16 Port Specific Options,
7320         removed -penable-stack, added comment for stack pragma, added
7321         warning for not initializing the stack/frame registers, removed
7322         comment at interrupts section
7323
7324         Stack is made permanent, there is no ability to disable stack usage.
7325         * src/pic16/device.h,
7326         * src/pic16/device.c: removed all references to USE_STACK macro,
7327         * src/pic16/device.c (pic16_dump_section): when no elements in
7328         rlist, free rlist before return,
7329         * (pic16_dump_int_registers): NEW, internal registers are a new set
7330         of general purpose registers reused by each function,
7331         * (checkAddReg): returns 1 if registers is added to set,
7332         * (pic16_groupRegistersInSection): when a registers is of type
7333         PO_GPR_TEMP add it in pic16_int_regs and not in pic16_rel_udata,
7334         * src/pic16/device.h: memRange and Assigned Memory are deleted,
7335         SRCASECMP macro is moved here from device.c
7336         * src/pic16/genarith.c (pic16_pCodeOpType): added cases for
7337         PO_PCLATU, PO_PRODL, PO_PRODH,
7338         * (pic16_pCodeOpType, genMinus,
7339         changed compares to "a" register, with AOP_ACC,
7340         * (pic16_genPlus): fixed some bugs and indented properly,
7341         * (pic16_addSign): changed size to size+offset in the MOVWF
7342         instruction,
7343         * (pic16_genUMult8XLit_8): NEW, uses processor MULLW instruction to
7344         multiply 8-bit operand by literal, result is 8-bit,
7345         * (pic16_genUMult8X8_8): NEW, uses processor MULWF instruction to
7346         multiply 2 8-bit operand, result is 8-bit,
7347         * (pic16_genMult8X8_8): modified to call genUMult8X*_8 functions and not
7348         genUMult8X*_16,
7349         * src/pic16/gen.c: changed accUse to contain WREG only,
7350         * (pic16_emitcomment): renamed to pic16_emitpcomment,
7351         * (aopForSym): allocated dir register when IN_DIRSPACE(space) is,
7352         true, do not use immediate addressing any more unless sym is a
7353         pointer in codespace,
7354         * (aopForRemat): do not use immediate addressing when symbol not in
7355         codespace and when symbol's address is requested,
7356         * (aopOp): for-loop in if(sym->accUse) is modified for the new
7357         accUse size (= 1),
7358         * (aopGet): added case for AOP_ACC and don't return "accumulator
7359         bug" but WREG instead,
7360         * (popGetTempReg): pushes contents of temporary register in stack,
7361         * (popReleaseTempReg): pops contents of temporary register from
7362         stack. Use popGetTempReg/popReleaseTempReg in aligned pairs,
7363         * (pic16_popGet): separated case AOP_ACC to return register WREG
7364         from processor registers, AOP_PCODE not checks if pcop is PO_DIR
7365         or PO_IMMEDIATE and initializes their instance/offset appropriately,
7366         * The whole issue with aopForSym,aopForRemat,popGet) is to minimize
7367         the use of immediate pointers to certain cases only.
7368
7369         * (pic16_pushpCodeOpReg, pic16_poppCodeOpReg): use pic16_popGet2p,
7370         * (pic16_loadFromReturn, pic16_storeForReturn: NEW,
7371         * (assignResultValue, genCall, genRet): modified to use the new
7372         function return value scheme with WREG,PRODL,PRODH,FSR0L and FSR0,
7373         genPcall is still broken,
7374         * (genFunction): added code to create 'A' type pBlocks when
7375         interrupt functions are generated, code not extensively tested yet,
7376         ISRs push WREG,STATUS,BSR,PRODL,PRODH,FSR0L,FSR0H registers on stack,
7377         * (genEndFunction): modified so ISRs pop stored registers from stack,
7378         * (genMultOneByte): cleanup,
7379         * (AccRsh): added flag andmask, to and result with appropriate mask,
7380         * (genUnpackBits,genPackBits): fixed and can handle bit fields,
7381         * (genDataPointerGet): fixed and reenabled its use,
7382         * (genNearDataPointerGet): bugs fixed,
7383         * (genDataPointerSet): bugs fixed,
7384         * src/pic16/genutils.c: added functions pic16_DumpValue,pic16_DumpAop,
7385         pic16_DumpSymbol, pic16_DumpOp,
7386         * src/pic16/genutils.h: function prototypes for the above functions,
7387         * src/pic16/glue.c: new flags initsfpnt, to initialize stack/frame
7388         pointers,
7389         * (pic16emitRegularMap): many many many improvements, but needs a
7390         major cleanup,
7391         * src/pic16/main.c: enable_stack in pic16_options is removed,
7392         * (_pic16_parseOptions): removed command line options -penable-stack,
7393         * (_process_pragma): emit stack symbol only when stack pragma is
7394         processed,
7395         * src/pic16/pcode.c: pic16_pc_fsr0 is removed, all operations are
7396         redirected to FSR0L/FSR0H pair,
7397         * (pic16_get_op, pic16_get_op2): modifications and improvements,
7398         * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): added
7399         cases PO_PRODL,PO_PRODH, pic16_getRegFromInstruction2 returns sane
7400         for immediates,
7401         * (insertBankSwitch): modified to handle cases like: (alfa + 1)
7402         * (dumpPicOptype): NEW,
7403         * src/pic16/pcode.h: added PO_PCLATU,PO_PRODL,PO_PRODH in enum,
7404         * src/pic16/pcoderegs.c (pCodeRegMapLiveRangesInFlow): fixed bug
7405         with movff instruction,
7406         * src/pic16/ralloc.c: renamed typeRegWithIdx to pic16_typeRegWithIdx,
7407         added pic16_int_regs, some packRegsFor* functions are commented out,
7408         because produce errors,
7409         * src/pic16/NOTES: minor modifications
7410
7411 2004-02-18  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7412
7413         * as/mcs51/aslink.h, as/mcs51/lkarea.c, as/mcs51/lkdata.c, as/mcs51/lkmain.c,
7414         as/mcs51/lkmem.c, src/SDCCglob.h, src/SDCCmain.c: added options --stack-size and
7415         --pack-iram.
7416         * doc/sdccman.lyx: described options --stack-size and --pack-iram.
7417         * as/mcs51/lkaomf51.c: fixed bug #895763
7418
7419 2004-02-17 Bernhard Held <bernhard AT bernhardheld.de>
7420
7421         * device/include/c8051f320.h: added. Contributed by Maarten Brock.
7422
7423 2004-02-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7424
7425         * doc/sdccman.lyx: added details about the HC08 storage classes and
7426         interrupts, fixed the register usage info for z80 & gbz80
7427
7428 2004-02-17 Vangelis Rokas <vrokas AT otenet.gr>
7429
7430         * doc/sdccman.lyx: added more pic16 port documentation
7431         * device/include/pic16/: added header pic18fregs.h
7432
7433 2004-02-16 Bernhard Held <bernhard AT bernhardheld.de>
7434
7435         * doc/sdccman.lyx: added Vangelis' contribution
7436
7437 2004-02-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7438
7439         * src/SDCClrange.c (rlivePoint): live range of SEND operand should
7440         extend to the next CALL or PCALL, not just to the next CALL.
7441
7442 2004-02-16 Vangelis Rokas <vrokas AT otenet.gr>
7443
7444         * src/pic16/gen.c (genInline): fixed bug #896482 with inline assembly
7445
7446 2004-02-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7447
7448         * src/mcs51/ralloc.c (packRegsForAssign, reassignAliasedSym): fixed
7449         bug #895752 and a better fix for bug #716790
7450
7451 2004-02-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7452
7453         * src/SDCCsymt.c (processFuncArgs): fixed bug #896796
7454
7455 2004-02-14 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7456
7457         * doc/sdccman.lyx: minor changes, minor changed
7458
7459 2004-02-13 Bernhard Held <bernhard AT bernhardheld.de>
7460
7461         * src/SDCCicode.c (usualBinaryConversions): removed pic16 from ports
7462         which can't handle SDCC_NEWONEBYTEOPS,
7463         (geniCodeMultiply): removed conversion from mult to shift for pic14
7464         and pic16
7465
7466 2004-02-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7467
7468         * src/hc08/gen.h,
7469         * src/hc08/gen.c (storeRegToAop, aopOp, aopAdrStr, accopWithAop,
7470         rmwWithAop): Ported my 2003-10-02 fix for bug #663539 to the hc08,
7471         thus fixing bug #895406
7472
7473 2004-02-11 Bernhard Held <bernhard AT bernhardheld.de>
7474
7475         * device/lib/_modsint.c,
7476         * device/lib/_modslong.c: sign follows divisor only
7477         * src/hc08/gen.c (genMultOneByte): if result size is 1,
7478         signs or signedness can be ignored
7479         * src/SDCCast.c (addCast): cosmetic - added lineno to CAST
7480         * src/SDCCast.c (resultTypePropagate): added even more ops: +, - and *,
7481         added optimization for IFX,
7482         (decorateType): Mult/Div/ModOneByte ops can handle all kind of signed
7483         arguments;
7484         reenabled optimization for IFX, which was removed on 2004-01-11
7485         * src/SDCCast.h: added return type IFX
7486         * src/SDCCicode.c: Mult/Div/ModOneByte ops can handle all kind of signed
7487         arguments with 8 or 16 bit results; pic14 and pic16 ports use old
7488         promotion behaviour; env. var. SDCC_NEWONEBYTEOPS selects the new,
7489         SDCC_OLDONEBYTEOPS selects the old behaviour
7490         * src/SDCCsymt.c (computeType): type2 can be NULL (for LEFT_OP);
7491         changed again and commented promotion rule
7492         * src/SDCCval.c (valDiv): promotion no longer necessary
7493         * src/ds390/gen.c (genMultOneByte) (genDivOneByte) (genModOneByte),
7494         * src/mcs51/gen.c (genMultOneByte) (genDivOneByte) (genModOneByte):
7495         rewritten
7496         * support/regression/tests/onebyte.c: added
7497
7498 2004-02-11 Vangelis Rokas <vrokas AT otenet.gr>
7499
7500         * gen.c (genInline): reverted to old code for assemnling inline
7501         code because of bug reported James Chadd
7502
7503 2004-02-10 Vangelis Rokas <vrokas AT otenet.gr>
7504
7505         * ralloc.h: missing declarations from previous patch,
7506         seems that patch for ralloc.h was never applied, fixed
7507
7508 2004-02-10 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
7509            patch committed by Vangelis Rokas <vrokas AT otenet.gr>
7510
7511         * pcode.c,
7512         * pcode.h,
7513         * ralloc.h: added FSR0L, FSR0H and other missing PIC16 SFR's for
7514         indirect addressing. Marked FSR0 as deprecated
7515         * gen.c (pointerCode): commented out, not needed now
7516         (pic16_popGet2p): new MOVFF helper function
7517         (genGenPointerGet),
7518         (genGenPointerSet): reimplemented with MOVFF and POSTINC0
7519         (shiftRLong): removed duplicate debugging info
7520
7521 2004-02-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7522
7523         * src/ds390/gen.c (genNearPointerGet),
7524         * src/mcs51/gen.c (genNearPointerGet): allow the genDataPointerGet()
7525         optimization with bits, but not bitfields.
7526         * src/ds390/ralloc.c (packRegisters),
7527         * src/mcs51/ralloc.c (packRegisters): fixed bug #884453 & #880832
7528
7529 2004-02-09 Bernhard Held <bernhard AT bernhardheld.de>
7530
7531         * src/SDCCcse.c (algebraicOpts): copy operands before modification
7532
7533 2004-02-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7534
7535         * src/SDCCsymt.h,
7536         * src/SDCCicode.c (operandFromSymbol),
7537         * src/mcs51/ralloc.c (verifyRegsAssigned, serialRegAssign),
7538         * src/ds390/ralloc.c (verifyRegsAssigned, serialRegAssign),
7539         * src/z80/ralloc.c (verifyRegsAssigned, serialRegAssign),
7540         * src/hc08/ralloc.c (verifyRegsAssigned, serialRegAssign),
7541         * src/pic/ralloc.c (verifyRegsAssigned, serialRegAssign),
7542         * src/pic16/ralloc.c (verifyRegsAssigned, serialRegAssign): fixed
7543         bug #892038
7544         * src/SDCCast.c (createIvalStruct, createIvalArray, gatherAutoInit),
7545         * src/SDCCglue.c (emitRegularMap, printIvalStruct, printIvalArray,
7546         printIvalCharPtr, printIvalPtr, printIval, emitStaticSeg, emitOverlay)
7547         * src/SDCCsymt.c (newSymbol),
7548         * src/SDCC.y (struct_or_union_specifier, enum_specifier,
7549         enumerator_list),
7550         * src/SDCCval.h,
7551         * src/SDCCval.c (newiList): fixed bug #885705
7552
7553 2004-02-08  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7554
7555         * doc/sdccman.lyx: added section 3.1.4: sdcclib.
7556         * as/mcs51/lkmem.c: report the size of the stack in .mem file.
7557
7558 2004-02-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7559
7560         * device/include/c8051f120.h,
7561         * device/include/c8051f300.h,
7562         * device/include/c8051f310.h: added/updated header files for Silicon
7563         Laboratories (formerly Cygnal) CPUs. Contributed by Maarten Brock.
7564         * doc/sdccman.lyx: minor changes, recommended diff -Naur and diff -u
7565         in new section Submitting patches
7566
7567 2004-02-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7568
7569         * src/mcs51/gen.c (genNearPointerGet, genPagedPointerGet,
7570         genFarPointerGet, genCodePointerGet, genGenPointerGet,
7571         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
7572         genGenPointerSet),
7573         * src/ds390/gen.c (genNearPointerGet, genPagedPointerGet,
7574         genFarPointerGet, genCodePointerGet, genGenPointerGet,
7575         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
7576         genGenPointerSet),
7577         * src/pic16/gen.c (genNearPointerGet, genPagedPointerGet,
7578         genFarPointerGet, genCodePointerGet, genGenPointerGet,
7579         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
7580         genGenPointerSet),
7581         * src/pic/gen.c (genNearPointerGet, genPagedPointerGet,
7582         genFarPointerGet, genCodePointerGet, genGenPointerGet,
7583         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
7584         genGenPointerSet): fixed bug #892400
7585         * src/pic16/gen.c (genSkipz, AccRol): disabled functions with #if 0
7586         to eliminate build warnings.
7587         * src/SDCCast.c (processParms),
7588         * src/SDCC.y (function_declarator2, declarator2_function_attributes):
7589         fixed bug 751859
7590         * support/valdiag/valdiag.py: added GCC to the list of defines active
7591         when compiling with gcc
7592
7593 2004-02-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7594
7595         * support/Util/SDCCerr.h,
7596         * support/Util/SDCCerr.c,
7597         * src/SDCCast.c (decorateType, sizeofOp): complain when sizeof is used
7598         with an incomplete type (fixed bug #883734)
7599         * src/SDCCicode.c (geniCodeCast): fixed bug #890510
7600
7601 2004-02-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7602
7603         * src/pic16/gen.c (genCmpEq, shiftRLong): fixed declarations
7604
7605 2004-02-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7606
7607         * src/SDCCast.c (decorateType),
7608         * src/SDCCicode.c (geniCodeParms, geniCodeCall): fixed bugs in my ANSI
7609         function pointer implementation
7610         * support/regression/tests/funptrs.c: added tests to verify both forms
7611         of function pointers work correctly. Added tests to verify parameters
7612         are passed in the correct order.
7613
7614 2004-02-06  Vangelis Rokas <vrokas AT otenet.gr>
7615
7616         * device.c (regCompare): registers are sorted by ascending
7617         address and increasing size,
7618         * main.c (_pic16_finaliseOptions): removed the declaration
7619         of compiler macro MCU. Now a macro of the format pic18fxxxx
7620         will be defined from the command line
7621
7622 2004-02-06  Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
7623             patch committed by Vangelis Rokas <vrokas AT otenet.gr>
7624
7625         * pcode.c (pic16initMnemonics): fixed typo in assignment to PCOP_RLNCF
7626         PCOP_RLCF was overwritten!
7627         * gen.c (genSkip): commented out calls to pic16_emitcode,
7628         * (genCmpEQ): fixed "long" compares, only high word did get compared,
7629         * (genlshTwo),
7630         * (genRRC): added debugging info,
7631         * (shiftL2Left2Result): Fixed bug, if offr > offl. Result got
7632         overwritten while shifting,
7633         * (shiftR2Left2Result): Fixed bug, if offr < offl. Result got
7634         overwritten while shifting,
7635         * (AccLsh),
7636         * (AccRsh),
7637         * (shiftLLeftOrResult),
7638         * (shiftRLeftOrResult),
7639         * (shiftRLong),
7640         * (shiftLLong): Implemented with pic16_emitpcode
7641         * (genlshFour): Replaced pic16_aopPut with pic16_emitpcode,
7642         * (genLeftShift): Fixed bug, operand for shift by variable always
7643         was "and"ed with 0x0f,
7644         * (genLeftShiftLiteral),
7645         * (genrshTwo),
7646         * (genRightShiftLiteral): added debugging info,
7647         * (genrshFour): added comment,
7648         * (genRightShift): determined signedness from operand "left"
7649         instead of "result"
7650
7651 2004-02-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7652
7653         * src/SDCCicode.c (geniCodeParms),
7654         * src/SDCCast.c (decorateType, processParms): support for ANSI-style
7655         function pointers, fixed function pointer bugs #861242 and #861896
7656
7657 2004-01-31 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7658
7659         * device/include/c8051f000.h,
7660         * device/include/c8051f120.h,
7661         * device/include/c8051f300.h: added header files for Silicon
7662         Laboratories (formerly Cygnal) CPUs. Contributed by Maarten Brock.
7663
7664 2004-01-31 Bernhard Held <bernhard AT bernhardheld.de>
7665
7666         * src/SDCCast.c (processParams): added new type flow and restructured
7667         (gatherAutoInit): added new type flow
7668         (addCast): cosmetic changes
7669         (getLeftResultType): added new type flow for array indices, patch
7670         provided by Stas, see FR #877103
7671         (decorateType): SDCC_NEWTYPEFLOW removed, new type flow is now standard;
7672         array index patch by Stas
7673         * src/SDCCast.h: added prototype getResultTypeFromType()
7674         * src/SDCCval.h,
7675         * src/SDCCval.c (resolveIvalSym) (resolveIvalSym),
7676         * src/pic/glue.c (pic14emitStaticSeg),
7677         * src/pic16/glue.c (pic16emitStaticSeg),
7678         * src/SDCCglue.c (emitRegularMap) (emitStaticSeg): added new type flow
7679         for initialization of symbols
7680         * src/SDCCicode.c (geniCodeArray): removed warning W_ARRAY_BOUND
7681         * support/Util/SDCCerr.h:
7682         * support/Util/SDCCerr.c: replaced W_ARRAY_BOUND by W_IDX_OUT_OF_BOUNDS
7683         * .version: bumped version number to 2.3.8
7684         * device/include/Makefile.in (install),
7685         * doc/Makefile (install): changed to 'rm `find ...`' construct to
7686         avoid warnings
7687
7688 2004-01-30 Bernhard Held <bernhard AT bernhardheld.de>
7689
7690         * support/regression/tests/libmullong.c: fixed for 64 bit hosts
7691         Slade Rich fixed an optimization bug
7692         * src/pic/pcodepeep.c,
7693         * src/pic/pcoderegs.c
7694         * doc/Makefile (install): added test for directory
7695
7696 2004-01-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7697
7698         * src/mcs51/ralloc.c (getRegPtr, getRegGpr),
7699         * src/ds390/ralloc.c (getRegPtr, getRegGpr),
7700         * src/pic/ralloc.c (getRegPtr, getRegGpr),
7701         * src/pic16/ralloc.c (getRegPtr, getRegGpr),
7702         * src/z80/ralloc.c (getRegGpr): fixed bug #883361
7703         * as/mcs51/asexpr.c (term),
7704         * as/hc08/asexpr.c (term): fixed bug #887146
7705
7706 2004-01-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7707
7708         * src/z80/gen.c (genMult): handle single byte result product
7709         * src/SDCCopt.c (killDeadCode): never convert ADDRESS_OF iCode to
7710         DUMMY_READ_VOLATILE (fixed bug #886367)
7711
7712 2004-01-27 Bernhard Held <bernhard AT bernhardheld.de>
7713
7714         * support/regression/tests/libmullong.c: fixed logic, on little endian
7715         hosts we ended without a mullong_wrapper()
7716
7717 2004-01-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7718
7719         * ChangeLog: changed "@" to " AT " in hopes of reducing spam and
7720         virus/worm forged address usage.
7721
7722 2004-01-27 Bernhard Held <bernhard AT bernhardheld.de>
7723
7724         Fixed promotion, it should be done on AST level:
7725         * src/SDCCast.c (addCast): added promotion to int
7726         (decorateType): updated call to upCast()
7727         * src/SDCCicode.c (geniCodeLeftShift): removed call to
7728         usualUnaryConversions()
7729
7730 2004-01-26  Michael Hope  <michaelh AT juju.net.nz>
7731
7732         * support/regression/tests/literalop.c (mulWrapper): Added a
7733         wrapper to remove integer overflow warnings.
7734
7735         * support/regression/tests/float_trans.c: Made work on host.
7736
7737         * support/regression/ports/ucz80/spec.mk (UCZ80): Made detect the
7738         location of sz80.
7739
7740         * support/regression/generate-cases.py (main): Changed from inline
7741         to a main method.
7742
7743         * doc/Makefile (install): Changed to depth first to get rid of
7744         missing directory install warning.
7745
7746         * as/Makefile (install-doc): Made work on Mac.
7747
7748 2004-01-25 Bernhard Held <bernhard AT bernhardheld.de>
7749
7750         * src/SDCCast.c: added an additional type flow in decorateType() of
7751         opposite direction, see feature request #860006; it's enabled at runtime
7752         by setting the environment variable SDCC_NEWTYPEFLOW
7753         * src/SDCCast.h: changed prototype of decorateType()
7754         * src/SDCCglue.c (emitRegularMap): updated call of decorateType()
7755         * src/SDCCicode.c (geniCodeDivision) (geniCodeModulus): promotion from
7756         'char' to 'int' can be omitted, if both operands are 'unsigned char';
7757         see feature request #877103
7758         * src/SDCCval.c: updated call of decorateType()
7759         (valBitwise): fixed bug #882876
7760         (valMinus): added promotion
7761         (valLogicAndOr): result is unsigned
7762         (cheapestVal) (constVal): literals from 0...255 are 'unsigned char' now
7763         * src/SDCCsymt.c (computeType),
7764         * src/mcs51/gen.c (genCmpGt) (genCmpLt): literal 'unsigned char'
7765         must not cause an unsigned operation
7766         * src/pic/glue (pic14emitRegularMap),
7767         * src/pic16/glue.c (pic16emitRegularMap): updated call of decorateType()
7768
7769 2004-01-23 Bernhard Held <bernhard AT bernhardheld.de>
7770
7771         * src/pic/pcode.c (PCodeID): commented out left over debug code
7772
7773 2004-01-20 Bernhard Held <bernhard AT bernhardheld.de>
7774
7775         * support/valdiag/tests/overflow.c: added shift tests
7776         * src/pic/device.c,
7777         * src/pic/gen.c,
7778         * src/pic/gen.h,
7779         * src/pic/glue.c,
7780         * src/pic/main.c,
7781         * src/pic/pcode.c,
7782         * src/pic/pcode.h,
7783         * src/pic/pcodepeep.c,
7784         * src/pic/pcoderegs.c,
7785         * src/pic/ralloc.c,
7786         * src/pic/ralloc.h: applied patch from Slade Rich;
7787         added support for multiple code pages and multiple RAM banks on the
7788         PIC 14 port. The ASM files now no longer simply assume all the
7789         code / RAM are in the same page / bank. This means the linker can
7790         safely allocate code/RAM of separate ASM files to different pages/banks.
7791         * doc/sdccman.lyx: added Slade's tips
7792         * src/mcs51/peeph.def: fixed bug #880768
7793
7794 2004-01-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7795
7796         * src/hc08/ralloc.c (rematStr): fixed bug #879282
7797         * src/SDCCast.c (decorateType): fixed bug #880197
7798
7799 2004-01-20  Michael Hope  <michaelh AT juju.net.nz>
7800
7801         * sim/ucsim/gui.src/serio.src/main.cc: Fixed unconditional use of
7802         getopt.h.
7803
7804         * debugger/mcs51/cmd.c (getValBasic): Changed strtof to strtod as
7805         strtof is not part of C89 and isn't included with Mac OS X.
7806
7807 2004-01-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7808
7809         * src/hc08/gen.c (genPlusIncr, genUminus, genMinusDec, genCmp,
7810         shiftL2Left2Result): fixed bug #879326
7811         (genAnd, genOr, genXor): fixed bug when result was of type AOP_CRY
7812         (genMultOneByte): fixed bug in signed vs unsigned multiplication
7813         * sim/ucsim/hc08.src/inst.cc (inst_clr): added missing effective
7814         address fetch for clr instruction
7815         * device/lib/hc08/_mulint.c: created optimized assembly version
7816         * src/SDCCdflow.c (computeDataFlow): fixed bug #878209
7817
7818 2004-01-19 Bernhard Held <bernhard AT bernhardheld.de>
7819
7820         * src/SDCCicode.c (geniCodeArray): applied patch from Stas Sergeev
7821         proposed in FR #877103
7822
7823 2004-01-18 Bernhard Held <bernhard AT bernhardheld.de>
7824
7825         * src/SDCCval.c (cheapestVal): added missing checks
7826         * src/SDCCicode.c (usualBinaryConversions): fixed condition
7827         * src/SDCCicode.c (geniCodeAdd): fixed part of bug #877103
7828
7829 2004-01-16 Klaus Flittner <klaus_flittner AT gmx.de>
7830
7831         * src/ds390/gen.c (aopOp3): fixed the assignment of different dptrs to
7832         equal operands
7833
7834 2004-01-16 Vangelis Rokas <vrokas AT otenet.gr>
7835
7836         * src/SDCCmain.c (linkEdit): variable $3 of the linker command is
7837         loaded with the linker search paths (-L arguments) and the libraries
7838         to be linked with the current source (-l arguments). Changes
7839         currently will affect only the pic16 port.
7840         * src/pic16/main.c (_pic16_finaliseOptions): add to the linker
7841         include path the port specific paths and port specific libraries,
7842         * gplink command now contains the $3 argument,
7843         * src/pic16/device.h,
7844         * src/pic16/device.c,: structure PIC_device is made public and
7845         renamed to PIC16_device, the same for variable Pics which is renamed
7846         to Pics16. Updated all references to them.
7847         * src/pic16/glue.c (pic16glue): corrected bug with code
7848         initialization which bypassed the variable initializations block.
7849
7850         * device/lib/pic16/Makefile.rules: removed --penable-stack from
7851         COMPILE_FLAGS and added the --nostdinc option
7852
7853 2004-01-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7854
7855         * device/include/mc68hc908jb8.h: Register defs for another member
7856         of the hc08 family. Contributed by Bjorn Bringert - thanks!
7857
7858 2004-01-14 Vangelis Rokas <vrokas AT otenet.gr>
7859
7860         Documenting changes from previous commits.
7861         * configure.in (version 1.56),
7862         * configure: initially I've added AC_CONFIG_SUBDIRS(device/lib/pic16)
7863         when generating output files to configure the pic16 library,
7864         but now I've commented it out, since gputils aren't installed in the
7865         SF compile farm, so library won't compile
7866
7867         * device/lib/Makefile.in (version 1.56): initially I've added in
7868         target 'all' the prerequestive 'model-pic16' so it compiled the
7869         pic16 library, but now I've commented it out for the same reasons
7870         above,
7871         * added targets 'model-pic16' and 'objects-pic16' to compile the
7872         library
7873         * added target 'port-specific-objects-pic16' to handle the
7874         generated libraries and copy them into the build/ directory
7875         * added target 'clean-intermediate-pic16' to clean intermediate
7876         files into pic16 directory
7877         * in target 'installdirs' added line to create directory pic16 in
7878         the installation path
7879
7880         * device/include/Makefile.in (version 1.11): in target 'install'
7881         added lines to copy all header files to installation path,
7882         * in target 'installdirs' added line create directory for pic16
7883         headers in the installation path
7884
7885 2004-01-13 Klaus Flittner <klaus_flittner AT gmx.de>
7886
7887         * src/ds390/gen.c (genCall): fixed a double use of acc and b after
7888          a function call
7889
7890 2004-01-13 Bernhard Held <bernhard AT bernhardheld.de>
7891
7892         * configure,
7893         * device/lib/configure.in,
7894         * device/lib/configure: fixed for autoconf 2.57
7895
7896 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7897
7898         * src/z80/main.c (_parseOptions): fixed the portmode= command line
7899         option so that it actually works. Made it specific to the z80, since
7900         the gbz80 doesn't have these kinds of I/O ports.
7901
7902 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7903
7904         * device/include/z180.h,
7905         * device/lib/_memcpy.c,
7906         * device/lib/_memmove.c,
7907         * device/lib/_mulint.c,
7908         * device/lib/ser_ir.c,
7909         * device/lib/ser_ir_cts_rts.c,
7910         * device/lib/_strcmp.c,
7911         * device/lib/_strtok.c: fixed pragmas to non-deprecated form
7912         * src/z80/main.c (_process_pragma): add support for pragmas bank and
7913         portmode; added deprecation warning for bank= and protmode= forms.
7914         Also, guard against buffer overflow.
7915         * src/z80/gen.c (aopGet): generate better code for sfr banked read
7916
7917 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7918
7919         * src/hc08/main.c (_hc08_genAssemblerPreamble): fixed bug #875487. Also
7920         changed interrupt vector table generation to only emit declared vectors.
7921         * device/include/Makefile.in: added missing backslash
7922         * device/lib/pic16/Makefile.rules: add $(MODELFLAGS) to $(CFLAGS)
7923
7924 2004-01-13 Vangelis Rokas <vrokas AT otenet.gr>
7925
7926         Mainly changes to support compilation of the device libraries
7927         * src/pic16/device.c: stack is allocated via symbol and not
7928         via literal number. The symbol is placed in the corresponding
7929         position of the data ram
7930         * (pic16_dump_section): relocatable and absolute uninitialized
7931         data are now emitted in sorted order to reduce section naming,
7932         * src/pic16/ralloc.c (newReg): fixed bug with SFR's that
7933         weren't marked as being in the access bank,
7934
7935 2004-01-13 Vangelis Rokas <vrokas AT otenet.gr>
7936
7937         Added portion of GNU PIC Library under the directory
7938         device/include/pic16 and device/lib/pic16. These files
7939         contain the declarations of SFRs for the PIC18Fxx2 devices.
7940         The directory is initialized via configure from toplevel.
7941
7942 2004-01-12 Klaus Flittner <klaus_flittner AT gmx.de>
7943
7944         * src/ds390/gen.c (operandsEqu): fixed a little typo, that prevented
7945         the spilllocations to be compared correctly
7946
7947 2004-01-12 Bernhard Held <bernhard AT bernhardheld.de>
7948
7949         * src/SDCCast.c (decorateType): fixed bug introduced today
7950
7951 2004-01-12  Borut Razem <borut.razem AT siol.net>
7952
7953         * src/SDCC.lex, support/Util/SDCCerr.h, support/Util/SDCCerr.c,
7954         doc/sdccman.lyx: upper case pragmas are deprecated
7955
7956 2004-01-12 Bernhard Held <bernhard AT bernhardheld.de>
7957
7958         * src/SDCCast.c (decorateType): replacing 'ul > 0' by  '!ul' results
7959         in simpler and even better code
7960
7961 2004-01-11 Bernhard Held <bernhard AT bernhardheld.de>
7962
7963         * src/SDCCicode.c (operandOperation): fixed bug #874819
7964         * src/SDCCast.c (decorateType): fixed
7965         char foo (unsigned long ul) { return ul > 0; }
7966
7967 2004-01-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7968
7969         * doc/sdccman.lyx: Moved and added some sections, small changes
7970         all over. Telling LaTeX to be less strict with word spacing
7971         to better keep the right margin. Changed some notes about
7972         maintainance of the ports in section 3.2.1 - is it OK like this?
7973
7974 2004-01-11 Vangelis Rokas <vrokas AT otenet.gr>
7975
7976         SDCC source changes:
7977         * src/SDCCopt.c (cntToFcall, cnvToFloatCast, cnvFromFloatCast,
7978         convilong): modified to inform the pic16 port that builtin functions
7979         are external
7980
7981         PIC16 PORT specific changes:
7982         * src/pic16/device.c pic16_dump_equates() added,
7983         processor registers declared internally by the port are emitted in
7984         the translation as equates,
7985         * src/pic16/gen.c: inline code is passed unprocessed to the
7986         translation,
7987         * (pic16_popGetLit2): fnuction modified to take second operand as
7988         pCodeOp pointer and not as literal,
7989         * (popRegFromIdx): prefixed with pic16_,
7990         * (pic16_popCombine2): modified to receive already allocated pCode
7991         operands,
7992         * (pic16_pushpCodeOpReg, pic16_poppCodeOpReg): added
7993         * (genFunction): initializes local stack frame and pushes on stack
7994         all the registers used by this function,
7995         * (genEndFunction): restores all registers from stack and restores
7996         stack frame,
7997         * src/pic16/glue.c (pic16emitRegularMap): various changes and
7998         improvements,
7999         * (pic16glue): changed the program startup sequence,
8000         * added new dbName code 'A' for functions placed in absolute section
8001         * src/pic16/main.c: added function attribute _naked,
8002         * added pragma 'code' to place a fnuction at an absolute address,
8003         * added command line arguments --debug-ralloc and --pcode-verbose,
8004         * (_pic16_finiliseOptions): options.all_callee_saves is set by default
8005         * src/pic16/pcode.c (pic16_pBlockConvert2Absolute) added,
8006         * (pic16_newpCodeOpLit2): modified to take the second operand as
8007         pCodeOp pointer,
8008         * (pic16_printpBlock): modified to emit each function in a separate
8009         section,
8010         * (pic16_get_op): modified to use the gpasm modifiers LOW,HIGH and
8011         UPPER for immediate operands,
8012         * src/pic16/pcodepeeph.c: added peephole support for the LFSR
8013         instruction,
8014         * src/pic16/peeph.def: all peepholes with movff are commented out,
8015         because there is a problem in the pcode peep optimizer,
8016         * src/pic16/ralloc.c: the register allocator can now reuse local
8017         function symbols for another function. This saves register usage.
8018         * src/pic16/ralloc.h: added flag isLocal in structure regs,
8019
8020         Added file src/pic16/NOTES with information about program writing on
8021         the current port version.
8022
8023 2004-01-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8024
8025         * src/mcs51/peephole.def: added peepholes 177.c,d (redundant moves)
8026         and peephole 252 (array access)
8027
8028 2004-01-09  Borut Razem <borut.razem AT siol.net>
8029
8030         * src/SDCCmain.c : fixed #872250: -l command line defined library
8031           files are scanned before standard library files
8032
8033 2004-01-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8034
8035         * src/SDCCast.c (decorateType): fixed bug #874046
8036
8037 2004-01-09  Borut Razem <borut.razem AT siol.net>
8038
8039         * support/scripts/sdcc.nsi: remove previous installation
8040
8041 2004-01-09 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8042
8043         * src/SDCCglue.c (createInterruptVect): don't append 7(5) padding
8044         bytes for last interrupt vector (mcs51)
8045         * sdcc.spec: fixed typo
8046
8047 2004-01-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8048
8049         * src/mcs51/gen.c (genFunction, genEndFunction, genReceive, getTempRegs,
8050         gen51Code): more efficient parameter receive for --model-large
8051         ("bug" #845294)
8052
8053 2004-01-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8054
8055         * src/ds390/main.c,
8056         * src/z80/main.c: added missed needLinkerScript flags (more than
8057         one port structure defined in these file)
8058         * src/ds390/gen.c (aopForSym, aopOp, operandsEqu, aopOp3): fixed
8059         bug #795325
8060
8061 2004-01-08 Vangelis Rokas <vrokas AT otenet.gr>
8062
8063         * src/SDCCmain.c: removed various references to DEFAULT_PORT
8064         * src/port.h: added flag needLinkerScript in port->linker
8065         structure to inform whether to create a .lnk file or not,
8066         * src/avr/main.c,
8067         * src/ds390/main.c,
8068         * src/hc08/main.c,
8069         * src/mcs51/main.c,
8070         * src/pic/main.c,
8071         * src/pic16/main.c,
8072         * src/xa51/main.c,
8073         * src/z80/main.c: changed appropriately to configure
8074         needLinkerScript flag
8075         * src/pic/gen.c,
8076         * src/pic16/gen.c (genAddrOf): fixed bug #863624
8077         * src/pic/glue.c: added variable udata_section_name to
8078         override default uninitialized data segment definition for
8079         devices only with SHAREBANK memory (reported from Erik Epetrich)
8080         * (pic14emitOverlay): modified to emit a commented overlay segment
8081         directive when no overlay data exist
8082         * (picglue): modified to emit uninitialized data segment
8083         according to udata_section_name
8084         * src/pic/main.c (_pic14_parseOptions): added command line
8085         options --udata-section-name=[name] to override default
8086         udata definition name
8087         * modified _linkCmd and _asmCmd to include compiler passed
8088         arguments via -W option
8089         * src/pic16/main.c: added $l in _asmCmd, changed extension for
8090         object file from '.rel' to '.o' in port->linker structure,
8091         changed size of fptr from 2 to 3 in port structure
8092
8093 2004-01-07  Borut Razem <borut.razem AT siol.net>
8094
8095         * support/scripts/sdcc.nsi: update PATH
8096         * support/scripts/sdcc.ico: craeted
8097
8098 2004-01-07 Bernhard Held <bernhard AT bernhardheld.de>
8099
8100         * device/include/Makefile.in: fix install
8101         * doc/Makefile: fix install
8102
8103 2004-01-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8104
8105         * src/SDCCsymt.c (processFuncArgs): fixed superflous allocation noted
8106         in bug #860505
8107         * src/SDCCmem.c (printAllocInfoSeg, printAllocInfo): minor changes to
8108         how the function variable allocation summary is displayed; also
8109         include information about variables allocated to the overlay
8110         segment
8111
8112 2004-01-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8113
8114         * as/mcs51/lkmain.c: Help about -Y option
8115         * as/mcs51/lkarea.c: Fixed gcc warnings
8116
8117 2004-01-06 Bernhard Held <bernhard AT bernhardheld.de>
8118
8119         * src/SDCCval.c (valShift): changed from 16 to 32 bit shift count,
8120         fixed warning
8121         * support/valdiag/tests/overflow.c: added
8122         * src/SDCCast.c (decorateType),
8123         * src/SDCCicode.c (geniCodeLeftShift): added promotion to int for
8124         LEFT_OP (left shift)
8125
8126 2004-01-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8127
8128         * as/mcs51/lkmain.c: stack must be after data when option -Y is not used
8129         (default behaviour).
8130
8131 2004-01-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8132
8133         A python script to validate compiler diagnostic messages. It can be
8134         used to verify that sdcc complains about bad c source code and
8135         gives a good location of the error.
8136         * support/valdiag/Makefile,
8137         * support/valdiag/valdiag.py,
8138         * support/valdiag/tests/*
8139
8140 2004-01-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8141
8142         * src/SDCC.y (enum_specifier, enumerator_list, opt_assign_expr),
8143         * src/SDCCsymt.c (newEnumType),
8144         * src/SDCCsymt.h
8145         * support/Util/SDCCerr.c,
8146         * support/Util/SDCCerr.h: fixed bug #871258 and some other unreported
8147         enum related bugs.
8148         * support/regression/tests/enum.c: added test for enum values that
8149         require at least 2 bytes of storage.
8150
8151 2004-01-06 Vangelis Rokas <vrokas AT otenet.gr>
8152
8153         * src/common.h: added ifndef/define/endif macros
8154         around the header file.
8155         Bug reported from Jesus Calvino-Fraga
8156
8157 2004-01-06 Bernhard Held <bernhard AT bernhardheld.de>
8158
8159         * sdcc.spec: updated
8160         * device/include/Makefile.in: don't install CVS directories
8161         * device/lib/Makefile.in: added removal of CVS directories after install
8162         * doc/Makefile: fixed install, added local_icons
8163         * sim/ucsim/gui.src/Makefile.in: fixed an old typo
8164         * src/mcs51/gen.c (genRightShift): fixed bug #870788
8165         * src/ds390/gen.c (genRightShift): fixed bug #870788
8166         * src/SDCCast.c (decorateType): fixed bug #870781
8167
8168 2004-01-06 Vangelis Rokas <vrokas AT otenet.gr>
8169
8170         PIC16 port related changes:
8171         * device.c: removed pic16_finalMapping and pic16_finalMappingSize,
8172         added variable stackPos,
8173
8174         * gen.c: genCall, assignResultValue: added support for
8175         pushing/retrieving function parameters to/from stack,
8176         genFunction,genEndFunction: setup stack frame for the
8177         generated function,
8178         genAddrOf: will be changed according to bug 863624
8179
8180         * added files genutils.c and genutils.h which contain gen*
8181         debugged and optimised functions extracted from gen.c
8182
8183         * glue.c: added variable 'externs' which holds extern symbols,
8184         pic16emitRegularMap: is modified to properly handle relocatable
8185          symbols under the new scheme,
8186         pic16createInterruptVect: is modified
8187         pic16printPublics: is modified to emit 'global' assembler directives,
8188         added pic16_printExterns to print extern symbols,
8189         pic16glue: initializes stack/frame pointer in the beginning of
8190         the assembly output. Temporary hack, will be corrected later,
8191         because gplink yet does not support stack and SDCC does not
8192         yet support a type of crt0.o object to create the final binary.
8193
8194         * Removed many lines that contain 8051 legacy code.
8195         * The code is finally placed under a 'code' directive.
8196         * Added port specific options.
8197
8198         * _process_pragma: simplified since now we do not need *special*
8199         include file to define SFR registers. But a separate header
8200         will be needed. This will be developed later.
8201         * _pic16_parseOptions: added, parses port specific options:
8202         --pgen-banksel, --obanksel=, --pomit-config-words, --pomit-ivt,
8203         --pleave-reset-vector, --penable-stack, --pstack-model, --debug-xtra
8204         --preplace-udata-with=
8205
8206         * _pic16_setDefaultOptions: modified to initialize section names,
8207         but hack is temporarly out of order since it needs improvement.
8208         * _pic16_genAssemblerPreamble: configuration words are emitted by
8209         their address instead of their name. This part is incomplete and
8210         supports only the 18Fxx2 devices. Other devices will emit an error
8211         during assembly since they do not contain the same set of config
8212         registers
8213         * _pic16_genIVT: is modified,
8214
8215         * pcode.c: added definitions for some hardware registers that are needed
8216         for stack support
8217         * added flag is2LitOp and variable pci_magic in pCodeInstruction.
8218         All PCI entries are updated. Now LFSR is supported.
8219         * Removed pic16_pciTRIS is mentioned by mdubuc in source
8220         * added pic16_newpCodeOpLit2 to support instructions with
8221         two literal arguments
8222         * pic16_pCode2str: corrected code that emits assembler instructions
8223         with two literal operands and those that have an access bit modifier
8224         * genericPrint: now PC_ASMDIR pCodes, can emit a label if it exists,
8225         this fixes a bug which caused some labels to be lost, when an
8226         assembler directive was added, i.e. banksel,
8227         * pic16_FixRegisterBanking: improved logic that causes the insertion
8228         of bank switching,
8229         * InlineFunction: functions that are called once, are not any more
8230         inlined. This can be a port option in the future,
8231
8232         * pcode.h: added pCodeOpLit2 and added variable label in pCodeAsmDir
8233
8234         * ralloc.c: added pic16_rel_udata and pic16_fix_udata variables which
8235         hold the corresponding uninitialized symbols,
8236         * pic16_allocProcessorRegister: registers have explicit marked the
8237         accessBank field,
8238         * pic16_allocInternalRegister: registers are explicit marked as
8239         not used,
8240         * pic16_writeUsedRegs: pic16_dynDirectBitRegs was missing from the
8241         processing list, so bit registers were lost,
8242         *
8243
8244         * ralloc.h: added field 'accessBank' and original symbol operand
8245         in register definition,
8246         * removed the field isMapped from register definition,
8247
8248         ** Several functions have been removed from various sources:
8249         BanksUsedFlow2,BanksUsedFlow,FixBankFlow,InstructionRegBank,
8250         pic16_addMemRange,pic16_isREGinBank,pic16_dump_map,pic16_dump_cblock
8251         isSFR,validAddress,mapRegister,assignRegister,pic16_assignFixedRegisters
8252         pic16_assignRelocatableRegisters
8253
8254         ** others have been introduced:
8255         pic16_areRegsSame,pic16_dump_section,checkAddReg,pic16_groupRegistersInSection
8256         pic16_popGetLit2,pic16_popCombine2,pushw,pushaop
8257
8258 2004-01-05 Vangelis Rokas <vrokas AT otenet.gr>
8259
8260         * support/scripts/inc2h.pl: changed definition of BIT_AT
8261         to emit 'sbit at' instead of 'bit at'. This was a request.
8262
8263         PIC16 port related preliminary changes:
8264         * gen.c: prefixed function popRegFromString with
8265         pic16_ and all references to it corrected
8266         * pcode.c: all pic16_pc_* hardware registers prefixed
8267         with underscore (_),
8268         pic16_popCopyGPR2Bit(): function sets register wasUsed=1
8269         * ralloc.c: newReg(): when register is REG_SFR then
8270         set address to rIdx,
8271         pic16_allocProcessorRegister(): marks register wasUsed=0
8272         pic16_writeUsedRegs(): added a call to assign processor
8273         registers via pic16_assignFixedRegisters
8274
8275 2004-01-04  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8276
8277         * as/mcs51/aslink.h, as/mcs51/lkarea.c, as/mcs51/lkdata.c,
8278         as/mcs51/lkmain.c, as/mcs51/lkmem.c: 8051 linker can now pack
8279         variables in unused register banks.  Also the SSEG is placed
8280         wherever there is enough space for it, and IDATA can be anywhere
8281         in internal RAM.  For now compile using -Wl-Y[stack_size].
8282         The mem file is different for this option as well, since it
8283         makes no sense of talking about DSEG lenght.
8284
8285 2004-01-02 Vangelis Rokas <vrokas AT otenet.gr>
8286
8287         * src/SDCClrange.c: fixed bug 869095 that caused segfault
8288         in certain cases, e.g. when ROM assignment, patch provided
8289         from Albert den Haan.
8290
8291 2004-01-01 Bernhard Held <bernhard AT bernhardheld.de>
8292
8293         Many signedness and type propagation fixes:
8294         * src/SDCCicode.c: made geniCodeCast() static
8295         replaced SPEC_ by IS_ (cosmetic)
8296         (operandOperation): fixed div and mod operation
8297         (usualBinaryConversions): added support for promotion of char
8298         (geniCodeMultiply): replaced (unsigned long) by (TYPE_UDWORD)
8299         (geniCodeDivision): replaced (unsigned long) by (TYPE_UDWORD)
8300         (geniCodeAdd): an array index will stay unsigned, even if promoted
8301         from char to int
8302         (geniCodeArray): ditto
8303         * src/SDCCicode.h: made geniCodeCast() static: removed prototype
8304         * src/SDCCsymt.c (computeType): added more support for char;
8305         promotion of char is selectable by promoteCharToInt, fixed signedness
8306         for all cases
8307         (powof2): replaced (unsigned long) by (TYPE_UDWORD)
8308         * src/SDCCsymt.h (powof2): replaced (unsigned long) by (TYPE_UDWORD)
8309         * src/SDCCval (val*): replaced signedness calculation by
8310         computeType()
8311         rearranged if-branches (cosmetic)
8312         (valShift): added warning W_SHIFT_CHANGED
8313         (valCompare): fixed problem with different types
8314         * src/hc08/rallo.c (leastUsedLR): fixed gcc 3.3 warning
8315         * support/regression/tests/literalop.c: added many cases
8316         * support/regression/tests/ast_constant_folding.c: changed finally to
8317         'unsigned int'
8318         * .version: new year, new version: 2.3.7
8319         * src/SDCCmain.c (main): applied patch #866468
8320         * debugger/mcs51/sdcdb.c (parseCmdLine): added -k for ucsim, patch
8321         provided by Scott Bronson
8322         * doc/sdccman.lyx: updated documentation for sdcdb
8323         updated and added chapter tips
8324
8325 2004-01-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8326
8327         * src/SDCCsymt.h: missing from yesterday's commits
8328
8329 2003-12-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8330
8331         * src/SDCC.y (struct_or_union_specifier),
8332         * support/Util/SDCCerr.c,
8333         * support/Util/SDCCerr.h: verify that struct & union tags are used
8334         as declared.
8335
8336 2003-12-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8337
8338         * src/SDCCglobl.h: missing from yesterday's commits
8339
8340 2003-12-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8341
8342         * src/SDCC.y (external_definition, type_specifier2, sfr_reg_bit,
8343         sft_attributes, struct_declaration, parameter_declaration,
8344         type_name, start_block, declaration_list),
8345         * src/SDCC.lex (check_type): support redefinition of typedef names
8346
8347 2003-12-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8348
8349         * src/mcs51/gen.c (genPlus): added special handling for 256 byte
8350         aligned xdata arrays. Erik helped me with the if clause.
8351
8352 2003-12-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8353
8354         * device/lib/ds390/tinibios.c (CpuSpeed): suppress unreachable code
8355         warning
8356
8357 2003-12-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8358
8359         * src/SDCCast.h,
8360         * src/SDCCast.c (newAst_),
8361         * src/SDCCicode.h,
8362         * src/SDCCicode.c (ast2iCode, newiCode),
8363         * src/SDCCglobl.h,
8364         * src/SDCC.y (logical_and_expr, logical_or_expr, conditional_expr,
8365         expr, statement, expression_statement, selection_statement,
8366         iteration_statement, expr_opt, jump_statement): foundation for tracking
8367         sequence points
8368         * src/SDCCopt.c (killDeadCode): fixed bug #861580 (needs the sequence
8369         point code too)
8370
8371 2003-12-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8372
8373         * support/Util/SDCCerr.c,
8374         * src/SDCCast.h,
8375         * src/SDCCast.c (createCase, createDefault, decorateType),
8376         * src/SDCClabel.c (labelUnreach),
8377         * src/SDCC.y (labeled_statement, jump_statement): More improvements
8378         to error messages.
8379         * support/Util/SDCCerr.c (werrorfl): fixed a non-standard declaration
8380         (with thanks to Stas Sergeev)
8381         * device/include/time.h,
8382         * device/lib/time.c (CheckTime): suppress unreachable code warning
8383
8384 2003-12-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8385
8386         * src/SDCCast.c (createIvalCharPtr),
8387         * src/SDCCglue.c (printChar): fixed bug #862241 (an error in my fix for
8388         bug #753752)
8389         * support/regression/tests/nullstring.c: tests for these two bugs
8390
8391 2003-12-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8392
8393         * support/Util/SDCCerr.h,
8394         * support/Util/SDCCerr.c (E_NOT_ALLOWED),
8395         * src/SDCC.y (struct_declaration, struct_or_union_specifier): complain
8396         about storage class and 'at' used inside struct or union
8397         * src/SDCCBBlock.c (iCodeFromeBBlock),
8398         * src/SDCCcse.c (ifxOptimize),
8399         * src/SDCCglue.c (emitRegularMap, initPointer, printIvalStruct,
8400         printIvalArray, printiValFuncPtr, printIvalCharPtr, printIvalPtr,
8401         printIval, emitStaticSeg, emitOverlay),
8402         * src/SDCClabel.c (deleteIfx),
8403         * src/SDCCopt.c (replaceRegEqv, eBBlockFromiCode),
8404         * src/SDCCast.c (resolveSymbols, createIvalStruct, createIvalArray,
8405         gatherAutoInit, processParms),
8406         * support/Util/SDCCerr.h,
8407         * support/Util/SDCCerr.c (werrorfl): Support for better error location
8408         reporting for post-parse errors.
8409
8410 2003-12-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8411
8412         * src/SDCCval.c (valPlus, valMinus, valShift): fixed some problems with
8413         implicit casts via union; they don't work on big endian systems
8414         (possible fix for bug #861138)
8415
8416 2003-12-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8417
8418         (committed by Erik Petrich <epetrich AT ivorytower.norman.ok.us> on Frieder's behalf)
8419         * src/mcs51/main.c: fixed the fix for bug #737001
8420
8421 2003-12-15  Borut Razem <borut.razem AT siol.net>
8422
8423         * support/scripts/sdcc.nsi: updated for NSIS 2.0 beta 4
8424
8425 2003-12-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8426
8427         * support/makebin/makebin.c: put output in binary mode
8428
8429 2003-12-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8430
8431         * src/mcs51/main.c: fixed bug #737001 for the mcs51. SDCC clears
8432         xdata and data memory on startup. Set the environment variable
8433         SDCC_NOGENRAMCLEAR to disable this.
8434         * src/mcs51/peephole.def,
8435         * src/ds390/peephole.def: using the atomic test and clear instruction jbc
8436         (allows non-interrupt and interrupt code to safely compete for a resource
8437         without the non-interrupt code having to disable interrupts)
8438
8439 2003-12-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8440
8441         * src/SDCCicode.c (geniCodeAdd),
8442         * src/SDCCast.c (decorateType): fixed bug #857753 (need to be careful
8443         with valFromType if type might be a pointer and host is big endian).
8444         * src/SDCCast.c (decorateType): unary plus compatible with all arithmetic
8445         types, not just integer types.
8446         * src/SDCCsymt.c (addSymChain): clarified error message when symbol is
8447         multiply defined with mismatching "at" address.
8448
8449 2003-12-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8450
8451         * src/ds390/main.c (PORT tininative_port): fixed bug #858416
8452         * src/SDCCglue.c (printChar, printIvalChar, emitStaticSeg),
8453         * src/SDCCast.c (createIvalCharPtr, stringToSymbol): handle strings
8454         with embedded nulls (fixed bug #753752)
8455
8456 2003-12-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8457
8458         * src/mcs51/main.c(_mcs51_genRAMCLEAR): using r0 instead of r1/r2.
8459         Apparently this did not see much testing (endless loop)
8460
8461 2003-12-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8462
8463         * src/z80/ralloc.c: set DISABLE_PACK_HL = 1 as a temporary fix to bug #855165
8464
8465 2003-12-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8466
8467         * src/SDCCdebug.c (outputDebugSymbols, outputDebugStackSymbols, dumpSymInfo):
8468         gracefully handle NULL memmap pointers
8469
8470 2003-12-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8471
8472         * src/SDCCopt.c (killDeadCode): change iCode type to DUMMY_READ_VOLATILE
8473         instead of deleting the iCode when an operand is volatile
8474         * src/z80/gen.c (genDummyRead),
8475         * src/mcs51/gen.c (genDummyRead),
8476         * src/ds390/gen.c (genDummyRead),
8477         * src/hc08/gen.c (genDummyRead): handle operands in IC_LEFT and/or IC_RIGHT,
8478         not just IC_RIGHT
8479         * src/SDCCicode.c (geniCodeCall): fixed bug #851607
8480         * src/SDCC.y: fixed bug #850420
8481
8482 2003-12-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8483
8484         Applied z80 i/o port patch from Peter Townson and fixed some operators
8485         to better handle operands in A register.
8486         * device/include/z180.h
8487         * src/SDCC.y
8488         * src/SDCCglue.c
8489         * src/z80/gen.c
8490         * src/z80/gen.h
8491         * src/z80/main.c
8492         * src/z80/peeph-z80.def
8493         * src/z80/peeph.def
8494         * src/z80/z80.h
8495
8496 2003-12-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8497
8498         * src/SDCCsymt.c (addSymChain, compareTypeExact): fixed bug #838241 again
8499
8500 2003-12-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8501
8502         * device/lib/hc08/_mullong.c: Removed extra #endif
8503
8504 2003-12-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8505
8506         * sim/ucsim/hc08.src/inst.cc,
8507         * sim/ucsim/hc08.src/hc08mac.h: fixed some problems with CC flag bits and
8508         carries from x to h
8509         * src/hc08/gen.c (aopAdrStr): fixed problem with 16 bit immediate
8510         * src/hc08/gen.c (XAccRsh): fixed problem with right shift
8511         * device/include/stdarg.h: fixed varargs for hc08
8512         * device/lib/Makefile.in,
8513         * device/lib/hc08/Makefile,
8514         * device/lib/hc08/_mulint.c,
8515         * device/lib/hc08/_mullong.c: fixed some endian problems
8516
8517 2003-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8518
8519         * sdcc/src/mcs51/gen.c (genMultOneByte): help peephole 105
8520         * sdcc/src/mcs51/peeph.def: added peephole 186.e array access in code space
8521         * device/lib/_gptrget.c,
8522         * device/lib/_gptrput.c: P2 not used any more (related to #850747, #785979)
8523
8524 2003-11-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8525
8526         * src/SDCClrange.c (findNextUseSym, rlivePoint): fixed bug #849795
8527         * src/SDCCast.c (astErrors): fixed bug #846007
8528         * src/SDCCsymt.c (checkFunction): fixed follow-up bug on bug #846007
8529
8530 2003-11-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8531
8532         * src/SDCCast.c (decorateType): disabled a transformation I added in
8533         revision 1.188 (access to fields of a structure at an absolute address);
8534         it breaks with bitfields, extern declarations, and gcse analysis.
8535         * src/SDCCopt.c (isLocalWithoutDef): if ADDRESS_OF applied to a symbol, it
8536         could be assigned through a pointer, so don't complain.
8537         * src/SDCCast.c (astErrors),
8538         * src/SDCCast.h,
8539         * src/SDCCglue.c (emitRegularMap): fixed bug #847813
8540
8541 2003-11-26 Vangelis Rokas <vrokas AT otenet.gr>
8542
8543         * src/pic16/main.c (_pic16_genIVT): fixed interrupt vector table
8544         * src/pic16/main.c (_pic16_genAssemblerPreamble): re-enabled the
8545         output of __config directives, since gpasm now supports them
8546         * src/pic16/main.c (_pic16_finaliseOptions): define MCU
8547         pre-processor macro, i.e. -DMCU=p18f452
8548         * src/pic16/ralloc.c: renamed packRegisters to pic16_packRegisters,
8549         and modified to handle 'cast' icode similarly to '=' icode
8550         * src/pic16/device.h (typedef struct PIC_device): added field
8551         'extMIface' to indicate that chip has external memory interface
8552         * src/pic16/device.c: added chips 18F248, 18F258, 18F448, 18F458,
8553         18F6520, 18F6620, 18F6680, 18F6720, 18F8520, 18F8620, 18F8680,
8554         18F8720
8555
8556 2003-11-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8557
8558         * src/SDCC.y (pointer): fixed bug #846006
8559         * support/Util/SDCCerr.c: made W_PTR_TYPE_INVALID message clearer
8560         * src/SDCCast.c (decorateType): fixed bug #846009
8561         * src/ds390/peeph.def,
8562         * src/ds390/gen.c (genAnd, genOr),
8563         * src/mcs51/peeph.def,
8564         * src/mcs51/gen.c (genAnd, genOr): fixed bug #846777
8565
8566 2003-11-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8567
8568         Fixed several common-sub-expression bugs (#772861, #768380, & #755323)
8569         * src/SDCCdflow.c
8570         * src/SDCCcse.c
8571         * src/SDCCcse.h
8572         * src/SDCCBBlock.h
8573         * src/SDCCBBlock.c
8574
8575 2003-11-23 Klaus Flittner <klaus_flittner AT gmx.de>
8576
8577         fixed bug #845089
8578         * src/SDCCbitv.h,
8579         * src/SDCCbitv.c: added function to free a bitvector
8580         * src/SDCClrange.h,
8581         * src/SDCClrange.c: added function to recompute the liveranges
8582         * src/avr/ralloc.c,
8583         * src/ds390/ralloc.c,
8584         * src/hc08/ralloc.c,
8585         * src/mcs51/ralloc.c,
8586         * src/pic/ralloc.c,
8587         * src/pic16/ralloc.c,
8588         * src/xa51/ralloc.c,
8589         * src/z80/ralloc.c: recompute the liveranges after register packing
8590
8591 2003-11-21 Klaus Flittner <klaus_flittner AT gmx.de>
8592
8593         * src/SDCCloop.c (newInduction): fixed bug #845630
8594
8595 2003-11-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8596
8597         * src/SDCCsymt.c (compareTypesExact): disabled debugging output
8598         inadvertantly left behind from my 2003-11-12 change
8599
8600 2003-11-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8601
8602         Updated headers I neglected to commit yesterday.
8603         * src/SDCClrange.h,
8604         * src/SDCCicode.h
8605
8606 2003-11-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8607
8608         * src/SDCCcse.c (algebraicOpts): fixed bug #773153
8609         * src/SDCClrange.c (rlivePoint): need to mark IC_RESULT used if POINTER_SET op
8610         * src/SDCCopt.c (eBBlockFromiCode),
8611         * src/SDCClrange.c (hashiCodeKeys, sequenceiCode, computeLiveRanges): seperated
8612         the creation of the key hash table from the sequencing so it can be used
8613         earlier (for some GCSE bug fixes still pending)
8614
8615 2003-11-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8616
8617         * src/mcs51/gen.c (genPlus): generate shortcut for adding 0xab00
8618         * support/regression/tests/addsub.c: testing genPlus shortcut
8619
8620 2003-11-15  Borut Razem <borut.razem AT siol.net>
8621
8622         * src/SDCCmain.c: fixed bug #841645: -MM command line option passed to sdcpp
8623
8624 2003-11-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8625
8626         * src/SDCCcse.c (cseBBlock): fixed bug #527779
8627         * src/SDCCcse.c (deleteGetPointers): rewrote so that the set
8628         ordering is immaterial.
8629         * src/SDCCdflow.c (mergeInExprs): fixed bug #587536
8630
8631 2003-11-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8632
8633         * src/SDCCicode.c (geniCodeAddressOf): fixed part of bug #840381
8634         * src/SDCCopt.c (replaceRegEqv, isLocalWithoutDef): fixed other part
8635         (SIGSEV) of bug #840381
8636         * src/SDCCmain.c (linkEdit, assemble): fixed bug #841606 (don't
8637         unlink new file before rename if new and old filenames are the same)
8638
8639 2003-11-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8640
8641         * src/mcs51/main.c: started fixing bug #737001 (SDCC not clearing
8642         uninitialized variables) for the mcs51. Set environment variable
8643         SDCC_GENRAMCLEAR to test.
8644         xdata initialization slightly shorter
8645
8646 2003-11-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8647
8648         * src/SDCCsymt.h,
8649         * src/SDCCsymt.c (addSymTypeChain, compareTypesExact): fixed bugs
8650         #838241 & 780691 (basicly the same bug)
8651         * src/SDCCBBlock.c (iCode2eBBlock): fixed bug #840148
8652         * src/SDCCBBlock.c (iCodeFromeBBlock): fixed bug #840162
8653
8654 2003-11-11 Bernhard Held <bernhard AT bernhardheld.de>
8655
8656         * src/SDCCmain.c (linkEdit): "fix" #834252
8657
8658 2003-11-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8659
8660         * src/SDCCast.c (removePostIncDecOps, removePreIncDecOps),
8661         * src/SDCCast.h,
8662         * src/SDCC.y: fixed bug #819403
8663
8664 2003-11-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8665
8666         * support/regression/fwk/lib/testfwk.c: printn is recursive and thus needs
8667         the reentrant attribute.
8668         * src/hc08/gen.c (genPackBits): added missing stack readjustment
8669         * sim/ucsim/hc08.src/inst.cc (inst_mov): fixed bugs with mov instruction
8670         simulation
8671         * src/SDCCast.c (decorateType): fixed bug with storage class not being
8672         updated during pointer dereference; f.e. ~(((char *)1)*) was being
8673         erroneously reduced to a literal.
8674         * src/hc08/ralloc.c (packRegisters, rematStr),
8675         * src/hc08/gen.c (aopForRemat): allow literals to be rematerialized in
8676         some cases
8677
8678 2003-11-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8679
8680         * src/mcs51/main.c: fixed bug #838385. Thanks to Josef Pavlik for finding and fixing
8681         * doc/sdccman.lyx: changed from 'article' to 'book'
8682         * doc/Makefile: readded test_suite_spec and cdbfileformat
8683
8684 2003-11-08 Bernhard Held <bernhard AT bernhardheld.de>
8685
8686         * device/include/stdlib.h: include malloc.h to comply with ANSI
8687         * support/regression/tests/malloc.c: include stdlib.h instead of malloc.h
8688
8689 2003-11-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8690
8691         * doc/Makefile: sdccman.pdf should build with correct references (more info in commit msg)
8692         * doc/clean.mk: also remove *.out files
8693         * doc/sdccman.lyx: some additions, larger top/bottom margins
8694
8695 2003-11-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8696
8697         * src/SDCC.y: fixed bug #837365
8698         * support/regression/tests/bitopcse.c
8699         * src/hc08/gen.c (genPointerGet): Don't assume pointer operand is
8700         a symbol (might be valop instead)
8701         * device/lib/Makefile.in: added errno.c to HC08SOURCES
8702         * device/lib/clean.mk: added hc08 to the cleaning list
8703
8704 2003-11-04  Borut Razem <borut.razem AT siol.net>
8705
8706         * configure, configure.in, sdcc_vc_in.h, sdcconf_in.h: reverted changes,
8707           made 2003-11-04
8708         * support/Util/NewAlloc.c, as/hc08/lklibr.c, as/mcs51/lklibr.c,
8709           as/z80/aslist.c, as/z80/assym.c: removed inclusion of nonstandard malloc.h;
8710           malloc is declared in standard stdlib.h
8711
8712 2003-11-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8713
8714         * device/lib/hc08/Makefile: need to clean .rel not .o files
8715         * src/hc08/gen.c (genDjnz): can't use djnz with extended addressing mode
8716
8717 2003-11-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8718
8719         * src/port.h,
8720         * src/hc08/main.c,
8721         * src/mcs51/main.c,
8722         * src/ds390/main.c,
8723         * src/z80/main.c,
8724         * src/avr/main.c,
8725         * src/pic/main.c,
8726         * src/pic16/main.c,
8727         * src/xa51/main.c: added hasExtBitOp & oclsExpense functions to ports
8728         * src/SDCCicode.c: changed several IS_FARSPACE tests to isOclsExpensive
8729         tests (which uses the port's oclsExpense function)
8730         * src/SDCC.y,
8731         * src/SDCCast.c,
8732         * src/SDCCicode.c,
8733         * src/hc08/gen.c,
8734         * src/ds390/gen.c,
8735         * src/mcs51/gen.c: added support for the SWAP iCode (RFE #834167)
8736
8737 2003-11-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8738
8739         * src/SDCCcse.c (ifxOptimize),
8740         * src/SDCClabel.c (labelIfx, deleteIfx): When the condition to
8741         an IFX iCode is volatile, convert to DUMMY_READ_VOLATILE instead
8742         deleting the IFX iCode.
8743         * src/hc08/ralloc.c: reduced unneeded slocs
8744         * src/hc08/gen.c: fixed bug in asmopToBoolean
8745
8746 2003-11-04  Borut Razem <borut.razem AT siol.net>
8747
8748         * configure, configure.in, sdcc_vc_in.h, sdcconf_in.h,
8749           support/Util/NewAlloc.c, as/hc08/lklibr.c, as/mcs51/lklibr.c,
8750           as/z80/aslist.c, as/z80/assym.c: decision to include malloc.h
8751           transferred to configure
8752
8753 2003-11-03 Bernhard Held <bernhard AT bernhardheld.de>
8754
8755         Use headers defined in the C[++] standards:
8756         * sim/ucsim/gui.src/serio.src/fileio.cc
8757         * sim/ucsim/gui.src/serio.src/frontend.cc
8758         * sim/ucsim/gui.src/serio.src/main.cc
8759         * sim/ucsim/gui.src/serio.src/posix_signal.cc
8760         * support/Util/NewAlloc.c
8761         * as/hc08/lklibr.c
8762         * as/mcs51/lklibr.c
8763         * as/z80/aslist.c
8764         * as/z80/assym.c
8765
8766 2003-11-03  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8767
8768         * Added MSVC projects for hc08 assembler and linker:
8769         all.dsp, config.dsp, sdcc.dsw, /as/hc08/as_hc08.dsp,
8770         /as/hc08/link_hc08.dsp
8771
8772 2003-11-03 Martin Helmling <Martin.Helmling AT octo-soft.de>
8773
8774         * debugger/mcs51/cmd.c: allows filename starting with digit(+ some debug)
8775
8776 2003-11-02 Bernhard Held <bernhard AT bernhardheld.de>
8777
8778         * src/SDCCmain.c (linkEdit): "fixed" again bug #833605
8779
8780 2003-11-01 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8781
8782         * src/mcs51/main.c: xdata initialization is 13 bytes shorter now
8783
8784 2003-10-31  Borut Razem <borut.razem AT siol.net>
8785
8786         * support/cpp2/cpplib.h,
8787           support/cpp2/cpplib.c,
8788           support/cpp2/cpplex.c,
8789           support/cpp2/cppinit.c: introduced #pragma preproc_asm [ + | - ]
8790           to switch _asm block preprocessing on / off. Default is
8791           #pragma preproc_asm +
8792
8793 2003-10-31  Borut Razem <borut.razem AT siol.net>
8794
8795         * support/cpp2/cpplex.c: Fixed _WIN32 problem with CR-CR-LF sequences
8796           when outputting comment blocks (when executed with -C option) and
8797           _asm (SDCPP specific) blocks
8798
8799 2003-10-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8800
8801         * as/hc08/lkrloc.c (relr): Fixed ihx output, fixed lastAreaIndex warning
8802
8803 2003-10-31 Klaus Flittner <klaus_flittner AT gmx.de>
8804
8805         * src/SDCCcse.c (updateSpillLocation): fixed bug #808027
8806
8807 2003-10-31 Bernhard Held <bernhard AT bernhardheld.de>
8808
8809         * src/SDCCmain.c (linkEdit): "fixed" bug #833605
8810         * src/SDCCast.c (decorateType): fixed bug #832664
8811
8812 2003-10-31  Borut Razem <borut.razem AT siol.net>
8813
8814         * support/cpp2/cpplex.c: fixed for SDCPP:
8815           comments(when executed with -C option) and _asm blocks
8816           were included even if they where in skipped #if block.
8817           Applied solution from GCC cpp 3.3.2
8818
8819 2003-10-31  Borut Razem <borut.razem AT siol.net>
8820
8821         * src/SDCC.lex: sdcc now understands both formats:
8822           '# <line_number> <file_name>' and
8823           '#line <line_number> <file_name>'
8824         * support/cpp2/cppmain.c: sdcpp now generates the standard
8825           '# <line_number> <file_name>' instead of former
8826           '#line <line_number> <file_name>'
8827
8828 2003-10-30  Borut Razem <borut.razem AT siol.net>
8829
8830         * support/cpp2/cpphash.h,
8831         * support/cpp2/cpplib.h
8832         * support/cpp2/cpplex.c,
8833         * support/cpp2/cppmain.c,
8834         * support/cpp2/cppinit.c: fixed bug #828015 - Syntax variation for _asm character constants
8835
8836 2003-10-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8837
8838         Fixed a number of problems revealed by bug #827883.
8839         * src/SDCCloop.c (loopInvariants): Spill location of the
8840         result operand should be recomputed if extracted from
8841         a loop. Also, don't extract assignments of an iTemp
8842         from a literal.
8843         * src/SDCCast.c (isConformingBody): loop reversal should
8844         not occur if the control variable is involved with a
8845         relational operator.
8846
8847 2003-10-28 Bernhard Held <bernhard AT bernhardheld.de>
8848
8849         * .version: bumped to 2.3.6 to reflect the big improvements
8850         made by Erik and Klaus. Thanks!
8851
8852 2003-10-28 Klaus Flittner <klaus_flittner AT gmx.de>
8853
8854         Replaced the livrange code.
8855         * src/SDCClrange.c: added new LR code
8856         * src/SDCCloop.c,
8857         * src/SDCCBBlock.h: removed remainig parts from old LR code
8858         * src/ds390/ralloc.c,
8859         * src/ds390/gen.c: minor fixes to make it work with new code
8860
8861 2003-10-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8862
8863         * as/hc08/asm.h,
8864         * as/hc08/lkrloc.c,
8865         * src/hc08/gen.c,
8866         * src/hc08/ralloc.c: Fix various warnings related to the hc08
8867         * src/SDCCicode.c (geniCodePreInc, geniCodePreDec): Fixed bug #829717
8868         (tweaked fix for bug #818696)
8869
8870 2003-10-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8871
8872         * src/z80/ralloc.c (joinPushes): Fixed bug #828742
8873
8874 2003-10-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8875
8876         * src/SDCCmain.c,
8877         * sdccconf_in.h: Fixed bug #828387 (--disable-hc08-port didn't work)
8878         * src/mcs51/gen.c (gencjneshort),
8879         * src/ds390/gen.c (gencjneshort): Made comparison with AOP_IMMD operand
8880         more efficient (per Scott Bronson's suggestion)
8881
8882 2003-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8883
8884         Extended the semantics of the critical keyword to include
8885         individual statements. See RFE #827755 and #799831
8886         * src/SDCC.y
8887         * src/SDCCicode.c
8888         * src/SDCCopt.c
8889         * src/SDCCast.c
8890         * support/Util/SDCCerr.c
8891         * support/Util/SDCCerr.h
8892         * src/mcs51/gen.c
8893         * src/ds390/gen.c
8894         * src/hc08/gen.c
8895
8896 2003-10-19  Borut Razem <borut.razem AT siol.net>
8897
8898         * src/SDCC.lex: fixed bug #825944 - defined yytext_ptr to make it compile with flex 2.5.31
8899
8900 2003-10-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8901
8902         * src/SDCCicode.c (geniCodePreInc, geniCodePreDec, ast2iCode):
8903         Fixed bug #818696
8904         * src/SDCCast.c (ast_print): Fixed --dumptree so that preincrement
8905         and predecrement operand is displayed
8906
8907 2003-10-13 Bernhard Held <bernhard AT bernhardheld.de>
8908
8909         * src/SDCCval.c (valMinus): fixed bug #826041
8910
8911 2003-10-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8912
8913         Some hc08 related updates that I missed earlier
8914         * sim/ucsim/stypes.h
8915         * support/regression/ports/hc08/spec.mk
8916
8917 2003-10-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8918
8919         New target "hc08" for the Motorola 68hc08 family of micros
8920
8921         * configure
8922         * configure.in
8923         * Makefile
8924         * src/hc08/*
8925         * src/SDCCmain.c
8926         * src/port.h
8927         * sim/ucsim/hc08.src/*
8928         * sim/ucsim/configure.in
8929         * src/ucsim/configure
8930         * sim/ucsim/packages_in.mk
8931         * as/hc08/*
8932         * as/Makefile
8933         * device/include/mc68hc908qy.h
8934         * device/lib/hc08/*
8935         * device/lib/Makefile.in
8936         * support/regression/ports/hc08/*
8937         * support/regression/Makefile
8938
8939 2003-10-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8940
8941         * src/z80/gen.c: fixed bug revealed by ast_constant_folding.c
8942         regression test
8943         * src/ds390/gen.c (genCast): fixed bug #821957
8944
8945 2003-10-13 Bernhard Held <bernhard AT bernhardheld.de>
8946
8947         * device/lib/logf.c: "fixed" overlay bug
8948         * support/regression/ports/host/spec.mk: added m library
8949         * support/regression/ports/mcs51-stack-auto/spec.mk: added float funcs
8950         * support/regression/tests/float_trans: added (for Eric)
8951
8952 2003-10-12 Bernhard Held <bernhard AT bernhardheld.de>
8953
8954         * src/mcs51/gen.c (genCpl): fixed bug
8955         http://sf.net/mailarchive/message.php?msg_id=6263915
8956
8957 2003-10-10 Bernhard Held <bernhard AT bernhardheld.de>
8958
8959         * src/SDCCast.c (decorateType): added extended constant folding
8960         * src/SDCCsymt.c (computeType): cleanup
8961         * src/SDCCval.c (valShift): minor optimization
8962         * support/regression/tests/ast_constant_folding.c: added
8963
8964 2003-10-09  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8965
8966         * src/SDCCmain.c: removed some unintended changes
8967
8968 2003-10-09  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8969
8970         * src/SDCCmain.c (setParseWithComma): fixed bug #816685
8971         * src/z80/gen.c: fixed part of bug #817589
8972         * src/SDCCsymt.c (checkFunction): fixed bug #817895
8973
8974 2003-10-08 Bernhard Held <bernhard AT bernhardheld.de>
8975
8976         Replaced cast (void **) with (void *) to avoid gcc 3 warning:
8977         * src/SDCCcflow.c
8978         * src/SDCCcse.c
8979         * src/SDCCdflow.c
8980         * src/SDCClabel.c
8981         * src/SDCClrange.c
8982         * src/SDCCmem.c
8983         * src/SDCCopt.c
8984         * src/SDCCpeeph.c
8985         * src/SDCCset.c
8986         * src/avr/ralloc.c
8987         * src/ds390/ralloc.c
8988         * src/izt/ralloc.c
8989         * src/mcs51/ralloc.c
8990         * src/pic/ralloc.c
8991         * src/pic16/ralloc.c
8992         * src/xa51/ralloc.c
8993         * src/z80/ralloc.c
8994         * src/z80/gen.c: removed unused label "release:"
8995
8996 2003-10-06  Borut Razem <borut.razem AT siol.net>
8997
8998         * src/SDCC.lex: removed definition of unused variables
8999           save_optimize and save_options
9000
9001 2003-10-06 Bernhard Held <bernhard AT bernhardheld.de>
9002
9003         * clean.mk: removed '=' in "-maxdepth=1"
9004         * src/SDCCloop.c: replace LRKLAUS with SDCC_LRKLAUS
9005         * src/SDCClrange.c: replace LRKLAUS with SDCC_LRKLAUS
9006
9007 2003-10-06  Borut Razem <borut.razem AT siol.net>
9008
9009         * src/SDCC.lex, src/SDCC.lex: use dbuf for "_asm" definitions;
9010           my_unput() replaced by unput()
9011
9012 2003-10-05 Bernhard Held <bernhard AT bernhardheld.de>
9013
9014         * src/SDCCloop.c (assignmentsToSym, loopInduction): cast argument of
9015         setToNull() to (void *) to avoid gcc3.x's warning: "dereferencing
9016         type-punned pointer will break strict-aliasing rules"
9017         Old LR behaviour is again default; Klaus' LR can be choosen by
9018         defining the environment variable LRKLAUS
9019         * src/SDCCBBlock.h
9020         * src/SDCCloop.c
9021         * src/SDCClrange.c
9022         * src/ds390/ralloc.c (spillThis): applied Klaus' patch
9023         * clean.mk: fixed removal of files in bin/CVS/
9024         * device/lib/clean.mk: fixed removal of directories small and large
9025         * support/Util/SDCCerr.c: changed W_INT_OVL to ERROR_LEVEL_PEDANTIC
9026         * src/SDCCicode.c,
9027         * src/SDCCval.c: removed superflous test for pedantic
9028
9029 2003-10-05  Borut Razem <borut.razem AT siol.net>
9030
9031         * src/SDCC.lex, support/Util/SDCCerr.c, sdcc/support/Util/SDCCerr.h:
9032           Fixed bug #816692: introduced new ERROR_LEVEL_PEDANTIC warning
9033           message "unmatched #pragma SAVE and #pragma RESTORE"
9034
9035 2003-10-04  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9036
9037         * doc/sdccman.lyx: various additions and updates (interrupts, inline
9038           assembly, critical functions, atomic, nojtbound)
9039
9040 2003-10-04 Bernhard Held <bernhard AT bernhardheld.de>
9041
9042         Applied liferange patch from Klaus Flittner <klaus_flittner AT gmx.de>
9043         * src/SDCCBBlock.h
9044         * src/SDCCloop.c
9045         * src/SDCCloop.h
9046         * src/SDCClrange.c
9047
9048 2003-10-03  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9049
9050         * src/z80/gen.h,
9051         * src/z80/gen.c (aopOp, aopGet, aopPut, genDummyRead),
9052         * src/mcs51/gen.h
9053         * src/mcs51/gen.c (aopOp, aopGet, aopPut, genDummyRead),
9054         * src/ds390/gen.h
9055         * src/ds390/gen.c (aopOp, aopGet, aopPut, genDummyRead),
9056         * src/SDCCicode.c (ast2iCode, geniCodeDummyRead): Fixed bug #663539
9057         * src/SDCCopt.c (killDeadCode): Fixed bugs #663539 & #816705
9058
9059 2003-10-02  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9060
9061         * src/z80/gen.c (genRet): fixed bug #524753
9062         * src/z80/gen.c (genCast): fixed internal error on cast from
9063         pointer to long
9064         * src/z80/gen.c (_saveRegsForCall, emitCall): adapted Johan's
9065         fix for bug #477835 to the z80
9066         * src/z80/gen.c (genZ80code, _vemit2, _emit2): added support
9067         for tracking iCodes in the peephole optimizer for z80
9068
9069 2003-10-01  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9070
9071         * src/SDCCicode.c (geniCodeJumpTable, geniCodeSwitch): fixed
9072         the other part of bug #814548
9073         * src/SDCCpeeph.c (labelInRange): fixed bug #814558
9074
9075 2003-09-30  Bernhard Held <bernhard AT bernhardheld.de>
9076
9077         * src/SDCCcse.c: fixed part of bug #814548
9078
9079 2003-09-28  Borut Razem <borut.razem AT siol.net>
9080
9081         * src/asm.c: rewrite of printILine() to use temporary file instead
9082           a pipe
9083         * src/xa51/main.c: commented out declaration of int rewinds
9084
9085 2003-09-27  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9086
9087         * src/SDCCicode.c (geniCodeJumpTable): Fixed bug #813206
9088
9089 2003-09-26  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9090
9091         * src/SDCCdflow.c (computeDataFlow): Fixed bug #810746
9092         * src/asm.c (printILine): Fixed bug #811015
9093
9094 2003-09-22  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9095
9096         *link/z80/lklibr.c, as/mcs51/lklibr.c: Improved memory allocation and
9097         freeing.
9098
9099 2003-09-21  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9100
9101         * src/z80/gen.c (setupToPreserveCarry): Fixed bug #796955
9102         * src/z80/gen.c (setupPair, genMovePairPair): Fixed setupPair
9103         to correctly handle general case of AOP_PAIRPTR
9104         * src/z80/gen.c (aopGet, aopPut): Generalized AOP_PAIRPTR handling
9105
9106 2003-09-21  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9107
9108         * src/mcs51/ralloc.c (fillGaps),
9109         * src/ds390/ralloc.c (fillGaps): fixed bug #810093 (yet another
9110         register positioning bug)
9111
9112 2003-09-21  Bernhard Held <bernhard AT bernhardheld.de>
9113
9114         * device/lib/_fsdiv.c: replaced (1<<31) by (1ul<<31)
9115
9116 2003-09-19  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9117
9118         * src/mcs51/gen.c (loadDptrFromOperand, genFarPointerGet,
9119         genCodePointerGet, genGenPointerGet, genFarPointerSet,
9120         genGenPointerSet): handle AOP_DPTR correctly when loading dptr
9121         (ralloc doesn't intentionally do this now, but perhaps later)
9122         * src/mcs51/ralloc.c (serialRegAssign, fillGaps),
9123         * src/ds390/ralloc.c (serialRegAssign, fillGaps): fixed some
9124         register positioning bugs (Fixed bug #762602 and #795325)
9125         * src/SDCCicode.c (geniCodeDerefPtr): Track output class correctly
9126         (Fixed bug #808779)
9127         * src/z80/gen.c: increased _vemit2's buffer[] to handle long
9128         lines that --i-code-in-asm generates
9129
9130 2003-09-18  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9131
9132         *link/z80/lklibr.c, as/mcs51/lklibr.c: Fixed Linux segfaults when
9133         trying to fclose a FILE* that was already closed.
9134
9135 2003-09-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9136
9137         * src/SDCCsymt.c (structElemType): fixed bug #808291 (members
9138         of const struct should be treated as if const themselves)
9139
9140 2003-09-18  Bernhard Held <bernhard AT bernhardheld.de>
9141
9142         * src/SDCCval.c (valPlus, valMinus): fixed bug #808337
9143
9144 2003-07-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9145
9146         * support/librarian/sdcclib.c: Generate correct offsets for libraries with
9147         Unix (/n) and DOS (/r/n) line terminations.
9148
9149 2003-09-17  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9150
9151         * src/SDCCopt.c (cnvFromFloatCast, cnvToFloatCast): fixed
9152         bug #613775
9153
9154 2003-09-16  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9155
9156         * src/mcs51/gen.c (genFunction, genEndFunction),
9157         * src/ds390/gen.c (genFunction, genEndFunction): Moved save
9158         and restore of EA so that stack offsets to parameters are
9159         correct when using both critical and reentrant/stack-auto.
9160         * src/z80/gen.c (aopOp): removed erroneous assertion about sloc
9161         size (can be triggered in error if sloc is shared between
9162         different sized objects)
9163         * device/include/float.h: fixed macros to explicitly use
9164         unsigned long where needed
9165
9166 2003-09-15  Bernhard Held <bernhard AT bernhardheld.de>
9167
9168         Feature req. 799831: added code to allow nesting of critical functions
9169         * src/mcs51/gen.c (genFunction, genEndFunction)
9170         * src/ds390/gen.c (genFunction, genEndFunction)
9171
9172 2003-09-14  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9173
9174         * src/SDCCsymt.c (sclsFromPtr),
9175         * src/SDCCsymt.h,
9176         * src/SDCCast.c (decorateType): fixed bug #462971. Also, better
9177         support for standard C idiom of memory mapped variables; for
9178         example, *((xdata int*)0x1234) = 1 is now internally equivalent
9179         to xdata int at 0x1234 tempvar = 1.
9180         * sim/ucsim/z80.src/inst_xd.cc: fixed bug #805483 with patch
9181         provided by Akiya ISHIDA
9182
9183 2003-09-13  Bernhard Held <bernhard AT bernhardheld.de>
9184
9185         * src/SDCCval.c (cheapestVal): reenabled to reduce int to char
9186         * src/SDCCval.c (constVal): added reduction from int to char
9187         * src/SDCCval.c (valMult, valDiv): fixed sign handling
9188         * src/SDCCval.c (valShift): fixed after change of cheapestVal()
9189         * src/SDCCval.c (valCompare): fixed EQ_OP and NE_OP; they have
9190         to ignore the sign
9191         * support/regression/tests/shifts.c: fixed
9192
9193 2003-09-13  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9194
9195         * src/z80/gen.c (genXor): Fixed bug #805445
9196
9197 2003-09-12  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9198
9199         Fixed bug #621531 (const & volatile confusion in the type chain).
9200         DCL_PTR_CONST, DCL_PTR_VOLATILE, & IS_PTR_CONST now exclusively
9201         refer to the const or volatile state of the pointer itself.
9202
9203         * src/SDCCast.c
9204         * src/SDCCglue.c
9205         * src/SDCCicode.c
9206         * src/SDCCsymt.c
9207         * src/SDCCval.c
9208         * src/SDCC.y
9209         * src/SDCCsymt.h
9210         * src/pic/gen.c
9211         * src/pic/ralloc.c
9212         * src/pic16/gen.c
9213         * src/pic16/ralloc.c
9214         * support/regression/tests/const.c
9215
9216 2003-09-10  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9217
9218         When checking for duplicated modules, use absolute paths
9219         instead of relative paths.  Files changed:
9220
9221         * as/mcs51/lklib.c
9222         * link/z80/lklib.c
9223
9224 2003-09-09  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9225
9226         * src/SDCCicode.c (geniCodeLogic): fixed bug #797572
9227
9228 2003-09-07  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9229
9230         * device/include/string.h: added size_t typedef, changed
9231         prototypes to use size_t, eliminated separate reentrant and
9232         non-reentrant declarations, added _memmove declaration
9233         * device/lib/_memcpy.c: changed to use size_t instead of int,
9234         changed /4 to >>2 to avoid division library call
9235         * device/lib/_memcmp.c,
9236         * device/lib/_memset.c,
9237         * device/lib/_strncat.c,
9238         * device/lib/_strncpy.c,
9239         * device/lib/_strncmp.c: changed to use size_t instead of int
9240         * device/lib/_memmove.c: new file (fixed bug #772294)
9241         * device/lib/Makefile.in: added _memmove.c
9242         * device/lib/z80/asm_strings.s: fixed bug #772290
9243         * support/regression/tests/bitfields.c: attempt to fix host assertion
9244         failure on amd64-unknown-linux2.2
9245
9246 2003-09-06  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9247
9248         * src/z80/gen.c (aopPut, spillPairReg): fixed bug #800998
9249         * src/z80/gen.c (genFunction, genEndFunction): fixed "bug" #774700
9250         * as/z80/asmain.c (main): fixed bug #801766
9251
9252 2003-09-06  Bernhard Held <bernhard AT bernhardheld.de>
9253
9254         * src/SDCCicode.c (ast2iCode): fixed differences in iCode with different
9255         compilers
9256
9257 2003-09-05  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9258
9259         * src/SDCCast.c (isConformingBody): fixed loop reversal bug
9260         reported in bug #800609
9261
9262 2003-09-04  Vangelis Rokas <vrokas AT otenet.gr>
9263
9264         * Top header beautifications in src/pic16 directory:
9265           device.c, device.h, gen.c, gen.h, genarith.c, glue.c, pcode.c,
9266           pcodeflow.c, pcodeflow.h, pcode.h, pcodepeep.c, pcoderegs.c,
9267           pcoderegs.h, ralloc.c, ralloc.h
9268         * main.c: added top header and GPL license notice
9269         * pcode.c: fixed the if-conditional warning
9270
9271 2003-09-04  Bernhard Held <bernhard AT bernhardheld.de>
9272
9273         * device/lib/_mullong.c: replaced int by short for gcc
9274
9275 2003-08-31  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9276
9277         * src/SDCCpeeph.c (notVolatile, notVolatileVariable): handle IFX
9278         and JUMPTABLE iCodes properly now (worked by accident before)
9279         * src/mcs51/gen.c (leftRightUseAcc),
9280         * src/ds390/gen.c (leftRightUseAcc): handle IFX and JUMPTABLE
9281         iCode properly now. Use getSize instead of nRegs since a & b
9282         aren't part of the nRegs tally.
9283
9284 2003-08-31  Vangelis Rokas <vrokas AT otenet.gr>
9285
9286         * src/pic16/main.c: corrected offsets of interrupt vectors in _pic16_genIVT()
9287         * src/pic16/pcode.c: fix to disable inserting BANKSEL directive
9288           before instructions that use the _STATUS register
9289
9290 2003-08-31  Bernhard Held <bernhard AT bernhardheld.de>
9291
9292         * src/mcs51/gen.c (freeAsmop): fixed off by one in stack offset (AOP_STK)
9293         * src/mcs51/gen.c (genNearPointerSet): added missing opcode for
9294         fetching of the pointer
9295         * src/mcs51/gen.c (genNearPointerGet): added reuse of PREG,
9296         copied from genNearPointerSet()
9297         * src/mcs51/gen.c (genNearPointerGet): don't pop r0/r1, if RESULTONSTACK
9298         * src/mcs51/gen.c: changed order of freeAsmop(left/right/result)-calls.
9299         If they pop r0/r1 they must be called in the opposite order than aopOp().
9300         * device/lib/_mullong.c: fixed for "--model-large --int-long-reent"
9301         (resp. --stack-auto), prepared for --xstack
9302
9303 2003-08-28  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9304
9305         * doc/sdccman.lyx: reverted tables to those in cvs 1.64
9306
9307 2003-08-28  Bernhard Held <bernhard AT bernhardheld.de>
9308
9309         * device/lib/_startup.c: quick & dirty fix for ds390/ds400;
9310         these ports have their own __sdcc_external_start()
9311
9312 2003-08-26  Bernhard Held <bernhard AT bernhardheld.de>
9313
9314         pic patch provided by Slade Rich <slade_rich AT yahoo.com>
9315         * src/pic/glue.c (pic14printPublics): fixed bug introduced when symbol
9316         type for bits was changed. It resulted in bit variables becoming
9317         global, which is not permitted in PIC 14 assembly output.
9318
9319 2003-08-23  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9320
9321         * doc/sdccman.lyx: various additions and updates. Rearranged sections
9322
9323 2003-08-22  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9324
9325         Z80 and MCS51 linkers complaint if a public symbol is defined
9326         in more than one library module:
9327
9328         * as/mcs51/lklib.c
9329         * link/z80/lklib.c
9330         * as/mcs51/Makefile.in
9331
9332 2003-08-22  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9333
9334         A few small changes that speed up the peephole optimizer.
9335
9336         * src/SDCCpeeph.c
9337
9338 2003-08-22  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9339
9340         Try to make the peephole optimizer smarter by maintaining
9341         an association between the assembly source code and the
9342         iCodes that originated them. Put this information to use
9343         with a new peephole rule condition "notVolatile" so that
9344         the rules can be aggressive yet still safe.
9345
9346         * src/SDCCpeeph.c
9347         * src/SDCCpeeph.h
9348         * src/mcs51/gen.c
9349         * src/mcs51/peeph.def
9350
9351 2003-08-20  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9352
9353         Fixed bug #741761
9354
9355         * src/mcs51/gen.c (aopForSym, leftRightUseAcc),
9356         * src/ds390/gen.c (aopForSym, leftRightUseAcc): preserve A and B
9357         if the left or right operand symbols have the accuse flag set.
9358
9359 2003-08-20  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9360
9361         Changed the type of the result of the ! (NOT) operator to char;
9362         previously it returned the same type as the source. This allows
9363         us to eliminate all the genFloatNot functions (all of its target
9364         implementations were very buggy) since !float can use the same
9365         code as !long now.
9366
9367         * src/SDCCicode.c (ast2iCode): ! returns char
9368         * src/mcs51/gen.c (genNot, genNotFloat),
9369         * src/ds390/gen.c (genNot, genNotFloat),
9370         * src/z80/gen.c (genNot, genNotFloat),
9371         * src/pic/gen.c (genNot, genNotFloat),
9372         * src/pic16/gen.c (genNot, genNotFloat): eliminated genNotFloat
9373
9374 2003-08-19  Bernhard Held <bernhard AT bernhardheld.de>
9375
9376         pic patch provided by Slade Rich <slade_rich AT yahoo.com>
9377         1. Interrupt would not compile properly. Ensure PCLATH register is saved
9378            during interrupts. Ensure WSAVE is located at a shared bank address.
9379         2. Fixed page selection in some places
9380         3. Fixed BTFSS/C to where necessary use registers directly and not simply
9381            the registers name strings.
9382         4. Fixed "signed / unsigned compare" compiler warnings.
9383         5. The PIC port manages its own allocation of the general purpose
9384            registers, but makes no attempt to reuse them. As a result when
9385            compiling it soon runs out of general purpose registers. Some
9386            additional code was added to the files pcode.c and device.c to walk
9387            through the function call tree and rename the registers so that they
9388            get reused.
9389
9390         * src/pic/device.c
9391         * src/pic/gen.c
9392         * src/pic/glue.c
9393         * src/pic/pcode.c
9394         * src/pic/pcode.h
9395         * src/pic/ralloc.c
9396         * src/pic/ralloc.h
9397         * src/pic/genarith.c: Fixed problems with PIC 14 port in functions
9398         genPlus() & genMinus() when the result is the same as left or right
9399
9400 2003-08-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9401
9402         * src/z80/gen.c (isUnsplitable, fetchPairLong): fixed bug #770454
9403
9404 2003-08-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9405
9406         Made bitfield a distinct type from bit so that bitfields
9407         convert as per ANSI C and bits retain their traditional
9408         boolean style behaviour. Implemented bitfield support in
9409         the z80 port.
9410
9411         * src/SDCCsymt.h,
9412         * src/SDCCsymt.c,
9413         * src/SDCCast.c,
9414         * src/cdbFile.c,
9415         * src/mcs51/gen.c,
9416         * src/ds390/gen.c: bit v bitfield split
9417         * src/z80/gen.c: New support for bitfields
9418         * support/regression/tests/bitfields.c: reenabled z80,
9419         added more tests
9420
9421 2003-08-17  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9422
9423         Rules 246.x, 247.x relate to bitfields, the others speed up
9424         access to xdata mapped I/O devices.
9425
9426         * src/mcs51/peeph.def: added 26 peepholes 246.x - 248.x, 180.x
9427
9428 2003-08-16  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9429
9430         Cleaned up genPackBits and genUnpackBits and added two helper
9431         functions, emitPtrByteGet & emitPtrByteSet. Added optimizations
9432         for literal assignments in genPackBits (thanks to Frieder for
9433         reminding me).
9434
9435         * src/mcs51/gen.c
9436         * src/ds390/gen.c
9437
9438 2003-08-16  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9439
9440         Fixed bug #748310 (pointer to function type mishandled when the
9441         function name is omitted). Also fixed a SIGSEGV when a function
9442         attribute (reentrant, etc) is used on a non-function or on a
9443         function but misplaced before the parameter list.
9444
9445         * src/SDCC.y (abstract_declarator, abstract_declaractor2): fixed
9446         bug #748310
9447         * src/SDCC.y (declarator2_function_attributes): avoided SIGSEGV
9448         * support/Util/SDCCerr.h,
9449         * support/Util/SDCCerr.c: Added func attr misuse error msg
9450
9451 2003-08-13  Bernhard Held <bernhard AT bernhardheld.de>
9452
9453         Fixed bug #787649 by anonymous
9454         * src/SDCCglue.c (emitRegularMap): added emission of sloc for func ptr
9455         * src/ds390/gen.c (aopForSym): fixed func ptr in sloc
9456
9457 2003-08-14  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9458
9459         Fixed numerous bitfield problems.
9460
9461         * src/SDCC.y: More bitfield related error checking
9462         * src/SDCCsymt.h,
9463         * src/SDCCsymt.c (compStructSize): fixed bitfield offset calc
9464         * support/Util/SDCCerr.h,
9465         * support/Util/SDCCerr.c: Added & edited some bitfield err msgs
9466         * src/mcs51/gen.c (genPackBits, genUnpackBits): fixed mask bugs
9467         * src/ds390/gen.c (genPackBits, genUnpackBits): fixed mask bugs
9468         * support/regression/tests/bitfields.c: tests added
9469
9470 2003-08-13  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9471
9472         Made the constant following the "interrupt" keyword optional. If
9473         omitted, the function will not automatically be given an entry
9474         in the interrupt vector table (similar to #pragma NOIV, but
9475         less syntacticly kludgy). The interrupt number is also now
9476         range checked. Also fixed a bug in the high order bit example
9477         in the manual.
9478
9479         * src/SDCC.y
9480         * src/SDCCmem.c
9481         * src/SDCCglue.c
9482         * src/SDCCsymt.h
9483         * support/Util/SDCCerr.c
9484         * support/Util/SDCCerr.h
9485         * doc/sdccman.lyx
9486
9487 2003-08-13  Bernhard Held <bernhard AT bernhardheld.de>
9488
9489         * src/SDCCcse.c (algebraicOpts): fix bug converting op from value to type
9490         * src/SDCCicode.c (operandOperation): rewritten some ops
9491         (*, ==, unary_minus) to fix possible overflows and to accord with ANSI
9492         * src/SDCCsymt.c (computeType): literals are handled the same way as any
9493         other type
9494         * src/SDCCval.c (cheapestVal): removed, it doesn't accord with ANSI (can
9495         be re-activated by defining REDUCE_LITERALS)
9496         * src/SDCCval.c (constVal): fixed; hex and octal constants can be
9497         unsigned, but are signed by default
9498         * src/SDCCval.c (constVal): rearranged
9499         * src/SDCCval.c (valMod): preliminary fix
9500         * src/SDCCval.c (valCastLiteral): use TYPE_* types
9501         * support/regression/literalop.c: added, work in progress
9502
9503 2003-08-12  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9504
9505         Generate warnings for useless declarations like "char data;"
9506         that don't do what new users expect.
9507
9508         * src/SDCC.y
9509         * support/Util/SDCCerr.h
9510         * support/Util/SDCCerr.c
9511
9512 2003-08-09  Bernhard Held <bernhard AT bernhardheld.de>
9513
9514         * src/SDCCval.c (valMult): fix overflow detection of negative int
9515
9516 2003-08-07  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9517
9518         * src/z80/ralloc.c (joinPushes): made compatible with new signedness
9519
9520         Changes to support big endian targets:
9521
9522         * src/ports.h
9523         * src/SDCCglue.c
9524         * src/avr/main.c
9525         * src/ds390/main.c
9526         * src/izt/i186.c
9527         * src/mcs51/main.c
9528         * src/pic/main.c
9529         * src/pic16/main.c
9530         * src/xa51/main.c
9531         * src/z80/main.c
9532
9533 2003-08-06  Bernhard Held <bernhard AT bernhardheld.de>
9534
9535         * src/SDCCval.c (cheapestVal): changed behaviour to the same as constVal()
9536         * device/lib/time.c: fixed warning "integer overflow in expression"
9537
9538 2003-08-05  Bernhard Held <bernhard AT bernhardheld.de>
9539
9540         * src/SDCCval.c (cheapestVal, valueFromLit): use TYPE_* types
9541         * src/SDCCval.c (constVal): changed default to signed; hex and octal
9542         constants are unsigned; added recognition of "u" flag for unsigned
9543         * src/SDCCval.c (valMult): fixed signdness, added warning for overflow
9544         * src/SDCCval.c (valDiv, valMod): fixed signdness
9545         * src/SDCCicode.c (operandOperation): fixed critical typo; fixed
9546         signedness of modulo, left and right shift
9547         * support/Util/SDCCerr.c: added warning "integer overflow in expression"
9548         * support/Util/SDCCerr.h: added warning W_INT_OVL
9549         * src/SDCCast.c (decorateType): fixed gcc3.3 warning
9550         * src/SDCCast.c (ast_print): improved output of constants
9551
9552 2003-08-04  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9553
9554         Fixed some warnings when building with MSVC:
9555
9556         * as/mcs51/asdata.c
9557         * as/z80/asdata.c
9558         * as/mcs51/asm.h
9559         * as/z80/asm.h
9560         * link/z80/aslink.h
9561         * link/z80/lkdata.c
9562         * link/z80/lkeval.c
9563         * link/z80/lkgb.c
9564         * link/z80/lkihx.c
9565         * link/z80/lks19.c
9566         * link/z80/lksym.c
9567         * support/cpp2/cpplib.c
9568         * src/ds390/gen.c
9569         * src/mcs51/gen.c
9570
9571 2003-08-03  Bernhard Held <bernhard AT bernhardheld.de>
9572
9573         * src/SDCCast.c (constExprTree): fix bug #781827 by Carl Worth <cworth AT isi.edu>
9574
9575 2003-08-01  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9576
9577         * support/librarian/clean.mk: Do not remove Makefile.
9578         * support/librarian/Makefile: added.
9579
9580 2003-08-01  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9581
9582         Added librarian to MSVC build:
9583         * all.dsp
9584         * sdcc.dsw
9585         * support/librarian/librarian.dsp
9586
9587         'configure' not needed for librarian, removed:
9588         * support/librarian/configure
9589         * support/librarian/configure.in
9590         * support/librarian/config_in.h
9591         * support/librarian/Makefile.in
9592
9593         Hopefully these ones built the librarian and the rest of sdcc properly:
9594         * Makefile
9595         * Makefile.common.in
9596
9597         Messed up 'configure', so revert to previous version:
9598         * configure
9599         * configure.in
9600
9601 2003-07-31  Bernhard Held <bernhard AT bernhardheld.de>
9602
9603         * src/SDCCicode.c (operandOperation): 3. fix, this time for Alpha; ULONG has 64 bits
9604         there, while the mantissa of a double is "only" 53 bits wide.
9605
9606 2003-07-31  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9607
9608         Adding sdcclib to the build.  MSVC project coming soon.
9609         Files added/changed:
9610
9611         * support/librarian/clean.mk
9612         * support/librarian/configure
9613         * support/librarian/configure.in
9614         * support/librarian/config_in.h
9615         * support/librarian/Makefile.bcc
9616         * support/librarian/Makefile.in
9617         * support/librarian/sdcclib.c
9618         * Makefile.bcc
9619         * Makefile
9620         * Makefile.common.in
9621         * configure
9622         * configure.in
9623
9624 2003-07-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9625
9626         Linker now complaints if linked modules have conflicting options, for
9627         example, one compiled using --model-large and another one compiled with
9628         --model-small.  The following files were modified:
9629
9630         * as/mcs51/asdata.c
9631         * as/mcs51/aslink.h
9632         * as/mcs51/asm.h
9633         * as/mcs51/asmain.c
9634         * as/mcs51/asout.c
9635         * as/mcs51/i51pst.c
9636         * as/mcs51/lkdata.c
9637         * as/mcs51/lklibr.c
9638         * as/mcs51/lkmain.c
9639         * as/z80/asdata.c
9640         * as/z80/asm.h
9641         * as/z80/asmain.c
9642         * as/z80/asout.c
9643         * as/z80/z80pst.c
9644         * link/z80/aslink.h
9645         * link/z80/lkdata.c
9646         * link/z80/lklibr.c
9647         * link/z80/lkmain.c
9648         * src/SDCCglue.c
9649
9650 2003-07-28  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9651
9652         *link/z80/aslink.h, link/z80/lklibr.c, as/mcs51/aslink.h,
9653         as/mcs51/lklibr.c: Generate a warning when a library is not found.
9654
9655 2003-07-28  Bernhard Held <bernhard AT bernhardheld.de>
9656
9657         * src/z80/mappings.i: fix _mul[us][int,long] entries
9658
9659 2003-07-26  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9660
9661         *src/SDCCmain.c: do not search for crt0.o when using --nostdlib
9662
9663 2003-07-24  Bernhard Held <bernhard AT bernhardheld.de>
9664
9665         * src/SDCCicode.c (operandOperation): really fixed problem with bitops
9666         * support/regression/tests/bitopcse.c: added
9667         fixed warning:
9668         * src/avr/gen.c:
9669         * src/pic/gen.c:
9670         * src/pic16/gen.c:
9671         * src/z80/gen.c:
9672         * src/xa51/gen.c:
9673
9674 2003-07-24  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9675
9676         added support for new library format to z80, gbz80 linkers:
9677         *link/z80/aslink.h
9678         *link/z80/lklex.c
9679         *link/z80/lklib.c
9680         *link/z80/lklist.c
9681
9682 2003-07-24  Bernhard Held <bernhard AT bernhardheld.de>
9683
9684         * src/SDCCicode.c (operandOperation): fixed problem with bitops and 0xffffffff;
9685         after {double d = 0xffffffff; long l = d;} l will be 0x80000000 (LONG_MIN)
9686
9687 2003-07-23  Bernhard Held <bernhard AT bernhardheld.de>
9688
9689         added DUMMY_READ_VOLATILE:
9690         * src/SDCC.y:
9691         * src/avr/gen.c:
9692         * src/xa51/gen.c:
9693         * src/z80/gen.c:
9694         * src/pic/gen.c:
9695         * src/pic16/gen.c:
9696         * src/mcs51/gen.c:
9697         * src/ds390/gen.c:
9698         * src/SDCCcse.c (algebraicOpts): many improvements
9699         * src/SDCCcse.h: removed algebraicOpts()
9700         * src/SDCCicode.c (picDummyRead): added
9701
9702 2003-07-23  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9703
9704         * as/mcs51/lkmem.c: Changed message "Insufficient DRAM memory" to
9705         "Insufficient space in data memory".
9706
9707 2003-07-20  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9708
9709         * src/mcs51/gen.c: fixed bug #771358
9710         * src/z80/gen.c: fixed bug #759087
9711
9712 2003-07-20  Bernhard Held <bernhard AT bernhardheld.de>
9713
9714         * src/pic16/glue.c: minor cleanup by Vangelis
9715
9716 2003-07-19  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9717
9718         * device/include/regc515c.h: fixed #758477
9719         * device/lib/_gptrget.c: saving some cycles in generic pointer get
9720         * device/lib/_gptrput.c: saved a few bytes
9721         * my tab spacing is 8, yours too?)
9722         * device/lib/_ser.c: process RX bytes earlier than TX bytes
9723         * device/lib/serial.c: process RX bytes earlier than TX bytes
9724         * src/mcs51/gen.c(genGenPointerGet/Set): removed writing of type after postincrement
9725
9726 2003-07-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9727
9728         * src/z80/gen.c: fixed some right shift bugs (#772726 among them)
9729
9730 2003-07-17  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9731
9732     * link/z80/lklibr.c: fixed bug when there is a '.' in a library path.
9733
9734 2003-07-17  Bernhard Held <bernhard AT bernhardheld.de>
9735
9736         * device/lib/Makefile.in: bad fix, reverted to 1.43
9737
9738 2003-07-16  Bernhard Held <bernhard AT bernhardheld.de>
9739
9740         * device/lib/Makefile.in: added missing z80 object files
9741
9742 2003-07-14  Bernhard Held <bernhard AT bernhardheld.de>
9743
9744         * src/SDCCcse.c (algebraicOpts): CSE fun with &|^ and 0x00/0xff literals
9745         pic16 progress by Vangelis:
9746         * src/SDCCglobl.h:
9747         * src/SDCCmain.c:
9748         * src/pic/Makefile:
9749         * src/pic:
9750         * pic/Makefile:
9751         * pic16/device.c:
9752         * pic16/device.h:
9753         * pic16/gen.c:
9754         * pic16/gen.h:
9755         * pic16/genarith.c:
9756         * pic16/glue.c:
9757         * pic16/main.c:
9758         * pic16/pcode.c:
9759         * pic16/pcode.h:
9760         * pic16/pcodepeep.c:
9761         * pic16/peeph.def:
9762
9763 2003-07-13  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9764
9765     * src/SDCCmain.c, src/SDCCglobl.h: added option --no-std-crt0
9766
9767 2003-07-12  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9768
9769     * sdcc.dsw, all.dsp, link/z80/linkgbz80.dsp, as/z80/as-gbz80.dsp:
9770     added gbz80 build to MSVC project.
9771     * src/SDCCmain.c, src/SDCCglue.c, src/z80/main.c, src/z80/z80.dsp,
9772     link/z80/aslink.h, linkz80.dsp: cleaned up z80 and gbz80 asm files
9773     from 8051 stuff and setup so it links using a .lnk file.
9774
9775 2003-07-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9776
9777     * support/librarian/sdcclib.c: sdcc librarian.
9778     * as/mcs51/aslink.h, as/mcs51/lklib.c: Support for libraries created
9779     with sdcclib.
9780
9781 2003-07-03  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9782
9783     * as/mcs51/lkmain.c: properly handle extensions in function afile.
9784
9785 2003-07-02  Borut Razem <borut.razem AT siol.net>
9786
9787         * src/port.h, src/SDCCmain.c, src/pic/glue.h, src/pic/main.c,
9788         src/pic16/glue.h, sdcc/src/pic16/main.c, src/izt/i186.c,
9789         src/izt/tlcs900h.c, src/avr/main.c, src/ds390/main.c, src/mcs51/main.c,
9790         src/xa51/main.c, src/z80/main.c:
9791         virtualization of glue() function: each port has it's own glue function,
9792         which is accessed by do_glue function pointer in PORT.general structure
9793
9794 2003-07-01 Kevin Vigor <kevin AT vigor.nu>
9795
9796         * DS800C400 fun, improved ROM interface and tinibios.
9797
9798 2003-06-27 Kevin Vigor <kevin AT vigor.nu>
9799
9800         * More support for DS80C400. Now includes beginning of interface to ROM.
9801
9802 2003-06-25  Bernhard Held <bernhard AT bernhardheld.de>
9803
9804         * src/mcs51/gen.c (gencjneshort): fixed bug #760345
9805
9806 2003-06-20  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9807
9808         * as/mcs51/lkaomf51.c: Make sure the size of the last procedure is correct.
9809
9810 2003-06-19  Borut Razem <borut.razem AT siol.net>
9811
9812         * src/z80/main.c: fixed Z80 port again: missing -k library paths in linker command line
9813
9814 2003-06-19  Borut Razem <borut.razem AT siol.net>
9815
9816         * src/SDCCutil.h, src/SDCCutil.c, src/SDCCglobl.h, src/SDCCmain.c, src/z80/main.c:
9817         fixed Z80 port - crt0.o: cannot open.
9818
9819 2003-06-19  Bernhard Held <bernhard AT bernhardheld.de>
9820
9821         * support/Util/MySystem.c (merge_command): revert bad fix
9822
9823 2003-06-18  Borut Razem <borut.razem AT siol.net>
9824
9825         * src/SDCC.lex, src/SDCCmain.c: fixed some warnings, introduced with changes made 15.06.1003
9826
9827 2003-06-18  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9828
9829         * src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx:
9830         option --use-stdout sends errors to stdout instead of stderr.
9831
9832 2003-06-18  Bernhard Held <bernhard AT bernhardheld.de>
9833
9834         * support/Util/MySystem.c (merge_command): quick fix for Linux segfault with \"cmd\" arg
9835
9836 2003-06-15  Borut Razem <borut.razem AT siol.net>
9837
9838         * support/cpp2/sdcc.h: HAVE_DOS_BASED_FILE_SYSTEM defined for _WIN32
9839         * src/SDCC.lex: cloneXxx and copyAndFreeXxx functions for options and optimize stack handling
9840         * src/SDCCglobl.h, src/SDCCmain.c, src/ds390/main.c, src/mcs51/main.c, src/z80/main.c:
9841         fixed width array of pointers replaced with sets;
9842         multiple include and lib paths ared transferred to preprocessor and linker
9843         * src/SDCCset.c, src/SDCCset.h: added function setFromSetNonRev() and mergeSets()
9844         * src/SDCCsymt.c: reimplemented function inCalleeSaveList() by using sets instead
9845         fixed width array of pointers
9846         * src/SDCCutil.c, src/SDCCutil.h: added functions fputStrSet(), appendStrSet(), joinStrSet();
9847         removed functions addToList(), join(), joinn(), pathCharsEquivalent(), pathCharTransform(),
9848         fixupPath(), getPathDifference()
9849         * src/ds390/gen.c, src/mcs51/gen.c: reimplemented function  inExcludeList() by using sets instead
9850         fixed width array of pointers
9851
9852 2003-06-11  Bernhard Held <bernhard AT bernhardheld.de>
9853
9854         * src/pic16/ralloc.c: fix warnings
9855         * src/pic16/pcode.c: fix warning
9856
9857 2003-06-10  Scott Dattalo  <scott AT dattalo.com>
9858
9859          Scott D. for Vangelis Rokas (vrokas AT otenet.gr). I (scott) don't
9860         know all the details, but essentially this set of changes enable
9861         the pic16 port to generate movff instructions and generate assembler
9862         directives,
9863         * src/SDCCmain.c:
9864         * src/pic16/gen.c:
9865         * src/pic16/glue.c:
9866         * src/pic16/pcode.c:
9867         * src/pic16/device.c:
9868         * src/pic16/main.c:
9869         * src/pic16/pcode.h:
9870         * src/pic16/pcoderegs.c:
9871         * src/pic16/ralloc.c:
9872         * src/pic16/ralloc.h:
9873
9874 2003-06-08  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9875
9876         * support/Util/SDCCerr.c, src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx:
9877         added option --vc, so sdcc errors and warnings are compatible with
9878         Microsoft Visual Studio.
9879
9880 2003-06-07  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9881
9882         * device/lib/_atof.c, device/lib/Makefile.in, device/include/stdlib.h,
9883           device/lib/libfloat.lib: added atof function.
9884
9885 2003-06-04  Bernhard Held <bernhard AT bernhardheld.de>
9886
9887         * doc/sdccman.lyx: updated to Lyx 1.3
9888         * doc/cdbfileformat.lyx: updated to Lyx 1.3
9889         * doc/test_suite_spec.lyx: updated to Lyx 1.3
9890         * doc/Makefile: added fix for the \tabularnewline problem, thanks to Jesus
9891
9892 2003-06-03  Bernhard Held <bernhard AT bernhardheld.de>
9893
9894         * src/SDCCpeeph.c: separate peepRules2pCode() for pic16 by "Vangelis Rokas" <vrokas AT otenet.gr>
9895
9896 2003-06-02  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9897
9898         * doc/sdccman.lyx: cvs revision keywords, passing pdf information in latex preamble,
9899           additions to the "related tools/documentation" section
9900
9901 2003-06-02  Bernhard Held <bernhard AT bernhardheld.de>
9902
9903         * src/SDCCglue.c (tempfileandname): added check for missing TMP/TEMP/TMPDIR variable
9904
9905 2003-05-29  Bernhard Held <bernhard AT bernhardheld.de>
9906
9907         * src/pic/device.c: added 16F819, patch by "David I. Lehn" <dlehn AT vt.edu>
9908         * src/SDCCcse.c (algebraicOpts): fixed "c * 1"
9909
9910 2003-05-28  Bernhard Held <bernhard AT bernhardheld.de>
9911
9912         * doc/sdccman.lyx: fix double dash and other minor things
9913         * doc/Makefile: fix double dash
9914
9915 2003-05-28  Karl Bongers(patches from Martin Helmling)
9916         * debugger/mcs51/sdcdb.c,cmd.c,break.c and .h files. Martin adds
9917           condition and ignore commands.
9918
9919 2003-05-28  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9920
9921         * doc/sdccman.lyx: Changes all over, index improved, smaller margins. The manual
9922           is in parts still quite out of date, I did changes as far as I felt makes sense
9923           for a non-native english speaker.
9924           Please feel free to add to the manual or to correct my changes.
9925         * doc/Makefile: undid touching the date of intermediate tex files.
9926
9927 2003-05-26  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9928
9929         * doc/sdccman.lyx: Manual has an index now
9930
9931 2003-05-25  Bernhard Held <bernhard AT bernhardheld.de>
9932
9933         Finalize muluint/mulsint and mululong/mulslong merging:
9934         * device/lib/_mulint.c
9935         * device/lib/_mullong.c
9936         * device/lib/gbz80/mul.s
9937         * device/lib/gbz80/stubs.s
9938         * device/lib/z80/mul.s
9939         * device/lib/z80/stubs.s
9940         * src/SDCCsymt.c (initCSupport)
9941
9942 2003-05-25  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9943
9944         * as/mcs51/lkaomf51.c: Address space 'z' was missing.
9945         * src/avr/avr.dsp, src/ds390/ds390.dsp, src/mcs51/mcs51.dsp,
9946           src/pic/pic.dsp, src/pic16/pic16.dsp, src/xa51/xa51.dsp,
9947           src/x80/z80.dsp: peep.rul is bigger now, so /Zm1000 is used
9948           instead of /Zm500.
9949
9950 2003-05-25  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9951
9952         * src/mcs51/peeph.def: added rules 244.x, 245.x. Although they pass
9953           the regression tests I'm not brave enough to enable 245.b, 245.c
9954         * doc/sdccman.lyx: added latex preamble for hyperref package.
9955           Using pdflatex this will give you a hyperlinked pdf file with
9956           bookmarks. (prepend '%' before /usepackage if this breaks something)
9957
9958 2003-05-24  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9959
9960          * doc/sdccman.lyx: updated information about .adb files (fixed bug 742649)
9961
9962 2003-05-22  Bernhard Held <bernhard AT bernhardheld.de>
9963
9964         * src/pic16/pcode.c (pic16_get_op_from_instruction): fixed a gcc 3.x warning
9965
9966 2003-05-21    <johan AT balder>
9967
9968         * src/SDCCglue.c (printIval): fixed bug #739934
9969
9970 2003-05-19  Bernhard Held <bernhard AT bernhardheld.de>
9971
9972         Applied patch from bug 737905 (renamed yylineo to mylineno):
9973         * src/altlex.c
9974         * src/SDCCast.c
9975         * src/SDCglobl.h
9976         * src/SDCC.lex
9977         * src/SDCCsymt.c
9978         * src/SDCCval.c
9979         * src/pic16/pcode.c: Cleaned warnings
9980         * src/pic16/pcodeflow.c: Cleaned warnings
9981         * src/pic16/pcoderegs.c: Cleaned warnings
9982
9983 2003-05-19  Scott Dattalo  <scott AT dattalo.com>
9984
9985         * src/pic16/pcode.c: Cleaned warnings
9986         * src/pic16/pcodepeep.c: Cleaned warnings
9987         * src/pic16/ralloc.c: Cleaned warnings
9988
9989 2003-05-19  Bernhard Held <bernhard AT bernhardheld.de>
9990
9991         * doc/sdccman.lyx: fixed bug 739745
9992         * src/pic16/pcode.c (pic16_get_op): fixed warning on alpha
9993
9994 2003-05-18  Bernhard Held <bernhard AT bernhardheld.de>
9995
9996         * src/port.h: removed DEFAULT_PORT, it's not yet pic16 ;-)
9997         it can be defined with CFLAGS when running configure
9998         * src/SDCCmain.c: fixed compiling + linking with object files
9999
10000 2003-05-18  Vangelis Rokas (vrokas AT otenet.gr)
10001
10002         * configure.in: configure for pic16 port,
10003             added --disable-pic16-port
10004         * sdccconf_in.h: added macro OPT_DISABLE_PIC16
10005         * src/SDCCmain.c: linkOptions is changed to set *,
10006             added if/endif conditional macros to remove options help
10007             messages from optionsTable when a port is not configured, added
10008             support for the PIc16 port in the ports table, when executing
10009             the compiler with no port specified on command line, a default
10010             port is selected with the new macro DEFAULT_PORT which is
10011             defined in port.h, in setDefaultOptions() linkOptions is removed
10012             from initialization assignment, since now it is a set,
10013             parseCmdLine uses setParseWithComma for linkOptions, in
10014             linkEdit() linkOptions are accessed with new function indexSet()
10015             which returns the i'th item of a set variable. See SDCCset.c, in
10016             linkEdit() when calling buildCmdLine(), added linkOptions as
10017             last argument. Now users can pass arguments to gplink via the
10018             -Wl option, main() uses pic16glue() to glue up pic16 programs
10019         * src/SDCCpeeph.c: various changes to support pic16
10020         * src/SDCCset.c: added function  void *indexSet(set *, int)  to
10021             return the i'th item of the set
10022         * src/SDCCset.h: added function prototype for indexSet()
10023         * src/SDCCsymt.c: in checkSClass(), added support for PIC16
10024         * src/clean.mk: added pic16 in CLEANALLPORTS variable
10025         * src/port.h: added TARGET_ID_PIC16,TARGET_IS_PIC16 macro,
10026             added macro DEFAULT_PORT
10027         * src/pic/main.c: corrected arguments of gplnk in _linkCmd
10028         * src/pic16/gen.c: bug fix in genCpl(), now the correct code is
10029             generated
10030         * src/pic16/glue.c: commented out some error producing lines
10031         * src/pic16/main.c: __config directives are commented out to stop
10032             gpasm complaining and test the linkage with gplink, _linkCmd and
10033             _asmCmd changed to be more gplink and gpasm friendly
10034         * src/pic16/peeph.def: peep rule 3 is commented out, since it
10035             produced an error when parsed, peep rule 12 is added to utilize
10036             movff, but it is commented out since the pCode does not support
10037             yet a command with 2 address arguments
10038
10039 2003-05-18    <johan AT balder>
10040
10041         * src/ds390/gen.c (genArrayInit): removed obsolete and buggy ARRAYINIT
10042         * src/ds390/main.c (genArrayInit): removed obsolete and buggy ARRAYINIT
10043 2003-05-17  Karl Bongers(apply patches from Martin Helmling)
10044
10045         * debugger/mcs51/sdcdb.c,cmd.c,break.c and .h files.
10046   Added feature to script commands from file.
10047
10048 2003-05-14  Bernhard Held <bernhard AT bernhardheld.de>
10049
10050         * device/lib/_strtok.c: fixed bug #734355 by Lenny Story and Tim Woodall
10051         * src/SDCCutil.c: include ctype.h for win32
10052
10053 2003-05-13  Bernhard Held <bernhard AT bernhardheld.de>
10054
10055         * src/pic16/*: removed CR from many files, reported by Vangelis Rokas
10056
10057 2003-05-12  Karl Bongers(apply development patches from Martin Helmling)
10058
10059         * debugger/mcs51/sdcdb.c,simi.c,cmd.c,break.c and .h files.
10060   Fixed so you can set breakpoints prior to run, run does not stop
10061   on entry now.  Add tbreak.  Other enhancements and fixes for use
10062   with ddd.
10063
10064 2003-05-12  Borut Razem <borut.razem AT siol.net>
10065
10066         * src/SDCCmain.c: fixed the problem with searching the DATADIR as the last resort on *nix
10067
10068 2003-05-11  Borut Razem <borut.razem AT siol.net>
10069
10070         * src/SDCCutil.c: WIN32 version of getBinPath() calls GetModuleFileName() to determine
10071         the path of bin directory, so that PATH is the only env. variable, which has to be set
10072         in case of standard installation.
10073         * src/ds390/ds390.dsp: increased value of /Zm option to 1000
10074         * src/pic/main.c: add quotes to file name parameters for gplink and gpasm
10075         * src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx: added --print-search-dirs command line option
10076
10077 2003-05-04  Bernhard Held <bernhard AT bernhardheld.de>
10078
10079         * src/SDCCmain.c (linkEdit): fixed buffer overflow for gbz80
10080         * support/regression/Makefile: inter-port-clean is no longer nesessary, the
10081         temp files are in the port dir; clean the gen/test directory when
10082         generating new test.c
10083         * support/regression/ports/host/spec.mk: defined OBJEXT for target clean
10084         * support/regression/tests/vaargs.c: fixed gcc 3.3 warning
10085         * support/regression/tests/zeropad.c: added
10086
10087 2003-05-09    <johan AT balder>
10088
10089         * src/SDCCglue.c: fixed bug #597940
10090
10091 2003-05-05  Karl Bongers(apply patches from Martin Helmling)
10092
10093         * debugger/mcs51/sdcdb.c,simi.c,cmd.c,symtab.c and .h files.
10094   cache sfr, optimize next,step, fix off by one sourceline,
10095   support ddd list function.
10096         * sim/ucsim/cmd.src/newcmd.cc - small fix for sdcdb use.
10097
10098 2003-05-04  Bernhard Held <bernhard AT bernhardheld.de>
10099
10100         * support/regression/HTMLgen.py: added compare_s2f()
10101         * support/regression/Makefile: redo 1.27
10102         * support/regression/generate-cases.py: redo 1.5
10103
10104 2003-04-30  Bernhard Held <bernhard AT bernhardheld.de>
10105
10106         * support/regression/tests/float.c: workaround 33 bit hex constant
10107         * support/regression/tests/simplefloat.c: fix division for host
10108
10109 2003-04-29  Scott Dattalo  <scott AT dattalo.com>
10110
10111         * src/pic/pcoderegs.c Applied patch from Jim Hawkridge <jim AT jimhawkridge.uk.eu.org>
10112         that tame's the PIC's over-aggressive optimizer.
10113
10114 2003-04-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10115
10116          * src.dsw, link/z80/aslink.h, link/z80/linkz80.dsp: z80 linker
10117          support for MSVC.
10118
10119 2003-04-29  Kevin Vigor <kevin AT vigor.nu>
10120
10121         Initial support for DS80C400. "Hello world" runs on TINIm400
10122         (with polled I/O).
10123
10124 2003-04-28  Karl Bongers(apply patches for Martin Helmling)
10125
10126          * debugger/mcs51/sdcdb.c,simi.c,cmd.c,symtab.c and .h files.
10127          * Some notes on ddd usage added in debugger/README
10128          Martin Helmling adding more features and fixes for ddd GUI debugger.
10129          Code added for nexti, stepi, up, down, and other adjustments.
10130
10131 2003-04-28  Scott Dattalo  <scott AT DATTALO.COM>
10132
10133         * src/pic/pCodepeep.c non-wildcard asmops are now handled
10134         * src/pic/peeph.def Added two rules to optimize carry manipulation
10135         * src/pic/* removed debug printfs
10136
10137 2003-04-28  Bernhard Held <bernhard AT bernhardheld.de>
10138
10139         * debugger/mcs51/cmd.c: added header newalloc.h
10140
10141 2003-04-26  Bernhard Held <bernhard AT bernhardheld.de>
10142
10143         * as/Makefile: new EXEEXT
10144         * as/z80/Makefile: remove trailing slash of BUILDIR
10145         * as/z80/clean.mk: new EXEEXT
10146         * Makefile.common.in: add to CFLAGS (and others), don't replace it
10147         * support/cpp2/Makefile.in: new EXEEXT
10148         * src/pic/glue.c (pic14emitRegularMap): fixed warning
10149
10150 2003-04-24  Bernhard Held <bernhard AT bernhardheld.de>
10151
10152         Cygwin's gcc always appends .exe: 'gcc -o a a.c' creates a.exe;
10153         EXEEXT was introduced to fix all related problems with targets
10154         "clean", "install" and "uninstall"; a couple of further flaws
10155         especially with "clean" have been fixed too
10156         * as/mcs51/Makefile.in
10157         * as/mcs51/clean.mk
10158         * as/z80/Makefile
10159         * Makefile
10160         * clean.mk
10161         * debugger/mcs51/Makefile.in
10162         * debugger/mcs51/clean.mk
10163         * link/z80/Makefile
10164         * link/z80/Makefile.in
10165         * link/z80/clean.mk
10166         * link/Makefile
10167         * packihx/Makefile.in
10168         * packihx/clean.mk
10169         * sim/ucsim/Makefile
10170         * sim/ucsim/clean.mk
10171         * sim/ucsim/avr.src/Makefile.in
10172         * sim/ucsim/avr.src/clean.mk
10173         * sim/ucsim/s51.src/Makefile.in
10174         * sim/ucsim/s51.src/clean.mk
10175         * sim/ucsim/xa.src/Makefile.in
10176         * sim/ucsim/xa.src/clean.mk
10177         * sim/ucsim/z80.src/Makefile.in
10178         * sim/ucsim/z80.src/clean.mk
10179         * sim/ucsim/main_in.mk
10180         * sim/ucsim/packages_in.mk
10181         * sim/ucsim/gui.src/Makefile.in
10182         * sim/ucsim/gui.src/serio.src/Makefile.in
10183         * sim/ucsim/gui.src/serio.src/clean.mk
10184         * src/Makefile.in
10185         * src/clean.mk
10186         * support/cpp2/Makefile.in
10187         * support/cpp2/clean.mk
10188         * support/makebin/Makefile
10189         * support/makebin/clean.mk
10190         * support/scripts/sdcc_mingw32: --program-suffix no longer needed
10191         * doc/sdccman.lyx: --program-suffix no longer needed
10192
10193 2003-04-23  Karl Bongers(apply patches for Martin Helmling)
10194
10195          * debugger/mcs51/sdcdb.c,simi.c,cmd.c,..
10196          Martin Helmling added support for ddd GUI debugger.
10197          Code added to display assembly, set variables, and other commands
10198          to interface to ddd.
10199
10200 2003-04-23  Bernhard Held <bernhard AT bernhardheld.de>
10201
10202         * as/Makefile: fix target clean
10203         * as/clean.mk: fix target clean
10204         * as/z80/clean.mk: fix target clean
10205
10206 2003-04-22  Bernhard Held <bernhard AT bernhardheld.de>
10207
10208         * Makefile.common.in: added  AT EXEEXT AT
10209         * configure.in: removed all mingw32 stuff
10210         * configure: rebuilt from configure.in
10211         * doc/sdccman.lyx: updated section "installation"
10212         * support/scripts/sdcc_mingw32: adapted to configure
10213         * support/scripts/sdcc_cygwin_mingw32: added
10214
10215 2003-04-22  Scott Dattalo  <scott AT dattalo.com>
10216
10217         * src/pic Added object file support for the PIC port
10218         * src/pic Applied patch from Craig Franklin (this started the object file support)
10219         * src/regression Updated the PIC regression tests for object files
10220
10221 2003-04-20  Borut Razem <borut.razem AT siol.net>
10222
10223         * sdcc/as/mcs51/lklex.c: make getfid() more robust and fixed gcc warning:
10224           lklex.c: In function `getfid':
10225           lklex.c:203: warning: array subscript has type `char'
10226         * src/SDCCglobl.h: small change in stack handling macros, to avoid crash when compiled
10227           with MSVC with global optimization enabled (probably an cl compiler bug ;-)
10228         * support/Util/SDCCerr.c, support/Util/SDCCerr.h: added function fatal(), called from
10229           stack handling macros
10230
10231 2003-04-19  Borut Razem <borut.razem AT siol.net>
10232
10233         * "handling space characters in file path" task:
10234         * src/SDCCmacro.c: fixed bug in handlig quote at the end of line
10235         * support/Util/BuildCmd.c: define par as NULL if parameter value is invalid
10236         * support/Util/MySystem.h: make it self-sufficient
10237         * src/avr/main.c, src/ds390/main.c, src/mcs51/main.c, src/pic/main.c, src/xa51/main.c,
10238           src/z80/main.c, sdcc/as/mcs51/lklex.c:
10239           handling space characters in file path
10240         * src/SDCCmain.c: introduced setDataPaths() function, {datadir} macro
10241           (it will be used by assemblers, which have their own includes, e.g. gpasm)
10242         * support/Util/MySystem.c: handling space characters in executable's path
10243
10244 2003-04-19  Bernhard Held <bernhard AT bernhardheld.de>
10245
10246         * as/z80/Makefile: fix permanent rebuild of z80
10247         * sim/ucsim/gui.src/Makefile.in: target "install" builds the same packages as target "all"
10248         * support/regression/tests/bitfields.c: added Johan's bitfields.c
10249
10250 2003-04-18      Kevin Vigor <kevin AT vigor.nu>
10251
10252         * src/SDCCopt.c: add special case optimization to replace modulo by
10253           a power of two with a bitwise AND.
10254
10255 2003-04-18    <johan AT balder>
10256
10257         * src/mcs51/gen.c (getFreePtr): fixed bug #635354
10258
10259 2003-04-17    <johan AT balder>
10260
10261         * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #716790 and removes lot's of redundant register usage around function calls
10262         * src/mcs51/ralloc.c (packRegisters): fixed bug #720667
10263
10264 2003-04-13  Borut Razem <borut.razem AT siol.net>
10265
10266         * doc/sdccman.lyx: updated info about #pragma SAVE/RESTORE nesting
10267         * configure.in, configure: fixed problems on cygwin/WinCVS environmet with ports.* line endings;
10268           fixed mingw problem in adl_NORMALIZE_PATH
10269
10270 2003-04-12  Borut Razem <borut.razem AT siol.net>
10271
10272         * fixed "#pragma SAVE/RESTORE can not be nested":
10273         * src/SDCC.lex: reworked pragma handling functions
10274         * sdcc/src/SDCCglobl.h: reworked stack handling macros
10275         * support/Util/SDCCerr.c, support/Util/SDCCerr.h: added E_STACK_VIOLATION error
10276
10277 2003-04-12  Bernhard Held <bernhard AT bernhardheld.de>
10278
10279         * src/SDCCutil.c (pathEquivalent): defined but not used
10280         * debugger/mcs51/sdcdb.c: replace SDCC_LIB_DIR
10281         * configure.in: remove sdcc_datadir, sdcc_lib_dir and sdcc_include_dir
10282         * configure: rebuilt from configure.in
10283         * sdccconf_in.h: remove SDCC_LIB_DIR and SDCC_INCLUDE_DIR
10284         * sdcc_vc_in.h: remove SDCC_LIB_DIR and SDCC_INCLUDE_DIR
10285         * device/include/Makefile.in: replace sdcc_datadir
10286         * device/lib/Makefile.in: replace sdcc_datadir
10287         * Makefile.common.in: add LDFLAGS from configure
10288         * packihx/Makefile.in: use LDFLAGS
10289         * src/Makefile.in: use LDFLAGS
10290         * support/cpp2/Makefile.in: add LDFLAGS from configure
10291         * support/makebin/Makefile: use LDFLAGS
10292         * .version: bumped version number to 2.3.5
10293
10294 2003-04-12  Borut Razem <borut.razem AT siol.net>
10295
10296         * completed "different paths" task:
10297         * src/SDCCmacro.c: fixed bug in handling quotes
10298         * src/SDCCutil.c, src/SDCCutil.c: rewritten getPrefixFromBinPath()
10299         * src/SDCCmain.c: _discoverPaths() replaced with setBinPaths(), setIncludePath() and setLibPath()
10300
10301 2003-04-12  Bernhard Held <bernhard AT bernhardheld.de>
10302
10303         * src/pic/pcoderegs.c (Remove1pcode): fix warning on alpha
10304
10305 2003-04-11 kevin Vigor <kevin AT vigor.nu>
10306
10307         * ds390/gen.c ds390/peeph.def: fix bug 706781
10308
10309 2003-04-11  Borut Razem <borut.razem AT siol.net>
10310
10311         * support/Util/dbuf.c, support/Util/dbuf.h: update to version 1.1.1 - re-added C++ stuff to make it still more portable
10312
10313 2003-04-10  Scott Dattalo  <scott AT dattalo.com>
10314
10315         * src/pic/* Applied the pointer-to-function patch from Steve Tell.
10316         * src/pic/* Fixed several pointer bugs. (PIC port broke when the ruonly bit was
10317          set - this bit used to not be set...).
10318         * src/pic/gen.c Fixed buf 609268 ==> x = (x+1) & 0xf; generated
10319           bad code in PIC Port
10320         * src/regression/and2.c added to test bug 609268
10321         * src/regression/Makefile added and2.c to regression test
10322
10323
10324 2003-04-08    <johan AT CP255758-A>
10325
10326         * src/mcs51/gen.c (gen51Code): display reg usage in --icode-in-asm
10327         * src/mcs51/ralloc.c (serialRegAssign): update the registers in use and save some slocs
10328         * src/SDCCicode.h: added riu to show the register usage in --icode-in-asm
10329
10330 2003-04-07  Bernhard Held <bernhard AT bernhardheld.de>
10331
10332         * configure.in: fully support prefix, exec_prefix, datadir, docdir;
10333         fix bug #487815
10334         * support/cpp2/Makefile.in: fix bug #487815
10335         * configure: rebuilt from configure.in
10336         * Makefile.common.in: docdir changed, new path suffixes
10337         * sdccconf_in.h: new RETSIGTYPE, and other PATHs
10338         * sdcc_vc_in.h: reflect changes from sdccconf.h
10339         * src/SDCCglobl.h: remove *SEPARATOR_CHARS, they are now in sdccconf.h
10340         * src/SDCCutil.h: remove BINDIR hack
10341         * doc/sdccman.lyx: update new path hierarchy
10342
10343 2003-04-06    Paul Stoffregen <paul AT pjrc.com>
10344
10345         * src/SDCCpeeph.c: added okToRemoveSLOC test
10346
10347 2003-04-06    Paul Stoffregen <paul AT pjrc.com>
10348
10349         * device/lib/printf_fast.c: added leading zero format ("%06d", etc)
10350
10351 2003-04-06    Paul Stoffregen <paul AT pjrc.com>
10352
10353         * src/SDCCpeeph.c: added labelIsReturnOnly test
10354         * src/mcs51/peeph.def: Peephole 244: replace ljmp to ret with ret
10355
10356 2003-04-05    <johan AT balder>
10357
10358         * src/SDCCcse.c (cseAllBlocks): fixed bug #460088
10359         * src/SDCCloop.c (DEFSETFUNC): fixed bug #460088
10360         * src/SDCCopt.c (eBBlockFromiCode): fixed bug #460088
10361         * src/SDCCast.c: fixed a warning
10362         * src/SDCCast.h: fixed a warning
10363         * src/SDCCicode.c (operandFromAst): fixed a warning
10364
10365 2003-04-04    <johan AT balder>
10366
10367         * src/SDCCloop.c (DEFSETFUNC): undid the fix for bug #519584
10368         * src/SDCCast.c (decorateType): fixed bug #715076
10369         * src/SDCC.y: fixed bug #702907
10370
10371 2003-04-03    <johan AT balder>
10372
10373         * device/lib/_mulint.c (_muluint): new #pragma LESS_PEDANTIC
10374         * src/SDCCopt.c (eBBlockFromiCode): new #pragma LESS_PEDANTIC
10375         * src/SDCCglobl.h (PRAGMA_LESSPEDANTIC): new #pragma LESS_PEDANTIC
10376         * src/SDCC.lex (doPragma): new #pragma LESS_PEDANTIC
10377         * src/SDCCmain.c (parseCmdLine): new #pragma LESS_PEDANTIC
10378
10379 2003-04-03  Bernhard Held <bernhard AT bernhardheld.de>
10380
10381         * _decdptr.c: fix return values
10382         * _gptrget.c: fix return values
10383         * _gptrgetc.c: fix return values
10384         * _gptrput.c: fix return values
10385         * _mulint.c: fix return values
10386         * as/z80/Makefile: fix 'make -j' problem
10387
10388 2003-04-02  Bernhard Held <bernhard AT bernhardheld.de>
10389
10390         * Makefile.common.in: unused PORT, SCC and SAS removed, fixed docdir
10391         * configure.in: big cleanup, updated to autoconf 2.5x
10392         * configure: rebuilt from configure.in
10393         * sdccconf_in.h: new RETSIGTYPE, and other PATHs
10394         * sdcc_vc_in.h: reflect changes from sdccconf.h
10395         * doc/Makefile: fixed a flaw in "make install"
10396
10397 2003-04-02    <johan AT balder>
10398
10399         * src/ds390/gen.c (genCmp): no comments
10400         * src/mcs51/gen.c (genCmp): no comments
10401         * src/SDCCopt.c (eBBlockFromiCode): detect missing return values
10402         * src/SDCCast.c (ast_print): fixed the function type in --dumptree
10403
10404 2003-04-01  Bernhard Held <bernhard AT bernhardheld.de>
10405
10406         * support/regression/generate-cases.py: place generated file in given sub directory
10407         * support/regression/ports/host/spec.mk: prevent removal of testfwk.o
10408         * support/regression/Makefile: improvements for 'make -j';
10409         side effect: it's simpler and faster now
10410
10411 2003-03-31  Borut Razem <borut.razem AT siol.net>
10412
10413         * src/z80/main.c: link-{port} and as-{port} defined without path
10414         * src/src.dsp: support/Util/MySystem.h and src/SDCCutil.h added to project
10415
10416 2003-03-31  Bernhard Held <bernhard AT bernhardheld.de>
10417
10418         * Makefile, src/Makefile.in: add dependencies, so that 'make -j' works
10419
10420 2003-03-30  Borut Razem <borut.razem AT siol.net>
10421
10422         * support/Util/BuildCmd.c, support/Util/BuildCmd.h: rewrite buildCmdLine(),
10423           changed type of list parameter to set
10424         * src/ds390/main.c: changed type of parameter asmOptions to set in _tininative_do_assemble()
10425         * src/port.h: changed type of do_assemble() parameter to set
10426         * src/SDCCmain.c: type of asmOptions changed to set, introduced setParseWithComma(),
10427           sdcpp defined without path, removed variable VersionString, introduced set binPathSet,
10428           definition of "cppoutfilename" macro with NULL value in preProcess()
10429         * src/SDCCglobl.h: included "SDCCset.h", added declaration of setParseWithComma()
10430         * src/SDCCglue.c: removed variable VersionString, inroduced spacesToUnderscores()
10431         * support/Util/MySystem.c, support/Util/MySystem.h: rewrite, char *ExePathList[]
10432           replaced with set *binPathSet
10433         * shash_add() deallocates the item, if allready exsists, before adding the new one
10434         * src/SDCCmacro.c: handling macros with empty or NULL values in _evalMacros()
10435
10436 2003-03-30  Scott Dattalo  <scott AT dattalo.com>
10437
10438         * src/pic/gen.c: Commit patch from Steve Tell <tell AT telltronics.org> that fixes
10439           a nested for loop bug in the PIC port
10440         * src/regression/nestfor.c: new regression test file Steve wrote to test nested
10441           for loops
10442
10443 2003-03-29  Bernhard Held <bernhard AT bernhardheld.de>
10444
10445         * support/Util/dbuf.h: remove C++ stuff to make it portable
10446
10447 2003-03-28  Borut Razem <borut.razem AT siol.net>
10448
10449         * src/SDCC.lex: Fix for bug #711240: dynamic buffer handling of C
10450           literal strings in stringLiteral()
10451         * support/Util/dbuf.c, support/Util/dbuf.h: added: dynamic buffer handling
10452         * src/Makefile.bcc, src/Makefile.in, src/src.dsp: added support/Util/dbuf.c
10453           to the project
10454
10455 2003-03-27  Paul Stoffregen <paul AT pjrc.com>
10456
10457         * src/SDCCpeeph.c (pcDistance): accurate byte distance for mcs51
10458
10459 2003-03-26    <johan AT balder>
10460
10461         * src/mcs51/gen.c (saveRegisters): catched symbol abuse
10462         * src/ds390/gen.c (saveRegisters): catched symbol abuse
10463         * src/SDCCast.c (decorateType): fixed " -v < 3"
10464
10465 2003-03-23  Bernhard Held <bernhard AT bernhardheld.de>
10466
10467         * doc/cdbfile.html: removed, replaced by cdbfileformat.lyx
10468         Added Lenny Story's debug infrastructure changes:
10469         * src/Makefile.in:  added new files cdbFile.c and SDCCdebug.c
10470         * src/Makefile.bcc: added new files cdbFile.c and SDCCdebug.c
10471         * src/cdbFile.c: added
10472         * src/SDCCdebug.c: added
10473         * src/SDCCdebug.h: added
10474         * src/SDCCast.c (createFunction)
10475         * src/SDCCglue.c (emitRegularMap, emitStaticSeg, emitOverlay, glue)
10476         * src/SDCCmain.c (parseCmdLine, main)
10477         * src/SDCCmem.c (redoStackOffsets)
10478         * src/SDCCsymt.c (cdbStructBlock, cdbTypeInfo, cdbSymbol, cdbStruct, cdbStructBlock)
10479         * src/SDCCsymt.h
10480         * src/common.h
10481         * src/avr/gen.c (genAVRCode)
10482         * src/ds390/gen.c (gen390Code)
10483         * src/mcs51/gen.c (gen51Code)
10484         * src/pic/gen.c (genpic14Code)
10485         * src/pic/glue.c (pic14emitRegularMap, pic14emitStaticSeg, pic14emitOverlay, picglue)
10486         * src/xa51/gen.c (genXA51Code)
10487         * src/SDCCast.c: fixed "void foo(void){char c; -c < 0;}"
10488
10489 2003-03-22  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10490
10491         * src/mcs51/gen.c (genCodePointerGet): quicker code for bug #700797
10492         * src/mcs51/peeph.def: added rules 177, 241.x to 243, touched 181, 182.x, 193.x
10493
10494 2003-03-22    <johan AT balder>
10495
10496         * src/SDCCicode.c (geniCodeDerefPtr): fixed bug #698231
10497
10498 2003-03-21  Bernhard Held <bernhard AT bernhardheld.de>
10499
10500         * support/scripts/sdcc_mingw32: adapted to configure from autoconf 2.54
10501         * doc/cdbfileformat.lyx: added, written by Lenny Story
10502         * doc/Makefile: added cdbfileformat.lyx
10503         * doc/clean.mk: added cdbfileformat.lyx
10504
10505 2003-03-20  Bernhard Held <bernhard AT bernhardheld.de>
10506
10507         * src/mcs51/peeph.def: fix bug #705773
10508
10509 2003-03-20    <johan AT balder>
10510
10511         An sfr/sbit can have an "at #" AND an initializer
10512         * src/SDCCsymt.c (checkSClass):
10513         * src/SDCCmem.c (allocGlobal):
10514         * src/SDCCmem.c (allocLocal):
10515         * src/SDCCast.c (createBlock):
10516
10517 2003-03-17  Bernhard Held <bernhard AT bernhardheld.de>
10518
10519         * src/ds390/peeph.def: fix bug #704878: added rule 213.b suggested by Jan Rejlek
10520
10521 2003-03-16    <johan AT balder>
10522
10523         Undid the hackup of const and volatile, the problem is much bigger
10524         * src/SDCC.y:1.65
10525         * src/SDCCast.c:1.171
10526         * src/SDCCglue.c:1.138
10527         * src/SDCCicode.c:1.146
10528         * src/SDCCsymt.c:1.150
10529         * src/SDCCval.c:1.65
10530
10531 2003-03-15  Bernhard Held <bernhard AT bernhardheld.de>
10532
10533         * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #703541
10534         * src/ds390/gen.c (genAddrOf): fixed bug #704087
10535
10536 2003-03-13    <johan AT balder>
10537
10538         Hackup const and volatile modifiers in type chains a bit:
10539         * src/SDCC.y:1.63
10540         * src/SDCCast.c:1.169
10541         * src/SDCCglue.c:1.136
10542         * src/SDCCicode.c:1.143
10543         * src/SDCCsymt.c1.146
10544         * src/SDCCsymt.h1.59
10545         * src/SDCCval.c:1.63
10546
10547 2003-03-12    <johan AT balder>
10548
10549         * src/SDCCBBlock.h: more LRH debugging junk
10550         * src/SDCCcflow.h: more LRH debugging junk
10551         * src/SDCCloop.c: more LRH debugging junk
10552         * src/SDCC.y (struct_declaration): fixed bug #697590
10553         * src/SDCCsymt.[hc] (cloneSpec): NEVER EVER use this again
10554         * src/ds390/gen.c (aopForRemat): fixed bug #700031
10555         * src/SDCCglue.c (emitStaticSeg): fixed bug #700797
10556
10557 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
10558         * src/SDCCpeeph.c: quit being lazy and made proper fix (peephole
10559         test function names must now match exactly).
10560         * src/SDCCcse.c: added special case in findCheaperOp to allow
10561         extending a short integer. Makes less awful code for bug 700121 test case.
10562
10563 2003-03-11  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10564
10565         * as/mcs51/lkmain.c: Added ASlink-Warning to messages
10566         * as/mcs51/lkaomf51.c: Fixed bug when linking asmblink example
10567
10568 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
10569
10570         * src/SDCCpeeph.c: fix so that operandsNotEqualX functions are
10571         actually called (operandsNotEqual() was called for all
10572         operandsNotEqualX tests).
10573
10574 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
10575
10576         * src/SDCCcse.c: fix findCheaperOp to prevent replacing int types
10577         with shorter literals. Fixes bug 700121.
10578
10579 2003-03-11    <johan AT balder>
10580
10581         * src/SDCCsymt.c (compareType): a (void *) can be assigned to any pointer
10582
10583 2003-03-11  Bernhard Held <bernhard AT bernhardheld.de>
10584
10585         * src/SDCCloop.c (mergeRegions): an evil beast is dead
10586         * src/SDCCmain.c (preProcess): minor cleanup: eliminate preOutName
10587
10588 2003-03-10  Borut Razem <borut.razem AT siol.net>
10589
10590         * src/SDCCmain.c: pipe preprocessor's output
10591         * support/Util/MySystem.c, support/Util/MySystem.h: added my_popen()
10592         * sdcc_vc_in.h: define pclose as _pclose for WIN32
10593         * src/SDCCglue.c, src/SDCCglue.h: added set pipeSet, added function closePipes,
10594         which closes all pipes in pipeSet set
10595         * src/SDCCset.c: free deleted item in function deleteSetItem()
10596         * src/src.dsp, src/z80/z80.dsp: files support/Util/BuildCmd.c and support/Util/MySystem.c
10597         moved from z80 to src subproject
10598         * .version: increased version number to 2.3.4
10599
10600 2003-03-10  Bernhard Held <bernhard AT bernhardheld.de>
10601
10602         * support/regression/ports/mcs51/spec.mk: increase timeout for CF's sparc to 30s
10603         * support/regression/ports/ds390/spec.mk: increase timeout for CF's sparc to 25s
10604         * support/regression/ports/xa51/spec.mk: fix typo
10605
10606 2003-03-09  Bernhard Held <bernhard AT bernhardheld.de>
10607
10608         * src/SDCCglobl.h: PATH_MAX is already defined in mingw32 headers
10609
10610 2003-03-09  Borut Razem <borut.razem AT siol.net>
10611
10612         * src/SDCCmain.c: pipe preprocessor's output
10613         * support/Util/MySystem.c, support/Util/MySystem.h: added my_popen()
10614         * sdcc_vc_in.h: define pclose as _pclose for WIN32
10615         * src/SDCCglue.c, src/SDCCglue.h: added set pipeSet, added function closePipes,
10616         which closes all pipes in pipeSet set
10617         * src/SDCCset.c: free deleted item in function deleteSetItem()
10618         * src/src.dsp, src/z80/z80.dsp: files support/Util/BuildCmd.c and support/Util/MySystem.c
10619         moved from z80 to src subproject
10620
10621 2003-03-09  Borut Razem <borut.razem AT siol.net>
10622
10623         * src/SDCCglue.c: re-implemented tempfilename() and tempfile(): using mkstemp() if available
10624         * src/SDCCsymt.h: fixed MSVC and BORLANDC compilation (included SDCCglobl.h instead srccconf.h)
10625         * sdcc_vc_in.h: explicitly undefined HAVE_MKSTEMP which is not available on BORLANDC and MSVC
10626         * src/SDCCset.h: removed inclusion of sdccconf.h or sdcc_vc.h
10627         * src/SDCCglobl.h: unification of WIN32 native definitions
10628
10629 2003-03-09  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10630
10631         * src/mcs51/gen.c: applied in-/dec patch mentioned on sdcc-devel 2003-03-01
10632
10633 2003-03-08  Bernhard Held <bernhard AT bernhardheld.de>
10634
10635         * src/configure.in:   check for endianess (even while cross-compiling)
10636         * src/configure:      check for endianess (even while cross-compiling)
10637         * src/configure_in.h: check for endianess (even while cross-compiling)
10638         * src/avr/gen.c:        remove old endianess stuff
10639         * src/mcs51/gen.c:      remove old endianess stuff
10640         * src/ds390/gen.c:      remove old endianess stuff
10641         * src/pic/gen.c:        remove old endianess stuff
10642         * src/pic/genarith.c:   remove old endianess stuff
10643         * src/pic/glue.c:       fix endianess check
10644         * src/pic16/gen.c:      remove old endianess stuff
10645         * src/pic16/genarith.c: remove old endianess stuff
10646         * src/pic16/glue.c:     fix endianess check
10647         * src/xa51/gen.c:       remove old endianess stuff
10648         * src/z80/gen.c:        fix endianess check
10649         * src/SDCCglue.c:       fix endianess check
10650         * src/ds390/peeph.def: fix bug 700036
10651
10652 2003-03-08  Bernhard Held <bernhard AT bernhardheld.de>
10653
10654         * src/SDCCsymt.h: use appropriate data-types on host for SDCC's int and long
10655         * src/configure: find appropriate data-types on host for SDCC's int and long
10656         * src/configure.in: find appropriate data-types on host for SDCC's int and long
10657         * src/sdccconf_in.h: find appropriate data-types on host for SDCC's int and long
10658         * src/xa51/gen.c: use %d, not %ld for 4 byte variables
10659
10660 2003-03-07    <johan AT balder>
10661
10662         Just a big NOOP:
10663                 some minor cleanups before the big shot
10664                 OP_DEFS and OP_USES now use Kevin's protection
10665                 new option --nolabelopt
10666
10667         * src/SDCCBBlock.c:
10668         * src/SDCCast.c,:
10669         * src/SDCCcflow.c:
10670         * src/SDCCcse.c:
10671         * src/SDCCicode.c:
10672         * src/SDCCicode.h:
10673         * src/SDCClabel.c:
10674         * src/SDCCloop.c:
10675         * src/SDCCmain.c:
10676         * src/ds390/ralloc.c:
10677         * src/mcs51/ralloc.c:
10678         * src/pic/ralloc.c:
10679         * src/xa51/ralloc.c:
10680         * src/z80/ralloc.c:
10681
10682 2003-03-06  Bernhard Held <bernhard AT bernhardheld.de>
10683
10684         * src/pic/pcode.c (get_op): fix 64 bit warnings
10685         * src/pic/pcode.c (pCode2str): fix 64 bit warnings
10686         * src/SDCChasht.c (newHashTable): fix 64 bit warnings
10687         * src/SDCCsymt.c (checkTypeSanity): fix 64 bit warnings
10688         * support/regression/tests/malloc.c: fix 64 bit warnings
10689
10690 2003-03-04  Bernhard Held <bernhard AT bernhardheld.de>
10691
10692         * src/mcs51/gen.c (genMinus): fixed bug 696436
10693
10694 2003-03-02  Borut Razem <borut.razem AT siol.net>
10695
10696         * src/SDCCmain.c: added BORLANDC, corrected MSVC in printVersionInfo()
10697
10698 2003-02-26  Bernhard Held <bernhard AT bernhardheld.de>
10699
10700         * configure.in: test for mkstemp
10701         * sdccconf_in.h: add HAVE_MKSTEMP
10702
10703 2003-02-24  Bernhard Held <bernhard AT bernhardheld.de>
10704
10705         * device/include/ctype.h: removed warning while using --stack-auto
10706         * device/include/malloc.h: removed warning while using --stack-auto
10707         * device/include/string.h: removed warning while using --stack-auto
10708
10709 2003-02-23  Borut Razem <borut.razem AT siol.net>
10710
10711         * src/asm.h: corrected assertion in function printILine(): _pipe() was not executed on MSVC,
10712         because NDEBUG is defined (see man assert)
10713         * sdcc_vc_in.h: vsnprintf is defined as _vsnprintf on MSVC
10714
10715 2003-02-23  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10716
10717         * src/mcs51/gen.c (genUminusFloat): avoided dptr in-/decrement for xdata variables
10718         * src/mcs51/peeph.def: added rule suggested by Gernot Fink, white space/comment changes
10719
10720 2003-02-18  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10721
10722         * src/SDCCpeeph.c: added peephole conditions testing for same arguments
10723         * src/mcs51/peeph.def: added rules 238a-d which remove redundant moves
10724
10725 2003-02-18    <johan AT balder>
10726
10727         * as/mcs51/asmain.c (asmbl): module can start with a digit
10728         * as/z80/asmain.c (asmbl): module can start with a digit
10729
10730 2003-02-16  Bernhard Held <bernhard AT bernhardheld.de>
10731
10732         * sim/ucsim/mkecho: inserted #!/bin/sh for Cygwin, so that it's executable
10733         * src/asm.c: fix pipe() for Mingw32
10734
10735 2003-02-15  Bernhard Held <bernhard AT bernhardheld.de>
10736
10737         * src/SDCCglue.h: make tmpfileNameSet available for preOutName
10738         * src/SDCCmain.c (preProcess): make sure, that preOutName will be deleted;
10739         make -V work again; --c1mode reads now from stdin
10740         * doc/sdccman.lyx: added --c1mode
10741         * support/Util/SDCCerr.c: new messages for c1 mode
10742         * support/Util/SDCCerr.h: new messages for c1 mode
10743         * src/SDCC.lex (checkCurrFile): test if fullSrcFileName is NULL for c1mode
10744
10745 2003-02-15    <johan AT balder>
10746
10747         * src/asm.c: new options: --no-c-code-in-asm and --i-code-in-asm
10748
10749 2003-02-14  Bernhard Held <bernhard AT bernhardheld.de>
10750
10751         * doc/sdccman.lyx: Environment variables, -o and other minor things
10752
10753 2003-02-14    <johan AT balder>
10754
10755         * src/xa51/main.c: before anyone really tries to use it :)
10756
10757         * Install doc's in share/sdcc/doc
10758         * removed some obsolete files
10759         * Do a proper make distclean and uninstall
10760         M Makefile.common.in
10761         R sdccbuild.sh
10762         M as/Makefile
10763         M device/include/Makefile.in
10764         M device/lib/Makefile.in
10765         M doc/sdccman.lyx
10766         M link/Makefile
10767         M sim/ucsim/doc/Makefile.in
10768         M src/clean.mk
10769         R src/avr/peeph.rul
10770         R src/xa51/peeph.rul
10771         M support/cpp2/Makefile.in
10772         M support/makebin/Makefile
10773
10774
10775 2003-02-13  Bernhard Held <bernhard AT bernhardheld.de>
10776
10777         * support/regression/ports/host/spec.mk: use cc as host compiler for max osx
10778
10779 2003-02-10  Borut Razem <borut.razem AT siol.net>
10780
10781         * doc/bccinst.txt, packihx/packihx.c, sdcc_vc_in.h, src/SDCCset.h,
10782         support/cpp2/config.in: Borland C++ build doesn't depend on Cygwin configure
10783         * Bcc.ini, Makefile.bcc, as/mcs51/Makefile.bcc,
10784         device/examples/ds390/tinitalk/Makefile.bcc, packihx/Makefile.bcc,
10785         support/cpp2/Makefile.bcc, src/Makefile.bcc, src/avr/Makefile.bcc,
10786         src/ds390/Makefile.bcc, src/izt/Makefile.bcc, src/mcs51/Makefile.bcc,
10787         src/pic/Makefile.bcc, src/pic16/Makefile.bcc, src/xa15/Makefile.bcc,
10788         src/z80/Makefile.bcc: Borland Makefile cleanup
10789         * as/z80/Makefile.bcc: Added Borland Makefile
10790         * support/cpp2/borland.h: Removed
10791
10792 2003-02-10  Bernhard Held <bernhard AT bernhardheld.de>
10793
10794         * doc/sdccman.lyx: new pragma NOIV by "Johannes Stezenbach" <js AT convergence.de>
10795         * src/SDCC.lex: new pragma NOIV
10796         * src/SDCCglobl.h: new pragma NOIV
10797         * src/SDCCmem.c: new pragma NOIV
10798
10799 2003-02-09  Bernhard Held <bernhard AT bernhardheld.de>
10800
10801         * src/SDCCmain.c: signal handling is switched off by SDCC_LEAVE_SIGNALS
10802
10803 2003-02-09  Bernhard Held <bernhard AT bernhardheld.de>
10804
10805         * src/SDCCmain.c: signal handling is switched off by --debug
10806         * doc/Makefile: small fix for install; use clean.mk again
10807         * doc/clean.mk: clean *.pdf and *.html too
10808
10809 2003-02-08  Bernhard Held <bernhard AT bernhardheld.de>
10810
10811         * device/lib/_mulint.c: small fix for large/ds390 --int-long-reent resp. --stack-auto
10812         * device/lib/printfl.c: fix a ds390 bug by making it portable
10813         * src/SDCCsymt.c (initCSupport): fix compile warning on Cygwin
10814         * src/SDCCopt.c (cnvToFloatCast): fix compile warning on Cygwin
10815         * src/SDCCopt.c (cnvFromFloatCast): fix compile warning on Cygwin
10816         * debugger/mcs51/cmd.c: converted multi-line string literals
10817         * sim/ucsim/globals.cc: converted multi-line string literals
10818         * src/SDCCmain.c: introduced signal handler to remove temp files
10819         * doc/Makefile: small tweaks, implement clean
10820         * doc: removed generated files
10821
10822 2003-02-05  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10823
10824         * as/mcs51/aslink.h, as/mcs51/lkihx.c, as/mcs51/lkrloc.c:  Applied
10825         patch from Jan Rejlek <jr AT apex-lib.cz> to fix Bug 677692: "Extended
10826         Address Record is not correctly generated for DS390."
10827
10828 2003-02-02  Borut Razem <borut.razem AT siol.net>
10829
10830         * Makefile.bcc: removed non existing cpp project and non compilable izt project from makefile
10831         * as/mcs51/asm.h: fixed compilation with Borland C
10832         * support/cpp2/Makefile.bcc: added rule to generate auto-host.h
10833         * support/cpp2/auto-host_vc_in.h: fixed compilation with Borland C
10834         * src/mcs51/mcs51a.dsp: corrected misspelled project name from msc51a to mcs51a
10835         * src/avr/Makefile.bcc, src/ds390/Makefile.bcc, src/izt/Makefile.bcc,
10836         src/mcs51/Makefile.bcc, src/pic16/Makefile.bcc, src/xa51/Makefile.bcc,
10837         src/z80/Makefile.bcc: delete $(LIB) only if exist
10838         * src/Makefile.bcc, src/pic/Makefile.bcc:  fixed compilation with Borland C
10839
10840 2003-02-02  Bernhard Held <bernhard AT bernhardheld.de>
10841
10842         * device/include/malloc.h: introduced NULL
10843         * device/include/string.h: introduced NULL
10844         * device/include/stdlib.h: introduced NULL
10845         * device/lib/_memcpy.c: removed NULL
10846         * device/lib/_strcat.c: removed NULL
10847         * device/lib/_strchr.c: removed NULL
10848         * device/lib/_strcmp.c: removed NULL
10849         * device/lib/_strcpy.c: removed NULL
10850         * device/lib/_strcspn.c: removed NULL
10851         * device/lib/_strlen.c: removed NULL
10852         * device/lib/_strncat.c: removed NULL
10853         * device/lib/_strncmp.c: removed NULL
10854         * device/lib/_strncpy.c: removed NULL
10855         * device/lib/_strpbrk.c: removed NULL
10856         * device/lib/_strrchr.c: removed NULL
10857         * device/lib/_strspn.c: removed NULL
10858         * device/lib/_strstr.c: removed NULL
10859         * device/lib/_strtok.c: removed NULL
10860         * device/lib/malloc.c: removed NULL, include own header
10861
10862 2003-02-02    <johan AT balder>
10863
10864         * 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
10865         * support/regression/fwk/lib/testfwk.c: div and mod isn't broken anymore
10866         * regressions ds390/spec.mk and mcs51/spec.mk (timeout): my good old balder isn't fast enough for some tests
10867         * src/z80/gen.c (genZ80Code): added c-lines in asm comments
10868         * as/z80/asm.h (NINPUT): increased for long c-comments in regression tests
10869         * src/z80/gen.c (genRightShiftLiteral): fixed the (char)(-3)>>8 (I think)
10870
10871 2003-02-01  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10872
10873         * src/SDCCmain.c: Fixed bug 678574: "ds390: ASlink-Error-Stack overlaps
10874         area 'DATA'"
10875
10876 2003-02-01    <johan AT balder>
10877
10878         * src/SDCCval.c (valBitwise): fixed Karl's "2 | (1<<8)"
10879
10880 2003-01-31    <johan AT CP255758-A>
10881
10882         * src/ds390/main.c (_ds390_genAssemblerPreamble): applied Jan Rejlek's >64K startup patch
10883
10884 2003-01-30    <johan AT balder>
10885
10886         * src/SDCCBBlock.c: automatic bug detection
10887         * src/SDCCicode.c: automatic bug detection
10888
10889 2003-01-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10890
10891         * src/SDCCglobl.h:   now --xram-size 0 works
10892         * src/SDCCmain.c:    now --xram-size 0 works
10893
10894 2003-01-29    <johan AT balder>
10895
10896         * src/almosteverything: changed OP_DEFS and OP_USES from macros to functions to catch symbol abuse (a hot topic in the bug list :)
10897
10898 2003-01-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10899
10900         * as/mcs51/aslink.h: Added options --xram-size and --code-size
10901         * as/mcs51/lkdata.c: Added options --xram-size and --code-size
10902         * as/mcs51/lkmain.c: Added options --xram-size and --code-size
10903         * as/mcs51/lkmem.c:  Added options --xram-size and --code-size
10904         * src/SDCCglobl.h:   Added options --xram-size and --code-size
10905         * src/SDCCmain.c:    Added options --xram-size and --code-size
10906
10907 2003-01-28  Bernhard Held <bernhard AT bernhardheld.de>
10908
10909         * src/ds390/gen.c: fix deps by replacing <common.h> with "common.h"
10910         * src/SDCC.lex: rename P_OVERLAY to P_OVERLAY_ for cross-gcc 3.2 MINGW32
10911
10912 2003-01-27    <johan AT balder>
10913
10914         * src/SDCC.y: fixed bug #613764
10915
10916 2003-01-26    <johan AT balder>
10917
10918         * src/SDCClrange.c:  fixed Bernhard's "char * code ptr = &c"
10919         * src/SDCCsymt.h: fixed bug #673374
10920         * src/SDCCglue.c: fixed bug #661910
10921         * src/SDCCast.c: fixed bug #458099 and 673374
10922
10923 2003-01-26  Bernhard Held <bernhard AT bernhardheld.de>
10924
10925         * as/mcs51/strcmpi.c: added, provides Aurelien Jarno's as_strcmpi(); strcmpi() is not ANSI
10926         * as/mcs51/strcmpi.h: added
10927         * as/mcs51/asm.h: remove ugly "#define strcmpi strcmp"
10928         * as/mcs51/aslink.h: remove ugly "#define strcmpi strcmp"
10929         * as/mcs51/asmain.c: strcmpi -> as_strcmpi
10930         * as/mcs51/assym.c: strcmpi -> as_strcmpi
10931         * as/mcs51/lkmem.c: strcmpi -> as_strcmpi
10932         * as/mcs51/lknoice.c: strcmpi -> as_strcmpi
10933         * as/mcs51/lksym.c: strcmpi -> as_strcmpi
10934         * as/mcs51/Makefile.aslink: new module strcmpi
10935         * as/mcs51/Makefile.asx8051: new module strcmpi
10936         * as/mcs51/Makefil.bcc: new module strcmpi
10937         * as/mcs51/Makefile.in: new module strcmpi
10938         * sim/ucsim/s51.src/uc390.cc (get_mem_size): make RAM big enough for tinibios
10939
10940 2003-01-26    <johan AT balder>
10941
10942         * src/SDCCglue.c: reverted back to 1.124
10943         * src/SDCCast.c: reverted back to 1.156
10944         * src/mcs51/gen.c (aopGet): applied Frieder's efficiency patch
10945
10946 2003-01-25    <johan AT balder>
10947
10948         * src/SDCCglue.c: A better fix for bug #661910
10949         * src/SDCCast.c: A better fix for bug #661910
10950         * src/SDCCglue.c (emitRegularMap): That was a little too efficient
10951
10952 2003-01-24  Bernhard Held <bernhard AT bernhardheld.de>
10953
10954         * src/Makefile.in: remove spawn.o
10955         * src/SDCCmain.c: remove spawn.h
10956         * src/SDCCmain.c (printVersionInfo): report MINGW32 instead of UNIX
10957         * src/spawn.c: removed
10958         * src/spawn.h: removed
10959         * support/regression/ports/ds390/spec.mk: link with -r
10960
10961 2003-01-24    <johan AT CP255758-A>
10962
10963         * src/ds390/gen.c (aopOp): fixed bug #667458
10964         * src/SDCCglue.c (emitRegularMap): fixed bug #458099 again
10965         * src/SDCCast.c (createIvalCharPtr): fixed bug #661910
10966         (createIvalCharPtr): an ival doesn't always have a storage class anymore
10967
10968 2003-01-24  Bernhard Held <bernhard AT bernhardheld.de>
10969
10970         * src/mcs51/peeph.def: better assembler identation by Frieder
10971         * src/mcs51/gen.c: better assembler identation by Frieder
10972
10973 2003-01-22  Bernhard Held <bernhard AT bernhardheld.de>
10974
10975         * as/z80/string.h: removed for gcc 3.2
10976         * support/makebin/makebin.c: #include <string.h> for gcc 3.2
10977         * src/pic/pcode.c (get_op_from_instruction): fix concatenation of string literals with __FUNCTION__ for gcc 3.2
10978
10979 2003-01-19  Bernhard Held <bernhard AT bernhardheld.de>
10980
10981         * src/SDCCmain.c (linkEdit): rename mem and map files even in case of failure
10982         * src/SDCCpeeph.c (replaceRule): fix bug #663503
10983         * support/regression/Makefile: separate temp files for ports
10984         * support/regression/generate-cases.py: separate temp files for ports
10985         * src/mcs51/peeph.def: Frieder: removed 237 (obsolete by 236g and 105); added 237 a/b
10986         * src/ds390/peeph.def: Frieder: removed 237 (obsolete by 236g and 105); added 237 a/b
10987
10988 2003-01-19  Bernhard Held <bernhard AT bernhardheld.de>
10989
10990         * moved tinitalk to device/examples/ds390
10991
10992 2003-01-14  Bernhard Held <bernhard AT bernhardheld.de>
10993
10994         * as/mcs51/lkmem.c: rflag is for DS390
10995         * src/SDCCglobl.h: removed out_name and options stackOnData, genericPtr
10996         * src/SDCCmain.c (optionsTable, setDefaultOptions): removed --stack-after-data and --generic
10997                          (linkEdit): move mem- and map-files the same way as ihx-files
10998         * src/z80/main.c (_setDefaultOptions): removed --generic
10999         * src/SDCCmain.c (_processC1Arg, parseCmdLine, main): --c1mode works again
11000         * src/SDCCglue.c (createInterruptVect, glue): --c1mode works again
11001         * src/pic/glue.c (picglue): --c1mode works again
11002         * src/pic16/glue.c (pic16glue): --c1mode works again
11003         * src/asm.c (printCLine): fix #660034
11004
11005 2003-01-13  Bernhard Held <bernhard AT bernhardheld.de>
11006
11007         * src/ds390/peeph.def: fix #123; add 14 rules by Fiorenzo D. Ramaglia <fd.ramaglia AT tin.it>, 1 by Frieder
11008         * src/mcs51/peeph.def: fix #123; add 14 rules by Fiorenzo, 1 by Frieder
11009         * src/mcs51/gen.c (genFunction): emit r0 instead of ar0 by Fiorenzo
11010         * as/mcs51/lkmem (summary): better fix for sp problem
11011         * src/SDCCglue.c (glue): __start_stack - 1, saves 1 byte!
11012         * src/ds390/main.c (_ds390_finaliseOptions, _tininative_finaliseOptions): stack_loc = 0x400008
11013         * support/regression/ports/*/spec.mk: moving testfwk-object to port dir allow parallel execution of regression tests
11014                                               remove --stack-after-data
11015
11016 2003-01-12  Bernhard Held <bernhard AT bernhardheld.de>
11017
11018         * src/SDCCmain.c (main): port->finaliseOptions() moved for z80 linking
11019         * src/SDCCutil.c (join): ugly bug: missing '\0'
11020         * as/mcs51/lkmem.c (summary): sp on address 7 is safe
11021
11022 2003-01-11  Bernhard Held <bernhard AT bernhardheld.de>
11023
11024         * src/SDCCmain.c (assemble, linkEdit): preparations for -o
11025         * src/port.h: typo
11026         * src/pic/main.c (_asmCmd): gpasm supports -o
11027         * src/z80/main.c: more general macros
11028         * device/lib/Makefile.in: remove intermediate files
11029
11030 2003-01-11  Bernhard Held <bernhard AT bernhardheld.de>
11031
11032         * .version: Bumped version number to 2.3.3
11033         * src/SDCCBBlock.c: new option -o
11034         * src/SDCCglobl.h: new option -o
11035         * src/SDCCglue.c: new option -o
11036         * src/SDCCmain.c: new option -o
11037         * src/asm.c: new option -o
11038         * src/ds390/main.c: new option -o
11039         * src/pic/glue.c: new option -o
11040         * src/pic/pcode.c: new option -o
11041         * src/pic/ralloc.c: new option -o
11042         * src/pic16/glue.c: new option -o
11043         * src/pic16/pcode.c: new option -o
11044         * src/pic16/ralloc.c: new option -o
11045         * src/z80/main.c: new option -o
11046         * device/lib/Makefile.in: use -o
11047         * support/regression/ports/ds390/spec.mk: use -o
11048         * support/regression/ports/gbz80/spec.mk: use -o
11049         * support/regression/ports/mcs51/spec.mk: use -o
11050         * support/regression/ports/mcs51-stack-auto/spec.mk: use -o
11051         * support/regression/ports/z80/spec.mk: use -o
11052         * support/regression/ports/ucz80/spec.mk: use -o
11053         * support/regression/ports/xa51/spec.mk: use -o
11054         * support/regression/fwk/lib/timeout.c: fix usage string
11055
11056 2003-01-09  Bernhard Held <bernhard AT bernhardheld.de>
11057         * src/mcs51/gen.c (genPlus): replaced "mov b,acc" by "mov b,a" Fiorenzo D. Ramaglia <fd.ramaglia AT tin.it>
11058
11059 2003-01-07    <johan AT balder>
11060
11061         * src/SDCCast.c (decorateType): fixed bug #600035
11062
11063 2003-01-07  Bernhard Held <bernhard AT bernhardheld.de>
11064         * as/mcs51/lkmem.c: added several l-modifiers to printf to remove warnings
11065         * as/mcs51/lkaomf51.c: #include <ctype.h> to remove warnings
11066         * src/pic/main.c (_hasNativeMulFor): outcommented unused variables to remove warnings
11067         * src/pic/pcode.c: outcommented unused variable to remove warnings
11068         * src/pic/ralloc.c: outcommented unused variable to remove warnings
11069
11070 2003-01-06    <karl AT turbobit.com>
11071         * sim/ucsim/cmd.src/command.cc: fixed so "break xram r 0x7654" works again in
11072    regression tests.
11073
11074 2003-01-06    <johan AT balder>
11075
11076         * src/SDCCicode.c: fixed array add
11077
11078 2002-01-05  Bernhard Held <bernhard AT bernhardheld.de>
11079         * src/SDCCmacro.c: MAX_STRING_LENGTH increased to 2048; was too small for regression tests
11080         * support/regression/ports/host/support.c: #include <stdarg.h> for gcc 3.2
11081
11082 2003-01-04    <johan AT balder>
11083
11084         * src/SDCCval.c (getNelements): fixed the initialized array of structures
11085
11086 2002-12-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11087         * as/mcs51/Makefile.bcc: fixed typo lkomf51.o -> lkaomf51.o
11088
11089 2002-12-28  Bernhard Held <bernhard AT bernhardheld.de>
11090         * src/mcs51/peeph.def: added rules 234 and 235 from Frieder Ferlemann <frieder.ferlemann AT web.de>
11091         * support/regression/tests/bug-524697.c: fit mem usage into 8032
11092
11093 2002-12-28  Bernhard Held <bernhard AT bernhardheld.de>
11094         * src/mcs51/gen.c (aopGetUsesAcc): inserted missing "return FALSE"
11095
11096 2002-12-27  Bernhard Held <bernhard AT bernhardheld.de>
11097         * as/mcs51/Makefile.in: fixed typo lkomf51.o -> lkaomf51.o
11098
11099 2002-12-26  Bernhard Held <bernhard AT bernhardheld.de>
11100         * src/mcs51/main.c: removed {bindir}{sep} from aslink
11101
11102 2002-12-10  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11103
11104     * in /sdcc/as/mcs51/ changed these files in order to create an
11105     aomf51 file: aslink.h, lkdta.c, lklex.c, lklibr.c, lklist.c,
11106     lkmain.c.  Also added: lkmem.c and lkaomf51.c.  Changed the
11107     following files to include the previous two files: aslink.dsp,
11108     Makefile.aslink, Makefile.bcc, and Makefile.in.
11109
11110     * Changed /sdcc/src/SDCCmain.c so it creates files with extension
11111     .adb instead of .cdb
11112
11113 2002-11-09  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11114
11115         * /sdcc/as/mcs51/lklist.c: Now reports memory usage using the
11116         value from option --iram-size.
11117
11118 2002-09-20  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11119
11120         * /sdcc/as/mcs51/lklist.c: added boundary check before using
11121         dram[] array.
11122
11123 2002-09-18    <wiml AT hhhh.org>
11124
11125         * SDCClrange.h: exposed setFromRange() and setToRange()
11126         * mcs51/ralloc.c: fixed over-eager packRegsForSupport() and
11127           packRegsForAccUse() (bug 542397)
11128         * mcs51/gen.c: MOVA() is now a function to avoid calling aopGet()
11129           multiple times and emitting the fetch operations more than once
11130           added aopGetUsesAcc() function to allow binary operators to
11131           fetch their operands in the correct order; made genMinus() emit
11132           compact code for X = LITERAL - Y
11133
11134 2002-09-00  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11135         * /sdcc/as/mcs51/lklist.c: Fixed incorrect number of parameters to
11136         sprintf() in line 1267.
11137
11138 2002-09-08  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11139         * /sdcc/src/SDCCglue.c: Generate areas REG_BANK_[0-3] only for 8051
11140         like ports.
11141
11142 2002-09-04  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11143         Changes to aslink (All the changes are marked with 'JCF'):
11144
11145         * /sdcc/as/mcs51/aslink.h: External definition of sflag and
11146         summary().
11147
11148         * /sdcc/as/mcs51/lkarea.c: Computes the size of area BSEG_BYTES from
11149         area BSEG.  Also moves, if possible, the DATA area down into the internal
11150         ram so more space is available.
11151
11152         * /sdcc/as/mcs51/lkdata.c: Definition of memory summary output flag
11153         sflag.
11154
11155         * /sdcc/as/mcs51/lklist.c: For the BSEG area report the size in bits,
11156         not bytes.  Function summary() which creates a memory usage summary
11157         file with extension .mem.  Reports of overlaping stack and small stack
11158         size.  If the space for the stack is less than 16 bytes aslink trows a
11159         warning.
11160
11161         * /sdcc/as/mcs51/lkmain.c: Creation of some of the default areas for
11162         the 8051.  Option 'y' for memory summary output file.
11163
11164         Changes to sdcc (All the changes are marked with 'JCF'):
11165
11166         * /sdcc/src/SDCCglobl.h: External definition of RegBankUsed[4].
11167
11168         * /sdcc/src/SDCCglue.c:  If a register bank is used, creates an
11169         overlaying area for it (uses RegBankUsed[4]).
11170
11171         * /sdcc/src/SDCCmain.c: Definition RegBankUsed[4]; marks register
11172         bank zero as used by default.  By default aslink locates the stack
11173         (equivalent to --stack-after-data).  Pass option 'y' to aslink for
11174         the creation of the .mem file.  Delegates the allocation of data area
11175         to aslink (it is not longer 0x30 by default).  If --stack-loc passes
11176         the begining of the stack area to aslink.
11177
11178         * /sdcc/src/SDCCmem.c:  If a register bank is used, marks it so
11179         glue() in SDCCglue.c creates an area for it.
11180
11181 2002-09-03  Borut Razem <borut.razem AT siol.net>
11182         * sdcc/src/SDCCglue.c, sdcc/src/SDCCglue.h, sdcc/src/SDCCmain.c,
11183         sdcc/src/pic/glue.c:
11184         introduced atexit() handler for teporay files removal in case of
11185         errors, assertions, ...
11186
11187 2002-08-29  Borut Razem <borut.razem AT siol.net>
11188         * sdcc/support/cpp2/auto-host_vc_in.h:
11189         re-definition of O_BINARY and other O_XXX as _O_BINARY and _O_XXX, so the problem
11190         with the returned value from read() in sdcc/support/cpp2/cppfiles.c is solved for MSC.
11191         Maybe there is a similar problem with BORLANDC? It should be checked!
11192
11193         * sdcc/src/ds390/ralloc.c, sdcc/src/mcs51/ralloc.c, sdcc/src/z80/ralloc.c:
11194         corrected improper use of assert: the assignment to clr variable was done inside the assert.
11195         In case that NDEBUG was defined, the assert macro was substituted with no-op, so the assignment
11196         was not executed, and the compiler (cl) launched a warning:
11197         ralloc.c(1442) : warning C4700: local variable 'clr' used without having been initialized
11198
11199 2002-08-28  Bernhard Held <bernhard AT bernhardheld.de>
11200         * src/SDCCglue.c (printIvalArray): iterative calculation of array length
11201
11202 2002-08-28  Jesus Calvino-Fraga and Borut Razem <borut.razem AT siol.net>
11203         * sdcc/sdcc.dsw: added sdcpp, sdcppa, yacc, conf projects
11204
11205         * sdcc/src/src.dsp, sdcc/src/avr/avr.dsp, sdcc/src/ds390/ds390.dsp,
11206           sdcc/src/mcs51/mcs51.dsp, sdcc/src/pic/pic.dsp, sdcc/src/z80/z80.dsp,
11207           sdcc/src/xa51/xa51.dsp, sdcc/src/avr/avra.dsp,
11208           sdcc/src/ds390/ds390a.dsp, sdcc/src/mcs51/mcs51a.dsp,
11209           sdcc/src/pic/pica.dsp, sdcc/src/z80/z80a.dsp,
11210           sdcc/src/xa51/xa51a.dsp, sdcc/as/as_z80.dsp,
11211           sdcc/as/aslink.dsp, sdcc/as/asx8051.dsp, sdcc/packihx/packihx.dsp:
11212         - added Release configuration in VS projects
11213         - review of compiler an linker options
11214         - VC .exe files are generated in bin_vc directory, not to interfere
11215           with binaries generated from other projects (cygwin, mingw, bcc ...)
11216
11217         * sdcc/src/yacc.dsp: added
11218
11219         * sdcc/config.dsp, sdcc/configure_vc.awk, sdcc/sdcc_vc_in.h:
11220         added - genarate sdcc_vc.h using sdcc_vc_in.h as template
11221         and insert the version number definitions from .version
11222
11223         * sdcc/support/cpp2/sdcpp.dsp: added - VC project for sdcpp
11224
11225         * sdcc/support/cpp2/sdcppa.dsp, sdcc/support/cpp2/auto-host_vc_in.h:
11226         added - genarate auto-host.h using auto-host_vc_in.h as template
11227
11228         * sdcc/sdcc_vc.h,
11229         removed from CVS, generated automatically
11230
11231 2002-08-25  Bernhard Held <bernhard AT bernhardheld.de>
11232         * support/scripts/inc2h.pl: use gputils or gpasm (from Nathan Hurst)
11233
11234 2002-08-11  Borut Razem <borut.razem AT siol.net>
11235         * support/Util/NewAlloc.c: removed unneeded #include "sdccconf.h" (suggested by Jesus Calvino-Fraga)
11236
11237 2002-08-10  Borut Razem <borut.razem AT siol.net>
11238         * src/SDCCmain.c (main):
11239         file preOutName was unlinked before closed. This seems to be OK on UNIX and cygwin
11240         platforms, but it doesn't work with Visual Studio: the opened file can not be removed.
11241         The consequence was that some temporary files were not removed.
11242
11243         * src/SDCCglue.c:
11244         unification of code in functions tempfilename() and tempfile():
11245         function tempnam() is defined in Visual Studio 6.0 and .NET
11246
11247         * sdcc/sdcc.dsw: removed project sdcpp, added project xa51a
11248
11249         * sdcc/src/src.dsp, sdcc/src/avr/avr.dsp, sdcc/src/ds390/ds390.dsp,
11250           sdcc/src/mcs51/mcs51.dsp, sdcc/src/pic/pic.dsp, sdcc/src/z80/z80.dsp:
11251         - removed compiler command line option /WX: Treats all warnings as errors
11252         - update a list of source files, included into the project
11253
11254         * sdcc/src/avr/avra.dsp, sdcc/src/ds390/ds390a.dsp, sdcc/src/mcs51/mcs51a.dsp,
11255           sdcc/src/pic/pica.dsp, sdcc/src/z80/z80a.dsp:
11256         changed project type to Generic Project so that can be correcly converted to VS.NET project
11257
11258         * sdcc/as/mcs51/asm.h: definition of PATH_MAX for MSC
11259
11260         * sdcc/src/SDCCast.c: solved MSC error in function decorateType()
11261
11262         * sdcc/src/SDCC.y: added missing ending ';' to rules to get rid of bison warnings
11263
11264         * dcc/src/ds390/ralloc.c, sdcc/src/mcs51/ralloc.c:
11265         added return 0 statements after assert() to make compiler happy
11266
11267         * sdcc/src/xa51/peeph.rul, sdcc/src/xa51/peeph.def, sdcc/src/z80/ralloc.c:
11268         added newline in the def file to keep MSC compiler satisfied
11269
11270         * sdcc/src/z80/gen.c:
11271         - function strcasecmp() is not defined in MSC (and probably also in BORLANDC),
11272           so it is replaced with STRCASECMP, which is defined as stricmp in case of MSC and BORLANDC
11273         - solved MSC error in function aopDump()
11274
11275         * sdcc_vc.h: define PREFIX as "\\sdcc"
11276
11277 2002-07-18  Bernhard Held <bernhard AT bernhardheld.de>
11278         * src/SDCCast.c (decorateType): fixed access to array of structures http://sourceforge.net/mailarchive/forum.php?thread_id=902690&forum_id=4107
11279
11280 2002-06-22  Scott Dattalo <scott AT dattalo.com>
11281         * src/pic/*: Numerous bug fixes. Flow analysis has been enhanced.
11282         - Rewrote the register banking algorithm.
11283         - Added pCode live-range analysis to registers (for now, only non-used and
11284         singly-used registers optimized away)
11285
11286         * src/pic/pcoderegs.[ch]: Added new files for pCode live-range analysis
11287
11288         * 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.
11289
11290 2002-05-10  Scott Dattalo <scott AT dattalo.com>
11291         * src/pic/*: Added support for multiplication. Fixed many,many bugs.
11292
11293 2002-04-22  Michael Hope  <michaelh AT vroom>
11294
11295         * device/lib/z80/printf.c: Changed emitter to volatile to work around a pcall bug.
11296
11297         * configure.in (DD_COPT): Added include support required for gbdk.
11298
11299         * .version: Bumped version number just to increase it.
11300
11301         * src/SDCCmain.c: Added -nostdinc to the default options.
11302
11303 2002-04-15  Michael Hope  <michaelh AT vroom>
11304
11305         * device/lib/z80/printf.c (sprintf): Added.
11306
11307         * src/z80/ralloc.c (packRegisters): Disabled pack HL use for GB as it's broken.
11308
11309         * src/z80/peeph.def: Added transpose redundent load rule.
11310
11311         * src/z80/main.c: Added force callee saves for jaune.
11312
11313         * src/port.h: Removed the i186 and tlcs-900h ports as they weren't being being developed.
11314
11315         * src/SDCCmain.c: Pulled the options definition out so that you can add port specific options without changing the main file.
11316
11317 2002-03-28  Johan Knol  <johan AT balder>
11318
11319         * src/SDCCval.c: fixed bug #532436
11320
11321 2002-03-14  Scott Dattalo <scott AT dattalo.com>
11322         * /src/port.h:
11323         Added "char *Processor" field to the port structure.
11324
11325         * /src/SDCCmain.c:
11326         Added -p option. Allows port dependent processor to be specified.
11327
11328         * all ports:
11329         Initialized the new field char *Processor field to NULL in all ports
11330
11331         * /src/pic/*:
11332         Compiler generated registers for interrupt context saving
11333         were not getting allocated.
11334
11335 2002-03-16  Sandeep Dutta  <sandeep AT ddi.com>
11336
11337         * /src/SDCCast.c:
11338         Fixed left shift. Will promote the left side of a left shift
11339         if a) left shifting more than size of operand or b) when assigned
11340         to something size > size of left side
11341
11342 2002-03-14  Scott Dattalo <scott AT dattalo.com>
11343         * src/pic/*
11344         tons of changes. Register allocation has been
11345         rewritten. Added customization for the various PICs. Flow
11346         analysis is restructured. ...
11347
11348         * src/pic/device.h:
11349         Added
11350
11351         * src/pic/device.c:
11352         Added. device.c is a PIC port hack to accomodate variations
11353         in PIC devices.
11354
11355 2002-03-13  Michael Hope  <michaelh AT vroom>
11356
11357         * src/z80/gen.c (genGenPointerGet): Fixed a bug where a pointer in HL is dereferenced into HL but HL is not spilled.  Yeah.
11358
11359 2002-03-04  johanknol  <johanknol AT manik>
11360
11361         * /src/SDCCval.c: fixed
11362
11363         const unsigned char arr[][2] = { { 0, 1 } };
11364         t18.c:1: error: Initializer element is not constant
11365
11366 2002-03-04  bela  <bela AT manik>
11367
11368         * /device/include/mcs51reg.h:
11369         ds89c420 register definition update
11370
11371 2002-03-03    <johan AT FRIJA>
11372
11373         * support/Util/SDCCerr.c: did something, but don't no why anymore
11374
11375         * support/regression/tests/bug-524691.c: made it a little less shy
11376
11377         * src/SDCCast.c (decorateType): fixed bug #524697
11378
11379         * src/SDCCast.c: made some lineno improvements
11380
11381         * src/SDCCval.c (getNelements): changed warning to error
11382
11383         * src/SDCCglue.c (printIvalArray): changed warning to error
11384
11385         * src/SDCCicode.c: fixed a warning for mingw
11386
11387         * src/SDCCast.c (decorateType): fixed the << promotion for ops
11388
11389         * src/SDCCicode.c (geniCodeDivision): divide is shift only for unsigned (bug #524685)
11390
11391 2002-03-02  Sandeep Dutta  <sandeep AT ddi.com>
11392
11393         * src/ds390/peeph.def:
11394         Added some more peephole rules
11395
11396         * src/ds390/gen.c: Various fixes & enhancements
11397
11398         * src/SDCClrange.c, src/SDCClrange.h:
11399         functions "alldefsoutofrange" and "notusedinblock" moved to SDCClrange.c
11400
11401         * src/ds390/ralloc.c:
11402         various fixes & enhancements (ds390) specific
11403
11404         * src/avr/ralloc.c, src/mcs51/ralloc.c, src/pic/ralloc.c, src/xa51/ralloc.c, src/z80/ralloc.c:
11405         Functions "allDefsOutOfRange" & "notUsedinBlock" moved to SDCClrange.c
11406         from rallocs.
11407
11408         * sdcc/src/SDCCcse.c: Better fix for bug # 514308
11409
11410 2002-03-02    <johan AT FRIJA>
11411
11412         * src/SDCCast.c (decorateType): fixed bug #524708
11413
11414         * src/SDCCval.c (floatFromVal): fixed the literal void (whatever that may be)
11415
11416         * src/SDCCicode.c (geniCodePtrPtrSubtract): fixed bug #524691
11417
11418 2002-03-01  Michael Hope  <michaelh AT vroom>
11419
11420         * src/SDCCsymt.c (initCSupport): Removed managling of support function names.
11421
11422         * src/z80/ralloc.c (packRegsForIYUse): Fixed fp bug where four byte operands were packed into IY.
11423
11424 2002-03-01    <johan AT FRIJA>
11425
11426         * src/SDCCglue.c (printIvalPtr): fixed bug #524211
11427
11428         * src/SDCCast.c (decorateType): fixed bug #524209
11429
11430         * src/SDCCval.c (valNot): fixed bug #524195
11431
11432 2002-02-26    <johan AT balder>
11433
11434         * src/xa51/gen.c: fixed a warning
11435
11436         * src/SDCCglue.c (printIvalFuncPtr): fixed bug #522534
11437
11438         * src/SDCCast.c (decorateType): fixed bug #522534
11439
11440 2002-02-23    <johan AT balder>
11441
11442         * src/SDCCdflow.c (computeDataFlow): fixed bug #460088
11443
11444 2002-02-22    <johan AT balder>
11445
11446         * src/SDCCast.c: fixed bug #514865
11447
11448         * src/SDCCy.c ("SDCC.y"): fixed bug #516625
11449
11450 2002-02-21  Sandeep Dutta  <sandeep AT ddi.com>
11451
11452         * sdcc/src/SDCCloop.c:
11453         Previous fix was not good. basic blocks that have "break" or "return" are
11454         not really partof a loop , but live ranges used in these blocks should
11455         be live thru the entire loop, so set partOfLoop but don't add them to
11456         loop region
11457
11458 2002-02-21    <johan AT FRIJA>
11459
11460         * src/SDCCcse.c: fixed bug #514308
11461
11462 2002-02-20  Sandeep Dutta  <sandeep AT ddi.com>
11463
11464         * src/SDCCloop.c:
11465         Fixed BUG #519583. If a conditional block ended in a return/break
11466         statement inside a loop, it was not being considered part of the loop.
11467
11468         * src/SDCCcflow.c: Removed fix (Fixed in SDCCloop.c)
11469
11470 2002-02-10  Karl Bongers <karl AT turbobit.com>
11471
11472         * debugger/*:
11473         Fixed up SDCDB debugger somewhat.  Updated debugger/README
11474         with lots of comments and notes.
11475
11476         * device/examples/test2.c:
11477         Fix bug, "red" variable not being initialized(compiler complained).
11478
11479         * device/examples/Makefile, examples/test3.c:
11480         Add Makefile in device/examples folder, compiles test3.c
11481         for use as a multiple module SDCDB test case.
11482
11483         * sim/ucsim/cmd.src/cmdset.cc:
11484         Took out debug printfs in ucsim "next" command.
11485
11486         * sim/ucsim/xa.src:
11487         Karl and Johan start ucsim XA support.  Most dissassembly working,
11488         about 75% emulation done(plenty of work remaining).
11489
11490         * sim/ucsim/z80.src:
11491         Add Z80 support to ucsim, add test-ucz80 regression test,
11492         notice ucsim/z80 emulation fails on examples/test3.c/itoa code.
11493         Notice z80 compiler fails on examples/test3.c/crc code.
11494
11495 2002-01-30  Sandeep Dutta  <sandeep AT ddi.com>
11496
11497         * src/mcs51/gen.c, src/mcs51/main.c, src/mcs51/ralloc.c:
11498         Added support for --parms-in-bank1
11499
11500         * src/ds390/peeph.def:
11501         added a few more peephole optimzations
11502
11503         * src/ds390/main.c:
11504         1) added __builtin_inp & __builtin_outp used to read in data of given length
11505            from a memory mapped port
11506         2) added __builtin_memcmp
11507         3) added __builtin_swapw swap bytes of a short
11508
11509         * src/ds390/gen.c, src/ds390/gen.h, src/ds390/ralloc.c:
11510         1) handle multiple send & receives from register bank1
11511         2) ralloc can now allocate DPTR1 to some liveRanges
11512
11513         * src/SDCCsymt.c, src/SDCCsymt.h:
11514         changes to handle multiple sends & receives
11515
11516         * src/SDCCptropt.h:
11517         added some pointer arithmetic optimization
11518
11519         * src/SDCCptropt.c:
11520         added some pointer arithmetic optimizations but not stable yet so not
11521         called from anywhere (will get this working shortly)
11522
11523         * src/SDCCopt.c: fixed for multiple sends & receives
11524
11525         * src/SDCCmain.c:
11526         1) added options --parms-in-bank1 (ds390/mcs51) & --protect-sp-update
11527         2) preprocessing done AFTER port->finalizeoptions . This allows ports to
11528            set preprocessor defines (depending on options)
11529
11530         * src/SDCCicode.c, src/SDCCicode.h:
11531         changes made to handle multiple sends & receives
11532
11533         * src/SDCCglobl.h:
11534         Added options --protect-sp-update (ds390) and --parms-in-bank1 (ds390/mcs51)
11535
11536         * src/SDCCcse.c, src/SDCCcse.h:
11537         added function findbackward def (to be used in upcoming optimization)
11538
11539         * src/SDCCcflow.c, src/SDCCcflow.h:
11540         added function returnAtEnd - to determine if a basic block terminates with
11541         a RETURN iCode
11542
11543         * src/SDCCast.c, src/SDCCast.h:
11544         added option parms-in-bank1
11545
11546         * device/lib/_divsint.c, device/lib/_divslong.c, device/lib/_divuint.c
11547         * device/lib/_divulong.c, device/lib/_modsint.c, device/lib/_modslong.c
11548         * device/lib/_modulong.c, device/lib/_mulint.c, device/lib/_mullong.c:
11549         adjusted for --parms-in-bank1 option
11550
11551         * device/include/string.h:
11552         donot redefine "reentrant" keyword
11553
11554         * device/include/ds80c390.h: Added some more SFRs
11555
11556 2002-01-28  Bernhard Held  <bernhard AT bernhardheld.de>
11557
11558         * sim/ucsim: Merged branch ucsim-034-pre3 to main trunk; new version 0.4
11559
11560 2002-01-26  Bernhard Held  <bernhard AT bernhardheld.de>
11561
11562         * src/SDCCast.c (funcOfType): fix usage of double --float-reent
11563
11564 2002-01-22  Bernhard Held  <bernhard AT bernhardheld.de>
11565
11566         * support/regression/fwk/lib/testfwk.c (main): Removed workaround for bug #505387
11567
11568 2002-01-18  Paul Stoffregen  <paul AT pjrc.com>
11569
11570         * Added --xram-movc option
11571
11572 2002-01-13  Bernhard Held  <bernhard AT bernhardheld.de>
11573
11574         * support/regression/Makefile: don't include test-mcs51-stack-auto in target all
11575
11576 2002-01-11  Johan Knol
11577
11578         * Added math lib of Jesus Calvino-Fraga
11579
11580 2002-01-08  Bernhard Held  <bernhard AT bernhardheld.de>
11581
11582         * src/SDCCmain.c (processFile): fix processing of ../../src.c
11583         * support/regression/Makefile: new target test-mcs51-stack-auto
11584         * support/regression/ports/mcs51-stack-auto/spec.mk: added
11585
11586 2002-01-04  Bernhard Held  <bernhard AT bernhardheld.de>
11587
11588         * src/SDCCglue.h: printIvalCharPtr(), not printIvalChar()
11589
11590 2002-01-04  Bernhard Held  <bernhard AT bernhardheld.de>
11591
11592         * support/regression/ports/mcs51/support.c: correct setup of timer / UART
11593
11594 2002-01-03  Bernhard Held  <bernhard AT bernhardheld.de>
11595
11596         * src/SDCCsymt.c (processFuncArgs): fix #498307 by Johan
11597
11598         * src/SDCCglue.h: add definition for printIvalChar()
11599
11600 2002-01-02  Bernhard Held  <bernhard AT bernhardheld.de>
11601
11602         * src/SDCCast.c: fix #498138 by Johan
11603
11604         * src/SDCCglue.c: fix #498138 by Johan
11605
11606 2002-01-02  Bernhard Held  <bernhard AT bernhardheld.de>
11607
11608         * support/regression/Makefile: fix clean
11609
11610         * support/regression/ports/ds390/support.c: fix transmission of last character
11611
11612 2001-12-29  Sandeep Dutta  <sandeep AT ddi.com>
11613
11614         * /sdcc/src/ds390/gen.c:
11615         a) improved computing address of stack variable
11616         b) took out some #if 0 code
11617         c) improved parmBytes adjustment
11618         d) improved genPlusIncr & genMinusIncr
11619         e) genCmp could generate bad code (when left assigned to DPTR)
11620         f) Fixed bug in hasInc
11621
11622         * /sdcc/src/ds390/ralloc.c:
11623         a) packRegsForSupport could mess up live information (Fixed)
11624         b) packRegsDPTRuse could be incorrect for left & right shift
11625
11626         * /sdcc/src/mcs51/ralloc.c:
11627         packRegsForSupport could mess up the live information (Fixed)
11628
11629         * /sdcc/src/mcs51/gen.c: Fixed a bug in hasInc
11630
11631         * /sdcc/src/SDCCast.c:
11632         can reverse a loop even if function call is present as long
11633         as the loop control variable is local & is not passed as parameter
11634
11635 2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>
11636
11637         * /sdcc/ChangeLog: *** empty log message ***
11638
11639         * /sdcc/src/ds390/gen.c, /sdcc/src/ds390/main.c:
11640         More builtin function additions for TININative
11641
11642         * /sdcc/src/ds390/ralloc.c:
11643         Had broken the regression testsuite
11644
11645         * /sdcc/src/SDCCast.c: Fixed a bug in dumptree
11646
11647         * /sdcc/src/SDCCsymt.c, /sdcc/src/SDCCsymt.h:
11648         Added funcattr hasStackParms will be set for reentrant functions when there
11649         are paramteres on the stack, this helps in minimizing frame pointer generation
11650         typeFromStr can handle function pointers now
11651
11652         * /sdcc/doc/builtins.txt, /sdcc/doc/TININative.txt:
11653         *** empty log message ***
11654
11655 2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>
11656
11657         * /src/ds390/gen.c, /src/ds390/main.c:
11658         More builtin function additions for TININative
11659
11660         * /src/ds390/ralloc.c:
11661         Had broken the regression testsuite
11662
11663         * /src/SDCCast.c: Fixed a bug in dumptree
11664
11665         * /src/SDCCsymt.c, /src/SDCCsymt.h:
11666         Added funcattr hasStackParms will be set for reentrant functions when there
11667         are paramteres on the stack, this helps in minimizing frame pointer generation
11668         typeFromStr can handle function pointers now
11669
11670         * /doc/builtins.txt, /doc/TININative.txt:
11671         *** empty log message ***
11672
11673
11674 2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>
11675
11676         * /src/ds390/gen.c, /src/ds390/main.c, /src/ds390/peeph.def, /src/ds390/ralloc.c:
11677         ALPHA version for -mTININative
11678
11679         * /src/izt/i186.c, /src/izt/tlcs900h.c, /src/mcs51/main.c, /src/pic/main.c, /src/z80/main.c, /src/avr/main.c:
11680         updated to reflect changes in the port structure
11681
11682         * /src/port.h:
11683         added function do_assemble (similar to do_link) if non-null this function
11684         will be called to do assembly (-mTININative) requires a multi command
11685         assembly
11686         added function genAssemblerEnd will be called to generate assembler Epilogue
11687
11688         * /src/SDCCsymt.c:
11689         added _JavaNative to debug info printing
11690
11691         * /src/SDCCmain.c: added option --tini-libid
11692         added port->do_assemble function (-mTININative) has a multi command assemble
11693
11694         * /src/SDCCglue.c: Disabled "constExpr" check
11695         added port->genAssemblerEnd function
11696
11697         * /src/SDCCglobl.h: Added option --tini-libid value
11698
11699         * /src/SDCCast.h:
11700         tookout optimizeCompare from the header (has no external references)
11701
11702         * /src/SDCCast.c: made one more function "static"
11703
11704 2001-12-23  Michael Hope  <michaelh AT juju.net.nz>
11705
11706         * src/z80/mappings.i: Added z80asm support.
11707
11708         * src/z80/main.c: Added z80asm support on --asm=z80asm
11709
11710         * src/z80/gen.c: Fixed asm portability issues.
11711
11712         * src/asm.c (tvsprintf): Removed old code, added 'N' for function name.  For extern support.
11713
11714         * src/SDCCglue.c (printExterns): Added global/extern split.
11715
11716 2001-12-17  Bernhard Held  <bernhard AT bernhardheld.de>
11717
11718         * support/regression/Makefile: added test for mcs51 model large
11719
11720         * support/regression/ports/mcs51-large/spec.mk: added test for mcs51 model large
11721
11722         * support/regression/ports/gbz80/spec.mk: added -mgbz80
11723
11724 2001-12-05  Michael Hope  <michaelh AT juju.net.nz>
11725
11726         * src/diff.1 (Index): Many, many optmisiations.  Dhrystone up to 201.
11727
11728 1904-01-06  Michael Hope  <michaelh AT juju.net.nz>
11729
11730         * src/z80/ralloc.c (packRegsForIYUse): Fixed the case where an operand is in direct space.
11731
11732         * src/z80/gen.c (makeFreePairId): Optimised IY load by using a spare pair.
11733
11734 2001-12-02  Bernhard Held  <bernhard AT bernhardheld.de>
11735
11736         * src/mcs51/gen.c (genFunction): avoid excess "inc sp"
11737
11738         * support/regression/tests/simplefloat.c: Port to mcs51.
11739
11740 2001-11-25  Michael Hope  <michaelh AT juju.net.nz>
11741         * support/regression/tests/bug-485362.c: Added.
11742
11743         * support/regression/tests/simplefloat.c (testDivNearOne): Added.
11744
11745         * src/z80/gen.c (aopOp): Fixed case where left and result are in the same spill loc and they have different sizes.
11746
11747         * src/z80/peeph.def: Added rules for optimising two byte compares on the same thing, and to optimise two ptr assign.
11748
11749         * src/z80/gen.c (aopDump): Added a dump function.
11750
11751 2001-11-25  Bernhard Held  <bernhard AT bernhardheld.de>
11752         * sim/ucsim/s51.src/glob.cc: DS390 SFRs and bits added.
11753
11754         * sim/ucsim/s51.src/port.cc: Port 4 and 5 added.
11755
11756         * sim/ucsim/s51.src/regs51.h: DS390 SFRs added.
11757
11758         * sim/ucsim/s51.src/uc390.cc: Some details improved, CKRDY works for tinibios.
11759
11760         * sim/ucsim/s51.src/uc390cl.h: Work in progress.
11761
11762         * sim/ucsim/sim.src/uccl.h: 6 ports for DS390.
11763
11764         * support/regression/fwk/lib/testfwk.c: Run with tinibios.
11765
11766         * support/regression/ports/mcs51/spec.mk: Fine tuninig.
11767
11768         * support/regression/ports/ds390/support.c: Use tinibios.
11769
11770         * support/regression/ports/ds390/spec.mk: Fine tuning, use tinibios.
11771
11772 2001-11-23  Michael Hope  <michaelh AT juju.net.nz>support/regression/tests/bug-460010.c
11773
11774         * src/z80/ralloc.c (packRegsForHLUse3): Changed to not pack into HL if anything is in direct space.
11775         (packRegsForHLUse3): Added packing support for send, cast, and return value from a call.
11776
11777         * src/z80/peeph.def: Added rules for optimising pushes of part of a pair.
11778
11779         * src/z80/gen.c (emitCall): Changed the stack fixup to not use HL.
11780
11781 2001-11-18  Michael Hope  <michaelh AT juju.net.nz>
11782
11783         * src/z80/gen.c (genCmp): Fixed compare on unsigned.
11784
11785         * src/z80/ralloc.c (packRegsForHLUse3): Created and optimised.
11786         (packRegsForIYUse): Created and optimised.
11787
11788 2001-11-07  Michael Hope  <michaelh AT juju.net.nz>
11789
11790         * support/regression/tests/float.c (testFloatAdd): Fixed up warning.
11791 2001-11-18  Bernhard Held  <bernhard AT bernhardheld.de>
11792
11793         * sdcc/support/regression/tests/bug-460010.c: fix seg violation on host
11794
11795         * sdcc/support/regression/tests/muldiv.c: fix output on mcs51
11796
11797         * sdcc/support/regression/tests/stacks.c: fix DSEG overflow on mcs51
11798
11799 2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>
11800
11801         * sdcc/sim/device/lib/_gptrget.c: mem region 5 (idata) added
11802
11803         * sdcc/sim/device/lib/_gptrput.c: mem region 5 (idata) added
11804
11805 2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>
11806
11807         * sdcc/sim/ucsim/globals.cc: New: IXRAM.
11808
11809         * sdcc/sim/ucsim/stypes.h: New: IXRAM.
11810
11811         * sdcc/sim/ucsim/s51.src/uc390.cc: New: IXRAM.
11812
11813 2001-11-07  Michael Hope  <michaelh AT juju.net.nz>
11814
11815         * src/z80/ralloc.c (packRegsForHLUse): Banned IFXs from being packed into HL.
11816         (packRegsForHLUse): Added rule to pack address of/pointer get for itemps into HL for the Z80.
11817         (packRegsForAccUse2): Added rule to pack hbit IFXs into A.
11818
11819         * src/z80/main.c (_setDefaultOptions): Made float code re-entrant by default.
11820
11821         * src/z80/gen.c (aopGetLitWordLong): Added word support for floats.
11822         (genNotFloat): Added.
11823         (genUminusFloat): Added.
11824
11825         * device/lib/z80/Makefile: Added floating pt stubs.
11826
11827         * device/lib/Makefile.in (Z80SOURCES): Added floating pt support.
11828
11829         * src/z80/gen.c (genIpush): Fixed up a push of one byte when left is in a pair.
11830
11831         * device/lib/_fsadd.c (__fsadd): Fixed up return where the numbers are hugely different.
11832
11833 2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>
11834
11835         * sdcc/sim/ucsim/s51.src/glob.cc: Minor fix.
11836
11837         * sdcc/sim/ucsim/s51.src/regs51.h: Minor fix.
11838
11839         * sdcc/support/regression/Makefile: Add port ds390.
11840
11841         * sdcc/support/regression/ports/mcs51/spec.mk: Minor change.
11842
11843         * sdcc/support/regression/ports/z80/spec.mk: Minor change.
11844
11845         * sdcc/support/regression/ports/ds390/spec.mk: Added.
11846
11847         * sdcc/support/regression/ports/ds390/support.c: Added.
11848
11849         * sdcc/support/regression/ports/ds390/uCsim.cmd: Added.
11850
11851         * sdcc/support/regression/ports/mcs51/timeout.c: Cut.
11852
11853         * sdcc/support/regression/fwk/lib/timeout.c: Paste.
11854
11855 2001-11-04  Michael Hope  <michaelh AT juju.net.nz>
11856
11857         * device/include/malloc.h: Added z80 and gbz80 support.
11858
11859         * device/lib/gbz80/heap.s: Added.
11860
11861         * device/lib/z80/heap.s: Added.
11862
11863         * device/lib/malloc.c: Added z80 and gbz80 support.
11864
11865         * support/regression/tests/malloc.c (testMalloc): Added.
11866
11867         * src/SDCCmain.c (parseCmdLine): Added support for -Wp.
11868
11869         * support/regression/tests/bug-478094.c: Added.
11870
11871         * src/z80/gen.c (commitPair): Fixed silly gbz80/z80 commit to static bug.
11872
11873 2001-11-04  Bernhard Held  <bernhard AT bernhardheld.de>
11874
11875         * sdcc/sim/ucsim/s51.src/uc390cl.h: Improvement for ds390 to run regression tests
11876
11877         * sdcc/sim/ucsim/s51.src/uc390.h: Improvement for ds390 to run regression tests
11878
11879         * sdcc/sim/ucsim/s51.src/regs51.h: Improvement for ds390 to run regression tests
11880
11881         * sdcc/sim/ucsim/s51.src/glob.cc: Improvement for ds390 to run regression tests
11882
11883         * sdcc/support/regression/tests/bug-460010.c: Small change for ds390
11884
11885 2001-11-04  Michael Hope  <michaelh AT juju.net.nz>
11886
11887         * src/z80/peeph-gbz80.def: Removed a bad sub optimisation.
11888
11889 2001-11-03  Michael Hope  <michaelh AT juju.net.nz>
11890
11891         * support/regression/tests/bug-477927.c: Added.
11892
11893         * src/z80/peeph.def: Added minor rules.
11894
11895         * src/z80/gen.c (genPlusIncr): Added an extra plusinc rule.
11896
11897         * src/z80/peeph.def: Added jump optimisation modification.
11898
11899 2001-11-01  Michael Hope  <michaelh AT juju.net.nz>
11900
11901         * src/SDCCmain.c (linkEdit): Added runtime path detection to the mcs51 port.
11902
11903 2001-10-30  Michael Hope  <michaelh AT juju.net.nz>
11904
11905         * support/regression/tests/funptrs.c: Added.
11906
11907 2001-10-29  Michael Hope  <michaelh AT juju.net.nz>
11908
11909         * src/z80/ralloc.c (packRegsForHLUse): Fixed up bad spill due to pushing one byte via HL.
11910
11911 2001-10-28  Michael Hope  <michaelh AT juju.net.nz>
11912
11913         * src/z80/gen.c (genArrayInit): Made it work for on stack arrays.
11914
11915         * src/z80/main.c (gbz80_port =): Added rle support to the gbz80 port.
11916
11917         * src/z80/gen.c (genMinus): Fixed for where the result is one byte.
11918         (movLeft2ResultLong): Created.
11919
11920         * src/z80/ralloc.c (packRegsForHLUse): Added a couple of simple cases for the GB.
11921         (joinPushes): Added.  Joins two char pushes into a word push.
11922
11923 2001-10-27  Michael Hope  <michaelh AT juju.net.nz>
11924
11925         * support/cpp2/Makefile.in (install): Added creation of dest dir.
11926
11927         * support/makebin/Makefile (install): Added creation of dest dir.
11928
11929 2001-10-24 Karl Bongers <karl AT turbobit.com>
11930
11931         * configure.in, configure, Makefile, support/cpp: Removed cpp folder, since we have new cpp2 preprocessor code.
11932
11933 2001-10-21  Michael Hope  <michaelh AT juju.net.nz>
11934
11935         * src/z80/ralloc.c: Turned off faulty pack for one use.
11936
11937         * src/z80/peeph-gbz80.def: Removed redundent restart options.
11938
11939         * src/z80/gen.c (genMult): Added native mul for constants on the z80 and gbz80.
11940
11941 2001-10-21  Bernhard Held  <bernhard AT bernhardheld.de>
11942
11943         * support/regression/Makefile: Improved clean
11944
11945         * support/regression/ports/gbz80/spec.mk: Added clean
11946
11947         * support/regression/ports/host/spec.mk: Added clean
11948
11949         * support/regression/ports/z80/spec.mk: Added clean
11950
11951         * support/regression/ports/mcs51/spec.mk: Added clean, little improvements
11952
11953         * support/regression/ports/mcs51/timeout.c: little improvements
11954
11955 2001-10-17  Michael Hope  <michaelh AT juju.net.nz>
11956
11957         * device/lib/malloc.c (MEMHEADER): Fixed against new pedantic pointers.
11958
11959         * support/regression/fwk/include/testfwk.h: Fixed up to use function pts correctly.
11960
11961         * support/regression/generate-cases.py: Fixed up to use function pts correctly.
11962
11963 2001-10-16  Bernhard Held  <bernhard AT bernhardheld.de>
11964
11965         * support/regression/port/mcs51/spec.mk: add timeout for uCsim
11966
11967         * support/regression/port/mcs51/timeout.c: add timeout for uCsim
11968
11969 2001-10-13  Michael Hope  <michaelh AT juju.net.nz>
11970         * src/z80/gen.c (emitCall): Fixed up missing spill of HL when used to assign the result value.
11971
11972         * src/z80/ralloc.c: Turned off pack for one use as it's quite broken.
11973
11974         * src/SDCCmain.c (linkEdit): Added support for passing a legacy command line through the processor.
11975
11976         * src/mcs51/main.c (_linkCmd): Added bin path to command.
11977
11978         * src/SDCCmain.c (initValues): Added support for when it it called just to link.
11979
11980         * as/mcs51/lklibr.c (libfil;): Turned off 'library file' message.
11981
11982         * src/SDCCval.c (constVal): Fixed usage of 'L' modifier problems on ppc.
11983
11984         * support/regression/tests/longor.c: Added.
11985
11986 2001-10-11  Bernhard Held  <bernhard AT bernhardheld.de>
11987
11988         * as/mcs51/asdata.c: replaced FILENAME_MAX with PATH_MAX
11989
11990         * as/mcs51/aslink.h: define PATH_MAX
11991
11992         * as/mcs51/asm.h: define PATH_MAX
11993
11994         * as/mcs51/asmain.c: replaced FILENAME_MAX with PATH_MAX
11995
11996         * as/mcs51/asnoice.c: replaced FILENAME_MAX with PATH_MAX
11997
11998         * as/mcs51/lklex.c: replaced FILENAME_MAX with PATH_MAX
11999
12000         * as/mcs51/lkmain.c: replaced FILENAME_MAX with PATH_MAX
12001
12002         * src/SDCCglobl.h: define PATH_MAX
12003
12004         * src/SDCCmacro.c: replaced FILENAME_MAX with PATH_MAX
12005
12006         * src/SDCCmain.c: replaced FILENAME_MAX with PATH_MAX
12007
12008 2001-10-11  Michael Hope  <michaelh AT juju.net.nz>
12009
12010         * src/z80/gen.c (gencjneshort): Fixed
12011
12012         * src/z80/ralloc.c (packRegsForHLUse): Added pack into HL for cast then ipush.
12013
12014 2001-10-09  Michael Hope  <michaelh AT juju.net.nz>
12015
12016         * support/regression/tests/bug-469671.c: Added.
12017
12018         * src/z80/gen.c (shiftIntoPair): Fixed up warning.
12019
12020 2001-10-08  Michael Hope  <michaelh AT juju.net.nz>
12021
12022         * src/SDCCmain.c: Added --fommit-frame-pointer option and implemented in the z80 port.
12023
12024         * src/z80/gen.c (genPlus): Fixed to work with extended stack.  Also fixed genMinus, genCmp.  genUMinus is still left.
12025
12026 2001-10-08  Bernhar Held  <bernhard AT bernhardheld.de>
12027
12028         * src/SDCCmain.c (preProcess): added define SDCC_NOOVERLAY
12029
12030         * src/device/lib/_mulint.c  : removed hint: nooverlay bug
12031
12032         * src/device/lib/_mullong.c : removed hint: nooverlay bug
12033
12034         * src/device/lib/_divuint.c : removed hint: nooverlay bug
12035
12036         * src/device/lib/_divulong.c: removed hint: nooverlay bug
12037
12038         * src/device/lib/_moduint.c : removed hint: nooverlay bug
12039
12040         * src/device/lib/_modulong.c: removed hint: nooverlay bug
12041
12042 2001-10-07  Michael Hope  <michaelh AT juju.net.nz>
12043
12044         * 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.
12045
12046         * support/Util/NewAlloc.c (freeTrace): Changed free for the gc case to not free at all.  Fixes runtime segfault.
12047
12048         * support/regression/tests/scott-compare3.c (c_abcd): Fixed up casts.
12049
12050 2001-10-07    <johan AT FRIJA>
12051
12052         * device/lib/gets.c (gets): fixed the return value.
12053
12054 2001-10-06  Michael Hope  <michaelh AT juju.net.nz>
12055         * src/SDCCmain.c (WRITE_SEG_LOC): Fixed up to use Safe_strdup.
12056
12057         * 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.
12058
12059         * 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.
12060
12061         * src/z80/gen.c (genZ80Code): Added de-allocation via trace support.
12062
12063         * src/pic/gen.c: Removed Safe_strdup.
12064
12065         * configure.in: Added option to enable libgc support.
12066
12067         * src/SDCCbitv.c (bitVectnBitsOn): Optimised.
12068         (bitVectUnion): Optimised.
12069         (bitVectIntersect): Optimised.
12070         (bitVectBitsInCommon): Optimised.
12071         (bitVectCplAnd): Optimised.
12072
12073         * support/makebin/makebin.c (usage): Removed getopt as mingw32 doesn't have it.  Sigh.
12074
12075 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
12076
12077         * src/SDCCmain.c: distinguish between assembler debug and plain options
12078
12079         * src/avr/main.c:   remove standard assembler options
12080
12081         * src/ds390/main.c: remove standard assembler options
12082
12083         * src/mcs51/main.c: remove standard assembler options
12084
12085         * src/port.h: removed "PENDING" comment
12086
12087 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
12088
12089         * src/device/lib/_mulint.c  : new, with assember functions
12090
12091         * src/device/lib/_mullong.c : new, with assember functions
12092
12093         * src/device/lib/_divuint.c : with assember functions
12094
12095         * src/device/lib/_divsint.c : with assember functions
12096
12097         * src/device/lib/_divulong.c: with assember functions
12098
12099         * src/device/lib/_divslong.c: with assember functions
12100
12101         * src/device/lib/_moduint.c : with assember functions
12102
12103         * src/device/lib/_modsint.c : with assember functions
12104
12105         * src/device/lib/_modulong.c: with assember functions
12106
12107         * src/device/lib/_modslong.c: with assember functions
12108
12109         * src/device/lib/libint.lib:  replaced _muluint.c  and _mulsint.c  by _mulint.c
12110
12111         * src/device/lib/liblong.lib: replaced _mululong.c and _mulslong.c by _mullong.c
12112
12113         * src/device/lib/Makefile.in: replaced _muluint.c  and _mulsint.c  by _mulint.c
12114                                       replaced _mululong.c and _mulslong.c by _mullong.c
12115
12116 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
12117
12118         * src/SDCCsymt.c: sequence of specifiers in pintTypeChain() corrected
12119
12120 2001-10-01 Bernhard Held <bernhard AT bernhardheld.de>
12121
12122         * src/SDCCglue.c: test, if win32api is available for MINGW
12123
12124 2001-10-01 Bernhard Held <bernhard AT bernhardheld.de>
12125
12126         * src/SDCCsymt.c: no more _modifier in printTypeChain()
12127         * support/regression/tests/driverstruct.c: REENTRANT for mcs51
12128         * support/regression/ports/gbz80/spec.mk: removed GENERIC
12129         * support/regression/ports/host/spec.mk: removed GENERIC
12130         * support/regression/ports/mcs51/spec.mk: removed GENERIC
12131         * support/regression/ports/z80/spec.mk: removed GENERIC
12132
12133 2001-10-01  Michael Hope  <michaelh AT juju.net.nz>
12134
12135         * support/regression/fwk/lib/testfwk.c (__printf): Removed GENERIC.
12136
12137         * support/regression/tests/bug-467035.c: Created.
12138
12139 2001-10-01    <johan AT FRIJA>
12140
12141         * src/SDCC.y: fixed bug #466586 part 1
12142
12143 2001-10-01  Johan Knol <johan.knol AT iduna.nl>
12144
12145         * SDCCicode.c: z80 has no generic pointers
12146         * removed -s from strip in all Makefile(.in)'s. It is not needed, but Solaris chocks on it.
12147
12148 2001-09-30  Michael Hope  <michaelh AT juju.net.nz>
12149
12150         * sim/ucsim/cmd.src/Makefile.in ($(PRJDIR)/libcmd.a): Changed all ar references to $(AR) for Solaris.
12151
12152 2001-09-29  Michael Hope  <michaelh AT juju.net.nz>
12153
12154         * Makefile (sdcc-libs): Added makebin to the list of standard targets.
12155
12156         * support/regression/ports/z80/spec.mk: Updated to use env for sdcc bin dir for automatic regression.
12157
12158 2001-09-25  Michael Hope  <michaelh AT juju.net.nz>
12159
12160         * configure.in: Fixed up so that ucsim is only configured once.
12161
12162         * support/cpp2/configure.in: Fixed to use the program transform to append the .exe for the win32 build.
12163
12164         * src/SDCCutil.c (getPrefixFromBinPath): Fixed up to work with win32 in all of its glory.
12165         (getPathDifference): As above.
12166
12167         * src/SDCCmain.c (preProcess): Changed to use a temporary file in a proper temp directory.  Fixed case where pre-processing only.
12168
12169         * src/SDCCglue.c (tempfilename): Added function for pre-processor.
12170
12171 2001-09-23  Michael Hope  <michaelh AT juju.net.nz>
12172         * .version: Updated to 2.3.1
12173
12174         * src/z80/main.c (z80_port =): Added macro based linker and assembler command line support.
12175         Added copyright header.
12176
12177         * src/SDCCmain.c: Shifted various functions into SDCCutil.c
12178         (assemble): Added support for macro based assembler commands.
12179         (linkEdit): Added support for macro based linker commands.
12180         (preProcess): Changed the pre-processor to use macros.
12181         (_setPaths): Added functionality to autodetect the include, lib and bin dir paths.
12182         (_discoverPaths): Added support for overriding the install directory using the SDCCDIR env variable.
12183
12184         * device/lib/z80/crt0.s: Added module name for debugging.
12185
12186 2001-09-20  Michael Hope  <michaelh AT juju.net.nz>
12187
12188         * src/SDCCmain.c (printVersionInfo): Added the build date to the version info.
12189
12190         * src/SDCChasht.c (hTabDeleteByKey): Fixed delete as it would delete the last item from a bucket even if it wasn't the real one.
12191
12192         * src/SDCCglue.c: Moved gc_strdup to SDCCutil.c
12193
12194         * src/Makefile.in: Added SDCCmacro and SDCCutil
12195
12196 2001-09-19  Michael Hope  <michaelh AT juju.net.nz>
12197
12198         * src/SDCCmain.c (printVersionInfo): Added the build date to the version info.
12199
12200 2001-09-16    <johan AT FRIJA>
12201
12202         * 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.
12203
12204 2001-09-15    <johan AT FRIJA>
12205
12206         * src/mcs51/ralloc.c: (findAssignToSym): fixed bug #460662 part 1
12207         * src/ds390/ralloc.c (findAssignToSym): fixed bug #460662 part 1
12208
12209 2001-09-11    <johan AT FRIJA>
12210
12211         * src/SDCCval.c (valDiv Mod Minus Plus Shift): keep litteral expressions as small as possible (bug #460010)
12212
12213 2001-09-10  Michael Hope  <michaelh AT juju.net.nz>
12214
12215         * support/regression/tests/bug-460444.c: Added test case.
12216
12217         * src/z80/gen.c (genOr): bug 460444: if (a ^ lit) was broken for &, |, and ^.
12218         (genCast): Added justification for all of the asserts.
12219
12220 2001-09-10  Bernhard Held <bernhard AT bernhardheld.de>
12221
12222         * support/regression/support.c: _xdata replaced by xdata
12223
12224         * support/regression/spec.mk: removed _generic
12225
12226 2001-09-09  Michael Hope  <michaelh AT juju.net.nz>
12227
12228         * src/pic/ralloc.c (debugLogRegType): Removed some old types to get it to compile.
12229
12230         * src/z80/gen.c (shiftR2Left2Result): Improved the case when v = v >> n for small values of n to use less code space and time.
12231         (genrshTwo): Fixed v = v >> n where v is a negative int and n is > 8: bug 460010.
12232
12233         * src/z80/peeph.def: Added a rule to optimise shift then compare.
12234
12235         * support/regression/tests/bug-460000.c (testShiftByParam): Added test case.
12236
12237         * support/regression/tests/bug-460010.c: Added test case.
12238
12239         * support/regression/Makefile (test-host): Removed a silly 'clean' target when testing against gcc.
12240
12241 2001-09-09  Bernhard Held <bernhard AT bernhardheld.de>
12242
12243         * support/regression/Makefile: inter-port-clean adjusted for mcs51
12244
12245         * support/regression/testfwk.c: removed workaround for bug #436344
12246
12247         * support/regression/tests/bp.c: use less memory with mcs51
12248
12249         * support/regression/tests/bug-441448.c: use less memory
12250
12251         * support/regression/tests/ports/mcs51/spec.mk: cleanup, use --stack-after-data
12252
12253         * support/regression/collate-results.py: typo
12254
12255 2001-09-08  Michael Hope  <michaelh AT juju.net.nz>
12256
12257         * support/regression/tests/fetchoverlap.c: Added new test case.
12258
12259         * support/regression/tests/bp.c: Added new test case.
12260
12261         * support/regression/tests/bug-448984.c: Added new test case.
12262
12263         * support/regression/tests/pow2shifts.c: Added new test case.
12264
12265         * src/z80/gen.c: Turned off the noise it normally generates for the release.
12266         (genlshTwo): Fixed right shift for count > 8.
12267
12268         * src/z80/ralloc.c: Disabled most of the ACC packing rules as they weren't getting hit and weren't at all safe.
12269
12270 2001-09-08    <johan AT FRIJA>
12271
12272         * src/SDCCicode.c (geniCodeCall): a CPOINTER can be used as a function
12273
12274 2001-09-07    <johan AT FRIJA>
12275
12276         * src/SDCCicode.c (newiCodeCondition): fixed bug #456235 (1.77)
12277
12278         * src/SDCCglue.c (emitRegularMap): only delete a symbol when it is a symbol
12279
12280 2001-09-06    <johan AT FRIJA>
12281
12282         * src/SDCC.y: this could be a fix for bug #458744 (1.37)
12283         * bernhard noted me at this: "() equals to (void)" (1.38)
12284
12285 2001-09-05    <johan AT FRIJA>
12286
12287         * src/SDCCglue.c (emitRegularMap): a fix for bug #458099/2
12288
12289 2001-09-04    <johan AT FRIJA>
12290
12291         * src/SDCCsymt.c (checkSClass): a fix for bug #458099/1
12292
12293
12294 2001-09-04  Paul Stoffregen  <paul AT pjrc.com>
12295
12296         * pragma noinduction broke memcpy on mcs51 large model.  Moved it inside z80 optimization
12297
12298 2001-09-03  Michael Hope  <michaelh AT juju.net.nz>
12299
12300         * link/z80/aslink.h: Fixed path for PATH_MAX
12301
12302 2001-09-02  Michael Hope  <michaelh AT juju.net.nz>
12303
12304         * src/z80/gen.c (fetchLitPair): Changed so that it properly caches direct space references.
12305
12306         * support/regression/tests/addsub.c: Added cases to cover all the +, - combinations.
12307
12308         * support/regression/tests/uminus.c: Added a test for the unary minus operator.
12309
12310         * 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.
12311
12312 2001-09-01  Michael Hope  <michaelh AT juju.net.nz>
12313
12314         * src/z80/gen.c: Fixed up generator to pass the regresion tests, specifically fixing loads for longs, genCmp, and turned on the map file.
12315         (genCmp): Fixed up genCmp for the GB with longs.
12316
12317         * device/lib/gbz80/Makefile: Fixed up all the libraries to pass the regression tests.
12318
12319         * support/regression/ports/host/spec.mk: Updated to compile with the new type specifiers.
12320
12321         * device/lib/Makefile.in (Z80SOURCES): Removed old _mululong, _mulslong, and unneeded _mulint.
12322
12323         * device/lib/_mullong.c (_mulslong): Changed to actually return a value :)
12324
12325 2001-08-30  Paul Stoffregen  <paul AT pjrc.com>
12326
12327         * added peepholes 223 to 231 to mcs51 port.  These improve code when using large model.
12328
12329 2001-08-30  Michael Hope  <michaelh AT juju.net.nz>
12330
12331         * 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.
12332
12333         * src/z80/gen.c (genPlus): Changed bad long add for gb to a fall through.
12334
12335 2001-08-29  Michael Hope  <michaelh AT juju.net.nz>
12336
12337         * link/z80/aslink.h: Fixed long file name support.  Is now based off PATH_MAX instead of a constant.
12338
12339         * src/z80/gen.c: Fixed add and sub for the case where left or right are in static space.
12340
12341 2001-08-30 Bernhard Held   <bernhard AT bernhardheld.de>
12342
12343   * sim/ucsim/configure:    little improvement of Cygwin-detection
12344   * sim/ucsim/configure.in: little improvement of Cygwin-detection
12345   * sim/ucsim/cmd.src/newcmdcl.h: include <sys/types.h> to define fd_set automated build
12346   * support/regression/tests/bug-221100.c: small changes for mcs51
12347   * support/regression/tests/bug-221168.c: small changes for mcs51
12348   * support/regression/tests/bug-227710.c: small changes for mcs51
12349   * support/regression/tests/staticinit.c: small changes for mcs51
12350   * as/mcs51/aslink.h: accept everything as symbol name in rel-files, bug fix ID 452601
12351   * as/mcs51/lklex.c:  accept everything as symbol name in rel-files, bug fix ID 452601
12352   * as/mcs51/lksym.c:  accept everything as symbol name in rel-files, bug fix ID 452601
12353
12354 $Revision$