7c7c4a311c21723a6f106b051a0867db005dbfe4
[fw/sdcc] / ChangeLog
1 2008-03-05 Borut Razem <borut.razem AT siol.net>
2
3         * dos/sdccman.lyx: docummented predefined macros SDCC_REVISION,
4           SDCC_PARMS_IN_BANK1, SDCC_FLOAT_REENT and SDCC_INT_LONG_REENT
5
6 2008-03-05 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7
8         * support/librarian/sdcclib.c:Added feature request 1908061: 
9           Synchronise sdcclib commands with ar.
10
11 2008-03-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12
13         * src/SDCCmain.c: added predefined macros SDCC_REVISION (RFE #1907229),
14           and (depending on corresponding compiler option) SDCC_PARMS_IN_BANK1,
15           SDCC_FLOAT_REENT, SDCC_INT_LONG_REENT
16         * device/include/mcs51/compiler.h: removed umlauts, added double
17           underscore
18
19 2008-03-04 Maarten Brock <sourceforge.brock AT dse.nl>
20
21         * src/SDCCptropt.c (ptrPseudoSymConvert): fixed bug 1536762
22         * support/regression/tests/bug1536762.c: new, added
23         * src/SDCCutil.c,
24         * src/SDCCutil.h: added getBuildDate()
25         * src/SDCCmain.c (printVersionInfo),
26         * src/SDCCglue.c (initialComments): use getBuildDate() instead of __DATE__
27         * src/*/ralloc.c: removed IS_OP_RUONLY macro
28         * src/ds390/ralloc.c (packRegisters),
29         * src/mcs51/ralloc.c (packRegisters),
30         * src/z80/ralloc.c (packRegisters): applied fix for bug 1618050, thanks
31           Robert Larice
32         * support/regression/tests/bug1618050.c: new, added
33         * src/SDCCsymt.h: fixed typo in DECLSPEC2TXT
34         * support/regression/fwk/include/testfwk.h,
35         * support/regression/tests/bug1838000.c: moved _AUTOMEM and _STATMEM to
36           testfwk.h
37
38 2008-03-04 Raphael Neider <rneider AT web.de>
39
40         * src/pic/gen.c: removed unused prototypes, prevent internal errors
41           on accessing OP_SYM_TYPE(op)
42         * src/pic/gen.h: removed unused prototype of genMinusDec()
43         * src/pic/genarith.c (genMinus): cosmetic changes, rewritten to
44           fix #1876953 (invalid subtraction code), removed unused code
45
46 2008-03-03 Raphael Neider <rneider AT web.de>
47
48         * src/pic/gen.c,
49         * src/pic/gen.h,
50         * src/pic/genarith.c,
51         * src/pic/ralloc.c,
52         * src/pic/ralloc.h: removed AOP_R0, AOP_R1, AOP_DPTR, AOP_DPTR2,
53           AOP_ACC, and *_IDX and adjusted code, removed unused legacy code
54
55 2008-03-03 Raphael Neider <rneider AT web.de>
56
57         * src/pic/device.c (find_device): search user-specified paths first
58           for pic14devices.txt, fixes #1900827
59
60 2008-03-02 Borut Razem <borut.razem AT siol.net>
61
62         * support/scripts/sdcc.nsi: fixed bug in IsNT, LogicLib-isation of
63           AddToPath and RemoveFromPath
64
65 2008-03-01 Borut Razem <borut.razem AT siol.net>
66
67         * support/scripts/sdcc.nsi: reverted MULTIUSER page since it didn't
68           work correctly, added debugging support if -DSDCC.DEBUG command line
69           option is defined
70
71 2008-02-28 Borut Razem <borut.razem AT siol.net>
72
73         * doc/sdccman.lyx: cosmetic changes
74
75 2008-02-28 Maarten Brock <sourceforge.brock AT dse.nl>
76
77         * src/mcs51/ralloc.c (fillGaps): fixed bug 1839671
78         * doc/sdccman.lyx: fixed unmeant removal of spaces
79
80 2008-02-27 Borut Razem <borut.razem AT siol.net>
81
82         * support/scripts/sdcc.nsi: corrected installation directory for
83           current user installation mode
84         * doc/README.txt: added Philipp Klaus Krause to the developers list
85
86 2008-02-27 Maarten Brock <sourceforge.brock AT dse.nl>
87
88         * src/mcs51/gen.c (genUnpackBits): don't generate ifxJump, instead return
89           ifx condition
90           (genNearPointerGet, genPagedPointerGet, genFarPointerGet,
91           genCodePointerGet, genGenPointerGet): cleanup aop before generating
92             ifxJump to fix bug 1838000
93         * src/SDCCsymt.c (aggregateToPointer): fix problem for xstack
94         * support/regression/tests/bug1838000.c: new, added
95         * device/include/mcs51/cc1110.h: new, added, thanks to Pravin Angolkar
96
97 2008-02-26 Borut Razem <borut.razem AT siol.net>
98
99         * src/SDCCast.c, doc/sdccman.lyx: fixed RFE #1901171: inerger promotion
100           of casted varargs
101         * support/scripts/sdcc.nsi: added MULTIUSER page,
102           NSIS upgraded to version 2.35
103
104 2008-02-25 Maarten Brock <sourceforge.brock AT dse.nl>
105
106         * src/mcs51/ralloc.c (isSpiltOnStack): fixed bug 1565152
107         * support/regression/tests/bug1565152.c: new, added
108
109 2008-02-25 Maarten Brock <sourceforge.brock AT dse.nl>
110
111         * src/mcs51/gen.c (genPagedPointerSet): fixed bug 1670148
112         * support/regression/ports/mcs51-xstack-auto/spec.mk: added expf.c
113         * support/regression/tests/bug1670148.c: new, added
114
115 2008-02-25 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
116
117         * device/include/mcs51/at89c51ed2.h: fixed bug 1901469.
118
119 2008-02-24 Borut Razem <borut.razem AT siol.net>
120
121         * src/SDCCast.c, src/SDCCast.h: fixed bug #1874922: explicit typecast
122           is ineffective for unsigned char parameter
123
124 2008-02-24 Maarten Brock <sourceforge.brock AT dse.nl>
125
126         * src/SDCCast.c (expandInlineFuncs): fixed bug 1875869
127         * src/SDCCglue.c (printIvalBitFields): fixed bug 1806631
128         * support/regression/tests/bitopcse.c: removed hc08 exception, see testfwk.h
129         * support/Util/MySystem.c (my_system): output errorcode when verbose
130
131 2008-02-22 Philipp Klaus Krause <pkk AT spth.de>
132
133         * src/z80/gen.c (genMult): Rewrote 8-bit multiplication by constant,
134           implements #1898231
135
136 2008-02-22 Philipp Klaus Krause <pkk AT spth.de>
137
138         * device/lib/z80/mul.s: Rewrote __muluchar_rrx_s, to improve 8-bit mult.,
139           implements #1896290
140
141 2008-02-22 Maarten Brock <sourceforge.brock AT dse.nl>
142
143         * src/SDCCast.c (createIvalStruct): fixed bug 1466761
144
145 2008-02-21 Borut Razem <borut.razem AT siol.net>
146
147         * support/regression/Makefile.in,
148           support/regression/ports/ds390/spec.mk,
149           support/regression/ports/hc08/spec.mk,
150           support/regression/ports/mcs51-common/spec.mk,
151           support/regression/ports/pic14/spec.mk,
152           support/regression/ports/pic16/spec.mk,
153           support/regression/ports/ucz80/spec.mk,
154           support/regression/ports/xa51/spec.mk:
155           added CFLAGS when compiling timeout
156
157 2008-02-20 Philipp Klaus Krause <pkk AT spth.de>
158
159         * support/regression/tests/bugs-1596270-1736867.c: Regression test for
160           #1596270, #1736867
161
162 2008-02-20 Maarten Brock <sourceforge.brock AT dse.nl>
163
164         * src/SDCClrange.c (findPrevUse): fixed bug 1888147
165         * support/regression/tests/bug1888147.c: new, added
166
167 2008-02-20 Philipp Klaus Krause <pkk AT spth.de>
168
169         * src/z80/gen.c: fixed bugs #1596270, #1736867
170
171 2008-02-20 Philipp Klaus Krause <pkk AT spth.de>
172
173         * src/z80/gen.c: fixed bug in register pair loading when swapping register
174           contents, mostly fixes #1596270
175
176 2008-02-20 Philipp Klaus Krause <pkk AT spth.de>
177
178         * src/z80/peeph.def,
179         * src/z80/peeph-z80.def: moved peephole that breaks gbz80 to z80-specific
180           peepholes, fixes #1806565
181
182 2008-02-20 Maarten Brock <sourceforge.brock AT dse.nl>
183
184         * src/SDCCpeeph.c (operandBaseName): added check for @Ri
185         * src/mcs51/peeph.def (rule 177.c): added operandsNotRelated(%1 %3)
186           fixes bug 1739475, thanks Robert Larice
187           (rule 271): new, added
188
189 2008-02-18 Borut Razem <borut.razem AT siol.net>
190
191         * sim/ucsim/s51.src/Makefile.in: fixed error made in previous commit
192
193 2008-02-17 Maarten Brock <sourceforge.brock AT dse.nl>
194
195         * src/SDCCmain.c (linkEdit): emit -z when using --debug for z80
196
197 2008-02-17 Raphael Neider <rneider AT web.de>
198
199         * src/pic16/genarith.c,
200         * src/pic16/gen.c,
201         * src/pic16/gen.h,
202         * src/pic16/genutils.c: removed unused legacy code,
203           removed unused fields from struct asmop and struct _G
204
205 2008-02-17 Raphael Neider <rneider AT web.de>
206
207         * src/pic16/gen.c (AccRsh): cosmetic changes,
208           (shiftR1Left2ResultSigned,shiftR1Left2Result,shiftL1Left2Result,
209           genRightShiftLiteral): fixed to work with SFRs as result by
210           assigning only once to result,
211           removed a lot of unused/excluded code fragments
212
213 2008-02-17 Raphael Neider <rneider AT web.de>
214
215         * device/include/pic/pic16f88.h,
216         * device/include/pic/pic16f886.h,
217         * device/include/pic/pic16f887.h: added TRISA6 and TRISA7
218
219 2008-02-17 Borut Razem <borut.razem AT siol.net>
220
221         * src/z80/peeph.def: applied patch
222           #1893626: Optimize tail calls on Z80, thanks to Philipp Krause
223         * src/z80/gen.c, src/z80/peeph.def: applied patch
224           #1893510: Improve logical left shift on Z80, thanks to Philipp Krause
225         * sim/ucsim/avr.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
226           sim/ucsim/s51.src/Makefile.in, sim/ucsim/sim.src/Makefile.in,
227           sim/ucsim/xa.src/Makefile.in, sim/ucsim/z80.src/Makefile.in,
228           sim/ucsim/main_in.mk: renamed libutil.a to libucsimutil.a in order to
229           enable compilation on Mac OS X 10.5 (Leopard) and XCode v3.0
230
231 2008-02-16 Maarten Brock <sourceforge.brock AT dse.nl>
232
233         * as/link/mcs51/aslink.dsp: removed SDK define
234         * as/link/z80/clean.mk: brought in sync with other ports
235         * as/link/z80/lklibr.c (SdccLib, fndsym): handle the dflag here too
236         * as/hc08/Makefile.bcc,
237         * as/mcs51/Makefile.bcc,
238         * as/z80/Makefile.bcc: noice.c was moved to as/asxxsrc/
239         * src/z80/main.c (_setValues): use the now capitalized -Z,
240           (z80_port, gbz80_port): generate debug information when asked
241
242 2008-02-16 Borut Razem <borut.razem AT siol.net>
243
244         * as/z80/asmain.c, as/z80/asm.h, as/z80/asdata.c,
245           as/link/z80/lkmain.c, as/z80/as_gbz80.dsp, as/z80/as_z80.dsp,
246           as/z80/Makefile.in. as/z80/Makefile.bcc:
247           applied patch #1893393: patch for as-z80 and link-z80 to generate
248           cdb, thanks to Armin Diehl
249         * as/*/asnoice.c, as/hc08/as_hc08.dsp, as/hc08/Makefile.in,
250           as/mcs51/asx8051.dsp, as/mcs51/Makefile.in:
251           asnoice.c moved to as/asxxsrc/asnoice.c
252         * src/z80/peeph-gbz80.def: applied patch
253           #1880235: Z80 return peephole, thanks to Philipp Krause
254
255 2008-02-14 Maarten Brock <sourceforge.brock AT dse.nl>
256
257         * .version,
258         * doc/sdccman.lyx: bumped version to 2.7.5
259         * src/SDCCsymt.c (compareType, comparePtrType): fixed bug 1281583
260
261 2008-02-13 Maarten Brock <sourceforge.brock AT dse.nl>
262
263         * device/include/pic16/stdlib.h,
264         * device/lib/pic16/libc/stdlib/ltoa.c,
265         * device/lib/pic16/libc/stdio/vfprintf.c: ascii strings are char*
266
267 2008-02-13 Borut Razem <borut.razem AT siol.net>
268
269         * src/SDCCmain.c, src/SDCCglue.c: fixed --c1mode
270         * src/pic16/glue.c, src/SDCCast.c, src/SDCCast.h, src/SDCCBBlock.c,
271           src/SDCCcse.c, src/SDCCglue.c, src/SDCCicode.c, src/SDCCloop.c,
272           src/SDCCopt.c,  src/SDCCval.c:
273           fixed bug #1890273: SDCC Warning 154 shows wrong filename
274
275 2008-02-12 Maarten Brock <sourceforge.brock AT dse.nl>
276
277         * src/SDCCsymt.c (compareType): fixed bug 1309013
278
279 2008-02-09 Borut Razem <borut.razem AT siol.net>
280
281         * src/SDCCval.c, src/SDCCval.h:
282           code cleaning, added function constChrVal()
283         * src/SDCCglue.c, src/pic/glue.c, src/pic16/glue.c, src/SDCCast.c, src/SDCC.y:
284           call constChrVal() instead constVal()
285
286 2008-02-01 Maarten Brock <sourceforge.brock AT dse.nl>
287
288         * src/SDCCast.c (resolveSymbols): added reentrancy check for parameters
289           of function pointer
290         * src/SDCCerr.h,
291         * src/SDCCerr.c: changed warning W_NONRENT_ARGS to error E_NONRENT_ARGS
292         * support/regression/tests/absolute.c: added TestStruct TestVar (see also
293           bug 1859853)
294
295 2008-02-01 Raphael Neider <rneider AT web.de>
296
297         * device/include/pic/pic16f886.h,
298         * device/include/pic/pic16f887.h: added RA6 and RA7
299
300 2008-01-24 Raphael Neider <rneider AT web.de>
301
302         * device/include/pic/pic16f88.h: added RA6 and RA7
303         * device/lib/pic/libdev/disabled_pic16f886.c,
304         * device/lib/pic/libdev/disabled_pic16f887.c: renamed and enabled
305
306         * src/pic16/devices.inc,
307         * device/include/pic16/pic18f2423.h,
308         * device/include/pic16/pic18f2523.h,
309         * device/include/pic16/pic18fregs.h,
310         * device/lib/pic16/pics.all
311         * device/lib/pic16/libdev/pic18f2423.c,
312         * device/lib/pic16/libdev/pic18f2523.c: added 18f2423 and 18f2523
313         * device/lib/pic16/libio/i2c.ignore,
314         * device/lib/pic16/libio/usart.ignore,
315         * device/lib/pic16/libio/adc.ignore: ignore new devices
316
317 2008-01-23 Maarten Brock <sourceforge.brock AT dse.nl>
318
319         * src/SDCCast.c (createRMW): fixed bug 1582651
320
321 2008-01-20 Borut Razem <borut.razem AT siol.net>
322
323         * src/SDCCcse.c: partially fixed enhancement request
324           #1793872 - multiply by -1 not collapsed
325         * support/regression/tests/arithcsi.c: added regression test
326
327 2008-01-19 Maarten Brock <sourceforge.brock AT dse.nl>
328
329         * as/mcs51/asx8051.dsp: removed define SDK
330         * as/mcs51/i51mch.c (machine): fixed bug 1865114
331         * device/include/asm/ds390/features.h: fixed bug with ds390 & stack-auto
332         * as/link/lklex.c,
333         * as/link/mcs51/lkmain.c: used LKDIRSEP, LKDIRSEPSTR and LKOBJEXT,
334           cosmetic changes, brought more in sync, changed old K&R to ANSI
335
336 2008-01-13 Borut Razem <borut.razem AT siol.net>
337
338         * support/scripts/sdcc.nsi: added Uninstall/reinstall page, ...
339         * src/SDCCicode.c: fixed bug #1870216 - Error 122: dividing by zero
340
341 2007-12-30 Borut Razem <borut.razem AT siol.net>
342
343         * src/pic16/gen.c: fixed implementation of bitwise operations for
344           pic16 target
345         * support/regression/tests/bitwise.c: added test cases
346
347 2007-12-29 Borut Razem <borut.razem AT siol.net>
348
349         * src/SDCCasm.[ch]: renamed from asm[ch], use dbuf_getline(), ...
350         * src/src.dsp, src/Makefile.bcc, src/Makefile.in, src/common.h,
351           src/SDCCglue.c, src/xa51/main.c: asm.[ch] renamed to SDCCasm.[ch]
352         * support/Util/dbuf_string.[ch]: added function dbuf_getline()
353         * src/ds390/gen.c, src/hc08/gen.c, src/mcs51/gen.c, src/pic16/gen.c,
354           src/pic/gen.c, src/z80/gen.c, src/xa51/gen.c, src/pic16/ralloc.c,
355           src/pic16/pcode.[ch]: added const qualifier
356         * as/hc08/Makefile.bcc, as/hc08/Makefile.in, as/hc08/as_hc08.dsp,
357           as/mcs51/Makefile.bcc, as/mcs51/Makefile.in, as/mcs51/asx8051.dsp,
358           as/z80/Makefile.bcc, as/z80/Makefile.in, as/z80/as_gbz80.dsp,
359           as/z80/as_z80.dsp: added dbuf.[ch] and dbuf_string[ch] to project
360         * as/asxxsrc/aslex.c: use dbuf_getline()
361         * as/hc08/asdata.c, as/hc08/asexpr.c, as/hc08/asm.h, as/hc08/m08adr.c,
362           as/mcs51/asdata.c, as/mcs51/asexpr.c, as/mcs51/asm.h,
363           as/mcs51/i51adr.c, as/z80/asdata.c, as/z80/asexpr.c, as/z80/aslist.c,
364           as/z80/asm.h, as/z80/z80adr.c:
365           changed type of ib and ip to const char *
366
367 2007-12-28 Borut Razem <borut.razem AT siol.net>
368
369         * as/asxxsrc/aslex.c: moved from as/mcs51/aslex.c;
370           introduced (readlin) - long lines are turuncated
371         * as/hc08/as_hc08.dsp, as/mcs51/asx8051.dsp, as/z80/as_gbz80.dsp,
372           as/z80/as_z80.dsp, as/hc08/Makefile.in, as/mcs51/Makefile.in,
373           as/z80/Makefile.in: moved aslex.c to asxxsrc
374         * as/hc08/aslex.c, as/z80/aslex.c: deleted
375         * as/hc08/asmain.c, as/mcs51/asmain.c:
376           added missing initialization of a_addr field
377         * support/regression/tests/long_asm_line.c: added regtest for long
378           assembler line
379
380 2007-12-22 Borut Razem <borut.razem AT siol.net>
381
382         * src/SDCC.lex: fixed bug #1852894: # character hangs the compiler
383
384 2007-12-20 Maarten Brock <sourceforge.brock AT dse.nl>
385
386         * src/SDCCsymt.c (computeType): fixed bug, thanks Fan Weiguang
387
388 2007-12-16 Borut Razem <borut.razem AT siol.net>
389
390         * device/include/pic16/stdbool.h: removed, since already exists in
391          device/include/; this also fixes bitopcse.c regression test for pic16
392          target
393         * support/regression/fwk/inclusw/testfwk.h: added macro ASSERT_FAILED
394         * src/pic16/glue.c: fixed bug #1851855: generic static pointer
395           dereference doesn't work; covered by regression test bug1399290
396
397 2007-12-05 Borut Razem <borut.razem AT siol.net>
398
399         * doc/sdccman.lyx: fixed bug #1844509 - Correction to Manual 4.6.9
400           Adding new PIC16
401
402 2007-12-01 Borut Razem <borut.razem AT siol.net>
403
404         * sim/ucsim/cmd.src/cmdmem.cc, sim/ucsim/cmd.src/mem.cc:
405           corrected handling of the highest_valid_address
406
407 2007-11-17 Raphael Neider <rneider AT web.de>
408
409         * src/pic/main.c (_asmCmd): include debug arguments (-g as $3)
410         * src/pic/glue.c (picglue): emit .file if --debug is given
411
412 2007-11-17 Raphael Neider <rneider AT web.de>
413
414         * src/pic16/genarith.c (pic16_genPlus, pic16_genMinus): take special
415         care when left or right operand resides in result, fixes #1830220
416
417 2007-11-17 Borut Razem <borut.razem AT siol.net>
418
419         * src/SDCCglue.c, src/pic16/glue.c: reverted fix for bug
420           #983491 - "Merge duplicate strings function is ineffective"
421         * support/regression/tests/bug-983491.c: regtest disabled
422         * as/asxxsrc: created
423           as/asxxsrc/assym.c, as/asxxsrc/strcmpi.c: moved
424           as/hc08/assym.c, as/mcs51/assym.c, as/strcmpi.c,
425           as/z80/assym.c, as/hc08/asstore.c, as/mcs51/asstore.c: deleted
426           as/hc08/Makefile.bcc, as/hc08/Makefile.in, as/hc08/as_hc08.dsp,
427           as/hc08/asm.h, as/link/hc08/Makefile.bcc, as/link/hc08/Makefile.in,
428           as/link/hc08/link_hc08.dsp, as/link/mcs51/Makefile.bcc,
429           as/link/mcs51/Makefile.in, as/link/mcs51/aslink.dsp,
430           as/link/z80/Makefile.in, as/link/z80/linkgbz80.dsp,
431           as/link/z80/linkz80.dsp, as/mcs51/Makefile.bcc, as/mcs51/Makefile.in,
432           as/mcs51/asm.h, as/mcs51/asx8051.dsp, as/z80/Makefile.bcc,
433           as/z80/Makefile.in, as/z80/as_gbz80.dsp, as/z80/as_z80.dsp,
434           as/z80/Makefile.as_hc08, as/mcs51/Makefile.asx8051: modified
435           created as/asxxsrc directory, assym.c and strcpi.c moved into it
436
437 2007-11-15 Maarten Brock <sourceforge.brock AT dse.nl>
438
439         * device/include/stdarg.h: added and removed some casts
440         * src/SDCCsymt.c (compareType): Fully check types between generic and
441           non-generic pointers, also accept ptr-ptr to void-ptr assignments
442
443 2007-11-13 Borut Razem <borut.razem AT siol.net>
444
445         * support/regression/tests/bug-1817005.c:
446           added regtest for bug #1817005 - as-z80 chokes on long labels
447
448 2007-11-12 Borut Razem <borut.razem AT siol.net>
449
450         * as\z80\asmain.c, as\z80\asm.h, as\z80\assym.c, as\z80\asdata.c,
451           as\z80\asout.c, as\z80\aslist.c:
452           fixed bug #1817005 - as-z80 chokes on long labels
453
454 2007-11-11 Maarten Brock <sourceforge.brock AT dse.nl>
455
456         * as/hc08/asmain.c,
457         * as/z80/asmain.c: cosmetic changes
458         * as/hc08/alloc.h,
459         * as/mcs51/alloc.h,
460         * as/z80/alloc.h: removed
461         * as/hc08/assym.c,
462         * as/mcs51/assym.c: replaced alloc.h with stdlib.h
463         * as/link/aslink.h: added LKDIRSEP and, LKDIRSEPSTR
464         * as/link/hc08/Makefile.in,
465         * as/link/mcs51/Makefile.in,
466         * as/link/z80/Makefile.in: added -DUNIX to CFLAGS
467         * as/link/lklex.c,
468         * as/link/mcs51/lkarea.c,
469         * as/link/mcs51/lkmain.c: cosmetic changes
470         * as/link/hc08/lklibr.c,
471         * as/link/z80/lklibr.c,
472         * as/link/mcs51/lklibr.c: used LKDIRSEP, LKDIRSEPSTR and LKOBJEXT,
473           used cygwin_conv_to_full_posix_path,
474           added warnings, cosmetic changes, brought more in sync
475           changed old K&R into ANSI function declarations
476         * as/link/z80/lklibr.c (loadAdb): added
477         * as/link/z80/lkmain.c: removed -- option from usage text
478
479 2007-11-03 Maarten Brock <sourceforge.brock AT dse.nl>
480
481         * src/mcs51/gen.c (outBitC): optimized for no result
482
483 2007-10-31 Borut Razem <borut.razem AT siol.net>
484
485         * src/SDCCsymt.c: fixed (hopeful properly) bug
486           #1805702 - order of extern matters
487         * support/regression/tests/bug-1805702.c: enabled regtest for bug
488           #1805702
489
490 2007-10-29 Borut Razem <borut.razem AT siol.net>
491
492         * src/SDCCsymt.c: reverted bad fixed of bug #1805702
493           - order of extern matters
494         * support/regression/tests/bug-1805702.c: disabled regtest for bug
495           #1805702
496
497 2007-10-29 Maarten Brock <sourceforge.brock AT dse.nl>
498
499         * src/ds390/peeph.def: replaced 24bitModeAndPortDS390 by
500           24bitMode, portIsDS390
501         * src/mcs51/gen.c (genOr): optimized for RFE 1750727
502         * src/SDCCpeeph.c (flat24bitModeAndPortDS390): removed
503           (notVolatileVariable): also check sloc names,
504           (callFuncByName): moved ftab[] out of function and sorted it by use
505
506 2007-10-28 Maarten Brock <sourceforge.brock AT dse.nl>
507
508         * device/include/stdarg.h: fixed bug in va_start macro for --xstack
509         * src/hc08/gen.c (aopForRemat): aop->aopu.aop_immd.from_cast_remat not set,
510           aop->aopu.aop_immd.aop_immd2 not filled with (generic) pointer type
511         * src/SDCCicode.c (geniCodeCast): fixed bug 880197
512         * support/regression/tests/bug-880197.c: new, added
513
514 2007-10-28 Borut Razem <borut.razem AT siol.net>
515
516         * support/regression/Makefile.in,
517           support/regression/ports/mcs51-large/spec.mk,
518           support/regression/ports/mcs51-xstack-auto/spec.mk,
519           support/regression/ports/mcs51-stack-auto/spec.mk,
520           support/regression/ports/mcs51-medium/spec.mk,
521           support/regression/ports/mcs51-common/spec.mk,
522           support/regression/ports/mcs51-common/*,
523           support/regression/ports/mcs51-small/*:
524           mcs51 renamed to mcs51-common, created mcs51-small
525         * src/SDCCsymt.c: fixed bug #1805702 - order of extern matters
526         * support/regression/tests/bug-1805702.c: added regtest for bug
527           #1805702
528
529 2007-10-26 Maarten Brock <sourceforge.brock AT dse.nl>
530
531         * src/mcs51/peeph.def: moved rules 257.x to 253.x and re-enabled 253.b,
532           added new rules 265 - 270
533         * support/regression/tests/bug1721024.c:new, added
534         * support/regression/Makefile.in: renamed test-mcs51 to test-mcs51-small,
535           introduced new test-mcs51 to run all mcs51 tests
536
537 2007-10-25 Maarten Brock <sourceforge.brock AT dse.nl>
538
539         * support/regression/tests/bug1816470.c: new, added
540
541 2007-10-21 Maarten Brock <sourceforge.brock AT dse.nl>
542
543         * src/SDCCast.c (resultTypePropagate): do propagate for LEFT_OP, do not
544           propagate for *,+,- with float, fixed bug 1816470
545           (decorateType): cast to resultTypeProp instead of resultType
546
547 2007-10-19 Borut Razem <borut.razem AT siol.net>
548
549         * src/pic16/glue.c: fixed bug #983491 - "Merge duplicate strings
550           function is ineffective" for pic16 tareget
551         * support/scripts/listerr.c: corrected include path
552         * device/lib/_itoa.c: fixed bug #1806402 - _itoa and _uitoa leak to
553           adjacent memory
554
555 2007-10-18 Maarten Brock <sourceforge.brock AT dse.nl>
556
557         * support/regression/tests/using.c: new, added
558         * support/regression/tests/vaargs.c: fixed and enabled test
559
560 2007-10-18 Borut Razem <borut.razem AT siol.net>
561
562         * src/SDCCglue.c: fixed bug #983491 - Merge duplicate strings function
563           is ineffective
564         * support/regression/tests/bug-983491.c: added regtest for bug #983491
565
566 2007-10-18 Maarten Brock <sourceforge.brock AT dse.nl>
567
568         * doc/sdccman.lyx: documented option --Werror
569         * src/SDCCsymt.c (checkFunction): fixed bug 1815418 by setting
570           RegBankUsed[] earlier
571
572 2007-10-14 Maarten Brock <sourceforge.brock AT dse.nl>
573
574         * device/include/mcs51/p89lpc938.h: new, added, thanks Kyle Guinn
575         * src/pic/glue.c,
576         * src/SDCCval.c,
577         * src/SDCCast.c,
578         * src/SDCCast.h: replaced AST_LIT_VALUE with AST_FLOAT_VALUE and
579           AST_ULONG_VALUE
580         * src/SDCCast.c (decorateType): improved optimization of tri-op
581         * src/SDCCerr.c (vwerror, setWError),
582         * src/SDCCerr.h,
583         * src/SDCCmain.c (parseCmdLine): added option --Werror to treat all
584           warnings as errors, thanks Stas Sergeev for PATCH 1813211
585
586 2007-10-13 Maarten Brock <sourceforge.brock AT dse.nl>
587
588         * src/mcs51/gen.c (leftRightUseAcc): use macro IS_OP_ACCUSE
589         * src/SDCCast.c (decorateType): optimize bit=cond?1:0, RFE 1738430
590         * support/regression/tests/bug-223113.c,
591         * support/regression/tests/bug-426632.c,
592         * support/regression/tests/bug-468811.c,
593         * support/regression/tests/bug-477835.c,
594         * support/regression/tests/bug-478094.c,
595         * support/regression/tests/bug-499644.c,
596         * support/regression/tests/bug-524209.c,
597         * support/regression/tests/bug-524211.c,
598         * support/regression/tests/packcast.c,
599         * support/regression/tests/structidx.c: added empty tests
600         * support/regression/tests/bug-607243.c: enabled test
601
602 2007-10-06 Borut Razem <borut.razem AT siol.net>
603
604         * .version, doc/sdccman.lyx: bumped version to 2.7.4 to indicate the full
605            support of universal binaries on Mac OS X
606
607 2007-10-02 Borut Razem <borut.razem AT siol.net>
608
609         * src/SDCCval.h: unified double2ul macro for all platforms
610         * src/SDCCval.c: fixed bug #1777758 - applied Maarten's patch
611         * support/regression/tests/bitwise.c: added regtest for bug #1777758
612
613 2007-09-30 Borut Razem <borut.razem AT siol.net>
614
615         * src/SDCCval.h: fixed bug #1739860 - sdcc does not work correctly on some
616           platforms
617         * sdcc_vc_in.h: enabled warnings
618         * src/hc08/gen.c: fixed MSVC warning C4146: unary minus operator applied to
619           unsigned type, result still unsigned
620         * src/mcs51/peep.c: fixed gcc warning: suggest parentheses around && within ||
621
622 2007-09-28 Raphael Neider <rneider AT web.de>
623
624         * src/pic/device.c (find_device): prevent buffer underflow error
625         * src/pic/pcoderegs.c (OptimizeRegUsage): avoid dereferencing
626           the just destroyed list entry
627
628 2007-09-18 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
629
630         * doc/sdccman.lyx: there's a dedicated wiki page for cmake and sdcc, thanks
631           Alexander Neundorf
632
633 2007-09-18 Borut Razem <borut.razem AT siol.net>
634
635         * src/SDCCval.c: fixed MSVC warning C4146: unary minus operator
636          applied to unsigned type, result still unsigned
637
638 2007-09-17 Borut Razem <borut.razem AT siol.net>
639
640         * src/SDCC.y, src/SDCCast.c, src/SDCCcse.c, src/SDCCglue.c,
641           src/SDCCicode.c, src/SDCCopt.c, src/SDCCsymt.c, src/SDCCval.c,
642           src/SDCCval.h, src/hc08/gen.c, src/avr/gen.c, src/ds390/gen.c,
643           src/mcs51/gen.c, src/pic/gen.c, src/pic/genarith.c, src/pic/glue.c,
644           src/pic/ralloc.c, src/pic16/gen.c, src/pic16/genarith.c,
645           src/pic16/genutils.c, src/pic16/glue.c, src/pic16/main.c,
646           src/z80/gen.c, src/z80/ralloc.c:
647           fixed bug #1739860 - sdcc does not work correctly on some platforms
648           (not finished)
649           introduced and used ulFromVal(), double2ul(), used strtod() instead sscanf()
650
651 2007-09-17 Raphael Neider <rneider AT web.de>
652
653         * src/pic16/device.c: reverted to previous version
654         * device/lib/pic16/Makefile.common.in: quieten gpasm via -Wa,-q
655
656 2007-09-16 Raphael Neider <rneider AT web.de>
657
658         * src/pic16/device.c (pic16_dump_usection): do not reserve 0 bytes,
659           as this raises a ton of gpasm warnings, just emit a second label
660         * src/pic16/devices.inc,
661         * device/lib/pic16/pics.all,
662         * device/lib/pic16/libdev/pic18f2585.c,
663         * device/lib/pic16/libdev/pic18f2680.c,
664         * device/lib/pic16/libdev/pic18f2682.c,
665         * device/lib/pic16/libdev/pic18f2685.c,
666         * device/lib/pic16/libdev/pic18f4585.c,
667         * device/lib/pic16/libdev/pic18f4680.c,
668         * device/lib/pic16/libdev/pic18f4682.c,
669         * device/lib/pic16/libdev/pic18f4685.c,
670         * device/include/pic16/pic18f2585.h,
671         * device/include/pic16/pic18f2680.h,
672         * device/include/pic16/pic18f2682.h,
673         * device/include/pic16/pic18f2685.h,
674         * device/include/pic16/pic18f4585.h,
675         * device/include/pic16/pic18f4680.h,
676         * device/include/pic16/pic18f4682.h,
677         * device/include/pic16/pic18f4685.h,
678         * device/include/pic16/pic18fregs.h: added 18f2585, 18f2680,
679           18f2682, 18f2685, 18f4585, 18f4680, 18f4682, 18f4685,
680           patch contributed by Anton Strobl, applied with changes
681
682 2007-09-16 Raphael Neider <rneider AT web.de>
683
684         * device/include/pic16/pic18f2431.h,
685         * device/include/pic16/pic18f25j10.h,
686         * device/include/pic16/pic18f4431.h,
687         * device/include/pic16/pic18f45j10.h: adopted common include style
688         * device/include/pic16/pic18f1320.h,
689         * device/include/pic16/pic18f2320.h,
690         * device/include/pic16/pic18f2525.h,
691         * device/include/pic16/pic18f4320.h,
692         * device/include/pic16/pic18f4525.h: NEW, just include proper .h file
693         * device/include/pic16/pic18fregs.h: prepared for automatic include
694           file selection by having DEVICE.h for every DEVICE
695         * device/lib/pic16/libdev/pic18f2320.c,
696         * device/lib/pic16/libdev/pic18f4320.c: just include proper .c file
697
698         * device/lib/pic16/configure.in,
699         * device/lib/pic16/configure: use rm -rf instead of rmdir
700         * device/lib/pic16/Makefile.in: use RMDIR to remove build directories
701         * device/lib/pic16/libc/stdlib/free.c: avoid warning on pointer cast
702
703 2007-09-09 Borut Razem <borut.razem AT siol.net>
704
705         * src/SDCCmain.c, src/SDCCutil.c: print newline after printVersionInfo(),
706           distingush between i386 and ppc Mac OS X versions
707
708 2007-09-05 Maarten Brock <sourceforge.brock AT dse.nl>
709
710         * src/mcs51/gen.c (genReceive): fixed bug 1788177
711         * support/regression/tests/bug1788177.c: new, added
712
713 2007-09-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
714
715         * doc/sdccman.lyx: mentioned d52 and cmake, customizing startup code
716         * device/include/mcs51/lint.h added keyword __naked
717
718 2007-09-04 Maarten Brock <sourceforge.brock AT dse.nl>
719
720         * src/pic16/glue.c,
721         * src/pic/glue.c,
722         * src/SDCCmem.h: removed maxRegBank
723         * src/SDCCmem.c (allocVariables): removed maxRegBank and moved setting
724           RegBankUsed[] to checkFunction() in SDCCsymt.c to fix bug 1759839
725         * src/SDCCsymt.c (checkFunction): set RegBankUsed[] here
726         * src/mcs51/peep.c (isCallerSaveFunc, termScanAtFunc): changed function
727           name and behaviour to handle banked functions
728           (scan4op): and use it to fix bug 1786213
729
730 2007-09-03 Raphael Neider <rneider AT web.de>
731
732         * device/include/pic16/pic18f248.h,
733         * device/include/pic16/pic18f258.h,
734         * device/include/pic16/pic18f448.h,
735         * device/lib/pic16/libdev/pic18f248.c,
736         * device/lib/pic16/libdev/pic18f258.c,
737         * device/lib/pic16/libdev/pic18f448.c: fixed TRISEbits,
738           added T0CONbits, fixes #1786891
739
740 2007-08-29 Maarten Brock <sourceforge.brock AT dse.nl>
741
742         * src/ds390/gen.c (genFarPointerSet),
743         * src/hc08/ralloc.c (packRegisters),
744         * src/mcs51/ralloc.c (packRegisters),
745         * src/SDCCcse.c (cseBBlock): check if result is a symbol first to fix
746           bug 1750318
747         * src/SDCCicode.h: POINTER_SET can be true for literals too
748         * support/regression/tests/bug1750318.c: new, added
749
750 2007-08-23 Borut Razem <borut.razem AT siol.net>
751
752         * debugger/mcs51/sdcdb.c: fixed compilation with older readline
753           library versions without the completition functionality
754
755 2007-08-22 Raphael Neider <rneider AT web.de>
756
757         * device/include/pic16/pic18f1220.h,
758         * device/lib/pic16/libdev/pic18f1220.c: applied patch #1776191
759
760 2007-08-12 Borut Razem <borut.razem AT siol.net>
761
762         * debugger/mcs51/Makefile.in: support/Util/SDCCerr.[ch] moved to src
763
764 2007-08-11 Borut Razem <borut.razem AT siol.net>
765
766         * support/Util/SDCCerr.c, support/Util/SDCCerr.h, src/src.dsp,
767           src/Makefile.in, src/Makefile.bcc, support/scripts/listerr.c:
768           support/Util/SDCCerr.[ch] moved to src
769         * as/hc08/as_hc08.dsp, as/link/hc08/link_hc08.dsp,
770           as/link/z80/linkgbz80.dsp, as/link/z80/linkz80.dsp,
771           device/examples/ds390/tinitalk/tinitalk.dsp,
772           device/examples/serialcomm/windows/serialcomm.dsp,
773           support/librarian/librarian.dsp:
774           removed linking of unused odbc32.lib and odbccp32.lib
775         * support/scripts/winres.h:
776           added for compilation with Visual C++ 2005 Express Edition
777
778 2007-08-09 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
779
780         * device/include/mcs51/at89c51ed.h: Fixed typo in declarations of CKCON0
781           and CKCON1.
782
783 2007-08-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
784
785         * sdccconf_in.h: update the endian test so that SPARC Solaris
786           does not throw syntax errors
787
788 2007-08-06 Borut Razem <borut.razem AT siol.net>
789
790         * doc/sdccman.lyx: removed two index entries which prevented the
791           generation of sdcc doc archive
792
793 2007-08-05 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
794
795         * doc/sdccman.lyx: Same changes made 2007-07-28 but using lyx 1.4.4
796           instead of lyx 1.5.0.
797
798 2007-07-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
799
800         * device/include/hc08/mc68hc908apxx.h: new header contributed by
801           Lucas Loizaga, with minor modifications. Thanks!
802
803 2007-07-28 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
804
805         * doc/sdccman.lyx: Documented --acall-ajmp and described new features
806           in sdcclib.
807
808 2007-07-28 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
809
810         * src/SDCCglobl.h, src/SDCCpeeph.c, src/SDCCglue.c, src/mcs51/main.c,
811           src/mcs51/peeph.def: Added option --acall-ajmp: replaces lcall/ljmp
812           with acall/ajmp.
813
814 2007-07-22 Borut Razem <borut.razem AT siol.net>
815
816         * configure.in, configure: re-introduced .version
817         * sdcc.spec, doc/INSTALL.txt: they are used only for releases;
818           the version reverted to 2.7.0
819
820 2007-07-18 Maarten Brock <sourceforge.brock AT dse.nl>
821
822         * configure.in,
823         * doc/sdccman.lyx: bumped version to 2.7.3
824         * device/include/mcs51/compiler.h: fixed elif->else
825         * src/mcs51/gen.c (genAnd, genOr): handle accuse for pure bit operands
826         * src/mcs51/ralloc.c (createStackSpil): fixed SCLS bug with sloc for sbit,
827           (operandUsesAcc, packRegsForAccUse): added parameter allowBitspace to
828            enable accuse for bit operands
829         * src/SDCCmain.c (printVersionInfo),
830         * src/SDCCutil.c (getBuildEnvironment): factored out creation of build
831           environment descriptor
832         * src/SDCCutil.h: added getBuildEnvironment
833         * src/SDCCglue.c (initialComments): use getBuildEnvironment
834         * support/regression/tests/bug1464657.c: enabled test test_Peephole251
835         * support/regression/tests/bug-408972.c: enabled test leftShiftLong
836         * support/regression/tests/bug1348008.c,
837         * support/regression/tests/bug1496419.c,
838         * support/regression/tests/bug1503067.c,
839         * support/regression/tests/preproc.c: added empty tests
840
841 2007-07-15 Maarten Brock <sourceforge.brock AT dse.nl>
842
843         * support/regression/tests/bug1678803.c: new, added
844
845 2007-07-14 Maarten Brock <sourceforge.brock AT dse.nl>
846
847         * as/link/aslink.h,
848         * as/link/hc08/lkihx.c,
849         * as/link/hc08/lkrloc.c,
850         * as/link/mcs51/lkihx.c,
851         * as/link/mcs51/lkrloc.c: renamed ihxEntendedLinearAddress to
852           ihxExtendedLinearAddress
853         * as/link/mcs51/lkrloc.c (relr),
854         * as/mcs51/asout.c (outr11, outr19): handle absolute destination for
855           acall/ajmp, see bug 830513
856
857 2007-07-13 Maarten Brock <sourceforge.brock AT dse.nl>
858
859         * src/SDCCcse.c (replaceAllSymBySym): renamed siaddr to isaddr,
860           (cseBBlock): remember aggr2ptr has been used
861         * src/SDCCicode.c (operandSize): added function to handle aggr2ptr,
862           (geniCodeAssign): fixed bug 868103
863         * src/SDCCicode.h: made operand.aggr2ptr 2 bits wide,
864           added operandSize prototype
865         * src/mcs51/gen.c (aopOp): use operandSize to fix bug 868103,
866           (genDataPointerSet): use max of size of right and result,
867           (gencjne): added parameter useCarry for optimization,
868           (genCmpEq): use carry if appropriate,
869           (genXor): check if operand already in carry
870         * support/regression/tests/bug-868103.c: enabled test
871
872 2007-07-12 Raphael Neider <rneider AT web.de>
873
874         * src/pic16/gen.c (genNearPointerSet): fixed handling of literals
875
876 2007-07-11 Maarten Brock <sourceforge.brock AT dse.nl>
877
878         * src/SDCCsymt.c (compareType): fixed bugs 1738367 and 1745717 with patch
879           from Robert Larice, thanks
880         * support/regression/tests/bitopcse.c,
881         * support/regression/tests/bitvars.c,
882         * support/regression/tests/bug-908454.c: use <stdbool.h> for the bit types
883         * support/regression/tests/bug-927659.c: enabled test for z80
884         * support/regression/tests/bug1738367.c: added extra tests by Frieder
885         * support/regression/tests/bug1745717.c: new, added
886         * support/regression/tests/literalop.c,
887         * support/regression/tests/nullstring.c: removed storage definitions that
888           are now in testfwk.h
889
890 2007-07-10 Maarten Brock <sourceforge.brock AT dse.nl>
891
892         * device/include/stdbool.h: do not define __bool_true_false_are_defined
893           and bool for targets that do not fully support it.
894         * support/regression/tests/bug1546986.c,
895         * support/regression/tests/bug1723128.c,
896         * support/regression/tests/bug1734654.c,
897         * support/regression/tests/bug1738367.c,
898         * support/regression/tests/constantRange.c: only use bool if allowed
899
900 2007-07-09 Maarten Brock <sourceforge.brock AT dse.nl>
901
902         * src/mcs51/peep.c (isCallerSaveFunc): fixed bug 1749275, thanks Robert
903           Larice, also handle function pointers
904         * support/regression/tests/bug1749275.c: new, added
905
906 2007-07-03 Borut Razem <borut.razem AT siol.net>
907
908         * src/mcs51/gen.c, src/avr/gen.c, src/pic/gen.c, src/z80/gen.c,
909           src/pic16/gen.c, src/hc08/gen.c, src/ds390/gen.c: fixed RFE
910           #1746528: SDCC should ignore ':' in inline assembler comments
911         * device/include/typeof.h: fixed bug #1747142: typeof.h needs fixing
912
913 2007-07-02 Maarten Brock <sourceforge.brock AT dse.nl>
914
915         * device/include/mcs51/C8051F360.h: fixed bug #1746410, thanks Chris Jones
916         * device/lib/mcs51/crtxclear.asm: do not set __XPAGE unconditionally
917
918 2007-06-29 Borut Razem <borut.razem AT siol.net>
919
920         * src/SDCCmain.c: fixed bug
921           #1744746: SDCC #4867: broken option --xram-size
922
923 2007-06-28 Borut Razem <borut.razem AT siol.net>
924
925         * sim/ucsim/configure.in, sim/ucsim/configure, sim/ucsim/ddconfig_in.h:
926           find out the endianess of host machine for ucsim
927
928 2007-06-27 Borut Razem <borut.razem AT siol.net>
929
930         * support/regression/generate-cases.py: corrected the file name
931           in warning
932         * configure.in, configure, sdccconf_in.h: find out the endianess of
933           host machine
934         * src/SDCC.y: fixed bug #1744146: Crash when compiling array of
935           negative size
936
937 2007-06-27 Gudjon I. Gudjonsson <gudjon AT gudjon.org>
938
939         * device/include/mcs51/p89c66x.h: NXP header file, OK to change licence
940
941 2007-06-26 Borut Razem <borut.razem AT siol.net>
942
943         * support/regression/generate-cases.py: display warning if function
944           list is empty; implemented more flexible rule for detection of
945           testing functions, allowing return type 'void' in the same line as
946           the function name in the function definition
947         * support/regression/tests/bug-1654060.c: corrected test
948         * support/librarian/sdcclib.c: fixed warning:
949           format '%s' expects type 'char *', but argument 2 has type 'int'
950
951 2007-06-25 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
952
953         * support/librarian/sdcclib.c: Added feature Requests [1510635]
954           Multiple infiles for sdcclib.
955
956 2007-06-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
957
958         * src/SDCCast.c (inlineFindMaxBlockno, createFunction): fixed
959           bug 1731741
960
961 2007-06-18 Borut Razem <borut.razem AT siol.net>
962
963         * src/SDCCmain.c: removed option -C since SDCC compiler doesn't know
964           how to handle comments, so they have to be removed by the
965           preprocessor; fixed bug #1738926:SDCC #4852: broken option -V
966         * src/SDCCmain.c, src/SDCCargs.h, src/ds390/main.c, src/mcs15/main.c,
967           src/pic16/main.c, src/pic/main.c, src/z80/main.c,
968           support/Util/SDCCerr.c, support/Util/SDCCerr.h:
969           table driven option hadling
970
971 2007-06-16 Maarten Brock <sourceforge.brock AT dse.nl>
972
973         * src/SDCCast.c (decorateType),
974         * src/SDCCicode.c (geniCodeConditional): moved optimization for '?' from
975           iCode to ast level to fix bug 1738367
976         * support/regression/tests/bug1738367.c: new, added
977
978 2007-06-15 Raphael Neider <rneider AT web.de>
979
980         * src/pic16/devices.inc,
981         * device/lib/pic16/pics.all,
982         * device/include/pic16/pic18fregs.h,
983         * device/include/pic16/pic18f[24][45]20.h,
984         * device/lib/pic16/libdev/pic18f[24][45]20.c: added support for
985           18f2420, 18f2520, and 18f4420 devices, updated 18f4520 definitions
986         * device/lib/pic16/Makefile.in: faster cleanup
987
988 2007-06-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
989
990         * src/mcs51/peeph.def: added 177.i (mov from a is slightly cheaper)
991
992 2007-06-13 Raphael Neider <rneider AT web.de>
993
994         * src/SDCCmain.c: prevent NULL pointer dereference, avoid warning
995
996 2007-06-12 Raphael Neider <rneider AT web.de>
997
998         * support/scripts/inc2h.pl: conditionally emit defines for SFR bits,
999           suppress bit defines if NO_BIT_DEFINES is #define'd
1000         * device/include/pic/pic*.h: recreated all headers to include
1001           conditional bit defines
1002         * device/include/pic/pic16f886.h,
1003         * device/include/pic/pic16f887.h: fixed based on newer .inc file
1004         * device/include/pic/recreate.sh: script to recreate the complete
1005           device library files based on the currently supported devices
1006
1007 2007-06-12 Borut Razem <borut.razem AT siol.net>
1008
1009         * src/pic16/main.c, src/SDCCargs.h, SDCCmain.c,
1010           support/regression/Makefile.in, support/scripts/build.mak,
1011           support/scripts/Makefile.snapshot:
1012           use new svn URL scheme
1013         * doc/sdccman.lyx: SDCC Wiki moved to
1014           http://sdcc.wiki.sourceforge.net/
1015
1016 2007-06-10 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1017
1018         * src/mcs51/peeph.def: disabled rule 132.d to fix #1734654
1019         * support/regression/tests/bug1734654.c: added
1020
1021 2007-06-10 Maarten Brock <sourceforge.brock AT dse.nl>
1022
1023         * src/SDCCast.c (decorateType): optimized '?' for equal operands
1024         * src/SDCCicode.c (geniCodeConditional): optimization for bit result
1025           with literal operands
1026
1027 2007-06-10 Borut Razem <borut.razem AT siol.net>
1028
1029         * as/link/z80/lklibr.c: fixed mingw build warning
1030           lklibr.c:575: warning: implicit declaration of function 'tolower'
1031         * src/SDCCmain.c, src/ds390/main.c, src/mcs51/main.c, src/pic/main.c,
1032           src/z80/main.c: move target specific options from src/SDCCmain.c
1033           to src/<target>/main.c
1034
1035 2007-06-09 Borut Razem <borut.razem AT siol.net>
1036
1037         * src/z80/gen.c: fixed bug #1294691: nested ifs make compiler crash;
1038           removed unused swap_sense; removed outBitCLong, replaced with outBitC
1039         * support/regression/tests/bug-1294691.c: added
1040
1041 2007-06-09 Maarten Brock <sourceforge.brock AT dse.nl>
1042
1043         * src/SDCCmem.c (allocDefault): removed check sym->level==0 for SPEC_ABSA,
1044           can also be static, fixes bug 1733438
1045         * src/SDCCsymt.c (checkSClass): static local vars in reentrant funcs can
1046           have absolute address too
1047           (computeType): added optimization for 'cond ? true : false'
1048         * support/regression/tests/absolute.c: added test for static absolute var
1049
1050 2007-06-08 Raphael Neider <rneider AT web.de>
1051
1052         * src/regression/Makefile: suppress parallel builds, allow easy
1053           switching between pic14/pic16 ports
1054         * src/regression/picregs.h: added pic14/16 header file switch
1055         * src/regression/{compare7.c,compare8.c,compare9.c,compare10.c,
1056           inline.c,nestfor.c,string1.c}: include "picregs.h"
1057
1058 2007-06-07 Borut Razem <borut.razem AT siol.net>
1059
1060         * sim/ucsim/*.[ch], sim/ucsim/configure, sim/ucsim/configure.in:
1061           permanent solution to suppress GCC 4.2.0 c++ warning:
1062           deprecated conversion from string constant to `char *'
1063           use 'const char *' where ever required
1064         * support/regression/generate-cases.py: implemented more flexible rule
1065           for detection of testing functions, allowing white-spaces surrounding
1066           the function name and the 'void' parameter.
1067         * support/regression/tests/constantRange.c,
1068           support/regression/tests/scott-compare3.c: fixed failing regression
1069           tests, uncovered by implementation of more flexible rule for detection
1070           of testing functions
1071
1072 2007-06-04 Maarten Brock <sourceforge.brock AT dse.nl>
1073
1074         * src/SDCCast.c(decorateType): better optimize '!!' and comparisons
1075
1076 2007-06-04 Borut Razem <borut.razem AT siol.net>
1077
1078         * configure.in, configure, config_vc.awk: sdcc version number is now
1079           stored in configure.in; removed .version
1080         * configure.in, configure, sdcc.spec, doc/sdccman.lyx, doc/sdccman.lyx,
1081           doc/INSTALL.txt: version bumped to 2.7.2
1082         * sim/ucsim/configure.in, sim/ucsim/configure:
1083           use "read" to read from .version
1084
1085 2007-06-03 Borut Razem <borut.razem AT siol.net>
1086
1087         * */Makefile.in: removed annoying warning:
1088           Makefile:xx: Makefile.dep: No such file or directory
1089
1090 2007-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
1091
1092         * src/mcs51/gen.c (outBitC, genRet): used IS_OP_RUONLY,
1093           (genNot, genXor): used toCarry, also fixes a bug for c = bit ^ val
1094         * src/mcs51/ralloc.c: removed IS_OP_RUONLY + some cosmetic changes
1095         * src/SDCCast.c (resultTypePropagate): propagate for '!',
1096           (decorateType): also optimize comparisons with RESULT_TYPE_BIT,
1097           bugfix: only use newBoolLink for bit result type
1098         * src/SDCCicode.c (geniCodeLogic): added param tree,
1099           bugfix: use newBoolLink if tree is bit type, bug appears when ruonly,
1100           (geniCodeLogicAndOr): use IS_BIT,
1101           (geniCodeJumpTable, geniCodeSwitch): added NULL param to geniCodeLogic,
1102           (ast2iCode): added tree param to geniCodeLogic for comparisons
1103         * src/SDCCsymt.h: added IS_OP_RUONLY and IS_OP_ACCUSE
1104         * support/regression/tests/bug1723128.c: added test NotZero
1105
1106 2007-06-01 Borut Razem <borut.razem AT siol.net>
1107
1108         * SDCPP synchronized with GCC CPP release version 4.2.0,
1109           currently the latest release:
1110         * support/cpp2/c-incpath.c, support/cpp2/c-incpath.h,
1111           support/cpp2/c-ppoutput.c, support/cpp2/cppdefault.c,
1112           support/cpp2/cppdefault.h, support/cpp2/except.h,
1113           support/cpp2/libcpp/directives.c, support/cpp2/libcpp/expr.c,
1114           support/cpp2/libcpp/files.c, support/cpp2/libcpp/include/cpplib.h,
1115           support/cpp2/libcpp/init.c, support/cpp2/libcpp/internal.h,
1116           support/cpp2/libcpp/lex.c, support/cpp2/libcpp/macro.c,
1117           support/cpp2/libcpp/mkdeps.c, support/cpp2/libiberty/getpwd.c,
1118           support/cpp2/libiberty/hashtab.c, support/cpp2/optc-gen.awk,
1119           support/cpp2/opth-gen.awk, support/cpp2/opts.c,
1120           support/cpp2/opts.h, support/cpp2/output.h,
1121           support/cpp2/prefix.c, support/cpp2/sdcpp-opts.c,
1122           support/cpp2/sdcpp.dsp, support/cpp2/sdcpp.opt,
1123           support/cpp2/system.h, support/cpp2/version.c,
1124           support/cpp2/Makefile.in: modified
1125         * support/cpp2/opts-common.c: added
1126         * device/lib/pic16/libdev/pic18f[24][45]j10.c: fixed svn atrributes
1127         * device/lib/pic16/libdev/pic18f[24]5j10.c:
1128           search for included source file in local directory
1129         * sim/ucsim/configure, sim/ucsim/configure.in:
1130           temporary solution to suppress GCC 4.2.0 c++ warning:
1131           deprecated conversion from string constant to `char *'
1132
1133 2007-06-01 Raphael Neider <rneider AT web.de>
1134
1135         * device/lib/pic/libdev/pic12f683.c,
1136         * device/include/pic/pic12f683.h: added GPIO bits
1137
1138 2007-06-01 Raphael Neider <rneider AT web.de>
1139
1140         * doc/sdccman.lyx: added --disable-pic16-port, fixed some `--' and
1141           quotation marks, clarified role of PIC14 vs. PIC16 ports
1142         * src/pic16/devices.inc,
1143         * device/include/pic16/pic18fregs.h,
1144         * device/include/pic16/pic18f[24][45]j10.h,
1145         * device/lib/pic16/pics.all,
1146         * device/lib/pic16/libdev/pic18f[24][45]j10.c: added support for
1147           18f24j10, 18f25j10, 18f44j10, and 18f45j10
1148         * device/lib/pic16/libio/{i2c,adc,usart}.ignore: do not build IO libs
1149           for new devices as they are not yet supported by gputils
1150
1151 2007-05-31 Borut Razem <borut.razem AT siol.net>
1152
1153         * Small Device C Compiler 2.7.0 released
1154         * .version, sdcc.spec, doc/sdccman.lyx, doc/INSTALL.txt:
1155           changed sdcc version to 2.7.1
1156         * support/scripts/sdcc.nsi: added How to create WIN32 release
1157           setup.exe package
1158
1159 2007-05-29 Maarten Brock <sourceforge.brock AT dse.nl>
1160
1161         * doc/sdccman.lyx: documented initialization and allocation of absolute
1162           variables, bit parameter passing, the need for function pointers to be
1163           reentrant and alpha quality support of inline and retrict
1164
1165 2007-05-26 Borut Razem <borut.razem AT siol.net>
1166
1167         * support/regression/tests/bug1057979.c, support/regression/tests/malloc.c,
1168           support/regression/fwk/include/testfwk.h: fixed compilation on Mac OS x
1169         * docs/knownbugs.html: updated
1170
1171 2007-05-25 Maarten Brock <sourceforge.brock AT dse.nl>
1172
1173         * doc/sdccman.lyx: inserted footnotes about inline assembler labels,
1174           thanks Jan Waclawek
1175         * src/mcs51/gen.c (aopPut): fixed part of bug 1723128 when result is
1176           AOP_CRY and ruonly
1177           (gencjneshort): optimized when left is AOP_DIR
1178         * src/SDCCglue.c (printIvalStruct): fixed other part of bug 1723128 for
1179           initializing unions in a struct/array
1180         * support/regression/fwk/include/testfwk.h: added defines for data, near
1181           and far for host and z80
1182         * support/regression/tests/bug1723128.c: new, added
1183
1184 2007-05-22 Borut Razem <borut.razem AT siol.net>
1185
1186         * doc/knownbugs.html: updated
1187
1188 2007-05-21 Raphael Neider <rneider AT web.de>
1189
1190         * src/pic16/glue.c (pic16_initPointer): avoid assertion, emit better
1191           error message instead
1192         * src/pic/pcoderegs.c (pCodeOptime2pCodes): keep register state intact
1193
1194 2007-05-21 Maarten Brock <sourceforge.brock AT dse.nl>
1195
1196         * src/mcs51/peeph.def (257.b): disabled to fix bug 1721024
1197
1198 2007-05-21 Raphael Neider <rneider AT web.de>
1199
1200         * src/pic/pcoderegs.c (pCodeOptime2pCodes): fixed bogus optimization,
1201           closes #1722392
1202         * src/regression/gpsim_assert.h,
1203         * src/regression/Makefile,
1204         * src/regression/pcodeopt.c: regression test for the above fix
1205
1206 2007-05-11 Maarten Brock <sourceforge.brock AT dse.nl>
1207
1208         * src/SDCCpeeph.c (labelIsUncondJump): ignore identical labels for
1209           jumps to self, fixed bug 1717281
1210
1211 2007-05-10 Borut Razem <borut.razem AT siol.net>
1212
1213         * support/scripts/gen_known_bugs.pl: cosmetic fix
1214         * doc/knownbugs.html: generated by gen_known_bugs.pl
1215
1216 2007-05-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1217
1218         * src/SDCCast.c (createFunction): also generate non-inlined version of
1219           function for functions declared as "static inline"
1220         * src/SDCCast.c (fixupInline, inlineAddDecl): reset symbol state so
1221           function can be inlined after non-inlined version generated.
1222
1223 2007-05-10 Borut Razem <borut.razem AT siol.net>
1224
1225         * support/scripts/gen_known_bugs.pl: added script
1226           which generates knownbugs.html
1227
1228 2007-05-09 Maarten Brock <sourceforge.brock AT dse.nl>
1229
1230         * doc/knownbugs.html: updated for release 2.7.0
1231
1232 2007-05-09 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1233
1234         * device/include/mcs51/uPSD33xx.h: Added patch by Jan Waclawek.
1235
1236 2007-05-08 Maarten Brock <sourceforge.brock AT dse.nl>
1237
1238         * src/ds390/gen.c (emitcode): don't change properties of previous lines,
1239           (throughout): updated generating comments
1240         * src/mcs51/gen.c (emitcode): don't change properties of previous lines,
1241           (throughout): updated generating comments
1242         * src/SDCCpeeph.c (peepHole): continue searching at the first replaced
1243           rule instead of at the second, or it might skip lines when removing the
1244           complete match
1245         * support/regression/tests/bug1714204.c: changed test to foo
1246
1247 2007-05-08 Borut Razem <borut.razem AT siol.net>
1248
1249         * doc/sdccman.lyx: changed sdcc version to 2.7.0,
1250           thanks to SDCC Distributed Compile Farm members,
1251           added Z80 and GBZ80 command line options
1252         * .version, doc/INSTALL.txt, sdcc.spec: changed sdcc version to 2.7.0
1253
1254 2007-05-08 Maarten Brock <sourceforge.brock AT dse.nl>
1255
1256         * device/lib/mcs51/crtxinit.asm: added disabled version for dual dptr
1257         * device/include/mcs51/uPSD33xx.h: added sfr DPS as alias for DPTC
1258         * support/regression/tests/longlit.c: modified to be tested at all and
1259           to pass the actual test
1260
1261 2007-05-07 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1262
1263         * device/include/mcs51/uPSD33xx.h: Added.
1264
1265 2007-05-07 Maarten Brock <sourceforge.brock AT dse.nl>
1266
1267         * device/lib/_gptrput.c,
1268         * device/lib/_gptrget.c: removed old code,
1269          (_gptrgetWord),
1270         * src/ds390/gen.c (genGenPointerGet): fixed bug 1714204
1271         * support/regression/tests/bug1714204.c: new, added
1272
1273 2007-05-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1274
1275         * support/regression/tests/regtrack.c: test was never executed
1276           because of the regression test being picky about white spaces.
1277         * device/lib/mcs51/crtclear.asm: added comment
1278
1279 2007-05-06 Raphael Neider <rneider AT web.de>
1280
1281         * device/lib/pic/Makefile.rules,
1282         * device/lib/pic16/Makefile.rules: make sure *.ignore file exists,
1283           made "&> /dev/null" redirection sh-safe ("> /dev/null 2>&1")
1284
1285 2007-05-06 Raphael Neider <rneider AT web.de>
1286
1287         * src/pic16/device.h,
1288         * src/pic16/main.h,
1289         * src/pic16/main.c (pic16_optionsTable,_pic16_parseOptions,
1290           _pic16_setDefaultOptions): removed/reordered command-line args
1291         * doc/sdccman.lyx: updated PIC14 and PIC16 documentation (supported
1292           devices, regrouped command line args, environment variables),
1293           clarified sone points, added sections on how to add devices to the
1294           PIC14/PIC16 ports
1295
1296 2007-05-06 Maarten Brock <sourceforge.brock AT dse.nl>
1297
1298         * src/z80/peeph.def: fixed bug in rule 2
1299
1300 2007-05-05 Maarten Brock <sourceforge.brock AT dse.nl>
1301
1302         * src/port.h: added TARGET_MCS51_LIKE
1303         * src/SDCCpeeph.c (labelIsUncondJump): new, added, other targets could
1304           take advantage of it too
1305         * src/z80/gen.c (genIpush): push b, d or h directly instead of using a,
1306           (shiftR2Left2Result): Optimized: don't check shifting by 0
1307         * src/z80/peeph-z80.def,
1308         * src/z80/peeph.def: whole set of new rules by Philipp Krause with some
1309           modifications, see patch 1700823
1310         * src/mcs51/peep.c (): fixed bug 1712928
1311         * support/regression/tests/bug1712928.c: new, added
1312
1313 2007-05-05 Borut Razem <borut.razem AT siol.net>
1314
1315         * device/lib/pic16/Makefile.common.in,
1316           device/lib/pic/Makefile.common.in, sim/ucsim/cmd.src/Makefile.in:
1317           removed bash dependencies
1318
1319 2007-05-01 Borut Razem <borut.razem AT siol.net>
1320
1321         * src/SDCCicode.c:
1322           fixed bug #1710507: --i-code-in-asm makes compile fail
1323           all iCode comments are now one liners
1324         * src/mcs51/gen.c: fixed memory leak
1325
1326 2007-05-01 Raphael Neider <rneider AT web.de>
1327
1328         * device/lib/pic/libdev/*.c
1329         * device/include/pic/*.h: regenerated all device libs from updated
1330           .inc files
1331         * support/scripts/inc2h.pl: documented usage, now uses strict to
1332           catch more bugs
1333
1334 2007-04-30 Borut Razem <borut.razem AT siol.net>
1335
1336         * doc/sdccman.lyx:
1337           fixed bug #1669175: Problem with space in output paths
1338           documented how to use paths with spaces for Windows users
1339
1340 2007-04-29 Borut Razem <borut.razem AT siol.net>
1341
1342         * Fixed svn:eol-style and svn:keywords properties
1343         * src/SDCCval.c: fixed bug
1344           #1592871: Segfault with "large" const arrays of characters
1345           replaced recursion with iteration
1346         * Removed svn:executable property from non-executable files
1347
1348 2007-04-29 Maarten Brock <sourceforge.brock AT dse.nl>
1349
1350         * src/mcs51/gen.c (genRet): fixed bug 1707003
1351
1352 2007-04-27 Raphael Neider <rneider AT web.de>
1353
1354         * src/pic16/pcode.c (pBlockRemoveUnusedLabels,pic16_pBlockAddInval,
1355           createReachingDefinitions,assignValnums,pic16_destructDF,
1356           pic16_createDF,pic16_vcg_dumpedges,pic16_vcg_dump_default):
1357           prevent NULL pointer dereferences
1358         * device/lib/pic/libdev/pic16f886.c,
1359         * device/lib/pic/libdev/pic16f887.c: svn mv'ed to disabled_* to
1360           prevent building them, gputils do not really support them yet
1361
1362 2007-04-27 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1363
1364         * device/lib/_ltoa.c: 36 bytes less __data mem. This really
1365           helps printf_small. 32 bytes more __idata mem.
1366
1367 2007-04-27 Raphael Neider <rneider AT web.de>
1368
1369         * src/pic/pcode.c (addpCode2pBlock,LinkFlow,pBlockRemoveUnusedLabels):
1370           return early when pb or pb->pcHead is NULL (patch #1708427)
1371         * src/regression/empty.c,
1372         * src/regression/Makefile: added test with empty functions
1373         * support/Util/SDCCerr.c: fixed typo in E_INIT_STRUCT message
1374
1375 2007-04-27 Borut Razem <borut.razem AT siol.net>
1376
1377         * src/SDCCast.c: fixed feature request
1378           #1547512: Redundant strings linked when using sizeof("abc")
1379
1380 2007-04-23 Borut Razem <borut.razem AT siol.net>
1381
1382         * doc/sdccman.lyx, src/SDCCmain.c:
1383           peep-hole comments are generated only if --fverbose-asm option is
1384           specified and --no-peep-comments is not, as proposed by Frieder.
1385         * support/regression/Makefile.in: compile regression tests with
1386           --fverbose-asm option so one can "grep" whether a new (or an old)
1387           peephole is (still) applied; requested by Frieder.
1388
1389 2007-04-23 Kevin Buettner <kevin AT buettner.to>
1390
1391         * device/include/pic/pic16f886.h,
1392         * device/include/pic/pic16f887.h,
1393         * device/lib/pic/libdev/pic16f886.c,
1394         * device/lib/pic/libdev/pic16f887.c,
1395         * device/include/pic/pic14devices.txt,
1396         * device/lib/pic/libdev/devices.txt: Add 16f886 and 16f887.
1397
1398 2007-04-23 Kevin Buettner <kevin AT buettner.to>
1399
1400         * device/lib/pic/libsdcc/idata.c: PAGESEL _main before going there,
1401           fixes #1704666
1402
1403 2007-04-23 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1404
1405         * device/lib/_memset.c: assembler version for mcs51
1406
1407 2007-04-22 Borut Razem <borut.razem AT siol.net>
1408
1409         * support/scripts/listerr.c: program to create the list of errors and
1410           warnings list from - added
1411         * doc/sdccman.lyx: removed the note
1412           "For list of warnings and corresponding codes, see err_warn.txt"
1413         * src/SDCCsymt.c: fixed bug #1699804:
1414           Bug with some uses of sizeof(static local array) (MCS51)
1415         * support/regression/tests/bug-1699804.c: added
1416
1417 2007-04-20 Maarten Brock <sourceforge.brock AT dse.nl>
1418
1419         * as/mcs51/asmain.c (search_path_append, search_path_fopen): new, added,
1420           (main): added option -i,
1421           (asmbl, case S_INCL): use search_path_fopen,
1422           mostly from patch 1579668 by Peter Miller, thanks
1423         * src/z80/main.c: fixed typo --callee-saves-bc
1424         * device/include/mcs51/compiler.h: added sfrword for Tasking
1425
1426 2007-04-20 Borut Razem <borut.razem AT siol.net>
1427
1428         * src/z80/main.c: replaced reserved keyword asm with asmblr
1429
1430 2007-04-19 Borut Razem <borut.razem AT siol.net>
1431
1432         * src/port.h: use const pointers to strings
1433         * src/SDCCargs.h: declared getStringArg() and getIntArg()
1434         * src/pic16/main.c: include SDCCargs.h
1435         * src/SDCCglobl.h: code_seg and const_seg are not pointers to
1436           const char, since the strings are dynamically allocated
1437         * src/SDCCmain.c: options.code_seg and options.const_seg are
1438           dynamically allocated; check port specific command line options
1439           before the general ones
1440         * src/z80/main.c: fixed bug #1631895: codeseg/constseg #pragma fail
1441
1442 2007-04-18 Maarten Brock <sourceforge.brock AT dse.nl>
1443
1444         * device/include/ds400rom.h,
1445         * device/lib/ds390/lcd390.c,
1446         * device/lib/ds390/memcpyx.c,
1447         * device/lib/ds390/rtc390.c,
1448         * device/lib/ds400/ds400rom.c,
1449         * device/lib/ds400/memcpyx.c,
1450         * device/lib/hc08/_ret.c: more replacements of keywords with their
1451           double underscore equivalents
1452         * device/lib/ds390/Makefile.in,
1453         * device/lib/ds400/Makefile.in,
1454         * device/lib/gbz80/Makefile.in,
1455         * device/lib/hc08/Makefile.in,
1456         * device/lib/mcs51/Makefile.in,
1457         * device/lib/z80/Makefile.in: added --std-c89 to CFLAGS
1458
1459 2007-04-17 Borut Razem <borut.razem AT siol.net>
1460
1461         * doc/sdccman.lyx, src/SDCCmain.c, src/SDCCglobal.h, src/ds390/gen.c,
1462           src/hc08/gen.c, src/mcs51/gen.c, src/mcs51/rtrack.c:
1463           fixed #1493816: option --no-gen-comments: --no-gen-comments renamed
1464           to --fverbose-asm, to be gcc'ish
1465
1466 2007-04-17 Maarten Brock <sourceforge.brock AT dse.nl>
1467
1468         * src/mcs51/gen.c (aopOp): set size to 1 for ruonly, fixes bug 1699455
1469
1470 2007-04-17 Borut Razem <borut.razem AT siol.net>
1471
1472         * doc/sdccman.lyx: fixed #1701874: Mac OSX references in SDCC manual
1473         * device/lib/ds400/tinibios.c, device/lib/hc08/_divuint.c,
1474           device/lib/hc08/_divulong.c: replaced _asm and _endasm keywords
1475           with their double underscore equivalent
1476
1477 2007-04-14 Borut Razem <borut.razem AT siol.net>
1478
1479         * doc/sdccman.lyx: some additional "freeware" replaced with "free open
1480           source"
1481
1482 2007-04-13 Borut Razem <borut.razem AT siol.net>
1483
1484         * doc/sdccman.lyx: -pedantic-parse-number is not in conformance with
1485           C99 standard
1486         * device/examples/serialcomm/windows/serial.[ch],
1487           device/examples/serialcomm/windows/test_serialcomm.cpp:
1488           updated by Bela Torok
1489         * device/examples/serialcomm/windows/serialcomm.dsw,
1490           device/examples/serialcomm/windows/serialcomm.dsp: added
1491
1492 2007-04-13 Jan Waclawek <wek AT efton.sk>
1493
1494         * doc/sdccman.lyx: additions and changes at various places
1495           (submitted as #1697136).
1496           (svn commit by Frieder Ferlemann <Frieder.Ferlemann AT web.de>)
1497
1498 2007-04-10 Borut Razem <borut.razem AT siol.net>
1499
1500         * doc/cdbfileformat.lyx, doc/sdccman.lyx, doc/test_suite_spec.lyx:
1501           LyX file format changed to 245
1502         * doc/sdccman.lyx, doc/README.txt, sdc/SDCC.lex, src/SDCCglue.c:
1503           "FreeWare" replaced with "free open source"
1504
1505 2007-04-10 Maarten Brock <sourceforge.brock AT dse.nl>
1506
1507         * device/include/mcs51/C8051F120.h: added some defines for bits in RSTSRC
1508
1509 2007-04-08 Maarten Brock <sourceforge.brock AT dse.nl>
1510
1511         * device/include/pic16/pic18fregs.h,
1512         * device/lib/_bp.c,
1513         * device/lib/_decdptr.c,
1514         * device/lib/_divsint.c,
1515         * device/lib/_divslong.c,
1516         * device/lib/_divuint.c,
1517         * device/lib/_divulong.c,
1518         * device/lib/_fs2schar.c,
1519         * device/lib/_fs2sint.c,
1520         * device/lib/_fs2slong.c,
1521         * device/lib/_fs2uchar.c,
1522         * device/lib/_fs2uint.c,
1523         * device/lib/_fs2ulong.c,
1524         * device/lib/_fsadd.c,
1525         * device/lib/_fscmp.c,
1526         * device/lib/_fsdiv.c,
1527         * device/lib/_fseq.c,
1528         * device/lib/_fsget1arg.c,
1529         * device/lib/_fsget2args.c,
1530         * device/lib/_fsgt.c,
1531         * device/lib/_fslt.c,
1532         * device/lib/_fsmul.c,
1533         * device/lib/_fsneq.c,
1534         * device/lib/_fsnormalize.c,
1535         * device/lib/_fsreturnval.c,
1536         * device/lib/_fsrshift.c,
1537         * device/lib/_fssub.c,
1538         * device/lib/_fsswapargs.c,
1539         * device/lib/_gptrget.c,
1540         * device/lib/_gptrgetc.c,
1541         * device/lib/_gptrput.c,
1542         * device/lib/_logexpf.c,
1543         * device/lib/_modsint.c,
1544         * device/lib/_modslong.c,
1545         * device/lib/_moduint.c,
1546         * device/lib/_modulong.c,
1547         * device/lib/_mulint.c,
1548         * device/lib/_mullong.c,
1549         * device/lib/_schar2fs.c,
1550         * device/lib/_ser.c,
1551         * device/lib/_setjmp.c,
1552         * device/lib/_sint2fs.c,
1553         * device/lib/_slong2fs.c,
1554         * device/lib/_spx.c,
1555         * device/lib/_uchar2fs.c,
1556         * device/lib/_uint2fs.c,
1557         * device/lib/_ulong2fs.c,
1558         * device/lib/asincosf.c,
1559         * device/lib/atanf.c,
1560         * device/lib/calloc.c,
1561         * device/lib/ds390/tinibios.c,
1562         * device/lib/ds400/tinibios.c,
1563         * device/lib/expf.c,
1564         * device/lib/free.c,
1565         * device/lib/hc08/_mulint.c,
1566         * device/lib/logf.c,
1567         * device/lib/malloc.c,
1568         * device/lib/printf_fast.c,
1569         * device/lib/printf_tiny.c,
1570         * device/lib/printfl.c,
1571         * device/lib/realloc.c,
1572         * device/lib/ser_ir.c,
1573         * device/lib/serial.c,
1574         * support/regression/tests/libmullong.c: replaced all special keywords
1575           with their double underscore equivalent
1576         * support/regression/ports/mcs51-xstack-auto/spec.mk,
1577         * device/lib/Makefile.in: compile libs with --std-c99 instead of
1578           --std-sdcc99
1579         * src/mcs51/gen.c (outBitC): don't store if result is return-use-only,
1580           (genRet): if the bit-symbol is ruonly it already is in the carry
1581         * src/mcs51/ralloc.c (regTypeNum): make regType REG_CND for ruonly bit
1582         * src/SDCCast.c (createFunction): applied patch 887171 by Stas Sergeev
1583         * src/SDCCicode.c (ast2iCode): '!', GETHBIT, GETABIT: only set operand
1584           type UCHAR if dest is not bit
1585
1586 2007-04-03 Maarten Brock <sourceforge.brock AT dse.nl>
1587
1588         * device/include/math.h,
1589         * device/lib/cotf.c,
1590         * device/lib/expf.c,
1591         * device/lib/sincoshf.c: changed XMAX to C99 HUGE_VALF
1592
1593 2007-04-01 Borut Razem <borut.razem AT siol.net>
1594
1595         * src/SDCC.lex, src/SDCCmain.c, support/cpp2/sdcpp.c:
1596           fixed bug #1692042: input buffer overflow...scanner uses REJECT
1597         * support/cpp2/sdcpp.c: fixed recursion bug - internal_error() called
1598           gcc_unreachable() called internal_error()...
1599
1600 2007-03-30 Raphael Neider <rneider AT web.de>
1601
1602         * src/pic/ralloc.c (isData): suppress garbage debug output
1603
1604 2007-03-28 Borut Razem <borut.razem AT siol.net>
1605
1606         * doc/sdccman.lyx:
1607           "Nightly Snapshots" replaced with "Snapshot Builds", since the SDCC
1608           is developed, built and used worldwide, and the word "night" doesn't
1609           make any sense.
1610
1611 2007-03-28 Maarten Brock <sourceforge.brock AT dse.nl>
1612
1613         * device/include/mcs51/C8051F360.h: new, added
1614         * device/include/mcs51/C8051F520.h: fixed buggy sbit addresses SPI0CN
1615
1616 2007-03-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1617
1618         * src/SDCC.y (declaration_specifiers, function_specifier),
1619         * support/Util/SDCCerr.c,
1620         * support/Util/SDCCerr.h,
1621         * src/SDCCsymt.h,
1622         * src/SDCCsymt.c (mergeSpec, checkFunction): Parse and validate the
1623           inline keyword
1624         * src/SDCCmem.c (deallocParms),
1625         * src/SDCCast.c: support for function inlining, not quite complete
1626         * src/SDCCsymt.c (printTypeChain, printTypeChainRaw): display
1627           'restrict' qualifier
1628
1629 2007-03-24 Maarten Brock <sourceforge.brock AT dse.nl>
1630
1631         * src/mcs51/gen.c (saveRegisters, unsaveRegisters): free some bitVects,
1632           (saveRBank, unsaveRBank): don't save bits,
1633           (genFunction, genEndFunction): save bits exactly once, fix bug 1535242
1634         * support/regression/tests/bug1535242.c: new, added
1635         * device/include/assert.h: applied patch 1686533 to fix bug 1686528,
1636           thanks Alexey Shamrin <shamrin AT gmail.com>,
1637           made assert.h header ANSI compliant (added a check for NDEBUG macro,
1638           removed header guard)
1639         * .version,
1640         * sdcc.spec: bumped version to 2.6.5
1641         * src/SDCCmain.c(parseCmdLine): fixed bug 1677144
1642
1643 2007-03-22 Borut Razem <borut.razem AT siol.net>
1644
1645         * debugger/mcs51/cmd.c, debugger/mcs51/sdcdb.c:
1646           fixed bug #1653671: sdcdb integration into ddd is broken
1647
1648 2007-03-22 Raphael Neider <rneider AT web.de>
1649
1650         * src/pic/gen.c (popGetExternal): augmented to also create references
1651           to external variables (not only labels),
1652           (genCall): comment on plan to reduce PAGESEL overhead,
1653           (genFunction, genEndFunction): also save/restore FSR around interrupt
1654           handling code, removed lots of unused code
1655           (genDivOneByte): release acquired temp register
1656         * src/pic/glue.c (pic14createInterruptVect): adapt to new signature
1657           of popGetExternal
1658         * device/lib/pic/libsdcc/shadowregs.c: NEW, provide storage location
1659           for registers that need to be saved during interrupts (FSR, STATUS,
1660           PCLATH; W needs special handling), currently only FSR is used
1661
1662 2007-03-22 Raphael Neider <rneider AT web.de>
1663
1664         * device/include/pic/pic14devices.txt: 16f688 has only one config word
1665
1666 2007-03-19 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1667
1668         * /as/link/mcs51/aslink.dsp: Object extension for mcs51 is 'rel' not 'o'.
1669
1670 2007-03-17 Maarten Brock <sourceforge.brock AT dse.nl>
1671
1672         * src/mcs51/peeph.def (263.x): fixed bug for volatile variables
1673
1674 2007-03-14 Maarten Brock <sourceforge.brock AT dse.nl>
1675
1676         * as/link/aslink.h: added LKOBJEXT
1677         * as/link/hc08/link_hc08.dsp,
1678         * as/link/hc08/Makefile.bcc,
1679         * as/link/hc08/Makefile.in,
1680         * as/link/mcs51/aslink.dsp,
1681         * as/link/mcs51/Makefile.bcc,
1682         * as/link/mcs51/Makefile.in: moved lkamof51.c and lkdata.c
1683         * as/link/hc08/lkaomf51.c,      as/link/mcs51/lkaomf51.c,
1684         * as/link/lkaomf51.c: merged and moved
1685         * as/link/hc08/lkdata.c,        as/link/mcs51/lkdata.c,
1686         * as/link/z80/lkdata.c,
1687         * as/link/lkdata.c: merged and moved
1688         * as/link/hc08/lkmain.c,
1689         * as/link/mcs51/lkmain.c: cosmetic changes
1690         * as/link/z80/lkeval.c,         as/link/lkeval.c: merged
1691         * as/link/lklex.c: use LKOBJEXT
1692         * as/link/z80/lklist.c,         as/link/lklist.c: merged,
1693           ANSI-fied functions, removed bubble-sorts
1694         * as/link/z80/lksym.c           as/link/lksym.c: merged,
1695           ANSI-fied functions
1696         * as/link/z80/linkgbz80.dsp,
1697         * as/link/z80/linkz80.dsp,
1698         * as/link/z80/Makefile.in: added lkaomf51.c and lknoice.c,
1699           moved lkdata.c, lkeval.c, lkhead.c, lklex.x, lklist.c, lksym.c
1700         * as/link/z80/lkhead.c,
1701         * as/link/z80/lklex.c: deleted
1702         * as/link/z80/lklibr.c: moved LKOBJEXT to aslink.h
1703         * as/link/z80/lkmain.c: added copyfile()
1704
1705 2007-03-13 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1706
1707         * device/include/mcs51/P89LPC925.h: Added missing P1_6 and P1_7.
1708
1709 2007-03-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1710
1711         * device/lib/_strlen.c: assembler version for mcs51
1712
1713 2007-03-13 Raphael Neider <rneider AT web.de>
1714
1715         * device/include/pic16/pic18f2221.h,
1716         * device/include/pic16/pic18f2321.h,
1717         * device/include/pic16/pic18f2331.h,
1718         * device/include/pic16/pic18f4221.h,
1719         * device/include/pic16/pic18f4321.h,
1720         * device/include/pic16/pic18f4331.h: fixed config byte location names
1721         * support/scripts/inc2h-pic16.pl: removed debug output, emit
1722           consistently named config byte locations
1723
1724 2007-03-13 Borut Razem <borut.razem AT siol.net>
1725
1726         * src/Makefile.in, sim/ucsim/avr.src/Makefile.in,
1727           sim/ucsim/hc08.src/Makefile.in, sim/ucsim/s51.src/Makefile.in,
1728           sim/ucsim/xa.src/Makefile.in, sim/ucsim/z80.src/Makefile.in,
1729           as/link/z80/Makefile.in, as/z80/Makefile.in:
1730           introduced LDFLAGS
1731
1732 2007-03-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1733
1734         * device/lib/printfl.c: 13 bytes less __data mem (12 more __idata)
1735         * device/lib/printf_large.c: pointer was converted to generic
1736         pointer for mcs51 models other than model-small (Maarten noticed)
1737
1738 2007-03-10 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1739
1740         * device/include/mcs51/ADuC84x.h: Added.
1741
1742 2007-03-10 Borut Razem <borut.razem AT siol.net>
1743
1744         * src/SDCC.lex, src/SDCCutil.[ch], src/SDCCval:
1745           fixed RFE #1624219: double backslashes in filenames;
1746           functions hexEscape(), octalEscape() and copyStr() moved from
1747           SDCCval.c to SDCCutil.c and made them glovbally available
1748
1749 2007-03-09 Borut Razem <borut.razem AT siol.net>
1750
1751         * src/SDCC.lex, src/SDCCast.c. src/SDCCglobl.c, src/SDCCsymt.c,
1752           src/SDCCval.c: fixed bugs #1676768: Wrong line number reported and
1753           1673361: Missaligned comments in output files
1754
1755 2007-03-09 Raphael Neider <rneider AT web.de>
1756
1757         * device/include/pic/pic14devices.txt: fixed confsiz of 16f91[3467]
1758
1759 2007-03-09 Raphael Neider <rneider AT web.de>
1760
1761         * src/pic/gen.c,
1762         * src/pic/glue.c,
1763         * src/pic/ralloc.c: suppress undesired debug output
1764         * src/SDCCmain.c (linkEdit): initialize c to quieten compiler
1765
1766 2007-03-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1767
1768         * device/lib/printf_large.c: 6 bytes less __data mem (6 more __idata)
1769
1770 2007-03-07 Borut Razem <borut.razem AT siol.net>
1771
1772         * device/lib/pic16/libdev/pic18f[24][34]31.c:
1773           search include files in the current directory
1774
1775 2007-03-04 Maarten Brock <sourceforge.brock AT dse.nl>
1776
1777         * src/SDCCglue.c (emitMaps, glue),
1778         * src/SDCCmem.c (initMem, allocDefault): added x_abs for initialized
1779           absolute xdata
1780         * support/regression/tests/absolute.c: added xdata test
1781
1782 2007-03-03 Maarten Brock <sourceforge.brock AT dse.nl>
1783
1784         * src/SDCCmain.c (parseCmdLine): only set options.xstack_loc for mcs51,
1785           added condition to macro, fixes bug 1666080
1786
1787 2007-03-02 Raphael Neider <rneider AT web.de>
1788
1789         * src/pic/gen.c (genGenPointerSet): removed bogus assertion
1790
1791 2007-02-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1792
1793         * device/lib/mcs51/crtxclear.asm: pdata segment of 256 byte would not
1794         be cleared. Unconditionally set __XPAGE
1795         * src/hc08/gen.c: --no-gen-comments (RFE #1493816) for hc08
1796
1797 2007-02-27 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1798
1799         * src/SDCCglobl.h,
1800         * src/SDCCmain.c,
1801         * src/mcs51/gen.c,
1802         * src/mcs51/rtrack.c,
1803         * src/ds390/gen.c,
1804         * doc/sdccman.lyx: added --no-gen-comments
1805         * src/mcs51/peeph.def: added 192.b, disabled 185
1806
1807 2007-02-25 Raphael Neider <rneider AT web.de>
1808
1809         * src/pic16/gen.c (genCast): fixed typo
1810         * device/lib/pic16/Makefile.subdir: only install existing files
1811         * device/lib/pic16/libdev/Makefile.in: build serially, avoid races
1812
1813 2007-02-25 Maarten Brock <sourceforge.brock AT dse.nl>
1814
1815         * device/lib/mcs51/crtcall.asm: new, added for indirect calls
1816         * device/lib/mcs51/crtclear.asm,
1817         * device/lib/mcs51/crtxclear.asm: renumbered labels
1818         * device/lib/mcs51/Makefile.in: added crtcall.asm
1819         * doc/sdccman.lyx: documented mcs51 crt* library startup code
1820         * src/mcs51/gen.c (movc): removed,
1821           (aopGet, genPlusBits): clear a after loading the carry (possibly from
1822             acc.x or psw.x),
1823           (toCarry, genSend, genRet): added function toCarry,
1824           (genPcall): use "lcall @a+dptr" for functions w/o parameters,
1825           (assignBit, genAssign, genCast): added function assignBit
1826         * src/mcs51/Makefile.bcc: added rtrack.c
1827         * src/mcs51/ralloc.h: made valueKnown a bitfield
1828         * src/mcs51/rtrack.c (getReg, rtrackUpdate): added getReg,
1829           fixed "jbc acc" and "cpl acc" bug, enhanced "cjne", "jnz" and "djnz",
1830           disabled InvalidateAllRx for lcall __gptrput, added "xch a,rn"
1831         * src/pic/pcode.c (FixRegisterBanking): fixed warning used uninitialized
1832         * src/z80/gen.c: added AOP_IS_PAIRPTR,
1833           (_pop): only pop valid pairs, see gencjneshort,
1834           (gencjneshort): return pair that still needs to be popped, restructured,
1835           (gencjne, genCmpEq): call _pop
1836
1837 2007-02-23 Raphael Neider <rneider AT web.de>
1838
1839         * device/include/pic/pic14devices.txt: 16f684 has only one config word
1840
1841 2007-02-22 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1842
1843         * device/include/mcs51/P89LPC925.h: Added.
1844
1845 2007-02-18 Raphael Neider <rneider AT web.de>
1846
1847         * src/pic/glue.c (emitInitVal): fixed #1659894 (SIGSEGV on arrays)
1848
1849 2007-02-17 Borut Razem <borut.razem AT siol.net>
1850
1851         * support/cpp2/directives.c, support/cpp2/version.c:
1852           synchronized with GCC CPP 4.1.2
1853
1854 2007-02-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1855
1856         * src/mcs51/rtrack.h,
1857         * src/mcs51/rtrack.c: added register tracking for the mcs51 port,
1858           by checking the strings passed by emitcode() to the assembler.
1859           Feel free to change. This in part addresses RFE #482179.
1860           Set environment variable SDCC_RTRACK to enable.
1861         * src/mcs51/gen.c: inserted hooks
1862         * src/mcs51/ralloc.h: added two members to struct regs
1863         * support/regression/tests/regtrack.c: added
1864
1865 2007-02-14 Borut Razem <borut.razem AT siol.net>
1866
1867         * src/SDCC.y: fixed bug #1291133: duplicate members across enum(s)
1868         * Makefile.in: applied patch from Makefile related part of
1869           #1469393: Compiler does not initialize static data
1870
1871 2007-02-12 Maarten Brock <sourceforge.brock AT dse.nl>
1872
1873         * src/SDCCicode.c (geniCodeAssign): return (itemp) right instead of left
1874           for better fix of bug 1273984, compiles pic16 rand.c
1875
1876 2007-02-12 Borut Razem <borut.razem AT siol.net>
1877
1878         * src/pic16/main.c: fixed pic16 standard library directory bug
1879
1880 2007-02-11 Maarten Brock <sourceforge.brock AT dse.nl>
1881
1882         * src/hc08/gen.c (genSwap): fix swap regression test
1883
1884 2007-02-10 Borut Razem <borut.razem AT siol.net>
1885
1886         * src/SDCCsymt.c: fixed bug #1159134: invalid duplicate declarations
1887           with same scope
1888         * support/regression/tests/bug-1654060.c: added regression test for
1889           #1654060
1890
1891 2007-02-09 Bernhard Held <bernhard AT bernhardheld.de>
1892
1893         * src/mcs51/gen.c (genRet): fixed RFE 1652561: added code for bit to
1894         bit moves in return statement
1895
1896 2007-02-09 Borut Razem <borut.razem AT siol.net>
1897
1898         * src/SDCC.y: fixed bug #1654060 typedef within function causes
1899           syntax error
1900
1901 2007-02-07 Maarten Brock <sourceforge.brock AT dse.nl>
1902
1903         * src/mcs51/gen.c (aopPut): use direct name for pushing registers
1904         * src/SDCCmain.c (parseCmdLine): dbuf_s path must be initialised
1905
1906 2007-02-07 Raphael Neider <rneider AT web.de>
1907
1908         * src/pic16/devices.inc,
1909         * device/include/pic16/pic18fregs.h,
1910         * device/include/pic16/pic18f[24][34]31.h,
1911         * device/lib/pic16/libdev/pic18f[24][34]31.c,
1912         * device/lib/pic16/pics.all: added 18f[24][34]31 family
1913         * device/lib/pic16/libio/i2c.ignore: do not build i2c
1914
1915 2007-02-07 Maarten Brock <sourceforge.brock AT dse.nl>
1916
1917         * device/lib/printf_large.c (_print_format): fixed compare/assign bug, how
1918           can this have lived here for so many years?
1919         * src/SDCCicode.c (ast2iCode): return left instead of right for assignment,
1920           fixes bug 1273984, see also patch 1645121, thanks Gnther Jehle
1921         * support/regression/tests/bug1273984.c: new, added, thanks Gnther Jehle
1922
1923 2007-02-06 Bernhard Held <bernhard AT bernhardheld.de>
1924
1925         * src/SDCCBlock.c (addiCodeToeBBlock): fixed bug 1652207: GOTO icodes
1926         appended by loop induction must be at the very end of the eBBlock
1927
1928 2007-02-05 Kevin Vigor
1929
1930         * src/ds390/gen.c, src/ds390/main.c: Address bug 1469393.
1931
1932 2007-02-05 Borut Razem <borut.razem AT siol.net>
1933
1934         * support/regression/fwk/lib/timeout.c: native WIN32 port,
1935           implemented #1651830 Reg. tests: rewrite timeout.c to use WIN32 API
1936
1937 2007-02-03 Borut Razem <borut.razem AT siol.net>
1938
1939         * src/SDCC.y, src/SDCCmain.c, src/SDCCglobl.h, doc/sdccman.lyx:
1940           applied patch #1646602 option to set default signedness of char to
1941           unsigned, added -funsigned-char command line option,
1942           thanks to Gunther Jehle
1943         * device/lib/Makefile.in: added the -f option to rm so it doesn't
1944           prompt for file deletion a few hundred times (especially the
1945           subversion files, which have ro permissions so it asks for
1946           confirmation), thanks to Simon McAuliffe;
1947           added {} + option to find in order to remove multiple files from a
1948           single rm commad
1949
1950 2007-02-02 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1951
1952         * device/include/mcs51/SST89x5xRDx.h: Added.
1953
1954 2007-02-02 Raphael Neider <rneider AT web.de>
1955
1956         * src/pic/glue.c (emitSymbolSet): check sym->etype before use
1957         * src/regression/Makefile: use --no-pcode-opt, ignore failing tests
1958
1959 2007-02-01 Raphael Neider <rneider AT web.de>
1960
1961         * src/pic/glue.c (picglue,emitSymbolSet,showAllMemmaps): emit the
1962           config words again
1963
1964 2007-01-31 Borut Razem <borut.razem AT siol.net>
1965
1966         * support/Util/dbuf_string.h: added ATTRIBUTE_PRINTF to dbuf_printf()
1967           if compiled with GCC. Thanks to Raphael Neider
1968
1969 2007-01-31 Raphael Neider <rneider AT web.de>
1970
1971         * src/pic/pcode.c (isValidIdChar,bankCompare): fuzzy matching of
1972             operand names, handles name and (name + n) for all n,
1973           (sameBank): restructured, also check bank allocation policy,
1974         * src/pic/glue.c (emitPseudoStack): fixed printf arguments,
1975           (pic14_operandsAllocatedInSameBank): check whether to operands
1976             will be allocated into the same bank (i.e., section) to reduce
1977             BANKSEL overhead, queried from pcode.c:sameBank,
1978           (pic14printLocals): reintroduced clustering registers into a single
1979             section: all compiler generated symbols will now reside in one
1980             bank (per file), reducing BANKSEL overhead and code size,
1981           (showAllMemmaps): use local dbuf where possible
1982
1983 2007-01-29 Raphael Neider <rneider AT web.de>
1984
1985         * src/pic/gen.c (popGetExternal): simplified, mark symbol as used,
1986           (call_libraryfunc): retrieve/create symbol and mark as used,
1987           (genFunction): mark defined functions as non-extern and add again
1988            to code memmap for later output
1989         * src/pic/glue.c (emitPseudoStack): put into own subroutine,
1990           (pic14printLocals): reworked for new symbol emission,
1991           (emitIfNew,pic14_constructAbsMap,emitIvalLabel,emitIvals,emitInitVal,
1992           showAllMemmaps): reworked symbol output using dbufs, added handling
1993             of string literals (still incomplete),
1994           (picglue): removed symbol emission, moved into showAllMemmaps,
1995           (emitSymbolSet): new workhorse for symbol output,
1996           (pic14emitMaps,pic14printPublics,pic14printExterns): commented out
1997
1998 2007-01-29 Borut Razem <borut.razem AT siol.net>
1999
2000         * src/SDCCmain.c, src/SDCCutil.c: dbuf_splitFile: file extension
2001           component contains the extension separator.
2002
2003 2007-01-28 Borut Razem <borut.razem AT siol.net>
2004
2005         * sim/ucsim/cmd.src/cmdutil.cc: NUL device is detected as CG_FILE type
2006           on WIN32
2007         * src/SDCCdwarf2.c, src/SDCCglobl.h, src/SDCCmain.c, src/SDCCutil.c,
2008           src/SDCCutil.h, src/avr/gen.c, src/ds390/gen.c, src/hc08/gen.c,
2009           src/mcs51/gen.c, src/pic/device.c, src/pic/gen.c, src/pic/pcode.c,
2010           src/pic/pcodepeep.c, src/pic/ralloc.c, src/pic16/device.h,
2011           src/pic16/gen.c, src/pic16/main.c, src/pic16/pcode.c,
2012           src/pic16/pcodepeep.c, src/pic16/ralloc.c, src/xa51/gen.c,
2013           src/z80/gen.c, support/Util/MySystem.c:
2014           accept slash and backslash as directory separator on WIN32 and
2015           Cygwin ports
2016
2017 2007-01-28 Raphael Neider <rneider AT web.de>
2018
2019         * src/pic16/devices.inc,
2020         * device/include/pic16/pic18f[24][23]21.h,
2021         * device/include/pic16/pic18fregs.h,
2022         * device/lib/pic16/libdev/pic18f[24][23]21.c,
2023         * device/lib/pic16/pics.all: added support for the 18f[24][23]21 family
2024         * device/lib/pic16/libio/adc.ignore,
2025         * device/lib/pic16/libio/i2c.ignore,
2026         * device/lib/pic16/libio/usart.ignore: do not build I/O lib for new
2027           family, as gputils do not yet support the devices
2028         * device/lib/pic16/Makefile.subdir: ignore errors on install
2029         * support/scripts/inc2h-pic16.pl: script to generate pic16 device
2030           headers and libraries from gputils .inc files
2031
2032 2007-01-26 Paul Stoffregen <paul AT pjrc.com>
2033
2034         * doc/sdccman.lyx: add printf_fast_f precision limitation note
2035
2036 2007-01-26 Paul Stoffregen <paul AT pjrc.com>
2037
2038         * doc/sdccman.lyx: add printf benchmarks
2039
2040 2007-01-25 Paul Stoffregen <paul AT pjrc.com>
2041
2042         * device/lib/printf_fast.c: fix %c, char promoted to int
2043         * device/lib/printf_tiny.c: fix %c, char promoted to int
2044
2045 2007-01-25 Paul Stoffregen <paul AT pjrc.com>
2046
2047         * device/lib/printf_fast.c: fix float overflow check, bug #1525093
2048
2049 2007-01-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2050
2051         * support/regression/tests/swap.c: 64 bit hosts failed
2052         * doc/sdccman.lyx: added preliminary mcs51 printf feature matrix
2053
2054 2007-01-25 Raphael Neider <rneider AT web.de>
2055
2056         * src/pic/pcode.c (sameBank,FixRegisterBanking): optimize banksels
2057           based on absolute register address, patch by Alex Blond
2058
2059 2007-01-22 Raphael Neider <rneider AT web.de>
2060
2061         * src/pic/glue.c (pic14emitRegularMap): mark initialized symbols as
2062           emitted, do not emit them again...
2063
2064 2007-01-22 Raphael Neider <rneider AT web.de>
2065
2066         * src/regression/bank1.c, src/regression/compare6.c,
2067           src/regression/add.c: cosmetic changes
2068         * src/pic/pcode.h: moved GPTRTAG_* here from gen.c
2069         * src/pic/gen.c: fixed global zero and one,
2070           (aopForSym): removed unued code,
2071           (aopGet): assert aop is defined, check and use `index' of
2072             pCodeImmd operands (fixes #1630908),
2073         * src/pic/pcode.c (get_op): added output of generic pointer tag,
2074           (register_reassign): prevent accidental register unification,
2075           (ReuseReg): cosmetic changes (also above)
2076         * src/pic/glue.c (pic14_constructAbsMap,pic14emitRegularMap,
2077           pic14emitStaticSeg): do not emit initialized data,
2078           (printIval*): replaced with working versions,
2079           (pic14createInterruptVect,picglue): use idata for initialized data,
2080             now init data should work in all modules (not only main()),
2081         * device/lib/pic/libsdcc/idata.c: NEW, handle initialized data
2082
2083 2007-01-21 Borut Razem <borut.razem AT siol.net>
2084
2085         * sim/ucsim/configure.in: introduced macro DD_COPT_NO_IGNORE,
2086           use -fPIC or -fpic if they are supported and not ignored
2087         * src/SDCCval.c: fixed bug introduced by me in rev. #4577
2088         * support/cpp2/libcpp/lex.c: fixed gcc 4.1.1 warnings
2089
2090 2007-01-20 Borut Razem <borut.razem AT siol.net>
2091
2092         * src/SDCC.lex, src/SDCCmain.c, sdc/SDCCglobl.h, doc/sdccman.lyx:
2093           implemented RFE #1470316: allow "$" in variable names
2094
2095 2007-01-20 Raphael Neider <rneider AT web.de>
2096
2097         * device/include/pic/pic14regs.h: reverted accidental wipe of the file
2098
2099 2007-01-20 Raphael Neider <rneider AT web.de>
2100
2101         * device/lib/pic/libdev/devices.txt: device list for mkall.sh
2102         * device/lib/pic/libdev/mkall.sh: script to rebuild all device libs
2103         * device/lib/pic/libdev/pic14ports.txt: device PORT specifications
2104         * support/scripts/inc2h.pl: fixed major .inc parsing bugs,
2105           applied patch from Robert Tate (#1629249) to add PORTs and TRISs
2106         * device/lib/pic/libdev/pic*.c,
2107         * device/include/pic/pic*.h: regenerated with enhanced inc2h.pl
2108         * device/lib/pic/libdev/Makefile.in: show progress
2109
2110 2007-01-19 Bernhard Held <bernhard AT bernhardheld.de>
2111
2112         * doc/sdccman.lyx: updated "configure options" for autoconf 2.6
2113         * support/scripts/sdcc_cygwin_mingw32,
2114         * support/scripts/sdcc_mingw32,
2115         * support/scripts/build.mak: replaced --datadir by --datarootdir for
2116         conformance with autoconf 2.6
2117
2118 2007-01-19 Raphael Neider <rneider AT web.de>
2119
2120         * src/pic/device.c (register_map): fixed list construction
2121         * src/pic/gen.c (genDivOneByte,genModOneByte): accept result > 1 byte,
2122           (genMod): removed case for genModbits,
2123           (genModbits): removed as now unused/unimplemented
2124         * src/pic/glue.c (picglue): prevent name clash with sources 'init.c'
2125
2126 2007-01-18 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2127
2128         * support/regression/tests/swap.c: added in response to #1638622
2129         * doc/sdccman.lyx: synced version, minor changes
2130
2131 2007-01-18 Borut Razem <borut.razem AT siol.net>
2132
2133         * SDCClabel.c: fixed bug #1638651: wrong linenumber presented in warning,
2134           thanks to Gunther Jehle
2135         * src/asm.c: don't die if the file drfined in #line couldn't be opened
2136         * src/SDCC.lex, src/SDCCglobal.h, src/SDCCicode.c, src/SDCCsymt.c,
2137           src/SDCCval.c: removed redundant definitions of currFname and mylineno;
2138           use filename in lineno instead.
2139         * SDCCast.c: removed MSVC warning C4018: '==' : signed/unsigned mismatch,
2140           print the file name in ast_print()
2141
2142 2007-01-18 Borut Razem <borut.razem AT siol.net>
2143
2144         * support/Util/dbuf_string.c: removed (PTR) cast since it is not
2145           defined in MSVC
2146         * src/SDCC.lex: stringLiteral() returns const char pointer,
2147           EOF detection in stringLiteral(), fixed asmbuf memory leak,
2148           fixed column counting
2149         * src/SDCCval.[ch]: constVal(), value *strVal() and charVal()
2150           accept const char pointer as parameter
2151         * src/SDCCdwarf2.c: corrected buffer size
2152
2153 2007-01-17 Borut Razem <borut.razem AT siol.net>
2154
2155         * support/Util/dbuf_string.c: fixed for amd64
2156
2157 2007-01-15 Borut Razem <borut.razem AT siol.net>
2158
2159         * src/pic16/ralloc.c, src/pic/ralloc.c, src/SDCC.y:
2160           removed terminal symbol ELIPSIS, since it was never generated by the
2161           lexer and it was wrongly used in parameter_identifier_list rule
2162
2163 2007-01-15 Raphael Neider <rneider AT web.de>
2164
2165         * doc/sdccman.lyx: updated PIC14/16 command line args, updated PIC14
2166             code page and data banking description
2167         * src/pic/genarith.c,
2168         * src/pic/gen.h: removed bit arithmetic functions,
2169             updated exit(1) to exit(EXIT_FAILURE)
2170         * device/lib/pic16/libsdcc/stack/stack.S: default to 256 byte stack
2171         * device/include/pic16/pic18f2455.h,
2172         * device/lib/pic16/libdev/pic18f2455.c: added PORTD, LATD, LATE,
2173             TRISD and TRISE, fixed/added some bit names
2174         * device/lib/pic16/libdev/pic18f{2550,4550,4455}.c,
2175         * device/include/pic16/pic18f{2550,4550,4455}.h: simply include
2176             updated pic18f2455.{c,h} instead of duplicating them
2177
2178 2007-01-14 Borut Razem <borut.razem AT siol.net>
2179
2180         * as/mcs51/asnoice.c, as/hc08/asnoice.c: fixed bug #1447412:
2181           Cannot debug files that contain spaces in the path name
2182           by converting spaces in asm file name to underscores
2183
2184 2007-01-13 Borut Razem <borut.razem AT siol.net>
2185
2186         * doc/sdccman.lyx: fixed format errors
2187
2188 2007-01-10 Borut Razem <borut.razem AT siol.net>
2189
2190         * src/SDCC.lex, src/SDCCmain.c: fixed bug #1631895:
2191           codeseg/constseg #pragma fail
2192         * suppoprt/cpp2/Makefile.bcc: reenable Borland C compilation
2193         * suppoprt/cpp2/configure.in, suppoprt/cpp2/libcpp/lex.c,
2194           suppoprt/cpp2/Makefile.in, suppoprt/cpp2/sdcpp-opts,
2195           suppoprt/cpp2/sdcpp.[ch]: house cleaning
2196
2197 2007-01-09 Borut Razem <borut.razem AT siol.net>
2198
2199         * get rid of diagnistic.[ch], pretty-print.[ch],
2200           c-pretty-print.[ch], ... used just for error, warning, ...
2201           message formatting
2202         * suppoprt/cpp2/pretty-print.[ch], suppoprt/cpp2/diagnostic.[ch],
2203           suppoprt/cpp2/diagnostic.def, suppoprt/cpp2/input.h,
2204           suppoprt/cpp2/pretty-print.[ch]:
2205           removed
2206         * suppoprt/cpp2/Makefile.in, suppoprt/cpp2/opts.c,
2207           suppoprt/cpp2/sdcpp-opts.c, suppoprt/cpp2/sdcpp.[ch],
2208           suppoprt/cpp2/sdcpp.dsp:
2209           changed
2210
2211 2007-01-08 Maarten Brock <sourceforge.brock AT dse.nl>
2212
2213         * device/lib/printf_large.c (output_float): removed recursion,
2214           use smaller buffer on stack for mcs51,
2215           fixed bug printing 1.96
2216         * support/regression/tests/snprintf.c: added test
2217
2218 2007-01-07 Borut Razem <borut.razem AT siol.net>
2219
2220         * use dynamic memory buffers instead temporary files
2221         * support/Util/dbuf_string.c, support/Util/dbuf_string.h:
2222           added
2223         * src/Makefile.in, src/SDCC.lex, src/SDCCast.c, src/SDCCast.h,
2224           src/SDCCcse.c, src/SDCCglobl.h, src/SDCCglue.c, src/SDCCglue.h,
2225           src/SDCCicode.c, src/SDCCicode.h, src/SDCCmain.c, src/SDCCmem.c,
2226           src/SDCCmem.h, src/SDCCpeeph.c, src/SDCCpeeph.h, src/SDCCsymt.c,
2227           src/SDCCsymt.h, src/SDCCutil.c, src/asm.c, src/asm.h, src/avr/gen.c,
2228           src/avr/main.c, src/ds390/gen.c, src/ds390/main.c, src/hc08/gen.c,
2229           src/hc08/main.c, src/izt/gen.c, src/mcs51/gen.c, src/mcs51/main.c,
2230           src/pic/device.c, src/pic/gen.c, src/pic/glue.c, src/pic/main.c,
2231           src/pic/ralloc.c, src/pic16/gen.c, src/pic16/glue.c,
2232           src/pic16/main.c, src/pic16/ralloc.c, src/port.h, src/src.dsp,
2233           src/xa51/gen.c, src/xa51/main.c, src/z80/gen.c, src/z80/main.c,
2234           support/Util/dbuf.c, support/Util/dbuf.h:
2235           modified
2236         * .version, sdcc.spec: bumped version to 2.6.4
2237
2238 2007-01-07 Maarten Brock <sourceforge.brock AT dse.nl>
2239
2240         * src/port.h: added TARGET_Z80_LIKE macro
2241         * src/SDCCmain.c (linkEdit): use TARGET_Z80_LIKE,
2242           output PSEG location if --xram-loc or --xstack-loc was used
2243         * as/link/mcs51/lkarea.c (lnksect2): set segment address afterwards
2244
2245 2007-01-07 Maarten Brock <sourceforge.brock AT dse.nl>
2246
2247         * as/as_gbz80.dsp, as/z80/as_gbz80.dsp,
2248         * as/as_z80.dsp,   as/z80/as_z80.dsp,
2249         * as/asx8051.dsp,  as/mcs51/asx8051.dsp,
2250         * sdcc.dsw: moved project files into subdir
2251         * as/hc08/as_hc08.dsp,
2252         * as/hc08/Makefile.bcc,
2253         * as/hc08/Makefile.in,
2254         * as/mcs51/Makefile.bcc,
2255         * as/mcs51/Makefile.in,
2256         * as/z80/Makefile.bcc,
2257         * as/z80/Makefile.in,
2258         * as/link/mcs51/Makefile.bcc: use as/strcmpi.c
2259         * as/hc08/asm.h,
2260         * as/mcs51/asm.h,
2261         * as/z80/asm.h: added as_strcmpi() and as_strncmpi() prototypes
2262         * as/hc08/asmain.c,
2263         * as/hc08/assym.c,
2264         * as/mcs51/asmain.c,
2265         * as/mcs51/assym.c,
2266         * as/z80/assym.c: removed include "strcmpi.h"
2267         * as/hc08/strcmpi.c,
2268         * as/hc08/strcmpi.h,
2269         * as/mcs51/strcmpi.c,
2270         * as/mcs51/strcmpi.h,
2271         * support/Util/strcmpi.c,
2272         * support/Util/strcmpi.h: removed files
2273         * as/strcmpi.c: added as_strncmpi()
2274
2275 2007-01-05 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2276
2277         * sdcc.dsw: Added some dependencies on project config.dsp
2278
2279 2007-01-05 Maarten Brock <sourceforge.brock AT dse.nl>
2280
2281         * as/link/mcs51/lkarea.c (lnkarea2, lnksect2): replaced [di]seg_ap->a_addr
2282           with [di]ram_start to fix a regresion
2283
2284 2007-01-03 Bernhard Held <bernhard AT bernhardheld.de>
2285
2286         * configure.in: added missing mcs51 in status output
2287         * Makefile.in: add support/regression to SDCC_EXTRA to distclean this
2288         directory
2289         * debugger/mcs51/clean.mk (distclean): remove config.h
2290         * src/clean.mk (clean): remove SDCCy.c, SDCCy.h, SDCClex.c
2291         * support/cpp2/Makefile.in (clean): remove s-options, optionlist,
2292         options.h, s-options-h and options.c
2293         * support/cpp2/clean.mk: unused, removed
2294         * Makefile.common.in,
2295         * main_in.mk,
2296         * as/Makefile.in,
2297         * as/hc08/Makefile.in,
2298         * as/hc08/clean.mk,
2299         * as/mcs51/Makefile.in,
2300         * as/mcs51/clean.mk,
2301         * as/z80/clean.mk,
2302         * as/z80/conf.mk,
2303         * as/z80/Makefile.in,
2304         * as/z80/clean.mk,
2305         * as/link/Makefile.in,
2306         * as/link/hc08/Makefile.in,
2307         * as/link/hc08/clean.mk,
2308         * as/link/mcs51/Makefile.in,
2309         * as/link/mcs51/clean.mk,
2310         * as/link/z80/Makefile.in,
2311         * as/link/z80/clean.mk,
2312         * as/link/z80/conf.mk,
2313         * debugger/mcs51/Makefile.in,
2314         * debugger/mcs51/clean.mk,
2315         * device/include/Makefile.in,
2316         * device/lib/Makefile.in,
2317         * device/lib/mcs51/Makefile.in,
2318         * device/lib/pic/Makefile.in,
2319         * device/lib/pic/Makefile.common.in,
2320         * device/lib/pic/Makefile.subdir,
2321         * device/lib/pic/Makefile.rules,
2322         * device/lib/pic16/libio/Makefile.in,
2323         * device/lib/pic16/Makefile.subdir,
2324         * device/lib/pic16/libdev/Makefile.in,
2325         * device/lib/pic16/Makefile.rules,
2326         * device/lib/pic16/Makefile.common.in,
2327         * sim/ucsim/avr.src/Makefile.in,
2328         * sim/ucsim/main_in.mk,
2329         * sim/ucsim/cmd.src/Makefile.in,
2330         * sim/ucsim/doc/Makefile.in,
2331         * sim/ucsim/gui.src/Makefile.in,
2332         * sim/ucsim/gui.src/obsolete/portmon.src/Makefile.in,
2333         * sim/ucsim/gui.src/serio.src/Makefile.in,
2334         * sim/ucsim/hc08.src/Makefile.in,
2335         * sim/ucsim/libltdl/Makefile.in,
2336         * sim/ucsim/s51.src/Makefile.in,
2337         * sim/ucsim/sim.src/Makefile.in,
2338         * sim/ucsim/sim.src/conf.mk,
2339         * sim/ucsim/xa.src/Makefile.in,
2340         * sim/ucsim/z80.src/Makefile.in,
2341         * src/Makefile.in,
2342         * src/clean.mk,
2343         * src/port.mk,
2344         * support/cpp2/Makefile.in,
2345         * support/librarian/Makefile.in,
2346         * support/librarian/clean.mk,
2347         * support/makebin/Makefile.in,
2348         * support/makebin/clean.mk,
2349         * support/packihx/Makefile.in,
2350         * support/regression/Makefile.in,
2351         * support/regression/ports/ds390/spec.mk,
2352         * support/regression/ports/gbz80/spec.mk,
2353         * support/regression/ports/hc08/spec.mk,
2354         * support/regression/ports/mcs51/spec.mk,
2355         * support/regression/ports/mcs51-large/spec.mk,
2356         * support/regression/ports/mcs51-medium/spec.mk,
2357         * support/regression/ports/mcs51-xstack-auto/spec.mk,
2358         * support/regression/ports/pic14/spec.mk,
2359         * support/regression/ports/pic16/spec.mk,
2360         * support/regression/ports/mcs51-stack-auto/spec.mk,
2361         * support/regression/ports/ucz80/spec.mk,
2362         * support/regression/ports/xa51/spec.mk,
2363         * support/regression/ports/z80/spec.mk: fixed for autoconf 2.6x by
2364         adding a slash after $(top_builddir) and/or adding @datarootdir@
2365         * configure.in,
2366         * debugger/mcs51/configure.in,
2367         * device/lib/pic/configure.in,
2368         * device/lib/pic16/configure.in,
2369         * sim/ucsim/configure.in,
2370         * support/cpp2/configure.in,
2371         * support/packihx/configure.in: changed AC_PREREQ to 2.60
2372         * configure,
2373         * debugger/mcs51/configure,
2374         * device/lib/pic/configure,
2375         * device/lib/pic16/configure,
2376         * sim/ucsim/configure,
2377         * support/cpp2/configure,
2378         * support/packihx/configure: generated with autoconf 2.60
2379
2380 2007-01-02 Maarten Brock <sourceforge.brock AT dse.nl>
2381
2382         * as/link/hc08/lkihx.c (newArea),
2383         * as/link/hc08/lkrloc.c: renamed newArea() to ihxNewArea()
2384
2385 2007-01-02 Borut Razem <borut.razem AT siol.net>
2386
2387         * doc/sdccman.lyx: documented #pragma sdcc_hash
2388         * support/cpp2/sdcpp.c: allow_naked_hash (value of #pragma sdcc_hash)
2389           initialized to 0
2390         * support/cpp2/c-ppoutput.c: fixed warning: no newline at end of file
2391
2392 2007-01-01 Bernhard Held <bernhard AT bernhardheld.de>
2393
2394         * src/SDCCast.c (createDo): backPatchLabels() needs falseLabel in
2395         empty 'while'-loop to work correctly, see regression test 'while.c'
2396         * support/regression/tests/while.c: added
2397
2398 2007-01-01 Borut Razem <borut.razem AT siol.net>
2399
2400         * support/cpp2/libcpp/directives.c, support/cpp2/libcpp/identifiers.c,
2401           support/cpp2/libcpp/init.c, support/cpp2/libcpp/sdcpp-opts.c,
2402           support/cpp2/libcpp/sdcpp.c:
2403           sdcpp specific pragma/directive/option handling moved to sdcpp.c
2404         * doc/sdccman.lyx: reference to the GCC 4.1.1 CPP Manual
2405         * support/cpp2/libcpp/mkdeps.c: synchronized with GCC CPP 4.1.1
2406
2407 2006-12-31 Borut Razem <borut.razem AT siol.net>
2408
2409         * SDCPP synchronized with GCC CPP release version 4.1.1,
2410           currently the latest release:
2411         * support/cpp2/libcpp, support/cpp2/libcpp/include,
2412           support/cpp2/libcpp/include/cpp-id-data.h
2413           support/cpp2/libiberty/fopen_unlocked.c
2414           support/cpp2/libiberty/md5.c
2415           support/cpp2/md5.h
2416           support/cpp2/opt-functions.awk
2417           support/cpp2/opt-gather.awk
2418           support/cpp2/optc-gen.awk
2419           support/cpp2/opth-gen.awk:
2420           added
2421         * support/cpp2/Makefile.in, support/cpp2/auto-host_vc_in.h,
2422           support/cpp2/c-incpath.c, support/cpp2/c-incpath.h,
2423           support/cpp2/c-ppoutput.c, support/cpp2/c-pretty-print.c,
2424           support/cpp2/c-pretty-print.h, support/cpp2/cppdefault.c,
2425           support/cpp2/cppdefault.h, support/cpp2/diagnostic.c,
2426           support/cpp2/diagnostic.h, support/cpp2/except.h,
2427           support/cpp2/hwint.h, support/cpp2/input.h,
2428           support/cpp2/intl.h, support/cpp2/move-if-change,
2429           support/cpp2/opts.c, support/cpp2/opts.h,
2430           support/cpp2/output.h, support/cpp2/prefix.c,
2431           support/cpp2/prefix.h, support/cpp2/pretty-print.c,
2432           support/cpp2/pretty-print.h, support/cpp2/sdcpp-opts.c,
2433           support/cpp2/sdcpp.c, support/cpp2/sdcpp.dsp,
2434           support/cpp2/sdcpp.h, support/cpp2/sdcpp.opt,
2435           support/cpp2/sdcppa.dsp, support/cpp2/symcat.h,
2436           support/cpp2/version.c:
2437           modified
2438         * support/cpp2/libcpp/charset.c, support/cpp2/libcpp/directives.c,
2439           support/cpp2/libcpp/errors.c, support/cpp2/libcpp/expr.c,
2440           support/cpp2/libcpp/files.c, support/cpp2/libcpp/identifiers.c,
2441           support/cpp2/libcpp/include/cpplib.h, support/cpp2/libcpp/include/line-map.h,
2442           support/cpp2/libcpp/include/mkdeps.h, support/cpp2/libcpp/include/symtab.h,
2443           support/cpp2/libcpp/init.c, support/cpp2/libcpp/internal.h,
2444           support/cpp2/libcpp/lex.c, support/cpp2/libcpp/line-map.c,
2445           support/cpp2/libcpp/macro.c, support/cpp2/libcpp/mkdeps.c,
2446           support/cpp2/libcpp/symtab.c, support/cpp2/libcpp/system.h,
2447           support/cpp2/libcpp/traditional.c, support/cpp2/libcpp/ucnid.h,
2448           support/cpp2/libiberty/hashtab.c, support/cpp2/libiberty/hashtab.h:
2449           moved
2450         * support/cpp2/cppcharset.c, support/cpp2/cpperror.c,
2451           support/cpp2/cppexp.c, support/cpp2/cppfiles.c,
2452           support/cpp2/cpphash.c, support/cpp2/cpphash.h,
2453           support/cpp2/cppinit.c, support/cpp2/cpplex.c,
2454           support/cpp2/cpplib.c, support/cpp2/cpplib.h,
2455           support/cpp2/cppmacro.c, support/cpp2/cpptrad.c,
2456           support/cpp2/cppucnid.h, support/cpp2/hashtab.c,
2457           support/cpp2/hashtab.h, support/cpp2/hashtable.c,
2458           support/cpp2/hashtable.h, support/cpp2/line-map.c,
2459           support/cpp2/line-map.h, support/cpp2/mkdeps.c,
2460           support/cpp2/mkdeps.h, support/cpp2/options_vc_in.c,
2461           support/cpp2/options_vc_in.h, support/cpp2/opts.sh,
2462           support/cpp2/system.h:
2463           deleted / moved
2464
2465 2006-12-31 Borut Razem <borut.razem AT siol.net>
2466
2467         * configure.in, configure: fixed bug #1538756: configure dies if bison
2468           and flex are not installed, 2nd try
2469
2470 2006-12-30 Bernhard Held <bernhard AT bernhardheld.de>
2471
2472         * src/mcs51/peeph.def: renamed rule 400 to 500, moved rule 253.x to
2473         400.x for better code in RFE 899102
2474
2475 2006-12-30 Bernhard Held <bernhard AT bernhardheld.de>
2476
2477         * src/SDCCpeeph.c (deadMove),
2478         * src/port.h,
2479         * src/mcs51/peep.h: renamed 'op' by 'reg'
2480         * src/mcs51/peep.c (isFunc, isCallerSaveFunc): added,
2481         (scan4op): small change for removeDeadMove(), added support for
2482         'callee saves' and/or PACLL function calls,
2483         (removeDeadMove): added, removes superflous 'mov r%1,%2',
2484         (removeDeadPopPush): renamed from mcs51DeadMove(), common parts
2485         left in new dispatcher mcs51DeadMove()
2486         (mcs51DeadMove): dispatcher for removeDeadPopPush() and new
2487         removeDeadMove()
2488         * src/mcs51/peeph.def: added rule 301 removing superflous 'mov r%1,%2'
2489
2490 2006-12-30 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2491
2492         * support/cpp2/options_vc_in.h, support/cpp2/options_vc_in.c,
2493           support/cpp2/sdcppa.dsp: create 'options.h' and 'options.c' under MSVC.
2494
2495 2006-12-30 Borut Razem <borut.razem AT siol.net>
2496
2497         * support/cpp2/spacs.h: deleted from svn
2498         * configure.in, configure: fixed bug #1538756: configure dies if bison
2499           and flex are not installed
2500
2501 2006-12-29 Maarten Brock <sourceforge.brock AT dse.nl>
2502
2503         * src/z80/gen.c (assignResultValue): fixed bug when registers overlap,
2504           with this z80 passes printf float test when enabled
2505         * support/regression/tests/bug1057979.c: typo disabled ds390 float test
2506
2507 2006-12-28 Borut Razem <borut.razem AT siol.net>
2508
2509         * support/cpp2/config.in, support/cpp2/configure.in,
2510           support/cpp2/configure, support/cpp2/Makefile.in:
2511           fix for the solaris build
2512
2513 2006-12-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2514
2515         * src/SDCC.y (type_specifier2, pointer),
2516         * src/SDCCsymt.h,
2517         * src/SDCCsymt.c (mergeSpec, checkSClass),
2518         * support/Util/SDCCerr.c,
2519         * support/Util/SDCCerr.h: Parse and validate the restrict keyword
2520         * support/valdiag/valdiag.py: Allow test cases to specify
2521           required language standard
2522         * support/valdiag/tests/restrict.c: New file to test restrict keyword
2523         * support/valdiag/tests/tentdecl.c: Supress empty source file error
2524
2525 2006-12-27 Borut Razem <borut.razem AT siol.net>
2526
2527         * support/cpp2/cppmain.c, support/cpp2/mbchar.[ch]: removed
2528         * support/cpp2/libiberty/Makefile.in, support/cpp2/libiberty/sdcpp.dsp:
2529           mbchar removed
2530         * support/cpp2/libiberty/getpwd.c, support/cpp2/sdcpp.h:
2531           fixed for borland C
2532         * support/cpp2/libiberty/Makefile.bcc: updated
2533         * src/pic16/main.c: fixed #pragma udata handling
2534         * src/mcs51/mcs51.dsp: added peep.[ch] to the project
2535
2536 2006-12-26 Bernhard Held <bernhard AT bernhardheld.de>
2537
2538         * src/SDCCpeeph.c: made labelHashEntry global,
2539         made pcDistance, FBYNAME static,
2540         (pcDistance): made static, use isComment and isLabel,
2541         (deadMove): added,
2542         (getLabelRef): added, extracted from labelRefCount(),
2543         (labelRefCount): use new getLabelRef(),
2544         (callFuncByName): made static, added deadMove,
2545         use isComment and isLabel,
2546         (newPeepRule): made static, set isLabel,
2547         (isLabelDefinition): added parameter isPeepRule to allow '%' in
2548         labels from peephole rules,
2549         (buildLabelRefCountHash): speed up by running isLabelDefinition() only
2550         when isComment or isLabel is set
2551         * src/SDCCpeeph.h: added "isLabel" and "visited" to struct lineNode,
2552         added labelHashEntry, isLabelDefinition, labelHash and getLabelRef
2553         to make them global
2554         * src/mcs51/peep.h: added
2555         * src/mcs51/peep.c: added, implements mcs51DeadMove()
2556         * src/port.h: added peep->deadMove to port structure
2557         * src/mcs51/main.c: initialize peep->deadMove with mcs51DeadMove
2558         * src/mcs51/peeph.def: renumbered rule 300 to 400, added new rule 300
2559         deadMove, finally removed no. 1 and 2
2560         * src/mcs51/gen.c,
2561         * src/pic/gen.c,
2562         * src/z80/gen.c,
2563         * src/z80/ralloc.c,
2564         * src/pic16/gen.c,
2565         * src/ds390/gen.c,
2566         * src/hc08/gen.c: mark lines with isComment or isLabel
2567         * sim/ucsim/s51.src/uc390hw.cc: don't waist 65535 ticks before CKRDY
2568         * .version,
2569         * sdcc.spec: bumped version to 2.6.3
2570
2571 2006-12-26 Borut Razem <borut.razem AT siol.net>
2572
2573         * support/cpp2/Makefile.in: added dependency on options.h
2574         * configure: regenerated
2575         * support/cpp2/sdcpp.opt, support/cpp2/move-if-change: svn:eol-style native
2576         * support/cpp2/Makefile.in: added vasprintf.c
2577
2578 2006-12-25 Borut Razem <borut.razem AT siol.net>
2579
2580         * SDCPP synchronized with GCC CPP release version 3.4.6,
2581           the latest release before 4.x:
2582         * support/cpp2/Makefile.in, support/cpp2/config.h,
2583           support/cpp2/configure, support/cpp2/configure.in,
2584           support/cpp2/cppdefault.c, support/cpp2/cppdefault.h,
2585           support/cpp2/cpperror.c, support/cpp2/cppexp.c,
2586           support/cpp2/cppfiles.c, support/cpp2/cpphash.c,
2587           support/cpp2/cpphash.h, support/cpp2/cppinit.c,
2588           support/cpp2/cpplex.c, support/cpp2/cpplib.c,
2589           support/cpp2/cpplib.h, support/cpp2/cppmacro.c,
2590           support/cpp2/cpptrad.c, support/cpp2/except.h,
2591           support/cpp2/hashtable.c, support/cpp2/hashtable.h,
2592           support/cpp2/hwint.h, support/cpp2/intl.h,
2593           support/cpp2/line-map.c, support/cpp2/line-map.h,
2594           support/cpp2/mkdeps.c, support/cpp2/mkdeps.h,
2595           support/cpp2/output.h, support/cpp2/prefix.c,
2596           support/cpp2/prefix.h, support/cpp2/sdcpp.dsp,
2597           support/cpp2/system.h, support/cpp2/version.c:
2598           modified
2599         * support/cpp2/c-incpath.c, support/cpp2/c-incpath.h,
2600           support/cpp2/c-ppoutput.c, support/cpp2/c-pretty-print.c,
2601           support/cpp2/c-pretty-print.h, support/cpp2/cppcharset.c,
2602           support/cpp2/cppucnid.h, support/cpp2/diagnostic.c,
2603           support/cpp2/diagnostic.def, support/cpp2/diagnostic.h,
2604           support/cpp2/hashtab.c, support/cpp2/hashtab.h,
2605           support/cpp2/input.h, support/cpp2/libiberty/getpwd.c,
2606           support/cpp2/libiberty/vasprintf.c, support/cpp2/libiberty/xmemdup.c,
2607           support/cpp2/move-if-change, support/cpp2/opts.c,
2608           support/cpp2/opts.h, support/cpp2/opts.sh,
2609           support/cpp2/pretty-print.c, support/cpp2/pretty-print.h,
2610           support/cpp2/sdcpp.opt, support/cpp2/sdcpp-opts.c,
2611           support/cpp2/win32, support/cpp2/win32/dirent.c,
2612           support/cpp2/win32/dirent.h:
2613           added
2614         * support/cpp2/sdcpp.c: renamed from sdcppmain.c
2615         * support/cpp2/sdcpp.h: renamed from sdcc.h
2616         * sdcppinit.c: deleted
2617
2618 2006-12-23 Borut Razem <borut.razem AT siol.net>
2619
2620         * support/cpp2/cpphash.h, support/cpp2/cpplex.c,
2621           support/cpp2/cpplib.[ch], support/cpp2/sdcppinit.c, doc/sdccman.lyx,
2622           preproc.c: an other try to fix bug #982435: introduced
2623           -pedantic-parse-number command line option and pedantic_parse_number
2624           pragma
2625
2626 2006-12-21 Maarten Brock <sourceforge.brock AT dse.nl>
2627
2628         * as/link/mcs51/lkarea.c (lnkarea2): handle absolute areas, restructured
2629            BSEG handling,
2630           (lnksect2): use --data-loc and --idata-loc as lower bound for ramstart,
2631            corrected overlayed areax addresses, warn about memory overlaps
2632         * as/mcs51/asmain.c (asmbl): create a new area for every .org directive
2633         * src/avr/main.c,
2634         * src/ds390/main.c,
2635         * src/hc08/main.c,
2636         * src/mcs51/main.c,
2637         * src/pic16/main.c,
2638         * src/pic/main.c,
2639         * src/xa51/main.c,
2640         * src/z80/main.c,
2641         * src/port.h: added xabs_name and iabs_name
2642         * src/SDCCglue.c (emitRegularMap): allocate for absolutes with initializer
2643           (glue, emitMaps): create and emit maps d_abs and i_abs
2644         * src/SDCCglue.h: cosmetic changes
2645         * src/SDCCmain.c (setDefaultOptions): idata can start below 0x80
2646         * src/SDCCmem.h,
2647         * src/SDCCmem.c (initMem): added x_abs, i_abs and d_abs
2648           (allocDefault): put absolute, initialized globals in them
2649         * support/regression/tests/absolute.c: added absolute bdata test
2650         * device/lib/printf_large.c (output_float): moved fpBuffer to stack/xdata
2651
2652 2006-12-20 Borut Razem <borut.razem AT siol.net>
2653
2654         * support/cpp2/cpphash.h, support/cpp2/cpplex.c: fixed bug #982435
2655         * support/regression/tests/preproc.c: renamed from bug-1351710.c,
2656           added regression test for bug #982435
2657
2658 2006-12-18 Borut Razem <borut.razem AT siol.net>
2659
2660         * src/SDCCutil.c: fixed a bug in (get_pragma_token)
2661         * src/pic16/main.c, src/SDCC.lex, src/z80/main.c:
2662           small cosmetic changes
2663         * src/SDCC.lex: (stringLiteral) fixed bug #1351710
2664         * support/regression/tests/bug-1351710.c: added regression test
2665
2666 2006-12-18 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2667
2668         * doc/sdccman.lyx: added the long missed iCode table
2669           "<where is figure II?>", added links to wiki
2670
2671 2006-12-17 Borut Razem <borut.razem AT siol.net>
2672
2673         * doc/sdccman.lyx, src/pic16/main.c, src/pic/main.c, src/port.h,
2674           src/SDCC.lex, src/SDCCutil.[ch], src/z80/main.c,
2675           support/Util/SDCCerr.[ch]: removed deprecated pragmas,
2676           unified table driven pragma handling, pragma argument type checking
2677         * support/Util/dbuf.c: (dbuf_set_size) allow to set size equal to the
2678           current one - version 1.1.3
2679         * src/SDCCmain.c: (setParseWithComma) substituted brain damaged strtok
2680
2681 2006-12-13 Raphael Neider <rneider AT web.de>
2682
2683         * src/pic/device.h: removed AssignedMemory structure and macros
2684         * src/pic/device.c: removed global finalMapping (linker assigns
2685             memory locations),
2686           (register_map): add SFRs to remembered memRanges
2687           (addMemRange,isSFR,dump_map,dump_sfr,mapRegister,assignRegister,
2688           assignFixedRegisters,assignRelocatableRegisters): removed,
2689           (setMaxRAM,validAddress): adapted accordingly,
2690           (pic14_hasSharebank,pic14_getSharedStack): only report and use
2691             reasonably sized sharebanks,
2692         * src/pic/ralloc.c (writeUsedRegs): stripped down (remove?),
2693           (allDefsOutOfRange): removed unused code,
2694         * src/pic/main.c (_process_pragma): removed memmap/maxram pragma
2695             handling
2696         * src/pic/pcode.c (register_reassign): removed recursion warning,
2697             fired far too often,
2698         * src/pic/glue.c (emitSymbolToFile,pic14_constructAbsMap): modified
2699             to use existing pic14_stringInSet() to avoid duplicate symbols,
2700             tidied up the code a bit,
2701           (pic14printLocals): added in symmetry to printExterns, replaces
2702             writeUsedRegs more or less,
2703           (picglue): call new pic14_printLocals(),
2704         * device/include/pic/pic*.h: removed #pragma memmap directives,
2705             information gathered from include/pic/pic14devices.txt
2706         * support/scripts/inc2h.pl: do not emit #pragma memmap lines
2707
2708 2006-12-10 Maarten Brock <sourceforge.brock AT dse.nl>
2709
2710         * device/include/mcs51/C8051F520.h: fixed buggy CPT0MX
2711
2712 2006-12-11 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2713
2714         * device/include/mcs51/cc2430.h: fixed missing ';'
2715
2716 2006-12-10 Raphael Neider <rneider AT web.de>
2717
2718         * device/lib/pic16/libc/stdio/vfprintf.c,
2719         * device/lib/pic16/libc/stdio/printf_small.c,
2720         * device/lib/pic16/libc/stdio/printf_timy.c: pop int from stack for
2721           char arguments, as char varargs are cast to int by the caller,
2722           hopefully fixes #1604915 (other device libraries are still affected)
2723
2724 2006-12-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2725
2726         * src/mcs51/ralloc.c (packRegsForAssign),
2727         * src/hc08/ralloc.c (packRegsForAssign): fixed bug #1605880
2728
2729 2006-12-10 Maarten Brock <sourceforge.brock AT dse.nl>
2730
2731         * device/include/malloc.h: removed init_dynamic_memory
2732         * device/lib/malloc.c: made init_dynamic_memory static and automatically
2733           call it once from malloc. Also use _sdcc_heap[] from _heap.c
2734         * device/lib/_heap.c: new, added, contains _sdcc_heap[]
2735         * device/lib/libsdcc.lib,
2736         * device/lib/Makefile.in,
2737         * support/regression/ports/mcs51-xstack-auto/spec.mk: added _heap.c
2738         * doc/sdccman.lyx: documented use of new _heap.c
2739         * support/regression/tests/malloc.c: removed init_dynamic_memory
2740         * src/cdbFile.c(spacesToUnderscores): new function,
2741           (cdbWriteEndFunction, cdbWriteCLine): use spacesToUnderscores, fixes bug
2742           1068030
2743         * device/include/tinibios.h: removed defines for putchar and getchar
2744         * device/lib/ds390/Makefile.in: added putchar.c
2745         * device/lib/ds390/putchar.c: new, added, fixes bug 1465671
2746
2747 2006-12-09 Borut Razem <borut.razem AT siol.net>
2748
2749         * support/cpp2/sdcc.h: prevent multiple inclusion
2750         * support/cpp2/options.h: deleted
2751
2752 2006-12-08 Borut Razem <borut.razem AT siol.net>
2753
2754         * support/cpp2/sdcc.h: removed x*alloc() macros
2755         * support/cpp2/libiberty.h: uncommented out x*alloc() declarations
2756         * support/cpp2/Makefile.bcc, support/cpp2/Makefile.in,
2757           support/cpp2/sdcpp.sdc: x*alloc files added to the project
2758         * support/cpp2/system.h: moved #include "sdcc.h"
2759         * support/cpp2/libiberty/xexit.c, support/cpp2/libiberty/xmalloc.c,
2760           support/cpp2/libiberty/xstrdup.c, support/cpp2/libiberty/xstrerror.c:
2761           added
2762         * support/cpp2/sdcppinit.c: added -isysroot, -fsigned-char,
2763           -funsigned-char options
2764         * support/cpp2/sdcppmain.c: fixed bug 1611411
2765
2766 2006-12-07 Borut Razem <borut.razem AT siol.net>
2767
2768         * support/cpp2/cpplib.c: reverted sdcpp special handling of _Pragma()
2769           directive
2770
2771 2006-12-06 Maarten Brock <sourceforge.brock AT dse.nl>
2772
2773         * src/SDCCsymt.c (addDecl): fixed bug 1609244
2774         * src/SDCCmain.c (linkEdit): fixed bug 1609279
2775         * doc/sdccman.lyx,
2776         * .version: bumped to 2.6.2 because a) it's been a while
2777           b) the linker sources have moved c) the preprocessor is upgraded
2778
2779 2006-12-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2780
2781         * support/regression/tests/snprintf.c: some checks
2782         * lib/src/printf_large.c: %bc: read char instead of int from stack
2783
2784 2006-12-03 Maarten Brock <sourceforge.brock AT dse.nl>
2785
2786         * device/include/mcs51/cc2430.h: inserted _XPAGE
2787
2788 2006-12-02 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2789
2790         * device/include/mcs51/cc2430.h: added
2791
2792 2006-12-02 Maarten Brock <sourceforge.brock AT dse.nl>
2793
2794         * device/include/asm/default/features.h,
2795         * device/include/asm/ds390/features.h,
2796         * device/include/mcs51/at89s53.h,
2797         * device/include/ser.h,
2798         * device/include/ser_ir.h,
2799         * device/include/serial.h: changed keywords to double underscore variants,
2800           fixes bug 1590261 some more, thanks Steven Borley
2801
2802 2006-12-01 Raphael Neider <rneider AT web.de>
2803
2804         * src/pic/pcode.c (register_reassign): do not crash on recursive code
2805           but emit warning (recursion is not supported for pic14)
2806
2807 2006-11-30 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2808
2809         * src/mcs51/peeph.def: added 101.a,b (moves to int/long xdata)
2810         * doc/sdccman.lyx: various small changes, acknowledged Sourceforge
2811
2812 2006-11-30 Raphael Neider <rneider AT web.de>
2813
2814         * src/pic/device.c (dump_sfr): always emit symbols
2815         * src/pic/glue.c (pic14printPublics): fixed typo
2816
2817 2006-11-30 Raphael Neider <rneider AT web.de>
2818
2819         * src/pic/device.c (create_pic,ram_map): add memRange entries to PIC
2820           (pic14_getSharebankSize, pic14_getSharebankAddress): replaced with
2821           (pic14_hasSharebank,pic14_isShared,pic14_allRAMShared,
2822            pic14_getSharedStack): NEW, evaluate the memRange entries to locate
2823            a sharebank, use a non-shared bank for the stack if none available
2824         * src/pic/device.h (struct memRange): added linked list next field,
2825           added prototypes for above functions
2826         * src/pic/ralloc.c (initStack): handle shared and banked stacks,
2827           (typeRegWithIdx): accept fixed and unfixed stack registers
2828         * src/pic/pcode.c (pCodeInitRegisters): use new functions to create
2829           the stack, handle shared and banked stack (except for WSAVE),
2830           (insertBankSel): removed useless optimization (will never fire),
2831           (FixRegisterBanking): added optimization for devices with only one
2832           possibly aliased bank of memory, like 16f84
2833         * src/pic/glue.c (pic14_constructAbsMap): back to udata_ovr, as some
2834           devices have no SHAREBANK in the linker script
2835         * device/include/pic/pic14devices.txt: documented memmap
2836         * device/lib/pic/libdev/Makefile.in: removed --stack-loc again
2837
2838 2006-11-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2839
2840         * src/hc08/gen.c (transferRegReg, loadRegFromAop, forceStackedAop,
2841           storeRegToAop, freeAsmop, genPlusIncr, genPlus, genPointerGetSetOfs,
2842           genAnd, genOr, genXor, genLeftShiftLiteral, genRightShiftLiteral,
2843           genhc08Code): switched most of the D (debug) macros to DD (detailed
2844           debug) macros to better control clutter in the generated .asm file.
2845         * src/hc08/gen.c: (forceStackedAop, genUminus, genLeftShift,
2846           genRightShift): fixed bug with non-constant bit shift stored to
2847           a volatile result (SF Open Discussion forum thread #1616749).
2848           Single byte case is not yet optimized.
2849
2850 2006-11-28 Maarten Brock <sourceforge.brock AT dse.nl>
2851
2852         * device/include/asm/mcs51/features.h,
2853         * device/include/malloc.h,
2854         * device/include/stdio.h: changed keywords to double underscore variants,
2855           fixes bug 1590261
2856
2857 2006-11-27 Borut Razem <borut.razem AT siol.net>
2858
2859         * support/cpp2/cppexp.c, support/cpp2/hashtable.h,
2860           support/cpp2/Makefile.in, support/cpp2/cppfiles.c,
2861           support/cpp2/output.h, support/cpp2/cppinit.c,
2862           support/cpp2/cpplib.c, support/cpp2/cpplib.h,
2863           support/cpp2/Makefile.bcc, support/cpp2/cpphash.c,
2864           support/cpp2/cppdefault.c, support/cpp2/system.h,
2865           support/cpp2/cpphash.h, support/cpp2/cpplex.c,
2866           support/cpp2/cppdefault.h, support/cpp2/mbchar.c,
2867           support/cpp2/prefix.c, support/cpp2/except.h,
2868           support/cpp2/hwint.h, support/cpp2/cppmacro.c,
2869           support/cpp2/line-map.h, support/cpp2/sdcpp.dsp,
2870           support/cpp2/sdcc.h, support/cpp2/mkdeps.c,
2871           support/cpp2/version.c, support/cpp2/cppmain.c,
2872           support/cpp2/version.h, support/cpp2/hashtable.c,
2873           support/cpp2/cpperror.c:
2874           synchronized with GCC CPP release version 3.3.6,
2875           the latest where cppmain.c still exists.
2876         * support/cpp2/cpptrad.c, support/cpp2/sdcppmain.c,
2877           support/cpp2/sdcppinit.c: added
2878
2879 2006-11-27 Borut Razem <borut.razem AT siol.net>
2880
2881         * support/cpp2/cpplex.c:
2882           fixed _asm ... _endasm handling bug, introduce with GCC CPP
2883           synchronization
2884         * support/cpp2/cpplib.c: removed definitions of unused variables
2885
2886 2006-11-26 Borut Razem <borut.razem AT siol.net>
2887
2888         * support/cpp2/libiberty.h: commented out x*alloc() declarations
2889           since they are redefined by macros in support/cpp2/sdcc.h
2890         * support/cpp2/sdcc.h: x*alloc macro redefinition
2891
2892 2006-11-25 Borut Razem <borut.razem AT siol.net>
2893
2894         * support/cpp2/cppexp.c, support/cpp2/hashtable.h,
2895           support/cpp2/configure, support/cpp2/Makefile.in,
2896           support/cpp2/cppfiles.c, support/cpp2/output.h,
2897           support/cpp2/cppinit.c, support/cpp2/cpplib.c,
2898           support/cpp2/config.h, support/cpp2/cpplib.h,
2899           support/cpp2/Makefile.bcc, support/cpp2/cpphash.c,
2900           support/cpp2/cppdefault.c, support/cpp2/config.in,
2901           support/cpp2/system.h, support/cpp2/cpplex.c,
2902           support/cpp2/cpphash.h, support/cpp2/mbchar.c,
2903           support/cpp2/cppdefault.h, support/cpp2/prefix.c
2904           support/cpp2/hwint.h, support/cpp2/mbchar.h,
2905           support/cpp2/prefix.h, support/cpp2/cppmacro.c,
2906           support/cpp2/configure.in, support/cpp2/intl.h,
2907           support/cpp2/sdcpp.dsp, support/cpp2/acconfig.h,
2908           support/cpp2/sdcc.h, support/cpp2/mkdeps.c,
2909           support/cpp2/version.c, support/cpp2/cppmain.c,
2910           support/cpp2/ansidecl.h, support/cpp2/libiberty.h,
2911           support/cpp2/hashtable.c, support/cpp2/aclocal.m4,
2912           support/cpp2/cpperror.c,
2913           support/cpp2/libiberty/safe-ctype.c,
2914           support/cpp2/libiberty/safe-ctype.h,
2915           support/cpp2/libiberty/splay-tree.c,
2916           support/cpp2/libiberty/obstack.c,
2917           support/cpp2/libiberty/lbasename.c,
2918           support/cpp2/libiberty/splay-tree.h,
2919           support/cpp2/libiberty/obstack.h:
2920           synchronized with GCC CPP release version 3.2.3,
2921           the latest before integration of cpp into gcc
2922         * support/cpp2/except.h, support/cpp2/line-map.c,
2923           support/cpp2/line-map.h,
2924           support/cpp2/libiberty/hex.c,
2925           support/cpp2/libiberty/concat.c,
2926           support/cpp2/libiberty/filenames.h: added
2927         * support/cpp2/intl.c: deleted
2928
2929 2006-11-24 Borut Razem <borut.razem AT siol.net>
2930
2931         * src/SDCC.y: enabled compilation of empty source file
2932         * support/Util/SDCCerr.[ch]: added sdcc warning 190 -
2933           "ISO C forbids an empty source file"
2934         * device/lib/_startup.c, device/lib/printf_tiny.c: disable warning 190
2935           if all the code is ifdefed out.
2936
2937 2006-11-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2938
2939         * src/hc08/gen.c (genPcall): fix for bug #1601032
2940
2941 2006-11-23 Maarten Brock <sourceforge.brock AT dse.nl>
2942
2943         * device/include/mcs51/c8051f000.h, device/include/mcs51/C8051F000.h,
2944         * device/include/mcs51/c8051f018.h, device/include/mcs51/C8051F018.h,
2945         * device/include/mcs51/c8051f020.h, device/include/mcs51/C8051F020.h,
2946         * device/include/mcs51/c8051f040.h, device/include/mcs51/C8051F040.h,
2947         * device/include/mcs51/c8051f060.h, device/include/mcs51/C8051F060.h,
2948         * device/include/mcs51/c8051f120.h, device/include/mcs51/C8051F120.h,
2949         * device/include/mcs51/c8051f200.h, device/include/mcs51/C8051F200.h,
2950         * device/include/mcs51/c8051f300.h, device/include/mcs51/C8051F300.h,
2951         * device/include/mcs51/c8051f310.h, device/include/mcs51/C8051F310.h,
2952         * device/include/mcs51/c8051f320.h, device/include/mcs51/C8051F320.h,
2953         * device/include/mcs51/c8051f326.h, device/include/mcs51/C8051F326.h,
2954         * device/include/mcs51/c8051f330.h, device/include/mcs51/C8051F330.h,
2955         * device/include/mcs51/c8051f340.h, device/include/mcs51/C8051F340.h,
2956         * device/include/mcs51/c8051f350.h, device/include/mcs51/C8051F350.h,
2957         * device/include/mcs51/c8051f410.h, device/include/mcs51/C8051F410.h:
2958           Renamed to all upper case as per the standard set by SiLabs
2959
2960 2006-11-23 Maarten Brock <sourceforge.brock AT dse.nl>
2961
2962         * device/include/mcs51/C8051F520.h: new, added
2963         * device/include/mcs51/compiler.h: added link about predefined macros
2964
2965 2006-11-23 Raphael Neider <rneider AT web.de>
2966
2967         * src/regression/Makefile: add -L path to fresh library
2968         * src/regression/simulate: emphasize FAILED output
2969         * src/regression/create_stc: output _failures from gpsim
2970         * src/regression/compare4.c,
2971         * src/regression/rotate6.c: fixed char literals,
2972           all compile, all run =8-D
2973
2974         * src/pic/pcode.h: added isPCASMDIR macro
2975         * src/pic/gen.c (genAnd): fixed bit offset
2976         * src/pic/ralloc.c (allocNewDirReg,allocDirReg,allocRegByName,
2977           packBits): unified register numbering schemes,
2978           (newReg): do not insert stack registers into hash table,
2979           (initStack): unpinned pseudo stack, simplified,
2980           (typeRegWithIdx): fixed retrieval of stack registers,
2981         * src/pic/pcode.c (addpCodeComment,sameBank): added,
2982           (pCodeReplace): removed invalid assertion,
2983           (insertPCodeInstruction): fixed newly added labels,
2984           (insertBankSwitch,BankSelect,IsBankChange,DoBankSelect,
2985           FixRegisterBankingInFlow,compareBankFlow,FixBankFlow,
2986           DumpFlow): removed unsed (broken?) code,
2987           (insertBankSel): prevent STATUS from being BANKSELed,
2988           (FixRegisterBanking): rewritten from scratch, implemented generic
2989             optimizations (suppress BANKSELs to same register and to registers
2990             present in all banks),
2991           (AnalyzeBanking): update flow after BANKSELection
2992
2993         * src/pic/glue.c (pic14_constructAbsMap): emit pseudo stack in
2994             sharebank, let linker place it, mark STKxx symbols as emitted
2995
2996 2006-11-21 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2997
2998         * src/regression/arrays.c,
2999         * src/regression/bank1.c,
3000         * src/regression/bool2.c,
3001         * src/regression/compare7.c,
3002         * src/regression/compare8.c,
3003         * src/regression/compare9.c,
3004         * src/regression/compare10.c,
3005         * src/regression/configword.c,
3006         * src/regression/for.c,
3007         * src/regression/mult1.c,
3008         * src/regression/pointer1.c,
3009         * src/regression/rotate6.c,
3010         * src/regression/string1.c,
3011         * src/regression/struct1.c,
3012         * src/regression/Makefile: make PIC14 regression tests run again
3013           (3 fail, 6 won't compile)
3014
3015 2006-11-21 Raphael Neider <rneider AT web.de>
3016
3017         * device/include/pic16/pic18f4550.h,
3018         * device/include/pic16/pic18f4455.h,
3019         * device/lib/pic16/libdev/pic18f4550.c,
3020         * device/lib/pic16/libdev/pic18f4455.c: fixed #1578591 and #1595144
3021         * configure.in: removed superfluous closing bracket
3022
3023 2006-11-21 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3024
3025         * device/lib/expf.c: Fixed bug 1599523: result of expf(x) is
3026           always positive.
3027
3028 2006-11-21 Raphael Neider <rneider AT web.de>
3029
3030         * src/pic/device.{c,h}: added pic14_getPIC()
3031         * src/pic/gen.c (continueIfTrue,jumpIfTrue): added PIC code,
3032           (genAnd): added PIC code for one case, fixes #1597044
3033         * src/pic/pcode.c (BankSelect): Ohoh, added generic optimization for
3034           SFRs that are present in all banks (e.g., STATUS)
3035
3036 2006-11-20 Raphael Neider <rneider AT web.de>
3037
3038         * src/pic/pcode.c: changed inverted ops for DECFSZ/DECFSZW and
3039           INCFSZ/INCFSZW and declared them as changing Z bit,
3040           (insertPCodeInstruction): correctly invert the above instructions,
3041           fixes #1599333,
3042           (DoBankSelect): don't panic on po_immediates
3043
3044 2006-11-14 Maarten Brock <sourceforge.brock AT dse.nl>
3045
3046         * as/link/aslink.h,
3047         * as/link/mcs51/lkihx.c (newArea),
3048         * as/link/mcs51/lkrloc.c: renamed newArea() to ihxNewArea()
3049         * as/link/mcs51/lkihx.c (ihx): output reset vector as start address
3050
3051 2006-11-11 Raphael Neider <rneider AT web.de>
3052
3053         * src/pic/pcode.c (newpCodeOpBit): search SymbolTab for referenced
3054           bitfield symbols, fixes #1579535 (once more...).
3055
3056 2006-11-09 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3057
3058         * support/regression/generate-cases.py,
3059         * support/regression/fwk/include/testfwk.h,
3060         * support/regression/fwk/lib/testfwk.c: used code pointers,
3061           (about 50kByte less code generated for mcs51)
3062
3063 2006-11-06 Borut Razem <borut.razem AT siol.net>
3064
3065         * debugger/mcs51/acinclude.m4, debugger/mcs51/aclocal.m4,
3066           debugger/mcs51/configure: fixed failed check because the function
3067           rl_function_of_keyseq isn't in Readline 5.2. Thanks to Ilya Goldberg
3068           who submitted the patch for gpsim.
3069         * debugger/mcs51/configure.in: removed the result message
3070         * debugger/mcs51/Makefile.in: fixed the config.status warning
3071           "... seems to ignore the --datarootdir setting"
3072
3073 2006-11-03 Maarten Brock <sourceforge.brock AT dse.nl>
3074
3075         * device/include/mcs51/c8051f020.h,
3076         * device/include/mcs51/c8051f040.h,
3077         * device/include/mcs51/c8051f060.h,
3078         * device/include/mcs51/c8051f120.h: added PS0, fixed bug 1589279
3079         * src/z80/gen.c (gencjneshort),
3080         * src/z80/peeph.def: applied patch 1571373, thanks Philipp Krause
3081
3082 2006-10-31 Borut Razem <borut.razem AT siol.net>
3083
3084         * debugger/mcs51/acinclude.m4, debugger/mcs51/aclocal.m4,
3085           debugger/mcs51/configure: get readline version
3086
3087 2006-10-30 Borut Razem <borut.razem AT siol.net>
3088
3089         * debugger/mcs51/sdcdb.c: replaced hardcoded "/" with DIR_SEPARATOR_STRING
3090         * debugger/mcs51/acinclude.m4, debugger/mcs51/aclocal.m4,
3091           debugger/mcs51/configure: locate readline even when cross compiling
3092         * support/scripts/sdcc.nsi: include readline5.dll into the setup package
3093
3094 2006-10-29 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3095
3096         * device/include/mcs51/serial_IO.h: putchar() and getchar() using
3097           serial port.
3098
3099 2006-10-29 Maarten Brock <sourceforge.brock AT dse.nl>
3100
3101         * device/include/malloc.h,
3102         * device/lib/calloc.c,
3103         * device/lib/free.c,
3104         * device/lib/malloc.c,
3105         * device/lib/realloc.c: moved definition of struct into sources
3106         * support/regression/tests/malloc.c: use void* for init_dynamic_memory()
3107
3108 2006-10-29 Maarten Brock <sourceforge.brock AT dse.nl>
3109
3110         * as/asx8051.dsp: corrected output directories
3111         * as/link/hc08: new directory for hc08 linker
3112         * as/hc08/aslink.h,             as/link/aslink.h,
3113         * as/hc08/aslink.mak,           as/link/hc08/aslink.mak,
3114         * as/hc08/clean.mk,             as/link/hc08/clean.mk,
3115         * as/hc08/link_hc08.dsp,        as/link/hc08/link_hc08.dsp,
3116         * as/hc08/lkaomf51.c,           as/link/hc08/lkaomf51.c,
3117         * as/hc08/lkarea.c,             as/link/hc08/lkarea.c,
3118         * as/hc08/lkdata.c,             as/link/hc08/lkdata.c,
3119         * as/hc08/lkelf.c,              as/link/hc08/lkelf.c,
3120         * as/hc08/lkihx.c,              as/link/hc08/lkihx.c,
3121         * as/hc08/lklibr.c,             as/link/hc08/lklibr.c,
3122         * as/hc08/lkmain.c,             as/link/hc08/lkmain.c,
3123         * as/hc08/lkmem.c,              as/link/hc08/lkmem.c,
3124         * as/hc08/lkrloc.c,             as/link/hc08/lkrloc.c,
3125         * as/hc08/lks19.c,              as/link/hc08/lks19.c,
3126         * as/hc08/Makefile.aslink,      as/link/hc08/Makefile.aslink,
3127         * as/hc08/Makefile.bcc,         as/link/hc08/Makefile.bcc,
3128         * as/hc08/Makefile.in,          as/link/hc08/Makefile.in,
3129         * as/link/hc08/conf.mk,
3130         * configure,
3131         * configure.in,
3132         * Makefile.in,
3133         * sdcc.dsw: moved hc08 linker to as/link/hc08
3134         * as/hc08/lkeval.c,     as/link/mcs51/lkeval.c,     as/link/lkeval.c,
3135         * as/hc08/lkhead.c,     as/link/mcs51/lkhead.c,     as/link/lkhead.c,
3136         * as/hc08/lklex.c,      as/link/mcs51/lklex.c,      as/link/lklex.c,
3137         * as/hc08/lklist.c,     as/link/mcs51/lklist.c,     as/link/lklist.c,
3138         * as/hc08/lknoice.c,    as/link/mcs51/lknoice.c,    as/link/lknoice.c,
3139         * as/hc08/lksym.c,      as/link/mcs51/lksym.c,      as/link/lksym.c,
3140         * as/link/mcs51/aslink.dsp,
3141         * as/link/mcs51/Makefile.in: factored out the common files
3142         * as/hc08/lkstore.c: deleted, use the one already in as/link/
3143         * as/clean.mk: extra cleaning common files
3144         * as/link/mcs51/strcmpi.c,      as/strcmpi.c: moved
3145         * as/link/mcs51/strcmpi.h: deleted, moved protoype to aslink.h
3146         * as/mcs51/asm.h: include sdccconf.h or sdcc_vc.h
3147
3148 2006-10-29 Raphael Neider <rneider AT web.de>
3149
3150         * src/pic/ralloc.c (newReg): create aliases for registers with
3151           multiple names to fix #1579535 and #1584001,
3152           (regWithIdx,dirregWithName): resolve aliases on lookup
3153         * src/pic/pcode.c (DoBankSelect): die with error message on failing
3154           bankselect
3155         * device/lib/pic/libdev/Makefile.in: move pseudo stack down to 0x4f
3156           to prevent build errors on small devices
3157
3158 2006-10-28 Raphael Neider <rneider AT web.de>
3159
3160         * src/pic/gen.c (genFunction,genCall): drop "same code page"
3161           assumption within interrupt handlers, fixes #1584940
3162         * src/pic/glue.c (pic14_constructAbsMap): mark absolute symbols as
3163           "emitted" to avoid emitting them again in udata
3164
3165 2006-10-27 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3166
3167         * device/lib/_putchar.c, device/lib/_getchar.c, device/lib/inituart.c:
3168         Removed.
3169
3170 2006-10-26 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3171
3172         * device/lib/_putchar.c, device/lib/_getchar.c, device/lib/inituart.c:
3173         Initialize uart only if SM0 and SM1 are zero.  Also, use flag to turn
3174         on/off CR to CRLF conversion.
3175
3176 2006-10-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3177
3178         * doc/sdccman.lyx: updated IRQ section
3179
3180 2006-10-24 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3181
3182         * device/lib/serial_io.c: removed
3183         * device/lib/_putchar.c, device/lib/_getchar.c, device/lib/inituart.c
3184         replacements for serial_io.c
3185
3186 2006-10-24 Maarten Brock <sourceforge.brock AT dse.nl>
3187
3188         * src/z80/main.c (_process_pragma, _parseOptions): fixed bug 1583318
3189
3190 2006-10-24 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3191
3192         * device/lib/serial_io.c: Default putchar() and getchar() for
3193           mcs51 uses serial port.
3194
3195 2006-10-23 Maarten Brock <sourceforge.brock AT dse.nl>
3196
3197         * src/mcs51/gen.c (movc): improved check for 0 and 1, see RFE 1582704
3198
3199 2006-10-23 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3200
3201         * support/regression/ports/mcs51/support.c: smaller
3202         _sdcc_external_startup()
3203         * device/lib/mcs51/crtxclear.asm: don't check high byte of l_PSEG
3204
3205 2006-10-20 Maarten Brock <sourceforge.brock AT dse.nl>
3206
3207         * device/lib/gbz80/crt0.s,
3208         * device/lib/gbz80/crt0_rle.s,
3209         * device/lib/gbz80/div.s,
3210         * device/lib/gbz80/fstubs.s,
3211         * device/lib/gbz80/heap.s,
3212         * device/lib/gbz80/mul.s,
3213         * device/lib/gbz80/putchar.s,
3214         * device/lib/gbz80/stubs.s,
3215         * device/lib/z80/crt0.s,
3216         * device/lib/z80/crt0_rle.s,
3217         * device/lib/z80/div.s,
3218         * device/lib/z80/fstubs.s,
3219         * device/lib/z80/heap.s,
3220         * device/lib/z80/mul.s,
3221         * device/lib/z80/putchar.s,
3222         * device/lib/z80/stubs.s: reverted, I was mistaken
3223
3224 2006-10-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3225
3226         * src/mcs51/peeph.def: peephole 238.x added check for notvolatile
3227         * support/regression/ports/mcs51/support.c: removed race
3228         condition on TI in _putchar allowing to use serial port mode 0
3229
3230 2006-10-20 Borut Razem <borut.razem AT siol.net>
3231
3232         * debugger/mcs51/sdcdb.c: replaced isblank() with isspace()
3233
3234 2006-10-19 Maarten Brock <sourceforge.brock AT dse.nl>
3235
3236         * device/lib/gbz80/crt0.s,
3237         * device/lib/gbz80/crt0_rle.s,
3238         * device/lib/gbz80/div.s,
3239         * device/lib/gbz80/fstubs.s,
3240         * device/lib/gbz80/heap.s,
3241         * device/lib/gbz80/mul.s,
3242         * device/lib/gbz80/putchar.s,
3243         * device/lib/gbz80/stubs.s,
3244         * device/lib/z80/crt0.s,
3245         * device/lib/z80/crt0_rle.s,
3246         * device/lib/z80/div.s,
3247         * device/lib/z80/fstubs.s,
3248         * device/lib/z80/heap.s,
3249         * device/lib/z80/mul.s,
3250         * device/lib/z80/putchar.s,
3251         * device/lib/z80/stubs.s: removed all leading underscores from area names
3252
3253 2006-10-17 Maarten Brock <sourceforge.brock AT dse.nl>
3254
3255         * support/regression/ports/mcs51/support.c: use highest baudrate so the
3256           regression tests are not waiting in the simulator for simulated
3257           transmission of debug output
3258
3259 2006-10-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3260
3261         * device/lib/printf_large.c: slightly smaller
3262         * doc/sdccman.lyx: do not use spaces within html links
3263
3264 2006-10-16 Borut Razem <borut.razem AT siol.net>
3265
3266         * configure.in, configure, sdccconf_in.h, src/SDCCglobal,
3267           debugger/mcs51/Makefile.in, debugger/mcs51/sdcdb.[ch],
3268           debugger/mcs51/aclocal.m4, debugger/mcs51/acinclide.m4,
3269           debugger/mcs51/config.h.in, debugger/mcs51/configure.in,
3270           debugger/mcs51/configure:
3271           [ 1185668 ] add gnu readline support to sdcdb - enabled
3272
3273 2006-10-16 Raphael Neider <rneider AT web.de>
3274
3275         * src/pic/pcode.c (BankSelect): another fix on (partial) BANKSELs,
3276           fixes #1577882, removes close to all banking optimizations
3277
3278 2006-10-15 Maarten Brock <sourceforge.brock AT dse.nl>
3279
3280         * src/SDCCsymt.c (checkSClass): no error for uninitialised absolute
3281           variables in code memory
3282         * support/regression/tests/absolute.c: added test for this
3283
3284 2006-10-15 Raphael Neider <rneider AT web.de>
3285
3286         * src/pic/pcode.c (InsertBankSel): suppress BANKSELs for one bank
3287           devices,
3288           (BankSelect): emit BANKSEL before touching linker-placed regs,
3289           fixes #1570934
3290
3291 2006-10-10 Raphael Neider <rneider AT web.de>
3292
3293         * src/SDCCmain.c (optionsTable): accept --stack-size for PICs,
3294         * src/pic/device.c (pic14_getSharebankSize,pic14_getSharebankAddress),
3295         * src/pic/main.c (_pic14_parseOptions),
3296         * src/pic/main.h: mostly reverted to previous state, now use results
3297             from SDCCmain.c's argument parsing
3298
3299 2006-10-10 Borut Razem <borut.razem AT siol.net>
3300
3301         * debugger/mcs51/break.[ch], debugger/mcs51/cmd.c,
3302           debugger/mcs51/sdcdb.[ch], debugger/mcs51/simi.c:
3303           [ 1185668 ] add gnu readline support to sdcdb -
3304           prepared for READLINE, not enabled yet,
3305           thanks to <tal.bav AT gmail.com>
3306
3307 2006-10-10 Raphael Neider <rneider AT web.de>
3308
3309         * src/pic16/pcode.c (pic16_pCode2str): use isACCESS_BANK macro
3310         * src/pic16/devices.inc,
3311         * device/include/pic16 (pic18f[24]620.h),
3312         * device/include/pic18fregs.h,
3313         * device/lib/pic16/pics.all,
3314         * device/lib/pic16/libdev/pic18f[24]{620,525}.c): added support for
3315             18f2620, 18f4620, 18f2525, and 18f4525 devices, thanks to
3316             Gary Plumbridge and Anton Strobl
3317
3318 2006-10-10 Raphael Neider <rneider AT web.de>
3319
3320         * src/pic/main.c (_pic14_parseOptions): added --stack-loc=NUM and
3321           --stack-siz=NUM options to configure the argument passing stack
3322         * src/pic/main.h: added stackLocation and stackSize to pic14_options_t
3323         * src/pic/device.c (mapRegister): catch out-of-memory SIGSEGVs,
3324           (pic14_getSharebankSize): obey --stack-siz=NUM,
3325           (pic14_getSharebankAddress): obey --stack-loc=NUM
3326
3327 2006-10-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3328
3329         * doc/sdccman.lyx: added to the manual
3330         * doc/figures/ddd_example.png: added (neither pdflatex nor
3331         most browsers seem to like the .eps file)
3332
3333 2006-10-06 Bernhard Held <bernhard AT bernhardheld.de>
3334
3335         * src/SDCCglue.c (tempfileandname): changed un*x tmp search paths
3336         to /tmp and /var/tmp acc. LSB
3337         * src/SDCCast.c (addCast): Fixed bug 1571231: promote in case of
3338         RESULT_TYPE_IFX
3339         * support/regression/tests/onebyte.c: added test
3340
3341 2006-10-05 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3342
3343         * src/mcs51/gen.c: emitcode for "add a,0x%02x" requires only 8 bits.
3344
3345 2006-10-05 Borut Razem <borut.razem AT siol.net>
3346
3347         * partially fixed [ 1570701 ] peephole - not replacing code from multiline macros,
3348           thanks to dfulab:
3349           - sdcc.dsw: changed property eol-style to CRLF
3350           - support/scripts/resource.rc: replaced references to "afxres.h" with "winres.h"
3351
3352 2006-10-04 Raphael Neider <rneider AT web.de>
3353
3354         * device/include/pic/{pic16f84.h,pic16f84a.h},
3355         * device/lib/pic/libdev/{pic16f84.c,pic16f84a.c}: added PORT[AB]_bits
3356           from patch #1522504, thanks to Robas Teodor
3357
3358 2006-10-02 Maarten Brock <sourceforge.brock AT dse.nl>
3359
3360         * as/link/z80/lkarea.c: essentially reverted lnksect() to #4380 which
3361           fixes bug 1566015
3362
3363 2006-10-01 Maarten Brock <sourceforge.brock AT dse.nl>
3364
3365         * src/pic16/glue.c (pic16emitMaps),
3366         * src/pic/glue.c (pic14emitMaps): hopefully fixed bug 1568779
3367         * device/lib/gets.c: fixed bug 1568829,thanks Philipp Krause
3368         * device/lib/pic16/libc/string/memcpypgm2ram.c,
3369         * device/lib/pic16/libc/string/memcpyram2ram.c: fixed bug 1568836, thanks
3370           Philipp Krause
3371         * as/mcs51/asmain.c (asmbl, newdot): fixed problems with absolute areas
3372         * as/link/mcs51/lkmem.c (summary2): reverted, do do count abs segments
3373
3374 2006-09-30 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3375
3376         * support/librarian/sdcclib.c: Added option -l.
3377         * as/link/mcs51/lkmem.c: don't use absolute segments to compute memory
3378           usage totals.
3379         * device/lib/make51lib.bat: added.  Allows building mcs51 libraries easily
3380           using Windows command prompt.
3381
3382 2006-09-30 Maarten Brock <sourceforge.brock AT dse.nl>
3383
3384         * device/lib/libsdcc.lib: added module rand
3385         * src/ds390/ralloc.c (rematStr),
3386         * src/hc08/ralloc.c (rematStr),
3387         * src/mcs51/ralloc.c (rematStr),
3388         * src/z80/ralloc.c (rematStr): made output more consistent
3389         * src/mcs51/gen.c: cosmetic changes
3390
3391 2006-09-30 Maarten Brock <sourceforge.brock AT dse.nl>
3392
3393         * src/port.h: added mem.cabs_name to PORT
3394         * src/ds390/main.c,
3395         * src/hc08/main.c,
3396         * src/mcs51/main.c,
3397         * src/pic16/main.c,
3398         * src/pic/main.c,
3399         * src/xa51/main.c,
3400         * src/z80/main.c: added cabs_name initializers
3401         * src/SDCCglue.c (emitStaticSeg): allocate and initialize absolute
3402           constants
3403           (emitMaps): emit absolutes in code memory into cabs_name
3404         * src/SDCCmem.c,
3405         * src/SDCCmem.h: added memory map c_abs and defined CABS_NAME
3406         * src/ds390/gen.c (genCodePointerGet): fixed bug if left is a literal
3407         * support/regression/fwk/include/testfwk.h: added define for at
3408         * support/regression/tests/absolute.c: added, new
3409
3410 2006-09-29 Maarten Brock <sourceforge.brock AT dse.nl>
3411
3412         * src/mcs51/gen.c (genPlusIncr, genMinusDec, genAddrOf): small
3413           optimizations, see also patch 887161 by Stas Sergeev
3414         * src/mcs51/peeph.def(104, 207, 209, 212): disabled as they do not seem
3415           to be necessary anymore,
3416           (102, 103, 104, 127): renamed all occurances of bp to _bp
3417
3418 2006-09-27 Maarten Brock <sourceforge.brock AT dse.nl>
3419
3420         * device/include/mcs51/at89c51snd1c.h: fixed MSK_SREQ definition
3421           thanks Weston T. Schmidt for patch 1555221
3422         * src/mcs51/peeph.def: renamed rule 257 to 257.a, added 257.b
3423         * src/SDCCicode.c(geniCodeMultiply): small optimization
3424
3425 2006-09-26 Maarten Brock <sourceforge.brock AT dse.nl>
3426
3427         * device/include/stdlib.h: added rand prototypes
3428         * device/lib/rand.c: new, added
3429         * device/lib/Makefile.in: added rand.c
3430         * src/z80/peeph.def,
3431         * src/z80/peeph-gbz80.def,
3432         * src/z80/peeph-z80.def: updated conditonals, fixed bug 1565908
3433
3434 2006-09-20 Raphael Neider <rneider AT web.de>
3435
3436         * device/lib/pic16/libio/i2c/i2cnack.c (i2c_nack): fixed ACKDT bit
3437
3438 2006-09-19 Maarten Brock <sourceforge.brock AT dse.nl>
3439
3440         * as/link/aslink.h: cosmetic changes
3441         * as/link/mcs51/Makefile.in,
3442         * as/link/z80/Makefile.in: fixed build on CF where VPATH is used
3443
3444 2006-09-17 Maarten Brock <sourceforge.brock AT dse.nl>
3445
3446         * as/link/aslink.h,
3447         * as/link/mcs51/aslink.h,
3448         * as/link/z80/aslink.h: merged and moved to as/link/
3449         * as/link/lkstore.c,
3450         * as/link/mcs51/lkstore.c: moved to as/link/
3451         * as/link/clean.mk: remove *.o
3452         * as/link/mcs51/alloc.h: deleted
3453         * as/link/mcs51/lkarea.c: added lnksect prototype
3454         * as/link/mcs51/lkdata.c,
3455         * as/link/mcs51/lklex.c,
3456         * as/link/mcs51/lkmain.c: renamed as_getline to lk_getline
3457         * as/link/mcs51/lkmem.c,
3458         * as/link/mcs51/lknoice.c: removed include strcmpi.h
3459         * as/link/mcs51/lksym.c: include stdlib.h instead of malloc.h or alloc.h
3460         * as/link/mcs51/aslink.dsp,
3461         * as/link/mcs51/Makefile.aslink,
3462         * as/link/mcs51/Makefile.bcc,
3463         * as/link/mcs51/Makefile.in: updated for moved files
3464         * as/link/z80/lkarea.c,
3465         * as/link/z80/lkhead.c,
3466         * as/link/z80/lklex.c,
3467         * as/link/z80/lklibr.c,
3468         * as/link/z80/lklist.c,
3469         * as/link/z80/lkmain.c,
3470         * as/link/z80/lkrloc.c,
3471         * as/link/z80/lksym.c: synced with mcs51
3472         * as/link/z80/lkdata.c,
3473         * as/link/z80/lkeval.c,
3474         * as/link/z80/lkihx.c,
3475         * as/link/z80/lks19.c: cosmetic changes
3476         * as/link/z80/Makefile.in,
3477         * as/link/z80/linkgbz80.dsp,
3478         * as/link/z80/linkz80.dsp: updated for moved files
3479
3480 2006-09-16 Borut Razem <borut.razem AT siol.net>
3481
3482         * debugger/mcs51/sdcdb.c: partially fixed
3483           [ 1203664 ] sdcdb fails to open files w. two "." periods
3484         * debugger/mcs51/simi.c, debugger/mcs51/symtab.c,
3485           debugger/mcs51/symtab.h: fixed indenting
3486         * configure.in, configure: up to date with latest Maarten's changes
3487
3488 2006-09-15 Maarten Brock <sourceforge.brock AT dse.nl>
3489
3490         as/link/mcs51
3491         as/aslink.dsp,                  as/link/mcs51/aslink.dsp,
3492         as/link/mcs51/aslink.h,         as/mcs51/aslink.h,
3493         as/link/mcs51/aslink.mak,       as/mcs51/aslink.mak,
3494         as/link/mcs51/lkaomf51.c,       as/mcs51/lkaomf51.c,
3495         as/link/mcs51/lkarea.c,         as/mcs51/lkarea.c,
3496         as/link/mcs51/lkdata.c,         as/mcs51/lkdata.c,
3497         as/link/mcs51/lkeval.c,         as/mcs51/lkeval.c,
3498         as/link/mcs51/lkhead.c,         as/mcs51/lkhead.c,
3499         as/link/mcs51/lkihx.c,          as/mcs51/lkihx.c,
3500         as/link/mcs51/lklex.c,          as/mcs51/lklex.c,
3501         as/link/mcs51/lklibr.c,         as/mcs51/lklibr.c,
3502         as/link/mcs51/lklist.c,         as/mcs51/lklist.c,
3503         as/link/mcs51/lkmain.c,         as/mcs51/lkmain.c,
3504         as/link/mcs51/lkmem.c,          as/mcs51/lkmem.c,
3505         as/link/mcs51/lknoice.c,        as/mcs51/lknoice.c,
3506         as/link/mcs51/lkrloc.c,         as/mcs51/lkrloc.c,
3507         as/link/mcs51/lks19.c,          as/mcs51/lks19.c,
3508         as/link/mcs51/lkstore.c,        as/mcs51/lkstore.c,
3509         as/link/mcs51/lksym.c,          as/mcs51/lksym.c,
3510         as/link/mcs51/Makefile.aslink,  as/mcs51/Makefile.aslink,
3511         as/link/mcs51/alloc.h,
3512         as/link/mcs51/clean.mk,
3513         as/link/mcs51/conf.mk,
3514         as/link/mcs51/Makefile.bcc,
3515         as/link/mcs51/Makefile.in,
3516         as/link/mcs51/readme.390,
3517         as/link/mcs51/strcmpi.c,
3518         as/link/mcs51/strcmpi.h,
3519         as/mcs51/clean.mk,
3520         as/mcs51/Makefile.bcc,
3521         as/mcs51/Makefile.in,
3522         configure,
3523         Makefile.in,
3524         sdcc.dsw: moved mcs51 linker to as/link/mcs51
3525
3526 2006-09-14 Maarten Brock <sourceforge.brock AT dse.nl>
3527
3528         * as/link,
3529         * as/link/Makefile.in,
3530         * as/link/z80/linkgbz80.dsp,
3531         * as/link/z80/linkz80.dsp,
3532         * configure,
3533         * link,
3534         * link/clean.mk,
3535         * link/Makefile.in,
3536         * link/README,
3537         * link/z80,
3538         * link/z80/aslink.h,
3539         * link/z80/clean.mk,
3540         * link/z80/conf.mk,
3541         * link/z80/linkgbz80.dsp,
3542         * link/z80/linkz80.dsp,
3543         * link/z80/lkarea.c,
3544         * link/z80/lkdata.c,
3545         * link/z80/lkeval.c,
3546         * link/z80/lkgb.c,
3547         * link/z80/lkgg.c,
3548         * link/z80/lkhead.c,
3549         * link/z80/lkihx.c,
3550         * link/z80/lklex.c,
3551         * link/z80/lklibr.c,
3552         * link/z80/lklist.c,
3553         * link/z80/lkmain.c,
3554         * link/z80/lkrloc.c,
3555         * link/z80/lks19.c,
3556         * link/z80/lksym.c,
3557         * link/z80/Makefile.in,
3558         * Makefile.in,
3559         * sdcc.dsw: moved link/ to as/link/
3560
3561 2006-09-11 Maarten Brock <sourceforge.brock AT dse.nl>
3562
3563         * as/mcs51/i51mch.c (machine): fixed warning
3564
3565 2006-09-10 Maarten Brock <sourceforge.brock AT dse.nl>
3566
3567         * as/mcs51/i51mch.c (machine): S_DJNZ fixed bug 1554318
3568
3569 2006-09-09 Borut Razem <borut.razem AT siol.net>
3570
3571         * debugger/mcs51/sdcdb.c, debugger/mcs51/simi.c:
3572           sdcdb WIN32 native port
3573         * src/clean.mk: fixed
3574
3575 2006-09-08 Borut Razem <borut.razem AT siol.net>
3576
3577         * doc/sdccman.lyx: SDCDB and ucSim are available on Win32 platforms.
3578
3579 2006-09-08 Raphael Neider <rneider AT web.de>
3580
3581         * src/pic16/main.c (_pic16_linkEdit,pic16_linkCmd),
3582         * src/pic/main.c(_pic14_do_link, linkCmd): pass "-w" and "-r"
3583             to gplink to disable processor mismatch warning and to allow
3584             the use of devices with only aliased (shared) memory banks,
3585           (_pic16_genAssemblerPreamble): include pXXX.inc on --mplab-comp
3586
3587 2006-09-07 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3588
3589         * doc/sdccman.lyx: Some re-formating plus example on using
3590           #pragma preproc_asm +/-
3591
3592 2006-09-07 Borut Razem <borut.razem AT siol.net>
3593
3594         * support/scripts/sdcc.nsi: added SDCDB executables in a separate
3595           section
3596
3597 2006-09-06 Borut Razem <borut.razem AT siol.net>
3598
3599         * support/scripts/sdcc.nsi: fixed Error: unterminated string parsing
3600           line at sdcc.nsi:153
3601         * sdcc/debugger/mcs51/simi.c: argsToCmdLine() fixes
3602
3603 2006-09-05 Borut Razem <borut.razem AT siol.net>
3604
3605         * configure.in, configure: support for winsock2
3606         * debugger/mcs51/break.h, debugger/mcs51/cmd.c,
3607           debugger/mcs51/cmd.h, debugger/mcs51/sdcdb.c,
3608           debugger/mcs51/sdcdb.h, debugger/mcs51/simi.c,
3609           debugger/mcs51/simi.h, debugger/mcs51/symtab.c,
3610           debugger/mcs51/symtab.h: sdcdb WIN32 native port
3611
3612 2006-09-05 Maarten Brock <sourceforge.brock AT dse.nl>
3613
3614         * src/SDCCopt.c (cnvToFcall): fixed bug 1551947 by updating OP_USES
3615           and OP_DEFS
3616         * support/regression/tests/bug1551947.c: new, added
3617         * src/SDCCsymt.h: strings are char* not byte*
3618
3619 2006-09-05 Raphael Neider <rneider AT web.de>
3620
3621         * device/lib/pic16/libdev/pic18f4550.c,
3622           device/include/pic16/pic18f4550.h: added PORTD/TRISD
3623             declarations/definitions from patch #1520949
3624
3625 2006-09-05 Raphael Neider <rneider AT web.de>
3626
3627         * src/pic16/gen.c (genPackBits): fix assignment to 8-bit,
3628           byte-aligned bitfields, fixes #1539278
3629
3630 2006-09-05 Raphael Neider <rneider AT web.de>
3631
3632         * src/pic/gen.c (genReceive): skip unreferenced arguments,
3633           fixes #1544120
3634
3635 2006-09-04 Borut Razem <borut.razem AT siol.net>
3636
3637         * support/scripts/sdcc.nsi: move ucSim executables to a separate section
3638         * support/scripts/sdcc_cygwin_mingw32: don't disable ucsim,
3639           -mno-cygwin is a part of the compiler name
3640         * support/scripts/sdcc_mingw32: don't disable ucsim
3641
3642 2006-09-03 Borut Razem <borut.razem AT siol.net>
3643
3644         * sdcc.spec: corrected for 2.6.0. Thanks to Christer Weinigel.
3645         * device/lib/Makefile.in device/lib/clean.mk: small but essential corrections
3646
3647 2006-09-03 Raphael Neider <rneider AT web.de>
3648
3649         * src/pic/ralloc.c,
3650         * src/pic/pcode.c (InitReuseRegs): allocate registers with pseudo
3651           indices >= 0x1000 to disambiguate them from fixed regs __at(addr),
3652           fixes #1550049
3653
3654 2006-09-01 Borut Razem <borut.razem AT siol.net>
3655
3656         * sim/ucsim/cmd.src/cmdutil.cc: #include <sys/time.h> and <unistd.h>
3657           to make ppc-osx happy
3658
3659 2006-08-31 Borut Razem <borut.razem AT siol.net>
3660
3661         * sim/ucsim/cmd.src/newcmdposix.cc: #include <assert.h>
3662         * sim/ucsim/cmd.src/newcmd.cc: #include <ctype.h>
3663         * sim/ucsim/cmd.src/newcmd.cc: #include <ctype.h>
3664         * support/regression/ports/ds390/spec.mk,
3665           support/regression/ports/mcs51/spec.mk,
3666           support/regression/ports/xa51/spec.mk: introduced DEV_NULL variable.
3667           To run regression tests in mingw environment:
3668           make DEV_NULL=NUL CC=gcc
3669
3670 2006-08-30 Borut Razem <borut.razem AT siol.net>
3671
3672         * sim/ucsim/cmd.src/newcmdposix.cc, sim/ucsim/cmd.src/newcmdposixcl.h,
3673           sim/ucsim/cmd.src/newcmdwin32.cc, sim/ucsim/cmd.src/newcmdwin32cl.h,
3674           sim/ucsim/app.cc, sim/ucsim/appcl.h, sim/ucsim/configure,
3675           sim/ucsim/configure.in, sim/ucsim/ddconfig_in.h, sim/ucsim/error.cc,
3676           sim/ucsim/errorcl.h, sim/ucsim/option.cc, sim/ucsim/optioncl.h,
3677           sim/ucsim/utils.cc, sim/ucsim/utils.h, sim/ucsim/cmd.src/Makefile.in,
3678           sim/ucsim/avr.src/avr.cc, sim/ucsim/avr.src/avrcl.h,
3679           sim/ucsim/cmd.src/bp.cc, sim/ucsim/cmd.src/bpcl.h,
3680           sim/ucsim/cmd.src/cmdconf.cc, sim/ucsim/cmd.src/cmdgui.cc,
3681           sim/ucsim/cmd.src/cmdmem.cc, sim/ucsim/cmd.src/cmdset.cc,
3682           sim/ucsim/cmd.src/cmdsetcl.h, sim/ucsim/cmd.src/cmdstat.cc,
3683           sim/ucsim/cmd.src/cmduc.cc, sim/ucsim/cmd.src/cmduccl.h,
3684           sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/cmdutil.h,
3685           sim/ucsim/cmd.src/command.cc, sim/ucsim/cmd.src/commandcl.h,
3686           sim/ucsim/cmd.src/get.cc, sim/ucsim/cmd.src/getcl.h,
3687           sim/ucsim/cmd.src/info.cc, sim/ucsim/cmd.src/newcmd.cc,
3688           sim/ucsim/cmd.src/newcmdcl.h, sim/ucsim/cmd.src/set.cc,
3689           sim/ucsim/cmd.src/show.cc, sim/ucsim/cmd.src/timer.cc,
3690           sim/ucsim/hc08.src/hc08.cc, sim/ucsim/hc08.src/hc08cl.h,
3691           sim/ucsim/s51.src/Makefile.in, sim/ucsim/s51.src/interrupt.cc,
3692           sim/ucsim/s51.src/interruptcl.h, sim/ucsim/s51.src/pca.cc,
3693           sim/ucsim/s51.src/pcacl.h, sim/ucsim/s51.src/port.cc,
3694           sim/ucsim/s51.src/portcl.h, sim/ucsim/s51.src/serial.cc,
3695           sim/ucsim/s51.src/serialcl.h, sim/ucsim/s51.src/timer0.cc,
3696           sim/ucsim/s51.src/timer0cl.h, sim/ucsim/s51.src/timer1.cc,
3697           sim/ucsim/s51.src/timer1cl.h, sim/ucsim/s51.src/timer2.cc,
3698           sim/ucsim/s51.src/timer2cl.h, sim/ucsim/s51.src/uc390.cc,
3699           sim/ucsim/s51.src/uc390cl.h, sim/ucsim/s51.src/uc390hw.cc,
3700           sim/ucsim/s51.src/uc390hwcl.h, sim/ucsim/s51.src/uc51.cc,
3701           sim/ucsim/s51.src/uc51cl.h, sim/ucsim/s51.src/wdt.cc,
3702           sim/ucsim/s51.src/wdtcl.h, sim/ucsim/sim.src/hw.cc,
3703           sim/ucsim/sim.src/hwcl.h, sim/ucsim/sim.src/mem.cc,
3704           sim/ucsim/sim.src/memcl.h, sim/ucsim/sim.src/obsolete.cc,
3705           sim/ucsim/sim.src/obsolete.h, sim/ucsim/sim.src/sim.cc,
3706           sim/ucsim/sim.src/simcl.h, sim/ucsim/sim.src/stack.cc,
3707           sim/ucsim/sim.src/stackcl.h, sim/ucsim/sim.src/test_mem_speed.cc,
3708           sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
3709           sim/ucsim/xa.src/xa.cc, sim/ucsim/xa.src/xacl.h,
3710           sim/ucsim/z80.src/z80.cc, sim/ucsim/z80.src/z80cl.h:
3711           ucsim WIN32 native port
3712
3713 2006-08-30 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3714
3715         * doc/sdccman.lyx: added note on dynamic memory heap initialization
3716
3717 2006-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
3718
3719         * src/mcs51/gen.c (genAnd, genOr, genXor): fixed bug 1546986
3720         * src/ds390/gen.c (aopGetUsesAcc): handle AOP_DPTR2 and AOP_DPTRn too
3721
3722 2006-08-26 Maarten Brock <sourceforge.brock AT dse.nl>
3723
3724         * src/ds390/gen.c (genAnd, genOr, genXor): fixed bug 1546986
3725         * support/regression/tests/bug1546986.c: new, added
3726         * as/mcs51/.cvsignore,
3727         * debugger/mcs51/.cvsignore,
3728         * src/.cvsignore: deleted
3729
3730 2006-08-25 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3731
3732         * device/include/mcs51/P89c51RD2.h: fixed bug 1546936 (error in sbit
3733           definitions)
3734
3735 2006-08-20 Borut Razem <borut.razem AT siol.net>
3736
3737         * sim/ucsim/cmd.src/newcmd.cc, sim/ucsim/cmd.src/newcmdcl.h:
3738           removed cl_listen_console::match(), cl_console::match(),
3739           restructured cl_commander::proc_input()
3740
3741 2006-08-16 Borut Razem <borut.razem AT siol.net>
3742
3743         * sim/ucsim/cmd.src/newcmd.cc, sim/ucsim/cmd.src/newcmdcl.h,
3744           sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/cmdutil.h,
3745           sim/ucsim/sim.src/mem.cc, sim/ucsim/sim.src/uc.cc: code cleaning
3746
3747 2006-08-14 Borut Razem <borut.razem AT siol.net>
3748
3749         * support/regression/Makefile.in,
3750           support/regression/ports/pic14/gpsim.cmd,
3751           support/regression/ports/pic14/spec.mk,
3752           support/regression/ports/pic14/support.c:
3753           added pic14 regression test
3754
3755 2006-08-14 Maarten Brock <sourceforge.brock AT dse.nl>
3756
3757         * as/doc/asxhtm.html: documented changed ABS behaviour
3758         * as/doc/README: fixed some typos
3759
3760 2006-08-13 Maarten Brock <sourceforge.brock AT dse.nl>
3761
3762         * support/regression/tests/float_trans.c: disabled test if __STDC_IEC_559__
3763           not defined on host
3764
3765 2006-08-12 Borut Razem <borut.razem AT siol.net>
3766
3767         * support/regression/fwk/include/testfwk.h,
3768           support/regression/fwk/lib/testfwk.c,
3769           support/regression/generate-cases.py,
3770           support/regression/Makefile.in:
3771           regression test framework does not depend on function pointers and
3772           variable arguments
3773
3774 2006-08-09 Maarten Brock <sourceforge.brock AT dse.nl>
3775
3776         * device/include/stddef.h: c temporary hack to fix bug 1518273
3777
3778 2006-08-09 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3779
3780         * device/include/mcs51/cc2510fx.h: added
3781         * src/z80/z80.dsp, src/gbz80/gbz80.dsp: added support/Util/strcmpi.ch
3782           to projects.
3783
3784 2006-08-09 Maarten Brock <sourceforge.brock AT dse.nl>
3785
3786         * as/z80/assym.c (mlookup): ignore case when looking up mnemonics
3787         * as/z80/Makefile.in: added strcmpi.c
3788         * as/z80/z80adr.c: added upper case registers and lower case conditionals
3789         * support/Util/strcmpi.ch: added with intention to remove from mcs51/hc08
3790
3791 2006-08-08 Maarten Brock <sourceforge.brock AT dse.nl>
3792
3793         * device/lib/gbz80/asm_strings.s,
3794         * device/lib/gbz80/crt0_rle.s,
3795         * device/lib/gbz80/div.s,
3796         * device/lib/gbz80/mul.s,
3797         * device/lib/gbz80/shift.s,
3798         * device/lib/z80/asm_strings.s,
3799         * device/lib/z80/crt0_rle.s,
3800         * device/lib/z80/div.s,
3801         * device/lib/z80/mul.s,
3802         * device/lib/z80/shift.s: changed to all lower case menmonics except the
3803           flags which are all upper case
3804
3805 2006-08-07 Maarten Brock <sourceforge.brock AT dse.nl>
3806
3807         * as/z80/asm.h: made CASE_SENSITIVE 1
3808         * link/z80/aslink.h: made CASE_SENSITIVE 1
3809         * src/z80/gen.c (throughout): made all conditionals upper case
3810         * support/regression/tests/bug1503067.c: new
3811
3812 2006-08-07 Maarten Brock <sourceforge.brock AT dse.nl>
3813
3814         * src/z80/gen.c (aopPut): fixed bug !*ixy should be !*iyx,
3815           (shiftIntoPair): added case 2 for PAIR_IY,
3816           (setupToPreserveCarry): replaced parameters with iCode and check if
3817            PAIR_DE is in use to fix bug 1399290,
3818           (genPlus, genMinus): updated call to setupToPreserveCarry
3819         * support/regression/tests/bug1399290.c: new
3820
3821 2006-08-06 Maarten Brock <sourceforge.brock AT dse.nl>
3822
3823         * device/lib/Makefile.in (Z80SOURCES): enabled float support
3824         * sim/ucsim/z80.src/inst.cc (inst_rst): generate breakpoint on RST8,ACC==0
3825         * src/ds390/gen.c (shiftRLong),
3826         * src/hc08/gen.c (shiftLLong, shiftRLong): fixed bug 1533966
3827         * src/mcs51/gen.c (sameReg): changed to sameByte,
3828           (xch_a_aopGet): new,
3829           (shiftL2Left2Result, shiftR2Left2Result, shiftRLeftOrResult, shiftLLong,
3830            shiftRLong): fixed bug 1533966
3831         * src/z80/gen.c (shiftR2Left2Result, shiftL2Left2Result, genlshTwo,
3832           genLeftShiftLiteral, genrshTwo, genRightShiftLiteral): fixed bug 1533966
3833         * support/regression/Makefile.in: disabled z80, enabled ucz80
3834         * support/regression/tests/float_trans.c: enabled test for z80 and host
3835         * support/regression/tests/shifts2.c: new, for testing bug 1533966
3836
3837 2006-08-01 Borut Razem <borut.razem AT siol.net>
3838
3839         * src/mcs51/gen.c, src/dc390/gen.c: fixed warning:
3840           comparison is always false due to limited range of data type
3841           on PPC64 machine (openpower-linux1) where "char = unsigned char"
3842
3843 2006-08-01 Maarten Brock <sourceforge.brock AT dse.nl>
3844
3845         * sim/ucsim/hc08.src/hc08mac.h: removed faulty and unused add_u16_disp
3846         * sim/ucsim/hc08.src/hc08.cc: removed faulty and unused int8
3847         * sim/ucsim/z80.src/z80mac.h (add_u16_disp): use explicit signed char cast
3848         * sim/ucsim/z80.src/z80.cc: removed faulty and unused int8
3849
3850 2006-07-31 Borut Razem <borut.razem AT siol.net>
3851
3852         * sim/ucsim/configure, sim/ucsim/cmd.src/newcmdcl.h,
3853           sim/ucsim/cmd.src/newcmd.cc, sim/ucsim/cmd.src/cmdutil.cc,
3854           sim/ucsim/z80.src/Makefile.in, sim/ucsim/configure.in,
3855           sim/ucsim/hc08.src/Makefile.in, sim/ucsim/hc08.src/hc08.cc,
3856           sim/ucsim/ddconfig_in.h, sim/ucsim/s51.src/Makefile.in,
3857           sim/ucsim/s51.src/uc51cl.h, sim/ucsim/s51.src/serialcl.h,
3858           sim/ucsim/s51.src/uc51.cc, sim/ucsim/s51.src/serial.cc,
3859           sim/ucsim/app.cc, sim/ucsim/avr.src/Makefile.in:
3860           enable ucsim mingw compilation. Serial port is disabled,
3861           since it uses termios.h API, which is not available on native
3862           WIN32
3863
3864 2006-07-31 Borut Razem <borut.razem AT siol.net>
3865
3866         * Small Device C Compiler 2.6.0 released
3867         * support/scripts/sdcc.nsi: added FULL_DOC option
3868         * .version, doc/sdccman.lyx: changed sdcc version to 2.6.1
3869
3870 2006-07-28 Borut Razem <borut.razem AT siol.net>
3871
3872         * support/scripts/sdcc.nsi: remove $INSTDIR/include/asm/pic16/*.h
3873         * doc/INSTALL.txt: updated
3874
3875 2006-07-27 Borut Razem <borut.razem AT siol.net>
3876
3877         * device/lib/pic/Makefile.in, device/lib/pic/Makefile.subdir,
3878           device/lib/pic/libdev/Makefile.in: fixed bug
3879           [ 1438354 ] pic libsdcc: distclean doesn't work
3880         * device/lib/pic16/Makefile.in, device/lib/pic16/Makefile.subdir,
3881           device/lib/pic16/libio/Makefile.in: fixed bug
3882           [ 1438344 ] pic16 lib: clean doesn't work properly
3883         * doc/knownbugs.html removed [ 1438354 ] and [ 1438344 ] from the list
3884
3885 2006-07-26 Maarten Brock <sourceforge.brock AT dse.nl>
3886
3887         * device/lib/pic/libsdcc/fsdiv.c,
3888         * device/lib/pic/libsdcc/fsmul.c,
3889         * device/lib/pic16/libsdcc/float/fsdiv.c,
3890         * device/lib/pic16/libsdcc/float/fsmul.c,
3891         * device/lib/_fsdiv.c,
3892         * device/lib/_fsmul.c: bugfix, handle too large and too small numbers
3893         * support/regression/tests/bug1520966.c: added
3894         * doc/knownbugs.html: removed [ 1520966 ] from the list
3895
3896 2006-07-25 Borut Razem <borut.razem AT siol.net>
3897
3898         * configure.in, configure, sdccconf_in.h: fixed bug
3899           [ 1519095 ] regression test onebyte.c fails on ppc64 host
3900         * doc/knownbugs.html: removed [ 1519095 ] from the list
3901
3902 2006-07-25 Maarten Brock <sourceforge.brock AT dse.nl>
3903
3904         * doc/knownbugs.html: added, contains list of known bugs at release
3905         * device/include/mcs51/compiler.h: fixed SFR32 for SDCC
3906
3907 2006-07-23 Maarten Brock <sourceforge.brock AT dse.nl>
3908
3909         * device/include/mcs51/compiler.h: added SFRX for xdata based special
3910           function registers and corrected defaults with additional warning
3911         * device/lib/malloc.c: cosmetic changes
3912         * device/lib/realloc.c: bugfix for bug #1496907, Thanks Efim Monyak
3913         * src/ds390/ralloc.c (getRegBitNoSpil): reenabled,
3914           (fillGaps): and used it
3915
3916 2006-07-20 Raphael Neider <rneider AT web.de>
3917
3918         * src/pic/device.c (addMemRange,assignRegister): suppress verbose
3919           output unless SDCCPICDEBUG is set
3920         * device/lib/pic16/Makefile.rules (%.lib target): suppress verbose
3921           output if SILENT is set
3922
3923 2006-07-11 Borut Razem <borut.razem AT siol.net>
3924
3925         * doc/README.txt: updated
3926
3927 2006-07-10 Borut Razem <borut.razem AT siol.net>
3928
3929         * support/scripts/sdcc.nsi: added device/include/asm/pic/features.h and
3930           device/lib/src/pic/libm/*.c and device/lib/src/pic16/libsdcc/stack/*.S
3931           in WIN32 installation
3932         * .version, sdcc.spec, doc/sdccman.lyx: changed sdcc version to 2.6.0 -
3933           release candidate 1
3934
3935 2006-07-08 Maarten Brock <sourceforge.brock AT dse.nl>
3936
3937         * device/include/mcs51/XC866.h: added sbit definitions for Px_x, P1_x, P2_x
3938         * src/pic16/glue.c (initPointer): fixed bug 1496419 for pic16
3939
3940 2006-07-06 Maarten Brock <sourceforge.brock AT dse.nl>
3941
3942         * src/hc08/gen.c (genAddrOf): fixed bug when offset on stack is >127
3943
3944 2006-07-06 Borut Razem <borut.razem AT siol.net>
3945
3946         * support/regression/tests/bitfields.c:
3947           fixed bug [ 1518322 ] regression test bitfields fails on ppc hosts
3948         * support/regression/tests/constantRange.c:
3949           fixed bug [ 1518317 ] regression test constantRange fails on alpha host
3950
3951 2006-07-04 Borut Razem <borut.razem AT siol.net>
3952
3953         * src/configure.in, src/configure, src/Makefile.in, as/z80/Makefile.in,
3954           src/port.mk,
3955           src/avr/Makefile.in, src/ds390/Makefile.in, src/ds400/Makefile.in,
3956           src/hc08/Makefile.in, src/mcs51/Makefile.in, src/pic16/Makefile.in,
3957           src/pic/Makefile.in, src/xa51/Makefile.in, src/z80/Makefile.in:
3958           reverted changes from 2006-07-03
3959         * Makefile.common.in: added @CPPFLAGS@ to CPPFLAGS
3960         * support/regression/Makefile.in, support/regression/ports/host/spec.mk:
3961           added CPPFLAGS, used by the host port
3962
3963 2006-07-03 Bernhard Held <bernhard AT bernhardheld.de>
3964
3965         * support/regression/valdiag/tests/switch.c,
3966         * support/regression/valdiag/tests/constantRange.c: adapted to gcc 4
3967         * support/regression/tests/libmullong.c: fixed for host
3968         * support/regression/ports/host/spec.mk: disable all warnings for host,
3969         SDCC runs with --less-pedantic too
3970
3971 2006-07-03 Borut Razem <borut.razem AT siol.net>
3972
3973         * src/configure.in, src/configure, src/Makefile.in, as/z80/Makefile.in:
3974           defined CPPFLAGS
3975         * src/port.mk: defined CPPFLAGS, renamed to src/port.mk.in
3976         * src/avr/Makefile.in, src/ds390/Makefile.in, src/ds400/Makefile.in,
3977           src/hc08/Makefile.in, src/mcs51/Makefile.in, src/pic16/Makefile.in,
3978           src/pic/Makefile.in, src/xa51/Makefile.in, src/z80/Makefile.in:
3979           include ../port.mk
3980         * sim/ucsim/main_in.mk, sim/ucsim/avr.src/Makefile.in,
3981           sim/ucsim/gui.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
3982           sim/ucsim/s52.src/Makefile.in, sim/ucsim/sim.src/Makefile.in,
3983           sim/ucsim/xa.src/Makefile.in: ignore header files for dependencies
3984
3985 2006-07-02 Raphael Neider <rneider AT web.de>
3986
3987         * src/pic16/devices.inc,
3988         * device/include/pic16/pic18fregs.h,
3989         * device/include/pic16/pic18f4550.h,
3990         * device/lib/pic16/pics.all,
3991         * device/lib/pic16/libdev/pic18f4550.c: added support for 18f4550
3992
3993 2006-07-01 Bernhard Held <bernhard AT bernhardheld.de>
3994
3995         * as/hc08/lkaomf51.c (OutputName),
3996         * as/mcs51/lkaomf51.c (OutputName),
3997         * as/z80/asmain.c (asmbl),
3998         * src/ds390/main.c (asmLineNodeFromLineNode),
3999         * src/hc08/ralloc.c (hc08_assignRegisters),
4000         * src/mcs51/main.c (asmLineNodeFromLineNode),
4001         * src/xa51/ralloc.c (checkRegMask),
4002         * src/xa51/gen.c (emitcode),
4003         * src/z80/gen.c (_emit2),
4004         * src/SDCCast.c (searchLitOp),
4005         * src/SDCCglobl.h,
4006         * support/packihx/packihx.c,
4007         * support/Util/MySystem.c (split_command): fix gcc 4 warnings
4008         * src/ds390/gen.c (aopPutUsesAcc),
4009         * src/ds390/ralloc.c (getRegBitNoSpil): unused, therefore disabled
4010         * support/regression/tests/libmullong.c (mullong_wrapper),
4011         * src/SDCCsymt.c (powof2),
4012         * src/SDCCast.c,
4013         * src/SDCCicode.c: renamed TYPE_WORD by TYPE_TARGET_INT and so on
4014         * src/SDCCsymt.h: added TYPE_TARGET_*
4015         * src/SDCCutil.c (doubleFromFixed16x16, fixed16x16FromDouble),
4016         * src/SDCCutil.h (doubleFromFixed16x16, fixed16x16FromDouble): moved to
4017         SDCCast because 1) header problems 2) this is the right place
4018         * src/SDCCast.c (doubleFromFixed16x16, fixed16x16FromDouble): added
4019         * src/SDCCval.h (doubleFromFixed16x16, fixed16x16FromDouble): added
4020         prototype
4021
4022 2006-06-29 Bernhard Held <bernhard AT bernhardheld.de>
4023
4024         * src/SDCCicode.h: removed buggy semicolon in unused macro
4025         * src/SDCClrange.c (findPrevUseSym, rlivePoint): fixed bug #1486853,
4026         search for previous definiton of auto symbols too,
4027         (findPrevUse): fixed logic of emitWarnings
4028
4029 2006-06-26 Raphael Neider <rneider AT web.de>
4030
4031         * src/pic16/gen.c (genFunction, genEndFunction): also preserve
4032           PCLATH and PCLATU on interrupts, potentially fixes #1505141
4033
4034 2006-06-25 Raphael Neider <rneider AT web.de>
4035
4036         * device/lib/pic/libm: NEW, added math library functions
4037         * device/lib/pic/libsdcc: NEW; added float support functions
4038         * device/lib/pic/{Makefile.in,configure.in,configure}: added libm/
4039         * device/include/pic/{limits.h,errno.h,sdcc-lib.h,float.h,math.h}:
4040           NEW, added math related headers
4041         * device/include/asm/pic/features.h: NEW
4042         * src/pic/gen.c (emitpcode_real): emit warning on NULL pCodeOp,
4043           (popGet): allow larger offsets for AOP_PCODE,
4044           (genDataPointerSet): handle literals explicitly, more debug output,
4045           (genAssign): fixed for float using aopLiteral ;-)
4046         * src/pic/glue.c (pic14createInterruptVect): inserted pagesel before
4047           GOTO initialisation routine
4048         * src/pic/pcoderegs.c (pCodeRegMapLiveRangesInFlow): set wasUsed
4049           flag on registers, fixes #1469043 (local variables do not work)
4050         * src/pic/main.c (_pic14_do_link),
4051         * src/pic16/main.c (_pic16_linkEdit): use fullDstFileName if
4052           available
4053
4054 2006-06-25 Borut Razem <borut.razem AT siol.net>
4055
4056         * device/lib/pic16/libc/stdio/sprintf.c: return the number of
4057           characters printed (not including the trailing '\0' used to end
4058           output to strings). Problem detected in regression test bug-927659.c.
4059           NOTE: printf() family functions should return int instead
4060           unsigned int!
4061         * device/lib/pic16/libc/stdio/vfprintf.c: "%%" prints "%", unknown
4062           specifier are printed as themselves
4063         * sdcc/support/regression/tests/bug1057979.c: pic16 printf doesn't
4064           support flags, width and precision specifiers
4065
4066 2006-06-24 Borut Razem <borut.razem AT siol.net>
4067
4068         * sdcc/support/regression/tests/bitvars.c: added gbz80, pic16 and pic16
4069           to the list of sdcc tagrets not supporting bit type
4070         * sdcc/support/regression/tests/bug-905992.c.c: excluded regression
4071           testfor pic16 due to bug:
4072           [ 1511794 ] pic16: regression test bug-895992.c fails
4073
4074 2006-06-24 Maarten Brock <sourceforge.brock AT dse.nl>
4075
4076         * src/mcs51/gen.c (genCmp): optimization for RFE 1162453
4077         * src/SDCCglue.c (initPointer), fixed bug 1496419
4078         * support/regression/tests/bug1496419.c: new, added
4079
4080 2006-06-22 Borut Razem <borut.razem AT siol.net>
4081
4082         * support/regression/ports/pic16/support.c: use gpsim usart module from
4083           libgpsim_modules library
4084
4085 2006-06-21 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4086
4087         * device/include/mcs51/at89c51ed2.h: Fixed bug 1510144 changed
4088         IP0H to IPH0.
4089
4090 2006-06-19 Raphael Neider <rneider AT web.de>
4091
4092         * src/pic/glue.h,src/pic16/glue.h: added prototypes
4093         * src/pic/glue.c,src/pic16/glue.c (pic1x_stringInSet,
4094           pic1x_emitSymbolIfNew): NEW, check for a string in a set,
4095           (pic14printExterns,pic14printPublics,pic16printPublics,
4096           pic16_printExterns): use new functions to emit symbols
4097           (picglue,pic16glue): emit publics before emitting externs
4098         * src/pic/gen.c,src/pic16/gen.c (genFunction): remember the names of
4099           locally defined functions to avoid bug #1443651
4100         * support/regression/tests/bug-716242.c: removed pic16 workaround
4101         * support/regression/ports/pic16/spec.mk: ignore errors during build
4102
4103 2006-06-19 Raphael Neider <rneider AT web.de>
4104
4105         * src/pic/glue.h: added pic14aopLiteral prototype
4106         * src/pic/glue.c (pic14aopLiteral): return unsigned int
4107         * src/pic/gen.c: removed stdint.h dependency
4108           (aopGet): use Safe_strdup()
4109           (bitpatternFromVal): removed, replaced use with pic14aopLiteral
4110           (genDataPointerSet): use pic14aopLiteral()
4111         * src/pic16/glue.h, src/pic16/glue.c, src/pic16/gen.c: similar changes
4112           for pic16; thanks to Bernhard and Maarten
4113
4114 2006-06-18 Borut Razem <borut.razem AT siol.net>
4115
4116         * support/regression/tests/structflexarray.c: flexible array members
4117           not supported by gcc < 3
4118         * sim/ucsim/configure, sim/ucsim/configure.in: do not compile serio
4119           GUI tool by default
4120         * src/pic/gen.c: don't include [p]strdin.h on solaris
4121         * support/Util/pstdint.h: addad svn attributes
4122         * support/regression/tests/constantRange.c,
4123           support/regression/tests/rotate.c: include inttypes.h instead
4124           stdint.h on solaris, addad svn attributes
4125
4126 2006-06-18 Raphael Neider <rneider AT web.de>
4127
4128         * src/SDCCsymt.c (initCSupport): change return type of divschar to
4129           int for PIC16
4130         * src/pic16/genarith.c (genAddLit): sign-extend via standard routine
4131           (pic16_genMinusBits): simplified sign-extension
4132           (pic16_genUMult8XLit_8,pic16_genUMult8X8_8): renamed to
4133             pic16_genMult8XLit_n resp. pic16_genMult8X8_n, fixed and
4134             adjusted to correctly handle mixed-signed operands, disabled
4135             now unused multiplciation routines
4136         * src/pic16/gen.c (pic16_pushpCodeOp): fixed to handle literals
4137           (assignResultValue): added argument denoting the size of the result
4138             as returned by the function (fixes upcasts in assigning from
4139             function calls: char foo(); int i = foo();)
4140           (genCall,genPcall,genGenPointerGet,genReceive): pass size of
4141             function result to assignResultValue
4142           (genMult): disabled inlined multiplication code
4143           (genDiv): augmented to also handle the modulus operator, fixed to
4144             handle mixed-signed operands correctly
4145           (genMod): simply call genDiv, disabled unused code
4146           (genAssign): fixed missing (sign-)extension on result
4147         * src/pic16/main.c (_hasNativeMulFor): accept literals [-128..256) as
4148             valid char operands, allow signed operands for native code, added
4149             division and modulo operator handling
4150         * device/lib/pic16/libsdcc/char/divschar.c: divschar returns an int
4151
4152         As a consequence, onebyte.c (if split into two files) and muldiv.c
4153         pass regression tests.
4154
4155 2006-06-17 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4156
4157         * doc/Makefile.in: two runs of makeindex seem needed to get
4158         correct page references in the index of sdccman.pdf
4159         * doc/sdccman.lyx: mentioned cmon51, added links, small changes
4160
4161 2006-06-17 Borut Razem <borut.razem AT siol.net>
4162
4163         * sdcc/device/lib/Makefile.in: corrected PORTINCDIR path
4164
4165 2006-06-17 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4166
4167         * doc/sdccman.lyx: updated, added (porting source code, debugging),
4168         mentioned ec2drv and paulmon
4169
4170 2006-06-16 Maarten Brock <sourceforge.brock AT dse.nl>
4171
4172         * as/mcs51/lkarea.c (lnkarea2): clear new xdatamap, bugfix for two
4173           consecutive abs areas
4174           (find_empty_space, allocate_space): added map to handle codemap or
4175            xdatamap,
4176           (lnksect2): renamed rloc to locIndex, fixed bug 960060 by handling
4177            absolute idata and xdata
4178         * as/mcs51/lkmem.c (summary2): updated legend
4179
4180 2006-06-16 Raphael Neider <rneider AT web.de>
4181
4182         * src/pic16/gen.c (shiftR2Left2Result): fixed bug #1507127
4183
4184 2006-06-13 Maarten Brock <sourceforge.brock AT dse.nl>
4185
4186         * debugger/mcs51/cmd.c (cmdListFunctions): fixed bugs 1181163 and
4187           1208515
4188         * src/SDCClrange.c (findPrevUse): fixed bug 1294475
4189
4190 2006-06-13 Vangelis Rokas <vrokas AT users.sourceforge.net>
4191
4192         * src/port.h (struct PORT): added field gp_tags, to hold the tag
4193         value of generic pointers,
4194         * src/avr/main.c,
4195           src/ds390/main.c,
4196           src/hc08/main.c,
4197           src/izt/i186.c,
4198           src/izt/tlcs900h.c,
4199           src/mcs51/main.c,
4200           src/pic/main.c,
4201           src/pic16/main.c,
4202           src/xa51/main.c,
4203           src/z80/main.c: PORT structure, added elements for gp_tags field,
4204         * src/SDCCsymt.h: replaced hardwired values of GPTYPE_* macros with
4205         fields in the PORT structure of each port,
4206         * src/SDCCast.c (decorateType): allow processing of generic pointers
4207         for PIC16 port (FPTRSIZE equals GPTRSIZE), also set GPTYPE_NEAR for
4208         S_FIXED symbols
4209
4210 2006-06-12 Maarten Brock <sourceforge.brock AT dse.nl>
4211
4212         * link/z80/lkgb.c,
4213         * link/z80/lkgg.c,
4214         * src/pic16/gen.c,
4215         * src/pic16/main.c,
4216         * src/pic16/pcode.c,
4217         * src/pic/main.c,
4218         * src/pic/pcoderegs.c,
4219         * src/SDCCicode.c,
4220         * src/SDCCmain.c,
4221         * src/SDCCsymt.c: replaced all exit(-1) by exit(EXIT_FAILURE) to fix
4222           bug 1504689 on minGW
4223
4224 2006-06-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4225
4226         * device/lib/printf_tiny.c: fixed bug #1465675 (%x format specifier)
4227
4228 2006-06-12 Bernhard Held <bernhard AT bernhardheld.de>
4229
4230         * src/SDCCast.c (backPatchLabels): fixed bug #1504636
4231
4232 2006-06-11 Maarten Brock <sourceforge.brock AT dse.nl>
4233
4234         * device/lib/printf_large.c (OUTPUT_CHAR, _output_char): added and used
4235           for optimization
4236
4237 2006-06-11 Vangelis Rokas <vrokas AT users.sourceforge.net>
4238
4239         * src/pic16/gen.c (genCast): fixed bug with assignment of a pointer
4240         to a char variable. Fixed bug #1504211
4241         * device/include/pic16/adc.h,
4242         device/include/lib/pic16/libio/adc/adcopen.c: applied patch #1364387
4243         and fixed bug #1364390
4244
4245 2006-06-10 Borut Razem <borut.razem AT siol.net>
4246
4247         * CVSROOT: removed the CVS left-over
4248
4249 2006-06-10 Maarten Brock <sourceforge.brock AT dse.nl>
4250
4251         * as/hc08/asmain.c (asexit),
4252         * as/hc08/lkmain.c (lkexit),
4253         * as/mcs51/asmain.c (asexit),
4254         * as/mcs51/lkmain.c (lkexit),
4255         * src/SDCCglue.c (DEFSETFUNC),
4256         * src/SDCCmain.c (linkEdit, assemble),
4257         * support/librarian/sdcclib.c (AddRel),
4258           replaced unlink() by standard C remove()
4259         * src/SDCC.y: replaced removePostIncDecOps() by createRMW()
4260         * src/SDCCast.c (replaceAstWithTemporary, createRMW,
4261           gatherImplicitVariables): new, added to fix bug 608752,
4262           (createFunction): added gatherImplicitVariables()
4263         * src/SDCCast.h: added createRMW prototype
4264         * src/SDCCsymt.h (struct symbol): added infertype
4265         * support/regression/tests/bug608752.c: new, added
4266
4267 2006-06-10 Raphael Neider <rneider AT web.de>
4268
4269         * src/pic16/gen.c (pic16_aopOp): use WREG as destination even for
4270           multibyte dummy reads (fixes #1503234)
4271
4272 2006-06-10 Maarten Brock <sourceforge.brock AT dse.nl>
4273
4274         * device/include/mcs51/compiler.h: new, added header file to enable
4275           creating common sfr definition header files for different compilers
4276
4277 2006-06-05 Raphael Neider <rneider AT web.de>
4278
4279         * src/pic16/{pcode.h,genarith.c}:
4280           introduced pCodeOp combining any two pCodeOps (previously only
4281           two register operands could be combined), removed pcop2 from
4282           pCodepReg, replaced pCodeOpReg2 with pCodeOp2, fixes #1492366
4283         * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): added case for PO_TWO_OPS
4284         * src/pic16/gen.c (pic16_popGet2,pic16_popGet2p,pic16_popCombine2):
4285           rewritten to use new PO_TWO_OPS
4286         * src/pic16/main.c (_hasNativeMulFor): cover more cases natively,
4287         * src/pic16/pcode.c (pic16_newpCodeOpImmd): initialize rIdx field,
4288           (pic16_newpCodeOp): catch invalid attempts on PO_TWO_OPS,
4289           (pic16_newpCodeOp2): NEW, create combined pCodeOp,
4290           (pic16_get_op): embraced return arg to allow #define return(x),
4291             added new case for combined opcodes
4292           (pic16_get_op2): reduced to use pic16_get_op() on second pCodeOp,
4293           (pic16_pCode2str,pic16_getRegFrompCodeOp,
4294            pic16_getRegFromInstruction2): fixed/added handling of new pCodeOp
4295
4296 2006-06-04 Bernhard Held <bernhard AT bernhardheld.de>
4297
4298         * src/SDCCval.c (checkConstantRange): added
4299         * src/SDCCval.h: added checkConstantRange
4300         * support/Util/SDCCerr.c,
4301         * support/Util/SDCCerr.h: replaced unused W_IF_NEVER_TRUE and
4302         W_IF_ALWAYS_TRUE by W_COMP_RANGE and W_LIT_OVERFLOW
4303         * src/SDCC.y: moved early 'condition transformations' to SDCCast.c
4304         * src/SDCCast.c (decorateType): added checkConstantRange,
4305         added 'condition transformations' from SDCC.y so that now W_COMP_RANGE
4306         can be emitted with the correct always true/false warning,
4307         added optimization for double '!';
4308         result of decorateType() must be assigned back to the tree, because
4309         decorateType() can change the tree
4310         * src/SDCCicode.c (geniCodeLogic),
4311         (geniCodeAssign): replaced new checkConstantRange, added warnings,
4312         (checkConstantRange): removed, it was only a fragment which never
4313         emitted a warning
4314         * src/SDCCsymt.c (computeType): fixed promotion for
4315         "-1 < (unsigned bit) b"
4316         * src/pic/ralloc.c (packRegsForAssign),
4317         * src/pic16/ralloc.c (packRegsForAssign),
4318         * src/hc08/ralloc.c (packRegsForAssign),
4319         * src/z80/ralloc.c (packRegsForAssign): ported fix for bug #930931
4320         from mcs51
4321         * src/mcs51/ralloc.c (packRegsForAssign): removed outcommented source
4322         * support/regression/tests/constantRange.c: added
4323         * support/valdiag/tests/constantRange.c: added
4324         * support/valdiag/valdiag.py: added -DPORT_HOST=1
4325
4326 2006-06-02 Borut Razem <borut.razem AT siol.net>
4327
4328         * support/regression/ports/pic16/support.c: increase stack size
4329           to 255 bytes
4330         * support/regression/Makefile.in: sort tests by name so that the
4331           resutlts can be compared on different machines / platforms
4332
4333 2006-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
4334
4335         * device/lib/printf_large.c (output_digit): optimized further, Tnx Frieder
4336         * src/ds390/gen.c (emitLabel): new, added,
4337           (genDjnz): fixed stack overflow bug,
4338           (throughout): cosmetic changes to sync with mcs51/gen.c,
4339           replaced emitcode("", "%05d$:", lbl->key + 100) with emitLabel(lbl)
4340         * src/mcs51/gen.c (genEndFunction): small optimization,
4341           (throughout): cosmetic changes to sync with ds390/gen.c
4342
4343 2006-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
4344
4345         * device/lib/printf_large.c (output_digit, calculate_digit): optimized,
4346           (_print_format): fixed printing pointers
4347         * src/mcs51/gen.c (emitLabel, movb): new, added,
4348           (genAssign): small optimization,
4349           (genDjnz): fixed stack overflow bug,
4350           (throughout): replaced sprintf with SNPRINTF,
4351           replaced mcs51_regWithIdx with REG_WITH_INDEX,
4352           replaced emitcode("mov", "b,...") with MOVB(...),
4353           replaced emitcode("", "%05d$:", lbl->key + 100) with emitLabel(lbl),
4354           replaced D(emitcode("; genXXX", "")) with D(emitcode(";", "genXXX"))
4355         * src/mcs51/peeph.def: added rules 140 and 264
4356         * src/SDCCmem.c (allocLocal): store register declared locals in DSEG/OSEG
4357           so they may get optimized into registers
4358
4359 2006-05-30 Maarten Brock <sourceforge.brock AT dse.nl>
4360
4361         * src/SDCCmain.c (optionsTable, parseCmdLine): handle --use-stdout
4362           immediately when encountered,
4363           (printUsage): always use stderr even on windows
4364
4365 2006-05-30 Bernhard Held <bernhard AT bernhardheld.de>
4366
4367         * src/SDCCast.c (isLoopCountable): fixed bug #1478316
4368         (processParms): fixed bug #1247551
4369         * src/SDCCmain.c (printVersionInfo, printOptions, printUsage,
4370         parseCmdLine, main): print '--version' to stdout,
4371         print 'help' to stdout if --help is given,
4372         print 'help' to stderr and exit with EXIT_FAILURE if no or bad
4373         arguments are given; fixed --help
4374
4375 2006-05-27 Bernhard Held <bernhard AT bernhardheld.de>
4376
4377         * src/SDCCcse.c (findPointerSet): fixed bug #1493710
4378         * support/regression/tests/bug-1493710.c: added
4379
4380 2006-05-27 Borut Razem <borut.razem AT siol.net>
4381
4382         * support/regression/fwk/lib/testfwk.c: define array in _printn() as
4383           static instead auto
4384         * support/regression/ports/pic16/support.c: increase stack size
4385           from default 64 bytes to 128 bytes
4386         * support/regression/tests/staticinit.c,
4387           support/regression/tests/float.c: regression tests fully enabled
4388           for pic16 port by putting the initialized data arrays into the code
4389           section
4390         * support/regression/ports/pic16/spec.mk: don't link default libraries.
4391           This was changed by mistake in the previous version.
4392
4393 2006-05-28 Vangelis Rokas <vrokas AT users.sourceforge.net>
4394
4395         * src/pic16/gen.c (genFunction, genEndFunction): some
4396         beautifications, fixed bug with falsely restoring FSR2 in large
4397         stack model, thanks to Beau E. Cox for reporting the bug
4398
4399 2006-05-26 Maarten Brock <sourceforge.brock AT dse.nl>
4400
4401         * debugger/mcs51/break.c,
4402         * debugger/mcs51/cmd.c (throughout): removed unused variables and labels,
4403           use %p to print pointers, made address variables unsigned
4404         * debugger/mcs51/cmd.c (infoSymbols): added missing parameter to printf
4405         * debugger/mcs51/symtab.c (parseSymbol): must return something
4406         * src/mcs51/gen.c (aopForSym): small optimization,
4407            moved declarations mcs51_ptrRegReq and mcs51_nRegs to ralloc.h,
4408           (freeAsmop): added missing break,
4409           (aopPut): removed parameter bvolatile, determine it inside the function,
4410           (saveRegisters, unsaveRegisters): small optimization,
4411           (genIpush): removed pointless check,
4412           (throughout): replaced Safe_calloc, strcpy with Safe_strdup,
4413           replaced sprintf with SNPRINTF,
4414           replaced strcpy with strncpyz,
4415           updated aopPut calls,
4416           replaced D(emitcode("; genXXX", "")) with D(emitcode(";", "genXXX"))
4417         * src/mcs51/ralloc.h:  added declarations mcs51_ptrRegReq and mcs51_nRegs
4418
4419 2006-05-24 Borut Razem <borut.razem AT siol.net>
4420
4421         * support/regression/tests/bug-221100.c: fixed xdata problem caused by
4422           modification of test for the pic16 port, put the array to the code
4423           memory for pic16port; thanks to Maarten Brock and Frieder Ferlemann
4424
4425 2006-05-23 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4426
4427         * src/pic/gen.c: MSC 6 does not have <stdint.h>.  Use pstdint.h instead.
4428         * support/Util/pstdint.h: added
4429
4430 2006-05-22 Borut Razem <borut.razem AT siol.net>
4431
4432         * src/regression/Makefile: removed bool2.c test, added -q linker option
4433         * src/regression/add2.c, src/regression/add3.c, src/regression/bool1.c,
4434           src/regression/bool3.c, src/regression/nestfor.c, src/regression/ptrfunc.c,
4435           src/regression/compare.c, src/regression/or1.c, src/regression/compare2.c,
4436           src/regression/while.c, src/regression/compare3.c, src/regression/compare4.c,
4437           src/regression/compare5.c, src/regression/sub2.c, src/regression/rotate1.c,
4438           src/regression/rotate2.c, src/regression/rotate3.c, src/regression/rotate4.c,
4439           src/regression/switch1.c, src/regression/rotate5.c, src/regression/for.c,
4440           src/regression/add.c, src/regression/sub.c, src/regression/call1.c:
4441           define SUPPORT_BIT_TYPES 0, removed unused bit variables
4442
4443 2006-05-22 Raphael Neider <rneider AT web.de>
4444
4445         * src/pic16/gen.c (pic16_storeForReturn): fragile fix for
4446           bug #1492360 (problematic due to generic pointers, see code)
4447
4448 2006-05-22 Borut Razem <borut.razem AT siol.net>
4449
4450         * support/regression/ports/pic16/specs.mk: removed stack size linker
4451           directive
4452         * support/regression/tests/array.c,
4453           support/regression/tests/bitopcse.c,
4454           support/regression/tests/bug-908454.c,
4455           support/regression/tests/malloc.c: modified for pic16 regression test
4456         * support/regression/tests/bitfields.c:
4457           pic16 - excluded bitfileds of size > 8
4458         * support/regression/tests/bp.c: pic16 - reduced data size
4459         * support/regression/tests/bug-221100.c: pic16 - reduced data size
4460         * support/regression/tests/bug-460010.c:
4461           pic16 - used the absolute address the fits in memory
4462         * support/regression/tests/bug-716242.c:
4463           bug [ 1443651 ] pic 16: redefining symbol that cannot be redefined.
4464         * support/regression/tests/float.c:
4465           pic16 - excluded - data size too big
4466         * support/regression/tests/onebyte.c:
4467           pic16 - bug [ 1444425 ] onebyte.c regression tes fails on pic16
4468         * support/regression/tests/shifts.c:
4469           pic16 - function names probably have to differ in first X characters
4470           (gpasm limitation?)
4471         * support/regression/tests/staticinit.c:
4472           pic16 - excluded some tests due error: no target memory available for
4473           section ".idata"
4474
4475 2006-05-22 Borut Razem <borut.razem AT siol.net>
4476
4477         * support/Util/dbuf.c: fixed bug #1489008 fix dbuf_c_str(),
4478           second try. Thanks Stas Sergeev once more.
4479
4480 2006-05-21 Maarten Brock <sourceforge.brock AT dse.nl>
4481
4482         * src/hc08/gen.c (transferAopAop): aop forced to stack was not restored,
4483           (genLeftShift, genRightShift): fixed bug 1491627
4484         * src/hc08/peeph.def (rules 7, 8.x): added
4485         * support/regression/tests/shifts.c (ShiftLeftByParam,
4486           ShiftRightByParam, testShiftByParam): added to test variable shifting
4487
4488 2006-05-20 Raphael Neider <rneider AT web.de>
4489
4490         * src/pic/gen.c (bitpatternFromVal): fixed for 64-bit machines
4491         * src/pic16/ralloc.c (newReg): use correct name in hashtable,
4492           (allocReg): add only new registers to dynAllocRegs,
4493           (pic16_assignRegisters): do not reset dynrIdx, fixes bugs
4494             #1489055, #1445850, and probably #1483693
4495
4496 2006-05-19 Vangelis Rokas <vrokas AT users.sourceforge.net>
4497
4498         * src/pic16/glue.c (pic16_emitConfigRegs, pic16_emitIDRegs): fixed
4499         bug in for-loop that didn't emit the last of CONFIG and ID registers
4500
4501 2006-05-18 Maarten Brock <sourceforge.brock AT dse.nl>
4502
4503         * src/mcs51/gen.c (genCodePointerGet): inc dptr instead of loading acc
4504           with offset
4505         * src/mcs51/peeph.def (186.x): updated and reenabled to fix bugs
4506           1489016, 1434401 and 1490124
4507         * src/ds390/peeph.def (186.x, 227.x): updated and reenabled to fix bugs
4508           1489016, 1434401 and 1490124
4509
4510 2006-05-17 Borut Razem <borut.razem AT siol.net>
4511
4512         * support/Util/dbuf.c: fixed bug #1489008 fix dbuf_c_str(),
4513           thanks Stas Sergeev
4514
4515 2006-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
4516
4517         * device/include/mcs51/P89c51RD2.h,
4518         * device/include/mcs51/P89LPC901.h,
4519         * device/include/mcs51/P89LPC922.h,
4520         * device/include/mcs51/P89LPC932.h: added, thanks Omar Espinosa
4521
4522 2006-05-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
4523
4524         * device/lib/pic16/libsdcc/stack/{stack.S, Makefile.in}: add workaround
4525         to fix missing stack pragma in compiled binary object file,
4526
4527 2006-05-14 Bernhard Held <bernhard AT bernhardheld.de>
4528
4529         * support/packihx/configure.in,
4530         * support/packihx/configure: removed warning, autoconf >= 2.5x can
4531         determine sizeof basic types even while cross compiling
4532
4533 2006-05-13 Bernhard Held <bernhard AT bernhardheld.de>
4534
4535         * src/avr/gen.c (aopop),
4536         * src/ds390/gen.c (aopOp),
4537         * src/hc08/gen.c (aopOp),
4538         * src/mcs51/gen.c (aopop),
4539         * src/pic16/gen.c (pic16_aopOp),
4540         * src/pic/gen.c (aopOp),
4541         * src/z80/gen.c (aopop): fix for bug #1479882; use new, exclusive asmop
4542         if size of operand is smaller than spill location
4543
4544 2006-05-12 Borut Razem <borut.razem AT siol.net>
4545
4546         * *.dsw, *.dsp: changed property svn:eol-style to CRLF since they
4547           have to have CR/LF line endings even if they are checked out on *nix
4548           or on WIN32 in cygwin binmode
4549
4550 2006-05-12 Maarten Brock <sourceforge.brock AT dse.nl>
4551
4552         * doc/sdccman.lyx: documented numeric ranges, WEBDOC #1442369
4553         * device/include/ds80c390.h: added sfr16 definitions
4554         * src/ds390/gen.c,
4555         * src/ds390/gen.h,
4556         * src/ds390/main.c,
4557         * src/ds390/ralloc.c,
4558         * src/ds390/ralloc.h: changes all over the place to sync with mcs51
4559           fixing several bugs and adding sfr16/sfr32, reentrant bit params,
4560           bit returning functions
4561         * support/regression/tests/sfr16.c: enabled test on ds390
4562
4563 2006-05-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4564
4565         * src/hc08/gen.c (asmopToBool, genIfx): fix for bug #1429722
4566         * src/hc08/gen.c (storeRegToAop): fix for bug #1439894
4567
4568 2006-05-11 Maarten Brock <sourceforge.brock AT dse.nl>
4569
4570         * sim/ucsim/sim.src/memcl.h: added get_decoder() to cl_address_space
4571         * sim/ucsim/sim.src/mem.cc: implemented cl_address_space::get_decoder,
4572           (cl_address_space constructor): removed expensive initialization,
4573           (cl_address_space::get_cell): extended for late initialization,
4574           (cl_address_space::*): use late initialization,
4575           (cl_address_decoder::activate): removed expensive initialization,
4576           This reduced regression test running time by 25%
4577
4578 2006-05-11 Bernhard Held <bernhard AT bernhardheld.de>
4579
4580         * packihx/,
4581         * configure.in,
4582         * configure,
4583         * sdcc.dsw,
4584         * Makefile.bcc,
4585         * Makefile.in,
4586         * support/packihx/Makefile.in,
4587         * support/packihx/clean.mk,
4588         * support/packihx/Makefile.bcc,
4589         * support/packihx/PackIhx.dsp: moved packihx to support/packihx
4590
4591 2006-05-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4592
4593         * src/SDCCval.c (valNot): fix for regression test failure
4594           of not.c on big endian hosts
4595
4596 2006-05-10 Maarten Brock <sourceforge.brock AT dse.nl>
4597
4598         * device/inlcude/mcs51/msc1210.h: new, added, thanks Philippe Latu
4599
4600 2006-05-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4601
4602         * device/lib/mcs51/Makefile.in: changed string comparison operator
4603           to = for POSIX compliance; == is bash extension
4604
4605 2006-05-10 Maarten Brock <sourceforge.brock AT dse.nl>
4606
4607         * device/lib/hc08/_mulint.c: applied patch 1485428, thanks
4608           kosmonaut_pirx
4609
4610 2006-05-09 Vangelis Rokas <vrokas AT users.sourceforge.net>
4611
4612         * src/pic16/gen.c (pic16_freeAsmop): release any temp registers
4613         allocated by aopForSym thus fixing bug #1478657 about failed testfwk.c
4614         * src/pic16/main.c (_pic16_keywords): added 'sfr16' keyword,
4615         * src/pic16/ralloc.c (pic16_allocWithIdx): also a fix for bug exposed by
4616         bug report #1478657,
4617
4618 2006-05-05 Borut Razem <borut.razem AT siol.net>
4619
4620         * doc/Makefile.in: remove of WARNINGS and labels.pl immediately after
4621           making the html
4622
4623 2006-05-02 Borut Razem <borut.razem AT siol.net>
4624
4625         * doc/Makefile.in: removed *.ind dependency since there is no rule to
4626           create *.ind, which made make to fail if invoked with -j 2
4627
4628 2006-05-01 Maarten Brock <sourceforge.brock AT dse.nl>
4629
4630         * src/SDCCglue.c (emitRegularMap): partial fix for bug 1477149, thanks
4631           Hubert Sack for patch 1479782
4632
4633 2006-05-01 Vangelis Rokas <vrokas AT users.sourceforge.net>
4634
4635         * src/pic16/glue.c (pic16_printIvalStruct): fixed bug #1445929
4636
4637 2006-05-01 Raphael Neider <rneider AT web.de>
4638
4639         * src/pic/device.c (sanitise_processor_name): only remove p(ic) prefix,
4640           (create_pic): store only prefix-free device name,
4641           (init_pic): check for device names with "16" prefix,
4642           (list_valid_pics),
4643         * src/pic/device.h (struct PIC_device),
4644         * src/pic/main.c (_pic14_genAssemblerPreamble): adapted to single
4645             stored device name,
4646         * device/include/pic/pic12f{635,675,629,683}.h,
4647         * device/lib/pic/libdev/pic12f{635,675,629,683}.c: NEW device libraries
4648         * device/lib/pic/libdev/Makefile.in: allow pic12* devices,
4649         * device/include/pic/pic16f505.h,
4650         * device/lib/pic/libdev/pic16f505.c: removed
4651         * device/include/pic/pic14devices.txt: added support for pic12f
4652             devices, removed unsupported non 16-bit devices
4653             [above changes provided by patch from Zik Saleeba]
4654         * src/pic/*, src/pic16/*, device/include/pic16/*,
4655           device/lib/pic/**, device/lib/pic16/**: obfuscated email address
4656
4657 2006-05-01 Borut Razem <borut.razem AT siol.net>
4658
4659         * configure.in, configure, doc/Makefile.in:
4660           sync with nightly build makefile - latex, dvipdf and dvips
4661           not needed any more
4662
4663 2006-04-30 Bernhard Held <bernhard AT bernhardheld.de>
4664
4665         * support/scripts/sdcc.nsi: removed all Readmes and Makefiles
4666         in the library source
4667
4668 2006-04-30 Maarten Brock <sourceforge.brock AT dse.nl>
4669
4670         * support/regression/ports/hc08/spec.mk: fixed bug 1478892
4671
4672 2006-04-28 Raphael Neider <rneider AT web.de>
4673
4674         * src/pic16/pcode.c (pic16_newpCodeOpLit12),
4675         * src/pic16/gen.c (pic16_popGetLit12): NEW, create 12 bit literal,
4676           (pic16_loadFSR0): handle 12 bit literals correctly, fixes #1440527
4677         * src/pic16/pcode.h: added prototype for pic16_newpCodeOpLit12()
4678
4679 2006-04-28 Bernhard Held <bernhard AT bernhardheld.de>
4680
4681         * device/lib/pic/libdev/Makefile.in,
4682         * device/lib/hc08/Makefile.in,
4683         * device/lib/gbz80/Makefile.in,
4684         * device/lib/z80/Makefile.in,
4685         * device/lib/ds390/Makefile.in,
4686         * device/lib/ds400/Makefile.in: added srcdir to include search path,
4687         thanks to Borut for the bug report
4688         * configure.in,
4689         * configure: always create doc/Makefile independent from --enable-doc
4690         * Makefile.in: always install from directory doc independent from
4691         --enable-doc
4692         * device/lib/pic/Makefile.in: added libdev again, it was erroneously
4693         removed
4694         * device/lib/pic/libdev/Makefile.in: fixed VPATH build
4695         * doc/Makefile.in: install *.txt if present
4696         * device/include/Makefile.in (install): added installation of pic/*.inc
4697         and pic/*.txt files again, they were erroneously removed
4698
4699 2006-04-28 Raphael Neider <rneider AT web.de>
4700
4701         * src/pic/{gen.c,main.h,pcode.c},
4702         * src/pic16/{gen.c,pcode.c}: quietened compiler warnings
4703             concerning signedness with casts
4704
4705 2006-04-28 Raphael Neider <rneider AT web.de>
4706
4707         * src/pic/gen.c (genFunction): set global pic14_hasInterrupt on
4708             definition of an interrupt handler,
4709         * src/pic/glue.c (pic14_emitInterruptHandler): moved output of
4710             interrupt handler stuff from picglue() to separate routine,
4711           (picglue): enabled definition of intr handlers in files w/o main()
4712
4713 2006-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
4714
4715         * support/librarian/sdcclib.c: moved include <limits.h> up to enable
4716           compilation with MSVC 2005 Express Edition (VC8)
4717
4718 2006-04-26 Bernhard Held <bernhard AT bernhardheld.de>
4719
4720         * device/lib/Makefile: fixed build of gbz80 lib
4721
4722 2006-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
4723
4724         * support/regression/tests/bug-460010.c,
4725         * support/regression/tests/bug-524691.c,
4726         * support/regression/tests/bug-716242.c: removed conditional defines
4727           that are already in testfwk.h
4728
4729 2006-04-25 Maarten Brock <sourceforge.brock AT dse.nl>
4730
4731         * src/ds390/gen.c (AccAXRrl1, AccAXLrl1): changed to real rotate by 1,
4732           (AccAXRsh1): added, shift right by 1,
4733           (AccAXLsh, AccAXRsh, AccAXRshS): updated for AccAXRrl1, AccAXRsh1 and
4734            AccAXLrl1
4735         * support/regression/tests/rotate.c: use <stdint.h> and enabled ds390
4736
4737 2006-04-25 Bernhard Held <bernhard AT bernhardheld.de>
4738
4739         * src/SDCCast.c (decorateType): partial fix for RFE 1475769,
4740         remove cast to same type
4741         * src/SDCCast.c (decorateType): fix for RFE 1475742,
4742         optimize 'ifx (op == 0)' resp. 'ifx (op != 0)'
4743         * as/z80/Makefile,
4744         * link/z80/Makefile: removed, they have moved to
4745         Makefile.in files
4746         * configure,
4747         * configure.in: replaced duplicate message about ucsim by missing sdcpp
4748         * install-sh: fix bug #1204398 by setting umask 0022
4749         * device/lib/Makefile: separate build of z80 and gbz80 lib
4750
4751 2006-04-24 Bernhard Held <bernhard AT bernhardheld.de>
4752
4753         Enabled VPATH feature: changed nearly all Makefiles (149 files).
4754         See sdccman.lyx '2.4.10 VPATH feature' about how to use it.
4755
4756         One basic decision: e.g. src/clean.mk includes further files. In order
4757         to make this work there are two solutions:
4758         - rename another dozen clean.mk to clean_in.mk, add srcdir to them and
4759           run configure on them. This way they can use
4760           'include $(srcdir)/port-clean.mk'
4761         - always include clean.mk by the Makefile at the same level. To avoid
4762           that `make clean` tries to include and build Makefile.dep the
4763           MAKECMDGOALS are examined (see e.g. src/Makefile.in). This has been
4764           implemented, because now even `make uninstall` doesn't create
4765           Makefile.in. clean.mk could be eliminated by pasting it in
4766           Makefile.in.
4767
4768         * debugger/mcs51/Makefile.in: build own objects from library sources
4769         (SLIB, SDCC) in current directory
4770
4771         * configure, configure.in: renamed --disable-device-lib-build in
4772         --disable-device-lib; added --enable-doc, the required tools are
4773         searched by configure; added result message; the toolchain for the
4774         belonging ports are now only built, if the port is enabled.
4775
4776         * support/regression/*: all output is written in directory gen, because
4777         the fwk and ports directories don't livet in the build tree using vpath
4778
4779         * doc/sdccman.lyx: renamed --disable-device-lib-build to
4780         --disable-device-lib, added --enable-doc, added section VPATH
4781
4782         * sim/ucsim/configure.in,
4783         * sim/ucsim/configure.in: hc08 couldn't be disabled, now hc08 and
4784         z80 are enabled by default
4785
4786 2006-04-24 Raphael Neider <rneider AT web.de>
4787
4788         * src/pic/device.c (pic14_assignConfigWordValue): remember assignments
4789             to config word, "pic14_"-prefixed some extern functions
4790           (pic14_emitConfigWord): emit __config directive(s) if assignment to
4791             config word has been found
4792         * src/pic/device.h: added prototypes
4793         * src/pic/pcode.c: added "pic14_"-prefix where needed
4794         * src/pic/ralloc.c (IS_CONFIG_ADDRESS,pic14_assignRegisters): cosmetic
4795             fixup
4796         * src/pic/glue.c (pic14_constructAbsMap): handle assignments to config
4797             words,
4798           (pic14emitRegularMap): ignore config words,
4799           (pic14createInterruptVect): moved generating __config directives away
4800           (picglue): have __config directives emitted
4801
4802 2006-04-24 Borut Razem <borut.razem AT siol.net>
4803
4804         * doc/Makefile: sync with nightly build makefile
4805
4806 2006-04-24 Raphael Neider <rneider AT web.de>
4807
4808         * src/pic/pcoderegs.c (OptimizeRegUsage): do not optimize
4809             registers that have not been assigned proper liveranges,
4810             fixes #1469504 and #1474602,
4811           (pCodeRegOptimizeRegUsage): fixed typo in comment
4812
4813 2006-04-24 Borut Razem <borut.razem AT siol.net>
4814
4815         * device/examples/main8051.c: deleted - it was removed from CVS
4816           24.mar.2000 and after that modified 18.feb.2001, so it reappered
4817           after the transition to Subversion
4818         * src/SDCCalloc.h: deleted - it was removed  from CVS
4819           3.feb.2001 and after that modified 18.feb.2001, so it reappered
4820           after the transition to Subversion
4821         * sim/ucsim/cpu.gif, sim/ucsim/interrupt.gif, sim/ucsim/new.gif,
4822           sim/ucsim/serial1.gif, sim/ucsim/serial2.gif,
4823           sim/ucsim/term_cpuopt.gif, sim/ucsim/timers.gif, sim/ucsim/wins.gif,
4824           sim/ucsim/post.jpg, sim/ucsim/UCsim.jpg: corrected
4825
4826 2006-04-22 Maarten Brock <sourceforge.brock AT dse.nl>
4827
4828         * as/asx8051.dsp: added mcs51/strcmpi.h
4829         * as/hc08/as_hc08.dsp: added asm.h, m6808.h, strcmpi.h
4830         * as/hc08/aslink.h: updated lnksect prototype
4831         * as/hc08/asm.h,
4832         * as/mcs51/asm.h: added a_addr to struct area and s_org to struct sym
4833         * as/hc08/asmain.c,
4834         * as/mcs51/asmain.c (asmbl): init dot.s_org for S_ORG,
4835           (newdot): handle A_ABS
4836         * as/hc08/asout.c,
4837         * as/mcs51/asout.c (outarea): output address
4838         * as/hc08/lkaomf51.c,
4839         * as/mcs51/lkaomf51.c: disabled unused array UsageType
4840         * as/hc08/m08pst.c,
4841         * as/mcs51/i51pst.c,
4842         * as/z80/z80pst.c: "ABS" is not A_OVR
4843         * as/hc08/lkarea.c (newarea): read a_addr,
4844           (lnkarea): added codemap array, sort absolute areas to the front,
4845            combine all GSINITx/GSFINAL,
4846           (find_empty_space, allocate_space): new functions,
4847           (lnksect): return next address, handle absolute sections
4848         * as/mcs51/lkarea.c (newarea): read a_addr,
4849           lnksect2 prototype changed,
4850           (lnkarea2): define codemap unsigned, combine all GSINITx/GSFINAL,
4851           (find_empty_space, allocate_space): new, factored out of lnksect2,
4852           (lnksect2): return next address, handle absolute sections
4853         * as/hc08/lkhead.c,
4854         * as/mcs51/lkhead.c (newhead): head is absolute but not overlay
4855         * as/hc08/lklibr.c (addfile, fndsym),
4856         * as/mcs51/lklibr.c (addfile, buildlibraryindex, fndsym): prevent
4857           index out of range and detect both '\' and '/'
4858         * device/include/mcs51/c8051f200.h: added _XPAGE, removed bad comment
4859         * device/include/stdbool.h: removed SDCC_ds390 from check to pass
4860           regression tests (ds390 cannot return bool yet)
4861         * doc/sdccman.lyx: changed version number, document changed --no-peep,
4862           document critical interrupts on z80, document changed SDCC define
4863         * src/asm.c (_asxxxx_mapping): fixed .org directive,
4864           (_a390_mapping): added .org directive
4865         * src/hc08/gen.c (transferAopAop): made bytemask log to fix warning,
4866           (genMultOneByte): fixed warnings
4867         * src/hc08/hc08.dsp: lowered warning level to 2 to suppress pedantic
4868           ones
4869         * src/pic16/device.c: removed newReg prototype, removed BYTE_IN_LONG
4870         * src/pic16/gen.c (pic16_popGetLabel): made parameter key signed,
4871           (pic16_genLeftShiftLiteral, genRightShiftLiteral): fixed warnings
4872         * src/pic16/gen.h: changed prototype for pic16_popGetLabel
4873         * src/pic16/main.c: removed newReg prototype
4874         * src/pic16/pcode.c,
4875         * src/pic16/pcode.h (pic16_emitDB): changed parameter c to int to fix
4876           warnings
4877         * src/pic16/pic16.dsp: lowered warning level to 2 to suppress pedantic
4878           ones
4879         * src/pic16/ralloc.c
4880         * src/pic16/ralloc.h (newReg): changed type to int and size to unsigned
4881           to fix warnings
4882         * src/pic/pcode.c (allocInternalRegister): changed parameter optype
4883           from short to PIC_OPTYPE
4884         * src/pic/pic.dsp: lowered warning level to 2 to suppress pedantic ones
4885         * src/pic/ralloc.c (newReg, allocInternalRegister): changed parameter
4886           optype from short to PIC_OPTYPE
4887         * src/port.h: made int_size unsigned to fix warnings
4888         * src/SDCC.y: fixed warning on MSVC
4889         * src/SDCCicode.c (getArraySizePtr): return unsigned int
4890         * src/SDCCopt.c (convertToFcall): fixed warnings
4891         * src/SDCCsymt.h: removed double prototype for genSymName
4892         * src/xa51/ralloc.c (allocReg): made size unsigned int, type int and
4893           offset int to fix warnings
4894
4895 2006-04-22 Borut Razem <borut.razem AT siol.net>
4896
4897         * doc/sdccman.lyx, */Makefile, */Makefile.in:
4898           references to CVS replaced with Subversion
4899
4900 2006-04-21 Borut Razem <borut.razem AT siol.net>
4901
4902         * doc/sdccman.lyx, */Makefile, */Makefile.in:
4903           references to CVS replaced with Subversion
4904
4905 2006-04-19 Borut Razem <borut.razem AT siol.net>
4906
4907         * src/version.awk: adapted for svn
4908         * /asxxxx/asxhtml/*.gif: set property svn:mime-type to image/gif
4909           sim/ucsim/doc/*.gif: set property svn:mime-type to image/gif
4910           sim/ucsim/doc/*.jpg: set property svn:mime-type to image/jpeg
4911           /binutils-avr/etc/*.vi, *.jin: removed all properties
4912           support/scripts/sdcc.ico: set property svn:mime-type to image/x-icon
4913
4914 2006-04-19 Borut Razem <borut.razem AT siol.net>
4915
4916         * CVS to Subversion migration completed
4917
4918 2006-04-18 Borut Razem <borut.razem AT siol.net>
4919
4920         * support/scripts/sdcc.nsi: removed unexisting ${DEV_ROOT}\lib\pic\*.o,
4921           ${DEV_ROOT}\lib\src\pic\libdev\*.S, ${DEV_ROOT}\lib\src\pic\libdev\*.inc
4922
4923 2006-04-17 Borut Razem <borut.razem AT siol.net>
4924
4925         * device/include/Makefile.in: added pic/*.inc to the installation
4926
4927 2006-04-15 Bernhard Held <bernhard AT bernhardheld.de>
4928
4929         * support/regression/collate-results.py: fixed output in case of
4930         a valdiag error
4931         * support/regression/generate-cases.py: fixed splitting of pathnames
4932         with dots
4933         * as/hc08/lklibr.c (addfile),
4934         * as/mcs51/lklibr.c (addfile): fixed off-by-one bug
4935
4936 2006-04-11 Raphael Neider <rneider AT web.de>
4937
4938         * src/pic16/gen.c (getFreePtr, pic16_popRegFromString),
4939         * src/pic16/ralloc.c (pic16_allocregWithName): removed debug output
4940         * src/pic16/pcode.c (assignValnums): fixed #1460578
4941
4942 2006-04-11 Raphael Neider <rneider AT web.de>
4943
4944         * device/lib/pic/libdev/*.c,
4945         * device/include/pic/*.h: replaced sfr and data with __sfr and __data,
4946           fixes #1468739, enables compilation in --std-c99 mode
4947         * support/scripts/inc2h.pl: emit __sfr/__data instead of sfr/data
4948
4949 2006-04-11 Raphael Neider <rneider AT web.de>
4950
4951         * src/pic/device.c (find_device): removed debug output
4952           (list_valid_pics): enabled verbose listing of supported devices
4953         * device/include/stdbool.h: define bool as char for pic14/16 as well
4954
4955 2006-04-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4956
4957         * src/SDCC.y: allow using brackets here: "__interrupt (1) __using (1)"
4958
4959 2006-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
4960
4961         * .version: bumped version to 2.5.6
4962         * src/pic/ralloc.c (newReg): MSVC doesn't support __builtin_return_address
4963
4964 2006-04-06 Raphael Neider <rneider AT web.de>
4965
4966         * .version: bumped version to 2.5.6 (pic14 ABI changed)
4967         * src/SDCCmain.c: add -DSDCC_PROCESSOR=<id> for pic14 port
4968         * src/pic/glue.c (emitSymbolToFile,pic14_constructAbsMap,
4969           pic14emitRegularMap,pic14emitMaps): moved output for absolute symbols to
4970             pic14_constructAbsMap
4971           (pic14printPublics): declare absolute global symbols as global
4972           (pic14createInterruptVect),
4973         * src/pic/ralloc.c (IS_CONFIG_ADDRESS): support second config word,
4974           (newReg): assume new registers unused, use correct name in
4975             hashtable (reg->name instead of name), more debugLog output
4976         * src/pic/device.h (PIC_device): added fields for verbose output
4977         * src/pic/device.c: moved device definition to pic14devices.txt,
4978             added routines for runtime parsing of pic14devices.txt,
4979             added support for second config word
4980         * src/pic/main.c (_process_pragma): removed #pragma maxram,
4981           (_pic14_keywords): no longer accept "bit" and "sbit" keywords
4982           (_pic14_initPaths): add search paths with "pic" suffix (not "pic14")
4983           (_pic14_parseOptions): moved pCodeInitRegisters here
4984           (_pic14_do_link): add "pic$(ARCH).lib" to linker arguments
4985         * src/pic/pcode.c (AnalyzeBanking): bail out on unset processor,
4986           (pCodeInitRegisters): rewrapped comments, perpared new approach to
4987             handling the pseudo stack
4988         * device/lib/Makefile.in: ignore failures in objects-pic16,
4989         * device/lib/pic/{configure,configure.in,Makefile}: added libdev/
4990         * device/lib/pic/NEWS: document new dependency on picXXX.lib
4991         * device/lib/pic/Makefile.subdir,
4992         * device/lib/pic16/Makefile.subdir: improved clean rules
4993         * device/lib/pic/libdev/: NEW, pic14 device libraries
4994         * device/lib/pic/libsdcc/_gptr{get,put}{1,2,3,4}.S: use _X not X
4995         * device/lib/pic/libsdcc/macros.inc: use _X not X, declare default SFRs
4996         * device/include/Makefile.in: create subdir and install pic14 headers
4997         * device/include/pic/p16f_common.inc: removed unused declarations
4998         * device/include/pic/pic16*.h: added header files for 100+ 14 bit
4999             PICs from inc2h.pl v1.6,
5000             replaced BIT_AT macros with struct declarations
5001         * device/include/pic/pic14devices.txt: definition of supported devices,
5002             all above improvements contributed by Zik Saleeba, thanks
5003         * support/scripts/inc2h.pl: removed BIT_AT, replaced with structs
5004         * support/scripts/sdcc.nsi: also install pic14 device libraries and
5005             headers
5006
5007 2006-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
5008
5009         * device/include/mcs51/c8051f410.h: added interrupt numbers,
5010         * device/include/mcs51/c8051f200.h: old SiLabs mcu completes the list,
5011           thanks to Charles Olds
5012
5013 2006-04-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5014
5015         * debugger/mcs51/cmd.c (infoRegisters): show return address on stack
5016
5017 2006-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
5018
5019         * src/SDCCpeeph.c (labelIsReturnOnly): fixed bug 1464657
5020         * src/mcs51/gen.c (genJumpTab): fixed bug in medium model
5021         * support/regression/bug1464657.c: added, new test
5022
5023 2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
5024
5025         * src/SDCCmain.c (preProcess): implemented RFE 1449908, define SDCC as the
5026           version number
5027
5028 2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
5029
5030         * src/SDCCpeeph.c (initPeepHole): implemented RFE 1460196, when both
5031           --no-peep and --peep-file <file> are used don't use default rules but
5032           do use the <file>
5033
5034 2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
5035
5036         * src/mcs51/gen.c (genCall): fixed bug 1457608
5037
5038 2006-03-30 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5039
5040         * doc/sdccman.lyx: reverted to version 1.129 of december as my latest
5041         changes seem to cause (trigger?) problems with the build system.
5042
5043 2006-03-29 Maarten Brock <sourceforge.brock AT dse.nl>
5044
5045         * src/SDCCpeeph.c (operandsLiteral): new, added,
5046           (callFuncByName): inserted operandsLiteral
5047         * src/mcs51/peeph.def: reenabled 132.e, added extra check to 132.x
5048
5049 2006-03-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5050
5051         * doc/sdccman.lyx: added paragraph "Use of SDCC in Education"
5052         * src/mcs51/peeph.def: disabled rule 132.e fixing bug #1453093
5053
5054 2006-03-24 Maarten Brock <sourceforge.brock AT dse.nl>
5055
5056         * src/z80/gen.c (genFunction, genEndFunction): fixed bug 1160666,
5057           implemented patch 1120823 Thanks to Willy De la Court (normal
5058           interrupts need an interrupt number now if they are made critical),
5059           and enabled nesting of critical functions though not for gbz80
5060           (genCritical, genEndCritical): added functions
5061           (genZ80Code): added cases for CRITICAL and ENDCRITICAL
5062         * src/z80/mappings.i: added "ei" to all mappings
5063
5064 2006-03-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5065
5066         * sim/ucsim/cmd.src/newcmdcl.h: applied patch fixing GCC 4.1 build
5067         submitted by the Debian SDCC maintainer Aurelien Jarno:
5068         "Credits goes to Martin Michlmayr, who rebuilt the whole Debian
5069         archive with gcc 4.1 on mips and wrote the patch"
5070
5071 2006-03-16 Raphael Neider <rneider AT web.de>
5072
5073         * src/pic16/genarith.c (genAddLit): simplified and fixed case where
5074           the left operand is shorter than the result (c* = lit-c* + int),
5075           fixes bug #1450796
5076         * src/pic16/gen.c (genRightShift): check IS_SYMOP before accessing
5077           OP_SYMBOL
5078
5079 2006-03-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
5080
5081         * src/.version: increased version number to 2.5.5
5082         * src/SDCCmain.c (linkEdit): do not test for PIC16 target since, PIC16
5083         linking is done manually in pic16 port's _linkEdit,
5084         * src/SDCCsymt.c (compStructSize): for target PIC16 and shell variable
5085         PIC16_PACKED_BITFIELDS, compact bitfield structures as much as possible,
5086         * src/pic16/gen.c (aopForSym): when direct register name is WREG then
5087         allocate asmop as AOP_ACC,
5088         (aopForRemat): added parameter 'bool result' in function declaration,
5089         (pic16_aopGet): return AOP_ACC when accessing WREG,
5090         (pic16_popGetTempReg): minor modification,
5091         (pic16_popRegFromIdx): first try with 'pic16_regWithIdx' then with
5092         'pic16_allocWithIdx',
5093         (genPcall): removed ftype, usage of OP_SYM_TYPE asserted error when
5094         calling function in absolute addresses,
5095         (genAssign): take into account AOP_ACC asmop,
5096         * src/pic16/pcode.c (pic16_newpCodeOpReg): minor modifications,
5097         * src/pic16/pcoderegs.c: some debug functions and lines added,
5098         * src/pic16/ralloc.c (decodeRegType): added but commented out,
5099         * (pic16_typeRegWithIdx): search 'pic16_dynInternalRegs' for given
5100         register too,
5101         * (pic16_findFreeReg, pic16_findFreeRegNext): allocate new register via
5102         call to allocReg, not by manually allocating a new one,
5103         (pic16_assignRegisters): now before going through the register
5104         allocating functions mark all registers as free. This eliminates some
5105         side effects resulting from peephole parser done earlier in the backbone
5106
5107 2006-03-13 Maarten Brock <sourceforge.brock AT dse.nl>
5108
5109         * src/SDCCicode.c (geniCodeLogic),
5110         * src/SDCCast.c (decorateType): applied patch by Bernhard for rfe 1422617
5111
5112 2006-03-10 Maarten Brock <sourceforge.brock AT dse.nl>
5113
5114         * src/mcs51/gen.c (sameReg): new, checks if two aop regs are the same,
5115           (genSend): bugfix, do not allocate and free twice,
5116           (shiftRLong): handle partially overlapping aops
5117         * support/regression/tests/bitopcse.c: fixed warning redefined idata
5118
5119 2006-03-08 Borut Razem <borut.razem AT siol.net>
5120
5121         * support/regression/fwk/include/testfwk.h: added defines for xdata, idata
5122           for pic16
5123
5124 2006-03-08 Maarten Brock <sourceforge.brock AT dse.nl>
5125
5126         * support/regression/tests/bug1409955.c: new, added
5127         * src/mcs51/gen.h: changed asmop.freed:1 to asmop.allocated for tracking
5128         * src/mcs51/gen.c (newAsmop): set asmop.allocated to 1,
5129           (aopForSym, aopOp): increment asmop.allocated if reused,
5130           (freeAsmop): decrement asmop.allocated and check for zero instead of
5131           using asmop.freed,
5132           (freeForBranchAsmop): use asmop.allocated instead of asmop.freed,
5133           (genNot, genCpl, genUminus, genMinus, genMult, genDiv, genMod, genCmpGt,
5134            genCmpLt, genAndOp, genOrOp, genAnd, genOr, genXor, genRRC, genRLC,
5135            genGetHbit, genGetAbit, genGetByte, genGetWord, genSwap,
5136            genLeftShiftLiteral, genLeftShift, genRightShiftLiteral,
5137            genSignedRightShift, genRightShift, genDataPointerGet,
5138            genPagedPointerGet, genFarPointerGet, genCodePointerGet,
5139            genGenPointerGet, genDataPointerSet, genAssign, genCast): free asmop's
5140             in reverse order from allocation,
5141           (genPlus, genCmpEq): free asmop's in reverse order from allocation and
5142             added swappedLR to keep track
5143         * support/regression/fwk/include/testfwk.h: added defines for xdata, idata,
5144           pdata & code for GCC, z80, gbz80 & hc08
5145         * support/regression/tests/zeropad.c: moved defines to testfwk.h
5146
5147 2006-03-08 Raphael Neider <rneider AT web.de>
5148
5149         * src/pic16/main.c (_hasNativeMulFor): fixed bug #1444425
5150
5151 2006-03-07 Maarten Brock <sourceforge.brock AT dse.nl>
5152
5153         * device/include/mcs51/c8051f410.h: new SiLabs mcu
5154         * src/ds390/peeph.def: disabled 186.d and 227.a as fix for #1434401
5155         * support/regression/tests/array.c: added parenthesis, made arrays unsigned
5156
5157 2006-03-06 Borut Razem <borut.razem AT siol.net>
5158
5159         * support/regression/ports/pic16/spec.mk: link with libm18f.lib,
5160           made the linker quiet
5161
5162 2006-03-06 Vangelis Rokas <vrokas AT users.sourceforge.net>
5163
5164         * src/pic16/gen.c (genPcall): fixed bug #1443644
5165         * src/pic16/device.h (struct pic16_options_t): added 'int CATregs' flag
5166         which dumps before the function entry point a data byte which represents
5167         the number of the local variables used by the specified function, added
5168         'xinst' for initial support for Extended Instruction Support,
5169         * src/pic16/gen.c (aopForSym, pic16_aopGet): beautifications,
5170         (pic16_testStackOverflow): do not prefix GSTACK_TEST_NAME with
5171         port->fun_prefix anymore (may change later),
5172         (genFunction, genEndFunction): do not store/restore local registers for
5173         _main (this should take care the --main-return command line option in
5174         the future),
5175         (genOr): removed some legacy pic-port instructions,
5176         * src/pic16/genarith.c (genAddLit): re-enabled old code because
5177         performing operations with SFR's causes data to be written more than
5178         once to each SFR. Perhaps SFRs should be handled in special cases...
5179         * src/pic16/glue.c: macros BIG_ENDIAN and BYTE_IN_LONG are moved to
5180         pcode.h
5181         * src/pic16/main.c (_process_pragma): stack bound checking did not take
5182         into account for stack starting position,
5183         (struct OPTIONS pic16_optionsTable): added command line argument
5184         --extended or -y for Extended Instruction Support,
5185         * src/pic16/ralloc.c (pic16_decodeOp): added case for FUNCTION,
5186         (deassignLRs): *** perhaps the most important change, old 'for' code
5187         (commented out for reference), didn't account for some registers which
5188         were left marked 'not free' after a pointer operation. The change
5189         reduces register usage a lot in some cases
5190
5191 2006-03-04 Borut Razem <borut.razem AT siol.net>
5192
5193         * support/regression/ports/hc08/spec.mk: remove *.asm in traget
5194           _clean
5195         * support/regression/tests/bug-524697.c: decreased array size for
5196           mcs51 to fit into the internal RAM
5197         * support/regression/Makefile.in: a little bit more verbose
5198
5199 2006-03-03 Borut Razem <borut.razem AT siol.net>
5200
5201         * support/regression/fwk/lib/testfwk.c,
5202           support/regression/fwk/include/testfwk.h: introduced function
5203           _prints(), nonrecursive _printn(), call _initEmu() from main()
5204         * support/regression/ports/gbz80/support.asm,
5205           support/regression/ports/ucz80/support.asm,
5206           support/regression/ports/z80/support.asm,
5207           support/regression/ports/ds390/support.c,
5208           support/regression/ports/hc08/support.c,
5209           support/regression/ports/host/support.c,
5210           support/regression/ports/mcs51/support.c,
5211           support/regression/ports/xa51/support.c: added empty _initEmu()
5212           function
5213         * support/regression/ports/pic16/gpsim.cmd,
5214           support/regression/ports/pic16/spec.mk,
5215           support/regression/ports/pic16/support.c,
5216           support/regression/Makefile.in: added pic16 regression test
5217
5218 2006-03-01 Raphael Neider <rneider AT web.de>
5219
5220         * src/pic16/gen.c (genPcall,pic16_derefPtr,genGenPointerGet,
5221           genConstPointerGet): use safe way of generating MOVFF to cover
5222             literals as well as registers, fixes bug #1440527
5223         * src/pic16/glue.c (pic16_printIvalBitFields): prevent NULL pointer
5224             dereference
5225           (pic16_printIvalUnion,pic16_isUnion): NEW, handle initialized unions
5226             more correctly, fixes bug #1232186
5227           (pic16_printIval): use pic16_printIvalUnion() for initialized unions
5228         * src/pic16/main.c (_pic16_linkEdit): reorder linker arguments to make
5229             gplink guess the correct processor in more cases, applied patch
5230             from Till Riedel attached to and fixing bug #1436552
5231
5232 2006-02-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5233
5234         * support/regression/tests/array.c: added, contains check for #1434401
5235         * src/mcs51/peeph.def: disabled 186.d as temporary fix for #1434401
5236
5237 2006-02-16 Maarten Brock <sourceforge.brock AT dse.nl>
5238
5239         * device/include/mcs51/at89s8253.h: new, thanks to Krzysztof Polomka
5240         * device/include/mcs51/at89S8252.h: fixed, thanks to Krzysztof Polomka
5241         * device/include/mcs51/c8051f326.h,
5242         * device/include/mcs51/c8051f340.h: new SiLabs mcu's
5243         * device/include/mcs51/c8051f000.h,
5244         * device/include/mcs51/c8051f018.h,
5245         * device/include/mcs51/c8051f020.h: used () with __at, renamed IDLE,STOP to
5246           PCON_IDLE,PCON_STOP and added sfr16 definitions
5247
5248 2006-02-14 Maarten Brock <sourceforge.brock AT dse.nl>
5249
5250         * src/mcs51/gen.c (genPlus, genMinus, genMult, genGetAbit, genGetByte,
5251           genGetWord): fixed bug 1409955
5252
5253 2006-02-14 Maarten Brock <sourceforge.brock AT dse.nl>
5254
5255         * device/include/hc08/mc68hc908gp32.h,
5256         * device/include/hc08/mc68hc908jb8.h: removed AWUL, added PTA6 & PTA7
5257
5258 2006-02-13 Maarten Brock <sourceforge.brock AT dse.nl>
5259
5260         * src/SDCCast.c (constExprValue): return NULL if not a value
5261         * src/SDCCglue.c (printIvalArray): fixed bug 1225568
5262         * src/hc08/gen.c(genUnpackBits, genUnpackBitsImmed): fixed bug 1019480
5263         * support/regression/tests/bitfields.c: enabled signed bitfield for all
5264
5265 2006-02-13 Borut Razem <borut.razem AT siol.net>
5266
5267         * src/regression/ptrarg.c: added, fails due to bug #1430967
5268         * src/regression/Makefile: ptrarg.c added, ...
5269
5270 2006-02-12 Maarten Brock <sourceforge.brock AT dse.nl>
5271
5272         * src/z80/gen.c (genUnpackBits): fixed bug 1019480
5273         * support/regression/tests/bitfields.c: enabled signed bitfield for z80
5274
5275 2006-02-11 Borut Razem <borut.razem AT siol.net>
5276
5277         * src/SDCCmain.c: Added "sdcc: Calling linker..." if --verbose,
5278           print "Processor: xxx" message to stdout only if --verbose
5279
5280 2006-02-11 Maarten Brock <sourceforge.brock AT dse.nl>
5281
5282         * src/SDCCglue.c (printIvalStruct): fixed bug 1426356 union initializer
5283         * support/regression/tests/bug1426356.c: added
5284         * support/regression/tests/bitfields.c: removed 2 tests
5285
5286 2006-02-10 Maarten Brock <sourceforge.brock AT dse.nl>
5287
5288         * device/include/mcs51/at89c51snd1c.h: updated comments, see patch 1428901
5289         * device/include/mcs51/c8051f330.h,
5290         * device/include/mcs51/c8051f350.h: used () with __at, renamed IDLE,STOP to
5291           PCON_IDLE,PCON_STOP and added sfr16 definitions
5292         * device/lib/_divsint.c,
5293         * device/lib/_divuint.c,
5294         * device/lib/_divulong.c,
5295         * device/lib/_divulong.c: renamed a,b to x,y to avoid confusion, fixed
5296           register bank bug for small stackauto
5297
5298 2006-02-09 Maarten Brock <sourceforge.brock AT dse.nl>
5299
5300         * support/regression/fwk/lib/timeout.c: include <stdlib.h> for exit()
5301
5302 2006-02-08 Maarten Brock <sourceforge.brock AT dse.nl>
5303
5304         * support/regression/ports/mcs51-xstack-auto/spec.mk: forgot -I(...)/mcs51
5305         * all.dsp: corrected several bin paths
5306         * device/include/mcs51/c8051f120.h,
5307         * device/include/mcs51/c8051f300.h,
5308         * device/include/mcs51/c8051f310.h: used () with __at and renamed IDLE,STOP
5309           to PCON_IDLE,PCON_STOP
5310         * device/include/mcs51/c8051f320.h: see above, also added sfr16 definitions
5311         * device/lib/printf_large.c (output_float): fixed bug 1388703
5312         * support/regression/tests/bug1057979.c: added test for bug 1388703
5313
5314 2006-02-08 Raphael Neider <rneider AT web.de>
5315
5316         * src/pic/pcode.c (pciTRIS): fixed typo,
5317           (BuildFlow,LinkFlow_pCode): added (disabled) debug output,
5318           (LinkFlow): fixed handling of flows that end in a call,
5319           (ReuseReg): perform safety check earlier
5320         * src/pic/pcoderegs.c (pCodeRegMapLiveRangesInFlow): fixed
5321             to work with flows at the beginning of a pBlock,
5322             fixes #1426557 (Symbol not previously defined),
5323           (pic14_ReMapLiveRanges): NEW, destroy and rebuild register
5324             usage information
5325           (RemoveUnusedRegisters): update register usage info
5326         * src/pic/ralloc.c (newReg): prevent duplicate registers from being
5327             created, reuse existing ones instead
5328         * src/pic/gen.c (genPcall): fixed #1424719
5329
5330 2006-02-07 Bernhard Held <bernhard AT bernhardheld.de>
5331
5332         * link/z80/lkmain.c,
5333         * link/z80/lklex.c,
5334         * link/z80/lkdata.c,
5335         * link/z80/aslink.h: fixed build on current cygwin:
5336         replaced getline() by lk_getline()
5337
5338 2006-02-01 Borut Razem <borut.razem AT siol.net>
5339
5340         * src/regression/add.c, src/regression/add2.c, src/regression/add3.c,
5341           src/regression/add4.c, src/regression/and1.c, src/regression/and2.c,
5342           src/regression/arrays.c, src/regression/b.c, src/regression/bank1.c,
5343           src/regression/bool1.c, src/regression/bool2.c,
5344           src/regression/bool3.c, src/regression/call1.c,
5345           src/regression/compare.c, src/regression/compare10.c,
5346           src/regression/compare2.c, src/regression/compare3.c,
5347           src/regression/compare4.c, src/regression/compare5.c,
5348           src/regression/compare6.c, src/regression/compare7.c,
5349           src/regression/compare8.c, src/regression/compare9.c,
5350           src/regression/configword.c, src/regression/for.c,
5351           src/regression/inline.c, src/regression/mult1.c,
5352           src/regression/nestfor.c, src/regression/or1.c,
5353           src/regression/pointer1.c, src/regression/ptrfunc.c,
5354           src/regression/rotate1.c, src/regression/rotate2.c,
5355           src/regression/rotate3.c, src/regression/rotate4.c,
5356           src/regression/rotate5.c, src/regression/rotate6.c,
5357           src/regression/rotate7.c, src/regression/string1.c,
5358           src/regression/struct1.c, src/regression/sub.c,
5359           src/regression/sub2.c, src/regression/switch1.c,
5360           src/regression/while.c, src/regression/xor.c,
5361           src/regression/create_stc, src/regression/simulate,
5362           src/regression/rt.sh, src/regression/Makefile: reenabled Scott's PIC14
5363           regression tests
5364         * src/regression/gpsim_assert.h: added
5365
5366 2006-01-28 Bernhard Held <bernhard AT bernhardheld.de>
5367
5368         * src/ds390/gen.c (unsaveRegisters): fixed literal function pointer
5369         ((void (code *) (void)) 0) ();
5370         * as/hc08/aslex.c,
5371         * as/hc08/aslink.h,
5372         * as/hc08/asm.h,
5373         * as/hc08/asmain.c,
5374         * as/hc08/lkdata.c,
5375         * as/hc08/lklex.c,
5376         * as/hc08/lkmain.c,
5377         * as/mcs51/aslex.c,
5378         * as/mcs51/aslink.h,
5379         * as/mcs51/asm.h,
5380         * as/mcs51/asmain.c,
5381         * as/mcs51/lkdata.c,
5382         * as/mcs51/lklex.c,
5383         * as/mcs51/lkmain.c,
5384         * as/z80/aslex.c,
5385         * as/z80/asm.h,
5386         * as/z80/asmain.c: fixed build on current cygwin:
5387         replaced getline() by as_getline()
5388
5389 2006-01-27 Bernhard Held <bernhard AT bernhardheld.de>
5390
5391         * src/SDCC.y: fixed bug #716242, exchanged pointer and function
5392         declarator in the symbol chain
5393         * src/SDCCsymt.h,
5394         * src/SDCCsymt.c (processFuncPtrArgs): added, removes "(void)"
5395         parameter list for function pointers
5396         * src/SDCCast.c (decorateType): added call of processFuncPtrArgs()
5397         * support/regression/tests/bug-716242.c: added
5398
5399 2006-01-20 Bernhard Held <bernhard AT bernhardheld.de>
5400
5401         * src/SDCCicode.c (geniCodeAdd, geniCodeArray): use char for array
5402         offset if possible
5403         * src/SDCCast.c (getLeftResultType): 255 fits in char, not 256
5404
5405 2006-01-18 Bernhard Held <bernhard AT bernhardheld.de>
5406
5407         * src/SDCCast.c (backPatchLabels): fixed bug #1408066: made it
5408         inifinitely recurseable, added static
5409         * support/regression/tests/bug-1408066.c: added
5410
5411 2006-01-17 Bernhard Held <bernhard AT bernhardheld.de>
5412
5413         * src/SDCCicode.h,
5414         * src/SDCCicode.c (newiTempPreheaderLabel, newiTempLoopHeaderLabel):
5415         renamed, added possibility to create "postLoopLbl"-labels
5416         * src/SDCCBBlock.c (iCodeBreakDown): renamed newiTempPreheaderLabel to
5417         newiTempLoopHeaderLabel
5418         * src/SDCCloop.c (newInduction, newRegion, backEdges, insertIntoLoop,
5419         isNotInBlocks, addToExitsMarkDepth, createLoop, dominatedBy,
5420         addDefInExprs, assignmentsToSym, isOperandInvariant, pointerAssigned,
5421         hasNonPtrUse, loopInvariants, addressTaken, findInduction,
5422         findDefInRegion, mergeRegions, ifMerged, mergeInnerLoops): made static,
5423         (pinduction, pregion, hasIncomingDefs, findLoopEndSeq): disabled,
5424         (basicInduction): fixed bug #136564, made static,
5425         (loopInduction): changed parameter of basicInduction, made static,
5426         (addPostLoopBlock): added
5427         * src/SDCCloop.h: removed backEdges, pregion, pinduction,
5428         loopOptimizations, addressTaken, findDefInRegion, hasIncomingDefs,
5429         findLoopEndSeq
5430         * support/regression/tests/bug-136564.c: added
5431         * support/regression/ports/mcs51-xstack-auto/spec.mk: added
5432         --std-sdcc99 to LIBSDCCFLAGS
5433
5434 2006-01-16 Bernhard Held <bernhard AT bernhardheld.de>
5435
5436         * src/SDCCicode.c (geniCodeIfx): fix bug 1406131: always false
5437         while loop
5438         * support/regression/tests/bug-1406131.c: added
5439
5440 2005-12-31 Bernhard Held <bernhard AT bernhardheld.de>
5441
5442         * src/SDCCast.c (decorateType): fix promotion of unary minus
5443         * src/SDCCsymt.c (computeType): beautified
5444         * src/SDCCval.c (cheapestVal): beautified, old non-Ansi version removed,
5445         (valUnaryPM, valComplement): fix sign and promotion,
5446         (valNot): ANSI: result type is int (SDCC: unsigned char)
5447         * support/regression/tests/uminus.c: speedup by removing superflous
5448         test case 'int'
5449         * support/regression/tests/onebyte.c: added promotion and signedness
5450         tests for unary minus
5451         * support/regressions/tests/bug-477927.c: disable warning about
5452         uninitialized variables
5453         * support/regression/tests/not.c: added
5454
5455 2005-12-28 Bernhard Held <bernhard AT bernhardheld.de>
5456
5457         * device/lib/Makefile.in: added --std-sdcc99 to CFLAGS
5458         * src/mcs51/gen.c (gen51Code): show final register usage after
5459         fillGaps in asm with --i-code-in-asm
5460         * src/SDCClrange.c (sequenceiCode, setLiveFrom, setLiveTo,
5461         markLiveRanges, markAlive, findNextUseSym, findNextUse, unvisitBlocks,
5462         incUsed, rliveClear, adjustIChain): made static,
5463         (setFromRange): excluded because it's unused,
5464         (findPrevUseSym, markWholeLoop): added,
5465         (findPrevUse): rewritten; fixes bug 895992; now a complete search
5466         through all branches of predecessors enables sdcc to emit the warning
5467         W_LOCAL_NOINIT, marking of outermost loop was incomplete,
5468         (rlivePoint): made static, added parameter emitWarnings which is only
5469         true during the first run out of two,
5470         (findRecursiveSucc, findRecursivePred): removed,
5471         (computeLiveRanges): made static, added parameter emitWarnings,
5472         (dumpIcRlive): added for debugging only
5473         * src/SDCClrange.h: added boolean parameter to computeLiveRanges(),
5474         removed prototype of setFromRange()
5475         * src/SDCCopt.c (eBBlockFromiCode): added new parameter emitWarnings
5476         in call of computeLiveRanges()
5477         * support/regression/tests/bug-895992.c: added
5478         * support/regression/tests/bug-971834.c: added
5479         * support/valdiag/tests/bug-895992.c: added
5480         * support/valdiag/tests/bug-971834.c: added
5481
5482 2005-12-18 Raphael Neider <rneider AT web.de>
5483
5484         * src/pic16/gen.c: added IS_DIRECT macro for "direct" operands,
5485           (genUnpackBits): improved code for direct operands,
5486           (genPackBits): improved code for literal assignment to bitfields
5487             and for direct destination operands (no FSR indirection),
5488             prevented redundant AND, fixes #1362800,
5489           (AccLsh): added parameter to disable masking of the result
5490         * src/pic16/pcode.c (pic16_safepCodeUnlink): fixed to work with
5491           skip instructions with side-effects (like incfsz),
5492           (pic16_pCodeIsAlive): suppress verbose output unless pcode_verbose,
5493         * src/pic16/pcoderegs.c (RemoveRegsFromSet): removed annoying warning
5494         * device/lib/pic16/Makefile.common.in: added --asm=@GPASM@ to CC,
5495           fixes #1375263
5496
5497 2005-12-11 Bernhard Held <bernhard AT bernhardheld.de>
5498
5499         * src/SDCCicode.c (geniCodeAssign): fixed bug 11369874, don't use
5500         volatile variables as spill location
5501
5502 2005-12-10 Bernhard Held <bernhard AT bernhardheld.de>
5503
5504         * src/SDCCcse.c (findCheaperOp): fixed bug 1376320, copy signedness to
5505         replacing literals
5506         * support/regression/tests/bug-1376320.c: added
5507
5508 2005-12-08 Raphael Neider <rneider AT web.de>
5509
5510         * src/pic/device.c: renamed is_shared to pic14_is_shared
5511         * src/pic/gen.c (genIfx): re-enabled handling of sbits
5512         * src/pic/glue.c (emitSymbolToFile): added workaround for sbits,
5513           (is_valid_identifier): added for above workaround
5514
5515 2005-12-07 Maarten Brock <sourceforge.brock AT dse.nl>
5516
5517         * device/lib/Makefile.in: fixed to enable port-specific-objects
5518         * device/lib/ds390/i2c390.c (BitOutI2C): optimized by making bout unsigned
5519           char, thanks Hubert Sack
5520         * doc/sdccman.lyx: documented --xstack-loc,
5521           elaborated a bit more on interrupts and pitfalls,
5522           removed "setjmp/longjmp unsupported",
5523           documented some unsupported C99 features
5524         * src/SDCCmain.c (linkEdit): adapted default lib path for --stack-auto
5525         * src/SDCCpeeph.c (readRules): inserted patch 1367130 for finding missing
5526           if, thanks Hubert Sack
5527         * src/mcs51/gen.c (genEndFunction): enabled "pop psw" for regbank 0 isr
5528         * support/regression/Makefile.in: test-mcs51-stack-auto no longer needs to
5529           make make_library
5530         * support/regression/get_ticks.py: new, get cpu cycles and code size, so
5531           regression tests can report resource usage (rfe 700441)
5532         * support/regression/collate-results.py: report resource usage
5533         * support/regression/ports/ds390/spec.mk,
5534         * support/regression/ports/hc08/spec.mk,
5535         * support/regression/ports/mcs51/spec.mk,
5536         * support/regression/ports/ucz80/spec.mk: run sim output through get_ticks
5537         * support/regression/ports/ds390/uCsim.cmd,
5538         * support/regression/ports/hc08/uCsim.cmd,
5539         * support/regression/ports/mcs51/uCsim.cmd,
5540         * support/regression/ports/ucz80/uCsim.cmd: inserted "state" to report time
5541         * support/regression/ports/mcs51-stack-auto/spec.mk: no need to build the
5542           library, use the default one
5543         * support/regression/ports/mcs51-xstack-auto/spec.mk: inserted rules for
5544           building the library
5545
5546 2005-12-06 Maarten Brock <sourceforge.brock AT dse.nl>
5547
5548         * config.dsp: added dependency on .version and configure_vc.awk
5549         * device/include/setjmp.h: updated for --stack-auto and --xstack
5550         * device/include/mcs51/at89c51snd1c.h: corrected line endings
5551         * device/include/mcs51/XC866.h: added, thanks Llewellyn van Zyl
5552         * device/lib/_setjmp.c: updated for --stack-auto and --xstack
5553         * device/lib/libsdcc.lib: added _setjmp
5554         * src/SDCCast.c (createIvalCharPtr): fixed warnings,
5555           (decorateType): fixed bug 1372851,
5556           (optimizeGetHbit): fixed warning
5557         * src/SDCCglue.c (printIvalChar, printIvalArray): adapted for flexible
5558           array initialisation
5559         * support/regression/tests/bug1057979.c: added test for bug 1358192
5560         * support/regression/tests/setjmp.c: added, test for setjmp/longjmp
5561
5562 2005-12-03 Borut Razem <borut.razem AT siol.net>
5563
5564         * support/scripts/sdcc.nsi: added /SOLID option to "SetCompressor lzma"
5565           command since the NSIS was upgraded to version 2.11 on CF x86-linux2
5566
5567 2005-11-29 Bernhard Held <bernhard AT bernhardheld.de>
5568
5569         * src/SDCCast.c (createIvalStruct, createIvalArray, createIvalPtr,
5570         createIval): implement symbol independant "flexible array member",
5571         (createIvalCharPtr): implemented flexible array initialisation with a
5572         string
5573         * src/SDCCsymt.c (copyStruct): removed,
5574         (getSize): fixed misleading comment,
5575         (getAllocSize): removed, the additional allocation size is now in
5576         sym->flexArrayLength,
5577         (checkStructFlexArray): new, syntax checks for flexible array members,
5578         (compStructSize): added syntax checks for "flexible array members"
5579         (copyStruct): removed,
5580         (copyLinkChain): removed inefficient fix for bug 770487
5581         * src/SDCCglue.c (emitRegularMap): getAllocSize has been removed
5582         * src/SDCCsymt.h: added structdef.b_flexArrayMember and
5583         symbol->flexArrayLength
5584         * src/SDCCerr.c,
5585         * src/SDCCerr.h: added W_INVALID_FLEXARRAY, W_C89_NO_FLEXARRAY,
5586         E_FLEXARRAY_NOTATEND and E_FLEXARRAY_INEMPTYSTRCT
5587         * support/regression/tests/structflexarray.c: added
5588         * support/valdiag/tests/structflexiblearray.c: added
5589
5590 2005-11-29 Bernhard Held <bernhard AT bernhardheld.de>
5591
5592         * src/SDCCast.c (decorateType): fixed bug 1368489
5593         * support/Util/SDCCerr.c,
5594         * support/Util/SDCCerr.h: added warning W_CMP_SU_CHAR
5595
5596 2005-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5597
5598         * device/include/mcs51/at89c51snd1c.h: added file submitted by
5599           Weston T. Schmidt <schmidtw AT users.sourceforge.net>, patch #1368001
5600
5601 2005-11-27 Borut Razem <borut.razem AT siol.net>
5602
5603         * support/cpp2/cppinit.c, support/cpp2/cpplib.h, support/cpp2/mkdeps.c,
5604           support/cpp2/mkdeps.h: added command line option
5605           -obj-ext=<extension> to SDCPP to define object file externion, used
5606           for generation of make dependencies (-M)
5607         * src/SDCCmain.c: pass -obj-ext=<extension> to SDCPP
5608
5609 2005-11-26 Borut Razem <borut.razem AT siol.net>
5610
5611         * support/scripts/sdcc.nsi: added small-stack-auto libraries,
5612           added missing device/lib/mcs51/crt*.asm, pic and pic16 sources,
5613           added pic and pic16 libraries
5614
5615 2005-11-26 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5616
5617         * device/include/float.h: Corrected typo in prototype of __fsgt
5618
5619 2005-11-25 Borut Razem <borut.razem AT siol.net>
5620
5621         * sdcc/device/lib/Makefile.in, sdcc/device/lib/incl.mk:
5622           added creation of model-mcs51-stack-auto libraries
5623
5624 2005-11-24 Bernhard Held <bernhard AT bernhardheld.de>
5625
5626         * src/SDCCsymt.c (copyLinkChain): fixed bug 770487, copy structdef
5627         and fields-list too
5628         * src/SDCCast.c (createIvalArray): removed obsolete comment
5629
5630 2005-11-24 Borut Razem <borut.razem AT siol.net>
5631
5632         * sdcc/device/lib/Makefile.in: remove all unnecessary files, 2nd try...,
5633           added missing device/lib/mcs51/crt*.asm sources
5634
5635 2005-11-23 Bernhard Held <bernhard AT bernhardheld.de>
5636
5637         * src/SDCCast.c (createIvalCharPtr): fixed bug 1348271
5638
5639 2005-11-22 Maarten Brock <sourceforge.brock AT dse.nl>
5640
5641         * device/lib/_fs2schar.c,
5642         * device/lib/_fs2sint.c,
5643         * device/lib/_fs2slong.c: optimized inline asm
5644
5645 2005-11-21 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5646
5647         * device/lib/_fs2slong.c, device/lib/_fs2sint.c, device/lib/_fs2char.c:
5648           Better handling of floats between -1.0 and 0.0.
5649
5650 2005-11-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5651
5652         * src/mcs51/peeph.def: added missing "if"s as noted by Hubert Sack.
5653           (the missing "if"s prohibited removal of redundant labels)
5654
5655 2005-11-19 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5656
5657         * device/lib/_fs2slong.c, device/lib/_fs2sint.c, device/lib/_fs2char.c:
5658           Properly convert floats between -1.0 and 0.0 to long, int, and char
5659           types (max integer value of negative floats tends to zero).
5660         * device/lib/modff.c, device/lib/ceilf.c, device/lib/floorf.c:
5661           Removed changes made so to work properly with floats between
5662           -1.0 and 0.0, as the problem is fixed in _fs2slong.c, _fs2sint.c,
5663           and _fs2char.c
5664
5665 2005-11-18 Bernhard Held <bernhard AT bernhardheld.de>
5666
5667         * src/SDCCcse.c (ReplaceOpWithCheaperOp): minor fix for debugging only
5668         * src/mcs51/gen.c (genUnpackBits): better code and a fix,
5669         (genCast) cosmetic change
5670         * src/ds390/gen.c (genUnpackBits, ): ported from mcs51
5671         * src/ds390/ralloc.c (packRegsForAssign): ported fix for bitfields
5672         from mcs51
5673         * support/regression/tests/bitfields (testSignedBitfields): added
5674
5675 2005-11-18 Borut Razem <borut.razem AT siol.net>
5676
5677         * sdcc/device/lib/Makefile.in: remove all unnecessary files
5678         * device/lib/pic/Makefile.rules, device/lib/pic16/Makefile.subdir:
5679           introduced SILENT option to make building of pic16 libraries less
5680
5681 2005-11-18 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5682
5683         * device/lib/modff.c, device/lib/ceilf.c, device/lib/floorf.c:
5684           Now they work properly with floats between -1.0 and 0.0
5685         * device/lib/printf_large.c: Removed temporary patch for bug 1358192
5686
5687 2005-11-18 Maarten Brock <sourceforge.brock AT dse.nl>
5688
5689         * src/SDCCicode.c (printOperand): added missing else
5690
5691 2005-11-18 Bernhard Held <bernhard AT bernhardheld.de>
5692
5693         * src/SDCCsymt.c (computeType): fixed bug 1358192: added missing else,
5694         reformatted for better readability
5695         * src/mcs51/gen.c (genUnpackBits): initial, incomplete support for
5696         signed bitfields
5697
5698 2005-11-17 Borut Razem <borut.razem AT siol.net>
5699
5700         * device/lib/pic16/Makefile.rules, device/lib/pic16/Makefile.subdir:
5701           introduced SILENT option to make building of pic16 libraries less
5702           verbose - used for nightly snapshot build
5703         * doc/sdccman.lyx: documented that SDCDB and ucSim are currently not
5704           available on Win32 platforms.
5705         * sdcc/device/lib/Makefile.in: added library sources for mcs51, small,
5706           medium, large, pic and pic16
5707
5708 2005-11-16 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5709
5710         * device/lib/printf_large.c: Temporary patch for bug 1358192:
5711           printf("%f"...) sets fraction to zero.
5712
5713 2005-11-16 Raphael Neider <rneider AT web.de>
5714
5715         * src/pic/pcode.c (LinkFlow): handle empty flows correctly,
5716           fixes #1357221
5717         * src/pic/gen.c (genIfx): implemented for CARRY bit
5718         * src/pic16/gen.c (genAssign,genCast): fixed assigning/casting
5719           to generic pointers, fixes #1357332,
5720           (pic16_movLit2f): NEW,
5721           (pic16_storeForReturn,genDataPointerSet): use pic16_movLit2f
5722
5723 2005-11-14 Maarten Brock <sourceforge.brock AT dse.nl>
5724
5725         * src/SDCCmain.c (parseCmdLine): fixed bug 1356800, thanks rsudjian
5726
5727 2005-11-11 Raphael Neider <rneider AT web.de>
5728
5729         * src/pic/gen.c: handle FPOINTERS like POINTERS everywhere
5730         * src/pic16/gen.c (pic16_derefPtr): now works for non-pointers as well,
5731           compute pointer's type from operand,
5732           (genUnpackBits,genPackBits): handle FPOINTERS correctly, re-indented,
5733           improved single bit reads, fixes bug #1353379
5734
5735 2005-11-09 Borut Razem <borut.razem AT siol.net>
5736
5737         * support/scripts/sdcc.nsi: added lib/pic to the package
5738
5739 2005-11-08 Maarten Brock <sourceforge.brock AT dse.nl>
5740
5741         * src/SDCCval.c (valUnaryPM): fixed bug 1350699
5742
5743 2005-11-06 Maarten Brock <sourceforge.brock AT dse.nl>
5744
5745         * support/regression/tests/bug1348008.c: added
5746         * src/mcs51/gen.c (saveRBank, unsaveRBank): fixed bug 1348008
5747         * support/regression/tests/bug1337835.c: updated comment
5748
5749 2005-11-06 Borut Razem <borut.razem AT siol.net>
5750
5751         * sim/ucsim/error.cc, sim/ucsim/errorcl.h,
5752           sim/ucsim/sim.src/stack.cc, sim/ucsim/sim.src/stackcl.h,
5753           sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
5754           sim/ucsim/sim.src/mem.cc, sim/ucsim/sim.src/memcl.h,
5755           sim/ucsim/cmd.src/set.cc, sim/ucsim/cmd.src/show.cc:
5756           dynamic construction of cl_error_class and derivates - 2.nd try
5757
5758 2005-11-05 Borut Razem <borut.razem AT siol.net>
5759
5760         * sim/ucsim/sim.src/error.cc: fixed uninitialized class member variable
5761           bug, which caused Bus Errors on sparc solaris
5762
5763 2005-11-04 Borut Razem <borut.razem AT siol.net>
5764
5765         * sim/ucsim/error.cc, sim/ucsim/errorcl.h,
5766           sim/ucsim/sim.src/stack.cc, sim/ucsim/sim.src/stackcl.h,
5767           sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
5768           sim/ucsim/sim.src/mem.cc, sim/ucsim/sim.src/memcl.h,
5769           sim/ucsim/cmd.src/cmdconf.cc: dynamic construction of cl_error_class
5770           and derivates to resolve the initialization problem on OSX
5771
5772 2005-11-02 Borut Razem <borut.razem AT siol.net>
5773
5774         * sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/newcmd.cc:
5775           corrected typo - #include <winsock2.h>
5776
5777 2005-11-02 Maarten Brock <sourceforge.brock AT dse.nl>
5778
5779         * src/asm.c (printILine): always close tmpFile, thanks Beau E. Cox,
5780           (_asxxxx_mapping): added org directive for future enhancements
5781
5782 2005-11-01 Borut Razem <borut.razem AT siol.net>
5783
5784         * sim/ucsim/app.cc, sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/newcmd.cc:
5785           enabled sockets on WIN32
5786         * sim/ucsim/cmd.src/newcmd.cc: fixed bug with uninitialized variables
5787
5788 2005-10-31 Borut Razem <borut.razem AT siol.net>
5789
5790         * support/regression/generate-cases.py: escape backslashes in {testcase}:
5791           WIN32 backslash path delimiters should be escaped when used in C strings
5792         * support/regression/tests/bitfields.c: exclude failing assertions for
5793           __CYGWIN32__ and __MINGW32__ hosts
5794
5795 2005-10-30 Borut Razem <borut.razem AT siol.net>
5796
5797         * src/SDCCutil.c: corrected double comparison typo
5798
5799 2005-10-30 Maarten Brock <sourceforge.brock AT dse.nl>
5800
5801         * device/lib/medium/Makefile: added for new memory model medium
5802         * device/include/asm/mcs51/features.h: updated for medium/pdata
5803         * device/include/mcs51/c8051f120.h: added sfr16/sfr32 definitions,
5804           added Multiply & Accumulate sbit's and MAC0_PAGE define
5805         * device/include/mcs51/c8051f300.h: added sfr16 definitions
5806         * device/include/mcs51/c8051f310.h: added sfr16 definitions
5807         * device/lib/_mullong.c: update for medium model
5808         * device/lib/incl.mk: added medium model
5809         * doc/sdccman.lyx: documented medium model
5810         * src/SDCCast.c (isBitAndPow2): simplified using updated powof2
5811         * src/SDCCicode.c (geniCodeMultiply, geniCodeDivision): use updated powof2
5812         * src/SDCCmain.c (optionsTable, linkEdit): enabled medium model
5813         * src/SDCCmem.c (allocIntoSeg): set iaccess for pdata symbols,
5814           (allocParms): set SCLS and OCLS to pdata for medium model
5815         * src/SDCCsymt.c (processFuncArgs): use default_local_map and set iaccess
5816           for pdata,
5817           (powof2): return <0 if not power of 2
5818         * src/avr/gen.c (genBitWise): use updated powof2
5819         * src/mcs51/gen.c (genMinusDec): use acc if necessary,
5820           (shiftR2Left2Result): small optimization in setup, save acc when storing,
5821           (shiftLLeftOrResult): use B if necessary
5822         * src/mcs51/main.c (_mcs51_finaliseOptions, mcs51_port): added medium model
5823         * src/mcs51/peeph.def: renamed 226 to 226.b, added 226.a
5824         * src/pic/main.c (_pic14_do_link): made void parameter list explicit
5825         * support/regression/Makefile.in: added test-mcs51-medium
5826         * support/regression/ports/mcs51-medium/spec.mk: added to test medium model
5827
5828 2005-10-28 Bernhard Held <bernhard AT bernhardheld.de>
5829
5830         * src/SDCCsymt.c (compStructSize): make bitfields without (un)signed
5831         specifier unsigned
5832         * device/lib/time.c (mktime): fixed bug 1334315
5833
5834 2005-10-28 Raphael Neider <rneider AT web.de>
5835
5836         * device/include/pic/p16f_common.inc: added common declarations
5837         * src/pic/ralloc.c (initStack): moved regs *r to block start for Alpha
5838
5839 2005-10-27 Maarten Brock <sourceforge.brock AT dse.nl>
5840
5841         * src/mcs51/gen.c (getTempRegs): return 0 if not enough registers found,
5842           (aopPutUsesAcc): added to predict accumulator use,
5843           (assignResultValue): save acc if necessary,
5844           (genMinusDec): store result if indirectly addressed,
5845           (genDivOneByte):  save acc if necessary,
5846           (movLeft2Result): bugfix if left already in acc,
5847           (genAnd, genOr, genXor, shiftL2Left2Result, shiftR2Left2Result): pay more
5848             attention to accumulator use (esp. pdata),
5849           (genReceive): receive pdata correctly
5850         * src/SDCCicode.c (isOperandInPagedSpace): added to detect pdata operands
5851         * src/SDCCicode.h: added isOperandInPagedSpace prototype
5852
5853 2005-10-27 Raphael Neider <rneider AT web.de>
5854
5855         * doc/sdccman.lyx: corrected version (should be 2.5.4 not 2.5.5)
5856
5857 2005-10-27 Raphael Neider <rneider AT web.de>
5858
5859         * .version: changed version to 2.5.4
5860         * doc/sdccman.lyx: changed version to 2.5.4, added some remarks to PIC14
5861         * device/lib/pic/libsdcc/{_mulint.c,_mullong.c}: use unsigned literals,
5862           (_divschar.c,divuchar.c,_mulchar.c,_modschar.c,_moduchar): NEW,
5863             arithmetics support routines
5864         * device/lib/pic/Makefile.rules: have assembler sources preprocessed
5865         * device/lib/Makefile.in: also create installdir for pic
5866
5867         * src/SDCCopt.c (cnvToFcall): mark support routines `extern' for
5868           pic14 port as well
5869         * src/pic/device.c (dump_sfr): rewritten to delegate register
5870           placement to the linker (use `extern sym' rather than sym EQU addr),
5871           (validAddress): fixed to check last specified address
5872         * src/pic/gen.c (aopForSym): added code to deal with array (useless?),
5873           (popGetLit): truncate literal value to 8 bit,
5874           (popGet): moved assert to more appropriate place
5875           (popGetExternal): create pCode operand from and mark the according
5876             symbol as being `extern'
5877           (popGetAddr): added sanity check on immediate's offset, provide
5878             GPOINTER tag on demand
5879           (aopPut): fixed for immediates,
5880           (mov2w_op): move operand's address or contents to WREG (depending on
5881             operand type), safer variant of mov2w,
5882           (movwf,call_libraryfunc): NEW, handy abbreviations,
5883           (get_argument_pcop,get_return_val_pcop,pass_argument,
5884           get_returnvalue): interface for accessing function parameters and
5885             return values,
5886           (assignResultValuei,genRet): use new parameter/return value interface
5887           (pic14_getDataSize): back to old version handling generic pointers,
5888           (pic14_toBoolean,genNot,genCpl,genCmpEq,genOrOp): heavily rewritten,
5889             provided implementation and/or fixed old one,
5890           (genMultOneByte,genDivOneByte,genModOneByte): implemented as library
5891             calls, removed legacy 8051 reference code
5892           (AccLsh,AccRsh): rewritten and fixed to deal with signed operands
5893           (loadSignToC): NEW, move the operands sign bit to CARRY,
5894           (genGenericShift): NEW, replaces genLeftShift, genRightShift and
5895             genRightShiftSigned, accepts negative shift counts,
5896           (setup_fsr): load FSR and adjust IRP (indirect memory access),
5897           (emitPtrByteGet,emitPtrByteSet): rewritten, now works with
5898             generic pointers, __data pointers and __code pointers,
5899           (genUnpackBits,genPackBits): rewritten to work with generic pointers
5900             and signed bitfields, limit bitfields to 8 bit,
5901           (genDataPointerGet): fixed number of bytes read,
5902           (genGenPointerGet,genConstPointerGet): fixed bitfield access,
5903           (genPointerGet,genPointerSet): fixed handling of __code pointers,
5904             pointers to constant data are no longer assumed to point to __code
5905             space, removed invalid pointer types,
5906           (bitpatternFromVal): retrieve the PICs representation of an integer
5907             or float literal,
5908           (genDataPointerSet): fixed assigning to po_immediate operands,
5909           (genGenPointerSet): implemented as library call,
5910           (genIfx): fixed incorrect condition,
5911           (genAddrOf): limit generic pointers' addresses to 2 bytes,
5912             provide GPOINTER tag according to destination's storage class,
5913           (genCast): added code to handle casting to generic pointers, added
5914             sign-/zero extension of the result
5915           (aop_isLitLike,op_isLitLike): fixed handling of immediates
5916         * src/pic/gen.h: added macros to access IRP bit in STATUS register
5917         * src/pic/genarith.c (genAddLit): use min(result's,left's) size, sign
5918           extend the result
5919         * src/pic/glue.c (is_shared_address,is_shared): check whether a given
5920           address/register resides in the shared banks
5921           (emitSymbolToFile): improved to handle global and `pinned' symbols,
5922             put all variables into separate sections (have the linker arrange
5923             them)
5924           (picglue): put init code and interrupt handlers in separate sections
5925         * src/pic/main.c: added port specific options table, modified to PORT
5926           structure to make GPOINTERs 3 byte, added pic14_options
5927           (_pic14_do_link): private linking routine (update paths to libraries,
5928             add libsdcc.lib by default)
5929         * src/pic/main.h: declare pic14_options
5930         * src/pic/pcode.c: fixed instructions i/o relations,
5931           (RegCond): reverted to correct version,
5932           (newpCodeOpLit): truncate literals to 8 bit,
5933           (genericPrint): added debug output,
5934           (getRegFromInstruction): fixed for various operand types, simplified
5935           (BuildFlow): fixed broken handling of isntructions with labels
5936           (LinkFlow): start at last instruction in flow (skip trailing comments),
5937             pass the flow on to the next instruction after CALL
5938           (pCodeReplace): NEW, replace a pCode and move meta data to the new one
5939           (insertPCodeInstruction): fixed inserting after a skip instruction,
5940           (DoBankSelect): fixed for labeled instructions
5941           (OptimizepBlock): honor --nopeep switch
5942           (AnalyzeFlow,ReuseReg): prevent crash on source files with no function
5943         * src/pic/pcodepeep.c (pCodePeepMatchRule): prevent NULL pointer accesses
5944         * src/pic/pcoderegs.c (regIsLocal): NEW, check visibility of a register
5945           (pCodeOptime2pCodes): allow disabling this optimization via
5946             --no-pcode-opt due seldomly occuring bugs, fixed some conditions
5947             but is still buggy), started implementation of a dataflow based
5948             pCode optimization (CSE + dead code elimination)
5949           (pCodeRegMapLiveRangesInFlow): removed bogus inCond
5950         * src/pic/ralloc.c (initStack): renamed stack registers to STK%d, the new
5951           names are independant of the stack location and therefore portable across
5952           devices
5953
5954 2005-10-27 Maarten Brock <sourceforge.brock AT dse.nl>
5955
5956         * src/mcs51/ralloc.c (bitType): added to detect bit variables,
5957           (selectSpil): fixed bug 1337835 by not spilling bit variables
5958         * support/regression/tests/bug1337835.c: added test for this bug
5959         * src/mcs51/peeph.def: restart after rule 3.c,
5960           addded rules 263.x to optimize loading constants
5961
5962 2005-10-26 Raphael Neider <rneider AT web.de>
5963
5964         * src/SDCCsymt.c (compStructSize): allow signed bitfields for PIC ports
5965         * src/pic16/gen.c (genUnpackBits): support signed bitfields,
5966           (genAssign): emit warning when casting literals to generic pointer
5967             type, also applies when taking the address of a fixed variable,
5968           (genCast): improved casting to generic pointers
5969         * src/pic16/glue.c (pic16emitStaticSeg): fixed(?) handling of fixed
5970           extern variables, added verbose error message
5971         * device/include/pic16/{string.h,errno.h}: added #pragma library c
5972
5973 2005-10-26 Bernhard Held <bernhard AT bernhardheld.de>
5974
5975         * src/mcs51/gen.c (genMinus): fixed bug 1270906: reverse subtraction,
5976         carry must be complemented too
5977         * src/mcs51/peeph.def: addded rule 262 to remove double cpl c, which
5978         could be emitted by genMinus
5979         * src/SDCCval.c (constVal): fixed bug 1305065
5980
5981 2005-10-25 Bernhard Held <bernhard AT bernhardheld.de>
5982
5983         * src/SDCCast.c (addCast): added promotion for bit variables
5984         (decorateType): emit W_COMPLEMENT before the problem vanishes behind
5985         promotion casts + optimisation
5986         (optimizeGetWord): fix warning 'i' might be used uninitialized
5987         * src/mcs51/gen.c (genCpl): removed W_COMPLEMENT
5988         * src/ds390/gen.c (genCpl): removed W_COMPLEMENT
5989
5990 2005-10-24 Bernhard Held <bernhard AT bernhardheld.de>
5991
5992         * src/SDCCicode.c (ast2iCode): reverted to 1.224 because of regression:
5993         all chars are promoted to int; promotion should be handled in SDCCast.c
5994
5995 2005-10-15 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5996
5997         * device/lib/_strcmp.c: Fixed bug 1326457
5998
5999 2005-10-11 Raphael Neider <rneider AT web.de>
6000
6001         * device/lib/pic16/libio/i2c.ignore: added 1320, fixes broken builds
6002         * device/lib/pic16/libdev/pic18f1320.c: added 1320's device library
6003
6004 2005-10-05 Maarten Brock <sourceforge.brock AT dse.nl>
6005
6006         * src/SDCC.y (AT): fixed bug with sfr32 addresses when built with GCC
6007         * support/regression/tests/sfr16.c: added test for the sfr32 bug
6008
6009 2005-10-04 Raphael Neider <rneider AT web.de>
6010
6011         * device/include/pic16/pic18fregs.h, src/pic16/devices.inc,
6012           device/lib/pic16/pics.all: added pic18f1320
6013         * src/pic16/pcode.c (mnem2key): fixed prototype's argument mismatch
6014
6015 2005-09-30 Raphael Neider <rneider AT web.de>
6016
6017         * src/pic16/device.c (Pics16[]): moved device descriptions to devices.inc
6018         * src/pic16/devices.inc: NEW, provides device descriptions
6019         * src/pic16/gen.c (genInline): fixed handling of ';'-comments
6020
6021 2005-09-26 Maarten Brock <sourceforge.brock AT dse.nl>
6022
6023         * src/SDCCicode.c (operandOperation): added GETABIT, GETBYTE, GETWORD and
6024           GETHBIT
6025
6026 2005-09-25 Maarten Brock <sourceforge.brock AT dse.nl>
6027
6028         * doc/sdccman.lyx: updated Highest Order Bit documentation,
6029           documented Any Order Bit, Higher Order Byte and Higher Order Word
6030         * src/SDCC.y: added tokens GETABIT, GETBYTE, GETWORD
6031         * src/SDCCast.c (optimizeGetHbit): updated to also accept bool=expr&(1<<n),
6032           (optimizeGetAbit): new, to get any bit, not only the high bit,
6033           (optimizeGetByte): new, to get a byte from a (long) int: expr>>(8*n),
6034           (optimizeGetWord): new, to get a word from a long int: expr>>(8*n),
6035           (isConformingBody): also check GETABIT, GETBYTE, GETWORD,
6036           (decorateType): '&': also try GETABIT, GETBYTE, GETWORD optimization,
6037             RIGHT_OP: also try GETBYTE, GETWORD optimization,
6038             GETABIT, GETBYTE, GETWORD: decorate them,
6039           (isShiftRightLitVal, isBitAndPowOf2): new helper functions,
6040           (ast_print): added GETABIT, GETBYTE, GETWORD
6041         * src/SDCCcse.c (isSignedOp): added GETABIT, GETBYTE, GETWORD
6042         * src/SDCCicode.c (codeTable): added GETABIT, GETBYTE, GETWORD,
6043           (geniCodeBinary): new generic binary icode,
6044           (ast2iCode): added GETABIT, GETBYTE, GETWORD
6045         * src/port.h: updated comment for PORT.hasExtBitOp
6046         * src/mcs51/gen.c (genGetAbit): new, to get any single bit,
6047           (genGetByte): new, to get a single byte,
6048           (genGetWord): new, to get a word from a long,
6049           (gen51Code): added GETABIT, GETBYTE, GETWORD
6050         * src/mcs51/main.c (hasExtBitOp): added GETABIT, GETBYTE, GETWORD
6051
6052 2005-09-23 Raphael Neider <rneider AT web.de>
6053
6054         * configure.in, configure: have device/lib/pic configured
6055         * device/lib/Makefile.in: added model-pic14
6056         * device/lib/clean.mk: added pic/ to clean rule
6057         * device/lib/pic: added rudimentary pic14 library providing support
6058           functions for multiplication/division/generic pointer access
6059         * src/SDCCopt.c (convilong): mark support functions as extern
6060           for pic14 port as well
6061         * src/pic/gen.c (genMult): added assertions,
6062           (genpic14Code): emit warning on unhandled iCodes
6063         * src/pic/main.c (_hasNativeMulFor): return true only for 8x8 bit
6064         * src/pic/pcode.c (pCodeOpCopy),
6065         * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): fixed handling of various
6066           pCodeOpReg-subtypes (PO_{STATUS,INTCON,PCL,PCLATH,PCLATU,BSR,
6067           SFR_REGISTER}), made safe for future extensions
6068         * src/pic16/pcode.c (pic16_safepCodeUnlink): allow for removal of
6069           instructions even if preceeded by SKIP instructions (also remove
6070           them); removed unused code
6071         * src/pic16/pcode.h: added arg2 to pCodeOpLit to match pCodeOpLit2,
6072           prevents leaving parts of the structure uninitialized after copying
6073
6074 2005-09-22 Maarten Brock <sourceforge.brock AT dse.nl>
6075
6076         * src/mcs51/gen.c (genMinus): fix for undetected bug introduced 3 months
6077           ago by me
6078         * support/regression/tests/addsub.c: added test for the bug
6079
6080 2005-09-21 Raphael Neider <rneider AT web.de>
6081
6082         * device/include/pic16/pic18f1220.h,
6083           device/lib/pic16/libdev/pic18f1220.c: added ECCPAS sfr and bitfield
6084         * device/lib/pic16/Makefile.rules: added missing opening paren
6085         * src/pic16/gen.c (pic16_genNot,pic16_genCpl): removed as these
6086           are provided in genutils.c,
6087           (genUminusFloat,genUminus,genCmpEq): added asserts on different
6088           operand/result sizes,
6089           (genCmp): assert on NULL pointers first, then check deref'ed values
6090         * src/pic16/genutils.c (pic16_genCpl): fixed for different operand/
6091           result size
6092
6093 2005-09-18 Raphael Neider <rneider AT web.de>
6094
6095         * src/pic16/gen.c (genFarPointerGet,genFarPointerSet): removed
6096           as these are now unused,
6097           (genPointerGet,genPointerSet): handle FPOINTERs like POINTERs
6098         * src/pic16/pcode.c (pic16_symIsSpecial): assume REG_TMPs to be
6099           local, avoids uninitialized pointer dereference on r->name
6100         * src/pic16/ralloc.c (newReg): fixed indentation
6101
6102 2005-09-13 Maarten Brock <sourceforge.brock AT dse.nl>
6103
6104         * src/SDCCval.c (constVal): fixed bug 730366
6105         * support/Util/SDCCerr.c,
6106         * support/Util/SDCCerr.h: added warning W_INVALID_INT_CONST
6107
6108 2005-09-10 Maarten Brock <sourceforge.brock AT dse.nl>
6109
6110         * as/mcs51/lkmem.c (summary2): fixed report for absolute areas (bug 1210220)
6111
6112 2005-09-09 Maarten Brock <sourceforge.brock AT dse.nl>
6113
6114         * src/mcs51/peeph.def (241.x): fixed bug when comparing generic pointers
6115
6116 2005-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
6117
6118         * as/hc08/lkaomf51.c (OutputName): made name unsigned char,
6119           (hex2dec): made hex_digit unsigned char, removed ascii dependance
6120         * as/mcs51/lkaomf51.c (OutputName): made name unsigned char,
6121           (hex2dec): made hex_digit unsigned char, removed ascii dependance
6122         * as/mcs51/lkarea.c (lnkarea2): sort absolute areas to the front
6123         * packihx/packihx.c (hexDigit): made c unsigned char
6124         * as/mcs51/lklibr.c (fndsym),
6125         * link/z80/lkgb.c (gb),
6126         * link/z80/lklibr.c (fndsym),
6127         * link/z80/lkrloc.c (relr),
6128         * sim/ucsim/libltdl/ltdl.c (load_deplibs, try_dlopen),
6129         * src/SDCC.lex (checkCurrFile, process_pragma),
6130         * src/SDCCglue.c (spacesToUnderscores),
6131         * src/SDCCmain.c (setParseWithComma, processFile),
6132         * src/asm.c (tvsprintf, printCLine),
6133         * src/avr/gen.c (emitcode, aopPut),
6134         * src/ds390/gen.c (emitcode),
6135         * src/hc08/gen.c (emitcode, emitinline),
6136         * src/mcs51/gen.c (emitcode, genInline),
6137         * src/pic/pcodepeep.c (cvt_extract_destination, cvt_extract_status,
6138           tokenizeLineNode),
6139         * src/pic/ralloc.c (debugLog),
6140         * src/pic16/pcodepeep.c (cvt_extract_destination, cvt_extract_status,
6141           tokenizeLineNode),
6142         * src/pic16/ralloc.c (debugLog),
6143         * src/z80/main.c (_process_pragma):
6144            made all ctype.h function calls safe
6145         * src/SDCCopt.c: include math.h for fabs
6146         * src/SDCCpeeph.c: added macros ISCHARDIGIT, ISCHARSPACE and ISCHARALNUM
6147           and used them throughout the code to make ctype.h function calls safe
6148         * src/ds390/main.c (asmLineNodeFromLineNode),
6149         * src/mcs51/main.c (asmLineNodeFromLineNode): made p unsigned char*
6150         * src/pic/gen.c (DEBUGpic14_emitcode, pic14_emitcode): made lbp
6151            unsigned char*
6152         * src/pic/pcode.c (mnem2key): made mnem unsigned char*,
6153           (newpCodeAsmDir): made ctype.h function calls safe
6154         * src/pic16/gen.c (pic16_emitpcomment, DEBUGpic16_emitcode,
6155           pic16_emitcode):  made lbp unsigned char*
6156         * src/pic16/pcode.c (mnem2key): made mnem unsigned char*,
6157           (pic16_newpCodeAsmDir): made ctype.h function calls safe
6158         * src/xa51/gen.c (emitcode),
6159         * src/z80/gen.c (_emit2): made lbp unsigned char*
6160         * support/Util/MySystem.c (split_command): made cmd_line and p unsigned
6161            char*
6162
6163 2005-09-05 Raphael Neider <rneider AT web.de>
6164
6165         * src/pic16/ralloc.c (pic16_allocDirReg): use device specific
6166           access bank splitpoint
6167
6168 2005-09-05 Raphael Neider <rneider AT web.de>
6169
6170         * device/lib/pic16/libc/Makefile: added (missing) string to SUBDIRS
6171
6172 2005-09-03 Maarten Brock <sourceforge.brock AT dse.nl>
6173
6174         * .version: changed to version 2.5.3
6175         * doc/sdccman.lyx: changed version to 2.5.3,
6176           documented --codeseg and --constseg and pragma codeseg and constseg,
6177           documented bit parameters (reentrant) and bit returning
6178         * src/SDCCicode.c (geniCodeReceive): fixed (possible) bug generating
6179            currFunc->recvSize, but is this ok for all ports?
6180           (ast2iCode): result of ~ on unsigned char must be cast to int for
6181            bool to work
6182         * src/SDCCmem.c (allocGlobal, allocLocal): don't put bit returning
6183           function pointers in bit space
6184         * src/SDCCsymt.c (checkSClass): allow bit returning function pointers,
6185           (processFuncArgs): call port.reg_parm() with reentrancy info
6186         * src/port.h,
6187         * src/avr/main.c,
6188         * src/ds390/main.c,
6189         * src/hc08/main.c,
6190         * src/pic/main.c,
6191         * src/pic16/main.c,
6192         * src/xa51/main.c,
6193         * src/z80/main.c: port.reg_parm prototype extended with
6194           "bool reentrant" parameter
6195         * src/mcs51/main.c (_mcs51_regparm): use parameter reentrant instead of
6196           options.stackAuto for allocating bit register parameters
6197         * src/mcs51/gen.c (genNot): optimized complementing direct bit,
6198           (genSend): set BitBankUsed if it is,
6199           (selectRegBank): factored out of genCall for use in genPcall,
6200           (genCall): removed redundant dtype assignmen, use selectRegBank,
6201           (genPcall): handle returning in Carry properly, save in F0 if needed,
6202           (genReceive): handle bit register parameters
6203         * src/mcs51/ralloc.c (updateRegUsage): update BitBankUsed along the way,
6204           (mcs51_assignRegisters): enable bit registers for all reentrant
6205            functions and don't set BitBankUsed unconditionally
6206         * src/mcs51/peeph.def (177.d): fixed bug if %2==%3
6207         * support/regression/tests/bitvars.c: enable tests for SDCC_STACK_AUTO
6208         * support/regression/tests/funptrs.c: added tests for BOOL and for return
6209
6210 2005-08-27 Borut Razem <borut.razem AT siol.net>
6211
6212         * device/lib/Makefile.in: cp on sparc-solaris (SunOS) and on
6213         ppc-osx (Darwin) does not support -u option. It seems that it is
6214         supported only on Linux - GNU cp
6215
6216 2005-08-25 Borut Razem <borut.razem AT siol.net>
6217
6218         * sim/ucsim/gui.src/serio.src/Makefile.in,
6219           sim/ucsim/s51.src/Makefile.in, sim/ucsim/avr.src/Makefile.in,
6220           sim/ucsim/z80.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
6221           sim/ucsim/xa.src/Makefile.in: install -s changed to 2 steps:
6222           install and strip, since the strip at /usr/ccs/bin should be used
6223           on solaris
6224
6225 2005-08-24 Borut Razem <borut.razem AT siol.net>
6226
6227         * clean.mk, device/lib/clean.mk: find on sparc-solaris does not support -maxdepth option
6228
6229 2005-08-23 Bernhard Held <bernhard AT bernhardheld.de>
6230
6231         * src/SDCCopt.c (convertToFcall): fixed modulus with divisors 1 and
6232         ffffffffu
6233
6234 2005-08-23 Maarten Brock <sourceforge.brock AT dse.nl>
6235
6236         * as/mcs51/aslink.h: completed lkrloc.c prototypes
6237         * as/mcs51/lkmain.c (link_main): fixed warning
6238         * device/include/stdbool.h: ds390 has no advanced bit support yet
6239         * src/SDCC.y: use SPEC_SHORT and renamed _signed to b_signed
6240         * src/SDCCsymt.c: use SPEC_SHORT and renamed _signed to b_signed
6241         * src/SDCCsymt.h (struct specifier): renamed _xxx bitfields to b_xxx
6242           and updated their macros
6243         * src/SDCCval.c (constVal): updated comment for renamed b_long
6244
6245 2005-08-22 Maarten Brock <sourceforge.brock AT dse.nl>
6246
6247         * as/mcs51/asdata.c: changed ctype['['] to BINOP
6248         * as/mcs51/asexpr.c (expr): added case '[' for bit access in bdata,
6249           (term): abused bit 15 of s_addr to indicate bit-addressable bytes,
6250           (oprio): set priority for '['
6251         * as/mcs51/aslink.h: added define R_BIT, and prototypes for adb_bit
6252            and adb_24_bit
6253         * as/mcs51/asm.h: added defines R_BIT and S_BIT
6254         * as/mcs51/lkarea.c (lnksect2): use T for seg BIT_BANK and overlay it
6255         * as/mcs51/lkdata.c: changed ctype['['] to BINOP
6256         * as/mcs51/lkmain.c (Areas51): rel2 contains 12 (=C) areas now,
6257           added overlayable BIT_BANK area
6258         * as/mcs51/lkmem.c (summary): add BIT_BANK to BSEG_BYTES in the report,
6259           (summary2): explain 'T' in legenda
6260         * as/mcs51/lkrloc.c: replaced old K&R style,
6261           (relr): added R_BIT processing,
6262           (errmsg): added "Bit-addressable relocation error",
6263           (adb_bit): added for converting from byte- to bit-addressable space,
6264           (adb_24_bit): added for converting from byte- to bit-addressable space
6265         * device/include/stdbool.h: changed BOOL to __bit for mcs51 as it can be
6266            used in reentrant functions now even as return value
6267         * device/lib/_gptrput.c (_gptrput): removed obsolete code
6268         * src/SDCCast.c (resultTypePropagate): also propagate AND_OP and OR_OP,
6269           (decorateType): case '!', GETHBIT, AND_OP, OR_OP: result in bool or char
6270         * src/SDCCglobl.h: added indicator BitBankUsed
6271         * src/SDCCglue.c (glue): emit area BIT_BANK with byte 'bits' and equ's for
6272            the bit registers b0-b7
6273         * src/SDCCicode.c (operandFromSymbol): removed IS_BITVAR check,
6274           (geniCodeCast): fixed bug 1263853,
6275           (geniCodeLogicAndOr): put result in bool or char,
6276           (geniCodeReceive): added parameter func for accessing the return type,
6277           (geniCodeFunctionBody): pass func to geniCodeReceive
6278         * src/SDCCmain.c: added indicator BitBankUsed
6279         * src/SDCCmem.c (allocLocal): explicitly set sclass for V_BIT
6280         * src/SDCCsymt.c (newBoolLink): added for creating a bool/bit,
6281           (checkSClass): don't put automatic bool/bit on stack,
6282           (checkFunction): removed check on function cannot return bit
6283         * src/SDCCsymt.h: added newBoolLink prototype
6284         * src/mcs51/gen.c (rb1regs): added bit registers,
6285           (movc): created for assigning to carry,
6286           (pushReg, popReg): created for pushing registers,
6287           (sameRegs): check both AOP_REG and AOP_CRY types,
6288           (aopOp): handle bit registers,
6289           (aopPut): optimization no self-assign,
6290           (saveRegisters): push reg->base (bits) only once for bit registers,
6291            and use pushReg,
6292           (unsaveRegisters): pop reg->base only once and use popReg,
6293           (assignResultValue): added parameter func and return in carry for bits,
6294           (genIpush): optimization no reload in A if not changed,
6295           (genSend): bit parameters in reentrant functions are passed in bit
6296            registers by first assigning to bits in B, then save registers and
6297            copy B to bits,
6298           (genCall): handle returning in Carry properly, save it in F0 if needed,
6299           (genPcall): updated assignResultValue call, this is not safe yet for bit
6300            returning function !!!
6301           (genFunction): don't generate equ's for bit registers and use pushReg,
6302           (genEndFunction): take care of bit returning functions and use popReg,
6303           (genRet): return bit in Carry,
6304           (genIfx): optimize bit registers and other directly addressable bits,
6305           (genReceive): updated assignResultValue call
6306         * src/mcs51/main.c (_mcs51_reset_regparm): added regBitParmFlg,
6307           (_mcs51_regparm): allow passing of upto 8 bit parameters in bit
6308            registers when using stack-auto
6309         * src/mcs51/ralloc.c (_G): added allBitregs,
6310           (regs8051): added the bit registers,
6311           (createStackSpil): use macro IS_BIT,
6312           (getRegBit): added to allocate a bit register, else spill,
6313           (getRegBitNoSpil): added to allocate a bit register, else a gpr,
6314           (updateRegUsage): factored out to ease stepping while debugging,
6315           (serialRegAssign): use updateRegUsage, only spill bits if necessary,
6316            also allocate bit registers,
6317           (fillGaps): handle bit registers,
6318           (findAllBitregs): added to create bit vector with all bit registers,
6319           (mcs51_allBitregs): returns this bit vector,
6320           (mcs51_assignRegisters): when using stack-auto use bit registers for
6321            passing parameters and creating local variables
6322         * src/mcs51/ralloc.h: added B0_IDX..B7_IDX and prototype mcs51_allBitregs
6323
6324 2005-08-22 Borut Razem <borut.razem AT siol.net>
6325
6326         * device/lib/Makefile.in: replaced find option -or with -o
6327           to make it run on solaris
6328
6329 2005-08-22 Raphael Neider <rneider AT web.de>
6330
6331         * src/pic16/gen.c (pic16_loadFromReturn): added check for AOP_PCODE,
6332           fixes #1265442 (crash on Solaris)
6333
6334 2005-08-20 Borut Razem <borut.razem AT siol.net>
6335
6336         * configure, configure.in: added tests for libsocket and libnsl libraries,
6337           requred by sdcdb on sparc-solaris; generate support/regression/Makefile
6338           from support/regression/Makefile.in
6339         * support/regression/Makefile.in: added
6340         * device/lib/pic16/Makefile.common.in: force make to use bash shell
6341         * sim/ucsim/libtool: regenerated on sparc-solaris
6342         * sim/ucsim/avr.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
6343           sim/ucsim/s51.src/Makefile.in, sim/ucsim/xa.src/Makefile.in,
6344           sim/ucsim/z80.src/Makefile.in: removed GNU ld specific linker options
6345           -Wl,--start-group and -Wl,--end-group to enable ucsim compilation on
6346           sparc-solaris, which doesn't use GNU ld linker
6347         * device/lib/Makefile.in: cp on sparc-solaris (SunOS) does not support -u option
6348         * as/Makefile: find on sparc-solaris does not support -maxdepth option
6349
6350 2005-08-19 Maarten Brock <sourceforge.brock AT dse.nl>
6351
6352         * src/mcs51/peeph.def: updated comments
6353
6354 2005-08-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6355
6356         * device/lib/_gptrget.c,
6357         * device/lib/_gptrput.c: slightly shorter
6358         * doc/sdccman.lyx: incremented version
6359         * src/mcs51/peeph.def: moved peephole comments to the line of first
6360           change to better keep line correlation, reanimated 186.e
6361         * src/mcs51/peeph.def: renamed similar peepholes by using suffixes
6362
6363 2005-08-16 Slade Rich <slade_rich AT users.sourceforge.net>
6364
6365         * src/pic/pcode.c : Pasted ".line" assembly directives patch from
6366           David Saxton with quotes around file name.
6367
6368 2005-08-15 Borut Razem <borut.razem AT siol.net>
6369
6370         * support/regression/tests/bitfields.c, support/regression/tests/bitvars.c,
6371           support/regression/tests/bitwise.c, support/regression/tests/literalop.c,
6372           support/regression/tests/rotate.c, support/regression/tests/zeropad.c:
6373           make tests run on x86_64 platform
6374
6375 2005-08-13 Raphael Neider <rneider AT web.de>
6376
6377         * device/lib/pic16/Makefile.subdir: weakened clean-intermediate rule
6378           as it might be executed DURING a build (parallel make is wonderful)
6379
6380 2005-08-13 Raphael Neider <rneider AT web.de>
6381
6382         * device/lib/Makefile.in (port-specific-objects-pic16):
6383           revert to cp $(PORT)/bin/*.* $(PORTDIR)
6384         * device/lib/pic16/Makefile: added .PHONY targets, removed builddir
6385           dependency
6386         * device/lib/pic16/Makefile.rules: build subdirs before creating
6387           the library, removed builddir rule, create $(builddir) early in
6388           recurse rule, use empty recurse rule for leaf directories
6389         * device/lib/pic16/Makefile.subdir: added phony targets, ignore
6390           mkdir errors (race condition), removed duplicate suffix "hex"
6391           from clean rules
6392         * device/lib/pic16/libdev/Makefile: recursive make via + and $(MAKE)
6393         * device/lib/pic16/libio/Makefile: create sub-make's builddir early,
6394           prevents mkdir -p from aborting on Alpha
6395
6396 2005-08-12 Raphael Neider <rneider AT web.de>
6397
6398         * src/pic16/glue.c (pic16_print(G)PointerType): do not flush
6399           db-statements in order to allow for arrays of pointers in code
6400           sections to be placed without interspersed 0-padding, fixes
6401           bug #1256215
6402         * (emitStatistics): fixed division by zero for pic18f1220
6403         * src/pic16/pcode.c: buffer (up to) 12 DB directives to allow for
6404           unpadded writing of 8-bit, 16-bit, 24-bit and 32-bit values
6405         * (pic16_emitDS): respect DB_ITEMS_PER_LINE
6406         * (pic16_pCodeConstString): keep track of already emitted string
6407           literals to prevent "duplicate definitions of symbol _str_NR"
6408         * src/pic16/ralloc.c (pic16_allocRegByName): removed not so helpful
6409           debug message
6410         * device/lib/Makefile.in: ignore failing PIC16 library builds
6411         * device/lib/pic16/Makefile: do not build if gputils are missing
6412         * device/lib/pic16/Makefile.common.in: do not enforce MAKEFLAGS=-s
6413
6414 2005-08-10 Raphael Neider <rneider AT web.de>
6415
6416         * device/lib/Makefile.in: fixed copying pic16 libraries (broken by
6417           my last commit)
6418
6419 2005-08-10 Raphael Neider <rneider AT web.de>
6420
6421         * src/*.c, src/pic16/{gen.c,glue.c,main.c}: applied Vangelis
6422           Rokas' patch to add the new fixed point type "__fixed16x16"
6423         * device/lib/pic16/libsdcc/fixed16x16: added Vangelis' support
6424           functions for __fixed16x16 arithmetics
6425         * device/lib/pic16: reimplemented the build system to support
6426           a separate build directory, better handling of libio (create
6427           the library in a separate subdir for each architecture) and
6428           easier configuration (centralized in Makefile.common)
6429
6430 2005-08-07 Raphael Neider <rneider AT web.de>
6431
6432         * src/pic16/gen.c (genrshTwo): fixed sign extension
6433         * src/pic16/device.c: added pic18f2320, 4220 and 4320
6434         * device/include/pic16/pic18f2220.h: changed some bit definitions,
6435           added T0CONbits
6436         * device/include/pic16/pic18f4220.h: NEW, header for
6437           pic18f4220 and pic18f4320
6438         * device/include/pic16/pic18fregs.h: added new devices,
6439           embraced Nop(), ClrWdt(), Sleep() and Reset() with do {} while(0)
6440         * device/include/pic16/signal.h: resolved name clashes
6441           on bit definitions, added DEF_HANDLER2(sig1,sig2,handler)
6442           to also allow testing for interrupt enable bits, added
6443           comments on how to use the macros
6444         * device/lib/pic16/libdev/pic18f2220.c: added T0CONbits
6445         * device/lib/pic16/libdev/pic18f{2320,4220,4320}.c: NEW,
6446           register definitions for the devices
6447         * device/lib/pic16/pics.all: added new devices
6448         * device/lib/pic16/libc/stdlib/calloc.c: fixed zeroing
6449           allocated memory
6450         * device/lib/pic16/libc/stdlib/memfree: do not count
6451           the block header as free memory
6452         * device/lib/pic16/libc/stdlib/memmisc.c (_initHeap):
6453           simplified and added missing end-of-blocklist-marker
6454           (reported by Peter Onion, fixes #1252814)
6455         * (_mergeHeapBlock): fixed loop condition
6456         * device/lib/pic16/libc/stdlib/realloc.c: return NULL for
6457           len==0, restructured code
6458         * device/lib/pic16/libc/stdlib/{malloc,memfreemax}.c: cleaned
6459           up a bit, reduced bitfield accesses, prevent endless loops
6460           in case of heap corruption
6461         * device/lib/pic16/libc/stdlib/x_ftoa.c: disabled
6462           "unreferenced arguments/must return a value" warnings
6463         * device/lib/pic16/libio/usart/ubaud.c (usart_baud):
6464           replaced BAUDREG with SPBRG
6465         * device/lib/pic16/libsdcc/lregs/{lrrest.c,lrst.c},
6466           device/lib/pic16/debug/gstack/gstack.c: replaced
6467           _naked, _asm, _endasm with __naked, __asm, __endasm
6468
6469 2005-08-05 Raphael Neider <rneider AT web.de>
6470
6471         * src/pic16/gen.c (pic16_aopGet): fixed handling of offsets in
6472           AOP_PCODE operands, fixes multibyte union-bitfield-accesses
6473
6474 2005-08-05 Borut Razem <borut.razem AT siol.net>
6475
6476         * device/lib/Makefile.in: added missing ';'
6477         * configure: removed ^M characters
6478
6479 2005-08-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6480
6481         * device/include/mcs51/at89c51ed2.h, device/include/mcs51/p89v51rd2.h,
6482           device/include/mcs51/at89s53.h: changed to GNU Lesser General Public
6483           License
6484
6485 2005-08-04 Borut Razem <borut.razem AT siol.net>
6486
6487         * configure.in: pic16 libraries build 2nd try - enable running
6488           configure in device/lib/pic16
6489         * configure: regenerated from configure.in
6490         * device/lib/Makefile.in: create $(PORT)/bin directory
6491
6492 2005-08-03 Raphael Neider <rneider AT web.de>
6493
6494         * src/pic16/gen.c (pic16_derefPtr): NEW, single place
6495           to get/set values via pointers
6496         * (genUnpackBits,genPackBits): changed detection of
6497           ptr->bitfield vs. sym.bitfield, fixed access via generic
6498           pointers, removed dead (wrong) code for multibyte bitfields
6499         * (genNearPointerGet, genGenPointerGet): removed useless code,
6500           fixed bitfield detection, fixes #1250594
6501         * (genNearPointerSet): removed useless code
6502         * src/pic16/gen.h: renamed pic16_emitpcode to pic16_emitpcode_real
6503           and introduced macro pic16_emitpcode that conditionally emits
6504           the origin of the following pCode (useful for debugging SDCC)
6505         * src/pic16/pcode.c: changed (and disabled) some debug outputs
6506         * (createDefmap): fixed handling of LFSR for --optimize-df
6507
6508 2005-08-02 Borut Razem <borut.razem AT siol.net>
6509
6510         * device/lib/Makefile.in: pic16 libraries build enabled since
6511           gputils-0.13.2 are now localy installed at sourceforge's compile farm
6512
6513 2005-08-02 Raphael Neider <rneider AT web.de>
6514
6515         * src/pic16/gen.c (genPackBits): removed deprecated warning
6516         * (genGenPointerSet): fixed bitfield detection
6517
6518 2005-08-02 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6519
6520         * device/include/mcs51/msm8xc154s.h: Removed PT2 definition, now in 8052.h.
6521
6522 2005-07-31 Raphael Neider <rneider AT web.de>
6523
6524         * device/lib/pic16/libdev/pic18f458.c,
6525           device/include/pic16/pic18f458.h: added missing T0CONbits
6526
6527 2005-07-29 Maarten Brock <sourceforge.brock AT dse.nl>
6528
6529         * device/include/mcs51/msm8xc154s.h: added, thanks to Matthias Arndt
6530
6531 2005-07-28 Maarten Brock <sourceforge.brock AT dse.nl>
6532
6533         * src/mcs51/gen.c (operandsEqu): fixed bug 1246687
6534
6535 2005-07-23 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6536
6537         * device/include/mcs51/at89c51ed2.h: added.
6538
6539 2005-07-23 Raphael Neider <rneider AT web.de>
6540
6541         * src/pic/gen.h: added emitpcode macro for debugging
6542         * src/pic/gen.c (emitpcode): renamed to emitpcode_real
6543           and replace by macro adding debug information on demand
6544         * (genNot): fixed to C semantics (!0 = 1; !x = 0 iff x != 0)
6545         * (gencjne): tried to fix; replaced with correct (slower) code
6546         * (gen{Unp,P}ackBits): fixed single bit access
6547         * src/pic/pcode.c (AnalyzepCode): fixed DFPRINTF argument
6548         * src/pic/pcodepeep.c (pCodeSearchCondition): fixed finding
6549           previous instruction
6550         * src/pic/pcoderegs.c (regIsSpecial): NEW, check whether a
6551           register has to be handled with care (forbidding movement
6552           of assignments/uses, removing assignments completely, ...)
6553         * (pCodeOptime2pCodes): make use of regIsSpecial
6554         * added lots of debugging output (commented out)
6555         * src/pic/rallloc.c (deassignLRs): prevent operand registers
6556           from being reused as result UNLESS it is known to work
6557
6558 2005-07-23 Maarten Brock <sourceforge.brock AT dse.nl>
6559
6560         * support/Util/dbuf.h: include <stddef.h> for size_t
6561         * .version: changed to version 2.5.2
6562
6563 2005-07-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6564
6565         * src/SDCCloop.c (loopInvariants): fixed bug #1234048
6566
6567 2005-07-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6568
6569         * src/hc08/gen.c (genMinus): fixed bug #1241835,
6570           (genModOneByte): removed needless psha/pula
6571
6572 2005-07-22 Raphael Neider <rneider AT web.de>
6573
6574         * src/SDCCmain.c (linkEdit): initialized linkerScriptFileName,
6575           have PIC14 handled like PIC16, fixes broken pic14 linker calls
6576         * src/pic/gen.c (resolveIfx): do not "invent" labels
6577         * (genSkipc): changed to positive logic
6578         * (genSkipCond): removed as no longer needed
6579         * (pic14_mov2w_regOrLit,genCmp): NEW, replacement for buggy version,
6580           backport from PIC16
6581         * (genLeftShift): check operands are in different registers
6582         * src/pic/genarith.c (genPlus): replaced INCF with ADDLW as
6583           INCF does not update CARRY...
6584         * src/pic/main.c: fixed _linkCmd
6585         * src/pic/pcode.c (unlinkpCode): added inactive code
6586         * src/pic/ralloc.c (deassignLRs): keep arguments to shift operations
6587           alive (do not assign result and operand overlapping registers)
6588
6589 2005-07-22 Raphael Neider <rneider AT web.de>
6590
6591         * src/pic/device.c (dump_sfr): replaced register declaration with
6592           call to emitSymbolToFile() to avoid duplicate symbols
6593         * (assignRelocatableRegisters): do not declare external symbols
6594         * src/pic/ralloc.c (allocNewDirReg): fixed to get size of arrays
6595           right (take size of type, not etype)
6596         * (allocDirReg): fixed call to allocNewDirReg() to pass OP_SYM_TYPE
6597         * (writeUsedRegs): also dump dynDirectRegs (e.g. local variables)
6598         * (packRegsForAccUse): disabled assignment of WREG as
6599           the result reg to prevent occurence of just fixed #1235003,
6600           fixes #1242954
6601         * src/pic/glue.c (emitSymbolToFile): NEW, central place to declare
6602           symbols (avoids duplicate symbols in .asm file)
6603         * (pic14emitRegularMap): use emitSymbolToFile()
6604         * src/pic/gen.c (aopOp): fixed spillLocation handling
6605         * (gen{Unp,P}ackBits): fixed acquiring bit-operands
6606         * (genDataPointerSet): removed unneccessary variables/output
6607
6608 2005-07-22 Maarten Brock <sourceforge.brock AT dse.nl>
6609
6610         * as/mcs51/lkarea.c: enlarged codemap for banked memory
6611         * device/lib/mcs51/crtbank.asm: added # to 0x0F
6612
6613 2005-07-21 Raphael Neider <rneider AT web.de>
6614
6615         * src/pic/gen.c (aopOp): do not generate AOP_ACC operands as pic14
6616           architecture cannot handle them efficiently, fixes bug #1235003
6617         * src/pic16/device.c (pic16_dump_{u,i}section,pic16_dump_int_registers):
6618           check for empty sets before using them (fixes bug #1232190)
6619
6620 2005-07-19 Maarten Brock <sourceforge.brock AT dse.nl>
6621
6622         * as/mcs51/lkarea.c (lnkarea, lnkarea2): improved BSEG size calculation,
6623           (lnksect2): generate warnings for memory overlap
6624         * src/SDCC.lex (doPragma, process_pragma): added pragma's codeseg and
6625           constseg to set the name of these segments so you can instruct the linker
6626           to place them in banks
6627         * src/SDCCast.c (decorateType): use new macro IS_FUNCPTR()
6628         * src/SDCCglobl.h: added MODEL_HUGE to enum,
6629           added code_seg and const_seg to options
6630         * src/SDCCglue.c (emitMaps): use options.const_seg,
6631           (createInterruptVect): put interrupt vectors in segment HOME,
6632           (glue): put HOME before static segment and put the main glue in HOME,
6633           (glue): use options.code_seg
6634         * src/SDCCicode.c (geniCodeCall): use new macro IS_FUNCPTR()
6635         * src/SDCCmain.c: added option --codeseg and --constseg to set the name of
6636           these segments so you can instruct the linker to place them in banks
6637           (linkEdit): use code_loc for HOME segment which should be the first
6638           segment in code memory now
6639         * src/SDCCmem.c: fixed more stuff like bug 1238386
6640         * src/SDCCsymt.c (getSize): use generic pointer size for banked functions,
6641           (changePointer): don't change function pointers to code pointers for
6642           banked functions,
6643           (compareType): added exceptional check for banked function pointers
6644         * src/SDCCsymt.h: changed IFFUNC_ISBANKEDCALL, added IS_FUNCPTR
6645         * src/hc08/main.c (_hc08_genAssemblerPreamble): put HOME first, put CSEG
6646           after static in code memory
6647         * src/mcs51/gen.c: added aopLiteralLong prototype,
6648           (aopForSym): use getSize for functions,
6649           (genCall): generate banked calls over one trampoline __sdcc_banked_call
6650           in HOME with lsb of address in r0, msb in r1 and bank in r2, use
6651           -Wl-bBANKSEG=0xbbaaaa option to set the address (aaaa) and bank (bb) of
6652           the segment,
6653           (genPcall): use call for literal function pointers and generate banked
6654           calls over the one trampoline so there's only one place for the user to
6655           modify according to his/hers hardware,
6656           (genEndFunction): jump to __sdcc_banked_ret in HOME for banked functions,
6657           (genPlusIncr): moved check icount>4 beyond inc dptr optimization
6658         * src/mcs51/main.c: added keyword banked,
6659           (_mcs51_genExtraAreas): put HOME first followed by GSINIT, STATIC and CSEG
6660         * support/Util/SDCCerr.c,
6661         * support/Util/SDCCerr.h: added E_BANKED_WITH_CALLEESAVES, registers are
6662           needed for passing the bank and address to the trampoline
6663         * device/lib/mcs51/crtbank.asm: added for bankswitching
6664         * device/lib/mcs51/Makefile: added crtbank
6665
6666 2005-07-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6667
6668         * src/SDCCcse.c (algebraicOpts): fixed loss of volatility
6669           for fields at offset 0 of a struct or union as reported
6670           on 2005-07-07 in the developer mailing list.
6671
6672 2005-07-15 Maarten Brock <sourceforge.brock AT dse.nl>
6673
6674         * src/SDCCmem.c: fixed bug 1238386
6675
6676 2005-07-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6677
6678         * src/mcs51/peeph.def: added labelrefcounting for peepholes
6679           (patch #1144962), added peephole 300, enabled 259.x
6680         * doc/sdccman.lyx: removed screenshot and provided link instead
6681
6682 2005-07-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6683
6684         * doc/sdccman.lyx: added section about debugging with ddd
6685         * doc/figures/ddd_example.eps: screenshot of debugging session
6686
6687 2005-07-04 Raphael Neider <rneider AT web.de>
6688
6689         * src/pic/gen.c (genPointerGet): handle pointers to CONST values
6690           like CODE pointers, fixes #1115683
6691         * src/pic/pcode.c (DoBankSelect): forget LastRegIdx during function
6692           call, fixes bugs #1232211, #1228110,
6693           fixed wrong casts to pCodeFlow from pCodeInstructions
6694
6695 2005-07-04 Raphael Neider <rneider AT web.de>
6696
6697         * src/pic/gen.c (popGet): changed assert to allow for
6698           bit operands
6699         * (popGetAddr): changed signature to provide
6700           an additional index, patched all call sites
6701         * (genCmpEq): handle literal-like operands correctly
6702         * (genAddrOf): added sanity checks on __code/__data pointers
6703         * (genAssign): added handling of symbols from __code section
6704         * (gencjne): do not generate code for comparisons whose result
6705           is neither stored nor used, fixes bug #1171114
6706         * (AccLsh, AccRsh): operate on operand instead of WREG
6707         * (shift{Left,Right}_Left2ResultLit): NEW, size independant
6708           replacement for Shift{LR}{12}Left2Result; shift (byte/int/long)
6709           by known count
6710         * rewrote complete shift-by-literal logic, commented unused
6711           functions out
6712         * (genConstPointerGet): get multiple bytes (if result size > 1),
6713           fixed handling of non-immediate addresses
6714         * (genPointerGet): handle CODE pointers like CONST pointers
6715         * (genpic14Code): insert C-SRC lines as Cource-pCodes
6716         * ({aop,op}_isLitLike): NEW, single place to decide whether an
6717           operand is to be treated as a literal or not
6718         * (mov2w,genPcall,genCmpEq),
6719           src/pic/genarith.c: use aop_isLitLike() to decide between
6720           literal/register contents
6721         * (addSign): added missing offset
6722         * src/pic/gen.h: remove newline after FENTRY/FEXIT comments,
6723           only emit comment in debug-mode,
6724           use {aop,op}_isLitLike throughout the file
6725         * src/pic/glue.c: fix initializers for pointers (work in progress)
6726         * src/pic/pcode.c (get_op): honor index on _const symbols
6727         * ({reset,dump}pCodeStatistics): NEW, estimate code size
6728         * (dumppBlock): added pCode size estimation
6729         * src/pic/ralloc.c (deassignLRs,serialRegAssign,packRegisters):
6730           check for IS_SYMOP before OP_SYMBOL'ing
6731         * fixed indentation, compacted switch-statements
6732         * (allocReg): find free register and allocate it instead of
6733           allocating new registers all the time
6734         * (deassignLRs): prevent POINTER_GET's from being assigned the same
6735           registers as its operands (necessary only for multibyte GETs)
6736
6737 2005-07-01 Raphael Neider <rneider AT web.de>
6738
6739         * src/pic/gen.h: added prototypes emitpComment, popGetAddr and
6740           debugging .asm-output macros FENTRY + FEXIT
6741         * src/pic/gen.c (Safe_vsnprintf): NEW, is there a more generic
6742           way... I wonder...
6743         * (emitpComment): NEW, printf to pCode
6744         * (popGet): added assert on too large offsets, fixed PO_IMMEDIATE's
6745           offset handling
6746         * (popGetAddr): NEW, variant of popGet to access an immediates
6747           high(er) bytes instead of the n'th byte of memory they reference,
6748           replaced popGet with popGetAddr where neccessary
6749         * (genDataPointerGet): reactivated and fixed implementation
6750         * (genNearPointerGet): enabled call to genDataPointerGet, fixes array-
6751           accesses
6752         * (genDataPointerSet): fixed multibyte assignments
6753         * (genpic14Code): fixed --i-code-in-asm handling
6754         * src/pic/genarith.c: fixed PO_IMMEDIATE issue using popGetAddr,
6755         * (genPlus): fixed index-out-of-bounds error
6756         * src/pic/pcode.c (get_op): fixed PO_IMMEDIATE's index/offset handling
6757         * src/pic/ralloc.c: added debugging output macro FENTRY2
6758         * (spillThis): fixed indentation, enbraced for-body for clarity
6759         * (rematStr): commented out as now unused
6760         * (regTypeNum): commented out special spill case (overwrites
6761           arbitrary values)
6762         * fixes bugs #1229346, #1216476 (both arrays) and #1115667 (SIGSEGV)
6763
6764 2005-06-30 Maarten Brock <sourceforge.brock AT dse.nl>
6765
6766         * doc/sdccman.lyx: documented sfr16/sfr32,
6767           added example for using storage class with function pointers
6768         * src/mcs51/gen.c (genPlusIncr): optimized small offsets from dptr
6769
6770 2005-06-28 Maarten Brock <sourceforge.brock AT dse.nl>
6771
6772         * device/lib/_gptrget.c: also push/pop _PSBANK, added # to 0x03
6773         * device/lib/_itoa.c,
6774         * device/lib/_ltoa.c: optimized codesize
6775         * src/SDCCsymt.c (checkSClass): added sanity check for sfr at addresses,
6776           but don't know how to suppress the double warning.
6777         * src/mcs51/gen.c (genPlusIncr): fixed bug when incrementing volatile int's
6778         * support/Util/SDCCerr.c,
6779         * support/Util/SDCCerr.h: added warning W_SFR_ABSRANGE for sanity check
6780
6781 2005-06-27 Maarten Brock <sourceforge.brock AT dse.nl>
6782
6783         * as/mcs51/asexpr.c (expr): disabled warning "not in .flat24 mode",
6784           fixed old K&R prototypes
6785         * as/mcs51/asout.c (outrb): always output as if generating 24bit addresses
6786         * device/lib/_gptrget.c,
6787         * device/lib/_gptrgetc.c,
6788         * device/lib/_gptrput.c: changed versions for new memory indicator values,
6789           also new versions for small generic pointers and banked generic pointers
6790         * src/port.h: added const_name
6791         * src/SDCC.lex: added keywords sfr16, __sfr16, sfr32, __sfr32
6792         * src/SDCC.y: added tokens SFR16, SFR32 and their sfr_attributes
6793         * src/SDCCcse.c (findPrevIc): check all associative operators
6794         * src/SDCCglue.c (emitMaps): use CONST_NAME if defined
6795         * src/SDCCicode.h: added macro IS_ASSOCIATIVE
6796         * src/SDCCmem.c: updated comments,
6797           set far-space to 0 for pdata, results in optimized code
6798         * src/SDCCmem.h: added macro CONST_NAME
6799         * src/SDCCsymt.h: renumerated generic pointer types GPTYPE_... thereby
6800           moving the info into the highest bits, see also gptrget/gptrput
6801         * src/src.dsp: added sdcc.ico to project files
6802         * src/avr/gen.c (genCast): fixed bug 0x%d
6803         * src/avr/main.c (avr_port): added "CONST (CODE)" for const_name
6804         * src/ds390/gen.c (aopForRemat, adjustArithmeticResult): disconnected direct
6805           relation between ptr_type and DCL_TYPE,
6806           (genCast): fixed bug 0x%d
6807         * src/ds390/main.c (ds390_port, tininative_port, ds400_port): added "CONST
6808           (CODE)" for const_name
6809         * src/hc08/gen.c (genCast): fixed bug 0x%d
6810         * src/hc08/main.c (_hc08_genAssemblerPreamble): added .area ...const_name,
6811           (hc08_port): added "CONST (CODE)" for const_name
6812         * src/mcs51/gen.c (aopForSym): optimized pushing ACC,
6813           (aopForRemat, adjustArithmeticResult): disconnected direct relation
6814           between ptr_type and DCL_TYPE,
6815           (aopGetUsesAcc, aopGet, aopPut): changed first parameter from asmop* to
6816           operand* and took AOP() inside function so sfr-ness can be checked,
6817           (all over): repaired calls to aopGetUsesAcc, aopGet, aopPut to comply with
6818           new prototype,
6819           (genFunction, genEndFunction): optimized stack setup,
6820           (genMinus): optimized for literals with ending zeroes (in bytes),
6821           (genCast): fixed bug 0x%d
6822         * src/mcs51/main.c (_mcs51_keywords): added sfr16 and sfr32,
6823           (mcs51_port): added "CONST (CODE)" for const_name
6824         * src/mcs51/peeph.def: made rule 226 more generic
6825         * src/pic/main.c (pic_port): added "CONST (CODE)" for const_name
6826         * src/pic16/main.c (pic16_port): added "CONST (CODE)" for const_name
6827         * src/xa51/main.c (xa51_port): added "CONST (CODE)" for const_name
6828         * src/z80/main.c (z80_port): added NULL for const_name,
6829           (gbz80_port): added NULL for const_name
6830         * support/regression/tests/bug663539.c,
6831         * support/regression/tests/sfr16.c: new tests
6832
6833 2005-06-25 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6834
6835         * device/include/mcs51/p89v51rd2.h, device/include/mcs51/at89s53.h: added.
6836
6837 2005-06-24 Raphael Neider <rneider AT web.de>
6838
6839         * device/lib/pic16/libdev/pic18f[68][567]20.c:
6840           corrected typos...
6841         * device/include/pic16/signal.h: added USBIF
6842           and SIG_USB
6843
6844 2005-06-24 Raphael Neider <rneider AT web.de>
6845
6846         * device/lib/pic16/libdev/pic18f2455.c,
6847           device/include/pic16/pic18f2455.h: NEW
6848         * device/include/pic16/pic18fregs.h,
6849           device/lib/pic16/pics.all,
6850           src/pic16/device.c: added 18f2455
6851         * device/lib/pic16/libdev/pic18f[68][567]20.c,
6852           device/include/pic16/{pic18f[68][567].h,usart.h}:
6853           replaced MULTIPLE_USARTS define with more relaible
6854           compatibility sfrs (for USART access)
6855
6856 2005-06-20 Slade Rich <slade_rich AT users.sourceforge.net>
6857
6858         * src/pic/pcode.c : Fixed problem when a string constant contains a "\r\n"
6859           and the output asm file line is printed on two lines.
6860
6861 2005-06-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6862
6863         * sim/ucsim/hc08.src/inst.cc (inst_condbranch): fixed simulation of
6864           BGT, BLE, BHI, and BLS instructions
6865         * src/hc08/gen.c (outAcc, outBitC, outBitNV, genCmpLt, genCmpGt,
6866           genCmpEq): removed
6867         * src/hc08/gen.c (genCmpEQorNE, genCmp, branchopCmp, nameCmp,
6868           negatedCmp, exchangedCmp, genhc08Code): rewrite of comparison handling,
6869           fixes bug #1216342
6870         * src/hc08/peeph.def: added rules 2g - 2l for new conditional branches
6871
6872 2005-06-15 Raphael Neider <rneider AT web.de>
6873
6874         * src/pic16/NOTES: moved Vangelis from active developers to people to contact
6875         * device/include/pic16/{6520.h,8520.h}: fixed configuration bits
6876         * src/pic16/gen.c (): prevent iTemps from being considered to be in CODESPACE,
6877           fixes bug #1221120; for symbols in CODESPACE get number of bytes to read from
6878           OP_SYM_TYPE() instead of OP_SYM_ETYPE()
6879
6880 2005-06-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6881
6882         * device/include/mcs51/reg764.h: Changed PB0 to PBO as requested by
6883           Marcel Telka in bug #1215704
6884
6885 2005-06-02 Slade Rich <slade_rich AT users.sourceforge.net>
6886
6887         * src/pic/pcode.c : Changed pseudo stack size to 15 to allow WSAVE to be
6888           located in shared memory bank.
6889
6890 2005-05-31 Raphael Neider <rneider AT web.de>
6891
6892         * src/pic16/{gen.c,genarith.c}: replaced sign-extension
6893           "CLRF, BTFSC <signbit>, DECF/COMF" with side-effect-free
6894           "CLRF, BTFSC <signbit>, SETF"; fixes "long>>9"
6895
6896 2005-05-27 Maarten Brock <sourceforge.brock AT dse.nl>
6897
6898         * device/lib/_strncpy.c: fixed the fix
6899
6900 2005-05-26 Raphael Neider <rneider AT web.de>
6901
6902         * src/pic16/glue.c (pic16_printIvalChar): fixed _constant_ string
6903           initializers with \0, bug #1208187
6904         * src/pic/glue.c (printIvalChar): fixed (non- and constant) string
6905           intializers with \0, bug #1208187
6906
6907 2005-05-26 Raphael Neider <rneider AT web.de>
6908
6909         * src/pic16/glue.c (pic16_printIvalChar): fixed string
6910           initializers with \0, bug #1208187
6911         * src/pic16/main.c (_process_pragma): added sanity checks
6912           for stack position and size, emit warnings when appropriate
6913
6914 2005-05-26 Maarten Brock <sourceforge.brock AT dse.nl>
6915
6916         * device/lib/_strncpy.c: fixed not filling with \0
6917
6918 2005-05-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6919
6920         * src/SDCCast.c (funcOfType, funcOfTypeVarg, stringToSymbol,
6921           createFunction),
6922         * src/SDCC.y (external_definition, enumerator, parameter_declaration,
6923           compound_statement),
6924         * src/SDCCsymt.h,
6925         * src/SDCCsymt.c (addSymChain, processFuncArgs): fixed bug #1159134
6926
6927 2005-05-24 Raphael Neider <rneider AT web.de>
6928
6929         * src/pic16/glue.c (pic16_printGPointerType): fixed #1207796
6930
6931 2005-05-24 Raphael Neider <rneider AT web.de>
6932
6933         * device/include/pic16/pic18f{442,452,458}.h: fixed wrong
6934           TRISE definitions, closes bug #1162453
6935
6936 2005-05-22 Raphael Neider <rneider AT web.de>
6937
6938         * src/pic16/main.c (_process_pragma): check for missing
6939           arguments to pragmas code and udata
6940         * device/include/pic16/pic18f{2550,4331,4455,4520}.h:
6941           consistency fixes to match other headers (thanks to Jim Paris)
6942         * device/lib/pic16/libio/i2c.ignore: 18f4331 provides no I2C
6943
6944 2005-05-21 Maarten Brock <sourceforge.brock AT dse.nl>
6945
6946         * src/SDCCicode.c (isOperandEqual): fixed missing ;
6947
6948 2005-05-19 Maarten Brock <sourceforge.brock AT dse.nl>
6949
6950         * support/regression/tests/bug1198642.c: new test
6951         * src/SDCCicode.c (isOperandEqual): fixed bug 1198642
6952         * src/SDCCcse.c (findPrevIc): added comment, please have a look
6953         * support/scripts/resource.h,
6954         * support/scripts/resource.rc,
6955         * src/src.dsp: added sdcc.ico to project as icon for sdcc.exe
6956         * support/scripts/sdcc.ico: added 32x32 icon
6957
6958 2005-05-18 Raphael Neider <rneider AT web.de>
6959
6960         * device/lib/pic16/libdev/pic18f*.c,
6961         * device/include/pic16/pic18f*.h: updated "sfr" and "at X"
6962           keywords to "__sfr" and "__at (X)"
6963         * device/include/pic16/pic18fregs.h: added pic18f4520
6964         * src/pic16/pcode.c (pic16_pCode2str): fixed (?) bug
6965           #1203088 (MPLAB compatibility)
6966
6967 2005-05-17 Raphael Neider <rneider AT web.de>
6968
6969         * device/include/pic16/pic18f{2550,4331,4455,4520}.h: NEW
6970         * device/lib/pic16/libdev/pic18f{2550,4331,4455,4520}.c: NEW
6971         * device/lib/pic16/pics.all: added new devices
6972         * src/pic16/device.c: added support for pic18f4520
6973
6974 2005-05-16 Raphael Neider <rneider AT web.de>
6975         * src/pic16/gen.{c,h}: s/mov2f/pic16_mov2f made public
6976         * src/pic16/genarith.c (genAddLit): fixed bug 1202480
6977         * src/pic16/pcode.{c,h} (pic16_newpCodeOpBit_simple): NEW
6978           convenience function for bit access
6979
6980 2005-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
6981
6982         * device/lib/printf_large.c: fixed bug 1193299
6983         * support/regression/tests/bug1057979.c: added test %3.3s
6984
6985 2005-05-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6986
6987         * device/include/mcs51/8051.h,
6988         * device/include/mcs51/8052.h: made parseable with lint
6989         * device/include/mcs51/lint.h: added include file for (sp)lint
6990         * doc/sdccman.lyx: added doc about use of splint (syntax checking tool)
6991         * doc/cdbfileformat.lyx,
6992         * doc/test_suite_spec.lyx: hardcoded date to the date of last text change
6993
6994 2005-05-14 Raphael Neider <rneider AT web.de>
6995
6996         * device/lib/pic16/Makefile.common.in: add --optimize-df to OPT_FLAGS
6997         * device/lib/pic16/libc/stdlib/itoa.c (new)
6998         * device/lib/pic16/libc/stdlib/Makefile: have itoa.c built
6999         * device/lib/pic16/libio/Makefile: exclude subdir according to
7000           ${subdir}.ignore for certain PICs (lacking e.g. i2c)
7001         * device/lib/pic16/libio/i2c.ignore (new): pic18f1220 has no I2C support
7002         * src/pic16/gen.c (genFunction): prevent annoying warning
7003         * src/pic16/pcode.c: renamed stack_t to dynstack_t to prevent
7004           nameclashes on BeOS
7005         * support/cpp2/cppmain.c (cpp_output_string): new
7006         * support/cpp2/cpplib.c (_cpp_do__Pragma): fixed _Pragma(""),
7007           fixes bug 1116802
7008
7009 2005-05-13 Borut Razem <borut.razem AT siol.net>
7010
7011         * src/SDCCmain.c (linkEdit): fixed bug 1195202
7012
7013 2005-05-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7014
7015         * .version: changed to version 2.5.1; back to bleeding edge development
7016
7017 2005-05-11 Borut Razem <borut.razem AT siol.net>
7018
7019         * doc/sdccman.lyx doc/cdbfileformat.lyx doc/test_suite_spec.lyx:
7020           generate PDF version 1.3 documents
7021
7022 2005-05-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7023
7024         * .version: changed to version 2.5.0
7025
7026 2005-04-27 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7027
7028         * doc/sdccman.lyx: updated weblinks, index and smaller updates
7029
7030 2005-04-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7031
7032         * doc/sdccman.lyx: changed version 2.5.0, documented --std-c89,
7033         --std-sdcc89, --std-c99, --std-sdcc99, and the corresponding #pragmas, as
7034         well as many smaller updates.
7035         * .version: changed to version 2.5.0-pre1
7036
7037 2005-04-26 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7038
7039         * src/SDCCmain.c (setIncludePath): added port->target to SDCC_INCLUDE_NAME
7040
7041 2005-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
7042
7043         * support/regression/tests/bug1185672.c: added
7044         * src/mcs51/gen.c (aopGetUsesAcc, genCpl, genAnd, genOr, genXor): fixed
7045           bug 1185672
7046         * src/mcs51/gen.c (genCall): added comments, made it look safer
7047         * src/mcs51/gen.c (genEndFunction): simplified
7048
7049 2005-04-25 Maarten Brock <sourceforge.brock AT dse.nl>
7050
7051         * src/mcs51/ralloc.c (serialRegAssign): fixed bug 1189609
7052
7053 2005-04-14 Borut Razem <borut.razem AT siol.net>
7054
7055         * fixed bug 1045046 - SIGSEGV with really simple code?:
7056           src/pic/pcode.c (pCodeInitRegisters)- pseudo stack size increased to 16
7057           src/pic/ralloc.c (typeRegWithIdx) - error message on pseudo stack overflow
7058
7059 2005-04-14 Borut Razem <borut.razem AT siol.net>
7060
7061         * src/pic16/gen.c (genInline), src/pic16/main.c (_process_pragma),
7062           src/pic16/device.h: temporarily disabled experimental #inline pragma
7063           for 2.5.0 release
7064
7065 2005-04-14 Maarten Brock <sourceforge.brock AT dse.nl>
7066
7067         * device/include/z80/stdio.h,
7068         * device/include/z80/string.h: removed these highly incomplete files so
7069           SDCC can use the default ones in device/include/
7070
7071 2005-04-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7072
7073         * src/mcs51/gen.c (genEndFunction): removed unused variable to fix
7074         gcc warning.
7075         * device/lib/Makefile.in: default PORTINCDIR to the mcs51 subdir to
7076         fix sdcpp warnings.
7077
7078 2005-04-12 Maarten Brock <sourceforge.brock AT dse.nl>
7079
7080         * device/include/malloc.h: removed redundant __reentrant prototypes
7081         * device/lib/_mullong.c: added working xstack variant in asm (C version
7082           doesn't pass regression tests)
7083         * device/lib/bpx.c: used __data and made bpx char for mcs51
7084         * src/SDCCast.c (decorateType): removed unused GPTYPE_IDATA,
7085           (createFunction): fixed bug with xstackPtr
7086         * src/SDCCcse.c: corrected comments
7087         * src/SDCCopt.c (convertToFcall): fixed warning in MSVC,
7088           (killDeadCode, eBBlockFromiCode): removed unused code
7089         * src/SDCCsymt.h: removed unused GPTYPE_GPTR and GPTYPE_IDATA,
7090           corrected comments
7091         * src/mcs51/gen.c (aopForSym, aopPut, toBoolean, unsaveRegisters,
7092           assignResultValue, genCall, genFunction, genEndFunction, genAnd,
7093           genOr, genXor, genAddrOf): fixed several bugs concerning xstack
7094           (genModOneByte): fixed warning in MSVC
7095         * src/mcs51/main.c (): added comments
7096         * src/mcs51/peeph.def: changed 129 to 129.a, added 129.b, 129.c & 129.d
7097
7098 2005-04-12 Maarten Brock <sourceforge.brock AT dse.nl>
7099
7100         * src/SDCCmain.c (linkEdit): oops, changed one line too many
7101
7102 2005-04-11 Maarten Brock <sourceforge.brock AT dse.nl>
7103
7104         * src/SDCCmain.c (linkEdit): fixed bug with finding crt0.o for z80
7105
7106 2005-04-10 Vangelis Rokas <vrokas AT users.sourceforge.net>
7107
7108         * src/pic16/glue.c (printIvalChar): fixed bug when emitting
7109         characters arrays of larger size than the declared one.
7110
7111 2005-04-10 Borut Razem <borut.razem AT siol.net>
7112
7113         * src/pic/gen.c (genInline),
7114           src/pic/pcode.c (newpCodeAsmDir), (pCode2str),
7115           (genericPrint), (unlinkpCodeFromBranch), (compareLabel),
7116           (findNextInstruction), (findPrevInstruction),
7117           (findInstructionUsingLabel),
7118           src/pic/pcode.h: fixed bug #1164907 - Labels not being recognized
7119         * src/pic/pcode.c (findLabel): added missing '\n'
7120         * src/src.dsp: added SDCCdwarf2.c to the project
7121
7122 2005-04-09 Borut Razem <borut.razem AT siol.net>
7123
7124         * support/scripts/sdcc.nsi: added include/hc08/* h to NSIS setup
7125
7126 2005-04-08 Raphael Neider <rneider AT web.de>
7127
7128         * src/pic16/pcode.c: added helpers defmapInsertAfter (insert a new item
7129           into the chain after a given one) and mergeDefmapSymbols (combine
7130           defmap entries for each symbol per pcode)
7131         * (createDefmap): have defmap entries merged in the end
7132         * (defmapReplaceSymRef): split defmap entries covering two accesses to
7133           a symbol before replacing one access type's symbol, merge symbols in
7134           the end (replacement symbol might already have an entry)
7135         * (assignValnums): keep reference to written WREG intact
7136
7137 2005-04-08 Raphael Neider <rneider AT web.de>
7138
7139         * src/pic16/pcode.c (struct defmap_s): named anonymous union (for
7140           Alpha)
7141
7142 2005-04-08 Vangelis Rokas <vrokas AT users.sourceforge.net>
7143
7144         * src/pic16/pcode.c (pic16_get_op2): enlarged size of array b to 128
7145         bytes
7146
7147 2005-04-07 Raphael Neider <rneider AT web.de>
7148
7149         * device/include/pic16/usart.h: added compatibility defines for
7150           devices with more than one USART
7151         * device/include/pic16/pic18f[68][567]20.h: activated above defines
7152
7153 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
7154
7155         * device/lib/Makefile.in: updated for port specific include
7156
7157 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
7158
7159         * support/regression/ports/mcs51/spec.mk: added mcs51 include
7160
7161 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
7162
7163         * device/include/8051.h,
7164         * device/include/8052.h,
7165         * device/include/at89S8252.h,
7166         * device/include/at89c55.h,
7167         * device/include/at89x051.h,
7168         * device/include/at89x51.h,
7169         * device/include/at89x52.h,
7170         * device/include/mcs51reg.h,
7171         * device/include/reg51.h,
7172         * device/include/reg764.h,
7173         * device/include/regc515c.h,
7174         * device/include/sab80515.h: (re)moved these 12 files
7175         * device/include/mcs51/8051.h,
7176         * device/include/mcs51/8052.h,
7177         * device/include/mcs51/at89S8252.h,
7178         * device/include/mcs51/at89c55.h,
7179         * device/include/mcs51/at89x051.h,
7180         * device/include/mcs51/at89x51.h,
7181         * device/include/mcs51/at89x52.h,
7182         * device/include/mcs51/mcs51reg.h,
7183         * device/include/mcs51/reg51.h,
7184         * device/include/mcs51/reg764.h,
7185         * device/include/mcs51/regc515c.h,
7186         * device/include/mcs51/sab80515.h: and added them here
7187
7188 2005-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
7189
7190         * device/include/stdarg.h: changed SDCC specific keywords to double
7191           underlined form.
7192         * device/include/stdint.h: changed intptr_t and uintptr_t for others than
7193           mcs51 and ds390.
7194         * device/include/hc08/mc68hc908gp32.h,
7195         * device/include/hc08/mc68hc908jb8.h,
7196         * device/include/hc08/mc68hc908jkjl.h,
7197         * device/include/hc08/mc68hc908qy.h: fixed comments
7198         * device/include/mcs51/README: updated
7199         * device/include/mcs51/c8051f120.h: added PINRSF
7200         * device/lib/pic16/libc/stdlib/crc16.c: fixed comments
7201         * src/pic16/pcode.c: MSVC6 doesn't accept declaring new variables
7202           amidst code. Also inline is not supported.
7203
7204 2005-04-06 Raphael Neider <rneider AT web.de>
7205
7206         * src/pic16/pcode.c (pic16_pCodeReplace): also update pcflow->end
7207         * (createDefmap): fixed CALLs to depend on FSR1 and RETLW to restore
7208           callers stack/frame pointers
7209
7210 2005-04-06 Vangelis Rokas <vrokas AT users.sourceforge.net>
7211
7212         * device/include/pic16/usart.h: added, missing in previous commit,
7213         * device/include/pic16/adc.h: fixed typo,
7214         * device/lib/pic16/libc/utils/cvtdec.S: added missing in previous
7215         commit,
7216         * device/lib/pic16/libc/stdlib/g_ftoa.S: modified to include
7217         <p18fxxx.inc>
7218         * device/lib/pic16/libc/stdio/streams.c: leave stdin, stdout
7219         uninitialized because a bug appears with gplink
7220         * device/lib/pic16/{some makefiles}: moved $(CSTD) from CFLAGS to
7221         COMPILE_FLAGS and added CPPFLAGS with -nostdinc because sdcpp
7222         complains for unrecognised option
7223
7224 2005-04-05 Raphael Neider <rneider AT web.de>
7225
7226         * src/pic16/gen.c (pic16_popCopyReg): made copying work for extended
7227           structs as well (using memcpy)
7228         * (genFunction): fixed comparison, used pCodeOpLabel to reduce warning
7229           on ISRs (GOTO has no label)
7230         * src/pic16/device.h: added OF_OPTIMIZE_DF
7231         * src/pic16/main.c: added compiler switch --optimize-df to enable the
7232           new data flow analysis/optimization
7233         * src/pic16/pcode.c: added (prototypes for and implementation of)
7234           dataflow analysis functions, fixed pCodeInstructions' inCond and
7235           outCond values, made RCALL a branch instruction
7236         * (pic16_unlinkpCode): keep C line if possible
7237         * (pic16_pCodeUnlink): removed cast on left side of assignment, have
7238           C line moved if possible
7239         * (pic16_getRegFrompCodeOp): NEW, improved version of...
7240         * (pic16_getRegFromInstruction,pic16_getRegFromInstruction2): changed
7241           to use new pic16_getRegFrompCodeOp (works for more SFRs)
7242         * (pic16_BuildFlow): fixed skip instructions with label (did not start
7243           new flow)
7244         * (pic16_getJumptabpCode): NEW, needed in...
7245         * (LinkFlow): fixed handling of jumptables, calls and conditional
7246           branches
7247         * (pic16_InsertCommentAfter): NEW
7248         * (pic16_pCodeReplace): made verbose and flow preserving
7249         * (AnalyzeFlow): added call to data flow analysis
7250         * src/pic16/pcode.h: added defmaps to pCodeFlow struct
7251         * src/pic16/pcodeflow.h: added PCC_STATUS to mean all STATUS bits
7252         * src/pic16/ralloc.c (packRegsForAssign): added return 1 in the end
7253
7254 2005-04-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7255
7256         * src/SDCCast.c (decorateType): fixed bug #1105626
7257
7258 2005-04-02 Vangelis Rokas <vrokas AT users.sourceforge.net>
7259
7260         * device/include/asm/pic16/features.h,
7261         * pic18f*.h headers,
7262         * device/include/pic16/adc.h,
7263         * device/include/pic16/delay.h,
7264         * device/include/pic16/i2c.h,
7265         * device/include/pic16/malloc.h,
7266         * device/include/pic16/stdio.h,
7267         * device/include/pic16/stdlib.h,
7268         * device/include/pic16/string.h,
7269         * device/lib/pic16/libc/stdio/printf_tiny.c,
7270         * device/lib/pic16/libc/stdio/printf_small.c,
7271         * device/lib/pic16/libc/stdio/strmgpsim.c,
7272         * device/lib/pic16/libc/stdio/strmmssp.c,
7273         * device/lib/pic16/libc/stdio/strmusart.c,
7274         * device/lib/pic16/libc/stdio/vfprintf.c,
7275         * device/lib/pic16/libc/stdlib/ltoa.c,
7276         * device/lib/pic16/libc/stdlib/putchar.c,
7277         * device/lib/pic16/libc/stdlib/x_ftoa.c,
7278         * device/lib/pic16/libc/stdlib/memchrpgm.c,
7279         * device/lib/pic16/libc/stdlib/memchrram.c,
7280         * device/lib/pic16/libc/stdlib/memcpypgm2ram.c,
7281         * device/lib/pic16/libc/stdlib/memcpyram2ram.c,
7282         * device/lib/pic16/libio/adc/adcbusy.c,
7283         * device/lib/pic16/libio/adc/adcread.c,
7284         * device/lib/pic16/libio/adc/adcsetch.c,
7285         * device/lib/pic16/libio/usart/ubaud.c,
7286         * device/lib/pic16/libio/usart/ubusy.c,
7287         * device/lib/pic16/libio/usart/udrdy.c,
7288         * device/lib/pic16/libio/usart/uopen.c,
7289         * device/lib/pic16/libio/usart/uputc.c,
7290         * device/lib/pic16/libsdcc/gptr/gptrget1.c,
7291         * device/lib/pic16/libsdcc/gptr/gptrget2.c,
7292         * device/lib/pic16/libsdcc/gptr/gptrget3.c,
7293         * device/lib/pic16/libsdcc/gptr/gptrget4.c,
7294         * device/lib/pic16/libsdcc/gptr/gptrput1.c,
7295         * device/lib/pic16/libsdcc/gptr/gptrput2.c,
7296         * device/lib/pic16/libsdcc/gptr/gptrput3.c,
7297         * device/lib/pic16/libsdcc/gptr/gptrput4.c: modified all SDCC
7298         specific keywords to double underlined form,
7299         * device/lib/pic16/libc/Makefile.rules,
7300         * device/lib/pic16/libsdcc/Makefile.rules,
7301         * device/lib/pic16/libm/Makefile,
7302         * device/lib/pic16/libio/Makefile.rules: added CSTD macro in CFLAGS
7303         to compile with C standard set in Makefile.common
7304         * device/lib/pic16/libc/stdlib/Makefile: added new C sources
7305         rand.c and crc.c in compilation process,
7306         * device/lib/pic16/libsdcc/int/divuint.c,
7307         * device/lib/pic16/libsdcc/long/divulong.c: changed declaration of
7308         `c' from signed to unsigned,
7309         * device/lib/pic16/startup/crt0.c,
7310         * device/lib/pic16/startup/crt0i.c,
7311         * device/lib/pic16/startup/crt0iz.c: adopted to all SDCC specific
7312         keywords to double underlined form, bug fixes in _do_cinit function
7313         which prevented the correct initialization of the .idata segment,
7314         * src/pic16/pcoderegs.c (insideLRBlock): fixed a bug that caused the
7315         core to enter a infinite loop
7316         * device/lib/pic16/libc/stdlib/rand.c, crc.c: new files
7317
7318 2005-04-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7319
7320         * src/SDCCicode.c (getArraySizePtr): fixed bug #1122171
7321
7322 2005-04-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7323
7324         * device/include/Makefile.in: add support for hc08 subdirectory
7325         * device/include/hc08/: new subdirectory
7326         * device/include/hc08/mc68hc908jkjl.h: new header contributed by
7327         Lucas Loizaga, thanks!
7328         * device/include/hc08/mc68hc908qy.h,
7329         * device/include/hc08/mc68hc908gp32.h,
7330         * device/include/hc08/mc68hc908jb8.h: moved hc08 register defs to
7331         their own directory. Changed internal macro names to use the compiler
7332         reserved namespace. Changed SDCC specific keywords to double
7333         underlined form.
7334         * device/include/math.h,
7335         * device/include/malloc.h,
7336         * device/include/stdarg.h,
7337         * device/include/stdbool.h
7338         * device/include/string.h,
7339         * device/include/tinibios.h,
7340         * device/include/ds400rom.h,
7341         * device/include/8051.h,
7342         * device/include/8052.h,
7343         * device/include/80c51xa.h,
7344         * device/include/at89c55.h,
7345         * device/include/at89S8252.h,
7346         * device/include/at89x51.h,
7347         * device/include/at89x52.h,
7348         * device/include/ds80c390.h,
7349         * device/include/reg764.h,
7350         * device/include/regc515c.h,
7351         * device/include/sab80515.h,
7352         * device/include/mcs51/c8051f000.h,
7353         * device/include/mcs51/c8051f018.h,
7354         * device/include/mcs51/c8051f020.h,
7355         * device/include/mcs51/c8051f040.h,
7356         * device/include/mcs51/c8051f060.h,
7357         * device/include/mcs51/c8051f120.h,
7358         * device/include/mcs51/c8051f300.h,
7359         * device/include/mcs51/c8051f310.h,
7360         * device/include/mcs51/c8051f320.h,
7361         * device/include/mcs51/c8051f330.h,
7362         * device/include/mcs51/c8051f350.h,
7363         * device/include/z180.h: Changed SDCC specific keywords to double
7364         underlined form.
7365
7366 2005-03-31 Vangelis Rokas <vrokas AT users.sourceforge.net>
7367
7368         * src/pic16/device.c (Pics16[]): added devices 18F2550, 18F4331,
7369         18F4455,
7370         * (pic16_assignConfigWordValue): disable testing of configuration
7371         register value with config mask,
7372         * src/pic16/gen.c (pic16_testStackOverflow): prefix stack test
7373         function with port->fun_prefix,
7374         * (genFunction): when generating a naked interrupt function never
7375         create an absolute segment placed in interrupt vector address, place
7376         the actual interrupt function at IVA instead, when an interrupt
7377         function is generated with unspecified interrupt then do not create
7378         the absolute section,
7379         * (genGenPointerGet, genGenPointerSet, genPackBits): replace all
7380         code for generating a call to generic pointer get/put function with
7381         a call to function pic16_callGenericPointer(),
7382         * src/pic16/genutils.c (pic16_callGenericPointerRW): NEW, generates
7383         the call to the generic pointer get/put functions with prefixing the
7384         function name with port->fun_prefix,
7385         * src/pic16/glue.c (pic16glue): ifdef-out test of OF_LR_SUPPORT,
7386         * src/pic16/main.c (_process_pragma): prefix function with
7387         port->fun_prefix,
7388         * (_pic16_finaliseOptions): define macro __18Fxxxx macro when
7389         calling assembler, old 18Fxxxx macro is deprecated,
7390         * src/pic16/pcode.c (unlinkpCodeFromBranch): added PC_INLINE and
7391         PC_ASMDIR in while condition,
7392         * (findInstruction): add PC_ASMDIR in while condition,
7393         * (buildCallTree): prefix main with port->fun_prefix,
7394         * (pic16_pCode2str): fixed bug that didn't emit the memory access
7395         identifier for variable with banked access in instructions BTFSS,
7396         BTFSC, BCF, BSF, BTG
7397         * (AnalyzeFlow): moved call to OptimizepCode to pic16_AnalyzeBanking,
7398         * src/pic16/pcodepeep.c (pCodeOpCompare): increase size of b to 1024,
7399         * src/pic16/pcoderegs.c (pic16_pCodeRegoptimizeRegUsage): don't
7400         perform optimization when enviroment variable NO_REG_OPT is set,
7401         * (insideLRBlock): NEW, return 1 if register is inside an
7402         INF_LOCALREGS block,
7403         * (RemoveRegFromLRBlock): remove a register that is completely
7404         eliminated by register optimization, but it is still left in local
7405         register store/restore in/from stack block,
7406         * (Remove2pcodes): after removing register, check to see if it
7407         should be removed from local register store/restore in/from stack
7408         block,
7409         * src/pic16/ralloc.c (pic16_decodeOp): added decode for
7410         DUMMY_READ_VOLATILE,
7411
7412         * device/include/pic16/adc.h: minor prototype modifications and
7413         update,
7414         * device/include/pic16/malloc.h: added GPL notice various
7415         modifications,
7416         * device/include/pic16/stdint.h: NEW, standard header for ints
7417         * device/include/pic16/delay.h: NEW, header for delay functions,
7418         delay10tcy, delay100tcy, delay1ktcy, delay10ktcy, delay100ktcy,
7419         delay1mtcy,
7420         * device/include/pic16/signal.h: NEW, header providing helper macros
7421         for implementing signal handlers,
7422         * device/include/pic16/stdio.h: added prototypes for functions,
7423         printf, vprintf, sprintf, vsprintf, fprintf, vfprintf. Added
7424         prototypes for stdin and stdout, added macro PUTCHAR to
7425         automatically implement putchar function prototype,
7426         * device/include/pic16/usart.h: modified and updated USART library,
7427         * device/lib/pic16/libio/adc/,
7428         * device/lib/pic16/libio/i2c: some modifications to improve library
7429         performance,
7430         * device/lib/pic16/libc/stdio/: modifications for the new printf*
7431         family of functions,
7432         * device/lib/pic16/libc/stdlib/: various modifications in the malloc
7433         family of functions and other sources,
7434         * device/lib/pic16/libio/usart/: NEW, c sources for the usart module
7435         of the PIC18Fxx[28] devices,
7436         * device/lib/pic16/libc/delay/: NEW, c sources for the delay functions,
7437         * device/lib/pic16/libc/utils/: minor modifications in the .S sources,
7438         * device/lib/pic16/startup/{crt0i.c, crt0iz.c}: redesign of the
7439         _do_cinit function, because the previous failed when local variables
7440         where not placed in the same memory bank,
7441         * device/lib/pic16/libsdcc/char/: various modifications to improve
7442         library performance,
7443         * doc/sdccman.lyx: some reorganization of the PIC16 part, added many
7444         information on the new functions of the c library and more...
7445
7446 2005-03-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7447
7448         * src/SDCCBBlock.c (iCodeBreakDown): fixed bug #1170212
7449
7450 2005-03-26 Raphael Neider <rneider AT web.de>
7451
7452         * src/pic16/gen.c (genSkipc): fixed semantics (execute branch
7453           if condition == CARRY)
7454         * (genCmp): adapted to new genSkipc semantics
7455         * src/pic16/genutils.c (pic6_genCmp_special): removed side effect
7456           on rIfx (genCmp was broken)
7457
7458 2005-03-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7459
7460         * src/SDCCmain.c (setDefaultOptions, optionsTable[], parseCmdLine),
7461         * src/z80/main.c (_keywords[]),
7462         * src/SDCCglobal.h (struct options),
7463         * src/SDCC.y,
7464         * src/SDCC.lex (isTargetKeyword, doPragma, pragma_tbl[]): new pragmas
7465         to enable/disable SDCC and C99 extensions/keywords (std_c89, std_sdcc89,
7466         std_c99, std_sdcc99). Also, equivalent command line options (--std-c89,
7467         --std-sdcc89, --std-c99, --std-sdcc99). SDCC specific keywords are
7468         always available in leading double underscore form. The C99 support is
7469         mostly missing, but it's a start.
7470         * support/regression/tests/bug-227710.c: fixed nonconforming use of
7471         reserved identifier "__data".
7472
7473 2005-03-24 Maarten Brock <sourceforge.brock AT dse.nl>
7474
7475         * src/mcs51/peeph.def: fixed bug 1170013
7476
7477 2005-03-22 Maarten Brock <sourceforge.brock AT dse.nl>
7478
7479         * device/include/mcs51reg.h: fixed bug 842007
7480
7481 2005-03-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7482
7483         * src/SDCCcflow.c (dfNumCompare): committed the wrong version of this
7484         last time.
7485
7486 2005-03-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7487
7488         * src/port.h (struct PORT),
7489         * src/avr/ralloc.c (avr_assignRegisters),
7490         * src/avr/main.c,
7491         * src/ds390/ralloc.c (ds390_assignRegisters),
7492         * src/ds390/main.c,
7493         * src/hc08/ralloc.c (hc08_assignRegisters),
7494         * src/hc08/main.c,
7495         * src/mcs51/ralloc.c (mcs51_assignRegisters),
7496         * src/mcs51/main.c,
7497         * src/pic/ralloc.c (pic14_assignRegisters),
7498         * src/pic/main.c,
7499         * src/pic16/ralloc.c (pic16_assignRegisters),
7500         * src/pic16/main.c,
7501         * src/xa51/ralloc.c (xa51_assignRegisters),
7502         * src/xa51/main.c,
7503         * src/z80/ralloc.c (z80_assignRegisters),
7504         * src/z80/ralloc.h,
7505         * src/SDCCopt.c (eBBlockFromiCode, replaceRegEqv, killDeadCode),
7506         * src/SDCCcse.c (ifxOptimize, cseBBlock, cseAllBlocks),
7507         * src/SDCCcse.h,
7508         * src/SDCCdflow.c (computeDataFlow),
7509         * src/SDCCdflow.h,
7510         * src/SDCCloop.c (addDefInExprs, loopInvariants, loopOptimizations),
7511         * src/SDCCloop.h,
7512         * src/SDCCcflow.c (*),
7513         * src/SDCCcflow.h,
7514         * src/SDCCBBlock.c (iCodeBreakDown, dumpEbbsToFileExt, eBBWithEntryLabel),
7515         * src/SDCCBBlock.h (struct ebbIndex): new struct that keeps two copies
7516         of the eBBlock list, sorted by both bbnum and dfnum. (fixes bug with
7517         immedDom() returning wrong block; probably fixes bug #1160833)
7518
7519 2005-03-20 Borut Razem <borut.razem AT siol.net>
7520
7521         * support/scripts/inc2h.pl: WIN32 port
7522
7523 2005-03-19 Maarten Brock <sourceforge.brock AT dse.nl>
7524
7525         * device/lib/makefile.in: added abs.c and labs.c
7526
7527 2005-03-17 Maarten Brock <sourceforge.brock AT dse.nl>
7528
7529         * device/include/stdint.h: added
7530         * device/lib/abs.c: added
7531         * device/lib/labs.c: added
7532         * device/include/stdlib.h: added abs() and labs() prototypes
7533         * device/lib/libsdcc.lib: added abs and labs
7534         * device/include/float.h,
7535         * device/lib/_fsmul.c,
7536         * device/lib/printf_fast.c,
7537         * device/lib/printf_tiny.c: updated comments
7538
7539 2005-03-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7540
7541         * src/SDCCicode.c (geniCodeSwitch, geniCodeJumpTable): fixed
7542         bug #1164313
7543
7544 2005-03-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7545
7546         * src/SDCCcse.c (cseBBlock): retain assignment to self when volatile
7547         * src/SDCCast.c (isLoopCountable): fixed bug #1161985
7548
7549 2005-03-15 Maarten Brock <sourceforge.brock AT dse.nl>
7550
7551         * device/lib/printf_large.c: removed inline assembly for portability and
7552           readability. Use printf_fast if speed or size are more important.
7553         * src/pic16/gen.c: removed conditions around use of DEBUGpc
7554         * src/pic16/genutils.h: added define for DEBUGpc for MSVC
7555
7556 2005-03-15 Vangelis Rokas <vrokas AT users.sourceforge.net>
7557
7558         * src/pic16/genutils.c (pic16_genCmp_special): initialized offs to
7559         prevent compiler warning
7560
7561 2005-03-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
7562
7563         * device/lib/pic16/startup/crt0i.c (_cinit): local variables where
7564         moved to level 0 and declared as static. Also they are explicit
7565         placed in access bank. This was necessery because some times they
7566         might cross memory bank boundaries. crt0iz.c is *NOT* updated!!!
7567         * src/pic16/device.h: added flag OPTIMIZE_CMP to enable some compare
7568         optimizations. Currently only compare to unsigned char is implemented,
7569         * src/pic16/gen.c: added fReturnIdx array,
7570         * (struct resolvedIfx) is moved to gen.h and made public,
7571         * (struct _G): added sregsAlloc and sregsAllocSet fields,
7572         * (aopForSym): added an optimization to directly store in stack of
7573         the operand of a SEND iCode,
7574         * (pic16_aopOp): don't return return registers as strings (AOP_STR)
7575         but as registers instead (AOP_REG) using the fReturnIdx array,
7576         * (pic16_freeAsmop): remove the freed register from the
7577         _G.sregsAlloc field,
7578         * (pic16_aopGet): in case AOP_STR, the compare to 'a' is changed to
7579         a compare of 'WREG',
7580         * (pic16_popGetTempRegCond): changed function prototype, now
7581         function takes also a bitVector argument v which holds the current
7582         set of registers that are allocated for stack access by aopForSym,
7583         registers allocated in aopForSym for accessing stack symbols are not
7584         any more part of the functions usedRegs field,
7585         * (genCall): some times aopOp is called for a stack variable to be
7586         send, aopForSym might perform the push, if this is true make sure
7587         that genCall doesn't push the variable twice by testing _G.resDirect,
7588         * (genFunction): changed testing for unspecified interrupt number
7589         from 256 to INTNO_UNSPEC,
7590         * modified selection scheme of frame pointer generation. Previously
7591         if function did use local registers a frame pointer was generated,
7592         now a frame pointer is generated only if function has arguments
7593         (that need PLUSW2 register access), or has stack arguments, or the
7594         compiler is not instructed to omit the frame pointer,
7595         * (genEndFunction): before restoring local registers that were saved
7596         in the function preamble, also restore the registers that *might*
7597         have been allocated for stack access,
7598         * (genRet): removed some old comments,
7599         * (genCmp, the active (RN's) version): added a call to the
7600         pic16_genCmp_special function to perform the compare with a more
7601         robust and optimized way,
7602         * (genInline): a feature has been added in inline code generation,
7603         which allows a wildcard variable substitution when writing inline
7604         assembly. Code is incomplete and experimental therefore undocumented,
7605         * (genCast): changed order of aopOp for result and right to allow
7606         aopForSym to directly load the result if possible,
7607         * src/pic16/genutils.c (selectCompareOp, pic16_genCmp_special): NEW,
7608         perform an optimized compare on some selected special occasions,
7609         * src/pic16/genutils.h: declaration of resolvedIfx structure from gen.c,
7610         * src/pic16/glue.c (pic16createInterrupVect): make sure we never
7611         generate an IVT any more,
7612         * src/pic16/main.c (pic16_optionsTable): added command line option
7613         --optimize-cmp,
7614         * (_pic16_initPaths): when calling C preprocessor define pic18fXXXX
7615         macro too, when calling assembler define pic18fXXXX *and* __18Fxxxx
7616         macros,
7617         * src/pic16/NOTES: Raphael Neider added in list of active developers
7618         * src/pic16/pcode.c (OPT_TYPE_STR): added strings jumptable_begin and
7619         jumptable_end to prevent bug #,
7620         * (pic16_pciADDWFC, ADDFWC, COMF, CLRF): added some missing flags in
7621         inCond and outCond fields,
7622         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): add a fix for bug #,
7623         * src/pic16/ralloc.c (serialRegAssign): explicit set willCS to 0 to
7624         turn off register spilling,
7625         * (packRegsForOneUse): synced with other ports' versions although it
7626         is not used currently,
7627         * (pic16_packRegisters): added an optimization while reading
7628         structure bitfields, some registers may be saved (malloc code is
7629         decreased by 80 bytes)
7630
7631 2005-03-12 Vangelis Rokas <vrokas AT users.sourceforge.net>
7632
7633         * src/SDCCcse.c (cseBBlock): inside 'do operand lookup' loop test if
7634         left is a bitfield, if yes, then don't optimize assignment. Perhaps
7635         this can be optimized more?
7636
7637 2005-03-10 Raphael Neider <rneider AT web.de>
7638
7639         * src/pic16/gen.c (pic16_loadFSR0, genPackBits, genUnpackBits,
7640           genNearPointerGet): (hopefully) fixed access to bitfields via
7641           pointers (p->bitN = x; and x = p->bitN; failed)
7642
7643 2005-03-09 Paul Stoffregen <paul AT pjrc.com>
7644
7645         * device/lib/printf_fast.c: fix leading zero format, eg "%02d"
7646
7647 2005-03-09 Raphael Neider <rneider AT web.de>
7648
7649         * src/SDCCopt.c (killDeadCode): fixed bug #1156016
7650
7651 2005-03-06 Maarten Brock <sourceforge.brock AT dse.nl>
7652
7653         * src/SDCCicode.h: moved CRITICAL and ENDCRITICAL from SKIP_IC2 to SKIP_IC
7654         * src/mcs51/ralloc.c (willCauseSpill): added check for REG_BIT type,
7655           (regTypeNum): set REG_BIT type if necessary
7656         * src/mcs51/ralloc.h: added define REG_BIT, used to fix bug 1144613
7657         * support/regression/tests/critical.c: check bug 1144613
7658
7659 2005-03-02 Raphael Neider <rneider AT web.de>
7660
7661         * src/pic16/gen.c (genRightShiftLiteral): fixed bug #1154256
7662
7663 2005-02-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7664
7665         * src/avr/ralloc.c (serialRegAssign),
7666         * src/ds390/ralloc.c (serialRegAssign),
7667         * src/hc08/ralloc.c (serialRegAssign),
7668         * src/mcs51/ralloc.c (serialRegAssign),
7669         * src/pic/ralloc.c (serialRegAssign),
7670         * src/pic16/ralloc.c (serialRegAssign),
7671         * src/xa51/ralloc.c (serialRegAssign),
7672         * src/z80/ralloc.c (serialRegAssign): fixed bug #1105154
7673
7674 2005-02-22 Maarten Brock <sourceforge.brock AT dse.nl>
7675
7676         * src/SDCCast.c (decorateType): fixed bug 1124787
7677
7678 2005-02-20 Hubert Sack <sack AT digiplan.de>
7679         committed by Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7680
7681         * src/mcs51/peeph.def: added peepholes 3.h-k and 132.a-f from
7682         patch #1121755
7683
7684 2005-02-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7685
7686         * src/SDCCpeeph.def: new keyword "labelRefCountChange" which allows peepholes
7687         to keep the correct label reference count when adding/removing references
7688         to labels. A peephole file using this is appended to patch #1144962.
7689
7690 2005-02-14 Raphael Neider <rneider AT web.de>
7691
7692         * device/lib/pic16/libc/string/memccpy.c: changed 3rd argument to char
7693         * src/SDCC.lex (process_pragma): fixed to make disable_warning work for PIC16
7694         * src/pic16/gen.c (aopForSym, calls to pic16_aopOp): prevent unneccessary
7695           retrievals of result operand's value on assignment
7696
7697 2005-02-13 Vangelis Rokas <vrokas AT otenet.gr>
7698
7699         * device/include/pic16/string.h: modified prototype for memccpy()
7700         to memccpy(void *, void *, char, size_t)
7701         * src/pic16/gen.c (genFunction, genEndFunction): reenable if-case to
7702         check whether to omit frame pointer or not,
7703         * (genInline): convert all occurences of "\n" to LF in inline
7704         assembler blocks, this helps formatting the inline text,
7705         * (pic16_loadFSR0): modified prototype,
7706         * (genNearPointerGet, genNearPointerSet): reorganization of code,
7707         removed some 8051 legacy code,
7708         * (genPackBits): enabled handling bitfields exceeding one byte in size,
7709         * src/pic16/ralloc.c (pic16_assignRegisters): clear dynrIdx variable
7710         before allocating temporary registers in functions,
7711
7712 2005-02-11 Maarten Brock <sourceforge.brock AT dse.nl>
7713
7714         * support/regression/tests/bitvars.c: corrected the "fix"
7715
7716 2005-02-10 Maarten Brock <sourceforge.brock AT dse.nl>
7717
7718         * support/regression/tests/bitvars.c,
7719         * support/regression/tests/bitwise.c,
7720         * support/regression/tests/rotate.c: "fixed" problems on Alpha
7721
7722 2005-02-10 Raphael Neider <rneider AT web.de>
7723
7724         * src/pic16/pcode.c (assignToSameBank) : fixed cast to pointer of
7725           different size for Alpha
7726         * src/pic16/gen.c (genCmpEq) : improved compare with 0
7727
7728 2005-02-09 Raphael Neider <rneider AT web.de>
7729
7730         * src/SDCC.lex(doPragma) : save and restore warning options as well
7731           (also added new stack plus clone- and copyAndFreeSDCCERRG())
7732         * have #pragma less_pedantic set the errorlevel to WARNING
7733           (fixes #1117001)
7734         * (cloneOptimize) : fixed wrong malloc's size
7735         * support/Util/SDCCerr.[ch] : made SDCCERRG globally accessible to
7736           facilitate correct handling of #pragma (save|restore)
7737
7738 2005-02-09 Maarten Brock <sourceforge.brock AT dse.nl>
7739
7740         * src/mcs51/gen.c: removed non-standard C nameless struct/union
7741
7742 2005-02-04 Slade Rich <slade_rich AT users.sourceforge.net>
7743
7744         * src/pic/gen.c : Fix for bugs #1080519 & #1115662.
7745
7746 2005-02-03 Maarten Brock <sourceforge.brock AT dse.nl>
7747
7748         * device/include/mcs51/c8051f120.h: added declarations for sbit port 2,3&4
7749
7750 2005-02-02 Raphael Neider <rneider AT web.de>
7751
7752         * src/SDCCast.c (processParms): disabled W_NONRENT_ARGS for pic16 port
7753         * src/pic16/gen.c (aopForSym): reenabled special case for function pointers
7754         * (pic16_storeForReturn): fixed to allow returning function pointers
7755         * (genPackBits): improved accessing full bytes, implemented for GPOINTERs
7756         * device/include/pic16/{stddef.h,stdbool.h}: added
7757
7758 2005-02-02 Maarten Brock <sourceforge.brock AT dse.nl>
7759
7760         * device/include/mcs51/c8051f040.h: added define CPT2_PAGE
7761
7762 2005-02-01 Slade Rich <slade_rich AT users.sourceforge.net>
7763
7764         * src/pic16/pic16.dsp : Added file graph.c to make it compile under windows
7765         * src/pic16/Makefile.bcc : Do not use this file but added file graph.c as it
7766          appeared to be required
7767
7768 2005-01-31 Borut Razem <borut.razem AT siol.net>
7769
7770         * support/scripts/sdcc.nsi: added include/asm/ds390, include/asm/mcs51,
7771           include/mcs51 and include/z80 directories to the package
7772
7773 2005-01-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7774
7775         * src/hc08/gen.c (genFunction): fixed bug #1112752
7776
7777 2005-01-30 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7778
7779         * src/mcs51/peeph.def: adapted peephole 258.x to changed gen.c (genAnd)
7780
7781 2005-01-29 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7782
7783         * src/mcs51/gen.c (genAnd): accessing LSB/MSB by rotating acc
7784
7785 2005-01-29 Maarten Brock <sourceforge.brock AT dse.nl>
7786
7787         * device/include/Makefile.in: create/copy mcs51 and z80 include subdirs
7788
7789 2005-01-27 Maarten Brock <sourceforge.brock AT dse.nl>
7790
7791         * device/include/c8051fxxx.h: removed these 6 files
7792         * device/include/mcs51/c8051fxxx.h: added these 11 new files
7793
7794 2005-01-26 Raphael Neider <rneider AT web.de>
7795
7796         * src/pic16/gen.c (genAssign): fixed assignment from longs
7797           in codespace (were cut to three bytes)
7798         * (genDummyRead): implemented (except for CODESPACE...),
7799           fixed bug #1108575
7800         * src/pic16/glue.c (emitStatistics): beautified
7801         * device/lib/pic16/libm/Makefile: added include path
7802
7803 2005-01-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7804
7805         * src/z80/gen.c (aopPut): fixed bug #1103902
7806
7807 2005-01-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7808
7809         * device/lib/expf.c: fixed bug #1095792
7810
7811 2005-01-24 Vangelis Rokas <vrokas AT otenet.gr>
7812
7813         * device/lib/pic16/libm: added Math library sources
7814
7815 2005-01-24 Raphael Neider <rneider AT web.de>
7816
7817         * src/pic16/pcode.h: added second memory operand to pCodeOpReg
7818           to enable upcast to pCodeOpReg2 (there is no type tag to
7819           differenciate the two and pic16_popGet2p cast into PCOR2)
7820         * src/pic16/main.c (_process_pragma): fixed another malloc bug
7821           (sizeof(sectNames) changed to sizeof(sectName))
7822           Both patches fix segfaults under MinGW.
7823
7824 2005-01-23 Raphael Neider <rneider AT web.de>
7825
7826         * src/pic16/{device.c,pcode.c}: s/free/Safe_free/g for
7827           Safe_[mc]?alloc()'ed variables
7828         * src/pic16/gen.c (pic16_aopOp,pic16_popGet): added handling
7829           of (byte sized) temporaries (assign them to WREG for now)
7830         * src/pic16/main.c (_process_pragma): fixed nasty malloc bug
7831           (used sizeof(set *sectSyms) instead of sizeof(struct sectSym)),
7832           this might fix SIGSEGVs on MinGW...
7833         * src/SDCCopt.c (killDeadCode): restored original behaviour
7834           (volatile operands might get thrown away though)
7835
7836 2005-01-23 Vangelis Rokas <vrokas AT otenet.gr>
7837
7838         * src/pic16/gen.c: fixed bug #1106975,
7839         * src/pic16/gen.c: fixed possible bug #1102572, now during TOS
7840         pointer update, INTCON is saved, global interrupts are disabled and
7841         restored after updateing TOS.
7842         * src/SDCC.y, src/SDCC.lex, src/SDCCsymt.c, src/SDCCsymt.h:
7843         * added function attribute 'shadowregs' to take advantage of shadow
7844         registers,
7845         * added function attribute 'wparam' as an alternative to the wparam
7846         pragma,
7847         * support/Utils/SDCCerr.[ch]: added error E_SHADOWREGS_NO_ISR when
7848         user declares a non-ISR function as 'shadowregs',
7849         * doc/sdccman.lyx: updated to reflect recent changes of pic16 port
7850
7851 2005-01-22 Vangelis Rokas <vrokas AT otenet.gr>
7852
7853         * .version: bumped version number to 2.4.8
7854         * device/lib/pic16/pics.all: list of PIC18F devices supported by
7855         pic16 port,
7856         * device/lib/pic16/libio/i2c/: I2C module support library,
7857         * device/include/pic16/i2c.h: I2C support library header,
7858         * device/lib/pic16/libc/stdio/: standard IO support sources,
7859         * (printf_small.c): printf_small() source, supports float print,
7860         * (printf_tiny.c): printf_tiny() source, does not support floats,
7861         * device/lib/pic16/Makefile.common.in: added OPT_FLAGS macro to
7862         enable global optimizations for entire library source, other
7863         Makefiles in the source tree are also modified to reflect this,
7864         * device/lib/pic16/libc/stdlib/putchar.c (putchar): dummy putchar()
7865         function,
7866         * doc/sdccman.lyx: updated to reflect new changes,
7867         * src/pic16/gen.c (aopForSym): don't handle sym->iaccess in
7868         sym->onStack if-case,
7869         * src/pic16/main.c (_pic16_keywords): commented out keywords bit,
7870         sbit, idata, _idata, xdata, _xdata,
7871         * added pragma library, to link an external library, (see doc),
7872         * removed command line options, --pomit-config-words, --pomit-ivt,
7873         --pleave-reset-vector,
7874         * (pic16_finaliseOptions): when define macro SDCC_MODEL_{SMALL/LARGE}
7875         when calling assembler to reflect memory model used, also define
7876         macro STACK_MODEL_{SMALL/LARGE} when compiling and assembling to
7877         reflect stack model used,
7878         * src/pic16/ralloc.c (pic16_allocDirReg): when operand is allocated
7879         on stack return NULL,
7880
7881 2005-01-22 Daniel Winkler <post AT danielwinkler.de>
7882
7883         * src/SDCCopt.c (killDeadCode): do not throw iCodes away if one
7884           of the operands is volatile. Fixes #1020220
7885
7886 2005-01-22 Daniel Winkler <post AT danielwinkler.de>
7887
7888         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): reenabled optimization
7889         * (OptimizeRegUsage): make sure that there is really no other flow where
7890           the first pCode is used
7891
7892 2005-01-22 Raphael Neider <rneider AT web.de>
7893
7894         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): disabled optimization
7895           to fix #1106967 (pCode->seq are not set up correctly)
7896
7897 2005-01-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7898
7899         * src/SDCCglue.c (glue): make sure code area is declared before the
7900         static initialization area.
7901
7902 2005-01-21 Raphael Neider <rneider AT web.de>
7903
7904         * device/lib/Makefile.in: fixed test for pic16 install dir
7905         * device/lib/pic16/*/Makefile*: modified compile flags to enable
7906           optimizations
7907         * doc/sdccman.lyx: updated banksel optimization, removed --flr-support and
7908           added --optimize-goto compiler switch and pragma wparam documentation
7909         * src/pic16/pcode.c (pic16_OptimizeBanksel): removed statistics dump
7910         * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): fixed copying of WREG, PRODL
7911           and PRODH closing bug #1071770 (peephole optimizer)
7912
7913 2005-01-19 Raphael Neider <rneider AT web.de>
7914
7915         * src/SDCCglobl.h: ensure that PATH_MAX >= 2048 to guarantee
7916           cmdLine buffers (used when calling sdcpp...) are large enough
7917           (MAX_PATH=256 truncates arguments leading to system halts when
7918           used in MinGW...)
7919         * src/pic16/gen.c (pic16_sameRegs): relaxed size criterion
7920         * (genUminus): rewritten to for efficiency
7921         * (genNearPointer[GS]et): enforce reloading of FSR0 (was still
7922           used uninitialized in some cases)
7923         * (genCast): upcasting a 16bit int to a 24bit GPOINTER may not
7924           copy the third byte from the int -- now assumes 0x80 (data memory)
7925         * src/pic16/genarith.c (pic16_genPlus): fixed bug when swapping
7926           operands (genAddLit expects the iCode's operands to swapped as
7927           well), fixed leftover bytes (crashed for short left operands)
7928         * (pic16_genMinusDec): performance improvements, removed false
7929           PIC14 emitSKPNCs
7930         * (pic16_genMinus): fixed to cope with differently sized operands
7931         * src/pic16/glue.c (pic16_glue): added new banksel optimization
7932           for --obanksel > 1
7933         * src/pic16/pcode.c: implemented (first phase of) banksel optimization
7934         * src/pic16/graph.[ch]: implementation of directed graphs, used by
7935           new banksel optimization
7936         * src/pic16/pcoderegs.c (pCodeRegMapLiveRangesInFlow): prevented
7937           analysis for temporary registers (segfaults...)
7938         * src/pic16/peeph.def: added rule
7939
7940 2005-01-18 Vangelis Rokas <vrokas AT otenet.gr>
7941
7942         * device/lib/pic16/libc/stdlib/x_ftoa.c: it defines x_ftoa function
7943         which converts a float number to its ASCII representation
7944         * device/lib/pic16/libc/utils/cnvfrac.S,cnvint.S: support
7945         functions to convert the fractional and integer part of a float to ASCII,
7946         * device/lib/pic16/libc/stdlib/(calloc.c,free.c, malloc.c,
7947         realloc.c): added _MALLOC_SPEC to explicit place variables in data
7948         ram
7949         * device/include/asm/pic16/features.h: added _CODE, _DATA, _AUTOMEM,
7950         _STATMEM macros,
7951         * device/include/pic16/adc.h: added GPL info,
7952         * src/pic16/gen.c (genIfxpCOpJump): perform an genIfxJump but using
7953         a pCodeOp as tested operand,
7954         * (genNearPointerGet): optimized bit testing, does not use
7955         intermediate register for bit value, test directly instead with
7956         BTFSS, BTFSC, works only for single bits,
7957         * (genpic16Code): dump the name of the iCode in the asm,
7958         * src/pic16/ralloc.c (decodeOp): removed static declaration and
7959         renamed to pic16_decodeOp,
7960         * (serialRegAssign): do not allocate a temporary register for iCode
7961         sequences that test a single bit for 1/0
7962
7963 2005-01-12 Vangelis Rokas <vrokas AT otenet.gr>
7964
7965         * src/pic16/pcode.[ch]: introduced pic16_stackpnt_*,
7966         pic16_framepnt_*, pic16_stack_*, pic1_frame_* pointer variables to
7967         access stack and frame pointers. They are initially assigned to
7968         point at pic16_pc_fsr1[lh] and pic16_pc_fsr2[lh] variables and other
7969         accessing SFRs. Updated all occurences of modification of stack or
7970         frame pointer in gen.c and pcode.c,
7971         * src/pic16/ralloc.c (serialRegAssign): fixed two bugs with
7972         assigning of a literal value to pointers,
7973         * src/pic16/main.c (pic16_finiliseOptions): set pre-processor define
7974         flag STACK_MODEL_SMALL or STACK_MODEL_LARGE according to the model
7975         selected
7976
7977 2005-01-11 Vangelis Rokas <vrokas AT otenet.gr>
7978
7979         * doc/sdccman.lyx: update documentation about stack pragma, added
7980         some info for stack memory models
7981
7982 2005-01-08 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7983
7984         * src/pic16/gen.c (DEBUGpc): MSVC 6 does not support macro variable arguments
7985
7986 2005-01-08 Raphael Neider <rneider AT web.de>
7987
7988         * src/pic16/device.c (pic16_dump_usection): changed naming scheme for
7989           udata sections to fix bug #1097823
7990
7991 2005-01-05 Raphael Neider <rneider AT web.de>
7992
7993         * src/pic16/gen.c (genGenericShift): added handling of differently
7994           sized left operand and result
7995
7996 2005-01-04 Raphael Neider <rneider AT web.de>
7997
7998         * src/pic16/gen.c (genIfxJump): fixed inverted skips on CARRY
7999         * (genIfx): fixed (?) read from uninitialized SPIL_LOC (now assumes CARRY
8000           to hold the condition bit)
8001         * added new version of genCmp (old code available via #define)
8002         * added new version of genShiftLeft/genShiftRight in a generic
8003           way, now supports shifting by negative values
8004         * (genLeftShiftLiteral, genRightShiftLiteral): use absolute value of
8005           shiftCount (expected by genGenericShift)
8006         * src/pic16/genarith.c (genPlus): added code for adding CARRY+literal
8007         * src/pic16/pcode.c (pic16_OptimizeJumps): removed annoying statistics
8008           dump
8009         * (pic16_newpCodeOpLit): changed to cast to unsigned char (as e.g. -32766
8010           is an invalid literal too...)
8011
8012 2005-01-04 Vangelis Rokas <vrokas AT otenet.gr>
8013
8014         * src/pic16/gen.c (aopForSym, genEndFunction): applied some fixes
8015         from Raphael Neider,
8016         * src/pic16/pcode.c (pic16_newpCodeOpLit): removed casting to char
8017         for 8-bit literals. This fixes some literal operands which are sign
8018         extended to 16-bits ints when instruction needs only 8-bits.
8019
8020 2004-12-31 Paul Stoffregen <paul AT pjrc.com>
8021
8022         * device/lib/logf.c: added mcs51 assembly version
8023         * device/lib/expf.c: added mcs51 assembly version
8024         * device/lib/_logexpf.c: new shared asm code for expf and logf
8025         * device/include/math.h: add defines for assembly math library
8026         * device/lib/Makefile.in: build new _logexpf.c
8027         * device/lib/libfloat.lib: use new _logexpf.c
8028
8029 2004-12-29 Slade Rich <slade_rich AT users.sourceforge.net>
8030
8031         * src/pic/device.c
8032         * src/pic/pcode.c : adjusted internal stack and pre-allocated registers for
8033           device types which have less than 0x7f registers.
8034
8035 2004-12-29 Slade Rich <slade_rich AT users.sourceforge.net>
8036
8037         * src/pic/genarith.c : Fixed problem with subtraction where the result would not be updated when borrowing.
8038
8039 2004-12-28 Paul Stoffregen <paul AT pjrc.com>
8040
8041         * device/lib/printf_fast.c: only build on supported arch.
8042         * device/lib/printf_tiny.c: only build on supported arch.
8043         * device/lib/printf_fast_f.c: only build if asm float lib
8044         * device/lib/_fsget1arg.c: only build if asm float lib
8045         * device/lib/_fsget2args.c: only build if asm float lib
8046         * device/lib/_fsnormalize.c: only build if asm float lib
8047         * device/lib/_fsreturnval.c: only build if asm float lib
8048         * device/lib/_fsrshift.c: only build if asm float lib
8049         * device/lib/_fsswapargs.c: only build if asm float lib
8050         * device/include/stdio.h: don't provide print_fast,
8051           print_fast_f, print_tiny prototypes if --xstack used
8052
8053 2004-12-28 Maarten Brock <sourceforge.brock AT dse.nl>
8054
8055         * device/lib/sincosf.c (sincosf): don't invert bit/bool by ~
8056         * support/regression/ports/mcs51-stack-auto/spec.mk: added new _fs.. files
8057           to the SOURCES
8058
8059 2004-12-28 Paul Stoffregen <paul AT pjrc.com>
8060
8061         * device/lib/printf_fast_f.c: same as printf_fast, but
8062           with floating point enabled
8063         * device/lib/printf_fast.c: minor tweaks
8064         * device/include/stdio.h: add printf_fast_f
8065
8066 2004-12-27 Paul Stoffregen <paul AT pjrc.com>
8067
8068         * src/SDCCmain.c: make --float-reent default for mcs51
8069         * device/lib/_fsadd.c: added mcs51 assembly version
8070         * device/lib/_fssub.c: added mcs51 assembly version
8071         * device/lib/_fsmul.c: added mcs51 assembly version
8072         * device/lib/_fsdiv.c: added mcs51 assembly version
8073         * device/lib/_fseq.c: added mcs51 assembly version
8074         * device/lib/_fsneq.c: added mcs51 assembly version
8075         * device/lib/_fsgt.c: added mcs51 assembly version
8076         * device/lib/_fslt.c: added mcs51 assembly version
8077         * device/lib/_fscmp.c: shared code for fseq,fsgt,fslt,fsneq
8078         * device/lib/Makefile.in: add _fscmp to build
8079         * device/lib/libfloat.lib: add _fscmp to build
8080
8081 2004-12-27 Paul Stoffregen <paul AT pjrc.com>
8082
8083         * device/lib/_fs2slong.c: added mcs51 assembly version
8084         * device/lib/_fs2sint.c: added mcs51 assembly version
8085         * device/lib/_fs2schar.c: added mcs51 assembly version
8086         * device/lib/_fs2ulong.c: added mcs51 assembly version
8087         * device/lib/_fs2uint.c: added mcs51 assembly version
8088         * device/lib/_fs2uchar.c: added mcs51 assembly version
8089         * device/lib/_slong2fs.c: added mcs51 assembly version
8090         * device/lib/_sint2fs.c: added mcs51 assembly version
8091         * device/lib/_schar2fs.c: added mcs51 assembly version
8092         * device/lib/_ulong2fs.c: added mcs51 assembly version
8093         * device/lib/_uint2fs.c: added mcs51 assembly version
8094         * device/lib/_uchar2fs.c: added mcs51 assembly version
8095         * device/include/float.h: added #define to select asm vs c
8096
8097 2004-12-26 Paul Stoffregen <paul AT pjrc.com>
8098
8099         * device/lib/printf_fast.c: improvements to float output
8100         * device/include/float.h: add defines for assembly float library
8101         * device/lib/_fsget1arg.c: receive 1 float arg
8102         * device/lib/_fsget2args.c: receive 2 float args (reentrant)
8103         * device/lib/_fsnormalize.c: normalize a float
8104         * device/lib/_fsreturnval.c: return float, various helper routines
8105         * device/lib/_fsrshift.c: right shift a float's mantissa
8106         * device/lib/_fsswapargs.c: swap 2 floats
8107         * device/lib/Makefile.in: build these 6 new files for mcs51
8108         * device/lib/libfloat.lib: add these 6 files to the library
8109
8110 2004-12-26 Borut Razem <borut.razem AT siol.net>
8111
8112         * sim/ucsim/avr.src/arith_inst.cc: fixed bug #1088372- savr is not
8113           built by gcc 3.4.2
8114
8115 2004-12-25 Paul Stoffregen <paul AT pjrc.com>
8116
8117         * device/lib/printf_tiny.c: printf for mcs51 in only 267 bytes,
8118           and fully reentrant and register bank neutral.
8119         * device/lib/printf_fast.c: added float (not enabled by default),
8120           added compact/slower integer (also not enabled by default),
8121           improved size/speed of fast integer code, other minor changes
8122         * device/include/stdio.h, device/lib/Makefile.in,
8123           device/lib/libsdcc.lib: integrate printf_tiny into mcs51 build
8124
8125 2004-12-24 Maarten Brock <sourceforge.brock AT dse.nl>
8126
8127         * src/pic16/pcode.c: declaring variables other than at the start of a
8128           block is not supported in C by VC6.
8129
8130 2004-12-22 Vangelis Rokas <vrokas AT otenet.gr>
8131
8132         * applied a previous patch from Raphael Neider that wasn't included
8133         in the previous commits, which fixes infinite loops within jumptable
8134         improvements,
8135         * made some fixes that previous patches introduced
8136
8137 2004-12-21 Vangelis Rokas <vrokas AT otenet.gr>
8138
8139         * src/pic16/gen.c (pic16_aopGet): applied fix from Raphael Neider
8140         that fixes an issue with AOP_PCODE asmop's offset,
8141         * (pic16_popCopyReg): update instance field too,
8142         * (mov2w): modified to pic16_mov2w because it conflicts with mov2w
8143         function of pic port,
8144         * (genCmp, genAnd, genAssign),
8145         * src/pic16/genarith.c (genAddLit): some fixes from Raphael Neider,
8146
8147 2004-12-20 Vangelis Rokas <vrokas AT otenet.gr>
8148
8149         * src/SDCCast.c (gatherAutoInit): allow pic16 to emit static
8150         variables initial values to idata section,
8151         * src/SDCCicode.c (geniCodeCall): patch from ### to fix unreferenced
8152         variables in some functions. This utilizes parmBytes field of iCode
8153         structure to hold the offset of the variable in stack. (might be
8154         able to use the stack field too?)
8155         * applied patch from Raphael Neider # ### , # ###
8156         * src/pic16/glue.c (pic16emitRegularMap): fix to print static
8157         variable initial values in idata section,
8158         * src/pic16/ralloc.c (pic16_allocDirReg): don't allocate register
8159         for static variables with initial value
8160         * src/device/lib/pic16/libsdcc/float/ulong2fs.c (__ulong2fs):
8161         applied fix in while loop from Raphael Neider.
8162
8163 2004-12-19 Maarten Brock <sourceforge.brock AT dse.nl>
8164
8165         * src/ds390/gen.c (genCpl): fixed bit=~(char/bit) bugs, added warning
8166         * src/ds390/main.c (_ds390_regparm): don't pass bit params in registers
8167         * src/ds390/ralloc.c (serialRegAssign): spill bits
8168         * src/mcs51/gen.c (genCpl): fixed bit=~(char) bugs, added warning
8169         * support/Util/SDCCerr.c,
8170         * support/Util/SDCCerr.h: added warning W_COMPLEMENT for using bit=~(bit)
8171         * support/regression/tests/bitvars.c: added tests for bitwise complement(~)
8172         * support/regression/tests/bitwise.c: added test for bitwise complement(~)
8173
8174 2004-12-09 Maarten Brock <sourceforge.brock AT dse.nl>
8175
8176         * device/include/sdcc-lib.h: inserted LGPL, added includes
8177           asm/ds390/features.h and asm/mcs51/features.h
8178         * device/include/asm/default/features.h,
8179         * device/include/asm/gbz80/features.h,
8180         * device/include/asm/z80/features.h: added empty _AUTOMEM
8181           and _STATMEM
8182         * device/include/asm/ds390/features.h,
8183         * device/include/asm/mcs51/features.h: added files with defines for
8184           _AUTOMEM and _STATMEM indicating automatic and static storage class
8185         * device/lib/printf_large.c (_print_format): optimized & used _AUTOMEM
8186         * doc/sdccman.lyx: version 2.4.7, updated xstack documentation
8187         * src/SDCCicode.c (geniCodeCast),
8188         * src/SDCCsymt.c (compareType): allow cast of data-ptr to idata-ptr
8189         * src/SDCCloop.c (loopInduction): removed unused variable lr
8190         * src/SDCCopt.c (convilong, convertToFcall): moved "easy special case"
8191           to convertToFcall to include char modulo (RFE 1065037), added check
8192           if left operand is unsigned and use abs of literal value
8193         * src/SDCCpeeph.c (setFromConditionArgs): removed double quotes option
8194           as it doesn't work after conversion from peephole.def to peephole.rul
8195         * src/mcs51/gen.c (toBoolean): added check for size,
8196           (genModOneByte): optimized code for signed char modulo a literal
8197           power of 2 (thanks to Hubert Sack),
8198           (genRRC): removed unnecessary "clr c",
8199           (genRLC): replaced "add a,acc" with cheaper "rlc a"
8200         * src/mcs51/peeph.def: renamed 115 to 115.a, added rule 115.b: another
8201           jump optimization,
8202           swapped rules 256.c and 256.d,
8203           extended 256.d by using new multiple checks (thanks Erik),
8204           added rules 256.e and 256.f,
8205           updated rule 261.a and 261.b to new generated code
8206         * support/regression/tests/muldiv.c: added test div/mod by a power of 2
8207
8208 2004-12-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8209
8210         * src/SDCCloop.c (basicInduction, loopInduction): fixed several
8211           induction related bugs, including first part of bug #1074377
8212
8213 2004-12-05 Vangelis Rokas <vrokas AT otenet.gr>
8214
8215         * applied patch from bug-report #1076292,
8216         * applied patches for genAnd and Goto-optimizations for Raphael
8217         Neider,
8218         * src/SDCCicode.c (printOperand): fixed !REGA source to compile and
8219         dump a less iCode information,
8220         * src/pic16/device.h (pic16_options_t): added field debgen,
8221         * src/pic16/gen.h: added macros DUMP_FUNCTION_ENTRY,
8222         DUMP_FUNCTION_EXIT, FENTRY, FENTRY2,
8223         * src/pic16/gen.c (my_powof2): renamed to pic16_my_powof2 and made
8224         puclic,
8225         * (various functions): added macros FENTRY and FENTRY2 to functions,
8226         to emit function prologue,
8227         * (various functions): fixed indentation,
8228         * (genNearPointerGet): fixed loading of FSR0,
8229         * (genPackBits): applied patch from Raphael Neider to fix updating
8230         of FSR0 and touching only the modified bits,
8231         * src/pic16/genarith.c (various functions): added macros FENTRY to
8232         emit function prologue in comments,
8233         * src/pic16/pcode.h: added functions debugf2, debugf3,
8234         * src/pic16/ralloc.c: partial fix for packForPush caused
8235         segmentation fault,
8236
8237 2004-12-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8238
8239         * src/mcs51/peeph.def: added 261.a,b (16 bit rotate) by Stas Sergeev
8240           <stsp AT users.sourceforge.net> with reversed byte order
8241         * support/regression/tests/rotate.c: added (ds390 skips some tests)
8242
8243 2004-12-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8244
8245         * src/z80/gen.c (genLeftShift, genRightShift): fixed second part of
8246           bug #1074377
8247         * src/hc08/gen.c (genrshFour, shiftRLong, shiftLLong),
8248         * src/mcs51/gen.c (shiftLLong): Fixed some shifting bugs Frieder found
8249
8250 2004-12-02 Slade Rich <slade_rich AT users.sourceforge.net>
8251
8252         * src/pic/pcode.c : fixed a problem where banksel was not being inserted.
8253
8254 2004-12-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8255
8256         * src/SDCCpeeph.c (callFuncByName): support combined peephole rule
8257           conditions,
8258           (setFromConditionArgs): friendly operand parser for peephole rules,
8259           (operandBaseName, operandsNotRelated): new peephole condition
8260           "operandsNotRelated" -- similar to "operandsNotSame", but takes
8261           architecture specific register naming into account, handles n-way
8262           comparisons, and supports quoted literals
8263         * src/mcs51/peeph.def: restored rule 177.d with an extra condition
8264
8265 2004-12-02 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8266
8267         * src/mcs51/peeph.def: fixed bug #1076940
8268
8269 2004-12-02 Slade Rich <slade_rich AT users.sourceforge.net>
8270
8271         * device/include/pic/pic16f877.h : added an include file for the PIC16F877 device.
8272
8273 2004-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8274
8275         Adding support for replacing ljmps with sjmps in jumptables
8276         generated for switch statements. For now you need to set the
8277         environment variable SDCC_SJMP_JUMPTABLE to enable this.
8278         Now 4 algorithms for mcs51 jumptable generation are used:
8279         ljmp or sjmp jumptables for up to 16 cases, stack-pushing target
8280         addresses loaded pc-relative for up to 112 cases and stack-pushing
8281         target addresses loaded with offset from dptr for up to 256 cases.
8282
8283         * src/SDCCpeeph.c: added peephole conditional labelJTInRange
8284         * src/mcs51/main.c: adapted constants for switch table generation
8285         * src/mcs51/peeph.def: added 260.x for replacing ljmp with sjmp
8286
8287 2004-11-26 Maarten Brock <sourceforge.brock AT dse.nl>
8288
8289         * device/lib/printf_large.c (_print_format): fixed bug 1073386
8290         * support/regression/tests/bug1057979.c: added test for bug 1073386
8291
8292 2004-11-25 Vangelis Rokas <vrokas AT otenet.gr>
8293
8294         * src/pic16/pcode.c: fixed bug which may produce error in non-GNU
8295         compilers
8296
8297 2004-11-25 Vangelis Rokas <vrokas AT otenet.gr>
8298
8299         * src/pic16/device.h,
8300         * src/pic16/genarith.c,
8301         * src/pic16/glue.c,
8302         * src/pic16/main.c,
8303         * src/pic16/pcode.c: applied patches #1068154 and #1070213
8304
8305 2004-11-24 Vangelis Rokas <vrokas AT otenet.gr>
8306
8307         Large cummulative patch for pic16 port.
8308         * device/lib/pic16/gstack.h: NEW, user can specify its own handler
8309         to call when a stack overflow occurs,
8310         * (malloc.h): added CVS Id tag,
8311         * (pic18f{242,252,442,452}.h): added T0CONbits structure and
8312         variable,
8313         * added libc directory. The current version of LibC contains string
8314         functions, ctype functions and macros and some functions of the
8315         stdlib set (like malloc/free/atof/atoi etc...). All functions are to
8316         be extensively tested in the future. Standard disclaimer here.
8317         Library is not automatically build yet. But one can build it by
8318         invoking 'make' inside the libc directory.
8319         * added ADC library under libio. Preliminary version yet.
8320
8321         * src/pic16/gen.h: added emitTOGC macro, to toggle Carry flag,
8322         * src/pic16/gen.c (aopForRemat): asmop size is filled by
8323         aopForRemat() now and not by pic16_aopOp(),
8324         * (pic16_popGetTempReg): removed warning messgae when allocating
8325         temporary registers, its a buggy feature and will be removed,
8326         * (pic16_popGet): set register instance field in AOP_CRY,
8327         * (pic16_outBitC): fixed for results in size greater than 1,
8328         * (genUminusFloat): fixed for pic16, ported code from mcs51,
8329         * (pic16_storeForReturn): optimized return of 0,
8330         * (genCmp): experimental code for new genCmp which uses PIC18's
8331         special compare&skip instructions. Initial tests fail some times
8332         with variables grater than 1 byte in size, so new code is disabled,
8333         * (genUnpackBits, genPackBits): more optimizations in reading/writing,
8334         a single bit,
8335         * (genCast): began a fix to optimize the casting of a bit to another
8336         bit, now assigning a bitfield to another bitfield will fail, sorry,
8337         * src/pic16/main.c: disabled the use of lr-support feature,
8338         * src/pic16/pcode.h: renamed PCASMDIR to PCAD,
8339         * added some function prototypes, added function _debugf prototype,
8340         * src/pic16/pcode.c: (pic16_get_op): fixed emitting operands of register
8341         bits with offset (case PO_GPR_BIT),
8342         * (genericPrint): don't emit INFO pcode when --pcode-verbose not in
8343         command line,
8344         * (isBankInstruction): modified to return 0 for no banking instruction,
8345         and 1 for banking instruction,
8346         * (pic16_isPCinFlow): check for PCAD (assembler directives) too,
8347         caused stop processing pCodes after a inline assembly block,
8348         * (pic16_popCopyGPR2Bit): updated to match bitfields with offset,
8349         * src/pic16/pcoderegs.c: fixed a bug with eliminating some temporary
8350         registers when it shouldn't,
8351         * src/pic16/ralloc.c (allocReg): add preliminary support for
8352         supporting a limited set of temporary registers,
8353
8354 2004-11-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8355
8356         * src/hc08/gen.c (genAssign, genPointerGetSetOfs, genDataPointerGet,
8357           genDataPointerSet): ensure assignments always copy in MSB to LSB
8358           order,
8359           (loadRegFromAop): recognize CLRH optimization,
8360           (genFunction): optimize RECEIVE iCodes in reentrant functions
8361
8362 2004-11-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8363
8364         * src/SDCCmain.c (parseCmdLine, optionsTable[]): fixed bug with
8365           --out-fmt-s19 turning into --out-fmt-elf if s19 was already
8366           selected.
8367         * src/SDCCmain.c (linkEdit): don't define SSEG for HC08
8368         * src/hc08/main.c (_hc08_setDefaultOptions): default xdata to be
8369           contiguous with data
8370
8371 2004-11-19 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8372
8373         * device/lib/_gptrget.c (_gptrget),
8374         * device/lib/_gptrgetc.c (_gptrgetc),
8375         * device/lib/_gptrput.c (_gptrput): _naked allows to use ret
8376           instead of sjmp to ret
8377         * src/mcs51/peeph.def: added peepholes 3.d-g and 177.g,h provided
8378           by Hubert Sack <hsack2002 AT arcor.de> in RFE #1067986, thanks
8379
8380 2004-11-18 Maarten Brock <sourceforge.brock AT dse.nl>
8381
8382         * .version: bumped version to 2.4.7
8383         * device/lib/_gptrget.c (_gptrget): is now _naked
8384         * device/lib/_gptrgetc.c (_gptrgetc): is now _naked
8385         * device/lib/_gptrput.c (_gptrput): is now _naked
8386         * src/SDCCast.c (createBlock): removed ridiculous self-assignment,
8387           (createFunction): fixed xstack
8388         * src/SDCCglue.c (emitMaps): set allocation required for bit area
8389         * src/SDCCicode.c (geniCodeCast): don't change SPEC_OCLS for literal
8390           or bit either,
8391           (geniCodeCritical): store original interrupt state in an iTemp bit
8392           var unless stack-auto
8393         * src/SDCCicode.h: added CRITICAL and ENDCRITICAL to SKIP_IC2
8394         * src/SDCCmain.c (setIncludePath): added include/target to search path
8395         * src/SDCCmem.c (allocParms): store bit vars in bit space, not overlay
8396         * src/SDCCsymt.c (checkFunction): don't check regbank for isr's against
8397           prototype,
8398           (processFuncArgs): put bit vars in bit area
8399         * src/mcs51/gen.c (saveRegisters, unsaveRegisters, genXpush, saveRBank,
8400           unsaveRBank): fixed xstack,
8401           (genFunction): bugfix: replaced (global!) reentrant with fReentrant,
8402           (genFunction, genEndFunction): fixed xstack,
8403           (genAssign): optimization don't walk backwards through mem
8404         * src/mcs51/main.c (_mcs51_regparm): don't pass bit params in registers
8405         * src/mcs51/ralloc.c (createStackSpil): spill bits to bit area
8406         * support/regression/Makefile: also make library (for stack-auto) when
8407           making "all" and added "test-mcs51-xstack-auto"
8408         * support/regression/fwk/lib/testfwk.c: added T2_isr prototype for mcs51
8409         * support/regression/ports/mcs51/T2_isr.c: added this file as a stub
8410         * support/regression/ports/mcs51/fwk.lib: added to link T2_isr stub
8411         * support/regression/ports/mcs51/spec.mk: added rules for fwk.lib
8412         * support/regression/ports/mcs51-stack-auto/spec.mk: replaced
8413           make-library by MAKE_LIBRARY
8414         * support/regression/ports/mcs51-xstack-auto/spec.mk: file added to run
8415           regression tests for xstack
8416         * support/regression/tests/bitvars.c: test for bit vars (bug 938782)
8417         * support/regression/tests/critical.c: test for critical on mcs51
8418
8419 2004-11-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8420
8421         * support/regression/ports/ucz80/spec.mk: use include and lib files from
8422           built version of sdcc instead of installed version
8423
8424 2004-11-14 Maarten Brock <sourceforge.brock AT dse.nl>
8425
8426         * src/mcs51/gen.c (toBoolean): fixed bug 1065458
8427         * device/lib/Makefile.in: z80 uses printf_large.c, sprintf.c and
8428           vprintf.c now
8429         * device/lib/printf_large.c (calculate_digit): fixed bug 1057979
8430         * device/lib/z80/Makefile: don't use printf.c as it fails bug 1057979
8431           WARNING: remove device/lib/build/z80/printf.o by hand when
8432           updating from previous build!
8433         * device/lib/z80/printf.c: updated comment
8434         * support/regression/tests/bug1057979.c: test all ports now
8435         * support/regression/tests/bug1065458.c: file added
8436
8437 2004-11-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8438
8439         * src/z80/gen.c (genFunction, genEndFunction): avoided generating
8440           *_start and *_end symbols for static functions
8441
8442 2004-11-11 Maarten Brock <sourceforge.brock AT dse.nl>
8443
8444         * src/SDCCmain.c (linkEdit): don't suppress crt0 if --nostdlib is used
8445           and search crt0.o in all library paths,
8446           (setIncludePath): proper handling of --nostdinc,
8447           (setLibPath): proper handling of --nostdlib
8448         * support/regression/Makefile,
8449         * support/regression/ports/ds390/spec.mk,
8450         * support/regression/ports/gbz80/spec.mk,
8451         * support/regression/ports/hc08/spec.mk,
8452         * support/regression/ports/mcs51/spec.mk,
8453         * support/regression/ports/mcs51-large/spec.mk,
8454         * support/regression/ports/mcs51-stack-auto/spec.mk,
8455         * support/regression/ports/z80/spec.mk: use include and lib files from
8456           built version of sdcc instead of installed version
8457         * doc/sdccman.lyx: fixed typo in --nostdinc
8458
8459 2004-11-10 Slade Rich <slade_rich AT users.sourceforge.net>
8460
8461         * src/pic/pcode.c,
8462         * src/pic/device.c,
8463         * src/pic/ralloc.c,
8464         * src/pic/gen.c : added support to generate code for struct bit fields.
8465
8466 2004-11-06 Maarten Brock <sourceforge.brock AT dse.nl>
8467
8468         * as/xa51/xa_version.h,
8469         * device/include/errno.h,
8470         * device/include/regc515c.h,
8471         * device/lib/_itoa.c,
8472         * device/lib/_ltoa.c,
8473         * device/lib/ser_ir_cts_rts.c,
8474         * sim/ucsim/xa.src/glob.cc,
8475         * sim/ucsim/xa.src/inst_gen.cc,
8476         * sim/ucsim/xa.src/xa_bit.cc,
8477         * sim/ucsim/xa.src/xa_sfr.cc,
8478         * sim/ucsim/z80.src/inst_dd.cc,
8479         * sim/ucsim/z80.src/inst_fdcb.cc,
8480         * support/scripts/keil2sdcc.pl,
8481         * src/pic16/pic16.dsp,
8482         * src/pic16/pic16a.dsp: corrected cvs line endings
8483         * device/lib/printf_large.c: fixed bug 1057979
8484         * src/pic16/gen.c: fixed non-C standard code
8485         * src/SDCCmain.c: made --pack-iram default, added --no-pack-iram
8486         * src/SDCCglobl.h: changed pack_iram to no_pack_iram
8487         * support/regression/ports/mcs51/support.c: reload T1 asap
8488         * doc/sdccman.lyx: updated for options --pack-iram and --no-pack-iram,
8489           pdata use and clear idata startup behaviour
8490         * support/regression/tests/bug1057979.c: added
8491
8492 2004-11-04 Maarten Brock <sourceforge.brock AT dse.nl>
8493
8494         * device/examples/ds390/ow390/ad26.h,
8495         * device/examples/ds390/ow390/cnt1d.h,
8496         * device/examples/ds390/ow390/crcutil.c,
8497         * device/examples/ds390/ow390/ownet.h,
8498         * device/examples/ds390/ow390/owsesu.c,
8499         * device/examples/ds390/ow390/swt12.h,
8500         * device/examples/ds390/ow390/swtoper.c,
8501         * device/examples/ds390/ow390/temp10.h,
8502         * device/examples/ds390/ow390/thermodl.c,
8503         * device/examples/ds390/tinitalk/tinitalk.dsp,
8504         * device/examples/ds390/tinitalk/tinitalk.dsw,
8505         * device/examples/mcs51/clock/hw.h,
8506         * device/examples/mcs51/simple2/go.bat,
8507         * device/examples/serialcomm/windows/serial.h,
8508         * device/examples/xa51/dummy.c,
8509         * device/examples/xa51/hello.c,
8510         * device/include/80c51xa.h,
8511         * device/include/at89x051.h: corrected cvs line endings
8512
8513 2004-11-04 Vangelis Rokas <vrokas AT otenet.gr>
8514
8515         * src/pic16/main.c (options): added command line --gstack, to trace
8516         stack over/under flows,
8517         * added pragma 'wparam' to allow passing first byte of function
8518         parameters via WREG, syntax is #pragma wparam my_function[, func2...]
8519         * src/pic16/gen.c (pic16_testStackOverflow): function which emits a
8520         call to __gstack_test function and sets up the symbol as extern,
8521         * (pic16_pushpCodeOp, pic16_poppCodeOp, pushw, pushaop, popaopidx,
8522         * popaop): added call to pic16_testStackOverflow,
8523         * (wParamCmp, inWparamList): NEW, test existence of a symbol in
8524         wparamList list,
8525         * (genCall, genPcall): now all parameters are passed via stack
8526         except in functions that are pass to wparam pragma in which WREG is
8527         used too,
8528         * (genPcall): REENTRANT flag is checked to see if variable prototype
8529         contains reentrant keyword, don't call a non-reentrant function, via
8530         a reentrant function pointer or vice versa, functions are never
8531         passed via WREG,
8532         * (genJumpTab): applied patch from bug #1057478 by R.Neider and
8533         D.Winkler,
8534         * src/pic16/glue.c (pic16emitRegularMap): fixed bug which caused a
8535         SIGSEGV when accessing a NULL register stucture,
8536         * (pic16_printGPointerType): modified to handle UPPER modifier for
8537         function initializers, changed prototype of function to simpler one,
8538         * (pic16_printIvalFuncPtr): check to see if function is already
8539         added in externs list,
8540         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): fixed bug which
8541         optimized a move from W to SFR with a move to the same register
8542         later after a CALL,
8543         * device/lib/pic16/debug: NEW directory, contains debug features
8544         which are enabled when linking with libdebug.lib, currently command
8545         line option --gstack enables stack pointer tracing for over/under
8546         flow, corresponding sources are in debug/gstack
8547
8548 2004-10-30 Vangelis Rokas <vrokas AT otenet.gr>
8549
8550         * doc/sdccman.lyx: updated SDCC version,
8551         * (PIC16 port): update list of command line options,
8552         * src/pic16/device.h (structure pic16_options_t): added field gstack
8553         to enable stack overflow tracing on push/pops,
8554         * src/pic16/device.c (statistics structure): added statistics
8555         structure,
8556         * (pic16_dump_access, pic16_dump_usection, pic16_dump_gsection,
8557         pic16_dump_int_registers): increase statistics counters for each
8558         * variable which is encountered
8559         * (pic16_dump_usection): emit each .udata variable to its own udata
8560         section,
8561         * src/pic16/gen.c (assignResultValue, genCall, genPcall, genFunction):
8562         when macro USE_WREG_IN_FUNC_PARAMS is set to 0 pass all function
8563         parameters via stack, otherwise use old scheme,
8564         * src/pic16/glue.c (pic16_emitStatistics): dump statistics in
8565         assembler output file,
8566         * src/pic16/main.c: added command line options --gstack to enable
8567         push/pop tracing for stack overflow,
8568         * src/pic16/pcode.c (all pCodeInstruction records for PIC18F
8569         instructions): added size of each instruction,
8570         * (pic16_countInstruction): estimate size of instructions in
8571         the_pFile list, inline assembly blocks are not counted,
8572         * (pic16_FixRegisterBanking): trace previous register usage, when
8573         banksel optimizations is greater than 0, don't emit a redudant
8574         banksel directive,
8575
8576 2004-10-26 Slade Rich <slade_rich AT users.sourceforge.net>
8577
8578         * src/pic/ralloc.c : fixed inefficient code produced when compiling a complimented bit operation.
8579         * src/pic16/ralloc.c : applied same fix for pic16.
8580         * src/pic/gen.c : tidied it up a little.
8581
8582 2004-10-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8583
8584         * src/mcs51/peeph.def: disabled 259.a,b for removing redundant ret,
8585         thanks to Martin Helmling for reporting (mail on sdcc-devel 2004-10-25)
8586
8587 2004-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8588
8589         * src/SDCCast.c (reverseParms): fixed bug #1040577 (part 2)
8590
8591 2004-10-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8592
8593         * device/lib/ser_ir_cts_rts.c: integer promotion caused a call to the
8594         non-reentrant function __modsint in the interrupt function (thus
8595         corrupting math operations during serial I/O)
8596         * device/lib/ser_ir.c: as above, changed buffersize
8597         * src/mcs51/peeph.def: added 259.a,b for removing redundant ret,
8598         256.c,d for zeroing
8599         * doc/Makefile: added option -t for rsync
8600
8601 2004-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8602
8603         * src/SDCCast.h (struct ast),
8604         * src/SDCCast.c (reverseParms, copyAst): fixed bug #1040577 (part 1)
8605
8606 2004-10-20 Borut Razem <borut.razem AT siol.net>
8607
8608         * support/scripts/sdcc.nsi: added include/pic16/*.h to the setup
8609         package
8610
8611 2004-10-20 Vangelis Rokas <vrokas AT otenet.gr>
8612
8613         * device/lib/pic16/libsdcc/Makefile: added lregs directory in
8614         makefile targets,
8615         * device/lib/pic16/libsdcc/lregs/{Makefile,lrst.c,lrrest.c}: NEW
8616         support functions to replace long sequences of MOVFF's from access
8617         bank registers to stack and vice versa,
8618         * src/pic16/device.h: added new field opt_flags, where optimization
8619         flags can be set to enable certain features,
8620         * src/pic16/gen.c (pic16_emitpinfo): NEW to add PC_INFO pCode in
8621         * pBlock, (genFunction, genEndFunction): surroung loop for
8622         saving/loading used registers in stack with PC_INFO pCodes,
8623         INF_LREGS. Code in between can then be optimized by pCode optimizer
8624         to support function calls,
8625         * (genDataPointerSet): fixed bug which loaded float fields in
8626         structures with corrupt data,
8627         * src/pic16/genutils.c (debugf, _debugf): macro/function which emits
8628         in a standard way debug info on stderr. Feature used for developing
8629         and debugging only,
8630         * src/pic16/glue.c (pic16glue): reformatted, deleted some old and
8631         obsolete chunks of code,
8632         * if optimization flag OF_LR_SUPPORT was set, call pic16_OptimizeLocalRegs,
8633         * src/pic16/main.c (_pic16_parseOptions): added handler for --flr-support,
8634         * pic16/src/pcode.c (pic16_newpCodeInfo,
8635         * (pic16_newpCodeOpLocalRegs),
8636         * (pic16_convertLocalRegs2Support): NEW, to support new optimization
8637         feature,
8638         * (pic16_pCodeConstString): printing of the initial value of a
8639         symbol as a comment is inhibited since parsing was already done by
8640         copyStr and output is corrupt,
8641         * (pic16_pCode2str, genericPrint): handle PC_INFO pCode,
8642
8643 2004-10-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8644
8645         * src/mcs51/ralloc.c (packRegisters): fixed bug #1044601
8646
8647 2004-10-19 Maarten Brock <sourceforge.brock AT dse.nl>
8648
8649         * as/mcs51/lkarea.c: removed old K&R style,
8650           (lnksect): changed check on boundary error,
8651           (lnksect2): changed check on boundary error,
8652           (lnksect2): extend XSTK to end of page if size = 1
8653         * as/mcs51/lkmain.c: removed old K&R style,
8654           (Areas51): create l_IRAM symbol
8655         * as/mcs51/lkmem.c (summary2): added report on PSEG and XSTK
8656         * device/lib/Makefile.in: renamed model-mcs51-reentrant to
8657           model-mcs51-stack-auto, added model-mcs51-xstack-auto
8658         * device/lib/_mullong.c: added version to be compiled with xstack
8659         * device/lib/mcs51/crtclear.asm: clear only upto --iram-size
8660         * device/lib/mcs51/crtxclear.asm: clear pdata as well
8661         * device/lib/mcs51/crtxstack.asm: fixed comment
8662         * src/SDCCglue.c: maxInterrupts defaults to 0,
8663           (emitMaps): added pdata,
8664           (createInterruptVect): (re)moved default,
8665           (glue): added pdata,
8666           (glue): moved __start__xstack to XSTK with default size 1
8667         * src/SDCCmain.c (parseCmdLine): automatically set options.intlong_rent
8668           and options.float_rent when options.stackAuto is set,
8669           (linkEdit): only write XDATA_NAME if provided on command line
8670         * src/SDCCmem.h,
8671         * src/SDCCmem.c: added pdata
8672         * src/port.h: added pdata_name to PORT
8673         * src/mcs51/gen.c (toBoolean): fixed for Acc use of aopGet,
8674           (saveRegisters, unsaveRegisters): removed usage of B,
8675           (genMinus): fixed accumulator clash,
8676           (genJumpTab): added comment, this needs another look
8677         * src/mcs51/gen.c: added check for "B in use" paranoia,
8678           added pushB() and popB()
8679         * src/mcs51/peeph.def: restart after 177.c so 177.a can get a second
8680           chance
8681         * src/avr/main.c,
8682         * src/ds390/main.c,
8683         * src/hc08/main.c,
8684         * src/mcs51/main.c,
8685         * src/pic/main.c,
8686         * src/pic16/main.c,
8687         * src/xa51/main.c,
8688         * src/z80/main.c: (reset_regparms) made void parameter explicit and
8689           added PSEG (PAG,XDATA) or NULL to port specifier
8690         * src/ds390/main.c (_ds390_genIVT): moved implemented default in here
8691         * src/mcs51/main.c (_mcs51_genIVT): moved implemented default in here,
8692           (_mcs51_genInitStartup): removed __start__xstack equ,
8693           (mcs51_port): moved xstack from XSEG (XDATA) to XSTK (PAG,XDATA)
8694         * src/pic16/device.c (pic16_dump_usection, pic16_dump_isection),
8695         * src/z80/gen.c (_rleAppend): fixed warnings
8696         * support/regression/tests/zeropad.c: added pdata test
8697         * .version: bumped to 2.4.6
8698
8699 2004-10-17 Borut Razem <borut.razem AT siol.net>
8700
8701         * support/scripts/sdcc.nsi: cross compiling of WIN32 setup.exe on Linux
8702         as a part of nightly build
8703
8704 2004-10-16 Vangelis Rokas <vrokas AT otenet.gr>
8705
8706         * src/pic16/gen.c (struct _G): added field useWreg, is set to 1 when
8707         WREG holds the first byte function parameters,
8708         * (aopForSym): take special case for symbols which are in FARSPACE
8709         but in CODESPACE too,
8710         * (assignResultValue): modified to take into account _G.useWreg,
8711         * (genCall): don't use wreg for parameter passing when function is
8712         declared as reentrant, too, added optimization INCF to stack
8713         pointer when stack parameter count is 1,
8714         * (genFunction, genEndFunction): refurnished and fixed to not using
8715         wreg for passing parameters when function has varargs or is
8716         reentrant, fixed bug with symbol name compare for generating
8717         functions in absolute address,
8718         * (pic16_storeForReturn): refurnished,
8719         * (genCmp): began writing a new version of the function, not ready
8720         yet, therefore it is disabled,
8721         * (genAssign): do not read code memory when assigning a function to
8722         a pointer function,
8723         * src/pic16/glue.c (pic16emitStaticSeg): abSym->name is defined an
8724         array of characters, not pointer,
8725         * (pic16initialComments): in debug mode emit an .ident directive for
8726         the assembler,
8727         * (_process_pragma): emit a new warning type (internal to pic16)
8728         when setting stack to default length, emit a similar warning when
8729         placing a function at absolute address and address is not word aligned
8730         * (_pic16_parseOptions): added 'return TRUE' statement,
8731         * (_pic16_linkEdit): if compiling a source, then add the source's
8732         file object, first in the list of objects to link,
8733
8734 2004-10-13 Slade Rich <slade_rich AT users.sourceforge.net>
8735
8736         * src/pic/pcoderegs.c : increased count on regUsedinRange to prevent unnecessary warning.
8737         * src/pic/main.c : removed VC warning.
8738         * src/pic/gen.c : changed comment.
8739
8740 2004-10-12 Vangelis Rokas <vrokas AT otenet.gr>
8741
8742         * device/lib/pic16/libsdcc/gptr/gptrput[234].c: an external
8743         reference to a deprecated symbol _GPTRREG was causing failure to
8744         link. Thanks G. M. Gallant for the info.
8745
8746 2004-10-12 Slade Rich <slade_rich AT users.sourceforge.net>
8747
8748         * src/pic/pcode.c : Applied a code patch supplied by Paul Ashmore in
8749         comments for Bugs item #954788.
8750
8751 2004-10-10 Vangelis Rokas <vrokas AT otenet.gr>
8752
8753         * src/pic16/device.c (pic16_dump_gsection,
8754         * pic16_groupRegistersInSection): handle symbols declared to be in
8755         access bank differently,
8756         * src/pic16/gen.c (struct _G): added field resDirect,
8757         * (aopForSym): if symbol on stack and iCode is '=' and result exists,
8758         send values read from stack directly to result and don't allocate
8759         temporary values,
8760         * (pic16_sameRegs): fixed bug that allowed MOVFF to move between
8761         same registers,
8762         * (pic16_sameRegsOfs): NEW,
8763         * (freeAsmop): if _G.resDirect is set then do not mark registers as
8764         free because they were not allocated from temporary pool,
8765         * pic16_popRegFromString): workaround to fix a problem with
8766         allocating variables twice or never,
8767         * (genGenPointerGet): using PRODL instead of FSR0H,
8768         * (genGenPointerSet): using POSTDEC1 (that is a stack location)
8769         instead of FSR0H,
8770         * (genAssign): take advantage of the _G.resDirect flag,
8771         * (genCast): around line 11844, use mov2f instead of directly
8772         MOVFF'ing between operands to account for literal values,
8773         * src/pic16/genutils.c: some new debug functions for gpsim have been
8774         added,
8775         * src/pic16/glue.c (pic16_printIvalType): fixed bug that initialized
8776         float with integer part only,
8777         * src/pic16/main.c (_process_pragma): handle pragma udata access to
8778         place variables in access bank
8779         * device/lib/pic16/libsdcc/gptr/gptr*.c: using BRA instead of GOTO,
8780         updated sources to reflect recent changes in gen.c
8781
8782 2004-10-06 Vangelis Rokas <vrokas AT otenet.gr>
8783
8784         * device/lib/pic16/libsdcc/Makefile.rules: fixed bug concerning
8785         sources that searched for headers in installation path, now the
8786         device/include/pic16 is used,
8787         * src/pic16/glue.c (pic16glue),
8788         * src/pic16/pcode.c (pCode2str, genericPrint): don't print .file or
8789         .line directives if not in debug mode, this suppresses assembler's
8790         warnings for ignored directives
8791
8792 2004-10-05 Maarten Brock <sourceforge.brock AT dse.nl>
8793
8794         * src/port.h: made reset_regparms prototype void parameter explicit.
8795         * src/SDCCsymt.c (processFuncArgs): removed argument "func".
8796         * src/mcs51/ralloc.c (packRegisters): new fix for bugs 898889 & 979599.
8797         * doc/sdccman.lyx: documented warning disabling and how to use
8798           printf_large to make it print floats.
8799         * device/include/stdbool.h: NEW
8800         * device/lib/_atof.c,
8801         * device/lib/_divuint.c,
8802         * device/lib/_divulong.c,
8803         * device/lib/expf.c,
8804         * device/lib/printf_large.c,
8805         * device/lib/sincosf.c,
8806         * device/lib/sincoshf.c: used stdbool.h, all compile with stack-auto now
8807         * device/lib/Makefile.in: added target for model-mcs51-reentrant to build
8808           a completely reentrant lib.
8809
8810 2004-10-05 Vangelis Rokas <vrokas AT otenet.gr>
8811
8812         * device/lib/pic16/libsdcc/gptr/gptr*.c: added return statements
8813         * device/include/pic16/stdio.h: fixed bug with colon
8814
8815 2004-10-03 Vangelis Rokas <vrokas AT otenet.gr>
8816
8817         * device/include/pic16/stdio.h,
8818         * device/include/pic16/stdlib.h,
8819         * device/include/pic16/math.h: NEW
8820         * device/lib/pic16/libsdcc/gptr/*.c (gptrget*, gptrput*): functions
8821         declared as _naked to reduce overhead
8822         * device/lib/Makefile.in (target port-specific-objects-pic16):
8823         changed * to *.* so to ignore the CVS directory,
8824         * src/pic16/gen.c (pic16_freeAsmop): added code to store result of
8825         stacked variables back in stack,
8826         * (genEndFunction): fixed bug reported by G.M. Gallant with stack
8827         corruption
8828
8829 2004-10-01 Vangelis Rokas <vrokas AT otenet.gr>
8830
8831         * .version: bumped version number to 2.4.5
8832         * support/Util/SDCCerr.h: added warning W_POSSBUG2.
8833         * support/Util/SDCCerr.c (messages structure): added entry for
8834         W_POSSBUG2
8835
8836         Large cumulative patch for pic16 port and libraries.
8837         * device/include/pic16/sdcc-lib.h,
8838         * device/include/pic16/stdarg.h,
8839         * device/include/asm/pic16/features.h,
8840         * device/include/lib/pic16/libsdcc/gptr/{*.c, Makefile}: NEW,
8841         * device/include/pic16/float.h: changes reentrant keyword with
8842         _FS_REENTRANT, added prototype for __fsneq, included sdcc-lib.h
8843         * device/lib/pic16/libsdcc/Makefile: added target directory gptr,
8844         updated target build-libraries to include objects from gptr,
8845         * device/lib/pic16/libsdcc/{char,int,long}/*.c: added macro
8846         _IL_REENTRANT to all function headings, included sdcc-lib.h header,
8847         * device/lib/pic16/libsdcc/float/*.c: added macro _FS_REENTRANT to
8848         all function headings,
8849         * src/SDCCmain.c: added global parameter userIncDirsSet,
8850         * (parseCmdLine): when option -I is encountered add directory to
8851         userIncDirsSet too,
8852         * src/version.awk: added space between control and long,
8853         * src/pic16/NOTES: added some notes for the port,
8854         * src/pic16/gen.c: added prototype for mov2fp function,
8855         * (fReturnpic16[]): properly named return value registers,
8856         * (_G structure): added fields stackRegSet, fregsUsed, stack_lat,
8857         * (aopForSym): added code to handle symbols with onStack flag set,
8858         symbols onStack are allocated PTRSIZE bytes,
8859         * (aopFreeAsmop): handles special case where asmops are stack objects,
8860         * (aopGet, pic16_popGet): adde cod to handle new asmop AOP_STA,
8861         * (pic16_popGetTempReg, pic16_popGetTempRegCond, pic16_popReleaseTempReg):
8862         added argument lock to trace flaws in allocating temporary registers
8863         when developing port,
8864         * (pic16_popGetLit, pic16_popGetLit2): changed lit from unsigned to signed
8865         * (pic16_popRegFromString): reenabled allocating a direct register
8866         from string,
8867         * (assignResultValue): various beautifications,
8868         * fixed bug #1037717 (patch from R. Neider & D. Wrinkler) with mistaken
8869         referenced function argument,
8870         * (genIpush): reenabled to allow stacked arguments, handles only
8871         ic->parmPush iCodes,
8872         * (genCall, genPcall): major changes to allow for variable argument
8873         functions, fixed a bug with falsely restoring stack pointer after
8874         returning from call,
8875         * (genFunction): pending code for critical function,
8876         * (shiftR1Left2ResultSigned, shiftR1Left2Result, shiftL2Left2Result,
8877         * (shiftR2Left2Result, shiftLLong) applied patch #1032155 from R.Neider,
8878         * (genNearPointerGet): fixed bug with indirect reading, was always
8879         reading from INDF0
8880         * (genGenPointerGet, genGenPointerSet): rewrote to support generic
8881         pointers,
8882         * (genAddrOf): rewrote code to take address of a stacked function parameter
8883         * (genCast): fixed casting to generic pointer type,
8884         * src/pic16/gen.h: added AOP_STA,
8885         * (struct asmop): added field stk,
8886         * src/pic16/genarith.c (pic16_AopType): handle AOP_STA,
8887         * (pic16_genPlusIncr): changed emitSKPNZ to emitSKPNZ,
8888         * (pic16_genAddLit, pic16_genPlus): applied patch #1034042 by tecodev,
8889         * (pic16_genMinus): fixed bug #1035119 with patch submitted by tecodev,
8890         * src/pic16/genutils.c (pic16_genNot): removed symbol *tlbl,
8891         * src/pic16/glue.c (pic16_printGPPointerType): fixed to support new
8892         generic pointers,
8893         * src/pic16/main.c (_pic16_initPaths): ignores default SDCC include
8894         and library paths,
8895         * (pic16_port structure): generic pointer size is set to 3,
8896         * src/pic16/pcode.c (pic16_newpCodeOpLit): correctly print literal integer,
8897         * (insertBankSwitch): cast to (char *) to prevent 64bit CPUs'
8898         compiler warning,
8899         * src/pic16/ralloc.c (allocReg): prevent allocating register when
8900         operand is an iTemp,
8901
8902 2004-09-24 Martin Helmling <mh AT octo-soft.de>
8903
8904         * debugger/mcs51/cmd.c: set PC if a symbol at pc reg is set
8905         * debugger/mcs51/simi.c: addapt new syntax of s51
8906
8907 2004-09-23 Vangelis Rokas <vrokas AT otenet.gr>
8908
8909         * src/pic16/genutils.c (pic16_genNot): fixed bug #1032265,
8910         * src/pic16/pcode.c: commented out some calls to free() in order to
8911         fix bug #989576,
8912
8913 2004-09-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8914
8915         * src/SDCCicode.h,
8916         * src/SDCCicode.c (isiCodeInFunctionCall),
8917         * src/avr/ralloc.c (selectSpil),
8918         * src/pic/ralloc.c (selectSpil),
8919         * src/pic16/ralloc.c (selectSpil),
8920         * src/ds390/ralloc.c (selectSpil),
8921         * src/hc08/ralloc.c (selectSpil),
8922         * src/xa51/ralloc.c (selectSpil),
8923         * src/mcs51/ralloc.c (selectSpil): Don't use remainSpil to spill to the
8924         stack in the middle of a function call sequence (fixes bug #1020268)
8925         * src/SDCCicode.c (geniCodeJumpTable): fixed error in computing the
8926         costs associated with the minimum switch case.
8927
8928 2004-09-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8929
8930         * src/SDCC.lex: fixed bug #1030549
8931
8932 2004-09-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8933
8934         * src/SDCCcse.h (struct cseDef),
8935         * src/SDCCcse.c (cseBBlock, newCseDef, ifFromAddrTaken): purge CSEs
8936         over a function call if the CSE is derived from a symbol whose
8937         address has been taken (fixes bug #1029883)
8938         * support/regression/tests/bug-1029883: a new regression test for
8939         this bug
8940
8941 2004-09-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8942
8943         * src/hc08/gen.c (emitinline): fixed bug #1029778
8944         * src/SDCC.y (assignment_expr): fixed the grammer so that assignment
8945         to a cast object is no longer a syntax error ("fixes" bug #1030006,
8946         and starts toward RFE #905167)
8947
8948 2004-09-17 Vangelis Rokas <vrokas AT otenet.gr>
8949
8950         * src/pic16/gen.c (mov2f): New function to move an operand to
8951         another without considering if it is a literal or a register,
8952         * (pic16_sameRegs): don't check if they are both AOP_REG,
8953         * (AccRsh): removed andmask=0 lines,
8954         * (genLeftShift): duplicated to be improved in future versions,
8955         * src/pic16/main.c (_process_pragma): emit stack default size in hex,
8956         * src/pic16/pcode.c: added POC_INFSNZW, updated inverted_op fields
8957         in POC_INCFSZ, POC_INCFSZW, POC_INFSNZ,
8958         * (pic16initMnemonics): added initialization for POC_INFSNZW,
8959         * (insertBankSwitch): fixed inserting banksel directives algorithm
8960         for instructions that follow a skip instruction, this fixes a report
8961         for broken subtraction code generation,
8962         * src/pic16/ralloc.c (deassignLRs): do not free register if current
8963         iCode is a left op, just in case result and right share the same
8964         registers
8965
8966 2004-09-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8967
8968         * src/hc08/main.c,
8969         * src/hc08/gen.c (genJumpTable): more efficient jump table, supports
8970         preservation of HX
8971         * src/hc08/gen.c (pullRegs): fixed order of HX & XA pairs
8972         * src/mcs51/ralloc.c (packRegisters): removed the patch applied
8973         on 2004-09-12; it was buggy
8974
8975 2004-09-15 Bernhard Held <bernhard AT bernhardheld.de>
8976
8977         * src/SDCCsymt.h: removed RESULT_CHECK
8978         * src/SDCCast.c,
8979         * src/SDCCglue.c,
8980         * src/SDCCval.c,
8981         * src/pic/glue.c,
8982         * src/pic16/glue.c: replaced RESULT_CHECK with RESULT_TYPE_NONE
8983
8984 2004-09-15 Vangelis Rokas <vrokas AT otenet.gr>
8985
8986         * src/SDCCicode.c (piCode): applied patch from Raphael Neider,
8987         * src/pic16/device.c (pic16_assignConfigWordValues): wrong
8988         configuration values no more rejected by compiler, they are assigned
8989         to configuration registers with a warning message instead,
8990         * src/pic16/glue.c (pic16_emitConfigRegs): added +1 at top-limit of
8991         the for-loop so last conf register is emitted too,
8992         * (_pic16_initPaths): link library libsdcc.lib by default,
8993         * (_hasNativeMulFor): modified test for multiplication according to
8994         Raphael Neider's remarks. Integer multiplication is also done with
8995         support functions,
8996         * device/include/pic16/pic18fregs.h: corrected type error in while
8997         testing and including 18f6720 header file
8998
8999 2004-09-14 Vangelis Rokas <vrokas AT otenet.gr>
9000
9001         * src/pic16/device.h (pic16_options): removed field use_crt,
9002         * src/pic16/gen.c (genUnpackBits): added call to pic16_loadFSR0
9003         until an optimization to handle single bits is added,
9004         * (pic16_loadFSR0): moved before genUnpackBits,
9005         * (genAnd): some white lines removed,
9006         * src/pic16/main.c (_pic16_finaliseOptions): set omit_ivt and clear
9007         leave_reset flags in pic16_options when using crt modules,
9008
9009 2004-09-12 Maarten Brock <sourceforge.brock AT dse.nl>
9010
9011         * src/mcs51/ralloc.c (packRegisters): applied fix by Bernhard Held
9012           for bugs 898889 & 979599. Also used some safer print instructions.
9013
9014 2004-09-12 Vangelis Rokas <vrokas AT otenet.gr>
9015
9016         * src/pic16/device.h (pic16_options_t): added field use_crt,
9017         crt_name, no_crt,
9018         * src/pic16/genarith.c (pic16_genPlus): added an assert(0) line to
9019         catch a probable future bug,
9020         * src/pic16/gen.c: aopIdx function commented out,
9021         * (genAssign): commented out old code which used aopIdx,
9022         * src/pic16/glue.c (pic16glue): removed some legacy fragments of
9023         code, added if conditionals to take into account the --use-crt
9024         command line options,
9025         * src/pic16/main.c (pic16_optionsTable): added new command line
9026         options, --use-crt= and --no-crt,
9027         * (_pic16_linkEdit): now the proper crt object is added in the
9028         linker command line except than when --no-crt is specified,
9029         * src/pic16/pcode.c,
9030         * src/pic16/pcode.h: added some structures and functions for a new
9031         optimization scheme to compansate for instruction overhead between
9032         same iCodes, this scheme is currently under development and is not
9033         working in any way,
9034         * src/pic16/gen.c (genAnd): added patch provided by Aaron Collwell
9035         to && operator,
9036         * device/lib/pic16/startup/crt0i.c,
9037         * device/lib/pic16/startup/crt0iz.c: added global char variable
9038         __uflags to force the generation of an idata section
9039
9040 2004-09-12 Bernhard Held <bernhard AT bernhardheld.de>
9041
9042         * doc/Makefile,
9043         * doc/clean.mk: added support for easy creation of sdcc-doc.tar.bz2
9044         * doc/sdccman.lyx: updated sdcc version to 2.4.4
9045
9046 2004-09-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9047
9048         * doc/sdccman.lyx: fixed a problem with my new index entries (thanks
9049         Frieder) and clarified the default code optimization mode
9050
9051 2004-09-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9052
9053         * src/SDCC.lex (doPragma, process_pragma),
9054         * src/SDCCglobl.h (struct optimize): added pragmas "opt_code_speed",
9055         "opt_code_size", and "opt_code_balanced"
9056         * src/SDCCmain.c (optionsTable[], printOptions, scanOptionsTable):
9057         regrouped options by category, added support for category headers
9058         * src/SDCCmain.c (parseCmdLine): added options "--opt-code-speed"
9059         and "--opt-code-size"
9060         * doc/sdccman.lyx: documented these new options and pragmas
9061         * src/hc08/gen.c (AccLsh, AccRsh): take speed/size optimization
9062         preference into account
9063
9064 2004-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
9065
9066         * src/SDCCicode.c (geniCodePostInc, geniCodePreInc, geniCodePostDec,
9067           geniCodePreDec): Fixed bug 904237 by generating a warning
9068         * src/SDCCerr.h,
9069         * src/SDCCerr.c: added warning W_SIZEOF_VOID
9070
9071 2004-09-09 Slade Rich <slade_rich AT users.sourceforge.net>
9072
9073         * src/pic/device.c : When no max ram set validate full memory range.
9074         * src/pic/pcode.c,
9075         * src/pic/pcodepeep.c : Copy C code comments to optimised replacement code.
9076
9077 2004-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
9078
9079         * device/lib/_gptrget.c,
9080         * device/lib/_gptrput.c: updated comment
9081         * device/lib/calloc.c,
9082         * device/lib/free.c,
9083         * device/lib/malloc.c,
9084         * device/lib/realloc.c: added LGPL, made them reentrant-safe
9085         * src/SDCCcse.c (cseBBlock),
9086         * src/SDCCicode.c (printOperand, geniCodeArray),
9087         * src/SDCCicode.h (struct operand): fixed bug 868103
9088         * support/regression/tests/bug-868103.c: added
9089         * src/SDCCast.c (searchLitOp),
9090         * src/SDCCcse.h (struct cseDef),
9091         * src/SDCCglue.c (printIvalArray, spacesToUnderscores),
9092         * src/SDCCicode.h (struct operand),
9093         * src/SDCCsymt.h (struct sym_link),
9094         * src/avr/gen.c (hasInc),
9095         * src/ds390/gen.c (hasInc),
9096         * src/hc08/gen.c (genPlusIncr, hasInc),
9097         * src/mcs51/gen.c (hasInc),
9098         * src/pic16/glue.c (pic16_printIvalChar),
9099         * src/pic16/ralloc.c (regWithIdx),
9100         * src/xa51/gen.c (hasInc) : removed warnings
9101         * src/SDCCast.c (createBlock): added comment ???
9102         * src/hc08/ralloc.c: updated comments
9103
9104 2004-09-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9105
9106         * doc/sdccman.lyx: updated section on switch statements, added
9107         section about semaphore locking
9108         * doc/Makefile: added option -info for latex2html
9109         * device/lib/_gptrget.c,
9110         * device/lib/_gptrput.c: __XPAGE instead of P2 in outcommented code
9111
9112 2004-09-06 Slade Rich <slade_rich AT users.sourceforge.net>
9113
9114         * src/pic/device.h,
9115         * src/pic/device.c,
9116         * src/pic/port.c : Changed PIC14 code to not set bit RP1 when
9117          maxram is less than 0x100.
9118
9119 2004-09-06 Slade Rich <slade_rich AT users.sourceforge.net>
9120
9121         * Bug fixes for PIC14 - signed RSHIFT problem. Patch supplied by Allen(agschrum).
9122
9123 2004-09-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9124
9125         * src/port.h,
9126         * src/mcs51/main.c,
9127         * src/ds390/main.c,
9128         * src/z80/main.c,
9129         * src/hc08/main.c,
9130         * src/pic/main.c,
9131         * src/pic16/main.c,
9132         * src/avr/main.c,
9133         * src/xa51/main.c
9134         * src/SDCCicode.c (geniCodeJumpTable): Better logic to determine if a
9135         a jump table is the best form for a switch statement, including
9136         automatic insertion of missing cases to make the case range
9137         continuous. Developed in collaboration with Frieder Ferlemann.
9138
9139 2004-09-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9140
9141         * src/hc08/ralloc.c (canDefAccResult): multi-byte shift is unsafe for
9142         accumulator result if it needs sign extension
9143
9144 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
9145
9146         * src/hc08/ralloc.c (canUseAccOperand): fixed comparison bug
9147
9148 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
9149
9150         * device/lib/gbz80/printf.c,
9151         * device/lib/z80/printf.c: removed define for NULL
9152
9153 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
9154
9155         * as/xa51/xa_link.c,
9156         * device/examples/ds390/ow390/ad26.c,
9157         * device/examples/ds390/ow390/cnt1d.c,
9158         * device/examples/ds390/ow390/counter.c,
9159         * device/examples/ds390/ow390/ds2480.h,
9160         * device/examples/ds390/ow390/ds2480ut.c,
9161         * device/examples/ds390/ow390/findtype.c,
9162         * device/examples/ds390/ow390/gethumd.c,
9163         * device/examples/ds390/ow390/owllu.c,
9164         * device/examples/ds390/ow390/ownetu.c,
9165         * device/examples/ds390/ow390/swt12.c,
9166         * device/examples/ds390/ow390/swtloop.c,
9167         * device/examples/ds390/ow390/temp.c,
9168         * device/examples/ds390/ow390/temp10.c,
9169         * device/examples/ds390/ow390/thermo21.c,
9170         * device/examples/ds390/ow390/tinilnk.c,
9171         * device/examples/ds390/ow390/tstfind.c,
9172         * device/examples/serialcomm/windows/serial.cpp,
9173         * device/examples/serialcomm/windows/test_serialcomm.cpp,
9174         * device/include/reg51.h: fixed line endings for cvs
9175
9176 2004-09-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9177
9178         * src/hc08/ralloc.c (canDefAccResult, canUseAccOperand,
9179         packRegsForAccUse, packRegisters): new accumulator register
9180         packing algorithm
9181         * support/regression/ports/hc08/support.c (_putchar): suppress
9182         warning of unused variable
9183         * src/SDCCicode.c: added SWAP entry to codeTable
9184
9185 2004-09-01 Maarten Brock <sourceforge.brock AT dse.nl>
9186
9187         * device/lib/sprintf.c: forgot to add this file before previous commit
9188
9189 2004-09-01 Vangelis Rokas <vrokas AT otenet.gr>
9190
9191         * src/pic16/gen.c (genPackBits): added operand right in function
9192         parameters, load result directly if p_type is POINTER (that is
9193         called by genNearPointerSet)
9194         * (genUnPackBits): added operand left in function parameters,
9195         * (genNearPointerGet, genNearPointerSet): prevent the loading of
9196         FSR0 if accessing bitfields,
9197
9198 2004-08-31 Maarten Brock <sourceforge.brock AT dse.nl>
9199
9200         * device/include/stdio.h: added NULL, size_t, typedef pfn_outputchar,
9201           _print_format; updated printf, sprintf, vsprintf
9202         * device/include/asm/default/features.h: corrected comment/define
9203         * device/lib/Makefile.in: added sprintf.c
9204         * device/lib/libsdcc.lib: added sprintf module
9205         * device/lib/printf_large.c,
9206         * device/lib/vprintf.c,
9207         * device/lib/sprintf.c: totally refactored printf_large and vprintf
9208           into these 3 files
9209         * support/regression/Makefile: changed ALL_PORTS into a usefull default
9210         * support/regression/ports/mcs51-stack-auto/spec.mk: added sprintf
9211         * support/regression/tests/bug-927659.c: removed dummy putchar, enabled
9212           hc08 test
9213         * support/regression/tests/zeropad.c: define idata as data for hc08
9214
9215 2004-08-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9216
9217         * src/SDCCpeeph.c (labelIsReturnOnly): support hc08 rts opcode also
9218         * src/SDCCpeeph.c (buildLabelRefCountHash): assume function entry point
9219         labels are referenced at least once (even if a reference is not found)
9220         * src/hc08/gen.c (emitcode): set isComment flag for comments
9221         * src/hc08/peeph.def: added rules 5a..5f (optimize redundant immediate
9222         loads), rules 6a..6b (optimize jumps to return)
9223
9224 2004-08-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9225
9226         * device/lib/acosf.c (acosf),
9227         * device/lib/asinf.c (asinf),
9228         * device/lib/atanf.c (atanf),
9229         * device/lib/ceilf.c (ceilf),
9230         * device/lib/cosf.c (cosf),
9231         * device/lib/coshf.c (coshf),
9232         * device/lib/cotf.c (cotf),
9233         * device/lib/fabsf.c (fabsf),
9234         * device/lib/floorf.c (floorf),
9235         * device/lib/log10f.c (log10f),
9236         * device/lib/logf.c (logf),
9237         * device/lib/sinf.c (sinf),
9238         * device/lib/sinhf.c (sinhf),
9239         * device/lib/sqrtf.c (sqrtf),
9240         * device/lib/tanf.c (tanf),
9241         * device/lib/tanhf.c (tanhf),
9242         * device/include/math.h: defined _FLOAT_FUNC_REENTRANT macro and
9243         replaced all instances of "reentrant" in the library functions
9244         defined in math.h with this macro.
9245         * support/regression/tests/float_trans.c: reenabled test for hc08
9246
9247 2004-08-30 Bernhard Held <bernhard AT bernhardheld.de>
9248
9249         * device/lib/pic16/Makefile.common.in: added MODELFLAGS again, it was
9250         erroneously deleted
9251
9252 2004-08-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9253
9254         * src/hc08/gen.c (loadRegFromAop): better use of clra & clrx
9255         * src/hc08/gen.c (genAnd, genOr): fixed bug with conditional when
9256         multi-byte volatile operands are used
9257         * src/hc08/gen.c (shiftRLong): fixed bug with wrong rotate direction
9258         * src/hc08/main.c (_hc08_genAssemblerPreamble): moved the built-in
9259         initialization to area GSINIT0 so that it would always precede
9260         any static initializers in GSINIT
9261         * support/regression/tests/zeropad.c: fixed idata define for hc08
9262         * support/regression/tests/bug-927659.c,
9263         * support/regression/tests/float_trans.c: disabled tests for hc08
9264         pending missing library routines
9265         * .version: increased version number to 2.4.4 - hc08 port now passes
9266         regression tests
9267
9268
9269 2004-08-29 Bernhard Held <bernhard AT bernhardheld.de>
9270
9271         * device/lib/pic16/Makefile.common.in: added $(MM) to fix `make clean`
9272         * Makefile.common.in,
9273         * as/Makefile,
9274         * as/hc08/Makefile.in,
9275         * as/mcs51/Makefile.in,
9276         * as/z80/Makefile.in,
9277         * debugger/mcs51/Makefile.in,
9278         * device/include/Makefile.in,
9279         * device/lib/Makefile.in,
9280         * doc/Makefile,
9281         * link/Makefile,
9282         * link/z80/Makefile.in,
9283         * packihx/Makefile.in,
9284         * sim/ucsim/main_in.mk,
9285         * sim/ucsim/avr.src/Makefile.in,
9286         * sim/ucsim/doc/Makefile.in,
9287         * sim/ucsim/gui.src/serio.src/Makefile.in,
9288         * sim/ucsim/hc08.src/Makefile.in,
9289         * sim/ucsim/s51.src/Makefile.in,
9290         * sim/ucsim/xa.src/Makefile.in,
9291         * sim/ucsim/z80.src/Makefile.in,
9292         * src/Makefile.in,
9293         * support/cpp2/Makefile.in,
9294         * support/librarian/Makefile,
9295         * support/makebin/Makefile: added DESTDIR to the install path proposed
9296         by "Maciej 'Agaran' Pijanka" <agaran AT pld-linux.org>
9297         * doc/sdccman.lyx: added DESTDIR documentation
9298
9299 2004-08-29 Vangelis Rokas (vrokas AT otenet.gr>
9300
9301         * src/pic16/gen.c (genFunction, genEndFunction): fixed return
9302         instruction for interrupt handlers, use fast returns when returning
9303         from high priority interrupts
9304
9305 2004-08-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9306
9307         * src/hc08/gen.c (genAnd, genOr, transferAopAop, rmwWithAop): optimized
9308         code generation
9309         * src/hc08/gen.c (genrshFour, genCpl): fixed bugs
9310         * src/hc08/gen.c (genMultOneByte, genDivOneByte, genModOneByte): fixed
9311         bugs, ported much of Bernhard's code from mcs51
9312         * src/mcs51/gen.c (genSend),
9313         * src/hc08/gen.c (genSend): fixed bug with lost SEND iCodes if more
9314         than one when calling a reentrant function
9315         * device/lib/_mullong.c: defined an alternate struct layout for big
9316         endian ports (hc08)
9317
9318 2004-08-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9319
9320         * src/hc08/gen.c (shiftL2Left2Result): fix for bug-500536 regression
9321         test
9322
9323 2004-08-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9324
9325         * src/SDCCsymt.c (processFuncArgs): make sure parameter types
9326         are sane and complete before asking the port its prefered parameter
9327         passing method (fixes bug #1017633)
9328         * device/lib/hc08/_ret.c: added "data" storage class to _ret2
9329         and _ret3
9330
9331 2004-08-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9332
9333         * src/hc08/gen.c (genPackBitsImmed, genUnpackBitsImmed): fix offset
9334         problem in bitfields >= 8 bits.
9335
9336 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
9337
9338         * src/SDCCsymt.c: undid changes that were not meant to be committed
9339
9340 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
9341
9342         * support/regression/ports/hc08spec.mk: REENTRANT must be reentrant
9343
9344 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
9345
9346         * src/hc08/gen.c (genUminusFloat): fixed bug where only 3 bytes were
9347           copied and wrong bit got inverted
9348
9349 2004-08-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9350
9351         * src/hc08/gen.c (genPointerSet, genFarPointerSet): moved code from
9352         genFarPointerSet into genPointerSet; eliminated genFarPointerSet
9353         * src/hc08/gen.c (genPointerGet, genFarPointerGet): moved code from
9354         genFarPointerGet into genPointerGet; eliminated genFarPointerGet
9355         * src/hc08/gen.c (genPackBitsImmed): generate optimized code for
9356         assignments to bitfields at known addresses
9357         * src/hc08/gen.c (genUnpackBitsImmed): generate optimized code for
9358         reads from bitfields at known addresses
9359         * src/hc08/ralloc.c (packRegisters),
9360         * src/hc08/gen.c (genPointerGet, genUnpackBits, genUnpackBitsImmed,
9361         genhc08Code): optimize pointer get values used as conditionals
9362         * src/hc08/peeph.def: added rules 2e & 2f to optimize bit test
9363         and branch
9364
9365 2004-08-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9366
9367         * src/mcs51/gen.c (genPointerGet, genNearPointerGet, genPagedPointerGet,
9368         genFarPointerGet, genCodePointerGet, genGenPointerGet, genUnpackBits),
9369         * src/mcs51/ralloc.c (packRegisters): optimize pointer get values used
9370         as conditionals
9371
9372 2004-08-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9373
9374         * src/mcs51/peeph.def: peepholes 248.i-m for xdata bitfields
9375
9376 2004-08-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9377
9378         * src/mcs51/ralloc.c (packRegsForOneuse): fixed bug #1012650 and some
9379         related problems
9380
9381 2004-08-21 Bernhard Held <bernhard AT bernhardheld.de>
9382
9383         * sim/ucsim/cmd.src/Makefile.in: run lex only if $(PRJDIR)/devel exists
9384
9385 2004-08-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9386
9387         * src/z80/ralloc.c (packRegsForAssign): ported some bug fixes from the
9388         mcs51 port
9389
9390 2004-08-16 Slade Rich <slade_rich AT users.sourceforge.net>
9391
9392         * src/pic/gen.c: Restored fn genRet as previous fix was incorrect.
9393
9394 2004-08-14 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9395
9396         * src/mcs51/gen.c (genJumpTab): jumptables for more than 16 switch
9397         cases use more compact code.
9398
9399 2004-08-13 Slade Rich <slade_rich AT users.sourceforge.net>
9400
9401         * src/pic/gen.c: Fixed problem with fn returning a variable bigger than a char.
9402
9403 2004-08-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9404
9405         * src/SDCClrange.c (findPrevUse): fixed bug #1007371
9406
9407 2004-08-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9408
9409         * src/SDCCsymt.h,
9410         * src/SDCCsymt.c (changePointer, checkDecl, addSymChain): changed
9411         parameter of changePointer() from symbol* to sym_link*
9412         * src/SDCCast.c (decorateType): call changePointer() for CAST op
9413         * src/SDCCsymt.c (compareType): void* type is castable to other
9414         pointers, but not necesarily an exact match.
9415         * src/SDCCicode.c (geniCodeCast): allow void* casting here since it
9416         is no longer blindly treated as an exact match.
9417         * src/SDCCval.c (valCastLiteral): treat missing type as cast to void
9418
9419 2004-08-12 Slade Rich <slade_rich AT users.sourceforge.net>
9420
9421         * src/pic/glue.c: Added struct initialisation fn printIvalStruct.
9422
9423 2004-08-11 Slade Rich <slade_rich AT users.sourceforge.net>
9424
9425         * src/pic/gen.c,
9426         * src/pic/pcode.c,
9427         * src/pic/ralloc.h,
9428         * src/pic/ralloc.c: Printing rIdx on internal verbose debug.
9429
9430 2004-08-10 Slade Rich <slade_rich AT users.sourceforge.net>
9431
9432         * src/pic/device.c,
9433         * src/pic/device.h,
9434         * src/pic/device.c: Will no longer exit if #pragma maxram has not been defined.
9435
9436 2004-08-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9437
9438         * src/mcs51/gen.c (emitcode): fixed bug #992819
9439
9440 2004-08-05 Maarten Brock <sourceforge.brock AT dse.nl>
9441
9442         * src/pic/ralloc.c (deassignLR): allthough pic port is buggy already,
9443           there's no need to make it worse
9444
9445 2004-08-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9446
9447         * src/mcs51/ralloc.c (deassignLR),
9448         * src/ds390/ralloc.c (deassignLR),
9449         * src/hc08/ralloc.c (deassignLR),
9450         * src/z80/ralloc.c (deassignLR),
9451         * src/pic/ralloc.c (deassignLR),
9452         * src/pic16/ralloc.c (deassignLR),
9453         * src/avr/ralloc.c (deassignLR),
9454         * src/SDCClrange.c (findRecursiveSucc, findRecursivePred, findPrevUse,
9455         rlivePoint): fixed another part of bug #971834
9456
9457 2004-08-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9458
9459         * src/z80/main.c: enabled "critical" keyword
9460         * src/z80/mappings.i,
9461         * src/z80/gen.c (genFunction, genEndFunction): support for interrupt
9462         functions (fixes bug #979646)
9463         * doc/sdccman.lyx: added a subsection explaining z80 interrupt support
9464
9465 2004-08-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9466
9467         * src/mcs51/gen.c (genInline): Add \n for labels, not DOS/WIN dirs
9468           such as c:\mydir.
9469
9470 2004-08-03 Maarten Brock <sourceforge.brock AT dse.nl>
9471
9472         * src/SDCCloop.c (loopInvariants): fixed bug 983545, hope this
9473           doesn't disable too much optimizations
9474
9475 2004-08-02 Slade Rich <slade_rich AT users.sourceforge.net>
9476
9477         * src/pic/glue.c Disabled "WARNING: function 'main' undefined" when -S option is used.
9478
9479 2004-08-02 Maarten Brock <sourceforge.brock AT dse.nl>
9480
9481         * src/SDCClrange.c (rlivePoint): fixed bug 988568, thanks to anonymous
9482
9483 2004-08-02 Slade Rich <slade_rich AT users.sourceforge.net>
9484
9485         * src/pic/gen.c tidied up tabs
9486         * src/pic/genarith.c tidied up tabs and fixed bug with literal multiple where same register was used for hi and low byte
9487         * src/pic/main.c tidied up tabs
9488         * src/pic/pcode.c tidied up tabs and disabled verbose code generation
9489         * src/pic/pcoderegs.c tidied up tabs
9490         * src/pic/ralloc.c tidied up tabs
9491
9492 2004-07-30 Vangelis Rokas <vrokas AT otenet.gr>
9493
9494         * src/SDCCmem.c (allocGlobal): don't turn S_REGISTER storage class
9495         to S_FIXED for pic16 port and when symbol is not in level 0,
9496         allocate for S_REGISTER storage class and pic16 port, too,
9497         * src/pic16/device.h: prototype for checkSym,
9498         * src/pic16/device.c (pic16_dump_access, checkSym): NEW,
9499         * (pic16_assignConfigWordValue): test the value and the mask to
9500         validate that the value is suitable for the configuration word,
9501         * src/pic16/glue.c (pic16_printIvalFuncPtr): use 'externs' to
9502         collect extern declared symbols, don't emit symbol twice, check
9503         first if symbol is in publics set first,
9504         * src/pic16/main.c (_pic16_keywords[]): added keyword 'register',
9505         * added command line '--fstack' which enables an experimental
9506         feature for stack access, too buggy to be used yet...
9507         * src/pic16/ralloc.c (pic16_accessregWithName): NEW,
9508         * (pic16_allocDirReg): when register has storage class S_REGISTER
9509         allocate in pic16_dynAccessRegs,
9510         * device/include/pic16/pic18f????.h: modified configuration word
9511         naming convention, words started as CONFIG0H but should be CONFIG1H
9512
9513 2004-07-29 Maarten Brock <sourceforge.brock AT dse.nl>
9514
9515         * device/include/mcs51reg.h: fixed bug 970993
9516
9517 2004-07-27 Maarten Brock <sourceforge.brock AT dse.nl>
9518
9519         * added lib/calloc.c, lib/free.c, lib/realloc.c, include/stddef.h
9520         * updated lib/malloc.c, lib/libsdcc.lib, lib/Makefile.in, include/malloc.h
9521         * src/SDCC.lex (doPragma): added pragma disable_warning <nnn>
9522         * src/SDCCmain.c (parseCmdLine): added option --disable-warning <nnn>
9523         * src/ds390/gen.c (genPlusIncr): fixed bug when incrementing generic pointers
9524         * support/Util/SDCCerr.c (vwerror): suppress disabled warnings and output
9525           error/warning numbers,
9526           added function setWarningDisabled()
9527         * support/Util/SDCCerr.h: added setWarningDisabled() and MAX_ERROR_WARNING
9528         * support/regression/ports/mcs51-stack-auto/spec.mk: added dependencies
9529           _memcmp.c _memmove.c calloc.c realloc.c free.c
9530         * support/regression/tests/malloc.c: added tests for new functionality
9531         * support/regression/tests/zeropad.c: added tests for truncated initializers
9532           and initialized char arrays starting with '\x0'
9533         * src/mcs51/peeph.def: fixed regression, added peephole 177.f
9534
9535 2004-07-26 Bernhard Held <bernhard AT bernhardheld.de>
9536
9537         * support/valdiag/tests/overflow.c: fixed warning on (1 >> 40)
9538
9539 2004-07-26 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9540
9541         * doc/sdccman.lyx: updated example in section "Absolute Addressing"
9542         * src/mcs51/peeph.def: added contributed fix for "bug" #995347 as
9543         peephole 177.e. Thanks to anonymous
9544
9545 2004-07-25 Vangelis Rokas <vrokas AT otenet.gr>
9546
9547         * src/pic16/glue.c (pic16_printIvalFuncPtr): when an extern
9548         function isn't used in the source but referenced as a
9549         variable initializer then declare it as extern in .asm file
9550
9551 2004-07-24 Vangelis Rokas <vrokas AT otenet.gr>
9552
9553         * .version: increased version number to 2.4.3
9554
9555         Adding version extension according to ChangeLog CVS revision
9556         * src/Makefile.in (target all): added dependency 'version.h'
9557         * (rule version.h): added rule to create version.h from ChangeLog,
9558         * (rule dep): added dependency version.h,
9559         * src/version.awk: AWK script to create version.h
9560         * src/SDCCdwarf2.c (dwWriteModule),
9561         * src/SDCCglue.c (initialComments),
9562         * src/SDCCmain.c (printVersionInfo): modified to write after
9563         version string the version extension number,
9564         * src/SDCCutil.c: included "version.h"
9565         * (getBuildNumber): NEW, returns SDCC's ChangeLog minor revision
9566         number,
9567         * src/SDCCutil.h: added prototype for getBuildNumber
9568
9569         * src/SDCCmain.c (parseCmdLine): when sOpt is 'I' add rest in
9570         includeDirsSet, too,
9571         * src/SDCCsymt.c (checkSClass): don't emit error when a variable,
9572         const char [] is found in function prototype...
9573
9574         * src/pic16/genarith.c (pic16_genUMult8XLit_8): optimization to omit
9575         moving to WREG with source is already in WREG,
9576         * src/pic16/gen.h: added AOP_FSR0 and AOP_FSR2 in enum,
9577         * src/pic16/gen.c (getFreePtr): updated to look for FSR0 and FSR2,
9578         * (aopForSym): stack'ed symbols are partially supported, added
9579         if-clause to support symbols in FARSPACE,
9580         * (sameRegs): added test for AOP_ACC to see if registers are same,
9581         * (pic16_freeAsmop): added case for AOP_FSR0 and AOP_FSR2,
9582         * (pic16_aopGet): added case for AOP_FSR0 and AOP_FSR2,
9583         * (pic16_popRegFromString): will not allocate a new register if it
9584         doesn't find one by name, bug may have introduced...
9585         * (pic16_popGet): added case for AOP_FSR0 and AOP_FSR2,
9586         * (genIpush): revived to use pic16 port's stack,
9587         * (genAddrOf): added incomplete case for stack'ed operand,
9588         * (genCast): optimized a pair of MOVFW,MOVWF to MOVFF
9589         * src/pic16/genutils.c (pic16_genNot): almot new vesrion for NOT,
9590         can handle multibyte operands,
9591         * src/pic16/glue.c (pic16_printIval*): some debug info added,
9592         * (pic16initialComments): added message for MPLAB compatibility
9593         mode enabled,
9594         * src/pic16/main.h: prototype for pic16_mplab_comp,
9595         * src/pic16/main.c (pic16_optionsTable): new option --mplab-comp,
9596         which enabled MPLAB compatibility mode (i.e. no #LINE/#FILE, BANKED)
9597         * (_pic16_linkEdit): NEW, handles link stage, transferred here
9598         because of increased complexity of procedure,
9599         * (_process_pragma): stack pragma changed to format 'stack pos len',
9600         emit symbol '_stack_end' to conform with gplink,
9601         * src/pic16/pcode.c (pic16_newpCodeOpBit): using pic16_regWithName
9602         to search for register,
9603         * (pic16_get_op, pic16_get_op2): added case for PO_W, PO_WREG and
9604         PO_GPR_REGISTER,
9605         * (pic16_pCode2str): when in MPLAB compatibility mode, comment out
9606         #LINE directives and replace 'B' with 'BANKED' in instruction opcodes
9607         * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): added
9608         case for PO_GPR_REGISTER,
9609         * (pic16_AnalyzeBanking): removed the old message for inc2h.pl, past
9610         dies, the new era is ahead !...
9611         * src/pic16/ralloc.c: added hash reposits pic16_dynAllocRegNames and
9612         pic16_dynInternalRegs,
9613         * (pic16_allocregWithName, pic16_procregWithName, pic16_regWithname): NEW,
9614         * (pic16_allocDirReg): minor optimizations and bug fixes,
9615         * (pic16_allocWithIdx): when searching pic16_dynProcessorRegs use fixed,
9616
9617         * device/lib/pic16/startup/crt0*.c: extern definition of stack_end,
9618         load stack and frame pointer with address of 'stack_end' symbol
9619
9620 2004-07-23 Vangelis Rokas <vrokas AT otenet.gr>
9621
9622         * src/pic16/glue.c (pic16emitStaticSeg): fixed bug with files
9623         without source code but only variable initializers
9624
9625 2004-07-20 Vangelis Rokas <vrokas AT otenet.gr>
9626
9627         * src/pic16/glue.c (pic16emitRegularMap): unused functions marked as
9628         external are not declared as extern to reduce overhead while linking
9629
9630 2004-07-20 Maarten Brock <sourceforge.brock AT dse.nl>
9631
9632         * src/SDCCast.c (decorateType): removed buggy fix for bug #979599
9633
9634 2004-07-11 Maarten Brock <sourceforge.brock AT dse.nl>
9635
9636         * src/SDCCglue.c (printIvalArray): fixed bug #984229, thanks to Phuah
9637           Yee Keat for the patch
9638         * src/SDCCast.c (decorateType): fixed bug #979599
9639         * src/ds390/gen.h: removed local fReturnSizeDS390
9640         * src/ds390/gen.c: made fReturnSizeDS390 signed short to remove a warning
9641         * src/ds390/gen.c (genAnd, genOr, genXor),
9642         * src/mcs51/gen.c (genAnd, genOr, genXor): generate better optimized code
9643
9644 2004-07-04 Vangelis Rokas <vrokas AT otenet.gr>
9645
9646         * src/SDCCmain.c (linkEdit): modifications only for pic16 port,
9647         add relFilesSet to $3, manipulate $2 to handle linking of object
9648         files without source files in command line,
9649         * device/include/pic16 (all headers): added ID location macros,
9650         * src/pic16/device.c (struct PIC16_device Pics16[]): added field
9651         entries for ID location bytes,
9652         * (pic16_assignIdByteValue): NEW,
9653         * src/pic16/device.h: new structures idRegInfo_t and idBytesInfo_t,
9654         added field dumpcalltree to pic16_options_t,
9655         * src/pic16/gen.c (genCmp): fixed bug case so a temporary register
9656         is used instead of pic16_Gstack_base_addr, check if (ifx) before
9657         emitting rFalseIfx label after check_carry label,
9658         * src/pic16/glue.c (PIC16_IS_IDLOC_ADDRESS, PIC16_IS_HWREG_ADDRESS,
9659         pic16_emitDIRegs), NEW
9660         * (pic16glue): dump .calltree file when option --calltree found,
9661         * src/pic16/main.c (OPTION _pic16_optionsTable): new option --calltree
9662         * (_pic16_genAssemblerPreamble): emit ID locations after
9663         configuration registers,
9664         * (pic16_linkCmd): modifications of the link command,
9665         * src/pic16/pcode.c (pic16_pciMOVFF): PCC_REGISTER replaces PCC_REGISTER2
9666         * (pic16_pCodeInitRegisters): don't init stack registers,
9667         * (pic16_findPrevInstruction): fixed bug,
9668         * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): fixed
9669         bug with immediate registers,
9670         * (buildCallTree): traces stack push and pop,
9671         * (pct2): dump also stack usage for each function,
9672         * src/pic16/ralloc.c (dynrIdx): registers names start from 0x00
9673         * (pic16_allocDirReg): various modifications,
9674         * (pic16_typeRegWithIdx): when searching pic16_dynProcessorRegs set
9675         fixed to 1,
9676
9677 2004-07-02 Vangelis Rokas <vrokas AT otenet.gr>
9678
9679         * src/pic16/pcode.c: removed buggy double colon
9680
9681 2004-07-01 Borut Razem <borut.razem AT siol.net>
9682
9683         * support/scripts/sdcc.nsi: added include/pic16 to setup
9684
9685 2004-06-30 Vangelis Rokas <vrokas AT otenet.gr>
9686
9687         * device/lib/Makefile.in: fixed bug in target objects-pic16,
9688         * device/lib/pic16/Makefile: prefixed with dash (-) command under
9689         target 'clean',
9690         * doc/sdccman.lyx: changed version to 2.4.2 and added some port
9691         specific command line arguments. Also added sample lkr script
9692         for placing a variable at a specific memory bank.
9693         * src/pic16/device.c (pic16_dump_gsection): NEW, to dump variables
9694         at a specific memory bank,
9695         * (pic16_dump_isection): fixed bug which caused string literals to
9696         be omitted when dumping idata section,
9697         * (pic16_groupRegistersInSection): added code to handle registers
9698         in specific memory banks,
9699         * src/pic16/gen.c: labelOffset is prefixed with pic16_ and made
9700         public, all references are renamed too,
9701         * (pic16_aopGet): removed switch cases for AOP_R0,AOP_R1,AOP_DPTR,
9702         AOP_DPTR2,
9703         * (pic16_storeForReturn): added case to handle when dest is WREG,
9704         * src/pic16/genarith.c (pic16_pCodeOpSubType): NEW,
9705         * src/pic16/glue.c (pic16emitRegularMap): when adding a register in
9706         pic16_rel_udata, check to see if that register is marked as being
9707         a member of a specific memory bank,
9708         * (pic16_printIvalCharPtr): added code to add string literals either
9709         to code or the idata sections,
9710         * src/pic16/main.c (_process_pragma): added \n to WHITE constant,
9711         also accept the 'udata' pragma,
9712         * src/pic16/main.h: new structure types sectName and sectSym
9713         * src/pic16/pcode.c: added new pCodeInstruction entry for BANKSEL
9714         * (newpCodeOpBit): added PIC_OPTYPE subt in function prototype,
9715         * (pic16_findPrevInstruction): fixed, it returned nothing,
9716         * (insertBankSwitch): fixed to emit banksel/skip and skip/banksel
9717         instruction combinations,
9718         * (pic16_FixRegisterBanking): heavily reorganised,
9719         * (pic16_AnalyzeBanking): if generating banksel directives is
9720         disabled, then don't call FixRegisterBanking at all,
9721         * src/pic16/ralloc.c (bitEQUs, aliasEQUs, allDefsOutOfRange):
9722         completely removed,
9723         * (pic16_writeUsedRegisters): added call to pic16_dump_gsection
9724
9725 2004-06-29 Bernhard Held <bernhard AT bernhardheld.de>
9726
9727         * src/SDCCglue.c (printChar): fixed bug #973350, patch provided by
9728         Phuah Yee Keat <yk.phuah AT nestac.com>
9729
9730 2004-06-28 Vangelis Rokas <vrokas AT otenet.gr>
9731
9732         * src/pic16/glue.c (pic16createInterruptVect): function now emits
9733         correctly the IVT even if it is relocated to some other location
9734
9735 2004-06-28 Vangelis Rokas <vrokas AT otenet.gr>
9736
9737         * device/include/pic16/pic18fregs.h: added case for pic18f2220.h
9738         * device/include/pic16/pic18f2220.h: NEW,
9739         * device/lib/pic16/libdev/pic18f2220.c: NEW,
9740         * device/lib/pic16/libdev/Makefile: added 18f2220 in DEVS,
9741         * src/pic16/device.c (struct Pics16): added info for 18f2220,
9742         * src/pic16/device.h (struct pic16_options): added ivt_loc and
9743         nodefaultlibs, ivt_loc is the location of the interrupt vector
9744         table, and nodefaultlibs signs that default libraries should not be
9745         linked in link stage,
9746         * src/pic16/gen.c (genFunction): relocate interrupt vector functions
9747         according to --ivt-loc argument,
9748         * src/pic16/main.c (_process_pragma): emit '_stack' as public symbol
9749         when pragma stack is found,
9750
9751 2004-06-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9752
9753         * src/mcs51/peeph.def: added peepholes 182.d (return 0.0),
9754         256 (range check), 257 (do while), 258.a-f (bit banging
9755         f.e. on 3-wire SPI bus)
9756
9757 2004-06-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9758
9759         * src/SDCClrange.c (findNextUseSym): fixed a live range bug with
9760         variables used exclusively within a loop
9761
9762 2004-06-21 Bernhard Held <bernhard AT bernhardheld.de>
9763
9764         * src/mcs51/gen.c (genCpl): quick fix for bug #974835
9765
9766 2004-06-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9767
9768         * src/SDCClrange.c (computeClash): fixed bug #971834
9769
9770 2004-06-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9771
9772         * src/mcs51/gen.c (genCmp): fixed bug #975903
9773         * src/hc08/gen.c (operandsEqu),
9774         * src/ds390/gen.c (operandsEqu),
9775         * src/z80/gen.c (operandsEqu),
9776         * src/pic/gen.c (operandsEqu),
9777         * src/pic16/gen.c (operandsEqu),
9778         * src/mcs51/gen.c (operandsEqu): fixed bug #976283
9779         * src/SDCCmain.c (parseCmdLine): report --unknown-option only once
9780
9781 2004-06-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9782
9783         * src/SDCCcse.c (cseBBlock): fixed bug #966963
9784
9785 2004-06-12 Vangelis Rokas <vrokas AT otenet.gr>
9786
9787         * src/pic16/gen.c (genPointerGet): added E_INTERNAL_ERROR for
9788         default case in switch statement,
9789         * glue.c (pic16_initPointer): expr is initialised via decoarteType
9790         to eliminate problem with initialisation of pointers, but problem
9791         still exists,
9792         * (pic16_pointerTypeToGPByte): removed, no needed for pic16,
9793         * (emitStaticSegment): removed various lines emitting debug info,
9794         * src/pic16/pcode.c, src/pic16/pcode.h, src/pic16/ralloc.h:
9795         added processor registers for utilizing EEPROM,
9796         * src/pic16/pcode.c (pic16_emitDB): number of DBs emitted is not
9797         configurable and set 8
9798
9799 2004-06-08 Vangelis Rokas <vrokas AT otenet.gr>
9800
9801         * .version: increased version number to 2.4.2,
9802
9803         Cumulative patch for pic16 port
9804         * src/pic16/device.c: changed scheme to dump initial values for
9805         variables in idata segment, all print_idata* functions were removed,
9806         now the pic16_printIval* will be called,
9807         * src/pic16/glue.c: (pic16_initPointer, pic16_pointerTypeToGPByte,
9808         * _pic16_printPointerType, pic16_printPointerType,
9809         * pic16_printGPointerType, pic16_printIvalArray, pic16_printIvalStruct,
9810         * pic16_printIvalBitFields, pic16_printIvalFuncPtr, pic16_printIvalPtr:
9811         NEW, similar to the respective functions in SDCCglue.c,
9812         * src/pic16/pcode.c (pic16_emitDB, pic16_flushDB): reverted to old
9813         way, emitting hex bytes,
9814         * (pic16_emitDS): NEW, emits a string for pointer initialisation,
9815
9816 2004-06-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9817
9818         * src/avr/ralloc.c (serialRegAssign),
9819         * src/xa51/ralloc.c (serialRegAssign),
9820         * src/pic/ralloc.c (serialRegAssign),
9821         * src/pic16/ralloc.c (serialRegAssign),
9822         * src/hc08/ralloc.c (serialRegAssign),
9823         * src/z80/ralloc.c (serialRegAssign),
9824         * src/ds390/ralloc.c (serialRegAssign),
9825         * src/mcs51/ralloc.c (serialRegAssign): fixed bug #964479
9826
9827 2004-06-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9828
9829         * src/SDCCicode.c (geniCodeJumpTable): fixed bug #967601
9830         * src/SDCCpeeph.c (labelIsReturnOnly): fixed bug #966505
9831
9832 2004-06-07 Vangelis Rokas <vrokas AT otenet.gr>
9833
9834         Cumulative patch for pic16 port:
9835         * src/pic16/device.h (typedef PIC16_device) modified fields for
9836         defining microcontrollers,
9837         * src/pic16/device.c: added new info for all devices in Pics16 array,
9838         * src/pic16/gen.c (genPcall): fixed bug that caused the return label
9839         to be optimised out by the pCode optimiser,
9840         * src/pic16/glue.c (pic16emitRegularMap): treat implicit aggragates
9841         specially, bug reported by G.M. Gallant,
9842         * src/pic16/pcode.c (pic16_newpCodeLabelFORCE): NEW, marks a label
9843         as force'd so that cannot be optimised out by pCode optimiser,
9844         * src/pic16/pcode.c,
9845         * src/pic16/pcodepeeph.c,
9846         * src/pic16/pcoderegs.c: many modifications to re-enable peepholes,
9847         they are disabled by default, but can be enabled explicit with
9848         command argument --denable-peeps, for testing,
9849         * device/lib/pic16/startup/Makefile: added --no-peep,--pomit-config-words,
9850         --pomit-ivt in COMPILE_FLAGS
9851
9852 2004-06-06 Maarten Brock <sourceforge.brock AT dse.nl>
9853
9854         * src/pic16/pcode.c (pic16_emitDB): removed double semicolon which fails
9855           compilation on MSVC
9856
9857 2004-06-06 Maarten Brock <sourceforge.brock AT dse.nl>
9858
9859         * device/include/sab80515.h: added sfr P6, changed GPL to LGPL
9860
9861 2004-06-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9862
9863         device/include/sab80515.h: fixed bug #967492, DAPR is defined at adress
9864         0xd8, but the correct adress is 0xda. Thanks to anonymous for reporting
9865
9866 2004-06-06 Vangelis Rokas <vrokas AT otenet.gr>
9867
9868         * src/pic16/device.c (pic16_assignConfigWord): fixed bug that
9869         would only assign 0x300001 register.
9870
9871 2004-06-05 Vangelis Rokas <vrokas AT otenet.gr>
9872
9873         * device/lib/pic16/startup/Makefile: added $(MODELFLAGS)
9874         in COMPILE_FLAGS. Thanks to G. Gallant for report.
9875
9876 2004-06-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9877
9878         * doc/sdccman.lyx: minor changes, mentioned beta vendor support
9879         for ds80c400
9880         * src/mcs51/peeph.def: ran unexpand -a over peeph.def
9881         * src/mcs51/peeph.def: removed obsolete peephole 100.a,
9882         added peephole 254 (left shift), 255 (jump table)
9883
9884 2004-06-04 Vangelis Rokas <vrokas AT otenet.gr>
9885
9886         * device/lib/Makefile.in: removed comment line with model-pic16,
9887         * (target port-specific-objects-pic16): the libraries and objects
9888         are copied to the build directory form the device/lib/pic16/bin
9889         directory
9890
9891         Cumulative patch concerning pic16 port:
9892         * library directory has been re-organized,
9893         * added support for PIC18F1220,
9894         * added headers and library sources for chips 18f1220,18f6520,
9895         18f6620,18f6680,18f6720,18f8520,18f8620,18f8680,18f8720
9896
9897         * configuration registers setting has changed, now each supported
9898         device has a complete description of the registers it uses,
9899         * all initialisations are moved to idata sections, these section
9900         can be absolute or relocatable,
9901         * fixed initialisation of codespace variables,
9902         * fixed warning about PCLATU and gpsim,
9903         * src/pic16/gen.c (genCmp): now can handle partially iCodes with no ifx,
9904         * (genAssign): use table reads when assigning from variables in codespace,
9905         * src/pic16/glue.c (pic16emitStaticSeg): fixed to correctly initialise
9906         char/int variables placed in codespace,
9907         * (pic16_emitConfigRegs): NEW, emits a list with configuration
9908         registers set in .asm file, no need for --pomit-config-words anymore,
9909         * (pic16glue): some 8051 legacy segments are commented out
9910         (to be removed completely),
9911         * added support for alternative assembler and linker with --asm=
9912         and --link= command line arguments,
9913         * peepholes are disabled automatically in the port, no need to
9914         specify on command line,
9915         * port supports natively char/int/long multiplication, but converts
9916         all divisions to support functions,
9917         * main.c: pic16_linkCmd and pic16_asmCmd changed to force output
9918         to the file set in variable $2,
9919         * pcode.c (pic16_emitDB, pic16_flushDB): modified to print printable
9920         strings in ASCII format and not in hex,
9921         * ralloc.c (serialRegAssign): added a triplet of conditional calls
9922         to pic16_allocDirReg for IC_RESULT, IC_LEFT and IC_RIGHT so to
9923         allocate proper register if iCodes aren't temporary,
9924
9925 2004-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
9926
9927         * support/regression/tests/zeropad.c: added TEST_G macro for alpha
9928
9929 2004-06-02 Vangelis Rokas <vrokas AT otenet.gr>
9930
9931         * src/pic16/gen.c (genPcall): warning about gpsim and PCLATU
9932         is commented out
9933
9934 2004-06-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9935
9936         * src/hc08/gen.c (genPointerGetSetOfs): disabled optimization if
9937         computed address is reused
9938         * src/hc08/gen.c (genPackBits): fixed offsets in assignments to
9939         multi-byte bitfields
9940
9941 2004-06-01 Maarten Brock <sourceforge.brock AT dse.nl>
9942
9943         * src/z80/gen.c: (genArrayInit): must check for pointers too
9944
9945 2004-06-01 Maarten Brock <sourceforge.brock AT dse.nl>
9946
9947         * support/regression/tests/zeropad.c: never meant to commit the
9948           nestedstruct test: removed, added check for GCC version
9949
9950 2004-05-31 Maarten Brock <sourceforge.brock AT dse.nl>
9951
9952         * src/SDCCast.c (createIvalArray): fixed bug 770487 SIGSEGV
9953         * src/SDCCglue.c (emitRegularMap): fixed bug 770484 allocation problem
9954         * src/SDCCglue.c (initPointer, printIvalType, printIvalStruct,
9955           printIvalArray, printIvalFuncPtr, printIvalPtr, printIval): fixed
9956           bugs 928906 and 954082 half-empty initializers
9957         * src/SDCCsymt.h,
9958         * src/SDCCsymt.c (getAllocSize): added for above fix
9959         * src/z80/gen.c (genArrayInit): fixed bug 741044
9960         * support/regression/tests/zeropad.c: added tests
9961
9962 2004-05-30 Vangelis Rokas <vrokas AT otenet.gr>
9963
9964         * src/pic16/device.c (pic16_dump_section): corrected bug which
9965         caused some symbols of the libraries to be misplaced
9966
9967 2004-05-28 Vangelis Rokas <vrokas AT otenet.gr>
9968
9969         * src/pic16/glue.c,
9970         * src/pic16/ralloc.h,
9971         * src/pic16/ralloc.cc: prefixed IS_CONFIG_ADDRESS with PIC16_
9972         to fix conflict with pic port
9973
9974 2004-05-28 Vangelis Rokas <vrokas AT otenet.gr>
9975
9976         * src/pic16/glue.c (pic16emitStaticSeg): do not print as publics or
9977         externs configuration variables,
9978         * src/pic16/ralloc.h,
9979         * src/pic16/ralloc.cc: IS_CONFIG_ADDRESS is made public and added
9980         prototype in header, commented out some debug messages
9981
9982 2004-05-26 Vangelis Rokas <vrokas AT otenet.gr>
9983
9984         * src/pic16/glue.c,
9985         * src/pic16/main.c,
9986         * src/pic16/pcode.c: added gpasm directives #FILE/#LINE
9987         for gpasm COFF object generation. Thanks to D. Hawkins for
9988         his patch info
9989
9990 2004-05-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9991
9992         * src/ds390/main.c,
9993         * src/mcs51/main.c: fixed sort order of mnemonics (thanks to Maarten
9994         Brock for spotting this)
9995         * src/ds390/gen.c (genEndFunction),
9996         * src/mcs51/gen.c (genEndFunction): always save psw if function is an
9997         interrupt handler and critical. Disable push/pop optimizations when
9998         peephole optimizations disabled.
9999
10000 2004-05-25 Vangelis Rokas <vrokas AT otenet.gr>
10001
10002         Updated pic16 library sources and headers.
10003         * device/lib/pic16/pic18f*/ ,
10004         * device/include/pic16/*.h: modified to handle structured SFR
10005         definitions
10006
10007 2004-05-25 Vangelis Rokas <vrokas AT otenet.gr>
10008
10009         * src/port.h (PORT structure): added hook initPaths, now each
10010         port can declare its own default search paths,
10011         which can been seen with the --print-search-dirs option,
10012         see pic16 port for example,
10013         * src/SDCCmain.c (setBinPaths, setIncludePaths, setLibPath,
10014         setDataPaths): test to options.printSearchDirs is ifdef'ed out,
10015         * (doPrintSearchDirs): NEW, replaces in a central manner the
10016         printing of search dirs which was split in set*Paths functions,
10017         * (main): added call to port->initPaths and doPrintSearchDirs,
10018         * src/avr/main.c,
10019         * src/ds390/main.c,
10020         * src/hc08/main.c,
10021         * src/izt/i186.c,
10022         * src/izt/tlcs900h.c,
10023         * src/mcs51/main.c,
10024         * src/pic/main.c,
10025         * src/pic16/main.c: modified port structures to reflect addition of
10026         initPaths hook,
10027
10028         * src/pic16/device.c (regCompare): registers are finally sorted by name,
10029         * (pic16_dump_section): for registers in same address reserve memory once,
10030         * src/pic16/device.h (struct PIC16_device): changed variable gen_banksel
10031         to no_banksel,
10032         * src/pic16/genarith.c (pic16_genPlus): added code to handle cases where
10033         result is greater in size than right or left,
10034         * (pic16_genUMult8X8_8): there are some cases where the result can
10035         be 16 bits size, so handle these,
10036         * src/pic16/gen.c: changed some pic16_emitpcomment to DEBUGpic16_emitcode,
10037         * (pic16_outBitC): modified to emit pcodes,
10038         * (pic16_storeForReturn): using is_LitOp to see if operand is literal
10039         or not,
10040         * (genDivOneByte): implemented algorithm to divide 8-bits,
10041         * (genCmp): uncommented goto, but issues still exist,
10042         * (genAnd): fixed a bug with variables >8bits,
10043         * (genPackBits): optimization added that uses BCF/BSF to change a
10044         single bit,
10045         * (genAssign): fixed bug when assigning floating point literals,
10046         * src/pic16/glue.c (pic16glue): added assembler directive 'code' before
10047         __sdcc_gsinit_startup label,
10048         * src/pic16/main.c (_pic16_init): removed search directory
10049         initialisations,
10050         * (_pic16_initPaths): NEW, used to initialise search directories,
10051         * (_hasNativeMulFor): support functions for all except char/int
10052         multiplication, and char division,
10053         * (PIC16_port struct): modified entry for native mul support,
10054         * src/pic16/pcode.c (insertBankSwitch): modified to support the renamed
10055         no_banksel option,
10056         * (buildCallTree): call to register_usage is ifdef'ed out,
10057
10058 2004-05-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10059
10060         * device/include/string.h: applied Stas Sergeev's patch to make this
10061         header file compatible with the preprocessor -Wundef option
10062         * src/SDCCmain.c (main): abort compilation if preprocessor reports
10063         failure (fixes bug #941458)
10064
10065 2004-05-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10066
10067         * src/SDCCopt.c (killDeadCode): fixed bug #907733
10068         * support/Util/SDCCerr.c: reworded E_AUTO_ASSUMED diagnostic to clarify
10069         that the variable, not the function, should be static
10070         * src/SDCCval.c (valCastLiteral): fixed bit initialization from literal
10071         to be consistent with non-literal case
10072
10073 2004-05-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10074
10075         * src/SDCCast.c (isConformingBody): fixed bug #949967
10076         * src/SDCCopt.c (cnvToFcall, cnvToFloatCast, cnvFromFloatCast,
10077         convilong): fixed bug #952086
10078
10079 2004-05-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10080
10081         * src/SDCCmem.c (allocVariables): fixed bug #955321
10082
10083 2004-05-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10084
10085         * src/hc08/main.c (_hc08_genAssemblerEnd),
10086         * src/SDCCdwarf2.c (dwOpenFile, dwCloseFile, dwWriteFunction,
10087         dwWriteModule, dwWriteCLine, dwWriteALine, dwarf2FinalizeFile):
10088         completely eliminated the use of a temporary file
10089         * src/SDCCdwarf2.c (dwWriteAttr): fixed bug with location list offset
10090         when more than one file linked
10091         * src/SDCCloop.c (pointerAssigned): fixed bug #954163
10092
10093 2004-05-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10094
10095         * src/SDCCval.c (valForArray): applied Maarten Brock's patch #947682
10096         which fixes bug #543481
10097         * support/regression/tests/bug-751703.c: fixed comments left from a
10098         cut and paste error
10099         * src/SDCCdwarf2.c (dwCloseFile): don't explicitly close a temp file
10100         * src/SDCCdwarf2.c (dwTagFromType): added bitfield support
10101         * src/SDCCdwarf2.c (dwWriteSymbolInternal): handle extern within local
10102         scopes
10103         * src/SDCCdwarf2.c (dwWriteLineNumber): line number deltas are signed
10104         * src/SDCCmain.c (processFile, parseCmdLine): non-alphanumeric chars
10105         are now changed to underscores in moduleName
10106
10107 2004-05-15 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10108
10109         * as/mcs51/lkmem.c: better fix for bug #954173
10110
10111 2004-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
10112         committed by Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10113
10114         * device/include/c8051f020.h: newly added SiLabs (Cygnal) header file
10115         * device/include/c8051f000.h,
10116         * device/include/c8051f120.h,
10117         * device/include/c8051f300.h,
10118         * device/include/c8051f310.h,
10119         * device/include/c8051f320.h: updated (added _XPAGE, CAPN, CAPP,
10120         PWM16) and detab'ed
10121
10122 2004-05-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10123
10124         * doc/sdccman.lyx: mentioned sourceforge's delay between web frontend
10125         and mailing lists, doc'ed --no-peep-comments, removed reference
10126         to knoppix (newest version has no LyX/LaTeX), other minor changes
10127         * src/SDCCglue.c (glue): save 2 bytes stack space with
10128         option --main-return. The ljmp could probably be avoided too
10129
10130 2004-05-14 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10131
10132         * as/mcs51/lkmem.c, as/mcs51/lkaomf51: fixed bug 954173
10133
10134 2004-05-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10135
10136         * src/SDCCsymt.h: added IS_AUTO(symbol) test macro
10137         * src/SDCCopt.c (isLocalWithoutDef),
10138         * src/SDCCicode.c (operandFromSymbol): use the IS_AUTO test macro
10139         which adds a !IS_EXTERN codition. Fixes bugs #877426 and #751703.
10140         (credit to Maarten Brock for patch #949363, on which this is based)
10141         * support/regression/tests/bug-751703.c: some test cases of extern used
10142         within inner scopes.
10143
10144 2004-05-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10145
10146         * src/SDCCdwarf2.c (dwMatchTypes): structs must have matching
10147         SPEC_STRUCT
10148         * src/SDCCdwarf2.c (dwTagFromType): fix to handle recursive
10149         struct definitions
10150         * src/SDCCdwarf2.c (dwWriteModule, dwNewDebugSymbol, dwWriteEndFunction,
10151         dwWriteLabel): fix to create valid debugger symbols even when
10152         the module name has non-alphanumeric symbols in it
10153         * src/SDCCdwarf2.c (dwWriteSymbolInternal): better detection for
10154         when a variable's allocation has been optimized away
10155
10156
10157 2004-05-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10158
10159         * src/hc08/gen.c (hc08_emitDebuggerSymbol),
10160         * src/hc08/main.c,
10161         * src/mcs51/gen.c (mcs51_emitDebuggerSymbol),
10162         * src/mcs51/main.c,
10163         * src/ds390/gen.c (ds390_emitDebuggerSymbol),
10164         * src/ds390/main.c,
10165         * src/z80/gen.c (z80_emitDebuggerSymbol),
10166         * src/z80/main.c,
10167         * src/pic/gen.c (pic14_emitDebuggerSymbol),
10168         * src/pic/main.c,
10169         * src/pic16/gen.c (pic14_emitDebuggerSymbol),
10170         * src/pic16/main.c,
10171         * src/avr/gen.c (avr_emitDebuggerSymbol),
10172         * src/avr/main.c,
10173         * src/xa51/gen.c (xa51_emitDebuggerSymbol),
10174         * src/xa51/main.c,
10175         * src/SDCCdebug.c (emitDebuggerSymbol),
10176         * src/SDCCdebug.h,
10177         * src/port.h: added a debugger struct to the port struct. Added a
10178         callback for defining debugger symbols
10179
10180         * src/SDCCast.c (createLabel),
10181         * src/SDCC.y (labeled_statement): mark all compiler generated labels
10182         with isitmp = 1
10183         * src/SDCCicode.h,
10184         * src/SDCCicode.c (geniCodeFunctionBody): added a link from the FUNCTION
10185         iCode back to the ast for the function
10186
10187         * src/hc08/ralloc.c (hc08_assignRegisters),
10188         * src/hc08/ralloc.h: define a regs struct for the stack pointer. Removed
10189         unneeded fields from the regs struct.
10190         * src/hc08/gen.c (transferRegReg, genFunction, genEndFunction): use the
10191         pushReg() & pullReg() functions instead of emitcode()
10192
10193         * src/hc08/gen.c (genLabel, genhc08Code),
10194         * src/SDCCdebug.h: Added additional debugger hooks needed for DWARF
10195
10196         * src/cdbFile.c (cdbWriteLabel, cdbWriteScope): Added stubs for unneeded
10197         debugger hooks
10198
10199         * src/hc08/gen.c (genEndFunction, genhc08Code),
10200         * src/hc08/gen.h,
10201         * src/mcs51/gen.c (genEndFunction, gen51Code),
10202         * src/mcs51/gen.h,
10203         * src/ds390/gen.c (genEndFunction, gen390Code),
10204         * src/ds390/gen.h,
10205         * src/z80/gen.c (genEndFunction, genZ80Code),
10206         * src/z80/gen.h,
10207         * src/z80/z80.h,
10208         * src/pic/gen.c (genEndFunction, genpic14Code),
10209         * src/pic/gen.h,
10210         * src/pic16/gen.c (genEndFunction, genpic16Code),
10211         * src/pic16/gen.h,
10212         * src/avr/gen.c (genEndFunction, genAVRCode),
10213         * src/avr/gen.h,
10214         * src/xa51/gen.c (genEndFunction, genXA51Code),
10215         * src/xa51/gen.h,
10216         * src/cdbFile.c (cdbWriteFunction, cdbWriteEndFunction): moved cdb
10217         specific code to cdbFile.c and out of the backend code generators
10218
10219         * as/hc08/lkmain.c (main): removed OMF51 support from link-hc08
10220         * as/hc08/lkarea.c (lnkarea): areas with NOLOAD attribute default
10221         starting address is now 0
10222
10223         * as/hc08/asm.h,
10224         * as/hc08/m08pst.c,
10225         * as/hc08/asmain.c (asmbl): implemented the .sleb128 and .uleb128
10226         assembler directive for DWARF support
10227         * as/hc08/lkelf.c (elf): only increment address when rtflg[] set
10228
10229         * src/src.dsp,
10230         * src/Makefile.in,
10231         * src/SDCCdwarf2.c: preliminary DWARF (ver 2) debugger data generator
10232
10233 2004-05-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10234
10235         * src/hc08/gen.c (genJumpTab, emitcode, genhc08code): fixed stack error
10236         and inappropriate peephole optimization in jump tables
10237
10238 2004-04-30 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10239
10240         * as/hc08/m08pst.c,
10241         * src/SDCCglue.c: sdccopt works for the hc08 port now
10242
10243 2004-04-27 Bernhard Held <bernhard AT bernhardheld.de>
10244
10245         * src/SDCCicode.c (geniCodePreInc, geniCodePreDec): fixed bug #942130
10246
10247 2004-04-27 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10248
10249         * as/hc08/lkelf.c: sdccconf.h is not available in WIN32
10250
10251 2004-04-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10252
10253         * src/SDCCpeeph.c (replaceRule): support empty replacement peephole
10254         rules
10255         * src/SDCCmain.c,
10256         * src/SDCCglobl.h,
10257         * src/SDCCpeeph.c (getPeepLine): new option --no-peep-comments omits
10258         comments from the peephole optimizer replacement rules
10259         * src/SDCCmem.c (printAllocInfoSeg): give actual location of spilled
10260         symbols
10261         * src/SDCCcse.c (updateSpillLocation),
10262         * src/SDCCopt.c (killDeadCode, findReqv): better tracking of register
10263         equivalents
10264         * src/hc08/ralloc.c (regTypeNum): pseudo symbols must be in DATA only
10265         * src/hc08/main.c (_hc08_finaliseOptions): made pointers to stack
10266         objects far pointers
10267
10268 2004-04-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10269
10270         * src/SDCCsymt.h: a missing part of my last change
10271         * src/pic/ralloc.c (regTypeNum),
10272         * src/pic16/ralloc.c (regTypeNum): fixed statement/declaration order
10273
10274 2004-04-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10275
10276         * src/SDCCicode.h,
10277         * src/SDCCicode.c (aggrToPtrDclType),
10278         * src/SDCCptropt.h,
10279         * src/SDCCptropt.c (ptrBaseRematSym, ptrPseudoSymSafe,
10280         ptrPseudoSymConvert),
10281         * src/pic/ralloc.c (regTypeNum),
10282         * src/pic16/ralloc.c (regTypeNum),
10283         * src/hc08/ralloc.c (regTypeNum),
10284         * src/ds390/ralloc.c (regTypeNum),
10285         * src/mcs51/ralloc.c (regTypeNum): check for dependancy hazards before
10286         creating pseudo symbols (fixed bugs #777768, #930484, and #933966)
10287
10288 2004-04-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10289
10290         * link/z80/lkmain.c (afile),
10291         * as/hc08/lkmain.c (afile),
10292         * as/mcs51/lkmain.c (afile): fix suggested by Maarten Brock to
10293         prevent a pointer problem when a filename has no directory and
10294         no extension specified.
10295
10296 2004-04-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10297
10298         * link/z80/lkmain.c (afile): allow periods in directory names
10299         * link/z80/lkmain.c (afile),
10300         * as/mcs51/lkmain.c (afile),
10301         * as/hc08/lkmain.c (afile): allow linker script file to have an
10302         extension other than ".lnk"
10303         * link/z80/lklex.c (getfid),
10304         * link/z80/lkmain.c (parse),
10305         * as/mcs51/lklex.c (getfid),
10306         * as/mcs51/lkmain.c (parse),
10307         * as/hc08/lklex.c (getfid),
10308         * as/hc08/lkmain.c (parse): Support comments in the linker script
10309         file on lines by themselves and after filenames
10310
10311 2004-04-20 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10312
10313         * as/link_hc08.dsp: Added as/hc08/lkelf.c to project.
10314
10315 2004-04-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10316
10317         * src/z80/peeph-z80.def: removed some peephole rules that don't
10318         work with multibyte arithmetic (fixed bug #937126)
10319         * src/mcs51/peeph.def: fixed peephole rules 150-158 to apply only
10320         to registers and not global variables
10321         * src/SDCCicode.c (geniCodeAssign, ast2iCode, geniCodePostInc,
10322         geniCodePreInc, geniCodePostDec, geniCodePreDec,
10323         geniCodeLogicAndOr, geniCodeConditional): enforce strict lvalue
10324         checking for assignments not internally generated (fixed bug #931895)
10325         * src/SDCC.y (postfix_expr): ignore typedefs when looking for a
10326         structure member (fixed bug #930072)
10327
10328 2004-04-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10329
10330         * src/SDCCmain.c (linkEdit),
10331         * src/hc08/main.c (_hc08_parseOptions),
10332         * as/hc08/Makefile.in,
10333         * as/hc08/aslink.h,
10334         * as/hc08/asm.h,
10335         * as/hc08/m08pst.c,
10336         * as/hc08/lkrloc.c (relr, rele),
10337         * as/hc08/lkarea.c (lnkarea)
10338         * as/hc08/lkmain.c (afile, parse),
10339         * as/hc08/lkelf.c: support for ELF output
10340         * as/hc08/lks19.c (s19),
10341         * as/hc08/lkihx.c (ihx): ignore areas with the NOLOAD attribute
10342
10343 2004-04-17 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10344
10345         * as/mcs51/lkihx.c: Fixed bug #899105.
10346
10347 2004-04-16 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10348
10349         * doc/sdccman.lyx: Added instructons on how to convert MSVC .dsw and
10350         .dsp files from Unix to DOS.
10351
10352 2004-04-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10353
10354         * doc/sdccman.lyx: removed the ANSI-C noncompliance note regarding
10355         function pointers; we have been compliant for several months now.
10356         * src/mcs51/ralloc.c (serialRegAssign): enabled part of my 2004-04-13
10357         change that was accidently commented out
10358         * src/mcs51/gen.c (freeAsmop, getFreePtr, freeForBranchAsmop, genIfxJump,
10359         genCmpEq, jmpTrueOrFalse, genCmp, genAnd, genOr, genXor, genIfx): fixed
10360         bug #922319
10361
10362 2004-04-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10363
10364         * src/hc08/gen.c: output of all of the internal debugging information
10365         is now controlled by the D() macro; it is disabled by default
10366
10367 2004-04-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10368
10369         * src/mcs51/ralloc.c (serialRegAssign, fillGaps, allocThisReg): try
10370         harder to keep the same registers during a CAST iCode
10371         * src/SDCCopt.c (optimizeCastCast, eBBlockFromiCode): casts of char to
10372         long via int can be done in a single cast, if the signedness is
10373         correct.
10374         * support/regression/tests/bug-927659.c: fixed to avoid conflict with
10375         putchar() in tinibios.c in ds390's library
10376
10377 2004-04-12 Bernhard Held <bernhard AT bernhardheld.de>
10378
10379         * src/SDCCast.c (decorateType): fixed bug #898889,
10380         cast result of a literal complement too
10381         * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #930931,
10382         fixed check for bitfields
10383
10384 2004-04-11 Bernhard Held <bernhard AT bernhardheld.de>
10385
10386         * src/SDCCicode.c (geniCodeLogic): made it static,
10387         (geniCodeLogicAndOr): added in order to fix bug #905492,
10388         (ast2iCode): fixed bug #905492
10389         * support/regression/tests/bug-905492.c: added
10390         * src/SDCCast.c (decorateType): don't decorate/process parms twice,
10391         (processParms): fixed bug #927659: don't copy parms, this will clear
10392         decorated flag
10393         * support/regression/tests/bug-927659.c: added
10394
10395 2004-03-29 Bernhard Held <bernhard AT bernhardheld.de>
10396
10397         * src/SDCCast.c (addCast): don't cast float to char
10398         * device/lib/libsdcc.lib: added _memmove
10399
10400 2004-03-28 Bernhard Held <bernhard AT bernhardheld.de>
10401
10402         * device/lib/large/Makefile: fixed parallel execution by
10403         replacing `make` by `$(MAKE)`
10404
10405 2004-03-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10406
10407         * src/hc08/gen.c (genPointerGetSetOfs): correctly handle 1 byte array
10408         offsets (fixes bug #923936)
10409
10410 2004-03-26 Bernhard Held <bernhard AT bernhardheld.de>
10411
10412         * device/lib/small/Makefile: fixed parallel execution by
10413         replacing `make` by `$(MAKE)`
10414
10415 2004-03-23 Bernhard Held <bernhard AT bernhardheld.de>
10416
10417         * device/lib/vprintf.c (vsprintf): minor optimization, see bug #801101
10418
10419 2004-03-23  Scott Dattalo  <scott AT dattalo.com>
10420
10421         * src/pic/gen.c (genCpl): multi-byte complements were not working.
10422         * src/regression/Makefile: Regression test was not running.
10423
10424 2004-03-23 Bernhard Held <bernhard AT bernhardheld.de>
10425
10426         * src/SDCCast.c (resultTypePropagate, decorateType): avoid promotion to int for
10427         complement if possible
10428         * src/SDCCval.c (valComplement),
10429         * src/SDCCicode.c (operandOperation): fixed complement of literal
10430         * support/regression/tests/onebyte.c (testComplement): added
10431
10432 2004-03-22 Bernhard Held <bernhard AT bernhardheld.de>
10433
10434         * src/SDCCast.c (processParms): fixed bug #920866; decorateType() can
10435         return an optimized tree; actually replace actParm with the new tree
10436         * src/SDCCast.h: added some parantheses to remove side effects
10437         * support/regression/tests/bug-920866.c
10438
10439 2004-03-21  Scott Dattalo  <scott AT dattalo.com>
10440         * src/pic/gen.c, src/pic/gen.h, src/pic/genarith.c, src/pic/pcode.c:
10441         Bit operands were not being handled properly in the pic14 port.
10442         (now src/regression/add.c passes again).
10443
10444 2004-03-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10445
10446         * src/SDCC.y (labeled_statement): case and default no longer require
10447         a following statement (RFE #893037)
10448
10449 2004-03-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10450
10451         * src/mcs51/gen.c (pushSide, genSignedRightShift, genDjnz, geniPush):
10452         use MOVA macro to avoid "mov a,acc" when peephole optimizer is
10453         disabled (fixes bug #916294)
10454         * sim/ucsim/s51.src/mov.cc (inst_mov_a_addr): Throw an error on
10455         "mov a,acc"; patch provided by Lenny Story
10456         * device/include/mc68hc908gp32.h: header contibuted by Juan Gonzalez
10457
10458 2004-03-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10459
10460         * src/mcs51/gen.c (genFunction): optimize RECEIVE in reentrant
10461         functions
10462         * src/ds390/gen.c (genFunction, genEndFunction),
10463         * src/ds390/ralloc.c (ds390_assignRegisters),
10464         * src/mcs51/gen.c (genFunction, genEndFunction, mcs51_assignRegisters):
10465         * src/mcs51/ralloc.c (mcs51_assignRegisters): Skip optimizing registers
10466         pushed if there are parameters passed on the stack. Also, a cleaner
10467         way to decide if r0/r1 should be pushed/popped. (Together they fix
10468         bug #918693)
10469
10470 2004-03-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10471
10472         * doc/sdccman.lyx,
10473         * device/lib/mcs51/crtpagesfr.asm,
10474         * device/lib/mcs51/crtxinit.asm,
10475         * device/lib/mcs51/crtxstack.asm: Changed name of _PAGESFR to _XPAGE
10476         to avoid confusion with Si Lab's SFRPAGE register.
10477
10478 2004-03-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10479
10480         * src/SDCCglue.c (emitMaps): allow public sfr variables
10481         * src/SDCCglue.c (initialComments): include compiler build date
10482         with compiler version and put the timestamp of the generated
10483         assembly file on a serperate line to be less confusing.
10484         * src/port.h: added genInitStartup hook
10485         * src/avr/main.c,
10486         * src/ds390/main.c,
10487         * src/hc08/main.c,
10488         * src/pic/main.c,
10489         * src/pic16/main.c,
10490         * src/xa51/main.c,
10491         * src/z80/main.c: genInitStartup initialize as NULL (default to
10492         historical behaviour)
10493         * src/SDCCglue.c (glue): _sdcc_gsinit_startup is now port specific.
10494         * src/mcs51/main.c: (_mcs51_genInitStartup, _mcs51_genExtraAreas,
10495         _mcs51_genXINIT, _mcs51_genRAMCLEAR): link initialization code from the
10496         library instead of hard coding it into the compiler.
10497         * support/regression/ports/mcs51-stack-auto/spec.mk,
10498         * src/SDCCmain.c (linkEdit): added mcs51.lib to the link libraries
10499         * device/lib/mcs51/Makefile,
10500         * device/lib/small/Makefile,
10501         * device/lib/large/Makefile,
10502         * device/lib/mcs51/crtpagesfr.asm,
10503         * device/lib/mcs51/crtstart.asm,
10504         * device/lib/mcs51/crtxclear.asm,
10505         * device/lib/mcs51/crtxinit.asm,
10506         * device/lib/mcs51/crtclear.asm,
10507         * device/lib/mcs51/crtxstack.asm: move most of the mcs51 C runtime
10508         startup/initialization out of src/SDCCglue.c and src/mcs51/main.c
10509         and into user configurable files.
10510         * device/lib/clean.mk: clean mcs51 directory too
10511         * support/regression/tests/longlit.c: added static to T1 declaration
10512         * doc/sdccman.lyx: documented _PAGESFR sfr for customizing pdata
10513         accesses in the initialization code
10514
10515 2004-03-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10516
10517         * device/include/mc68hc908qy.h: corrected declarations of FLBPR and
10518         OSCTRIMVAL as noted in bug #916008
10519
10520 2004-03-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10521
10522         * src/SDCCloop.c (basicInduction): fixed bug with loop induction
10523         in loops with multiple exits (reported as incorrect registers
10524         used by Martin Helmling in Sdcc-user list)
10525
10526 2004-03-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10527
10528         * src/ds390/main.c (_ds390_genAssemblerPreamble): cosmetic change,
10529         made ds390 register extensions look less like error messages
10530
10531 2004-03-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10532
10533         * src/SDCCglue.c (printIvalPtr): fixed bug with pointer initializer
10534         reported by Adam Wozniak in Sdcc-user list
10535
10536 2004-03-10 Bernhard Held <bernhard AT bernhardheld.de>
10537
10538         * src/SDCCast.c (decorateType): fixed with bug and promotion in
10539         arithmetic optimizations, added debug output
10540
10541 2004-03-09 Bernhard Held <bernhard AT bernhardheld.de>
10542
10543         * device/lib/time.c (mktime): fixed bug reported by Bert Thomas
10544         * sdcc.spec: updated and split sdcc into 3 rpms
10545         * src/SDCCast.c (decorateType): &|^ don't need addCast(); addCast() is
10546         needed for literals of LEFT_OP and '+'
10547         * src/SDCCicode.c (geniCodeLogic): I must have been braindead when I
10548         introduced RESULT_TYPE_NOPROM
10549         (geniCodeMultiply): fixed logic for decision if mul is optimized to
10550         left shift
10551         * src/SDCCsymt.c (computeType): op is int; added RESULT_TYPE_OTHER;
10552         limited promotion to int only for '*'
10553         * src/SDCCsymt.h (computeType): op is int, removed RESULT_TYPE_NOPROM
10554
10555 2004-03-09 Hans Dorn <hjdorn AT users.sourceforge.net>
10556
10557         * src/pic16/gen.c (genSkip),
10558         (genc16bit2lit), (gencjneshort): commented out
10559         (is_LitOp): new helper function, checks operand type
10560         (genCmpEq): rewritten
10561
10562 2004-03-08 Bernhard Held <bernhard AT bernhardheld.de>
10563
10564         * support/regression/tests/bug-908454.c: added
10565
10566 2004-03-07 Bernhard Held <bernhard AT bernhardheld.de>
10567
10568         * src/SDCCast.c (addCast): fixed bug #908454 by promoting bits to char
10569         * src/SDCCicode.c (usualBinaryConversions): op needs int type
10570         (geniCodeCast): cosmetic, don't preserve bit storage class
10571         (geniCodeLeftShift): added promotion
10572         (geniCodeLogic): fixed regression
10573         * src/SDCCsymt.c (computeTypeOr): accept bits too
10574         (compareType): 2nd part of fix for bug #908454, needed for bitfields
10575
10576 2004-03-07  Borut Razem <borut.razem AT siol.net>
10577
10578         * support/Util/findme.c: alloca() replaced with malloc()/free() pair
10579
10580 2004-03-06 Vangelis Rokas <vrokas AT otenet.gr>
10581
10582         * src/pic16/ralloc.c (pic16_genPackRegisters): reverted to old
10583         version of pic16_genPackRegisters which does not check if ic is a
10584         CAST operator,
10585         * src/pic16/gen.c (ifxForOp): disabled new and untested code in
10586         function cause string1.c regression test fails
10587
10588 2004-03-06 Bernhard Held <bernhard AT bernhardheld.de>
10589
10590         * sim/ucsim/configure.in,
10591         * sim/ucsim/configure,
10592         * sim/ucsim/doc/Makefile.in: use docdir
10593         * src/SDCC.y: fixed sbit atrributes
10594         * src/SDCCast.c (getResultTypeFromType): added support for bitfields
10595         * src/SDCCast.c (decorateType): |^& need special promotion handling
10596         * src/SDCCast.h,
10597         * src/SDCCsymt.h: moved definition of RESULT_TYPE
10598         * src/SDCCsymt.h (computeType),
10599         * src/SDCCicode.c: computeType() needs op
10600         * src/SDCCsymt.c (checkTypeSanity),
10601         * doc/sddman.lyx: "plain" bitfields are unsigned
10602         * src/SDCCsymt.c (computeTypeOr): added
10603         * src/SDCCsymt.c (computeType): added support for bitfields, fixed
10604         |^& ops
10605         * src/SDCCval.c (val*): computeType() needs op
10606         * src/SDCCval.c (valCastLiteral): fixed casting of bitfields
10607         * support/regression/tests/onebyte.c: added tests for |^&
10608
10609 2004-03-06 Hans Dorn <hjdorn AT users.sourceforge.net>
10610
10611         * src/pic16/gen.c: (genpic16Code) use copy of printILine's output
10612         for writing icode into asm output.
10613
10614 2004-03-05 Vangelis Rokas <vrokas AT otenet.gr>
10615
10616         * src/pic16/device.c: added some debug lines enabled
10617         with macro DEBUG_CHECK,
10618         * src/pic16/genarith.c: more debug in genPlus,
10619         * (pic16_genUMult8XLit_16, pic16_genUMult8X8_16): removed,
10620         * (pic16_genUMult16X16_16, pic16_genUMult16XLit_16): NEW,
10621         * src/pic16/gen.c: added prototypes for pic16_genMult16X16_16,
10622         * (aopForSym): onStack symbols are re-placed in data memspace,
10623         and onStack flag is cleared,
10624         * (pic16_popGetTempReg, pic16_popReleaseTempReg): modified to
10625         copy temporary pcodeop,
10626         * (genPcall): added warning for not updating PCLATU,
10627         * (genFunction): removed test with IFFUNC_CALLEESAVES, its
10628         always true for pic16 port,
10629         * (genMultOneWord): NEW, supports integer multiplication,
10630         * (genMult): modified to call genMultOneWord,
10631         * (ifxForOp): added warning when return NULL,
10632         * src/pic16/glue.c (pic16emitRegularMap): symbol implicit
10633         flag is set before call to operandFromSymbol for implicit
10634         added structures,
10635         * src/pic16/main.c (_pic16_finaliseOptions): options.float_rent,
10636         options.intlong_rent are set by default,
10637         * (_hasNativeMulFor): modified to allow port generation of integer
10638         multiplication,
10639         * src/pic16/ralloc.c (pic16_allocDirReg): commented out line which
10640         set regtype to REG_SFR for all registers, restricting seting the
10641         accessBank flag for registers 0<= r < 0x80 and 0xf80<=r<=0xfff,
10642
10643 2004-03-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10644
10645         * src/mcs51/peephole.def: added 251.b and 253.x. 253.x are applied
10646         more than 500 times in the regression tests
10647
10648 2004-03-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10649
10650         * support/Util/SDCCerr.h,
10651         * support/Util/SDCCerr.c,
10652         * src/SDCC.y (struct_or_union_specifier, enum_specifier,
10653         enumerator_list),
10654         * src/SDCCsymt.c (addSymChain): show location of oriignal definition
10655         for symbol conflicts.
10656         * support/valdiags/tests/enum.c,
10657         * support/valdiags/tests/tentdecl.c,
10658         * support/valdiags/tests/struct.c: expect possible error messages
10659         referring to original symbol definitions.
10660         * src/SDCC.y (struct_or_union_specifier, struct_declarator),
10661         * src/SDCCsymt.h,
10662         * src/SDCCsymt.c (promoteAnonStructs): support anonymous struct/union
10663
10664 2004-03-03 Hans Dorn <hjdorn AT users.sourceforge.net>
10665
10666         * src/pic16/gen.c (gencjne): fixed for right=REG / left=LIT
10667
10668 2004-02-03 Vangelis Rokas <vrokas AT otenet.gr>
10669
10670         * src/pic16/ralloc.c (newReg): fixed bug #908929
10671
10672 2004-03-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10673
10674         * src/ds390/gen.c: added missing #include "main.h"
10675
10676 2004-03-02 Vangelis Rokas <vrokas AT otenet.gr>
10677
10678         * src/pic16/device.c (checkAddSym): NEW, adds a symbol to set while
10679         checking if symbol is already in set,
10680         * src/pic16/device.h: prototype for checkAddSym,
10681         * src/pic16/gen.c: (_G): added entry interruptvector,
10682         * (assignResultValue): removed some commented out lines,
10683         * (genFunction): check for ISR via sym->type, absolute section for
10684         interrupt code is created via a new pBlock, the goto instruction is
10685         placed now correctly at the interrupt vector position, changed all
10686         references from ivec to _G.interruptvector,
10687         * WREG,STATUS,BSR are not saved in stack upon an entry to interrupt
10688         is the interrupt is a high priority one, same for return from ISR,
10689         * src/pic16/glue.c: changed all calls of addSetHead for publics and
10690         externs to calls of checkAddSym,
10691         * src/pic16/pcode.c (pic16_pBlockConvert2*): emit warning when
10692         pic16_pcode_verbose flag is set,
10693         * src/pic16/pcode.h: extern to pic16_pcode_verbose,
10694         * src/pic16/pcoderegs.c: message about how many registers are saved
10695         will only be emitted if pic16_pcode_verbose flag is set,
10696
10697 2004-03-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10698
10699         * src/ds390/ralloc.h,
10700         * src/ds390/ralloc.c (ds390_regWithIdx),
10701         * src/ds390/gen.c (emitcode),
10702         * src/ds390/main.h,
10703         * src/ds390/main.c (instructionSize, ds390newAsmLineNode, updateOpRW,
10704         ds390opcodeCompare, asmLineNodeFromLineNode, getInstructionSize,
10705         ds390operandCompare, getRegsRead, getRegsWritten,
10706         initializeAsmLineNode): customized instruction size calculation for
10707         ds390, started basis for some register optimizations
10708         * src/ds390/gen.c (gen390Code, emitcode): associate iCodes with
10709         corresponding assembly output
10710         * src/ds390/gen.c (genFunction, genEndFunction): added case to handle
10711         missing push/pop of r0/r1. Optimized push/pops
10712
10713 2004-03-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10714
10715         * src/mcs51/main.c (instructionSize): fixed ACALL size
10716         * src/mcs51/main.c (updateOpRW): fixed bug with @dptr, @a+dptr operands
10717
10718 2004-03-01 Vangelis Rokas <vrokas AT otenet.gr>
10719
10720         * src/pic16/device.c (pic16_dump_section): fixed a bug that allowed
10721         the sorting of rlist with NULL elements
10722         * (print_idataType, print_idata): NEW to create idata sections
10723         * src/pic16/device.h: idataSymSet new variable
10724         * src/pic16/gen.c (genFunction): fixed some bugs in string
10725         comparing, improved the absolute section creation for ISRs,
10726         added FSR0L/FSR0H in registers that are saved in an ISR,
10727         * (genInline): fixed the processing of inline snippets,
10728         now they undergo no process by the peephole optimizer
10729         * src/pic16/glue.c (pic16emitRegularMap): symbols with initialiser
10730         are placed in idataSymSet,
10731         * (pic16emitStaticSeg): extern symbols are added in externs,
10732         * src/pic16/ralloc.c (pic16_allocDirReg): work around to reduce bank
10733         switching when aboslute variables are placed in access bank memory
10734         * (pic16_writeUsedRegs): added call to pic16_dump_idata,
10735         * (packRegsForSupport,packRegsForAccUse,packRegsForOneuse):
10736         commented out with #if,
10737         * (pic16_packRegisters): reintroduce the check for CAST because some
10738         symbols are not correctly handled,
10739         * src/pic16/pcode.h: changed the definition of pCodeAsmDir to hold a
10740         pCodeInstruction instead of pCode,
10741         * src/pic16/pcode.c (pic16_newpCodeAsmDir): modified for the new
10742         pCodeAsmDir definition,
10743         * (pic16_pCode2str, genericPrint): when an AsmDir pcode has a NULL
10744         directive, then the argument directive is emitted without the leading
10745         tab, hack for inline labels which must be in the first column,
10746         * (compareLabel,pic16_findNextInstruction),
10747         * (pic16_findPrevInstruction): added case for PO_ASMDIR,
10748         * (insertBankSwitch): modified for the new pCodeAsmDir,
10749
10750 2004-03-01 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
10751         patch applied by Vangelis Rokas <vrokas AT otenet.gr>
10752
10753         * src/pic16/gen.c (pic16_popGet): case PO_DIR, adds the offset to
10754         instance,
10755         * (pushSide): commented out with #if,
10756         * (assignResultValue): fixed some typos in saving
10757         registers,
10758         * (genPcall): FIXED and sync'ed with genCall,
10759         * (genDataPointerGet,genDataPointerSet): using offset not leoffset
10760         * (genNearPointerGet): fixed to handle some more cases,
10761         implementation scheme via table reads,
10762         * (genConstPointerGet): modified to access code memory correct,
10763         * (genCodePointerGet,genNearPointerSet,genGenPointerSet): modified
10764         and improved to handle some cases
10765         * glue.c (printIvalType,printIvalChar,emitStaticSeg): use "DB"
10766         instead of "RETLW" for init data
10767         * src/pic16/ralloc.c (pic16_allocDirReg): warning when a symbol is
10768         not IN_DIRSPACE, work around to reduce bank switching when aboslute
10769         variables are placed in access bank memory (<0x80 and >=0xf80),
10770         * src/pic16/pcode.c: added SFRs TBLPTR, TABLAT, added opcodes TBLRD,
10771         TBLRD_POSTINC,TBLRD_POSTDEC,TBLRD_PREINC,TBLWT,TBLWT_POSTINC,
10772         TBLWT_POSTDEC,TBLWT_PREINC
10773         * Fixed initialisation of BSR, set "alias" for SSAVE to "0"
10774         * (pic16_emitDB,pic16_flushDB): New functions to generate "DB"
10775         directives
10776         * (pic16_pCodeConstString): use "DB" instead of "RETLW"
10777         * src/pic16/pcode.h: added TBLRD*,TBLWT*, added pic16_emitDB,
10778         pic16_flushDB, made pic16_newpCodeAsmDir public, added TBLPTR, TABLAT
10779         * src/pic16/ralloc.h: added IDX_BSR,IDX_TBLPTR*,IDX_TABLAT
10780
10781 2004-02-29  Borut Razem <borut.razem AT siol.net>
10782
10783         * src/Makefile.in, src/SDCCutil.c, support/Util/findme.c,
10784         support/Util/findme.h, support/Util/system.h: enhance binary relative
10785         search for lib and include by using findProgramPath()
10786
10787 2004-02-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10788
10789         * src/SDCCpeeph.h,
10790         * src/SDCCpeeph.c (pcDistance),
10791         * src/port.h,
10792         * src/mcs51/ralloc.h,
10793         * src/mcs51/ralloc.c (mcs51_regWithIdx),
10794         * src/mcs51/main.h,
10795         * src/mcs51/main.c (instructionSize, asmLineNode, updateOpRW,
10796         mcs51opcodeCompare, asmLineNodeFromLineNode, getInstructionSize,
10797         mcs51operandCompare, getRegsRead, getRegsWritten): made instruction
10798         size calculation port specific, started basis for some register
10799         optimizations
10800         * src/mcs51/gen.c (genFunction, genEndFunction): added case to handle
10801         missing push/pop of r0/r1. Optimized push/pops
10802         * src/mcs51/ralloc.c (packregisters): fixed bug #727095
10803         * device/lib/_modsint.c (_modsint),
10804         * device/lib/_modslong.c (_modslong): fixed sign of result in non-asm
10805         and stack version so regression tests pass
10806
10807 2004-02-26 Bernhard Held <bernhard AT bernhardheld.de>
10808
10809         * src/Makefile.in (dep): include SLIBOBJS in dependency check
10810         * src/SDCCast.c (decorateType): catch another small optimization
10811         with '?' operator
10812         * src/SDCCsymt.c (computeType): added comments and cosmetic changes
10813         * src/SDCCval.c (valMult, valDiv, valMod, valPlus, valMinus, valShift):
10814         modified to finally use computeType() all over SDCC,
10815         see Feature Request #877103
10816         * src/SDCCval.h: cosmetic
10817         * src/SDCCicode.c (operandOperation): fixed EQ_OP bug, now same as in
10818         valCompare(); regression tested in muldiv.c
10819         * support/regression/tests/muldiv.c (testMod): mod sign follows
10820         dividend only
10821
10822 2004-02-23 Bernhard Held <bernhard AT bernhardheld.de>
10823
10824         * src/SDCCast.c (decorateType): fixed bug #902362
10825         * doc/INSTALL.txt: fixed install instructions for win32
10826
10827 2004-02-21 Bernhard Held <bernhard AT bernhardheld.de>
10828
10829         * device/include/Makefile.in (install): fixed by replacing spaces
10830         by tabs
10831         * doc/README.txt,
10832         * doc/INSTALL.txt: updated for release
10833         * doc/sdccman.lyx: added warning for --xstack being buggy
10834
10835 2004-02-20 Bernhard Held <bernhard AT bernhardheld.de>
10836
10837         * src/pic16/ralloc.c (packRegsForAccUse):  disabled functions with #if
10838         to eliminate build warnings.
10839         * src/pic16/gen.c (pic16_popGet): fixed for gcc 2.95.4
10840
10841 2004-02-20 Vangelis Rokas <vrokas AT otenet.gr>
10842            Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
10843
10844         * doc/sdccman.lyx: removed PIC16 from PIC16 Port Specific Options,
10845         removed -penable-stack, added comment for stack pragma, added
10846         warning for not initializing the stack/frame registers, removed
10847         comment at interrupts section
10848
10849         Stack is made permanent, there is no ability to disable stack usage.
10850         * src/pic16/device.h,
10851         * src/pic16/device.c: removed all references to USE_STACK macro,
10852         * src/pic16/device.c (pic16_dump_section): when no elements in
10853         rlist, free rlist before return,
10854         * (pic16_dump_int_registers): NEW, internal registers are a new set
10855         of general purpose registers reused by each function,
10856         * (checkAddReg): returns 1 if registers is added to set,
10857         * (pic16_groupRegistersInSection): when a registers is of type
10858         PO_GPR_TEMP add it in pic16_int_regs and not in pic16_rel_udata,
10859         * src/pic16/device.h: memRange and Assigned Memory are deleted,
10860         SRCASECMP macro is moved here from device.c
10861         * src/pic16/genarith.c (pic16_pCodeOpType): added cases for
10862         PO_PCLATU, PO_PRODL, PO_PRODH,
10863         * (pic16_pCodeOpType, genMinus,
10864         changed compares to "a" register, with AOP_ACC,
10865         * (pic16_genPlus): fixed some bugs and indented properly,
10866         * (pic16_addSign): changed size to size+offset in the MOVWF
10867         instruction,
10868         * (pic16_genUMult8XLit_8): NEW, uses processor MULLW instruction to
10869         multiply 8-bit operand by literal, result is 8-bit,
10870         * (pic16_genUMult8X8_8): NEW, uses processor MULWF instruction to
10871         multiply 2 8-bit operand, result is 8-bit,
10872         * (pic16_genMult8X8_8): modified to call genUMult8X*_8 functions and not
10873         genUMult8X*_16,
10874         * src/pic16/gen.c: changed accUse to contain WREG only,
10875         * (pic16_emitcomment): renamed to pic16_emitpcomment,
10876         * (aopForSym): allocated dir register when IN_DIRSPACE(space) is,
10877         true, do not use immediate addressing any more unless sym is a
10878         pointer in codespace,
10879         * (aopForRemat): do not use immediate addressing when symbol not in
10880         codespace and when symbol's address is requested,
10881         * (aopOp): for-loop in if(sym->accUse) is modified for the new
10882         accUse size (= 1),
10883         * (aopGet): added case for AOP_ACC and don't return "accumulator
10884         bug" but WREG instead,
10885         * (popGetTempReg): pushes contents of temporary register in stack,
10886         * (popReleaseTempReg): pops contents of temporary register from
10887         stack. Use popGetTempReg/popReleaseTempReg in aligned pairs,
10888         * (pic16_popGet): separated case AOP_ACC to return register WREG
10889         from processor registers, AOP_PCODE not checks if pcop is PO_DIR
10890         or PO_IMMEDIATE and initializes their instance/offset appropriately,
10891         * The whole issue with aopForSym,aopForRemat,popGet) is to minimize
10892         the use of immediate pointers to certain cases only.
10893
10894         * (pic16_pushpCodeOpReg, pic16_poppCodeOpReg): use pic16_popGet2p,
10895         * (pic16_loadFromReturn, pic16_storeForReturn: NEW,
10896         * (assignResultValue, genCall, genRet): modified to use the new
10897         function return value scheme with WREG,PRODL,PRODH,FSR0L and FSR0,
10898         genPcall is still broken,
10899         * (genFunction): added code to create 'A' type pBlocks when
10900         interrupt functions are generated, code not extensively tested yet,
10901         ISRs push WREG,STATUS,BSR,PRODL,PRODH,FSR0L,FSR0H registers on stack,
10902         * (genEndFunction): modified so ISRs pop stored registers from stack,
10903         * (genMultOneByte): cleanup,
10904         * (AccRsh): added flag andmask, to and result with appropriate mask,
10905         * (genUnpackBits,genPackBits): fixed and can handle bit fields,
10906         * (genDataPointerGet): fixed and reenabled its use,
10907         * (genNearDataPointerGet): bugs fixed,
10908         * (genDataPointerSet): bugs fixed,
10909         * src/pic16/genutils.c: added functions pic16_DumpValue,pic16_DumpAop,
10910         pic16_DumpSymbol, pic16_DumpOp,
10911         * src/pic16/genutils.h: function prototypes for the above functions,
10912         * src/pic16/glue.c: new flags initsfpnt, to initialize stack/frame
10913         pointers,
10914         * (pic16emitRegularMap): many many many improvements, but needs a
10915         major cleanup,
10916         * src/pic16/main.c: enable_stack in pic16_options is removed,
10917         * (_pic16_parseOptions): removed command line options -penable-stack,
10918         * (_process_pragma): emit stack symbol only when stack pragma is
10919         processed,
10920         * src/pic16/pcode.c: pic16_pc_fsr0 is removed, all operations are
10921         redirected to FSR0L/FSR0H pair,
10922         * (pic16_get_op, pic16_get_op2): modifications and improvements,
10923         * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): added
10924         cases PO_PRODL,PO_PRODH, pic16_getRegFromInstruction2 returns sane
10925         for immediates,
10926         * (insertBankSwitch): modified to handle cases like: (alfa + 1)
10927         * (dumpPicOptype): NEW,
10928         * src/pic16/pcode.h: added PO_PCLATU,PO_PRODL,PO_PRODH in enum,
10929         * src/pic16/pcoderegs.c (pCodeRegMapLiveRangesInFlow): fixed bug
10930         with movff instruction,
10931         * src/pic16/ralloc.c: renamed typeRegWithIdx to pic16_typeRegWithIdx,
10932         added pic16_int_regs, some packRegsFor* functions are commented out,
10933         because produce errors,
10934         * src/pic16/NOTES: minor modifications
10935
10936 2004-02-18  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10937
10938         * as/mcs51/aslink.h, as/mcs51/lkarea.c, as/mcs51/lkdata.c, as/mcs51/lkmain.c,
10939         as/mcs51/lkmem.c, src/SDCCglob.h, src/SDCCmain.c: added options --stack-size and
10940         --pack-iram.
10941         * doc/sdccman.lyx: described options --stack-size and --pack-iram.
10942         * as/mcs51/lkaomf51.c: fixed bug #895763
10943
10944 2004-02-17 Bernhard Held <bernhard AT bernhardheld.de>
10945
10946         * device/include/c8051f320.h: added. Contributed by Maarten Brock.
10947
10948 2004-02-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10949
10950         * doc/sdccman.lyx: added details about the HC08 storage classes and
10951         interrupts, fixed the register usage info for z80 & gbz80
10952
10953 2004-02-17 Vangelis Rokas <vrokas AT otenet.gr>
10954
10955         * doc/sdccman.lyx: added more pic16 port documentation
10956         * device/include/pic16/: added header pic18fregs.h
10957
10958 2004-02-16 Bernhard Held <bernhard AT bernhardheld.de>
10959
10960         * doc/sdccman.lyx: added Vangelis' contribution
10961
10962 2004-02-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10963
10964         * src/SDCClrange.c (rlivePoint): live range of SEND operand should
10965         extend to the next CALL or PCALL, not just to the next CALL.
10966
10967 2004-02-16 Vangelis Rokas <vrokas AT otenet.gr>
10968
10969         * src/pic16/gen.c (genInline): fixed bug #896482 with inline assembly
10970
10971 2004-02-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10972
10973         * src/mcs51/ralloc.c (packRegsForAssign, reassignAliasedSym): fixed
10974         bug #895752 and a better fix for bug #716790
10975
10976 2004-02-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10977
10978         * src/SDCCsymt.c (processFuncArgs): fixed bug #896796
10979
10980 2004-02-14 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10981
10982         * doc/sdccman.lyx: minor changes, minor changed
10983
10984 2004-02-13 Bernhard Held <bernhard AT bernhardheld.de>
10985
10986         * src/SDCCicode.c (usualBinaryConversions): removed pic16 from ports
10987         which can't handle SDCC_NEWONEBYTEOPS,
10988         (geniCodeMultiply): removed conversion from mult to shift for pic14
10989         and pic16
10990
10991 2004-02-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10992
10993         * src/hc08/gen.h,
10994         * src/hc08/gen.c (storeRegToAop, aopOp, aopAdrStr, accopWithAop,
10995         rmwWithAop): Ported my 2003-10-02 fix for bug #663539 to the hc08,
10996         thus fixing bug #895406
10997
10998 2004-02-11 Bernhard Held <bernhard AT bernhardheld.de>
10999
11000         * device/lib/_modsint.c,
11001         * device/lib/_modslong.c: sign follows divisor only
11002         * src/hc08/gen.c (genMultOneByte): if result size is 1,
11003         signs or signedness can be ignored
11004         * src/SDCCast.c (addCast): cosmetic - added lineno to CAST
11005         * src/SDCCast.c (resultTypePropagate): added even more ops: +, - and *,
11006         added optimization for IFX,
11007         (decorateType): Mult/Div/ModOneByte ops can handle all kind of signed
11008         arguments;
11009         reenabled optimization for IFX, which was removed on 2004-01-11
11010         * src/SDCCast.h: added return type IFX
11011         * src/SDCCicode.c: Mult/Div/ModOneByte ops can handle all kind of signed
11012         arguments with 8 or 16 bit results; pic14 and pic16 ports use old
11013         promotion behaviour; env. var. SDCC_NEWONEBYTEOPS selects the new,
11014         SDCC_OLDONEBYTEOPS selects the old behaviour
11015         * src/SDCCsymt.c (computeType): type2 can be NULL (for LEFT_OP);
11016         changed again and commented promotion rule
11017         * src/SDCCval.c (valDiv): promotion no longer necessary
11018         * src/ds390/gen.c (genMultOneByte) (genDivOneByte) (genModOneByte),
11019         * src/mcs51/gen.c (genMultOneByte) (genDivOneByte) (genModOneByte):
11020         rewritten
11021         * support/regression/tests/onebyte.c: added
11022
11023 2004-02-11 Vangelis Rokas <vrokas AT otenet.gr>
11024
11025         * gen.c (genInline): reverted to old code for assemnling inline
11026         code because of bug reported James Chadd
11027
11028 2004-02-10 Vangelis Rokas <vrokas AT otenet.gr>
11029
11030         * ralloc.h: missing declarations from previous patch,
11031         seems that patch for ralloc.h was never applied, fixed
11032
11033 2004-02-10 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
11034            patch committed by Vangelis Rokas <vrokas AT otenet.gr>
11035
11036         * pcode.c,
11037         * pcode.h,
11038         * ralloc.h: added FSR0L, FSR0H and other missing PIC16 SFR's for
11039         indirect addressing. Marked FSR0 as deprecated
11040         * gen.c (pointerCode): commented out, not needed now
11041         (pic16_popGet2p): new MOVFF helper function
11042         (genGenPointerGet),
11043         (genGenPointerSet): reimplemented with MOVFF and POSTINC0
11044         (shiftRLong): removed duplicate debugging info
11045
11046 2004-02-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11047
11048         * src/ds390/gen.c (genNearPointerGet),
11049         * src/mcs51/gen.c (genNearPointerGet): allow the genDataPointerGet()
11050         optimization with bits, but not bitfields.
11051         * src/ds390/ralloc.c (packRegisters),
11052         * src/mcs51/ralloc.c (packRegisters): fixed bug #884453 & #880832
11053
11054 2004-02-09 Bernhard Held <bernhard AT bernhardheld.de>
11055
11056         * src/SDCCcse.c (algebraicOpts): copy operands before modification
11057
11058 2004-02-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11059
11060         * src/SDCCsymt.h,
11061         * src/SDCCicode.c (operandFromSymbol),
11062         * src/mcs51/ralloc.c (verifyRegsAssigned, serialRegAssign),
11063         * src/ds390/ralloc.c (verifyRegsAssigned, serialRegAssign),
11064         * src/z80/ralloc.c (verifyRegsAssigned, serialRegAssign),
11065         * src/hc08/ralloc.c (verifyRegsAssigned, serialRegAssign),
11066         * src/pic/ralloc.c (verifyRegsAssigned, serialRegAssign),
11067         * src/pic16/ralloc.c (verifyRegsAssigned, serialRegAssign): fixed
11068         bug #892038
11069         * src/SDCCast.c (createIvalStruct, createIvalArray, gatherAutoInit),
11070         * src/SDCCglue.c (emitRegularMap, printIvalStruct, printIvalArray,
11071         printIvalCharPtr, printIvalPtr, printIval, emitStaticSeg, emitOverlay)
11072         * src/SDCCsymt.c (newSymbol),
11073         * src/SDCC.y (struct_or_union_specifier, enum_specifier,
11074         enumerator_list),
11075         * src/SDCCval.h,
11076         * src/SDCCval.c (newiList): fixed bug #885705
11077
11078 2004-02-08  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11079
11080         * doc/sdccman.lyx: added section 3.1.4: sdcclib.
11081         * as/mcs51/lkmem.c: report the size of the stack in .mem file.
11082
11083 2004-02-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11084
11085         * device/include/c8051f120.h,
11086         * device/include/c8051f300.h,
11087         * device/include/c8051f310.h: added/updated header files for Silicon
11088         Laboratories (formerly Cygnal) CPUs. Contributed by Maarten Brock.
11089         * doc/sdccman.lyx: minor changes, recommended diff -Naur and diff -u
11090         in new section Submitting patches
11091
11092 2004-02-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11093
11094         * src/mcs51/gen.c (genNearPointerGet, genPagedPointerGet,
11095         genFarPointerGet, genCodePointerGet, genGenPointerGet,
11096         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
11097         genGenPointerSet),
11098         * src/ds390/gen.c (genNearPointerGet, genPagedPointerGet,
11099         genFarPointerGet, genCodePointerGet, genGenPointerGet,
11100         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
11101         genGenPointerSet),
11102         * src/pic16/gen.c (genNearPointerGet, genPagedPointerGet,
11103         genFarPointerGet, genCodePointerGet, genGenPointerGet,
11104         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
11105         genGenPointerSet),
11106         * src/pic/gen.c (genNearPointerGet, genPagedPointerGet,
11107         genFarPointerGet, genCodePointerGet, genGenPointerGet,
11108         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
11109         genGenPointerSet): fixed bug #892400
11110         * src/pic16/gen.c (genSkipz, AccRol): disabled functions with #if 0
11111         to eliminate build warnings.
11112         * src/SDCCast.c (processParms),
11113         * src/SDCC.y (function_declarator2, declarator2_function_attributes):
11114         fixed bug 751859
11115         * support/valdiag/valdiag.py: added GCC to the list of defines active
11116         when compiling with gcc
11117
11118 2004-02-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11119
11120         * support/Util/SDCCerr.h,
11121         * support/Util/SDCCerr.c,
11122         * src/SDCCast.c (decorateType, sizeofOp): complain when sizeof is used
11123         with an incomplete type (fixed bug #883734)
11124         * src/SDCCicode.c (geniCodeCast): fixed bug #890510
11125
11126 2004-02-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11127
11128         * src/pic16/gen.c (genCmpEq, shiftRLong): fixed declarations
11129
11130 2004-02-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11131
11132         * src/SDCCast.c (decorateType),
11133         * src/SDCCicode.c (geniCodeParms, geniCodeCall): fixed bugs in my ANSI
11134         function pointer implementation
11135         * support/regression/tests/funptrs.c: added tests to verify both forms
11136         of function pointers work correctly. Added tests to verify parameters
11137         are passed in the correct order.
11138
11139 2004-02-06  Vangelis Rokas <vrokas AT otenet.gr>
11140
11141         * device.c (regCompare): registers are sorted by ascending
11142         address and increasing size,
11143         * main.c (_pic16_finaliseOptions): removed the declaration
11144         of compiler macro MCU. Now a macro of the format pic18fxxxx
11145         will be defined from the command line
11146
11147 2004-02-06  Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
11148             patch committed by Vangelis Rokas <vrokas AT otenet.gr>
11149
11150         * pcode.c (pic16initMnemonics): fixed typo in assignment to PCOP_RLNCF
11151         PCOP_RLCF was overwritten!
11152         * gen.c (genSkip): commented out calls to pic16_emitcode,
11153         * (genCmpEQ): fixed "long" compares, only high word did get compared,
11154         * (genlshTwo),
11155         * (genRRC): added debugging info,
11156         * (shiftL2Left2Result): Fixed bug, if offr > offl. Result got
11157         overwritten while shifting,
11158         * (shiftR2Left2Result): Fixed bug, if offr < offl. Result got
11159         overwritten while shifting,
11160         * (AccLsh),
11161         * (AccRsh),
11162         * (shiftLLeftOrResult),
11163         * (shiftRLeftOrResult),
11164         * (shiftRLong),
11165         * (shiftLLong): Implemented with pic16_emitpcode
11166         * (genlshFour): Replaced pic16_aopPut with pic16_emitpcode,
11167         * (genLeftShift): Fixed bug, operand for shift by variable always
11168         was "and"ed with 0x0f,
11169         * (genLeftShiftLiteral),
11170         * (genrshTwo),
11171         * (genRightShiftLiteral): added debugging info,
11172         * (genrshFour): added comment,
11173         * (genRightShift): determined signedness from operand "left"
11174         instead of "result"
11175
11176 2004-02-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11177
11178         * src/SDCCicode.c (geniCodeParms),
11179         * src/SDCCast.c (decorateType, processParms): support for ANSI-style
11180         function pointers, fixed function pointer bugs #861242 and #861896
11181
11182 2004-01-31 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11183
11184         * device/include/c8051f000.h,
11185         * device/include/c8051f120.h,
11186         * device/include/c8051f300.h: added header files for Silicon
11187         Laboratories (formerly Cygnal) CPUs. Contributed by Maarten Brock.
11188
11189 2004-01-31 Bernhard Held <bernhard AT bernhardheld.de>
11190
11191         * src/SDCCast.c (processParams): added new type flow and restructured
11192         (gatherAutoInit): added new type flow
11193         (addCast): cosmetic changes
11194         (getLeftResultType): added new type flow for array indices, patch
11195         provided by Stas, see FR #877103
11196         (decorateType): SDCC_NEWTYPEFLOW removed, new type flow is now standard;
11197         array index patch by Stas
11198         * src/SDCCast.h: added prototype getResultTypeFromType()
11199         * src/SDCCval.h,
11200         * src/SDCCval.c (resolveIvalSym) (resolveIvalSym),
11201         * src/pic/glue.c (pic14emitStaticSeg),
11202         * src/pic16/glue.c (pic16emitStaticSeg),
11203         * src/SDCCglue.c (emitRegularMap) (emitStaticSeg): added new type flow
11204         for initialization of symbols
11205         * src/SDCCicode.c (geniCodeArray): removed warning W_ARRAY_BOUND
11206         * support/Util/SDCCerr.h:
11207         * support/Util/SDCCerr.c: replaced W_ARRAY_BOUND by W_IDX_OUT_OF_BOUNDS
11208         * .version: bumped version number to 2.3.8
11209         * device/include/Makefile.in (install),
11210         * doc/Makefile (install): changed to 'rm `find ...`' construct to
11211         avoid warnings
11212
11213 2004-01-30 Bernhard Held <bernhard AT bernhardheld.de>
11214
11215         * support/regression/tests/libmullong.c: fixed for 64 bit hosts
11216         Slade Rich fixed an optimization bug
11217         * src/pic/pcodepeep.c,
11218         * src/pic/pcoderegs.c
11219         * doc/Makefile (install): added test for directory
11220
11221 2004-01-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11222
11223         * src/mcs51/ralloc.c (getRegPtr, getRegGpr),
11224         * src/ds390/ralloc.c (getRegPtr, getRegGpr),
11225         * src/pic/ralloc.c (getRegPtr, getRegGpr),
11226         * src/pic16/ralloc.c (getRegPtr, getRegGpr),
11227         * src/z80/ralloc.c (getRegGpr): fixed bug #883361
11228         * as/mcs51/asexpr.c (term),
11229         * as/hc08/asexpr.c (term): fixed bug #887146
11230
11231 2004-01-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11232
11233         * src/z80/gen.c (genMult): handle single byte result product
11234         * src/SDCCopt.c (killDeadCode): never convert ADDRESS_OF iCode to
11235         DUMMY_READ_VOLATILE (fixed bug #886367)
11236
11237 2004-01-27 Bernhard Held <bernhard AT bernhardheld.de>
11238
11239         * support/regression/tests/libmullong.c: fixed logic, on little endian
11240         hosts we ended without a mullong_wrapper()
11241
11242 2004-01-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11243
11244         * ChangeLog: changed "@" to " AT " in hopes of reducing spam and
11245         virus/worm forged address usage.
11246
11247 2004-01-27 Bernhard Held <bernhard AT bernhardheld.de>
11248
11249         Fixed promotion, it should be done on AST level:
11250         * src/SDCCast.c (addCast): added promotion to int
11251         (decorateType): updated call to upCast()
11252         * src/SDCCicode.c (geniCodeLeftShift): removed call to
11253         usualUnaryConversions()
11254
11255 2004-01-26  Michael Hope  <michaelh AT juju.net.nz>
11256
11257         * support/regression/tests/literalop.c (mulWrapper): Added a
11258         wrapper to remove integer overflow warnings.
11259
11260         * support/regression/tests/float_trans.c: Made work on host.
11261
11262         * support/regression/ports/ucz80/spec.mk (UCZ80): Made detect the
11263         location of sz80.
11264
11265         * support/regression/generate-cases.py (main): Changed from inline
11266         to a main method.
11267
11268         * doc/Makefile (install): Changed to depth first to get rid of
11269         missing directory install warning.
11270
11271         * as/Makefile (install-doc): Made work on Mac.
11272
11273 2004-01-25 Bernhard Held <bernhard AT bernhardheld.de>
11274
11275         * src/SDCCast.c: added an additional type flow in decorateType() of
11276         opposite direction, see feature request #860006; it's enabled at runtime
11277         by setting the environment variable SDCC_NEWTYPEFLOW
11278         * src/SDCCast.h: changed prototype of decorateType()
11279         * src/SDCCglue.c (emitRegularMap): updated call of decorateType()
11280         * src/SDCCicode.c (geniCodeDivision) (geniCodeModulus): promotion from
11281         'char' to 'int' can be omitted, if both operands are 'unsigned char';
11282         see feature request #877103
11283         * src/SDCCval.c: updated call of decorateType()
11284         (valBitwise): fixed bug #882876
11285         (valMinus): added promotion
11286         (valLogicAndOr): result is unsigned
11287         (cheapestVal) (constVal): literals from 0...255 are 'unsigned char' now
11288         * src/SDCCsymt.c (computeType),
11289         * src/mcs51/gen.c (genCmpGt) (genCmpLt): literal 'unsigned char'
11290         must not cause an unsigned operation
11291         * src/pic/glue (pic14emitRegularMap),
11292         * src/pic16/glue.c (pic16emitRegularMap): updated call of decorateType()
11293
11294 2004-01-23 Bernhard Held <bernhard AT bernhardheld.de>
11295
11296         * src/pic/pcode.c (PCodeID): commented out left over debug code
11297
11298 2004-01-20 Bernhard Held <bernhard AT bernhardheld.de>
11299
11300         * support/valdiag/tests/overflow.c: added shift tests
11301         * src/pic/device.c,
11302         * src/pic/gen.c,
11303         * src/pic/gen.h,
11304         * src/pic/glue.c,
11305         * src/pic/main.c,
11306         * src/pic/pcode.c,
11307         * src/pic/pcode.h,
11308         * src/pic/pcodepeep.c,
11309         * src/pic/pcoderegs.c,
11310         * src/pic/ralloc.c,
11311         * src/pic/ralloc.h: applied patch from Slade Rich;
11312         added support for multiple code pages and multiple RAM banks on the
11313         PIC 14 port. The ASM files now no longer simply assume all the
11314         code / RAM are in the same page / bank. This means the linker can
11315         safely allocate code/RAM of separate ASM files to different pages/banks.
11316         * doc/sdccman.lyx: added Slade's tips
11317         * src/mcs51/peeph.def: fixed bug #880768
11318
11319 2004-01-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11320
11321         * src/hc08/ralloc.c (rematStr): fixed bug #879282
11322         * src/SDCCast.c (decorateType): fixed bug #880197
11323
11324 2004-01-20  Michael Hope  <michaelh AT juju.net.nz>
11325
11326         * sim/ucsim/gui.src/serio.src/main.cc: Fixed unconditional use of
11327         getopt.h.
11328
11329         * debugger/mcs51/cmd.c (getValBasic): Changed strtof to strtod as
11330         strtof is not part of C89 and isn't included with Mac OS X.
11331
11332 2004-01-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11333
11334         * src/hc08/gen.c (genPlusIncr, genUminus, genMinusDec, genCmp,
11335         shiftL2Left2Result): fixed bug #879326
11336         (genAnd, genOr, genXor): fixed bug when result was of type AOP_CRY
11337         (genMultOneByte): fixed bug in signed vs unsigned multiplication
11338         * sim/ucsim/hc08.src/inst.cc (inst_clr): added missing effective
11339         address fetch for clr instruction
11340         * device/lib/hc08/_mulint.c: created optimized assembly version
11341         * src/SDCCdflow.c (computeDataFlow): fixed bug #878209
11342
11343 2004-01-19 Bernhard Held <bernhard AT bernhardheld.de>
11344
11345         * src/SDCCicode.c (geniCodeArray): applied patch from Stas Sergeev
11346         proposed in FR #877103
11347
11348 2004-01-18 Bernhard Held <bernhard AT bernhardheld.de>
11349
11350         * src/SDCCval.c (cheapestVal): added missing checks
11351         * src/SDCCicode.c (usualBinaryConversions): fixed condition
11352         * src/SDCCicode.c (geniCodeAdd): fixed part of bug #877103
11353
11354 2004-01-16 Klaus Flittner <klaus_flittner AT gmx.de>
11355
11356         * src/ds390/gen.c (aopOp3): fixed the assignment of different dptrs to
11357         equal operands
11358
11359 2004-01-16 Vangelis Rokas <vrokas AT otenet.gr>
11360
11361         * src/SDCCmain.c (linkEdit): variable $3 of the linker command is
11362         loaded with the linker search paths (-L arguments) and the libraries
11363         to be linked with the current source (-l arguments). Changes
11364         currently will affect only the pic16 port.
11365         * src/pic16/main.c (_pic16_finaliseOptions): add to the linker
11366         include path the port specific paths and port specific libraries,
11367         * gplink command now contains the $3 argument,
11368         * src/pic16/device.h,
11369         * src/pic16/device.c,: structure PIC_device is made public and
11370         renamed to PIC16_device, the same for variable Pics which is renamed
11371         to Pics16. Updated all references to them.
11372         * src/pic16/glue.c (pic16glue): corrected bug with code
11373         initialization which bypassed the variable initializations block.
11374
11375         * device/lib/pic16/Makefile.rules: removed --penable-stack from
11376         COMPILE_FLAGS and added the --nostdinc option
11377
11378 2004-01-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11379
11380         * device/include/mc68hc908jb8.h: Register defs for another member
11381         of the hc08 family. Contributed by Bjorn Bringert - thanks!
11382
11383 2004-01-14 Vangelis Rokas <vrokas AT otenet.gr>
11384
11385         Documenting changes from previous commits.
11386         * configure.in (version 1.56),
11387         * configure: initially I've added AC_CONFIG_SUBDIRS(device/lib/pic16)
11388         when generating output files to configure the pic16 library,
11389         but now I've commented it out, since gputils aren't installed in the
11390         SF compile farm, so library won't compile
11391
11392         * device/lib/Makefile.in (version 1.56): initially I've added in
11393         target 'all' the prerequestive 'model-pic16' so it compiled the
11394         pic16 library, but now I've commented it out for the same reasons
11395         above,
11396         * added targets 'model-pic16' and 'objects-pic16' to compile the
11397         library
11398         * added target 'port-specific-objects-pic16' to handle the
11399         generated libraries and copy them into the build/ directory
11400         * added target 'clean-intermediate-pic16' to clean intermediate
11401         files into pic16 directory
11402         * in target 'installdirs' added line to create directory pic16 in
11403         the installation path
11404
11405         * device/include/Makefile.in (version 1.11): in target 'install'
11406         added lines to copy all header files to installation path,
11407         * in target 'installdirs' added line create directory for pic16
11408         headers in the installation path
11409
11410 2004-01-13 Klaus Flittner <klaus_flittner AT gmx.de>
11411
11412         * src/ds390/gen.c (genCall): fixed a double use of acc and b after
11413          a function call
11414
11415 2004-01-13 Bernhard Held <bernhard AT bernhardheld.de>
11416
11417         * configure,
11418         * device/lib/configure.in,
11419         * device/lib/configure: fixed for autoconf 2.57
11420
11421 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11422
11423         * src/z80/main.c (_parseOptions): fixed the portmode= command line
11424         option so that it actually works. Made it specific to the z80, since
11425         the gbz80 doesn't have these kinds of I/O ports.
11426
11427 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11428
11429         * device/include/z180.h,
11430         * device/lib/_memcpy.c,
11431         * device/lib/_memmove.c,
11432         * device/lib/_mulint.c,
11433         * device/lib/ser_ir.c,
11434         * device/lib/ser_ir_cts_rts.c,
11435         * device/lib/_strcmp.c,
11436         * device/lib/_strtok.c: fixed pragmas to non-deprecated form
11437         * src/z80/main.c (_process_pragma): add support for pragmas bank and
11438         portmode; added deprecation warning for bank= and protmode= forms.
11439         Also, guard against buffer overflow.
11440         * src/z80/gen.c (aopGet): generate better code for sfr banked read
11441
11442 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11443
11444         * src/hc08/main.c (_hc08_genAssemblerPreamble): fixed bug #875487. Also
11445         changed interrupt vector table generation to only emit declared vectors.
11446         * device/include/Makefile.in: added missing backslash
11447         * device/lib/pic16/Makefile.rules: add $(MODELFLAGS) to $(CFLAGS)
11448
11449 2004-01-13 Vangelis Rokas <vrokas AT otenet.gr>
11450
11451         Mainly changes to support compilation of the device libraries
11452         * src/pic16/device.c: stack is allocated via symbol and not
11453         via literal number. The symbol is placed in the corresponding
11454         position of the data ram
11455         * (pic16_dump_section): relocatable and absolute uninitialized
11456         data are now emitted in sorted order to reduce section naming,
11457         * src/pic16/ralloc.c (newReg): fixed bug with SFR's that
11458         weren't marked as being in the access bank,
11459
11460 2004-01-13 Vangelis Rokas <vrokas AT otenet.gr>
11461
11462         Added portion of GNU PIC Library under the directory
11463         device/include/pic16 and device/lib/pic16. These files
11464         contain the declarations of SFRs for the PIC18Fxx2 devices.
11465         The directory is initialized via configure from toplevel.
11466
11467 2004-01-12 Klaus Flittner <klaus_flittner AT gmx.de>
11468
11469         * src/ds390/gen.c (operandsEqu): fixed a little typo, that prevented
11470         the spilllocations to be compared correctly
11471
11472 2004-01-12 Bernhard Held <bernhard AT bernhardheld.de>
11473
11474         * src/SDCCast.c (decorateType): fixed bug introduced today
11475
11476 2004-01-12  Borut Razem <borut.razem AT siol.net>
11477
11478         * src/SDCC.lex, support/Util/SDCCerr.h, support/Util/SDCCerr.c,
11479         doc/sdccman.lyx: upper case pragmas are deprecated
11480
11481 2004-01-12 Bernhard Held <bernhard AT bernhardheld.de>
11482
11483         * src/SDCCast.c (decorateType): replacing 'ul > 0' by  '!ul' results
11484         in simpler and even better code
11485
11486 2004-01-11 Bernhard Held <bernhard AT bernhardheld.de>
11487
11488         * src/SDCCicode.c (operandOperation): fixed bug #874819
11489         * src/SDCCast.c (decorateType): fixed
11490         char foo (unsigned long ul) { return ul > 0; }
11491
11492 2004-01-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11493
11494         * doc/sdccman.lyx: Moved and added some sections, small changes
11495         all over. Telling LaTeX to be less strict with word spacing
11496         to better keep the right margin. Changed some notes about
11497         maintainance of the ports in section 3.2.1 - is it OK like this?
11498
11499 2004-01-11 Vangelis Rokas <vrokas AT otenet.gr>
11500
11501         SDCC source changes:
11502         * src/SDCCopt.c (cntToFcall, cnvToFloatCast, cnvFromFloatCast,
11503         convilong): modified to inform the pic16 port that builtin functions
11504         are external
11505
11506         PIC16 PORT specific changes:
11507         * src/pic16/device.c pic16_dump_equates() added,
11508         processor registers declared internally by the port are emitted in
11509         the translation as equates,
11510         * src/pic16/gen.c: inline code is passed unprocessed to the
11511         translation,
11512         * (pic16_popGetLit2): fnuction modified to take second operand as
11513         pCodeOp pointer and not as literal,
11514         * (popRegFromIdx): prefixed with pic16_,
11515         * (pic16_popCombine2): modified to receive already allocated pCode
11516         operands,
11517         * (pic16_pushpCodeOpReg, pic16_poppCodeOpReg): added
11518         * (genFunction): initializes local stack frame and pushes on stack
11519         all the registers used by this function,
11520         * (genEndFunction): restores all registers from stack and restores
11521         stack frame,
11522         * src/pic16/glue.c (pic16emitRegularMap): various changes and
11523         improvements,
11524         * (pic16glue): changed the program startup sequence,
11525         * added new dbName code 'A' for functions placed in absolute section
11526         * src/pic16/main.c: added function attribute _naked,
11527         * added pragma 'code' to place a fnuction at an absolute address,
11528         * added command line arguments --debug-ralloc and --pcode-verbose,
11529         * (_pic16_finiliseOptions): options.all_callee_saves is set by default
11530         * src/pic16/pcode.c (pic16_pBlockConvert2Absolute) added,
11531         * (pic16_newpCodeOpLit2): modified to take the second operand as
11532         pCodeOp pointer,
11533         * (pic16_printpBlock): modified to emit each function in a separate
11534         section,
11535         * (pic16_get_op): modified to use the gpasm modifiers LOW,HIGH and
11536         UPPER for immediate operands,
11537         * src/pic16/pcodepeeph.c: added peephole support for the LFSR
11538         instruction,
11539         * src/pic16/peeph.def: all peepholes with movff are commented out,
11540         because there is a problem in the pcode peep optimizer,
11541         * src/pic16/ralloc.c: the register allocator can now reuse local
11542         function symbols for another function. This saves register usage.
11543         * src/pic16/ralloc.h: added flag isLocal in structure regs,
11544
11545         Added file src/pic16/NOTES with information about program writing on
11546         the current port version.
11547
11548 2004-01-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11549
11550         * src/mcs51/peephole.def: added peepholes 177.c,d (redundant moves)
11551         and peephole 252 (array access)
11552
11553 2004-01-09  Borut Razem <borut.razem AT siol.net>
11554
11555         * src/SDCCmain.c : fixed #872250: -l command line defined library
11556           files are scanned before standard library files
11557
11558 2004-01-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11559
11560         * src/SDCCast.c (decorateType): fixed bug #874046
11561
11562 2004-01-09  Borut Razem <borut.razem AT siol.net>
11563
11564         * support/scripts/sdcc.nsi: remove previous installation
11565
11566 2004-01-09 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11567
11568         * src/SDCCglue.c (createInterruptVect): don't append 7(5) padding
11569         bytes for last interrupt vector (mcs51)
11570         * sdcc.spec: fixed typo
11571
11572 2004-01-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11573
11574         * src/mcs51/gen.c (genFunction, genEndFunction, genReceive, getTempRegs,
11575         gen51Code): more efficient parameter receive for --model-large
11576         ("bug" #845294)
11577
11578 2004-01-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11579
11580         * src/ds390/main.c,
11581         * src/z80/main.c: added missed needLinkerScript flags (more than
11582         one port structure defined in these file)
11583         * src/ds390/gen.c (aopForSym, aopOp, operandsEqu, aopOp3): fixed
11584         bug #795325
11585
11586 2004-01-08 Vangelis Rokas <vrokas AT otenet.gr>
11587
11588         * src/SDCCmain.c: removed various references to DEFAULT_PORT
11589         * src/port.h: added flag needLinkerScript in port->linker
11590         structure to inform whether to create a .lnk file or not,
11591         * src/avr/main.c,
11592         * src/ds390/main.c,
11593         * src/hc08/main.c,
11594         * src/mcs51/main.c,
11595         * src/pic/main.c,
11596         * src/pic16/main.c,
11597         * src/xa51/main.c,
11598         * src/z80/main.c: changed appropriately to configure
11599         needLinkerScript flag
11600         * src/pic/gen.c,
11601         * src/pic16/gen.c (genAddrOf): fixed bug #863624
11602         * src/pic/glue.c: added variable udata_section_name to
11603         override default uninitialized data segment definition for
11604         devices only with SHAREBANK memory (reported from Erik Epetrich)
11605         * (pic14emitOverlay): modified to emit a commented overlay segment
11606         directive when no overlay data exist
11607         * (picglue): modified to emit uninitialized data segment
11608         according to udata_section_name
11609         * src/pic/main.c (_pic14_parseOptions): added command line
11610         options --udata-section-name=[name] to override default
11611         udata definition name
11612         * modified _linkCmd and _asmCmd to include compiler passed
11613         arguments via -W option
11614         * src/pic16/main.c: added $l in _asmCmd, changed extension for
11615         object file from '.rel' to '.o' in port->linker structure,
11616         changed size of fptr from 2 to 3 in port structure
11617
11618 2004-01-07  Borut Razem <borut.razem AT siol.net>
11619
11620         * support/scripts/sdcc.nsi: update PATH
11621         * support/scripts/sdcc.ico: craeted
11622
11623 2004-01-07 Bernhard Held <bernhard AT bernhardheld.de>
11624
11625         * device/include/Makefile.in: fix install
11626         * doc/Makefile: fix install
11627
11628 2004-01-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11629
11630         * src/SDCCsymt.c (processFuncArgs): fixed superflous allocation noted
11631         in bug #860505
11632         * src/SDCCmem.c (printAllocInfoSeg, printAllocInfo): minor changes to
11633         how the function variable allocation summary is displayed; also
11634         include information about variables allocated to the overlay
11635         segment
11636
11637 2004-01-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11638
11639         * as/mcs51/lkmain.c: Help about -Y option
11640         * as/mcs51/lkarea.c: Fixed gcc warnings
11641
11642 2004-01-06 Bernhard Held <bernhard AT bernhardheld.de>
11643
11644         * src/SDCCval.c (valShift): changed from 16 to 32 bit shift count,
11645         fixed warning
11646         * support/valdiag/tests/overflow.c: added
11647         * src/SDCCast.c (decorateType),
11648         * src/SDCCicode.c (geniCodeLeftShift): added promotion to int for
11649         LEFT_OP (left shift)
11650
11651 2004-01-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11652
11653         * as/mcs51/lkmain.c: stack must be after data when option -Y is not used
11654         (default behaviour).
11655
11656 2004-01-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11657
11658         A python script to validate compiler diagnostic messages. It can be
11659         used to verify that sdcc complains about bad c source code and
11660         gives a good location of the error.
11661         * support/valdiag/Makefile,
11662         * support/valdiag/valdiag.py,
11663         * support/valdiag/tests/*
11664
11665 2004-01-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11666
11667         * src/SDCC.y (enum_specifier, enumerator_list, opt_assign_expr),
11668         * src/SDCCsymt.c (newEnumType),
11669         * src/SDCCsymt.h
11670         * support/Util/SDCCerr.c,
11671         * support/Util/SDCCerr.h: fixed bug #871258 and some other unreported
11672         enum related bugs.
11673         * support/regression/tests/enum.c: added test for enum values that
11674         require at least 2 bytes of storage.
11675
11676 2004-01-06 Vangelis Rokas <vrokas AT otenet.gr>
11677
11678         * src/common.h: added ifndef/define/endif macros
11679         around the header file.
11680         Bug reported from Jesus Calvino-Fraga
11681
11682 2004-01-06 Bernhard Held <bernhard AT bernhardheld.de>
11683
11684         * sdcc.spec: updated
11685         * device/include/Makefile.in: don't install CVS directories
11686         * device/lib/Makefile.in: added removal of CVS directories after install
11687         * doc/Makefile: fixed install, added local_icons
11688         * sim/ucsim/gui.src/Makefile.in: fixed an old typo
11689         * src/mcs51/gen.c (genRightShift): fixed bug #870788
11690         * src/ds390/gen.c (genRightShift): fixed bug #870788
11691         * src/SDCCast.c (decorateType): fixed bug #870781
11692
11693 2004-01-06 Vangelis Rokas <vrokas AT otenet.gr>
11694
11695         PIC16 port related changes:
11696         * device.c: removed pic16_finalMapping and pic16_finalMappingSize,
11697         added variable stackPos,
11698
11699         * gen.c: genCall, assignResultValue: added support for
11700         pushing/retrieving function parameters to/from stack,
11701         genFunction,genEndFunction: setup stack frame for the
11702         generated function,
11703         genAddrOf: will be changed according to bug 863624
11704
11705         * added files genutils.c and genutils.h which contain gen*
11706         debugged and optimised functions extracted from gen.c
11707
11708         * glue.c: added variable 'externs' which holds extern symbols,
11709         pic16emitRegularMap: is modified to properly handle relocatable
11710          symbols under the new scheme,
11711         pic16createInterruptVect: is modified
11712         pic16printPublics: is modified to emit 'global' assembler directives,
11713         added pic16_printExterns to print extern symbols,
11714         pic16glue: initializes stack/frame pointer in the beginning of
11715         the assembly output. Temporary hack, will be corrected later,
11716         because gplink yet does not support stack and SDCC does not
11717         yet support a type of crt0.o object to create the final binary.
11718
11719         * Removed many lines that contain 8051 legacy code.
11720         * The code is finally placed under a 'code' directive.
11721         * Added port specific options.
11722
11723         * _process_pragma: simplified since now we do not need *special*
11724         include file to define SFR registers. But a separate header
11725         will be needed. This will be developed later.
11726         * _pic16_parseOptions: added, parses port specific options:
11727         --pgen-banksel, --obanksel=, --pomit-config-words, --pomit-ivt,
11728         --pleave-reset-vector, --penable-stack, --pstack-model, --debug-xtra
11729         --preplace-udata-with=
11730
11731         * _pic16_setDefaultOptions: modified to initialize section names,
11732         but hack is temporarly out of order since it needs improvement.
11733         * _pic16_genAssemblerPreamble: configuration words are emitted by
11734         their address instead of their name. This part is incomplete and
11735         supports only the 18Fxx2 devices. Other devices will emit an error
11736         during assembly since they do not contain the same set of config
11737         registers
11738         * _pic16_genIVT: is modified,
11739
11740         * pcode.c: added definitions for some hardware registers that are needed
11741         for stack support
11742         * added flag is2LitOp and variable pci_magic in pCodeInstruction.
11743         All PCI entries are updated. Now LFSR is supported.
11744         * Removed pic16_pciTRIS is mentioned by mdubuc in source
11745         * added pic16_newpCodeOpLit2 to support instructions with
11746         two literal arguments
11747         * pic16_pCode2str: corrected code that emits assembler instructions
11748         with two literal operands and those that have an access bit modifier
11749         * genericPrint: now PC_ASMDIR pCodes, can emit a label if it exists,
11750         this fixes a bug which caused some labels to be lost, when an
11751         assembler directive was added, i.e. banksel,
11752         * pic16_FixRegisterBanking: improved logic that causes the insertion
11753         of bank switching,
11754         * InlineFunction: functions that are called once, are not any more
11755         inlined. This can be a port option in the future,
11756
11757         * pcode.h: added pCodeOpLit2 and added variable label in pCodeAsmDir
11758
11759         * ralloc.c: added pic16_rel_udata and pic16_fix_udata variables which
11760         hold the corresponding uninitialized symbols,
11761         * pic16_allocProcessorRegister: registers have explicit marked the
11762         accessBank field,
11763         * pic16_allocInternalRegister: registers are explicit marked as
11764         not used,
11765         * pic16_writeUsedRegs: pic16_dynDirectBitRegs was missing from the
11766         processing list, so bit registers were lost,
11767         *
11768
11769         * ralloc.h: added field 'accessBank' and original symbol operand
11770         in register definition,
11771         * removed the field isMapped from register definition,
11772
11773         ** Several functions have been removed from various sources:
11774         BanksUsedFlow2,BanksUsedFlow,FixBankFlow,InstructionRegBank,
11775         pic16_addMemRange,pic16_isREGinBank,pic16_dump_map,pic16_dump_cblock
11776         isSFR,validAddress,mapRegister,assignRegister,pic16_assignFixedRegisters
11777         pic16_assignRelocatableRegisters
11778
11779         ** others have been introduced:
11780         pic16_areRegsSame,pic16_dump_section,checkAddReg,pic16_groupRegistersInSection
11781         pic16_popGetLit2,pic16_popCombine2,pushw,pushaop
11782
11783 2004-01-05 Vangelis Rokas <vrokas AT otenet.gr>
11784
11785         * support/scripts/inc2h.pl: changed definition of BIT_AT
11786         to emit 'sbit at' instead of 'bit at'. This was a request.
11787
11788         PIC16 port related preliminary changes:
11789         * gen.c: prefixed function popRegFromString with
11790         pic16_ and all references to it corrected
11791         * pcode.c: all pic16_pc_* hardware registers prefixed
11792         with underscore (_),
11793         pic16_popCopyGPR2Bit(): function sets register wasUsed=1
11794         * ralloc.c: newReg(): when register is REG_SFR then
11795         set address to rIdx,
11796         pic16_allocProcessorRegister(): marks register wasUsed=0
11797         pic16_writeUsedRegs(): added a call to assign processor
11798         registers via pic16_assignFixedRegisters
11799
11800 2004-01-04  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11801
11802         * as/mcs51/aslink.h, as/mcs51/lkarea.c, as/mcs51/lkdata.c,
11803         as/mcs51/lkmain.c, as/mcs51/lkmem.c: 8051 linker can now pack
11804         variables in unused register banks.  Also the SSEG is placed
11805         wherever there is enough space for it, and IDATA can be anywhere
11806         in internal RAM.  For now compile using -Wl-Y[stack_size].
11807         The mem file is different for this option as well, since it
11808         makes no sense of talking about DSEG lenght.
11809
11810 2004-01-02 Vangelis Rokas <vrokas AT otenet.gr>
11811
11812         * src/SDCClrange.c: fixed bug 869095 that caused segfault
11813         in certain cases, e.g. when ROM assignment, patch provided
11814         from Albert den Haan.
11815
11816 2004-01-01 Bernhard Held <bernhard AT bernhardheld.de>
11817
11818         Many signedness and type propagation fixes:
11819         * src/SDCCicode.c: made geniCodeCast() static
11820         replaced SPEC_ by IS_ (cosmetic)
11821         (operandOperation): fixed div and mod operation
11822         (usualBinaryConversions): added support for promotion of char
11823         (geniCodeMultiply): replaced (unsigned long) by (TYPE_UDWORD)
11824         (geniCodeDivision): replaced (unsigned long) by (TYPE_UDWORD)
11825         (geniCodeAdd): an array index will stay unsigned, even if promoted
11826         from char to int
11827         (geniCodeArray): ditto
11828         * src/SDCCicode.h: made geniCodeCast() static: removed prototype
11829         * src/SDCCsymt.c (computeType): added more support for char;
11830         promotion of char is selectable by promoteCharToInt, fixed signedness
11831         for all cases
11832         (powof2): replaced (unsigned long) by (TYPE_UDWORD)
11833         * src/SDCCsymt.h (powof2): replaced (unsigned long) by (TYPE_UDWORD)
11834         * src/SDCCval (val*): replaced signedness calculation by
11835         computeType()
11836         rearranged if-branches (cosmetic)
11837         (valShift): added warning W_SHIFT_CHANGED
11838         (valCompare): fixed problem with different types
11839         * src/hc08/rallo.c (leastUsedLR): fixed gcc 3.3 warning
11840         * support/regression/tests/literalop.c: added many cases
11841         * support/regression/tests/ast_constant_folding.c: changed finally to
11842         'unsigned int'
11843         * .version: new year, new version: 2.3.7
11844         * src/SDCCmain.c (main): applied patch #866468
11845         * debugger/mcs51/sdcdb.c (parseCmdLine): added -k for ucsim, patch
11846         provided by Scott Bronson
11847         * doc/sdccman.lyx: updated documentation for sdcdb
11848         updated and added chapter tips
11849
11850 2004-01-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11851
11852         * src/SDCCsymt.h: missing from yesterday's commits
11853
11854 2003-12-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11855
11856         * src/SDCC.y (struct_or_union_specifier),
11857         * support/Util/SDCCerr.c,
11858         * support/Util/SDCCerr.h: verify that struct & union tags are used
11859         as declared.
11860
11861 2003-12-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11862
11863         * src/SDCCglobl.h: missing from yesterday's commits
11864
11865 2003-12-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11866
11867         * src/SDCC.y (external_definition, type_specifier2, sfr_reg_bit,
11868         sft_attributes, struct_declaration, parameter_declaration,
11869         type_name, start_block, declaration_list),
11870         * src/SDCC.lex (check_type): support redefinition of typedef names
11871
11872 2003-12-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11873
11874         * src/mcs51/gen.c (genPlus): added special handling for 256 byte
11875         aligned xdata arrays. Erik helped me with the if clause.
11876
11877 2003-12-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11878
11879         * device/lib/ds390/tinibios.c (CpuSpeed): suppress unreachable code
11880         warning
11881
11882 2003-12-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11883
11884         * src/SDCCast.h,
11885         * src/SDCCast.c (newAst_),
11886         * src/SDCCicode.h,
11887         * src/SDCCicode.c (ast2iCode, newiCode),
11888         * src/SDCCglobl.h,
11889         * src/SDCC.y (logical_and_expr, logical_or_expr, conditional_expr,
11890         expr, statement, expression_statement, selection_statement,
11891         iteration_statement, expr_opt, jump_statement): foundation for tracking
11892         sequence points
11893         * src/SDCCopt.c (killDeadCode): fixed bug #861580 (needs the sequence
11894         point code too)
11895
11896 2003-12-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11897
11898         * support/Util/SDCCerr.c,
11899         * src/SDCCast.h,
11900         * src/SDCCast.c (createCase, createDefault, decorateType),
11901         * src/SDCClabel.c (labelUnreach),
11902         * src/SDCC.y (labeled_statement, jump_statement): More improvements
11903         to error messages.
11904         * support/Util/SDCCerr.c (werrorfl): fixed a non-standard declaration
11905         (with thanks to Stas Sergeev)
11906         * device/include/time.h,
11907         * device/lib/time.c (CheckTime): suppress unreachable code warning
11908
11909 2003-12-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11910
11911         * src/SDCCast.c (createIvalCharPtr),
11912         * src/SDCCglue.c (printChar): fixed bug #862241 (an error in my fix for
11913         bug #753752)
11914         * support/regression/tests/nullstring.c: tests for these two bugs
11915
11916 2003-12-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11917
11918         * support/Util/SDCCerr.h,
11919         * support/Util/SDCCerr.c (E_NOT_ALLOWED),
11920         * src/SDCC.y (struct_declaration, struct_or_union_specifier): complain
11921         about storage class and 'at' used inside struct or union
11922         * src/SDCCBBlock.c (iCodeFromeBBlock),
11923         * src/SDCCcse.c (ifxOptimize),
11924         * src/SDCCglue.c (emitRegularMap, initPointer, printIvalStruct,
11925         printIvalArray, printiValFuncPtr, printIvalCharPtr, printIvalPtr,
11926         printIval, emitStaticSeg, emitOverlay),
11927         * src/SDCClabel.c (deleteIfx),
11928         * src/SDCCopt.c (replaceRegEqv, eBBlockFromiCode),
11929         * src/SDCCast.c (resolveSymbols, createIvalStruct, createIvalArray,
11930         gatherAutoInit, processParms),
11931         * support/Util/SDCCerr.h,
11932         * support/Util/SDCCerr.c (werrorfl): Support for better error location
11933         reporting for post-parse errors.
11934
11935 2003-12-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11936
11937         * src/SDCCval.c (valPlus, valMinus, valShift): fixed some problems with
11938         implicit casts via union; they don't work on big endian systems
11939         (possible fix for bug #861138)
11940
11941 2003-12-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11942
11943         (committed by Erik Petrich <epetrich AT ivorytower.norman.ok.us> on Frieder's behalf)
11944         * src/mcs51/main.c: fixed the fix for bug #737001
11945
11946 2003-12-15  Borut Razem <borut.razem AT siol.net>
11947
11948         * support/scripts/sdcc.nsi: updated for NSIS 2.0 beta 4
11949
11950 2003-12-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11951
11952         * support/makebin/makebin.c: put output in binary mode
11953
11954 2003-12-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11955
11956         * src/mcs51/main.c: fixed bug #737001 for the mcs51. SDCC clears
11957         xdata and data memory on startup. Set the environment variable
11958         SDCC_NOGENRAMCLEAR to disable this.
11959         * src/mcs51/peephole.def,
11960         * src/ds390/peephole.def: using the atomic test and clear instruction jbc
11961         (allows non-interrupt and interrupt code to safely compete for a resource
11962         without the non-interrupt code having to disable interrupts)
11963
11964 2003-12-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11965
11966         * src/SDCCicode.c (geniCodeAdd),
11967         * src/SDCCast.c (decorateType): fixed bug #857753 (need to be careful
11968         with valFromType if type might be a pointer and host is big endian).
11969         * src/SDCCast.c (decorateType): unary plus compatible with all arithmetic
11970         types, not just integer types.
11971         * src/SDCCsymt.c (addSymChain): clarified error message when symbol is
11972         multiply defined with mismatching "at" address.
11973
11974 2003-12-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11975
11976         * src/ds390/main.c (PORT tininative_port): fixed bug #858416
11977         * src/SDCCglue.c (printChar, printIvalChar, emitStaticSeg),
11978         * src/SDCCast.c (createIvalCharPtr, stringToSymbol): handle strings
11979         with embedded nulls (fixed bug #753752)
11980
11981 2003-12-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11982
11983         * src/mcs51/main.c(_mcs51_genRAMCLEAR): using r0 instead of r1/r2.
11984         Apparently this did not see much testing (endless loop)
11985
11986 2003-12-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11987
11988         * src/z80/ralloc.c: set DISABLE_PACK_HL = 1 as a temporary fix to bug #855165
11989
11990 2003-12-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11991
11992         * src/SDCCdebug.c (outputDebugSymbols, outputDebugStackSymbols, dumpSymInfo):
11993         gracefully handle NULL memmap pointers
11994
11995 2003-12-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11996
11997         * src/SDCCopt.c (killDeadCode): change iCode type to DUMMY_READ_VOLATILE
11998         instead of deleting the iCode when an operand is volatile
11999         * src/z80/gen.c (genDummyRead),
12000         * src/mcs51/gen.c (genDummyRead),
12001         * src/ds390/gen.c (genDummyRead),
12002         * src/hc08/gen.c (genDummyRead): handle operands in IC_LEFT and/or IC_RIGHT,
12003         not just IC_RIGHT
12004         * src/SDCCicode.c (geniCodeCall): fixed bug #851607
12005         * src/SDCC.y: fixed bug #850420
12006
12007 2003-12-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12008
12009         Applied z80 i/o port patch from Peter Townson and fixed some operators
12010         to better handle operands in A register.
12011         * device/include/z180.h
12012         * src/SDCC.y
12013         * src/SDCCglue.c
12014         * src/z80/gen.c
12015         * src/z80/gen.h
12016         * src/z80/main.c
12017         * src/z80/peeph-z80.def
12018         * src/z80/peeph.def
12019         * src/z80/z80.h
12020
12021 2003-12-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12022
12023         * src/SDCCsymt.c (addSymChain, compareTypeExact): fixed bug #838241 again
12024
12025 2003-12-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12026
12027         * device/lib/hc08/_mullong.c: Removed extra #endif
12028
12029 2003-12-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12030
12031         * sim/ucsim/hc08.src/inst.cc,
12032         * sim/ucsim/hc08.src/hc08mac.h: fixed some problems with CC flag bits and
12033         carries from x to h
12034         * src/hc08/gen.c (aopAdrStr): fixed problem with 16 bit immediate
12035         * src/hc08/gen.c (XAccRsh): fixed problem with right shift
12036         * device/include/stdarg.h: fixed varargs for hc08
12037         * device/lib/Makefile.in,
12038         * device/lib/hc08/Makefile,
12039         * device/lib/hc08/_mulint.c,
12040         * device/lib/hc08/_mullong.c: fixed some endian problems
12041
12042 2003-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12043
12044         * sdcc/src/mcs51/gen.c (genMultOneByte): help peephole 105
12045         * sdcc/src/mcs51/peeph.def: added peephole 186.e array access in code space
12046         * device/lib/_gptrget.c,
12047         * device/lib/_gptrput.c: P2 not used any more (related to #850747, #785979)
12048
12049 2003-11-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12050
12051         * src/SDCClrange.c (findNextUseSym, rlivePoint): fixed bug #849795
12052         * src/SDCCast.c (astErrors): fixed bug #846007
12053         * src/SDCCsymt.c (checkFunction): fixed follow-up bug on bug #846007
12054
12055 2003-11-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12056
12057         * src/SDCCast.c (decorateType): disabled a transformation I added in
12058         revision 1.188 (access to fields of a structure at an absolute address);
12059         it breaks with bitfields, extern declarations, and gcse analysis.
12060         * src/SDCCopt.c (isLocalWithoutDef): if ADDRESS_OF applied to a symbol, it
12061         could be assigned through a pointer, so don't complain.
12062         * src/SDCCast.c (astErrors),
12063         * src/SDCCast.h,
12064         * src/SDCCglue.c (emitRegularMap): fixed bug #847813
12065
12066 2003-11-26 Vangelis Rokas <vrokas AT otenet.gr>
12067
12068         * src/pic16/main.c (_pic16_genIVT): fixed interrupt vector table
12069         * src/pic16/main.c (_pic16_genAssemblerPreamble): re-enabled the
12070         output of __config directives, since gpasm now supports them
12071         * src/pic16/main.c (_pic16_finaliseOptions): define MCU
12072         pre-processor macro, i.e. -DMCU=p18f452
12073         * src/pic16/ralloc.c: renamed packRegisters to pic16_packRegisters,
12074         and modified to handle 'cast' icode similarly to '=' icode
12075         * src/pic16/device.h (typedef struct PIC_device): added field
12076         'extMIface' to indicate that chip has external memory interface
12077         * src/pic16/device.c: added chips 18F248, 18F258, 18F448, 18F458,
12078         18F6520, 18F6620, 18F6680, 18F6720, 18F8520, 18F8620, 18F8680,
12079         18F8720
12080
12081 2003-11-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12082
12083         * src/SDCC.y (pointer): fixed bug #846006
12084         * support/Util/SDCCerr.c: made W_PTR_TYPE_INVALID message clearer
12085         * src/SDCCast.c (decorateType): fixed bug #846009
12086         * src/ds390/peeph.def,
12087         * src/ds390/gen.c (genAnd, genOr),
12088         * src/mcs51/peeph.def,
12089         * src/mcs51/gen.c (genAnd, genOr): fixed bug #846777
12090
12091 2003-11-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12092
12093         Fixed several common-sub-expression bugs (#772861, #768380, & #755323)
12094         * src/SDCCdflow.c
12095         * src/SDCCcse.c
12096         * src/SDCCcse.h
12097         * src/SDCCBBlock.h
12098         * src/SDCCBBlock.c
12099
12100 2003-11-23 Klaus Flittner <klaus_flittner AT gmx.de>
12101
12102         fixed bug #845089
12103         * src/SDCCbitv.h,
12104         * src/SDCCbitv.c: added function to free a bitvector
12105         * src/SDCClrange.h,
12106         * src/SDCClrange.c: added function to recompute the liveranges
12107         * src/avr/ralloc.c,
12108         * src/ds390/ralloc.c,
12109         * src/hc08/ralloc.c,
12110         * src/mcs51/ralloc.c,
12111         * src/pic/ralloc.c,
12112         * src/pic16/ralloc.c,
12113         * src/xa51/ralloc.c,
12114         * src/z80/ralloc.c: recompute the liveranges after register packing
12115
12116 2003-11-21 Klaus Flittner <klaus_flittner AT gmx.de>
12117
12118         * src/SDCCloop.c (newInduction): fixed bug #845630
12119
12120 2003-11-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12121
12122         * src/SDCCsymt.c (compareTypesExact): disabled debugging output
12123         inadvertantly left behind from my 2003-11-12 change
12124
12125 2003-11-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12126
12127         Updated headers I neglected to commit yesterday.
12128         * src/SDCClrange.h,
12129         * src/SDCCicode.h
12130
12131 2003-11-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12132
12133         * src/SDCCcse.c (algebraicOpts): fixed bug #773153
12134         * src/SDCClrange.c (rlivePoint): need to mark IC_RESULT used if POINTER_SET op
12135         * src/SDCCopt.c (eBBlockFromiCode),
12136         * src/SDCClrange.c (hashiCodeKeys, sequenceiCode, computeLiveRanges): seperated
12137         the creation of the key hash table from the sequencing so it can be used
12138         earlier (for some GCSE bug fixes still pending)
12139
12140 2003-11-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12141
12142         * src/mcs51/gen.c (genPlus): generate shortcut for adding 0xab00
12143         * support/regression/tests/addsub.c: testing genPlus shortcut
12144
12145 2003-11-15  Borut Razem <borut.razem AT siol.net>
12146
12147         * src/SDCCmain.c: fixed bug #841645: -MM command line option passed to sdcpp
12148
12149 2003-11-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12150
12151         * src/SDCCcse.c (cseBBlock): fixed bug #527779
12152         * src/SDCCcse.c (deleteGetPointers): rewrote so that the set
12153         ordering is immaterial.
12154         * src/SDCCdflow.c (mergeInExprs): fixed bug #587536
12155
12156 2003-11-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12157
12158         * src/SDCCicode.c (geniCodeAddressOf): fixed part of bug #840381
12159         * src/SDCCopt.c (replaceRegEqv, isLocalWithoutDef): fixed other part
12160         (SIGSEV) of bug #840381
12161         * src/SDCCmain.c (linkEdit, assemble): fixed bug #841606 (don't
12162         unlink new file before rename if new and old filenames are the same)
12163
12164 2003-11-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12165
12166         * src/mcs51/main.c: started fixing bug #737001 (SDCC not clearing
12167         uninitialized variables) for the mcs51. Set environment variable
12168         SDCC_GENRAMCLEAR to test.
12169         xdata initialization slightly shorter
12170
12171 2003-11-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12172
12173         * src/SDCCsymt.h,
12174         * src/SDCCsymt.c (addSymTypeChain, compareTypesExact): fixed bugs
12175         #838241 & 780691 (basicly the same bug)
12176         * src/SDCCBBlock.c (iCode2eBBlock): fixed bug #840148
12177         * src/SDCCBBlock.c (iCodeFromeBBlock): fixed bug #840162
12178
12179 2003-11-11 Bernhard Held <bernhard AT bernhardheld.de>
12180
12181         * src/SDCCmain.c (linkEdit): "fix" #834252
12182
12183 2003-11-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12184
12185         * src/SDCCast.c (removePostIncDecOps, removePreIncDecOps),
12186         * src/SDCCast.h,
12187         * src/SDCC.y: fixed bug #819403
12188
12189 2003-11-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12190
12191         * support/regression/fwk/lib/testfwk.c: printn is recursive and thus needs
12192         the reentrant attribute.
12193         * src/hc08/gen.c (genPackBits): added missing stack readjustment
12194         * sim/ucsim/hc08.src/inst.cc (inst_mov): fixed bugs with mov instruction
12195         simulation
12196         * src/SDCCast.c (decorateType): fixed bug with storage class not being
12197         updated during pointer dereference; f.e. ~(((char *)1)*) was being
12198         erroneously reduced to a literal.
12199         * src/hc08/ralloc.c (packRegisters, rematStr),
12200         * src/hc08/gen.c (aopForRemat): allow literals to be rematerialized in
12201         some cases
12202
12203 2003-11-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12204
12205         * src/mcs51/main.c: fixed bug #838385. Thanks to Josef Pavlik for finding and fixing
12206         * doc/sdccman.lyx: changed from 'article' to 'book'
12207         * doc/Makefile: readded test_suite_spec and cdbfileformat
12208
12209 2003-11-08 Bernhard Held <bernhard AT bernhardheld.de>
12210
12211         * device/include/stdlib.h: include malloc.h to comply with ANSI
12212         * support/regression/tests/malloc.c: include stdlib.h instead of malloc.h
12213
12214 2003-11-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12215
12216         * doc/Makefile: sdccman.pdf should build with correct references (more info in commit msg)
12217         * doc/clean.mk: also remove *.out files
12218         * doc/sdccman.lyx: some additions, larger top/bottom margins
12219
12220 2003-11-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12221
12222         * src/SDCC.y: fixed bug #837365
12223         * support/regression/tests/bitopcse.c
12224         * src/hc08/gen.c (genPointerGet): Don't assume pointer operand is
12225         a symbol (might be valop instead)
12226         * device/lib/Makefile.in: added errno.c to HC08SOURCES
12227         * device/lib/clean.mk: added hc08 to the cleaning list
12228
12229 2003-11-04  Borut Razem <borut.razem AT siol.net>
12230
12231         * configure, configure.in, sdcc_vc_in.h, sdcconf_in.h: reverted changes,
12232           made 2003-11-04
12233         * support/Util/NewAlloc.c, as/hc08/lklibr.c, as/mcs51/lklibr.c,
12234           as/z80/aslist.c, as/z80/assym.c: removed inclusion of nonstandard malloc.h;
12235           malloc is declared in standard stdlib.h
12236
12237 2003-11-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12238
12239         * device/lib/hc08/Makefile: need to clean .rel not .o files
12240         * src/hc08/gen.c (genDjnz): can't use djnz with extended addressing mode
12241
12242 2003-11-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12243
12244         * src/port.h,
12245         * src/hc08/main.c,
12246         * src/mcs51/main.c,
12247         * src/ds390/main.c,
12248         * src/z80/main.c,
12249         * src/avr/main.c,
12250         * src/pic/main.c,
12251         * src/pic16/main.c,
12252         * src/xa51/main.c: added hasExtBitOp & oclsExpense functions to ports
12253         * src/SDCCicode.c: changed several IS_FARSPACE tests to isOclsExpensive
12254         tests (which uses the port's oclsExpense function)
12255         * src/SDCC.y,
12256         * src/SDCCast.c,
12257         * src/SDCCicode.c,
12258         * src/hc08/gen.c,
12259         * src/ds390/gen.c,
12260         * src/mcs51/gen.c: added support for the SWAP iCode (RFE #834167)
12261
12262 2003-11-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12263
12264         * src/SDCCcse.c (ifxOptimize),
12265         * src/SDCClabel.c (labelIfx, deleteIfx): When the condition to
12266         an IFX iCode is volatile, convert to DUMMY_READ_VOLATILE instead
12267         deleting the IFX iCode.
12268         * src/hc08/ralloc.c: reduced unneeded slocs
12269         * src/hc08/gen.c: fixed bug in asmopToBoolean
12270
12271 2003-11-04  Borut Razem <borut.razem AT siol.net>
12272
12273         * configure, configure.in, sdcc_vc_in.h, sdcconf_in.h,
12274           support/Util/NewAlloc.c, as/hc08/lklibr.c, as/mcs51/lklibr.c,
12275           as/z80/aslist.c, as/z80/assym.c: decision to include malloc.h
12276           transferred to configure
12277
12278 2003-11-03 Bernhard Held <bernhard AT bernhardheld.de>
12279
12280         Use headers defined in the C[++] standards:
12281         * sim/ucsim/gui.src/serio.src/fileio.cc
12282         * sim/ucsim/gui.src/serio.src/frontend.cc
12283         * sim/ucsim/gui.src/serio.src/main.cc
12284         * sim/ucsim/gui.src/serio.src/posix_signal.cc
12285         * support/Util/NewAlloc.c
12286         * as/hc08/lklibr.c
12287         * as/mcs51/lklibr.c
12288         * as/z80/aslist.c
12289         * as/z80/assym.c
12290
12291 2003-11-03  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12292
12293         * Added MSVC projects for hc08 assembler and linker:
12294         all.dsp, config.dsp, sdcc.dsw, /as/hc08/as_hc08.dsp,
12295         /as/hc08/link_hc08.dsp
12296
12297 2003-11-03 Martin Helmling <Martin.Helmling AT octo-soft.de>
12298
12299         * debugger/mcs51/cmd.c: allows filename starting with digit(+ some debug)
12300
12301 2003-11-02 Bernhard Held <bernhard AT bernhardheld.de>
12302
12303         * src/SDCCmain.c (linkEdit): "fixed" again bug #833605
12304
12305 2003-11-01 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12306
12307         * src/mcs51/main.c: xdata initialization is 13 bytes shorter now
12308
12309 2003-10-31  Borut Razem <borut.razem AT siol.net>
12310
12311         * support/cpp2/cpplib.h,
12312           support/cpp2/cpplib.c,
12313           support/cpp2/cpplex.c,
12314           support/cpp2/cppinit.c: introduced #pragma preproc_asm [ + | - ]
12315           to switch _asm block preprocessing on / off. Default is
12316           #pragma preproc_asm +
12317
12318 2003-10-31  Borut Razem <borut.razem AT siol.net>
12319
12320         * support/cpp2/cpplex.c: Fixed _WIN32 problem with CR-CR-LF sequences
12321           when outputting comment blocks (when executed with -C option) and
12322           _asm (SDCPP specific) blocks
12323
12324 2003-10-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12325
12326         * as/hc08/lkrloc.c (relr): Fixed ihx output, fixed lastAreaIndex warning
12327
12328 2003-10-31 Klaus Flittner <klaus_flittner AT gmx.de>
12329
12330         * src/SDCCcse.c (updateSpillLocation): fixed bug #808027
12331
12332 2003-10-31 Bernhard Held <bernhard AT bernhardheld.de>
12333
12334         * src/SDCCmain.c (linkEdit): "fixed" bug #833605
12335         * src/SDCCast.c (decorateType): fixed bug #832664
12336
12337 2003-10-31  Borut Razem <borut.razem AT siol.net>
12338
12339         * support/cpp2/cpplex.c: fixed for SDCPP:
12340           comments(when executed with -C option) and _asm blocks
12341           were included even if they where in skipped #if block.
12342           Applied solution from GCC cpp 3.3.2
12343
12344 2003-10-31  Borut Razem <borut.razem AT siol.net>
12345
12346         * src/SDCC.lex: sdcc now understands both formats:
12347           '# <line_number> <file_name>' and
12348           '#line <line_number> <file_name>'
12349         * support/cpp2/cppmain.c: sdcpp now generates the standard
12350           '# <line_number> <file_name>' instead of former
12351           '#line <line_number> <file_name>'
12352
12353 2003-10-30  Borut Razem <borut.razem AT siol.net>
12354
12355         * support/cpp2/cpphash.h,
12356         * support/cpp2/cpplib.h
12357         * support/cpp2/cpplex.c,
12358         * support/cpp2/cppmain.c,
12359         * support/cpp2/cppinit.c: fixed bug #828015 - Syntax variation for _asm character constants
12360
12361 2003-10-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12362
12363         Fixed a number of problems revealed by bug #827883.
12364         * src/SDCCloop.c (loopInvariants): Spill location of the
12365         result operand should be recomputed if extracted from
12366         a loop. Also, don't extract assignments of an iTemp
12367         from a literal.
12368         * src/SDCCast.c (isConformingBody): loop reversal should
12369         not occur if the control variable is involved with a
12370         relational operator.
12371
12372 2003-10-28 Bernhard Held <bernhard AT bernhardheld.de>
12373
12374         * .version: bumped to 2.3.6 to reflect the big improvements
12375         made by Erik and Klaus. Thanks!
12376
12377 2003-10-28 Klaus Flittner <klaus_flittner AT gmx.de>
12378
12379         Replaced the livrange code.
12380         * src/SDCClrange.c: added new LR code
12381         * src/SDCCloop.c,
12382         * src/SDCCBBlock.h: removed remainig parts from old LR code
12383         * src/ds390/ralloc.c,
12384         * src/ds390/gen.c: minor fixes to make it work with new code
12385
12386 2003-10-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12387
12388         * as/hc08/asm.h,
12389         * as/hc08/lkrloc.c,
12390         * src/hc08/gen.c,
12391         * src/hc08/ralloc.c: Fix various warnings related to the hc08
12392         * src/SDCCicode.c (geniCodePreInc, geniCodePreDec): Fixed bug #829717
12393         (tweaked fix for bug #818696)
12394
12395 2003-10-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12396
12397         * src/z80/ralloc.c (joinPushes): Fixed bug #828742
12398
12399 2003-10-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12400
12401         * src/SDCCmain.c,
12402         * sdccconf_in.h: Fixed bug #828387 (--disable-hc08-port didn't work)
12403         * src/mcs51/gen.c (gencjneshort),
12404         * src/ds390/gen.c (gencjneshort): Made comparison with AOP_IMMD operand
12405         more efficient (per Scott Bronson's suggestion)
12406
12407 2003-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12408
12409         Extended the semantics of the critical keyword to include
12410         individual statements. See RFE #827755 and #799831
12411         * src/SDCC.y
12412         * src/SDCCicode.c
12413         * src/SDCCopt.c
12414         * src/SDCCast.c
12415         * support/Util/SDCCerr.c
12416         * support/Util/SDCCerr.h
12417         * src/mcs51/gen.c
12418         * src/ds390/gen.c
12419         * src/hc08/gen.c
12420
12421 2003-10-19  Borut Razem <borut.razem AT siol.net>
12422
12423         * src/SDCC.lex: fixed bug #825944 - defined yytext_ptr to make it compile with flex 2.5.31
12424
12425 2003-10-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12426
12427         * src/SDCCicode.c (geniCodePreInc, geniCodePreDec, ast2iCode):
12428         Fixed bug #818696
12429         * src/SDCCast.c (ast_print): Fixed --dumptree so that preincrement
12430         and predecrement operand is displayed
12431
12432 2003-10-13 Bernhard Held <bernhard AT bernhardheld.de>
12433
12434         * src/SDCCval.c (valMinus): fixed bug #826041
12435
12436 2003-10-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12437
12438         Some hc08 related updates that I missed earlier
12439         * sim/ucsim/stypes.h
12440         * support/regression/ports/hc08/spec.mk
12441
12442 2003-10-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12443
12444         New target "hc08" for the Motorola 68hc08 family of micros
12445
12446         * configure
12447         * configure.in
12448         * Makefile
12449         * src/hc08/*
12450         * src/SDCCmain.c
12451         * src/port.h
12452         * sim/ucsim/hc08.src/*
12453         * sim/ucsim/configure.in
12454         * src/ucsim/configure
12455         * sim/ucsim/packages_in.mk
12456         * as/hc08/*
12457         * as/Makefile
12458         * device/include/mc68hc908qy.h
12459         * device/lib/hc08/*
12460         * device/lib/Makefile.in
12461         * support/regression/ports/hc08/*
12462         * support/regression/Makefile
12463
12464 2003-10-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12465
12466         * src/z80/gen.c: fixed bug revealed by ast_constant_folding.c
12467         regression test
12468         * src/ds390/gen.c (genCast): fixed bug #821957
12469
12470 2003-10-13 Bernhard Held <bernhard AT bernhardheld.de>
12471
12472         * device/lib/logf.c: "fixed" overlay bug
12473         * support/regression/ports/host/spec.mk: added m library
12474         * support/regression/ports/mcs51-stack-auto/spec.mk: added float funcs
12475         * support/regression/tests/float_trans: added (for Eric)
12476
12477 2003-10-12 Bernhard Held <bernhard AT bernhardheld.de>
12478
12479         * src/mcs51/gen.c (genCpl): fixed bug
12480         http://sf.net/mailarchive/message.php?msg_id=6263915
12481
12482 2003-10-10 Bernhard Held <bernhard AT bernhardheld.de>
12483
12484         * src/SDCCast.c (decorateType): added extended constant folding
12485         * src/SDCCsymt.c (computeType): cleanup
12486         * src/SDCCval.c (valShift): minor optimization
12487         * support/regression/tests/ast_constant_folding.c: added
12488
12489 2003-10-09  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12490
12491         * src/SDCCmain.c: removed some unintended changes
12492
12493 2003-10-09  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12494
12495         * src/SDCCmain.c (setParseWithComma): fixed bug #816685
12496         * src/z80/gen.c: fixed part of bug #817589
12497         * src/SDCCsymt.c (checkFunction): fixed bug #817895
12498
12499 2003-10-08 Bernhard Held <bernhard AT bernhardheld.de>
12500
12501         Replaced cast (void **) with (void *) to avoid gcc 3 warning:
12502         * src/SDCCcflow.c
12503         * src/SDCCcse.c
12504         * src/SDCCdflow.c
12505         * src/SDCClabel.c
12506         * src/SDCClrange.c
12507         * src/SDCCmem.c
12508         * src/SDCCopt.c
12509         * src/SDCCpeeph.c
12510         * src/SDCCset.c
12511         * src/avr/ralloc.c
12512         * src/ds390/ralloc.c
12513         * src/izt/ralloc.c
12514         * src/mcs51/ralloc.c
12515         * src/pic/ralloc.c
12516         * src/pic16/ralloc.c
12517         * src/xa51/ralloc.c
12518         * src/z80/ralloc.c
12519         * src/z80/gen.c: removed unused label "release:"
12520
12521 2003-10-06  Borut Razem <borut.razem AT siol.net>
12522
12523         * src/SDCC.lex: removed definition of unused variables
12524           save_optimize and save_options
12525
12526 2003-10-06 Bernhard Held <bernhard AT bernhardheld.de>
12527
12528         * clean.mk: removed '=' in "-maxdepth=1"
12529         * src/SDCCloop.c: replace LRKLAUS with SDCC_LRKLAUS
12530         * src/SDCClrange.c: replace LRKLAUS with SDCC_LRKLAUS
12531
12532 2003-10-06  Borut Razem <borut.razem AT siol.net>
12533
12534         * src/SDCC.lex, src/SDCC.lex: use dbuf for "_asm" definitions;
12535           my_unput() replaced by unput()
12536
12537 2003-10-05 Bernhard Held <bernhard AT bernhardheld.de>
12538
12539         * src/SDCCloop.c (assignmentsToSym, loopInduction): cast argument of
12540         setToNull() to (void *) to avoid gcc3.x's warning: "dereferencing
12541         type-punned pointer will break strict-aliasing rules"
12542         Old LR behaviour is again default; Klaus' LR can be choosen by
12543         defining the environment variable LRKLAUS
12544         * src/SDCCBBlock.h
12545         * src/SDCCloop.c
12546         * src/SDCClrange.c
12547         * src/ds390/ralloc.c (spillThis): applied Klaus' patch
12548         * clean.mk: fixed removal of files in bin/CVS/
12549         * device/lib/clean.mk: fixed removal of directories small and large
12550         * support/Util/SDCCerr.c: changed W_INT_OVL to ERROR_LEVEL_PEDANTIC
12551         * src/SDCCicode.c,
12552         * src/SDCCval.c: removed superflous test for pedantic
12553
12554 2003-10-05  Borut Razem <borut.razem AT siol.net>
12555
12556         * src/SDCC.lex, support/Util/SDCCerr.c, sdcc/support/Util/SDCCerr.h:
12557           Fixed bug #816692: introduced new ERROR_LEVEL_PEDANTIC warning
12558           message "unmatched #pragma SAVE and #pragma RESTORE"
12559
12560 2003-10-04  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12561
12562         * doc/sdccman.lyx: various additions and updates (interrupts, inline
12563           assembly, critical functions, atomic, nojtbound)
12564
12565 2003-10-04 Bernhard Held <bernhard AT bernhardheld.de>
12566
12567         Applied liferange patch from Klaus Flittner <klaus_flittner AT gmx.de>
12568         * src/SDCCBBlock.h
12569         * src/SDCCloop.c
12570         * src/SDCCloop.h
12571         * src/SDCClrange.c
12572
12573 2003-10-03  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12574
12575         * src/z80/gen.h,
12576         * src/z80/gen.c (aopOp, aopGet, aopPut, genDummyRead),
12577         * src/mcs51/gen.h
12578         * src/mcs51/gen.c (aopOp, aopGet, aopPut, genDummyRead),
12579         * src/ds390/gen.h
12580         * src/ds390/gen.c (aopOp, aopGet, aopPut, genDummyRead),
12581         * src/SDCCicode.c (ast2iCode, geniCodeDummyRead): Fixed bug #663539
12582         * src/SDCCopt.c (killDeadCode): Fixed bugs #663539 & #816705
12583
12584 2003-10-02  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12585
12586         * src/z80/gen.c (genRet): fixed bug #524753
12587         * src/z80/gen.c (genCast): fixed internal error on cast from
12588         pointer to long
12589         * src/z80/gen.c (_saveRegsForCall, emitCall): adapted Johan's
12590         fix for bug #477835 to the z80
12591         * src/z80/gen.c (genZ80code, _vemit2, _emit2): added support
12592         for tracking iCodes in the peephole optimizer for z80
12593
12594 2003-10-01  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12595
12596         * src/SDCCicode.c (geniCodeJumpTable, geniCodeSwitch): fixed
12597         the other part of bug #814548
12598         * src/SDCCpeeph.c (labelInRange): fixed bug #814558
12599
12600 2003-09-30  Bernhard Held <bernhard AT bernhardheld.de>
12601
12602         * src/SDCCcse.c: fixed part of bug #814548
12603
12604 2003-09-28  Borut Razem <borut.razem AT siol.net>
12605
12606         * src/asm.c: rewrite of printILine() to use temporary file instead
12607           a pipe
12608         * src/xa51/main.c: commented out declaration of int rewinds
12609
12610 2003-09-27  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12611
12612         * src/SDCCicode.c (geniCodeJumpTable): Fixed bug #813206
12613
12614 2003-09-26  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12615
12616         * src/SDCCdflow.c (computeDataFlow): Fixed bug #810746
12617         * src/asm.c (printILine): Fixed bug #811015
12618
12619 2003-09-22  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12620
12621         *link/z80/lklibr.c, as/mcs51/lklibr.c: Improved memory allocation and
12622         freeing.
12623
12624 2003-09-21  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12625
12626         * src/z80/gen.c (setupToPreserveCarry): Fixed bug #796955
12627         * src/z80/gen.c (setupPair, genMovePairPair): Fixed setupPair
12628         to correctly handle general case of AOP_PAIRPTR
12629         * src/z80/gen.c (aopGet, aopPut): Generalized AOP_PAIRPTR handling
12630
12631 2003-09-21  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12632
12633         * src/mcs51/ralloc.c (fillGaps),
12634         * src/ds390/ralloc.c (fillGaps): fixed bug #810093 (yet another
12635         register positioning bug)
12636
12637 2003-09-21  Bernhard Held <bernhard AT bernhardheld.de>
12638
12639         * device/lib/_fsdiv.c: replaced (1<<31) by (1ul<<31)
12640
12641 2003-09-19  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12642
12643         * src/mcs51/gen.c (loadDptrFromOperand, genFarPointerGet,
12644         genCodePointerGet, genGenPointerGet, genFarPointerSet,
12645         genGenPointerSet): handle AOP_DPTR correctly when loading dptr
12646         (ralloc doesn't intentionally do this now, but perhaps later)
12647         * src/mcs51/ralloc.c (serialRegAssign, fillGaps),
12648         * src/ds390/ralloc.c (serialRegAssign, fillGaps): fixed some
12649         register positioning bugs (Fixed bug #762602 and #795325)
12650         * src/SDCCicode.c (geniCodeDerefPtr): Track output class correctly
12651         (Fixed bug #808779)
12652         * src/z80/gen.c: increased _vemit2's buffer[] to handle long
12653         lines that --i-code-in-asm generates
12654
12655 2003-09-18  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12656
12657         *link/z80/lklibr.c, as/mcs51/lklibr.c: Fixed Linux segfaults when
12658         trying to fclose a FILE* that was already closed.
12659
12660 2003-09-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12661
12662         * src/SDCCsymt.c (structElemType): fixed bug #808291 (members
12663         of const struct should be treated as if const themselves)
12664
12665 2003-09-18  Bernhard Held <bernhard AT bernhardheld.de>
12666
12667         * src/SDCCval.c (valPlus, valMinus): fixed bug #808337
12668
12669 2003-07-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12670
12671         * support/librarian/sdcclib.c: Generate correct offsets for libraries with
12672         Unix (/n) and DOS (/r/n) line terminations.
12673
12674 2003-09-17  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12675
12676         * src/SDCCopt.c (cnvFromFloatCast, cnvToFloatCast): fixed
12677         bug #613775
12678
12679 2003-09-16  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12680
12681         * src/mcs51/gen.c (genFunction, genEndFunction),
12682         * src/ds390/gen.c (genFunction, genEndFunction): Moved save
12683         and restore of EA so that stack offsets to parameters are
12684         correct when using both critical and reentrant/stack-auto.
12685         * src/z80/gen.c (aopOp): removed erroneous assertion about sloc
12686         size (can be triggered in error if sloc is shared between
12687         different sized objects)
12688         * device/include/float.h: fixed macros to explicitly use
12689         unsigned long where needed
12690
12691 2003-09-15  Bernhard Held <bernhard AT bernhardheld.de>
12692
12693         Feature req. 799831: added code to allow nesting of critical functions
12694         * src/mcs51/gen.c (genFunction, genEndFunction)
12695         * src/ds390/gen.c (genFunction, genEndFunction)
12696
12697 2003-09-14  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12698
12699         * src/SDCCsymt.c (sclsFromPtr),
12700         * src/SDCCsymt.h,
12701         * src/SDCCast.c (decorateType): fixed bug #462971. Also, better
12702         support for standard C idiom of memory mapped variables; for
12703         example, *((xdata int*)0x1234) = 1 is now internally equivalent
12704         to xdata int at 0x1234 tempvar = 1.
12705         * sim/ucsim/z80.src/inst_xd.cc: fixed bug #805483 with patch
12706         provided by Akiya ISHIDA
12707
12708 2003-09-13  Bernhard Held <bernhard AT bernhardheld.de>
12709
12710         * src/SDCCval.c (cheapestVal): reenabled to reduce int to char
12711         * src/SDCCval.c (constVal): added reduction from int to char
12712         * src/SDCCval.c (valMult, valDiv): fixed sign handling
12713         * src/SDCCval.c (valShift): fixed after change of cheapestVal()
12714         * src/SDCCval.c (valCompare): fixed EQ_OP and NE_OP; they have
12715         to ignore the sign
12716         * support/regression/tests/shifts.c: fixed
12717
12718 2003-09-13  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12719
12720         * src/z80/gen.c (genXor): Fixed bug #805445
12721
12722 2003-09-12  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12723
12724         Fixed bug #621531 (const & volatile confusion in the type chain).
12725         DCL_PTR_CONST, DCL_PTR_VOLATILE, & IS_PTR_CONST now exclusively
12726         refer to the const or volatile state of the pointer itself.
12727
12728         * src/SDCCast.c
12729         * src/SDCCglue.c
12730         * src/SDCCicode.c
12731         * src/SDCCsymt.c
12732         * src/SDCCval.c
12733         * src/SDCC.y
12734         * src/SDCCsymt.h
12735         * src/pic/gen.c
12736         * src/pic/ralloc.c
12737         * src/pic16/gen.c
12738         * src/pic16/ralloc.c
12739         * support/regression/tests/const.c
12740
12741 2003-09-10  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12742
12743         When checking for duplicated modules, use absolute paths
12744         instead of relative paths.  Files changed:
12745
12746         * as/mcs51/lklib.c
12747         * link/z80/lklib.c
12748
12749 2003-09-09  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12750
12751         * src/SDCCicode.c (geniCodeLogic): fixed bug #797572
12752
12753 2003-09-07  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12754
12755         * device/include/string.h: added size_t typedef, changed
12756         prototypes to use size_t, eliminated separate reentrant and
12757         non-reentrant declarations, added _memmove declaration
12758         * device/lib/_memcpy.c: changed to use size_t instead of int,
12759         changed /4 to >>2 to avoid division library call
12760         * device/lib/_memcmp.c,
12761         * device/lib/_memset.c,
12762         * device/lib/_strncat.c,
12763         * device/lib/_strncpy.c,
12764         * device/lib/_strncmp.c: changed to use size_t instead of int
12765         * device/lib/_memmove.c: new file (fixed bug #772294)
12766         * device/lib/Makefile.in: added _memmove.c
12767         * device/lib/z80/asm_strings.s: fixed bug #772290
12768         * support/regression/tests/bitfields.c: attempt to fix host assertion
12769         failure on amd64-unknown-linux2.2
12770
12771 2003-09-06  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12772
12773         * src/z80/gen.c (aopPut, spillPairReg): fixed bug #800998
12774         * src/z80/gen.c (genFunction, genEndFunction): fixed "bug" #774700
12775         * as/z80/asmain.c (main): fixed bug #801766
12776
12777 2003-09-06  Bernhard Held <bernhard AT bernhardheld.de>
12778
12779         * src/SDCCicode.c (ast2iCode): fixed differences in iCode with different
12780         compilers
12781
12782 2003-09-05  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12783
12784         * src/SDCCast.c (isConformingBody): fixed loop reversal bug
12785         reported in bug #800609
12786
12787 2003-09-04  Vangelis Rokas <vrokas AT otenet.gr>
12788
12789         * Top header beautifications in src/pic16 directory:
12790           device.c, device.h, gen.c, gen.h, genarith.c, glue.c, pcode.c,
12791           pcodeflow.c, pcodeflow.h, pcode.h, pcodepeep.c, pcoderegs.c,
12792           pcoderegs.h, ralloc.c, ralloc.h
12793         * main.c: added top header and GPL license notice
12794         * pcode.c: fixed the if-conditional warning
12795
12796 2003-09-04  Bernhard Held <bernhard AT bernhardheld.de>
12797
12798         * device/lib/_mullong.c: replaced int by short for gcc
12799
12800 2003-08-31  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12801
12802         * src/SDCCpeeph.c (notVolatile, notVolatileVariable): handle IFX
12803         and JUMPTABLE iCodes properly now (worked by accident before)
12804         * src/mcs51/gen.c (leftRightUseAcc),
12805         * src/ds390/gen.c (leftRightUseAcc): handle IFX and JUMPTABLE
12806         iCode properly now. Use getSize instead of nRegs since a & b
12807         aren't part of the nRegs tally.
12808
12809 2003-08-31  Vangelis Rokas <vrokas AT otenet.gr>
12810
12811         * src/pic16/main.c: corrected offsets of interrupt vectors in _pic16_genIVT()
12812         * src/pic16/pcode.c: fix to disable inserting BANKSEL directive
12813           before instructions that use the _STATUS register
12814
12815 2003-08-31  Bernhard Held <bernhard AT bernhardheld.de>
12816
12817         * src/mcs51/gen.c (freeAsmop): fixed off by one in stack offset (AOP_STK)
12818         * src/mcs51/gen.c (genNearPointerSet): added missing opcode for
12819         fetching of the pointer
12820         * src/mcs51/gen.c (genNearPointerGet): added reuse of PREG,
12821         copied from genNearPointerSet()
12822         * src/mcs51/gen.c (genNearPointerGet): don't pop r0/r1, if RESULTONSTACK
12823         * src/mcs51/gen.c: changed order of freeAsmop(left/right/result)-calls.
12824         If they pop r0/r1 they must be called in the opposite order than aopOp().
12825         * device/lib/_mullong.c: fixed for "--model-large --int-long-reent"
12826         (resp. --stack-auto), prepared for --xstack
12827
12828 2003-08-28  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12829
12830         * doc/sdccman.lyx: reverted tables to those in cvs 1.64
12831
12832 2003-08-28  Bernhard Held <bernhard AT bernhardheld.de>
12833
12834         * device/lib/_startup.c: quick & dirty fix for ds390/ds400;
12835         these ports have their own __sdcc_external_start()
12836
12837 2003-08-26  Bernhard Held <bernhard AT bernhardheld.de>
12838
12839         pic patch provided by Slade Rich <slade_rich AT yahoo.com>
12840         * src/pic/glue.c (pic14printPublics): fixed bug introduced when symbol
12841         type for bits was changed. It resulted in bit variables becoming
12842         global, which is not permitted in PIC 14 assembly output.
12843
12844 2003-08-23  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12845
12846         * doc/sdccman.lyx: various additions and updates. Rearranged sections
12847
12848 2003-08-22  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12849
12850         Z80 and MCS51 linkers complaint if a public symbol is defined
12851         in more than one library module:
12852
12853         * as/mcs51/lklib.c
12854         * link/z80/lklib.c
12855         * as/mcs51/Makefile.in
12856
12857 2003-08-22  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12858
12859         A few small changes that speed up the peephole optimizer.
12860
12861         * src/SDCCpeeph.c
12862
12863 2003-08-22  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12864
12865         Try to make the peephole optimizer smarter by maintaining
12866         an association between the assembly source code and the
12867         iCodes that originated them. Put this information to use
12868         with a new peephole rule condition "notVolatile" so that
12869         the rules can be aggressive yet still safe.
12870
12871         * src/SDCCpeeph.c
12872         * src/SDCCpeeph.h
12873         * src/mcs51/gen.c
12874         * src/mcs51/peeph.def
12875
12876 2003-08-20  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12877
12878         Fixed bug #741761
12879
12880         * src/mcs51/gen.c (aopForSym, leftRightUseAcc),
12881         * src/ds390/gen.c (aopForSym, leftRightUseAcc): preserve A and B
12882         if the left or right operand symbols have the accuse flag set.
12883
12884 2003-08-20  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12885
12886         Changed the type of the result of the ! (NOT) operator to char;
12887         previously it returned the same type as the source. This allows
12888         us to eliminate all the genFloatNot functions (all of its target
12889         implementations were very buggy) since !float can use the same
12890         code as !long now.
12891
12892         * src/SDCCicode.c (ast2iCode): ! returns char
12893         * src/mcs51/gen.c (genNot, genNotFloat),
12894         * src/ds390/gen.c (genNot, genNotFloat),
12895         * src/z80/gen.c (genNot, genNotFloat),
12896         * src/pic/gen.c (genNot, genNotFloat),
12897         * src/pic16/gen.c (genNot, genNotFloat): eliminated genNotFloat
12898
12899 2003-08-19  Bernhard Held <bernhard AT bernhardheld.de>
12900
12901         pic patch provided by Slade Rich <slade_rich AT yahoo.com>
12902         1. Interrupt would not compile properly. Ensure PCLATH register is saved
12903            during interrupts. Ensure WSAVE is located at a shared bank address.
12904         2. Fixed page selection in some places
12905         3. Fixed BTFSS/C to where necessary use registers directly and not simply
12906            the registers name strings.
12907         4. Fixed "signed / unsigned compare" compiler warnings.
12908         5. The PIC port manages its own allocation of the general purpose
12909            registers, but makes no attempt to reuse them. As a result when
12910            compiling it soon runs out of general purpose registers. Some
12911            additional code was added to the files pcode.c and device.c to walk
12912            through the function call tree and rename the registers so that they
12913            get reused.
12914
12915         * src/pic/device.c
12916         * src/pic/gen.c
12917         * src/pic/glue.c
12918         * src/pic/pcode.c
12919         * src/pic/pcode.h
12920         * src/pic/ralloc.c
12921         * src/pic/ralloc.h
12922         * src/pic/genarith.c: Fixed problems with PIC 14 port in functions
12923         genPlus() & genMinus() when the result is the same as left or right
12924
12925 2003-08-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12926
12927         * src/z80/gen.c (isUnsplitable, fetchPairLong): fixed bug #770454
12928
12929 2003-08-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12930
12931         Made bitfield a distinct type from bit so that bitfields
12932         convert as per ANSI C and bits retain their traditional
12933         boolean style behaviour. Implemented bitfield support in
12934         the z80 port.
12935
12936         * src/SDCCsymt.h,
12937         * src/SDCCsymt.c,
12938         * src/SDCCast.c,
12939         * src/cdbFile.c,
12940         * src/mcs51/gen.c,
12941         * src/ds390/gen.c: bit v bitfield split
12942         * src/z80/gen.c: New support for bitfields
12943         * support/regression/tests/bitfields.c: reenabled z80,
12944         added more tests
12945
12946 2003-08-17  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12947
12948         Rules 246.x, 247.x relate to bitfields, the others speed up
12949         access to xdata mapped I/O devices.
12950
12951         * src/mcs51/peeph.def: added 26 peepholes 246.x - 248.x, 180.x
12952
12953 2003-08-16  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12954
12955         Cleaned up genPackBits and genUnpackBits and added two helper
12956         functions, emitPtrByteGet & emitPtrByteSet. Added optimizations
12957         for literal assignments in genPackBits (thanks to Frieder for
12958         reminding me).
12959
12960         * src/mcs51/gen.c
12961         * src/ds390/gen.c
12962
12963 2003-08-16  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12964
12965         Fixed bug #748310 (pointer to function type mishandled when the
12966         function name is omitted). Also fixed a SIGSEGV when a function
12967         attribute (reentrant, etc) is used on a non-function or on a
12968         function but misplaced before the parameter list.
12969
12970         * src/SDCC.y (abstract_declarator, abstract_declaractor2): fixed
12971         bug #748310
12972         * src/SDCC.y (declarator2_function_attributes): avoided SIGSEGV
12973         * support/Util/SDCCerr.h,
12974         * support/Util/SDCCerr.c: Added func attr misuse error msg
12975
12976 2003-08-13  Bernhard Held <bernhard AT bernhardheld.de>
12977
12978         Fixed bug #787649 by anonymous
12979         * src/SDCCglue.c (emitRegularMap): added emission of sloc for func ptr
12980         * src/ds390/gen.c (aopForSym): fixed func ptr in sloc
12981
12982 2003-08-14  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12983
12984         Fixed numerous bitfield problems.
12985
12986         * src/SDCC.y: More bitfield related error checking
12987         * src/SDCCsymt.h,
12988         * src/SDCCsymt.c (compStructSize): fixed bitfield offset calc
12989         * support/Util/SDCCerr.h,
12990         * support/Util/SDCCerr.c: Added & edited some bitfield err msgs
12991         * src/mcs51/gen.c (genPackBits, genUnpackBits): fixed mask bugs
12992         * src/ds390/gen.c (genPackBits, genUnpackBits): fixed mask bugs
12993         * support/regression/tests/bitfields.c: tests added
12994
12995 2003-08-13  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12996
12997         Made the constant following the "interrupt" keyword optional. If
12998         omitted, the function will not automatically be given an entry
12999         in the interrupt vector table (similar to #pragma NOIV, but
13000         less syntacticly kludgy). The interrupt number is also now
13001         range checked. Also fixed a bug in the high order bit example
13002         in the manual.
13003
13004         * src/SDCC.y
13005         * src/SDCCmem.c
13006         * src/SDCCglue.c
13007         * src/SDCCsymt.h
13008         * support/Util/SDCCerr.c
13009         * support/Util/SDCCerr.h
13010         * doc/sdccman.lyx
13011
13012 2003-08-13  Bernhard Held <bernhard AT bernhardheld.de>
13013
13014         * src/SDCCcse.c (algebraicOpts): fix bug converting op from value to type
13015         * src/SDCCicode.c (operandOperation): rewritten some ops
13016         (*, ==, unary_minus) to fix possible overflows and to accord with ANSI
13017         * src/SDCCsymt.c (computeType): literals are handled the same way as any
13018         other type
13019         * src/SDCCval.c (cheapestVal): removed, it doesn't accord with ANSI (can
13020         be re-activated by defining REDUCE_LITERALS)
13021         * src/SDCCval.c (constVal): fixed; hex and octal constants can be
13022         unsigned, but are signed by default
13023         * src/SDCCval.c (constVal): rearranged
13024         * src/SDCCval.c (valMod): preliminary fix
13025         * src/SDCCval.c (valCastLiteral): use TYPE_* types
13026         * support/regression/literalop.c: added, work in progress
13027
13028 2003-08-12  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13029
13030         Generate warnings for useless declarations like "char data;"
13031         that don't do what new users expect.
13032
13033         * src/SDCC.y
13034         * support/Util/SDCCerr.h
13035         * support/Util/SDCCerr.c
13036
13037 2003-08-09  Bernhard Held <bernhard AT bernhardheld.de>
13038
13039         * src/SDCCval.c (valMult): fix overflow detection of negative int
13040
13041 2003-08-07  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13042
13043         * src/z80/ralloc.c (joinPushes): made compatible with new signedness
13044
13045         Changes to support big endian targets:
13046
13047         * src/ports.h
13048         * src/SDCCglue.c
13049         * src/avr/main.c
13050         * src/ds390/main.c
13051         * src/izt/i186.c
13052         * src/mcs51/main.c
13053         * src/pic/main.c
13054         * src/pic16/main.c
13055         * src/xa51/main.c
13056         * src/z80/main.c
13057
13058 2003-08-06  Bernhard Held <bernhard AT bernhardheld.de>
13059
13060         * src/SDCCval.c (cheapestVal): changed behaviour to the same as constVal()
13061         * device/lib/time.c: fixed warning "integer overflow in expression"
13062
13063 2003-08-05  Bernhard Held <bernhard AT bernhardheld.de>
13064
13065         * src/SDCCval.c (cheapestVal, valueFromLit): use TYPE_* types
13066         * src/SDCCval.c (constVal): changed default to signed; hex and octal
13067         constants are unsigned; added recognition of "u" flag for unsigned
13068         * src/SDCCval.c (valMult): fixed signdness, added warning for overflow
13069         * src/SDCCval.c (valDiv, valMod): fixed signdness
13070         * src/SDCCicode.c (operandOperation): fixed critical typo; fixed
13071         signedness of modulo, left and right shift
13072         * support/Util/SDCCerr.c: added warning "integer overflow in expression"
13073         * support/Util/SDCCerr.h: added warning W_INT_OVL
13074         * src/SDCCast.c (decorateType): fixed gcc3.3 warning
13075         * src/SDCCast.c (ast_print): improved output of constants
13076
13077 2003-08-04  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13078
13079         Fixed some warnings when building with MSVC:
13080
13081         * as/mcs51/asdata.c
13082         * as/z80/asdata.c
13083         * as/mcs51/asm.h
13084         * as/z80/asm.h
13085         * link/z80/aslink.h
13086         * link/z80/lkdata.c
13087         * link/z80/lkeval.c
13088         * link/z80/lkgb.c
13089         * link/z80/lkihx.c
13090         * link/z80/lks19.c
13091         * link/z80/lksym.c
13092         * support/cpp2/cpplib.c
13093         * src/ds390/gen.c
13094         * src/mcs51/gen.c
13095
13096 2003-08-03  Bernhard Held <bernhard AT bernhardheld.de>
13097
13098         * src/SDCCast.c (constExprTree): fix bug #781827 by Carl Worth <cworth AT isi.edu>
13099
13100 2003-08-01  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13101
13102         * support/librarian/clean.mk: Do not remove Makefile.
13103         * support/librarian/Makefile: added.
13104
13105 2003-08-01  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13106
13107         Added librarian to MSVC build:
13108         * all.dsp
13109         * sdcc.dsw
13110         * support/librarian/librarian.dsp
13111
13112         'configure' not needed for librarian, removed:
13113         * support/librarian/configure
13114         * support/librarian/configure.in
13115         * support/librarian/config_in.h
13116         * support/librarian/Makefile.in
13117
13118         Hopefully these ones built the librarian and the rest of sdcc properly:
13119         * Makefile
13120         * Makefile.common.in
13121
13122         Messed up 'configure', so revert to previous version:
13123         * configure
13124         * configure.in
13125
13126 2003-07-31  Bernhard Held <bernhard AT bernhardheld.de>
13127
13128         * src/SDCCicode.c (operandOperation): 3. fix, this time for Alpha; ULONG has 64 bits
13129         there, while the mantissa of a double is "only" 53 bits wide.
13130
13131 2003-07-31  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13132
13133         Adding sdcclib to the build.  MSVC project coming soon.
13134         Files added/changed:
13135
13136         * support/librarian/clean.mk
13137         * support/librarian/configure
13138         * support/librarian/configure.in
13139         * support/librarian/config_in.h
13140         * support/librarian/Makefile.bcc
13141         * support/librarian/Makefile.in
13142         * support/librarian/sdcclib.c
13143         * Makefile.bcc
13144         * Makefile
13145         * Makefile.common.in
13146         * configure
13147         * configure.in
13148
13149 2003-07-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13150
13151         Linker now complaints if linked modules have conflicting options, for
13152         example, one compiled using --model-large and another one compiled with
13153         --model-small.  The following files were modified:
13154
13155         * as/mcs51/asdata.c
13156         * as/mcs51/aslink.h
13157         * as/mcs51/asm.h
13158         * as/mcs51/asmain.c
13159         * as/mcs51/asout.c
13160         * as/mcs51/i51pst.c
13161         * as/mcs51/lkdata.c
13162         * as/mcs51/lklibr.c
13163         * as/mcs51/lkmain.c
13164         * as/z80/asdata.c
13165         * as/z80/asm.h
13166         * as/z80/asmain.c
13167         * as/z80/asout.c
13168         * as/z80/z80pst.c
13169         * link/z80/aslink.h
13170         * link/z80/lkdata.c
13171         * link/z80/lklibr.c
13172         * link/z80/lkmain.c
13173         * src/SDCCglue.c
13174
13175 2003-07-28  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13176
13177         *link/z80/aslink.h, link/z80/lklibr.c, as/mcs51/aslink.h,
13178         as/mcs51/lklibr.c: Generate a warning when a library is not found.
13179
13180 2003-07-28  Bernhard Held <bernhard AT bernhardheld.de>
13181
13182         * src/z80/mappings.i: fix _mul[us][int,long] entries
13183
13184 2003-07-26  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13185
13186         *src/SDCCmain.c: do not search for crt0.o when using --nostdlib
13187
13188 2003-07-24  Bernhard Held <bernhard AT bernhardheld.de>
13189
13190         * src/SDCCicode.c (operandOperation): really fixed problem with bitops
13191         * support/regression/tests/bitopcse.c: added
13192         fixed warning:
13193         * src/avr/gen.c:
13194         * src/pic/gen.c:
13195         * src/pic16/gen.c:
13196         * src/z80/gen.c:
13197         * src/xa51/gen.c:
13198
13199 2003-07-24  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13200
13201         added support for new library format to z80, gbz80 linkers:
13202         *link/z80/aslink.h
13203         *link/z80/lklex.c
13204         *link/z80/lklib.c
13205         *link/z80/lklist.c
13206
13207 2003-07-24  Bernhard Held <bernhard AT bernhardheld.de>
13208
13209         * src/SDCCicode.c (operandOperation): fixed problem with bitops and 0xffffffff;
13210         after {double d = 0xffffffff; long l = d;} l will be 0x80000000 (LONG_MIN)
13211
13212 2003-07-23  Bernhard Held <bernhard AT bernhardheld.de>
13213
13214         added DUMMY_READ_VOLATILE:
13215         * src/SDCC.y:
13216         * src/avr/gen.c:
13217         * src/xa51/gen.c:
13218         * src/z80/gen.c:
13219         * src/pic/gen.c:
13220         * src/pic16/gen.c:
13221         * src/mcs51/gen.c:
13222         * src/ds390/gen.c:
13223         * src/SDCCcse.c (algebraicOpts): many improvements
13224         * src/SDCCcse.h: removed algebraicOpts()
13225         * src/SDCCicode.c (picDummyRead): added
13226
13227 2003-07-23  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13228
13229         * as/mcs51/lkmem.c: Changed message "Insufficient DRAM memory" to
13230         "Insufficient space in data memory".
13231
13232 2003-07-20  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13233
13234         * src/mcs51/gen.c: fixed bug #771358
13235         * src/z80/gen.c: fixed bug #759087
13236
13237 2003-07-20  Bernhard Held <bernhard AT bernhardheld.de>
13238
13239         * src/pic16/glue.c: minor cleanup by Vangelis
13240
13241 2003-07-19  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13242
13243         * device/include/regc515c.h: fixed #758477
13244         * device/lib/_gptrget.c: saving some cycles in generic pointer get
13245         * device/lib/_gptrput.c: saved a few bytes
13246         * my tab spacing is 8, yours too?)
13247         * device/lib/_ser.c: process RX bytes earlier than TX bytes
13248         * device/lib/serial.c: process RX bytes earlier than TX bytes
13249         * src/mcs51/gen.c(genGenPointerGet/Set): removed writing of type after postincrement
13250
13251 2003-07-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13252
13253         * src/z80/gen.c: fixed some right shift bugs (#772726 among them)
13254
13255 2003-07-17  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13256
13257     * link/z80/lklibr.c: fixed bug when there is a '.' in a library path.
13258
13259 2003-07-17  Bernhard Held <bernhard AT bernhardheld.de>
13260
13261         * device/lib/Makefile.in: bad fix, reverted to 1.43
13262
13263 2003-07-16  Bernhard Held <bernhard AT bernhardheld.de>
13264
13265         * device/lib/Makefile.in: added missing z80 object files
13266
13267 2003-07-14  Bernhard Held <bernhard AT bernhardheld.de>
13268
13269         * src/SDCCcse.c (algebraicOpts): CSE fun with &|^ and 0x00/0xff literals
13270         pic16 progress by Vangelis:
13271         * src/SDCCglobl.h:
13272         * src/SDCCmain.c:
13273         * src/pic/Makefile:
13274         * src/pic:
13275         * pic/Makefile:
13276         * pic16/device.c:
13277         * pic16/device.h:
13278         * pic16/gen.c:
13279         * pic16/gen.h:
13280         * pic16/genarith.c:
13281         * pic16/glue.c:
13282         * pic16/main.c:
13283         * pic16/pcode.c:
13284         * pic16/pcode.h:
13285         * pic16/pcodepeep.c:
13286         * pic16/peeph.def:
13287
13288 2003-07-13  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13289
13290     * src/SDCCmain.c, src/SDCCglobl.h: added option --no-std-crt0
13291
13292 2003-07-12  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13293
13294     * sdcc.dsw, all.dsp, link/z80/linkgbz80.dsp, as/z80/as-gbz80.dsp:
13295     added gbz80 build to MSVC project.
13296     * src/SDCCmain.c, src/SDCCglue.c, src/z80/main.c, src/z80/z80.dsp,
13297     link/z80/aslink.h, linkz80.dsp: cleaned up z80 and gbz80 asm files
13298     from 8051 stuff and setup so it links using a .lnk file.
13299
13300 2003-07-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13301
13302     * support/librarian/sdcclib.c: sdcc librarian.
13303     * as/mcs51/aslink.h, as/mcs51/lklib.c: Support for libraries created
13304     with sdcclib.
13305
13306 2003-07-03  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13307
13308     * as/mcs51/lkmain.c: properly handle extensions in function afile.
13309
13310 2003-07-02  Borut Razem <borut.razem AT siol.net>
13311
13312         * src/port.h, src/SDCCmain.c, src/pic/glue.h, src/pic/main.c,
13313         src/pic16/glue.h, sdcc/src/pic16/main.c, src/izt/i186.c,
13314         src/izt/tlcs900h.c, src/avr/main.c, src/ds390/main.c, src/mcs51/main.c,
13315         src/xa51/main.c, src/z80/main.c:
13316         virtualization of glue() function: each port has it's own glue function,
13317         which is accessed by do_glue function pointer in PORT.general structure
13318
13319 2003-07-01 Kevin Vigor <kevin AT vigor.nu>
13320
13321         * DS800C400 fun, improved ROM interface and tinibios.
13322
13323 2003-06-27 Kevin Vigor <kevin AT vigor.nu>
13324
13325         * More support for DS80C400. Now includes beginning of interface to ROM.
13326
13327 2003-06-25  Bernhard Held <bernhard AT bernhardheld.de>
13328
13329         * src/mcs51/gen.c (gencjneshort): fixed bug #760345
13330
13331 2003-06-20  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13332
13333         * as/mcs51/lkaomf51.c: Make sure the size of the last procedure is correct.
13334
13335 2003-06-19  Borut Razem <borut.razem AT siol.net>
13336
13337         * src/z80/main.c: fixed Z80 port again: missing -k library paths in linker command line
13338
13339 2003-06-19  Borut Razem <borut.razem AT siol.net>
13340
13341         * src/SDCCutil.h, src/SDCCutil.c, src/SDCCglobl.h, src/SDCCmain.c, src/z80/main.c:
13342         fixed Z80 port - crt0.o: cannot open.
13343
13344 2003-06-19  Bernhard Held <bernhard AT bernhardheld.de>
13345
13346         * support/Util/MySystem.c (merge_command): revert bad fix
13347
13348 2003-06-18  Borut Razem <borut.razem AT siol.net>
13349
13350         * src/SDCC.lex, src/SDCCmain.c: fixed some warnings, introduced with changes made 15.06.1003
13351
13352 2003-06-18  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13353
13354         * src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx:
13355         option --use-stdout sends errors to stdout instead of stderr.
13356
13357 2003-06-18  Bernhard Held <bernhard AT bernhardheld.de>
13358
13359         * support/Util/MySystem.c (merge_command): quick fix for Linux segfault with \"cmd\" arg
13360
13361 2003-06-15  Borut Razem <borut.razem AT siol.net>
13362
13363         * support/cpp2/sdcc.h: HAVE_DOS_BASED_FILE_SYSTEM defined for _WIN32
13364         * src/SDCC.lex: cloneXxx and copyAndFreeXxx functions for options and optimize stack handling
13365         * src/SDCCglobl.h, src/SDCCmain.c, src/ds390/main.c, src/mcs51/main.c, src/z80/main.c:
13366         fixed width array of pointers replaced with sets;
13367         multiple include and lib paths ared transferred to preprocessor and linker
13368         * src/SDCCset.c, src/SDCCset.h: added function setFromSetNonRev() and mergeSets()
13369         * src/SDCCsymt.c: reimplemented function inCalleeSaveList() by using sets instead
13370         fixed width array of pointers
13371         * src/SDCCutil.c, src/SDCCutil.h: added functions fputStrSet(), appendStrSet(), joinStrSet();
13372         removed functions addToList(), join(), joinn(), pathCharsEquivalent(), pathCharTransform(),
13373         fixupPath(), getPathDifference()
13374         * src/ds390/gen.c, src/mcs51/gen.c: reimplemented function  inExcludeList() by using sets instead
13375         fixed width array of pointers
13376
13377 2003-06-11  Bernhard Held <bernhard AT bernhardheld.de>
13378
13379         * src/pic16/ralloc.c: fix warnings
13380         * src/pic16/pcode.c: fix warning
13381
13382 2003-06-10  Scott Dattalo  <scott AT dattalo.com>
13383
13384          Scott D. for Vangelis Rokas (vrokas AT otenet.gr). I (scott) don't
13385         know all the details, but essentially this set of changes enable
13386         the pic16 port to generate movff instructions and generate assembler
13387         directives,
13388         * src/SDCCmain.c:
13389         * src/pic16/gen.c:
13390         * src/pic16/glue.c:
13391         * src/pic16/pcode.c:
13392         * src/pic16/device.c:
13393         * src/pic16/main.c:
13394         * src/pic16/pcode.h:
13395         * src/pic16/pcoderegs.c:
13396         * src/pic16/ralloc.c:
13397         * src/pic16/ralloc.h:
13398
13399 2003-06-08  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13400
13401         * support/Util/SDCCerr.c, src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx:
13402         added option --vc, so sdcc errors and warnings are compatible with
13403         Microsoft Visual Studio.
13404
13405 2003-06-07  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13406
13407         * device/lib/_atof.c, device/lib/Makefile.in, device/include/stdlib.h,
13408           device/lib/libfloat.lib: added atof function.
13409
13410 2003-06-04  Bernhard Held <bernhard AT bernhardheld.de>
13411
13412         * doc/sdccman.lyx: updated to Lyx 1.3
13413         * doc/cdbfileformat.lyx: updated to Lyx 1.3
13414         * doc/test_suite_spec.lyx: updated to Lyx 1.3
13415         * doc/Makefile: added fix for the \tabularnewline problem, thanks to Jesus
13416
13417 2003-06-03  Bernhard Held <bernhard AT bernhardheld.de>
13418
13419         * src/SDCCpeeph.c: separate peepRules2pCode() for pic16 by "Vangelis Rokas" <vrokas AT otenet.gr>
13420
13421 2003-06-02  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13422
13423         * doc/sdccman.lyx: cvs revision keywords, passing pdf information in latex preamble,
13424           additions to the "related tools/documentation" section
13425
13426 2003-06-02  Bernhard Held <bernhard AT bernhardheld.de>
13427
13428         * src/SDCCglue.c (tempfileandname): added check for missing TMP/TEMP/TMPDIR variable
13429
13430 2003-05-29  Bernhard Held <bernhard AT bernhardheld.de>
13431
13432         * src/pic/device.c: added 16F819, patch by "David I. Lehn" <dlehn AT vt.edu>
13433         * src/SDCCcse.c (algebraicOpts): fixed "c * 1"
13434
13435 2003-05-28  Bernhard Held <bernhard AT bernhardheld.de>
13436
13437         * doc/sdccman.lyx: fix double dash and other minor things
13438         * doc/Makefile: fix double dash
13439
13440 2003-05-28  Karl Bongers(patches from Martin Helmling)
13441         * debugger/mcs51/sdcdb.c,cmd.c,break.c and .h files. Martin adds
13442           condition and ignore commands.
13443
13444 2003-05-28  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13445
13446         * doc/sdccman.lyx: Changes all over, index improved, smaller margins. The manual
13447           is in parts still quite out of date, I did changes as far as I felt makes sense
13448           for a non-native english speaker.
13449           Please feel free to add to the manual or to correct my changes.
13450         * doc/Makefile: undid touching the date of intermediate tex files.
13451
13452 2003-05-26  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13453
13454         * doc/sdccman.lyx: Manual has an index now
13455
13456 2003-05-25  Bernhard Held <bernhard AT bernhardheld.de>
13457
13458         Finalize muluint/mulsint and mululong/mulslong merging:
13459         * device/lib/_mulint.c
13460         * device/lib/_mullong.c
13461         * device/lib/gbz80/mul.s
13462         * device/lib/gbz80/stubs.s
13463         * device/lib/z80/mul.s
13464         * device/lib/z80/stubs.s
13465         * src/SDCCsymt.c (initCSupport)
13466
13467 2003-05-25  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13468
13469         * as/mcs51/lkaomf51.c: Address space 'z' was missing.
13470         * src/avr/avr.dsp, src/ds390/ds390.dsp, src/mcs51/mcs51.dsp,
13471           src/pic/pic.dsp, src/pic16/pic16.dsp, src/xa51/xa51.dsp,
13472           src/x80/z80.dsp: peep.rul is bigger now, so /Zm1000 is used
13473           instead of /Zm500.
13474
13475 2003-05-25  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13476
13477         * src/mcs51/peeph.def: added rules 244.x, 245.x. Although they pass
13478           the regression tests I'm not brave enough to enable 245.b, 245.c
13479         * doc/sdccman.lyx: added latex preamble for hyperref package.
13480           Using pdflatex this will give you a hyperlinked pdf file with
13481           bookmarks. (prepend '%' before /usepackage if this breaks something)
13482
13483 2003-05-24  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13484
13485          * doc/sdccman.lyx: updated information about .adb files (fixed bug 742649)
13486
13487 2003-05-22  Bernhard Held <bernhard AT bernhardheld.de>
13488
13489         * src/pic16/pcode.c (pic16_get_op_from_instruction): fixed a gcc 3.x warning
13490
13491 2003-05-21    <johan AT balder>
13492
13493         * src/SDCCglue.c (printIval): fixed bug #739934
13494
13495 2003-05-19  Bernhard Held <bernhard AT bernhardheld.de>
13496
13497         Applied patch from bug 737905 (renamed yylineo to mylineno):
13498         * src/altlex.c
13499         * src/SDCCast.c
13500         * src/SDCglobl.h
13501         * src/SDCC.lex
13502         * src/SDCCsymt.c
13503         * src/SDCCval.c
13504         * src/pic16/pcode.c: Cleaned warnings
13505         * src/pic16/pcodeflow.c: Cleaned warnings
13506         * src/pic16/pcoderegs.c: Cleaned warnings
13507
13508 2003-05-19  Scott Dattalo  <scott AT dattalo.com>
13509
13510         * src/pic16/pcode.c: Cleaned warnings
13511         * src/pic16/pcodepeep.c: Cleaned warnings
13512         * src/pic16/ralloc.c: Cleaned warnings
13513
13514 2003-05-19  Bernhard Held <bernhard AT bernhardheld.de>
13515
13516         * doc/sdccman.lyx: fixed bug 739745
13517         * src/pic16/pcode.c (pic16_get_op): fixed warning on alpha
13518
13519 2003-05-18  Bernhard Held <bernhard AT bernhardheld.de>
13520
13521         * src/port.h: removed DEFAULT_PORT, it's not yet pic16 ;-)
13522         it can be defined with CFLAGS when running configure
13523         * src/SDCCmain.c: fixed compiling + linking with object files
13524
13525 2003-05-18  Vangelis Rokas (vrokas AT otenet.gr)
13526
13527         * configure.in: configure for pic16 port,
13528             added --disable-pic16-port
13529         * sdccconf_in.h: added macro OPT_DISABLE_PIC16
13530         * src/SDCCmain.c: linkOptions is changed to set *,
13531             added if/endif conditional macros to remove options help
13532             messages from optionsTable when a port is not configured, added
13533             support for the PIc16 port in the ports table, when executing
13534             the compiler with no port specified on command line, a default
13535             port is selected with the new macro DEFAULT_PORT which is
13536             defined in port.h, in setDefaultOptions() linkOptions is removed
13537             from initialization assignment, since now it is a set,
13538             parseCmdLine uses setParseWithComma for linkOptions, in
13539             linkEdit() linkOptions are accessed with new function indexSet()
13540             which returns the i'th item of a set variable. See SDCCset.c, in
13541             linkEdit() when calling buildCmdLine(), added linkOptions as
13542             last argument. Now users can pass arguments to gplink via the
13543             -Wl option, main() uses pic16glue() to glue up pic16 programs
13544         * src/SDCCpeeph.c: various changes to support pic16
13545         * src/SDCCset.c: added function  void *indexSet(set *, int)  to
13546             return the i'th item of the set
13547         * src/SDCCset.h: added function prototype for indexSet()
13548         * src/SDCCsymt.c: in checkSClass(), added support for PIC16
13549         * src/clean.mk: added pic16 in CLEANALLPORTS variable
13550         * src/port.h: added TARGET_ID_PIC16,TARGET_IS_PIC16 macro,
13551             added macro DEFAULT_PORT
13552         * src/pic/main.c: corrected arguments of gplnk in _linkCmd
13553         * src/pic16/gen.c: bug fix in genCpl(), now the correct code is
13554             generated
13555         * src/pic16/glue.c: commented out some error producing lines
13556         * src/pic16/main.c: __config directives are commented out to stop
13557             gpasm complaining and test the linkage with gplink, _linkCmd and
13558             _asmCmd changed to be more gplink and gpasm friendly
13559         * src/pic16/peeph.def: peep rule 3 is commented out, since it
13560             produced an error when parsed, peep rule 12 is added to utilize
13561             movff, but it is commented out since the pCode does not support
13562             yet a command with 2 address arguments
13563
13564 2003-05-18    <johan AT balder>
13565
13566         * src/ds390/gen.c (genArrayInit): removed obsolete and buggy ARRAYINIT
13567         * src/ds390/main.c (genArrayInit): removed obsolete and buggy ARRAYINIT
13568 2003-05-17  Karl Bongers(apply patches from Martin Helmling)
13569
13570         * debugger/mcs51/sdcdb.c,cmd.c,break.c and .h files.
13571   Added feature to script commands from file.
13572
13573 2003-05-14  Bernhard Held <bernhard AT bernhardheld.de>
13574
13575         * device/lib/_strtok.c: fixed bug #734355 by Lenny Story and Tim Woodall
13576         * src/SDCCutil.c: include ctype.h for win32
13577
13578 2003-05-13  Bernhard Held <bernhard AT bernhardheld.de>
13579
13580         * src/pic16/*: removed CR from many files, reported by Vangelis Rokas
13581
13582 2003-05-12  Karl Bongers(apply development patches from Martin Helmling)
13583
13584         * debugger/mcs51/sdcdb.c,simi.c,cmd.c,break.c and .h files.
13585   Fixed so you can set breakpoints prior to run, run does not stop
13586   on entry now.  Add tbreak.  Other enhancements and fixes for use
13587   with ddd.
13588
13589 2003-05-12  Borut Razem <borut.razem AT siol.net>
13590
13591         * src/SDCCmain.c: fixed the problem with searching the DATADIR as the last resort on *nix
13592
13593 2003-05-11  Borut Razem <borut.razem AT siol.net>
13594
13595         * src/SDCCutil.c: WIN32 version of getBinPath() calls GetModuleFileName() to determine
13596         the path of bin directory, so that PATH is the only env. variable, which has to be set
13597         in case of standard installation.
13598         * src/ds390/ds390.dsp: increased value of /Zm option to 1000
13599         * src/pic/main.c: add quotes to file name parameters for gplink and gpasm
13600         * src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx: added --print-search-dirs command line option
13601
13602 2003-05-04  Bernhard Held <bernhard AT bernhardheld.de>
13603
13604         * src/SDCCmain.c (linkEdit): fixed buffer overflow for gbz80
13605         * support/regression/Makefile: inter-port-clean is no longer nesessary, the
13606         temp files are in the port dir; clean the gen/test directory when
13607         generating new test.c
13608         * support/regression/ports/host/spec.mk: defined OBJEXT for target clean
13609         * support/regression/tests/vaargs.c: fixed gcc 3.3 warning
13610         * support/regression/tests/zeropad.c: added
13611
13612 2003-05-09    <johan AT balder>
13613
13614         * src/SDCCglue.c: fixed bug #597940
13615
13616 2003-05-05  Karl Bongers(apply patches from Martin Helmling)
13617
13618         * debugger/mcs51/sdcdb.c,simi.c,cmd.c,symtab.c and .h files.
13619   cache sfr, optimize next,step, fix off by one sourceline,
13620   support ddd list function.
13621         * sim/ucsim/cmd.src/newcmd.cc - small fix for sdcdb use.
13622
13623 2003-05-04  Bernhard Held <bernhard AT bernhardheld.de>
13624
13625         * support/regression/HTMLgen.py: added compare_s2f()
13626         * support/regression/Makefile: redo 1.27
13627         * support/regression/generate-cases.py: redo 1.5
13628
13629 2003-04-30  Bernhard Held <bernhard AT bernhardheld.de>
13630
13631         * support/regression/tests/float.c: workaround 33 bit hex constant
13632         * support/regression/tests/simplefloat.c: fix division for host
13633
13634 2003-04-29  Scott Dattalo  <scott AT dattalo.com>
13635
13636         * src/pic/pcoderegs.c Applied patch from Jim Hawkridge <jim AT jimhawkridge.uk.eu.org>
13637         that tame's the PIC's over-aggressive optimizer.
13638
13639 2003-04-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13640
13641          * src.dsw, link/z80/aslink.h, link/z80/linkz80.dsp: z80 linker
13642          support for MSVC.
13643
13644 2003-04-29  Kevin Vigor <kevin AT vigor.nu>
13645
13646         Initial support for DS80C400. "Hello world" runs on TINIm400
13647         (with polled I/O).
13648
13649 2003-04-28  Karl Bongers(apply patches for Martin Helmling)
13650
13651          * debugger/mcs51/sdcdb.c,simi.c,cmd.c,symtab.c and .h files.
13652          * Some notes on ddd usage added in debugger/README
13653          Martin Helmling adding more features and fixes for ddd GUI debugger.
13654          Code added for nexti, stepi, up, down, and other adjustments.
13655
13656 2003-04-28  Scott Dattalo  <scott AT DATTALO.COM>
13657
13658         * src/pic/pCodepeep.c non-wildcard asmops are now handled
13659         * src/pic/peeph.def Added two rules to optimize carry manipulation
13660         * src/pic/* removed debug printfs
13661
13662 2003-04-28  Bernhard Held <bernhard AT bernhardheld.de>
13663
13664         * debugger/mcs51/cmd.c: added header newalloc.h
13665
13666 2003-04-26  Bernhard Held <bernhard AT bernhardheld.de>
13667
13668         * as/Makefile: new EXEEXT
13669         * as/z80/Makefile: remove trailing slash of BUILDIR
13670         * as/z80/clean.mk: new EXEEXT
13671         * Makefile.common.in: add to CFLAGS (and others), don't replace it
13672         * support/cpp2/Makefile.in: new EXEEXT
13673         * src/pic/glue.c (pic14emitRegularMap): fixed warning
13674
13675 2003-04-24  Bernhard Held <bernhard AT bernhardheld.de>
13676
13677         Cygwin's gcc always appends .exe: 'gcc -o a a.c' creates a.exe;
13678         EXEEXT was introduced to fix all related problems with targets
13679         "clean", "install" and "uninstall"; a couple of further flaws
13680         especially with "clean" have been fixed too
13681         * as/mcs51/Makefile.in
13682         * as/mcs51/clean.mk
13683         * as/z80/Makefile
13684         * Makefile
13685         * clean.mk
13686         * debugger/mcs51/Makefile.in
13687         * debugger/mcs51/clean.mk
13688         * link/z80/Makefile
13689         * link/z80/Makefile.in
13690         * link/z80/clean.mk
13691         * link/Makefile
13692         * packihx/Makefile.in
13693         * packihx/clean.mk
13694         * sim/ucsim/Makefile
13695         * sim/ucsim/clean.mk
13696         * sim/ucsim/avr.src/Makefile.in
13697         * sim/ucsim/avr.src/clean.mk
13698         * sim/ucsim/s51.src/Makefile.in
13699         * sim/ucsim/s51.src/clean.mk
13700         * sim/ucsim/xa.src/Makefile.in
13701         * sim/ucsim/xa.src/clean.mk
13702         * sim/ucsim/z80.src/Makefile.in
13703         * sim/ucsim/z80.src/clean.mk
13704         * sim/ucsim/main_in.mk
13705         * sim/ucsim/packages_in.mk
13706         * sim/ucsim/gui.src/Makefile.in
13707         * sim/ucsim/gui.src/serio.src/Makefile.in
13708         * sim/ucsim/gui.src/serio.src/clean.mk
13709         * src/Makefile.in
13710         * src/clean.mk
13711         * support/cpp2/Makefile.in
13712         * support/cpp2/clean.mk
13713         * support/makebin/Makefile
13714         * support/makebin/clean.mk
13715         * support/scripts/sdcc_mingw32: --program-suffix no longer needed
13716         * doc/sdccman.lyx: --program-suffix no longer needed
13717
13718 2003-04-23  Karl Bongers(apply patches for Martin Helmling)
13719
13720          * debugger/mcs51/sdcdb.c,simi.c,cmd.c,..
13721          Martin Helmling added support for ddd GUI debugger.
13722          Code added to display assembly, set variables, and other commands
13723          to interface to ddd.
13724
13725 2003-04-23  Bernhard Held <bernhard AT bernhardheld.de>
13726
13727         * as/Makefile: fix target clean
13728         * as/clean.mk: fix target clean
13729         * as/z80/clean.mk: fix target clean
13730
13731 2003-04-22  Bernhard Held <bernhard AT bernhardheld.de>
13732
13733         * Makefile.common.in: added  AT EXEEXT AT
13734         * configure.in: removed all mingw32 stuff
13735         * configure: rebuilt from configure.in
13736         * doc/sdccman.lyx: updated section "installation"
13737         * support/scripts/sdcc_mingw32: adapted to configure
13738         * support/scripts/sdcc_cygwin_mingw32: added
13739
13740 2003-04-22  Scott Dattalo  <scott AT dattalo.com>
13741
13742         * src/pic Added object file support for the PIC port
13743         * src/pic Applied patch from Craig Franklin (this started the object file support)
13744         * src/regression Updated the PIC regression tests for object files
13745
13746 2003-04-20  Borut Razem <borut.razem AT siol.net>
13747
13748         * sdcc/as/mcs51/lklex.c: make getfid() more robust and fixed gcc warning:
13749           lklex.c: In function `getfid':
13750           lklex.c:203: warning: array subscript has type `char'
13751         * src/SDCCglobl.h: small change in stack handling macros, to avoid crash when compiled
13752           with MSVC with global optimization enabled (probably an cl compiler bug ;-)
13753         * support/Util/SDCCerr.c, support/Util/SDCCerr.h: added function fatal(), called from
13754           stack handling macros
13755
13756 2003-04-19  Borut Razem <borut.razem AT siol.net>
13757
13758         * "handling space characters in file path" task:
13759         * src/SDCCmacro.c: fixed bug in handlig quote at the end of line
13760         * support/Util/BuildCmd.c: define par as NULL if parameter value is invalid
13761         * support/Util/MySystem.h: make it self-sufficient
13762         * src/avr/main.c, src/ds390/main.c, src/mcs51/main.c, src/pic/main.c, src/xa51/main.c,
13763           src/z80/main.c, sdcc/as/mcs51/lklex.c:
13764           handling space characters in file path
13765         * src/SDCCmain.c: introduced setDataPaths() function, {datadir} macro
13766           (it will be used by assemblers, which have their own includes, e.g. gpasm)
13767         * support/Util/MySystem.c: handling space characters in executable's path
13768
13769 2003-04-19  Bernhard Held <bernhard AT bernhardheld.de>
13770
13771         * as/z80/Makefile: fix permanent rebuild of z80
13772         * sim/ucsim/gui.src/Makefile.in: target "install" builds the same packages as target "all"
13773         * support/regression/tests/bitfields.c: added Johan's bitfields.c
13774
13775 2003-04-18      Kevin Vigor <kevin AT vigor.nu>
13776
13777         * src/SDCCopt.c: add special case optimization to replace modulo by
13778           a power of two with a bitwise AND.
13779
13780 2003-04-18    <johan AT balder>
13781
13782         * src/mcs51/gen.c (getFreePtr): fixed bug #635354
13783
13784 2003-04-17    <johan AT balder>
13785
13786         * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #716790 and removes lot's of redundant register usage around function calls
13787         * src/mcs51/ralloc.c (packRegisters): fixed bug #720667
13788
13789 2003-04-13  Borut Razem <borut.razem AT siol.net>
13790
13791         * doc/sdccman.lyx: updated info about #pragma SAVE/RESTORE nesting
13792         * configure.in, configure: fixed problems on cygwin/WinCVS environmet with ports.* line endings;
13793           fixed mingw problem in adl_NORMALIZE_PATH
13794
13795 2003-04-12  Borut Razem <borut.razem AT siol.net>
13796
13797         * fixed "#pragma SAVE/RESTORE can not be nested":
13798         * src/SDCC.lex: reworked pragma handling functions
13799         * sdcc/src/SDCCglobl.h: reworked stack handling macros
13800         * support/Util/SDCCerr.c, support/Util/SDCCerr.h: added E_STACK_VIOLATION error
13801
13802 2003-04-12  Bernhard Held <bernhard AT bernhardheld.de>
13803
13804         * src/SDCCutil.c (pathEquivalent): defined but not used
13805         * debugger/mcs51/sdcdb.c: replace SDCC_LIB_DIR
13806         * configure.in: remove sdcc_datadir, sdcc_lib_dir and sdcc_include_dir
13807         * configure: rebuilt from configure.in
13808         * sdccconf_in.h: remove SDCC_LIB_DIR and SDCC_INCLUDE_DIR
13809         * sdcc_vc_in.h: remove SDCC_LIB_DIR and SDCC_INCLUDE_DIR
13810         * device/include/Makefile.in: replace sdcc_datadir
13811         * device/lib/Makefile.in: replace sdcc_datadir
13812         * Makefile.common.in: add LDFLAGS from configure
13813         * packihx/Makefile.in: use LDFLAGS
13814         * src/Makefile.in: use LDFLAGS
13815         * support/cpp2/Makefile.in: add LDFLAGS from configure
13816         * support/makebin/Makefile: use LDFLAGS
13817         * .version: bumped version number to 2.3.5
13818
13819 2003-04-12  Borut Razem <borut.razem AT siol.net>
13820
13821         * completed "different paths" task:
13822         * src/SDCCmacro.c: fixed bug in handling quotes
13823         * src/SDCCutil.c, src/SDCCutil.c: rewritten getPrefixFromBinPath()
13824         * src/SDCCmain.c: _discoverPaths() replaced with setBinPaths(), setIncludePath() and setLibPath()
13825
13826 2003-04-12  Bernhard Held <bernhard AT bernhardheld.de>
13827
13828         * src/pic/pcoderegs.c (Remove1pcode): fix warning on alpha
13829
13830 2003-04-11 kevin Vigor <kevin AT vigor.nu>
13831
13832         * ds390/gen.c ds390/peeph.def: fix bug 706781
13833
13834 2003-04-11  Borut Razem <borut.razem AT siol.net>
13835
13836         * support/Util/dbuf.c, support/Util/dbuf.h: update to version 1.1.1 - re-added C++ stuff to make it still more portable
13837
13838 2003-04-10  Scott Dattalo  <scott AT dattalo.com>
13839
13840         * src/pic/* Applied the pointer-to-function patch from Steve Tell.
13841         * src/pic/* Fixed several pointer bugs. (PIC port broke when the ruonly bit was
13842          set - this bit used to not be set...).
13843         * src/pic/gen.c Fixed buf 609268 ==> x = (x+1) & 0xf; generated
13844           bad code in PIC Port
13845         * src/regression/and2.c added to test bug 609268
13846         * src/regression/Makefile added and2.c to regression test
13847
13848
13849 2003-04-08    <johan AT CP255758-A>
13850
13851         * src/mcs51/gen.c (gen51Code): display reg usage in --icode-in-asm
13852         * src/mcs51/ralloc.c (serialRegAssign): update the registers in use and save some slocs
13853         * src/SDCCicode.h: added riu to show the register usage in --icode-in-asm
13854
13855 2003-04-07  Bernhard Held <bernhard AT bernhardheld.de>
13856
13857         * configure.in: fully support prefix, exec_prefix, datadir, docdir;
13858         fix bug #487815
13859         * support/cpp2/Makefile.in: fix bug #487815
13860         * configure: rebuilt from configure.in
13861         * Makefile.common.in: docdir changed, new path suffixes
13862         * sdccconf_in.h: new RETSIGTYPE, and other PATHs
13863         * sdcc_vc_in.h: reflect changes from sdccconf.h
13864         * src/SDCCglobl.h: remove *SEPARATOR_CHARS, they are now in sdccconf.h
13865         * src/SDCCutil.h: remove BINDIR hack
13866         * doc/sdccman.lyx: update new path hierarchy
13867
13868 2003-04-06    Paul Stoffregen <paul AT pjrc.com>
13869
13870         * src/SDCCpeeph.c: added okToRemoveSLOC test
13871
13872 2003-04-06    Paul Stoffregen <paul AT pjrc.com>
13873
13874         * device/lib/printf_fast.c: added leading zero format ("%06d", etc)
13875
13876 2003-04-06    Paul Stoffregen <paul AT pjrc.com>
13877
13878         * src/SDCCpeeph.c: added labelIsReturnOnly test
13879         * src/mcs51/peeph.def: Peephole 244: replace ljmp to ret with ret
13880
13881 2003-04-05    <johan AT balder>
13882
13883         * src/SDCCcse.c (cseAllBlocks): fixed bug #460088
13884         * src/SDCCloop.c (DEFSETFUNC): fixed bug #460088
13885         * src/SDCCopt.c (eBBlockFromiCode): fixed bug #460088
13886         * src/SDCCast.c: fixed a warning
13887         * src/SDCCast.h: fixed a warning
13888         * src/SDCCicode.c (operandFromAst): fixed a warning
13889
13890 2003-04-04    <johan AT balder>
13891
13892         * src/SDCCloop.c (DEFSETFUNC): undid the fix for bug #519584
13893         * src/SDCCast.c (decorateType): fixed bug #715076
13894         * src/SDCC.y: fixed bug #702907
13895
13896 2003-04-03    <johan AT balder>
13897
13898         * device/lib/_mulint.c (_muluint): new #pragma LESS_PEDANTIC
13899         * src/SDCCopt.c (eBBlockFromiCode): new #pragma LESS_PEDANTIC
13900         * src/SDCCglobl.h (PRAGMA_LESSPEDANTIC): new #pragma LESS_PEDANTIC
13901         * src/SDCC.lex (doPragma): new #pragma LESS_PEDANTIC
13902         * src/SDCCmain.c (parseCmdLine): new #pragma LESS_PEDANTIC
13903
13904 2003-04-03  Bernhard Held <bernhard AT bernhardheld.de>
13905
13906         * _decdptr.c: fix return values
13907         * _gptrget.c: fix return values
13908         * _gptrgetc.c: fix return values
13909         * _gptrput.c: fix return values
13910         * _mulint.c: fix return values
13911         * as/z80/Makefile: fix 'make -j' problem
13912
13913 2003-04-02  Bernhard Held <bernhard AT bernhardheld.de>
13914
13915         * Makefile.common.in: unused PORT, SCC and SAS removed, fixed docdir
13916         * configure.in: big cleanup, updated to autoconf 2.5x
13917         * configure: rebuilt from configure.in
13918         * sdccconf_in.h: new RETSIGTYPE, and other PATHs
13919         * sdcc_vc_in.h: reflect changes from sdccconf.h
13920         * doc/Makefile: fixed a flaw in "make install"
13921
13922 2003-04-02    <johan AT balder>
13923
13924         * src/ds390/gen.c (genCmp): no comments
13925         * src/mcs51/gen.c (genCmp): no comments
13926         * src/SDCCopt.c (eBBlockFromiCode): detect missing return values
13927         * src/SDCCast.c (ast_print): fixed the function type in --dumptree
13928
13929 2003-04-01  Bernhard Held <bernhard AT bernhardheld.de>
13930
13931         * support/regression/generate-cases.py: place generated file in given sub directory
13932         * support/regression/ports/host/spec.mk: prevent removal of testfwk.o
13933         * support/regression/Makefile: improvements for 'make -j';
13934         side effect: it's simpler and faster now
13935
13936 2003-03-31  Borut Razem <borut.razem AT siol.net>
13937
13938         * src/z80/main.c: link-{port} and as-{port} defined without path
13939         * src/src.dsp: support/Util/MySystem.h and src/SDCCutil.h added to project
13940
13941 2003-03-31  Bernhard Held <bernhard AT bernhardheld.de>
13942
13943         * Makefile, src/Makefile.in: add dependencies, so that 'make -j' works
13944
13945 2003-03-30  Borut Razem <borut.razem AT siol.net>
13946
13947         * support/Util/BuildCmd.c, support/Util/BuildCmd.h: rewrite buildCmdLine(),
13948           changed type of list parameter to set
13949         * src/ds390/main.c: changed type of parameter asmOptions to set in _tininative_do_assemble()
13950         * src/port.h: changed type of do_assemble() parameter to set
13951         * src/SDCCmain.c: type of asmOptions changed to set, introduced setParseWithComma(),
13952           sdcpp defined without path, removed variable VersionString, introduced set binPathSet,
13953           definition of "cppoutfilename" macro with NULL value in preProcess()
13954         * src/SDCCglobl.h: included "SDCCset.h", added declaration of setParseWithComma()
13955         * src/SDCCglue.c: removed variable VersionString, inroduced spacesToUnderscores()
13956         * support/Util/MySystem.c, support/Util/MySystem.h: rewrite, char *ExePathList[]
13957           replaced with set *binPathSet
13958         * shash_add() deallocates the item, if allready exsists, before adding the new one
13959         * src/SDCCmacro.c: handling macros with empty or NULL values in _evalMacros()
13960
13961 2003-03-30  Scott Dattalo  <scott AT dattalo.com>
13962
13963         * src/pic/gen.c: Commit patch from Steve Tell <tell AT telltronics.org> that fixes
13964           a nested for loop bug in the PIC port
13965         * src/regression/nestfor.c: new regression test file Steve wrote to test nested
13966           for loops
13967
13968 2003-03-29  Bernhard Held <bernhard AT bernhardheld.de>
13969
13970         * support/Util/dbuf.h: remove C++ stuff to make it portable
13971
13972 2003-03-28  Borut Razem <borut.razem AT siol.net>
13973
13974         * src/SDCC.lex: Fix for bug #711240: dynamic buffer handling of C
13975           literal strings in stringLiteral()
13976         * support/Util/dbuf.c, support/Util/dbuf.h: added: dynamic buffer handling
13977         * src/Makefile.bcc, src/Makefile.in, src/src.dsp: added support/Util/dbuf.c
13978           to the project
13979
13980 2003-03-27  Paul Stoffregen <paul AT pjrc.com>
13981
13982         * src/SDCCpeeph.c (pcDistance): accurate byte distance for mcs51
13983
13984 2003-03-26    <johan AT balder>
13985
13986         * src/mcs51/gen.c (saveRegisters): catched symbol abuse
13987         * src/ds390/gen.c (saveRegisters): catched symbol abuse
13988         * src/SDCCast.c (decorateType): fixed " -v < 3"
13989
13990 2003-03-23  Bernhard Held <bernhard AT bernhardheld.de>
13991
13992         * doc/cdbfile.html: removed, replaced by cdbfileformat.lyx
13993         Added Lenny Story's debug infrastructure changes:
13994         * src/Makefile.in:  added new files cdbFile.c and SDCCdebug.c
13995         * src/Makefile.bcc: added new files cdbFile.c and SDCCdebug.c
13996         * src/cdbFile.c: added
13997         * src/SDCCdebug.c: added
13998         * src/SDCCdebug.h: added
13999         * src/SDCCast.c (createFunction)
14000         * src/SDCCglue.c (emitRegularMap, emitStaticSeg, emitOverlay, glue)
14001         * src/SDCCmain.c (parseCmdLine, main)
14002         * src/SDCCmem.c (redoStackOffsets)
14003         * src/SDCCsymt.c (cdbStructBlock, cdbTypeInfo, cdbSymbol, cdbStruct, cdbStructBlock)
14004         * src/SDCCsymt.h
14005         * src/common.h
14006         * src/avr/gen.c (genAVRCode)
14007         * src/ds390/gen.c (gen390Code)
14008         * src/mcs51/gen.c (gen51Code)
14009         * src/pic/gen.c (genpic14Code)
14010         * src/pic/glue.c (pic14emitRegularMap, pic14emitStaticSeg, pic14emitOverlay, picglue)
14011         * src/xa51/gen.c (genXA51Code)
14012         * src/SDCCast.c: fixed "void foo(void){char c; -c < 0;}"
14013
14014 2003-03-22  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
14015
14016         * src/mcs51/gen.c (genCodePointerGet): quicker code for bug #700797
14017         * src/mcs51/peeph.def: added rules 177, 241.x to 243, touched 181, 182.x, 193.x
14018
14019 2003-03-22    <johan AT balder>
14020
14021         * src/SDCCicode.c (geniCodeDerefPtr): fixed bug #698231
14022
14023 2003-03-21  Bernhard Held <bernhard AT bernhardheld.de>
14024
14025         * support/scripts/sdcc_mingw32: adapted to configure from autoconf 2.54
14026         * doc/cdbfileformat.lyx: added, written by Lenny Story
14027         * doc/Makefile: added cdbfileformat.lyx
14028         * doc/clean.mk: added cdbfileformat.lyx
14029
14030 2003-03-20  Bernhard Held <bernhard AT bernhardheld.de>
14031
14032         * src/mcs51/peeph.def: fix bug #705773
14033
14034 2003-03-20    <johan AT balder>
14035
14036         An sfr/sbit can have an "at #" AND an initializer
14037         * src/SDCCsymt.c (checkSClass):
14038         * src/SDCCmem.c (allocGlobal):
14039         * src/SDCCmem.c (allocLocal):
14040         * src/SDCCast.c (createBlock):
14041
14042 2003-03-17  Bernhard Held <bernhard AT bernhardheld.de>
14043
14044         * src/ds390/peeph.def: fix bug #704878: added rule 213.b suggested by Jan Rejlek
14045
14046 2003-03-16    <johan AT balder>
14047
14048         Undid the hackup of const and volatile, the problem is much bigger
14049         * src/SDCC.y:1.65
14050         * src/SDCCast.c:1.171
14051         * src/SDCCglue.c:1.138
14052         * src/SDCCicode.c:1.146
14053         * src/SDCCsymt.c:1.150
14054         * src/SDCCval.c:1.65
14055
14056 2003-03-15  Bernhard Held <bernhard AT bernhardheld.de>
14057
14058         * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #703541
14059         * src/ds390/gen.c (genAddrOf): fixed bug #704087
14060
14061 2003-03-13    <johan AT balder>
14062
14063         Hackup const and volatile modifiers in type chains a bit:
14064         * src/SDCC.y:1.63
14065         * src/SDCCast.c:1.169
14066         * src/SDCCglue.c:1.136
14067         * src/SDCCicode.c:1.143
14068         * src/SDCCsymt.c1.146
14069         * src/SDCCsymt.h1.59
14070         * src/SDCCval.c:1.63
14071
14072 2003-03-12    <johan AT balder>
14073
14074         * src/SDCCBBlock.h: more LRH debugging junk
14075         * src/SDCCcflow.h: more LRH debugging junk
14076         * src/SDCCloop.c: more LRH debugging junk
14077         * src/SDCC.y (struct_declaration): fixed bug #697590
14078         * src/SDCCsymt.[hc] (cloneSpec): NEVER EVER use this again
14079         * src/ds390/gen.c (aopForRemat): fixed bug #700031
14080         * src/SDCCglue.c (emitStaticSeg): fixed bug #700797
14081
14082 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
14083         * src/SDCCpeeph.c: quit being lazy and made proper fix (peephole
14084         test function names must now match exactly).
14085         * src/SDCCcse.c: added special case in findCheaperOp to allow
14086         extending a short integer. Makes less awful code for bug 700121 test case.
14087
14088 2003-03-11  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14089
14090         * as/mcs51/lkmain.c: Added ASlink-Warning to messages
14091         * as/mcs51/lkaomf51.c: Fixed bug when linking asmblink example
14092
14093 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
14094
14095         * src/SDCCpeeph.c: fix so that operandsNotEqualX functions are
14096         actually called (operandsNotEqual() was called for all
14097         operandsNotEqualX tests).
14098
14099 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
14100
14101         * src/SDCCcse.c: fix findCheaperOp to prevent replacing int types
14102         with shorter literals. Fixes bug 700121.
14103
14104 2003-03-11    <johan AT balder>
14105
14106         * src/SDCCsymt.c (compareType): a (void *) can be assigned to any pointer
14107
14108 2003-03-11  Bernhard Held <bernhard AT bernhardheld.de>
14109
14110         * src/SDCCloop.c (mergeRegions): an evil beast is dead
14111         * src/SDCCmain.c (preProcess): minor cleanup: eliminate preOutName
14112
14113 2003-03-10  Borut Razem <borut.razem AT siol.net>
14114
14115         * src/SDCCmain.c: pipe preprocessor's output
14116         * support/Util/MySystem.c, support/Util/MySystem.h: added my_popen()
14117         * sdcc_vc_in.h: define pclose as _pclose for WIN32
14118         * src/SDCCglue.c, src/SDCCglue.h: added set pipeSet, added function closePipes,
14119         which closes all pipes in pipeSet set
14120         * src/SDCCset.c: free deleted item in function deleteSetItem()
14121         * src/src.dsp, src/z80/z80.dsp: files support/Util/BuildCmd.c and support/Util/MySystem.c
14122         moved from z80 to src subproject
14123         * .version: increased version number to 2.3.4
14124
14125 2003-03-10  Bernhard Held <bernhard AT bernhardheld.de>
14126
14127         * support/regression/ports/mcs51/spec.mk: increase timeout for CF's sparc to 30s
14128         * support/regression/ports/ds390/spec.mk: increase timeout for CF's sparc to 25s
14129         * support/regression/ports/xa51/spec.mk: fix typo
14130
14131 2003-03-09  Bernhard Held <bernhard AT bernhardheld.de>
14132
14133         * src/SDCCglobl.h: PATH_MAX is already defined in mingw32 headers
14134
14135 2003-03-09  Borut Razem <borut.razem AT siol.net>
14136
14137         * src/SDCCmain.c: pipe preprocessor's output
14138         * support/Util/MySystem.c, support/Util/MySystem.h: added my_popen()
14139         * sdcc_vc_in.h: define pclose as _pclose for WIN32
14140         * src/SDCCglue.c, src/SDCCglue.h: added set pipeSet, added function closePipes,
14141         which closes all pipes in pipeSet set
14142         * src/SDCCset.c: free deleted item in function deleteSetItem()
14143         * src/src.dsp, src/z80/z80.dsp: files support/Util/BuildCmd.c and support/Util/MySystem.c
14144         moved from z80 to src subproject
14145
14146 2003-03-09  Borut Razem <borut.razem AT siol.net>
14147
14148         * src/SDCCglue.c: re-implemented tempfilename() and tempfile(): using mkstemp() if available
14149         * src/SDCCsymt.h: fixed MSVC and BORLANDC compilation (included SDCCglobl.h instead srccconf.h)
14150         * sdcc_vc_in.h: explicitly undefined HAVE_MKSTEMP which is not available on BORLANDC and MSVC
14151         * src/SDCCset.h: removed inclusion of sdccconf.h or sdcc_vc.h
14152         * src/SDCCglobl.h: unification of WIN32 native definitions
14153
14154 2003-03-09  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
14155
14156         * src/mcs51/gen.c: applied in-/dec patch mentioned on sdcc-devel 2003-03-01
14157
14158 2003-03-08  Bernhard Held <bernhard AT bernhardheld.de>
14159
14160         * src/configure.in:   check for endianess (even while cross-compiling)
14161         * src/configure:      check for endianess (even while cross-compiling)
14162         * src/configure_in.h: check for endianess (even while cross-compiling)
14163         * src/avr/gen.c:        remove old endianess stuff
14164         * src/mcs51/gen.c:      remove old endianess stuff
14165         * src/ds390/gen.c:      remove old endianess stuff
14166         * src/pic/gen.c:        remove old endianess stuff
14167         * src/pic/genarith.c:   remove old endianess stuff
14168         * src/pic/glue.c:       fix endianess check
14169         * src/pic16/gen.c:      remove old endianess stuff
14170         * src/pic16/genarith.c: remove old endianess stuff
14171         * src/pic16/glue.c:     fix endianess check
14172         * src/xa51/gen.c:       remove old endianess stuff
14173         * src/z80/gen.c:        fix endianess check
14174         * src/SDCCglue.c:       fix endianess check
14175         * src/ds390/peeph.def: fix bug 700036
14176
14177 2003-03-08  Bernhard Held <bernhard AT bernhardheld.de>
14178
14179         * src/SDCCsymt.h: use appropriate data-types on host for SDCC's int and long
14180         * src/configure: find appropriate data-types on host for SDCC's int and long
14181         * src/configure.in: find appropriate data-types on host for SDCC's int and long
14182         * src/sdccconf_in.h: find appropriate data-types on host for SDCC's int and long
14183         * src/xa51/gen.c: use %d, not %ld for 4 byte variables
14184
14185 2003-03-07    <johan AT balder>
14186
14187         Just a big NOOP:
14188                 some minor cleanups before the big shot
14189                 OP_DEFS and OP_USES now use Kevin's protection
14190                 new option --nolabelopt
14191
14192         * src/SDCCBBlock.c:
14193         * src/SDCCast.c,:
14194         * src/SDCCcflow.c:
14195         * src/SDCCcse.c:
14196         * src/SDCCicode.c:
14197         * src/SDCCicode.h:
14198         * src/SDCClabel.c:
14199         * src/SDCCloop.c:
14200         * src/SDCCmain.c:
14201         * src/ds390/ralloc.c:
14202         * src/mcs51/ralloc.c:
14203         * src/pic/ralloc.c:
14204         * src/xa51/ralloc.c:
14205         * src/z80/ralloc.c:
14206
14207 2003-03-06  Bernhard Held <bernhard AT bernhardheld.de>
14208
14209         * src/pic/pcode.c (get_op): fix 64 bit warnings
14210         * src/pic/pcode.c (pCode2str): fix 64 bit warnings
14211         * src/SDCChasht.c (newHashTable): fix 64 bit warnings
14212         * src/SDCCsymt.c (checkTypeSanity): fix 64 bit warnings
14213         * support/regression/tests/malloc.c: fix 64 bit warnings
14214
14215 2003-03-04  Bernhard Held <bernhard AT bernhardheld.de>
14216
14217         * src/mcs51/gen.c (genMinus): fixed bug 696436
14218
14219 2003-03-02  Borut Razem <borut.razem AT siol.net>
14220
14221         * src/SDCCmain.c: added BORLANDC, corrected MSVC in printVersionInfo()
14222
14223 2003-02-26  Bernhard Held <bernhard AT bernhardheld.de>
14224
14225         * configure.in: test for mkstemp
14226         * sdccconf_in.h: add HAVE_MKSTEMP
14227
14228 2003-02-24  Bernhard Held <bernhard AT bernhardheld.de>
14229
14230         * device/include/ctype.h: removed warning while using --stack-auto
14231         * device/include/malloc.h: removed warning while using --stack-auto
14232         * device/include/string.h: removed warning while using --stack-auto
14233
14234 2003-02-23  Borut Razem <borut.razem AT siol.net>
14235
14236         * src/asm.h: corrected assertion in function printILine(): _pipe() was not executed on MSVC,
14237         because NDEBUG is defined (see man assert)
14238         * sdcc_vc_in.h: vsnprintf is defined as _vsnprintf on MSVC
14239
14240 2003-02-23  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
14241
14242         * src/mcs51/gen.c (genUminusFloat): avoided dptr in-/decrement for xdata variables
14243         * src/mcs51/peeph.def: added rule suggested by Gernot Fink, white space/comment changes
14244
14245 2003-02-18  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
14246
14247         * src/SDCCpeeph.c: added peephole conditions testing for same arguments
14248         * src/mcs51/peeph.def: added rules 238a-d which remove redundant moves
14249
14250 2003-02-18    <johan AT balder>
14251
14252         * as/mcs51/asmain.c (asmbl): module can start with a digit
14253         * as/z80/asmain.c (asmbl): module can start with a digit
14254
14255 2003-02-16  Bernhard Held <bernhard AT bernhardheld.de>
14256
14257         * sim/ucsim/mkecho: inserted #!/bin/sh for Cygwin, so that it's executable
14258         * src/asm.c: fix pipe() for Mingw32
14259
14260 2003-02-15  Bernhard Held <bernhard AT bernhardheld.de>
14261
14262         * src/SDCCglue.h: make tmpfileNameSet available for preOutName
14263         * src/SDCCmain.c (preProcess): make sure, that preOutName will be deleted;
14264         make -V work again; --c1mode reads now from stdin
14265         * doc/sdccman.lyx: added --c1mode
14266         * support/Util/SDCCerr.c: new messages for c1 mode
14267         * support/Util/SDCCerr.h: new messages for c1 mode
14268         * src/SDCC.lex (checkCurrFile): test if fullSrcFileName is NULL for c1mode
14269
14270 2003-02-15    <johan AT balder>
14271
14272         * src/asm.c: new options: --no-c-code-in-asm and --i-code-in-asm
14273
14274 2003-02-14  Bernhard Held <bernhard AT bernhardheld.de>
14275
14276         * doc/sdccman.lyx: Environment variables, -o and other minor things
14277
14278 2003-02-14    <johan AT balder>
14279
14280         * src/xa51/main.c: before anyone really tries to use it :)
14281
14282         * Install doc's in share/sdcc/doc
14283         * removed some obsolete files
14284         * Do a proper make distclean and uninstall
14285         M Makefile.common.in
14286         R sdccbuild.sh
14287         M as/Makefile
14288         M device/include/Makefile.in
14289         M device/lib/Makefile.in
14290         M doc/sdccman.lyx
14291         M link/Makefile
14292         M sim/ucsim/doc/Makefile.in
14293         M src/clean.mk
14294         R src/avr/peeph.rul
14295         R src/xa51/peeph.rul
14296         M support/cpp2/Makefile.in
14297         M support/makebin/Makefile
14298
14299
14300 2003-02-13  Bernhard Held <bernhard AT bernhardheld.de>
14301
14302         * support/regression/ports/host/spec.mk: use cc as host compiler for max osx
14303
14304 2003-02-10  Borut Razem <borut.razem AT siol.net>
14305
14306         * doc/bccinst.txt, packihx/packihx.c, sdcc_vc_in.h, src/SDCCset.h,
14307         support/cpp2/config.in: Borland C++ build doesn't depend on Cygwin configure
14308         * Bcc.ini, Makefile.bcc, as/mcs51/Makefile.bcc,
14309         device/examples/ds390/tinitalk/Makefile.bcc, packihx/Makefile.bcc,
14310         support/cpp2/Makefile.bcc, src/Makefile.bcc, src/avr/Makefile.bcc,
14311         src/ds390/Makefile.bcc, src/izt/Makefile.bcc, src/mcs51/Makefile.bcc,
14312         src/pic/Makefile.bcc, src/pic16/Makefile.bcc, src/xa15/Makefile.bcc,
14313         src/z80/Makefile.bcc: Borland Makefile cleanup
14314         * as/z80/Makefile.bcc: Added Borland Makefile
14315         * support/cpp2/borland.h: Removed
14316
14317 2003-02-10  Bernhard Held <bernhard AT bernhardheld.de>
14318
14319         * doc/sdccman.lyx: new pragma NOIV by "Johannes Stezenbach" <js AT convergence.de>
14320         * src/SDCC.lex: new pragma NOIV
14321         * src/SDCCglobl.h: new pragma NOIV
14322         * src/SDCCmem.c: new pragma NOIV
14323
14324 2003-02-09  Bernhard Held <bernhard AT bernhardheld.de>
14325
14326         * src/SDCCmain.c: signal handling is switched off by SDCC_LEAVE_SIGNALS
14327
14328 2003-02-09  Bernhard Held <bernhard AT bernhardheld.de>
14329
14330         * src/SDCCmain.c: signal handling is switched off by --debug
14331         * doc/Makefile: small fix for install; use clean.mk again
14332         * doc/clean.mk: clean *.pdf and *.html too
14333
14334 2003-02-08  Bernhard Held <bernhard AT bernhardheld.de>
14335
14336         * device/lib/_mulint.c: small fix for large/ds390 --int-long-reent resp. --stack-auto
14337         * device/lib/printfl.c: fix a ds390 bug by making it portable
14338         * src/SDCCsymt.c (initCSupport): fix compile warning on Cygwin
14339         * src/SDCCopt.c (cnvToFloatCast): fix compile warning on Cygwin
14340         * src/SDCCopt.c (cnvFromFloatCast): fix compile warning on Cygwin
14341         * debugger/mcs51/cmd.c: converted multi-line string literals
14342         * sim/ucsim/globals.cc: converted multi-line string literals
14343         * src/SDCCmain.c: introduced signal handler to remove temp files
14344         * doc/Makefile: small tweaks, implement clean
14345         * doc: removed generated files
14346
14347 2003-02-05  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14348
14349         * as/mcs51/aslink.h, as/mcs51/lkihx.c, as/mcs51/lkrloc.c:  Applied
14350         patch from Jan Rejlek <jr AT apex-lib.cz> to fix Bug 677692: "Extended
14351         Address Record is not correctly generated for DS390."
14352
14353 2003-02-02  Borut Razem <borut.razem AT siol.net>
14354
14355         * Makefile.bcc: removed non existing cpp project and non compilable izt project from makefile
14356         * as/mcs51/asm.h: fixed compilation with Borland C
14357         * support/cpp2/Makefile.bcc: added rule to generate auto-host.h
14358         * support/cpp2/auto-host_vc_in.h: fixed compilation with Borland C
14359         * src/mcs51/mcs51a.dsp: corrected misspelled project name from msc51a to mcs51a
14360         * src/avr/Makefile.bcc, src/ds390/Makefile.bcc, src/izt/Makefile.bcc,
14361         src/mcs51/Makefile.bcc, src/pic16/Makefile.bcc, src/xa51/Makefile.bcc,
14362         src/z80/Makefile.bcc: delete $(LIB) only if exist
14363         * src/Makefile.bcc, src/pic/Makefile.bcc:  fixed compilation with Borland C
14364
14365 2003-02-02  Bernhard Held <bernhard AT bernhardheld.de>
14366
14367         * device/include/malloc.h: introduced NULL
14368         * device/include/string.h: introduced NULL
14369         * device/include/stdlib.h: introduced NULL
14370         * device/lib/_memcpy.c: removed NULL
14371         * device/lib/_strcat.c: removed NULL
14372         * device/lib/_strchr.c: removed NULL
14373         * device/lib/_strcmp.c: removed NULL
14374         * device/lib/_strcpy.c: removed NULL
14375         * device/lib/_strcspn.c: removed NULL
14376         * device/lib/_strlen.c: removed NULL
14377         * device/lib/_strncat.c: removed NULL
14378         * device/lib/_strncmp.c: removed NULL
14379         * device/lib/_strncpy.c: removed NULL
14380         * device/lib/_strpbrk.c: removed NULL
14381         * device/lib/_strrchr.c: removed NULL
14382         * device/lib/_strspn.c: removed NULL
14383         * device/lib/_strstr.c: removed NULL
14384         * device/lib/_strtok.c: removed NULL
14385         * device/lib/malloc.c: removed NULL, include own header
14386
14387 2003-02-02    <johan AT balder>
14388
14389         * 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
14390         * support/regression/fwk/lib/testfwk.c: div and mod isn't broken anymore
14391         * regressions ds390/spec.mk and mcs51/spec.mk (timeout): my good old balder isn't fast enough for some tests
14392         * src/z80/gen.c (genZ80Code): added c-lines in asm comments
14393         * as/z80/asm.h (NINPUT): increased for long c-comments in regression tests
14394         * src/z80/gen.c (genRightShiftLiteral): fixed the (char)(-3)>>8 (I think)
14395
14396 2003-02-01  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14397
14398         * src/SDCCmain.c: Fixed bug 678574: "ds390: ASlink-Error-Stack overlaps
14399         area 'DATA'"
14400
14401 2003-02-01    <johan AT balder>
14402
14403         * src/SDCCval.c (valBitwise): fixed Karl's "2 | (1<<8)"
14404
14405 2003-01-31    <johan AT CP255758-A>
14406
14407         * src/ds390/main.c (_ds390_genAssemblerPreamble): applied Jan Rejlek's >64K startup patch
14408
14409 2003-01-30    <johan AT balder>
14410
14411         * src/SDCCBBlock.c: automatic bug detection
14412         * src/SDCCicode.c: automatic bug detection
14413
14414 2003-01-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14415
14416         * src/SDCCglobl.h:   now --xram-size 0 works
14417         * src/SDCCmain.c:    now --xram-size 0 works
14418
14419 2003-01-29    <johan AT balder>
14420
14421         * src/almosteverything: changed OP_DEFS and OP_USES from macros to functions to catch symbol abuse (a hot topic in the bug list :)
14422
14423 2003-01-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14424
14425         * as/mcs51/aslink.h: Added options --xram-size and --code-size
14426         * as/mcs51/lkdata.c: Added options --xram-size and --code-size
14427         * as/mcs51/lkmain.c: Added options --xram-size and --code-size
14428         * as/mcs51/lkmem.c:  Added options --xram-size and --code-size
14429         * src/SDCCglobl.h:   Added options --xram-size and --code-size
14430         * src/SDCCmain.c:    Added options --xram-size and --code-size
14431
14432 2003-01-28  Bernhard Held <bernhard AT bernhardheld.de>
14433
14434         * src/ds390/gen.c: fix deps by replacing <common.h> with "common.h"
14435         * src/SDCC.lex: rename P_OVERLAY to P_OVERLAY_ for cross-gcc 3.2 MINGW32
14436
14437 2003-01-27    <johan AT balder>
14438
14439         * src/SDCC.y: fixed bug #613764
14440
14441 2003-01-26    <johan AT balder>
14442
14443         * src/SDCClrange.c:  fixed Bernhard's "char * code ptr = &c"
14444         * src/SDCCsymt.h: fixed bug #673374
14445         * src/SDCCglue.c: fixed bug #661910
14446         * src/SDCCast.c: fixed bug #458099 and 673374
14447
14448 2003-01-26  Bernhard Held <bernhard AT bernhardheld.de>
14449
14450         * as/mcs51/strcmpi.c: added, provides Aurelien Jarno's as_strcmpi(); strcmpi() is not ANSI
14451         * as/mcs51/strcmpi.h: added
14452         * as/mcs51/asm.h: remove ugly "#define strcmpi strcmp"
14453         * as/mcs51/aslink.h: remove ugly "#define strcmpi strcmp"
14454         * as/mcs51/asmain.c: strcmpi -> as_strcmpi
14455         * as/mcs51/assym.c: strcmpi -> as_strcmpi
14456         * as/mcs51/lkmem.c: strcmpi -> as_strcmpi
14457         * as/mcs51/lknoice.c: strcmpi -> as_strcmpi
14458         * as/mcs51/lksym.c: strcmpi -> as_strcmpi
14459         * as/mcs51/Makefile.aslink: new module strcmpi
14460         * as/mcs51/Makefile.asx8051: new module strcmpi
14461         * as/mcs51/Makefil.bcc: new module strcmpi
14462         * as/mcs51/Makefile.in: new module strcmpi
14463         * sim/ucsim/s51.src/uc390.cc (get_mem_size): make RAM big enough for tinibios
14464
14465 2003-01-26    <johan AT balder>
14466
14467         * src/SDCCglue.c: reverted back to 1.124
14468         * src/SDCCast.c: reverted back to 1.156
14469         * src/mcs51/gen.c (aopGet): applied Frieder's efficiency patch
14470
14471 2003-01-25    <johan AT balder>
14472
14473         * src/SDCCglue.c: A better fix for bug #661910
14474         * src/SDCCast.c: A better fix for bug #661910
14475         * src/SDCCglue.c (emitRegularMap): That was a little too efficient
14476
14477 2003-01-24  Bernhard Held <bernhard AT bernhardheld.de>
14478
14479         * src/Makefile.in: remove spawn.o
14480         * src/SDCCmain.c: remove spawn.h
14481         * src/SDCCmain.c (printVersionInfo): report MINGW32 instead of UNIX
14482         * src/spawn.c: removed
14483         * src/spawn.h: removed
14484         * support/regression/ports/ds390/spec.mk: link with -r
14485
14486 2003-01-24    <johan AT CP255758-A>
14487
14488         * src/ds390/gen.c (aopOp): fixed bug #667458
14489         * src/SDCCglue.c (emitRegularMap): fixed bug #458099 again
14490         * src/SDCCast.c (createIvalCharPtr): fixed bug #661910
14491         (createIvalCharPtr): an ival doesn't always have a storage class anymore
14492
14493 2003-01-24  Bernhard Held <bernhard AT bernhardheld.de>
14494
14495         * src/mcs51/peeph.def: better assembler identation by Frieder
14496         * src/mcs51/gen.c: better assembler identation by Frieder
14497
14498 2003-01-22  Bernhard Held <bernhard AT bernhardheld.de>
14499
14500         * as/z80/string.h: removed for gcc 3.2
14501         * support/makebin/makebin.c: #include <string.h> for gcc 3.2
14502         * src/pic/pcode.c (get_op_from_instruction): fix concatenation of string literals with __FUNCTION__ for gcc 3.2
14503
14504 2003-01-19  Bernhard Held <bernhard AT bernhardheld.de>
14505
14506         * src/SDCCmain.c (linkEdit): rename mem and map files even in case of failure
14507         * src/SDCCpeeph.c (replaceRule): fix bug #663503
14508         * support/regression/Makefile: separate temp files for ports
14509         * support/regression/generate-cases.py: separate temp files for ports
14510         * src/mcs51/peeph.def: Frieder: removed 237 (obsolete by 236g and 105); added 237 a/b
14511         * src/ds390/peeph.def: Frieder: removed 237 (obsolete by 236g and 105); added 237 a/b
14512
14513 2003-01-19  Bernhard Held <bernhard AT bernhardheld.de>
14514
14515         * moved tinitalk to device/examples/ds390
14516
14517 2003-01-14  Bernhard Held <bernhard AT bernhardheld.de>
14518
14519         * as/mcs51/lkmem.c: rflag is for DS390
14520         * src/SDCCglobl.h: removed out_name and options stackOnData, genericPtr
14521         * src/SDCCmain.c (optionsTable, setDefaultOptions): removed --stack-after-data and --generic
14522                          (linkEdit): move mem- and map-files the same way as ihx-files
14523         * src/z80/main.c (_setDefaultOptions): removed --generic
14524         * src/SDCCmain.c (_processC1Arg, parseCmdLine, main): --c1mode works again
14525         * src/SDCCglue.c (createInterruptVect, glue): --c1mode works again
14526         * src/pic/glue.c (picglue): --c1mode works again
14527         * src/pic16/glue.c (pic16glue): --c1mode works again
14528         * src/asm.c (printCLine): fix #660034
14529
14530 2003-01-13  Bernhard Held <bernhard AT bernhardheld.de>
14531
14532         * src/ds390/peeph.def: fix #123; add 14 rules by Fiorenzo D. Ramaglia <fd.ramaglia AT tin.it>, 1 by Frieder
14533         * src/mcs51/peeph.def: fix #123; add 14 rules by Fiorenzo, 1 by Frieder
14534         * src/mcs51/gen.c (genFunction): emit r0 instead of ar0 by Fiorenzo
14535         * as/mcs51/lkmem (summary): better fix for sp problem
14536         * src/SDCCglue.c (glue): __start_stack - 1, saves 1 byte!
14537         * src/ds390/main.c (_ds390_finaliseOptions, _tininative_finaliseOptions): stack_loc = 0x400008
14538         * support/regression/ports/*/spec.mk: moving testfwk-object to port dir allow parallel execution of regression tests
14539                                               remove --stack-after-data
14540
14541 2003-01-12  Bernhard Held <bernhard AT bernhardheld.de>
14542
14543         * src/SDCCmain.c (main): port->finaliseOptions() moved for z80 linking
14544         * src/SDCCutil.c (join): ugly bug: missing '\0'
14545         * as/mcs51/lkmem.c (summary): sp on address 7 is safe
14546
14547 2003-01-11  Bernhard Held <bernhard AT bernhardheld.de>
14548
14549         * src/SDCCmain.c (assemble, linkEdit): preparations for -o
14550         * src/port.h: typo
14551         * src/pic/main.c (_asmCmd): gpasm supports -o
14552         * src/z80/main.c: more general macros
14553         * device/lib/Makefile.in: remove intermediate files
14554
14555 2003-01-11  Bernhard Held <bernhard AT bernhardheld.de>
14556
14557         * .version: Bumped version number to 2.3.3
14558         * src/SDCCBBlock.c: new option -o
14559         * src/SDCCglobl.h: new option -o
14560         * src/SDCCglue.c: new option -o
14561         * src/SDCCmain.c: new option -o
14562         * src/asm.c: new option -o
14563         * src/ds390/main.c: new option -o
14564         * src/pic/glue.c: new option -o
14565         * src/pic/pcode.c: new option -o
14566         * src/pic/ralloc.c: new option -o
14567         * src/pic16/glue.c: new option -o
14568         * src/pic16/pcode.c: new option -o
14569         * src/pic16/ralloc.c: new option -o
14570         * src/z80/main.c: new option -o
14571         * device/lib/Makefile.in: use -o
14572         * support/regression/ports/ds390/spec.mk: use -o
14573         * support/regression/ports/gbz80/spec.mk: use -o
14574         * support/regression/ports/mcs51/spec.mk: use -o
14575         * support/regression/ports/mcs51-stack-auto/spec.mk: use -o
14576         * support/regression/ports/z80/spec.mk: use -o
14577         * support/regression/ports/ucz80/spec.mk: use -o
14578         * support/regression/ports/xa51/spec.mk: use -o
14579         * support/regression/fwk/lib/timeout.c: fix usage string
14580
14581 2003-01-09  Bernhard Held <bernhard AT bernhardheld.de>
14582         * src/mcs51/gen.c (genPlus): replaced "mov b,acc" by "mov b,a" Fiorenzo D. Ramaglia <fd.ramaglia AT tin.it>
14583
14584 2003-01-07    <johan AT balder>
14585
14586         * src/SDCCast.c (decorateType): fixed bug #600035
14587
14588 2003-01-07  Bernhard Held <bernhard AT bernhardheld.de>
14589         * as/mcs51/lkmem.c: added several l-modifiers to printf to remove warnings
14590         * as/mcs51/lkaomf51.c: #include <ctype.h> to remove warnings
14591         * src/pic/main.c (_hasNativeMulFor): outcommented unused variables to remove warnings
14592         * src/pic/pcode.c: outcommented unused variable to remove warnings
14593         * src/pic/ralloc.c: outcommented unused variable to remove warnings
14594
14595 2003-01-06    <karl AT turbobit.com>
14596         * sim/ucsim/cmd.src/command.cc: fixed so "break xram r 0x7654" works again in
14597    regression tests.
14598
14599 2003-01-06    <johan AT balder>
14600
14601         * src/SDCCicode.c: fixed array add
14602
14603 2002-01-05  Bernhard Held <bernhard AT bernhardheld.de>
14604         * src/SDCCmacro.c: MAX_STRING_LENGTH increased to 2048; was too small for regression tests
14605         * support/regression/ports/host/support.c: #include <stdarg.h> for gcc 3.2
14606
14607 2003-01-04    <johan AT balder>
14608
14609         * src/SDCCval.c (getNelements): fixed the initialized array of structures
14610
14611 2002-12-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14612         * as/mcs51/Makefile.bcc: fixed typo lkomf51.o -> lkaomf51.o
14613
14614 2002-12-28  Bernhard Held <bernhard AT bernhardheld.de>
14615         * src/mcs51/peeph.def: added rules 234 and 235 from Frieder Ferlemann <frieder.ferlemann AT web.de>
14616         * support/regression/tests/bug-524697.c: fit mem usage into 8032
14617
14618 2002-12-28  Bernhard Held <bernhard AT bernhardheld.de>
14619         * src/mcs51/gen.c (aopGetUsesAcc): inserted missing "return FALSE"
14620
14621 2002-12-27  Bernhard Held <bernhard AT bernhardheld.de>
14622         * as/mcs51/Makefile.in: fixed typo lkomf51.o -> lkaomf51.o
14623
14624 2002-12-26  Bernhard Held <bernhard AT bernhardheld.de>
14625         * src/mcs51/main.c: removed {bindir}{sep} from aslink
14626
14627 2002-12-10  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14628
14629     * in /sdcc/as/mcs51/ changed these files in order to create an
14630     aomf51 file: aslink.h, lkdta.c, lklex.c, lklibr.c, lklist.c,
14631     lkmain.c.  Also added: lkmem.c and lkaomf51.c.  Changed the
14632     following files to include the previous two files: aslink.dsp,
14633     Makefile.aslink, Makefile.bcc, and Makefile.in.
14634
14635     * Changed /sdcc/src/SDCCmain.c so it creates files with extension
14636     .adb instead of .cdb
14637
14638 2002-11-09  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14639
14640         * /sdcc/as/mcs51/lklist.c: Now reports memory usage using the
14641         value from option --iram-size.
14642
14643 2002-09-20  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14644
14645         * /sdcc/as/mcs51/lklist.c: added boundary check before using
14646         dram[] array.
14647
14648 2002-09-18    <wiml AT hhhh.org>
14649
14650         * SDCClrange.h: exposed setFromRange() and setToRange()
14651         * mcs51/ralloc.c: fixed over-eager packRegsForSupport() and
14652           packRegsForAccUse() (bug 542397)
14653         * mcs51/gen.c: MOVA() is now a function to avoid calling aopGet()
14654           multiple times and emitting the fetch operations more than once
14655           added aopGetUsesAcc() function to allow binary operators to
14656           fetch their operands in the correct order; made genMinus() emit
14657           compact code for X = LITERAL - Y
14658
14659 2002-09-00  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14660         * /sdcc/as/mcs51/lklist.c: Fixed incorrect number of parameters to
14661         sprintf() in line 1267.
14662
14663 2002-09-08  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14664         * /sdcc/src/SDCCglue.c: Generate areas REG_BANK_[0-3] only for 8051
14665         like ports.
14666
14667 2002-09-04  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14668         Changes to aslink (All the changes are marked with 'JCF'):
14669
14670         * /sdcc/as/mcs51/aslink.h: External definition of sflag and
14671         summary().
14672
14673         * /sdcc/as/mcs51/lkarea.c: Computes the size of area BSEG_BYTES from
14674         area BSEG.  Also moves, if possible, the DATA area down into the internal
14675         ram so more space is available.
14676
14677         * /sdcc/as/mcs51/lkdata.c: Definition of memory summary output flag
14678         sflag.
14679
14680         * /sdcc/as/mcs51/lklist.c: For the BSEG area report the size in bits,
14681         not bytes.  Function summary() which creates a memory usage summary
14682         file with extension .mem.  Reports of overlaping stack and small stack
14683         size.  If the space for the stack is less than 16 bytes aslink trows a
14684         warning.
14685
14686         * /sdcc/as/mcs51/lkmain.c: Creation of some of the default areas for
14687         the 8051.  Option 'y' for memory summary output file.
14688
14689         Changes to sdcc (All the changes are marked with 'JCF'):
14690
14691         * /sdcc/src/SDCCglobl.h: External definition of RegBankUsed[4].
14692
14693         * /sdcc/src/SDCCglue.c:  If a register bank is used, creates an
14694         overlaying area for it (uses RegBankUsed[4]).
14695
14696         * /sdcc/src/SDCCmain.c: Definition RegBankUsed[4]; marks register
14697         bank zero as used by default.  By default aslink locates the stack
14698         (equivalent to --stack-after-data).  Pass option 'y' to aslink for
14699         the creation of the .mem file.  Delegates the allocation of data area
14700         to aslink (it is not longer 0x30 by default).  If --stack-loc passes
14701         the begining of the stack area to aslink.
14702
14703         * /sdcc/src/SDCCmem.c:  If a register bank is used, marks it so
14704         glue() in SDCCglue.c creates an area for it.
14705
14706 2002-09-03  Borut Razem <borut.razem AT siol.net>
14707         * sdcc/src/SDCCglue.c, sdcc/src/SDCCglue.h, sdcc/src/SDCCmain.c,
14708         sdcc/src/pic/glue.c:
14709         introduced atexit() handler for teporay files removal in case of
14710         errors, assertions, ...
14711
14712 2002-08-29  Borut Razem <borut.razem AT siol.net>
14713         * sdcc/support/cpp2/auto-host_vc_in.h:
14714         re-definition of O_BINARY and other O_XXX as _O_BINARY and _O_XXX, so the problem
14715         with the returned value from read() in sdcc/support/cpp2/cppfiles.c is solved for MSC.
14716         Maybe there is a similar problem with BORLANDC? It should be checked!
14717
14718         * sdcc/src/ds390/ralloc.c, sdcc/src/mcs51/ralloc.c, sdcc/src/z80/ralloc.c:
14719         corrected improper use of assert: the assignment to clr variable was done inside the assert.
14720         In case that NDEBUG was defined, the assert macro was substituted with no-op, so the assignment
14721         was not executed, and the compiler (cl) launched a warning:
14722         ralloc.c(1442) : warning C4700: local variable 'clr' used without having been initialized
14723
14724 2002-08-28  Bernhard Held <bernhard AT bernhardheld.de>
14725         * src/SDCCglue.c (printIvalArray): iterative calculation of array length
14726
14727 2002-08-28  Jesus Calvino-Fraga and Borut Razem <borut.razem AT siol.net>
14728         * sdcc/sdcc.dsw: added sdcpp, sdcppa, yacc, conf projects
14729
14730         * sdcc/src/src.dsp, sdcc/src/avr/avr.dsp, sdcc/src/ds390/ds390.dsp,
14731           sdcc/src/mcs51/mcs51.dsp, sdcc/src/pic/pic.dsp, sdcc/src/z80/z80.dsp,
14732           sdcc/src/xa51/xa51.dsp, sdcc/src/avr/avra.dsp,
14733           sdcc/src/ds390/ds390a.dsp, sdcc/src/mcs51/mcs51a.dsp,
14734           sdcc/src/pic/pica.dsp, sdcc/src/z80/z80a.dsp,
14735           sdcc/src/xa51/xa51a.dsp, sdcc/as/as_z80.dsp,
14736           sdcc/as/aslink.dsp, sdcc/as/asx8051.dsp, sdcc/packihx/packihx.dsp:
14737         - added Release configuration in VS projects
14738         - review of compiler an linker options
14739         - VC .exe files are generated in bin_vc directory, not to interfere
14740           with binaries generated from other projects (cygwin, mingw, bcc ...)
14741
14742         * sdcc/src/yacc.dsp: added
14743
14744         * sdcc/config.dsp, sdcc/configure_vc.awk, sdcc/sdcc_vc_in.h:
14745         added - genarate sdcc_vc.h using sdcc_vc_in.h as template
14746         and insert the version number definitions from .version
14747
14748         * sdcc/support/cpp2/sdcpp.dsp: added - VC project for sdcpp
14749
14750         * sdcc/support/cpp2/sdcppa.dsp, sdcc/support/cpp2/auto-host_vc_in.h:
14751         added - genarate auto-host.h using auto-host_vc_in.h as template
14752
14753         * sdcc/sdcc_vc.h,
14754         removed from CVS, generated automatically
14755
14756 2002-08-25  Bernhard Held <bernhard AT bernhardheld.de>
14757         * support/scripts/inc2h.pl: use gputils or gpasm (from Nathan Hurst)
14758
14759 2002-08-11  Borut Razem <borut.razem AT siol.net>
14760         * support/Util/NewAlloc.c: removed unneeded #include "sdccconf.h" (suggested by Jesus Calvino-Fraga)
14761
14762 2002-08-10  Borut Razem <borut.razem AT siol.net>
14763         * src/SDCCmain.c (main):
14764         file preOutName was unlinked before closed. This seems to be OK on UNIX and cygwin
14765         platforms, but it doesn't work with Visual Studio: the opened file can not be removed.
14766         The consequence was that some temporary files were not removed.
14767
14768         * src/SDCCglue.c:
14769         unification of code in functions tempfilename() and tempfile():
14770         function tempnam() is defined in Visual Studio 6.0 and .NET
14771
14772         * sdcc/sdcc.dsw: removed project sdcpp, added project xa51a
14773
14774         * sdcc/src/src.dsp, sdcc/src/avr/avr.dsp, sdcc/src/ds390/ds390.dsp,
14775           sdcc/src/mcs51/mcs51.dsp, sdcc/src/pic/pic.dsp, sdcc/src/z80/z80.dsp:
14776         - removed compiler command line option /WX: Treats all warnings as errors
14777         - update a list of source files, included into the project
14778
14779         * sdcc/src/avr/avra.dsp, sdcc/src/ds390/ds390a.dsp, sdcc/src/mcs51/mcs51a.dsp,
14780           sdcc/src/pic/pica.dsp, sdcc/src/z80/z80a.dsp:
14781         changed project type to Generic Project so that can be correcly converted to VS.NET project
14782
14783         * sdcc/as/mcs51/asm.h: definition of PATH_MAX for MSC
14784
14785         * sdcc/src/SDCCast.c: solved MSC error in function decorateType()
14786
14787         * sdcc/src/SDCC.y: added missing ending ';' to rules to get rid of bison warnings
14788
14789         * dcc/src/ds390/ralloc.c, sdcc/src/mcs51/ralloc.c:
14790         added return 0 statements after assert() to make compiler happy
14791
14792         * sdcc/src/xa51/peeph.rul, sdcc/src/xa51/peeph.def, sdcc/src/z80/ralloc.c:
14793         added newline in the def file to keep MSC compiler satisfied
14794
14795         * sdcc/src/z80/gen.c:
14796         - function strcasecmp() is not defined in MSC (and probably also in BORLANDC),
14797           so it is replaced with STRCASECMP, which is defined as stricmp in case of MSC and BORLANDC
14798         - solved MSC error in function aopDump()
14799
14800         * sdcc_vc.h: define PREFIX as "\\sdcc"
14801
14802 2002-07-18  Bernhard Held <bernhard AT bernhardheld.de>
14803         * src/SDCCast.c (decorateType): fixed access to array of structures http://sourceforge.net/mailarchive/forum.php?thread_id=902690&forum_id=4107
14804
14805 2002-06-22  Scott Dattalo <scott AT dattalo.com>
14806         * src/pic/*: Numerous bug fixes. Flow analysis has been enhanced.
14807         - Rewrote the register banking algorithm.
14808         - Added pCode live-range analysis to registers (for now, only non-used and
14809         singly-used registers optimized away)
14810
14811         * src/pic/pcoderegs.[ch]: Added new files for pCode live-range analysis
14812
14813         * 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.
14814
14815 2002-05-10  Scott Dattalo <scott AT dattalo.com>
14816         * src/pic/*: Added support for multiplication. Fixed many,many bugs.
14817
14818 2002-04-22  Michael Hope  <michaelh AT vroom>
14819
14820         * device/lib/z80/printf.c: Changed emitter to volatile to work around a pcall bug.
14821
14822         * configure.in (DD_COPT): Added include support required for gbdk.
14823
14824         * .version: Bumped version number just to increase it.
14825
14826         * src/SDCCmain.c: Added -nostdinc to the default options.
14827
14828 2002-04-15  Michael Hope  <michaelh AT vroom>
14829
14830         * device/lib/z80/printf.c (sprintf): Added.
14831
14832         * src/z80/ralloc.c (packRegisters): Disabled pack HL use for GB as it's broken.
14833
14834         * src/z80/peeph.def: Added transpose redundent load rule.
14835
14836         * src/z80/main.c: Added force callee saves for jaune.
14837
14838         * src/port.h: Removed the i186 and tlcs-900h ports as they weren't being being developed.
14839
14840         * src/SDCCmain.c: Pulled the options definition out so that you can add port specific options without changing the main file.
14841
14842 2002-03-28  Johan Knol  <johan AT balder>
14843
14844         * src/SDCCval.c: fixed bug #532436
14845
14846 2002-03-14  Scott Dattalo <scott AT dattalo.com>
14847         * /src/port.h:
14848         Added "char *Processor" field to the port structure.
14849
14850         * /src/SDCCmain.c:
14851         Added -p option. Allows port dependent processor to be specified.
14852
14853         * all ports:
14854         Initialized the new field char *Processor field to NULL in all ports
14855
14856         * /src/pic/*:
14857         Compiler generated registers for interrupt context saving
14858         were not getting allocated.
14859
14860 2002-03-16  Sandeep Dutta  <sandeep AT ddi.com>
14861
14862         * /src/SDCCast.c:
14863         Fixed left shift. Will promote the left side of a left shift
14864         if a) left shifting more than size of operand or b) when assigned
14865         to something size > size of left side
14866
14867 2002-03-14  Scott Dattalo <scott AT dattalo.com>
14868         * src/pic/*
14869         tons of changes. Register allocation has been
14870         rewritten. Added customization for the various PICs. Flow
14871         analysis is restructured. ...
14872
14873         * src/pic/device.h:
14874         Added
14875
14876         * src/pic/device.c:
14877         Added. device.c is a PIC port hack to accomodate variations
14878         in PIC devices.
14879
14880 2002-03-13  Michael Hope  <michaelh AT vroom>
14881
14882         * src/z80/gen.c (genGenPointerGet): Fixed a bug where a pointer in HL is dereferenced into HL but HL is not spilled.  Yeah.
14883
14884 2002-03-04  johanknol  <johanknol AT manik>
14885
14886         * /src/SDCCval.c: fixed
14887
14888         const unsigned char arr[][2] = { { 0, 1 } };
14889         t18.c:1: error: Initializer element is not constant
14890
14891 2002-03-04  bela  <bela AT manik>
14892
14893         * /device/include/mcs51reg.h:
14894         ds89c420 register definition update
14895
14896 2002-03-03    <johan AT FRIJA>
14897
14898         * support/Util/SDCCerr.c: did something, but don't no why anymore
14899
14900         * support/regression/tests/bug-524691.c: made it a little less shy
14901
14902         * src/SDCCast.c (decorateType): fixed bug #524697
14903
14904         * src/SDCCast.c: made some lineno improvements
14905
14906         * src/SDCCval.c (getNelements): changed warning to error
14907
14908         * src/SDCCglue.c (printIvalArray): changed warning to error
14909
14910         * src/SDCCicode.c: fixed a warning for mingw
14911
14912         * src/SDCCast.c (decorateType): fixed the << promotion for ops
14913
14914         * src/SDCCicode.c (geniCodeDivision): divide is shift only for unsigned (bug #524685)
14915
14916 2002-03-02  Sandeep Dutta  <sandeep AT ddi.com>
14917
14918         * src/ds390/peeph.def:
14919         Added some more peephole rules
14920
14921         * src/ds390/gen.c: Various fixes & enhancements
14922
14923         * src/SDCClrange.c, src/SDCClrange.h:
14924         functions "alldefsoutofrange" and "notusedinblock" moved to SDCClrange.c
14925
14926         * src/ds390/ralloc.c:
14927         various fixes & enhancements (ds390) specific
14928
14929         * src/avr/ralloc.c, src/mcs51/ralloc.c, src/pic/ralloc.c, src/xa51/ralloc.c, src/z80/ralloc.c:
14930         Functions "allDefsOutOfRange" & "notUsedinBlock" moved to SDCClrange.c
14931         from rallocs.
14932
14933         * sdcc/src/SDCCcse.c: Better fix for bug # 514308
14934
14935 2002-03-02    <johan AT FRIJA>
14936
14937         * src/SDCCast.c (decorateType): fixed bug #524708
14938
14939         * src/SDCCval.c (floatFromVal): fixed the literal void (whatever that may be)
14940
14941         * src/SDCCicode.c (geniCodePtrPtrSubtract): fixed bug #524691
14942
14943 2002-03-01  Michael Hope  <michaelh AT vroom>
14944
14945         * src/SDCCsymt.c (initCSupport): Removed managling of support function names.
14946
14947         * src/z80/ralloc.c (packRegsForIYUse): Fixed fp bug where four byte operands were packed into IY.
14948
14949 2002-03-01    <johan AT FRIJA>
14950
14951         * src/SDCCglue.c (printIvalPtr): fixed bug #524211
14952
14953         * src/SDCCast.c (decorateType): fixed bug #524209
14954
14955         * src/SDCCval.c (valNot): fixed bug #524195
14956
14957 2002-02-26    <johan AT balder>
14958
14959         * src/xa51/gen.c: fixed a warning
14960
14961         * src/SDCCglue.c (printIvalFuncPtr): fixed bug #522534
14962
14963         * src/SDCCast.c (decorateType): fixed bug #522534
14964
14965 2002-02-23    <johan AT balder>
14966
14967         * src/SDCCdflow.c (computeDataFlow): fixed bug #460088
14968
14969 2002-02-22    <johan AT balder>
14970
14971         * src/SDCCast.c: fixed bug #514865
14972
14973         * src/SDCCy.c ("SDCC.y"): fixed bug #516625
14974
14975 2002-02-21  Sandeep Dutta  <sandeep AT ddi.com>
14976
14977         * sdcc/src/SDCCloop.c:
14978         Previous fix was not good. basic blocks that have "break" or "return" are
14979         not really partof a loop , but live ranges used in these blocks should
14980         be live thru the entire loop, so set partOfLoop but don't add them to
14981         loop region
14982
14983 2002-02-21    <johan AT FRIJA>
14984
14985         * src/SDCCcse.c: fixed bug #514308
14986
14987 2002-02-20  Sandeep Dutta  <sandeep AT ddi.com>
14988
14989         * src/SDCCloop.c:
14990         Fixed BUG #519583. If a conditional block ended in a return/break
14991         statement inside a loop, it was not being considered part of the loop.
14992
14993         * src/SDCCcflow.c: Removed fix (Fixed in SDCCloop.c)
14994
14995 2002-02-10  Karl Bongers <karl AT turbobit.com>
14996
14997         * debugger/*:
14998         Fixed up SDCDB debugger somewhat.  Updated debugger/README
14999         with lots of comments and notes.
15000
15001         * device/examples/test2.c:
15002         Fix bug, "red" variable not being initialized(compiler complained).
15003
15004         * device/examples/Makefile, examples/test3.c:
15005         Add Makefile in device/examples folder, compiles test3.c
15006         for use as a multiple module SDCDB test case.
15007
15008         * sim/ucsim/cmd.src/cmdset.cc:
15009         Took out debug printfs in ucsim "next" command.
15010
15011         * sim/ucsim/xa.src:
15012         Karl and Johan start ucsim XA support.  Most dissassembly working,
15013         about 75% emulation done(plenty of work remaining).
15014
15015         * sim/ucsim/z80.src:
15016         Add Z80 support to ucsim, add test-ucz80 regression test,
15017         notice ucsim/z80 emulation fails on examples/test3.c/itoa code.
15018         Notice z80 compiler fails on examples/test3.c/crc code.
15019
15020 2002-01-30  Sandeep Dutta  <sandeep AT ddi.com>
15021
15022         * src/mcs51/gen.c, src/mcs51/main.c, src/mcs51/ralloc.c:
15023         Added support for --parms-in-bank1
15024
15025         * src/ds390/peeph.def:
15026         added a few more peephole optimzations
15027
15028         * src/ds390/main.c:
15029         1) added __builtin_inp & __builtin_outp used to read in data of given length
15030            from a memory mapped port
15031         2) added __builtin_memcmp
15032         3) added __builtin_swapw swap bytes of a short
15033
15034         * src/ds390/gen.c, src/ds390/gen.h, src/ds390/ralloc.c:
15035         1) handle multiple send & receives from register bank1
15036         2) ralloc can now allocate DPTR1 to some liveRanges
15037
15038         * src/SDCCsymt.c, src/SDCCsymt.h:
15039         changes to handle multiple sends & receives
15040
15041         * src/SDCCptropt.h:
15042         added some pointer arithmetic optimization
15043
15044         * src/SDCCptropt.c:
15045         added some pointer arithmetic optimizations but not stable yet so not
15046         called from anywhere (will get this working shortly)
15047
15048         * src/SDCCopt.c: fixed for multiple sends & receives
15049
15050         * src/SDCCmain.c:
15051         1) added options --parms-in-bank1 (ds390/mcs51) & --protect-sp-update
15052         2) preprocessing done AFTER port->finalizeoptions . This allows ports to
15053            set preprocessor defines (depending on options)
15054
15055         * src/SDCCicode.c, src/SDCCicode.h:
15056         changes made to handle multiple sends & receives
15057
15058         * src/SDCCglobl.h:
15059         Added options --protect-sp-update (ds390) and --parms-in-bank1 (ds390/mcs51)
15060
15061         * src/SDCCcse.c, src/SDCCcse.h:
15062         added function findbackward def (to be used in upcoming optimization)
15063
15064         * src/SDCCcflow.c, src/SDCCcflow.h:
15065         added function returnAtEnd - to determine if a basic block terminates with
15066         a RETURN iCode
15067
15068         * src/SDCCast.c, src/SDCCast.h:
15069         added option parms-in-bank1
15070
15071         * device/lib/_divsint.c, device/lib/_divslong.c, device/lib/_divuint.c
15072         * device/lib/_divulong.c, device/lib/_modsint.c, device/lib/_modslong.c
15073         * device/lib/_modulong.c, device/lib/_mulint.c, device/lib/_mullong.c:
15074         adjusted for --parms-in-bank1 option
15075
15076         * device/include/string.h:
15077         donot redefine "reentrant" keyword
15078
15079         * device/include/ds80c390.h: Added some more SFRs
15080
15081 2002-01-28  Bernhard Held  <bernhard AT bernhardheld.de>
15082
15083         * sim/ucsim: Merged branch ucsim-034-pre3 to main trunk; new version 0.4
15084
15085 2002-01-26  Bernhard Held  <bernhard AT bernhardheld.de>
15086
15087         * src/SDCCast.c (funcOfType): fix usage of double --float-reent
15088
15089 2002-01-22  Bernhard Held  <bernhard AT bernhardheld.de>
15090
15091         * support/regression/fwk/lib/testfwk.c (main): Removed workaround for bug #505387
15092
15093 2002-01-18  Paul Stoffregen  <paul AT pjrc.com>
15094
15095         * Added --xram-movc option
15096
15097 2002-01-13  Bernhard Held  <bernhard AT bernhardheld.de>
15098
15099         * support/regression/Makefile: don't include test-mcs51-stack-auto in target all
15100
15101 2002-01-11  Johan Knol
15102
15103         * Added math lib of Jesus Calvino-Fraga
15104
15105 2002-01-08  Bernhard Held  <bernhard AT bernhardheld.de>
15106
15107         * src/SDCCmain.c (processFile): fix processing of ../../src.c
15108         * support/regression/Makefile: new target test-mcs51-stack-auto
15109         * support/regression/ports/mcs51-stack-auto/spec.mk: added
15110
15111 2002-01-04  Bernhard Held  <bernhard AT bernhardheld.de>
15112
15113         * src/SDCCglue.h: printIvalCharPtr(), not printIvalChar()
15114
15115 2002-01-04  Bernhard Held  <bernhard AT bernhardheld.de>
15116
15117         * support/regression/ports/mcs51/support.c: correct setup of timer / UART
15118
15119 2002-01-03  Bernhard Held  <bernhard AT bernhardheld.de>
15120
15121         * src/SDCCsymt.c (processFuncArgs): fix #498307 by Johan
15122
15123         * src/SDCCglue.h: add definition for printIvalChar()
15124
15125 2002-01-02  Bernhard Held  <bernhard AT bernhardheld.de>
15126
15127         * src/SDCCast.c: fix #498138 by Johan
15128
15129         * src/SDCCglue.c: fix #498138 by Johan
15130
15131 2002-01-02  Bernhard Held  <bernhard AT bernhardheld.de>
15132
15133         * support/regression/Makefile: fix clean
15134
15135         * support/regression/ports/ds390/support.c: fix transmission of last character
15136
15137 2001-12-29  Sandeep Dutta  <sandeep AT ddi.com>
15138
15139         * /sdcc/src/ds390/gen.c:
15140         a) improved computing address of stack variable
15141         b) took out some #if 0 code
15142         c) improved parmBytes adjustment
15143         d) improved genPlusIncr & genMinusIncr
15144         e) genCmp could generate bad code (when left assigned to DPTR)
15145         f) Fixed bug in hasInc
15146
15147         * /sdcc/src/ds390/ralloc.c:
15148         a) packRegsForSupport could mess up live information (Fixed)
15149         b) packRegsDPTRuse could be incorrect for left & right shift
15150
15151         * /sdcc/src/mcs51/ralloc.c:
15152         packRegsForSupport could mess up the live information (Fixed)
15153
15154         * /sdcc/src/mcs51/gen.c: Fixed a bug in hasInc
15155
15156         * /sdcc/src/SDCCast.c:
15157         can reverse a loop even if function call is present as long
15158         as the loop control variable is local & is not passed as parameter
15159
15160 2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>
15161
15162         * /sdcc/ChangeLog: *** empty log message ***
15163
15164         * /sdcc/src/ds390/gen.c, /sdcc/src/ds390/main.c:
15165         More builtin function additions for TININative
15166
15167         * /sdcc/src/ds390/ralloc.c:
15168         Had broken the regression testsuite
15169
15170         * /sdcc/src/SDCCast.c: Fixed a bug in dumptree
15171
15172         * /sdcc/src/SDCCsymt.c, /sdcc/src/SDCCsymt.h:
15173         Added funcattr hasStackParms will be set for reentrant functions when there
15174         are paramteres on the stack, this helps in minimizing frame pointer generation
15175         typeFromStr can handle function pointers now
15176
15177         * /sdcc/doc/builtins.txt, /sdcc/doc/TININative.txt:
15178         *** empty log message ***
15179
15180 2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>
15181
15182         * /src/ds390/gen.c, /src/ds390/main.c:
15183         More builtin function additions for TININative
15184
15185         * /src/ds390/ralloc.c:
15186         Had broken the regression testsuite
15187
15188         * /src/SDCCast.c: Fixed a bug in dumptree
15189
15190         * /src/SDCCsymt.c, /src/SDCCsymt.h:
15191         Added funcattr hasStackParms will be set for reentrant functions when there
15192         are paramteres on the stack, this helps in minimizing frame pointer generation
15193         typeFromStr can handle function pointers now
15194
15195         * /doc/builtins.txt, /doc/TININative.txt:
15196         *** empty log message ***
15197
15198
15199 2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>
15200
15201         * /src/ds390/gen.c, /src/ds390/main.c, /src/ds390/peeph.def, /src/ds390/ralloc.c:
15202         ALPHA version for -mTININative
15203
15204         * /src/izt/i186.c, /src/izt/tlcs900h.c, /src/mcs51/main.c, /src/pic/main.c, /src/z80/main.c, /src/avr/main.c:
15205         updated to reflect changes in the port structure
15206
15207         * /src/port.h:
15208         added function do_assemble (similar to do_link) if non-null this function
15209         will be called to do assembly (-mTININative) requires a multi command
15210         assembly
15211         added function genAssemblerEnd will be called to generate assembler Epilogue
15212
15213         * /src/SDCCsymt.c:
15214         added _JavaNative to debug info printing
15215
15216         * /src/SDCCmain.c: added option --tini-libid
15217         added port->do_assemble function (-mTININative) has a multi command assemble
15218
15219         * /src/SDCCglue.c: Disabled "constExpr" check
15220         added port->genAssemblerEnd function
15221
15222         * /src/SDCCglobl.h: Added option --tini-libid value
15223
15224         * /src/SDCCast.h:
15225         tookout optimizeCompare from the header (has no external references)
15226
15227         * /src/SDCCast.c: made one more function "static"
15228
15229 2001-12-23  Michael Hope  <michaelh AT juju.net.nz>
15230
15231         * src/z80/mappings.i: Added z80asm support.
15232
15233         * src/z80/main.c: Added z80asm support on --asm=z80asm
15234
15235         * src/z80/gen.c: Fixed asm portability issues.
15236
15237         * src/asm.c (tvsprintf): Removed old code, added 'N' for function name.  For extern support.
15238
15239         * src/SDCCglue.c (printExterns): Added global/extern split.
15240
15241 2001-12-17  Bernhard Held  <bernhard AT bernhardheld.de>
15242
15243         * support/regression/Makefile: added test for mcs51 model large
15244
15245         * support/regression/ports/mcs51-large/spec.mk: added test for mcs51 model large
15246
15247         * support/regression/ports/gbz80/spec.mk: added -mgbz80
15248
15249 2001-12-05  Michael Hope  <michaelh AT juju.net.nz>
15250
15251         * src/diff.1 (Index): Many, many optmisiations.  Dhrystone up to 201.
15252
15253 1904-01-06  Michael Hope  <michaelh AT juju.net.nz>
15254
15255         * src/z80/ralloc.c (packRegsForIYUse): Fixed the case where an operand is in direct space.
15256
15257         * src/z80/gen.c (makeFreePairId): Optimised IY load by using a spare pair.
15258
15259 2001-12-02  Bernhard Held  <bernhard AT bernhardheld.de>
15260
15261         * src/mcs51/gen.c (genFunction): avoid excess "inc sp"
15262
15263         * support/regression/tests/simplefloat.c: Port to mcs51.
15264
15265 2001-11-25  Michael Hope  <michaelh AT juju.net.nz>
15266         * support/regression/tests/bug-485362.c: Added.
15267
15268         * support/regression/tests/simplefloat.c (testDivNearOne): Added.
15269
15270         * src/z80/gen.c (aopOp): Fixed case where left and result are in the same spill loc and they have different sizes.
15271
15272         * src/z80/peeph.def: Added rules for optimising two byte compares on the same thing, and to optimise two ptr assign.
15273
15274         * src/z80/gen.c (aopDump): Added a dump function.
15275
15276 2001-11-25  Bernhard Held  <bernhard AT bernhardheld.de>
15277         * sim/ucsim/s51.src/glob.cc: DS390 SFRs and bits added.
15278
15279         * sim/ucsim/s51.src/port.cc: Port 4 and 5 added.
15280
15281         * sim/ucsim/s51.src/regs51.h: DS390 SFRs added.
15282
15283         * sim/ucsim/s51.src/uc390.cc: Some details improved, CKRDY works for tinibios.
15284
15285         * sim/ucsim/s51.src/uc390cl.h: Work in progress.
15286
15287         * sim/ucsim/sim.src/uccl.h: 6 ports for DS390.
15288
15289         * support/regression/fwk/lib/testfwk.c: Run with tinibios.
15290
15291         * support/regression/ports/mcs51/spec.mk: Fine tuninig.
15292
15293         * support/regression/ports/ds390/support.c: Use tinibios.
15294
15295         * support/regression/ports/ds390/spec.mk: Fine tuning, use tinibios.
15296
15297 2001-11-23  Michael Hope  <michaelh AT juju.net.nz>support/regression/tests/bug-460010.c
15298
15299         * src/z80/ralloc.c (packRegsForHLUse3): Changed to not pack into HL if anything is in direct space.
15300         (packRegsForHLUse3): Added packing support for send, cast, and return value from a call.
15301
15302         * src/z80/peeph.def: Added rules for optimising pushes of part of a pair.
15303
15304         * src/z80/gen.c (emitCall): Changed the stack fixup to not use HL.
15305
15306 2001-11-18  Michael Hope  <michaelh AT juju.net.nz>
15307
15308         * src/z80/gen.c (genCmp): Fixed compare on unsigned.
15309
15310         * src/z80/ralloc.c (packRegsForHLUse3): Created and optimised.
15311         (packRegsForIYUse): Created and optimised.
15312
15313 2001-11-07  Michael Hope  <michaelh AT juju.net.nz>
15314
15315         * support/regression/tests/float.c (testFloatAdd): Fixed up warning.
15316 2001-11-18  Bernhard Held  <bernhard AT bernhardheld.de>
15317
15318         * sdcc/support/regression/tests/bug-460010.c: fix seg violation on host
15319
15320         * sdcc/support/regression/tests/muldiv.c: fix output on mcs51
15321
15322         * sdcc/support/regression/tests/stacks.c: fix DSEG overflow on mcs51
15323
15324 2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>
15325
15326         * sdcc/sim/device/lib/_gptrget.c: mem region 5 (idata) added
15327
15328         * sdcc/sim/device/lib/_gptrput.c: mem region 5 (idata) added
15329
15330 2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>
15331
15332         * sdcc/sim/ucsim/globals.cc: New: IXRAM.
15333
15334         * sdcc/sim/ucsim/stypes.h: New: IXRAM.
15335
15336         * sdcc/sim/ucsim/s51.src/uc390.cc: New: IXRAM.
15337
15338 2001-11-07  Michael Hope  <michaelh AT juju.net.nz>
15339
15340         * src/z80/ralloc.c (packRegsForHLUse): Banned IFXs from being packed into HL.
15341         (packRegsForHLUse): Added rule to pack address of/pointer get for itemps into HL for the Z80.
15342         (packRegsForAccUse2): Added rule to pack hbit IFXs into A.
15343
15344         * src/z80/main.c (_setDefaultOptions): Made float code re-entrant by default.
15345
15346         * src/z80/gen.c (aopGetLitWordLong): Added word support for floats.
15347         (genNotFloat): Added.
15348         (genUminusFloat): Added.
15349
15350         * device/lib/z80/Makefile: Added floating pt stubs.
15351
15352         * device/lib/Makefile.in (Z80SOURCES): Added floating pt support.
15353
15354         * src/z80/gen.c (genIpush): Fixed up a push of one byte when left is in a pair.
15355
15356         * device/lib/_fsadd.c (__fsadd): Fixed up return where the numbers are hugely different.
15357
15358 2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>
15359
15360         * sdcc/sim/ucsim/s51.src/glob.cc: Minor fix.
15361
15362         * sdcc/sim/ucsim/s51.src/regs51.h: Minor fix.
15363
15364         * sdcc/support/regression/Makefile: Add port ds390.
15365
15366         * sdcc/support/regression/ports/mcs51/spec.mk: Minor change.
15367
15368         * sdcc/support/regression/ports/z80/spec.mk: Minor change.
15369
15370         * sdcc/support/regression/ports/ds390/spec.mk: Added.
15371
15372         * sdcc/support/regression/ports/ds390/support.c: Added.
15373
15374         * sdcc/support/regression/ports/ds390/uCsim.cmd: Added.
15375
15376         * sdcc/support/regression/ports/mcs51/timeout.c: Cut.
15377
15378         * sdcc/support/regression/fwk/lib/timeout.c: Paste.
15379
15380 2001-11-04  Michael Hope  <michaelh AT juju.net.nz>
15381
15382         * device/include/malloc.h: Added z80 and gbz80 support.
15383
15384         * device/lib/gbz80/heap.s: Added.
15385
15386         * device/lib/z80/heap.s: Added.
15387
15388         * device/lib/malloc.c: Added z80 and gbz80 support.
15389
15390         * support/regression/tests/malloc.c (testMalloc): Added.
15391
15392         * src/SDCCmain.c (parseCmdLine): Added support for -Wp.
15393
15394         * support/regression/tests/bug-478094.c: Added.
15395
15396         * src/z80/gen.c (commitPair): Fixed silly gbz80/z80 commit to static bug.
15397
15398 2001-11-04  Bernhard Held  <bernhard AT bernhardheld.de>
15399
15400         * sdcc/sim/ucsim/s51.src/uc390cl.h: Improvement for ds390 to run regression tests
15401
15402         * sdcc/sim/ucsim/s51.src/uc390.h: Improvement for ds390 to run regression tests
15403
15404         * sdcc/sim/ucsim/s51.src/regs51.h: Improvement for ds390 to run regression tests
15405
15406         * sdcc/sim/ucsim/s51.src/glob.cc: Improvement for ds390 to run regression tests
15407
15408         * sdcc/support/regression/tests/bug-460010.c: Small change for ds390
15409
15410 2001-11-04  Michael Hope  <michaelh AT juju.net.nz>
15411
15412         * src/z80/peeph-gbz80.def: Removed a bad sub optimisation.
15413
15414 2001-11-03  Michael Hope  <michaelh AT juju.net.nz>
15415
15416         * support/regression/tests/bug-477927.c: Added.
15417
15418         * src/z80/peeph.def: Added minor rules.
15419
15420         * src/z80/gen.c (genPlusIncr): Added an extra plusinc rule.
15421
15422         * src/z80/peeph.def: Added jump optimisation modification.
15423
15424 2001-11-01  Michael Hope  <michaelh AT juju.net.nz>
15425
15426         * src/SDCCmain.c (linkEdit): Added runtime path detection to the mcs51 port.
15427
15428 2001-10-30  Michael Hope  <michaelh AT juju.net.nz>
15429
15430         * support/regression/tests/funptrs.c: Added.
15431
15432 2001-10-29  Michael Hope  <michaelh AT juju.net.nz>
15433
15434         * src/z80/ralloc.c (packRegsForHLUse): Fixed up bad spill due to pushing one byte via HL.
15435
15436 2001-10-28  Michael Hope  <michaelh AT juju.net.nz>
15437
15438         * src/z80/gen.c (genArrayInit): Made it work for on stack arrays.
15439
15440         * src/z80/main.c (gbz80_port =): Added rle support to the gbz80 port.
15441
15442         * src/z80/gen.c (genMinus): Fixed for where the result is one byte.
15443         (movLeft2ResultLong): Created.
15444
15445         * src/z80/ralloc.c (packRegsForHLUse): Added a couple of simple cases for the GB.
15446         (joinPushes): Added.  Joins two char pushes into a word push.
15447
15448 2001-10-27  Michael Hope  <michaelh AT juju.net.nz>
15449
15450         * support/cpp2/Makefile.in (install): Added creation of dest dir.
15451
15452         * support/makebin/Makefile (install): Added creation of dest dir.
15453
15454 2001-10-24 Karl Bongers <karl AT turbobit.com>
15455
15456         * configure.in, configure, Makefile, support/cpp: Removed cpp folder, since we have new cpp2 preprocessor code.
15457
15458 2001-10-21  Michael Hope  <michaelh AT juju.net.nz>
15459
15460         * src/z80/ralloc.c: Turned off faulty pack for one use.
15461
15462         * src/z80/peeph-gbz80.def: Removed redundent restart options.
15463
15464         * src/z80/gen.c (genMult): Added native mul for constants on the z80 and gbz80.
15465
15466 2001-10-21  Bernhard Held  <bernhard AT bernhardheld.de>
15467
15468         * support/regression/Makefile: Improved clean
15469
15470         * support/regression/ports/gbz80/spec.mk: Added clean
15471
15472         * support/regression/ports/host/spec.mk: Added clean
15473
15474         * support/regression/ports/z80/spec.mk: Added clean
15475
15476         * support/regression/ports/mcs51/spec.mk: Added clean, little improvements
15477
15478         * support/regression/ports/mcs51/timeout.c: little improvements
15479
15480 2001-10-17  Michael Hope  <michaelh AT juju.net.nz>
15481
15482         * device/lib/malloc.c (MEMHEADER): Fixed against new pedantic pointers.
15483
15484         * support/regression/fwk/include/testfwk.h: Fixed up to use function pts correctly.
15485
15486         * support/regression/generate-cases.py: Fixed up to use function pts correctly.
15487
15488 2001-10-16  Bernhard Held  <bernhard AT bernhardheld.de>
15489
15490         * support/regression/port/mcs51/spec.mk: add timeout for uCsim
15491
15492         * support/regression/port/mcs51/timeout.c: add timeout for uCsim
15493
15494 2001-10-13  Michael Hope  <michaelh AT juju.net.nz>
15495         * src/z80/gen.c (emitCall): Fixed up missing spill of HL when used to assign the result value.
15496
15497         * src/z80/ralloc.c: Turned off pack for one use as it's quite broken.
15498
15499         * src/SDCCmain.c (linkEdit): Added support for passing a legacy command line through the processor.
15500
15501         * src/mcs51/main.c (_linkCmd): Added bin path to command.
15502
15503         * src/SDCCmain.c (initValues): Added support for when it it called just to link.
15504
15505         * as/mcs51/lklibr.c (libfil;): Turned off 'library file' message.
15506
15507         * src/SDCCval.c (constVal): Fixed usage of 'L' modifier problems on ppc.
15508
15509         * support/regression/tests/longor.c: Added.
15510
15511 2001-10-11  Bernhard Held  <bernhard AT bernhardheld.de>
15512
15513         * as/mcs51/asdata.c: replaced FILENAME_MAX with PATH_MAX
15514
15515         * as/mcs51/aslink.h: define PATH_MAX
15516
15517         * as/mcs51/asm.h: define PATH_MAX
15518
15519         * as/mcs51/asmain.c: replaced FILENAME_MAX with PATH_MAX
15520
15521         * as/mcs51/asnoice.c: replaced FILENAME_MAX with PATH_MAX
15522
15523         * as/mcs51/lklex.c: replaced FILENAME_MAX with PATH_MAX
15524
15525         * as/mcs51/lkmain.c: replaced FILENAME_MAX with PATH_MAX
15526
15527         * src/SDCCglobl.h: define PATH_MAX
15528
15529         * src/SDCCmacro.c: replaced FILENAME_MAX with PATH_MAX
15530
15531         * src/SDCCmain.c: replaced FILENAME_MAX with PATH_MAX
15532
15533 2001-10-11  Michael Hope  <michaelh AT juju.net.nz>
15534
15535         * src/z80/gen.c (gencjneshort): Fixed
15536
15537         * src/z80/ralloc.c (packRegsForHLUse): Added pack into HL for cast then ipush.
15538
15539 2001-10-09  Michael Hope  <michaelh AT juju.net.nz>
15540
15541         * support/regression/tests/bug-469671.c: Added.
15542
15543         * src/z80/gen.c (shiftIntoPair): Fixed up warning.
15544
15545 2001-10-08  Michael Hope  <michaelh AT juju.net.nz>
15546
15547         * src/SDCCmain.c: Added --fommit-frame-pointer option and implemented in the z80 port.
15548
15549         * src/z80/gen.c (genPlus): Fixed to work with extended stack.  Also fixed genMinus, genCmp.  genUMinus is still left.
15550
15551 2001-10-08  Bernhar Held  <bernhard AT bernhardheld.de>
15552
15553         * src/SDCCmain.c (preProcess): added define SDCC_NOOVERLAY
15554
15555         * src/device/lib/_mulint.c  : removed hint: nooverlay bug
15556
15557         * src/device/lib/_mullong.c : removed hint: nooverlay bug
15558
15559         * src/device/lib/_divuint.c : removed hint: nooverlay bug
15560
15561         * src/device/lib/_divulong.c: removed hint: nooverlay bug
15562
15563         * src/device/lib/_moduint.c : removed hint: nooverlay bug
15564
15565         * src/device/lib/_modulong.c: removed hint: nooverlay bug
15566
15567 2001-10-07  Michael Hope  <michaelh AT juju.net.nz>
15568
15569         * 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.
15570
15571         * support/Util/NewAlloc.c (freeTrace): Changed free for the gc case to not free at all.  Fixes runtime segfault.
15572
15573         * support/regression/tests/scott-compare3.c (c_abcd): Fixed up casts.
15574
15575 2001-10-07    <johan AT FRIJA>
15576
15577         * device/lib/gets.c (gets): fixed the return value.
15578
15579 2001-10-06  Michael Hope  <michaelh AT juju.net.nz>
15580         * src/SDCCmain.c (WRITE_SEG_LOC): Fixed up to use Safe_strdup.
15581
15582         * 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.
15583
15584         * 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.
15585
15586         * src/z80/gen.c (genZ80Code): Added de-allocation via trace support.
15587
15588         * src/pic/gen.c: Removed Safe_strdup.
15589
15590         * configure.in: Added option to enable libgc support.
15591
15592         * src/SDCCbitv.c (bitVectnBitsOn): Optimised.
15593         (bitVectUnion): Optimised.
15594         (bitVectIntersect): Optimised.
15595         (bitVectBitsInCommon): Optimised.
15596         (bitVectCplAnd): Optimised.
15597
15598         * support/makebin/makebin.c (usage): Removed getopt as mingw32 doesn't have it.  Sigh.
15599
15600 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
15601
15602         * src/SDCCmain.c: distinguish between assembler debug and plain options
15603
15604         * src/avr/main.c:   remove standard assembler options
15605
15606         * src/ds390/main.c: remove standard assembler options
15607
15608         * src/mcs51/main.c: remove standard assembler options
15609
15610         * src/port.h: removed "PENDING" comment
15611
15612 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
15613
15614         * src/device/lib/_mulint.c  : new, with assember functions
15615
15616         * src/device/lib/_mullong.c : new, with assember functions
15617
15618         * src/device/lib/_divuint.c : with assember functions
15619
15620         * src/device/lib/_divsint.c : with assember functions
15621
15622         * src/device/lib/_divulong.c: with assember functions
15623
15624         * src/device/lib/_divslong.c: with assember functions
15625
15626         * src/device/lib/_moduint.c : with assember functions
15627
15628         * src/device/lib/_modsint.c : with assember functions
15629
15630         * src/device/lib/_modulong.c: with assember functions
15631
15632         * src/device/lib/_modslong.c: with assember functions
15633
15634         * src/device/lib/libint.lib:  replaced _muluint.c  and _mulsint.c  by _mulint.c
15635
15636         * src/device/lib/liblong.lib: replaced _mululong.c and _mulslong.c by _mullong.c
15637
15638         * src/device/lib/Makefile.in: replaced _muluint.c  and _mulsint.c  by _mulint.c
15639                                       replaced _mululong.c and _mulslong.c by _mullong.c
15640
15641 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
15642
15643         * src/SDCCsymt.c: sequence of specifiers in pintTypeChain() corrected
15644
15645 2001-10-01 Bernhard Held <bernhard AT bernhardheld.de>
15646
15647         * src/SDCCglue.c: test, if win32api is available for MINGW
15648
15649 2001-10-01 Bernhard Held <bernhard AT bernhardheld.de>
15650
15651         * src/SDCCsymt.c: no more _modifier in printTypeChain()
15652         * support/regression/tests/driverstruct.c: REENTRANT for mcs51
15653         * support/regression/ports/gbz80/spec.mk: removed GENERIC
15654         * support/regression/ports/host/spec.mk: removed GENERIC
15655         * support/regression/ports/mcs51/spec.mk: removed GENERIC
15656         * support/regression/ports/z80/spec.mk: removed GENERIC
15657
15658 2001-10-01  Michael Hope  <michaelh AT juju.net.nz>
15659
15660         * support/regression/fwk/lib/testfwk.c (__printf): Removed GENERIC.
15661
15662         * support/regression/tests/bug-467035.c: Created.
15663
15664 2001-10-01    <johan AT FRIJA>
15665
15666         * src/SDCC.y: fixed bug #466586 part 1
15667
15668 2001-10-01  Johan Knol <johan.knol AT iduna.nl>
15669
15670         * SDCCicode.c: z80 has no generic pointers
15671         * removed -s from strip in all Makefile(.in)'s. It is not needed, but Solaris chocks on it.
15672
15673 2001-09-30  Michael Hope  <michaelh AT juju.net.nz>
15674
15675         * sim/ucsim/cmd.src/Makefile.in ($(PRJDIR)/libcmd.a): Changed all ar references to $(AR) for Solaris.
15676
15677 2001-09-29  Michael Hope  <michaelh AT juju.net.nz>
15678
15679         * Makefile (sdcc-libs): Added makebin to the list of standard targets.
15680
15681         * support/regression/ports/z80/spec.mk: Updated to use env for sdcc bin dir for automatic regression.
15682
15683 2001-09-25  Michael Hope  <michaelh AT juju.net.nz>
15684
15685         * configure.in: Fixed up so that ucsim is only configured once.
15686
15687         * support/cpp2/configure.in: Fixed to use the program transform to append the .exe for the win32 build.
15688
15689         * src/SDCCutil.c (getPrefixFromBinPath): Fixed up to work with win32 in all of its glory.
15690         (getPathDifference): As above.
15691
15692         * src/SDCCmain.c (preProcess): Changed to use a temporary file in a proper temp directory.  Fixed case where pre-processing only.
15693
15694         * src/SDCCglue.c (tempfilename): Added function for pre-processor.
15695
15696 2001-09-23  Michael Hope  <michaelh AT juju.net.nz>
15697         * .version: Updated to 2.3.1
15698
15699         * src/z80/main.c (z80_port =): Added macro based linker and assembler command line support.
15700         Added copyright header.
15701
15702         * src/SDCCmain.c: Shifted various functions into SDCCutil.c
15703         (assemble): Added support for macro based assembler commands.
15704         (linkEdit): Added support for macro based linker commands.
15705         (preProcess): Changed the pre-processor to use macros.
15706         (_setPaths): Added functionality to autodetect the include, lib and bin dir paths.
15707         (_discoverPaths): Added support for overriding the install directory using the SDCCDIR env variable.
15708
15709         * device/lib/z80/crt0.s: Added module name for debugging.
15710
15711 2001-09-20  Michael Hope  <michaelh AT juju.net.nz>
15712
15713         * src/SDCCmain.c (printVersionInfo): Added the build date to the version info.
15714
15715         * src/SDCChasht.c (hTabDeleteByKey): Fixed delete as it would delete the last item from a bucket even if it wasn't the real one.
15716
15717         * src/SDCCglue.c: Moved gc_strdup to SDCCutil.c
15718
15719         * src/Makefile.in: Added SDCCmacro and SDCCutil
15720
15721 2001-09-19  Michael Hope  <michaelh AT juju.net.nz>
15722
15723         * src/SDCCmain.c (printVersionInfo): Added the build date to the version info.
15724
15725 2001-09-16    <johan AT FRIJA>
15726
15727         * 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.
15728
15729 2001-09-15    <johan AT FRIJA>
15730
15731         * src/mcs51/ralloc.c: (findAssignToSym): fixed bug #460662 part 1
15732         * src/ds390/ralloc.c (findAssignToSym): fixed bug #460662 part 1
15733
15734 2001-09-11    <johan AT FRIJA>
15735
15736         * src/SDCCval.c (valDiv Mod Minus Plus Shift): keep litteral expressions as small as possible (bug #460010)
15737
15738 2001-09-10  Michael Hope  <michaelh AT juju.net.nz>
15739
15740         * support/regression/tests/bug-460444.c: Added test case.
15741
15742         * src/z80/gen.c (genOr): bug 460444: if (a ^ lit) was broken for &, |, and ^.
15743         (genCast): Added justification for all of the asserts.
15744
15745 2001-09-10  Bernhard Held <bernhard AT bernhardheld.de>
15746
15747         * support/regression/support.c: _xdata replaced by xdata
15748
15749         * support/regression/spec.mk: removed _generic
15750
15751 2001-09-09  Michael Hope  <michaelh AT juju.net.nz>
15752
15753         * src/pic/ralloc.c (debugLogRegType): Removed some old types to get it to compile.
15754
15755         * src/z80/gen.c (shiftR2Left2Result): Improved the case when v = v >> n for small values of n to use less code space and time.
15756         (genrshTwo): Fixed v = v >> n where v is a negative int and n is > 8: bug 460010.
15757
15758         * src/z80/peeph.def: Added a rule to optimise shift then compare.
15759
15760         * support/regression/tests/bug-460000.c (testShiftByParam): Added test case.
15761
15762         * support/regression/tests/bug-460010.c: Added test case.
15763
15764         * support/regression/Makefile (test-host): Removed a silly 'clean' target when testing against gcc.
15765
15766 2001-09-09  Bernhard Held <bernhard AT bernhardheld.de>
15767
15768         * support/regression/Makefile: inter-port-clean adjusted for mcs51
15769
15770         * support/regression/testfwk.c: removed workaround for bug #436344
15771
15772         * support/regression/tests/bp.c: use less memory with mcs51
15773
15774         * support/regression/tests/bug-441448.c: use less memory
15775
15776         * support/regression/tests/ports/mcs51/spec.mk: cleanup, use --stack-after-data
15777
15778         * support/regression/collate-results.py: typo
15779
15780 2001-09-08  Michael Hope  <michaelh AT juju.net.nz>
15781
15782         * support/regression/tests/fetchoverlap.c: Added new test case.
15783
15784         * support/regression/tests/bp.c: Added new test case.
15785
15786         * support/regression/tests/bug-448984.c: Added new test case.
15787
15788         * support/regression/tests/pow2shifts.c: Added new test case.
15789
15790         * src/z80/gen.c: Turned off the noise it normally generates for the release.
15791         (genlshTwo): Fixed right shift for count > 8.
15792
15793         * src/z80/ralloc.c: Disabled most of the ACC packing rules as they weren't getting hit and weren't at all safe.
15794
15795 2001-09-08    <johan AT FRIJA>
15796
15797         * src/SDCCicode.c (geniCodeCall): a CPOINTER can be used as a function
15798
15799 2001-09-07    <johan AT FRIJA>
15800
15801         * src/SDCCicode.c (newiCodeCondition): fixed bug #456235 (1.77)
15802
15803         * src/SDCCglue.c (emitRegularMap): only delete a symbol when it is a symbol
15804
15805 2001-09-06    <johan AT FRIJA>
15806
15807         * src/SDCC.y: this could be a fix for bug #458744 (1.37)
15808         * bernhard noted me at this: "() equals to (void)" (1.38)
15809
15810 2001-09-05    <johan AT FRIJA>
15811
15812         * src/SDCCglue.c (emitRegularMap): a fix for bug #458099/2
15813
15814 2001-09-04    <johan AT FRIJA>
15815
15816         * src/SDCCsymt.c (checkSClass): a fix for bug #458099/1
15817
15818
15819 2001-09-04  Paul Stoffregen  <paul AT pjrc.com>
15820
15821         * pragma noinduction broke memcpy on mcs51 large model.  Moved it inside z80 optimization
15822
15823 2001-09-03  Michael Hope  <michaelh AT juju.net.nz>
15824
15825         * link/z80/aslink.h: Fixed path for PATH_MAX
15826
15827 2001-09-02  Michael Hope  <michaelh AT juju.net.nz>
15828
15829         * src/z80/gen.c (fetchLitPair): Changed so that it properly caches direct space references.
15830
15831         * support/regression/tests/addsub.c: Added cases to cover all the +, - combinations.
15832
15833         * support/regression/tests/uminus.c: Added a test for the unary minus operator.
15834
15835         * 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.
15836
15837 2001-09-01  Michael Hope  <michaelh AT juju.net.nz>
15838
15839         * src/z80/gen.c: Fixed up generator to pass the regresion tests, specifically fixing loads for longs, genCmp, and turned on the map file.
15840         (genCmp): Fixed up genCmp for the GB with longs.
15841
15842         * device/lib/gbz80/Makefile: Fixed up all the libraries to pass the regression tests.
15843
15844         * support/regression/ports/host/spec.mk: Updated to compile with the new type specifiers.
15845
15846         * device/lib/Makefile.in (Z80SOURCES): Removed old _mululong, _mulslong, and unneeded _mulint.
15847
15848         * device/lib/_mullong.c (_mulslong): Changed to actually return a value :)
15849
15850 2001-08-30  Paul Stoffregen  <paul AT pjrc.com>
15851
15852         * added peepholes 223 to 231 to mcs51 port.  These improve code when using large model.
15853
15854 2001-08-30  Michael Hope  <michaelh AT juju.net.nz>
15855
15856         * 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.
15857
15858         * src/z80/gen.c (genPlus): Changed bad long add for gb to a fall through.
15859
15860 2001-08-29  Michael Hope  <michaelh AT juju.net.nz>
15861
15862         * link/z80/aslink.h: Fixed long file name support.  Is now based off PATH_MAX instead of a constant.
15863
15864         * src/z80/gen.c: Fixed add and sub for the case where left or right are in static space.
15865
15866 2001-08-30 Bernhard Held   <bernhard AT bernhardheld.de>
15867
15868   * sim/ucsim/configure:    little improvement of Cygwin-detection
15869   * sim/ucsim/configure.in: little improvement of Cygwin-detection
15870   * sim/ucsim/cmd.src/newcmdcl.h: include <sys/types.h> to define fd_set automated build
15871   * support/regression/tests/bug-221100.c: small changes for mcs51
15872   * support/regression/tests/bug-221168.c: small changes for mcs51
15873   * support/regression/tests/bug-227710.c: small changes for mcs51
15874   * support/regression/tests/staticinit.c: small changes for mcs51
15875   * as/mcs51/aslink.h: accept everything as symbol name in rel-files, bug fix ID 452601
15876   * as/mcs51/lklex.c:  accept everything as symbol name in rel-files, bug fix ID 452601
15877   * as/mcs51/lksym.c:  accept everything as symbol name in rel-files, bug fix ID 452601
15878
15879 $Revision$