* support/regression/fwk/include/testfwk.h,
[fw/sdcc] / ChangeLog
1 2006-08-12 Borut Razem <borut.razem AT siol.net>
2
3         * support/regression/fwk/include/testfwk.h,
4           support/regression/fwk/lib/testfwk.c,
5           support/regression/generate-cases.py,
6           support/regression/Makefile.in:
7           regression test framework does not depend on function pointers and
8           variable arguments
9
10 2006-08-09 Maarten Brock <sourceforge.brock AT dse.nl>
11
12         * device/include/stddef.h: c temporary hack to fix bug 1518273
13
14 2006-08-09 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
15
16         * device/include/mcs51/cc2510fx.h: added
17         * src/z80/z80.dsp, src/gbz80/gbz80.dsp: added support/Util/strcmpi.ch
18           to projects.
19
20 2006-08-09 Maarten Brock <sourceforge.brock AT dse.nl>
21
22         * as/z80/assym.c (mlookup): ignore case when looking up mnemonics
23         * as/z80/Makefile.in: added strcmpi.c
24         * as/z80/z80adr.c: added upper case registers and lower case conditionals
25         * support/Util/strcmpi.ch: added with intention to remove from mcs51/hc08
26
27 2006-08-08 Maarten Brock <sourceforge.brock AT dse.nl>
28
29         * device/lib/gbz80/asm_strings.s,
30         * device/lib/gbz80/crt0_rle.s,
31         * device/lib/gbz80/div.s,
32         * device/lib/gbz80/mul.s,
33         * device/lib/gbz80/shift.s,
34         * device/lib/z80/asm_strings.s,
35         * device/lib/z80/crt0_rle.s,
36         * device/lib/z80/div.s,
37         * device/lib/z80/mul.s,
38         * device/lib/z80/shift.s: changed to all lower case menmonics except the
39           flags which are all upper case
40
41 2006-08-07 Maarten Brock <sourceforge.brock AT dse.nl>
42
43         * as/z80/asm.h: made CASE_SENSITIVE 1
44         * link/z80/aslink.h: made CASE_SENSITIVE 1
45         * src/z80/gen.c (throughout): made all conditionals upper case
46         * support/regression/tests/bug1503067.c: new
47
48 2006-08-07 Maarten Brock <sourceforge.brock AT dse.nl>
49
50         * src/z80/gen.c (aopPut): fixed bug !*ixy should be !*iyx,
51           (shiftIntoPair): added case 2 for PAIR_IY,
52           (setupToPreserveCarry): replaced parameters with iCode and check if
53            PAIR_DE is in use to fix bug 1399290,
54           (genPlus, genMinus): updated call to setupToPreserveCarry
55         * support/regression/tests/bug1399290.c: new
56
57 2006-08-06 Maarten Brock <sourceforge.brock AT dse.nl>
58
59         * device/lib/Makefile.in (Z80SOURCES): enabled float support
60         * sim/ucsim/z80.src/inst.cc (inst_rst): generate breakpoint on RST8,ACC==0
61         * src/ds390/gen.c (shiftRLong),
62         * src/hc08/gen.c (shiftLLong, shiftRLong): fixed bug 1533966
63         * src/mcs51/gen.c (sameReg): changed to sameByte,
64           (xch_a_aopGet): new,
65           (shiftL2Left2Result, shiftR2Left2Result, shiftRLeftOrResult, shiftLLong,
66            shiftRLong): fixed bug 1533966
67         * src/z80/gen.c (shiftR2Left2Result, shiftL2Left2Result, genlshTwo,
68           genLeftShiftLiteral, genrshTwo, genRightShiftLiteral): fixed bug 1533966
69         * support/regression/Makefile.in: disabled z80, enabled ucz80
70         * support/regression/tests/float_trans.c: enabled test for z80 and host
71         * support/regression/tests/shifts2.c: new, for testing bug 1533966
72
73 2006-08-01 Borut Razem <borut.razem AT siol.net>
74
75         * src/mcs51/gen.c, src/dc390/gen.c: fixed warning:
76           comparison is always false due to limited range of data type
77           on PPC64 machine (openpower-linux1) where "char = unsigned char"
78
79 2006-08-01 Maarten Brock <sourceforge.brock AT dse.nl>
80
81         * sim/ucsim/hc08.src/hc08mac.h: removed faulty and unused add_u16_disp
82         * sim/ucsim/hc08.src/hc08.cc: removed faulty and unused int8
83         * sim/ucsim/z80.src/z80mac.h (add_u16_disp): use explicit signed char cast
84         * sim/ucsim/z80.src/z80.cc: removed faulty and unused int8
85
86 2006-07-31 Borut Razem <borut.razem AT siol.net>
87
88         * sim/ucsim/configure, sim/ucsim/cmd.src/newcmdcl.h,
89           sim/ucsim/cmd.src/newcmd.cc, sim/ucsim/cmd.src/cmdutil.cc,
90           sim/ucsim/z80.src/Makefile.in, sim/ucsim/configure.in,
91           sim/ucsim/hc08.src/Makefile.in, sim/ucsim/hc08.src/hc08.cc,
92           sim/ucsim/ddconfig_in.h, sim/ucsim/s51.src/Makefile.in,
93           sim/ucsim/s51.src/uc51cl.h, sim/ucsim/s51.src/serialcl.h,
94           sim/ucsim/s51.src/uc51.cc, sim/ucsim/s51.src/serial.cc,
95           sim/ucsim/app.cc, sim/ucsim/avr.src/Makefile.in:
96           enable ucsim mingw compilation. Serial port is disabled,
97           since it uses termios.h API, which is not available on native
98           WIN32
99
100 2006-07-31 Borut Razem <borut.razem AT siol.net>
101
102         * Small Device C Compiler 2.6.0 released
103         * support/scripts/sdcc.nsi: added FULL_DOC option
104         * .version, doc/sdccman.lyx: changed sdcc version to 2.6.1
105
106 2006-07-28 Borut Razem <borut.razem AT siol.net>
107
108         * support/scripts/sdcc.nsi: remove $INSTDIR/include/asm/pic16/*.h
109         * doc/INSTALL.txt: updated
110
111 2006-07-27 Borut Razem <borut.razem AT siol.net>
112
113         * device/lib/pic/Makefile.in, device/lib/pic/Makefile.subdir,
114           device/lib/pic/libdev/Makefile.in: fixed bug
115           [ 1438354 ] pic libsdcc: distclean doesn't work
116         * device/lib/pic16/Makefile.in, device/lib/pic16/Makefile.subdir,
117           device/lib/pic16/libio/Makefile.in: fixed bug
118           [ 1438344 ] pic16 lib: clean doesn't work properly
119         * doc/knownbugs.html removed [ 1438354 ] and [ 1438344 ] from the list
120
121 2006-07-26 Maarten Brock <sourceforge.brock AT dse.nl>
122
123         * device/lib/pic/libsdcc/fsdiv.c,
124         * device/lib/pic/libsdcc/fsmul.c,
125         * device/lib/pic16/libsdcc/float/fsdiv.c,
126         * device/lib/pic16/libsdcc/float/fsmul.c,
127         * device/lib/_fsdiv.c,
128         * device/lib/_fsmul.c: bugfix, handle too large and too small numbers
129         * support/regression/tests/bug1520966.c: added
130         * doc/knownbugs.html: removed [ 1520966 ] from the list
131
132 2006-07-25 Borut Razem <borut.razem AT siol.net>
133
134         * configure.in, configure, sdccconf_in.h: fixed bug
135           [ 1519095 ] regression test onebyte.c fails on ppc64 host
136         * doc/knownbugs.html: removed [ 1519095 ] from the list
137
138 2006-07-25 Maarten Brock <sourceforge.brock AT dse.nl>
139
140         * doc/knownbugs.html: added, contains list of known bugs at release
141         * device/include/mcs51/compiler.h: fixed SFR32 for SDCC
142
143 2006-07-23 Maarten Brock <sourceforge.brock AT dse.nl>
144
145         * device/include/mcs51/compiler.h: added SFRX for xdata based special
146           function registers and corrected defaults with additional warning
147         * device/lib/malloc.c: cosmetic changes
148         * device/lib/realloc.c: bugfix for bug #1496907, Thanks Efim Monyak
149         * src/ds390/ralloc.c (getRegBitNoSpil): reenabled,
150           (fillGaps): and used it
151
152 2006-07-20 Raphael Neider <rneider AT web.de>
153
154         * src/pic/device.c (addMemRange,assignRegister): suppress verbose
155           output unless SDCCPICDEBUG is set
156         * device/lib/pic16/Makefile.rules (%.lib target): suppress verbose
157           output if SILENT is set
158
159 2006-07-11 Borut Razem <borut.razem AT siol.net>
160
161         * doc/README.txt: updated
162
163 2006-07-10 Borut Razem <borut.razem AT siol.net>
164
165         * support/scripts/sdcc.nsi: added device/include/asm/pic/features.h and
166           device/lib/src/pic/libm/*.c and device/lib/src/pic16/libsdcc/stack/*.S
167           in WIN32 installation
168         * .version, sdcc.spec, doc/sdccman.lyx: changed sdcc version to 2.6.0 -
169           release candidate 1
170
171 2006-07-08 Maarten Brock <sourceforge.brock AT dse.nl>
172
173         * device/include/mcs51/XC866.h: added sbit definitions for Px_x, P1_x, P2_x
174         * src/pic16/glue.c (initPointer): fixed bug 1496419 for pic16
175
176 2006-07-06 Maarten Brock <sourceforge.brock AT dse.nl>
177
178         * src/hc08/gen.c (genAddrOf): fixed bug when offset on stack is >127
179
180 2006-07-06 Borut Razem <borut.razem AT siol.net>
181
182         * support/regression/tests/bitfields.c:
183           fixed bug [ 1518322 ] regression test bitfields fails on ppc hosts
184         * support/regression/tests/constantRange.c:
185           fixed bug [ 1518317 ] regression test constantRange fails on alpha host
186
187 2006-07-04 Borut Razem <borut.razem AT siol.net>
188
189         * src/configure.in, src/configure, src/Makefile.in, as/z80/Makefile.in,
190           src/port.mk,
191           src/avr/Makefile.in, src/ds390/Makefile.in, src/ds400/Makefile.in,
192           src/hc08/Makefile.in, src/mcs51/Makefile.in, src/pic16/Makefile.in,
193           src/pic/Makefile.in, src/xa51/Makefile.in, src/z80/Makefile.in:
194           reverted changes from 2006-07-03
195         * Makefile.common.in: added @CPPFLAGS@ to CPPFLAGS
196         * support/regression/Makefile.in, support/regression/ports/host/spec.mk:
197           added CPPFLAGS, used by the host port
198
199 2006-07-03 Bernhard Held <bernhard AT bernhardheld.de>
200
201         * support/regression/valdiag/tests/switch.c,
202         * support/regression/valdiag/tests/constantRange.c: adapted to gcc 4
203         * support/regression/tests/libmullong.c: fixed for host
204         * support/regression/ports/host/spec.mk: disable all warnings for host,
205         SDCC runs with --less-pedantic too
206
207 2006-07-03 Borut Razem <borut.razem AT siol.net>
208
209         * src/configure.in, src/configure, src/Makefile.in, as/z80/Makefile.in:
210           defined CPPFLAGS
211         * src/port.mk: defined CPPFLAGS, renamed to src/port.mk.in
212         * src/avr/Makefile.in, src/ds390/Makefile.in, src/ds400/Makefile.in,
213           src/hc08/Makefile.in, src/mcs51/Makefile.in, src/pic16/Makefile.in,
214           src/pic/Makefile.in, src/xa51/Makefile.in, src/z80/Makefile.in:
215           include ../port.mk
216         * sim/ucsim/main_in.mk, sim/ucsim/avr.src/Makefile.in,
217           sim/ucsim/gui.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
218           sim/ucsim/s52.src/Makefile.in, sim/ucsim/sim.src/Makefile.in,
219           sim/ucsim/xa.src/Makefile.in: ignore header files for dependencies
220
221 2006-07-02 Raphael Neider <rneider AT web.de>
222
223         * src/pic16/devices.inc,
224         * device/include/pic16/pic18fregs.h,
225         * device/include/pic16/pic18f4550.h,
226         * device/lib/pic16/pics.all,
227         * device/lib/pic16/libdev/pic18f4550.c: added support for 18f4550
228
229 2006-07-01 Bernhard Held <bernhard AT bernhardheld.de>
230
231         * as/hc08/lkaomf51.c (OutputName),
232         * as/mcs51/lkaomf51.c (OutputName),
233         * as/z80/asmain.c (asmbl),
234         * src/ds390/main.c (asmLineNodeFromLineNode),
235         * src/hc08/ralloc.c (hc08_assignRegisters),
236         * src/mcs51/main.c (asmLineNodeFromLineNode),
237         * src/xa51/ralloc.c (checkRegMask),
238         * src/xa51/gen.c (emitcode),
239         * src/z80/gen.c (_emit2),
240         * src/SDCCast.c (searchLitOp),
241         * src/SDCCglobl.h,
242         * support/packihx/packihx.c,
243         * support/Util/MySystem.c (split_command): fix gcc 4 warnings
244         * src/ds390/gen.c (aopPutUsesAcc),
245         * src/ds390/ralloc.c (getRegBitNoSpil): unused, therefore disabled
246         * support/regression/tests/libmullong.c (mullong_wrapper),
247         * src/SDCCsymt.c (powof2),
248         * src/SDCCast.c,
249         * src/SDCCicode.c: renamed TYPE_WORD by TYPE_TARGET_INT and so on
250         * src/SDCCsymt.h: added TYPE_TARGET_*
251         * src/SDCCutil.c (doubleFromFixed16x16, fixed16x16FromDouble),
252         * src/SDCCutil.h (doubleFromFixed16x16, fixed16x16FromDouble): moved to
253         SDCCast because 1) header problems 2) this is the right place
254         * src/SDCCast.c (doubleFromFixed16x16, fixed16x16FromDouble): added
255         * src/SDCCval.h (doubleFromFixed16x16, fixed16x16FromDouble): added
256         prototype
257
258 2006-06-29 Bernhard Held <bernhard AT bernhardheld.de>
259
260         * src/SDCCicode.h: removed buggy semicolon in unused macro
261         * src/SDCClrange.c (findPrevUseSym, rlivePoint): fixed bug #1486853,
262         search for previous definiton of auto symbols too,
263         (findPrevUse): fixed logic of emitWarnings
264
265 2006-06-26 Raphael Neider <rneider AT web.de>
266
267         * src/pic16/gen.c (genFunction, genEndFunction): also preserve
268           PCLATH and PCLATU on interrupts, potentially fixes #1505141
269
270 2006-06-25 Raphael Neider <rneider AT web.de>
271
272         * device/lib/pic/libm: NEW, added math library functions
273         * device/lib/pic/libsdcc: NEW; added float support functions
274         * device/lib/pic/{Makefile.in,configure.in,configure}: added libm/
275         * device/include/pic/{limits.h,errno.h,sdcc-lib.h,float.h,math.h}:
276           NEW, added math related headers
277         * device/include/asm/pic/features.h: NEW
278         * src/pic/gen.c (emitpcode_real): emit warning on NULL pCodeOp,
279           (popGet): allow larger offsets for AOP_PCODE,
280           (genDataPointerSet): handle literals explicitly, more debug output,
281           (genAssign): fixed for float using aopLiteral ;-)
282         * src/pic/glue.c (pic14createInterruptVect): inserted pagesel before
283           GOTO initialisation routine
284         * src/pic/pcoderegs.c (pCodeRegMapLiveRangesInFlow): set wasUsed
285           flag on registers, fixes #1469043 (local variables do not work)
286         * src/pic/main.c (_pic14_do_link),
287         * src/pic16/main.c (_pic16_linkEdit): use fullDstFileName if
288           available
289
290 2006-06-25 Borut Razem <borut.razem AT siol.net>
291
292         * device/lib/pic16/libc/stdio/sprintf.c: return the number of
293           characters printed (not including the trailing '\0' used to end
294           output to strings). Problem detected in regression test bug-927659.c.
295           NOTE: printf() family functions should return int instead
296           unsigned int!
297         * device/lib/pic16/libc/stdio/vfprintf.c: "%%" prints "%", unknown
298           specifier are printed as themselves
299         * sdcc/support/regression/tests/bug1057979.c: pic16 printf doesn't
300           support flags, width and precision specifiers
301
302 2006-06-24 Borut Razem <borut.razem AT siol.net>
303
304         * sdcc/support/regression/tests/bitvars.c: added gbz80, pic16 and pic16
305           to the list of sdcc tagrets not supporting bit type
306         * sdcc/support/regression/tests/bug-905992.c.c: excluded regression
307           testfor pic16 due to bug:
308           [ 1511794 ] pic16: regression test bug-895992.c fails
309
310 2006-06-24 Maarten Brock <sourceforge.brock AT dse.nl>
311
312         * src/mcs51/gen.c (genCmp): optimization for RFE 1162453
313         * src/SDCCglue.c (initPointer), fixed bug 1496419
314         * support/regression/tests/bug1496419.c: new, added
315
316 2006-06-22 Borut Razem <borut.razem AT siol.net>
317
318         * support/regression/ports/pic16/support.c: use gpsim usart module from
319           libgpsim_modules library
320
321 2006-06-21 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
322
323         * device/include/mcs51/at89c51ed2.h: Fixed bug 1510144 changed
324         IP0H to IPH0.
325
326 2006-06-19 Raphael Neider <rneider AT web.de>
327
328         * src/pic/glue.h,src/pic16/glue.h: added prototypes
329         * src/pic/glue.c,src/pic16/glue.c (pic1x_stringInSet,
330           pic1x_emitSymbolIfNew): NEW, check for a string in a set,
331           (pic14printExterns,pic14printPublics,pic16printPublics,
332           pic16_printExterns): use new functions to emit symbols
333           (picglue,pic16glue): emit publics before emitting externs
334         * src/pic/gen.c,src/pic16/gen.c (genFunction): remember the names of
335           locally defined functions to avoid bug #1443651
336         * support/regression/tests/bug-716242.c: removed pic16 workaround
337         * support/regression/ports/pic16/spec.mk: ignore errors during build
338
339 2006-06-19 Raphael Neider <rneider AT web.de>
340
341         * src/pic/glue.h: added pic14aopLiteral prototype
342         * src/pic/glue.c (pic14aopLiteral): return unsigned int
343         * src/pic/gen.c: removed stdint.h dependency
344           (aopGet): use Safe_strdup()
345           (bitpatternFromVal): removed, replaced use with pic14aopLiteral
346           (genDataPointerSet): use pic14aopLiteral()
347         * src/pic16/glue.h, src/pic16/glue.c, src/pic16/gen.c: similar changes
348           for pic16; thanks to Bernhard and Maarten
349
350 2006-06-18 Borut Razem <borut.razem AT siol.net>
351
352         * support/regression/tests/structflexarray.c: flexible array members
353           not supported by gcc < 3
354         * sim/ucsim/configure, sim/ucsim/configure.in: do not compile serio
355           GUI tool by default
356         * src/pic/gen.c: don't include [p]strdin.h on solaris
357         * support/Util/pstdint.h: addad svn attributes
358         * support/regression/tests/constantRange.c,
359           support/regression/tests/rotate.c: include inttypes.h instead
360           stdint.h on solaris, addad svn attributes
361
362 2006-06-18 Raphael Neider <rneider AT web.de>
363
364         * src/SDCCsymt.c (initCSupport): change return type of divschar to
365           int for PIC16
366         * src/pic16/genarith.c (genAddLit): sign-extend via standard routine
367           (pic16_genMinusBits): simplified sign-extension
368           (pic16_genUMult8XLit_8,pic16_genUMult8X8_8): renamed to
369             pic16_genMult8XLit_n resp. pic16_genMult8X8_n, fixed and
370             adjusted to correctly handle mixed-signed operands, disabled
371             now unused multiplciation routines
372         * src/pic16/gen.c (pic16_pushpCodeOp): fixed to handle literals
373           (assignResultValue): added argument denoting the size of the result
374             as returned by the function (fixes upcasts in assigning from
375             function calls: char foo(); int i = foo();)
376           (genCall,genPcall,genGenPointerGet,genReceive): pass size of
377             function result to assignResultValue
378           (genMult): disabled inlined multiplication code
379           (genDiv): augmented to also handle the modulus operator, fixed to
380             handle mixed-signed operands correctly
381           (genMod): simply call genDiv, disabled unused code
382           (genAssign): fixed missing (sign-)extension on result
383         * src/pic16/main.c (_hasNativeMulFor): accept literals [-128..256) as
384             valid char operands, allow signed operands for native code, added
385             division and modulo operator handling
386         * device/lib/pic16/libsdcc/char/divschar.c: divschar returns an int
387
388         As a consequence, onebyte.c (if split into two files) and muldiv.c
389         pass regression tests.
390
391 2006-06-17 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
392
393         * doc/Makefile.in: two runs of makeindex seem needed to get
394         correct page references in the index of sdccman.pdf
395         * doc/sdccman.lyx: mentioned cmon51, added links, small changes
396
397 2006-06-17 Borut Razem <borut.razem AT siol.net>
398
399         * sdcc/device/lib/Makefile.in: corrected PORTINCDIR path
400
401 2006-06-17 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
402
403         * doc/sdccman.lyx: updated, added (porting source code, debugging),
404         mentioned ec2drv and paulmon
405
406 2006-06-16 Maarten Brock <sourceforge.brock AT dse.nl>
407
408         * as/mcs51/lkarea.c (lnkarea2): clear new xdatamap, bugfix for two
409           consecutive abs areas
410           (find_empty_space, allocate_space): added map to handle codemap or
411            xdatamap,
412           (lnksect2): renamed rloc to locIndex, fixed bug 960060 by handling
413            absolute idata and xdata
414         * as/mcs51/lkmem.c (summary2): updated legend
415
416 2006-06-16 Raphael Neider <rneider AT web.de>
417
418         * src/pic16/gen.c (shiftR2Left2Result): fixed bug #1507127
419
420 2006-06-13 Maarten Brock <sourceforge.brock AT dse.nl>
421
422         * debugger/mcs51/cmd.c (cmdListFunctions): fixed bugs 1181163 and
423           1208515
424         * src/SDCClrange.c (findPrevUse): fixed bug 1294475
425
426 2006-06-13 Vangelis Rokas <vrokas AT users.sourceforge.net>
427
428         * src/port.h (struct PORT): added field gp_tags, to hold the tag
429         value of generic pointers,
430         * src/avr/main.c,
431           src/ds390/main.c,
432           src/hc08/main.c,
433           src/izt/i186.c,
434           src/izt/tlcs900h.c,
435           src/mcs51/main.c,
436           src/pic/main.c,
437           src/pic16/main.c,
438           src/xa51/main.c,
439           src/z80/main.c: PORT structure, added elements for gp_tags field,
440         * src/SDCCsymt.h: replaced hardwired values of GPTYPE_* macros with
441         fields in the PORT structure of each port,
442         * src/SDCCast.c (decorateType): allow processing of generic pointers
443         for PIC16 port (FPTRSIZE equals GPTRSIZE), also set GPTYPE_NEAR for
444         S_FIXED symbols
445
446 2006-06-12 Maarten Brock <sourceforge.brock AT dse.nl>
447
448         * link/z80/lkgb.c,
449         * link/z80/lkgg.c,
450         * src/pic16/gen.c,
451         * src/pic16/main.c,
452         * src/pic16/pcode.c,
453         * src/pic/main.c,
454         * src/pic/pcoderegs.c,
455         * src/SDCCicode.c,
456         * src/SDCCmain.c,
457         * src/SDCCsymt.c: replaced all exit(-1) by exit(EXIT_FAILURE) to fix
458           bug 1504689 on minGW
459
460 2006-06-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
461
462         * device/lib/printf_tiny.c: fixed bug #1465675 (%x format specifier)
463
464 2006-06-12 Bernhard Held <bernhard AT bernhardheld.de>
465
466         * src/SDCCast.c (backPatchLabels): fixed bug #1504636
467
468 2006-06-11 Maarten Brock <sourceforge.brock AT dse.nl>
469
470         * device/lib/printf_large.c (OUTPUT_CHAR, _output_char): added and used
471           for optimization
472
473 2006-06-11 Vangelis Rokas <vrokas AT users.sourceforge.net>
474
475         * src/pic16/gen.c (genCast): fixed bug with assignment of a pointer
476         to a char variable. Fixed bug #1504211
477         * device/include/pic16/adc.h,
478         device/include/lib/pic16/libio/adc/adcopen.c: applied patch #1364387
479         and fixed bug #1364390
480
481 2006-06-10 Borut Razem <borut.razem AT siol.net>
482
483         * CVSROOT: removed the CVS left-over
484
485 2006-06-10 Maarten Brock <sourceforge.brock AT dse.nl>
486
487         * as/hc08/asmain.c (asexit),
488         * as/hc08/lkmain.c (lkexit),
489         * as/mcs51/asmain.c (asexit),
490         * as/mcs51/lkmain.c (lkexit),
491         * src/SDCCglue.c (DEFSETFUNC),
492         * src/SDCCmain.c (linkEdit, assemble),
493         * support/librarian/sdcclib.c (AddRel),
494           replaced unlink() by standard C remove()
495         * src/SDCC.y: replaced removePostIncDecOps() by createRMW()
496         * src/SDCCast.c (replaceAstWithTemporary, createRMW,
497           gatherImplicitVariables): new, added to fix bug 608752,
498           (createFunction): added gatherImplicitVariables()
499         * src/SDCCast.h: added createRMW prototype
500         * src/SDCCsymt.h (struct symbol): added infertype
501         * support/regression/tests/bug608752.c: new, added
502
503 2006-06-10 Raphael Neider <rneider AT web.de>
504
505         * src/pic16/gen.c (pic16_aopOp): use WREG as destination even for
506           multibyte dummy reads (fixes #1503234)
507
508 2006-06-10 Maarten Brock <sourceforge.brock AT dse.nl>
509
510         * device/include/mcs51/compiler.h: new, added header file to enable
511           creating common sfr definition header files for different compilers
512
513 2006-06-05 Raphael Neider <rneider AT web.de>
514
515         * src/pic16/{pcode.h,genarith.c}:
516           introduced pCodeOp combining any two pCodeOps (previously only
517           two register operands could be combined), removed pcop2 from
518           pCodepReg, replaced pCodeOpReg2 with pCodeOp2, fixes #1492366
519         * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): added case for PO_TWO_OPS
520         * src/pic16/gen.c (pic16_popGet2,pic16_popGet2p,pic16_popCombine2):
521           rewritten to use new PO_TWO_OPS
522         * src/pic16/main.c (_hasNativeMulFor): cover more cases natively,
523         * src/pic16/pcode.c (pic16_newpCodeOpImmd): initialize rIdx field,
524           (pic16_newpCodeOp): catch invalid attempts on PO_TWO_OPS,
525           (pic16_newpCodeOp2): NEW, create combined pCodeOp,
526           (pic16_get_op): embraced return arg to allow #define return(x),
527             added new case for combined opcodes
528           (pic16_get_op2): reduced to use pic16_get_op() on second pCodeOp,
529           (pic16_pCode2str,pic16_getRegFrompCodeOp,
530            pic16_getRegFromInstruction2): fixed/added handling of new pCodeOp
531
532 2006-06-04 Bernhard Held <bernhard AT bernhardheld.de>
533
534         * src/SDCCval.c (checkConstantRange): added
535         * src/SDCCval.h: added checkConstantRange
536         * support/Util/SDCCerr.c,
537         * support/Util/SDCCerr.h: replaced unused W_IF_NEVER_TRUE and
538         W_IF_ALWAYS_TRUE by W_COMP_RANGE and W_LIT_OVERFLOW
539         * src/SDCC.y: moved early 'condition transformations' to SDCCast.c
540         * src/SDCCast.c (decorateType): added checkConstantRange,
541         added 'condition transformations' from SDCC.y so that now W_COMP_RANGE
542         can be emitted with the correct always true/false warning,
543         added optimization for double '!';
544         result of decorateType() must be assigned back to the tree, because
545         decorateType() can change the tree
546         * src/SDCCicode.c (geniCodeLogic),
547         (geniCodeAssign): replaced new checkConstantRange, added warnings,
548         (checkConstantRange): removed, it was only a fragment which never
549         emitted a warning
550         * src/SDCCsymt.c (computeType): fixed promotion for
551         "-1 < (unsigned bit) b"
552         * src/pic/ralloc.c (packRegsForAssign),
553         * src/pic16/ralloc.c (packRegsForAssign),
554         * src/hc08/ralloc.c (packRegsForAssign),
555         * src/z80/ralloc.c (packRegsForAssign): ported fix for bug #930931
556         from mcs51
557         * src/mcs51/ralloc.c (packRegsForAssign): removed outcommented source
558         * support/regression/tests/constantRange.c: added
559         * support/valdiag/tests/constantRange.c: added
560         * support/valdiag/valdiag.py: added -DPORT_HOST=1
561
562 2006-06-02 Borut Razem <borut.razem AT siol.net>
563
564         * support/regression/ports/pic16/support.c: increase stack size
565           to 255 bytes
566         * support/regression/Makefile.in: sort tests by name so that the
567           resutlts can be compared on different machines / platforms
568
569 2006-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
570
571         * device/lib/printf_large.c (output_digit): optimized further, Tnx Frieder
572         * src/ds390/gen.c (emitLabel): new, added,
573           (genDjnz): fixed stack overflow bug,
574           (throughout): cosmetic changes to sync with mcs51/gen.c,
575           replaced emitcode("", "%05d$:", lbl->key + 100) with emitLabel(lbl)
576         * src/mcs51/gen.c (genEndFunction): small optimization,
577           (throughout): cosmetic changes to sync with ds390/gen.c
578
579 2006-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
580
581         * device/lib/printf_large.c (output_digit, calculate_digit): optimized,
582           (_print_format): fixed printing pointers
583         * src/mcs51/gen.c (emitLabel, movb): new, added,
584           (genAssign): small optimization,
585           (genDjnz): fixed stack overflow bug,
586           (throughout): replaced sprintf with SNPRINTF,
587           replaced mcs51_regWithIdx with REG_WITH_INDEX,
588           replaced emitcode("mov", "b,...") with MOVB(...),
589           replaced emitcode("", "%05d$:", lbl->key + 100) with emitLabel(lbl),
590           replaced D(emitcode("; genXXX", "")) with D(emitcode(";", "genXXX"))
591         * src/mcs51/peeph.def: added rules 140 and 264
592         * src/SDCCmem.c (allocLocal): store register declared locals in DSEG/OSEG
593           so they may get optimized into registers
594
595 2006-05-30 Maarten Brock <sourceforge.brock AT dse.nl>
596
597         * src/SDCCmain.c (optionsTable, parseCmdLine): handle --use-stdout
598           immediately when encountered,
599           (printUsage): always use stderr even on windows
600
601 2006-05-30 Bernhard Held <bernhard AT bernhardheld.de>
602
603         * src/SDCCast.c (isLoopCountable): fixed bug #1478316
604         (processParms): fixed bug #1247551
605         * src/SDCCmain.c (printVersionInfo, printOptions, printUsage,
606         parseCmdLine, main): print '--version' to stdout,
607         print 'help' to stdout if --help is given,
608         print 'help' to stderr and exit with EXIT_FAILURE if no or bad
609         arguments are given; fixed --help
610
611 2006-05-27 Bernhard Held <bernhard AT bernhardheld.de>
612
613         * src/SDCCcse.c (findPointerSet): fixed bug #1493710
614         * support/regression/tests/bug-1493710.c: added
615
616 2006-05-27 Borut Razem <borut.razem AT siol.net>
617
618         * support/regression/fwk/lib/testfwk.c: define array in _printn() as
619           static instead auto
620         * support/regression/ports/pic16/support.c: increase stack size
621           from default 64 bytes to 128 bytes
622         * support/regression/tests/staticinit.c,
623           support/regression/tests/float.c: regression tests fully enabled
624           for pic16 port by putting the initialized data arrays into the code
625           section
626         * support/regression/ports/pic16/spec.mk: don't link default libraries.
627           This was changed by mistake in the previous version.
628
629 2006-05-28 Vangelis Rokas <vrokas AT users.sourceforge.net>
630
631         * src/pic16/gen.c (genFunction, genEndFunction): some
632         beautifications, fixed bug with falsely restoring FSR2 in large
633         stack model, thanks to Beau E. Cox for reporting the bug
634
635 2006-05-26 Maarten Brock <sourceforge.brock AT dse.nl>
636
637         * debugger/mcs51/break.c,
638         * debugger/mcs51/cmd.c (throughout): removed unused variables and labels,
639           use %p to print pointers, made address variables unsigned
640         * debugger/mcs51/cmd.c (infoSymbols): added missing parameter to printf
641         * debugger/mcs51/symtab.c (parseSymbol): must return something
642         * src/mcs51/gen.c (aopForSym): small optimization,
643            moved declarations mcs51_ptrRegReq and mcs51_nRegs to ralloc.h,
644           (freeAsmop): added missing break,
645           (aopPut): removed parameter bvolatile, determine it inside the function,
646           (saveRegisters, unsaveRegisters): small optimization,
647           (genIpush): removed pointless check,
648           (throughout): replaced Safe_calloc, strcpy with Safe_strdup,
649           replaced sprintf with SNPRINTF,
650           replaced strcpy with strncpyz,
651           updated aopPut calls,
652           replaced D(emitcode("; genXXX", "")) with D(emitcode(";", "genXXX"))
653         * src/mcs51/ralloc.h:  added declarations mcs51_ptrRegReq and mcs51_nRegs
654
655 2006-05-24 Borut Razem <borut.razem AT siol.net>
656
657         * support/regression/tests/bug-221100.c: fixed xdata problem caused by
658           modification of test for the pic16 port, put the array to the code
659           memory for pic16port; thanks to Maarten Brock and Frieder Ferlemann
660
661 2006-05-23 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
662
663         * src/pic/gen.c: MSC 6 does not have <stdint.h>.  Use pstdint.h instead.
664         * support/Util/pstdint.h: added
665
666 2006-05-22 Borut Razem <borut.razem AT siol.net>
667
668         * src/regression/Makefile: removed bool2.c test, added -q linker option
669         * src/regression/add2.c, src/regression/add3.c, src/regression/bool1.c,
670           src/regression/bool3.c, src/regression/nestfor.c, src/regression/ptrfunc.c,
671           src/regression/compare.c, src/regression/or1.c, src/regression/compare2.c,
672           src/regression/while.c, src/regression/compare3.c, src/regression/compare4.c,
673           src/regression/compare5.c, src/regression/sub2.c, src/regression/rotate1.c,
674           src/regression/rotate2.c, src/regression/rotate3.c, src/regression/rotate4.c,
675           src/regression/switch1.c, src/regression/rotate5.c, src/regression/for.c,
676           src/regression/add.c, src/regression/sub.c, src/regression/call1.c:
677           define SUPPORT_BIT_TYPES 0, removed unused bit variables
678
679 2006-05-22 Raphael Neider <rneider AT web.de>
680
681         * src/pic16/gen.c (pic16_storeForReturn): fragile fix for
682           bug #1492360 (problematic due to generic pointers, see code)
683
684 2006-05-22 Borut Razem <borut.razem AT siol.net>
685
686         * support/regression/ports/pic16/specs.mk: removed stack size linker
687           directive
688         * support/regression/tests/array.c,
689           support/regression/tests/bitopcse.c,
690           support/regression/tests/bug-908454.c,
691           support/regression/tests/malloc.c: modified for pic16 regression test
692         * support/regression/tests/bitfields.c:
693           pic16 - excluded bitfileds of size > 8
694         * support/regression/tests/bp.c: pic16 - reduced data size
695         * support/regression/tests/bug-221100.c: pic16 - reduced data size
696         * support/regression/tests/bug-460010.c:
697           pic16 - used the absolute address the fits in memory
698         * support/regression/tests/bug-716242.c:
699           bug [ 1443651 ] pic 16: redefining symbol that cannot be redefined.
700         * support/regression/tests/float.c:
701           pic16 - excluded - data size too big
702         * support/regression/tests/onebyte.c:
703           pic16 - bug [ 1444425 ] onebyte.c regression tes fails on pic16
704         * support/regression/tests/shifts.c:
705           pic16 - function names probably have to differ in first X characters
706           (gpasm limitation?)
707         * support/regression/tests/staticinit.c:
708           pic16 - excluded some tests due error: no target memory available for
709           section ".idata"
710
711 2006-05-22 Borut Razem <borut.razem AT siol.net>
712
713         * support/Util/dbuf.c: fixed bug #1489008 fix dbuf_c_str(),
714           second try. Thanks Stas Sergeev once more.
715
716 2006-05-21 Maarten Brock <sourceforge.brock AT dse.nl>
717
718         * src/hc08/gen.c (transferAopAop): aop forced to stack was not restored,
719           (genLeftShift, genRightShift): fixed bug 1491627
720         * src/hc08/peeph.def (rules 7, 8.x): added
721         * support/regression/tests/shifts.c (ShiftLeftByParam,
722           ShiftRightByParam, testShiftByParam): added to test variable shifting
723
724 2006-05-20 Raphael Neider <rneider AT web.de>
725
726         * src/pic/gen.c (bitpatternFromVal): fixed for 64-bit machines
727         * src/pic16/ralloc.c (newReg): use correct name in hashtable,
728           (allocReg): add only new registers to dynAllocRegs,
729           (pic16_assignRegisters): do not reset dynrIdx, fixes bugs
730             #1489055, #1445850, and probably #1483693
731
732 2006-05-19 Vangelis Rokas <vrokas AT users.sourceforge.net>
733
734         * src/pic16/glue.c (pic16_emitConfigRegs, pic16_emitIDRegs): fixed
735         bug in for-loop that didn't emit the last of CONFIG and ID registers
736
737 2006-05-18 Maarten Brock <sourceforge.brock AT dse.nl>
738
739         * src/mcs51/gen.c (genCodePointerGet): inc dptr instead of loading acc
740           with offset
741         * src/mcs51/peeph.def (186.x): updated and reenabled to fix bugs
742           1489016, 1434401 and 1490124
743         * src/ds390/peeph.def (186.x, 227.x): updated and reenabled to fix bugs
744           1489016, 1434401 and 1490124
745
746 2006-05-17 Borut Razem <borut.razem AT siol.net>
747
748         * support/Util/dbuf.c: fixed bug #1489008 fix dbuf_c_str(),
749           thanks Stas Sergeev
750
751 2006-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
752
753         * device/include/mcs51/P89c51RD2.h,
754         * device/include/mcs51/P89LPC901.h,
755         * device/include/mcs51/P89LPC922.h,
756         * device/include/mcs51/P89LPC932.h: added, thanks Omar Espinosa
757
758 2006-05-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
759
760         * device/lib/pic16/libsdcc/stack/{stack.S, Makefile.in}: add workaround
761         to fix missing stack pragma in compiled binary object file,
762
763 2006-05-14 Bernhard Held <bernhard AT bernhardheld.de>
764
765         * support/packihx/configure.in,
766         * support/packihx/configure: removed warning, autoconf >= 2.5x can
767         determine sizeof basic types even while cross compiling
768
769 2006-05-13 Bernhard Held <bernhard AT bernhardheld.de>
770
771         * src/avr/gen.c (aopop),
772         * src/ds390/gen.c (aopOp),
773         * src/hc08/gen.c (aopOp),
774         * src/mcs51/gen.c (aopop),
775         * src/pic16/gen.c (pic16_aopOp),
776         * src/pic/gen.c (aopOp),
777         * src/z80/gen.c (aopop): fix for bug #1479882; use new, exclusive asmop
778         if size of operand is smaller than spill location
779
780 2006-05-12 Borut Razem <borut.razem AT siol.net>
781
782         * *.dsw, *.dsp: changed property svn:eol-style to CRLF since they
783           have to have CR/LF line endings even if they are checked out on *nix
784           or on WIN32 in cygwin binmode
785
786 2006-05-12 Maarten Brock <sourceforge.brock AT dse.nl>
787
788         * doc/sdccman.lyx: documented numeric ranges, WEBDOC #1442369
789         * device/include/ds80c390.h: added sfr16 definitions
790         * src/ds390/gen.c,
791         * src/ds390/gen.h,
792         * src/ds390/main.c,
793         * src/ds390/ralloc.c,
794         * src/ds390/ralloc.h: changes all over the place to sync with mcs51
795           fixing several bugs and adding sfr16/sfr32, reentrant bit params,
796           bit returning functions
797         * support/regression/tests/sfr16.c: enabled test on ds390
798
799 2006-05-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
800
801         * src/hc08/gen.c (asmopToBool, genIfx): fix for bug #1429722
802         * src/hc08/gen.c (storeRegToAop): fix for bug #1439894
803
804 2006-05-11 Maarten Brock <sourceforge.brock AT dse.nl>
805
806         * sim/ucsim/sim.src/memcl.h: added get_decoder() to cl_address_space
807         * sim/ucsim/sim.src/mem.cc: implemented cl_address_space::get_decoder,
808           (cl_address_space constructor): removed expensive initialization,
809           (cl_address_space::get_cell): extended for late initialization,
810           (cl_address_space::*): use late initialization,
811           (cl_address_decoder::activate): removed expensive initialization,
812           This reduced regression test running time by 25%
813
814 2006-05-11 Bernhard Held <bernhard AT bernhardheld.de>
815
816         * packihx/,
817         * configure.in,
818         * configure,
819         * sdcc.dsw,
820         * Makefile.bcc,
821         * Makefile.in,
822         * support/packihx/Makefile.in,
823         * support/packihx/clean.mk,
824         * support/packihx/Makefile.bcc,
825         * support/packihx/PackIhx.dsp: moved packihx to support/packihx
826
827 2006-05-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
828
829         * src/SDCCval.c (valNot): fix for regression test failure
830           of not.c on big endian hosts
831
832 2006-05-10 Maarten Brock <sourceforge.brock AT dse.nl>
833
834         * device/inlcude/mcs51/msc1210.h: new, added, thanks Philippe Latu
835
836 2006-05-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
837
838         * device/lib/mcs51/Makefile.in: changed string comparison operator
839           to = for POSIX compliance; == is bash extension
840
841 2006-05-10 Maarten Brock <sourceforge.brock AT dse.nl>
842
843         * device/lib/hc08/_mulint.c: applied patch 1485428, thanks
844           kosmonaut_pirx
845
846 2006-05-09 Vangelis Rokas <vrokas AT users.sourceforge.net>
847
848         * src/pic16/gen.c (pic16_freeAsmop): release any temp registers
849         allocated by aopForSym thus fixing bug #1478657 about failed testfwk.c
850         * src/pic16/main.c (_pic16_keywords): added 'sfr16' keyword,
851         * src/pic16/ralloc.c (pic16_allocWithIdx): also a fix for bug exposed by
852         bug report #1478657,
853
854 2006-05-05 Borut Razem <borut.razem AT siol.net>
855
856         * doc/Makefile.in: remove of WARNINGS and labels.pl immediately after
857           making the html
858
859 2006-05-02 Borut Razem <borut.razem AT siol.net>
860
861         * doc/Makefile.in: removed *.ind dependency since there is no rule to
862           create *.ind, which made make to fail if invoked with -j 2
863
864 2006-05-01 Maarten Brock <sourceforge.brock AT dse.nl>
865
866         * src/SDCCglue.c (emitRegularMap): partial fix for bug 1477149, thanks
867           Hubert Sack for patch 1479782
868
869 2006-05-01 Vangelis Rokas <vrokas AT users.sourceforge.net>
870
871         * src/pic16/glue.c (pic16_printIvalStruct): fixed bug #1445929
872
873 2006-05-01 Raphael Neider <rneider AT web.de>
874
875         * src/pic/device.c (sanitise_processor_name): only remove p(ic) prefix,
876           (create_pic): store only prefix-free device name,
877           (init_pic): check for device names with "16" prefix,
878           (list_valid_pics),
879         * src/pic/device.h (struct PIC_device),
880         * src/pic/main.c (_pic14_genAssemblerPreamble): adapted to single
881             stored device name,
882         * device/include/pic/pic12f{635,675,629,683}.h,
883         * device/lib/pic/libdev/pic12f{635,675,629,683}.c: NEW device libraries
884         * device/lib/pic/libdev/Makefile.in: allow pic12* devices,
885         * device/include/pic/pic16f505.h,
886         * device/lib/pic/libdev/pic16f505.c: removed
887         * device/include/pic/pic14devices.txt: added support for pic12f
888             devices, removed unsupported non 16-bit devices
889             [above changes provided by patch from Zik Saleeba]
890         * src/pic/*, src/pic16/*, device/include/pic16/*,
891           device/lib/pic/**, device/lib/pic16/**: obfuscated email address
892
893 2006-05-01 Borut Razem <borut.razem AT siol.net>
894
895         * configure.in, configure, doc/Makefile.in:
896           sync with nightly build makefile - latex, dvipdf and dvips
897           not needed any more
898
899 2006-04-30 Bernhard Held <bernhard AT bernhardheld.de>
900
901         * support/scripts/sdcc.nsi: removed all Readmes and Makefiles
902         in the library source
903
904 2006-04-30 Maarten Brock <sourceforge.brock AT dse.nl>
905
906         * support/regression/ports/hc08/spec.mk: fixed bug 1478892
907
908 2006-04-28 Raphael Neider <rneider AT web.de>
909
910         * src/pic16/pcode.c (pic16_newpCodeOpLit12),
911         * src/pic16/gen.c (pic16_popGetLit12): NEW, create 12 bit literal,
912           (pic16_loadFSR0): handle 12 bit literals correctly, fixes #1440527
913         * src/pic16/pcode.h: added prototype for pic16_newpCodeOpLit12()
914
915 2006-04-28 Bernhard Held <bernhard AT bernhardheld.de>
916
917         * device/lib/pic/libdev/Makefile.in,
918         * device/lib/hc08/Makefile.in,
919         * device/lib/gbz80/Makefile.in,
920         * device/lib/z80/Makefile.in,
921         * device/lib/ds390/Makefile.in,
922         * device/lib/ds400/Makefile.in: added srcdir to include search path,
923         thanks to Borut for the bug report
924         * configure.in,
925         * configure: always create doc/Makefile independent from --enable-doc
926         * Makefile.in: always install from directory doc independent from
927         --enable-doc
928         * device/lib/pic/Makefile.in: added libdev again, it was erroneously
929         removed
930         * device/lib/pic/libdev/Makefile.in: fixed VPATH build
931         * doc/Makefile.in: install *.txt if present
932         * device/include/Makefile.in (install): added installation of pic/*.inc
933         and pic/*.txt files again, they were erroneously removed
934
935 2006-04-28 Raphael Neider <rneider AT web.de>
936
937         * src/pic/{gen.c,main.h,pcode.c},
938         * src/pic16/{gen.c,pcode.c}: quietened compiler warnings
939             concerning signedness with casts
940
941 2006-04-28 Raphael Neider <rneider AT web.de>
942
943         * src/pic/gen.c (genFunction): set global pic14_hasInterrupt on
944             definition of an interrupt handler,
945         * src/pic/glue.c (pic14_emitInterruptHandler): moved output of
946             interrupt handler stuff from picglue() to separate routine,
947           (picglue): enabled definition of intr handlers in files w/o main()
948
949 2006-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
950
951         * support/librarian/sdcclib.c: moved include <limits.h> up to enable
952           compilation with MSVC 2005 Express Edition (VC8)
953
954 2006-04-26 Bernhard Held <bernhard AT bernhardheld.de>
955
956         * device/lib/Makefile: fixed build of gbz80 lib
957
958 2006-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
959
960         * support/regression/tests/bug-460010.c,
961         * support/regression/tests/bug-524691.c,
962         * support/regression/tests/bug-716242.c: removed conditional defines
963           that are already in testfwk.h
964
965 2006-04-25 Maarten Brock <sourceforge.brock AT dse.nl>
966
967         * src/ds390/gen.c (AccAXRrl1, AccAXLrl1): changed to real rotate by 1,
968           (AccAXRsh1): added, shift right by 1,
969           (AccAXLsh, AccAXRsh, AccAXRshS): updated for AccAXRrl1, AccAXRsh1 and
970            AccAXLrl1
971         * support/regression/tests/rotate.c: use <stdint.h> and enabled ds390
972
973 2006-04-25 Bernhard Held <bernhard AT bernhardheld.de>
974
975         * src/SDCCast.c (decorateType): partial fix for RFE 1475769,
976         remove cast to same type
977         * src/SDCCast.c (decorateType): fix for RFE 1475742,
978         optimize 'ifx (op == 0)' resp. 'ifx (op != 0)'
979         * as/z80/Makefile,
980         * link/z80/Makefile: removed, they have moved to
981         Makefile.in files
982         * configure,
983         * configure.in: replaced duplicate message about ucsim by missing sdcpp
984         * install-sh: fix bug #1204398 by setting umask 0022
985         * device/lib/Makefile: separate build of z80 and gbz80 lib
986
987 2006-04-24 Bernhard Held <bernhard AT bernhardheld.de>
988
989         Enabled VPATH feature: changed nearly all Makefiles (149 files).
990         See sdccman.lyx '2.4.10 VPATH feature' about how to use it.
991
992         One basic decision: e.g. src/clean.mk includes further files. In order
993         to make this work there are two solutions:
994         - rename another dozen clean.mk to clean_in.mk, add srcdir to them and
995           run configure on them. This way they can use
996           'include $(srcdir)/port-clean.mk'
997         - always include clean.mk by the Makefile at the same level. To avoid
998           that `make clean` tries to include and build Makefile.dep the
999           MAKECMDGOALS are examined (see e.g. src/Makefile.in). This has been
1000           implemented, because now even `make uninstall` doesn't create
1001           Makefile.in. clean.mk could be eliminated by pasting it in
1002           Makefile.in.
1003
1004         * debugger/mcs51/Makefile.in: build own objects from library sources
1005         (SLIB, SDCC) in current directory
1006
1007         * configure, configure.in: renamed --disable-device-lib-build in
1008         --disable-device-lib; added --enable-doc, the required tools are
1009         searched by configure; added result message; the toolchain for the
1010         belonging ports are now only built, if the port is enabled.
1011
1012         * support/regression/*: all output is written in directory gen, because
1013         the fwk and ports directories don't livet in the build tree using vpath
1014
1015         * doc/sdccman.lyx: renamed --disable-device-lib-build to
1016         --disable-device-lib, added --enable-doc, added section VPATH
1017
1018         * sim/ucsim/configure.in,
1019         * sim/ucsim/configure.in: hc08 couldn't be disabled, now hc08 and
1020         z80 are enabled by default
1021
1022 2006-04-24 Raphael Neider <rneider AT web.de>
1023
1024         * src/pic/device.c (pic14_assignConfigWordValue): remember assignments
1025             to config word, "pic14_"-prefixed some extern functions
1026           (pic14_emitConfigWord): emit __config directive(s) if assignment to
1027             config word has been found
1028         * src/pic/device.h: added prototypes
1029         * src/pic/pcode.c: added "pic14_"-prefix where needed
1030         * src/pic/ralloc.c (IS_CONFIG_ADDRESS,pic14_assignRegisters): cosmetic
1031             fixup
1032         * src/pic/glue.c (pic14_constructAbsMap): handle assignments to config
1033             words,
1034           (pic14emitRegularMap): ignore config words,
1035           (pic14createInterruptVect): moved generating __config directives away
1036           (picglue): have __config directives emitted
1037
1038 2006-04-24 Borut Razem <borut.razem AT siol.net>
1039
1040         * doc/Makefile: sync with nightly build makefile
1041
1042 2006-04-24 Raphael Neider <rneider AT web.de>
1043
1044         * src/pic/pcoderegs.c (OptimizeRegUsage): do not optimize
1045             registers that have not been assigned proper liveranges,
1046             fixes #1469504 and #1474602,
1047           (pCodeRegOptimizeRegUsage): fixed typo in comment
1048
1049 2006-04-24 Borut Razem <borut.razem AT siol.net>
1050
1051         * device/examples/main8051.c: deleted - it was removed from CVS
1052           24.mar.2000 and after that modified 18.feb.2001, so it reappered
1053           after the transition to Subversion
1054         * src/SDCCalloc.h: deleted - it was removed  from CVS
1055           3.feb.2001 and after that modified 18.feb.2001, so it reappered
1056           after the transition to Subversion
1057         * sim/ucsim/cpu.gif, sim/ucsim/interrupt.gif, sim/ucsim/new.gif,
1058           sim/ucsim/serial1.gif, sim/ucsim/serial2.gif,
1059           sim/ucsim/term_cpuopt.gif, sim/ucsim/timers.gif, sim/ucsim/wins.gif,
1060           sim/ucsim/post.jpg, sim/ucsim/UCsim.jpg: corrected
1061
1062 2006-04-22 Maarten Brock <sourceforge.brock AT dse.nl>
1063
1064         * as/asx8051.dsp: added mcs51/strcmpi.h
1065         * as/hc08/as_hc08.dsp: added asm.h, m6808.h, strcmpi.h
1066         * as/hc08/aslink.h: updated lnksect prototype
1067         * as/hc08/asm.h,
1068         * as/mcs51/asm.h: added a_addr to struct area and s_org to struct sym
1069         * as/hc08/asmain.c,
1070         * as/mcs51/asmain.c (asmbl): init dot.s_org for S_ORG,
1071           (newdot): handle A_ABS
1072         * as/hc08/asout.c,
1073         * as/mcs51/asout.c (outarea): output address
1074         * as/hc08/lkaomf51.c,
1075         * as/mcs51/lkaomf51.c: disabled unused array UsageType
1076         * as/hc08/m08pst.c,
1077         * as/mcs51/i51pst.c,
1078         * as/z80/z80pst.c: "ABS" is not A_OVR
1079         * as/hc08/lkarea.c (newarea): read a_addr,
1080           (lnkarea): added codemap array, sort absolute areas to the front,
1081            combine all GSINITx/GSFINAL,
1082           (find_empty_space, allocate_space): new functions,
1083           (lnksect): return next address, handle absolute sections
1084         * as/mcs51/lkarea.c (newarea): read a_addr,
1085           lnksect2 prototype changed,
1086           (lnkarea2): define codemap unsigned, combine all GSINITx/GSFINAL,
1087           (find_empty_space, allocate_space): new, factored out of lnksect2,
1088           (lnksect2): return next address, handle absolute sections
1089         * as/hc08/lkhead.c,
1090         * as/mcs51/lkhead.c (newhead): head is absolute but not overlay
1091         * as/hc08/lklibr.c (addfile, fndsym),
1092         * as/mcs51/lklibr.c (addfile, buildlibraryindex, fndsym): prevent
1093           index out of range and detect both '\' and '/'
1094         * device/include/mcs51/c8051f200.h: added _XPAGE, removed bad comment
1095         * device/include/stdbool.h: removed SDCC_ds390 from check to pass
1096           regression tests (ds390 cannot return bool yet)
1097         * doc/sdccman.lyx: changed version number, document changed --no-peep,
1098           document critical interrupts on z80, document changed SDCC define
1099         * src/asm.c (_asxxxx_mapping): fixed .org directive,
1100           (_a390_mapping): added .org directive
1101         * src/hc08/gen.c (transferAopAop): made bytemask log to fix warning,
1102           (genMultOneByte): fixed warnings
1103         * src/hc08/hc08.dsp: lowered warning level to 2 to suppress pedantic
1104           ones
1105         * src/pic16/device.c: removed newReg prototype, removed BYTE_IN_LONG
1106         * src/pic16/gen.c (pic16_popGetLabel): made parameter key signed,
1107           (pic16_genLeftShiftLiteral, genRightShiftLiteral): fixed warnings
1108         * src/pic16/gen.h: changed prototype for pic16_popGetLabel
1109         * src/pic16/main.c: removed newReg prototype
1110         * src/pic16/pcode.c,
1111         * src/pic16/pcode.h (pic16_emitDB): changed parameter c to int to fix
1112           warnings
1113         * src/pic16/pic16.dsp: lowered warning level to 2 to suppress pedantic
1114           ones
1115         * src/pic16/ralloc.c
1116         * src/pic16/ralloc.h (newReg): changed type to int and size to unsigned
1117           to fix warnings
1118         * src/pic/pcode.c (allocInternalRegister): changed parameter optype
1119           from short to PIC_OPTYPE
1120         * src/pic/pic.dsp: lowered warning level to 2 to suppress pedantic ones
1121         * src/pic/ralloc.c (newReg, allocInternalRegister): changed parameter
1122           optype from short to PIC_OPTYPE
1123         * src/port.h: made int_size unsigned to fix warnings
1124         * src/SDCC.y: fixed warning on MSVC
1125         * src/SDCCicode.c (getArraySizePtr): return unsigned int
1126         * src/SDCCopt.c (convertToFcall): fixed warnings
1127         * src/SDCCsymt.h: removed double prototype for genSymName
1128         * src/xa51/ralloc.c (allocReg): made size unsigned int, type int and
1129           offset int to fix warnings
1130
1131 2006-04-22 Borut Razem <borut.razem AT siol.net>
1132
1133         * doc/sdccman.lyx, */Makefile, */Makefile.in:
1134           references to CVS replaced with Subversion
1135
1136 2006-04-21 Borut Razem <borut.razem AT siol.net>
1137
1138         * doc/sdccman.lyx, */Makefile, */Makefile.in:
1139           references to CVS replaced with Subversion
1140
1141 2006-04-19 Borut Razem <borut.razem AT siol.net>
1142
1143         * src/version.awk: adapted for svn
1144         * /asxxxx/asxhtml/*.gif: set property svn:mime-type to image/gif
1145           sim/ucsim/doc/*.gif: set property svn:mime-type to image/gif
1146           sim/ucsim/doc/*.jpg: set property svn:mime-type to image/jpeg
1147           /binutils-avr/etc/*.vi, *.jin: removed all properties
1148           support/scripts/sdcc.ico: set property svn:mime-type to image/x-icon
1149
1150 2006-04-19 Borut Razem <borut.razem AT siol.net>
1151
1152         * CVS to Subversion migration completed
1153
1154 2006-04-18 Borut Razem <borut.razem AT siol.net>
1155
1156         * support/scripts/sdcc.nsi: removed unexisting ${DEV_ROOT}\lib\pic\*.o,
1157           ${DEV_ROOT}\lib\src\pic\libdev\*.S, ${DEV_ROOT}\lib\src\pic\libdev\*.inc
1158
1159 2006-04-17 Borut Razem <borut.razem AT siol.net>
1160
1161         * device/include/Makefile.in: added pic/*.inc to the installation
1162
1163 2006-04-15 Bernhard Held <bernhard AT bernhardheld.de>
1164
1165         * support/regression/collate-results.py: fixed output in case of
1166         a valdiag error
1167         * support/regression/generate-cases.py: fixed splitting of pathnames
1168         with dots
1169         * as/hc08/lklibr.c (addfile),
1170         * as/mcs51/lklibr.c (addfile): fixed off-by-one bug
1171
1172 2006-04-11 Raphael Neider <rneider AT web.de>
1173
1174         * src/pic16/gen.c (getFreePtr, pic16_popRegFromString),
1175         * src/pic16/ralloc.c (pic16_allocregWithName): removed debug output
1176         * src/pic16/pcode.c (assignValnums): fixed #1460578
1177
1178 2006-04-11 Raphael Neider <rneider AT web.de>
1179
1180         * device/lib/pic/libdev/*.c,
1181         * device/include/pic/*.h: replaced sfr and data with __sfr and __data,
1182           fixes #1468739, enables compilation in --std-c99 mode
1183         * support/scripts/inc2h.pl: emit __sfr/__data instead of sfr/data
1184
1185 2006-04-11 Raphael Neider <rneider AT web.de>
1186
1187         * src/pic/device.c (find_device): removed debug output
1188           (list_valid_pics): enabled verbose listing of supported devices
1189         * device/include/stdbool.h: define bool as char for pic14/16 as well
1190
1191 2006-04-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1192
1193         * src/SDCC.y: allow using brackets here: "__interrupt (1) __using (1)"
1194
1195 2006-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
1196
1197         * .version: bumped version to 2.5.6
1198         * src/pic/ralloc.c (newReg): MSVC doesn't support __builtin_return_address
1199
1200 2006-04-06 Raphael Neider <rneider AT web.de>
1201
1202         * .version: bumped version to 2.5.6 (pic14 ABI changed)
1203         * src/SDCCmain.c: add -DSDCC_PROCESSOR=<id> for pic14 port
1204         * src/pic/glue.c (emitSymbolToFile,pic14_constructAbsMap,
1205           pic14emitRegularMap,pic14emitMaps): moved output for absolute symbols to
1206             pic14_constructAbsMap
1207           (pic14printPublics): declare absolute global symbols as global
1208           (pic14createInterruptVect),
1209         * src/pic/ralloc.c (IS_CONFIG_ADDRESS): support second config word,
1210           (newReg): assume new registers unused, use correct name in
1211             hashtable (reg->name instead of name), more debugLog output
1212         * src/pic/device.h (PIC_device): added fields for verbose output
1213         * src/pic/device.c: moved device definition to pic14devices.txt,
1214             added routines for runtime parsing of pic14devices.txt,
1215             added support for second config word
1216         * src/pic/main.c (_process_pragma): removed #pragma maxram,
1217           (_pic14_keywords): no longer accept "bit" and "sbit" keywords
1218           (_pic14_initPaths): add search paths with "pic" suffix (not "pic14")
1219           (_pic14_parseOptions): moved pCodeInitRegisters here
1220           (_pic14_do_link): add "pic$(ARCH).lib" to linker arguments
1221         * src/pic/pcode.c (AnalyzeBanking): bail out on unset processor,
1222           (pCodeInitRegisters): rewrapped comments, perpared new approach to
1223             handling the pseudo stack
1224         * device/lib/Makefile.in: ignore failures in objects-pic16,
1225         * device/lib/pic/{configure,configure.in,Makefile}: added libdev/
1226         * device/lib/pic/NEWS: document new dependency on picXXX.lib
1227         * device/lib/pic/Makefile.subdir,
1228         * device/lib/pic16/Makefile.subdir: improved clean rules
1229         * device/lib/pic/libdev/: NEW, pic14 device libraries
1230         * device/lib/pic/libsdcc/_gptr{get,put}{1,2,3,4}.S: use _X not X
1231         * device/lib/pic/libsdcc/macros.inc: use _X not X, declare default SFRs
1232         * device/include/Makefile.in: create subdir and install pic14 headers
1233         * device/include/pic/p16f_common.inc: removed unused declarations
1234         * device/include/pic/pic16*.h: added header files for 100+ 14 bit
1235             PICs from inc2h.pl v1.6,
1236             replaced BIT_AT macros with struct declarations
1237         * device/include/pic/pic14devices.txt: definition of supported devices,
1238             all above improvements contributed by Zik Saleeba, thanks
1239         * support/scripts/inc2h.pl: removed BIT_AT, replaced with structs
1240         * support/scripts/sdcc.nsi: also install pic14 device libraries and
1241             headers
1242
1243 2006-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
1244
1245         * device/include/mcs51/c8051f410.h: added interrupt numbers,
1246         * device/include/mcs51/c8051f200.h: old SiLabs mcu completes the list,
1247           thanks to Charles Olds
1248
1249 2006-04-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1250
1251         * debugger/mcs51/cmd.c (infoRegisters): show return address on stack
1252
1253 2006-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
1254
1255         * src/SDCCpeeph.c (labelIsReturnOnly): fixed bug 1464657
1256         * src/mcs51/gen.c (genJumpTab): fixed bug in medium model
1257         * support/regression/bug1464657.c: added, new test
1258
1259 2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
1260
1261         * src/SDCCmain.c (preProcess): implemented RFE 1449908, define SDCC as the
1262           version number
1263
1264 2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
1265
1266         * src/SDCCpeeph.c (initPeepHole): implemented RFE 1460196, when both
1267           --no-peep and --peep-file <file> are used don't use default rules but
1268           do use the <file>
1269
1270 2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
1271
1272         * src/mcs51/gen.c (genCall): fixed bug 1457608
1273
1274 2006-03-30 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1275
1276         * doc/sdccman.lyx: reverted to version 1.129 of december as my latest
1277         changes seem to cause (trigger?) problems with the build system.
1278
1279 2006-03-29 Maarten Brock <sourceforge.brock AT dse.nl>
1280
1281         * src/SDCCpeeph.c (operandsLiteral): new, added,
1282           (callFuncByName): inserted operandsLiteral
1283         * src/mcs51/peeph.def: reenabled 132.e, added extra check to 132.x
1284
1285 2006-03-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1286
1287         * doc/sdccman.lyx: added paragraph "Use of SDCC in Education"
1288         * src/mcs51/peeph.def: disabled rule 132.e fixing bug #1453093
1289
1290 2006-03-24 Maarten Brock <sourceforge.brock AT dse.nl>
1291
1292         * src/z80/gen.c (genFunction, genEndFunction): fixed bug 1160666,
1293           implemented patch 1120823 Thanks to Willy De la Court (normal
1294           interrupts need an interrupt number now if they are made critical),
1295           and enabled nesting of critical functions though not for gbz80
1296           (genCritical, genEndCritical): added functions
1297           (genZ80Code): added cases for CRITICAL and ENDCRITICAL
1298         * src/z80/mappings.i: added "ei" to all mappings
1299
1300 2006-03-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1301
1302         * sim/ucsim/cmd.src/newcmdcl.h: applied patch fixing GCC 4.1 build
1303         submitted by the Debian SDCC maintainer Aurelien Jarno:
1304         "Credits goes to Martin Michlmayr, who rebuilt the whole Debian
1305         archive with gcc 4.1 on mips and wrote the patch"
1306
1307 2006-03-16 Raphael Neider <rneider AT web.de>
1308
1309         * src/pic16/genarith.c (genAddLit): simplified and fixed case where
1310           the left operand is shorter than the result (c* = lit-c* + int),
1311           fixes bug #1450796
1312         * src/pic16/gen.c (genRightShift): check IS_SYMOP before accessing
1313           OP_SYMBOL
1314
1315 2006-03-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
1316
1317         * src/.version: increased version number to 2.5.5
1318         * src/SDCCmain.c (linkEdit): do not test for PIC16 target since, PIC16
1319         linking is done manually in pic16 port's _linkEdit,
1320         * src/SDCCsymt.c (compStructSize): for target PIC16 and shell variable
1321         PIC16_PACKED_BITFIELDS, compact bitfield structures as much as possible,
1322         * src/pic16/gen.c (aopForSym): when direct register name is WREG then
1323         allocate asmop as AOP_ACC,
1324         (aopForRemat): added parameter 'bool result' in function declaration,
1325         (pic16_aopGet): return AOP_ACC when accessing WREG,
1326         (pic16_popGetTempReg): minor modification,
1327         (pic16_popRegFromIdx): first try with 'pic16_regWithIdx' then with
1328         'pic16_allocWithIdx',
1329         (genPcall): removed ftype, usage of OP_SYM_TYPE asserted error when
1330         calling function in absolute addresses,
1331         (genAssign): take into account AOP_ACC asmop,
1332         * src/pic16/pcode.c (pic16_newpCodeOpReg): minor modifications,
1333         * src/pic16/pcoderegs.c: some debug functions and lines added,
1334         * src/pic16/ralloc.c (decodeRegType): added but commented out,
1335         * (pic16_typeRegWithIdx): search 'pic16_dynInternalRegs' for given
1336         register too,
1337         * (pic16_findFreeReg, pic16_findFreeRegNext): allocate new register via
1338         call to allocReg, not by manually allocating a new one,
1339         (pic16_assignRegisters): now before going through the register
1340         allocating functions mark all registers as free. This eliminates some
1341         side effects resulting from peephole parser done earlier in the backbone
1342
1343 2006-03-13 Maarten Brock <sourceforge.brock AT dse.nl>
1344
1345         * src/SDCCicode.c (geniCodeLogic),
1346         * src/SDCCast.c (decorateType): applied patch by Bernhard for rfe 1422617
1347
1348 2006-03-10 Maarten Brock <sourceforge.brock AT dse.nl>
1349
1350         * src/mcs51/gen.c (sameReg): new, checks if two aop regs are the same,
1351           (genSend): bugfix, do not allocate and free twice,
1352           (shiftRLong): handle partially overlapping aops
1353         * support/regression/tests/bitopcse.c: fixed warning redefined idata
1354
1355 2006-03-08 Borut Razem <borut.razem AT siol.net>
1356
1357         * support/regression/fwk/include/testfwk.h: added defines for xdata, idata
1358           for pic16
1359
1360 2006-03-08 Maarten Brock <sourceforge.brock AT dse.nl>
1361
1362         * support/regression/tests/bug1409955.c: new, added
1363         * src/mcs51/gen.h: changed asmop.freed:1 to asmop.allocated for tracking
1364         * src/mcs51/gen.c (newAsmop): set asmop.allocated to 1,
1365           (aopForSym, aopOp): increment asmop.allocated if reused,
1366           (freeAsmop): decrement asmop.allocated and check for zero instead of
1367           using asmop.freed,
1368           (freeForBranchAsmop): use asmop.allocated instead of asmop.freed,
1369           (genNot, genCpl, genUminus, genMinus, genMult, genDiv, genMod, genCmpGt,
1370            genCmpLt, genAndOp, genOrOp, genAnd, genOr, genXor, genRRC, genRLC,
1371            genGetHbit, genGetAbit, genGetByte, genGetWord, genSwap,
1372            genLeftShiftLiteral, genLeftShift, genRightShiftLiteral,
1373            genSignedRightShift, genRightShift, genDataPointerGet,
1374            genPagedPointerGet, genFarPointerGet, genCodePointerGet,
1375            genGenPointerGet, genDataPointerSet, genAssign, genCast): free asmop's
1376             in reverse order from allocation,
1377           (genPlus, genCmpEq): free asmop's in reverse order from allocation and
1378             added swappedLR to keep track
1379         * support/regression/fwk/include/testfwk.h: added defines for xdata, idata,
1380           pdata & code for GCC, z80, gbz80 & hc08
1381         * support/regression/tests/zeropad.c: moved defines to testfwk.h
1382
1383 2006-03-08 Raphael Neider <rneider AT web.de>
1384
1385         * src/pic16/main.c (_hasNativeMulFor): fixed bug #1444425
1386
1387 2006-03-07 Maarten Brock <sourceforge.brock AT dse.nl>
1388
1389         * device/include/mcs51/c8051f410.h: new SiLabs mcu
1390         * src/ds390/peeph.def: disabled 186.d and 227.a as fix for #1434401
1391         * support/regression/tests/array.c: added parenthesis, made arrays unsigned
1392
1393 2006-03-06 Borut Razem <borut.razem AT siol.net>
1394
1395         * support/regression/ports/pic16/spec.mk: link with libm18f.lib,
1396           made the linker quiet
1397
1398 2006-03-06 Vangelis Rokas <vrokas AT users.sourceforge.net>
1399
1400         * src/pic16/gen.c (genPcall): fixed bug #1443644
1401         * src/pic16/device.h (struct pic16_options_t): added 'int CATregs' flag
1402         which dumps before the function entry point a data byte which represents
1403         the number of the local variables used by the specified function, added
1404         'xinst' for initial support for Extended Instruction Support,
1405         * src/pic16/gen.c (aopForSym, pic16_aopGet): beautifications,
1406         (pic16_testStackOverflow): do not prefix GSTACK_TEST_NAME with
1407         port->fun_prefix anymore (may change later),
1408         (genFunction, genEndFunction): do not store/restore local registers for
1409         _main (this should take care the --main-return command line option in
1410         the future),
1411         (genOr): removed some legacy pic-port instructions,
1412         * src/pic16/genarith.c (genAddLit): re-enabled old code because
1413         performing operations with SFR's causes data to be written more than
1414         once to each SFR. Perhaps SFRs should be handled in special cases...
1415         * src/pic16/glue.c: macros BIG_ENDIAN and BYTE_IN_LONG are moved to
1416         pcode.h
1417         * src/pic16/main.c (_process_pragma): stack bound checking did not take
1418         into account for stack starting position,
1419         (struct OPTIONS pic16_optionsTable): added command line argument
1420         --extended or -y for Extended Instruction Support,
1421         * src/pic16/ralloc.c (pic16_decodeOp): added case for FUNCTION,
1422         (deassignLRs): *** perhaps the most important change, old 'for' code
1423         (commented out for reference), didn't account for some registers which
1424         were left marked 'not free' after a pointer operation. The change
1425         reduces register usage a lot in some cases
1426
1427 2006-03-04 Borut Razem <borut.razem AT siol.net>
1428
1429         * support/regression/ports/hc08/spec.mk: remove *.asm in traget
1430           _clean
1431         * support/regression/tests/bug-524697.c: decreased array size for
1432           mcs51 to fit into the internal RAM
1433         * support/regression/Makefile.in: a little bit more verbose
1434
1435 2006-03-03 Borut Razem <borut.razem AT siol.net>
1436
1437         * support/regression/fwk/lib/testfwk.c,
1438           support/regression/fwk/include/testfwk.h: introduced function
1439           _prints(), nonrecursive _printn(), call _initEmu() from main()
1440         * support/regression/ports/gbz80/support.asm,
1441           support/regression/ports/ucz80/support.asm,
1442           support/regression/ports/z80/support.asm,
1443           support/regression/ports/ds390/support.c,
1444           support/regression/ports/hc08/support.c,
1445           support/regression/ports/host/support.c,
1446           support/regression/ports/mcs51/support.c,
1447           support/regression/ports/xa51/support.c: added empty _initEmu()
1448           function
1449         * support/regression/ports/pic16/gpsim.cmd,
1450           support/regression/ports/pic16/spec.mk,
1451           support/regression/ports/pic16/support.c,
1452           support/regression/Makefile.in: added pic16 regression test
1453
1454 2006-03-01 Raphael Neider <rneider AT web.de>
1455
1456         * src/pic16/gen.c (genPcall,pic16_derefPtr,genGenPointerGet,
1457           genConstPointerGet): use safe way of generating MOVFF to cover
1458             literals as well as registers, fixes bug #1440527
1459         * src/pic16/glue.c (pic16_printIvalBitFields): prevent NULL pointer
1460             dereference
1461           (pic16_printIvalUnion,pic16_isUnion): NEW, handle initialized unions
1462             more correctly, fixes bug #1232186
1463           (pic16_printIval): use pic16_printIvalUnion() for initialized unions
1464         * src/pic16/main.c (_pic16_linkEdit): reorder linker arguments to make
1465             gplink guess the correct processor in more cases, applied patch
1466             from Till Riedel attached to and fixing bug #1436552
1467
1468 2006-02-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1469
1470         * support/regression/tests/array.c: added, contains check for #1434401
1471         * src/mcs51/peeph.def: disabled 186.d as temporary fix for #1434401
1472
1473 2006-02-16 Maarten Brock <sourceforge.brock AT dse.nl>
1474
1475         * device/include/mcs51/at89s8253.h: new, thanks to Krzysztof Polomka
1476         * device/include/mcs51/at89S8252.h: fixed, thanks to Krzysztof Polomka
1477         * device/include/mcs51/c8051f326.h,
1478         * device/include/mcs51/c8051f340.h: new SiLabs mcu's
1479         * device/include/mcs51/c8051f000.h,
1480         * device/include/mcs51/c8051f018.h,
1481         * device/include/mcs51/c8051f020.h: used () with __at, renamed IDLE,STOP to
1482           PCON_IDLE,PCON_STOP and added sfr16 definitions
1483
1484 2006-02-14 Maarten Brock <sourceforge.brock AT dse.nl>
1485
1486         * src/mcs51/gen.c (genPlus, genMinus, genMult, genGetAbit, genGetByte,
1487           genGetWord): fixed bug 1409955
1488
1489 2006-02-14 Maarten Brock <sourceforge.brock AT dse.nl>
1490
1491         * device/include/hc08/mc68hc908gp32.h,
1492         * device/include/hc08/mc68hc908jb8.h: removed AWUL, added PTA6 & PTA7
1493
1494 2006-02-13 Maarten Brock <sourceforge.brock AT dse.nl>
1495
1496         * src/SDCCast.c (constExprValue): return NULL if not a value
1497         * src/SDCCglue.c (printIvalArray): fixed bug 1225568
1498         * src/hc08/gen.c(genUnpackBits, genUnpackBitsImmed): fixed bug 1019480
1499         * support/regression/tests/bitfields.c: enabled signed bitfield for all
1500
1501 2006-02-13 Borut Razem <borut.razem AT siol.net>
1502
1503         * src/regression/ptrarg.c: added, fails due to bug #1430967
1504         * src/regression/Makefile: ptrarg.c added, ...
1505
1506 2006-02-12 Maarten Brock <sourceforge.brock AT dse.nl>
1507
1508         * src/z80/gen.c (genUnpackBits): fixed bug 1019480
1509         * support/regression/tests/bitfields.c: enabled signed bitfield for z80
1510
1511 2006-02-11 Borut Razem <borut.razem AT siol.net>
1512
1513         * src/SDCCmain.c: Added "sdcc: Calling linker..." if --verbose,
1514           print "Processor: xxx" message to stdout only if --verbose
1515
1516 2006-02-11 Maarten Brock <sourceforge.brock AT dse.nl>
1517
1518         * src/SDCCglue.c (printIvalStruct): fixed bug 1426356 union initializer
1519         * support/regression/tests/bug1426356.c: added
1520         * support/regression/tests/bitfields.c: removed 2 tests
1521
1522 2006-02-10 Maarten Brock <sourceforge.brock AT dse.nl>
1523
1524         * device/include/mcs51/at89c51snd1c.h: updated comments, see patch 1428901
1525         * device/include/mcs51/c8051f330.h,
1526         * device/include/mcs51/c8051f350.h: used () with __at, renamed IDLE,STOP to
1527           PCON_IDLE,PCON_STOP and added sfr16 definitions
1528         * device/lib/_divsint.c,
1529         * device/lib/_divuint.c,
1530         * device/lib/_divulong.c,
1531         * device/lib/_divulong.c: renamed a,b to x,y to avoid confusion, fixed
1532           register bank bug for small stackauto
1533
1534 2006-02-09 Maarten Brock <sourceforge.brock AT dse.nl>
1535
1536         * support/regression/fwk/lib/timeout.c: include <stdlib.h> for exit()
1537
1538 2006-02-08 Maarten Brock <sourceforge.brock AT dse.nl>
1539
1540         * support/regression/ports/mcs51-xstack-auto/spec.mk: forgot -I(...)/mcs51
1541         * all.dsp: corrected several bin paths
1542         * device/include/mcs51/c8051f120.h,
1543         * device/include/mcs51/c8051f300.h,
1544         * device/include/mcs51/c8051f310.h: used () with __at and renamed IDLE,STOP
1545           to PCON_IDLE,PCON_STOP
1546         * device/include/mcs51/c8051f320.h: see above, also added sfr16 definitions
1547         * device/lib/printf_large.c (output_float): fixed bug 1388703
1548         * support/regression/tests/bug1057979.c: added test for bug 1388703
1549
1550 2006-02-08 Raphael Neider <rneider AT web.de>
1551
1552         * src/pic/pcode.c (pciTRIS): fixed typo,
1553           (BuildFlow,LinkFlow_pCode): added (disabled) debug output,
1554           (LinkFlow): fixed handling of flows that end in a call,
1555           (ReuseReg): perform safety check earlier
1556         * src/pic/pcoderegs.c (pCodeRegMapLiveRangesInFlow): fixed
1557             to work with flows at the beginning of a pBlock,
1558             fixes #1426557 (Symbol not previously defined),
1559           (pic14_ReMapLiveRanges): NEW, destroy and rebuild register
1560             usage information
1561           (RemoveUnusedRegisters): update register usage info
1562         * src/pic/ralloc.c (newReg): prevent duplicate registers from being
1563             created, reuse existing ones instead
1564         * src/pic/gen.c (genPcall): fixed #1424719
1565
1566 2006-02-07 Bernhard Held <bernhard AT bernhardheld.de>
1567
1568         * link/z80/lkmain.c,
1569         * link/z80/lklex.c,
1570         * link/z80/lkdata.c,
1571         * link/z80/aslink.h: fixed build on current cygwin:
1572         replaced getline() by lk_getline()
1573
1574 2006-02-01 Borut Razem <borut.razem AT siol.net>
1575
1576         * src/regression/add.c, src/regression/add2.c, src/regression/add3.c,
1577           src/regression/add4.c, src/regression/and1.c, src/regression/and2.c,
1578           src/regression/arrays.c, src/regression/b.c, src/regression/bank1.c,
1579           src/regression/bool1.c, src/regression/bool2.c,
1580           src/regression/bool3.c, src/regression/call1.c,
1581           src/regression/compare.c, src/regression/compare10.c,
1582           src/regression/compare2.c, src/regression/compare3.c,
1583           src/regression/compare4.c, src/regression/compare5.c,
1584           src/regression/compare6.c, src/regression/compare7.c,
1585           src/regression/compare8.c, src/regression/compare9.c,
1586           src/regression/configword.c, src/regression/for.c,
1587           src/regression/inline.c, src/regression/mult1.c,
1588           src/regression/nestfor.c, src/regression/or1.c,
1589           src/regression/pointer1.c, src/regression/ptrfunc.c,
1590           src/regression/rotate1.c, src/regression/rotate2.c,
1591           src/regression/rotate3.c, src/regression/rotate4.c,
1592           src/regression/rotate5.c, src/regression/rotate6.c,
1593           src/regression/rotate7.c, src/regression/string1.c,
1594           src/regression/struct1.c, src/regression/sub.c,
1595           src/regression/sub2.c, src/regression/switch1.c,
1596           src/regression/while.c, src/regression/xor.c,
1597           src/regression/create_stc, src/regression/simulate,
1598           src/regression/rt.sh, src/regression/Makefile: reenabled Scott's PIC14
1599           regression tests
1600         * src/regression/gpsim_assert.h: added
1601
1602 2006-01-28 Bernhard Held <bernhard AT bernhardheld.de>
1603
1604         * src/ds390/gen.c (unsaveRegisters): fixed literal function pointer
1605         ((void (code *) (void)) 0) ();
1606         * as/hc08/aslex.c,
1607         * as/hc08/aslink.h,
1608         * as/hc08/asm.h,
1609         * as/hc08/asmain.c,
1610         * as/hc08/lkdata.c,
1611         * as/hc08/lklex.c,
1612         * as/hc08/lkmain.c,
1613         * as/mcs51/aslex.c,
1614         * as/mcs51/aslink.h,
1615         * as/mcs51/asm.h,
1616         * as/mcs51/asmain.c,
1617         * as/mcs51/lkdata.c,
1618         * as/mcs51/lklex.c,
1619         * as/mcs51/lkmain.c,
1620         * as/z80/aslex.c,
1621         * as/z80/asm.h,
1622         * as/z80/asmain.c: fixed build on current cygwin:
1623         replaced getline() by as_getline()
1624
1625 2006-01-27 Bernhard Held <bernhard AT bernhardheld.de>
1626
1627         * src/SDCC.y: fixed bug #716242, exchanged pointer and function
1628         declarator in the symbol chain
1629         * src/SDCCsymt.h,
1630         * src/SDCCsymt.c (processFuncPtrArgs): added, removes "(void)"
1631         parameter list for function pointers
1632         * src/SDCCast.c (decorateType): added call of processFuncPtrArgs()
1633         * support/regression/tests/bug-716242.c: added
1634
1635 2006-01-20 Bernhard Held <bernhard AT bernhardheld.de>
1636
1637         * src/SDCCicode.c (geniCodeAdd, geniCodeArray): use char for array
1638         offset if possible
1639         * src/SDCCast.c (getLeftResultType): 255 fits in char, not 256
1640
1641 2006-01-18 Bernhard Held <bernhard AT bernhardheld.de>
1642
1643         * src/SDCCast.c (backPatchLabels): fixed bug #1408066: made it
1644         inifinitely recurseable, added static
1645         * support/regression/tests/bug-1408066.c: added
1646
1647 2006-01-17 Bernhard Held <bernhard AT bernhardheld.de>
1648
1649         * src/SDCCicode.h,
1650         * src/SDCCicode.c (newiTempPreheaderLabel, newiTempLoopHeaderLabel):
1651         renamed, added possibility to create "postLoopLbl"-labels
1652         * src/SDCCBBlock.c (iCodeBreakDown): renamed newiTempPreheaderLabel to
1653         newiTempLoopHeaderLabel
1654         * src/SDCCloop.c (newInduction, newRegion, backEdges, insertIntoLoop,
1655         isNotInBlocks, addToExitsMarkDepth, createLoop, dominatedBy,
1656         addDefInExprs, assignmentsToSym, isOperandInvariant, pointerAssigned,
1657         hasNonPtrUse, loopInvariants, addressTaken, findInduction,
1658         findDefInRegion, mergeRegions, ifMerged, mergeInnerLoops): made static,
1659         (pinduction, pregion, hasIncomingDefs, findLoopEndSeq): disabled,
1660         (basicInduction): fixed bug #136564, made static,
1661         (loopInduction): changed parameter of basicInduction, made static,
1662         (addPostLoopBlock): added
1663         * src/SDCCloop.h: removed backEdges, pregion, pinduction,
1664         loopOptimizations, addressTaken, findDefInRegion, hasIncomingDefs,
1665         findLoopEndSeq
1666         * support/regression/tests/bug-136564.c: added
1667         * support/regression/ports/mcs51-xstack-auto/spec.mk: added
1668         --std-sdcc99 to LIBSDCCFLAGS
1669
1670 2006-01-16 Bernhard Held <bernhard AT bernhardheld.de>
1671
1672         * src/SDCCicode.c (geniCodeIfx): fix bug 1406131: always false
1673         while loop
1674         * support/regression/tests/bug-1406131.c: added
1675
1676 2005-12-31 Bernhard Held <bernhard AT bernhardheld.de>
1677
1678         * src/SDCCast.c (decorateType): fix promotion of unary minus
1679         * src/SDCCsymt.c (computeType): beautified
1680         * src/SDCCval.c (cheapestVal): beautified, old non-Ansi version removed,
1681         (valUnaryPM, valComplement): fix sign and promotion,
1682         (valNot): ANSI: result type is int (SDCC: unsigned char)
1683         * support/regression/tests/uminus.c: speedup by removing superflous
1684         test case 'int'
1685         * support/regression/tests/onebyte.c: added promotion and signedness
1686         tests for unary minus
1687         * support/regressions/tests/bug-477927.c: disable warning about
1688         uninitialized variables
1689         * support/regression/tests/not.c: added
1690
1691 2005-12-28 Bernhard Held <bernhard AT bernhardheld.de>
1692
1693         * device/lib/Makefile.in: added --std-sdcc99 to CFLAGS
1694         * src/mcs51/gen.c (gen51Code): show final register usage after
1695         fillGaps in asm with --i-code-in-asm
1696         * src/SDCClrange.c (sequenceiCode, setLiveFrom, setLiveTo,
1697         markLiveRanges, markAlive, findNextUseSym, findNextUse, unvisitBlocks,
1698         incUsed, rliveClear, adjustIChain): made static,
1699         (setFromRange): excluded because it's unused,
1700         (findPrevUseSym, markWholeLoop): added,
1701         (findPrevUse): rewritten; fixes bug 895992; now a complete search
1702         through all branches of predecessors enables sdcc to emit the warning
1703         W_LOCAL_NOINIT, marking of outermost loop was incomplete,
1704         (rlivePoint): made static, added parameter emitWarnings which is only
1705         true during the first run out of two,
1706         (findRecursiveSucc, findRecursivePred): removed,
1707         (computeLiveRanges): made static, added parameter emitWarnings,
1708         (dumpIcRlive): added for debugging only
1709         * src/SDCClrange.h: added boolean parameter to computeLiveRanges(),
1710         removed prototype of setFromRange()
1711         * src/SDCCopt.c (eBBlockFromiCode): added new parameter emitWarnings
1712         in call of computeLiveRanges()
1713         * support/regression/tests/bug-895992.c: added
1714         * support/regression/tests/bug-971834.c: added
1715         * support/valdiag/tests/bug-895992.c: added
1716         * support/valdiag/tests/bug-971834.c: added
1717
1718 2005-12-18 Raphael Neider <rneider AT web.de>
1719
1720         * src/pic16/gen.c: added IS_DIRECT macro for "direct" operands,
1721           (genUnpackBits): improved code for direct operands,
1722           (genPackBits): improved code for literal assignment to bitfields
1723             and for direct destination operands (no FSR indirection),
1724             prevented redundant AND, fixes #1362800,
1725           (AccLsh): added parameter to disable masking of the result
1726         * src/pic16/pcode.c (pic16_safepCodeUnlink): fixed to work with
1727           skip instructions with side-effects (like incfsz),
1728           (pic16_pCodeIsAlive): suppress verbose output unless pcode_verbose,
1729         * src/pic16/pcoderegs.c (RemoveRegsFromSet): removed annoying warning
1730         * device/lib/pic16/Makefile.common.in: added --asm=@GPASM@ to CC,
1731           fixes #1375263
1732
1733 2005-12-11 Bernhard Held <bernhard AT bernhardheld.de>
1734
1735         * src/SDCCicode.c (geniCodeAssign): fixed bug 11369874, don't use
1736         volatile variables as spill location
1737
1738 2005-12-10 Bernhard Held <bernhard AT bernhardheld.de>
1739
1740         * src/SDCCcse.c (findCheaperOp): fixed bug 1376320, copy signedness to
1741         replacing literals
1742         * support/regression/tests/bug-1376320.c: added
1743
1744 2005-12-08 Raphael Neider <rneider AT web.de>
1745
1746         * src/pic/device.c: renamed is_shared to pic14_is_shared
1747         * src/pic/gen.c (genIfx): re-enabled handling of sbits
1748         * src/pic/glue.c (emitSymbolToFile): added workaround for sbits,
1749           (is_valid_identifier): added for above workaround
1750
1751 2005-12-07 Maarten Brock <sourceforge.brock AT dse.nl>
1752
1753         * device/lib/Makefile.in: fixed to enable port-specific-objects
1754         * device/lib/ds390/i2c390.c (BitOutI2C): optimized by making bout unsigned
1755           char, thanks Hubert Sack
1756         * doc/sdccman.lyx: documented --xstack-loc,
1757           elaborated a bit more on interrupts and pitfalls,
1758           removed "setjmp/longjmp unsupported",
1759           documented some unsupported C99 features
1760         * src/SDCCmain.c (linkEdit): adapted default lib path for --stack-auto
1761         * src/SDCCpeeph.c (readRules): inserted patch 1367130 for finding missing
1762           if, thanks Hubert Sack
1763         * src/mcs51/gen.c (genEndFunction): enabled "pop psw" for regbank 0 isr
1764         * support/regression/Makefile.in: test-mcs51-stack-auto no longer needs to
1765           make make_library
1766         * support/regression/get_ticks.py: new, get cpu cycles and code size, so
1767           regression tests can report resource usage (rfe 700441)
1768         * support/regression/collate-results.py: report resource usage
1769         * support/regression/ports/ds390/spec.mk,
1770         * support/regression/ports/hc08/spec.mk,
1771         * support/regression/ports/mcs51/spec.mk,
1772         * support/regression/ports/ucz80/spec.mk: run sim output through get_ticks
1773         * support/regression/ports/ds390/uCsim.cmd,
1774         * support/regression/ports/hc08/uCsim.cmd,
1775         * support/regression/ports/mcs51/uCsim.cmd,
1776         * support/regression/ports/ucz80/uCsim.cmd: inserted "state" to report time
1777         * support/regression/ports/mcs51-stack-auto/spec.mk: no need to build the
1778           library, use the default one
1779         * support/regression/ports/mcs51-xstack-auto/spec.mk: inserted rules for
1780           building the library
1781
1782 2005-12-06 Maarten Brock <sourceforge.brock AT dse.nl>
1783
1784         * config.dsp: added dependency on .version and configure_vc.awk
1785         * device/include/setjmp.h: updated for --stack-auto and --xstack
1786         * device/include/mcs51/at89c51snd1c.h: corrected line endings
1787         * device/include/mcs51/XC866.h: added, thanks Llewellyn van Zyl
1788         * device/lib/_setjmp.c: updated for --stack-auto and --xstack
1789         * device/lib/libsdcc.lib: added _setjmp
1790         * src/SDCCast.c (createIvalCharPtr): fixed warnings,
1791           (decorateType): fixed bug 1372851,
1792           (optimizeGetHbit): fixed warning
1793         * src/SDCCglue.c (printIvalChar, printIvalArray): adapted for flexible
1794           array initialisation
1795         * support/regression/tests/bug1057979.c: added test for bug 1358192
1796         * support/regression/tests/setjmp.c: added, test for setjmp/longjmp
1797
1798 2005-12-03 Borut Razem <borut.razem AT siol.net>
1799
1800         * support/scripts/sdcc.nsi: added /SOLID option to "SetCompressor lzma"
1801           command since the NSIS was upgraded to version 2.11 on CF x86-linux2
1802
1803 2005-11-29 Bernhard Held <bernhard AT bernhardheld.de>
1804
1805         * src/SDCCast.c (createIvalStruct, createIvalArray, createIvalPtr,
1806         createIval): implement symbol independant "flexible array member",
1807         (createIvalCharPtr): implemented flexible array initialisation with a
1808         string
1809         * src/SDCCsymt.c (copyStruct): removed,
1810         (getSize): fixed misleading comment,
1811         (getAllocSize): removed, the additional allocation size is now in
1812         sym->flexArrayLength,
1813         (checkStructFlexArray): new, syntax checks for flexible array members,
1814         (compStructSize): added syntax checks for "flexible array members"
1815         (copyStruct): removed,
1816         (copyLinkChain): removed inefficient fix for bug 770487
1817         * src/SDCCglue.c (emitRegularMap): getAllocSize has been removed
1818         * src/SDCCsymt.h: added structdef.b_flexArrayMember and
1819         symbol->flexArrayLength
1820         * src/SDCCerr.c,
1821         * src/SDCCerr.h: added W_INVALID_FLEXARRAY, W_C89_NO_FLEXARRAY,
1822         E_FLEXARRAY_NOTATEND and E_FLEXARRAY_INEMPTYSTRCT
1823         * support/regression/tests/structflexarray.c: added
1824         * support/valdiag/tests/structflexiblearray.c: added
1825
1826 2005-11-29 Bernhard Held <bernhard AT bernhardheld.de>
1827
1828         * src/SDCCast.c (decorateType): fixed bug 1368489
1829         * support/Util/SDCCerr.c,
1830         * support/Util/SDCCerr.h: added warning W_CMP_SU_CHAR
1831
1832 2005-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1833
1834         * device/include/mcs51/at89c51snd1c.h: added file submitted by
1835           Weston T. Schmidt <schmidtw AT users.sourceforge.net>, patch #1368001
1836
1837 2005-11-27 Borut Razem <borut.razem AT siol.net>
1838
1839         * support/cpp2/cppinit.c, support/cpp2/cpplib.h, support/cpp2/mkdeps.c,
1840           support/cpp2/mkdeps.h: added command line option
1841           -obj-ext=<extension> to SDCPP to define object file externion, used
1842           for generation of make dependencies (-M)
1843         * src/SDCCmain.c: pass -obj-ext=<extension> to SDCPP
1844
1845 2005-11-26 Borut Razem <borut.razem AT siol.net>
1846
1847         * support/scripts/sdcc.nsi: added small-stack-auto libraries,
1848           added missing device/lib/mcs51/crt*.asm, pic and pic16 sources,
1849           added pic and pic16 libraries
1850
1851 2005-11-26 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
1852
1853         * device/include/float.h: Corrected typo in prototype of __fsgt
1854
1855 2005-11-25 Borut Razem <borut.razem AT siol.net>
1856
1857         * sdcc/device/lib/Makefile.in, sdcc/device/lib/incl.mk:
1858           added creation of model-mcs51-stack-auto libraries
1859
1860 2005-11-24 Bernhard Held <bernhard AT bernhardheld.de>
1861
1862         * src/SDCCsymt.c (copyLinkChain): fixed bug 770487, copy structdef
1863         and fields-list too
1864         * src/SDCCast.c (createIvalArray): removed obsolete comment
1865
1866 2005-11-24 Borut Razem <borut.razem AT siol.net>
1867
1868         * sdcc/device/lib/Makefile.in: remove all unnecessary files, 2nd try...,
1869           added missing device/lib/mcs51/crt*.asm sources
1870
1871 2005-11-23 Bernhard Held <bernhard AT bernhardheld.de>
1872
1873         * src/SDCCast.c (createIvalCharPtr): fixed bug 1348271
1874
1875 2005-11-22 Maarten Brock <sourceforge.brock AT dse.nl>
1876
1877         * device/lib/_fs2schar.c,
1878         * device/lib/_fs2sint.c,
1879         * device/lib/_fs2slong.c: optimized inline asm
1880
1881 2005-11-21 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
1882
1883         * device/lib/_fs2slong.c, device/lib/_fs2sint.c, device/lib/_fs2char.c:
1884           Better handling of floats between -1.0 and 0.0.
1885
1886 2005-11-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1887
1888         * src/mcs51/peeph.def: added missing "if"s as noted by Hubert Sack.
1889           (the missing "if"s prohibited removal of redundant labels)
1890
1891 2005-11-19 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
1892
1893         * device/lib/_fs2slong.c, device/lib/_fs2sint.c, device/lib/_fs2char.c:
1894           Properly convert floats between -1.0 and 0.0 to long, int, and char
1895           types (max integer value of negative floats tends to zero).
1896         * device/lib/modff.c, device/lib/ceilf.c, device/lib/floorf.c:
1897           Removed changes made so to work properly with floats between
1898           -1.0 and 0.0, as the problem is fixed in _fs2slong.c, _fs2sint.c,
1899           and _fs2char.c
1900
1901 2005-11-18 Bernhard Held <bernhard AT bernhardheld.de>
1902
1903         * src/SDCCcse.c (ReplaceOpWithCheaperOp): minor fix for debugging only
1904         * src/mcs51/gen.c (genUnpackBits): better code and a fix,
1905         (genCast) cosmetic change
1906         * src/ds390/gen.c (genUnpackBits, ): ported from mcs51
1907         * src/ds390/ralloc.c (packRegsForAssign): ported fix for bitfields
1908         from mcs51
1909         * support/regression/tests/bitfields (testSignedBitfields): added
1910
1911 2005-11-18 Borut Razem <borut.razem AT siol.net>
1912
1913         * sdcc/device/lib/Makefile.in: remove all unnecessary files
1914         * device/lib/pic/Makefile.rules, device/lib/pic16/Makefile.subdir:
1915           introduced SILENT option to make building of pic16 libraries less
1916
1917 2005-11-18 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
1918
1919         * device/lib/modff.c, device/lib/ceilf.c, device/lib/floorf.c:
1920           Now they work properly with floats between -1.0 and 0.0
1921         * device/lib/printf_large.c: Removed temporary patch for bug 1358192
1922
1923 2005-11-18 Maarten Brock <sourceforge.brock AT dse.nl>
1924
1925         * src/SDCCicode.c (printOperand): added missing else
1926
1927 2005-11-18 Bernhard Held <bernhard AT bernhardheld.de>
1928
1929         * src/SDCCsymt.c (computeType): fixed bug 1358192: added missing else,
1930         reformatted for better readability
1931         * src/mcs51/gen.c (genUnpackBits): initial, incomplete support for
1932         signed bitfields
1933
1934 2005-11-17 Borut Razem <borut.razem AT siol.net>
1935
1936         * device/lib/pic16/Makefile.rules, device/lib/pic16/Makefile.subdir:
1937           introduced SILENT option to make building of pic16 libraries less
1938           verbose - used for nightly snapshot build
1939         * doc/sdccman.lyx: documented that SDCDB and ucSim are currently not
1940           available on Win32 platforms.
1941         * sdcc/device/lib/Makefile.in: added library sources for mcs51, small,
1942           medium, large, pic and pic16
1943
1944 2005-11-16 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
1945
1946         * device/lib/printf_large.c: Temporary patch for bug 1358192:
1947           printf("%f"...) sets fraction to zero.
1948
1949 2005-11-16 Raphael Neider <rneider AT web.de>
1950
1951         * src/pic/pcode.c (LinkFlow): handle empty flows correctly,
1952           fixes #1357221
1953         * src/pic/gen.c (genIfx): implemented for CARRY bit
1954         * src/pic16/gen.c (genAssign,genCast): fixed assigning/casting
1955           to generic pointers, fixes #1357332,
1956           (pic16_movLit2f): NEW,
1957           (pic16_storeForReturn,genDataPointerSet): use pic16_movLit2f
1958
1959 2005-11-14 Maarten Brock <sourceforge.brock AT dse.nl>
1960
1961         * src/SDCCmain.c (parseCmdLine): fixed bug 1356800, thanks rsudjian
1962
1963 2005-11-11 Raphael Neider <rneider AT web.de>
1964
1965         * src/pic/gen.c: handle FPOINTERS like POINTERS everywhere
1966         * src/pic16/gen.c (pic16_derefPtr): now works for non-pointers as well,
1967           compute pointer's type from operand,
1968           (genUnpackBits,genPackBits): handle FPOINTERS correctly, re-indented,
1969           improved single bit reads, fixes bug #1353379
1970
1971 2005-11-09 Borut Razem <borut.razem AT siol.net>
1972
1973         * support/scripts/sdcc.nsi: added lib/pic to the package
1974
1975 2005-11-08 Maarten Brock <sourceforge.brock AT dse.nl>
1976
1977         * src/SDCCval.c (valUnaryPM): fixed bug 1350699
1978
1979 2005-11-06 Maarten Brock <sourceforge.brock AT dse.nl>
1980
1981         * support/regression/tests/bug1348008.c: added
1982         * src/mcs51/gen.c (saveRBank, unsaveRBank): fixed bug 1348008
1983         * support/regression/tests/bug1337835.c: updated comment
1984
1985 2005-11-06 Borut Razem <borut.razem AT siol.net>
1986
1987         * sim/ucsim/error.cc, sim/ucsim/errorcl.h,
1988           sim/ucsim/sim.src/stack.cc, sim/ucsim/sim.src/stackcl.h,
1989           sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
1990           sim/ucsim/sim.src/mem.cc, sim/ucsim/sim.src/memcl.h,
1991           sim/ucsim/cmd.src/set.cc, sim/ucsim/cmd.src/show.cc:
1992           dynamic construction of cl_error_class and derivates - 2.nd try
1993
1994 2005-11-05 Borut Razem <borut.razem AT siol.net>
1995
1996         * sim/ucsim/sim.src/error.cc: fixed uninitialized class member variable
1997           bug, which caused Bus Errors on sparc solaris
1998
1999 2005-11-04 Borut Razem <borut.razem AT siol.net>
2000
2001         * sim/ucsim/error.cc, sim/ucsim/errorcl.h,
2002           sim/ucsim/sim.src/stack.cc, sim/ucsim/sim.src/stackcl.h,
2003           sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
2004           sim/ucsim/sim.src/mem.cc, sim/ucsim/sim.src/memcl.h,
2005           sim/ucsim/cmd.src/cmdconf.cc: dynamic construction of cl_error_class
2006           and derivates to resolve the initialization problem on OSX
2007
2008 2005-11-02 Borut Razem <borut.razem AT siol.net>
2009
2010         * sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/newcmd.cc:
2011           corrected typo - #include <winsock2.h>
2012
2013 2005-11-02 Maarten Brock <sourceforge.brock AT dse.nl>
2014
2015         * src/asm.c (printILine): always close tmpFile, thanks Beau E. Cox,
2016           (_asxxxx_mapping): added org directive for future enhancements
2017
2018 2005-11-01 Borut Razem <borut.razem AT siol.net>
2019
2020         * sim/ucsim/app.cc, sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/newcmd.cc:
2021           enabled sockets on WIN32
2022         * sim/ucsim/cmd.src/newcmd.cc: fixed bug with uninitialized variables
2023
2024 2005-10-31 Borut Razem <borut.razem AT siol.net>
2025
2026         * support/regression/generate-cases.py: escape backslashes in {testcase}:
2027           WIN32 backslash path delimiters should be escaped when used in C strings
2028         * support/regression/tests/bitfields.c: exclude failing assertions for
2029           __CYGWIN32__ and __MINGW32__ hosts
2030
2031 2005-10-30 Borut Razem <borut.razem AT siol.net>
2032
2033         * src/SDCCutil.c: corrected double comparison typo
2034
2035 2005-10-30 Maarten Brock <sourceforge.brock AT dse.nl>
2036
2037         * device/lib/medium/Makefile: added for new memory model medium
2038         * device/include/asm/mcs51/features.h: updated for medium/pdata
2039         * device/include/mcs51/c8051f120.h: added sfr16/sfr32 definitions,
2040           added Multiply & Accumulate sbit's and MAC0_PAGE define
2041         * device/include/mcs51/c8051f300.h: added sfr16 definitions
2042         * device/include/mcs51/c8051f310.h: added sfr16 definitions
2043         * device/lib/_mullong.c: update for medium model
2044         * device/lib/incl.mk: added medium model
2045         * doc/sdccman.lyx: documented medium model
2046         * src/SDCCast.c (isBitAndPow2): simplified using updated powof2
2047         * src/SDCCicode.c (geniCodeMultiply, geniCodeDivision): use updated powof2
2048         * src/SDCCmain.c (optionsTable, linkEdit): enabled medium model
2049         * src/SDCCmem.c (allocIntoSeg): set iaccess for pdata symbols,
2050           (allocParms): set SCLS and OCLS to pdata for medium model
2051         * src/SDCCsymt.c (processFuncArgs): use default_local_map and set iaccess
2052           for pdata,
2053           (powof2): return <0 if not power of 2
2054         * src/avr/gen.c (genBitWise): use updated powof2
2055         * src/mcs51/gen.c (genMinusDec): use acc if necessary,
2056           (shiftR2Left2Result): small optimization in setup, save acc when storing,
2057           (shiftLLeftOrResult): use B if necessary
2058         * src/mcs51/main.c (_mcs51_finaliseOptions, mcs51_port): added medium model
2059         * src/mcs51/peeph.def: renamed 226 to 226.b, added 226.a
2060         * src/pic/main.c (_pic14_do_link): made void parameter list explicit
2061         * support/regression/Makefile.in: added test-mcs51-medium
2062         * support/regression/ports/mcs51-medium/spec.mk: added to test medium model
2063
2064 2005-10-28 Bernhard Held <bernhard AT bernhardheld.de>
2065
2066         * src/SDCCsymt.c (compStructSize): make bitfields without (un)signed
2067         specifier unsigned
2068         * device/lib/time.c (mktime): fixed bug 1334315
2069
2070 2005-10-28 Raphael Neider <rneider AT web.de>
2071
2072         * device/include/pic/p16f_common.inc: added common declarations
2073         * src/pic/ralloc.c (initStack): moved regs *r to block start for Alpha
2074
2075 2005-10-27 Maarten Brock <sourceforge.brock AT dse.nl>
2076
2077         * src/mcs51/gen.c (getTempRegs): return 0 if not enough registers found,
2078           (aopPutUsesAcc): added to predict accumulator use,
2079           (assignResultValue): save acc if necessary,
2080           (genMinusDec): store result if indirectly addressed,
2081           (genDivOneByte):  save acc if necessary,
2082           (movLeft2Result): bugfix if left already in acc,
2083           (genAnd, genOr, genXor, shiftL2Left2Result, shiftR2Left2Result): pay more
2084             attention to accumulator use (esp. pdata),
2085           (genReceive): receive pdata correctly
2086         * src/SDCCicode.c (isOperandInPagedSpace): added to detect pdata operands
2087         * src/SDCCicode.h: added isOperandInPagedSpace prototype
2088
2089 2005-10-27 Raphael Neider <rneider AT web.de>
2090
2091         * doc/sdccman.lyx: corrected version (should be 2.5.4 not 2.5.5)
2092
2093 2005-10-27 Raphael Neider <rneider AT web.de>
2094
2095         * .version: changed version to 2.5.4
2096         * doc/sdccman.lyx: changed version to 2.5.4, added some remarks to PIC14
2097         * device/lib/pic/libsdcc/{_mulint.c,_mullong.c}: use unsigned literals,
2098           (_divschar.c,divuchar.c,_mulchar.c,_modschar.c,_moduchar): NEW,
2099             arithmetics support routines
2100         * device/lib/pic/Makefile.rules: have assembler sources preprocessed
2101         * device/lib/Makefile.in: also create installdir for pic
2102
2103         * src/SDCCopt.c (cnvToFcall): mark support routines `extern' for
2104           pic14 port as well
2105         * src/pic/device.c (dump_sfr): rewritten to delegate register
2106           placement to the linker (use `extern sym' rather than sym EQU addr),
2107           (validAddress): fixed to check last specified address
2108         * src/pic/gen.c (aopForSym): added code to deal with array (useless?),
2109           (popGetLit): truncate literal value to 8 bit,
2110           (popGet): moved assert to more appropriate place
2111           (popGetExternal): create pCode operand from and mark the according
2112             symbol as being `extern'
2113           (popGetAddr): added sanity check on immediate's offset, provide
2114             GPOINTER tag on demand
2115           (aopPut): fixed for immediates,
2116           (mov2w_op): move operand's address or contents to WREG (depending on
2117             operand type), safer variant of mov2w,
2118           (movwf,call_libraryfunc): NEW, handy abbreviations,
2119           (get_argument_pcop,get_return_val_pcop,pass_argument,
2120           get_returnvalue): interface for accessing function parameters and
2121             return values,
2122           (assignResultValuei,genRet): use new parameter/return value interface
2123           (pic14_getDataSize): back to old version handling generic pointers,
2124           (pic14_toBoolean,genNot,genCpl,genCmpEq,genOrOp): heavily rewritten,
2125             provided implementation and/or fixed old one,
2126           (genMultOneByte,genDivOneByte,genModOneByte): implemented as library
2127             calls, removed legacy 8051 reference code
2128           (AccLsh,AccRsh): rewritten and fixed to deal with signed operands
2129           (loadSignToC): NEW, move the operands sign bit to CARRY,
2130           (genGenericShift): NEW, replaces genLeftShift, genRightShift and
2131             genRightShiftSigned, accepts negative shift counts,
2132           (setup_fsr): load FSR and adjust IRP (indirect memory access),
2133           (emitPtrByteGet,emitPtrByteSet): rewritten, now works with
2134             generic pointers, __data pointers and __code pointers,
2135           (genUnpackBits,genPackBits): rewritten to work with generic pointers
2136             and signed bitfields, limit bitfields to 8 bit,
2137           (genDataPointerGet): fixed number of bytes read,
2138           (genGenPointerGet,genConstPointerGet): fixed bitfield access,
2139           (genPointerGet,genPointerSet): fixed handling of __code pointers,
2140             pointers to constant data are no longer assumed to point to __code
2141             space, removed invalid pointer types,
2142           (bitpatternFromVal): retrieve the PICs representation of an integer
2143             or float literal,
2144           (genDataPointerSet): fixed assigning to po_immediate operands,
2145           (genGenPointerSet): implemented as library call,
2146           (genIfx): fixed incorrect condition,
2147           (genAddrOf): limit generic pointers' addresses to 2 bytes,
2148             provide GPOINTER tag according to destination's storage class,
2149           (genCast): added code to handle casting to generic pointers, added
2150             sign-/zero extension of the result
2151           (aop_isLitLike,op_isLitLike): fixed handling of immediates
2152         * src/pic/gen.h: added macros to access IRP bit in STATUS register
2153         * src/pic/genarith.c (genAddLit): use min(result's,left's) size, sign
2154           extend the result
2155         * src/pic/glue.c (is_shared_address,is_shared): check whether a given
2156           address/register resides in the shared banks
2157           (emitSymbolToFile): improved to handle global and `pinned' symbols,
2158             put all variables into separate sections (have the linker arrange
2159             them)
2160           (picglue): put init code and interrupt handlers in separate sections
2161         * src/pic/main.c: added port specific options table, modified to PORT
2162           structure to make GPOINTERs 3 byte, added pic14_options
2163           (_pic14_do_link): private linking routine (update paths to libraries,
2164             add libsdcc.lib by default)
2165         * src/pic/main.h: declare pic14_options
2166         * src/pic/pcode.c: fixed instructions i/o relations,
2167           (RegCond): reverted to correct version,
2168           (newpCodeOpLit): truncate literals to 8 bit,
2169           (genericPrint): added debug output,
2170           (getRegFromInstruction): fixed for various operand types, simplified
2171           (BuildFlow): fixed broken handling of isntructions with labels
2172           (LinkFlow): start at last instruction in flow (skip trailing comments),
2173             pass the flow on to the next instruction after CALL
2174           (pCodeReplace): NEW, replace a pCode and move meta data to the new one
2175           (insertPCodeInstruction): fixed inserting after a skip instruction,
2176           (DoBankSelect): fixed for labeled instructions
2177           (OptimizepBlock): honor --nopeep switch
2178           (AnalyzeFlow,ReuseReg): prevent crash on source files with no function
2179         * src/pic/pcodepeep.c (pCodePeepMatchRule): prevent NULL pointer accesses
2180         * src/pic/pcoderegs.c (regIsLocal): NEW, check visibility of a register
2181           (pCodeOptime2pCodes): allow disabling this optimization via
2182             --no-pcode-opt due seldomly occuring bugs, fixed some conditions
2183             but is still buggy), started implementation of a dataflow based
2184             pCode optimization (CSE + dead code elimination)
2185           (pCodeRegMapLiveRangesInFlow): removed bogus inCond
2186         * src/pic/ralloc.c (initStack): renamed stack registers to STK%d, the new
2187           names are independant of the stack location and therefore portable across
2188           devices
2189
2190 2005-10-27 Maarten Brock <sourceforge.brock AT dse.nl>
2191
2192         * src/mcs51/ralloc.c (bitType): added to detect bit variables,
2193           (selectSpil): fixed bug 1337835 by not spilling bit variables
2194         * support/regression/tests/bug1337835.c: added test for this bug
2195         * src/mcs51/peeph.def: restart after rule 3.c,
2196           addded rules 263.x to optimize loading constants
2197
2198 2005-10-26 Raphael Neider <rneider AT web.de>
2199
2200         * src/SDCCsymt.c (compStructSize): allow signed bitfields for PIC ports
2201         * src/pic16/gen.c (genUnpackBits): support signed bitfields,
2202           (genAssign): emit warning when casting literals to generic pointer
2203             type, also applies when taking the address of a fixed variable,
2204           (genCast): improved casting to generic pointers
2205         * src/pic16/glue.c (pic16emitStaticSeg): fixed(?) handling of fixed
2206           extern variables, added verbose error message
2207         * device/include/pic16/{string.h,errno.h}: added #pragma library c
2208
2209 2005-10-26 Bernhard Held <bernhard AT bernhardheld.de>
2210
2211         * src/mcs51/gen.c (genMinus): fixed bug 1270906: reverse subtraction,
2212         carry must be complemented too
2213         * src/mcs51/peeph.def: addded rule 262 to remove double cpl c, which
2214         could be emitted by genMinus
2215         * src/SDCCval.c (constVal): fixed bug 1305065
2216
2217 2005-10-25 Bernhard Held <bernhard AT bernhardheld.de>
2218
2219         * src/SDCCast.c (addCast): added promotion for bit variables
2220         (decorateType): emit W_COMPLEMENT before the problem vanishes behind
2221         promotion casts + optimisation
2222         (optimizeGetWord): fix warning 'i' might be used uninitialized
2223         * src/mcs51/gen.c (genCpl): removed W_COMPLEMENT
2224         * src/ds390/gen.c (genCpl): removed W_COMPLEMENT
2225
2226 2005-10-24 Bernhard Held <bernhard AT bernhardheld.de>
2227
2228         * src/SDCCicode.c (ast2iCode): reverted to 1.224 because of regression:
2229         all chars are promoted to int; promotion should be handled in SDCCast.c
2230
2231 2005-10-15 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2232
2233         * device/lib/_strcmp.c: Fixed bug 1326457
2234
2235 2005-10-11 Raphael Neider <rneider AT web.de>
2236
2237         * device/lib/pic16/libio/i2c.ignore: added 1320, fixes broken builds
2238         * device/lib/pic16/libdev/pic18f1320.c: added 1320's device library
2239
2240 2005-10-05 Maarten Brock <sourceforge.brock AT dse.nl>
2241
2242         * src/SDCC.y (AT): fixed bug with sfr32 addresses when built with GCC
2243         * support/regression/tests/sfr16.c: added test for the sfr32 bug
2244
2245 2005-10-04 Raphael Neider <rneider AT web.de>
2246
2247         * device/include/pic16/pic18fregs.h, src/pic16/devices.inc,
2248           device/lib/pic16/pics.all: added pic18f1320
2249         * src/pic16/pcode.c (mnem2key): fixed prototype's argument mismatch
2250
2251 2005-09-30 Raphael Neider <rneider AT web.de>
2252
2253         * src/pic16/device.c (Pics16[]): moved device descriptions to devices.inc
2254         * src/pic16/devices.inc: NEW, provides device descriptions
2255         * src/pic16/gen.c (genInline): fixed handling of ';'-comments
2256
2257 2005-09-26 Maarten Brock <sourceforge.brock AT dse.nl>
2258
2259         * src/SDCCicode.c (operandOperation): added GETABIT, GETBYTE, GETWORD and
2260           GETHBIT
2261
2262 2005-09-25 Maarten Brock <sourceforge.brock AT dse.nl>
2263
2264         * doc/sdccman.lyx: updated Highest Order Bit documentation,
2265           documented Any Order Bit, Higher Order Byte and Higher Order Word
2266         * src/SDCC.y: added tokens GETABIT, GETBYTE, GETWORD
2267         * src/SDCCast.c (optimizeGetHbit): updated to also accept bool=expr&(1<<n),
2268           (optimizeGetAbit): new, to get any bit, not only the high bit,
2269           (optimizeGetByte): new, to get a byte from a (long) int: expr>>(8*n),
2270           (optimizeGetWord): new, to get a word from a long int: expr>>(8*n),
2271           (isConformingBody): also check GETABIT, GETBYTE, GETWORD,
2272           (decorateType): '&': also try GETABIT, GETBYTE, GETWORD optimization,
2273             RIGHT_OP: also try GETBYTE, GETWORD optimization,
2274             GETABIT, GETBYTE, GETWORD: decorate them,
2275           (isShiftRightLitVal, isBitAndPowOf2): new helper functions,
2276           (ast_print): added GETABIT, GETBYTE, GETWORD
2277         * src/SDCCcse.c (isSignedOp): added GETABIT, GETBYTE, GETWORD
2278         * src/SDCCicode.c (codeTable): added GETABIT, GETBYTE, GETWORD,
2279           (geniCodeBinary): new generic binary icode,
2280           (ast2iCode): added GETABIT, GETBYTE, GETWORD
2281         * src/port.h: updated comment for PORT.hasExtBitOp
2282         * src/mcs51/gen.c (genGetAbit): new, to get any single bit,
2283           (genGetByte): new, to get a single byte,
2284           (genGetWord): new, to get a word from a long,
2285           (gen51Code): added GETABIT, GETBYTE, GETWORD
2286         * src/mcs51/main.c (hasExtBitOp): added GETABIT, GETBYTE, GETWORD
2287
2288 2005-09-23 Raphael Neider <rneider AT web.de>
2289
2290         * configure.in, configure: have device/lib/pic configured
2291         * device/lib/Makefile.in: added model-pic14
2292         * device/lib/clean.mk: added pic/ to clean rule
2293         * device/lib/pic: added rudimentary pic14 library providing support
2294           functions for multiplication/division/generic pointer access
2295         * src/SDCCopt.c (convilong): mark support functions as extern
2296           for pic14 port as well
2297         * src/pic/gen.c (genMult): added assertions,
2298           (genpic14Code): emit warning on unhandled iCodes
2299         * src/pic/main.c (_hasNativeMulFor): return true only for 8x8 bit
2300         * src/pic/pcode.c (pCodeOpCopy),
2301         * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): fixed handling of various
2302           pCodeOpReg-subtypes (PO_{STATUS,INTCON,PCL,PCLATH,PCLATU,BSR,
2303           SFR_REGISTER}), made safe for future extensions
2304         * src/pic16/pcode.c (pic16_safepCodeUnlink): allow for removal of
2305           instructions even if preceeded by SKIP instructions (also remove
2306           them); removed unused code
2307         * src/pic16/pcode.h: added arg2 to pCodeOpLit to match pCodeOpLit2,
2308           prevents leaving parts of the structure uninitialized after copying
2309
2310 2005-09-22 Maarten Brock <sourceforge.brock AT dse.nl>
2311
2312         * src/mcs51/gen.c (genMinus): fix for undetected bug introduced 3 months
2313           ago by me
2314         * support/regression/tests/addsub.c: added test for the bug
2315
2316 2005-09-21 Raphael Neider <rneider AT web.de>
2317
2318         * device/include/pic16/pic18f1220.h,
2319           device/lib/pic16/libdev/pic18f1220.c: added ECCPAS sfr and bitfield
2320         * device/lib/pic16/Makefile.rules: added missing opening paren
2321         * src/pic16/gen.c (pic16_genNot,pic16_genCpl): removed as these
2322           are provided in genutils.c,
2323           (genUminusFloat,genUminus,genCmpEq): added asserts on different
2324           operand/result sizes,
2325           (genCmp): assert on NULL pointers first, then check deref'ed values
2326         * src/pic16/genutils.c (pic16_genCpl): fixed for different operand/
2327           result size
2328
2329 2005-09-18 Raphael Neider <rneider AT web.de>
2330
2331         * src/pic16/gen.c (genFarPointerGet,genFarPointerSet): removed
2332           as these are now unused,
2333           (genPointerGet,genPointerSet): handle FPOINTERs like POINTERs
2334         * src/pic16/pcode.c (pic16_symIsSpecial): assume REG_TMPs to be
2335           local, avoids uninitialized pointer dereference on r->name
2336         * src/pic16/ralloc.c (newReg): fixed indentation
2337
2338 2005-09-13 Maarten Brock <sourceforge.brock AT dse.nl>
2339
2340         * src/SDCCval.c (constVal): fixed bug 730366
2341         * support/Util/SDCCerr.c,
2342         * support/Util/SDCCerr.h: added warning W_INVALID_INT_CONST
2343
2344 2005-09-10 Maarten Brock <sourceforge.brock AT dse.nl>
2345
2346         * as/mcs51/lkmem.c (summary2): fixed report for absolute areas (bug 1210220)
2347
2348 2005-09-09 Maarten Brock <sourceforge.brock AT dse.nl>
2349
2350         * src/mcs51/peeph.def (241.x): fixed bug when comparing generic pointers
2351
2352 2005-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
2353
2354         * as/hc08/lkaomf51.c (OutputName): made name unsigned char,
2355           (hex2dec): made hex_digit unsigned char, removed ascii dependance
2356         * as/mcs51/lkaomf51.c (OutputName): made name unsigned char,
2357           (hex2dec): made hex_digit unsigned char, removed ascii dependance
2358         * as/mcs51/lkarea.c (lnkarea2): sort absolute areas to the front
2359         * packihx/packihx.c (hexDigit): made c unsigned char
2360         * as/mcs51/lklibr.c (fndsym),
2361         * link/z80/lkgb.c (gb),
2362         * link/z80/lklibr.c (fndsym),
2363         * link/z80/lkrloc.c (relr),
2364         * sim/ucsim/libltdl/ltdl.c (load_deplibs, try_dlopen),
2365         * src/SDCC.lex (checkCurrFile, process_pragma),
2366         * src/SDCCglue.c (spacesToUnderscores),
2367         * src/SDCCmain.c (setParseWithComma, processFile),
2368         * src/asm.c (tvsprintf, printCLine),
2369         * src/avr/gen.c (emitcode, aopPut),
2370         * src/ds390/gen.c (emitcode),
2371         * src/hc08/gen.c (emitcode, emitinline),
2372         * src/mcs51/gen.c (emitcode, genInline),
2373         * src/pic/pcodepeep.c (cvt_extract_destination, cvt_extract_status,
2374           tokenizeLineNode),
2375         * src/pic/ralloc.c (debugLog),
2376         * src/pic16/pcodepeep.c (cvt_extract_destination, cvt_extract_status,
2377           tokenizeLineNode),
2378         * src/pic16/ralloc.c (debugLog),
2379         * src/z80/main.c (_process_pragma):
2380            made all ctype.h function calls safe
2381         * src/SDCCopt.c: include math.h for fabs
2382         * src/SDCCpeeph.c: added macros ISCHARDIGIT, ISCHARSPACE and ISCHARALNUM
2383           and used them throughout the code to make ctype.h function calls safe
2384         * src/ds390/main.c (asmLineNodeFromLineNode),
2385         * src/mcs51/main.c (asmLineNodeFromLineNode): made p unsigned char*
2386         * src/pic/gen.c (DEBUGpic14_emitcode, pic14_emitcode): made lbp
2387            unsigned char*
2388         * src/pic/pcode.c (mnem2key): made mnem unsigned char*,
2389           (newpCodeAsmDir): made ctype.h function calls safe
2390         * src/pic16/gen.c (pic16_emitpcomment, DEBUGpic16_emitcode,
2391           pic16_emitcode):  made lbp unsigned char*
2392         * src/pic16/pcode.c (mnem2key): made mnem unsigned char*,
2393           (pic16_newpCodeAsmDir): made ctype.h function calls safe
2394         * src/xa51/gen.c (emitcode),
2395         * src/z80/gen.c (_emit2): made lbp unsigned char*
2396         * support/Util/MySystem.c (split_command): made cmd_line and p unsigned
2397            char*
2398
2399 2005-09-05 Raphael Neider <rneider AT web.de>
2400
2401         * src/pic16/ralloc.c (pic16_allocDirReg): use device specific
2402           access bank splitpoint
2403
2404 2005-09-05 Raphael Neider <rneider AT web.de>
2405
2406         * device/lib/pic16/libc/Makefile: added (missing) string to SUBDIRS
2407
2408 2005-09-03 Maarten Brock <sourceforge.brock AT dse.nl>
2409
2410         * .version: changed to version 2.5.3
2411         * doc/sdccman.lyx: changed version to 2.5.3,
2412           documented --codeseg and --constseg and pragma codeseg and constseg,
2413           documented bit parameters (reentrant) and bit returning
2414         * src/SDCCicode.c (geniCodeReceive): fixed (possible) bug generating
2415            currFunc->recvSize, but is this ok for all ports?
2416           (ast2iCode): result of ~ on unsigned char must be cast to int for
2417            bool to work
2418         * src/SDCCmem.c (allocGlobal, allocLocal): don't put bit returning
2419           function pointers in bit space
2420         * src/SDCCsymt.c (checkSClass): allow bit returning function pointers,
2421           (processFuncArgs): call port.reg_parm() with reentrancy info
2422         * src/port.h,
2423         * src/avr/main.c,
2424         * src/ds390/main.c,
2425         * src/hc08/main.c,
2426         * src/pic/main.c,
2427         * src/pic16/main.c,
2428         * src/xa51/main.c,
2429         * src/z80/main.c: port.reg_parm prototype extended with
2430           "bool reentrant" parameter
2431         * src/mcs51/main.c (_mcs51_regparm): use parameter reentrant instead of
2432           options.stackAuto for allocating bit register parameters
2433         * src/mcs51/gen.c (genNot): optimized complementing direct bit,
2434           (genSend): set BitBankUsed if it is,
2435           (selectRegBank): factored out of genCall for use in genPcall,
2436           (genCall): removed redundant dtype assignmen, use selectRegBank,
2437           (genPcall): handle returning in Carry properly, save in F0 if needed,
2438           (genReceive): handle bit register parameters
2439         * src/mcs51/ralloc.c (updateRegUsage): update BitBankUsed along the way,
2440           (mcs51_assignRegisters): enable bit registers for all reentrant
2441            functions and don't set BitBankUsed unconditionally
2442         * src/mcs51/peeph.def (177.d): fixed bug if %2==%3
2443         * support/regression/tests/bitvars.c: enable tests for SDCC_STACK_AUTO
2444         * support/regression/tests/funptrs.c: added tests for BOOL and for return
2445
2446 2005-08-27 Borut Razem <borut.razem AT siol.net>
2447
2448         * device/lib/Makefile.in: cp on sparc-solaris (SunOS) and on
2449         ppc-osx (Darwin) does not support -u option. It seems that it is
2450         supported only on Linux - GNU cp
2451
2452 2005-08-25 Borut Razem <borut.razem AT siol.net>
2453
2454         * sim/ucsim/gui.src/serio.src/Makefile.in,
2455           sim/ucsim/s51.src/Makefile.in, sim/ucsim/avr.src/Makefile.in,
2456           sim/ucsim/z80.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
2457           sim/ucsim/xa.src/Makefile.in: install -s changed to 2 steps:
2458           install and strip, since the strip at /usr/ccs/bin should be used
2459           on solaris
2460
2461 2005-08-24 Borut Razem <borut.razem AT siol.net>
2462
2463         * clean.mk, device/lib/clean.mk: find on sparc-solaris does not support -maxdepth option
2464
2465 2005-08-23 Bernhard Held <bernhard AT bernhardheld.de>
2466
2467         * src/SDCCopt.c (convertToFcall): fixed modulus with divisors 1 and
2468         ffffffffu
2469
2470 2005-08-23 Maarten Brock <sourceforge.brock AT dse.nl>
2471
2472         * as/mcs51/aslink.h: completed lkrloc.c prototypes
2473         * as/mcs51/lkmain.c (link_main): fixed warning
2474         * device/include/stdbool.h: ds390 has no advanced bit support yet
2475         * src/SDCC.y: use SPEC_SHORT and renamed _signed to b_signed
2476         * src/SDCCsymt.c: use SPEC_SHORT and renamed _signed to b_signed
2477         * src/SDCCsymt.h (struct specifier): renamed _xxx bitfields to b_xxx
2478           and updated their macros
2479         * src/SDCCval.c (constVal): updated comment for renamed b_long
2480
2481 2005-08-22 Maarten Brock <sourceforge.brock AT dse.nl>
2482
2483         * as/mcs51/asdata.c: changed ctype['['] to BINOP
2484         * as/mcs51/asexpr.c (expr): added case '[' for bit access in bdata,
2485           (term): abused bit 15 of s_addr to indicate bit-addressable bytes,
2486           (oprio): set priority for '['
2487         * as/mcs51/aslink.h: added define R_BIT, and prototypes for adb_bit
2488            and adb_24_bit
2489         * as/mcs51/asm.h: added defines R_BIT and S_BIT
2490         * as/mcs51/lkarea.c (lnksect2): use T for seg BIT_BANK and overlay it
2491         * as/mcs51/lkdata.c: changed ctype['['] to BINOP
2492         * as/mcs51/lkmain.c (Areas51): rel2 contains 12 (=C) areas now,
2493           added overlayable BIT_BANK area
2494         * as/mcs51/lkmem.c (summary): add BIT_BANK to BSEG_BYTES in the report,
2495           (summary2): explain 'T' in legenda
2496         * as/mcs51/lkrloc.c: replaced old K&R style,
2497           (relr): added R_BIT processing,
2498           (errmsg): added "Bit-addressable relocation error",
2499           (adb_bit): added for converting from byte- to bit-addressable space,
2500           (adb_24_bit): added for converting from byte- to bit-addressable space
2501         * device/include/stdbool.h: changed BOOL to __bit for mcs51 as it can be
2502            used in reentrant functions now even as return value
2503         * device/lib/_gptrput.c (_gptrput): removed obsolete code
2504         * src/SDCCast.c (resultTypePropagate): also propagate AND_OP and OR_OP,
2505           (decorateType): case '!', GETHBIT, AND_OP, OR_OP: result in bool or char
2506         * src/SDCCglobl.h: added indicator BitBankUsed
2507         * src/SDCCglue.c (glue): emit area BIT_BANK with byte 'bits' and equ's for
2508            the bit registers b0-b7
2509         * src/SDCCicode.c (operandFromSymbol): removed IS_BITVAR check,
2510           (geniCodeCast): fixed bug 1263853,
2511           (geniCodeLogicAndOr): put result in bool or char,
2512           (geniCodeReceive): added parameter func for accessing the return type,
2513           (geniCodeFunctionBody): pass func to geniCodeReceive
2514         * src/SDCCmain.c: added indicator BitBankUsed
2515         * src/SDCCmem.c (allocLocal): explicitly set sclass for V_BIT
2516         * src/SDCCsymt.c (newBoolLink): added for creating a bool/bit,
2517           (checkSClass): don't put automatic bool/bit on stack,
2518           (checkFunction): removed check on function cannot return bit
2519         * src/SDCCsymt.h: added newBoolLink prototype
2520         * src/mcs51/gen.c (rb1regs): added bit registers,
2521           (movc): created for assigning to carry,
2522           (pushReg, popReg): created for pushing registers,
2523           (sameRegs): check both AOP_REG and AOP_CRY types,
2524           (aopOp): handle bit registers,
2525           (aopPut): optimization no self-assign,
2526           (saveRegisters): push reg->base (bits) only once for bit registers,
2527            and use pushReg,
2528           (unsaveRegisters): pop reg->base only once and use popReg,
2529           (assignResultValue): added parameter func and return in carry for bits,
2530           (genIpush): optimization no reload in A if not changed,
2531           (genSend): bit parameters in reentrant functions are passed in bit
2532            registers by first assigning to bits in B, then save registers and
2533            copy B to bits,
2534           (genCall): handle returning in Carry properly, save it in F0 if needed,
2535           (genPcall): updated assignResultValue call, this is not safe yet for bit
2536            returning function !!!
2537           (genFunction): don't generate equ's for bit registers and use pushReg,
2538           (genEndFunction): take care of bit returning functions and use popReg,
2539           (genRet): return bit in Carry,
2540           (genIfx): optimize bit registers and other directly addressable bits,
2541           (genReceive): updated assignResultValue call
2542         * src/mcs51/main.c (_mcs51_reset_regparm): added regBitParmFlg,
2543           (_mcs51_regparm): allow passing of upto 8 bit parameters in bit
2544            registers when using stack-auto
2545         * src/mcs51/ralloc.c (_G): added allBitregs,
2546           (regs8051): added the bit registers,
2547           (createStackSpil): use macro IS_BIT,
2548           (getRegBit): added to allocate a bit register, else spill,
2549           (getRegBitNoSpil): added to allocate a bit register, else a gpr,
2550           (updateRegUsage): factored out to ease stepping while debugging,
2551           (serialRegAssign): use updateRegUsage, only spill bits if necessary,
2552            also allocate bit registers,
2553           (fillGaps): handle bit registers,
2554           (findAllBitregs): added to create bit vector with all bit registers,
2555           (mcs51_allBitregs): returns this bit vector,
2556           (mcs51_assignRegisters): when using stack-auto use bit registers for
2557            passing parameters and creating local variables
2558         * src/mcs51/ralloc.h: added B0_IDX..B7_IDX and prototype mcs51_allBitregs
2559
2560 2005-08-22 Borut Razem <borut.razem AT siol.net>
2561
2562         * device/lib/Makefile.in: replaced find option -or with -o
2563           to make it run on solaris
2564
2565 2005-08-22 Raphael Neider <rneider AT web.de>
2566
2567         * src/pic16/gen.c (pic16_loadFromReturn): added check for AOP_PCODE,
2568           fixes #1265442 (crash on Solaris)
2569
2570 2005-08-20 Borut Razem <borut.razem AT siol.net>
2571
2572         * configure, configure.in: added tests for libsocket and libnsl libraries,
2573           requred by sdcdb on sparc-solaris; generate support/regression/Makefile
2574           from support/regression/Makefile.in
2575         * support/regression/Makefile.in: added
2576         * device/lib/pic16/Makefile.common.in: force make to use bash shell
2577         * sim/ucsim/libtool: regenerated on sparc-solaris
2578         * sim/ucsim/avr.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
2579           sim/ucsim/s51.src/Makefile.in, sim/ucsim/xa.src/Makefile.in,
2580           sim/ucsim/z80.src/Makefile.in: removed GNU ld specific linker options
2581           -Wl,--start-group and -Wl,--end-group to enable ucsim compilation on
2582           sparc-solaris, which doesn't use GNU ld linker
2583         * device/lib/Makefile.in: cp on sparc-solaris (SunOS) does not support -u option
2584         * as/Makefile: find on sparc-solaris does not support -maxdepth option
2585
2586 2005-08-19 Maarten Brock <sourceforge.brock AT dse.nl>
2587
2588         * src/mcs51/peeph.def: updated comments
2589
2590 2005-08-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2591
2592         * device/lib/_gptrget.c,
2593         * device/lib/_gptrput.c: slightly shorter
2594         * doc/sdccman.lyx: incremented version
2595         * src/mcs51/peeph.def: moved peephole comments to the line of first
2596           change to better keep line correlation, reanimated 186.e
2597         * src/mcs51/peeph.def: renamed similar peepholes by using suffixes
2598
2599 2005-08-16 Slade Rich <slade_rich AT users.sourceforge.net>
2600
2601         * src/pic/pcode.c : Pasted ".line" assembly directives patch from
2602           David Saxton with quotes around file name.
2603
2604 2005-08-15 Borut Razem <borut.razem AT siol.net>
2605
2606         * support/regression/tests/bitfields.c, support/regression/tests/bitvars.c,
2607           support/regression/tests/bitwise.c, support/regression/tests/literalop.c,
2608           support/regression/tests/rotate.c, support/regression/tests/zeropad.c:
2609           make tests run on x86_64 platform
2610
2611 2005-08-13 Raphael Neider <rneider AT web.de>
2612
2613         * device/lib/pic16/Makefile.subdir: weakened clean-intermediate rule
2614           as it might be executed DURING a build (parallel make is wonderful)
2615
2616 2005-08-13 Raphael Neider <rneider AT web.de>
2617
2618         * device/lib/Makefile.in (port-specific-objects-pic16):
2619           revert to cp $(PORT)/bin/*.* $(PORTDIR)
2620         * device/lib/pic16/Makefile: added .PHONY targets, removed builddir
2621           dependency
2622         * device/lib/pic16/Makefile.rules: build subdirs before creating
2623           the library, removed builddir rule, create $(builddir) early in
2624           recurse rule, use empty recurse rule for leaf directories
2625         * device/lib/pic16/Makefile.subdir: added phony targets, ignore
2626           mkdir errors (race condition), removed duplicate suffix "hex"
2627           from clean rules
2628         * device/lib/pic16/libdev/Makefile: recursive make via + and $(MAKE)
2629         * device/lib/pic16/libio/Makefile: create sub-make's builddir early,
2630           prevents mkdir -p from aborting on Alpha
2631
2632 2005-08-12 Raphael Neider <rneider AT web.de>
2633
2634         * src/pic16/glue.c (pic16_print(G)PointerType): do not flush
2635           db-statements in order to allow for arrays of pointers in code
2636           sections to be placed without interspersed 0-padding, fixes
2637           bug #1256215
2638         * (emitStatistics): fixed division by zero for pic18f1220
2639         * src/pic16/pcode.c: buffer (up to) 12 DB directives to allow for
2640           unpadded writing of 8-bit, 16-bit, 24-bit and 32-bit values
2641         * (pic16_emitDS): respect DB_ITEMS_PER_LINE
2642         * (pic16_pCodeConstString): keep track of already emitted string
2643           literals to prevent "duplicate definitions of symbol _str_NR"
2644         * src/pic16/ralloc.c (pic16_allocRegByName): removed not so helpful
2645           debug message
2646         * device/lib/Makefile.in: ignore failing PIC16 library builds
2647         * device/lib/pic16/Makefile: do not build if gputils are missing
2648         * device/lib/pic16/Makefile.common.in: do not enforce MAKEFLAGS=-s
2649
2650 2005-08-10 Raphael Neider <rneider AT web.de>
2651
2652         * device/lib/Makefile.in: fixed copying pic16 libraries (broken by
2653           my last commit)
2654
2655 2005-08-10 Raphael Neider <rneider AT web.de>
2656
2657         * src/*.c, src/pic16/{gen.c,glue.c,main.c}: applied Vangelis
2658           Rokas' patch to add the new fixed point type "__fixed16x16"
2659         * device/lib/pic16/libsdcc/fixed16x16: added Vangelis' support
2660           functions for __fixed16x16 arithmetics
2661         * device/lib/pic16: reimplemented the build system to support
2662           a separate build directory, better handling of libio (create
2663           the library in a separate subdir for each architecture) and
2664           easier configuration (centralized in Makefile.common)
2665
2666 2005-08-07 Raphael Neider <rneider AT web.de>
2667
2668         * src/pic16/gen.c (genrshTwo): fixed sign extension
2669         * src/pic16/device.c: added pic18f2320, 4220 and 4320
2670         * device/include/pic16/pic18f2220.h: changed some bit definitions,
2671           added T0CONbits
2672         * device/include/pic16/pic18f4220.h: NEW, header for
2673           pic18f4220 and pic18f4320
2674         * device/include/pic16/pic18fregs.h: added new devices,
2675           embraced Nop(), ClrWdt(), Sleep() and Reset() with do {} while(0)
2676         * device/include/pic16/signal.h: resolved name clashes
2677           on bit definitions, added DEF_HANDLER2(sig1,sig2,handler)
2678           to also allow testing for interrupt enable bits, added
2679           comments on how to use the macros
2680         * device/lib/pic16/libdev/pic18f2220.c: added T0CONbits
2681         * device/lib/pic16/libdev/pic18f{2320,4220,4320}.c: NEW,
2682           register definitions for the devices
2683         * device/lib/pic16/pics.all: added new devices
2684         * device/lib/pic16/libc/stdlib/calloc.c: fixed zeroing
2685           allocated memory
2686         * device/lib/pic16/libc/stdlib/memfree: do not count
2687           the block header as free memory
2688         * device/lib/pic16/libc/stdlib/memmisc.c (_initHeap):
2689           simplified and added missing end-of-blocklist-marker
2690           (reported by Peter Onion, fixes #1252814)
2691         * (_mergeHeapBlock): fixed loop condition
2692         * device/lib/pic16/libc/stdlib/realloc.c: return NULL for
2693           len==0, restructured code
2694         * device/lib/pic16/libc/stdlib/{malloc,memfreemax}.c: cleaned
2695           up a bit, reduced bitfield accesses, prevent endless loops
2696           in case of heap corruption
2697         * device/lib/pic16/libc/stdlib/x_ftoa.c: disabled
2698           "unreferenced arguments/must return a value" warnings
2699         * device/lib/pic16/libio/usart/ubaud.c (usart_baud):
2700           replaced BAUDREG with SPBRG
2701         * device/lib/pic16/libsdcc/lregs/{lrrest.c,lrst.c},
2702           device/lib/pic16/debug/gstack/gstack.c: replaced
2703           _naked, _asm, _endasm with __naked, __asm, __endasm
2704
2705 2005-08-05 Raphael Neider <rneider AT web.de>
2706
2707         * src/pic16/gen.c (pic16_aopGet): fixed handling of offsets in
2708           AOP_PCODE operands, fixes multibyte union-bitfield-accesses
2709
2710 2005-08-05 Borut Razem <borut.razem AT siol.net>
2711
2712         * device/lib/Makefile.in: added missing ';'
2713         * configure: removed ^M characters
2714
2715 2005-08-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2716
2717         * device/include/mcs51/at89c51ed2.h, device/include/mcs51/p89v51rd2.h,
2718           device/include/mcs51/at89s53.h: changed to GNU Lesser General Public
2719           License
2720
2721 2005-08-04 Borut Razem <borut.razem AT siol.net>
2722
2723         * configure.in: pic16 libraries build 2nd try - enable running
2724           configure in device/lib/pic16
2725         * configure: regenerated from configure.in
2726         * device/lib/Makefile.in: create $(PORT)/bin directory
2727
2728 2005-08-03 Raphael Neider <rneider AT web.de>
2729
2730         * src/pic16/gen.c (pic16_derefPtr): NEW, single place
2731           to get/set values via pointers
2732         * (genUnpackBits,genPackBits): changed detection of
2733           ptr->bitfield vs. sym.bitfield, fixed access via generic
2734           pointers, removed dead (wrong) code for multibyte bitfields
2735         * (genNearPointerGet, genGenPointerGet): removed useless code,
2736           fixed bitfield detection, fixes #1250594
2737         * (genNearPointerSet): removed useless code
2738         * src/pic16/gen.h: renamed pic16_emitpcode to pic16_emitpcode_real
2739           and introduced macro pic16_emitpcode that conditionally emits
2740           the origin of the following pCode (useful for debugging SDCC)
2741         * src/pic16/pcode.c: changed (and disabled) some debug outputs
2742         * (createDefmap): fixed handling of LFSR for --optimize-df
2743
2744 2005-08-02 Borut Razem <borut.razem AT siol.net>
2745
2746         * device/lib/Makefile.in: pic16 libraries build enabled since
2747           gputils-0.13.2 are now localy installed at sourceforge's compile farm
2748
2749 2005-08-02 Raphael Neider <rneider AT web.de>
2750
2751         * src/pic16/gen.c (genPackBits): removed deprecated warning
2752         * (genGenPointerSet): fixed bitfield detection
2753
2754 2005-08-02 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2755
2756         * device/include/mcs51/msm8xc154s.h: Removed PT2 definition, now in 8052.h.
2757
2758 2005-07-31 Raphael Neider <rneider AT web.de>
2759
2760         * device/lib/pic16/libdev/pic18f458.c,
2761           device/include/pic16/pic18f458.h: added missing T0CONbits
2762
2763 2005-07-29 Maarten Brock <sourceforge.brock AT dse.nl>
2764
2765         * device/include/mcs51/msm8xc154s.h: added, thanks to Matthias Arndt
2766
2767 2005-07-28 Maarten Brock <sourceforge.brock AT dse.nl>
2768
2769         * src/mcs51/gen.c (operandsEqu): fixed bug 1246687
2770
2771 2005-07-23 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2772
2773         * device/include/mcs51/at89c51ed2.h: added.
2774
2775 2005-07-23 Raphael Neider <rneider AT web.de>
2776
2777         * src/pic/gen.h: added emitpcode macro for debugging
2778         * src/pic/gen.c (emitpcode): renamed to emitpcode_real
2779           and replace by macro adding debug information on demand
2780         * (genNot): fixed to C semantics (!0 = 1; !x = 0 iff x != 0)
2781         * (gencjne): tried to fix; replaced with correct (slower) code
2782         * (gen{Unp,P}ackBits): fixed single bit access
2783         * src/pic/pcode.c (AnalyzepCode): fixed DFPRINTF argument
2784         * src/pic/pcodepeep.c (pCodeSearchCondition): fixed finding
2785           previous instruction
2786         * src/pic/pcoderegs.c (regIsSpecial): NEW, check whether a
2787           register has to be handled with care (forbidding movement
2788           of assignments/uses, removing assignments completely, ...)
2789         * (pCodeOptime2pCodes): make use of regIsSpecial
2790         * added lots of debugging output (commented out)
2791         * src/pic/rallloc.c (deassignLRs): prevent operand registers
2792           from being reused as result UNLESS it is known to work
2793
2794 2005-07-23 Maarten Brock <sourceforge.brock AT dse.nl>
2795
2796         * support/Util/dbuf.h: include <stddef.h> for size_t
2797         * .version: changed to version 2.5.2
2798
2799 2005-07-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2800
2801         * src/SDCCloop.c (loopInvariants): fixed bug #1234048
2802
2803 2005-07-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2804
2805         * src/hc08/gen.c (genMinus): fixed bug #1241835,
2806           (genModOneByte): removed needless psha/pula
2807
2808 2005-07-22 Raphael Neider <rneider AT web.de>
2809
2810         * src/SDCCmain.c (linkEdit): initialized linkerScriptFileName,
2811           have PIC14 handled like PIC16, fixes broken pic14 linker calls
2812         * src/pic/gen.c (resolveIfx): do not "invent" labels
2813         * (genSkipc): changed to positive logic
2814         * (genSkipCond): removed as no longer needed
2815         * (pic14_mov2w_regOrLit,genCmp): NEW, replacement for buggy version,
2816           backport from PIC16
2817         * (genLeftShift): check operands are in different registers
2818         * src/pic/genarith.c (genPlus): replaced INCF with ADDLW as
2819           INCF does not update CARRY...
2820         * src/pic/main.c: fixed _linkCmd
2821         * src/pic/pcode.c (unlinkpCode): added inactive code
2822         * src/pic/ralloc.c (deassignLRs): keep arguments to shift operations
2823           alive (do not assign result and operand overlapping registers)
2824
2825 2005-07-22 Raphael Neider <rneider AT web.de>
2826
2827         * src/pic/device.c (dump_sfr): replaced register declaration with
2828           call to emitSymbolToFile() to avoid duplicate symbols
2829         * (assignRelocatableRegisters): do not declare external symbols
2830         * src/pic/ralloc.c (allocNewDirReg): fixed to get size of arrays
2831           right (take size of type, not etype)
2832         * (allocDirReg): fixed call to allocNewDirReg() to pass OP_SYM_TYPE
2833         * (writeUsedRegs): also dump dynDirectRegs (e.g. local variables)
2834         * (packRegsForAccUse): disabled assignment of WREG as
2835           the result reg to prevent occurence of just fixed #1235003,
2836           fixes #1242954
2837         * src/pic/glue.c (emitSymbolToFile): NEW, central place to declare
2838           symbols (avoids duplicate symbols in .asm file)
2839         * (pic14emitRegularMap): use emitSymbolToFile()
2840         * src/pic/gen.c (aopOp): fixed spillLocation handling
2841         * (gen{Unp,P}ackBits): fixed acquiring bit-operands
2842         * (genDataPointerSet): removed unneccessary variables/output
2843
2844 2005-07-22 Maarten Brock <sourceforge.brock AT dse.nl>
2845
2846         * as/mcs51/lkarea.c: enlarged codemap for banked memory
2847         * device/lib/mcs51/crtbank.asm: added # to 0x0F
2848
2849 2005-07-21 Raphael Neider <rneider AT web.de>
2850
2851         * src/pic/gen.c (aopOp): do not generate AOP_ACC operands as pic14
2852           architecture cannot handle them efficiently, fixes bug #1235003
2853         * src/pic16/device.c (pic16_dump_{u,i}section,pic16_dump_int_registers):
2854           check for empty sets before using them (fixes bug #1232190)
2855
2856 2005-07-19 Maarten Brock <sourceforge.brock AT dse.nl>
2857
2858         * as/mcs51/lkarea.c (lnkarea, lnkarea2): improved BSEG size calculation,
2859           (lnksect2): generate warnings for memory overlap
2860         * src/SDCC.lex (doPragma, process_pragma): added pragma's codeseg and
2861           constseg to set the name of these segments so you can instruct the linker
2862           to place them in banks
2863         * src/SDCCast.c (decorateType): use new macro IS_FUNCPTR()
2864         * src/SDCCglobl.h: added MODEL_HUGE to enum,
2865           added code_seg and const_seg to options
2866         * src/SDCCglue.c (emitMaps): use options.const_seg,
2867           (createInterruptVect): put interrupt vectors in segment HOME,
2868           (glue): put HOME before static segment and put the main glue in HOME,
2869           (glue): use options.code_seg
2870         * src/SDCCicode.c (geniCodeCall): use new macro IS_FUNCPTR()
2871         * src/SDCCmain.c: added option --codeseg and --constseg to set the name of
2872           these segments so you can instruct the linker to place them in banks
2873           (linkEdit): use code_loc for HOME segment which should be the first
2874           segment in code memory now
2875         * src/SDCCmem.c: fixed more stuff like bug 1238386
2876         * src/SDCCsymt.c (getSize): use generic pointer size for banked functions,
2877           (changePointer): don't change function pointers to code pointers for
2878           banked functions,
2879           (compareType): added exceptional check for banked function pointers
2880         * src/SDCCsymt.h: changed IFFUNC_ISBANKEDCALL, added IS_FUNCPTR
2881         * src/hc08/main.c (_hc08_genAssemblerPreamble): put HOME first, put CSEG
2882           after static in code memory
2883         * src/mcs51/gen.c: added aopLiteralLong prototype,
2884           (aopForSym): use getSize for functions,
2885           (genCall): generate banked calls over one trampoline __sdcc_banked_call
2886           in HOME with lsb of address in r0, msb in r1 and bank in r2, use
2887           -Wl-bBANKSEG=0xbbaaaa option to set the address (aaaa) and bank (bb) of
2888           the segment,
2889           (genPcall): use call for literal function pointers and generate banked
2890           calls over the one trampoline so there's only one place for the user to
2891           modify according to his/hers hardware,
2892           (genEndFunction): jump to __sdcc_banked_ret in HOME for banked functions,
2893           (genPlusIncr): moved check icount>4 beyond inc dptr optimization
2894         * src/mcs51/main.c: added keyword banked,
2895           (_mcs51_genExtraAreas): put HOME first followed by GSINIT, STATIC and CSEG
2896         * support/Util/SDCCerr.c,
2897         * support/Util/SDCCerr.h: added E_BANKED_WITH_CALLEESAVES, registers are
2898           needed for passing the bank and address to the trampoline
2899         * device/lib/mcs51/crtbank.asm: added for bankswitching
2900         * device/lib/mcs51/Makefile: added crtbank
2901
2902 2005-07-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2903
2904         * src/SDCCcse.c (algebraicOpts): fixed loss of volatility
2905           for fields at offset 0 of a struct or union as reported
2906           on 2005-07-07 in the developer mailing list.
2907
2908 2005-07-15 Maarten Brock <sourceforge.brock AT dse.nl>
2909
2910         * src/SDCCmem.c: fixed bug 1238386
2911
2912 2005-07-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2913
2914         * src/mcs51/peeph.def: added labelrefcounting for peepholes
2915           (patch #1144962), added peephole 300, enabled 259.x
2916         * doc/sdccman.lyx: removed screenshot and provided link instead
2917
2918 2005-07-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2919
2920         * doc/sdccman.lyx: added section about debugging with ddd
2921         * doc/figures/ddd_example.eps: screenshot of debugging session
2922
2923 2005-07-04 Raphael Neider <rneider AT web.de>
2924
2925         * src/pic/gen.c (genPointerGet): handle pointers to CONST values
2926           like CODE pointers, fixes #1115683
2927         * src/pic/pcode.c (DoBankSelect): forget LastRegIdx during function
2928           call, fixes bugs #1232211, #1228110,
2929           fixed wrong casts to pCodeFlow from pCodeInstructions
2930
2931 2005-07-04 Raphael Neider <rneider AT web.de>
2932
2933         * src/pic/gen.c (popGet): changed assert to allow for
2934           bit operands
2935         * (popGetAddr): changed signature to provide
2936           an additional index, patched all call sites
2937         * (genCmpEq): handle literal-like operands correctly
2938         * (genAddrOf): added sanity checks on __code/__data pointers
2939         * (genAssign): added handling of symbols from __code section
2940         * (gencjne): do not generate code for comparisons whose result
2941           is neither stored nor used, fixes bug #1171114
2942         * (AccLsh, AccRsh): operate on operand instead of WREG
2943         * (shift{Left,Right}_Left2ResultLit): NEW, size independant
2944           replacement for Shift{LR}{12}Left2Result; shift (byte/int/long)
2945           by known count
2946         * rewrote complete shift-by-literal logic, commented unused
2947           functions out
2948         * (genConstPointerGet): get multiple bytes (if result size > 1),
2949           fixed handling of non-immediate addresses
2950         * (genPointerGet): handle CODE pointers like CONST pointers
2951         * (genpic14Code): insert C-SRC lines as Cource-pCodes
2952         * ({aop,op}_isLitLike): NEW, single place to decide whether an
2953           operand is to be treated as a literal or not
2954         * (mov2w,genPcall,genCmpEq),
2955           src/pic/genarith.c: use aop_isLitLike() to decide between
2956           literal/register contents
2957         * (addSign): added missing offset
2958         * src/pic/gen.h: remove newline after FENTRY/FEXIT comments,
2959           only emit comment in debug-mode,
2960           use {aop,op}_isLitLike throughout the file
2961         * src/pic/glue.c: fix initializers for pointers (work in progress)
2962         * src/pic/pcode.c (get_op): honor index on _const symbols
2963         * ({reset,dump}pCodeStatistics): NEW, estimate code size
2964         * (dumppBlock): added pCode size estimation
2965         * src/pic/ralloc.c (deassignLRs,serialRegAssign,packRegisters):
2966           check for IS_SYMOP before OP_SYMBOL'ing
2967         * fixed indentation, compacted switch-statements
2968         * (allocReg): find free register and allocate it instead of
2969           allocating new registers all the time
2970         * (deassignLRs): prevent POINTER_GET's from being assigned the same
2971           registers as its operands (necessary only for multibyte GETs)
2972
2973 2005-07-01 Raphael Neider <rneider AT web.de>
2974
2975         * src/pic/gen.h: added prototypes emitpComment, popGetAddr and
2976           debugging .asm-output macros FENTRY + FEXIT
2977         * src/pic/gen.c (Safe_vsnprintf): NEW, is there a more generic
2978           way... I wonder...
2979         * (emitpComment): NEW, printf to pCode
2980         * (popGet): added assert on too large offsets, fixed PO_IMMEDIATE's
2981           offset handling
2982         * (popGetAddr): NEW, variant of popGet to access an immediates
2983           high(er) bytes instead of the n'th byte of memory they reference,
2984           replaced popGet with popGetAddr where neccessary
2985         * (genDataPointerGet): reactivated and fixed implementation
2986         * (genNearPointerGet): enabled call to genDataPointerGet, fixes array-
2987           accesses
2988         * (genDataPointerSet): fixed multibyte assignments
2989         * (genpic14Code): fixed --i-code-in-asm handling
2990         * src/pic/genarith.c: fixed PO_IMMEDIATE issue using popGetAddr,
2991         * (genPlus): fixed index-out-of-bounds error
2992         * src/pic/pcode.c (get_op): fixed PO_IMMEDIATE's index/offset handling
2993         * src/pic/ralloc.c: added debugging output macro FENTRY2
2994         * (spillThis): fixed indentation, enbraced for-body for clarity
2995         * (rematStr): commented out as now unused
2996         * (regTypeNum): commented out special spill case (overwrites
2997           arbitrary values)
2998         * fixes bugs #1229346, #1216476 (both arrays) and #1115667 (SIGSEGV)
2999
3000 2005-06-30 Maarten Brock <sourceforge.brock AT dse.nl>
3001
3002         * doc/sdccman.lyx: documented sfr16/sfr32,
3003           added example for using storage class with function pointers
3004         * src/mcs51/gen.c (genPlusIncr): optimized small offsets from dptr
3005
3006 2005-06-28 Maarten Brock <sourceforge.brock AT dse.nl>
3007
3008         * device/lib/_gptrget.c: also push/pop _PSBANK, added # to 0x03
3009         * device/lib/_itoa.c,
3010         * device/lib/_ltoa.c: optimized codesize
3011         * src/SDCCsymt.c (checkSClass): added sanity check for sfr at addresses,
3012           but don't know how to suppress the double warning.
3013         * src/mcs51/gen.c (genPlusIncr): fixed bug when incrementing volatile int's
3014         * support/Util/SDCCerr.c,
3015         * support/Util/SDCCerr.h: added warning W_SFR_ABSRANGE for sanity check
3016
3017 2005-06-27 Maarten Brock <sourceforge.brock AT dse.nl>
3018
3019         * as/mcs51/asexpr.c (expr): disabled warning "not in .flat24 mode",
3020           fixed old K&R prototypes
3021         * as/mcs51/asout.c (outrb): always output as if generating 24bit addresses
3022         * device/lib/_gptrget.c,
3023         * device/lib/_gptrgetc.c,
3024         * device/lib/_gptrput.c: changed versions for new memory indicator values,
3025           also new versions for small generic pointers and banked generic pointers
3026         * src/port.h: added const_name
3027         * src/SDCC.lex: added keywords sfr16, __sfr16, sfr32, __sfr32
3028         * src/SDCC.y: added tokens SFR16, SFR32 and their sfr_attributes
3029         * src/SDCCcse.c (findPrevIc): check all associative operators
3030         * src/SDCCglue.c (emitMaps): use CONST_NAME if defined
3031         * src/SDCCicode.h: added macro IS_ASSOCIATIVE
3032         * src/SDCCmem.c: updated comments,
3033           set far-space to 0 for pdata, results in optimized code
3034         * src/SDCCmem.h: added macro CONST_NAME
3035         * src/SDCCsymt.h: renumerated generic pointer types GPTYPE_... thereby
3036           moving the info into the highest bits, see also gptrget/gptrput
3037         * src/src.dsp: added sdcc.ico to project files
3038         * src/avr/gen.c (genCast): fixed bug 0x%d
3039         * src/avr/main.c (avr_port): added "CONST (CODE)" for const_name
3040         * src/ds390/gen.c (aopForRemat, adjustArithmeticResult): disconnected direct
3041           relation between ptr_type and DCL_TYPE,
3042           (genCast): fixed bug 0x%d
3043         * src/ds390/main.c (ds390_port, tininative_port, ds400_port): added "CONST
3044           (CODE)" for const_name
3045         * src/hc08/gen.c (genCast): fixed bug 0x%d
3046         * src/hc08/main.c (_hc08_genAssemblerPreamble): added .area ...const_name,
3047           (hc08_port): added "CONST (CODE)" for const_name
3048         * src/mcs51/gen.c (aopForSym): optimized pushing ACC,
3049           (aopForRemat, adjustArithmeticResult): disconnected direct relation
3050           between ptr_type and DCL_TYPE,
3051           (aopGetUsesAcc, aopGet, aopPut): changed first parameter from asmop* to
3052           operand* and took AOP() inside function so sfr-ness can be checked,
3053           (all over): repaired calls to aopGetUsesAcc, aopGet, aopPut to comply with
3054           new prototype,
3055           (genFunction, genEndFunction): optimized stack setup,
3056           (genMinus): optimized for literals with ending zeroes (in bytes),
3057           (genCast): fixed bug 0x%d
3058         * src/mcs51/main.c (_mcs51_keywords): added sfr16 and sfr32,
3059           (mcs51_port): added "CONST (CODE)" for const_name
3060         * src/mcs51/peeph.def: made rule 226 more generic
3061         * src/pic/main.c (pic_port): added "CONST (CODE)" for const_name
3062         * src/pic16/main.c (pic16_port): added "CONST (CODE)" for const_name
3063         * src/xa51/main.c (xa51_port): added "CONST (CODE)" for const_name
3064         * src/z80/main.c (z80_port): added NULL for const_name,
3065           (gbz80_port): added NULL for const_name
3066         * support/regression/tests/bug663539.c,
3067         * support/regression/tests/sfr16.c: new tests
3068
3069 2005-06-25 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3070
3071         * device/include/mcs51/p89v51rd2.h, device/include/mcs51/at89s53.h: added.
3072
3073 2005-06-24 Raphael Neider <rneider AT web.de>
3074
3075         * device/lib/pic16/libdev/pic18f[68][567]20.c:
3076           corrected typos...
3077         * device/include/pic16/signal.h: added USBIF
3078           and SIG_USB
3079
3080 2005-06-24 Raphael Neider <rneider AT web.de>
3081
3082         * device/lib/pic16/libdev/pic18f2455.c,
3083           device/include/pic16/pic18f2455.h: NEW
3084         * device/include/pic16/pic18fregs.h,
3085           device/lib/pic16/pics.all,
3086           src/pic16/device.c: added 18f2455
3087         * device/lib/pic16/libdev/pic18f[68][567]20.c,
3088           device/include/pic16/{pic18f[68][567].h,usart.h}:
3089           replaced MULTIPLE_USARTS define with more relaible
3090           compatibility sfrs (for USART access)
3091
3092 2005-06-20 Slade Rich <slade_rich AT users.sourceforge.net>
3093
3094         * src/pic/pcode.c : Fixed problem when a string constant contains a "\r\n"
3095           and the output asm file line is printed on two lines.
3096
3097 2005-06-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3098
3099         * sim/ucsim/hc08.src/inst.cc (inst_condbranch): fixed simulation of
3100           BGT, BLE, BHI, and BLS instructions
3101         * src/hc08/gen.c (outAcc, outBitC, outBitNV, genCmpLt, genCmpGt,
3102           genCmpEq): removed
3103         * src/hc08/gen.c (genCmpEQorNE, genCmp, branchopCmp, nameCmp,
3104           negatedCmp, exchangedCmp, genhc08Code): rewrite of comparison handling,
3105           fixes bug #1216342
3106         * src/hc08/peeph.def: added rules 2g - 2l for new conditional branches
3107
3108 2005-06-15 Raphael Neider <rneider AT web.de>
3109
3110         * src/pic16/NOTES: moved Vangelis from active developers to people to contact
3111         * device/include/pic16/{6520.h,8520.h}: fixed configuration bits
3112         * src/pic16/gen.c (): prevent iTemps from being considered to be in CODESPACE,
3113           fixes bug #1221120; for symbols in CODESPACE get number of bytes to read from
3114           OP_SYM_TYPE() instead of OP_SYM_ETYPE()
3115
3116 2005-06-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3117
3118         * device/include/mcs51/reg764.h: Changed PB0 to PBO as requested by
3119           Marcel Telka in bug #1215704
3120
3121 2005-06-02 Slade Rich <slade_rich AT users.sourceforge.net>
3122
3123         * src/pic/pcode.c : Changed pseudo stack size to 15 to allow WSAVE to be
3124           located in shared memory bank.
3125
3126 2005-05-31 Raphael Neider <rneider AT web.de>
3127
3128         * src/pic16/{gen.c,genarith.c}: replaced sign-extension
3129           "CLRF, BTFSC <signbit>, DECF/COMF" with side-effect-free
3130           "CLRF, BTFSC <signbit>, SETF"; fixes "long>>9"
3131
3132 2005-05-27 Maarten Brock <sourceforge.brock AT dse.nl>
3133
3134         * device/lib/_strncpy.c: fixed the fix
3135
3136 2005-05-26 Raphael Neider <rneider AT web.de>
3137
3138         * src/pic16/glue.c (pic16_printIvalChar): fixed _constant_ string
3139           initializers with \0, bug #1208187
3140         * src/pic/glue.c (printIvalChar): fixed (non- and constant) string
3141           intializers with \0, bug #1208187
3142
3143 2005-05-26 Raphael Neider <rneider AT web.de>
3144
3145         * src/pic16/glue.c (pic16_printIvalChar): fixed string
3146           initializers with \0, bug #1208187
3147         * src/pic16/main.c (_process_pragma): added sanity checks
3148           for stack position and size, emit warnings when appropriate
3149
3150 2005-05-26 Maarten Brock <sourceforge.brock AT dse.nl>
3151
3152         * device/lib/_strncpy.c: fixed not filling with \0
3153
3154 2005-05-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3155
3156         * src/SDCCast.c (funcOfType, funcOfTypeVarg, stringToSymbol,
3157           createFunction),
3158         * src/SDCC.y (external_definition, enumerator, parameter_declaration,
3159           compound_statement),
3160         * src/SDCCsymt.h,
3161         * src/SDCCsymt.c (addSymChain, processFuncArgs): fixed bug #1159134
3162
3163 2005-05-24 Raphael Neider <rneider AT web.de>
3164
3165         * src/pic16/glue.c (pic16_printGPointerType): fixed #1207796
3166
3167 2005-05-24 Raphael Neider <rneider AT web.de>
3168
3169         * device/include/pic16/pic18f{442,452,458}.h: fixed wrong
3170           TRISE definitions, closes bug #1162453
3171
3172 2005-05-22 Raphael Neider <rneider AT web.de>
3173
3174         * src/pic16/main.c (_process_pragma): check for missing
3175           arguments to pragmas code and udata
3176         * device/include/pic16/pic18f{2550,4331,4455,4520}.h:
3177           consistency fixes to match other headers (thanks to Jim Paris)
3178         * device/lib/pic16/libio/i2c.ignore: 18f4331 provides no I2C
3179
3180 2005-05-21 Maarten Brock <sourceforge.brock AT dse.nl>
3181
3182         * src/SDCCicode.c (isOperandEqual): fixed missing ;
3183
3184 2005-05-19 Maarten Brock <sourceforge.brock AT dse.nl>
3185
3186         * support/regression/tests/bug1198642.c: new test
3187         * src/SDCCicode.c (isOperandEqual): fixed bug 1198642
3188         * src/SDCCcse.c (findPrevIc): added comment, please have a look
3189         * support/scripts/resource.h,
3190         * support/scripts/resource.rc,
3191         * src/src.dsp: added sdcc.ico to project as icon for sdcc.exe
3192         * support/scripts/sdcc.ico: added 32x32 icon
3193
3194 2005-05-18 Raphael Neider <rneider AT web.de>
3195
3196         * device/lib/pic16/libdev/pic18f*.c,
3197         * device/include/pic16/pic18f*.h: updated "sfr" and "at X"
3198           keywords to "__sfr" and "__at (X)"
3199         * device/include/pic16/pic18fregs.h: added pic18f4520
3200         * src/pic16/pcode.c (pic16_pCode2str): fixed (?) bug
3201           #1203088 (MPLAB compatibility)
3202
3203 2005-05-17 Raphael Neider <rneider AT web.de>
3204
3205         * device/include/pic16/pic18f{2550,4331,4455,4520}.h: NEW
3206         * device/lib/pic16/libdev/pic18f{2550,4331,4455,4520}.c: NEW
3207         * device/lib/pic16/pics.all: added new devices
3208         * src/pic16/device.c: added support for pic18f4520
3209
3210 2005-05-16 Raphael Neider <rneider AT web.de>
3211         * src/pic16/gen.{c,h}: s/mov2f/pic16_mov2f made public
3212         * src/pic16/genarith.c (genAddLit): fixed bug 1202480
3213         * src/pic16/pcode.{c,h} (pic16_newpCodeOpBit_simple): NEW
3214           convenience function for bit access
3215
3216 2005-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
3217
3218         * device/lib/printf_large.c: fixed bug 1193299
3219         * support/regression/tests/bug1057979.c: added test %3.3s
3220
3221 2005-05-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3222
3223         * device/include/mcs51/8051.h,
3224         * device/include/mcs51/8052.h: made parseable with lint
3225         * device/include/mcs51/lint.h: added include file for (sp)lint
3226         * doc/sdccman.lyx: added doc about use of splint (syntax checking tool)
3227         * doc/cdbfileformat.lyx,
3228         * doc/test_suite_spec.lyx: hardcoded date to the date of last text change
3229
3230 2005-05-14 Raphael Neider <rneider AT web.de>
3231
3232         * device/lib/pic16/Makefile.common.in: add --optimize-df to OPT_FLAGS
3233         * device/lib/pic16/libc/stdlib/itoa.c (new)
3234         * device/lib/pic16/libc/stdlib/Makefile: have itoa.c built
3235         * device/lib/pic16/libio/Makefile: exclude subdir according to
3236           ${subdir}.ignore for certain PICs (lacking e.g. i2c)
3237         * device/lib/pic16/libio/i2c.ignore (new): pic18f1220 has no I2C support
3238         * src/pic16/gen.c (genFunction): prevent annoying warning
3239         * src/pic16/pcode.c: renamed stack_t to dynstack_t to prevent
3240           nameclashes on BeOS
3241         * support/cpp2/cppmain.c (cpp_output_string): new
3242         * support/cpp2/cpplib.c (_cpp_do__Pragma): fixed _Pragma(""),
3243           fixes bug 1116802
3244
3245 2005-05-13 Borut Razem <borut.razem AT siol.net>
3246
3247         * src/SDCCmain.c (linkEdit): fixed bug 1195202
3248
3249 2005-05-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3250
3251         * .version: changed to version 2.5.1; back to bleeding edge development
3252
3253 2005-05-11 Borut Razem <borut.razem AT siol.net>
3254
3255         * doc/sdccman.lyx doc/cdbfileformat.lyx doc/test_suite_spec.lyx:
3256           generate PDF version 1.3 documents
3257
3258 2005-05-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3259
3260         * .version: changed to version 2.5.0
3261
3262 2005-04-27 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3263
3264         * doc/sdccman.lyx: updated weblinks, index and smaller updates
3265
3266 2005-04-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3267
3268         * doc/sdccman.lyx: changed version 2.5.0, documented --std-c89,
3269         --std-sdcc89, --std-c99, --std-sdcc99, and the corresponding #pragmas, as
3270         well as many smaller updates.
3271         * .version: changed to version 2.5.0-pre1
3272
3273 2005-04-26 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3274
3275         * src/SDCCmain.c (setIncludePath): added port->target to SDCC_INCLUDE_NAME
3276
3277 2005-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
3278
3279         * support/regression/tests/bug1185672.c: added
3280         * src/mcs51/gen.c (aopGetUsesAcc, genCpl, genAnd, genOr, genXor): fixed
3281           bug 1185672
3282         * src/mcs51/gen.c (genCall): added comments, made it look safer
3283         * src/mcs51/gen.c (genEndFunction): simplified
3284
3285 2005-04-25 Maarten Brock <sourceforge.brock AT dse.nl>
3286
3287         * src/mcs51/ralloc.c (serialRegAssign): fixed bug 1189609
3288
3289 2005-04-14 Borut Razem <borut.razem AT siol.net>
3290
3291         * fixed bug 1045046 - SIGSEGV with really simple code?:
3292           src/pic/pcode.c (pCodeInitRegisters)- pseudo stack size increased to 16
3293           src/pic/ralloc.c (typeRegWithIdx) - error message on pseudo stack overflow
3294
3295 2005-04-14 Borut Razem <borut.razem AT siol.net>
3296
3297         * src/pic16/gen.c (genInline), src/pic16/main.c (_process_pragma),
3298           src/pic16/device.h: temporarily disabled experimental #inline pragma
3299           for 2.5.0 release
3300
3301 2005-04-14 Maarten Brock <sourceforge.brock AT dse.nl>
3302
3303         * device/include/z80/stdio.h,
3304         * device/include/z80/string.h: removed these highly incomplete files so
3305           SDCC can use the default ones in device/include/
3306
3307 2005-04-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3308
3309         * src/mcs51/gen.c (genEndFunction): removed unused variable to fix
3310         gcc warning.
3311         * device/lib/Makefile.in: default PORTINCDIR to the mcs51 subdir to
3312         fix sdcpp warnings.
3313
3314 2005-04-12 Maarten Brock <sourceforge.brock AT dse.nl>
3315
3316         * device/include/malloc.h: removed redundant __reentrant prototypes
3317         * device/lib/_mullong.c: added working xstack variant in asm (C version
3318           doesn't pass regression tests)
3319         * device/lib/bpx.c: used __data and made bpx char for mcs51
3320         * src/SDCCast.c (decorateType): removed unused GPTYPE_IDATA,
3321           (createFunction): fixed bug with xstackPtr
3322         * src/SDCCcse.c: corrected comments
3323         * src/SDCCopt.c (convertToFcall): fixed warning in MSVC,
3324           (killDeadCode, eBBlockFromiCode): removed unused code
3325         * src/SDCCsymt.h: removed unused GPTYPE_GPTR and GPTYPE_IDATA,
3326           corrected comments
3327         * src/mcs51/gen.c (aopForSym, aopPut, toBoolean, unsaveRegisters,
3328           assignResultValue, genCall, genFunction, genEndFunction, genAnd,
3329           genOr, genXor, genAddrOf): fixed several bugs concerning xstack
3330           (genModOneByte): fixed warning in MSVC
3331         * src/mcs51/main.c (): added comments
3332         * src/mcs51/peeph.def: changed 129 to 129.a, added 129.b, 129.c & 129.d
3333
3334 2005-04-12 Maarten Brock <sourceforge.brock AT dse.nl>
3335
3336         * src/SDCCmain.c (linkEdit): oops, changed one line too many
3337
3338 2005-04-11 Maarten Brock <sourceforge.brock AT dse.nl>
3339
3340         * src/SDCCmain.c (linkEdit): fixed bug with finding crt0.o for z80
3341
3342 2005-04-10 Vangelis Rokas <vrokas AT users.sourceforge.net>
3343
3344         * src/pic16/glue.c (printIvalChar): fixed bug when emitting
3345         characters arrays of larger size than the declared one.
3346
3347 2005-04-10 Borut Razem <borut.razem AT siol.net>
3348
3349         * src/pic/gen.c (genInline),
3350           src/pic/pcode.c (newpCodeAsmDir), (pCode2str),
3351           (genericPrint), (unlinkpCodeFromBranch), (compareLabel),
3352           (findNextInstruction), (findPrevInstruction),
3353           (findInstructionUsingLabel),
3354           src/pic/pcode.h: fixed bug #1164907 - Labels not being recognized
3355         * src/pic/pcode.c (findLabel): added missing '\n'
3356         * src/src.dsp: added SDCCdwarf2.c to the project
3357
3358 2005-04-09 Borut Razem <borut.razem AT siol.net>
3359
3360         * support/scripts/sdcc.nsi: added include/hc08/* h to NSIS setup
3361
3362 2005-04-08 Raphael Neider <rneider AT web.de>
3363
3364         * src/pic16/pcode.c: added helpers defmapInsertAfter (insert a new item
3365           into the chain after a given one) and mergeDefmapSymbols (combine
3366           defmap entries for each symbol per pcode)
3367         * (createDefmap): have defmap entries merged in the end
3368         * (defmapReplaceSymRef): split defmap entries covering two accesses to
3369           a symbol before replacing one access type's symbol, merge symbols in
3370           the end (replacement symbol might already have an entry)
3371         * (assignValnums): keep reference to written WREG intact
3372
3373 2005-04-08 Raphael Neider <rneider AT web.de>
3374
3375         * src/pic16/pcode.c (struct defmap_s): named anonymous union (for
3376           Alpha)
3377
3378 2005-04-08 Vangelis Rokas <vrokas AT users.sourceforge.net>
3379
3380         * src/pic16/pcode.c (pic16_get_op2): enlarged size of array b to 128
3381         bytes
3382
3383 2005-04-07 Raphael Neider <rneider AT web.de>
3384
3385         * device/include/pic16/usart.h: added compatibility defines for
3386           devices with more than one USART
3387         * device/include/pic16/pic18f[68][567]20.h: activated above defines
3388
3389 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
3390
3391         * device/lib/Makefile.in: updated for port specific include
3392
3393 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
3394
3395         * support/regression/ports/mcs51/spec.mk: added mcs51 include
3396
3397 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
3398
3399         * device/include/8051.h,
3400         * device/include/8052.h,
3401         * device/include/at89S8252.h,
3402         * device/include/at89c55.h,
3403         * device/include/at89x051.h,
3404         * device/include/at89x51.h,
3405         * device/include/at89x52.h,
3406         * device/include/mcs51reg.h,
3407         * device/include/reg51.h,
3408         * device/include/reg764.h,
3409         * device/include/regc515c.h,
3410         * device/include/sab80515.h: (re)moved these 12 files
3411         * device/include/mcs51/8051.h,
3412         * device/include/mcs51/8052.h,
3413         * device/include/mcs51/at89S8252.h,
3414         * device/include/mcs51/at89c55.h,
3415         * device/include/mcs51/at89x051.h,
3416         * device/include/mcs51/at89x51.h,
3417         * device/include/mcs51/at89x52.h,
3418         * device/include/mcs51/mcs51reg.h,
3419         * device/include/mcs51/reg51.h,
3420         * device/include/mcs51/reg764.h,
3421         * device/include/mcs51/regc515c.h,
3422         * device/include/mcs51/sab80515.h: and added them here
3423
3424 2005-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
3425
3426         * device/include/stdarg.h: changed SDCC specific keywords to double
3427           underlined form.
3428         * device/include/stdint.h: changed intptr_t and uintptr_t for others than
3429           mcs51 and ds390.
3430         * device/include/hc08/mc68hc908gp32.h,
3431         * device/include/hc08/mc68hc908jb8.h,
3432         * device/include/hc08/mc68hc908jkjl.h,
3433         * device/include/hc08/mc68hc908qy.h: fixed comments
3434         * device/include/mcs51/README: updated
3435         * device/include/mcs51/c8051f120.h: added PINRSF
3436         * device/lib/pic16/libc/stdlib/crc16.c: fixed comments
3437         * src/pic16/pcode.c: MSVC6 doesn't accept declaring new variables
3438           amidst code. Also inline is not supported.
3439
3440 2005-04-06 Raphael Neider <rneider AT web.de>
3441
3442         * src/pic16/pcode.c (pic16_pCodeReplace): also update pcflow->end
3443         * (createDefmap): fixed CALLs to depend on FSR1 and RETLW to restore
3444           callers stack/frame pointers
3445
3446 2005-04-06 Vangelis Rokas <vrokas AT users.sourceforge.net>
3447
3448         * device/include/pic16/usart.h: added, missing in previous commit,
3449         * device/include/pic16/adc.h: fixed typo,
3450         * device/lib/pic16/libc/utils/cvtdec.S: added missing in previous
3451         commit,
3452         * device/lib/pic16/libc/stdlib/g_ftoa.S: modified to include
3453         <p18fxxx.inc>
3454         * device/lib/pic16/libc/stdio/streams.c: leave stdin, stdout
3455         uninitialized because a bug appears with gplink
3456         * device/lib/pic16/{some makefiles}: moved $(CSTD) from CFLAGS to
3457         COMPILE_FLAGS and added CPPFLAGS with -nostdinc because sdcpp
3458         complains for unrecognised option
3459
3460 2005-04-05 Raphael Neider <rneider AT web.de>
3461
3462         * src/pic16/gen.c (pic16_popCopyReg): made copying work for extended
3463           structs as well (using memcpy)
3464         * (genFunction): fixed comparison, used pCodeOpLabel to reduce warning
3465           on ISRs (GOTO has no label)
3466         * src/pic16/device.h: added OF_OPTIMIZE_DF
3467         * src/pic16/main.c: added compiler switch --optimize-df to enable the
3468           new data flow analysis/optimization
3469         * src/pic16/pcode.c: added (prototypes for and implementation of)
3470           dataflow analysis functions, fixed pCodeInstructions' inCond and
3471           outCond values, made RCALL a branch instruction
3472         * (pic16_unlinkpCode): keep C line if possible
3473         * (pic16_pCodeUnlink): removed cast on left side of assignment, have
3474           C line moved if possible
3475         * (pic16_getRegFrompCodeOp): NEW, improved version of...
3476         * (pic16_getRegFromInstruction,pic16_getRegFromInstruction2): changed
3477           to use new pic16_getRegFrompCodeOp (works for more SFRs)
3478         * (pic16_BuildFlow): fixed skip instructions with label (did not start
3479           new flow)
3480         * (pic16_getJumptabpCode): NEW, needed in...
3481         * (LinkFlow): fixed handling of jumptables, calls and conditional
3482           branches
3483         * (pic16_InsertCommentAfter): NEW
3484         * (pic16_pCodeReplace): made verbose and flow preserving
3485         * (AnalyzeFlow): added call to data flow analysis
3486         * src/pic16/pcode.h: added defmaps to pCodeFlow struct
3487         * src/pic16/pcodeflow.h: added PCC_STATUS to mean all STATUS bits
3488         * src/pic16/ralloc.c (packRegsForAssign): added return 1 in the end
3489
3490 2005-04-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3491
3492         * src/SDCCast.c (decorateType): fixed bug #1105626
3493
3494 2005-04-02 Vangelis Rokas <vrokas AT users.sourceforge.net>
3495
3496         * device/include/asm/pic16/features.h,
3497         * pic18f*.h headers,
3498         * device/include/pic16/adc.h,
3499         * device/include/pic16/delay.h,
3500         * device/include/pic16/i2c.h,
3501         * device/include/pic16/malloc.h,
3502         * device/include/pic16/stdio.h,
3503         * device/include/pic16/stdlib.h,
3504         * device/include/pic16/string.h,
3505         * device/lib/pic16/libc/stdio/printf_tiny.c,
3506         * device/lib/pic16/libc/stdio/printf_small.c,
3507         * device/lib/pic16/libc/stdio/strmgpsim.c,
3508         * device/lib/pic16/libc/stdio/strmmssp.c,
3509         * device/lib/pic16/libc/stdio/strmusart.c,
3510         * device/lib/pic16/libc/stdio/vfprintf.c,
3511         * device/lib/pic16/libc/stdlib/ltoa.c,
3512         * device/lib/pic16/libc/stdlib/putchar.c,
3513         * device/lib/pic16/libc/stdlib/x_ftoa.c,
3514         * device/lib/pic16/libc/stdlib/memchrpgm.c,
3515         * device/lib/pic16/libc/stdlib/memchrram.c,
3516         * device/lib/pic16/libc/stdlib/memcpypgm2ram.c,
3517         * device/lib/pic16/libc/stdlib/memcpyram2ram.c,
3518         * device/lib/pic16/libio/adc/adcbusy.c,
3519         * device/lib/pic16/libio/adc/adcread.c,
3520         * device/lib/pic16/libio/adc/adcsetch.c,
3521         * device/lib/pic16/libio/usart/ubaud.c,
3522         * device/lib/pic16/libio/usart/ubusy.c,
3523         * device/lib/pic16/libio/usart/udrdy.c,
3524         * device/lib/pic16/libio/usart/uopen.c,
3525         * device/lib/pic16/libio/usart/uputc.c,
3526         * device/lib/pic16/libsdcc/gptr/gptrget1.c,
3527         * device/lib/pic16/libsdcc/gptr/gptrget2.c,
3528         * device/lib/pic16/libsdcc/gptr/gptrget3.c,
3529         * device/lib/pic16/libsdcc/gptr/gptrget4.c,
3530         * device/lib/pic16/libsdcc/gptr/gptrput1.c,
3531         * device/lib/pic16/libsdcc/gptr/gptrput2.c,
3532         * device/lib/pic16/libsdcc/gptr/gptrput3.c,
3533         * device/lib/pic16/libsdcc/gptr/gptrput4.c: modified all SDCC
3534         specific keywords to double underlined form,
3535         * device/lib/pic16/libc/Makefile.rules,
3536         * device/lib/pic16/libsdcc/Makefile.rules,
3537         * device/lib/pic16/libm/Makefile,
3538         * device/lib/pic16/libio/Makefile.rules: added CSTD macro in CFLAGS
3539         to compile with C standard set in Makefile.common
3540         * device/lib/pic16/libc/stdlib/Makefile: added new C sources
3541         rand.c and crc.c in compilation process,
3542         * device/lib/pic16/libsdcc/int/divuint.c,
3543         * device/lib/pic16/libsdcc/long/divulong.c: changed declaration of
3544         `c' from signed to unsigned,
3545         * device/lib/pic16/startup/crt0.c,
3546         * device/lib/pic16/startup/crt0i.c,
3547         * device/lib/pic16/startup/crt0iz.c: adopted to all SDCC specific
3548         keywords to double underlined form, bug fixes in _do_cinit function
3549         which prevented the correct initialization of the .idata segment,
3550         * src/pic16/pcoderegs.c (insideLRBlock): fixed a bug that caused the
3551         core to enter a infinite loop
3552         * device/lib/pic16/libc/stdlib/rand.c, crc.c: new files
3553
3554 2005-04-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3555
3556         * src/SDCCicode.c (getArraySizePtr): fixed bug #1122171
3557
3558 2005-04-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3559
3560         * device/include/Makefile.in: add support for hc08 subdirectory
3561         * device/include/hc08/: new subdirectory
3562         * device/include/hc08/mc68hc908jkjl.h: new header contributed by
3563         Lucas Loizaga, thanks!
3564         * device/include/hc08/mc68hc908qy.h,
3565         * device/include/hc08/mc68hc908gp32.h,
3566         * device/include/hc08/mc68hc908jb8.h: moved hc08 register defs to
3567         their own directory. Changed internal macro names to use the compiler
3568         reserved namespace. Changed SDCC specific keywords to double
3569         underlined form.
3570         * device/include/math.h,
3571         * device/include/malloc.h,
3572         * device/include/stdarg.h,
3573         * device/include/stdbool.h
3574         * device/include/string.h,
3575         * device/include/tinibios.h,
3576         * device/include/ds400rom.h,
3577         * device/include/8051.h,
3578         * device/include/8052.h,
3579         * device/include/80c51xa.h,
3580         * device/include/at89c55.h,
3581         * device/include/at89S8252.h,
3582         * device/include/at89x51.h,
3583         * device/include/at89x52.h,
3584         * device/include/ds80c390.h,
3585         * device/include/reg764.h,
3586         * device/include/regc515c.h,
3587         * device/include/sab80515.h,
3588         * device/include/mcs51/c8051f000.h,
3589         * device/include/mcs51/c8051f018.h,
3590         * device/include/mcs51/c8051f020.h,
3591         * device/include/mcs51/c8051f040.h,
3592         * device/include/mcs51/c8051f060.h,
3593         * device/include/mcs51/c8051f120.h,
3594         * device/include/mcs51/c8051f300.h,
3595         * device/include/mcs51/c8051f310.h,
3596         * device/include/mcs51/c8051f320.h,
3597         * device/include/mcs51/c8051f330.h,
3598         * device/include/mcs51/c8051f350.h,
3599         * device/include/z180.h: Changed SDCC specific keywords to double
3600         underlined form.
3601
3602 2005-03-31 Vangelis Rokas <vrokas AT users.sourceforge.net>
3603
3604         * src/pic16/device.c (Pics16[]): added devices 18F2550, 18F4331,
3605         18F4455,
3606         * (pic16_assignConfigWordValue): disable testing of configuration
3607         register value with config mask,
3608         * src/pic16/gen.c (pic16_testStackOverflow): prefix stack test
3609         function with port->fun_prefix,
3610         * (genFunction): when generating a naked interrupt function never
3611         create an absolute segment placed in interrupt vector address, place
3612         the actual interrupt function at IVA instead, when an interrupt
3613         function is generated with unspecified interrupt then do not create
3614         the absolute section,
3615         * (genGenPointerGet, genGenPointerSet, genPackBits): replace all
3616         code for generating a call to generic pointer get/put function with
3617         a call to function pic16_callGenericPointer(),
3618         * src/pic16/genutils.c (pic16_callGenericPointerRW): NEW, generates
3619         the call to the generic pointer get/put functions with prefixing the
3620         function name with port->fun_prefix,
3621         * src/pic16/glue.c (pic16glue): ifdef-out test of OF_LR_SUPPORT,
3622         * src/pic16/main.c (_process_pragma): prefix function with
3623         port->fun_prefix,
3624         * (_pic16_finaliseOptions): define macro __18Fxxxx macro when
3625         calling assembler, old 18Fxxxx macro is deprecated,
3626         * src/pic16/pcode.c (unlinkpCodeFromBranch): added PC_INLINE and
3627         PC_ASMDIR in while condition,
3628         * (findInstruction): add PC_ASMDIR in while condition,
3629         * (buildCallTree): prefix main with port->fun_prefix,
3630         * (pic16_pCode2str): fixed bug that didn't emit the memory access
3631         identifier for variable with banked access in instructions BTFSS,
3632         BTFSC, BCF, BSF, BTG
3633         * (AnalyzeFlow): moved call to OptimizepCode to pic16_AnalyzeBanking,
3634         * src/pic16/pcodepeep.c (pCodeOpCompare): increase size of b to 1024,
3635         * src/pic16/pcoderegs.c (pic16_pCodeRegoptimizeRegUsage): don't
3636         perform optimization when enviroment variable NO_REG_OPT is set,
3637         * (insideLRBlock): NEW, return 1 if register is inside an
3638         INF_LOCALREGS block,
3639         * (RemoveRegFromLRBlock): remove a register that is completely
3640         eliminated by register optimization, but it is still left in local
3641         register store/restore in/from stack block,
3642         * (Remove2pcodes): after removing register, check to see if it
3643         should be removed from local register store/restore in/from stack
3644         block,
3645         * src/pic16/ralloc.c (pic16_decodeOp): added decode for
3646         DUMMY_READ_VOLATILE,
3647
3648         * device/include/pic16/adc.h: minor prototype modifications and
3649         update,
3650         * device/include/pic16/malloc.h: added GPL notice various
3651         modifications,
3652         * device/include/pic16/stdint.h: NEW, standard header for ints
3653         * device/include/pic16/delay.h: NEW, header for delay functions,
3654         delay10tcy, delay100tcy, delay1ktcy, delay10ktcy, delay100ktcy,
3655         delay1mtcy,
3656         * device/include/pic16/signal.h: NEW, header providing helper macros
3657         for implementing signal handlers,
3658         * device/include/pic16/stdio.h: added prototypes for functions,
3659         printf, vprintf, sprintf, vsprintf, fprintf, vfprintf. Added
3660         prototypes for stdin and stdout, added macro PUTCHAR to
3661         automatically implement putchar function prototype,
3662         * device/include/pic16/usart.h: modified and updated USART library,
3663         * device/lib/pic16/libio/adc/,
3664         * device/lib/pic16/libio/i2c: some modifications to improve library
3665         performance,
3666         * device/lib/pic16/libc/stdio/: modifications for the new printf*
3667         family of functions,
3668         * device/lib/pic16/libc/stdlib/: various modifications in the malloc
3669         family of functions and other sources,
3670         * device/lib/pic16/libio/usart/: NEW, c sources for the usart module
3671         of the PIC18Fxx[28] devices,
3672         * device/lib/pic16/libc/delay/: NEW, c sources for the delay functions,
3673         * device/lib/pic16/libc/utils/: minor modifications in the .S sources,
3674         * device/lib/pic16/startup/{crt0i.c, crt0iz.c}: redesign of the
3675         _do_cinit function, because the previous failed when local variables
3676         where not placed in the same memory bank,
3677         * device/lib/pic16/libsdcc/char/: various modifications to improve
3678         library performance,
3679         * doc/sdccman.lyx: some reorganization of the PIC16 part, added many
3680         information on the new functions of the c library and more...
3681
3682 2005-03-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3683
3684         * src/SDCCBBlock.c (iCodeBreakDown): fixed bug #1170212
3685
3686 2005-03-26 Raphael Neider <rneider AT web.de>
3687
3688         * src/pic16/gen.c (genSkipc): fixed semantics (execute branch
3689           if condition == CARRY)
3690         * (genCmp): adapted to new genSkipc semantics
3691         * src/pic16/genutils.c (pic6_genCmp_special): removed side effect
3692           on rIfx (genCmp was broken)
3693
3694 2005-03-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3695
3696         * src/SDCCmain.c (setDefaultOptions, optionsTable[], parseCmdLine),
3697         * src/z80/main.c (_keywords[]),
3698         * src/SDCCglobal.h (struct options),
3699         * src/SDCC.y,
3700         * src/SDCC.lex (isTargetKeyword, doPragma, pragma_tbl[]): new pragmas
3701         to enable/disable SDCC and C99 extensions/keywords (std_c89, std_sdcc89,
3702         std_c99, std_sdcc99). Also, equivalent command line options (--std-c89,
3703         --std-sdcc89, --std-c99, --std-sdcc99). SDCC specific keywords are
3704         always available in leading double underscore form. The C99 support is
3705         mostly missing, but it's a start.
3706         * support/regression/tests/bug-227710.c: fixed nonconforming use of
3707         reserved identifier "__data".
3708
3709 2005-03-24 Maarten Brock <sourceforge.brock AT dse.nl>
3710
3711         * src/mcs51/peeph.def: fixed bug 1170013
3712
3713 2005-03-22 Maarten Brock <sourceforge.brock AT dse.nl>
3714
3715         * device/include/mcs51reg.h: fixed bug 842007
3716
3717 2005-03-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3718
3719         * src/SDCCcflow.c (dfNumCompare): committed the wrong version of this
3720         last time.
3721
3722 2005-03-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3723
3724         * src/port.h (struct PORT),
3725         * src/avr/ralloc.c (avr_assignRegisters),
3726         * src/avr/main.c,
3727         * src/ds390/ralloc.c (ds390_assignRegisters),
3728         * src/ds390/main.c,
3729         * src/hc08/ralloc.c (hc08_assignRegisters),
3730         * src/hc08/main.c,
3731         * src/mcs51/ralloc.c (mcs51_assignRegisters),
3732         * src/mcs51/main.c,
3733         * src/pic/ralloc.c (pic14_assignRegisters),
3734         * src/pic/main.c,
3735         * src/pic16/ralloc.c (pic16_assignRegisters),
3736         * src/pic16/main.c,
3737         * src/xa51/ralloc.c (xa51_assignRegisters),
3738         * src/xa51/main.c,
3739         * src/z80/ralloc.c (z80_assignRegisters),
3740         * src/z80/ralloc.h,
3741         * src/SDCCopt.c (eBBlockFromiCode, replaceRegEqv, killDeadCode),
3742         * src/SDCCcse.c (ifxOptimize, cseBBlock, cseAllBlocks),
3743         * src/SDCCcse.h,
3744         * src/SDCCdflow.c (computeDataFlow),
3745         * src/SDCCdflow.h,
3746         * src/SDCCloop.c (addDefInExprs, loopInvariants, loopOptimizations),
3747         * src/SDCCloop.h,
3748         * src/SDCCcflow.c (*),
3749         * src/SDCCcflow.h,
3750         * src/SDCCBBlock.c (iCodeBreakDown, dumpEbbsToFileExt, eBBWithEntryLabel),
3751         * src/SDCCBBlock.h (struct ebbIndex): new struct that keeps two copies
3752         of the eBBlock list, sorted by both bbnum and dfnum. (fixes bug with
3753         immedDom() returning wrong block; probably fixes bug #1160833)
3754
3755 2005-03-20 Borut Razem <borut.razem AT siol.net>
3756
3757         * support/scripts/inc2h.pl: WIN32 port
3758
3759 2005-03-19 Maarten Brock <sourceforge.brock AT dse.nl>
3760
3761         * device/lib/makefile.in: added abs.c and labs.c
3762
3763 2005-03-17 Maarten Brock <sourceforge.brock AT dse.nl>
3764
3765         * device/include/stdint.h: added
3766         * device/lib/abs.c: added
3767         * device/lib/labs.c: added
3768         * device/include/stdlib.h: added abs() and labs() prototypes
3769         * device/lib/libsdcc.lib: added abs and labs
3770         * device/include/float.h,
3771         * device/lib/_fsmul.c,
3772         * device/lib/printf_fast.c,
3773         * device/lib/printf_tiny.c: updated comments
3774
3775 2005-03-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3776
3777         * src/SDCCicode.c (geniCodeSwitch, geniCodeJumpTable): fixed
3778         bug #1164313
3779
3780 2005-03-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3781
3782         * src/SDCCcse.c (cseBBlock): retain assignment to self when volatile
3783         * src/SDCCast.c (isLoopCountable): fixed bug #1161985
3784
3785 2005-03-15 Maarten Brock <sourceforge.brock AT dse.nl>
3786
3787         * device/lib/printf_large.c: removed inline assembly for portability and
3788           readability. Use printf_fast if speed or size are more important.
3789         * src/pic16/gen.c: removed conditions around use of DEBUGpc
3790         * src/pic16/genutils.h: added define for DEBUGpc for MSVC
3791
3792 2005-03-15 Vangelis Rokas <vrokas AT users.sourceforge.net>
3793
3794         * src/pic16/genutils.c (pic16_genCmp_special): initialized offs to
3795         prevent compiler warning
3796
3797 2005-03-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
3798
3799         * device/lib/pic16/startup/crt0i.c (_cinit): local variables where
3800         moved to level 0 and declared as static. Also they are explicit
3801         placed in access bank. This was necessery because some times they
3802         might cross memory bank boundaries. crt0iz.c is *NOT* updated!!!
3803         * src/pic16/device.h: added flag OPTIMIZE_CMP to enable some compare
3804         optimizations. Currently only compare to unsigned char is implemented,
3805         * src/pic16/gen.c: added fReturnIdx array,
3806         * (struct resolvedIfx) is moved to gen.h and made public,
3807         * (struct _G): added sregsAlloc and sregsAllocSet fields,
3808         * (aopForSym): added an optimization to directly store in stack of
3809         the operand of a SEND iCode,
3810         * (pic16_aopOp): don't return return registers as strings (AOP_STR)
3811         but as registers instead (AOP_REG) using the fReturnIdx array,
3812         * (pic16_freeAsmop): remove the freed register from the
3813         _G.sregsAlloc field,
3814         * (pic16_aopGet): in case AOP_STR, the compare to 'a' is changed to
3815         a compare of 'WREG',
3816         * (pic16_popGetTempRegCond): changed function prototype, now
3817         function takes also a bitVector argument v which holds the current
3818         set of registers that are allocated for stack access by aopForSym,
3819         registers allocated in aopForSym for accessing stack symbols are not
3820         any more part of the functions usedRegs field,
3821         * (genCall): some times aopOp is called for a stack variable to be
3822         send, aopForSym might perform the push, if this is true make sure
3823         that genCall doesn't push the variable twice by testing _G.resDirect,
3824         * (genFunction): changed testing for unspecified interrupt number
3825         from 256 to INTNO_UNSPEC,
3826         * modified selection scheme of frame pointer generation. Previously
3827         if function did use local registers a frame pointer was generated,
3828         now a frame pointer is generated only if function has arguments
3829         (that need PLUSW2 register access), or has stack arguments, or the
3830         compiler is not instructed to omit the frame pointer,
3831         * (genEndFunction): before restoring local registers that were saved
3832         in the function preamble, also restore the registers that *might*
3833         have been allocated for stack access,
3834         * (genRet): removed some old comments,
3835         * (genCmp, the active (RN's) version): added a call to the
3836         pic16_genCmp_special function to perform the compare with a more
3837         robust and optimized way,
3838         * (genInline): a feature has been added in inline code generation,
3839         which allows a wildcard variable substitution when writing inline
3840         assembly. Code is incomplete and experimental therefore undocumented,
3841         * (genCast): changed order of aopOp for result and right to allow
3842         aopForSym to directly load the result if possible,
3843         * src/pic16/genutils.c (selectCompareOp, pic16_genCmp_special): NEW,
3844         perform an optimized compare on some selected special occasions,
3845         * src/pic16/genutils.h: declaration of resolvedIfx structure from gen.c,
3846         * src/pic16/glue.c (pic16createInterrupVect): make sure we never
3847         generate an IVT any more,
3848         * src/pic16/main.c (pic16_optionsTable): added command line option
3849         --optimize-cmp,
3850         * (_pic16_initPaths): when calling C preprocessor define pic18fXXXX
3851         macro too, when calling assembler define pic18fXXXX *and* __18Fxxxx
3852         macros,
3853         * src/pic16/NOTES: Raphael Neider added in list of active developers
3854         * src/pic16/pcode.c (OPT_TYPE_STR): added strings jumptable_begin and
3855         jumptable_end to prevent bug #,
3856         * (pic16_pciADDWFC, ADDFWC, COMF, CLRF): added some missing flags in
3857         inCond and outCond fields,
3858         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): add a fix for bug #,
3859         * src/pic16/ralloc.c (serialRegAssign): explicit set willCS to 0 to
3860         turn off register spilling,
3861         * (packRegsForOneUse): synced with other ports' versions although it
3862         is not used currently,
3863         * (pic16_packRegisters): added an optimization while reading
3864         structure bitfields, some registers may be saved (malloc code is
3865         decreased by 80 bytes)
3866
3867 2005-03-12 Vangelis Rokas <vrokas AT users.sourceforge.net>
3868
3869         * src/SDCCcse.c (cseBBlock): inside 'do operand lookup' loop test if
3870         left is a bitfield, if yes, then don't optimize assignment. Perhaps
3871         this can be optimized more?
3872
3873 2005-03-10 Raphael Neider <rneider AT web.de>
3874
3875         * src/pic16/gen.c (pic16_loadFSR0, genPackBits, genUnpackBits,
3876           genNearPointerGet): (hopefully) fixed access to bitfields via
3877           pointers (p->bitN = x; and x = p->bitN; failed)
3878
3879 2005-03-09 Paul Stoffregen <paul AT pjrc.com>
3880
3881         * device/lib/printf_fast.c: fix leading zero format, eg "%02d"
3882
3883 2005-03-09 Raphael Neider <rneider AT web.de>
3884
3885         * src/SDCCopt.c (killDeadCode): fixed bug #1156016
3886
3887 2005-03-06 Maarten Brock <sourceforge.brock AT dse.nl>
3888
3889         * src/SDCCicode.h: moved CRITICAL and ENDCRITICAL from SKIP_IC2 to SKIP_IC
3890         * src/mcs51/ralloc.c (willCauseSpill): added check for REG_BIT type,
3891           (regTypeNum): set REG_BIT type if necessary
3892         * src/mcs51/ralloc.h: added define REG_BIT, used to fix bug 1144613
3893         * support/regression/tests/critical.c: check bug 1144613
3894
3895 2005-03-02 Raphael Neider <rneider AT web.de>
3896
3897         * src/pic16/gen.c (genRightShiftLiteral): fixed bug #1154256
3898
3899 2005-02-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3900
3901         * src/avr/ralloc.c (serialRegAssign),
3902         * src/ds390/ralloc.c (serialRegAssign),
3903         * src/hc08/ralloc.c (serialRegAssign),
3904         * src/mcs51/ralloc.c (serialRegAssign),
3905         * src/pic/ralloc.c (serialRegAssign),
3906         * src/pic16/ralloc.c (serialRegAssign),
3907         * src/xa51/ralloc.c (serialRegAssign),
3908         * src/z80/ralloc.c (serialRegAssign): fixed bug #1105154
3909
3910 2005-02-22 Maarten Brock <sourceforge.brock AT dse.nl>
3911
3912         * src/SDCCast.c (decorateType): fixed bug 1124787
3913
3914 2005-02-20 Hubert Sack <sack AT digiplan.de>
3915         committed by Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3916
3917         * src/mcs51/peeph.def: added peepholes 3.h-k and 132.a-f from
3918         patch #1121755
3919
3920 2005-02-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3921
3922         * src/SDCCpeeph.def: new keyword "labelRefCountChange" which allows peepholes
3923         to keep the correct label reference count when adding/removing references
3924         to labels. A peephole file using this is appended to patch #1144962.
3925
3926 2005-02-14 Raphael Neider <rneider AT web.de>
3927
3928         * device/lib/pic16/libc/string/memccpy.c: changed 3rd argument to char
3929         * src/SDCC.lex (process_pragma): fixed to make disable_warning work for PIC16
3930         * src/pic16/gen.c (aopForSym, calls to pic16_aopOp): prevent unneccessary
3931           retrievals of result operand's value on assignment
3932
3933 2005-02-13 Vangelis Rokas <vrokas AT otenet.gr>
3934
3935         * device/include/pic16/string.h: modified prototype for memccpy()
3936         to memccpy(void *, void *, char, size_t)
3937         * src/pic16/gen.c (genFunction, genEndFunction): reenable if-case to
3938         check whether to omit frame pointer or not,
3939         * (genInline): convert all occurences of "\n" to LF in inline
3940         assembler blocks, this helps formatting the inline text,
3941         * (pic16_loadFSR0): modified prototype,
3942         * (genNearPointerGet, genNearPointerSet): reorganization of code,
3943         removed some 8051 legacy code,
3944         * (genPackBits): enabled handling bitfields exceeding one byte in size,
3945         * src/pic16/ralloc.c (pic16_assignRegisters): clear dynrIdx variable
3946         before allocating temporary registers in functions,
3947
3948 2005-02-11 Maarten Brock <sourceforge.brock AT dse.nl>
3949
3950         * support/regression/tests/bitvars.c: corrected the "fix"
3951
3952 2005-02-10 Maarten Brock <sourceforge.brock AT dse.nl>
3953
3954         * support/regression/tests/bitvars.c,
3955         * support/regression/tests/bitwise.c,
3956         * support/regression/tests/rotate.c: "fixed" problems on Alpha
3957
3958 2005-02-10 Raphael Neider <rneider AT web.de>
3959
3960         * src/pic16/pcode.c (assignToSameBank) : fixed cast to pointer of
3961           different size for Alpha
3962         * src/pic16/gen.c (genCmpEq) : improved compare with 0
3963
3964 2005-02-09 Raphael Neider <rneider AT web.de>
3965
3966         * src/SDCC.lex(doPragma) : save and restore warning options as well
3967           (also added new stack plus clone- and copyAndFreeSDCCERRG())
3968         * have #pragma less_pedantic set the errorlevel to WARNING
3969           (fixes #1117001)
3970         * (cloneOptimize) : fixed wrong malloc's size
3971         * support/Util/SDCCerr.[ch] : made SDCCERRG globally accessible to
3972           facilitate correct handling of #pragma (save|restore)
3973
3974 2005-02-09 Maarten Brock <sourceforge.brock AT dse.nl>
3975
3976         * src/mcs51/gen.c: removed non-standard C nameless struct/union
3977
3978 2005-02-04 Slade Rich <slade_rich AT users.sourceforge.net>
3979
3980         * src/pic/gen.c : Fix for bugs #1080519 & #1115662.
3981
3982 2005-02-03 Maarten Brock <sourceforge.brock AT dse.nl>
3983
3984         * device/include/mcs51/c8051f120.h: added declarations for sbit port 2,3&4
3985
3986 2005-02-02 Raphael Neider <rneider AT web.de>
3987
3988         * src/SDCCast.c (processParms): disabled W_NONRENT_ARGS for pic16 port
3989         * src/pic16/gen.c (aopForSym): reenabled special case for function pointers
3990         * (pic16_storeForReturn): fixed to allow returning function pointers
3991         * (genPackBits): improved accessing full bytes, implemented for GPOINTERs
3992         * device/include/pic16/{stddef.h,stdbool.h}: added
3993
3994 2005-02-02 Maarten Brock <sourceforge.brock AT dse.nl>
3995
3996         * device/include/mcs51/c8051f040.h: added define CPT2_PAGE
3997
3998 2005-02-01 Slade Rich <slade_rich AT users.sourceforge.net>
3999
4000         * src/pic16/pic16.dsp : Added file graph.c to make it compile under windows
4001         * src/pic16/Makefile.bcc : Do not use this file but added file graph.c as it
4002          appeared to be required
4003
4004 2005-01-31 Borut Razem <borut.razem AT siol.net>
4005
4006         * support/scripts/sdcc.nsi: added include/asm/ds390, include/asm/mcs51,
4007           include/mcs51 and include/z80 directories to the package
4008
4009 2005-01-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4010
4011         * src/hc08/gen.c (genFunction): fixed bug #1112752
4012
4013 2005-01-30 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4014
4015         * src/mcs51/peeph.def: adapted peephole 258.x to changed gen.c (genAnd)
4016
4017 2005-01-29 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4018
4019         * src/mcs51/gen.c (genAnd): accessing LSB/MSB by rotating acc
4020
4021 2005-01-29 Maarten Brock <sourceforge.brock AT dse.nl>
4022
4023         * device/include/Makefile.in: create/copy mcs51 and z80 include subdirs
4024
4025 2005-01-27 Maarten Brock <sourceforge.brock AT dse.nl>
4026
4027         * device/include/c8051fxxx.h: removed these 6 files
4028         * device/include/mcs51/c8051fxxx.h: added these 11 new files
4029
4030 2005-01-26 Raphael Neider <rneider AT web.de>
4031
4032         * src/pic16/gen.c (genAssign): fixed assignment from longs
4033           in codespace (were cut to three bytes)
4034         * (genDummyRead): implemented (except for CODESPACE...),
4035           fixed bug #1108575
4036         * src/pic16/glue.c (emitStatistics): beautified
4037         * device/lib/pic16/libm/Makefile: added include path
4038
4039 2005-01-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4040
4041         * src/z80/gen.c (aopPut): fixed bug #1103902
4042
4043 2005-01-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4044
4045         * device/lib/expf.c: fixed bug #1095792
4046
4047 2005-01-24 Vangelis Rokas <vrokas AT otenet.gr>
4048
4049         * device/lib/pic16/libm: added Math library sources
4050
4051 2005-01-24 Raphael Neider <rneider AT web.de>
4052
4053         * src/pic16/pcode.h: added second memory operand to pCodeOpReg
4054           to enable upcast to pCodeOpReg2 (there is no type tag to
4055           differenciate the two and pic16_popGet2p cast into PCOR2)
4056         * src/pic16/main.c (_process_pragma): fixed another malloc bug
4057           (sizeof(sectNames) changed to sizeof(sectName))
4058           Both patches fix segfaults under MinGW.
4059
4060 2005-01-23 Raphael Neider <rneider AT web.de>
4061
4062         * src/pic16/{device.c,pcode.c}: s/free/Safe_free/g for
4063           Safe_[mc]?alloc()'ed variables
4064         * src/pic16/gen.c (pic16_aopOp,pic16_popGet): added handling
4065           of (byte sized) temporaries (assign them to WREG for now)
4066         * src/pic16/main.c (_process_pragma): fixed nasty malloc bug
4067           (used sizeof(set *sectSyms) instead of sizeof(struct sectSym)),
4068           this might fix SIGSEGVs on MinGW...
4069         * src/SDCCopt.c (killDeadCode): restored original behaviour
4070           (volatile operands might get thrown away though)
4071
4072 2005-01-23 Vangelis Rokas <vrokas AT otenet.gr>
4073
4074         * src/pic16/gen.c: fixed bug #1106975,
4075         * src/pic16/gen.c: fixed possible bug #1102572, now during TOS
4076         pointer update, INTCON is saved, global interrupts are disabled and
4077         restored after updateing TOS.
4078         * src/SDCC.y, src/SDCC.lex, src/SDCCsymt.c, src/SDCCsymt.h:
4079         * added function attribute 'shadowregs' to take advantage of shadow
4080         registers,
4081         * added function attribute 'wparam' as an alternative to the wparam
4082         pragma,
4083         * support/Utils/SDCCerr.[ch]: added error E_SHADOWREGS_NO_ISR when
4084         user declares a non-ISR function as 'shadowregs',
4085         * doc/sdccman.lyx: updated to reflect recent changes of pic16 port
4086
4087 2005-01-22 Vangelis Rokas <vrokas AT otenet.gr>
4088
4089         * .version: bumped version number to 2.4.8
4090         * device/lib/pic16/pics.all: list of PIC18F devices supported by
4091         pic16 port,
4092         * device/lib/pic16/libio/i2c/: I2C module support library,
4093         * device/include/pic16/i2c.h: I2C support library header,
4094         * device/lib/pic16/libc/stdio/: standard IO support sources,
4095         * (printf_small.c): printf_small() source, supports float print,
4096         * (printf_tiny.c): printf_tiny() source, does not support floats,
4097         * device/lib/pic16/Makefile.common.in: added OPT_FLAGS macro to
4098         enable global optimizations for entire library source, other
4099         Makefiles in the source tree are also modified to reflect this,
4100         * device/lib/pic16/libc/stdlib/putchar.c (putchar): dummy putchar()
4101         function,
4102         * doc/sdccman.lyx: updated to reflect new changes,
4103         * src/pic16/gen.c (aopForSym): don't handle sym->iaccess in
4104         sym->onStack if-case,
4105         * src/pic16/main.c (_pic16_keywords): commented out keywords bit,
4106         sbit, idata, _idata, xdata, _xdata,
4107         * added pragma library, to link an external library, (see doc),
4108         * removed command line options, --pomit-config-words, --pomit-ivt,
4109         --pleave-reset-vector,
4110         * (pic16_finaliseOptions): when define macro SDCC_MODEL_{SMALL/LARGE}
4111         when calling assembler to reflect memory model used, also define
4112         macro STACK_MODEL_{SMALL/LARGE} when compiling and assembling to
4113         reflect stack model used,
4114         * src/pic16/ralloc.c (pic16_allocDirReg): when operand is allocated
4115         on stack return NULL,
4116
4117 2005-01-22 Daniel Winkler <post AT danielwinkler.de>
4118
4119         * src/SDCCopt.c (killDeadCode): do not throw iCodes away if one
4120           of the operands is volatile. Fixes #1020220
4121
4122 2005-01-22 Daniel Winkler <post AT danielwinkler.de>
4123
4124         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): reenabled optimization
4125         * (OptimizeRegUsage): make sure that there is really no other flow where
4126           the first pCode is used
4127
4128 2005-01-22 Raphael Neider <rneider AT web.de>
4129
4130         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): disabled optimization
4131           to fix #1106967 (pCode->seq are not set up correctly)
4132
4133 2005-01-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4134
4135         * src/SDCCglue.c (glue): make sure code area is declared before the
4136         static initialization area.
4137
4138 2005-01-21 Raphael Neider <rneider AT web.de>
4139
4140         * device/lib/Makefile.in: fixed test for pic16 install dir
4141         * device/lib/pic16/*/Makefile*: modified compile flags to enable
4142           optimizations
4143         * doc/sdccman.lyx: updated banksel optimization, removed --flr-support and
4144           added --optimize-goto compiler switch and pragma wparam documentation
4145         * src/pic16/pcode.c (pic16_OptimizeBanksel): removed statistics dump
4146         * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): fixed copying of WREG, PRODL
4147           and PRODH closing bug #1071770 (peephole optimizer)
4148
4149 2005-01-19 Raphael Neider <rneider AT web.de>
4150
4151         * src/SDCCglobl.h: ensure that PATH_MAX >= 2048 to guarantee
4152           cmdLine buffers (used when calling sdcpp...) are large enough
4153           (MAX_PATH=256 truncates arguments leading to system halts when
4154           used in MinGW...)
4155         * src/pic16/gen.c (pic16_sameRegs): relaxed size criterion
4156         * (genUminus): rewritten to for efficiency
4157         * (genNearPointer[GS]et): enforce reloading of FSR0 (was still
4158           used uninitialized in some cases)
4159         * (genCast): upcasting a 16bit int to a 24bit GPOINTER may not
4160           copy the third byte from the int -- now assumes 0x80 (data memory)
4161         * src/pic16/genarith.c (pic16_genPlus): fixed bug when swapping
4162           operands (genAddLit expects the iCode's operands to swapped as
4163           well), fixed leftover bytes (crashed for short left operands)
4164         * (pic16_genMinusDec): performance improvements, removed false
4165           PIC14 emitSKPNCs
4166         * (pic16_genMinus): fixed to cope with differently sized operands
4167         * src/pic16/glue.c (pic16_glue): added new banksel optimization
4168           for --obanksel > 1
4169         * src/pic16/pcode.c: implemented (first phase of) banksel optimization
4170         * src/pic16/graph.[ch]: implementation of directed graphs, used by
4171           new banksel optimization
4172         * src/pic16/pcoderegs.c (pCodeRegMapLiveRangesInFlow): prevented
4173           analysis for temporary registers (segfaults...)
4174         * src/pic16/peeph.def: added rule
4175
4176 2005-01-18 Vangelis Rokas <vrokas AT otenet.gr>
4177
4178         * device/lib/pic16/libc/stdlib/x_ftoa.c: it defines x_ftoa function
4179         which converts a float number to its ASCII representation
4180         * device/lib/pic16/libc/utils/cnvfrac.S,cnvint.S: support
4181         functions to convert the fractional and integer part of a float to ASCII,
4182         * device/lib/pic16/libc/stdlib/(calloc.c,free.c, malloc.c,
4183         realloc.c): added _MALLOC_SPEC to explicit place variables in data
4184         ram
4185         * device/include/asm/pic16/features.h: added _CODE, _DATA, _AUTOMEM,
4186         _STATMEM macros,
4187         * device/include/pic16/adc.h: added GPL info,
4188         * src/pic16/gen.c (genIfxpCOpJump): perform an genIfxJump but using
4189         a pCodeOp as tested operand,
4190         * (genNearPointerGet): optimized bit testing, does not use
4191         intermediate register for bit value, test directly instead with
4192         BTFSS, BTFSC, works only for single bits,
4193         * (genpic16Code): dump the name of the iCode in the asm,
4194         * src/pic16/ralloc.c (decodeOp): removed static declaration and
4195         renamed to pic16_decodeOp,
4196         * (serialRegAssign): do not allocate a temporary register for iCode
4197         sequences that test a single bit for 1/0
4198
4199 2005-01-12 Vangelis Rokas <vrokas AT otenet.gr>
4200
4201         * src/pic16/pcode.[ch]: introduced pic16_stackpnt_*,
4202         pic16_framepnt_*, pic16_stack_*, pic1_frame_* pointer variables to
4203         access stack and frame pointers. They are initially assigned to
4204         point at pic16_pc_fsr1[lh] and pic16_pc_fsr2[lh] variables and other
4205         accessing SFRs. Updated all occurences of modification of stack or
4206         frame pointer in gen.c and pcode.c,
4207         * src/pic16/ralloc.c (serialRegAssign): fixed two bugs with
4208         assigning of a literal value to pointers,
4209         * src/pic16/main.c (pic16_finiliseOptions): set pre-processor define
4210         flag STACK_MODEL_SMALL or STACK_MODEL_LARGE according to the model
4211         selected
4212
4213 2005-01-11 Vangelis Rokas <vrokas AT otenet.gr>
4214
4215         * doc/sdccman.lyx: update documentation about stack pragma, added
4216         some info for stack memory models
4217
4218 2005-01-08 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4219
4220         * src/pic16/gen.c (DEBUGpc): MSVC 6 does not support macro variable arguments
4221
4222 2005-01-08 Raphael Neider <rneider AT web.de>
4223
4224         * src/pic16/device.c (pic16_dump_usection): changed naming scheme for
4225           udata sections to fix bug #1097823
4226
4227 2005-01-05 Raphael Neider <rneider AT web.de>
4228
4229         * src/pic16/gen.c (genGenericShift): added handling of differently
4230           sized left operand and result
4231
4232 2005-01-04 Raphael Neider <rneider AT web.de>
4233
4234         * src/pic16/gen.c (genIfxJump): fixed inverted skips on CARRY
4235         * (genIfx): fixed (?) read from uninitialized SPIL_LOC (now assumes CARRY
4236           to hold the condition bit)
4237         * added new version of genCmp (old code available via #define)
4238         * added new version of genShiftLeft/genShiftRight in a generic
4239           way, now supports shifting by negative values
4240         * (genLeftShiftLiteral, genRightShiftLiteral): use absolute value of
4241           shiftCount (expected by genGenericShift)
4242         * src/pic16/genarith.c (genPlus): added code for adding CARRY+literal
4243         * src/pic16/pcode.c (pic16_OptimizeJumps): removed annoying statistics
4244           dump
4245         * (pic16_newpCodeOpLit): changed to cast to unsigned char (as e.g. -32766
4246           is an invalid literal too...)
4247
4248 2005-01-04 Vangelis Rokas <vrokas AT otenet.gr>
4249
4250         * src/pic16/gen.c (aopForSym, genEndFunction): applied some fixes
4251         from Raphael Neider,
4252         * src/pic16/pcode.c (pic16_newpCodeOpLit): removed casting to char
4253         for 8-bit literals. This fixes some literal operands which are sign
4254         extended to 16-bits ints when instruction needs only 8-bits.
4255
4256 2004-12-31 Paul Stoffregen <paul AT pjrc.com>
4257
4258         * device/lib/logf.c: added mcs51 assembly version
4259         * device/lib/expf.c: added mcs51 assembly version
4260         * device/lib/_logexpf.c: new shared asm code for expf and logf
4261         * device/include/math.h: add defines for assembly math library
4262         * device/lib/Makefile.in: build new _logexpf.c
4263         * device/lib/libfloat.lib: use new _logexpf.c
4264
4265 2004-12-29 Slade Rich <slade_rich AT users.sourceforge.net>
4266
4267         * src/pic/device.c
4268         * src/pic/pcode.c : adjusted internal stack and pre-allocated registers for
4269           device types which have less than 0x7f registers.
4270
4271 2004-12-29 Slade Rich <slade_rich AT users.sourceforge.net>
4272
4273         * src/pic/genarith.c : Fixed problem with subtraction where the result would not be updated when borrowing.
4274
4275 2004-12-28 Paul Stoffregen <paul AT pjrc.com>
4276
4277         * device/lib/printf_fast.c: only build on supported arch.
4278         * device/lib/printf_tiny.c: only build on supported arch.
4279         * device/lib/printf_fast_f.c: only build if asm float lib
4280         * device/lib/_fsget1arg.c: only build if asm float lib
4281         * device/lib/_fsget2args.c: only build if asm float lib
4282         * device/lib/_fsnormalize.c: only build if asm float lib
4283         * device/lib/_fsreturnval.c: only build if asm float lib
4284         * device/lib/_fsrshift.c: only build if asm float lib
4285         * device/lib/_fsswapargs.c: only build if asm float lib
4286         * device/include/stdio.h: don't provide print_fast,
4287           print_fast_f, print_tiny prototypes if --xstack used
4288
4289 2004-12-28 Maarten Brock <sourceforge.brock AT dse.nl>
4290
4291         * device/lib/sincosf.c (sincosf): don't invert bit/bool by ~
4292         * support/regression/ports/mcs51-stack-auto/spec.mk: added new _fs.. files
4293           to the SOURCES
4294
4295 2004-12-28 Paul Stoffregen <paul AT pjrc.com>
4296
4297         * device/lib/printf_fast_f.c: same as printf_fast, but
4298           with floating point enabled
4299         * device/lib/printf_fast.c: minor tweaks
4300         * device/include/stdio.h: add printf_fast_f
4301
4302 2004-12-27 Paul Stoffregen <paul AT pjrc.com>
4303
4304         * src/SDCCmain.c: make --float-reent default for mcs51
4305         * device/lib/_fsadd.c: added mcs51 assembly version
4306         * device/lib/_fssub.c: added mcs51 assembly version
4307         * device/lib/_fsmul.c: added mcs51 assembly version
4308         * device/lib/_fsdiv.c: added mcs51 assembly version
4309         * device/lib/_fseq.c: added mcs51 assembly version
4310         * device/lib/_fsneq.c: added mcs51 assembly version
4311         * device/lib/_fsgt.c: added mcs51 assembly version
4312         * device/lib/_fslt.c: added mcs51 assembly version
4313         * device/lib/_fscmp.c: shared code for fseq,fsgt,fslt,fsneq
4314         * device/lib/Makefile.in: add _fscmp to build
4315         * device/lib/libfloat.lib: add _fscmp to build
4316
4317 2004-12-27 Paul Stoffregen <paul AT pjrc.com>
4318
4319         * device/lib/_fs2slong.c: added mcs51 assembly version
4320         * device/lib/_fs2sint.c: added mcs51 assembly version
4321         * device/lib/_fs2schar.c: added mcs51 assembly version
4322         * device/lib/_fs2ulong.c: added mcs51 assembly version
4323         * device/lib/_fs2uint.c: added mcs51 assembly version
4324         * device/lib/_fs2uchar.c: added mcs51 assembly version
4325         * device/lib/_slong2fs.c: added mcs51 assembly version
4326         * device/lib/_sint2fs.c: added mcs51 assembly version
4327         * device/lib/_schar2fs.c: added mcs51 assembly version
4328         * device/lib/_ulong2fs.c: added mcs51 assembly version
4329         * device/lib/_uint2fs.c: added mcs51 assembly version
4330         * device/lib/_uchar2fs.c: added mcs51 assembly version
4331         * device/include/float.h: added #define to select asm vs c
4332
4333 2004-12-26 Paul Stoffregen <paul AT pjrc.com>
4334
4335         * device/lib/printf_fast.c: improvements to float output
4336         * device/include/float.h: add defines for assembly float library
4337         * device/lib/_fsget1arg.c: receive 1 float arg
4338         * device/lib/_fsget2args.c: receive 2 float args (reentrant)
4339         * device/lib/_fsnormalize.c: normalize a float
4340         * device/lib/_fsreturnval.c: return float, various helper routines
4341         * device/lib/_fsrshift.c: right shift a float's mantissa
4342         * device/lib/_fsswapargs.c: swap 2 floats
4343         * device/lib/Makefile.in: build these 6 new files for mcs51
4344         * device/lib/libfloat.lib: add these 6 files to the library
4345
4346 2004-12-26 Borut Razem <borut.razem AT siol.net>
4347
4348         * sim/ucsim/avr.src/arith_inst.cc: fixed bug #1088372- savr is not
4349           built by gcc 3.4.2
4350
4351 2004-12-25 Paul Stoffregen <paul AT pjrc.com>
4352
4353         * device/lib/printf_tiny.c: printf for mcs51 in only 267 bytes,
4354           and fully reentrant and register bank neutral.
4355         * device/lib/printf_fast.c: added float (not enabled by default),
4356           added compact/slower integer (also not enabled by default),
4357           improved size/speed of fast integer code, other minor changes
4358         * device/include/stdio.h, device/lib/Makefile.in,
4359           device/lib/libsdcc.lib: integrate printf_tiny into mcs51 build
4360
4361 2004-12-24 Maarten Brock <sourceforge.brock AT dse.nl>
4362
4363         * src/pic16/pcode.c: declaring variables other than at the start of a
4364           block is not supported in C by VC6.
4365
4366 2004-12-22 Vangelis Rokas <vrokas AT otenet.gr>
4367
4368         * applied a previous patch from Raphael Neider that wasn't included
4369         in the previous commits, which fixes infinite loops within jumptable
4370         improvements,
4371         * made some fixes that previous patches introduced
4372
4373 2004-12-21 Vangelis Rokas <vrokas AT otenet.gr>
4374
4375         * src/pic16/gen.c (pic16_aopGet): applied fix from Raphael Neider
4376         that fixes an issue with AOP_PCODE asmop's offset,
4377         * (pic16_popCopyReg): update instance field too,
4378         * (mov2w): modified to pic16_mov2w because it conflicts with mov2w
4379         function of pic port,
4380         * (genCmp, genAnd, genAssign),
4381         * src/pic16/genarith.c (genAddLit): some fixes from Raphael Neider,
4382
4383 2004-12-20 Vangelis Rokas <vrokas AT otenet.gr>
4384
4385         * src/SDCCast.c (gatherAutoInit): allow pic16 to emit static
4386         variables initial values to idata section,
4387         * src/SDCCicode.c (geniCodeCall): patch from ### to fix unreferenced
4388         variables in some functions. This utilizes parmBytes field of iCode
4389         structure to hold the offset of the variable in stack. (might be
4390         able to use the stack field too?)
4391         * applied patch from Raphael Neider # ### , # ###
4392         * src/pic16/glue.c (pic16emitRegularMap): fix to print static
4393         variable initial values in idata section,
4394         * src/pic16/ralloc.c (pic16_allocDirReg): don't allocate register
4395         for static variables with initial value
4396         * src/device/lib/pic16/libsdcc/float/ulong2fs.c (__ulong2fs):
4397         applied fix in while loop from Raphael Neider.
4398
4399 2004-12-19 Maarten Brock <sourceforge.brock AT dse.nl>
4400
4401         * src/ds390/gen.c (genCpl): fixed bit=~(char/bit) bugs, added warning
4402         * src/ds390/main.c (_ds390_regparm): don't pass bit params in registers
4403         * src/ds390/ralloc.c (serialRegAssign): spill bits
4404         * src/mcs51/gen.c (genCpl): fixed bit=~(char) bugs, added warning
4405         * support/Util/SDCCerr.c,
4406         * support/Util/SDCCerr.h: added warning W_COMPLEMENT for using bit=~(bit)
4407         * support/regression/tests/bitvars.c: added tests for bitwise complement(~)
4408         * support/regression/tests/bitwise.c: added test for bitwise complement(~)
4409
4410 2004-12-09 Maarten Brock <sourceforge.brock AT dse.nl>
4411
4412         * device/include/sdcc-lib.h: inserted LGPL, added includes
4413           asm/ds390/features.h and asm/mcs51/features.h
4414         * device/include/asm/default/features.h,
4415         * device/include/asm/gbz80/features.h,
4416         * device/include/asm/z80/features.h: added empty _AUTOMEM
4417           and _STATMEM
4418         * device/include/asm/ds390/features.h,
4419         * device/include/asm/mcs51/features.h: added files with defines for
4420           _AUTOMEM and _STATMEM indicating automatic and static storage class
4421         * device/lib/printf_large.c (_print_format): optimized & used _AUTOMEM
4422         * doc/sdccman.lyx: version 2.4.7, updated xstack documentation
4423         * src/SDCCicode.c (geniCodeCast),
4424         * src/SDCCsymt.c (compareType): allow cast of data-ptr to idata-ptr
4425         * src/SDCCloop.c (loopInduction): removed unused variable lr
4426         * src/SDCCopt.c (convilong, convertToFcall): moved "easy special case"
4427           to convertToFcall to include char modulo (RFE 1065037), added check
4428           if left operand is unsigned and use abs of literal value
4429         * src/SDCCpeeph.c (setFromConditionArgs): removed double quotes option
4430           as it doesn't work after conversion from peephole.def to peephole.rul
4431         * src/mcs51/gen.c (toBoolean): added check for size,
4432           (genModOneByte): optimized code for signed char modulo a literal
4433           power of 2 (thanks to Hubert Sack),
4434           (genRRC): removed unnecessary "clr c",
4435           (genRLC): replaced "add a,acc" with cheaper "rlc a"
4436         * src/mcs51/peeph.def: renamed 115 to 115.a, added rule 115.b: another
4437           jump optimization,
4438           swapped rules 256.c and 256.d,
4439           extended 256.d by using new multiple checks (thanks Erik),
4440           added rules 256.e and 256.f,
4441           updated rule 261.a and 261.b to new generated code
4442         * support/regression/tests/muldiv.c: added test div/mod by a power of 2
4443
4444 2004-12-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4445
4446         * src/SDCCloop.c (basicInduction, loopInduction): fixed several
4447           induction related bugs, including first part of bug #1074377
4448
4449 2004-12-05 Vangelis Rokas <vrokas AT otenet.gr>
4450
4451         * applied patch from bug-report #1076292,
4452         * applied patches for genAnd and Goto-optimizations for Raphael
4453         Neider,
4454         * src/SDCCicode.c (printOperand): fixed !REGA source to compile and
4455         dump a less iCode information,
4456         * src/pic16/device.h (pic16_options_t): added field debgen,
4457         * src/pic16/gen.h: added macros DUMP_FUNCTION_ENTRY,
4458         DUMP_FUNCTION_EXIT, FENTRY, FENTRY2,
4459         * src/pic16/gen.c (my_powof2): renamed to pic16_my_powof2 and made
4460         puclic,
4461         * (various functions): added macros FENTRY and FENTRY2 to functions,
4462         to emit function prologue,
4463         * (various functions): fixed indentation,
4464         * (genNearPointerGet): fixed loading of FSR0,
4465         * (genPackBits): applied patch from Raphael Neider to fix updating
4466         of FSR0 and touching only the modified bits,
4467         * src/pic16/genarith.c (various functions): added macros FENTRY to
4468         emit function prologue in comments,
4469         * src/pic16/pcode.h: added functions debugf2, debugf3,
4470         * src/pic16/ralloc.c: partial fix for packForPush caused
4471         segmentation fault,
4472
4473 2004-12-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4474
4475         * src/mcs51/peeph.def: added 261.a,b (16 bit rotate) by Stas Sergeev
4476           <stsp AT users.sourceforge.net> with reversed byte order
4477         * support/regression/tests/rotate.c: added (ds390 skips some tests)
4478
4479 2004-12-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4480
4481         * src/z80/gen.c (genLeftShift, genRightShift): fixed second part of
4482           bug #1074377
4483         * src/hc08/gen.c (genrshFour, shiftRLong, shiftLLong),
4484         * src/mcs51/gen.c (shiftLLong): Fixed some shifting bugs Frieder found
4485
4486 2004-12-02 Slade Rich <slade_rich AT users.sourceforge.net>
4487
4488         * src/pic/pcode.c : fixed a problem where banksel was not being inserted.
4489
4490 2004-12-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4491
4492         * src/SDCCpeeph.c (callFuncByName): support combined peephole rule
4493           conditions,
4494           (setFromConditionArgs): friendly operand parser for peephole rules,
4495           (operandBaseName, operandsNotRelated): new peephole condition
4496           "operandsNotRelated" -- similar to "operandsNotSame", but takes
4497           architecture specific register naming into account, handles n-way
4498           comparisons, and supports quoted literals
4499         * src/mcs51/peeph.def: restored rule 177.d with an extra condition
4500
4501 2004-12-02 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4502
4503         * src/mcs51/peeph.def: fixed bug #1076940
4504
4505 2004-12-02 Slade Rich <slade_rich AT users.sourceforge.net>
4506
4507         * device/include/pic/pic16f877.h : added an include file for the PIC16F877 device.
4508
4509 2004-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4510
4511         Adding support for replacing ljmps with sjmps in jumptables
4512         generated for switch statements. For now you need to set the
4513         environment variable SDCC_SJMP_JUMPTABLE to enable this.
4514         Now 4 algorithms for mcs51 jumptable generation are used:
4515         ljmp or sjmp jumptables for up to 16 cases, stack-pushing target
4516         addresses loaded pc-relative for up to 112 cases and stack-pushing
4517         target addresses loaded with offset from dptr for up to 256 cases.
4518
4519         * src/SDCCpeeph.c: added peephole conditional labelJTInRange
4520         * src/mcs51/main.c: adapted constants for switch table generation
4521         * src/mcs51/peeph.def: added 260.x for replacing ljmp with sjmp
4522
4523 2004-11-26 Maarten Brock <sourceforge.brock AT dse.nl>
4524
4525         * device/lib/printf_large.c (_print_format): fixed bug 1073386
4526         * support/regression/tests/bug1057979.c: added test for bug 1073386
4527
4528 2004-11-25 Vangelis Rokas <vrokas AT otenet.gr>
4529
4530         * src/pic16/pcode.c: fixed bug which may produce error in non-GNU
4531         compilers
4532
4533 2004-11-25 Vangelis Rokas <vrokas AT otenet.gr>
4534
4535         * src/pic16/device.h,
4536         * src/pic16/genarith.c,
4537         * src/pic16/glue.c,
4538         * src/pic16/main.c,
4539         * src/pic16/pcode.c: applied patches #1068154 and #1070213
4540
4541 2004-11-24 Vangelis Rokas <vrokas AT otenet.gr>
4542
4543         Large cummulative patch for pic16 port.
4544         * device/lib/pic16/gstack.h: NEW, user can specify its own handler
4545         to call when a stack overflow occurs,
4546         * (malloc.h): added CVS Id tag,
4547         * (pic18f{242,252,442,452}.h): added T0CONbits structure and
4548         variable,
4549         * added libc directory. The current version of LibC contains string
4550         functions, ctype functions and macros and some functions of the
4551         stdlib set (like malloc/free/atof/atoi etc...). All functions are to
4552         be extensively tested in the future. Standard disclaimer here.
4553         Library is not automatically build yet. But one can build it by
4554         invoking 'make' inside the libc directory.
4555         * added ADC library under libio. Preliminary version yet.
4556
4557         * src/pic16/gen.h: added emitTOGC macro, to toggle Carry flag,
4558         * src/pic16/gen.c (aopForRemat): asmop size is filled by
4559         aopForRemat() now and not by pic16_aopOp(),
4560         * (pic16_popGetTempReg): removed warning messgae when allocating
4561         temporary registers, its a buggy feature and will be removed,
4562         * (pic16_popGet): set register instance field in AOP_CRY,
4563         * (pic16_outBitC): fixed for results in size greater than 1,
4564         * (genUminusFloat): fixed for pic16, ported code from mcs51,
4565         * (pic16_storeForReturn): optimized return of 0,
4566         * (genCmp): experimental code for new genCmp which uses PIC18's
4567         special compare&skip instructions. Initial tests fail some times
4568         with variables grater than 1 byte in size, so new code is disabled,
4569         * (genUnpackBits, genPackBits): more optimizations in reading/writing,
4570         a single bit,
4571         * (genCast): began a fix to optimize the casting of a bit to another
4572         bit, now assigning a bitfield to another bitfield will fail, sorry,
4573         * src/pic16/main.c: disabled the use of lr-support feature,
4574         * src/pic16/pcode.h: renamed PCASMDIR to PCAD,
4575         * added some function prototypes, added function _debugf prototype,
4576         * src/pic16/pcode.c: (pic16_get_op): fixed emitting operands of register
4577         bits with offset (case PO_GPR_BIT),
4578         * (genericPrint): don't emit INFO pcode when --pcode-verbose not in
4579         command line,
4580         * (isBankInstruction): modified to return 0 for no banking instruction,
4581         and 1 for banking instruction,
4582         * (pic16_isPCinFlow): check for PCAD (assembler directives) too,
4583         caused stop processing pCodes after a inline assembly block,
4584         * (pic16_popCopyGPR2Bit): updated to match bitfields with offset,
4585         * src/pic16/pcoderegs.c: fixed a bug with eliminating some temporary
4586         registers when it shouldn't,
4587         * src/pic16/ralloc.c (allocReg): add preliminary support for
4588         supporting a limited set of temporary registers,
4589
4590 2004-11-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4591
4592         * src/hc08/gen.c (genAssign, genPointerGetSetOfs, genDataPointerGet,
4593           genDataPointerSet): ensure assignments always copy in MSB to LSB
4594           order,
4595           (loadRegFromAop): recognize CLRH optimization,
4596           (genFunction): optimize RECEIVE iCodes in reentrant functions
4597
4598 2004-11-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4599
4600         * src/SDCCmain.c (parseCmdLine, optionsTable[]): fixed bug with
4601           --out-fmt-s19 turning into --out-fmt-elf if s19 was already
4602           selected.
4603         * src/SDCCmain.c (linkEdit): don't define SSEG for HC08
4604         * src/hc08/main.c (_hc08_setDefaultOptions): default xdata to be
4605           contiguous with data
4606
4607 2004-11-19 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4608
4609         * device/lib/_gptrget.c (_gptrget),
4610         * device/lib/_gptrgetc.c (_gptrgetc),
4611         * device/lib/_gptrput.c (_gptrput): _naked allows to use ret
4612           instead of sjmp to ret
4613         * src/mcs51/peeph.def: added peepholes 3.d-g and 177.g,h provided
4614           by Hubert Sack <hsack2002 AT arcor.de> in RFE #1067986, thanks
4615
4616 2004-11-18 Maarten Brock <sourceforge.brock AT dse.nl>
4617
4618         * .version: bumped version to 2.4.7
4619         * device/lib/_gptrget.c (_gptrget): is now _naked
4620         * device/lib/_gptrgetc.c (_gptrgetc): is now _naked
4621         * device/lib/_gptrput.c (_gptrput): is now _naked
4622         * src/SDCCast.c (createBlock): removed ridiculous self-assignment,
4623           (createFunction): fixed xstack
4624         * src/SDCCglue.c (emitMaps): set allocation required for bit area
4625         * src/SDCCicode.c (geniCodeCast): don't change SPEC_OCLS for literal
4626           or bit either,
4627           (geniCodeCritical): store original interrupt state in an iTemp bit
4628           var unless stack-auto
4629         * src/SDCCicode.h: added CRITICAL and ENDCRITICAL to SKIP_IC2
4630         * src/SDCCmain.c (setIncludePath): added include/target to search path
4631         * src/SDCCmem.c (allocParms): store bit vars in bit space, not overlay
4632         * src/SDCCsymt.c (checkFunction): don't check regbank for isr's against
4633           prototype,
4634           (processFuncArgs): put bit vars in bit area
4635         * src/mcs51/gen.c (saveRegisters, unsaveRegisters, genXpush, saveRBank,
4636           unsaveRBank): fixed xstack,
4637           (genFunction): bugfix: replaced (global!) reentrant with fReentrant,
4638           (genFunction, genEndFunction): fixed xstack,
4639           (genAssign): optimization don't walk backwards through mem
4640         * src/mcs51/main.c (_mcs51_regparm): don't pass bit params in registers
4641         * src/mcs51/ralloc.c (createStackSpil): spill bits to bit area
4642         * support/regression/Makefile: also make library (for stack-auto) when
4643           making "all" and added "test-mcs51-xstack-auto"
4644         * support/regression/fwk/lib/testfwk.c: added T2_isr prototype for mcs51
4645         * support/regression/ports/mcs51/T2_isr.c: added this file as a stub
4646         * support/regression/ports/mcs51/fwk.lib: added to link T2_isr stub
4647         * support/regression/ports/mcs51/spec.mk: added rules for fwk.lib
4648         * support/regression/ports/mcs51-stack-auto/spec.mk: replaced
4649           make-library by MAKE_LIBRARY
4650         * support/regression/ports/mcs51-xstack-auto/spec.mk: file added to run
4651           regression tests for xstack
4652         * support/regression/tests/bitvars.c: test for bit vars (bug 938782)
4653         * support/regression/tests/critical.c: test for critical on mcs51
4654
4655 2004-11-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4656
4657         * support/regression/ports/ucz80/spec.mk: use include and lib files from
4658           built version of sdcc instead of installed version
4659
4660 2004-11-14 Maarten Brock <sourceforge.brock AT dse.nl>
4661
4662         * src/mcs51/gen.c (toBoolean): fixed bug 1065458
4663         * device/lib/Makefile.in: z80 uses printf_large.c, sprintf.c and
4664           vprintf.c now
4665         * device/lib/printf_large.c (calculate_digit): fixed bug 1057979
4666         * device/lib/z80/Makefile: don't use printf.c as it fails bug 1057979
4667           WARNING: remove device/lib/build/z80/printf.o by hand when
4668           updating from previous build!
4669         * device/lib/z80/printf.c: updated comment
4670         * support/regression/tests/bug1057979.c: test all ports now
4671         * support/regression/tests/bug1065458.c: file added
4672
4673 2004-11-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4674
4675         * src/z80/gen.c (genFunction, genEndFunction): avoided generating
4676           *_start and *_end symbols for static functions
4677
4678 2004-11-11 Maarten Brock <sourceforge.brock AT dse.nl>
4679
4680         * src/SDCCmain.c (linkEdit): don't suppress crt0 if --nostdlib is used
4681           and search crt0.o in all library paths,
4682           (setIncludePath): proper handling of --nostdinc,
4683           (setLibPath): proper handling of --nostdlib
4684         * support/regression/Makefile,
4685         * support/regression/ports/ds390/spec.mk,
4686         * support/regression/ports/gbz80/spec.mk,
4687         * support/regression/ports/hc08/spec.mk,
4688         * support/regression/ports/mcs51/spec.mk,
4689         * support/regression/ports/mcs51-large/spec.mk,
4690         * support/regression/ports/mcs51-stack-auto/spec.mk,
4691         * support/regression/ports/z80/spec.mk: use include and lib files from
4692           built version of sdcc instead of installed version
4693         * doc/sdccman.lyx: fixed typo in --nostdinc
4694
4695 2004-11-10 Slade Rich <slade_rich AT users.sourceforge.net>
4696
4697         * src/pic/pcode.c,
4698         * src/pic/device.c,
4699         * src/pic/ralloc.c,
4700         * src/pic/gen.c : added support to generate code for struct bit fields.
4701
4702 2004-11-06 Maarten Brock <sourceforge.brock AT dse.nl>
4703
4704         * as/xa51/xa_version.h,
4705         * device/include/errno.h,
4706         * device/include/regc515c.h,
4707         * device/lib/_itoa.c,
4708         * device/lib/_ltoa.c,
4709         * device/lib/ser_ir_cts_rts.c,
4710         * sim/ucsim/xa.src/glob.cc,
4711         * sim/ucsim/xa.src/inst_gen.cc,
4712         * sim/ucsim/xa.src/xa_bit.cc,
4713         * sim/ucsim/xa.src/xa_sfr.cc,
4714         * sim/ucsim/z80.src/inst_dd.cc,
4715         * sim/ucsim/z80.src/inst_fdcb.cc,
4716         * support/scripts/keil2sdcc.pl,
4717         * src/pic16/pic16.dsp,
4718         * src/pic16/pic16a.dsp: corrected cvs line endings
4719         * device/lib/printf_large.c: fixed bug 1057979
4720         * src/pic16/gen.c: fixed non-C standard code
4721         * src/SDCCmain.c: made --pack-iram default, added --no-pack-iram
4722         * src/SDCCglobl.h: changed pack_iram to no_pack_iram
4723         * support/regression/ports/mcs51/support.c: reload T1 asap
4724         * doc/sdccman.lyx: updated for options --pack-iram and --no-pack-iram,
4725           pdata use and clear idata startup behaviour
4726         * support/regression/tests/bug1057979.c: added
4727
4728 2004-11-04 Maarten Brock <sourceforge.brock AT dse.nl>
4729
4730         * device/examples/ds390/ow390/ad26.h,
4731         * device/examples/ds390/ow390/cnt1d.h,
4732         * device/examples/ds390/ow390/crcutil.c,
4733         * device/examples/ds390/ow390/ownet.h,
4734         * device/examples/ds390/ow390/owsesu.c,
4735         * device/examples/ds390/ow390/swt12.h,
4736         * device/examples/ds390/ow390/swtoper.c,
4737         * device/examples/ds390/ow390/temp10.h,
4738         * device/examples/ds390/ow390/thermodl.c,
4739         * device/examples/ds390/tinitalk/tinitalk.dsp,
4740         * device/examples/ds390/tinitalk/tinitalk.dsw,
4741         * device/examples/mcs51/clock/hw.h,
4742         * device/examples/mcs51/simple2/go.bat,
4743         * device/examples/serialcomm/windows/serial.h,
4744         * device/examples/xa51/dummy.c,
4745         * device/examples/xa51/hello.c,
4746         * device/include/80c51xa.h,
4747         * device/include/at89x051.h: corrected cvs line endings
4748
4749 2004-11-04 Vangelis Rokas <vrokas AT otenet.gr>
4750
4751         * src/pic16/main.c (options): added command line --gstack, to trace
4752         stack over/under flows,
4753         * added pragma 'wparam' to allow passing first byte of function
4754         parameters via WREG, syntax is #pragma wparam my_function[, func2...]
4755         * src/pic16/gen.c (pic16_testStackOverflow): function which emits a
4756         call to __gstack_test function and sets up the symbol as extern,
4757         * (pic16_pushpCodeOp, pic16_poppCodeOp, pushw, pushaop, popaopidx,
4758         * popaop): added call to pic16_testStackOverflow,
4759         * (wParamCmp, inWparamList): NEW, test existence of a symbol in
4760         wparamList list,
4761         * (genCall, genPcall): now all parameters are passed via stack
4762         except in functions that are pass to wparam pragma in which WREG is
4763         used too,
4764         * (genPcall): REENTRANT flag is checked to see if variable prototype
4765         contains reentrant keyword, don't call a non-reentrant function, via
4766         a reentrant function pointer or vice versa, functions are never
4767         passed via WREG,
4768         * (genJumpTab): applied patch from bug #1057478 by R.Neider and
4769         D.Winkler,
4770         * src/pic16/glue.c (pic16emitRegularMap): fixed bug which caused a
4771         SIGSEGV when accessing a NULL register stucture,
4772         * (pic16_printGPointerType): modified to handle UPPER modifier for
4773         function initializers, changed prototype of function to simpler one,
4774         * (pic16_printIvalFuncPtr): check to see if function is already
4775         added in externs list,
4776         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): fixed bug which
4777         optimized a move from W to SFR with a move to the same register
4778         later after a CALL,
4779         * device/lib/pic16/debug: NEW directory, contains debug features
4780         which are enabled when linking with libdebug.lib, currently command
4781         line option --gstack enables stack pointer tracing for over/under
4782         flow, corresponding sources are in debug/gstack
4783
4784 2004-10-30 Vangelis Rokas <vrokas AT otenet.gr>
4785
4786         * doc/sdccman.lyx: updated SDCC version,
4787         * (PIC16 port): update list of command line options,
4788         * src/pic16/device.h (structure pic16_options_t): added field gstack
4789         to enable stack overflow tracing on push/pops,
4790         * src/pic16/device.c (statistics structure): added statistics
4791         structure,
4792         * (pic16_dump_access, pic16_dump_usection, pic16_dump_gsection,
4793         pic16_dump_int_registers): increase statistics counters for each
4794         * variable which is encountered
4795         * (pic16_dump_usection): emit each .udata variable to its own udata
4796         section,
4797         * src/pic16/gen.c (assignResultValue, genCall, genPcall, genFunction):
4798         when macro USE_WREG_IN_FUNC_PARAMS is set to 0 pass all function
4799         parameters via stack, otherwise use old scheme,
4800         * src/pic16/glue.c (pic16_emitStatistics): dump statistics in
4801         assembler output file,
4802         * src/pic16/main.c: added command line options --gstack to enable
4803         push/pop tracing for stack overflow,
4804         * src/pic16/pcode.c (all pCodeInstruction records for PIC18F
4805         instructions): added size of each instruction,
4806         * (pic16_countInstruction): estimate size of instructions in
4807         the_pFile list, inline assembly blocks are not counted,
4808         * (pic16_FixRegisterBanking): trace previous register usage, when
4809         banksel optimizations is greater than 0, don't emit a redudant
4810         banksel directive,
4811
4812 2004-10-26 Slade Rich <slade_rich AT users.sourceforge.net>
4813
4814         * src/pic/ralloc.c : fixed inefficient code produced when compiling a complimented bit operation.
4815         * src/pic16/ralloc.c : applied same fix for pic16.
4816         * src/pic/gen.c : tidied it up a little.
4817
4818 2004-10-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4819
4820         * src/mcs51/peeph.def: disabled 259.a,b for removing redundant ret,
4821         thanks to Martin Helmling for reporting (mail on sdcc-devel 2004-10-25)
4822
4823 2004-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4824
4825         * src/SDCCast.c (reverseParms): fixed bug #1040577 (part 2)
4826
4827 2004-10-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4828
4829         * device/lib/ser_ir_cts_rts.c: integer promotion caused a call to the
4830         non-reentrant function __modsint in the interrupt function (thus
4831         corrupting math operations during serial I/O)
4832         * device/lib/ser_ir.c: as above, changed buffersize
4833         * src/mcs51/peeph.def: added 259.a,b for removing redundant ret,
4834         256.c,d for zeroing
4835         * doc/Makefile: added option -t for rsync
4836
4837 2004-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4838
4839         * src/SDCCast.h (struct ast),
4840         * src/SDCCast.c (reverseParms, copyAst): fixed bug #1040577 (part 1)
4841
4842 2004-10-20 Borut Razem <borut.razem AT siol.net>
4843
4844         * support/scripts/sdcc.nsi: added include/pic16/*.h to the setup
4845         package
4846
4847 2004-10-20 Vangelis Rokas <vrokas AT otenet.gr>
4848
4849         * device/lib/pic16/libsdcc/Makefile: added lregs directory in
4850         makefile targets,
4851         * device/lib/pic16/libsdcc/lregs/{Makefile,lrst.c,lrrest.c}: NEW
4852         support functions to replace long sequences of MOVFF's from access
4853         bank registers to stack and vice versa,
4854         * src/pic16/device.h: added new field opt_flags, where optimization
4855         flags can be set to enable certain features,
4856         * src/pic16/gen.c (pic16_emitpinfo): NEW to add PC_INFO pCode in
4857         * pBlock, (genFunction, genEndFunction): surroung loop for
4858         saving/loading used registers in stack with PC_INFO pCodes,
4859         INF_LREGS. Code in between can then be optimized by pCode optimizer
4860         to support function calls,
4861         * (genDataPointerSet): fixed bug which loaded float fields in
4862         structures with corrupt data,
4863         * src/pic16/genutils.c (debugf, _debugf): macro/function which emits
4864         in a standard way debug info on stderr. Feature used for developing
4865         and debugging only,
4866         * src/pic16/glue.c (pic16glue): reformatted, deleted some old and
4867         obsolete chunks of code,
4868         * if optimization flag OF_LR_SUPPORT was set, call pic16_OptimizeLocalRegs,
4869         * src/pic16/main.c (_pic16_parseOptions): added handler for --flr-support,
4870         * pic16/src/pcode.c (pic16_newpCodeInfo,
4871         * (pic16_newpCodeOpLocalRegs),
4872         * (pic16_convertLocalRegs2Support): NEW, to support new optimization
4873         feature,
4874         * (pic16_pCodeConstString): printing of the initial value of a
4875         symbol as a comment is inhibited since parsing was already done by
4876         copyStr and output is corrupt,
4877         * (pic16_pCode2str, genericPrint): handle PC_INFO pCode,
4878
4879 2004-10-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4880
4881         * src/mcs51/ralloc.c (packRegisters): fixed bug #1044601
4882
4883 2004-10-19 Maarten Brock <sourceforge.brock AT dse.nl>
4884
4885         * as/mcs51/lkarea.c: removed old K&R style,
4886           (lnksect): changed check on boundary error,
4887           (lnksect2): changed check on boundary error,
4888           (lnksect2): extend XSTK to end of page if size = 1
4889         * as/mcs51/lkmain.c: removed old K&R style,
4890           (Areas51): create l_IRAM symbol
4891         * as/mcs51/lkmem.c (summary2): added report on PSEG and XSTK
4892         * device/lib/Makefile.in: renamed model-mcs51-reentrant to
4893           model-mcs51-stack-auto, added model-mcs51-xstack-auto
4894         * device/lib/_mullong.c: added version to be compiled with xstack
4895         * device/lib/mcs51/crtclear.asm: clear only upto --iram-size
4896         * device/lib/mcs51/crtxclear.asm: clear pdata as well
4897         * device/lib/mcs51/crtxstack.asm: fixed comment
4898         * src/SDCCglue.c: maxInterrupts defaults to 0,
4899           (emitMaps): added pdata,
4900           (createInterruptVect): (re)moved default,
4901           (glue): added pdata,
4902           (glue): moved __start__xstack to XSTK with default size 1
4903         * src/SDCCmain.c (parseCmdLine): automatically set options.intlong_rent
4904           and options.float_rent when options.stackAuto is set,
4905           (linkEdit): only write XDATA_NAME if provided on command line
4906         * src/SDCCmem.h,
4907         * src/SDCCmem.c: added pdata
4908         * src/port.h: added pdata_name to PORT
4909         * src/mcs51/gen.c (toBoolean): fixed for Acc use of aopGet,
4910           (saveRegisters, unsaveRegisters): removed usage of B,
4911           (genMinus): fixed accumulator clash,
4912           (genJumpTab): added comment, this needs another look
4913         * src/mcs51/gen.c: added check for "B in use" paranoia,
4914           added pushB() and popB()
4915         * src/mcs51/peeph.def: restart after 177.c so 177.a can get a second
4916           chance
4917         * src/avr/main.c,
4918         * src/ds390/main.c,
4919         * src/hc08/main.c,
4920         * src/mcs51/main.c,
4921         * src/pic/main.c,
4922         * src/pic16/main.c,
4923         * src/xa51/main.c,
4924         * src/z80/main.c: (reset_regparms) made void parameter explicit and
4925           added PSEG (PAG,XDATA) or NULL to port specifier
4926         * src/ds390/main.c (_ds390_genIVT): moved implemented default in here
4927         * src/mcs51/main.c (_mcs51_genIVT): moved implemented default in here,
4928           (_mcs51_genInitStartup): removed __start__xstack equ,
4929           (mcs51_port): moved xstack from XSEG (XDATA) to XSTK (PAG,XDATA)
4930         * src/pic16/device.c (pic16_dump_usection, pic16_dump_isection),
4931         * src/z80/gen.c (_rleAppend): fixed warnings
4932         * support/regression/tests/zeropad.c: added pdata test
4933         * .version: bumped to 2.4.6
4934
4935 2004-10-17 Borut Razem <borut.razem AT siol.net>
4936
4937         * support/scripts/sdcc.nsi: cross compiling of WIN32 setup.exe on Linux
4938         as a part of nightly build
4939
4940 2004-10-16 Vangelis Rokas <vrokas AT otenet.gr>
4941
4942         * src/pic16/gen.c (struct _G): added field useWreg, is set to 1 when
4943         WREG holds the first byte function parameters,
4944         * (aopForSym): take special case for symbols which are in FARSPACE
4945         but in CODESPACE too,
4946         * (assignResultValue): modified to take into account _G.useWreg,
4947         * (genCall): don't use wreg for parameter passing when function is
4948         declared as reentrant, too, added optimization INCF to stack
4949         pointer when stack parameter count is 1,
4950         * (genFunction, genEndFunction): refurnished and fixed to not using
4951         wreg for passing parameters when function has varargs or is
4952         reentrant, fixed bug with symbol name compare for generating
4953         functions in absolute address,
4954         * (pic16_storeForReturn): refurnished,
4955         * (genCmp): began writing a new version of the function, not ready
4956         yet, therefore it is disabled,
4957         * (genAssign): do not read code memory when assigning a function to
4958         a pointer function,
4959         * src/pic16/glue.c (pic16emitStaticSeg): abSym->name is defined an
4960         array of characters, not pointer,
4961         * (pic16initialComments): in debug mode emit an .ident directive for
4962         the assembler,
4963         * (_process_pragma): emit a new warning type (internal to pic16)
4964         when setting stack to default length, emit a similar warning when
4965         placing a function at absolute address and address is not word aligned
4966         * (_pic16_parseOptions): added 'return TRUE' statement,
4967         * (_pic16_linkEdit): if compiling a source, then add the source's
4968         file object, first in the list of objects to link,
4969
4970 2004-10-13 Slade Rich <slade_rich AT users.sourceforge.net>
4971
4972         * src/pic/pcoderegs.c : increased count on regUsedinRange to prevent unnecessary warning.
4973         * src/pic/main.c : removed VC warning.
4974         * src/pic/gen.c : changed comment.
4975
4976 2004-10-12 Vangelis Rokas <vrokas AT otenet.gr>
4977
4978         * device/lib/pic16/libsdcc/gptr/gptrput[234].c: an external
4979         reference to a deprecated symbol _GPTRREG was causing failure to
4980         link. Thanks G. M. Gallant for the info.
4981
4982 2004-10-12 Slade Rich <slade_rich AT users.sourceforge.net>
4983
4984         * src/pic/pcode.c : Applied a code patch supplied by Paul Ashmore in
4985         comments for Bugs item #954788.
4986
4987 2004-10-10 Vangelis Rokas <vrokas AT otenet.gr>
4988
4989         * src/pic16/device.c (pic16_dump_gsection,
4990         * pic16_groupRegistersInSection): handle symbols declared to be in
4991         access bank differently,
4992         * src/pic16/gen.c (struct _G): added field resDirect,
4993         * (aopForSym): if symbol on stack and iCode is '=' and result exists,
4994         send values read from stack directly to result and don't allocate
4995         temporary values,
4996         * (pic16_sameRegs): fixed bug that allowed MOVFF to move between
4997         same registers,
4998         * (pic16_sameRegsOfs): NEW,
4999         * (freeAsmop): if _G.resDirect is set then do not mark registers as
5000         free because they were not allocated from temporary pool,
5001         * pic16_popRegFromString): workaround to fix a problem with
5002         allocating variables twice or never,
5003         * (genGenPointerGet): using PRODL instead of FSR0H,
5004         * (genGenPointerSet): using POSTDEC1 (that is a stack location)
5005         instead of FSR0H,
5006         * (genAssign): take advantage of the _G.resDirect flag,
5007         * (genCast): around line 11844, use mov2f instead of directly
5008         MOVFF'ing between operands to account for literal values,
5009         * src/pic16/genutils.c: some new debug functions for gpsim have been
5010         added,
5011         * src/pic16/glue.c (pic16_printIvalType): fixed bug that initialized
5012         float with integer part only,
5013         * src/pic16/main.c (_process_pragma): handle pragma udata access to
5014         place variables in access bank
5015         * device/lib/pic16/libsdcc/gptr/gptr*.c: using BRA instead of GOTO,
5016         updated sources to reflect recent changes in gen.c
5017
5018 2004-10-06 Vangelis Rokas <vrokas AT otenet.gr>
5019
5020         * device/lib/pic16/libsdcc/Makefile.rules: fixed bug concerning
5021         sources that searched for headers in installation path, now the
5022         device/include/pic16 is used,
5023         * src/pic16/glue.c (pic16glue),
5024         * src/pic16/pcode.c (pCode2str, genericPrint): don't print .file or
5025         .line directives if not in debug mode, this suppresses assembler's
5026         warnings for ignored directives
5027
5028 2004-10-05 Maarten Brock <sourceforge.brock AT dse.nl>
5029
5030         * src/port.h: made reset_regparms prototype void parameter explicit.
5031         * src/SDCCsymt.c (processFuncArgs): removed argument "func".
5032         * src/mcs51/ralloc.c (packRegisters): new fix for bugs 898889 & 979599.
5033         * doc/sdccman.lyx: documented warning disabling and how to use
5034           printf_large to make it print floats.
5035         * device/include/stdbool.h: NEW
5036         * device/lib/_atof.c,
5037         * device/lib/_divuint.c,
5038         * device/lib/_divulong.c,
5039         * device/lib/expf.c,
5040         * device/lib/printf_large.c,
5041         * device/lib/sincosf.c,
5042         * device/lib/sincoshf.c: used stdbool.h, all compile with stack-auto now
5043         * device/lib/Makefile.in: added target for model-mcs51-reentrant to build
5044           a completely reentrant lib.
5045
5046 2004-10-05 Vangelis Rokas <vrokas AT otenet.gr>
5047
5048         * device/lib/pic16/libsdcc/gptr/gptr*.c: added return statements
5049         * device/include/pic16/stdio.h: fixed bug with colon
5050
5051 2004-10-03 Vangelis Rokas <vrokas AT otenet.gr>
5052
5053         * device/include/pic16/stdio.h,
5054         * device/include/pic16/stdlib.h,
5055         * device/include/pic16/math.h: NEW
5056         * device/lib/pic16/libsdcc/gptr/*.c (gptrget*, gptrput*): functions
5057         declared as _naked to reduce overhead
5058         * device/lib/Makefile.in (target port-specific-objects-pic16):
5059         changed * to *.* so to ignore the CVS directory,
5060         * src/pic16/gen.c (pic16_freeAsmop): added code to store result of
5061         stacked variables back in stack,
5062         * (genEndFunction): fixed bug reported by G.M. Gallant with stack
5063         corruption
5064
5065 2004-10-01 Vangelis Rokas <vrokas AT otenet.gr>
5066
5067         * .version: bumped version number to 2.4.5
5068         * support/Util/SDCCerr.h: added warning W_POSSBUG2.
5069         * support/Util/SDCCerr.c (messages structure): added entry for
5070         W_POSSBUG2
5071
5072         Large cumulative patch for pic16 port and libraries.
5073         * device/include/pic16/sdcc-lib.h,
5074         * device/include/pic16/stdarg.h,
5075         * device/include/asm/pic16/features.h,
5076         * device/include/lib/pic16/libsdcc/gptr/{*.c, Makefile}: NEW,
5077         * device/include/pic16/float.h: changes reentrant keyword with
5078         _FS_REENTRANT, added prototype for __fsneq, included sdcc-lib.h
5079         * device/lib/pic16/libsdcc/Makefile: added target directory gptr,
5080         updated target build-libraries to include objects from gptr,
5081         * device/lib/pic16/libsdcc/{char,int,long}/*.c: added macro
5082         _IL_REENTRANT to all function headings, included sdcc-lib.h header,
5083         * device/lib/pic16/libsdcc/float/*.c: added macro _FS_REENTRANT to
5084         all function headings,
5085         * src/SDCCmain.c: added global parameter userIncDirsSet,
5086         * (parseCmdLine): when option -I is encountered add directory to
5087         userIncDirsSet too,
5088         * src/version.awk: added space between control and long,
5089         * src/pic16/NOTES: added some notes for the port,
5090         * src/pic16/gen.c: added prototype for mov2fp function,
5091         * (fReturnpic16[]): properly named return value registers,
5092         * (_G structure): added fields stackRegSet, fregsUsed, stack_lat,
5093         * (aopForSym): added code to handle symbols with onStack flag set,
5094         symbols onStack are allocated PTRSIZE bytes,
5095         * (aopFreeAsmop): handles special case where asmops are stack objects,
5096         * (aopGet, pic16_popGet): adde cod to handle new asmop AOP_STA,
5097         * (pic16_popGetTempReg, pic16_popGetTempRegCond, pic16_popReleaseTempReg):
5098         added argument lock to trace flaws in allocating temporary registers
5099         when developing port,
5100         * (pic16_popGetLit, pic16_popGetLit2): changed lit from unsigned to signed
5101         * (pic16_popRegFromString): reenabled allocating a direct register
5102         from string,
5103         * (assignResultValue): various beautifications,
5104         * fixed bug #1037717 (patch from R. Neider & D. Wrinkler) with mistaken
5105         referenced function argument,
5106         * (genIpush): reenabled to allow stacked arguments, handles only
5107         ic->parmPush iCodes,
5108         * (genCall, genPcall): major changes to allow for variable argument
5109         functions, fixed a bug with falsely restoring stack pointer after
5110         returning from call,
5111         * (genFunction): pending code for critical function,
5112         * (shiftR1Left2ResultSigned, shiftR1Left2Result, shiftL2Left2Result,
5113         * (shiftR2Left2Result, shiftLLong) applied patch #1032155 from R.Neider,
5114         * (genNearPointerGet): fixed bug with indirect reading, was always
5115         reading from INDF0
5116         * (genGenPointerGet, genGenPointerSet): rewrote to support generic
5117         pointers,
5118         * (genAddrOf): rewrote code to take address of a stacked function parameter
5119         * (genCast): fixed casting to generic pointer type,
5120         * src/pic16/gen.h: added AOP_STA,
5121         * (struct asmop): added field stk,
5122         * src/pic16/genarith.c (pic16_AopType): handle AOP_STA,
5123         * (pic16_genPlusIncr): changed emitSKPNZ to emitSKPNZ,
5124         * (pic16_genAddLit, pic16_genPlus): applied patch #1034042 by tecodev,
5125         * (pic16_genMinus): fixed bug #1035119 with patch submitted by tecodev,
5126         * src/pic16/genutils.c (pic16_genNot): removed symbol *tlbl,
5127         * src/pic16/glue.c (pic16_printGPPointerType): fixed to support new
5128         generic pointers,
5129         * src/pic16/main.c (_pic16_initPaths): ignores default SDCC include
5130         and library paths,
5131         * (pic16_port structure): generic pointer size is set to 3,
5132         * src/pic16/pcode.c (pic16_newpCodeOpLit): correctly print literal integer,
5133         * (insertBankSwitch): cast to (char *) to prevent 64bit CPUs'
5134         compiler warning,
5135         * src/pic16/ralloc.c (allocReg): prevent allocating register when
5136         operand is an iTemp,
5137
5138 2004-09-24 Martin Helmling <mh AT octo-soft.de>
5139
5140         * debugger/mcs51/cmd.c: set PC if a symbol at pc reg is set
5141         * debugger/mcs51/simi.c: addapt new syntax of s51
5142
5143 2004-09-23 Vangelis Rokas <vrokas AT otenet.gr>
5144
5145         * src/pic16/genutils.c (pic16_genNot): fixed bug #1032265,
5146         * src/pic16/pcode.c: commented out some calls to free() in order to
5147         fix bug #989576,
5148
5149 2004-09-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5150
5151         * src/SDCCicode.h,
5152         * src/SDCCicode.c (isiCodeInFunctionCall),
5153         * src/avr/ralloc.c (selectSpil),
5154         * src/pic/ralloc.c (selectSpil),
5155         * src/pic16/ralloc.c (selectSpil),
5156         * src/ds390/ralloc.c (selectSpil),
5157         * src/hc08/ralloc.c (selectSpil),
5158         * src/xa51/ralloc.c (selectSpil),
5159         * src/mcs51/ralloc.c (selectSpil): Don't use remainSpil to spill to the
5160         stack in the middle of a function call sequence (fixes bug #1020268)
5161         * src/SDCCicode.c (geniCodeJumpTable): fixed error in computing the
5162         costs associated with the minimum switch case.
5163
5164 2004-09-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5165
5166         * src/SDCC.lex: fixed bug #1030549
5167
5168 2004-09-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5169
5170         * src/SDCCcse.h (struct cseDef),
5171         * src/SDCCcse.c (cseBBlock, newCseDef, ifFromAddrTaken): purge CSEs
5172         over a function call if the CSE is derived from a symbol whose
5173         address has been taken (fixes bug #1029883)
5174         * support/regression/tests/bug-1029883: a new regression test for
5175         this bug
5176
5177 2004-09-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5178
5179         * src/hc08/gen.c (emitinline): fixed bug #1029778
5180         * src/SDCC.y (assignment_expr): fixed the grammer so that assignment
5181         to a cast object is no longer a syntax error ("fixes" bug #1030006,
5182         and starts toward RFE #905167)
5183
5184 2004-09-17 Vangelis Rokas <vrokas AT otenet.gr>
5185
5186         * src/pic16/gen.c (mov2f): New function to move an operand to
5187         another without considering if it is a literal or a register,
5188         * (pic16_sameRegs): don't check if they are both AOP_REG,
5189         * (AccRsh): removed andmask=0 lines,
5190         * (genLeftShift): duplicated to be improved in future versions,
5191         * src/pic16/main.c (_process_pragma): emit stack default size in hex,
5192         * src/pic16/pcode.c: added POC_INFSNZW, updated inverted_op fields
5193         in POC_INCFSZ, POC_INCFSZW, POC_INFSNZ,
5194         * (pic16initMnemonics): added initialization for POC_INFSNZW,
5195         * (insertBankSwitch): fixed inserting banksel directives algorithm
5196         for instructions that follow a skip instruction, this fixes a report
5197         for broken subtraction code generation,
5198         * src/pic16/ralloc.c (deassignLRs): do not free register if current
5199         iCode is a left op, just in case result and right share the same
5200         registers
5201
5202 2004-09-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5203
5204         * src/hc08/main.c,
5205         * src/hc08/gen.c (genJumpTable): more efficient jump table, supports
5206         preservation of HX
5207         * src/hc08/gen.c (pullRegs): fixed order of HX & XA pairs
5208         * src/mcs51/ralloc.c (packRegisters): removed the patch applied
5209         on 2004-09-12; it was buggy
5210
5211 2004-09-15 Bernhard Held <bernhard AT bernhardheld.de>
5212
5213         * src/SDCCsymt.h: removed RESULT_CHECK
5214         * src/SDCCast.c,
5215         * src/SDCCglue.c,
5216         * src/SDCCval.c,
5217         * src/pic/glue.c,
5218         * src/pic16/glue.c: replaced RESULT_CHECK with RESULT_TYPE_NONE
5219
5220 2004-09-15 Vangelis Rokas <vrokas AT otenet.gr>
5221
5222         * src/SDCCicode.c (piCode): applied patch from Raphael Neider,
5223         * src/pic16/device.c (pic16_assignConfigWordValues): wrong
5224         configuration values no more rejected by compiler, they are assigned
5225         to configuration registers with a warning message instead,
5226         * src/pic16/glue.c (pic16_emitConfigRegs): added +1 at top-limit of
5227         the for-loop so last conf register is emitted too,
5228         * (_pic16_initPaths): link library libsdcc.lib by default,
5229         * (_hasNativeMulFor): modified test for multiplication according to
5230         Raphael Neider's remarks. Integer multiplication is also done with
5231         support functions,
5232         * device/include/pic16/pic18fregs.h: corrected type error in while
5233         testing and including 18f6720 header file
5234
5235 2004-09-14 Vangelis Rokas <vrokas AT otenet.gr>
5236
5237         * src/pic16/device.h (pic16_options): removed field use_crt,
5238         * src/pic16/gen.c (genUnpackBits): added call to pic16_loadFSR0
5239         until an optimization to handle single bits is added,
5240         * (pic16_loadFSR0): moved before genUnpackBits,
5241         * (genAnd): some white lines removed,
5242         * src/pic16/main.c (_pic16_finaliseOptions): set omit_ivt and clear
5243         leave_reset flags in pic16_options when using crt modules,
5244
5245 2004-09-12 Maarten Brock <sourceforge.brock AT dse.nl>
5246
5247         * src/mcs51/ralloc.c (packRegisters): applied fix by Bernhard Held
5248           for bugs 898889 & 979599. Also used some safer print instructions.
5249
5250 2004-09-12 Vangelis Rokas <vrokas AT otenet.gr>
5251
5252         * src/pic16/device.h (pic16_options_t): added field use_crt,
5253         crt_name, no_crt,
5254         * src/pic16/genarith.c (pic16_genPlus): added an assert(0) line to
5255         catch a probable future bug,
5256         * src/pic16/gen.c: aopIdx function commented out,
5257         * (genAssign): commented out old code which used aopIdx,
5258         * src/pic16/glue.c (pic16glue): removed some legacy fragments of
5259         code, added if conditionals to take into account the --use-crt
5260         command line options,
5261         * src/pic16/main.c (pic16_optionsTable): added new command line
5262         options, --use-crt= and --no-crt,
5263         * (_pic16_linkEdit): now the proper crt object is added in the
5264         linker command line except than when --no-crt is specified,
5265         * src/pic16/pcode.c,
5266         * src/pic16/pcode.h: added some structures and functions for a new
5267         optimization scheme to compansate for instruction overhead between
5268         same iCodes, this scheme is currently under development and is not
5269         working in any way,
5270         * src/pic16/gen.c (genAnd): added patch provided by Aaron Collwell
5271         to && operator,
5272         * device/lib/pic16/startup/crt0i.c,
5273         * device/lib/pic16/startup/crt0iz.c: added global char variable
5274         __uflags to force the generation of an idata section
5275
5276 2004-09-12 Bernhard Held <bernhard AT bernhardheld.de>
5277
5278         * doc/Makefile,
5279         * doc/clean.mk: added support for easy creation of sdcc-doc.tar.bz2
5280         * doc/sdccman.lyx: updated sdcc version to 2.4.4
5281
5282 2004-09-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5283
5284         * doc/sdccman.lyx: fixed a problem with my new index entries (thanks
5285         Frieder) and clarified the default code optimization mode
5286
5287 2004-09-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5288
5289         * src/SDCC.lex (doPragma, process_pragma),
5290         * src/SDCCglobl.h (struct optimize): added pragmas "opt_code_speed",
5291         "opt_code_size", and "opt_code_balanced"
5292         * src/SDCCmain.c (optionsTable[], printOptions, scanOptionsTable):
5293         regrouped options by category, added support for category headers
5294         * src/SDCCmain.c (parseCmdLine): added options "--opt-code-speed"
5295         and "--opt-code-size"
5296         * doc/sdccman.lyx: documented these new options and pragmas
5297         * src/hc08/gen.c (AccLsh, AccRsh): take speed/size optimization
5298         preference into account
5299
5300 2004-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
5301
5302         * src/SDCCicode.c (geniCodePostInc, geniCodePreInc, geniCodePostDec,
5303           geniCodePreDec): Fixed bug 904237 by generating a warning
5304         * src/SDCCerr.h,
5305         * src/SDCCerr.c: added warning W_SIZEOF_VOID
5306
5307 2004-09-09 Slade Rich <slade_rich AT users.sourceforge.net>
5308
5309         * src/pic/device.c : When no max ram set validate full memory range.
5310         * src/pic/pcode.c,
5311         * src/pic/pcodepeep.c : Copy C code comments to optimised replacement code.
5312
5313 2004-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
5314
5315         * device/lib/_gptrget.c,
5316         * device/lib/_gptrput.c: updated comment
5317         * device/lib/calloc.c,
5318         * device/lib/free.c,
5319         * device/lib/malloc.c,
5320         * device/lib/realloc.c: added LGPL, made them reentrant-safe
5321         * src/SDCCcse.c (cseBBlock),
5322         * src/SDCCicode.c (printOperand, geniCodeArray),
5323         * src/SDCCicode.h (struct operand): fixed bug 868103
5324         * support/regression/tests/bug-868103.c: added
5325         * src/SDCCast.c (searchLitOp),
5326         * src/SDCCcse.h (struct cseDef),
5327         * src/SDCCglue.c (printIvalArray, spacesToUnderscores),
5328         * src/SDCCicode.h (struct operand),
5329         * src/SDCCsymt.h (struct sym_link),
5330         * src/avr/gen.c (hasInc),
5331         * src/ds390/gen.c (hasInc),
5332         * src/hc08/gen.c (genPlusIncr, hasInc),
5333         * src/mcs51/gen.c (hasInc),
5334         * src/pic16/glue.c (pic16_printIvalChar),
5335         * src/pic16/ralloc.c (regWithIdx),
5336         * src/xa51/gen.c (hasInc) : removed warnings
5337         * src/SDCCast.c (createBlock): added comment ???
5338         * src/hc08/ralloc.c: updated comments
5339
5340 2004-09-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5341
5342         * doc/sdccman.lyx: updated section on switch statements, added
5343         section about semaphore locking
5344         * doc/Makefile: added option -info for latex2html
5345         * device/lib/_gptrget.c,
5346         * device/lib/_gptrput.c: __XPAGE instead of P2 in outcommented code
5347
5348 2004-09-06 Slade Rich <slade_rich AT users.sourceforge.net>
5349
5350         * src/pic/device.h,
5351         * src/pic/device.c,
5352         * src/pic/port.c : Changed PIC14 code to not set bit RP1 when
5353          maxram is less than 0x100.
5354
5355 2004-09-06 Slade Rich <slade_rich AT users.sourceforge.net>
5356
5357         * Bug fixes for PIC14 - signed RSHIFT problem. Patch supplied by Allen(agschrum).
5358
5359 2004-09-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5360
5361         * src/port.h,
5362         * src/mcs51/main.c,
5363         * src/ds390/main.c,
5364         * src/z80/main.c,
5365         * src/hc08/main.c,
5366         * src/pic/main.c,
5367         * src/pic16/main.c,
5368         * src/avr/main.c,
5369         * src/xa51/main.c
5370         * src/SDCCicode.c (geniCodeJumpTable): Better logic to determine if a
5371         a jump table is the best form for a switch statement, including
5372         automatic insertion of missing cases to make the case range
5373         continuous. Developed in collaboration with Frieder Ferlemann.
5374
5375 2004-09-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5376
5377         * src/hc08/ralloc.c (canDefAccResult): multi-byte shift is unsafe for
5378         accumulator result if it needs sign extension
5379
5380 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
5381
5382         * src/hc08/ralloc.c (canUseAccOperand): fixed comparison bug
5383
5384 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
5385
5386         * device/lib/gbz80/printf.c,
5387         * device/lib/z80/printf.c: removed define for NULL
5388
5389 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
5390
5391         * as/xa51/xa_link.c,
5392         * device/examples/ds390/ow390/ad26.c,
5393         * device/examples/ds390/ow390/cnt1d.c,
5394         * device/examples/ds390/ow390/counter.c,
5395         * device/examples/ds390/ow390/ds2480.h,
5396         * device/examples/ds390/ow390/ds2480ut.c,
5397         * device/examples/ds390/ow390/findtype.c,
5398         * device/examples/ds390/ow390/gethumd.c,
5399         * device/examples/ds390/ow390/owllu.c,
5400         * device/examples/ds390/ow390/ownetu.c,
5401         * device/examples/ds390/ow390/swt12.c,
5402         * device/examples/ds390/ow390/swtloop.c,
5403         * device/examples/ds390/ow390/temp.c,
5404         * device/examples/ds390/ow390/temp10.c,
5405         * device/examples/ds390/ow390/thermo21.c,
5406         * device/examples/ds390/ow390/tinilnk.c,
5407         * device/examples/ds390/ow390/tstfind.c,
5408         * device/examples/serialcomm/windows/serial.cpp,
5409         * device/examples/serialcomm/windows/test_serialcomm.cpp,
5410         * device/include/reg51.h: fixed line endings for cvs
5411
5412 2004-09-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5413
5414         * src/hc08/ralloc.c (canDefAccResult, canUseAccOperand,
5415         packRegsForAccUse, packRegisters): new accumulator register
5416         packing algorithm
5417         * support/regression/ports/hc08/support.c (_putchar): suppress
5418         warning of unused variable
5419         * src/SDCCicode.c: added SWAP entry to codeTable
5420
5421 2004-09-01 Maarten Brock <sourceforge.brock AT dse.nl>
5422
5423         * device/lib/sprintf.c: forgot to add this file before previous commit
5424
5425 2004-09-01 Vangelis Rokas <vrokas AT otenet.gr>
5426
5427         * src/pic16/gen.c (genPackBits): added operand right in function
5428         parameters, load result directly if p_type is POINTER (that is
5429         called by genNearPointerSet)
5430         * (genUnPackBits): added operand left in function parameters,
5431         * (genNearPointerGet, genNearPointerSet): prevent the loading of
5432         FSR0 if accessing bitfields,
5433
5434 2004-08-31 Maarten Brock <sourceforge.brock AT dse.nl>
5435
5436         * device/include/stdio.h: added NULL, size_t, typedef pfn_outputchar,
5437           _print_format; updated printf, sprintf, vsprintf
5438         * device/include/asm/default/features.h: corrected comment/define
5439         * device/lib/Makefile.in: added sprintf.c
5440         * device/lib/libsdcc.lib: added sprintf module
5441         * device/lib/printf_large.c,
5442         * device/lib/vprintf.c,
5443         * device/lib/sprintf.c: totally refactored printf_large and vprintf
5444           into these 3 files
5445         * support/regression/Makefile: changed ALL_PORTS into a usefull default
5446         * support/regression/ports/mcs51-stack-auto/spec.mk: added sprintf
5447         * support/regression/tests/bug-927659.c: removed dummy putchar, enabled
5448           hc08 test
5449         * support/regression/tests/zeropad.c: define idata as data for hc08
5450
5451 2004-08-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5452
5453         * src/SDCCpeeph.c (labelIsReturnOnly): support hc08 rts opcode also
5454         * src/SDCCpeeph.c (buildLabelRefCountHash): assume function entry point
5455         labels are referenced at least once (even if a reference is not found)
5456         * src/hc08/gen.c (emitcode): set isComment flag for comments
5457         * src/hc08/peeph.def: added rules 5a..5f (optimize redundant immediate
5458         loads), rules 6a..6b (optimize jumps to return)
5459
5460 2004-08-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5461
5462         * device/lib/acosf.c (acosf),
5463         * device/lib/asinf.c (asinf),
5464         * device/lib/atanf.c (atanf),
5465         * device/lib/ceilf.c (ceilf),
5466         * device/lib/cosf.c (cosf),
5467         * device/lib/coshf.c (coshf),
5468         * device/lib/cotf.c (cotf),
5469         * device/lib/fabsf.c (fabsf),
5470         * device/lib/floorf.c (floorf),
5471         * device/lib/log10f.c (log10f),
5472         * device/lib/logf.c (logf),
5473         * device/lib/sinf.c (sinf),
5474         * device/lib/sinhf.c (sinhf),
5475         * device/lib/sqrtf.c (sqrtf),
5476         * device/lib/tanf.c (tanf),
5477         * device/lib/tanhf.c (tanhf),
5478         * device/include/math.h: defined _FLOAT_FUNC_REENTRANT macro and
5479         replaced all instances of "reentrant" in the library functions
5480         defined in math.h with this macro.
5481         * support/regression/tests/float_trans.c: reenabled test for hc08
5482
5483 2004-08-30 Bernhard Held <bernhard AT bernhardheld.de>
5484
5485         * device/lib/pic16/Makefile.common.in: added MODELFLAGS again, it was
5486         erroneously deleted
5487
5488 2004-08-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5489
5490         * src/hc08/gen.c (loadRegFromAop): better use of clra & clrx
5491         * src/hc08/gen.c (genAnd, genOr): fixed bug with conditional when
5492         multi-byte volatile operands are used
5493         * src/hc08/gen.c (shiftRLong): fixed bug with wrong rotate direction
5494         * src/hc08/main.c (_hc08_genAssemblerPreamble): moved the built-in
5495         initialization to area GSINIT0 so that it would always precede
5496         any static initializers in GSINIT
5497         * support/regression/tests/zeropad.c: fixed idata define for hc08
5498         * support/regression/tests/bug-927659.c,
5499         * support/regression/tests/float_trans.c: disabled tests for hc08
5500         pending missing library routines
5501         * .version: increased version number to 2.4.4 - hc08 port now passes
5502         regression tests
5503
5504
5505 2004-08-29 Bernhard Held <bernhard AT bernhardheld.de>
5506
5507         * device/lib/pic16/Makefile.common.in: added $(MM) to fix `make clean`
5508         * Makefile.common.in,
5509         * as/Makefile,
5510         * as/hc08/Makefile.in,
5511         * as/mcs51/Makefile.in,
5512         * as/z80/Makefile.in,
5513         * debugger/mcs51/Makefile.in,
5514         * device/include/Makefile.in,
5515         * device/lib/Makefile.in,
5516         * doc/Makefile,
5517         * link/Makefile,
5518         * link/z80/Makefile.in,
5519         * packihx/Makefile.in,
5520         * sim/ucsim/main_in.mk,
5521         * sim/ucsim/avr.src/Makefile.in,
5522         * sim/ucsim/doc/Makefile.in,
5523         * sim/ucsim/gui.src/serio.src/Makefile.in,
5524         * sim/ucsim/hc08.src/Makefile.in,
5525         * sim/ucsim/s51.src/Makefile.in,
5526         * sim/ucsim/xa.src/Makefile.in,
5527         * sim/ucsim/z80.src/Makefile.in,
5528         * src/Makefile.in,
5529         * support/cpp2/Makefile.in,
5530         * support/librarian/Makefile,
5531         * support/makebin/Makefile: added DESTDIR to the install path proposed
5532         by "Maciej 'Agaran' Pijanka" <agaran AT pld-linux.org>
5533         * doc/sdccman.lyx: added DESTDIR documentation
5534
5535 2004-08-29 Vangelis Rokas (vrokas AT otenet.gr>
5536
5537         * src/pic16/gen.c (genFunction, genEndFunction): fixed return
5538         instruction for interrupt handlers, use fast returns when returning
5539         from high priority interrupts
5540
5541 2004-08-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5542
5543         * src/hc08/gen.c (genAnd, genOr, transferAopAop, rmwWithAop): optimized
5544         code generation
5545         * src/hc08/gen.c (genrshFour, genCpl): fixed bugs
5546         * src/hc08/gen.c (genMultOneByte, genDivOneByte, genModOneByte): fixed
5547         bugs, ported much of Bernhard's code from mcs51
5548         * src/mcs51/gen.c (genSend),
5549         * src/hc08/gen.c (genSend): fixed bug with lost SEND iCodes if more
5550         than one when calling a reentrant function
5551         * device/lib/_mullong.c: defined an alternate struct layout for big
5552         endian ports (hc08)
5553
5554 2004-08-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5555
5556         * src/hc08/gen.c (shiftL2Left2Result): fix for bug-500536 regression
5557         test
5558
5559 2004-08-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5560
5561         * src/SDCCsymt.c (processFuncArgs): make sure parameter types
5562         are sane and complete before asking the port its prefered parameter
5563         passing method (fixes bug #1017633)
5564         * device/lib/hc08/_ret.c: added "data" storage class to _ret2
5565         and _ret3
5566
5567 2004-08-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5568
5569         * src/hc08/gen.c (genPackBitsImmed, genUnpackBitsImmed): fix offset
5570         problem in bitfields >= 8 bits.
5571
5572 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
5573
5574         * src/SDCCsymt.c: undid changes that were not meant to be committed
5575
5576 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
5577
5578         * support/regression/ports/hc08spec.mk: REENTRANT must be reentrant
5579
5580 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
5581
5582         * src/hc08/gen.c (genUminusFloat): fixed bug where only 3 bytes were
5583           copied and wrong bit got inverted
5584
5585 2004-08-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5586
5587         * src/hc08/gen.c (genPointerSet, genFarPointerSet): moved code from
5588         genFarPointerSet into genPointerSet; eliminated genFarPointerSet
5589         * src/hc08/gen.c (genPointerGet, genFarPointerGet): moved code from
5590         genFarPointerGet into genPointerGet; eliminated genFarPointerGet
5591         * src/hc08/gen.c (genPackBitsImmed): generate optimized code for
5592         assignments to bitfields at known addresses
5593         * src/hc08/gen.c (genUnpackBitsImmed): generate optimized code for
5594         reads from bitfields at known addresses
5595         * src/hc08/ralloc.c (packRegisters),
5596         * src/hc08/gen.c (genPointerGet, genUnpackBits, genUnpackBitsImmed,
5597         genhc08Code): optimize pointer get values used as conditionals
5598         * src/hc08/peeph.def: added rules 2e & 2f to optimize bit test
5599         and branch
5600
5601 2004-08-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5602
5603         * src/mcs51/gen.c (genPointerGet, genNearPointerGet, genPagedPointerGet,
5604         genFarPointerGet, genCodePointerGet, genGenPointerGet, genUnpackBits),
5605         * src/mcs51/ralloc.c (packRegisters): optimize pointer get values used
5606         as conditionals
5607
5608 2004-08-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5609
5610         * src/mcs51/peeph.def: peepholes 248.i-m for xdata bitfields
5611
5612 2004-08-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5613
5614         * src/mcs51/ralloc.c (packRegsForOneuse): fixed bug #1012650 and some
5615         related problems
5616
5617 2004-08-21 Bernhard Held <bernhard AT bernhardheld.de>
5618
5619         * sim/ucsim/cmd.src/Makefile.in: run lex only if $(PRJDIR)/devel exists
5620
5621 2004-08-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5622
5623         * src/z80/ralloc.c (packRegsForAssign): ported some bug fixes from the
5624         mcs51 port
5625
5626 2004-08-16 Slade Rich <slade_rich AT users.sourceforge.net>
5627
5628         * src/pic/gen.c: Restored fn genRet as previous fix was incorrect.
5629
5630 2004-08-14 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5631
5632         * src/mcs51/gen.c (genJumpTab): jumptables for more than 16 switch
5633         cases use more compact code.
5634
5635 2004-08-13 Slade Rich <slade_rich AT users.sourceforge.net>
5636
5637         * src/pic/gen.c: Fixed problem with fn returning a variable bigger than a char.
5638
5639 2004-08-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5640
5641         * src/SDCClrange.c (findPrevUse): fixed bug #1007371
5642
5643 2004-08-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5644
5645         * src/SDCCsymt.h,
5646         * src/SDCCsymt.c (changePointer, checkDecl, addSymChain): changed
5647         parameter of changePointer() from symbol* to sym_link*
5648         * src/SDCCast.c (decorateType): call changePointer() for CAST op
5649         * src/SDCCsymt.c (compareType): void* type is castable to other
5650         pointers, but not necesarily an exact match.
5651         * src/SDCCicode.c (geniCodeCast): allow void* casting here since it
5652         is no longer blindly treated as an exact match.
5653         * src/SDCCval.c (valCastLiteral): treat missing type as cast to void
5654
5655 2004-08-12 Slade Rich <slade_rich AT users.sourceforge.net>
5656
5657         * src/pic/glue.c: Added struct initialisation fn printIvalStruct.
5658
5659 2004-08-11 Slade Rich <slade_rich AT users.sourceforge.net>
5660
5661         * src/pic/gen.c,
5662         * src/pic/pcode.c,
5663         * src/pic/ralloc.h,
5664         * src/pic/ralloc.c: Printing rIdx on internal verbose debug.
5665
5666 2004-08-10 Slade Rich <slade_rich AT users.sourceforge.net>
5667
5668         * src/pic/device.c,
5669         * src/pic/device.h,
5670         * src/pic/device.c: Will no longer exit if #pragma maxram has not been defined.
5671
5672 2004-08-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5673
5674         * src/mcs51/gen.c (emitcode): fixed bug #992819
5675
5676 2004-08-05 Maarten Brock <sourceforge.brock AT dse.nl>
5677
5678         * src/pic/ralloc.c (deassignLR): allthough pic port is buggy already,
5679           there's no need to make it worse
5680
5681 2004-08-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5682
5683         * src/mcs51/ralloc.c (deassignLR),
5684         * src/ds390/ralloc.c (deassignLR),
5685         * src/hc08/ralloc.c (deassignLR),
5686         * src/z80/ralloc.c (deassignLR),
5687         * src/pic/ralloc.c (deassignLR),
5688         * src/pic16/ralloc.c (deassignLR),
5689         * src/avr/ralloc.c (deassignLR),
5690         * src/SDCClrange.c (findRecursiveSucc, findRecursivePred, findPrevUse,
5691         rlivePoint): fixed another part of bug #971834
5692
5693 2004-08-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5694
5695         * src/z80/main.c: enabled "critical" keyword
5696         * src/z80/mappings.i,
5697         * src/z80/gen.c (genFunction, genEndFunction): support for interrupt
5698         functions (fixes bug #979646)
5699         * doc/sdccman.lyx: added a subsection explaining z80 interrupt support
5700
5701 2004-08-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5702
5703         * src/mcs51/gen.c (genInline): Add \n for labels, not DOS/WIN dirs
5704           such as c:\mydir.
5705
5706 2004-08-03 Maarten Brock <sourceforge.brock AT dse.nl>
5707
5708         * src/SDCCloop.c (loopInvariants): fixed bug 983545, hope this
5709           doesn't disable too much optimizations
5710
5711 2004-08-02 Slade Rich <slade_rich AT users.sourceforge.net>
5712
5713         * src/pic/glue.c Disabled "WARNING: function 'main' undefined" when -S option is used.
5714
5715 2004-08-02 Maarten Brock <sourceforge.brock AT dse.nl>
5716
5717         * src/SDCClrange.c (rlivePoint): fixed bug 988568, thanks to anonymous
5718
5719 2004-08-02 Slade Rich <slade_rich AT users.sourceforge.net>
5720
5721         * src/pic/gen.c tidied up tabs
5722         * src/pic/genarith.c tidied up tabs and fixed bug with literal multiple where same register was used for hi and low byte
5723         * src/pic/main.c tidied up tabs
5724         * src/pic/pcode.c tidied up tabs and disabled verbose code generation
5725         * src/pic/pcoderegs.c tidied up tabs
5726         * src/pic/ralloc.c tidied up tabs
5727
5728 2004-07-30 Vangelis Rokas <vrokas AT otenet.gr>
5729
5730         * src/SDCCmem.c (allocGlobal): don't turn S_REGISTER storage class
5731         to S_FIXED for pic16 port and when symbol is not in level 0,
5732         allocate for S_REGISTER storage class and pic16 port, too,
5733         * src/pic16/device.h: prototype for checkSym,
5734         * src/pic16/device.c (pic16_dump_access, checkSym): NEW,
5735         * (pic16_assignConfigWordValue): test the value and the mask to
5736         validate that the value is suitable for the configuration word,
5737         * src/pic16/glue.c (pic16_printIvalFuncPtr): use 'externs' to
5738         collect extern declared symbols, don't emit symbol twice, check
5739         first if symbol is in publics set first,
5740         * src/pic16/main.c (_pic16_keywords[]): added keyword 'register',
5741         * added command line '--fstack' which enables an experimental
5742         feature for stack access, too buggy to be used yet...
5743         * src/pic16/ralloc.c (pic16_accessregWithName): NEW,
5744         * (pic16_allocDirReg): when register has storage class S_REGISTER
5745         allocate in pic16_dynAccessRegs,
5746         * device/include/pic16/pic18f????.h: modified configuration word
5747         naming convention, words started as CONFIG0H but should be CONFIG1H
5748
5749 2004-07-29 Maarten Brock <sourceforge.brock AT dse.nl>
5750
5751         * device/include/mcs51reg.h: fixed bug 970993
5752
5753 2004-07-27 Maarten Brock <sourceforge.brock AT dse.nl>
5754
5755         * added lib/calloc.c, lib/free.c, lib/realloc.c, include/stddef.h
5756         * updated lib/malloc.c, lib/libsdcc.lib, lib/Makefile.in, include/malloc.h
5757         * src/SDCC.lex (doPragma): added pragma disable_warning <nnn>
5758         * src/SDCCmain.c (parseCmdLine): added option --disable-warning <nnn>
5759         * src/ds390/gen.c (genPlusIncr): fixed bug when incrementing generic pointers
5760         * support/Util/SDCCerr.c (vwerror): suppress disabled warnings and output
5761           error/warning numbers,
5762           added function setWarningDisabled()
5763         * support/Util/SDCCerr.h: added setWarningDisabled() and MAX_ERROR_WARNING
5764         * support/regression/ports/mcs51-stack-auto/spec.mk: added dependencies
5765           _memcmp.c _memmove.c calloc.c realloc.c free.c
5766         * support/regression/tests/malloc.c: added tests for new functionality
5767         * support/regression/tests/zeropad.c: added tests for truncated initializers
5768           and initialized char arrays starting with '\x0'
5769         * src/mcs51/peeph.def: fixed regression, added peephole 177.f
5770
5771 2004-07-26 Bernhard Held <bernhard AT bernhardheld.de>
5772
5773         * support/valdiag/tests/overflow.c: fixed warning on (1 >> 40)
5774
5775 2004-07-26 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5776
5777         * doc/sdccman.lyx: updated example in section "Absolute Addressing"
5778         * src/mcs51/peeph.def: added contributed fix for "bug" #995347 as
5779         peephole 177.e. Thanks to anonymous
5780
5781 2004-07-25 Vangelis Rokas <vrokas AT otenet.gr>
5782
5783         * src/pic16/glue.c (pic16_printIvalFuncPtr): when an extern
5784         function isn't used in the source but referenced as a
5785         variable initializer then declare it as extern in .asm file
5786
5787 2004-07-24 Vangelis Rokas <vrokas AT otenet.gr>
5788
5789         * .version: increased version number to 2.4.3
5790
5791         Adding version extension according to ChangeLog CVS revision
5792         * src/Makefile.in (target all): added dependency 'version.h'
5793         * (rule version.h): added rule to create version.h from ChangeLog,
5794         * (rule dep): added dependency version.h,
5795         * src/version.awk: AWK script to create version.h
5796         * src/SDCCdwarf2.c (dwWriteModule),
5797         * src/SDCCglue.c (initialComments),
5798         * src/SDCCmain.c (printVersionInfo): modified to write after
5799         version string the version extension number,
5800         * src/SDCCutil.c: included "version.h"
5801         * (getBuildNumber): NEW, returns SDCC's ChangeLog minor revision
5802         number,
5803         * src/SDCCutil.h: added prototype for getBuildNumber
5804
5805         * src/SDCCmain.c (parseCmdLine): when sOpt is 'I' add rest in
5806         includeDirsSet, too,
5807         * src/SDCCsymt.c (checkSClass): don't emit error when a variable,
5808         const char [] is found in function prototype...
5809
5810         * src/pic16/genarith.c (pic16_genUMult8XLit_8): optimization to omit
5811         moving to WREG with source is already in WREG,
5812         * src/pic16/gen.h: added AOP_FSR0 and AOP_FSR2 in enum,
5813         * src/pic16/gen.c (getFreePtr): updated to look for FSR0 and FSR2,
5814         * (aopForSym): stack'ed symbols are partially supported, added
5815         if-clause to support symbols in FARSPACE,
5816         * (sameRegs): added test for AOP_ACC to see if registers are same,
5817         * (pic16_freeAsmop): added case for AOP_FSR0 and AOP_FSR2,
5818         * (pic16_aopGet): added case for AOP_FSR0 and AOP_FSR2,
5819         * (pic16_popRegFromString): will not allocate a new register if it
5820         doesn't find one by name, bug may have introduced...
5821         * (pic16_popGet): added case for AOP_FSR0 and AOP_FSR2,
5822         * (genIpush): revived to use pic16 port's stack,
5823         * (genAddrOf): added incomplete case for stack'ed operand,
5824         * (genCast): optimized a pair of MOVFW,MOVWF to MOVFF
5825         * src/pic16/genutils.c (pic16_genNot): almot new vesrion for NOT,
5826         can handle multibyte operands,
5827         * src/pic16/glue.c (pic16_printIval*): some debug info added,
5828         * (pic16initialComments): added message for MPLAB compatibility
5829         mode enabled,
5830         * src/pic16/main.h: prototype for pic16_mplab_comp,
5831         * src/pic16/main.c (pic16_optionsTable): new option --mplab-comp,
5832         which enabled MPLAB compatibility mode (i.e. no #LINE/#FILE, BANKED)
5833         * (_pic16_linkEdit): NEW, handles link stage, transferred here
5834         because of increased complexity of procedure,
5835         * (_process_pragma): stack pragma changed to format 'stack pos len',
5836         emit symbol '_stack_end' to conform with gplink,
5837         * src/pic16/pcode.c (pic16_newpCodeOpBit): using pic16_regWithName
5838         to search for register,
5839         * (pic16_get_op, pic16_get_op2): added case for PO_W, PO_WREG and
5840         PO_GPR_REGISTER,
5841         * (pic16_pCode2str): when in MPLAB compatibility mode, comment out
5842         #LINE directives and replace 'B' with 'BANKED' in instruction opcodes
5843         * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): added
5844         case for PO_GPR_REGISTER,
5845         * (pic16_AnalyzeBanking): removed the old message for inc2h.pl, past
5846         dies, the new era is ahead !...
5847         * src/pic16/ralloc.c: added hash reposits pic16_dynAllocRegNames and
5848         pic16_dynInternalRegs,
5849         * (pic16_allocregWithName, pic16_procregWithName, pic16_regWithname): NEW,
5850         * (pic16_allocDirReg): minor optimizations and bug fixes,
5851         * (pic16_allocWithIdx): when searching pic16_dynProcessorRegs use fixed,
5852
5853         * device/lib/pic16/startup/crt0*.c: extern definition of stack_end,
5854         load stack and frame pointer with address of 'stack_end' symbol
5855
5856 2004-07-23 Vangelis Rokas <vrokas AT otenet.gr>
5857
5858         * src/pic16/glue.c (pic16emitStaticSeg): fixed bug with files
5859         without source code but only variable initializers
5860
5861 2004-07-20 Vangelis Rokas <vrokas AT otenet.gr>
5862
5863         * src/pic16/glue.c (pic16emitRegularMap): unused functions marked as
5864         external are not declared as extern to reduce overhead while linking
5865
5866 2004-07-20 Maarten Brock <sourceforge.brock AT dse.nl>
5867
5868         * src/SDCCast.c (decorateType): removed buggy fix for bug #979599
5869
5870 2004-07-11 Maarten Brock <sourceforge.brock AT dse.nl>
5871
5872         * src/SDCCglue.c (printIvalArray): fixed bug #984229, thanks to Phuah
5873           Yee Keat for the patch
5874         * src/SDCCast.c (decorateType): fixed bug #979599
5875         * src/ds390/gen.h: removed local fReturnSizeDS390
5876         * src/ds390/gen.c: made fReturnSizeDS390 signed short to remove a warning
5877         * src/ds390/gen.c (genAnd, genOr, genXor),
5878         * src/mcs51/gen.c (genAnd, genOr, genXor): generate better optimized code
5879
5880 2004-07-04 Vangelis Rokas <vrokas AT otenet.gr>
5881
5882         * src/SDCCmain.c (linkEdit): modifications only for pic16 port,
5883         add relFilesSet to $3, manipulate $2 to handle linking of object
5884         files without source files in command line,
5885         * device/include/pic16 (all headers): added ID location macros,
5886         * src/pic16/device.c (struct PIC16_device Pics16[]): added field
5887         entries for ID location bytes,
5888         * (pic16_assignIdByteValue): NEW,
5889         * src/pic16/device.h: new structures idRegInfo_t and idBytesInfo_t,
5890         added field dumpcalltree to pic16_options_t,
5891         * src/pic16/gen.c (genCmp): fixed bug case so a temporary register
5892         is used instead of pic16_Gstack_base_addr, check if (ifx) before
5893         emitting rFalseIfx label after check_carry label,
5894         * src/pic16/glue.c (PIC16_IS_IDLOC_ADDRESS, PIC16_IS_HWREG_ADDRESS,
5895         pic16_emitDIRegs), NEW
5896         * (pic16glue): dump .calltree file when option --calltree found,
5897         * src/pic16/main.c (OPTION _pic16_optionsTable): new option --calltree
5898         * (_pic16_genAssemblerPreamble): emit ID locations after
5899         configuration registers,
5900         * (pic16_linkCmd): modifications of the link command,
5901         * src/pic16/pcode.c (pic16_pciMOVFF): PCC_REGISTER replaces PCC_REGISTER2
5902         * (pic16_pCodeInitRegisters): don't init stack registers,
5903         * (pic16_findPrevInstruction): fixed bug,
5904         * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): fixed
5905         bug with immediate registers,
5906         * (buildCallTree): traces stack push and pop,
5907         * (pct2): dump also stack usage for each function,
5908         * src/pic16/ralloc.c (dynrIdx): registers names start from 0x00
5909         * (pic16_allocDirReg): various modifications,
5910         * (pic16_typeRegWithIdx): when searching pic16_dynProcessorRegs set
5911         fixed to 1,
5912
5913 2004-07-02 Vangelis Rokas <vrokas AT otenet.gr>
5914
5915         * src/pic16/pcode.c: removed buggy double colon
5916
5917 2004-07-01 Borut Razem <borut.razem AT siol.net>
5918
5919         * support/scripts/sdcc.nsi: added include/pic16 to setup
5920
5921 2004-06-30 Vangelis Rokas <vrokas AT otenet.gr>
5922
5923         * device/lib/Makefile.in: fixed bug in target objects-pic16,
5924         * device/lib/pic16/Makefile: prefixed with dash (-) command under
5925         target 'clean',
5926         * doc/sdccman.lyx: changed version to 2.4.2 and added some port
5927         specific command line arguments. Also added sample lkr script
5928         for placing a variable at a specific memory bank.
5929         * src/pic16/device.c (pic16_dump_gsection): NEW, to dump variables
5930         at a specific memory bank,
5931         * (pic16_dump_isection): fixed bug which caused string literals to
5932         be omitted when dumping idata section,
5933         * (pic16_groupRegistersInSection): added code to handle registers
5934         in specific memory banks,
5935         * src/pic16/gen.c: labelOffset is prefixed with pic16_ and made
5936         public, all references are renamed too,
5937         * (pic16_aopGet): removed switch cases for AOP_R0,AOP_R1,AOP_DPTR,
5938         AOP_DPTR2,
5939         * (pic16_storeForReturn): added case to handle when dest is WREG,
5940         * src/pic16/genarith.c (pic16_pCodeOpSubType): NEW,
5941         * src/pic16/glue.c (pic16emitRegularMap): when adding a register in
5942         pic16_rel_udata, check to see if that register is marked as being
5943         a member of a specific memory bank,
5944         * (pic16_printIvalCharPtr): added code to add string literals either
5945         to code or the idata sections,
5946         * src/pic16/main.c (_process_pragma): added \n to WHITE constant,
5947         also accept the 'udata' pragma,
5948         * src/pic16/main.h: new structure types sectName and sectSym
5949         * src/pic16/pcode.c: added new pCodeInstruction entry for BANKSEL
5950         * (newpCodeOpBit): added PIC_OPTYPE subt in function prototype,
5951         * (pic16_findPrevInstruction): fixed, it returned nothing,
5952         * (insertBankSwitch): fixed to emit banksel/skip and skip/banksel
5953         instruction combinations,
5954         * (pic16_FixRegisterBanking): heavily reorganised,
5955         * (pic16_AnalyzeBanking): if generating banksel directives is
5956         disabled, then don't call FixRegisterBanking at all,
5957         * src/pic16/ralloc.c (bitEQUs, aliasEQUs, allDefsOutOfRange):
5958         completely removed,
5959         * (pic16_writeUsedRegisters): added call to pic16_dump_gsection
5960
5961 2004-06-29 Bernhard Held <bernhard AT bernhardheld.de>
5962
5963         * src/SDCCglue.c (printChar): fixed bug #973350, patch provided by
5964         Phuah Yee Keat <yk.phuah AT nestac.com>
5965
5966 2004-06-28 Vangelis Rokas <vrokas AT otenet.gr>
5967
5968         * src/pic16/glue.c (pic16createInterruptVect): function now emits
5969         correctly the IVT even if it is relocated to some other location
5970
5971 2004-06-28 Vangelis Rokas <vrokas AT otenet.gr>
5972
5973         * device/include/pic16/pic18fregs.h: added case for pic18f2220.h
5974         * device/include/pic16/pic18f2220.h: NEW,
5975         * device/lib/pic16/libdev/pic18f2220.c: NEW,
5976         * device/lib/pic16/libdev/Makefile: added 18f2220 in DEVS,
5977         * src/pic16/device.c (struct Pics16): added info for 18f2220,
5978         * src/pic16/device.h (struct pic16_options): added ivt_loc and
5979         nodefaultlibs, ivt_loc is the location of the interrupt vector
5980         table, and nodefaultlibs signs that default libraries should not be
5981         linked in link stage,
5982         * src/pic16/gen.c (genFunction): relocate interrupt vector functions
5983         according to --ivt-loc argument,
5984         * src/pic16/main.c (_process_pragma): emit '_stack' as public symbol
5985         when pragma stack is found,
5986
5987 2004-06-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5988
5989         * src/mcs51/peeph.def: added peepholes 182.d (return 0.0),
5990         256 (range check), 257 (do while), 258.a-f (bit banging
5991         f.e. on 3-wire SPI bus)
5992
5993 2004-06-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5994
5995         * src/SDCClrange.c (findNextUseSym): fixed a live range bug with
5996         variables used exclusively within a loop
5997
5998 2004-06-21 Bernhard Held <bernhard AT bernhardheld.de>
5999
6000         * src/mcs51/gen.c (genCpl): quick fix for bug #974835
6001
6002 2004-06-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6003
6004         * src/SDCClrange.c (computeClash): fixed bug #971834
6005
6006 2004-06-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6007
6008         * src/mcs51/gen.c (genCmp): fixed bug #975903
6009         * src/hc08/gen.c (operandsEqu),
6010         * src/ds390/gen.c (operandsEqu),
6011         * src/z80/gen.c (operandsEqu),
6012         * src/pic/gen.c (operandsEqu),
6013         * src/pic16/gen.c (operandsEqu),
6014         * src/mcs51/gen.c (operandsEqu): fixed bug #976283
6015         * src/SDCCmain.c (parseCmdLine): report --unknown-option only once
6016
6017 2004-06-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6018
6019         * src/SDCCcse.c (cseBBlock): fixed bug #966963
6020
6021 2004-06-12 Vangelis Rokas <vrokas AT otenet.gr>
6022
6023         * src/pic16/gen.c (genPointerGet): added E_INTERNAL_ERROR for
6024         default case in switch statement,
6025         * glue.c (pic16_initPointer): expr is initialised via decoarteType
6026         to eliminate problem with initialisation of pointers, but problem
6027         still exists,
6028         * (pic16_pointerTypeToGPByte): removed, no needed for pic16,
6029         * (emitStaticSegment): removed various lines emitting debug info,
6030         * src/pic16/pcode.c, src/pic16/pcode.h, src/pic16/ralloc.h:
6031         added processor registers for utilizing EEPROM,
6032         * src/pic16/pcode.c (pic16_emitDB): number of DBs emitted is not
6033         configurable and set 8
6034
6035 2004-06-08 Vangelis Rokas <vrokas AT otenet.gr>
6036
6037         * .version: increased version number to 2.4.2,
6038
6039         Cumulative patch for pic16 port
6040         * src/pic16/device.c: changed scheme to dump initial values for
6041         variables in idata segment, all print_idata* functions were removed,
6042         now the pic16_printIval* will be called,
6043         * src/pic16/glue.c: (pic16_initPointer, pic16_pointerTypeToGPByte,
6044         * _pic16_printPointerType, pic16_printPointerType,
6045         * pic16_printGPointerType, pic16_printIvalArray, pic16_printIvalStruct,
6046         * pic16_printIvalBitFields, pic16_printIvalFuncPtr, pic16_printIvalPtr:
6047         NEW, similar to the respective functions in SDCCglue.c,
6048         * src/pic16/pcode.c (pic16_emitDB, pic16_flushDB): reverted to old
6049         way, emitting hex bytes,
6050         * (pic16_emitDS): NEW, emits a string for pointer initialisation,
6051
6052 2004-06-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6053
6054         * src/avr/ralloc.c (serialRegAssign),
6055         * src/xa51/ralloc.c (serialRegAssign),
6056         * src/pic/ralloc.c (serialRegAssign),
6057         * src/pic16/ralloc.c (serialRegAssign),
6058         * src/hc08/ralloc.c (serialRegAssign),
6059         * src/z80/ralloc.c (serialRegAssign),
6060         * src/ds390/ralloc.c (serialRegAssign),
6061         * src/mcs51/ralloc.c (serialRegAssign): fixed bug #964479
6062
6063 2004-06-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6064
6065         * src/SDCCicode.c (geniCodeJumpTable): fixed bug #967601
6066         * src/SDCCpeeph.c (labelIsReturnOnly): fixed bug #966505
6067
6068 2004-06-07 Vangelis Rokas <vrokas AT otenet.gr>
6069
6070         Cumulative patch for pic16 port:
6071         * src/pic16/device.h (typedef PIC16_device) modified fields for
6072         defining microcontrollers,
6073         * src/pic16/device.c: added new info for all devices in Pics16 array,
6074         * src/pic16/gen.c (genPcall): fixed bug that caused the return label
6075         to be optimised out by the pCode optimiser,
6076         * src/pic16/glue.c (pic16emitRegularMap): treat implicit aggragates
6077         specially, bug reported by G.M. Gallant,
6078         * src/pic16/pcode.c (pic16_newpCodeLabelFORCE): NEW, marks a label
6079         as force'd so that cannot be optimised out by pCode optimiser,
6080         * src/pic16/pcode.c,
6081         * src/pic16/pcodepeeph.c,
6082         * src/pic16/pcoderegs.c: many modifications to re-enable peepholes,
6083         they are disabled by default, but can be enabled explicit with
6084         command argument --denable-peeps, for testing,
6085         * device/lib/pic16/startup/Makefile: added --no-peep,--pomit-config-words,
6086         --pomit-ivt in COMPILE_FLAGS
6087
6088 2004-06-06 Maarten Brock <sourceforge.brock AT dse.nl>
6089
6090         * src/pic16/pcode.c (pic16_emitDB): removed double semicolon which fails
6091           compilation on MSVC
6092
6093 2004-06-06 Maarten Brock <sourceforge.brock AT dse.nl>
6094
6095         * device/include/sab80515.h: added sfr P6, changed GPL to LGPL
6096
6097 2004-06-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6098
6099         device/include/sab80515.h: fixed bug #967492, DAPR is defined at adress
6100         0xd8, but the correct adress is 0xda. Thanks to anonymous for reporting
6101
6102 2004-06-06 Vangelis Rokas <vrokas AT otenet.gr>
6103
6104         * src/pic16/device.c (pic16_assignConfigWord): fixed bug that
6105         would only assign 0x300001 register.
6106
6107 2004-06-05 Vangelis Rokas <vrokas AT otenet.gr>
6108
6109         * device/lib/pic16/startup/Makefile: added $(MODELFLAGS)
6110         in COMPILE_FLAGS. Thanks to G. Gallant for report.
6111
6112 2004-06-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6113
6114         * doc/sdccman.lyx: minor changes, mentioned beta vendor support
6115         for ds80c400
6116         * src/mcs51/peeph.def: ran unexpand -a over peeph.def
6117         * src/mcs51/peeph.def: removed obsolete peephole 100.a,
6118         added peephole 254 (left shift), 255 (jump table)
6119
6120 2004-06-04 Vangelis Rokas <vrokas AT otenet.gr>
6121
6122         * device/lib/Makefile.in: removed comment line with model-pic16,
6123         * (target port-specific-objects-pic16): the libraries and objects
6124         are copied to the build directory form the device/lib/pic16/bin
6125         directory
6126
6127         Cumulative patch concerning pic16 port:
6128         * library directory has been re-organized,
6129         * added support for PIC18F1220,
6130         * added headers and library sources for chips 18f1220,18f6520,
6131         18f6620,18f6680,18f6720,18f8520,18f8620,18f8680,18f8720
6132
6133         * configuration registers setting has changed, now each supported
6134         device has a complete description of the registers it uses,
6135         * all initialisations are moved to idata sections, these section
6136         can be absolute or relocatable,
6137         * fixed initialisation of codespace variables,
6138         * fixed warning about PCLATU and gpsim,
6139         * src/pic16/gen.c (genCmp): now can handle partially iCodes with no ifx,
6140         * (genAssign): use table reads when assigning from variables in codespace,
6141         * src/pic16/glue.c (pic16emitStaticSeg): fixed to correctly initialise
6142         char/int variables placed in codespace,
6143         * (pic16_emitConfigRegs): NEW, emits a list with configuration
6144         registers set in .asm file, no need for --pomit-config-words anymore,
6145         * (pic16glue): some 8051 legacy segments are commented out
6146         (to be removed completely),
6147         * added support for alternative assembler and linker with --asm=
6148         and --link= command line arguments,
6149         * peepholes are disabled automatically in the port, no need to
6150         specify on command line,
6151         * port supports natively char/int/long multiplication, but converts
6152         all divisions to support functions,
6153         * main.c: pic16_linkCmd and pic16_asmCmd changed to force output
6154         to the file set in variable $2,
6155         * pcode.c (pic16_emitDB, pic16_flushDB): modified to print printable
6156         strings in ASCII format and not in hex,
6157         * ralloc.c (serialRegAssign): added a triplet of conditional calls
6158         to pic16_allocDirReg for IC_RESULT, IC_LEFT and IC_RIGHT so to
6159         allocate proper register if iCodes aren't temporary,
6160
6161 2004-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
6162
6163         * support/regression/tests/zeropad.c: added TEST_G macro for alpha
6164
6165 2004-06-02 Vangelis Rokas <vrokas AT otenet.gr>
6166
6167         * src/pic16/gen.c (genPcall): warning about gpsim and PCLATU
6168         is commented out
6169
6170 2004-06-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6171
6172         * src/hc08/gen.c (genPointerGetSetOfs): disabled optimization if
6173         computed address is reused
6174         * src/hc08/gen.c (genPackBits): fixed offsets in assignments to
6175         multi-byte bitfields
6176
6177 2004-06-01 Maarten Brock <sourceforge.brock AT dse.nl>
6178
6179         * src/z80/gen.c: (genArrayInit): must check for pointers too
6180
6181 2004-06-01 Maarten Brock <sourceforge.brock AT dse.nl>
6182
6183         * support/regression/tests/zeropad.c: never meant to commit the
6184           nestedstruct test: removed, added check for GCC version
6185
6186 2004-05-31 Maarten Brock <sourceforge.brock AT dse.nl>
6187
6188         * src/SDCCast.c (createIvalArray): fixed bug 770487 SIGSEGV
6189         * src/SDCCglue.c (emitRegularMap): fixed bug 770484 allocation problem
6190         * src/SDCCglue.c (initPointer, printIvalType, printIvalStruct,
6191           printIvalArray, printIvalFuncPtr, printIvalPtr, printIval): fixed
6192           bugs 928906 and 954082 half-empty initializers
6193         * src/SDCCsymt.h,
6194         * src/SDCCsymt.c (getAllocSize): added for above fix
6195         * src/z80/gen.c (genArrayInit): fixed bug 741044
6196         * support/regression/tests/zeropad.c: added tests
6197
6198 2004-05-30 Vangelis Rokas <vrokas AT otenet.gr>
6199
6200         * src/pic16/device.c (pic16_dump_section): corrected bug which
6201         caused some symbols of the libraries to be misplaced
6202
6203 2004-05-28 Vangelis Rokas <vrokas AT otenet.gr>
6204
6205         * src/pic16/glue.c,
6206         * src/pic16/ralloc.h,
6207         * src/pic16/ralloc.cc: prefixed IS_CONFIG_ADDRESS with PIC16_
6208         to fix conflict with pic port
6209
6210 2004-05-28 Vangelis Rokas <vrokas AT otenet.gr>
6211
6212         * src/pic16/glue.c (pic16emitStaticSeg): do not print as publics or
6213         externs configuration variables,
6214         * src/pic16/ralloc.h,
6215         * src/pic16/ralloc.cc: IS_CONFIG_ADDRESS is made public and added
6216         prototype in header, commented out some debug messages
6217
6218 2004-05-26 Vangelis Rokas <vrokas AT otenet.gr>
6219
6220         * src/pic16/glue.c,
6221         * src/pic16/main.c,
6222         * src/pic16/pcode.c: added gpasm directives #FILE/#LINE
6223         for gpasm COFF object generation. Thanks to D. Hawkins for
6224         his patch info
6225
6226 2004-05-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6227
6228         * src/ds390/main.c,
6229         * src/mcs51/main.c: fixed sort order of mnemonics (thanks to Maarten
6230         Brock for spotting this)
6231         * src/ds390/gen.c (genEndFunction),
6232         * src/mcs51/gen.c (genEndFunction): always save psw if function is an
6233         interrupt handler and critical. Disable push/pop optimizations when
6234         peephole optimizations disabled.
6235
6236 2004-05-25 Vangelis Rokas <vrokas AT otenet.gr>
6237
6238         Updated pic16 library sources and headers.
6239         * device/lib/pic16/pic18f*/ ,
6240         * device/include/pic16/*.h: modified to handle structured SFR
6241         definitions
6242
6243 2004-05-25 Vangelis Rokas <vrokas AT otenet.gr>
6244
6245         * src/port.h (PORT structure): added hook initPaths, now each
6246         port can declare its own default search paths,
6247         which can been seen with the --print-search-dirs option,
6248         see pic16 port for example,
6249         * src/SDCCmain.c (setBinPaths, setIncludePaths, setLibPath,
6250         setDataPaths): test to options.printSearchDirs is ifdef'ed out,
6251         * (doPrintSearchDirs): NEW, replaces in a central manner the
6252         printing of search dirs which was split in set*Paths functions,
6253         * (main): added call to port->initPaths and doPrintSearchDirs,
6254         * src/avr/main.c,
6255         * src/ds390/main.c,
6256         * src/hc08/main.c,
6257         * src/izt/i186.c,
6258         * src/izt/tlcs900h.c,
6259         * src/mcs51/main.c,
6260         * src/pic/main.c,
6261         * src/pic16/main.c: modified port structures to reflect addition of
6262         initPaths hook,
6263
6264         * src/pic16/device.c (regCompare): registers are finally sorted by name,
6265         * (pic16_dump_section): for registers in same address reserve memory once,
6266         * src/pic16/device.h (struct PIC16_device): changed variable gen_banksel
6267         to no_banksel,
6268         * src/pic16/genarith.c (pic16_genPlus): added code to handle cases where
6269         result is greater in size than right or left,
6270         * (pic16_genUMult8X8_8): there are some cases where the result can
6271         be 16 bits size, so handle these,
6272         * src/pic16/gen.c: changed some pic16_emitpcomment to DEBUGpic16_emitcode,
6273         * (pic16_outBitC): modified to emit pcodes,
6274         * (pic16_storeForReturn): using is_LitOp to see if operand is literal
6275         or not,
6276         * (genDivOneByte): implemented algorithm to divide 8-bits,
6277         * (genCmp): uncommented goto, but issues still exist,
6278         * (genAnd): fixed a bug with variables >8bits,
6279         * (genPackBits): optimization added that uses BCF/BSF to change a
6280         single bit,
6281         * (genAssign): fixed bug when assigning floating point literals,
6282         * src/pic16/glue.c (pic16glue): added assembler directive 'code' before
6283         __sdcc_gsinit_startup label,
6284         * src/pic16/main.c (_pic16_init): removed search directory
6285         initialisations,
6286         * (_pic16_initPaths): NEW, used to initialise search directories,
6287         * (_hasNativeMulFor): support functions for all except char/int
6288         multiplication, and char division,
6289         * (PIC16_port struct): modified entry for native mul support,
6290         * src/pic16/pcode.c (insertBankSwitch): modified to support the renamed
6291         no_banksel option,
6292         * (buildCallTree): call to register_usage is ifdef'ed out,
6293
6294 2004-05-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6295
6296         * device/include/string.h: applied Stas Sergeev's patch to make this
6297         header file compatible with the preprocessor -Wundef option
6298         * src/SDCCmain.c (main): abort compilation if preprocessor reports
6299         failure (fixes bug #941458)
6300
6301 2004-05-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6302
6303         * src/SDCCopt.c (killDeadCode): fixed bug #907733
6304         * support/Util/SDCCerr.c: reworded E_AUTO_ASSUMED diagnostic to clarify
6305         that the variable, not the function, should be static
6306         * src/SDCCval.c (valCastLiteral): fixed bit initialization from literal
6307         to be consistent with non-literal case
6308
6309 2004-05-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6310
6311         * src/SDCCast.c (isConformingBody): fixed bug #949967
6312         * src/SDCCopt.c (cnvToFcall, cnvToFloatCast, cnvFromFloatCast,
6313         convilong): fixed bug #952086
6314
6315 2004-05-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6316
6317         * src/SDCCmem.c (allocVariables): fixed bug #955321
6318
6319 2004-05-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6320
6321         * src/hc08/main.c (_hc08_genAssemblerEnd),
6322         * src/SDCCdwarf2.c (dwOpenFile, dwCloseFile, dwWriteFunction,
6323         dwWriteModule, dwWriteCLine, dwWriteALine, dwarf2FinalizeFile):
6324         completely eliminated the use of a temporary file
6325         * src/SDCCdwarf2.c (dwWriteAttr): fixed bug with location list offset
6326         when more than one file linked
6327         * src/SDCCloop.c (pointerAssigned): fixed bug #954163
6328
6329 2004-05-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6330
6331         * src/SDCCval.c (valForArray): applied Maarten Brock's patch #947682
6332         which fixes bug #543481
6333         * support/regression/tests/bug-751703.c: fixed comments left from a
6334         cut and paste error
6335         * src/SDCCdwarf2.c (dwCloseFile): don't explicitly close a temp file
6336         * src/SDCCdwarf2.c (dwTagFromType): added bitfield support
6337         * src/SDCCdwarf2.c (dwWriteSymbolInternal): handle extern within local
6338         scopes
6339         * src/SDCCdwarf2.c (dwWriteLineNumber): line number deltas are signed
6340         * src/SDCCmain.c (processFile, parseCmdLine): non-alphanumeric chars
6341         are now changed to underscores in moduleName
6342
6343 2004-05-15 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6344
6345         * as/mcs51/lkmem.c: better fix for bug #954173
6346
6347 2004-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
6348         committed by Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6349
6350         * device/include/c8051f020.h: newly added SiLabs (Cygnal) header file
6351         * device/include/c8051f000.h,
6352         * device/include/c8051f120.h,
6353         * device/include/c8051f300.h,
6354         * device/include/c8051f310.h,
6355         * device/include/c8051f320.h: updated (added _XPAGE, CAPN, CAPP,
6356         PWM16) and detab'ed
6357
6358 2004-05-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6359
6360         * doc/sdccman.lyx: mentioned sourceforge's delay between web frontend
6361         and mailing lists, doc'ed --no-peep-comments, removed reference
6362         to knoppix (newest version has no LyX/LaTeX), other minor changes
6363         * src/SDCCglue.c (glue): save 2 bytes stack space with
6364         option --main-return. The ljmp could probably be avoided too
6365
6366 2004-05-14 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6367
6368         * as/mcs51/lkmem.c, as/mcs51/lkaomf51: fixed bug 954173
6369
6370 2004-05-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6371
6372         * src/SDCCsymt.h: added IS_AUTO(symbol) test macro
6373         * src/SDCCopt.c (isLocalWithoutDef),
6374         * src/SDCCicode.c (operandFromSymbol): use the IS_AUTO test macro
6375         which adds a !IS_EXTERN codition. Fixes bugs #877426 and #751703.
6376         (credit to Maarten Brock for patch #949363, on which this is based)
6377         * support/regression/tests/bug-751703.c: some test cases of extern used
6378         within inner scopes.
6379
6380 2004-05-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6381
6382         * src/SDCCdwarf2.c (dwMatchTypes): structs must have matching
6383         SPEC_STRUCT
6384         * src/SDCCdwarf2.c (dwTagFromType): fix to handle recursive
6385         struct definitions
6386         * src/SDCCdwarf2.c (dwWriteModule, dwNewDebugSymbol, dwWriteEndFunction,
6387         dwWriteLabel): fix to create valid debugger symbols even when
6388         the module name has non-alphanumeric symbols in it
6389         * src/SDCCdwarf2.c (dwWriteSymbolInternal): better detection for
6390         when a variable's allocation has been optimized away
6391
6392
6393 2004-05-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6394
6395         * src/hc08/gen.c (hc08_emitDebuggerSymbol),
6396         * src/hc08/main.c,
6397         * src/mcs51/gen.c (mcs51_emitDebuggerSymbol),
6398         * src/mcs51/main.c,
6399         * src/ds390/gen.c (ds390_emitDebuggerSymbol),
6400         * src/ds390/main.c,
6401         * src/z80/gen.c (z80_emitDebuggerSymbol),
6402         * src/z80/main.c,
6403         * src/pic/gen.c (pic14_emitDebuggerSymbol),
6404         * src/pic/main.c,
6405         * src/pic16/gen.c (pic14_emitDebuggerSymbol),
6406         * src/pic16/main.c,
6407         * src/avr/gen.c (avr_emitDebuggerSymbol),
6408         * src/avr/main.c,
6409         * src/xa51/gen.c (xa51_emitDebuggerSymbol),
6410         * src/xa51/main.c,
6411         * src/SDCCdebug.c (emitDebuggerSymbol),
6412         * src/SDCCdebug.h,
6413         * src/port.h: added a debugger struct to the port struct. Added a
6414         callback for defining debugger symbols
6415
6416         * src/SDCCast.c (createLabel),
6417         * src/SDCC.y (labeled_statement): mark all compiler generated labels
6418         with isitmp = 1
6419         * src/SDCCicode.h,
6420         * src/SDCCicode.c (geniCodeFunctionBody): added a link from the FUNCTION
6421         iCode back to the ast for the function
6422
6423         * src/hc08/ralloc.c (hc08_assignRegisters),
6424         * src/hc08/ralloc.h: define a regs struct for the stack pointer. Removed
6425         unneeded fields from the regs struct.
6426         * src/hc08/gen.c (transferRegReg, genFunction, genEndFunction): use the
6427         pushReg() & pullReg() functions instead of emitcode()
6428
6429         * src/hc08/gen.c (genLabel, genhc08Code),
6430         * src/SDCCdebug.h: Added additional debugger hooks needed for DWARF
6431
6432         * src/cdbFile.c (cdbWriteLabel, cdbWriteScope): Added stubs for unneeded
6433         debugger hooks
6434
6435         * src/hc08/gen.c (genEndFunction, genhc08Code),
6436         * src/hc08/gen.h,
6437         * src/mcs51/gen.c (genEndFunction, gen51Code),
6438         * src/mcs51/gen.h,
6439         * src/ds390/gen.c (genEndFunction, gen390Code),
6440         * src/ds390/gen.h,
6441         * src/z80/gen.c (genEndFunction, genZ80Code),
6442         * src/z80/gen.h,
6443         * src/z80/z80.h,
6444         * src/pic/gen.c (genEndFunction, genpic14Code),
6445         * src/pic/gen.h,
6446         * src/pic16/gen.c (genEndFunction, genpic16Code),
6447         * src/pic16/gen.h,
6448         * src/avr/gen.c (genEndFunction, genAVRCode),
6449         * src/avr/gen.h,
6450         * src/xa51/gen.c (genEndFunction, genXA51Code),
6451         * src/xa51/gen.h,
6452         * src/cdbFile.c (cdbWriteFunction, cdbWriteEndFunction): moved cdb
6453         specific code to cdbFile.c and out of the backend code generators
6454
6455         * as/hc08/lkmain.c (main): removed OMF51 support from link-hc08
6456         * as/hc08/lkarea.c (lnkarea): areas with NOLOAD attribute default
6457         starting address is now 0
6458
6459         * as/hc08/asm.h,
6460         * as/hc08/m08pst.c,
6461         * as/hc08/asmain.c (asmbl): implemented the .sleb128 and .uleb128
6462         assembler directive for DWARF support
6463         * as/hc08/lkelf.c (elf): only increment address when rtflg[] set
6464
6465         * src/src.dsp,
6466         * src/Makefile.in,
6467         * src/SDCCdwarf2.c: preliminary DWARF (ver 2) debugger data generator
6468
6469 2004-05-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6470
6471         * src/hc08/gen.c (genJumpTab, emitcode, genhc08code): fixed stack error
6472         and inappropriate peephole optimization in jump tables
6473
6474 2004-04-30 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6475
6476         * as/hc08/m08pst.c,
6477         * src/SDCCglue.c: sdccopt works for the hc08 port now
6478
6479 2004-04-27 Bernhard Held <bernhard AT bernhardheld.de>
6480
6481         * src/SDCCicode.c (geniCodePreInc, geniCodePreDec): fixed bug #942130
6482
6483 2004-04-27 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6484
6485         * as/hc08/lkelf.c: sdccconf.h is not available in WIN32
6486
6487 2004-04-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6488
6489         * src/SDCCpeeph.c (replaceRule): support empty replacement peephole
6490         rules
6491         * src/SDCCmain.c,
6492         * src/SDCCglobl.h,
6493         * src/SDCCpeeph.c (getPeepLine): new option --no-peep-comments omits
6494         comments from the peephole optimizer replacement rules
6495         * src/SDCCmem.c (printAllocInfoSeg): give actual location of spilled
6496         symbols
6497         * src/SDCCcse.c (updateSpillLocation),
6498         * src/SDCCopt.c (killDeadCode, findReqv): better tracking of register
6499         equivalents
6500         * src/hc08/ralloc.c (regTypeNum): pseudo symbols must be in DATA only
6501         * src/hc08/main.c (_hc08_finaliseOptions): made pointers to stack
6502         objects far pointers
6503
6504 2004-04-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6505
6506         * src/SDCCsymt.h: a missing part of my last change
6507         * src/pic/ralloc.c (regTypeNum),
6508         * src/pic16/ralloc.c (regTypeNum): fixed statement/declaration order
6509
6510 2004-04-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6511
6512         * src/SDCCicode.h,
6513         * src/SDCCicode.c (aggrToPtrDclType),
6514         * src/SDCCptropt.h,
6515         * src/SDCCptropt.c (ptrBaseRematSym, ptrPseudoSymSafe,
6516         ptrPseudoSymConvert),
6517         * src/pic/ralloc.c (regTypeNum),
6518         * src/pic16/ralloc.c (regTypeNum),
6519         * src/hc08/ralloc.c (regTypeNum),
6520         * src/ds390/ralloc.c (regTypeNum),
6521         * src/mcs51/ralloc.c (regTypeNum): check for dependancy hazards before
6522         creating pseudo symbols (fixed bugs #777768, #930484, and #933966)
6523
6524 2004-04-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6525
6526         * link/z80/lkmain.c (afile),
6527         * as/hc08/lkmain.c (afile),
6528         * as/mcs51/lkmain.c (afile): fix suggested by Maarten Brock to
6529         prevent a pointer problem when a filename has no directory and
6530         no extension specified.
6531
6532 2004-04-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6533
6534         * link/z80/lkmain.c (afile): allow periods in directory names
6535         * link/z80/lkmain.c (afile),
6536         * as/mcs51/lkmain.c (afile),
6537         * as/hc08/lkmain.c (afile): allow linker script file to have an
6538         extension other than ".lnk"
6539         * link/z80/lklex.c (getfid),
6540         * link/z80/lkmain.c (parse),
6541         * as/mcs51/lklex.c (getfid),
6542         * as/mcs51/lkmain.c (parse),
6543         * as/hc08/lklex.c (getfid),
6544         * as/hc08/lkmain.c (parse): Support comments in the linker script
6545         file on lines by themselves and after filenames
6546
6547 2004-04-20 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6548
6549         * as/link_hc08.dsp: Added as/hc08/lkelf.c to project.
6550
6551 2004-04-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6552
6553         * src/z80/peeph-z80.def: removed some peephole rules that don't
6554         work with multibyte arithmetic (fixed bug #937126)
6555         * src/mcs51/peeph.def: fixed peephole rules 150-158 to apply only
6556         to registers and not global variables
6557         * src/SDCCicode.c (geniCodeAssign, ast2iCode, geniCodePostInc,
6558         geniCodePreInc, geniCodePostDec, geniCodePreDec,
6559         geniCodeLogicAndOr, geniCodeConditional): enforce strict lvalue
6560         checking for assignments not internally generated (fixed bug #931895)
6561         * src/SDCC.y (postfix_expr): ignore typedefs when looking for a
6562         structure member (fixed bug #930072)
6563
6564 2004-04-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6565
6566         * src/SDCCmain.c (linkEdit),
6567         * src/hc08/main.c (_hc08_parseOptions),
6568         * as/hc08/Makefile.in,
6569         * as/hc08/aslink.h,
6570         * as/hc08/asm.h,
6571         * as/hc08/m08pst.c,
6572         * as/hc08/lkrloc.c (relr, rele),
6573         * as/hc08/lkarea.c (lnkarea)
6574         * as/hc08/lkmain.c (afile, parse),
6575         * as/hc08/lkelf.c: support for ELF output
6576         * as/hc08/lks19.c (s19),
6577         * as/hc08/lkihx.c (ihx): ignore areas with the NOLOAD attribute
6578
6579 2004-04-17 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6580
6581         * as/mcs51/lkihx.c: Fixed bug #899105.
6582
6583 2004-04-16 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6584
6585         * doc/sdccman.lyx: Added instructons on how to convert MSVC .dsw and
6586         .dsp files from Unix to DOS.
6587
6588 2004-04-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6589
6590         * doc/sdccman.lyx: removed the ANSI-C noncompliance note regarding
6591         function pointers; we have been compliant for several months now.
6592         * src/mcs51/ralloc.c (serialRegAssign): enabled part of my 2004-04-13
6593         change that was accidently commented out
6594         * src/mcs51/gen.c (freeAsmop, getFreePtr, freeForBranchAsmop, genIfxJump,
6595         genCmpEq, jmpTrueOrFalse, genCmp, genAnd, genOr, genXor, genIfx): fixed
6596         bug #922319
6597
6598 2004-04-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6599
6600         * src/hc08/gen.c: output of all of the internal debugging information
6601         is now controlled by the D() macro; it is disabled by default
6602
6603 2004-04-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6604
6605         * src/mcs51/ralloc.c (serialRegAssign, fillGaps, allocThisReg): try
6606         harder to keep the same registers during a CAST iCode
6607         * src/SDCCopt.c (optimizeCastCast, eBBlockFromiCode): casts of char to
6608         long via int can be done in a single cast, if the signedness is
6609         correct.
6610         * support/regression/tests/bug-927659.c: fixed to avoid conflict with
6611         putchar() in tinibios.c in ds390's library
6612
6613 2004-04-12 Bernhard Held <bernhard AT bernhardheld.de>
6614
6615         * src/SDCCast.c (decorateType): fixed bug #898889,
6616         cast result of a literal complement too
6617         * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #930931,
6618         fixed check for bitfields
6619
6620 2004-04-11 Bernhard Held <bernhard AT bernhardheld.de>
6621
6622         * src/SDCCicode.c (geniCodeLogic): made it static,
6623         (geniCodeLogicAndOr): added in order to fix bug #905492,
6624         (ast2iCode): fixed bug #905492
6625         * support/regression/tests/bug-905492.c: added
6626         * src/SDCCast.c (decorateType): don't decorate/process parms twice,
6627         (processParms): fixed bug #927659: don't copy parms, this will clear
6628         decorated flag
6629         * support/regression/tests/bug-927659.c: added
6630
6631 2004-03-29 Bernhard Held <bernhard AT bernhardheld.de>
6632
6633         * src/SDCCast.c (addCast): don't cast float to char
6634         * device/lib/libsdcc.lib: added _memmove
6635
6636 2004-03-28 Bernhard Held <bernhard AT bernhardheld.de>
6637
6638         * device/lib/large/Makefile: fixed parallel execution by
6639         replacing `make` by `$(MAKE)`
6640
6641 2004-03-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6642
6643         * src/hc08/gen.c (genPointerGetSetOfs): correctly handle 1 byte array
6644         offsets (fixes bug #923936)
6645
6646 2004-03-26 Bernhard Held <bernhard AT bernhardheld.de>
6647
6648         * device/lib/small/Makefile: fixed parallel execution by
6649         replacing `make` by `$(MAKE)`
6650
6651 2004-03-23 Bernhard Held <bernhard AT bernhardheld.de>
6652
6653         * device/lib/vprintf.c (vsprintf): minor optimization, see bug #801101
6654
6655 2004-03-23  Scott Dattalo  <scott AT dattalo.com>
6656
6657         * src/pic/gen.c (genCpl): multi-byte complements were not working.
6658         * src/regression/Makefile: Regression test was not running.
6659
6660 2004-03-23 Bernhard Held <bernhard AT bernhardheld.de>
6661
6662         * src/SDCCast.c (resultTypePropagate, decorateType): avoid promotion to int for
6663         complement if possible
6664         * src/SDCCval.c (valComplement),
6665         * src/SDCCicode.c (operandOperation): fixed complement of literal
6666         * support/regression/tests/onebyte.c (testComplement): added
6667
6668 2004-03-22 Bernhard Held <bernhard AT bernhardheld.de>
6669
6670         * src/SDCCast.c (processParms): fixed bug #920866; decorateType() can
6671         return an optimized tree; actually replace actParm with the new tree
6672         * src/SDCCast.h: added some parantheses to remove side effects
6673         * support/regression/tests/bug-920866.c
6674
6675 2004-03-21  Scott Dattalo  <scott AT dattalo.com>
6676         * src/pic/gen.c, src/pic/gen.h, src/pic/genarith.c, src/pic/pcode.c:
6677         Bit operands were not being handled properly in the pic14 port.
6678         (now src/regression/add.c passes again).
6679
6680 2004-03-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6681
6682         * src/SDCC.y (labeled_statement): case and default no longer require
6683         a following statement (RFE #893037)
6684
6685 2004-03-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6686
6687         * src/mcs51/gen.c (pushSide, genSignedRightShift, genDjnz, geniPush):
6688         use MOVA macro to avoid "mov a,acc" when peephole optimizer is
6689         disabled (fixes bug #916294)
6690         * sim/ucsim/s51.src/mov.cc (inst_mov_a_addr): Throw an error on
6691         "mov a,acc"; patch provided by Lenny Story
6692         * device/include/mc68hc908gp32.h: header contibuted by Juan Gonzalez
6693
6694 2004-03-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6695
6696         * src/mcs51/gen.c (genFunction): optimize RECEIVE in reentrant
6697         functions
6698         * src/ds390/gen.c (genFunction, genEndFunction),
6699         * src/ds390/ralloc.c (ds390_assignRegisters),
6700         * src/mcs51/gen.c (genFunction, genEndFunction, mcs51_assignRegisters):
6701         * src/mcs51/ralloc.c (mcs51_assignRegisters): Skip optimizing registers
6702         pushed if there are parameters passed on the stack. Also, a cleaner
6703         way to decide if r0/r1 should be pushed/popped. (Together they fix
6704         bug #918693)
6705
6706 2004-03-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6707
6708         * doc/sdccman.lyx,
6709         * device/lib/mcs51/crtpagesfr.asm,
6710         * device/lib/mcs51/crtxinit.asm,
6711         * device/lib/mcs51/crtxstack.asm: Changed name of _PAGESFR to _XPAGE
6712         to avoid confusion with Si Lab's SFRPAGE register.
6713
6714 2004-03-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6715
6716         * src/SDCCglue.c (emitMaps): allow public sfr variables
6717         * src/SDCCglue.c (initialComments): include compiler build date
6718         with compiler version and put the timestamp of the generated
6719         assembly file on a serperate line to be less confusing.
6720         * src/port.h: added genInitStartup hook
6721         * src/avr/main.c,
6722         * src/ds390/main.c,
6723         * src/hc08/main.c,
6724         * src/pic/main.c,
6725         * src/pic16/main.c,
6726         * src/xa51/main.c,
6727         * src/z80/main.c: genInitStartup initialize as NULL (default to
6728         historical behaviour)
6729         * src/SDCCglue.c (glue): _sdcc_gsinit_startup is now port specific.
6730         * src/mcs51/main.c: (_mcs51_genInitStartup, _mcs51_genExtraAreas,
6731         _mcs51_genXINIT, _mcs51_genRAMCLEAR): link initialization code from the
6732         library instead of hard coding it into the compiler.
6733         * support/regression/ports/mcs51-stack-auto/spec.mk,
6734         * src/SDCCmain.c (linkEdit): added mcs51.lib to the link libraries
6735         * device/lib/mcs51/Makefile,
6736         * device/lib/small/Makefile,
6737         * device/lib/large/Makefile,
6738         * device/lib/mcs51/crtpagesfr.asm,
6739         * device/lib/mcs51/crtstart.asm,
6740         * device/lib/mcs51/crtxclear.asm,
6741         * device/lib/mcs51/crtxinit.asm,
6742         * device/lib/mcs51/crtclear.asm,
6743         * device/lib/mcs51/crtxstack.asm: move most of the mcs51 C runtime
6744         startup/initialization out of src/SDCCglue.c and src/mcs51/main.c
6745         and into user configurable files.
6746         * device/lib/clean.mk: clean mcs51 directory too
6747         * support/regression/tests/longlit.c: added static to T1 declaration
6748         * doc/sdccman.lyx: documented _PAGESFR sfr for customizing pdata
6749         accesses in the initialization code
6750
6751 2004-03-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6752
6753         * device/include/mc68hc908qy.h: corrected declarations of FLBPR and
6754         OSCTRIMVAL as noted in bug #916008
6755
6756 2004-03-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6757
6758         * src/SDCCloop.c (basicInduction): fixed bug with loop induction
6759         in loops with multiple exits (reported as incorrect registers
6760         used by Martin Helmling in Sdcc-user list)
6761
6762 2004-03-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6763
6764         * src/ds390/main.c (_ds390_genAssemblerPreamble): cosmetic change,
6765         made ds390 register extensions look less like error messages
6766
6767 2004-03-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6768
6769         * src/SDCCglue.c (printIvalPtr): fixed bug with pointer initializer
6770         reported by Adam Wozniak in Sdcc-user list
6771
6772 2004-03-10 Bernhard Held <bernhard AT bernhardheld.de>
6773
6774         * src/SDCCast.c (decorateType): fixed with bug and promotion in
6775         arithmetic optimizations, added debug output
6776
6777 2004-03-09 Bernhard Held <bernhard AT bernhardheld.de>
6778
6779         * device/lib/time.c (mktime): fixed bug reported by Bert Thomas
6780         * sdcc.spec: updated and split sdcc into 3 rpms
6781         * src/SDCCast.c (decorateType): &|^ don't need addCast(); addCast() is
6782         needed for literals of LEFT_OP and '+'
6783         * src/SDCCicode.c (geniCodeLogic): I must have been braindead when I
6784         introduced RESULT_TYPE_NOPROM
6785         (geniCodeMultiply): fixed logic for decision if mul is optimized to
6786         left shift
6787         * src/SDCCsymt.c (computeType): op is int; added RESULT_TYPE_OTHER;
6788         limited promotion to int only for '*'
6789         * src/SDCCsymt.h (computeType): op is int, removed RESULT_TYPE_NOPROM
6790
6791 2004-03-09 Hans Dorn <hjdorn AT users.sourceforge.net>
6792
6793         * src/pic16/gen.c (genSkip),
6794         (genc16bit2lit), (gencjneshort): commented out
6795         (is_LitOp): new helper function, checks operand type
6796         (genCmpEq): rewritten
6797
6798 2004-03-08 Bernhard Held <bernhard AT bernhardheld.de>
6799
6800         * support/regression/tests/bug-908454.c: added
6801
6802 2004-03-07 Bernhard Held <bernhard AT bernhardheld.de>
6803
6804         * src/SDCCast.c (addCast): fixed bug #908454 by promoting bits to char
6805         * src/SDCCicode.c (usualBinaryConversions): op needs int type
6806         (geniCodeCast): cosmetic, don't preserve bit storage class
6807         (geniCodeLeftShift): added promotion
6808         (geniCodeLogic): fixed regression
6809         * src/SDCCsymt.c (computeTypeOr): accept bits too
6810         (compareType): 2nd part of fix for bug #908454, needed for bitfields
6811
6812 2004-03-07  Borut Razem <borut.razem AT siol.net>
6813
6814         * support/Util/findme.c: alloca() replaced with malloc()/free() pair
6815
6816 2004-03-06 Vangelis Rokas <vrokas AT otenet.gr>
6817
6818         * src/pic16/ralloc.c (pic16_genPackRegisters): reverted to old
6819         version of pic16_genPackRegisters which does not check if ic is a
6820         CAST operator,
6821         * src/pic16/gen.c (ifxForOp): disabled new and untested code in
6822         function cause string1.c regression test fails
6823
6824 2004-03-06 Bernhard Held <bernhard AT bernhardheld.de>
6825
6826         * sim/ucsim/configure.in,
6827         * sim/ucsim/configure,
6828         * sim/ucsim/doc/Makefile.in: use docdir
6829         * src/SDCC.y: fixed sbit atrributes
6830         * src/SDCCast.c (getResultTypeFromType): added support for bitfields
6831         * src/SDCCast.c (decorateType): |^& need special promotion handling
6832         * src/SDCCast.h,
6833         * src/SDCCsymt.h: moved definition of RESULT_TYPE
6834         * src/SDCCsymt.h (computeType),
6835         * src/SDCCicode.c: computeType() needs op
6836         * src/SDCCsymt.c (checkTypeSanity),
6837         * doc/sddman.lyx: "plain" bitfields are unsigned
6838         * src/SDCCsymt.c (computeTypeOr): added
6839         * src/SDCCsymt.c (computeType): added support for bitfields, fixed
6840         |^& ops
6841         * src/SDCCval.c (val*): computeType() needs op
6842         * src/SDCCval.c (valCastLiteral): fixed casting of bitfields
6843         * support/regression/tests/onebyte.c: added tests for |^&
6844
6845 2004-03-06 Hans Dorn <hjdorn AT users.sourceforge.net>
6846
6847         * src/pic16/gen.c: (genpic16Code) use copy of printILine's output
6848         for writing icode into asm output.
6849
6850 2004-03-05 Vangelis Rokas <vrokas AT otenet.gr>
6851
6852         * src/pic16/device.c: added some debug lines enabled
6853         with macro DEBUG_CHECK,
6854         * src/pic16/genarith.c: more debug in genPlus,
6855         * (pic16_genUMult8XLit_16, pic16_genUMult8X8_16): removed,
6856         * (pic16_genUMult16X16_16, pic16_genUMult16XLit_16): NEW,
6857         * src/pic16/gen.c: added prototypes for pic16_genMult16X16_16,
6858         * (aopForSym): onStack symbols are re-placed in data memspace,
6859         and onStack flag is cleared,
6860         * (pic16_popGetTempReg, pic16_popReleaseTempReg): modified to
6861         copy temporary pcodeop,
6862         * (genPcall): added warning for not updating PCLATU,
6863         * (genFunction): removed test with IFFUNC_CALLEESAVES, its
6864         always true for pic16 port,
6865         * (genMultOneWord): NEW, supports integer multiplication,
6866         * (genMult): modified to call genMultOneWord,
6867         * (ifxForOp): added warning when return NULL,
6868         * src/pic16/glue.c (pic16emitRegularMap): symbol implicit
6869         flag is set before call to operandFromSymbol for implicit
6870         added structures,
6871         * src/pic16/main.c (_pic16_finaliseOptions): options.float_rent,
6872         options.intlong_rent are set by default,
6873         * (_hasNativeMulFor): modified to allow port generation of integer
6874         multiplication,
6875         * src/pic16/ralloc.c (pic16_allocDirReg): commented out line which
6876         set regtype to REG_SFR for all registers, restricting seting the
6877         accessBank flag for registers 0<= r < 0x80 and 0xf80<=r<=0xfff,
6878
6879 2004-03-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6880
6881         * src/mcs51/peephole.def: added 251.b and 253.x. 253.x are applied
6882         more than 500 times in the regression tests
6883
6884 2004-03-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6885
6886         * support/Util/SDCCerr.h,
6887         * support/Util/SDCCerr.c,
6888         * src/SDCC.y (struct_or_union_specifier, enum_specifier,
6889         enumerator_list),
6890         * src/SDCCsymt.c (addSymChain): show location of oriignal definition
6891         for symbol conflicts.
6892         * support/valdiags/tests/enum.c,
6893         * support/valdiags/tests/tentdecl.c,
6894         * support/valdiags/tests/struct.c: expect possible error messages
6895         referring to original symbol definitions.
6896         * src/SDCC.y (struct_or_union_specifier, struct_declarator),
6897         * src/SDCCsymt.h,
6898         * src/SDCCsymt.c (promoteAnonStructs): support anonymous struct/union
6899
6900 2004-03-03 Hans Dorn <hjdorn AT users.sourceforge.net>
6901
6902         * src/pic16/gen.c (gencjne): fixed for right=REG / left=LIT
6903
6904 2004-02-03 Vangelis Rokas <vrokas AT otenet.gr>
6905
6906         * src/pic16/ralloc.c (newReg): fixed bug #908929
6907
6908 2004-03-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6909
6910         * src/ds390/gen.c: added missing #include "main.h"
6911
6912 2004-03-02 Vangelis Rokas <vrokas AT otenet.gr>
6913
6914         * src/pic16/device.c (checkAddSym): NEW, adds a symbol to set while
6915         checking if symbol is already in set,
6916         * src/pic16/device.h: prototype for checkAddSym,
6917         * src/pic16/gen.c: (_G): added entry interruptvector,
6918         * (assignResultValue): removed some commented out lines,
6919         * (genFunction): check for ISR via sym->type, absolute section for
6920         interrupt code is created via a new pBlock, the goto instruction is
6921         placed now correctly at the interrupt vector position, changed all
6922         references from ivec to _G.interruptvector,
6923         * WREG,STATUS,BSR are not saved in stack upon an entry to interrupt
6924         is the interrupt is a high priority one, same for return from ISR,
6925         * src/pic16/glue.c: changed all calls of addSetHead for publics and
6926         externs to calls of checkAddSym,
6927         * src/pic16/pcode.c (pic16_pBlockConvert2*): emit warning when
6928         pic16_pcode_verbose flag is set,
6929         * src/pic16/pcode.h: extern to pic16_pcode_verbose,
6930         * src/pic16/pcoderegs.c: message about how many registers are saved
6931         will only be emitted if pic16_pcode_verbose flag is set,
6932
6933 2004-03-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6934
6935         * src/ds390/ralloc.h,
6936         * src/ds390/ralloc.c (ds390_regWithIdx),
6937         * src/ds390/gen.c (emitcode),
6938         * src/ds390/main.h,
6939         * src/ds390/main.c (instructionSize, ds390newAsmLineNode, updateOpRW,
6940         ds390opcodeCompare, asmLineNodeFromLineNode, getInstructionSize,
6941         ds390operandCompare, getRegsRead, getRegsWritten,
6942         initializeAsmLineNode): customized instruction size calculation for
6943         ds390, started basis for some register optimizations
6944         * src/ds390/gen.c (gen390Code, emitcode): associate iCodes with
6945         corresponding assembly output
6946         * src/ds390/gen.c (genFunction, genEndFunction): added case to handle
6947         missing push/pop of r0/r1. Optimized push/pops
6948
6949 2004-03-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6950
6951         * src/mcs51/main.c (instructionSize): fixed ACALL size
6952         * src/mcs51/main.c (updateOpRW): fixed bug with @dptr, @a+dptr operands
6953
6954 2004-03-01 Vangelis Rokas <vrokas AT otenet.gr>
6955
6956         * src/pic16/device.c (pic16_dump_section): fixed a bug that allowed
6957         the sorting of rlist with NULL elements
6958         * (print_idataType, print_idata): NEW to create idata sections
6959         * src/pic16/device.h: idataSymSet new variable
6960         * src/pic16/gen.c (genFunction): fixed some bugs in string
6961         comparing, improved the absolute section creation for ISRs,
6962         added FSR0L/FSR0H in registers that are saved in an ISR,
6963         * (genInline): fixed the processing of inline snippets,
6964         now they undergo no process by the peephole optimizer
6965         * src/pic16/glue.c (pic16emitRegularMap): symbols with initialiser
6966         are placed in idataSymSet,
6967         * (pic16emitStaticSeg): extern symbols are added in externs,
6968         * src/pic16/ralloc.c (pic16_allocDirReg): work around to reduce bank
6969         switching when aboslute variables are placed in access bank memory
6970         * (pic16_writeUsedRegs): added call to pic16_dump_idata,
6971         * (packRegsForSupport,packRegsForAccUse,packRegsForOneuse):
6972         commented out with #if,
6973         * (pic16_packRegisters): reintroduce the check for CAST because some
6974         symbols are not correctly handled,
6975         * src/pic16/pcode.h: changed the definition of pCodeAsmDir to hold a
6976         pCodeInstruction instead of pCode,
6977         * src/pic16/pcode.c (pic16_newpCodeAsmDir): modified for the new
6978         pCodeAsmDir definition,
6979         * (pic16_pCode2str, genericPrint): when an AsmDir pcode has a NULL
6980         directive, then the argument directive is emitted without the leading
6981         tab, hack for inline labels which must be in the first column,
6982         * (compareLabel,pic16_findNextInstruction),
6983         * (pic16_findPrevInstruction): added case for PO_ASMDIR,
6984         * (insertBankSwitch): modified for the new pCodeAsmDir,
6985
6986 2004-03-01 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
6987         patch applied by Vangelis Rokas <vrokas AT otenet.gr>
6988
6989         * src/pic16/gen.c (pic16_popGet): case PO_DIR, adds the offset to
6990         instance,
6991         * (pushSide): commented out with #if,
6992         * (assignResultValue): fixed some typos in saving
6993         registers,
6994         * (genPcall): FIXED and sync'ed with genCall,
6995         * (genDataPointerGet,genDataPointerSet): using offset not leoffset
6996         * (genNearPointerGet): fixed to handle some more cases,
6997         implementation scheme via table reads,
6998         * (genConstPointerGet): modified to access code memory correct,
6999         * (genCodePointerGet,genNearPointerSet,genGenPointerSet): modified
7000         and improved to handle some cases
7001         * glue.c (printIvalType,printIvalChar,emitStaticSeg): use "DB"
7002         instead of "RETLW" for init data
7003         * src/pic16/ralloc.c (pic16_allocDirReg): warning when a symbol is
7004         not IN_DIRSPACE, work around to reduce bank switching when aboslute
7005         variables are placed in access bank memory (<0x80 and >=0xf80),
7006         * src/pic16/pcode.c: added SFRs TBLPTR, TABLAT, added opcodes TBLRD,
7007         TBLRD_POSTINC,TBLRD_POSTDEC,TBLRD_PREINC,TBLWT,TBLWT_POSTINC,
7008         TBLWT_POSTDEC,TBLWT_PREINC
7009         * Fixed initialisation of BSR, set "alias" for SSAVE to "0"
7010         * (pic16_emitDB,pic16_flushDB): New functions to generate "DB"
7011         directives
7012         * (pic16_pCodeConstString): use "DB" instead of "RETLW"
7013         * src/pic16/pcode.h: added TBLRD*,TBLWT*, added pic16_emitDB,
7014         pic16_flushDB, made pic16_newpCodeAsmDir public, added TBLPTR, TABLAT
7015         * src/pic16/ralloc.h: added IDX_BSR,IDX_TBLPTR*,IDX_TABLAT
7016
7017 2004-02-29  Borut Razem <borut.razem AT siol.net>
7018
7019         * src/Makefile.in, src/SDCCutil.c, support/Util/findme.c,
7020         support/Util/findme.h, support/Util/system.h: enhance binary relative
7021         search for lib and include by using findProgramPath()
7022
7023 2004-02-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7024
7025         * src/SDCCpeeph.h,
7026         * src/SDCCpeeph.c (pcDistance),
7027         * src/port.h,
7028         * src/mcs51/ralloc.h,
7029         * src/mcs51/ralloc.c (mcs51_regWithIdx),
7030         * src/mcs51/main.h,
7031         * src/mcs51/main.c (instructionSize, asmLineNode, updateOpRW,
7032         mcs51opcodeCompare, asmLineNodeFromLineNode, getInstructionSize,
7033         mcs51operandCompare, getRegsRead, getRegsWritten): made instruction
7034         size calculation port specific, started basis for some register
7035         optimizations
7036         * src/mcs51/gen.c (genFunction, genEndFunction): added case to handle
7037         missing push/pop of r0/r1. Optimized push/pops
7038         * src/mcs51/ralloc.c (packregisters): fixed bug #727095
7039         * device/lib/_modsint.c (_modsint),
7040         * device/lib/_modslong.c (_modslong): fixed sign of result in non-asm
7041         and stack version so regression tests pass
7042
7043 2004-02-26 Bernhard Held <bernhard AT bernhardheld.de>
7044
7045         * src/Makefile.in (dep): include SLIBOBJS in dependency check
7046         * src/SDCCast.c (decorateType): catch another small optimization
7047         with '?' operator
7048         * src/SDCCsymt.c (computeType): added comments and cosmetic changes
7049         * src/SDCCval.c (valMult, valDiv, valMod, valPlus, valMinus, valShift):
7050         modified to finally use computeType() all over SDCC,
7051         see Feature Request #877103
7052         * src/SDCCval.h: cosmetic
7053         * src/SDCCicode.c (operandOperation): fixed EQ_OP bug, now same as in
7054         valCompare(); regression tested in muldiv.c
7055         * support/regression/tests/muldiv.c (testMod): mod sign follows
7056         dividend only
7057
7058 2004-02-23 Bernhard Held <bernhard AT bernhardheld.de>
7059
7060         * src/SDCCast.c (decorateType): fixed bug #902362
7061         * doc/INSTALL.txt: fixed install instructions for win32
7062
7063 2004-02-21 Bernhard Held <bernhard AT bernhardheld.de>
7064
7065         * device/include/Makefile.in (install): fixed by replacing spaces
7066         by tabs
7067         * doc/README.txt,
7068         * doc/INSTALL.txt: updated for release
7069         * doc/sdccman.lyx: added warning for --xstack being buggy
7070
7071 2004-02-20 Bernhard Held <bernhard AT bernhardheld.de>
7072
7073         * src/pic16/ralloc.c (packRegsForAccUse):  disabled functions with #if
7074         to eliminate build warnings.
7075         * src/pic16/gen.c (pic16_popGet): fixed for gcc 2.95.4
7076
7077 2004-02-20 Vangelis Rokas <vrokas AT otenet.gr>
7078            Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
7079
7080         * doc/sdccman.lyx: removed PIC16 from PIC16 Port Specific Options,
7081         removed -penable-stack, added comment for stack pragma, added
7082         warning for not initializing the stack/frame registers, removed
7083         comment at interrupts section
7084
7085         Stack is made permanent, there is no ability to disable stack usage.
7086         * src/pic16/device.h,
7087         * src/pic16/device.c: removed all references to USE_STACK macro,
7088         * src/pic16/device.c (pic16_dump_section): when no elements in
7089         rlist, free rlist before return,
7090         * (pic16_dump_int_registers): NEW, internal registers are a new set
7091         of general purpose registers reused by each function,
7092         * (checkAddReg): returns 1 if registers is added to set,
7093         * (pic16_groupRegistersInSection): when a registers is of type
7094         PO_GPR_TEMP add it in pic16_int_regs and not in pic16_rel_udata,
7095         * src/pic16/device.h: memRange and Assigned Memory are deleted,
7096         SRCASECMP macro is moved here from device.c
7097         * src/pic16/genarith.c (pic16_pCodeOpType): added cases for
7098         PO_PCLATU, PO_PRODL, PO_PRODH,
7099         * (pic16_pCodeOpType, genMinus,
7100         changed compares to "a" register, with AOP_ACC,
7101         * (pic16_genPlus): fixed some bugs and indented properly,
7102         * (pic16_addSign): changed size to size+offset in the MOVWF
7103         instruction,
7104         * (pic16_genUMult8XLit_8): NEW, uses processor MULLW instruction to
7105         multiply 8-bit operand by literal, result is 8-bit,
7106         * (pic16_genUMult8X8_8): NEW, uses processor MULWF instruction to
7107         multiply 2 8-bit operand, result is 8-bit,
7108         * (pic16_genMult8X8_8): modified to call genUMult8X*_8 functions and not
7109         genUMult8X*_16,
7110         * src/pic16/gen.c: changed accUse to contain WREG only,
7111         * (pic16_emitcomment): renamed to pic16_emitpcomment,
7112         * (aopForSym): allocated dir register when IN_DIRSPACE(space) is,
7113         true, do not use immediate addressing any more unless sym is a
7114         pointer in codespace,
7115         * (aopForRemat): do not use immediate addressing when symbol not in
7116         codespace and when symbol's address is requested,
7117         * (aopOp): for-loop in if(sym->accUse) is modified for the new
7118         accUse size (= 1),
7119         * (aopGet): added case for AOP_ACC and don't return "accumulator
7120         bug" but WREG instead,
7121         * (popGetTempReg): pushes contents of temporary register in stack,
7122         * (popReleaseTempReg): pops contents of temporary register from
7123         stack. Use popGetTempReg/popReleaseTempReg in aligned pairs,
7124         * (pic16_popGet): separated case AOP_ACC to return register WREG
7125         from processor registers, AOP_PCODE not checks if pcop is PO_DIR
7126         or PO_IMMEDIATE and initializes their instance/offset appropriately,
7127         * The whole issue with aopForSym,aopForRemat,popGet) is to minimize
7128         the use of immediate pointers to certain cases only.
7129
7130         * (pic16_pushpCodeOpReg, pic16_poppCodeOpReg): use pic16_popGet2p,
7131         * (pic16_loadFromReturn, pic16_storeForReturn: NEW,
7132         * (assignResultValue, genCall, genRet): modified to use the new
7133         function return value scheme with WREG,PRODL,PRODH,FSR0L and FSR0,
7134         genPcall is still broken,
7135         * (genFunction): added code to create 'A' type pBlocks when
7136         interrupt functions are generated, code not extensively tested yet,
7137         ISRs push WREG,STATUS,BSR,PRODL,PRODH,FSR0L,FSR0H registers on stack,
7138         * (genEndFunction): modified so ISRs pop stored registers from stack,
7139         * (genMultOneByte): cleanup,
7140         * (AccRsh): added flag andmask, to and result with appropriate mask,
7141         * (genUnpackBits,genPackBits): fixed and can handle bit fields,
7142         * (genDataPointerGet): fixed and reenabled its use,
7143         * (genNearDataPointerGet): bugs fixed,
7144         * (genDataPointerSet): bugs fixed,
7145         * src/pic16/genutils.c: added functions pic16_DumpValue,pic16_DumpAop,
7146         pic16_DumpSymbol, pic16_DumpOp,
7147         * src/pic16/genutils.h: function prototypes for the above functions,
7148         * src/pic16/glue.c: new flags initsfpnt, to initialize stack/frame
7149         pointers,
7150         * (pic16emitRegularMap): many many many improvements, but needs a
7151         major cleanup,
7152         * src/pic16/main.c: enable_stack in pic16_options is removed,
7153         * (_pic16_parseOptions): removed command line options -penable-stack,
7154         * (_process_pragma): emit stack symbol only when stack pragma is
7155         processed,
7156         * src/pic16/pcode.c: pic16_pc_fsr0 is removed, all operations are
7157         redirected to FSR0L/FSR0H pair,
7158         * (pic16_get_op, pic16_get_op2): modifications and improvements,
7159         * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): added
7160         cases PO_PRODL,PO_PRODH, pic16_getRegFromInstruction2 returns sane
7161         for immediates,
7162         * (insertBankSwitch): modified to handle cases like: (alfa + 1)
7163         * (dumpPicOptype): NEW,
7164         * src/pic16/pcode.h: added PO_PCLATU,PO_PRODL,PO_PRODH in enum,
7165         * src/pic16/pcoderegs.c (pCodeRegMapLiveRangesInFlow): fixed bug
7166         with movff instruction,
7167         * src/pic16/ralloc.c: renamed typeRegWithIdx to pic16_typeRegWithIdx,
7168         added pic16_int_regs, some packRegsFor* functions are commented out,
7169         because produce errors,
7170         * src/pic16/NOTES: minor modifications
7171
7172 2004-02-18  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7173
7174         * as/mcs51/aslink.h, as/mcs51/lkarea.c, as/mcs51/lkdata.c, as/mcs51/lkmain.c,
7175         as/mcs51/lkmem.c, src/SDCCglob.h, src/SDCCmain.c: added options --stack-size and
7176         --pack-iram.
7177         * doc/sdccman.lyx: described options --stack-size and --pack-iram.
7178         * as/mcs51/lkaomf51.c: fixed bug #895763
7179
7180 2004-02-17 Bernhard Held <bernhard AT bernhardheld.de>
7181
7182         * device/include/c8051f320.h: added. Contributed by Maarten Brock.
7183
7184 2004-02-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7185
7186         * doc/sdccman.lyx: added details about the HC08 storage classes and
7187         interrupts, fixed the register usage info for z80 & gbz80
7188
7189 2004-02-17 Vangelis Rokas <vrokas AT otenet.gr>
7190
7191         * doc/sdccman.lyx: added more pic16 port documentation
7192         * device/include/pic16/: added header pic18fregs.h
7193
7194 2004-02-16 Bernhard Held <bernhard AT bernhardheld.de>
7195
7196         * doc/sdccman.lyx: added Vangelis' contribution
7197
7198 2004-02-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7199
7200         * src/SDCClrange.c (rlivePoint): live range of SEND operand should
7201         extend to the next CALL or PCALL, not just to the next CALL.
7202
7203 2004-02-16 Vangelis Rokas <vrokas AT otenet.gr>
7204
7205         * src/pic16/gen.c (genInline): fixed bug #896482 with inline assembly
7206
7207 2004-02-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7208
7209         * src/mcs51/ralloc.c (packRegsForAssign, reassignAliasedSym): fixed
7210         bug #895752 and a better fix for bug #716790
7211
7212 2004-02-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7213
7214         * src/SDCCsymt.c (processFuncArgs): fixed bug #896796
7215
7216 2004-02-14 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7217
7218         * doc/sdccman.lyx: minor changes, minor changed
7219
7220 2004-02-13 Bernhard Held <bernhard AT bernhardheld.de>
7221
7222         * src/SDCCicode.c (usualBinaryConversions): removed pic16 from ports
7223         which can't handle SDCC_NEWONEBYTEOPS,
7224         (geniCodeMultiply): removed conversion from mult to shift for pic14
7225         and pic16
7226
7227 2004-02-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7228
7229         * src/hc08/gen.h,
7230         * src/hc08/gen.c (storeRegToAop, aopOp, aopAdrStr, accopWithAop,
7231         rmwWithAop): Ported my 2003-10-02 fix for bug #663539 to the hc08,
7232         thus fixing bug #895406
7233
7234 2004-02-11 Bernhard Held <bernhard AT bernhardheld.de>
7235
7236         * device/lib/_modsint.c,
7237         * device/lib/_modslong.c: sign follows divisor only
7238         * src/hc08/gen.c (genMultOneByte): if result size is 1,
7239         signs or signedness can be ignored
7240         * src/SDCCast.c (addCast): cosmetic - added lineno to CAST
7241         * src/SDCCast.c (resultTypePropagate): added even more ops: +, - and *,
7242         added optimization for IFX,
7243         (decorateType): Mult/Div/ModOneByte ops can handle all kind of signed
7244         arguments;
7245         reenabled optimization for IFX, which was removed on 2004-01-11
7246         * src/SDCCast.h: added return type IFX
7247         * src/SDCCicode.c: Mult/Div/ModOneByte ops can handle all kind of signed
7248         arguments with 8 or 16 bit results; pic14 and pic16 ports use old
7249         promotion behaviour; env. var. SDCC_NEWONEBYTEOPS selects the new,
7250         SDCC_OLDONEBYTEOPS selects the old behaviour
7251         * src/SDCCsymt.c (computeType): type2 can be NULL (for LEFT_OP);
7252         changed again and commented promotion rule
7253         * src/SDCCval.c (valDiv): promotion no longer necessary
7254         * src/ds390/gen.c (genMultOneByte) (genDivOneByte) (genModOneByte),
7255         * src/mcs51/gen.c (genMultOneByte) (genDivOneByte) (genModOneByte):
7256         rewritten
7257         * support/regression/tests/onebyte.c: added
7258
7259 2004-02-11 Vangelis Rokas <vrokas AT otenet.gr>
7260
7261         * gen.c (genInline): reverted to old code for assemnling inline
7262         code because of bug reported James Chadd
7263
7264 2004-02-10 Vangelis Rokas <vrokas AT otenet.gr>
7265
7266         * ralloc.h: missing declarations from previous patch,
7267         seems that patch for ralloc.h was never applied, fixed
7268
7269 2004-02-10 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
7270            patch committed by Vangelis Rokas <vrokas AT otenet.gr>
7271
7272         * pcode.c,
7273         * pcode.h,
7274         * ralloc.h: added FSR0L, FSR0H and other missing PIC16 SFR's for
7275         indirect addressing. Marked FSR0 as deprecated
7276         * gen.c (pointerCode): commented out, not needed now
7277         (pic16_popGet2p): new MOVFF helper function
7278         (genGenPointerGet),
7279         (genGenPointerSet): reimplemented with MOVFF and POSTINC0
7280         (shiftRLong): removed duplicate debugging info
7281
7282 2004-02-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7283
7284         * src/ds390/gen.c (genNearPointerGet),
7285         * src/mcs51/gen.c (genNearPointerGet): allow the genDataPointerGet()
7286         optimization with bits, but not bitfields.
7287         * src/ds390/ralloc.c (packRegisters),
7288         * src/mcs51/ralloc.c (packRegisters): fixed bug #884453 & #880832
7289
7290 2004-02-09 Bernhard Held <bernhard AT bernhardheld.de>
7291
7292         * src/SDCCcse.c (algebraicOpts): copy operands before modification
7293
7294 2004-02-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7295
7296         * src/SDCCsymt.h,
7297         * src/SDCCicode.c (operandFromSymbol),
7298         * src/mcs51/ralloc.c (verifyRegsAssigned, serialRegAssign),
7299         * src/ds390/ralloc.c (verifyRegsAssigned, serialRegAssign),
7300         * src/z80/ralloc.c (verifyRegsAssigned, serialRegAssign),
7301         * src/hc08/ralloc.c (verifyRegsAssigned, serialRegAssign),
7302         * src/pic/ralloc.c (verifyRegsAssigned, serialRegAssign),
7303         * src/pic16/ralloc.c (verifyRegsAssigned, serialRegAssign): fixed
7304         bug #892038
7305         * src/SDCCast.c (createIvalStruct, createIvalArray, gatherAutoInit),
7306         * src/SDCCglue.c (emitRegularMap, printIvalStruct, printIvalArray,
7307         printIvalCharPtr, printIvalPtr, printIval, emitStaticSeg, emitOverlay)
7308         * src/SDCCsymt.c (newSymbol),
7309         * src/SDCC.y (struct_or_union_specifier, enum_specifier,
7310         enumerator_list),
7311         * src/SDCCval.h,
7312         * src/SDCCval.c (newiList): fixed bug #885705
7313
7314 2004-02-08  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7315
7316         * doc/sdccman.lyx: added section 3.1.4: sdcclib.
7317         * as/mcs51/lkmem.c: report the size of the stack in .mem file.
7318
7319 2004-02-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7320
7321         * device/include/c8051f120.h,
7322         * device/include/c8051f300.h,
7323         * device/include/c8051f310.h: added/updated header files for Silicon
7324         Laboratories (formerly Cygnal) CPUs. Contributed by Maarten Brock.
7325         * doc/sdccman.lyx: minor changes, recommended diff -Naur and diff -u
7326         in new section Submitting patches
7327
7328 2004-02-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7329
7330         * src/mcs51/gen.c (genNearPointerGet, genPagedPointerGet,
7331         genFarPointerGet, genCodePointerGet, genGenPointerGet,
7332         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
7333         genGenPointerSet),
7334         * src/ds390/gen.c (genNearPointerGet, genPagedPointerGet,
7335         genFarPointerGet, genCodePointerGet, genGenPointerGet,
7336         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
7337         genGenPointerSet),
7338         * src/pic16/gen.c (genNearPointerGet, genPagedPointerGet,
7339         genFarPointerGet, genCodePointerGet, genGenPointerGet,
7340         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
7341         genGenPointerSet),
7342         * src/pic/gen.c (genNearPointerGet, genPagedPointerGet,
7343         genFarPointerGet, genCodePointerGet, genGenPointerGet,
7344         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
7345         genGenPointerSet): fixed bug #892400
7346         * src/pic16/gen.c (genSkipz, AccRol): disabled functions with #if 0
7347         to eliminate build warnings.
7348         * src/SDCCast.c (processParms),
7349         * src/SDCC.y (function_declarator2, declarator2_function_attributes):
7350         fixed bug 751859
7351         * support/valdiag/valdiag.py: added GCC to the list of defines active
7352         when compiling with gcc
7353
7354 2004-02-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7355
7356         * support/Util/SDCCerr.h,
7357         * support/Util/SDCCerr.c,
7358         * src/SDCCast.c (decorateType, sizeofOp): complain when sizeof is used
7359         with an incomplete type (fixed bug #883734)
7360         * src/SDCCicode.c (geniCodeCast): fixed bug #890510
7361
7362 2004-02-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7363
7364         * src/pic16/gen.c (genCmpEq, shiftRLong): fixed declarations
7365
7366 2004-02-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7367
7368         * src/SDCCast.c (decorateType),
7369         * src/SDCCicode.c (geniCodeParms, geniCodeCall): fixed bugs in my ANSI
7370         function pointer implementation
7371         * support/regression/tests/funptrs.c: added tests to verify both forms
7372         of function pointers work correctly. Added tests to verify parameters
7373         are passed in the correct order.
7374
7375 2004-02-06  Vangelis Rokas <vrokas AT otenet.gr>
7376
7377         * device.c (regCompare): registers are sorted by ascending
7378         address and increasing size,
7379         * main.c (_pic16_finaliseOptions): removed the declaration
7380         of compiler macro MCU. Now a macro of the format pic18fxxxx
7381         will be defined from the command line
7382
7383 2004-02-06  Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
7384             patch committed by Vangelis Rokas <vrokas AT otenet.gr>
7385
7386         * pcode.c (pic16initMnemonics): fixed typo in assignment to PCOP_RLNCF
7387         PCOP_RLCF was overwritten!
7388         * gen.c (genSkip): commented out calls to pic16_emitcode,
7389         * (genCmpEQ): fixed "long" compares, only high word did get compared,
7390         * (genlshTwo),
7391         * (genRRC): added debugging info,
7392         * (shiftL2Left2Result): Fixed bug, if offr > offl. Result got
7393         overwritten while shifting,
7394         * (shiftR2Left2Result): Fixed bug, if offr < offl. Result got
7395         overwritten while shifting,
7396         * (AccLsh),
7397         * (AccRsh),
7398         * (shiftLLeftOrResult),
7399         * (shiftRLeftOrResult),
7400         * (shiftRLong),
7401         * (shiftLLong): Implemented with pic16_emitpcode
7402         * (genlshFour): Replaced pic16_aopPut with pic16_emitpcode,
7403         * (genLeftShift): Fixed bug, operand for shift by variable always
7404         was "and"ed with 0x0f,
7405         * (genLeftShiftLiteral),
7406         * (genrshTwo),
7407         * (genRightShiftLiteral): added debugging info,
7408         * (genrshFour): added comment,
7409         * (genRightShift): determined signedness from operand "left"
7410         instead of "result"
7411
7412 2004-02-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7413
7414         * src/SDCCicode.c (geniCodeParms),
7415         * src/SDCCast.c (decorateType, processParms): support for ANSI-style
7416         function pointers, fixed function pointer bugs #861242 and #861896
7417
7418 2004-01-31 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7419
7420         * device/include/c8051f000.h,
7421         * device/include/c8051f120.h,
7422         * device/include/c8051f300.h: added header files for Silicon
7423         Laboratories (formerly Cygnal) CPUs. Contributed by Maarten Brock.
7424
7425 2004-01-31 Bernhard Held <bernhard AT bernhardheld.de>
7426
7427         * src/SDCCast.c (processParams): added new type flow and restructured
7428         (gatherAutoInit): added new type flow
7429         (addCast): cosmetic changes
7430         (getLeftResultType): added new type flow for array indices, patch
7431         provided by Stas, see FR #877103
7432         (decorateType): SDCC_NEWTYPEFLOW removed, new type flow is now standard;
7433         array index patch by Stas
7434         * src/SDCCast.h: added prototype getResultTypeFromType()
7435         * src/SDCCval.h,
7436         * src/SDCCval.c (resolveIvalSym) (resolveIvalSym),
7437         * src/pic/glue.c (pic14emitStaticSeg),
7438         * src/pic16/glue.c (pic16emitStaticSeg),
7439         * src/SDCCglue.c (emitRegularMap) (emitStaticSeg): added new type flow
7440         for initialization of symbols
7441         * src/SDCCicode.c (geniCodeArray): removed warning W_ARRAY_BOUND
7442         * support/Util/SDCCerr.h:
7443         * support/Util/SDCCerr.c: replaced W_ARRAY_BOUND by W_IDX_OUT_OF_BOUNDS
7444         * .version: bumped version number to 2.3.8
7445         * device/include/Makefile.in (install),
7446         * doc/Makefile (install): changed to 'rm `find ...`' construct to
7447         avoid warnings
7448
7449 2004-01-30 Bernhard Held <bernhard AT bernhardheld.de>
7450
7451         * support/regression/tests/libmullong.c: fixed for 64 bit hosts
7452         Slade Rich fixed an optimization bug
7453         * src/pic/pcodepeep.c,
7454         * src/pic/pcoderegs.c
7455         * doc/Makefile (install): added test for directory
7456
7457 2004-01-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7458
7459         * src/mcs51/ralloc.c (getRegPtr, getRegGpr),
7460         * src/ds390/ralloc.c (getRegPtr, getRegGpr),
7461         * src/pic/ralloc.c (getRegPtr, getRegGpr),
7462         * src/pic16/ralloc.c (getRegPtr, getRegGpr),
7463         * src/z80/ralloc.c (getRegGpr): fixed bug #883361
7464         * as/mcs51/asexpr.c (term),
7465         * as/hc08/asexpr.c (term): fixed bug #887146
7466
7467 2004-01-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7468
7469         * src/z80/gen.c (genMult): handle single byte result product
7470         * src/SDCCopt.c (killDeadCode): never convert ADDRESS_OF iCode to
7471         DUMMY_READ_VOLATILE (fixed bug #886367)
7472
7473 2004-01-27 Bernhard Held <bernhard AT bernhardheld.de>
7474
7475         * support/regression/tests/libmullong.c: fixed logic, on little endian
7476         hosts we ended without a mullong_wrapper()
7477
7478 2004-01-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7479
7480         * ChangeLog: changed "@" to " AT " in hopes of reducing spam and
7481         virus/worm forged address usage.
7482
7483 2004-01-27 Bernhard Held <bernhard AT bernhardheld.de>
7484
7485         Fixed promotion, it should be done on AST level:
7486         * src/SDCCast.c (addCast): added promotion to int
7487         (decorateType): updated call to upCast()
7488         * src/SDCCicode.c (geniCodeLeftShift): removed call to
7489         usualUnaryConversions()
7490
7491 2004-01-26  Michael Hope  <michaelh AT juju.net.nz>
7492
7493         * support/regression/tests/literalop.c (mulWrapper): Added a
7494         wrapper to remove integer overflow warnings.
7495
7496         * support/regression/tests/float_trans.c: Made work on host.
7497
7498         * support/regression/ports/ucz80/spec.mk (UCZ80): Made detect the
7499         location of sz80.
7500
7501         * support/regression/generate-cases.py (main): Changed from inline
7502         to a main method.
7503
7504         * doc/Makefile (install): Changed to depth first to get rid of
7505         missing directory install warning.
7506
7507         * as/Makefile (install-doc): Made work on Mac.
7508
7509 2004-01-25 Bernhard Held <bernhard AT bernhardheld.de>
7510
7511         * src/SDCCast.c: added an additional type flow in decorateType() of
7512         opposite direction, see feature request #860006; it's enabled at runtime
7513         by setting the environment variable SDCC_NEWTYPEFLOW
7514         * src/SDCCast.h: changed prototype of decorateType()
7515         * src/SDCCglue.c (emitRegularMap): updated call of decorateType()
7516         * src/SDCCicode.c (geniCodeDivision) (geniCodeModulus): promotion from
7517         'char' to 'int' can be omitted, if both operands are 'unsigned char';
7518         see feature request #877103
7519         * src/SDCCval.c: updated call of decorateType()
7520         (valBitwise): fixed bug #882876
7521         (valMinus): added promotion
7522         (valLogicAndOr): result is unsigned
7523         (cheapestVal) (constVal): literals from 0...255 are 'unsigned char' now
7524         * src/SDCCsymt.c (computeType),
7525         * src/mcs51/gen.c (genCmpGt) (genCmpLt): literal 'unsigned char'
7526         must not cause an unsigned operation
7527         * src/pic/glue (pic14emitRegularMap),
7528         * src/pic16/glue.c (pic16emitRegularMap): updated call of decorateType()
7529
7530 2004-01-23 Bernhard Held <bernhard AT bernhardheld.de>
7531
7532         * src/pic/pcode.c (PCodeID): commented out left over debug code
7533
7534 2004-01-20 Bernhard Held <bernhard AT bernhardheld.de>
7535
7536         * support/valdiag/tests/overflow.c: added shift tests
7537         * src/pic/device.c,
7538         * src/pic/gen.c,
7539         * src/pic/gen.h,
7540         * src/pic/glue.c,
7541         * src/pic/main.c,
7542         * src/pic/pcode.c,
7543         * src/pic/pcode.h,
7544         * src/pic/pcodepeep.c,
7545         * src/pic/pcoderegs.c,
7546         * src/pic/ralloc.c,
7547         * src/pic/ralloc.h: applied patch from Slade Rich;
7548         added support for multiple code pages and multiple RAM banks on the
7549         PIC 14 port. The ASM files now no longer simply assume all the
7550         code / RAM are in the same page / bank. This means the linker can
7551         safely allocate code/RAM of separate ASM files to different pages/banks.
7552         * doc/sdccman.lyx: added Slade's tips
7553         * src/mcs51/peeph.def: fixed bug #880768
7554
7555 2004-01-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7556
7557         * src/hc08/ralloc.c (rematStr): fixed bug #879282
7558         * src/SDCCast.c (decorateType): fixed bug #880197
7559
7560 2004-01-20  Michael Hope  <michaelh AT juju.net.nz>
7561
7562         * sim/ucsim/gui.src/serio.src/main.cc: Fixed unconditional use of
7563         getopt.h.
7564
7565         * debugger/mcs51/cmd.c (getValBasic): Changed strtof to strtod as
7566         strtof is not part of C89 and isn't included with Mac OS X.
7567
7568 2004-01-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7569
7570         * src/hc08/gen.c (genPlusIncr, genUminus, genMinusDec, genCmp,
7571         shiftL2Left2Result): fixed bug #879326
7572         (genAnd, genOr, genXor): fixed bug when result was of type AOP_CRY
7573         (genMultOneByte): fixed bug in signed vs unsigned multiplication
7574         * sim/ucsim/hc08.src/inst.cc (inst_clr): added missing effective
7575         address fetch for clr instruction
7576         * device/lib/hc08/_mulint.c: created optimized assembly version
7577         * src/SDCCdflow.c (computeDataFlow): fixed bug #878209
7578
7579 2004-01-19 Bernhard Held <bernhard AT bernhardheld.de>
7580
7581         * src/SDCCicode.c (geniCodeArray): applied patch from Stas Sergeev
7582         proposed in FR #877103
7583
7584 2004-01-18 Bernhard Held <bernhard AT bernhardheld.de>
7585
7586         * src/SDCCval.c (cheapestVal): added missing checks
7587         * src/SDCCicode.c (usualBinaryConversions): fixed condition
7588         * src/SDCCicode.c (geniCodeAdd): fixed part of bug #877103
7589
7590 2004-01-16 Klaus Flittner <klaus_flittner AT gmx.de>
7591
7592         * src/ds390/gen.c (aopOp3): fixed the assignment of different dptrs to
7593         equal operands
7594
7595 2004-01-16 Vangelis Rokas <vrokas AT otenet.gr>
7596
7597         * src/SDCCmain.c (linkEdit): variable $3 of the linker command is
7598         loaded with the linker search paths (-L arguments) and the libraries
7599         to be linked with the current source (-l arguments). Changes
7600         currently will affect only the pic16 port.
7601         * src/pic16/main.c (_pic16_finaliseOptions): add to the linker
7602         include path the port specific paths and port specific libraries,
7603         * gplink command now contains the $3 argument,
7604         * src/pic16/device.h,
7605         * src/pic16/device.c,: structure PIC_device is made public and
7606         renamed to PIC16_device, the same for variable Pics which is renamed
7607         to Pics16. Updated all references to them.
7608         * src/pic16/glue.c (pic16glue): corrected bug with code
7609         initialization which bypassed the variable initializations block.
7610
7611         * device/lib/pic16/Makefile.rules: removed --penable-stack from
7612         COMPILE_FLAGS and added the --nostdinc option
7613
7614 2004-01-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7615
7616         * device/include/mc68hc908jb8.h: Register defs for another member
7617         of the hc08 family. Contributed by Bjorn Bringert - thanks!
7618
7619 2004-01-14 Vangelis Rokas <vrokas AT otenet.gr>
7620
7621         Documenting changes from previous commits.
7622         * configure.in (version 1.56),
7623         * configure: initially I've added AC_CONFIG_SUBDIRS(device/lib/pic16)
7624         when generating output files to configure the pic16 library,
7625         but now I've commented it out, since gputils aren't installed in the
7626         SF compile farm, so library won't compile
7627
7628         * device/lib/Makefile.in (version 1.56): initially I've added in
7629         target 'all' the prerequestive 'model-pic16' so it compiled the
7630         pic16 library, but now I've commented it out for the same reasons
7631         above,
7632         * added targets 'model-pic16' and 'objects-pic16' to compile the
7633         library
7634         * added target 'port-specific-objects-pic16' to handle the
7635         generated libraries and copy them into the build/ directory
7636         * added target 'clean-intermediate-pic16' to clean intermediate
7637         files into pic16 directory
7638         * in target 'installdirs' added line to create directory pic16 in
7639         the installation path
7640
7641         * device/include/Makefile.in (version 1.11): in target 'install'
7642         added lines to copy all header files to installation path,
7643         * in target 'installdirs' added line create directory for pic16
7644         headers in the installation path
7645
7646 2004-01-13 Klaus Flittner <klaus_flittner AT gmx.de>
7647
7648         * src/ds390/gen.c (genCall): fixed a double use of acc and b after
7649          a function call
7650
7651 2004-01-13 Bernhard Held <bernhard AT bernhardheld.de>
7652
7653         * configure,
7654         * device/lib/configure.in,
7655         * device/lib/configure: fixed for autoconf 2.57
7656
7657 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7658
7659         * src/z80/main.c (_parseOptions): fixed the portmode= command line
7660         option so that it actually works. Made it specific to the z80, since
7661         the gbz80 doesn't have these kinds of I/O ports.
7662
7663 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7664
7665         * device/include/z180.h,
7666         * device/lib/_memcpy.c,
7667         * device/lib/_memmove.c,
7668         * device/lib/_mulint.c,
7669         * device/lib/ser_ir.c,
7670         * device/lib/ser_ir_cts_rts.c,
7671         * device/lib/_strcmp.c,
7672         * device/lib/_strtok.c: fixed pragmas to non-deprecated form
7673         * src/z80/main.c (_process_pragma): add support for pragmas bank and
7674         portmode; added deprecation warning for bank= and protmode= forms.
7675         Also, guard against buffer overflow.
7676         * src/z80/gen.c (aopGet): generate better code for sfr banked read
7677
7678 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7679
7680         * src/hc08/main.c (_hc08_genAssemblerPreamble): fixed bug #875487. Also
7681         changed interrupt vector table generation to only emit declared vectors.
7682         * device/include/Makefile.in: added missing backslash
7683         * device/lib/pic16/Makefile.rules: add $(MODELFLAGS) to $(CFLAGS)
7684
7685 2004-01-13 Vangelis Rokas <vrokas AT otenet.gr>
7686
7687         Mainly changes to support compilation of the device libraries
7688         * src/pic16/device.c: stack is allocated via symbol and not
7689         via literal number. The symbol is placed in the corresponding
7690         position of the data ram
7691         * (pic16_dump_section): relocatable and absolute uninitialized
7692         data are now emitted in sorted order to reduce section naming,
7693         * src/pic16/ralloc.c (newReg): fixed bug with SFR's that
7694         weren't marked as being in the access bank,
7695
7696 2004-01-13 Vangelis Rokas <vrokas AT otenet.gr>
7697
7698         Added portion of GNU PIC Library under the directory
7699         device/include/pic16 and device/lib/pic16. These files
7700         contain the declarations of SFRs for the PIC18Fxx2 devices.
7701         The directory is initialized via configure from toplevel.
7702
7703 2004-01-12 Klaus Flittner <klaus_flittner AT gmx.de>
7704
7705         * src/ds390/gen.c (operandsEqu): fixed a little typo, that prevented
7706         the spilllocations to be compared correctly
7707
7708 2004-01-12 Bernhard Held <bernhard AT bernhardheld.de>
7709
7710         * src/SDCCast.c (decorateType): fixed bug introduced today
7711
7712 2004-01-12  Borut Razem <borut.razem AT siol.net>
7713
7714         * src/SDCC.lex, support/Util/SDCCerr.h, support/Util/SDCCerr.c,
7715         doc/sdccman.lyx: upper case pragmas are deprecated
7716
7717 2004-01-12 Bernhard Held <bernhard AT bernhardheld.de>
7718
7719         * src/SDCCast.c (decorateType): replacing 'ul > 0' by  '!ul' results
7720         in simpler and even better code
7721
7722 2004-01-11 Bernhard Held <bernhard AT bernhardheld.de>
7723
7724         * src/SDCCicode.c (operandOperation): fixed bug #874819
7725         * src/SDCCast.c (decorateType): fixed
7726         char foo (unsigned long ul) { return ul > 0; }
7727
7728 2004-01-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7729
7730         * doc/sdccman.lyx: Moved and added some sections, small changes
7731         all over. Telling LaTeX to be less strict with word spacing
7732         to better keep the right margin. Changed some notes about
7733         maintainance of the ports in section 3.2.1 - is it OK like this?
7734
7735 2004-01-11 Vangelis Rokas <vrokas AT otenet.gr>
7736
7737         SDCC source changes:
7738         * src/SDCCopt.c (cntToFcall, cnvToFloatCast, cnvFromFloatCast,
7739         convilong): modified to inform the pic16 port that builtin functions
7740         are external
7741
7742         PIC16 PORT specific changes:
7743         * src/pic16/device.c pic16_dump_equates() added,
7744         processor registers declared internally by the port are emitted in
7745         the translation as equates,
7746         * src/pic16/gen.c: inline code is passed unprocessed to the
7747         translation,
7748         * (pic16_popGetLit2): fnuction modified to take second operand as
7749         pCodeOp pointer and not as literal,
7750         * (popRegFromIdx): prefixed with pic16_,
7751         * (pic16_popCombine2): modified to receive already allocated pCode
7752         operands,
7753         * (pic16_pushpCodeOpReg, pic16_poppCodeOpReg): added
7754         * (genFunction): initializes local stack frame and pushes on stack
7755         all the registers used by this function,
7756         * (genEndFunction): restores all registers from stack and restores
7757         stack frame,
7758         * src/pic16/glue.c (pic16emitRegularMap): various changes and
7759         improvements,
7760         * (pic16glue): changed the program startup sequence,
7761         * added new dbName code 'A' for functions placed in absolute section
7762         * src/pic16/main.c: added function attribute _naked,
7763         * added pragma 'code' to place a fnuction at an absolute address,
7764         * added command line arguments --debug-ralloc and --pcode-verbose,
7765         * (_pic16_finiliseOptions): options.all_callee_saves is set by default
7766         * src/pic16/pcode.c (pic16_pBlockConvert2Absolute) added,
7767         * (pic16_newpCodeOpLit2): modified to take the second operand as
7768         pCodeOp pointer,
7769         * (pic16_printpBlock): modified to emit each function in a separate
7770         section,
7771         * (pic16_get_op): modified to use the gpasm modifiers LOW,HIGH and
7772         UPPER for immediate operands,
7773         * src/pic16/pcodepeeph.c: added peephole support for the LFSR
7774         instruction,
7775         * src/pic16/peeph.def: all peepholes with movff are commented out,
7776         because there is a problem in the pcode peep optimizer,
7777         * src/pic16/ralloc.c: the register allocator can now reuse local
7778         function symbols for another function. This saves register usage.
7779         * src/pic16/ralloc.h: added flag isLocal in structure regs,
7780
7781         Added file src/pic16/NOTES with information about program writing on
7782         the current port version.
7783
7784 2004-01-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7785
7786         * src/mcs51/peephole.def: added peepholes 177.c,d (redundant moves)
7787         and peephole 252 (array access)
7788
7789 2004-01-09  Borut Razem <borut.razem AT siol.net>
7790
7791         * src/SDCCmain.c : fixed #872250: -l command line defined library
7792           files are scanned before standard library files
7793
7794 2004-01-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7795
7796         * src/SDCCast.c (decorateType): fixed bug #874046
7797
7798 2004-01-09  Borut Razem <borut.razem AT siol.net>
7799
7800         * support/scripts/sdcc.nsi: remove previous installation
7801
7802 2004-01-09 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7803
7804         * src/SDCCglue.c (createInterruptVect): don't append 7(5) padding
7805         bytes for last interrupt vector (mcs51)
7806         * sdcc.spec: fixed typo
7807
7808 2004-01-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7809
7810         * src/mcs51/gen.c (genFunction, genEndFunction, genReceive, getTempRegs,
7811         gen51Code): more efficient parameter receive for --model-large
7812         ("bug" #845294)
7813
7814 2004-01-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7815
7816         * src/ds390/main.c,
7817         * src/z80/main.c: added missed needLinkerScript flags (more than
7818         one port structure defined in these file)
7819         * src/ds390/gen.c (aopForSym, aopOp, operandsEqu, aopOp3): fixed
7820         bug #795325
7821
7822 2004-01-08 Vangelis Rokas <vrokas AT otenet.gr>
7823
7824         * src/SDCCmain.c: removed various references to DEFAULT_PORT
7825         * src/port.h: added flag needLinkerScript in port->linker
7826         structure to inform whether to create a .lnk file or not,
7827         * src/avr/main.c,
7828         * src/ds390/main.c,
7829         * src/hc08/main.c,
7830         * src/mcs51/main.c,
7831         * src/pic/main.c,
7832         * src/pic16/main.c,
7833         * src/xa51/main.c,
7834         * src/z80/main.c: changed appropriately to configure
7835         needLinkerScript flag
7836         * src/pic/gen.c,
7837         * src/pic16/gen.c (genAddrOf): fixed bug #863624
7838         * src/pic/glue.c: added variable udata_section_name to
7839         override default uninitialized data segment definition for
7840         devices only with SHAREBANK memory (reported from Erik Epetrich)
7841         * (pic14emitOverlay): modified to emit a commented overlay segment
7842         directive when no overlay data exist
7843         * (picglue): modified to emit uninitialized data segment
7844         according to udata_section_name
7845         * src/pic/main.c (_pic14_parseOptions): added command line
7846         options --udata-section-name=[name] to override default
7847         udata definition name
7848         * modified _linkCmd and _asmCmd to include compiler passed
7849         arguments via -W option
7850         * src/pic16/main.c: added $l in _asmCmd, changed extension for
7851         object file from '.rel' to '.o' in port->linker structure,
7852         changed size of fptr from 2 to 3 in port structure
7853
7854 2004-01-07  Borut Razem <borut.razem AT siol.net>
7855
7856         * support/scripts/sdcc.nsi: update PATH
7857         * support/scripts/sdcc.ico: craeted
7858
7859 2004-01-07 Bernhard Held <bernhard AT bernhardheld.de>
7860
7861         * device/include/Makefile.in: fix install
7862         * doc/Makefile: fix install
7863
7864 2004-01-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7865
7866         * src/SDCCsymt.c (processFuncArgs): fixed superflous allocation noted
7867         in bug #860505
7868         * src/SDCCmem.c (printAllocInfoSeg, printAllocInfo): minor changes to
7869         how the function variable allocation summary is displayed; also
7870         include information about variables allocated to the overlay
7871         segment
7872
7873 2004-01-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7874
7875         * as/mcs51/lkmain.c: Help about -Y option
7876         * as/mcs51/lkarea.c: Fixed gcc warnings
7877
7878 2004-01-06 Bernhard Held <bernhard AT bernhardheld.de>
7879
7880         * src/SDCCval.c (valShift): changed from 16 to 32 bit shift count,
7881         fixed warning
7882         * support/valdiag/tests/overflow.c: added
7883         * src/SDCCast.c (decorateType),
7884         * src/SDCCicode.c (geniCodeLeftShift): added promotion to int for
7885         LEFT_OP (left shift)
7886
7887 2004-01-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7888
7889         * as/mcs51/lkmain.c: stack must be after data when option -Y is not used
7890         (default behaviour).
7891
7892 2004-01-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7893
7894         A python script to validate compiler diagnostic messages. It can be
7895         used to verify that sdcc complains about bad c source code and
7896         gives a good location of the error.
7897         * support/valdiag/Makefile,
7898         * support/valdiag/valdiag.py,
7899         * support/valdiag/tests/*
7900
7901 2004-01-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7902
7903         * src/SDCC.y (enum_specifier, enumerator_list, opt_assign_expr),
7904         * src/SDCCsymt.c (newEnumType),
7905         * src/SDCCsymt.h
7906         * support/Util/SDCCerr.c,
7907         * support/Util/SDCCerr.h: fixed bug #871258 and some other unreported
7908         enum related bugs.
7909         * support/regression/tests/enum.c: added test for enum values that
7910         require at least 2 bytes of storage.
7911
7912 2004-01-06 Vangelis Rokas <vrokas AT otenet.gr>
7913
7914         * src/common.h: added ifndef/define/endif macros
7915         around the header file.
7916         Bug reported from Jesus Calvino-Fraga
7917
7918 2004-01-06 Bernhard Held <bernhard AT bernhardheld.de>
7919
7920         * sdcc.spec: updated
7921         * device/include/Makefile.in: don't install CVS directories
7922         * device/lib/Makefile.in: added removal of CVS directories after install
7923         * doc/Makefile: fixed install, added local_icons
7924         * sim/ucsim/gui.src/Makefile.in: fixed an old typo
7925         * src/mcs51/gen.c (genRightShift): fixed bug #870788
7926         * src/ds390/gen.c (genRightShift): fixed bug #870788
7927         * src/SDCCast.c (decorateType): fixed bug #870781
7928
7929 2004-01-06 Vangelis Rokas <vrokas AT otenet.gr>
7930
7931         PIC16 port related changes:
7932         * device.c: removed pic16_finalMapping and pic16_finalMappingSize,
7933         added variable stackPos,
7934
7935         * gen.c: genCall, assignResultValue: added support for
7936         pushing/retrieving function parameters to/from stack,
7937         genFunction,genEndFunction: setup stack frame for the
7938         generated function,
7939         genAddrOf: will be changed according to bug 863624
7940
7941         * added files genutils.c and genutils.h which contain gen*
7942         debugged and optimised functions extracted from gen.c
7943
7944         * glue.c: added variable 'externs' which holds extern symbols,
7945         pic16emitRegularMap: is modified to properly handle relocatable
7946          symbols under the new scheme,
7947         pic16createInterruptVect: is modified
7948         pic16printPublics: is modified to emit 'global' assembler directives,
7949         added pic16_printExterns to print extern symbols,
7950         pic16glue: initializes stack/frame pointer in the beginning of
7951         the assembly output. Temporary hack, will be corrected later,
7952         because gplink yet does not support stack and SDCC does not
7953         yet support a type of crt0.o object to create the final binary.
7954
7955         * Removed many lines that contain 8051 legacy code.
7956         * The code is finally placed under a 'code' directive.
7957         * Added port specific options.
7958
7959         * _process_pragma: simplified since now we do not need *special*
7960         include file to define SFR registers. But a separate header
7961         will be needed. This will be developed later.
7962         * _pic16_parseOptions: added, parses port specific options:
7963         --pgen-banksel, --obanksel=, --pomit-config-words, --pomit-ivt,
7964         --pleave-reset-vector, --penable-stack, --pstack-model, --debug-xtra
7965         --preplace-udata-with=
7966
7967         * _pic16_setDefaultOptions: modified to initialize section names,
7968         but hack is temporarly out of order since it needs improvement.
7969         * _pic16_genAssemblerPreamble: configuration words are emitted by
7970         their address instead of their name. This part is incomplete and
7971         supports only the 18Fxx2 devices. Other devices will emit an error
7972         during assembly since they do not contain the same set of config
7973         registers
7974         * _pic16_genIVT: is modified,
7975
7976         * pcode.c: added definitions for some hardware registers that are needed
7977         for stack support
7978         * added flag is2LitOp and variable pci_magic in pCodeInstruction.
7979         All PCI entries are updated. Now LFSR is supported.
7980         * Removed pic16_pciTRIS is mentioned by mdubuc in source
7981         * added pic16_newpCodeOpLit2 to support instructions with
7982         two literal arguments
7983         * pic16_pCode2str: corrected code that emits assembler instructions
7984         with two literal operands and those that have an access bit modifier
7985         * genericPrint: now PC_ASMDIR pCodes, can emit a label if it exists,
7986         this fixes a bug which caused some labels to be lost, when an
7987         assembler directive was added, i.e. banksel,
7988         * pic16_FixRegisterBanking: improved logic that causes the insertion
7989         of bank switching,
7990         * InlineFunction: functions that are called once, are not any more
7991         inlined. This can be a port option in the future,
7992
7993         * pcode.h: added pCodeOpLit2 and added variable label in pCodeAsmDir
7994
7995         * ralloc.c: added pic16_rel_udata and pic16_fix_udata variables which
7996         hold the corresponding uninitialized symbols,
7997         * pic16_allocProcessorRegister: registers have explicit marked the
7998         accessBank field,
7999         * pic16_allocInternalRegister: registers are explicit marked as
8000         not used,
8001         * pic16_writeUsedRegs: pic16_dynDirectBitRegs was missing from the
8002         processing list, so bit registers were lost,
8003         *
8004
8005         * ralloc.h: added field 'accessBank' and original symbol operand
8006         in register definition,
8007         * removed the field isMapped from register definition,
8008
8009         ** Several functions have been removed from various sources:
8010         BanksUsedFlow2,BanksUsedFlow,FixBankFlow,InstructionRegBank,
8011         pic16_addMemRange,pic16_isREGinBank,pic16_dump_map,pic16_dump_cblock
8012         isSFR,validAddress,mapRegister,assignRegister,pic16_assignFixedRegisters
8013         pic16_assignRelocatableRegisters
8014
8015         ** others have been introduced:
8016         pic16_areRegsSame,pic16_dump_section,checkAddReg,pic16_groupRegistersInSection
8017         pic16_popGetLit2,pic16_popCombine2,pushw,pushaop
8018
8019 2004-01-05 Vangelis Rokas <vrokas AT otenet.gr>
8020
8021         * support/scripts/inc2h.pl: changed definition of BIT_AT
8022         to emit 'sbit at' instead of 'bit at'. This was a request.
8023
8024         PIC16 port related preliminary changes:
8025         * gen.c: prefixed function popRegFromString with
8026         pic16_ and all references to it corrected
8027         * pcode.c: all pic16_pc_* hardware registers prefixed
8028         with underscore (_),
8029         pic16_popCopyGPR2Bit(): function sets register wasUsed=1
8030         * ralloc.c: newReg(): when register is REG_SFR then
8031         set address to rIdx,
8032         pic16_allocProcessorRegister(): marks register wasUsed=0
8033         pic16_writeUsedRegs(): added a call to assign processor
8034         registers via pic16_assignFixedRegisters
8035
8036 2004-01-04  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8037
8038         * as/mcs51/aslink.h, as/mcs51/lkarea.c, as/mcs51/lkdata.c,
8039         as/mcs51/lkmain.c, as/mcs51/lkmem.c: 8051 linker can now pack
8040         variables in unused register banks.  Also the SSEG is placed
8041         wherever there is enough space for it, and IDATA can be anywhere
8042         in internal RAM.  For now compile using -Wl-Y[stack_size].
8043         The mem file is different for this option as well, since it
8044         makes no sense of talking about DSEG lenght.
8045
8046 2004-01-02 Vangelis Rokas <vrokas AT otenet.gr>
8047
8048         * src/SDCClrange.c: fixed bug 869095 that caused segfault
8049         in certain cases, e.g. when ROM assignment, patch provided
8050         from Albert den Haan.
8051
8052 2004-01-01 Bernhard Held <bernhard AT bernhardheld.de>
8053
8054         Many signedness and type propagation fixes:
8055         * src/SDCCicode.c: made geniCodeCast() static
8056         replaced SPEC_ by IS_ (cosmetic)
8057         (operandOperation): fixed div and mod operation
8058         (usualBinaryConversions): added support for promotion of char
8059         (geniCodeMultiply): replaced (unsigned long) by (TYPE_UDWORD)
8060         (geniCodeDivision): replaced (unsigned long) by (TYPE_UDWORD)
8061         (geniCodeAdd): an array index will stay unsigned, even if promoted
8062         from char to int
8063         (geniCodeArray): ditto
8064         * src/SDCCicode.h: made geniCodeCast() static: removed prototype
8065         * src/SDCCsymt.c (computeType): added more support for char;
8066         promotion of char is selectable by promoteCharToInt, fixed signedness
8067         for all cases
8068         (powof2): replaced (unsigned long) by (TYPE_UDWORD)
8069         * src/SDCCsymt.h (powof2): replaced (unsigned long) by (TYPE_UDWORD)
8070         * src/SDCCval (val*): replaced signedness calculation by
8071         computeType()
8072         rearranged if-branches (cosmetic)
8073         (valShift): added warning W_SHIFT_CHANGED
8074         (valCompare): fixed problem with different types
8075         * src/hc08/rallo.c (leastUsedLR): fixed gcc 3.3 warning
8076         * support/regression/tests/literalop.c: added many cases
8077         * support/regression/tests/ast_constant_folding.c: changed finally to
8078         'unsigned int'
8079         * .version: new year, new version: 2.3.7
8080         * src/SDCCmain.c (main): applied patch #866468
8081         * debugger/mcs51/sdcdb.c (parseCmdLine): added -k for ucsim, patch
8082         provided by Scott Bronson
8083         * doc/sdccman.lyx: updated documentation for sdcdb
8084         updated and added chapter tips
8085
8086 2004-01-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8087
8088         * src/SDCCsymt.h: missing from yesterday's commits
8089
8090 2003-12-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8091
8092         * src/SDCC.y (struct_or_union_specifier),
8093         * support/Util/SDCCerr.c,
8094         * support/Util/SDCCerr.h: verify that struct & union tags are used
8095         as declared.
8096
8097 2003-12-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8098
8099         * src/SDCCglobl.h: missing from yesterday's commits
8100
8101 2003-12-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8102
8103         * src/SDCC.y (external_definition, type_specifier2, sfr_reg_bit,
8104         sft_attributes, struct_declaration, parameter_declaration,
8105         type_name, start_block, declaration_list),
8106         * src/SDCC.lex (check_type): support redefinition of typedef names
8107
8108 2003-12-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8109
8110         * src/mcs51/gen.c (genPlus): added special handling for 256 byte
8111         aligned xdata arrays. Erik helped me with the if clause.
8112
8113 2003-12-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8114
8115         * device/lib/ds390/tinibios.c (CpuSpeed): suppress unreachable code
8116         warning
8117
8118 2003-12-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8119
8120         * src/SDCCast.h,
8121         * src/SDCCast.c (newAst_),
8122         * src/SDCCicode.h,
8123         * src/SDCCicode.c (ast2iCode, newiCode),
8124         * src/SDCCglobl.h,
8125         * src/SDCC.y (logical_and_expr, logical_or_expr, conditional_expr,
8126         expr, statement, expression_statement, selection_statement,
8127         iteration_statement, expr_opt, jump_statement): foundation for tracking
8128         sequence points
8129         * src/SDCCopt.c (killDeadCode): fixed bug #861580 (needs the sequence
8130         point code too)
8131
8132 2003-12-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8133
8134         * support/Util/SDCCerr.c,
8135         * src/SDCCast.h,
8136         * src/SDCCast.c (createCase, createDefault, decorateType),
8137         * src/SDCClabel.c (labelUnreach),
8138         * src/SDCC.y (labeled_statement, jump_statement): More improvements
8139         to error messages.
8140         * support/Util/SDCCerr.c (werrorfl): fixed a non-standard declaration
8141         (with thanks to Stas Sergeev)
8142         * device/include/time.h,
8143         * device/lib/time.c (CheckTime): suppress unreachable code warning
8144
8145 2003-12-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8146
8147         * src/SDCCast.c (createIvalCharPtr),
8148         * src/SDCCglue.c (printChar): fixed bug #862241 (an error in my fix for
8149         bug #753752)
8150         * support/regression/tests/nullstring.c: tests for these two bugs
8151
8152 2003-12-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8153
8154         * support/Util/SDCCerr.h,
8155         * support/Util/SDCCerr.c (E_NOT_ALLOWED),
8156         * src/SDCC.y (struct_declaration, struct_or_union_specifier): complain
8157         about storage class and 'at' used inside struct or union
8158         * src/SDCCBBlock.c (iCodeFromeBBlock),
8159         * src/SDCCcse.c (ifxOptimize),
8160         * src/SDCCglue.c (emitRegularMap, initPointer, printIvalStruct,
8161         printIvalArray, printiValFuncPtr, printIvalCharPtr, printIvalPtr,
8162         printIval, emitStaticSeg, emitOverlay),
8163         * src/SDCClabel.c (deleteIfx),
8164         * src/SDCCopt.c (replaceRegEqv, eBBlockFromiCode),
8165         * src/SDCCast.c (resolveSymbols, createIvalStruct, createIvalArray,
8166         gatherAutoInit, processParms),
8167         * support/Util/SDCCerr.h,
8168         * support/Util/SDCCerr.c (werrorfl): Support for better error location
8169         reporting for post-parse errors.
8170
8171 2003-12-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8172
8173         * src/SDCCval.c (valPlus, valMinus, valShift): fixed some problems with
8174         implicit casts via union; they don't work on big endian systems
8175         (possible fix for bug #861138)
8176
8177 2003-12-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8178
8179         (committed by Erik Petrich <epetrich AT ivorytower.norman.ok.us> on Frieder's behalf)
8180         * src/mcs51/main.c: fixed the fix for bug #737001
8181
8182 2003-12-15  Borut Razem <borut.razem AT siol.net>
8183
8184         * support/scripts/sdcc.nsi: updated for NSIS 2.0 beta 4
8185
8186 2003-12-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8187
8188         * support/makebin/makebin.c: put output in binary mode
8189
8190 2003-12-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8191
8192         * src/mcs51/main.c: fixed bug #737001 for the mcs51. SDCC clears
8193         xdata and data memory on startup. Set the environment variable
8194         SDCC_NOGENRAMCLEAR to disable this.
8195         * src/mcs51/peephole.def,
8196         * src/ds390/peephole.def: using the atomic test and clear instruction jbc
8197         (allows non-interrupt and interrupt code to safely compete for a resource
8198         without the non-interrupt code having to disable interrupts)
8199
8200 2003-12-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8201
8202         * src/SDCCicode.c (geniCodeAdd),
8203         * src/SDCCast.c (decorateType): fixed bug #857753 (need to be careful
8204         with valFromType if type might be a pointer and host is big endian).
8205         * src/SDCCast.c (decorateType): unary plus compatible with all arithmetic
8206         types, not just integer types.
8207         * src/SDCCsymt.c (addSymChain): clarified error message when symbol is
8208         multiply defined with mismatching "at" address.
8209
8210 2003-12-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8211
8212         * src/ds390/main.c (PORT tininative_port): fixed bug #858416
8213         * src/SDCCglue.c (printChar, printIvalChar, emitStaticSeg),
8214         * src/SDCCast.c (createIvalCharPtr, stringToSymbol): handle strings
8215         with embedded nulls (fixed bug #753752)
8216
8217 2003-12-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8218
8219         * src/mcs51/main.c(_mcs51_genRAMCLEAR): using r0 instead of r1/r2.
8220         Apparently this did not see much testing (endless loop)
8221
8222 2003-12-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8223
8224         * src/z80/ralloc.c: set DISABLE_PACK_HL = 1 as a temporary fix to bug #855165
8225
8226 2003-12-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8227
8228         * src/SDCCdebug.c (outputDebugSymbols, outputDebugStackSymbols, dumpSymInfo):
8229         gracefully handle NULL memmap pointers
8230
8231 2003-12-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8232
8233         * src/SDCCopt.c (killDeadCode): change iCode type to DUMMY_READ_VOLATILE
8234         instead of deleting the iCode when an operand is volatile
8235         * src/z80/gen.c (genDummyRead),
8236         * src/mcs51/gen.c (genDummyRead),
8237         * src/ds390/gen.c (genDummyRead),
8238         * src/hc08/gen.c (genDummyRead): handle operands in IC_LEFT and/or IC_RIGHT,
8239         not just IC_RIGHT
8240         * src/SDCCicode.c (geniCodeCall): fixed bug #851607
8241         * src/SDCC.y: fixed bug #850420
8242
8243 2003-12-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8244
8245         Applied z80 i/o port patch from Peter Townson and fixed some operators
8246         to better handle operands in A register.
8247         * device/include/z180.h
8248         * src/SDCC.y
8249         * src/SDCCglue.c
8250         * src/z80/gen.c
8251         * src/z80/gen.h
8252         * src/z80/main.c
8253         * src/z80/peeph-z80.def
8254         * src/z80/peeph.def
8255         * src/z80/z80.h
8256
8257 2003-12-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8258
8259         * src/SDCCsymt.c (addSymChain, compareTypeExact): fixed bug #838241 again
8260
8261 2003-12-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8262
8263         * device/lib/hc08/_mullong.c: Removed extra #endif
8264
8265 2003-12-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8266
8267         * sim/ucsim/hc08.src/inst.cc,
8268         * sim/ucsim/hc08.src/hc08mac.h: fixed some problems with CC flag bits and
8269         carries from x to h
8270         * src/hc08/gen.c (aopAdrStr): fixed problem with 16 bit immediate
8271         * src/hc08/gen.c (XAccRsh): fixed problem with right shift
8272         * device/include/stdarg.h: fixed varargs for hc08
8273         * device/lib/Makefile.in,
8274         * device/lib/hc08/Makefile,
8275         * device/lib/hc08/_mulint.c,
8276         * device/lib/hc08/_mullong.c: fixed some endian problems
8277
8278 2003-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8279
8280         * sdcc/src/mcs51/gen.c (genMultOneByte): help peephole 105
8281         * sdcc/src/mcs51/peeph.def: added peephole 186.e array access in code space
8282         * device/lib/_gptrget.c,
8283         * device/lib/_gptrput.c: P2 not used any more (related to #850747, #785979)
8284
8285 2003-11-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8286
8287         * src/SDCClrange.c (findNextUseSym, rlivePoint): fixed bug #849795
8288         * src/SDCCast.c (astErrors): fixed bug #846007
8289         * src/SDCCsymt.c (checkFunction): fixed follow-up bug on bug #846007
8290
8291 2003-11-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8292
8293         * src/SDCCast.c (decorateType): disabled a transformation I added in
8294         revision 1.188 (access to fields of a structure at an absolute address);
8295         it breaks with bitfields, extern declarations, and gcse analysis.
8296         * src/SDCCopt.c (isLocalWithoutDef): if ADDRESS_OF applied to a symbol, it
8297         could be assigned through a pointer, so don't complain.
8298         * src/SDCCast.c (astErrors),
8299         * src/SDCCast.h,
8300         * src/SDCCglue.c (emitRegularMap): fixed bug #847813
8301
8302 2003-11-26 Vangelis Rokas <vrokas AT otenet.gr>
8303
8304         * src/pic16/main.c (_pic16_genIVT): fixed interrupt vector table
8305         * src/pic16/main.c (_pic16_genAssemblerPreamble): re-enabled the
8306         output of __config directives, since gpasm now supports them
8307         * src/pic16/main.c (_pic16_finaliseOptions): define MCU
8308         pre-processor macro, i.e. -DMCU=p18f452
8309         * src/pic16/ralloc.c: renamed packRegisters to pic16_packRegisters,
8310         and modified to handle 'cast' icode similarly to '=' icode
8311         * src/pic16/device.h (typedef struct PIC_device): added field
8312         'extMIface' to indicate that chip has external memory interface
8313         * src/pic16/device.c: added chips 18F248, 18F258, 18F448, 18F458,
8314         18F6520, 18F6620, 18F6680, 18F6720, 18F8520, 18F8620, 18F8680,
8315         18F8720
8316
8317 2003-11-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8318
8319         * src/SDCC.y (pointer): fixed bug #846006
8320         * support/Util/SDCCerr.c: made W_PTR_TYPE_INVALID message clearer
8321         * src/SDCCast.c (decorateType): fixed bug #846009
8322         * src/ds390/peeph.def,
8323         * src/ds390/gen.c (genAnd, genOr),
8324         * src/mcs51/peeph.def,
8325         * src/mcs51/gen.c (genAnd, genOr): fixed bug #846777
8326
8327 2003-11-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8328
8329         Fixed several common-sub-expression bugs (#772861, #768380, & #755323)
8330         * src/SDCCdflow.c
8331         * src/SDCCcse.c
8332         * src/SDCCcse.h
8333         * src/SDCCBBlock.h
8334         * src/SDCCBBlock.c
8335
8336 2003-11-23 Klaus Flittner <klaus_flittner AT gmx.de>
8337
8338         fixed bug #845089
8339         * src/SDCCbitv.h,
8340         * src/SDCCbitv.c: added function to free a bitvector
8341         * src/SDCClrange.h,
8342         * src/SDCClrange.c: added function to recompute the liveranges
8343         * src/avr/ralloc.c,
8344         * src/ds390/ralloc.c,
8345         * src/hc08/ralloc.c,
8346         * src/mcs51/ralloc.c,
8347         * src/pic/ralloc.c,
8348         * src/pic16/ralloc.c,
8349         * src/xa51/ralloc.c,
8350         * src/z80/ralloc.c: recompute the liveranges after register packing
8351
8352 2003-11-21 Klaus Flittner <klaus_flittner AT gmx.de>
8353
8354         * src/SDCCloop.c (newInduction): fixed bug #845630
8355
8356 2003-11-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8357
8358         * src/SDCCsymt.c (compareTypesExact): disabled debugging output
8359         inadvertantly left behind from my 2003-11-12 change
8360
8361 2003-11-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8362
8363         Updated headers I neglected to commit yesterday.
8364         * src/SDCClrange.h,
8365         * src/SDCCicode.h
8366
8367 2003-11-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8368
8369         * src/SDCCcse.c (algebraicOpts): fixed bug #773153
8370         * src/SDCClrange.c (rlivePoint): need to mark IC_RESULT used if POINTER_SET op
8371         * src/SDCCopt.c (eBBlockFromiCode),
8372         * src/SDCClrange.c (hashiCodeKeys, sequenceiCode, computeLiveRanges): seperated
8373         the creation of the key hash table from the sequencing so it can be used
8374         earlier (for some GCSE bug fixes still pending)
8375
8376 2003-11-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8377
8378         * src/mcs51/gen.c (genPlus): generate shortcut for adding 0xab00
8379         * support/regression/tests/addsub.c: testing genPlus shortcut
8380
8381 2003-11-15  Borut Razem <borut.razem AT siol.net>
8382
8383         * src/SDCCmain.c: fixed bug #841645: -MM command line option passed to sdcpp
8384
8385 2003-11-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8386
8387         * src/SDCCcse.c (cseBBlock): fixed bug #527779
8388         * src/SDCCcse.c (deleteGetPointers): rewrote so that the set
8389         ordering is immaterial.
8390         * src/SDCCdflow.c (mergeInExprs): fixed bug #587536
8391
8392 2003-11-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8393
8394         * src/SDCCicode.c (geniCodeAddressOf): fixed part of bug #840381
8395         * src/SDCCopt.c (replaceRegEqv, isLocalWithoutDef): fixed other part
8396         (SIGSEV) of bug #840381
8397         * src/SDCCmain.c (linkEdit, assemble): fixed bug #841606 (don't
8398         unlink new file before rename if new and old filenames are the same)
8399
8400 2003-11-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8401
8402         * src/mcs51/main.c: started fixing bug #737001 (SDCC not clearing
8403         uninitialized variables) for the mcs51. Set environment variable
8404         SDCC_GENRAMCLEAR to test.
8405         xdata initialization slightly shorter
8406
8407 2003-11-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8408
8409         * src/SDCCsymt.h,
8410         * src/SDCCsymt.c (addSymTypeChain, compareTypesExact): fixed bugs
8411         #838241 & 780691 (basicly the same bug)
8412         * src/SDCCBBlock.c (iCode2eBBlock): fixed bug #840148
8413         * src/SDCCBBlock.c (iCodeFromeBBlock): fixed bug #840162
8414
8415 2003-11-11 Bernhard Held <bernhard AT bernhardheld.de>
8416
8417         * src/SDCCmain.c (linkEdit): "fix" #834252
8418
8419 2003-11-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8420
8421         * src/SDCCast.c (removePostIncDecOps, removePreIncDecOps),
8422         * src/SDCCast.h,
8423         * src/SDCC.y: fixed bug #819403
8424
8425 2003-11-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8426
8427         * support/regression/fwk/lib/testfwk.c: printn is recursive and thus needs
8428         the reentrant attribute.
8429         * src/hc08/gen.c (genPackBits): added missing stack readjustment
8430         * sim/ucsim/hc08.src/inst.cc (inst_mov): fixed bugs with mov instruction
8431         simulation
8432         * src/SDCCast.c (decorateType): fixed bug with storage class not being
8433         updated during pointer dereference; f.e. ~(((char *)1)*) was being
8434         erroneously reduced to a literal.
8435         * src/hc08/ralloc.c (packRegisters, rematStr),
8436         * src/hc08/gen.c (aopForRemat): allow literals to be rematerialized in
8437         some cases
8438
8439 2003-11-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8440
8441         * src/mcs51/main.c: fixed bug #838385. Thanks to Josef Pavlik for finding and fixing
8442         * doc/sdccman.lyx: changed from 'article' to 'book'
8443         * doc/Makefile: readded test_suite_spec and cdbfileformat
8444
8445 2003-11-08 Bernhard Held <bernhard AT bernhardheld.de>
8446
8447         * device/include/stdlib.h: include malloc.h to comply with ANSI
8448         * support/regression/tests/malloc.c: include stdlib.h instead of malloc.h
8449
8450 2003-11-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8451
8452         * doc/Makefile: sdccman.pdf should build with correct references (more info in commit msg)
8453         * doc/clean.mk: also remove *.out files
8454         * doc/sdccman.lyx: some additions, larger top/bottom margins
8455
8456 2003-11-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8457
8458         * src/SDCC.y: fixed bug #837365
8459         * support/regression/tests/bitopcse.c
8460         * src/hc08/gen.c (genPointerGet): Don't assume pointer operand is
8461         a symbol (might be valop instead)
8462         * device/lib/Makefile.in: added errno.c to HC08SOURCES
8463         * device/lib/clean.mk: added hc08 to the cleaning list
8464
8465 2003-11-04  Borut Razem <borut.razem AT siol.net>
8466
8467         * configure, configure.in, sdcc_vc_in.h, sdcconf_in.h: reverted changes,
8468           made 2003-11-04
8469         * support/Util/NewAlloc.c, as/hc08/lklibr.c, as/mcs51/lklibr.c,
8470           as/z80/aslist.c, as/z80/assym.c: removed inclusion of nonstandard malloc.h;
8471           malloc is declared in standard stdlib.h
8472
8473 2003-11-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8474
8475         * device/lib/hc08/Makefile: need to clean .rel not .o files
8476         * src/hc08/gen.c (genDjnz): can't use djnz with extended addressing mode
8477
8478 2003-11-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8479
8480         * src/port.h,
8481         * src/hc08/main.c,
8482         * src/mcs51/main.c,
8483         * src/ds390/main.c,
8484         * src/z80/main.c,
8485         * src/avr/main.c,
8486         * src/pic/main.c,
8487         * src/pic16/main.c,
8488         * src/xa51/main.c: added hasExtBitOp & oclsExpense functions to ports
8489         * src/SDCCicode.c: changed several IS_FARSPACE tests to isOclsExpensive
8490         tests (which uses the port's oclsExpense function)
8491         * src/SDCC.y,
8492         * src/SDCCast.c,
8493         * src/SDCCicode.c,
8494         * src/hc08/gen.c,
8495         * src/ds390/gen.c,
8496         * src/mcs51/gen.c: added support for the SWAP iCode (RFE #834167)
8497
8498 2003-11-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8499
8500         * src/SDCCcse.c (ifxOptimize),
8501         * src/SDCClabel.c (labelIfx, deleteIfx): When the condition to
8502         an IFX iCode is volatile, convert to DUMMY_READ_VOLATILE instead
8503         deleting the IFX iCode.
8504         * src/hc08/ralloc.c: reduced unneeded slocs
8505         * src/hc08/gen.c: fixed bug in asmopToBoolean
8506
8507 2003-11-04  Borut Razem <borut.razem AT siol.net>
8508
8509         * configure, configure.in, sdcc_vc_in.h, sdcconf_in.h,
8510           support/Util/NewAlloc.c, as/hc08/lklibr.c, as/mcs51/lklibr.c,
8511           as/z80/aslist.c, as/z80/assym.c: decision to include malloc.h
8512           transferred to configure
8513
8514 2003-11-03 Bernhard Held <bernhard AT bernhardheld.de>
8515
8516         Use headers defined in the C[++] standards:
8517         * sim/ucsim/gui.src/serio.src/fileio.cc
8518         * sim/ucsim/gui.src/serio.src/frontend.cc
8519         * sim/ucsim/gui.src/serio.src/main.cc
8520         * sim/ucsim/gui.src/serio.src/posix_signal.cc
8521         * support/Util/NewAlloc.c
8522         * as/hc08/lklibr.c
8523         * as/mcs51/lklibr.c
8524         * as/z80/aslist.c
8525         * as/z80/assym.c
8526
8527 2003-11-03  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8528
8529         * Added MSVC projects for hc08 assembler and linker:
8530         all.dsp, config.dsp, sdcc.dsw, /as/hc08/as_hc08.dsp,
8531         /as/hc08/link_hc08.dsp
8532
8533 2003-11-03 Martin Helmling <Martin.Helmling AT octo-soft.de>
8534
8535         * debugger/mcs51/cmd.c: allows filename starting with digit(+ some debug)
8536
8537 2003-11-02 Bernhard Held <bernhard AT bernhardheld.de>
8538
8539         * src/SDCCmain.c (linkEdit): "fixed" again bug #833605
8540
8541 2003-11-01 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8542
8543         * src/mcs51/main.c: xdata initialization is 13 bytes shorter now
8544
8545 2003-10-31  Borut Razem <borut.razem AT siol.net>
8546
8547         * support/cpp2/cpplib.h,
8548           support/cpp2/cpplib.c,
8549           support/cpp2/cpplex.c,
8550           support/cpp2/cppinit.c: introduced #pragma preproc_asm [ + | - ]
8551           to switch _asm block preprocessing on / off. Default is
8552           #pragma preproc_asm +
8553
8554 2003-10-31  Borut Razem <borut.razem AT siol.net>
8555
8556         * support/cpp2/cpplex.c: Fixed _WIN32 problem with CR-CR-LF sequences
8557           when outputting comment blocks (when executed with -C option) and
8558           _asm (SDCPP specific) blocks
8559
8560 2003-10-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8561
8562         * as/hc08/lkrloc.c (relr): Fixed ihx output, fixed lastAreaIndex warning
8563
8564 2003-10-31 Klaus Flittner <klaus_flittner AT gmx.de>
8565
8566         * src/SDCCcse.c (updateSpillLocation): fixed bug #808027
8567
8568 2003-10-31 Bernhard Held <bernhard AT bernhardheld.de>
8569
8570         * src/SDCCmain.c (linkEdit): "fixed" bug #833605
8571         * src/SDCCast.c (decorateType): fixed bug #832664
8572
8573 2003-10-31  Borut Razem <borut.razem AT siol.net>
8574
8575         * support/cpp2/cpplex.c: fixed for SDCPP:
8576           comments(when executed with -C option) and _asm blocks
8577           were included even if they where in skipped #if block.
8578           Applied solution from GCC cpp 3.3.2
8579
8580 2003-10-31  Borut Razem <borut.razem AT siol.net>
8581
8582         * src/SDCC.lex: sdcc now understands both formats:
8583           '# <line_number> <file_name>' and
8584           '#line <line_number> <file_name>'
8585         * support/cpp2/cppmain.c: sdcpp now generates the standard
8586           '# <line_number> <file_name>' instead of former
8587           '#line <line_number> <file_name>'
8588
8589 2003-10-30  Borut Razem <borut.razem AT siol.net>
8590
8591         * support/cpp2/cpphash.h,
8592         * support/cpp2/cpplib.h
8593         * support/cpp2/cpplex.c,
8594         * support/cpp2/cppmain.c,
8595         * support/cpp2/cppinit.c: fixed bug #828015 - Syntax variation for _asm character constants
8596
8597 2003-10-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8598
8599         Fixed a number of problems revealed by bug #827883.
8600         * src/SDCCloop.c (loopInvariants): Spill location of the
8601         result operand should be recomputed if extracted from
8602         a loop. Also, don't extract assignments of an iTemp
8603         from a literal.
8604         * src/SDCCast.c (isConformingBody): loop reversal should
8605         not occur if the control variable is involved with a
8606         relational operator.
8607
8608 2003-10-28 Bernhard Held <bernhard AT bernhardheld.de>
8609
8610         * .version: bumped to 2.3.6 to reflect the big improvements
8611         made by Erik and Klaus. Thanks!
8612
8613 2003-10-28 Klaus Flittner <klaus_flittner AT gmx.de>
8614
8615         Replaced the livrange code.
8616         * src/SDCClrange.c: added new LR code
8617         * src/SDCCloop.c,
8618         * src/SDCCBBlock.h: removed remainig parts from old LR code
8619         * src/ds390/ralloc.c,
8620         * src/ds390/gen.c: minor fixes to make it work with new code
8621
8622 2003-10-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8623
8624         * as/hc08/asm.h,
8625         * as/hc08/lkrloc.c,
8626         * src/hc08/gen.c,
8627         * src/hc08/ralloc.c: Fix various warnings related to the hc08
8628         * src/SDCCicode.c (geniCodePreInc, geniCodePreDec): Fixed bug #829717
8629         (tweaked fix for bug #818696)
8630
8631 2003-10-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8632
8633         * src/z80/ralloc.c (joinPushes): Fixed bug #828742
8634
8635 2003-10-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8636
8637         * src/SDCCmain.c,
8638         * sdccconf_in.h: Fixed bug #828387 (--disable-hc08-port didn't work)
8639         * src/mcs51/gen.c (gencjneshort),
8640         * src/ds390/gen.c (gencjneshort): Made comparison with AOP_IMMD operand
8641         more efficient (per Scott Bronson's suggestion)
8642
8643 2003-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8644
8645         Extended the semantics of the critical keyword to include
8646         individual statements. See RFE #827755 and #799831
8647         * src/SDCC.y
8648         * src/SDCCicode.c
8649         * src/SDCCopt.c
8650         * src/SDCCast.c
8651         * support/Util/SDCCerr.c
8652         * support/Util/SDCCerr.h
8653         * src/mcs51/gen.c
8654         * src/ds390/gen.c
8655         * src/hc08/gen.c
8656
8657 2003-10-19  Borut Razem <borut.razem AT siol.net>
8658
8659         * src/SDCC.lex: fixed bug #825944 - defined yytext_ptr to make it compile with flex 2.5.31
8660
8661 2003-10-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8662
8663         * src/SDCCicode.c (geniCodePreInc, geniCodePreDec, ast2iCode):
8664         Fixed bug #818696
8665         * src/SDCCast.c (ast_print): Fixed --dumptree so that preincrement
8666         and predecrement operand is displayed
8667
8668 2003-10-13 Bernhard Held <bernhard AT bernhardheld.de>
8669
8670         * src/SDCCval.c (valMinus): fixed bug #826041
8671
8672 2003-10-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8673
8674         Some hc08 related updates that I missed earlier
8675         * sim/ucsim/stypes.h
8676         * support/regression/ports/hc08/spec.mk
8677
8678 2003-10-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8679
8680         New target "hc08" for the Motorola 68hc08 family of micros
8681
8682         * configure
8683         * configure.in
8684         * Makefile
8685         * src/hc08/*
8686         * src/SDCCmain.c
8687         * src/port.h
8688         * sim/ucsim/hc08.src/*
8689         * sim/ucsim/configure.in
8690         * src/ucsim/configure
8691         * sim/ucsim/packages_in.mk
8692         * as/hc08/*
8693         * as/Makefile
8694         * device/include/mc68hc908qy.h
8695         * device/lib/hc08/*
8696         * device/lib/Makefile.in
8697         * support/regression/ports/hc08/*
8698         * support/regression/Makefile
8699
8700 2003-10-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8701
8702         * src/z80/gen.c: fixed bug revealed by ast_constant_folding.c
8703         regression test
8704         * src/ds390/gen.c (genCast): fixed bug #821957
8705
8706 2003-10-13 Bernhard Held <bernhard AT bernhardheld.de>
8707
8708         * device/lib/logf.c: "fixed" overlay bug
8709         * support/regression/ports/host/spec.mk: added m library
8710         * support/regression/ports/mcs51-stack-auto/spec.mk: added float funcs
8711         * support/regression/tests/float_trans: added (for Eric)
8712
8713 2003-10-12 Bernhard Held <bernhard AT bernhardheld.de>
8714
8715         * src/mcs51/gen.c (genCpl): fixed bug
8716         http://sf.net/mailarchive/message.php?msg_id=6263915
8717
8718 2003-10-10 Bernhard Held <bernhard AT bernhardheld.de>
8719
8720         * src/SDCCast.c (decorateType): added extended constant folding
8721         * src/SDCCsymt.c (computeType): cleanup
8722         * src/SDCCval.c (valShift): minor optimization
8723         * support/regression/tests/ast_constant_folding.c: added
8724
8725 2003-10-09  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8726
8727         * src/SDCCmain.c: removed some unintended changes
8728
8729 2003-10-09  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8730
8731         * src/SDCCmain.c (setParseWithComma): fixed bug #816685
8732         * src/z80/gen.c: fixed part of bug #817589
8733         * src/SDCCsymt.c (checkFunction): fixed bug #817895
8734
8735 2003-10-08 Bernhard Held <bernhard AT bernhardheld.de>
8736
8737         Replaced cast (void **) with (void *) to avoid gcc 3 warning:
8738         * src/SDCCcflow.c
8739         * src/SDCCcse.c
8740         * src/SDCCdflow.c
8741         * src/SDCClabel.c
8742         * src/SDCClrange.c
8743         * src/SDCCmem.c
8744         * src/SDCCopt.c
8745         * src/SDCCpeeph.c
8746         * src/SDCCset.c
8747         * src/avr/ralloc.c
8748         * src/ds390/ralloc.c
8749         * src/izt/ralloc.c
8750         * src/mcs51/ralloc.c
8751         * src/pic/ralloc.c
8752         * src/pic16/ralloc.c
8753         * src/xa51/ralloc.c
8754         * src/z80/ralloc.c
8755         * src/z80/gen.c: removed unused label "release:"
8756
8757 2003-10-06  Borut Razem <borut.razem AT siol.net>
8758
8759         * src/SDCC.lex: removed definition of unused variables
8760           save_optimize and save_options
8761
8762 2003-10-06 Bernhard Held <bernhard AT bernhardheld.de>
8763
8764         * clean.mk: removed '=' in "-maxdepth=1"
8765         * src/SDCCloop.c: replace LRKLAUS with SDCC_LRKLAUS
8766         * src/SDCClrange.c: replace LRKLAUS with SDCC_LRKLAUS
8767
8768 2003-10-06  Borut Razem <borut.razem AT siol.net>
8769
8770         * src/SDCC.lex, src/SDCC.lex: use dbuf for "_asm" definitions;
8771           my_unput() replaced by unput()
8772
8773 2003-10-05 Bernhard Held <bernhard AT bernhardheld.de>
8774
8775         * src/SDCCloop.c (assignmentsToSym, loopInduction): cast argument of
8776         setToNull() to (void *) to avoid gcc3.x's warning: "dereferencing
8777         type-punned pointer will break strict-aliasing rules"
8778         Old LR behaviour is again default; Klaus' LR can be choosen by
8779         defining the environment variable LRKLAUS
8780         * src/SDCCBBlock.h
8781         * src/SDCCloop.c
8782         * src/SDCClrange.c
8783         * src/ds390/ralloc.c (spillThis): applied Klaus' patch
8784         * clean.mk: fixed removal of files in bin/CVS/
8785         * device/lib/clean.mk: fixed removal of directories small and large
8786         * support/Util/SDCCerr.c: changed W_INT_OVL to ERROR_LEVEL_PEDANTIC
8787         * src/SDCCicode.c,
8788         * src/SDCCval.c: removed superflous test for pedantic
8789
8790 2003-10-05  Borut Razem <borut.razem AT siol.net>
8791
8792         * src/SDCC.lex, support/Util/SDCCerr.c, sdcc/support/Util/SDCCerr.h:
8793           Fixed bug #816692: introduced new ERROR_LEVEL_PEDANTIC warning
8794           message "unmatched #pragma SAVE and #pragma RESTORE"
8795
8796 2003-10-04  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8797
8798         * doc/sdccman.lyx: various additions and updates (interrupts, inline
8799           assembly, critical functions, atomic, nojtbound)
8800
8801 2003-10-04 Bernhard Held <bernhard AT bernhardheld.de>
8802
8803         Applied liferange patch from Klaus Flittner <klaus_flittner AT gmx.de>
8804         * src/SDCCBBlock.h
8805         * src/SDCCloop.c
8806         * src/SDCCloop.h
8807         * src/SDCClrange.c
8808
8809 2003-10-03  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8810
8811         * src/z80/gen.h,
8812         * src/z80/gen.c (aopOp, aopGet, aopPut, genDummyRead),
8813         * src/mcs51/gen.h
8814         * src/mcs51/gen.c (aopOp, aopGet, aopPut, genDummyRead),
8815         * src/ds390/gen.h
8816         * src/ds390/gen.c (aopOp, aopGet, aopPut, genDummyRead),
8817         * src/SDCCicode.c (ast2iCode, geniCodeDummyRead): Fixed bug #663539
8818         * src/SDCCopt.c (killDeadCode): Fixed bugs #663539 & #816705
8819
8820 2003-10-02  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8821
8822         * src/z80/gen.c (genRet): fixed bug #524753
8823         * src/z80/gen.c (genCast): fixed internal error on cast from
8824         pointer to long
8825         * src/z80/gen.c (_saveRegsForCall, emitCall): adapted Johan's
8826         fix for bug #477835 to the z80
8827         * src/z80/gen.c (genZ80code, _vemit2, _emit2): added support
8828         for tracking iCodes in the peephole optimizer for z80
8829
8830 2003-10-01  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8831
8832         * src/SDCCicode.c (geniCodeJumpTable, geniCodeSwitch): fixed
8833         the other part of bug #814548
8834         * src/SDCCpeeph.c (labelInRange): fixed bug #814558
8835
8836 2003-09-30  Bernhard Held <bernhard AT bernhardheld.de>
8837
8838         * src/SDCCcse.c: fixed part of bug #814548
8839
8840 2003-09-28  Borut Razem <borut.razem AT siol.net>
8841
8842         * src/asm.c: rewrite of printILine() to use temporary file instead
8843           a pipe
8844         * src/xa51/main.c: commented out declaration of int rewinds
8845
8846 2003-09-27  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8847
8848         * src/SDCCicode.c (geniCodeJumpTable): Fixed bug #813206
8849
8850 2003-09-26  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8851
8852         * src/SDCCdflow.c (computeDataFlow): Fixed bug #810746
8853         * src/asm.c (printILine): Fixed bug #811015
8854
8855 2003-09-22  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8856
8857         *link/z80/lklibr.c, as/mcs51/lklibr.c: Improved memory allocation and
8858         freeing.
8859
8860 2003-09-21  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8861
8862         * src/z80/gen.c (setupToPreserveCarry): Fixed bug #796955
8863         * src/z80/gen.c (setupPair, genMovePairPair): Fixed setupPair
8864         to correctly handle general case of AOP_PAIRPTR
8865         * src/z80/gen.c (aopGet, aopPut): Generalized AOP_PAIRPTR handling
8866
8867 2003-09-21  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8868
8869         * src/mcs51/ralloc.c (fillGaps),
8870         * src/ds390/ralloc.c (fillGaps): fixed bug #810093 (yet another
8871         register positioning bug)
8872
8873 2003-09-21  Bernhard Held <bernhard AT bernhardheld.de>
8874
8875         * device/lib/_fsdiv.c: replaced (1<<31) by (1ul<<31)
8876
8877 2003-09-19  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8878
8879         * src/mcs51/gen.c (loadDptrFromOperand, genFarPointerGet,
8880         genCodePointerGet, genGenPointerGet, genFarPointerSet,
8881         genGenPointerSet): handle AOP_DPTR correctly when loading dptr
8882         (ralloc doesn't intentionally do this now, but perhaps later)
8883         * src/mcs51/ralloc.c (serialRegAssign, fillGaps),
8884         * src/ds390/ralloc.c (serialRegAssign, fillGaps): fixed some
8885         register positioning bugs (Fixed bug #762602 and #795325)
8886         * src/SDCCicode.c (geniCodeDerefPtr): Track output class correctly
8887         (Fixed bug #808779)
8888         * src/z80/gen.c: increased _vemit2's buffer[] to handle long
8889         lines that --i-code-in-asm generates
8890
8891 2003-09-18  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8892
8893         *link/z80/lklibr.c, as/mcs51/lklibr.c: Fixed Linux segfaults when
8894         trying to fclose a FILE* that was already closed.
8895
8896 2003-09-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8897
8898         * src/SDCCsymt.c (structElemType): fixed bug #808291 (members
8899         of const struct should be treated as if const themselves)
8900
8901 2003-09-18  Bernhard Held <bernhard AT bernhardheld.de>
8902
8903         * src/SDCCval.c (valPlus, valMinus): fixed bug #808337
8904
8905 2003-07-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8906
8907         * support/librarian/sdcclib.c: Generate correct offsets for libraries with
8908         Unix (/n) and DOS (/r/n) line terminations.
8909
8910 2003-09-17  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8911
8912         * src/SDCCopt.c (cnvFromFloatCast, cnvToFloatCast): fixed
8913         bug #613775
8914
8915 2003-09-16  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8916
8917         * src/mcs51/gen.c (genFunction, genEndFunction),
8918         * src/ds390/gen.c (genFunction, genEndFunction): Moved save
8919         and restore of EA so that stack offsets to parameters are
8920         correct when using both critical and reentrant/stack-auto.
8921         * src/z80/gen.c (aopOp): removed erroneous assertion about sloc
8922         size (can be triggered in error if sloc is shared between
8923         different sized objects)
8924         * device/include/float.h: fixed macros to explicitly use
8925         unsigned long where needed
8926
8927 2003-09-15  Bernhard Held <bernhard AT bernhardheld.de>
8928
8929         Feature req. 799831: added code to allow nesting of critical functions
8930         * src/mcs51/gen.c (genFunction, genEndFunction)
8931         * src/ds390/gen.c (genFunction, genEndFunction)
8932
8933 2003-09-14  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8934
8935         * src/SDCCsymt.c (sclsFromPtr),
8936         * src/SDCCsymt.h,
8937         * src/SDCCast.c (decorateType): fixed bug #462971. Also, better
8938         support for standard C idiom of memory mapped variables; for
8939         example, *((xdata int*)0x1234) = 1 is now internally equivalent
8940         to xdata int at 0x1234 tempvar = 1.
8941         * sim/ucsim/z80.src/inst_xd.cc: fixed bug #805483 with patch
8942         provided by Akiya ISHIDA
8943
8944 2003-09-13  Bernhard Held <bernhard AT bernhardheld.de>
8945
8946         * src/SDCCval.c (cheapestVal): reenabled to reduce int to char
8947         * src/SDCCval.c (constVal): added reduction from int to char
8948         * src/SDCCval.c (valMult, valDiv): fixed sign handling
8949         * src/SDCCval.c (valShift): fixed after change of cheapestVal()
8950         * src/SDCCval.c (valCompare): fixed EQ_OP and NE_OP; they have
8951         to ignore the sign
8952         * support/regression/tests/shifts.c: fixed
8953
8954 2003-09-13  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8955
8956         * src/z80/gen.c (genXor): Fixed bug #805445
8957
8958 2003-09-12  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8959
8960         Fixed bug #621531 (const & volatile confusion in the type chain).
8961         DCL_PTR_CONST, DCL_PTR_VOLATILE, & IS_PTR_CONST now exclusively
8962         refer to the const or volatile state of the pointer itself.
8963
8964         * src/SDCCast.c
8965         * src/SDCCglue.c
8966         * src/SDCCicode.c
8967         * src/SDCCsymt.c
8968         * src/SDCCval.c
8969         * src/SDCC.y
8970         * src/SDCCsymt.h
8971         * src/pic/gen.c
8972         * src/pic/ralloc.c
8973         * src/pic16/gen.c
8974         * src/pic16/ralloc.c
8975         * support/regression/tests/const.c
8976
8977 2003-09-10  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8978
8979         When checking for duplicated modules, use absolute paths
8980         instead of relative paths.  Files changed:
8981
8982         * as/mcs51/lklib.c
8983         * link/z80/lklib.c
8984
8985 2003-09-09  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8986
8987         * src/SDCCicode.c (geniCodeLogic): fixed bug #797572
8988
8989 2003-09-07  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8990
8991         * device/include/string.h: added size_t typedef, changed
8992         prototypes to use size_t, eliminated separate reentrant and
8993         non-reentrant declarations, added _memmove declaration
8994         * device/lib/_memcpy.c: changed to use size_t instead of int,
8995         changed /4 to >>2 to avoid division library call
8996         * device/lib/_memcmp.c,
8997         * device/lib/_memset.c,
8998         * device/lib/_strncat.c,
8999         * device/lib/_strncpy.c,
9000         * device/lib/_strncmp.c: changed to use size_t instead of int
9001         * device/lib/_memmove.c: new file (fixed bug #772294)
9002         * device/lib/Makefile.in: added _memmove.c
9003         * device/lib/z80/asm_strings.s: fixed bug #772290
9004         * support/regression/tests/bitfields.c: attempt to fix host assertion
9005         failure on amd64-unknown-linux2.2
9006
9007 2003-09-06  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9008
9009         * src/z80/gen.c (aopPut, spillPairReg): fixed bug #800998
9010         * src/z80/gen.c (genFunction, genEndFunction): fixed "bug" #774700
9011         * as/z80/asmain.c (main): fixed bug #801766
9012
9013 2003-09-06  Bernhard Held <bernhard AT bernhardheld.de>
9014
9015         * src/SDCCicode.c (ast2iCode): fixed differences in iCode with different
9016         compilers
9017
9018 2003-09-05  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9019
9020         * src/SDCCast.c (isConformingBody): fixed loop reversal bug
9021         reported in bug #800609
9022
9023 2003-09-04  Vangelis Rokas <vrokas AT otenet.gr>
9024
9025         * Top header beautifications in src/pic16 directory:
9026           device.c, device.h, gen.c, gen.h, genarith.c, glue.c, pcode.c,
9027           pcodeflow.c, pcodeflow.h, pcode.h, pcodepeep.c, pcoderegs.c,
9028           pcoderegs.h, ralloc.c, ralloc.h
9029         * main.c: added top header and GPL license notice
9030         * pcode.c: fixed the if-conditional warning
9031
9032 2003-09-04  Bernhard Held <bernhard AT bernhardheld.de>
9033
9034         * device/lib/_mullong.c: replaced int by short for gcc
9035
9036 2003-08-31  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9037
9038         * src/SDCCpeeph.c (notVolatile, notVolatileVariable): handle IFX
9039         and JUMPTABLE iCodes properly now (worked by accident before)
9040         * src/mcs51/gen.c (leftRightUseAcc),
9041         * src/ds390/gen.c (leftRightUseAcc): handle IFX and JUMPTABLE
9042         iCode properly now. Use getSize instead of nRegs since a & b
9043         aren't part of the nRegs tally.
9044
9045 2003-08-31  Vangelis Rokas <vrokas AT otenet.gr>
9046
9047         * src/pic16/main.c: corrected offsets of interrupt vectors in _pic16_genIVT()
9048         * src/pic16/pcode.c: fix to disable inserting BANKSEL directive
9049           before instructions that use the _STATUS register
9050
9051 2003-08-31  Bernhard Held <bernhard AT bernhardheld.de>
9052
9053         * src/mcs51/gen.c (freeAsmop): fixed off by one in stack offset (AOP_STK)
9054         * src/mcs51/gen.c (genNearPointerSet): added missing opcode for
9055         fetching of the pointer
9056         * src/mcs51/gen.c (genNearPointerGet): added reuse of PREG,
9057         copied from genNearPointerSet()
9058         * src/mcs51/gen.c (genNearPointerGet): don't pop r0/r1, if RESULTONSTACK
9059         * src/mcs51/gen.c: changed order of freeAsmop(left/right/result)-calls.
9060         If they pop r0/r1 they must be called in the opposite order than aopOp().
9061         * device/lib/_mullong.c: fixed for "--model-large --int-long-reent"
9062         (resp. --stack-auto), prepared for --xstack
9063
9064 2003-08-28  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9065
9066         * doc/sdccman.lyx: reverted tables to those in cvs 1.64
9067
9068 2003-08-28  Bernhard Held <bernhard AT bernhardheld.de>
9069
9070         * device/lib/_startup.c: quick & dirty fix for ds390/ds400;
9071         these ports have their own __sdcc_external_start()
9072
9073 2003-08-26  Bernhard Held <bernhard AT bernhardheld.de>
9074
9075         pic patch provided by Slade Rich <slade_rich AT yahoo.com>
9076         * src/pic/glue.c (pic14printPublics): fixed bug introduced when symbol
9077         type for bits was changed. It resulted in bit variables becoming
9078         global, which is not permitted in PIC 14 assembly output.
9079
9080 2003-08-23  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9081
9082         * doc/sdccman.lyx: various additions and updates. Rearranged sections
9083
9084 2003-08-22  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9085
9086         Z80 and MCS51 linkers complaint if a public symbol is defined
9087         in more than one library module:
9088
9089         * as/mcs51/lklib.c
9090         * link/z80/lklib.c
9091         * as/mcs51/Makefile.in
9092
9093 2003-08-22  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9094
9095         A few small changes that speed up the peephole optimizer.
9096
9097         * src/SDCCpeeph.c
9098
9099 2003-08-22  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9100
9101         Try to make the peephole optimizer smarter by maintaining
9102         an association between the assembly source code and the
9103         iCodes that originated them. Put this information to use
9104         with a new peephole rule condition "notVolatile" so that
9105         the rules can be aggressive yet still safe.
9106
9107         * src/SDCCpeeph.c
9108         * src/SDCCpeeph.h
9109         * src/mcs51/gen.c
9110         * src/mcs51/peeph.def
9111
9112 2003-08-20  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9113
9114         Fixed bug #741761
9115
9116         * src/mcs51/gen.c (aopForSym, leftRightUseAcc),
9117         * src/ds390/gen.c (aopForSym, leftRightUseAcc): preserve A and B
9118         if the left or right operand symbols have the accuse flag set.
9119
9120 2003-08-20  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9121
9122         Changed the type of the result of the ! (NOT) operator to char;
9123         previously it returned the same type as the source. This allows
9124         us to eliminate all the genFloatNot functions (all of its target
9125         implementations were very buggy) since !float can use the same
9126         code as !long now.
9127
9128         * src/SDCCicode.c (ast2iCode): ! returns char
9129         * src/mcs51/gen.c (genNot, genNotFloat),
9130         * src/ds390/gen.c (genNot, genNotFloat),
9131         * src/z80/gen.c (genNot, genNotFloat),
9132         * src/pic/gen.c (genNot, genNotFloat),
9133         * src/pic16/gen.c (genNot, genNotFloat): eliminated genNotFloat
9134
9135 2003-08-19  Bernhard Held <bernhard AT bernhardheld.de>
9136
9137         pic patch provided by Slade Rich <slade_rich AT yahoo.com>
9138         1. Interrupt would not compile properly. Ensure PCLATH register is saved
9139            during interrupts. Ensure WSAVE is located at a shared bank address.
9140         2. Fixed page selection in some places
9141         3. Fixed BTFSS/C to where necessary use registers directly and not simply
9142            the registers name strings.
9143         4. Fixed "signed / unsigned compare" compiler warnings.
9144         5. The PIC port manages its own allocation of the general purpose
9145            registers, but makes no attempt to reuse them. As a result when
9146            compiling it soon runs out of general purpose registers. Some
9147            additional code was added to the files pcode.c and device.c to walk
9148            through the function call tree and rename the registers so that they
9149            get reused.
9150
9151         * src/pic/device.c
9152         * src/pic/gen.c
9153         * src/pic/glue.c
9154         * src/pic/pcode.c
9155         * src/pic/pcode.h
9156         * src/pic/ralloc.c
9157         * src/pic/ralloc.h
9158         * src/pic/genarith.c: Fixed problems with PIC 14 port in functions
9159         genPlus() & genMinus() when the result is the same as left or right
9160
9161 2003-08-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9162
9163         * src/z80/gen.c (isUnsplitable, fetchPairLong): fixed bug #770454
9164
9165 2003-08-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9166
9167         Made bitfield a distinct type from bit so that bitfields
9168         convert as per ANSI C and bits retain their traditional
9169         boolean style behaviour. Implemented bitfield support in
9170         the z80 port.
9171
9172         * src/SDCCsymt.h,
9173         * src/SDCCsymt.c,
9174         * src/SDCCast.c,
9175         * src/cdbFile.c,
9176         * src/mcs51/gen.c,
9177         * src/ds390/gen.c: bit v bitfield split
9178         * src/z80/gen.c: New support for bitfields
9179         * support/regression/tests/bitfields.c: reenabled z80,
9180         added more tests
9181
9182 2003-08-17  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9183
9184         Rules 246.x, 247.x relate to bitfields, the others speed up
9185         access to xdata mapped I/O devices.
9186
9187         * src/mcs51/peeph.def: added 26 peepholes 246.x - 248.x, 180.x
9188
9189 2003-08-16  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9190
9191         Cleaned up genPackBits and genUnpackBits and added two helper
9192         functions, emitPtrByteGet & emitPtrByteSet. Added optimizations
9193         for literal assignments in genPackBits (thanks to Frieder for
9194         reminding me).
9195
9196         * src/mcs51/gen.c
9197         * src/ds390/gen.c
9198
9199 2003-08-16  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9200
9201         Fixed bug #748310 (pointer to function type mishandled when the
9202         function name is omitted). Also fixed a SIGSEGV when a function
9203         attribute (reentrant, etc) is used on a non-function or on a
9204         function but misplaced before the parameter list.
9205
9206         * src/SDCC.y (abstract_declarator, abstract_declaractor2): fixed
9207         bug #748310
9208         * src/SDCC.y (declarator2_function_attributes): avoided SIGSEGV
9209         * support/Util/SDCCerr.h,
9210         * support/Util/SDCCerr.c: Added func attr misuse error msg
9211
9212 2003-08-13  Bernhard Held <bernhard AT bernhardheld.de>
9213
9214         Fixed bug #787649 by anonymous
9215         * src/SDCCglue.c (emitRegularMap): added emission of sloc for func ptr
9216         * src/ds390/gen.c (aopForSym): fixed func ptr in sloc
9217
9218 2003-08-14  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9219
9220         Fixed numerous bitfield problems.
9221
9222         * src/SDCC.y: More bitfield related error checking
9223         * src/SDCCsymt.h,
9224         * src/SDCCsymt.c (compStructSize): fixed bitfield offset calc
9225         * support/Util/SDCCerr.h,
9226         * support/Util/SDCCerr.c: Added & edited some bitfield err msgs
9227         * src/mcs51/gen.c (genPackBits, genUnpackBits): fixed mask bugs
9228         * src/ds390/gen.c (genPackBits, genUnpackBits): fixed mask bugs
9229         * support/regression/tests/bitfields.c: tests added
9230
9231 2003-08-13  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9232
9233         Made the constant following the "interrupt" keyword optional. If
9234         omitted, the function will not automatically be given an entry
9235         in the interrupt vector table (similar to #pragma NOIV, but
9236         less syntacticly kludgy). The interrupt number is also now
9237         range checked. Also fixed a bug in the high order bit example
9238         in the manual.
9239
9240         * src/SDCC.y
9241         * src/SDCCmem.c
9242         * src/SDCCglue.c
9243         * src/SDCCsymt.h
9244         * support/Util/SDCCerr.c
9245         * support/Util/SDCCerr.h
9246         * doc/sdccman.lyx
9247
9248 2003-08-13  Bernhard Held <bernhard AT bernhardheld.de>
9249
9250         * src/SDCCcse.c (algebraicOpts): fix bug converting op from value to type
9251         * src/SDCCicode.c (operandOperation): rewritten some ops
9252         (*, ==, unary_minus) to fix possible overflows and to accord with ANSI
9253         * src/SDCCsymt.c (computeType): literals are handled the same way as any
9254         other type
9255         * src/SDCCval.c (cheapestVal): removed, it doesn't accord with ANSI (can
9256         be re-activated by defining REDUCE_LITERALS)
9257         * src/SDCCval.c (constVal): fixed; hex and octal constants can be
9258         unsigned, but are signed by default
9259         * src/SDCCval.c (constVal): rearranged
9260         * src/SDCCval.c (valMod): preliminary fix
9261         * src/SDCCval.c (valCastLiteral): use TYPE_* types
9262         * support/regression/literalop.c: added, work in progress
9263
9264 2003-08-12  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9265
9266         Generate warnings for useless declarations like "char data;"
9267         that don't do what new users expect.
9268
9269         * src/SDCC.y
9270         * support/Util/SDCCerr.h
9271         * support/Util/SDCCerr.c
9272
9273 2003-08-09  Bernhard Held <bernhard AT bernhardheld.de>
9274
9275         * src/SDCCval.c (valMult): fix overflow detection of negative int
9276
9277 2003-08-07  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9278
9279         * src/z80/ralloc.c (joinPushes): made compatible with new signedness
9280
9281         Changes to support big endian targets:
9282
9283         * src/ports.h
9284         * src/SDCCglue.c
9285         * src/avr/main.c
9286         * src/ds390/main.c
9287         * src/izt/i186.c
9288         * src/mcs51/main.c
9289         * src/pic/main.c
9290         * src/pic16/main.c
9291         * src/xa51/main.c
9292         * src/z80/main.c
9293
9294 2003-08-06  Bernhard Held <bernhard AT bernhardheld.de>
9295
9296         * src/SDCCval.c (cheapestVal): changed behaviour to the same as constVal()
9297         * device/lib/time.c: fixed warning "integer overflow in expression"
9298
9299 2003-08-05  Bernhard Held <bernhard AT bernhardheld.de>
9300
9301         * src/SDCCval.c (cheapestVal, valueFromLit): use TYPE_* types
9302         * src/SDCCval.c (constVal): changed default to signed; hex and octal
9303         constants are unsigned; added recognition of "u" flag for unsigned
9304         * src/SDCCval.c (valMult): fixed signdness, added warning for overflow
9305         * src/SDCCval.c (valDiv, valMod): fixed signdness
9306         * src/SDCCicode.c (operandOperation): fixed critical typo; fixed
9307         signedness of modulo, left and right shift
9308         * support/Util/SDCCerr.c: added warning "integer overflow in expression"
9309         * support/Util/SDCCerr.h: added warning W_INT_OVL
9310         * src/SDCCast.c (decorateType): fixed gcc3.3 warning
9311         * src/SDCCast.c (ast_print): improved output of constants
9312
9313 2003-08-04  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9314
9315         Fixed some warnings when building with MSVC:
9316
9317         * as/mcs51/asdata.c
9318         * as/z80/asdata.c
9319         * as/mcs51/asm.h
9320         * as/z80/asm.h
9321         * link/z80/aslink.h
9322         * link/z80/lkdata.c
9323         * link/z80/lkeval.c
9324         * link/z80/lkgb.c
9325         * link/z80/lkihx.c
9326         * link/z80/lks19.c
9327         * link/z80/lksym.c
9328         * support/cpp2/cpplib.c
9329         * src/ds390/gen.c
9330         * src/mcs51/gen.c
9331
9332 2003-08-03  Bernhard Held <bernhard AT bernhardheld.de>
9333
9334         * src/SDCCast.c (constExprTree): fix bug #781827 by Carl Worth <cworth AT isi.edu>
9335
9336 2003-08-01  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9337
9338         * support/librarian/clean.mk: Do not remove Makefile.
9339         * support/librarian/Makefile: added.
9340
9341 2003-08-01  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9342
9343         Added librarian to MSVC build:
9344         * all.dsp
9345         * sdcc.dsw
9346         * support/librarian/librarian.dsp
9347
9348         'configure' not needed for librarian, removed:
9349         * support/librarian/configure
9350         * support/librarian/configure.in
9351         * support/librarian/config_in.h
9352         * support/librarian/Makefile.in
9353
9354         Hopefully these ones built the librarian and the rest of sdcc properly:
9355         * Makefile
9356         * Makefile.common.in
9357
9358         Messed up 'configure', so revert to previous version:
9359         * configure
9360         * configure.in
9361
9362 2003-07-31  Bernhard Held <bernhard AT bernhardheld.de>
9363
9364         * src/SDCCicode.c (operandOperation): 3. fix, this time for Alpha; ULONG has 64 bits
9365         there, while the mantissa of a double is "only" 53 bits wide.
9366
9367 2003-07-31  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9368
9369         Adding sdcclib to the build.  MSVC project coming soon.
9370         Files added/changed:
9371
9372         * support/librarian/clean.mk
9373         * support/librarian/configure
9374         * support/librarian/configure.in
9375         * support/librarian/config_in.h
9376         * support/librarian/Makefile.bcc
9377         * support/librarian/Makefile.in
9378         * support/librarian/sdcclib.c
9379         * Makefile.bcc
9380         * Makefile
9381         * Makefile.common.in
9382         * configure
9383         * configure.in
9384
9385 2003-07-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9386
9387         Linker now complaints if linked modules have conflicting options, for
9388         example, one compiled using --model-large and another one compiled with
9389         --model-small.  The following files were modified:
9390
9391         * as/mcs51/asdata.c
9392         * as/mcs51/aslink.h
9393         * as/mcs51/asm.h
9394         * as/mcs51/asmain.c
9395         * as/mcs51/asout.c
9396         * as/mcs51/i51pst.c
9397         * as/mcs51/lkdata.c
9398         * as/mcs51/lklibr.c
9399         * as/mcs51/lkmain.c
9400         * as/z80/asdata.c
9401         * as/z80/asm.h
9402         * as/z80/asmain.c
9403         * as/z80/asout.c
9404         * as/z80/z80pst.c
9405         * link/z80/aslink.h
9406         * link/z80/lkdata.c
9407         * link/z80/lklibr.c
9408         * link/z80/lkmain.c
9409         * src/SDCCglue.c
9410
9411 2003-07-28  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9412
9413         *link/z80/aslink.h, link/z80/lklibr.c, as/mcs51/aslink.h,
9414         as/mcs51/lklibr.c: Generate a warning when a library is not found.
9415
9416 2003-07-28  Bernhard Held <bernhard AT bernhardheld.de>
9417
9418         * src/z80/mappings.i: fix _mul[us][int,long] entries
9419
9420 2003-07-26  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9421
9422         *src/SDCCmain.c: do not search for crt0.o when using --nostdlib
9423
9424 2003-07-24  Bernhard Held <bernhard AT bernhardheld.de>
9425
9426         * src/SDCCicode.c (operandOperation): really fixed problem with bitops
9427         * support/regression/tests/bitopcse.c: added
9428         fixed warning:
9429         * src/avr/gen.c:
9430         * src/pic/gen.c:
9431         * src/pic16/gen.c:
9432         * src/z80/gen.c:
9433         * src/xa51/gen.c:
9434
9435 2003-07-24  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9436
9437         added support for new library format to z80, gbz80 linkers:
9438         *link/z80/aslink.h
9439         *link/z80/lklex.c
9440         *link/z80/lklib.c
9441         *link/z80/lklist.c
9442
9443 2003-07-24  Bernhard Held <bernhard AT bernhardheld.de>
9444
9445         * src/SDCCicode.c (operandOperation): fixed problem with bitops and 0xffffffff;
9446         after {double d = 0xffffffff; long l = d;} l will be 0x80000000 (LONG_MIN)
9447
9448 2003-07-23  Bernhard Held <bernhard AT bernhardheld.de>
9449
9450         added DUMMY_READ_VOLATILE:
9451         * src/SDCC.y:
9452         * src/avr/gen.c:
9453         * src/xa51/gen.c:
9454         * src/z80/gen.c:
9455         * src/pic/gen.c:
9456         * src/pic16/gen.c:
9457         * src/mcs51/gen.c:
9458         * src/ds390/gen.c:
9459         * src/SDCCcse.c (algebraicOpts): many improvements
9460         * src/SDCCcse.h: removed algebraicOpts()
9461         * src/SDCCicode.c (picDummyRead): added
9462
9463 2003-07-23  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9464
9465         * as/mcs51/lkmem.c: Changed message "Insufficient DRAM memory" to
9466         "Insufficient space in data memory".
9467
9468 2003-07-20  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9469
9470         * src/mcs51/gen.c: fixed bug #771358
9471         * src/z80/gen.c: fixed bug #759087
9472
9473 2003-07-20  Bernhard Held <bernhard AT bernhardheld.de>
9474
9475         * src/pic16/glue.c: minor cleanup by Vangelis
9476
9477 2003-07-19  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9478
9479         * device/include/regc515c.h: fixed #758477
9480         * device/lib/_gptrget.c: saving some cycles in generic pointer get
9481         * device/lib/_gptrput.c: saved a few bytes
9482         * my tab spacing is 8, yours too?)
9483         * device/lib/_ser.c: process RX bytes earlier than TX bytes
9484         * device/lib/serial.c: process RX bytes earlier than TX bytes
9485         * src/mcs51/gen.c(genGenPointerGet/Set): removed writing of type after postincrement
9486
9487 2003-07-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9488
9489         * src/z80/gen.c: fixed some right shift bugs (#772726 among them)
9490
9491 2003-07-17  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9492
9493     * link/z80/lklibr.c: fixed bug when there is a '.' in a library path.
9494
9495 2003-07-17  Bernhard Held <bernhard AT bernhardheld.de>
9496
9497         * device/lib/Makefile.in: bad fix, reverted to 1.43
9498
9499 2003-07-16  Bernhard Held <bernhard AT bernhardheld.de>
9500
9501         * device/lib/Makefile.in: added missing z80 object files
9502
9503 2003-07-14  Bernhard Held <bernhard AT bernhardheld.de>
9504
9505         * src/SDCCcse.c (algebraicOpts): CSE fun with &|^ and 0x00/0xff literals
9506         pic16 progress by Vangelis:
9507         * src/SDCCglobl.h:
9508         * src/SDCCmain.c:
9509         * src/pic/Makefile:
9510         * src/pic:
9511         * pic/Makefile:
9512         * pic16/device.c:
9513         * pic16/device.h:
9514         * pic16/gen.c:
9515         * pic16/gen.h:
9516         * pic16/genarith.c:
9517         * pic16/glue.c:
9518         * pic16/main.c:
9519         * pic16/pcode.c:
9520         * pic16/pcode.h:
9521         * pic16/pcodepeep.c:
9522         * pic16/peeph.def:
9523
9524 2003-07-13  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9525
9526     * src/SDCCmain.c, src/SDCCglobl.h: added option --no-std-crt0
9527
9528 2003-07-12  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9529
9530     * sdcc.dsw, all.dsp, link/z80/linkgbz80.dsp, as/z80/as-gbz80.dsp:
9531     added gbz80 build to MSVC project.
9532     * src/SDCCmain.c, src/SDCCglue.c, src/z80/main.c, src/z80/z80.dsp,
9533     link/z80/aslink.h, linkz80.dsp: cleaned up z80 and gbz80 asm files
9534     from 8051 stuff and setup so it links using a .lnk file.
9535
9536 2003-07-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9537
9538     * support/librarian/sdcclib.c: sdcc librarian.
9539     * as/mcs51/aslink.h, as/mcs51/lklib.c: Support for libraries created
9540     with sdcclib.
9541
9542 2003-07-03  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9543
9544     * as/mcs51/lkmain.c: properly handle extensions in function afile.
9545
9546 2003-07-02  Borut Razem <borut.razem AT siol.net>
9547
9548         * src/port.h, src/SDCCmain.c, src/pic/glue.h, src/pic/main.c,
9549         src/pic16/glue.h, sdcc/src/pic16/main.c, src/izt/i186.c,
9550         src/izt/tlcs900h.c, src/avr/main.c, src/ds390/main.c, src/mcs51/main.c,
9551         src/xa51/main.c, src/z80/main.c:
9552         virtualization of glue() function: each port has it's own glue function,
9553         which is accessed by do_glue function pointer in PORT.general structure
9554
9555 2003-07-01 Kevin Vigor <kevin AT vigor.nu>
9556
9557         * DS800C400 fun, improved ROM interface and tinibios.
9558
9559 2003-06-27 Kevin Vigor <kevin AT vigor.nu>
9560
9561         * More support for DS80C400. Now includes beginning of interface to ROM.
9562
9563 2003-06-25  Bernhard Held <bernhard AT bernhardheld.de>
9564
9565         * src/mcs51/gen.c (gencjneshort): fixed bug #760345
9566
9567 2003-06-20  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9568
9569         * as/mcs51/lkaomf51.c: Make sure the size of the last procedure is correct.
9570
9571 2003-06-19  Borut Razem <borut.razem AT siol.net>
9572
9573         * src/z80/main.c: fixed Z80 port again: missing -k library paths in linker command line
9574
9575 2003-06-19  Borut Razem <borut.razem AT siol.net>
9576
9577         * src/SDCCutil.h, src/SDCCutil.c, src/SDCCglobl.h, src/SDCCmain.c, src/z80/main.c:
9578         fixed Z80 port - crt0.o: cannot open.
9579
9580 2003-06-19  Bernhard Held <bernhard AT bernhardheld.de>
9581
9582         * support/Util/MySystem.c (merge_command): revert bad fix
9583
9584 2003-06-18  Borut Razem <borut.razem AT siol.net>
9585
9586         * src/SDCC.lex, src/SDCCmain.c: fixed some warnings, introduced with changes made 15.06.1003
9587
9588 2003-06-18  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9589
9590         * src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx:
9591         option --use-stdout sends errors to stdout instead of stderr.
9592
9593 2003-06-18  Bernhard Held <bernhard AT bernhardheld.de>
9594
9595         * support/Util/MySystem.c (merge_command): quick fix for Linux segfault with \"cmd\" arg
9596
9597 2003-06-15  Borut Razem <borut.razem AT siol.net>
9598
9599         * support/cpp2/sdcc.h: HAVE_DOS_BASED_FILE_SYSTEM defined for _WIN32
9600         * src/SDCC.lex: cloneXxx and copyAndFreeXxx functions for options and optimize stack handling
9601         * src/SDCCglobl.h, src/SDCCmain.c, src/ds390/main.c, src/mcs51/main.c, src/z80/main.c:
9602         fixed width array of pointers replaced with sets;
9603         multiple include and lib paths ared transferred to preprocessor and linker
9604         * src/SDCCset.c, src/SDCCset.h: added function setFromSetNonRev() and mergeSets()
9605         * src/SDCCsymt.c: reimplemented function inCalleeSaveList() by using sets instead
9606         fixed width array of pointers
9607         * src/SDCCutil.c, src/SDCCutil.h: added functions fputStrSet(), appendStrSet(), joinStrSet();
9608         removed functions addToList(), join(), joinn(), pathCharsEquivalent(), pathCharTransform(),
9609         fixupPath(), getPathDifference()
9610         * src/ds390/gen.c, src/mcs51/gen.c: reimplemented function  inExcludeList() by using sets instead
9611         fixed width array of pointers
9612
9613 2003-06-11  Bernhard Held <bernhard AT bernhardheld.de>
9614
9615         * src/pic16/ralloc.c: fix warnings
9616         * src/pic16/pcode.c: fix warning
9617
9618 2003-06-10  Scott Dattalo  <scott AT dattalo.com>
9619
9620          Scott D. for Vangelis Rokas (vrokas AT otenet.gr). I (scott) don't
9621         know all the details, but essentially this set of changes enable
9622         the pic16 port to generate movff instructions and generate assembler
9623         directives,
9624         * src/SDCCmain.c:
9625         * src/pic16/gen.c:
9626         * src/pic16/glue.c:
9627         * src/pic16/pcode.c:
9628         * src/pic16/device.c:
9629         * src/pic16/main.c:
9630         * src/pic16/pcode.h:
9631         * src/pic16/pcoderegs.c:
9632         * src/pic16/ralloc.c:
9633         * src/pic16/ralloc.h:
9634
9635 2003-06-08  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9636
9637         * support/Util/SDCCerr.c, src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx:
9638         added option --vc, so sdcc errors and warnings are compatible with
9639         Microsoft Visual Studio.
9640
9641 2003-06-07  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9642
9643         * device/lib/_atof.c, device/lib/Makefile.in, device/include/stdlib.h,
9644           device/lib/libfloat.lib: added atof function.
9645
9646 2003-06-04  Bernhard Held <bernhard AT bernhardheld.de>
9647
9648         * doc/sdccman.lyx: updated to Lyx 1.3
9649         * doc/cdbfileformat.lyx: updated to Lyx 1.3
9650         * doc/test_suite_spec.lyx: updated to Lyx 1.3
9651         * doc/Makefile: added fix for the \tabularnewline problem, thanks to Jesus
9652
9653 2003-06-03  Bernhard Held <bernhard AT bernhardheld.de>
9654
9655         * src/SDCCpeeph.c: separate peepRules2pCode() for pic16 by "Vangelis Rokas" <vrokas AT otenet.gr>
9656
9657 2003-06-02  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9658
9659         * doc/sdccman.lyx: cvs revision keywords, passing pdf information in latex preamble,
9660           additions to the "related tools/documentation" section
9661
9662 2003-06-02  Bernhard Held <bernhard AT bernhardheld.de>
9663
9664         * src/SDCCglue.c (tempfileandname): added check for missing TMP/TEMP/TMPDIR variable
9665
9666 2003-05-29  Bernhard Held <bernhard AT bernhardheld.de>
9667
9668         * src/pic/device.c: added 16F819, patch by "David I. Lehn" <dlehn AT vt.edu>
9669         * src/SDCCcse.c (algebraicOpts): fixed "c * 1"
9670
9671 2003-05-28  Bernhard Held <bernhard AT bernhardheld.de>
9672
9673         * doc/sdccman.lyx: fix double dash and other minor things
9674         * doc/Makefile: fix double dash
9675
9676 2003-05-28  Karl Bongers(patches from Martin Helmling)
9677         * debugger/mcs51/sdcdb.c,cmd.c,break.c and .h files. Martin adds
9678           condition and ignore commands.
9679
9680 2003-05-28  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9681
9682         * doc/sdccman.lyx: Changes all over, index improved, smaller margins. The manual
9683           is in parts still quite out of date, I did changes as far as I felt makes sense
9684           for a non-native english speaker.
9685           Please feel free to add to the manual or to correct my changes.
9686         * doc/Makefile: undid touching the date of intermediate tex files.
9687
9688 2003-05-26  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9689
9690         * doc/sdccman.lyx: Manual has an index now
9691
9692 2003-05-25  Bernhard Held <bernhard AT bernhardheld.de>
9693
9694         Finalize muluint/mulsint and mululong/mulslong merging:
9695         * device/lib/_mulint.c
9696         * device/lib/_mullong.c
9697         * device/lib/gbz80/mul.s
9698         * device/lib/gbz80/stubs.s
9699         * device/lib/z80/mul.s
9700         * device/lib/z80/stubs.s
9701         * src/SDCCsymt.c (initCSupport)
9702
9703 2003-05-25  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9704
9705         * as/mcs51/lkaomf51.c: Address space 'z' was missing.
9706         * src/avr/avr.dsp, src/ds390/ds390.dsp, src/mcs51/mcs51.dsp,
9707           src/pic/pic.dsp, src/pic16/pic16.dsp, src/xa51/xa51.dsp,
9708           src/x80/z80.dsp: peep.rul is bigger now, so /Zm1000 is used
9709           instead of /Zm500.
9710
9711 2003-05-25  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9712
9713         * src/mcs51/peeph.def: added rules 244.x, 245.x. Although they pass
9714           the regression tests I'm not brave enough to enable 245.b, 245.c
9715         * doc/sdccman.lyx: added latex preamble for hyperref package.
9716           Using pdflatex this will give you a hyperlinked pdf file with
9717           bookmarks. (prepend '%' before /usepackage if this breaks something)
9718
9719 2003-05-24  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9720
9721          * doc/sdccman.lyx: updated information about .adb files (fixed bug 742649)
9722
9723 2003-05-22  Bernhard Held <bernhard AT bernhardheld.de>
9724
9725         * src/pic16/pcode.c (pic16_get_op_from_instruction): fixed a gcc 3.x warning
9726
9727 2003-05-21    <johan AT balder>
9728
9729         * src/SDCCglue.c (printIval): fixed bug #739934
9730
9731 2003-05-19  Bernhard Held <bernhard AT bernhardheld.de>
9732
9733         Applied patch from bug 737905 (renamed yylineo to mylineno):
9734         * src/altlex.c
9735         * src/SDCCast.c
9736         * src/SDCglobl.h
9737         * src/SDCC.lex
9738         * src/SDCCsymt.c
9739         * src/SDCCval.c
9740         * src/pic16/pcode.c: Cleaned warnings
9741         * src/pic16/pcodeflow.c: Cleaned warnings
9742         * src/pic16/pcoderegs.c: Cleaned warnings
9743
9744 2003-05-19  Scott Dattalo  <scott AT dattalo.com>
9745
9746         * src/pic16/pcode.c: Cleaned warnings
9747         * src/pic16/pcodepeep.c: Cleaned warnings
9748         * src/pic16/ralloc.c: Cleaned warnings
9749
9750 2003-05-19  Bernhard Held <bernhard AT bernhardheld.de>
9751
9752         * doc/sdccman.lyx: fixed bug 739745
9753         * src/pic16/pcode.c (pic16_get_op): fixed warning on alpha
9754
9755 2003-05-18  Bernhard Held <bernhard AT bernhardheld.de>
9756
9757         * src/port.h: removed DEFAULT_PORT, it's not yet pic16 ;-)
9758         it can be defined with CFLAGS when running configure
9759         * src/SDCCmain.c: fixed compiling + linking with object files
9760
9761 2003-05-18  Vangelis Rokas (vrokas AT otenet.gr)
9762
9763         * configure.in: configure for pic16 port,
9764             added --disable-pic16-port
9765         * sdccconf_in.h: added macro OPT_DISABLE_PIC16
9766         * src/SDCCmain.c: linkOptions is changed to set *,
9767             added if/endif conditional macros to remove options help
9768             messages from optionsTable when a port is not configured, added
9769             support for the PIc16 port in the ports table, when executing
9770             the compiler with no port specified on command line, a default
9771             port is selected with the new macro DEFAULT_PORT which is
9772             defined in port.h, in setDefaultOptions() linkOptions is removed
9773             from initialization assignment, since now it is a set,
9774             parseCmdLine uses setParseWithComma for linkOptions, in
9775             linkEdit() linkOptions are accessed with new function indexSet()
9776             which returns the i'th item of a set variable. See SDCCset.c, in
9777             linkEdit() when calling buildCmdLine(), added linkOptions as
9778             last argument. Now users can pass arguments to gplink via the
9779             -Wl option, main() uses pic16glue() to glue up pic16 programs
9780         * src/SDCCpeeph.c: various changes to support pic16
9781         * src/SDCCset.c: added function  void *indexSet(set *, int)  to
9782             return the i'th item of the set
9783         * src/SDCCset.h: added function prototype for indexSet()
9784         * src/SDCCsymt.c: in checkSClass(), added support for PIC16
9785         * src/clean.mk: added pic16 in CLEANALLPORTS variable
9786         * src/port.h: added TARGET_ID_PIC16,TARGET_IS_PIC16 macro,
9787             added macro DEFAULT_PORT
9788         * src/pic/main.c: corrected arguments of gplnk in _linkCmd
9789         * src/pic16/gen.c: bug fix in genCpl(), now the correct code is
9790             generated
9791         * src/pic16/glue.c: commented out some error producing lines
9792         * src/pic16/main.c: __config directives are commented out to stop
9793             gpasm complaining and test the linkage with gplink, _linkCmd and
9794             _asmCmd changed to be more gplink and gpasm friendly
9795         * src/pic16/peeph.def: peep rule 3 is commented out, since it
9796             produced an error when parsed, peep rule 12 is added to utilize
9797             movff, but it is commented out since the pCode does not support
9798             yet a command with 2 address arguments
9799
9800 2003-05-18    <johan AT balder>
9801
9802         * src/ds390/gen.c (genArrayInit): removed obsolete and buggy ARRAYINIT
9803         * src/ds390/main.c (genArrayInit): removed obsolete and buggy ARRAYINIT
9804 2003-05-17  Karl Bongers(apply patches from Martin Helmling)
9805
9806         * debugger/mcs51/sdcdb.c,cmd.c,break.c and .h files.
9807   Added feature to script commands from file.
9808
9809 2003-05-14  Bernhard Held <bernhard AT bernhardheld.de>
9810
9811         * device/lib/_strtok.c: fixed bug #734355 by Lenny Story and Tim Woodall
9812         * src/SDCCutil.c: include ctype.h for win32
9813
9814 2003-05-13  Bernhard Held <bernhard AT bernhardheld.de>
9815
9816         * src/pic16/*: removed CR from many files, reported by Vangelis Rokas
9817
9818 2003-05-12  Karl Bongers(apply development patches from Martin Helmling)
9819
9820         * debugger/mcs51/sdcdb.c,simi.c,cmd.c,break.c and .h files.
9821   Fixed so you can set breakpoints prior to run, run does not stop
9822   on entry now.  Add tbreak.  Other enhancements and fixes for use
9823   with ddd.
9824
9825 2003-05-12  Borut Razem <borut.razem AT siol.net>
9826
9827         * src/SDCCmain.c: fixed the problem with searching the DATADIR as the last resort on *nix
9828
9829 2003-05-11  Borut Razem <borut.razem AT siol.net>
9830
9831         * src/SDCCutil.c: WIN32 version of getBinPath() calls GetModuleFileName() to determine
9832         the path of bin directory, so that PATH is the only env. variable, which has to be set
9833         in case of standard installation.
9834         * src/ds390/ds390.dsp: increased value of /Zm option to 1000
9835         * src/pic/main.c: add quotes to file name parameters for gplink and gpasm
9836         * src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx: added --print-search-dirs command line option
9837
9838 2003-05-04  Bernhard Held <bernhard AT bernhardheld.de>
9839
9840         * src/SDCCmain.c (linkEdit): fixed buffer overflow for gbz80
9841         * support/regression/Makefile: inter-port-clean is no longer nesessary, the
9842         temp files are in the port dir; clean the gen/test directory when
9843         generating new test.c
9844         * support/regression/ports/host/spec.mk: defined OBJEXT for target clean
9845         * support/regression/tests/vaargs.c: fixed gcc 3.3 warning
9846         * support/regression/tests/zeropad.c: added
9847
9848 2003-05-09    <johan AT balder>
9849
9850         * src/SDCCglue.c: fixed bug #597940
9851
9852 2003-05-05  Karl Bongers(apply patches from Martin Helmling)
9853
9854         * debugger/mcs51/sdcdb.c,simi.c,cmd.c,symtab.c and .h files.
9855   cache sfr, optimize next,step, fix off by one sourceline,
9856   support ddd list function.
9857         * sim/ucsim/cmd.src/newcmd.cc - small fix for sdcdb use.
9858
9859 2003-05-04  Bernhard Held <bernhard AT bernhardheld.de>
9860
9861         * support/regression/HTMLgen.py: added compare_s2f()
9862         * support/regression/Makefile: redo 1.27
9863         * support/regression/generate-cases.py: redo 1.5
9864
9865 2003-04-30  Bernhard Held <bernhard AT bernhardheld.de>
9866
9867         * support/regression/tests/float.c: workaround 33 bit hex constant
9868         * support/regression/tests/simplefloat.c: fix division for host
9869
9870 2003-04-29  Scott Dattalo  <scott AT dattalo.com>
9871
9872         * src/pic/pcoderegs.c Applied patch from Jim Hawkridge <jim AT jimhawkridge.uk.eu.org>
9873         that tame's the PIC's over-aggressive optimizer.
9874
9875 2003-04-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9876
9877          * src.dsw, link/z80/aslink.h, link/z80/linkz80.dsp: z80 linker
9878          support for MSVC.
9879
9880 2003-04-29  Kevin Vigor <kevin AT vigor.nu>
9881
9882         Initial support for DS80C400. "Hello world" runs on TINIm400
9883         (with polled I/O).
9884
9885 2003-04-28  Karl Bongers(apply patches for Martin Helmling)
9886
9887          * debugger/mcs51/sdcdb.c,simi.c,cmd.c,symtab.c and .h files.
9888          * Some notes on ddd usage added in debugger/README
9889          Martin Helmling adding more features and fixes for ddd GUI debugger.
9890          Code added for nexti, stepi, up, down, and other adjustments.
9891
9892 2003-04-28  Scott Dattalo  <scott AT DATTALO.COM>
9893
9894         * src/pic/pCodepeep.c non-wildcard asmops are now handled
9895         * src/pic/peeph.def Added two rules to optimize carry manipulation
9896         * src/pic/* removed debug printfs
9897
9898 2003-04-28  Bernhard Held <bernhard AT bernhardheld.de>
9899
9900         * debugger/mcs51/cmd.c: added header newalloc.h
9901
9902 2003-04-26  Bernhard Held <bernhard AT bernhardheld.de>
9903
9904         * as/Makefile: new EXEEXT
9905         * as/z80/Makefile: remove trailing slash of BUILDIR
9906         * as/z80/clean.mk: new EXEEXT
9907         * Makefile.common.in: add to CFLAGS (and others), don't replace it
9908         * support/cpp2/Makefile.in: new EXEEXT
9909         * src/pic/glue.c (pic14emitRegularMap): fixed warning
9910
9911 2003-04-24  Bernhard Held <bernhard AT bernhardheld.de>
9912
9913         Cygwin's gcc always appends .exe: 'gcc -o a a.c' creates a.exe;
9914         EXEEXT was introduced to fix all related problems with targets
9915         "clean", "install" and "uninstall"; a couple of further flaws
9916         especially with "clean" have been fixed too
9917         * as/mcs51/Makefile.in
9918         * as/mcs51/clean.mk
9919         * as/z80/Makefile
9920         * Makefile
9921         * clean.mk
9922         * debugger/mcs51/Makefile.in
9923         * debugger/mcs51/clean.mk
9924         * link/z80/Makefile
9925         * link/z80/Makefile.in
9926         * link/z80/clean.mk
9927         * link/Makefile
9928         * packihx/Makefile.in
9929         * packihx/clean.mk
9930         * sim/ucsim/Makefile
9931         * sim/ucsim/clean.mk
9932         * sim/ucsim/avr.src/Makefile.in
9933         * sim/ucsim/avr.src/clean.mk
9934         * sim/ucsim/s51.src/Makefile.in
9935         * sim/ucsim/s51.src/clean.mk
9936         * sim/ucsim/xa.src/Makefile.in
9937         * sim/ucsim/xa.src/clean.mk
9938         * sim/ucsim/z80.src/Makefile.in
9939         * sim/ucsim/z80.src/clean.mk
9940         * sim/ucsim/main_in.mk
9941         * sim/ucsim/packages_in.mk
9942         * sim/ucsim/gui.src/Makefile.in
9943         * sim/ucsim/gui.src/serio.src/Makefile.in
9944         * sim/ucsim/gui.src/serio.src/clean.mk
9945         * src/Makefile.in
9946         * src/clean.mk
9947         * support/cpp2/Makefile.in
9948         * support/cpp2/clean.mk
9949         * support/makebin/Makefile
9950         * support/makebin/clean.mk
9951         * support/scripts/sdcc_mingw32: --program-suffix no longer needed
9952         * doc/sdccman.lyx: --program-suffix no longer needed
9953
9954 2003-04-23  Karl Bongers(apply patches for Martin Helmling)
9955
9956          * debugger/mcs51/sdcdb.c,simi.c,cmd.c,..
9957          Martin Helmling added support for ddd GUI debugger.
9958          Code added to display assembly, set variables, and other commands
9959          to interface to ddd.
9960
9961 2003-04-23  Bernhard Held <bernhard AT bernhardheld.de>
9962
9963         * as/Makefile: fix target clean
9964         * as/clean.mk: fix target clean
9965         * as/z80/clean.mk: fix target clean
9966
9967 2003-04-22  Bernhard Held <bernhard AT bernhardheld.de>
9968
9969         * Makefile.common.in: added  AT EXEEXT AT
9970         * configure.in: removed all mingw32 stuff
9971         * configure: rebuilt from configure.in
9972         * doc/sdccman.lyx: updated section "installation"
9973         * support/scripts/sdcc_mingw32: adapted to configure
9974         * support/scripts/sdcc_cygwin_mingw32: added
9975
9976 2003-04-22  Scott Dattalo  <scott AT dattalo.com>
9977
9978         * src/pic Added object file support for the PIC port
9979         * src/pic Applied patch from Craig Franklin (this started the object file support)
9980         * src/regression Updated the PIC regression tests for object files
9981
9982 2003-04-20  Borut Razem <borut.razem AT siol.net>
9983
9984         * sdcc/as/mcs51/lklex.c: make getfid() more robust and fixed gcc warning:
9985           lklex.c: In function `getfid':
9986           lklex.c:203: warning: array subscript has type `char'
9987         * src/SDCCglobl.h: small change in stack handling macros, to avoid crash when compiled
9988           with MSVC with global optimization enabled (probably an cl compiler bug ;-)
9989         * support/Util/SDCCerr.c, support/Util/SDCCerr.h: added function fatal(), called from
9990           stack handling macros
9991
9992 2003-04-19  Borut Razem <borut.razem AT siol.net>
9993
9994         * "handling space characters in file path" task:
9995         * src/SDCCmacro.c: fixed bug in handlig quote at the end of line
9996         * support/Util/BuildCmd.c: define par as NULL if parameter value is invalid
9997         * support/Util/MySystem.h: make it self-sufficient
9998         * src/avr/main.c, src/ds390/main.c, src/mcs51/main.c, src/pic/main.c, src/xa51/main.c,
9999           src/z80/main.c, sdcc/as/mcs51/lklex.c:
10000           handling space characters in file path
10001         * src/SDCCmain.c: introduced setDataPaths() function, {datadir} macro
10002           (it will be used by assemblers, which have their own includes, e.g. gpasm)
10003         * support/Util/MySystem.c: handling space characters in executable's path
10004
10005 2003-04-19  Bernhard Held <bernhard AT bernhardheld.de>
10006
10007         * as/z80/Makefile: fix permanent rebuild of z80
10008         * sim/ucsim/gui.src/Makefile.in: target "install" builds the same packages as target "all"
10009         * support/regression/tests/bitfields.c: added Johan's bitfields.c
10010
10011 2003-04-18      Kevin Vigor <kevin AT vigor.nu>
10012
10013         * src/SDCCopt.c: add special case optimization to replace modulo by
10014           a power of two with a bitwise AND.
10015
10016 2003-04-18    <johan AT balder>
10017
10018         * src/mcs51/gen.c (getFreePtr): fixed bug #635354
10019
10020 2003-04-17    <johan AT balder>
10021
10022         * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #716790 and removes lot's of redundant register usage around function calls
10023         * src/mcs51/ralloc.c (packRegisters): fixed bug #720667
10024
10025 2003-04-13  Borut Razem <borut.razem AT siol.net>
10026
10027         * doc/sdccman.lyx: updated info about #pragma SAVE/RESTORE nesting
10028         * configure.in, configure: fixed problems on cygwin/WinCVS environmet with ports.* line endings;
10029           fixed mingw problem in adl_NORMALIZE_PATH
10030
10031 2003-04-12  Borut Razem <borut.razem AT siol.net>
10032
10033         * fixed "#pragma SAVE/RESTORE can not be nested":
10034         * src/SDCC.lex: reworked pragma handling functions
10035         * sdcc/src/SDCCglobl.h: reworked stack handling macros
10036         * support/Util/SDCCerr.c, support/Util/SDCCerr.h: added E_STACK_VIOLATION error
10037
10038 2003-04-12  Bernhard Held <bernhard AT bernhardheld.de>
10039
10040         * src/SDCCutil.c (pathEquivalent): defined but not used
10041         * debugger/mcs51/sdcdb.c: replace SDCC_LIB_DIR
10042         * configure.in: remove sdcc_datadir, sdcc_lib_dir and sdcc_include_dir
10043         * configure: rebuilt from configure.in
10044         * sdccconf_in.h: remove SDCC_LIB_DIR and SDCC_INCLUDE_DIR
10045         * sdcc_vc_in.h: remove SDCC_LIB_DIR and SDCC_INCLUDE_DIR
10046         * device/include/Makefile.in: replace sdcc_datadir
10047         * device/lib/Makefile.in: replace sdcc_datadir
10048         * Makefile.common.in: add LDFLAGS from configure
10049         * packihx/Makefile.in: use LDFLAGS
10050         * src/Makefile.in: use LDFLAGS
10051         * support/cpp2/Makefile.in: add LDFLAGS from configure
10052         * support/makebin/Makefile: use LDFLAGS
10053         * .version: bumped version number to 2.3.5
10054
10055 2003-04-12  Borut Razem <borut.razem AT siol.net>
10056
10057         * completed "different paths" task:
10058         * src/SDCCmacro.c: fixed bug in handling quotes
10059         * src/SDCCutil.c, src/SDCCutil.c: rewritten getPrefixFromBinPath()
10060         * src/SDCCmain.c: _discoverPaths() replaced with setBinPaths(), setIncludePath() and setLibPath()
10061
10062 2003-04-12  Bernhard Held <bernhard AT bernhardheld.de>
10063
10064         * src/pic/pcoderegs.c (Remove1pcode): fix warning on alpha
10065
10066 2003-04-11 kevin Vigor <kevin AT vigor.nu>
10067
10068         * ds390/gen.c ds390/peeph.def: fix bug 706781
10069
10070 2003-04-11  Borut Razem <borut.razem AT siol.net>
10071
10072         * support/Util/dbuf.c, support/Util/dbuf.h: update to version 1.1.1 - re-added C++ stuff to make it still more portable
10073
10074 2003-04-10  Scott Dattalo  <scott AT dattalo.com>
10075
10076         * src/pic/* Applied the pointer-to-function patch from Steve Tell.
10077         * src/pic/* Fixed several pointer bugs. (PIC port broke when the ruonly bit was
10078          set - this bit used to not be set...).
10079         * src/pic/gen.c Fixed buf 609268 ==> x = (x+1) & 0xf; generated
10080           bad code in PIC Port
10081         * src/regression/and2.c added to test bug 609268
10082         * src/regression/Makefile added and2.c to regression test
10083
10084
10085 2003-04-08    <johan AT CP255758-A>
10086
10087         * src/mcs51/gen.c (gen51Code): display reg usage in --icode-in-asm
10088         * src/mcs51/ralloc.c (serialRegAssign): update the registers in use and save some slocs
10089         * src/SDCCicode.h: added riu to show the register usage in --icode-in-asm
10090
10091 2003-04-07  Bernhard Held <bernhard AT bernhardheld.de>
10092
10093         * configure.in: fully support prefix, exec_prefix, datadir, docdir;
10094         fix bug #487815
10095         * support/cpp2/Makefile.in: fix bug #487815
10096         * configure: rebuilt from configure.in
10097         * Makefile.common.in: docdir changed, new path suffixes
10098         * sdccconf_in.h: new RETSIGTYPE, and other PATHs
10099         * sdcc_vc_in.h: reflect changes from sdccconf.h
10100         * src/SDCCglobl.h: remove *SEPARATOR_CHARS, they are now in sdccconf.h
10101         * src/SDCCutil.h: remove BINDIR hack
10102         * doc/sdccman.lyx: update new path hierarchy
10103
10104 2003-04-06    Paul Stoffregen <paul AT pjrc.com>
10105
10106         * src/SDCCpeeph.c: added okToRemoveSLOC test
10107
10108 2003-04-06    Paul Stoffregen <paul AT pjrc.com>
10109
10110         * device/lib/printf_fast.c: added leading zero format ("%06d", etc)
10111
10112 2003-04-06    Paul Stoffregen <paul AT pjrc.com>
10113
10114         * src/SDCCpeeph.c: added labelIsReturnOnly test
10115         * src/mcs51/peeph.def: Peephole 244: replace ljmp to ret with ret
10116
10117 2003-04-05    <johan AT balder>
10118
10119         * src/SDCCcse.c (cseAllBlocks): fixed bug #460088
10120         * src/SDCCloop.c (DEFSETFUNC): fixed bug #460088
10121         * src/SDCCopt.c (eBBlockFromiCode): fixed bug #460088
10122         * src/SDCCast.c: fixed a warning
10123         * src/SDCCast.h: fixed a warning
10124         * src/SDCCicode.c (operandFromAst): fixed a warning
10125
10126 2003-04-04    <johan AT balder>
10127
10128         * src/SDCCloop.c (DEFSETFUNC): undid the fix for bug #519584
10129         * src/SDCCast.c (decorateType): fixed bug #715076
10130         * src/SDCC.y: fixed bug #702907
10131
10132 2003-04-03    <johan AT balder>
10133
10134         * device/lib/_mulint.c (_muluint): new #pragma LESS_PEDANTIC
10135         * src/SDCCopt.c (eBBlockFromiCode): new #pragma LESS_PEDANTIC
10136         * src/SDCCglobl.h (PRAGMA_LESSPEDANTIC): new #pragma LESS_PEDANTIC
10137         * src/SDCC.lex (doPragma): new #pragma LESS_PEDANTIC
10138         * src/SDCCmain.c (parseCmdLine): new #pragma LESS_PEDANTIC
10139
10140 2003-04-03  Bernhard Held <bernhard AT bernhardheld.de>
10141
10142         * _decdptr.c: fix return values
10143         * _gptrget.c: fix return values
10144         * _gptrgetc.c: fix return values
10145         * _gptrput.c: fix return values
10146         * _mulint.c: fix return values
10147         * as/z80/Makefile: fix 'make -j' problem
10148
10149 2003-04-02  Bernhard Held <bernhard AT bernhardheld.de>
10150
10151         * Makefile.common.in: unused PORT, SCC and SAS removed, fixed docdir
10152         * configure.in: big cleanup, updated to autoconf 2.5x
10153         * configure: rebuilt from configure.in
10154         * sdccconf_in.h: new RETSIGTYPE, and other PATHs
10155         * sdcc_vc_in.h: reflect changes from sdccconf.h
10156         * doc/Makefile: fixed a flaw in "make install"
10157
10158 2003-04-02    <johan AT balder>
10159
10160         * src/ds390/gen.c (genCmp): no comments
10161         * src/mcs51/gen.c (genCmp): no comments
10162         * src/SDCCopt.c (eBBlockFromiCode): detect missing return values
10163         * src/SDCCast.c (ast_print): fixed the function type in --dumptree
10164
10165 2003-04-01  Bernhard Held <bernhard AT bernhardheld.de>
10166
10167         * support/regression/generate-cases.py: place generated file in given sub directory
10168         * support/regression/ports/host/spec.mk: prevent removal of testfwk.o
10169         * support/regression/Makefile: improvements for 'make -j';
10170         side effect: it's simpler and faster now
10171
10172 2003-03-31  Borut Razem <borut.razem AT siol.net>
10173
10174         * src/z80/main.c: link-{port} and as-{port} defined without path
10175         * src/src.dsp: support/Util/MySystem.h and src/SDCCutil.h added to project
10176
10177 2003-03-31  Bernhard Held <bernhard AT bernhardheld.de>
10178
10179         * Makefile, src/Makefile.in: add dependencies, so that 'make -j' works
10180
10181 2003-03-30  Borut Razem <borut.razem AT siol.net>
10182
10183         * support/Util/BuildCmd.c, support/Util/BuildCmd.h: rewrite buildCmdLine(),
10184           changed type of list parameter to set
10185         * src/ds390/main.c: changed type of parameter asmOptions to set in _tininative_do_assemble()
10186         * src/port.h: changed type of do_assemble() parameter to set
10187         * src/SDCCmain.c: type of asmOptions changed to set, introduced setParseWithComma(),
10188           sdcpp defined without path, removed variable VersionString, introduced set binPathSet,
10189           definition of "cppoutfilename" macro with NULL value in preProcess()
10190         * src/SDCCglobl.h: included "SDCCset.h", added declaration of setParseWithComma()
10191         * src/SDCCglue.c: removed variable VersionString, inroduced spacesToUnderscores()
10192         * support/Util/MySystem.c, support/Util/MySystem.h: rewrite, char *ExePathList[]
10193           replaced with set *binPathSet
10194         * shash_add() deallocates the item, if allready exsists, before adding the new one
10195         * src/SDCCmacro.c: handling macros with empty or NULL values in _evalMacros()
10196
10197 2003-03-30  Scott Dattalo  <scott AT dattalo.com>
10198
10199         * src/pic/gen.c: Commit patch from Steve Tell <tell AT telltronics.org> that fixes
10200           a nested for loop bug in the PIC port
10201         * src/regression/nestfor.c: new regression test file Steve wrote to test nested
10202           for loops
10203
10204 2003-03-29  Bernhard Held <bernhard AT bernhardheld.de>
10205
10206         * support/Util/dbuf.h: remove C++ stuff to make it portable
10207
10208 2003-03-28  Borut Razem <borut.razem AT siol.net>
10209
10210         * src/SDCC.lex: Fix for bug #711240: dynamic buffer handling of C
10211           literal strings in stringLiteral()
10212         * support/Util/dbuf.c, support/Util/dbuf.h: added: dynamic buffer handling
10213         * src/Makefile.bcc, src/Makefile.in, src/src.dsp: added support/Util/dbuf.c
10214           to the project
10215
10216 2003-03-27  Paul Stoffregen <paul AT pjrc.com>
10217
10218         * src/SDCCpeeph.c (pcDistance): accurate byte distance for mcs51
10219
10220 2003-03-26    <johan AT balder>
10221
10222         * src/mcs51/gen.c (saveRegisters): catched symbol abuse
10223         * src/ds390/gen.c (saveRegisters): catched symbol abuse
10224         * src/SDCCast.c (decorateType): fixed " -v < 3"
10225
10226 2003-03-23  Bernhard Held <bernhard AT bernhardheld.de>
10227
10228         * doc/cdbfile.html: removed, replaced by cdbfileformat.lyx
10229         Added Lenny Story's debug infrastructure changes:
10230         * src/Makefile.in:  added new files cdbFile.c and SDCCdebug.c
10231         * src/Makefile.bcc: added new files cdbFile.c and SDCCdebug.c
10232         * src/cdbFile.c: added
10233         * src/SDCCdebug.c: added
10234         * src/SDCCdebug.h: added
10235         * src/SDCCast.c (createFunction)
10236         * src/SDCCglue.c (emitRegularMap, emitStaticSeg, emitOverlay, glue)
10237         * src/SDCCmain.c (parseCmdLine, main)
10238         * src/SDCCmem.c (redoStackOffsets)
10239         * src/SDCCsymt.c (cdbStructBlock, cdbTypeInfo, cdbSymbol, cdbStruct, cdbStructBlock)
10240         * src/SDCCsymt.h
10241         * src/common.h
10242         * src/avr/gen.c (genAVRCode)
10243         * src/ds390/gen.c (gen390Code)
10244         * src/mcs51/gen.c (gen51Code)
10245         * src/pic/gen.c (genpic14Code)
10246         * src/pic/glue.c (pic14emitRegularMap, pic14emitStaticSeg, pic14emitOverlay, picglue)
10247         * src/xa51/gen.c (genXA51Code)
10248         * src/SDCCast.c: fixed "void foo(void){char c; -c < 0;}"
10249
10250 2003-03-22  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10251
10252         * src/mcs51/gen.c (genCodePointerGet): quicker code for bug #700797
10253         * src/mcs51/peeph.def: added rules 177, 241.x to 243, touched 181, 182.x, 193.x
10254
10255 2003-03-22    <johan AT balder>
10256
10257         * src/SDCCicode.c (geniCodeDerefPtr): fixed bug #698231
10258
10259 2003-03-21  Bernhard Held <bernhard AT bernhardheld.de>
10260
10261         * support/scripts/sdcc_mingw32: adapted to configure from autoconf 2.54
10262         * doc/cdbfileformat.lyx: added, written by Lenny Story
10263         * doc/Makefile: added cdbfileformat.lyx
10264         * doc/clean.mk: added cdbfileformat.lyx
10265
10266 2003-03-20  Bernhard Held <bernhard AT bernhardheld.de>
10267
10268         * src/mcs51/peeph.def: fix bug #705773
10269
10270 2003-03-20    <johan AT balder>
10271
10272         An sfr/sbit can have an "at #" AND an initializer
10273         * src/SDCCsymt.c (checkSClass):
10274         * src/SDCCmem.c (allocGlobal):
10275         * src/SDCCmem.c (allocLocal):
10276         * src/SDCCast.c (createBlock):
10277
10278 2003-03-17  Bernhard Held <bernhard AT bernhardheld.de>
10279
10280         * src/ds390/peeph.def: fix bug #704878: added rule 213.b suggested by Jan Rejlek
10281
10282 2003-03-16    <johan AT balder>
10283
10284         Undid the hackup of const and volatile, the problem is much bigger
10285         * src/SDCC.y:1.65
10286         * src/SDCCast.c:1.171
10287         * src/SDCCglue.c:1.138
10288         * src/SDCCicode.c:1.146
10289         * src/SDCCsymt.c:1.150
10290         * src/SDCCval.c:1.65
10291
10292 2003-03-15  Bernhard Held <bernhard AT bernhardheld.de>
10293
10294         * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #703541
10295         * src/ds390/gen.c (genAddrOf): fixed bug #704087
10296
10297 2003-03-13    <johan AT balder>
10298
10299         Hackup const and volatile modifiers in type chains a bit:
10300         * src/SDCC.y:1.63
10301         * src/SDCCast.c:1.169
10302         * src/SDCCglue.c:1.136
10303         * src/SDCCicode.c:1.143
10304         * src/SDCCsymt.c1.146
10305         * src/SDCCsymt.h1.59
10306         * src/SDCCval.c:1.63
10307
10308 2003-03-12    <johan AT balder>
10309
10310         * src/SDCCBBlock.h: more LRH debugging junk
10311         * src/SDCCcflow.h: more LRH debugging junk
10312         * src/SDCCloop.c: more LRH debugging junk
10313         * src/SDCC.y (struct_declaration): fixed bug #697590
10314         * src/SDCCsymt.[hc] (cloneSpec): NEVER EVER use this again
10315         * src/ds390/gen.c (aopForRemat): fixed bug #700031
10316         * src/SDCCglue.c (emitStaticSeg): fixed bug #700797
10317
10318 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
10319         * src/SDCCpeeph.c: quit being lazy and made proper fix (peephole
10320         test function names must now match exactly).
10321         * src/SDCCcse.c: added special case in findCheaperOp to allow
10322         extending a short integer. Makes less awful code for bug 700121 test case.
10323
10324 2003-03-11  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10325
10326         * as/mcs51/lkmain.c: Added ASlink-Warning to messages
10327         * as/mcs51/lkaomf51.c: Fixed bug when linking asmblink example
10328
10329 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
10330
10331         * src/SDCCpeeph.c: fix so that operandsNotEqualX functions are
10332         actually called (operandsNotEqual() was called for all
10333         operandsNotEqualX tests).
10334
10335 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
10336
10337         * src/SDCCcse.c: fix findCheaperOp to prevent replacing int types
10338         with shorter literals. Fixes bug 700121.
10339
10340 2003-03-11    <johan AT balder>
10341
10342         * src/SDCCsymt.c (compareType): a (void *) can be assigned to any pointer
10343
10344 2003-03-11  Bernhard Held <bernhard AT bernhardheld.de>
10345
10346         * src/SDCCloop.c (mergeRegions): an evil beast is dead
10347         * src/SDCCmain.c (preProcess): minor cleanup: eliminate preOutName
10348
10349 2003-03-10  Borut Razem <borut.razem AT siol.net>
10350
10351         * src/SDCCmain.c: pipe preprocessor's output
10352         * support/Util/MySystem.c, support/Util/MySystem.h: added my_popen()
10353         * sdcc_vc_in.h: define pclose as _pclose for WIN32
10354         * src/SDCCglue.c, src/SDCCglue.h: added set pipeSet, added function closePipes,
10355         which closes all pipes in pipeSet set
10356         * src/SDCCset.c: free deleted item in function deleteSetItem()
10357         * src/src.dsp, src/z80/z80.dsp: files support/Util/BuildCmd.c and support/Util/MySystem.c
10358         moved from z80 to src subproject
10359         * .version: increased version number to 2.3.4
10360
10361 2003-03-10  Bernhard Held <bernhard AT bernhardheld.de>
10362
10363         * support/regression/ports/mcs51/spec.mk: increase timeout for CF's sparc to 30s
10364         * support/regression/ports/ds390/spec.mk: increase timeout for CF's sparc to 25s
10365         * support/regression/ports/xa51/spec.mk: fix typo
10366
10367 2003-03-09  Bernhard Held <bernhard AT bernhardheld.de>
10368
10369         * src/SDCCglobl.h: PATH_MAX is already defined in mingw32 headers
10370
10371 2003-03-09  Borut Razem <borut.razem AT siol.net>
10372
10373         * src/SDCCmain.c: pipe preprocessor's output
10374         * support/Util/MySystem.c, support/Util/MySystem.h: added my_popen()
10375         * sdcc_vc_in.h: define pclose as _pclose for WIN32
10376         * src/SDCCglue.c, src/SDCCglue.h: added set pipeSet, added function closePipes,
10377         which closes all pipes in pipeSet set
10378         * src/SDCCset.c: free deleted item in function deleteSetItem()
10379         * src/src.dsp, src/z80/z80.dsp: files support/Util/BuildCmd.c and support/Util/MySystem.c
10380         moved from z80 to src subproject
10381
10382 2003-03-09  Borut Razem <borut.razem AT siol.net>
10383
10384         * src/SDCCglue.c: re-implemented tempfilename() and tempfile(): using mkstemp() if available
10385         * src/SDCCsymt.h: fixed MSVC and BORLANDC compilation (included SDCCglobl.h instead srccconf.h)
10386         * sdcc_vc_in.h: explicitly undefined HAVE_MKSTEMP which is not available on BORLANDC and MSVC
10387         * src/SDCCset.h: removed inclusion of sdccconf.h or sdcc_vc.h
10388         * src/SDCCglobl.h: unification of WIN32 native definitions
10389
10390 2003-03-09  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10391
10392         * src/mcs51/gen.c: applied in-/dec patch mentioned on sdcc-devel 2003-03-01
10393
10394 2003-03-08  Bernhard Held <bernhard AT bernhardheld.de>
10395
10396         * src/configure.in:   check for endianess (even while cross-compiling)
10397         * src/configure:      check for endianess (even while cross-compiling)
10398         * src/configure_in.h: check for endianess (even while cross-compiling)
10399         * src/avr/gen.c:        remove old endianess stuff
10400         * src/mcs51/gen.c:      remove old endianess stuff
10401         * src/ds390/gen.c:      remove old endianess stuff
10402         * src/pic/gen.c:        remove old endianess stuff
10403         * src/pic/genarith.c:   remove old endianess stuff
10404         * src/pic/glue.c:       fix endianess check
10405         * src/pic16/gen.c:      remove old endianess stuff
10406         * src/pic16/genarith.c: remove old endianess stuff
10407         * src/pic16/glue.c:     fix endianess check
10408         * src/xa51/gen.c:       remove old endianess stuff
10409         * src/z80/gen.c:        fix endianess check
10410         * src/SDCCglue.c:       fix endianess check
10411         * src/ds390/peeph.def: fix bug 700036
10412
10413 2003-03-08  Bernhard Held <bernhard AT bernhardheld.de>
10414
10415         * src/SDCCsymt.h: use appropriate data-types on host for SDCC's int and long
10416         * src/configure: find appropriate data-types on host for SDCC's int and long
10417         * src/configure.in: find appropriate data-types on host for SDCC's int and long
10418         * src/sdccconf_in.h: find appropriate data-types on host for SDCC's int and long
10419         * src/xa51/gen.c: use %d, not %ld for 4 byte variables
10420
10421 2003-03-07    <johan AT balder>
10422
10423         Just a big NOOP:
10424                 some minor cleanups before the big shot
10425                 OP_DEFS and OP_USES now use Kevin's protection
10426                 new option --nolabelopt
10427
10428         * src/SDCCBBlock.c:
10429         * src/SDCCast.c,:
10430         * src/SDCCcflow.c:
10431         * src/SDCCcse.c:
10432         * src/SDCCicode.c:
10433         * src/SDCCicode.h:
10434         * src/SDCClabel.c:
10435         * src/SDCCloop.c:
10436         * src/SDCCmain.c:
10437         * src/ds390/ralloc.c:
10438         * src/mcs51/ralloc.c:
10439         * src/pic/ralloc.c:
10440         * src/xa51/ralloc.c:
10441         * src/z80/ralloc.c:
10442
10443 2003-03-06  Bernhard Held <bernhard AT bernhardheld.de>
10444
10445         * src/pic/pcode.c (get_op): fix 64 bit warnings
10446         * src/pic/pcode.c (pCode2str): fix 64 bit warnings
10447         * src/SDCChasht.c (newHashTable): fix 64 bit warnings
10448         * src/SDCCsymt.c (checkTypeSanity): fix 64 bit warnings
10449         * support/regression/tests/malloc.c: fix 64 bit warnings
10450
10451 2003-03-04  Bernhard Held <bernhard AT bernhardheld.de>
10452
10453         * src/mcs51/gen.c (genMinus): fixed bug 696436
10454
10455 2003-03-02  Borut Razem <borut.razem AT siol.net>
10456
10457         * src/SDCCmain.c: added BORLANDC, corrected MSVC in printVersionInfo()
10458
10459 2003-02-26  Bernhard Held <bernhard AT bernhardheld.de>
10460
10461         * configure.in: test for mkstemp
10462         * sdccconf_in.h: add HAVE_MKSTEMP
10463
10464 2003-02-24  Bernhard Held <bernhard AT bernhardheld.de>
10465
10466         * device/include/ctype.h: removed warning while using --stack-auto
10467         * device/include/malloc.h: removed warning while using --stack-auto
10468         * device/include/string.h: removed warning while using --stack-auto
10469
10470 2003-02-23  Borut Razem <borut.razem AT siol.net>
10471
10472         * src/asm.h: corrected assertion in function printILine(): _pipe() was not executed on MSVC,
10473         because NDEBUG is defined (see man assert)
10474         * sdcc_vc_in.h: vsnprintf is defined as _vsnprintf on MSVC
10475
10476 2003-02-23  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10477
10478         * src/mcs51/gen.c (genUminusFloat): avoided dptr in-/decrement for xdata variables
10479         * src/mcs51/peeph.def: added rule suggested by Gernot Fink, white space/comment changes
10480
10481 2003-02-18  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10482
10483         * src/SDCCpeeph.c: added peephole conditions testing for same arguments
10484         * src/mcs51/peeph.def: added rules 238a-d which remove redundant moves
10485
10486 2003-02-18    <johan AT balder>
10487
10488         * as/mcs51/asmain.c (asmbl): module can start with a digit
10489         * as/z80/asmain.c (asmbl): module can start with a digit
10490
10491 2003-02-16  Bernhard Held <bernhard AT bernhardheld.de>
10492
10493         * sim/ucsim/mkecho: inserted #!/bin/sh for Cygwin, so that it's executable
10494         * src/asm.c: fix pipe() for Mingw32
10495
10496 2003-02-15  Bernhard Held <bernhard AT bernhardheld.de>
10497
10498         * src/SDCCglue.h: make tmpfileNameSet available for preOutName
10499         * src/SDCCmain.c (preProcess): make sure, that preOutName will be deleted;
10500         make -V work again; --c1mode reads now from stdin
10501         * doc/sdccman.lyx: added --c1mode
10502         * support/Util/SDCCerr.c: new messages for c1 mode
10503         * support/Util/SDCCerr.h: new messages for c1 mode
10504         * src/SDCC.lex (checkCurrFile): test if fullSrcFileName is NULL for c1mode
10505
10506 2003-02-15    <johan AT balder>
10507
10508         * src/asm.c: new options: --no-c-code-in-asm and --i-code-in-asm
10509
10510 2003-02-14  Bernhard Held <bernhard AT bernhardheld.de>
10511
10512         * doc/sdccman.lyx: Environment variables, -o and other minor things
10513
10514 2003-02-14    <johan AT balder>
10515
10516         * src/xa51/main.c: before anyone really tries to use it :)
10517
10518         * Install doc's in share/sdcc/doc
10519         * removed some obsolete files
10520         * Do a proper make distclean and uninstall
10521         M Makefile.common.in
10522         R sdccbuild.sh
10523         M as/Makefile
10524         M device/include/Makefile.in
10525         M device/lib/Makefile.in
10526         M doc/sdccman.lyx
10527         M link/Makefile
10528         M sim/ucsim/doc/Makefile.in
10529         M src/clean.mk
10530         R src/avr/peeph.rul
10531         R src/xa51/peeph.rul
10532         M support/cpp2/Makefile.in
10533         M support/makebin/Makefile
10534
10535
10536 2003-02-13  Bernhard Held <bernhard AT bernhardheld.de>
10537
10538         * support/regression/ports/host/spec.mk: use cc as host compiler for max osx
10539
10540 2003-02-10  Borut Razem <borut.razem AT siol.net>
10541
10542         * doc/bccinst.txt, packihx/packihx.c, sdcc_vc_in.h, src/SDCCset.h,
10543         support/cpp2/config.in: Borland C++ build doesn't depend on Cygwin configure
10544         * Bcc.ini, Makefile.bcc, as/mcs51/Makefile.bcc,
10545         device/examples/ds390/tinitalk/Makefile.bcc, packihx/Makefile.bcc,
10546         support/cpp2/Makefile.bcc, src/Makefile.bcc, src/avr/Makefile.bcc,
10547         src/ds390/Makefile.bcc, src/izt/Makefile.bcc, src/mcs51/Makefile.bcc,
10548         src/pic/Makefile.bcc, src/pic16/Makefile.bcc, src/xa15/Makefile.bcc,
10549         src/z80/Makefile.bcc: Borland Makefile cleanup
10550         * as/z80/Makefile.bcc: Added Borland Makefile
10551         * support/cpp2/borland.h: Removed
10552
10553 2003-02-10  Bernhard Held <bernhard AT bernhardheld.de>
10554
10555         * doc/sdccman.lyx: new pragma NOIV by "Johannes Stezenbach" <js AT convergence.de>
10556         * src/SDCC.lex: new pragma NOIV
10557         * src/SDCCglobl.h: new pragma NOIV
10558         * src/SDCCmem.c: new pragma NOIV
10559
10560 2003-02-09  Bernhard Held <bernhard AT bernhardheld.de>
10561
10562         * src/SDCCmain.c: signal handling is switched off by SDCC_LEAVE_SIGNALS
10563
10564 2003-02-09  Bernhard Held <bernhard AT bernhardheld.de>
10565
10566         * src/SDCCmain.c: signal handling is switched off by --debug
10567         * doc/Makefile: small fix for install; use clean.mk again
10568         * doc/clean.mk: clean *.pdf and *.html too
10569
10570 2003-02-08  Bernhard Held <bernhard AT bernhardheld.de>
10571
10572         * device/lib/_mulint.c: small fix for large/ds390 --int-long-reent resp. --stack-auto
10573         * device/lib/printfl.c: fix a ds390 bug by making it portable
10574         * src/SDCCsymt.c (initCSupport): fix compile warning on Cygwin
10575         * src/SDCCopt.c (cnvToFloatCast): fix compile warning on Cygwin
10576         * src/SDCCopt.c (cnvFromFloatCast): fix compile warning on Cygwin
10577         * debugger/mcs51/cmd.c: converted multi-line string literals
10578         * sim/ucsim/globals.cc: converted multi-line string literals
10579         * src/SDCCmain.c: introduced signal handler to remove temp files
10580         * doc/Makefile: small tweaks, implement clean
10581         * doc: removed generated files
10582
10583 2003-02-05  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10584
10585         * as/mcs51/aslink.h, as/mcs51/lkihx.c, as/mcs51/lkrloc.c:  Applied
10586         patch from Jan Rejlek <jr AT apex-lib.cz> to fix Bug 677692: "Extended
10587         Address Record is not correctly generated for DS390."
10588
10589 2003-02-02  Borut Razem <borut.razem AT siol.net>
10590
10591         * Makefile.bcc: removed non existing cpp project and non compilable izt project from makefile
10592         * as/mcs51/asm.h: fixed compilation with Borland C
10593         * support/cpp2/Makefile.bcc: added rule to generate auto-host.h
10594         * support/cpp2/auto-host_vc_in.h: fixed compilation with Borland C
10595         * src/mcs51/mcs51a.dsp: corrected misspelled project name from msc51a to mcs51a
10596         * src/avr/Makefile.bcc, src/ds390/Makefile.bcc, src/izt/Makefile.bcc,
10597         src/mcs51/Makefile.bcc, src/pic16/Makefile.bcc, src/xa51/Makefile.bcc,
10598         src/z80/Makefile.bcc: delete $(LIB) only if exist
10599         * src/Makefile.bcc, src/pic/Makefile.bcc:  fixed compilation with Borland C
10600
10601 2003-02-02  Bernhard Held <bernhard AT bernhardheld.de>
10602
10603         * device/include/malloc.h: introduced NULL
10604         * device/include/string.h: introduced NULL
10605         * device/include/stdlib.h: introduced NULL
10606         * device/lib/_memcpy.c: removed NULL
10607         * device/lib/_strcat.c: removed NULL
10608         * device/lib/_strchr.c: removed NULL
10609         * device/lib/_strcmp.c: removed NULL
10610         * device/lib/_strcpy.c: removed NULL
10611         * device/lib/_strcspn.c: removed NULL
10612         * device/lib/_strlen.c: removed NULL
10613         * device/lib/_strncat.c: removed NULL
10614         * device/lib/_strncmp.c: removed NULL
10615         * device/lib/_strncpy.c: removed NULL
10616         * device/lib/_strpbrk.c: removed NULL
10617         * device/lib/_strrchr.c: removed NULL
10618         * device/lib/_strspn.c: removed NULL
10619         * device/lib/_strstr.c: removed NULL
10620         * device/lib/_strtok.c: removed NULL
10621         * device/lib/malloc.c: removed NULL, include own header
10622
10623 2003-02-02    <johan AT balder>
10624
10625         * 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
10626         * support/regression/fwk/lib/testfwk.c: div and mod isn't broken anymore
10627         * regressions ds390/spec.mk and mcs51/spec.mk (timeout): my good old balder isn't fast enough for some tests
10628         * src/z80/gen.c (genZ80Code): added c-lines in asm comments
10629         * as/z80/asm.h (NINPUT): increased for long c-comments in regression tests
10630         * src/z80/gen.c (genRightShiftLiteral): fixed the (char)(-3)>>8 (I think)
10631
10632 2003-02-01  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10633
10634         * src/SDCCmain.c: Fixed bug 678574: "ds390: ASlink-Error-Stack overlaps
10635         area 'DATA'"
10636
10637 2003-02-01    <johan AT balder>
10638
10639         * src/SDCCval.c (valBitwise): fixed Karl's "2 | (1<<8)"
10640
10641 2003-01-31    <johan AT CP255758-A>
10642
10643         * src/ds390/main.c (_ds390_genAssemblerPreamble): applied Jan Rejlek's >64K startup patch
10644
10645 2003-01-30    <johan AT balder>
10646
10647         * src/SDCCBBlock.c: automatic bug detection
10648         * src/SDCCicode.c: automatic bug detection
10649
10650 2003-01-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10651
10652         * src/SDCCglobl.h:   now --xram-size 0 works
10653         * src/SDCCmain.c:    now --xram-size 0 works
10654
10655 2003-01-29    <johan AT balder>
10656
10657         * src/almosteverything: changed OP_DEFS and OP_USES from macros to functions to catch symbol abuse (a hot topic in the bug list :)
10658
10659 2003-01-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10660
10661         * as/mcs51/aslink.h: Added options --xram-size and --code-size
10662         * as/mcs51/lkdata.c: Added options --xram-size and --code-size
10663         * as/mcs51/lkmain.c: Added options --xram-size and --code-size
10664         * as/mcs51/lkmem.c:  Added options --xram-size and --code-size
10665         * src/SDCCglobl.h:   Added options --xram-size and --code-size
10666         * src/SDCCmain.c:    Added options --xram-size and --code-size
10667
10668 2003-01-28  Bernhard Held <bernhard AT bernhardheld.de>
10669
10670         * src/ds390/gen.c: fix deps by replacing <common.h> with "common.h"
10671         * src/SDCC.lex: rename P_OVERLAY to P_OVERLAY_ for cross-gcc 3.2 MINGW32
10672
10673 2003-01-27    <johan AT balder>
10674
10675         * src/SDCC.y: fixed bug #613764
10676
10677 2003-01-26    <johan AT balder>
10678
10679         * src/SDCClrange.c:  fixed Bernhard's "char * code ptr = &c"
10680         * src/SDCCsymt.h: fixed bug #673374
10681         * src/SDCCglue.c: fixed bug #661910
10682         * src/SDCCast.c: fixed bug #458099 and 673374
10683
10684 2003-01-26  Bernhard Held <bernhard AT bernhardheld.de>
10685
10686         * as/mcs51/strcmpi.c: added, provides Aurelien Jarno's as_strcmpi(); strcmpi() is not ANSI
10687         * as/mcs51/strcmpi.h: added
10688         * as/mcs51/asm.h: remove ugly "#define strcmpi strcmp"
10689         * as/mcs51/aslink.h: remove ugly "#define strcmpi strcmp"
10690         * as/mcs51/asmain.c: strcmpi -> as_strcmpi
10691         * as/mcs51/assym.c: strcmpi -> as_strcmpi
10692         * as/mcs51/lkmem.c: strcmpi -> as_strcmpi
10693         * as/mcs51/lknoice.c: strcmpi -> as_strcmpi
10694         * as/mcs51/lksym.c: strcmpi -> as_strcmpi
10695         * as/mcs51/Makefile.aslink: new module strcmpi
10696         * as/mcs51/Makefile.asx8051: new module strcmpi
10697         * as/mcs51/Makefil.bcc: new module strcmpi
10698         * as/mcs51/Makefile.in: new module strcmpi
10699         * sim/ucsim/s51.src/uc390.cc (get_mem_size): make RAM big enough for tinibios
10700
10701 2003-01-26    <johan AT balder>
10702
10703         * src/SDCCglue.c: reverted back to 1.124
10704         * src/SDCCast.c: reverted back to 1.156
10705         * src/mcs51/gen.c (aopGet): applied Frieder's efficiency patch
10706
10707 2003-01-25    <johan AT balder>
10708
10709         * src/SDCCglue.c: A better fix for bug #661910
10710         * src/SDCCast.c: A better fix for bug #661910
10711         * src/SDCCglue.c (emitRegularMap): That was a little too efficient
10712
10713 2003-01-24  Bernhard Held <bernhard AT bernhardheld.de>
10714
10715         * src/Makefile.in: remove spawn.o
10716         * src/SDCCmain.c: remove spawn.h
10717         * src/SDCCmain.c (printVersionInfo): report MINGW32 instead of UNIX
10718         * src/spawn.c: removed
10719         * src/spawn.h: removed
10720         * support/regression/ports/ds390/spec.mk: link with -r
10721
10722 2003-01-24    <johan AT CP255758-A>
10723
10724         * src/ds390/gen.c (aopOp): fixed bug #667458
10725         * src/SDCCglue.c (emitRegularMap): fixed bug #458099 again
10726         * src/SDCCast.c (createIvalCharPtr): fixed bug #661910
10727         (createIvalCharPtr): an ival doesn't always have a storage class anymore
10728
10729 2003-01-24  Bernhard Held <bernhard AT bernhardheld.de>
10730
10731         * src/mcs51/peeph.def: better assembler identation by Frieder
10732         * src/mcs51/gen.c: better assembler identation by Frieder
10733
10734 2003-01-22  Bernhard Held <bernhard AT bernhardheld.de>
10735
10736         * as/z80/string.h: removed for gcc 3.2
10737         * support/makebin/makebin.c: #include <string.h> for gcc 3.2
10738         * src/pic/pcode.c (get_op_from_instruction): fix concatenation of string literals with __FUNCTION__ for gcc 3.2
10739
10740 2003-01-19  Bernhard Held <bernhard AT bernhardheld.de>
10741
10742         * src/SDCCmain.c (linkEdit): rename mem and map files even in case of failure
10743         * src/SDCCpeeph.c (replaceRule): fix bug #663503
10744         * support/regression/Makefile: separate temp files for ports
10745         * support/regression/generate-cases.py: separate temp files for ports
10746         * src/mcs51/peeph.def: Frieder: removed 237 (obsolete by 236g and 105); added 237 a/b
10747         * src/ds390/peeph.def: Frieder: removed 237 (obsolete by 236g and 105); added 237 a/b
10748
10749 2003-01-19  Bernhard Held <bernhard AT bernhardheld.de>
10750
10751         * moved tinitalk to device/examples/ds390
10752
10753 2003-01-14  Bernhard Held <bernhard AT bernhardheld.de>
10754
10755         * as/mcs51/lkmem.c: rflag is for DS390
10756         * src/SDCCglobl.h: removed out_name and options stackOnData, genericPtr
10757         * src/SDCCmain.c (optionsTable, setDefaultOptions): removed --stack-after-data and --generic
10758                          (linkEdit): move mem- and map-files the same way as ihx-files
10759         * src/z80/main.c (_setDefaultOptions): removed --generic
10760         * src/SDCCmain.c (_processC1Arg, parseCmdLine, main): --c1mode works again
10761         * src/SDCCglue.c (createInterruptVect, glue): --c1mode works again
10762         * src/pic/glue.c (picglue): --c1mode works again
10763         * src/pic16/glue.c (pic16glue): --c1mode works again
10764         * src/asm.c (printCLine): fix #660034
10765
10766 2003-01-13  Bernhard Held <bernhard AT bernhardheld.de>
10767
10768         * src/ds390/peeph.def: fix #123; add 14 rules by Fiorenzo D. Ramaglia <fd.ramaglia AT tin.it>, 1 by Frieder
10769         * src/mcs51/peeph.def: fix #123; add 14 rules by Fiorenzo, 1 by Frieder
10770         * src/mcs51/gen.c (genFunction): emit r0 instead of ar0 by Fiorenzo
10771         * as/mcs51/lkmem (summary): better fix for sp problem
10772         * src/SDCCglue.c (glue): __start_stack - 1, saves 1 byte!
10773         * src/ds390/main.c (_ds390_finaliseOptions, _tininative_finaliseOptions): stack_loc = 0x400008
10774         * support/regression/ports/*/spec.mk: moving testfwk-object to port dir allow parallel execution of regression tests
10775                                               remove --stack-after-data
10776
10777 2003-01-12  Bernhard Held <bernhard AT bernhardheld.de>
10778
10779         * src/SDCCmain.c (main): port->finaliseOptions() moved for z80 linking
10780         * src/SDCCutil.c (join): ugly bug: missing '\0'
10781         * as/mcs51/lkmem.c (summary): sp on address 7 is safe
10782
10783 2003-01-11  Bernhard Held <bernhard AT bernhardheld.de>
10784
10785         * src/SDCCmain.c (assemble, linkEdit): preparations for -o
10786         * src/port.h: typo
10787         * src/pic/main.c (_asmCmd): gpasm supports -o
10788         * src/z80/main.c: more general macros
10789         * device/lib/Makefile.in: remove intermediate files
10790
10791 2003-01-11  Bernhard Held <bernhard AT bernhardheld.de>
10792
10793         * .version: Bumped version number to 2.3.3
10794         * src/SDCCBBlock.c: new option -o
10795         * src/SDCCglobl.h: new option -o
10796         * src/SDCCglue.c: new option -o
10797         * src/SDCCmain.c: new option -o
10798         * src/asm.c: new option -o
10799         * src/ds390/main.c: new option -o
10800         * src/pic/glue.c: new option -o
10801         * src/pic/pcode.c: new option -o
10802         * src/pic/ralloc.c: new option -o
10803         * src/pic16/glue.c: new option -o
10804         * src/pic16/pcode.c: new option -o
10805         * src/pic16/ralloc.c: new option -o
10806         * src/z80/main.c: new option -o
10807         * device/lib/Makefile.in: use -o
10808         * support/regression/ports/ds390/spec.mk: use -o
10809         * support/regression/ports/gbz80/spec.mk: use -o
10810         * support/regression/ports/mcs51/spec.mk: use -o
10811         * support/regression/ports/mcs51-stack-auto/spec.mk: use -o
10812         * support/regression/ports/z80/spec.mk: use -o
10813         * support/regression/ports/ucz80/spec.mk: use -o
10814         * support/regression/ports/xa51/spec.mk: use -o
10815         * support/regression/fwk/lib/timeout.c: fix usage string
10816
10817 2003-01-09  Bernhard Held <bernhard AT bernhardheld.de>
10818         * src/mcs51/gen.c (genPlus): replaced "mov b,acc" by "mov b,a" Fiorenzo D. Ramaglia <fd.ramaglia AT tin.it>
10819
10820 2003-01-07    <johan AT balder>
10821
10822         * src/SDCCast.c (decorateType): fixed bug #600035
10823
10824 2003-01-07  Bernhard Held <bernhard AT bernhardheld.de>
10825         * as/mcs51/lkmem.c: added several l-modifiers to printf to remove warnings
10826         * as/mcs51/lkaomf51.c: #include <ctype.h> to remove warnings
10827         * src/pic/main.c (_hasNativeMulFor): outcommented unused variables to remove warnings
10828         * src/pic/pcode.c: outcommented unused variable to remove warnings
10829         * src/pic/ralloc.c: outcommented unused variable to remove warnings
10830
10831 2003-01-06    <karl AT turbobit.com>
10832         * sim/ucsim/cmd.src/command.cc: fixed so "break xram r 0x7654" works again in
10833    regression tests.
10834
10835 2003-01-06    <johan AT balder>
10836
10837         * src/SDCCicode.c: fixed array add
10838
10839 2002-01-05  Bernhard Held <bernhard AT bernhardheld.de>
10840         * src/SDCCmacro.c: MAX_STRING_LENGTH increased to 2048; was too small for regression tests
10841         * support/regression/ports/host/support.c: #include <stdarg.h> for gcc 3.2
10842
10843 2003-01-04    <johan AT balder>
10844
10845         * src/SDCCval.c (getNelements): fixed the initialized array of structures
10846
10847 2002-12-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10848         * as/mcs51/Makefile.bcc: fixed typo lkomf51.o -> lkaomf51.o
10849
10850 2002-12-28  Bernhard Held <bernhard AT bernhardheld.de>
10851         * src/mcs51/peeph.def: added rules 234 and 235 from Frieder Ferlemann <frieder.ferlemann AT web.de>
10852         * support/regression/tests/bug-524697.c: fit mem usage into 8032
10853
10854 2002-12-28  Bernhard Held <bernhard AT bernhardheld.de>
10855         * src/mcs51/gen.c (aopGetUsesAcc): inserted missing "return FALSE"
10856
10857 2002-12-27  Bernhard Held <bernhard AT bernhardheld.de>
10858         * as/mcs51/Makefile.in: fixed typo lkomf51.o -> lkaomf51.o
10859
10860 2002-12-26  Bernhard Held <bernhard AT bernhardheld.de>
10861         * src/mcs51/main.c: removed {bindir}{sep} from aslink
10862
10863 2002-12-10  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10864
10865     * in /sdcc/as/mcs51/ changed these files in order to create an
10866     aomf51 file: aslink.h, lkdta.c, lklex.c, lklibr.c, lklist.c,
10867     lkmain.c.  Also added: lkmem.c and lkaomf51.c.  Changed the
10868     following files to include the previous two files: aslink.dsp,
10869     Makefile.aslink, Makefile.bcc, and Makefile.in.
10870
10871     * Changed /sdcc/src/SDCCmain.c so it creates files with extension
10872     .adb instead of .cdb
10873
10874 2002-11-09  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10875
10876         * /sdcc/as/mcs51/lklist.c: Now reports memory usage using the
10877         value from option --iram-size.
10878
10879 2002-09-20  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10880
10881         * /sdcc/as/mcs51/lklist.c: added boundary check before using
10882         dram[] array.
10883
10884 2002-09-18    <wiml AT hhhh.org>
10885
10886         * SDCClrange.h: exposed setFromRange() and setToRange()
10887         * mcs51/ralloc.c: fixed over-eager packRegsForSupport() and
10888           packRegsForAccUse() (bug 542397)
10889         * mcs51/gen.c: MOVA() is now a function to avoid calling aopGet()
10890           multiple times and emitting the fetch operations more than once
10891           added aopGetUsesAcc() function to allow binary operators to
10892           fetch their operands in the correct order; made genMinus() emit
10893           compact code for X = LITERAL - Y
10894
10895 2002-09-00  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10896         * /sdcc/as/mcs51/lklist.c: Fixed incorrect number of parameters to
10897         sprintf() in line 1267.
10898
10899 2002-09-08  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10900         * /sdcc/src/SDCCglue.c: Generate areas REG_BANK_[0-3] only for 8051
10901         like ports.
10902
10903 2002-09-04  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10904         Changes to aslink (All the changes are marked with 'JCF'):
10905
10906         * /sdcc/as/mcs51/aslink.h: External definition of sflag and
10907         summary().
10908
10909         * /sdcc/as/mcs51/lkarea.c: Computes the size of area BSEG_BYTES from
10910         area BSEG.  Also moves, if possible, the DATA area down into the internal
10911         ram so more space is available.
10912
10913         * /sdcc/as/mcs51/lkdata.c: Definition of memory summary output flag
10914         sflag.
10915
10916         * /sdcc/as/mcs51/lklist.c: For the BSEG area report the size in bits,
10917         not bytes.  Function summary() which creates a memory usage summary
10918         file with extension .mem.  Reports of overlaping stack and small stack
10919         size.  If the space for the stack is less than 16 bytes aslink trows a
10920         warning.
10921
10922         * /sdcc/as/mcs51/lkmain.c: Creation of some of the default areas for
10923         the 8051.  Option 'y' for memory summary output file.
10924
10925         Changes to sdcc (All the changes are marked with 'JCF'):
10926
10927         * /sdcc/src/SDCCglobl.h: External definition of RegBankUsed[4].
10928
10929         * /sdcc/src/SDCCglue.c:  If a register bank is used, creates an
10930         overlaying area for it (uses RegBankUsed[4]).
10931
10932         * /sdcc/src/SDCCmain.c: Definition RegBankUsed[4]; marks register
10933         bank zero as used by default.  By default aslink locates the stack
10934         (equivalent to --stack-after-data).  Pass option 'y' to aslink for
10935         the creation of the .mem file.  Delegates the allocation of data area
10936         to aslink (it is not longer 0x30 by default).  If --stack-loc passes
10937         the begining of the stack area to aslink.
10938
10939         * /sdcc/src/SDCCmem.c:  If a register bank is used, marks it so
10940         glue() in SDCCglue.c creates an area for it.
10941
10942 2002-09-03  Borut Razem <borut.razem AT siol.net>
10943         * sdcc/src/SDCCglue.c, sdcc/src/SDCCglue.h, sdcc/src/SDCCmain.c,
10944         sdcc/src/pic/glue.c:
10945         introduced atexit() handler for teporay files removal in case of
10946         errors, assertions, ...
10947
10948 2002-08-29  Borut Razem <borut.razem AT siol.net>
10949         * sdcc/support/cpp2/auto-host_vc_in.h:
10950         re-definition of O_BINARY and other O_XXX as _O_BINARY and _O_XXX, so the problem
10951         with the returned value from read() in sdcc/support/cpp2/cppfiles.c is solved for MSC.
10952         Maybe there is a similar problem with BORLANDC? It should be checked!
10953
10954         * sdcc/src/ds390/ralloc.c, sdcc/src/mcs51/ralloc.c, sdcc/src/z80/ralloc.c:
10955         corrected improper use of assert: the assignment to clr variable was done inside the assert.
10956         In case that NDEBUG was defined, the assert macro was substituted with no-op, so the assignment
10957         was not executed, and the compiler (cl) launched a warning:
10958         ralloc.c(1442) : warning C4700: local variable 'clr' used without having been initialized
10959
10960 2002-08-28  Bernhard Held <bernhard AT bernhardheld.de>
10961         * src/SDCCglue.c (printIvalArray): iterative calculation of array length
10962
10963 2002-08-28  Jesus Calvino-Fraga and Borut Razem <borut.razem AT siol.net>
10964         * sdcc/sdcc.dsw: added sdcpp, sdcppa, yacc, conf projects
10965
10966         * sdcc/src/src.dsp, sdcc/src/avr/avr.dsp, sdcc/src/ds390/ds390.dsp,
10967           sdcc/src/mcs51/mcs51.dsp, sdcc/src/pic/pic.dsp, sdcc/src/z80/z80.dsp,
10968           sdcc/src/xa51/xa51.dsp, sdcc/src/avr/avra.dsp,
10969           sdcc/src/ds390/ds390a.dsp, sdcc/src/mcs51/mcs51a.dsp,
10970           sdcc/src/pic/pica.dsp, sdcc/src/z80/z80a.dsp,
10971           sdcc/src/xa51/xa51a.dsp, sdcc/as/as_z80.dsp,
10972           sdcc/as/aslink.dsp, sdcc/as/asx8051.dsp, sdcc/packihx/packihx.dsp:
10973         - added Release configuration in VS projects
10974         - review of compiler an linker options
10975         - VC .exe files are generated in bin_vc directory, not to interfere
10976           with binaries generated from other projects (cygwin, mingw, bcc ...)
10977
10978         * sdcc/src/yacc.dsp: added
10979
10980         * sdcc/config.dsp, sdcc/configure_vc.awk, sdcc/sdcc_vc_in.h:
10981         added - genarate sdcc_vc.h using sdcc_vc_in.h as template
10982         and insert the version number definitions from .version
10983
10984         * sdcc/support/cpp2/sdcpp.dsp: added - VC project for sdcpp
10985
10986         * sdcc/support/cpp2/sdcppa.dsp, sdcc/support/cpp2/auto-host_vc_in.h:
10987         added - genarate auto-host.h using auto-host_vc_in.h as template
10988
10989         * sdcc/sdcc_vc.h,
10990         removed from CVS, generated automatically
10991
10992 2002-08-25  Bernhard Held <bernhard AT bernhardheld.de>
10993         * support/scripts/inc2h.pl: use gputils or gpasm (from Nathan Hurst)
10994
10995 2002-08-11  Borut Razem <borut.razem AT siol.net>
10996         * support/Util/NewAlloc.c: removed unneeded #include "sdccconf.h" (suggested by Jesus Calvino-Fraga)
10997
10998 2002-08-10  Borut Razem <borut.razem AT siol.net>
10999         * src/SDCCmain.c (main):
11000         file preOutName was unlinked before closed. This seems to be OK on UNIX and cygwin
11001         platforms, but it doesn't work with Visual Studio: the opened file can not be removed.
11002         The consequence was that some temporary files were not removed.
11003
11004         * src/SDCCglue.c:
11005         unification of code in functions tempfilename() and tempfile():
11006         function tempnam() is defined in Visual Studio 6.0 and .NET
11007
11008         * sdcc/sdcc.dsw: removed project sdcpp, added project xa51a
11009
11010         * sdcc/src/src.dsp, sdcc/src/avr/avr.dsp, sdcc/src/ds390/ds390.dsp,
11011           sdcc/src/mcs51/mcs51.dsp, sdcc/src/pic/pic.dsp, sdcc/src/z80/z80.dsp:
11012         - removed compiler command line option /WX: Treats all warnings as errors
11013         - update a list of source files, included into the project
11014
11015         * sdcc/src/avr/avra.dsp, sdcc/src/ds390/ds390a.dsp, sdcc/src/mcs51/mcs51a.dsp,
11016           sdcc/src/pic/pica.dsp, sdcc/src/z80/z80a.dsp:
11017         changed project type to Generic Project so that can be correcly converted to VS.NET project
11018
11019         * sdcc/as/mcs51/asm.h: definition of PATH_MAX for MSC
11020
11021         * sdcc/src/SDCCast.c: solved MSC error in function decorateType()
11022
11023         * sdcc/src/SDCC.y: added missing ending ';' to rules to get rid of bison warnings
11024
11025         * dcc/src/ds390/ralloc.c, sdcc/src/mcs51/ralloc.c:
11026         added return 0 statements after assert() to make compiler happy
11027
11028         * sdcc/src/xa51/peeph.rul, sdcc/src/xa51/peeph.def, sdcc/src/z80/ralloc.c:
11029         added newline in the def file to keep MSC compiler satisfied
11030
11031         * sdcc/src/z80/gen.c:
11032         - function strcasecmp() is not defined in MSC (and probably also in BORLANDC),
11033           so it is replaced with STRCASECMP, which is defined as stricmp in case of MSC and BORLANDC
11034         - solved MSC error in function aopDump()
11035
11036         * sdcc_vc.h: define PREFIX as "\\sdcc"
11037
11038 2002-07-18  Bernhard Held <bernhard AT bernhardheld.de>
11039         * src/SDCCast.c (decorateType): fixed access to array of structures http://sourceforge.net/mailarchive/forum.php?thread_id=902690&forum_id=4107
11040
11041 2002-06-22  Scott Dattalo <scott AT dattalo.com>
11042         * src/pic/*: Numerous bug fixes. Flow analysis has been enhanced.
11043         - Rewrote the register banking algorithm.
11044         - Added pCode live-range analysis to registers (for now, only non-used and
11045         singly-used registers optimized away)
11046
11047         * src/pic/pcoderegs.[ch]: Added new files for pCode live-range analysis
11048
11049         * 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.
11050
11051 2002-05-10  Scott Dattalo <scott AT dattalo.com>
11052         * src/pic/*: Added support for multiplication. Fixed many,many bugs.
11053
11054 2002-04-22  Michael Hope  <michaelh AT vroom>
11055
11056         * device/lib/z80/printf.c: Changed emitter to volatile to work around a pcall bug.
11057
11058         * configure.in (DD_COPT): Added include support required for gbdk.
11059
11060         * .version: Bumped version number just to increase it.
11061
11062         * src/SDCCmain.c: Added -nostdinc to the default options.
11063
11064 2002-04-15  Michael Hope  <michaelh AT vroom>
11065
11066         * device/lib/z80/printf.c (sprintf): Added.
11067
11068         * src/z80/ralloc.c (packRegisters): Disabled pack HL use for GB as it's broken.
11069
11070         * src/z80/peeph.def: Added transpose redundent load rule.
11071
11072         * src/z80/main.c: Added force callee saves for jaune.
11073
11074         * src/port.h: Removed the i186 and tlcs-900h ports as they weren't being being developed.
11075
11076         * src/SDCCmain.c: Pulled the options definition out so that you can add port specific options without changing the main file.
11077
11078 2002-03-28  Johan Knol  <johan AT balder>
11079
11080         * src/SDCCval.c: fixed bug #532436
11081
11082 2002-03-14  Scott Dattalo <scott AT dattalo.com>
11083         * /src/port.h:
11084         Added "char *Processor" field to the port structure.
11085
11086         * /src/SDCCmain.c:
11087         Added -p option. Allows port dependent processor to be specified.
11088
11089         * all ports:
11090         Initialized the new field char *Processor field to NULL in all ports
11091
11092         * /src/pic/*:
11093         Compiler generated registers for interrupt context saving
11094         were not getting allocated.
11095
11096 2002-03-16  Sandeep Dutta  <sandeep AT ddi.com>
11097
11098         * /src/SDCCast.c:
11099         Fixed left shift. Will promote the left side of a left shift
11100         if a) left shifting more than size of operand or b) when assigned
11101         to something size > size of left side
11102
11103 2002-03-14  Scott Dattalo <scott AT dattalo.com>
11104         * src/pic/*
11105         tons of changes. Register allocation has been
11106         rewritten. Added customization for the various PICs. Flow
11107         analysis is restructured. ...
11108
11109         * src/pic/device.h:
11110         Added
11111
11112         * src/pic/device.c:
11113         Added. device.c is a PIC port hack to accomodate variations
11114         in PIC devices.
11115
11116 2002-03-13  Michael Hope  <michaelh AT vroom>
11117
11118         * src/z80/gen.c (genGenPointerGet): Fixed a bug where a pointer in HL is dereferenced into HL but HL is not spilled.  Yeah.
11119
11120 2002-03-04  johanknol  <johanknol AT manik>
11121
11122         * /src/SDCCval.c: fixed
11123
11124         const unsigned char arr[][2] = { { 0, 1 } };
11125         t18.c:1: error: Initializer element is not constant
11126
11127 2002-03-04  bela  <bela AT manik>
11128
11129         * /device/include/mcs51reg.h:
11130         ds89c420 register definition update
11131
11132 2002-03-03    <johan AT FRIJA>
11133
11134         * support/Util/SDCCerr.c: did something, but don't no why anymore
11135
11136         * support/regression/tests/bug-524691.c: made it a little less shy
11137
11138         * src/SDCCast.c (decorateType): fixed bug #524697
11139
11140         * src/SDCCast.c: made some lineno improvements
11141
11142         * src/SDCCval.c (getNelements): changed warning to error
11143
11144         * src/SDCCglue.c (printIvalArray): changed warning to error
11145
11146         * src/SDCCicode.c: fixed a warning for mingw
11147
11148         * src/SDCCast.c (decorateType): fixed the << promotion for ops
11149
11150         * src/SDCCicode.c (geniCodeDivision): divide is shift only for unsigned (bug #524685)
11151
11152 2002-03-02  Sandeep Dutta  <sandeep AT ddi.com>
11153
11154         * src/ds390/peeph.def:
11155         Added some more peephole rules
11156
11157         * src/ds390/gen.c: Various fixes & enhancements
11158
11159         * src/SDCClrange.c, src/SDCClrange.h:
11160         functions "alldefsoutofrange" and "notusedinblock" moved to SDCClrange.c
11161
11162         * src/ds390/ralloc.c:
11163         various fixes & enhancements (ds390) specific
11164
11165         * src/avr/ralloc.c, src/mcs51/ralloc.c, src/pic/ralloc.c, src/xa51/ralloc.c, src/z80/ralloc.c:
11166         Functions "allDefsOutOfRange" & "notUsedinBlock" moved to SDCClrange.c
11167         from rallocs.
11168
11169         * sdcc/src/SDCCcse.c: Better fix for bug # 514308
11170
11171 2002-03-02    <johan AT FRIJA>
11172
11173         * src/SDCCast.c (decorateType): fixed bug #524708
11174
11175         * src/SDCCval.c (floatFromVal): fixed the literal void (whatever that may be)
11176
11177         * src/SDCCicode.c (geniCodePtrPtrSubtract): fixed bug #524691
11178
11179 2002-03-01  Michael Hope  <michaelh AT vroom>
11180
11181         * src/SDCCsymt.c (initCSupport): Removed managling of support function names.
11182
11183         * src/z80/ralloc.c (packRegsForIYUse): Fixed fp bug where four byte operands were packed into IY.
11184
11185 2002-03-01    <johan AT FRIJA>
11186
11187         * src/SDCCglue.c (printIvalPtr): fixed bug #524211
11188
11189         * src/SDCCast.c (decorateType): fixed bug #524209
11190
11191         * src/SDCCval.c (valNot): fixed bug #524195
11192
11193 2002-02-26    <johan AT balder>
11194
11195         * src/xa51/gen.c: fixed a warning
11196
11197         * src/SDCCglue.c (printIvalFuncPtr): fixed bug #522534
11198
11199         * src/SDCCast.c (decorateType): fixed bug #522534
11200
11201 2002-02-23    <johan AT balder>
11202
11203         * src/SDCCdflow.c (computeDataFlow): fixed bug #460088
11204
11205 2002-02-22    <johan AT balder>
11206
11207         * src/SDCCast.c: fixed bug #514865
11208
11209         * src/SDCCy.c ("SDCC.y"): fixed bug #516625
11210
11211 2002-02-21  Sandeep Dutta  <sandeep AT ddi.com>
11212
11213         * sdcc/src/SDCCloop.c:
11214         Previous fix was not good. basic blocks that have "break" or "return" are
11215         not really partof a loop , but live ranges used in these blocks should
11216         be live thru the entire loop, so set partOfLoop but don't add them to
11217         loop region
11218
11219 2002-02-21    <johan AT FRIJA>
11220
11221         * src/SDCCcse.c: fixed bug #514308
11222
11223 2002-02-20  Sandeep Dutta  <sandeep AT ddi.com>
11224
11225         * src/SDCCloop.c:
11226         Fixed BUG #519583. If a conditional block ended in a return/break
11227         statement inside a loop, it was not being considered part of the loop.
11228
11229         * src/SDCCcflow.c: Removed fix (Fixed in SDCCloop.c)
11230
11231 2002-02-10  Karl Bongers <karl AT turbobit.com>
11232
11233         * debugger/*:
11234         Fixed up SDCDB debugger somewhat.  Updated debugger/README
11235         with lots of comments and notes.
11236
11237         * device/examples/test2.c:
11238         Fix bug, "red" variable not being initialized(compiler complained).
11239
11240         * device/examples/Makefile, examples/test3.c:
11241         Add Makefile in device/examples folder, compiles test3.c
11242         for use as a multiple module SDCDB test case.
11243
11244         * sim/ucsim/cmd.src/cmdset.cc:
11245         Took out debug printfs in ucsim "next" command.
11246
11247         * sim/ucsim/xa.src:
11248         Karl and Johan start ucsim XA support.  Most dissassembly working,
11249         about 75% emulation done(plenty of work remaining).
11250
11251         * sim/ucsim/z80.src:
11252         Add Z80 support to ucsim, add test-ucz80 regression test,
11253         notice ucsim/z80 emulation fails on examples/test3.c/itoa code.
11254         Notice z80 compiler fails on examples/test3.c/crc code.
11255
11256 2002-01-30  Sandeep Dutta  <sandeep AT ddi.com>
11257
11258         * src/mcs51/gen.c, src/mcs51/main.c, src/mcs51/ralloc.c:
11259         Added support for --parms-in-bank1
11260
11261         * src/ds390/peeph.def:
11262         added a few more peephole optimzations
11263
11264         * src/ds390/main.c:
11265         1) added __builtin_inp & __builtin_outp used to read in data of given length
11266            from a memory mapped port
11267         2) added __builtin_memcmp
11268         3) added __builtin_swapw swap bytes of a short
11269
11270         * src/ds390/gen.c, src/ds390/gen.h, src/ds390/ralloc.c:
11271         1) handle multiple send & receives from register bank1
11272         2) ralloc can now allocate DPTR1 to some liveRanges
11273
11274         * src/SDCCsymt.c, src/SDCCsymt.h:
11275         changes to handle multiple sends & receives
11276
11277         * src/SDCCptropt.h:
11278         added some pointer arithmetic optimization
11279
11280         * src/SDCCptropt.c:
11281         added some pointer arithmetic optimizations but not stable yet so not
11282         called from anywhere (will get this working shortly)
11283
11284         * src/SDCCopt.c: fixed for multiple sends & receives
11285
11286         * src/SDCCmain.c:
11287         1) added options --parms-in-bank1 (ds390/mcs51) & --protect-sp-update
11288         2) preprocessing done AFTER port->finalizeoptions . This allows ports to
11289            set preprocessor defines (depending on options)
11290
11291         * src/SDCCicode.c, src/SDCCicode.h:
11292         changes made to handle multiple sends & receives
11293
11294         * src/SDCCglobl.h:
11295         Added options --protect-sp-update (ds390) and --parms-in-bank1 (ds390/mcs51)
11296
11297         * src/SDCCcse.c, src/SDCCcse.h:
11298         added function findbackward def (to be used in upcoming optimization)
11299
11300         * src/SDCCcflow.c, src/SDCCcflow.h:
11301         added function returnAtEnd - to determine if a basic block terminates with
11302         a RETURN iCode
11303
11304         * src/SDCCast.c, src/SDCCast.h:
11305         added option parms-in-bank1
11306
11307         * device/lib/_divsint.c, device/lib/_divslong.c, device/lib/_divuint.c
11308         * device/lib/_divulong.c, device/lib/_modsint.c, device/lib/_modslong.c
11309         * device/lib/_modulong.c, device/lib/_mulint.c, device/lib/_mullong.c:
11310         adjusted for --parms-in-bank1 option
11311
11312         * device/include/string.h:
11313         donot redefine "reentrant" keyword
11314
11315         * device/include/ds80c390.h: Added some more SFRs
11316
11317 2002-01-28  Bernhard Held  <bernhard AT bernhardheld.de>
11318
11319         * sim/ucsim: Merged branch ucsim-034-pre3 to main trunk; new version 0.4
11320
11321 2002-01-26  Bernhard Held  <bernhard AT bernhardheld.de>
11322
11323         * src/SDCCast.c (funcOfType): fix usage of double --float-reent
11324
11325 2002-01-22  Bernhard Held  <bernhard AT bernhardheld.de>
11326
11327         * support/regression/fwk/lib/testfwk.c (main): Removed workaround for bug #505387
11328
11329 2002-01-18  Paul Stoffregen  <paul AT pjrc.com>
11330
11331         * Added --xram-movc option
11332
11333 2002-01-13  Bernhard Held  <bernhard AT bernhardheld.de>
11334
11335         * support/regression/Makefile: don't include test-mcs51-stack-auto in target all
11336
11337 2002-01-11  Johan Knol
11338
11339         * Added math lib of Jesus Calvino-Fraga
11340
11341 2002-01-08  Bernhard Held  <bernhard AT bernhardheld.de>
11342
11343         * src/SDCCmain.c (processFile): fix processing of ../../src.c
11344         * support/regression/Makefile: new target test-mcs51-stack-auto
11345         * support/regression/ports/mcs51-stack-auto/spec.mk: added
11346
11347 2002-01-04  Bernhard Held  <bernhard AT bernhardheld.de>
11348
11349         * src/SDCCglue.h: printIvalCharPtr(), not printIvalChar()
11350
11351 2002-01-04  Bernhard Held  <bernhard AT bernhardheld.de>
11352
11353         * support/regression/ports/mcs51/support.c: correct setup of timer / UART
11354
11355 2002-01-03  Bernhard Held  <bernhard AT bernhardheld.de>
11356
11357         * src/SDCCsymt.c (processFuncArgs): fix #498307 by Johan
11358
11359         * src/SDCCglue.h: add definition for printIvalChar()
11360
11361 2002-01-02  Bernhard Held  <bernhard AT bernhardheld.de>
11362
11363         * src/SDCCast.c: fix #498138 by Johan
11364
11365         * src/SDCCglue.c: fix #498138 by Johan
11366
11367 2002-01-02  Bernhard Held  <bernhard AT bernhardheld.de>
11368
11369         * support/regression/Makefile: fix clean
11370
11371         * support/regression/ports/ds390/support.c: fix transmission of last character
11372
11373 2001-12-29  Sandeep Dutta  <sandeep AT ddi.com>
11374
11375         * /sdcc/src/ds390/gen.c:
11376         a) improved computing address of stack variable
11377         b) took out some #if 0 code
11378         c) improved parmBytes adjustment
11379         d) improved genPlusIncr & genMinusIncr
11380         e) genCmp could generate bad code (when left assigned to DPTR)
11381         f) Fixed bug in hasInc
11382
11383         * /sdcc/src/ds390/ralloc.c:
11384         a) packRegsForSupport could mess up live information (Fixed)
11385         b) packRegsDPTRuse could be incorrect for left & right shift
11386
11387         * /sdcc/src/mcs51/ralloc.c:
11388         packRegsForSupport could mess up the live information (Fixed)
11389
11390         * /sdcc/src/mcs51/gen.c: Fixed a bug in hasInc
11391
11392         * /sdcc/src/SDCCast.c:
11393         can reverse a loop even if function call is present as long
11394         as the loop control variable is local & is not passed as parameter
11395
11396 2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>
11397
11398         * /sdcc/ChangeLog: *** empty log message ***
11399
11400         * /sdcc/src/ds390/gen.c, /sdcc/src/ds390/main.c:
11401         More builtin function additions for TININative
11402
11403         * /sdcc/src/ds390/ralloc.c:
11404         Had broken the regression testsuite
11405
11406         * /sdcc/src/SDCCast.c: Fixed a bug in dumptree
11407
11408         * /sdcc/src/SDCCsymt.c, /sdcc/src/SDCCsymt.h:
11409         Added funcattr hasStackParms will be set for reentrant functions when there
11410         are paramteres on the stack, this helps in minimizing frame pointer generation
11411         typeFromStr can handle function pointers now
11412
11413         * /sdcc/doc/builtins.txt, /sdcc/doc/TININative.txt:
11414         *** empty log message ***
11415
11416 2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>
11417
11418         * /src/ds390/gen.c, /src/ds390/main.c:
11419         More builtin function additions for TININative
11420
11421         * /src/ds390/ralloc.c:
11422         Had broken the regression testsuite
11423
11424         * /src/SDCCast.c: Fixed a bug in dumptree
11425
11426         * /src/SDCCsymt.c, /src/SDCCsymt.h:
11427         Added funcattr hasStackParms will be set for reentrant functions when there
11428         are paramteres on the stack, this helps in minimizing frame pointer generation
11429         typeFromStr can handle function pointers now
11430
11431         * /doc/builtins.txt, /doc/TININative.txt:
11432         *** empty log message ***
11433
11434
11435 2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>
11436
11437         * /src/ds390/gen.c, /src/ds390/main.c, /src/ds390/peeph.def, /src/ds390/ralloc.c:
11438         ALPHA version for -mTININative
11439
11440         * /src/izt/i186.c, /src/izt/tlcs900h.c, /src/mcs51/main.c, /src/pic/main.c, /src/z80/main.c, /src/avr/main.c:
11441         updated to reflect changes in the port structure
11442
11443         * /src/port.h:
11444         added function do_assemble (similar to do_link) if non-null this function
11445         will be called to do assembly (-mTININative) requires a multi command
11446         assembly
11447         added function genAssemblerEnd will be called to generate assembler Epilogue
11448
11449         * /src/SDCCsymt.c:
11450         added _JavaNative to debug info printing
11451
11452         * /src/SDCCmain.c: added option --tini-libid
11453         added port->do_assemble function (-mTININative) has a multi command assemble
11454
11455         * /src/SDCCglue.c: Disabled "constExpr" check
11456         added port->genAssemblerEnd function
11457
11458         * /src/SDCCglobl.h: Added option --tini-libid value
11459
11460         * /src/SDCCast.h:
11461         tookout optimizeCompare from the header (has no external references)
11462
11463         * /src/SDCCast.c: made one more function "static"
11464
11465 2001-12-23  Michael Hope  <michaelh AT juju.net.nz>
11466
11467         * src/z80/mappings.i: Added z80asm support.
11468
11469         * src/z80/main.c: Added z80asm support on --asm=z80asm
11470
11471         * src/z80/gen.c: Fixed asm portability issues.
11472
11473         * src/asm.c (tvsprintf): Removed old code, added 'N' for function name.  For extern support.
11474
11475         * src/SDCCglue.c (printExterns): Added global/extern split.
11476
11477 2001-12-17  Bernhard Held  <bernhard AT bernhardheld.de>
11478
11479         * support/regression/Makefile: added test for mcs51 model large
11480
11481         * support/regression/ports/mcs51-large/spec.mk: added test for mcs51 model large
11482
11483         * support/regression/ports/gbz80/spec.mk: added -mgbz80
11484
11485 2001-12-05  Michael Hope  <michaelh AT juju.net.nz>
11486
11487         * src/diff.1 (Index): Many, many optmisiations.  Dhrystone up to 201.
11488
11489 1904-01-06  Michael Hope  <michaelh AT juju.net.nz>
11490
11491         * src/z80/ralloc.c (packRegsForIYUse): Fixed the case where an operand is in direct space.
11492
11493         * src/z80/gen.c (makeFreePairId): Optimised IY load by using a spare pair.
11494
11495 2001-12-02  Bernhard Held  <bernhard AT bernhardheld.de>
11496
11497         * src/mcs51/gen.c (genFunction): avoid excess "inc sp"
11498
11499         * support/regression/tests/simplefloat.c: Port to mcs51.
11500
11501 2001-11-25  Michael Hope  <michaelh AT juju.net.nz>
11502         * support/regression/tests/bug-485362.c: Added.
11503
11504         * support/regression/tests/simplefloat.c (testDivNearOne): Added.
11505
11506         * src/z80/gen.c (aopOp): Fixed case where left and result are in the same spill loc and they have different sizes.
11507
11508         * src/z80/peeph.def: Added rules for optimising two byte compares on the same thing, and to optimise two ptr assign.
11509
11510         * src/z80/gen.c (aopDump): Added a dump function.
11511
11512 2001-11-25  Bernhard Held  <bernhard AT bernhardheld.de>
11513         * sim/ucsim/s51.src/glob.cc: DS390 SFRs and bits added.
11514
11515         * sim/ucsim/s51.src/port.cc: Port 4 and 5 added.
11516
11517         * sim/ucsim/s51.src/regs51.h: DS390 SFRs added.
11518
11519         * sim/ucsim/s51.src/uc390.cc: Some details improved, CKRDY works for tinibios.
11520
11521         * sim/ucsim/s51.src/uc390cl.h: Work in progress.
11522
11523         * sim/ucsim/sim.src/uccl.h: 6 ports for DS390.
11524
11525         * support/regression/fwk/lib/testfwk.c: Run with tinibios.
11526
11527         * support/regression/ports/mcs51/spec.mk: Fine tuninig.
11528
11529         * support/regression/ports/ds390/support.c: Use tinibios.
11530
11531         * support/regression/ports/ds390/spec.mk: Fine tuning, use tinibios.
11532
11533 2001-11-23  Michael Hope  <michaelh AT juju.net.nz>support/regression/tests/bug-460010.c
11534
11535         * src/z80/ralloc.c (packRegsForHLUse3): Changed to not pack into HL if anything is in direct space.
11536         (packRegsForHLUse3): Added packing support for send, cast, and return value from a call.
11537
11538         * src/z80/peeph.def: Added rules for optimising pushes of part of a pair.
11539
11540         * src/z80/gen.c (emitCall): Changed the stack fixup to not use HL.
11541
11542 2001-11-18  Michael Hope  <michaelh AT juju.net.nz>
11543
11544         * src/z80/gen.c (genCmp): Fixed compare on unsigned.
11545
11546         * src/z80/ralloc.c (packRegsForHLUse3): Created and optimised.
11547         (packRegsForIYUse): Created and optimised.
11548
11549 2001-11-07  Michael Hope  <michaelh AT juju.net.nz>
11550
11551         * support/regression/tests/float.c (testFloatAdd): Fixed up warning.
11552 2001-11-18  Bernhard Held  <bernhard AT bernhardheld.de>
11553
11554         * sdcc/support/regression/tests/bug-460010.c: fix seg violation on host
11555
11556         * sdcc/support/regression/tests/muldiv.c: fix output on mcs51
11557
11558         * sdcc/support/regression/tests/stacks.c: fix DSEG overflow on mcs51
11559
11560 2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>
11561
11562         * sdcc/sim/device/lib/_gptrget.c: mem region 5 (idata) added
11563
11564         * sdcc/sim/device/lib/_gptrput.c: mem region 5 (idata) added
11565
11566 2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>
11567
11568         * sdcc/sim/ucsim/globals.cc: New: IXRAM.
11569
11570         * sdcc/sim/ucsim/stypes.h: New: IXRAM.
11571
11572         * sdcc/sim/ucsim/s51.src/uc390.cc: New: IXRAM.
11573
11574 2001-11-07  Michael Hope  <michaelh AT juju.net.nz>
11575
11576         * src/z80/ralloc.c (packRegsForHLUse): Banned IFXs from being packed into HL.
11577         (packRegsForHLUse): Added rule to pack address of/pointer get for itemps into HL for the Z80.
11578         (packRegsForAccUse2): Added rule to pack hbit IFXs into A.
11579
11580         * src/z80/main.c (_setDefaultOptions): Made float code re-entrant by default.
11581
11582         * src/z80/gen.c (aopGetLitWordLong): Added word support for floats.
11583         (genNotFloat): Added.
11584         (genUminusFloat): Added.
11585
11586         * device/lib/z80/Makefile: Added floating pt stubs.
11587
11588         * device/lib/Makefile.in (Z80SOURCES): Added floating pt support.
11589
11590         * src/z80/gen.c (genIpush): Fixed up a push of one byte when left is in a pair.
11591
11592         * device/lib/_fsadd.c (__fsadd): Fixed up return where the numbers are hugely different.
11593
11594 2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>
11595
11596         * sdcc/sim/ucsim/s51.src/glob.cc: Minor fix.
11597
11598         * sdcc/sim/ucsim/s51.src/regs51.h: Minor fix.
11599
11600         * sdcc/support/regression/Makefile: Add port ds390.
11601
11602         * sdcc/support/regression/ports/mcs51/spec.mk: Minor change.
11603
11604         * sdcc/support/regression/ports/z80/spec.mk: Minor change.
11605
11606         * sdcc/support/regression/ports/ds390/spec.mk: Added.
11607
11608         * sdcc/support/regression/ports/ds390/support.c: Added.
11609
11610         * sdcc/support/regression/ports/ds390/uCsim.cmd: Added.
11611
11612         * sdcc/support/regression/ports/mcs51/timeout.c: Cut.
11613
11614         * sdcc/support/regression/fwk/lib/timeout.c: Paste.
11615
11616 2001-11-04  Michael Hope  <michaelh AT juju.net.nz>
11617
11618         * device/include/malloc.h: Added z80 and gbz80 support.
11619
11620         * device/lib/gbz80/heap.s: Added.
11621
11622         * device/lib/z80/heap.s: Added.
11623
11624         * device/lib/malloc.c: Added z80 and gbz80 support.
11625
11626         * support/regression/tests/malloc.c (testMalloc): Added.
11627
11628         * src/SDCCmain.c (parseCmdLine): Added support for -Wp.
11629
11630         * support/regression/tests/bug-478094.c: Added.
11631
11632         * src/z80/gen.c (commitPair): Fixed silly gbz80/z80 commit to static bug.
11633
11634 2001-11-04  Bernhard Held  <bernhard AT bernhardheld.de>
11635
11636         * sdcc/sim/ucsim/s51.src/uc390cl.h: Improvement for ds390 to run regression tests
11637
11638         * sdcc/sim/ucsim/s51.src/uc390.h: Improvement for ds390 to run regression tests
11639
11640         * sdcc/sim/ucsim/s51.src/regs51.h: Improvement for ds390 to run regression tests
11641
11642         * sdcc/sim/ucsim/s51.src/glob.cc: Improvement for ds390 to run regression tests
11643
11644         * sdcc/support/regression/tests/bug-460010.c: Small change for ds390
11645
11646 2001-11-04  Michael Hope  <michaelh AT juju.net.nz>
11647
11648         * src/z80/peeph-gbz80.def: Removed a bad sub optimisation.
11649
11650 2001-11-03  Michael Hope  <michaelh AT juju.net.nz>
11651
11652         * support/regression/tests/bug-477927.c: Added.
11653
11654         * src/z80/peeph.def: Added minor rules.
11655
11656         * src/z80/gen.c (genPlusIncr): Added an extra plusinc rule.
11657
11658         * src/z80/peeph.def: Added jump optimisation modification.
11659
11660 2001-11-01  Michael Hope  <michaelh AT juju.net.nz>
11661
11662         * src/SDCCmain.c (linkEdit): Added runtime path detection to the mcs51 port.
11663
11664 2001-10-30  Michael Hope  <michaelh AT juju.net.nz>
11665
11666         * support/regression/tests/funptrs.c: Added.
11667
11668 2001-10-29  Michael Hope  <michaelh AT juju.net.nz>
11669
11670         * src/z80/ralloc.c (packRegsForHLUse): Fixed up bad spill due to pushing one byte via HL.
11671
11672 2001-10-28  Michael Hope  <michaelh AT juju.net.nz>
11673
11674         * src/z80/gen.c (genArrayInit): Made it work for on stack arrays.
11675
11676         * src/z80/main.c (gbz80_port =): Added rle support to the gbz80 port.
11677
11678         * src/z80/gen.c (genMinus): Fixed for where the result is one byte.
11679         (movLeft2ResultLong): Created.
11680
11681         * src/z80/ralloc.c (packRegsForHLUse): Added a couple of simple cases for the GB.
11682         (joinPushes): Added.  Joins two char pushes into a word push.
11683
11684 2001-10-27  Michael Hope  <michaelh AT juju.net.nz>
11685
11686         * support/cpp2/Makefile.in (install): Added creation of dest dir.
11687
11688         * support/makebin/Makefile (install): Added creation of dest dir.
11689
11690 2001-10-24 Karl Bongers <karl AT turbobit.com>
11691
11692         * configure.in, configure, Makefile, support/cpp: Removed cpp folder, since we have new cpp2 preprocessor code.
11693
11694 2001-10-21  Michael Hope  <michaelh AT juju.net.nz>
11695
11696         * src/z80/ralloc.c: Turned off faulty pack for one use.
11697
11698         * src/z80/peeph-gbz80.def: Removed redundent restart options.
11699
11700         * src/z80/gen.c (genMult): Added native mul for constants on the z80 and gbz80.
11701
11702 2001-10-21  Bernhard Held  <bernhard AT bernhardheld.de>
11703
11704         * support/regression/Makefile: Improved clean
11705
11706         * support/regression/ports/gbz80/spec.mk: Added clean
11707
11708         * support/regression/ports/host/spec.mk: Added clean
11709
11710         * support/regression/ports/z80/spec.mk: Added clean
11711
11712         * support/regression/ports/mcs51/spec.mk: Added clean, little improvements
11713
11714         * support/regression/ports/mcs51/timeout.c: little improvements
11715
11716 2001-10-17  Michael Hope  <michaelh AT juju.net.nz>
11717
11718         * device/lib/malloc.c (MEMHEADER): Fixed against new pedantic pointers.
11719
11720         * support/regression/fwk/include/testfwk.h: Fixed up to use function pts correctly.
11721
11722         * support/regression/generate-cases.py: Fixed up to use function pts correctly.
11723
11724 2001-10-16  Bernhard Held  <bernhard AT bernhardheld.de>
11725
11726         * support/regression/port/mcs51/spec.mk: add timeout for uCsim
11727
11728         * support/regression/port/mcs51/timeout.c: add timeout for uCsim
11729
11730 2001-10-13  Michael Hope  <michaelh AT juju.net.nz>
11731         * src/z80/gen.c (emitCall): Fixed up missing spill of HL when used to assign the result value.
11732
11733         * src/z80/ralloc.c: Turned off pack for one use as it's quite broken.
11734
11735         * src/SDCCmain.c (linkEdit): Added support for passing a legacy command line through the processor.
11736
11737         * src/mcs51/main.c (_linkCmd): Added bin path to command.
11738
11739         * src/SDCCmain.c (initValues): Added support for when it it called just to link.
11740
11741         * as/mcs51/lklibr.c (libfil;): Turned off 'library file' message.
11742
11743         * src/SDCCval.c (constVal): Fixed usage of 'L' modifier problems on ppc.
11744
11745         * support/regression/tests/longor.c: Added.
11746
11747 2001-10-11  Bernhard Held  <bernhard AT bernhardheld.de>
11748
11749         * as/mcs51/asdata.c: replaced FILENAME_MAX with PATH_MAX
11750
11751         * as/mcs51/aslink.h: define PATH_MAX
11752
11753         * as/mcs51/asm.h: define PATH_MAX
11754
11755         * as/mcs51/asmain.c: replaced FILENAME_MAX with PATH_MAX
11756
11757         * as/mcs51/asnoice.c: replaced FILENAME_MAX with PATH_MAX
11758
11759         * as/mcs51/lklex.c: replaced FILENAME_MAX with PATH_MAX
11760
11761         * as/mcs51/lkmain.c: replaced FILENAME_MAX with PATH_MAX
11762
11763         * src/SDCCglobl.h: define PATH_MAX
11764
11765         * src/SDCCmacro.c: replaced FILENAME_MAX with PATH_MAX
11766
11767         * src/SDCCmain.c: replaced FILENAME_MAX with PATH_MAX
11768
11769 2001-10-11  Michael Hope  <michaelh AT juju.net.nz>
11770
11771         * src/z80/gen.c (gencjneshort): Fixed
11772
11773         * src/z80/ralloc.c (packRegsForHLUse): Added pack into HL for cast then ipush.
11774
11775 2001-10-09  Michael Hope  <michaelh AT juju.net.nz>
11776
11777         * support/regression/tests/bug-469671.c: Added.
11778
11779         * src/z80/gen.c (shiftIntoPair): Fixed up warning.
11780
11781 2001-10-08  Michael Hope  <michaelh AT juju.net.nz>
11782
11783         * src/SDCCmain.c: Added --fommit-frame-pointer option and implemented in the z80 port.
11784
11785         * src/z80/gen.c (genPlus): Fixed to work with extended stack.  Also fixed genMinus, genCmp.  genUMinus is still left.
11786
11787 2001-10-08  Bernhar Held  <bernhard AT bernhardheld.de>
11788
11789         * src/SDCCmain.c (preProcess): added define SDCC_NOOVERLAY
11790
11791         * src/device/lib/_mulint.c  : removed hint: nooverlay bug
11792
11793         * src/device/lib/_mullong.c : removed hint: nooverlay bug
11794
11795         * src/device/lib/_divuint.c : removed hint: nooverlay bug
11796
11797         * src/device/lib/_divulong.c: removed hint: nooverlay bug
11798
11799         * src/device/lib/_moduint.c : removed hint: nooverlay bug
11800
11801         * src/device/lib/_modulong.c: removed hint: nooverlay bug
11802
11803 2001-10-07  Michael Hope  <michaelh AT juju.net.nz>
11804
11805         * 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.
11806
11807         * support/Util/NewAlloc.c (freeTrace): Changed free for the gc case to not free at all.  Fixes runtime segfault.
11808
11809         * support/regression/tests/scott-compare3.c (c_abcd): Fixed up casts.
11810
11811 2001-10-07    <johan AT FRIJA>
11812
11813         * device/lib/gets.c (gets): fixed the return value.
11814
11815 2001-10-06  Michael Hope  <michaelh AT juju.net.nz>
11816         * src/SDCCmain.c (WRITE_SEG_LOC): Fixed up to use Safe_strdup.
11817
11818         * 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.
11819
11820         * 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.
11821
11822         * src/z80/gen.c (genZ80Code): Added de-allocation via trace support.
11823
11824         * src/pic/gen.c: Removed Safe_strdup.
11825
11826         * configure.in: Added option to enable libgc support.
11827
11828         * src/SDCCbitv.c (bitVectnBitsOn): Optimised.
11829         (bitVectUnion): Optimised.
11830         (bitVectIntersect): Optimised.
11831         (bitVectBitsInCommon): Optimised.
11832         (bitVectCplAnd): Optimised.
11833
11834         * support/makebin/makebin.c (usage): Removed getopt as mingw32 doesn't have it.  Sigh.
11835
11836 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
11837
11838         * src/SDCCmain.c: distinguish between assembler debug and plain options
11839
11840         * src/avr/main.c:   remove standard assembler options
11841
11842         * src/ds390/main.c: remove standard assembler options
11843
11844         * src/mcs51/main.c: remove standard assembler options
11845
11846         * src/port.h: removed "PENDING" comment
11847
11848 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
11849
11850         * src/device/lib/_mulint.c  : new, with assember functions
11851
11852         * src/device/lib/_mullong.c : new, with assember functions
11853
11854         * src/device/lib/_divuint.c : with assember functions
11855
11856         * src/device/lib/_divsint.c : with assember functions
11857
11858         * src/device/lib/_divulong.c: with assember functions
11859
11860         * src/device/lib/_divslong.c: with assember functions
11861
11862         * src/device/lib/_moduint.c : with assember functions
11863
11864         * src/device/lib/_modsint.c : with assember functions
11865
11866         * src/device/lib/_modulong.c: with assember functions
11867
11868         * src/device/lib/_modslong.c: with assember functions
11869
11870         * src/device/lib/libint.lib:  replaced _muluint.c  and _mulsint.c  by _mulint.c
11871
11872         * src/device/lib/liblong.lib: replaced _mululong.c and _mulslong.c by _mullong.c
11873
11874         * src/device/lib/Makefile.in: replaced _muluint.c  and _mulsint.c  by _mulint.c
11875                                       replaced _mululong.c and _mulslong.c by _mullong.c
11876
11877 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
11878
11879         * src/SDCCsymt.c: sequence of specifiers in pintTypeChain() corrected
11880
11881 2001-10-01 Bernhard Held <bernhard AT bernhardheld.de>
11882
11883         * src/SDCCglue.c: test, if win32api is available for MINGW
11884
11885 2001-10-01 Bernhard Held <bernhard AT bernhardheld.de>
11886
11887         * src/SDCCsymt.c: no more _modifier in printTypeChain()
11888         * support/regression/tests/driverstruct.c: REENTRANT for mcs51
11889         * support/regression/ports/gbz80/spec.mk: removed GENERIC
11890         * support/regression/ports/host/spec.mk: removed GENERIC
11891         * support/regression/ports/mcs51/spec.mk: removed GENERIC
11892         * support/regression/ports/z80/spec.mk: removed GENERIC
11893
11894 2001-10-01  Michael Hope  <michaelh AT juju.net.nz>
11895
11896         * support/regression/fwk/lib/testfwk.c (__printf): Removed GENERIC.
11897
11898         * support/regression/tests/bug-467035.c: Created.
11899
11900 2001-10-01    <johan AT FRIJA>
11901
11902         * src/SDCC.y: fixed bug #466586 part 1
11903
11904 2001-10-01  Johan Knol <johan.knol AT iduna.nl>
11905
11906         * SDCCicode.c: z80 has no generic pointers
11907         * removed -s from strip in all Makefile(.in)'s. It is not needed, but Solaris chocks on it.
11908
11909 2001-09-30  Michael Hope  <michaelh AT juju.net.nz>
11910
11911         * sim/ucsim/cmd.src/Makefile.in ($(PRJDIR)/libcmd.a): Changed all ar references to $(AR) for Solaris.
11912
11913 2001-09-29  Michael Hope  <michaelh AT juju.net.nz>
11914
11915         * Makefile (sdcc-libs): Added makebin to the list of standard targets.
11916
11917         * support/regression/ports/z80/spec.mk: Updated to use env for sdcc bin dir for automatic regression.
11918
11919 2001-09-25  Michael Hope  <michaelh AT juju.net.nz>
11920
11921         * configure.in: Fixed up so that ucsim is only configured once.
11922
11923         * support/cpp2/configure.in: Fixed to use the program transform to append the .exe for the win32 build.
11924
11925         * src/SDCCutil.c (getPrefixFromBinPath): Fixed up to work with win32 in all of its glory.
11926         (getPathDifference): As above.
11927
11928         * src/SDCCmain.c (preProcess): Changed to use a temporary file in a proper temp directory.  Fixed case where pre-processing only.
11929
11930         * src/SDCCglue.c (tempfilename): Added function for pre-processor.
11931
11932 2001-09-23  Michael Hope  <michaelh AT juju.net.nz>
11933         * .version: Updated to 2.3.1
11934
11935         * src/z80/main.c (z80_port =): Added macro based linker and assembler command line support.
11936         Added copyright header.
11937
11938         * src/SDCCmain.c: Shifted various functions into SDCCutil.c
11939         (assemble): Added support for macro based assembler commands.
11940         (linkEdit): Added support for macro based linker commands.
11941         (preProcess): Changed the pre-processor to use macros.
11942         (_setPaths): Added functionality to autodetect the include, lib and bin dir paths.
11943         (_discoverPaths): Added support for overriding the install directory using the SDCCDIR env variable.
11944
11945         * device/lib/z80/crt0.s: Added module name for debugging.
11946
11947 2001-09-20  Michael Hope  <michaelh AT juju.net.nz>
11948
11949         * src/SDCCmain.c (printVersionInfo): Added the build date to the version info.
11950
11951         * src/SDCChasht.c (hTabDeleteByKey): Fixed delete as it would delete the last item from a bucket even if it wasn't the real one.
11952
11953         * src/SDCCglue.c: Moved gc_strdup to SDCCutil.c
11954
11955         * src/Makefile.in: Added SDCCmacro and SDCCutil
11956
11957 2001-09-19  Michael Hope  <michaelh AT juju.net.nz>
11958
11959         * src/SDCCmain.c (printVersionInfo): Added the build date to the version info.
11960
11961 2001-09-16    <johan AT FRIJA>
11962
11963         * 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.
11964
11965 2001-09-15    <johan AT FRIJA>
11966
11967         * src/mcs51/ralloc.c: (findAssignToSym): fixed bug #460662 part 1
11968         * src/ds390/ralloc.c (findAssignToSym): fixed bug #460662 part 1
11969
11970 2001-09-11    <johan AT FRIJA>
11971
11972         * src/SDCCval.c (valDiv Mod Minus Plus Shift): keep litteral expressions as small as possible (bug #460010)
11973
11974 2001-09-10  Michael Hope  <michaelh AT juju.net.nz>
11975
11976         * support/regression/tests/bug-460444.c: Added test case.
11977
11978         * src/z80/gen.c (genOr): bug 460444: if (a ^ lit) was broken for &, |, and ^.
11979         (genCast): Added justification for all of the asserts.
11980
11981 2001-09-10  Bernhard Held <bernhard AT bernhardheld.de>
11982
11983         * support/regression/support.c: _xdata replaced by xdata
11984
11985         * support/regression/spec.mk: removed _generic
11986
11987 2001-09-09  Michael Hope  <michaelh AT juju.net.nz>
11988
11989         * src/pic/ralloc.c (debugLogRegType): Removed some old types to get it to compile.
11990
11991         * src/z80/gen.c (shiftR2Left2Result): Improved the case when v = v >> n for small values of n to use less code space and time.
11992         (genrshTwo): Fixed v = v >> n where v is a negative int and n is > 8: bug 460010.
11993
11994         * src/z80/peeph.def: Added a rule to optimise shift then compare.
11995
11996         * support/regression/tests/bug-460000.c (testShiftByParam): Added test case.
11997
11998         * support/regression/tests/bug-460010.c: Added test case.
11999
12000         * support/regression/Makefile (test-host): Removed a silly 'clean' target when testing against gcc.
12001
12002 2001-09-09  Bernhard Held <bernhard AT bernhardheld.de>
12003
12004         * support/regression/Makefile: inter-port-clean adjusted for mcs51
12005
12006         * support/regression/testfwk.c: removed workaround for bug #436344
12007
12008         * support/regression/tests/bp.c: use less memory with mcs51
12009
12010         * support/regression/tests/bug-441448.c: use less memory
12011
12012         * support/regression/tests/ports/mcs51/spec.mk: cleanup, use --stack-after-data
12013
12014         * support/regression/collate-results.py: typo
12015
12016 2001-09-08  Michael Hope  <michaelh AT juju.net.nz>
12017
12018         * support/regression/tests/fetchoverlap.c: Added new test case.
12019
12020         * support/regression/tests/bp.c: Added new test case.
12021
12022         * support/regression/tests/bug-448984.c: Added new test case.
12023
12024         * support/regression/tests/pow2shifts.c: Added new test case.
12025
12026         * src/z80/gen.c: Turned off the noise it normally generates for the release.
12027         (genlshTwo): Fixed right shift for count > 8.
12028
12029         * src/z80/ralloc.c: Disabled most of the ACC packing rules as they weren't getting hit and weren't at all safe.
12030
12031 2001-09-08    <johan AT FRIJA>
12032
12033         * src/SDCCicode.c (geniCodeCall): a CPOINTER can be used as a function
12034
12035 2001-09-07    <johan AT FRIJA>
12036
12037         * src/SDCCicode.c (newiCodeCondition): fixed bug #456235 (1.77)
12038
12039         * src/SDCCglue.c (emitRegularMap): only delete a symbol when it is a symbol
12040
12041 2001-09-06    <johan AT FRIJA>
12042
12043         * src/SDCC.y: this could be a fix for bug #458744 (1.37)
12044         * bernhard noted me at this: "() equals to (void)" (1.38)
12045
12046 2001-09-05    <johan AT FRIJA>
12047
12048         * src/SDCCglue.c (emitRegularMap): a fix for bug #458099/2
12049
12050 2001-09-04    <johan AT FRIJA>
12051
12052         * src/SDCCsymt.c (checkSClass): a fix for bug #458099/1
12053
12054
12055 2001-09-04  Paul Stoffregen  <paul AT pjrc.com>
12056
12057         * pragma noinduction broke memcpy on mcs51 large model.  Moved it inside z80 optimization
12058
12059 2001-09-03  Michael Hope  <michaelh AT juju.net.nz>
12060
12061         * link/z80/aslink.h: Fixed path for PATH_MAX
12062
12063 2001-09-02  Michael Hope  <michaelh AT juju.net.nz>
12064
12065         * src/z80/gen.c (fetchLitPair): Changed so that it properly caches direct space references.
12066
12067         * support/regression/tests/addsub.c: Added cases to cover all the +, - combinations.
12068
12069         * support/regression/tests/uminus.c: Added a test for the unary minus operator.
12070
12071         * 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.
12072
12073 2001-09-01  Michael Hope  <michaelh AT juju.net.nz>
12074
12075         * src/z80/gen.c: Fixed up generator to pass the regresion tests, specifically fixing loads for longs, genCmp, and turned on the map file.
12076         (genCmp): Fixed up genCmp for the GB with longs.
12077
12078         * device/lib/gbz80/Makefile: Fixed up all the libraries to pass the regression tests.
12079
12080         * support/regression/ports/host/spec.mk: Updated to compile with the new type specifiers.
12081
12082         * device/lib/Makefile.in (Z80SOURCES): Removed old _mululong, _mulslong, and unneeded _mulint.
12083
12084         * device/lib/_mullong.c (_mulslong): Changed to actually return a value :)
12085
12086 2001-08-30  Paul Stoffregen  <paul AT pjrc.com>
12087
12088         * added peepholes 223 to 231 to mcs51 port.  These improve code when using large model.
12089
12090 2001-08-30  Michael Hope  <michaelh AT juju.net.nz>
12091
12092         * 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.
12093
12094         * src/z80/gen.c (genPlus): Changed bad long add for gb to a fall through.
12095
12096 2001-08-29  Michael Hope  <michaelh AT juju.net.nz>
12097
12098         * link/z80/aslink.h: Fixed long file name support.  Is now based off PATH_MAX instead of a constant.
12099
12100         * src/z80/gen.c: Fixed add and sub for the case where left or right are in static space.
12101
12102 2001-08-30 Bernhard Held   <bernhard AT bernhardheld.de>
12103
12104   * sim/ucsim/configure:    little improvement of Cygwin-detection
12105   * sim/ucsim/configure.in: little improvement of Cygwin-detection
12106   * sim/ucsim/cmd.src/newcmdcl.h: include <sys/types.h> to define fd_set automated build
12107   * support/regression/tests/bug-221100.c: small changes for mcs51
12108   * support/regression/tests/bug-221168.c: small changes for mcs51
12109   * support/regression/tests/bug-227710.c: small changes for mcs51
12110   * support/regression/tests/staticinit.c: small changes for mcs51
12111   * as/mcs51/aslink.h: accept everything as symbol name in rel-files, bug fix ID 452601
12112   * as/mcs51/lklex.c:  accept everything as symbol name in rel-files, bug fix ID 452601
12113   * as/mcs51/lksym.c:  accept everything as symbol name in rel-files, bug fix ID 452601
12114
12115 $Revision$