93db575ec0526a8ec86881ed4ef6a145761d3cf2
[fw/sdcc] / ChangeLog
1 2007-05-09 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2
3         * device/include/mcs51/uPSD33xx.h: Added patch by Jan Waclawek.
4
5 2007-05-08 Maarten Brock <sourceforge.brock AT dse.nl>
6
7         * src/ds390/gen.c (emitcode): don't change properties of previous lines,
8           (throughout): updated generating comments
9         * src/mcs51/gen.c (emitcode): don't change properties of previous lines,
10           (throughout): updated generating comments
11         * src/SDCCpeeph.c (peepHole): continue searching at the first replaced
12           rule instead of at the second, or it might skip lines when removing the
13           complete match
14         * support/regression/tests/bug1714204.c: changed test to foo
15
16 2007-05-08 Borut Razem <borut.razem AT siol.net>
17
18         * doc/sdccman.lyx: changed sdcc version to 2.7.0,
19           thanks to SDCC Distributed Compile Farm members,
20           added Z80 and GBZ80 command line options
21         * .version, doc/INSTALL.txt, sdcc.spec: changed sdcc version to 2.7.0
22
23 2007-05-08 Maarten Brock <sourceforge.brock AT dse.nl>
24
25         * device/lib/mcs51/crtxinit.asm: added disabled version for dual dptr
26         * device/include/mcs51/uPSD33xx.h: added sfr DPS as alias for DPTC
27         * support/regression/tests/longlit.c: modified to be tested at all and
28           to pass the actual test
29
30 2007-05-07 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
31
32         * device/include/mcs51/uPSD33xx.h: Added.
33
34 2007-05-07 Maarten Brock <sourceforge.brock AT dse.nl>
35
36         * device/lib/_gptrput.c,
37         * device/lib/_gptrget.c: removed old code,
38          (_gptrgetWord),
39         * src/ds390/gen.c (genGenPointerGet): fixed bug 1714204
40         * support/regression/tests/bug1714204.c: new, added
41
42 2007-05-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
43
44         * support/regression/tests/regtrack.c: test was never executed
45           because of the regression test being picky about white spaces.
46         * device/lib/mcs51/crtclear.asm: added comment
47
48 2007-05-06 Raphael Neider <rneider AT web.de>
49
50         * device/lib/pic/Makefile.rules,
51         * device/lib/pic16/Makefile.rules: make sure *.ignore file exists,
52           made "&> /dev/null" redirection sh-safe ("> /dev/null 2>&1")
53
54 2007-05-06 Raphael Neider <rneider AT web.de>
55
56         * src/pic16/device.h,
57         * src/pic16/main.h,
58         * src/pic16/main.c (pic16_optionsTable,_pic16_parseOptions,
59           _pic16_setDefaultOptions): removed/reordered command-line args
60         * doc/sdccman.lyx: updated PIC14 and PIC16 documentation (supported
61           devices, regrouped command line args, environment variables),
62           clarified sone points, added sections on how to add devices to the
63           PIC14/PIC16 ports
64
65 2007-05-06 Maarten Brock <sourceforge.brock AT dse.nl>
66
67         * src/z80/peeph.def: fixed bug in rule 2
68
69 2007-05-05 Maarten Brock <sourceforge.brock AT dse.nl>
70
71         * src/port.h: added TARGET_MCS51_LIKE
72         * src/SDCCpeeph.c (labelIsUncondJump): new, added, other targets could
73           take advantage of it too
74         * src/z80/gen.c (genIpush): push b, d or h directly instead of using a,
75           (shiftR2Left2Result): Optimized: don't check shifting by 0
76         * src/z80/peeph-z80.def,
77         * src/z80/peeph.def: whole set of new rules by Philipp Krause with some
78           modifications, see patch 1700823
79         * src/mcs51/peep.c (): fixed bug 1712928
80         * support/regression/tests/bug1712928.c: new, added
81
82 2007-05-05 Borut Razem <borut.razem AT siol.net>
83
84         * device/lib/pic16/Makefile.common.in,
85           device/lib/pic/Makefile.common.in, sim/ucsim/cmd.src/Makefile.in:
86           removed bash dependencies
87
88 2007-05-01 Borut Razem <borut.razem AT siol.net>
89
90         * src/SDCCicode.c:
91           fixed bug #1710507: --i-code-in-asm makes compile fail
92           all iCode comments are now one liners
93         * src/mcs51/gen.c: fixed memory leak
94
95 2007-05-01 Raphael Neider <rneider AT web.de>
96
97         * device/lib/pic/libdev/*.c
98         * device/include/pic/*.h: regenerated all device libs from updated
99           .inc files
100         * support/scripts/inc2h.pl: documented usage, now uses strict to
101           catch more bugs
102
103 2007-04-30 Borut Razem <borut.razem AT siol.net>
104
105         * doc/sdccman.lyx:
106           fixed bug #1669175: Problem with space in output paths
107           documented how to use paths with spaces for Windows users
108
109 2007-04-29 Borut Razem <borut.razem AT siol.net>
110
111         * Fixed svn:eol-style and svn:keywords properties
112         * src/SDCCval.c: fixed bug
113           #1592871: Segfault with "large" const arrays of characters
114           replaced recursion with iteration
115         * Removed svn:executable property from non-executable files
116
117 2007-04-29 Maarten Brock <sourceforge.brock AT dse.nl>
118
119         * src/mcs51/gen.c (genRet): fixed bug 1707003
120
121 2007-04-27 Raphael Neider <rneider AT web.de>
122
123         * src/pic16/pcode.c (pBlockRemoveUnusedLabels,pic16_pBlockAddInval,
124           createReachingDefinitions,assignValnums,pic16_destructDF,
125           pic16_createDF,pic16_vcg_dumpedges,pic16_vcg_dump_default):
126           prevent NULL pointer dereferences
127         * device/lib/pic/libdev/pic16f886.c,
128         * device/lib/pic/libdev/pic16f887.c: svn mv'ed to disabled_* to
129           prevent building them, gputils do not really support them yet
130
131 2007-04-27 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
132
133         * device/lib/_ltoa.c: 36 bytes less __data mem. This really
134           helps printf_small. 32 bytes more __idata mem.
135
136 2007-04-27 Raphael Neider <rneider AT web.de>
137
138         * src/pic/pcode.c (addpCode2pBlock,LinkFlow,pBlockRemoveUnusedLabels):
139           return early when pb or pb->pcHead is NULL (patch #1708427)
140         * src/regression/empty.c,
141         * src/regression/Makefile: added test with empty functions
142         * support/Util/SDCCerr.c: fixed typo in E_INIT_STRUCT message
143
144 2007-04-27 Borut Razem <borut.razem AT siol.net>
145
146         * src/SDCCast.c: fixed feature request
147           #1547512: Redundant strings linked when using sizeof("abc")
148
149 2007-04-23 Borut Razem <borut.razem AT siol.net>
150
151         * doc/sdccman.lyx, src/SDCCmain.c:
152           peep-hole comments are generated only if --fverbose-asm option is
153           specified and --no-peep-comments is not, as proposed by Frieder.
154         * support/regression/Makefile.in: compile regression tests with
155           --fverbose-asm option so one can "grep" whether a new (or an old)
156           peephole is (still) applied; requested by Frieder.
157
158 2007-04-23 Kevin Buettner <kevin AT buettner.to>
159
160         * device/include/pic/pic16f886.h,
161         * device/include/pic/pic16f887.h,
162         * device/lib/pic/libdev/pic16f886.c,
163         * device/lib/pic/libdev/pic16f887.c,
164         * device/include/pic/pic14devices.txt,
165         * device/lib/pic/libdev/devices.txt: Add 16f886 and 16f887.
166
167 2007-04-23 Kevin Buettner <kevin AT buettner.to>
168
169         * device/lib/pic/libsdcc/idata.c: PAGESEL _main before going there,
170           fixes #1704666
171
172 2007-04-23 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
173
174         * device/lib/_memset.c: assembler version for mcs51
175
176 2007-04-22 Borut Razem <borut.razem AT siol.net>
177
178         * support/scripts/listerr.c: program to create the list of errors and
179           warnings list from - added
180         * doc/sdccman.lyx: removed the note
181           "For list of warnings and corresponding codes, see err_warn.txt"
182         * src/SDCCsymt.c: fixed bug #1699804:
183           Bug with some uses of sizeof(static local array) (MCS51)
184         * support/regression/tests/bug-1699804.c: added
185
186 2007-04-20 Maarten Brock <sourceforge.brock AT dse.nl>
187
188         * as/mcs51/asmain.c (search_path_append, search_path_fopen): new, added,
189           (main): added option -i,
190           (asmbl, case S_INCL): use search_path_fopen,
191           mostly from patch 1579668 by Peter Miller, thanks
192         * src/z80/main.c: fixed typo --callee-saves-bc
193         * device/include/mcs51/compiler.h: added sfrword for Tasking
194
195 2007-04-20 Borut Razem <borut.razem AT siol.net>
196
197         * src/z80/main.c: replaced reserved keyword asm with asmblr
198
199 2007-04-19 Borut Razem <borut.razem AT siol.net>
200
201         * src/port.h: use const pointers to strings
202         * src/SDCCargs.h: declared getStringArg() and getIntArg()
203         * src/pic16/main.c: include SDCCargs.h
204         * src/SDCCglobl.h: code_seg and const_seg are not pointers to
205           const char, since the strings are dynamically allocated
206         * src/SDCCmain.c: options.code_seg and options.const_seg are
207           dynamically allocated; check port specific command line options
208           before the general ones
209         * src/z80/main.c: fixed bug #1631895: codeseg/constseg #pragma fail
210
211 2007-04-18 Maarten Brock <sourceforge.brock AT dse.nl>
212
213         * device/include/ds400rom.h,
214         * device/lib/ds390/lcd390.c,
215         * device/lib/ds390/memcpyx.c,
216         * device/lib/ds390/rtc390.c,
217         * device/lib/ds400/ds400rom.c,
218         * device/lib/ds400/memcpyx.c,
219         * device/lib/hc08/_ret.c: more replacements of keywords with their
220           double underscore equivalents
221         * device/lib/ds390/Makefile.in,
222         * device/lib/ds400/Makefile.in,
223         * device/lib/gbz80/Makefile.in,
224         * device/lib/hc08/Makefile.in,
225         * device/lib/mcs51/Makefile.in,
226         * device/lib/z80/Makefile.in: added --std-c89 to CFLAGS
227
228 2007-04-17 Borut Razem <borut.razem AT siol.net>
229
230         * doc/sdccman.lyx, src/SDCCmain.c, src/SDCCglobal.h, src/ds390/gen.c,
231           src/hc08/gen.c, src/mcs51/gen.c, src/mcs51/rtrack.c:
232           fixed #1493816: option --no-gen-comments: --no-gen-comments renamed
233           to --fverbose-asm, to be gcc'ish
234
235 2007-04-17 Maarten Brock <sourceforge.brock AT dse.nl>
236
237         * src/mcs51/gen.c (aopOp): set size to 1 for ruonly, fixes bug 1699455
238
239 2007-04-17 Borut Razem <borut.razem AT siol.net>
240
241         * doc/sdccman.lyx: fixed #1701874: Mac OSX references in SDCC manual
242         * device/lib/ds400/tinibios.c, device/lib/hc08/_divuint.c,
243           device/lib/hc08/_divulong.c: replaced _asm and _endasm keywords
244           with their double underscore equivalent
245
246 2007-04-14 Borut Razem <borut.razem AT siol.net>
247
248         * doc/sdccman.lyx: some additional "freeware" replaced with "free open
249           source"
250
251 2007-04-13 Borut Razem <borut.razem AT siol.net>
252
253         * doc/sdccman.lyx: -pedantic-parse-number is not in conformance with
254           C99 standard
255         * device/examples/serialcomm/windows/serial.[ch],
256           device/examples/serialcomm/windows/test_serialcomm.cpp:
257           updated by Bela Torok
258         * device/examples/serialcomm/windows/serialcomm.dsw,
259           device/examples/serialcomm/windows/serialcomm.dsp: added
260
261 2007-04-13 Jan Waclawek <wek AT efton.sk>
262
263         * doc/sdccman.lyx: additions and changes at various places
264           (submitted as #1697136).
265           (svn commit by Frieder Ferlemann <Frieder.Ferlemann AT web.de>)
266
267 2007-04-10 Borut Razem <borut.razem AT siol.net>
268
269         * doc/cdbfileformat.lyx, doc/sdccman.lyx, doc/test_suite_spec.lyx:
270           LyX file format changed to 245
271         * doc/sdccman.lyx, doc/README.txt, sdc/SDCC.lex, src/SDCCglue.c:
272           "FreeWare" replaced with "free open source"
273
274 2007-04-10 Maarten Brock <sourceforge.brock AT dse.nl>
275
276         * device/include/mcs51/C8051F120.h: added some defines for bits in RSTSRC
277
278 2007-04-08 Maarten Brock <sourceforge.brock AT dse.nl>
279
280         * device/include/pic16/pic18fregs.h,
281         * device/lib/_bp.c,
282         * device/lib/_decdptr.c,
283         * device/lib/_divsint.c,
284         * device/lib/_divslong.c,
285         * device/lib/_divuint.c,
286         * device/lib/_divulong.c,
287         * device/lib/_fs2schar.c,
288         * device/lib/_fs2sint.c,
289         * device/lib/_fs2slong.c,
290         * device/lib/_fs2uchar.c,
291         * device/lib/_fs2uint.c,
292         * device/lib/_fs2ulong.c,
293         * device/lib/_fsadd.c,
294         * device/lib/_fscmp.c,
295         * device/lib/_fsdiv.c,
296         * device/lib/_fseq.c,
297         * device/lib/_fsget1arg.c,
298         * device/lib/_fsget2args.c,
299         * device/lib/_fsgt.c,
300         * device/lib/_fslt.c,
301         * device/lib/_fsmul.c,
302         * device/lib/_fsneq.c,
303         * device/lib/_fsnormalize.c,
304         * device/lib/_fsreturnval.c,
305         * device/lib/_fsrshift.c,
306         * device/lib/_fssub.c,
307         * device/lib/_fsswapargs.c,
308         * device/lib/_gptrget.c,
309         * device/lib/_gptrgetc.c,
310         * device/lib/_gptrput.c,
311         * device/lib/_logexpf.c,
312         * device/lib/_modsint.c,
313         * device/lib/_modslong.c,
314         * device/lib/_moduint.c,
315         * device/lib/_modulong.c,
316         * device/lib/_mulint.c,
317         * device/lib/_mullong.c,
318         * device/lib/_schar2fs.c,
319         * device/lib/_ser.c,
320         * device/lib/_setjmp.c,
321         * device/lib/_sint2fs.c,
322         * device/lib/_slong2fs.c,
323         * device/lib/_spx.c,
324         * device/lib/_uchar2fs.c,
325         * device/lib/_uint2fs.c,
326         * device/lib/_ulong2fs.c,
327         * device/lib/asincosf.c,
328         * device/lib/atanf.c,
329         * device/lib/calloc.c,
330         * device/lib/ds390/tinibios.c,
331         * device/lib/ds400/tinibios.c,
332         * device/lib/expf.c,
333         * device/lib/free.c,
334         * device/lib/hc08/_mulint.c,
335         * device/lib/logf.c,
336         * device/lib/malloc.c,
337         * device/lib/printf_fast.c,
338         * device/lib/printf_tiny.c,
339         * device/lib/printfl.c,
340         * device/lib/realloc.c,
341         * device/lib/ser_ir.c,
342         * device/lib/serial.c,
343         * support/regression/tests/libmullong.c: replaced all special keywords
344           with their double underscore equivalent
345         * support/regression/ports/mcs51-xstack-auto/spec.mk,
346         * device/lib/Makefile.in: compile libs with --std-c99 instead of
347           --std-sdcc99
348         * src/mcs51/gen.c (outBitC): don't store if result is return-use-only,
349           (genRet): if the bit-symbol is ruonly it already is in the carry
350         * src/mcs51/ralloc.c (regTypeNum): make regType REG_CND for ruonly bit
351         * src/SDCCast.c (createFunction): applied patch 887171 by Stas Sergeev
352         * src/SDCCicode.c (ast2iCode): '!', GETHBIT, GETABIT: only set operand
353           type UCHAR if dest is not bit
354
355 2007-04-03 Maarten Brock <sourceforge.brock AT dse.nl>
356
357         * device/include/math.h,
358         * device/lib/cotf.c,
359         * device/lib/expf.c,
360         * device/lib/sincoshf.c: changed XMAX to C99 HUGE_VALF
361
362 2007-04-01 Borut Razem <borut.razem AT siol.net>
363
364         * src/SDCC.lex, src/SDCCmain.c, support/cpp2/sdcpp.c:
365           fixed bug #1692042: input buffer overflow...scanner uses REJECT
366         * support/cpp2/sdcpp.c: fixed recursion bug - internal_error() called
367           gcc_unreachable() called internal_error()...
368
369 2007-03-30 Raphael Neider <rneider AT web.de>
370
371         * src/pic/ralloc.c (isData): suppress garbage debug output
372
373 2007-03-28 Borut Razem <borut.razem AT siol.net>
374
375         * doc/sdccman.lyx:
376           "Nightly Snapshots" replaced with "Snapshot Builds", since the SDCC
377           is developed, built and used worldwide, and the word "night" doesn't
378           make any sense.
379
380 2007-03-28 Maarten Brock <sourceforge.brock AT dse.nl>
381
382         * device/include/mcs51/C8051F360.h: new, added
383         * device/include/mcs51/C8051F520.h: fixed buggy sbit addresses SPI0CN
384
385 2007-03-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
386
387         * src/SDCC.y (declaration_specifiers, function_specifier),
388         * support/Util/SDCCerr.c,
389         * support/Util/SDCCerr.h,
390         * src/SDCCsymt.h,
391         * src/SDCCsymt.c (mergeSpec, checkFunction): Parse and validate the
392           inline keyword
393         * src/SDCCmem.c (deallocParms),
394         * src/SDCCast.c: support for function inlining, not quite complete
395         * src/SDCCsymt.c (printTypeChain, printTypeChainRaw): display
396           'restrict' qualifier
397
398 2007-03-24 Maarten Brock <sourceforge.brock AT dse.nl>
399
400         * src/mcs51/gen.c (saveRegisters, unsaveRegisters): free some bitVects,
401           (saveRBank, unsaveRBank): don't save bits,
402           (genFunction, genEndFunction): save bits exactly once, fix bug 1535242
403         * support/regression/tests/bug1535242.c: new, added
404         * device/include/assert.h: applied patch 1686533 to fix bug 1686528,
405           thanks Alexey Shamrin <shamrin AT gmail.com>,
406           made assert.h header ANSI compliant (added a check for NDEBUG macro,
407           removed header guard)
408         * .version,
409         * sdcc.spec: bumped version to 2.6.5
410         * src/SDCCmain.c(parseCmdLine): fixed bug 1677144
411
412 2007-03-22 Borut Razem <borut.razem AT siol.net>
413
414         * debugger/mcs51/cmd.c, debugger/mcs51/sdcdb.c:
415           fixed bug #1653671: sdcdb integration into ddd is broken
416
417 2007-03-22 Raphael Neider <rneider AT web.de>
418
419         * src/pic/gen.c (popGetExternal): augmented to also create references
420           to external variables (not only labels),
421           (genCall): comment on plan to reduce PAGESEL overhead,
422           (genFunction, genEndFunction): also save/restore FSR around interrupt
423           handling code, removed lots of unused code
424           (genDivOneByte): release acquired temp register
425         * src/pic/glue.c (pic14createInterruptVect): adapt to new signature
426           of popGetExternal
427         * device/lib/pic/libsdcc/shadowregs.c: NEW, provide storage location
428           for registers that need to be saved during interrupts (FSR, STATUS,
429           PCLATH; W needs special handling), currently only FSR is used
430
431 2007-03-22 Raphael Neider <rneider AT web.de>
432
433         * device/include/pic/pic14devices.txt: 16f688 has only one config word
434
435 2007-03-19 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
436
437         * /as/link/mcs51/aslink.dsp: Object extension for mcs51 is 'rel' not 'o'.
438
439 2007-03-17 Maarten Brock <sourceforge.brock AT dse.nl>
440
441         * src/mcs51/peeph.def (263.x): fixed bug for volatile variables
442
443 2007-03-14 Maarten Brock <sourceforge.brock AT dse.nl>
444
445         * as/link/aslink.h: added LKOBJEXT
446         * as/link/hc08/link_hc08.dsp,
447         * as/link/hc08/Makefile.bcc,
448         * as/link/hc08/Makefile.in,
449         * as/link/mcs51/aslink.dsp,
450         * as/link/mcs51/Makefile.bcc,
451         * as/link/mcs51/Makefile.in: moved lkamof51.c and lkdata.c
452         * as/link/hc08/lkaomf51.c,      as/link/mcs51/lkaomf51.c,
453         * as/link/lkaomf51.c: merged and moved
454         * as/link/hc08/lkdata.c,        as/link/mcs51/lkdata.c,
455         * as/link/z80/lkdata.c,
456         * as/link/lkdata.c: merged and moved
457         * as/link/hc08/lkmain.c,
458         * as/link/mcs51/lkmain.c: cosmetic changes
459         * as/link/z80/lkeval.c,         as/link/lkeval.c: merged
460         * as/link/lklex.c: use LKOBJEXT
461         * as/link/z80/lklist.c,         as/link/lklist.c: merged,
462           ANSI-fied functions, removed bubble-sorts
463         * as/link/z80/lksym.c           as/link/lksym.c: merged,
464           ANSI-fied functions
465         * as/link/z80/linkgbz80.dsp,
466         * as/link/z80/linkz80.dsp,
467         * as/link/z80/Makefile.in: added lkaomf51.c and lknoice.c,
468           moved lkdata.c, lkeval.c, lkhead.c, lklex.x, lklist.c, lksym.c
469         * as/link/z80/lkhead.c,
470         * as/link/z80/lklex.c: deleted
471         * as/link/z80/lklibr.c: moved LKOBJEXT to aslink.h
472         * as/link/z80/lkmain.c: added copyfile()
473
474 2007-03-13 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
475
476         * device/include/mcs51/P89LPC925.h: Added missing P1_6 and P1_7.
477
478 2007-03-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
479
480         * device/lib/_strlen.c: assembler version for mcs51
481
482 2007-03-13 Raphael Neider <rneider AT web.de>
483
484         * device/include/pic16/pic18f2221.h,
485         * device/include/pic16/pic18f2321.h,
486         * device/include/pic16/pic18f2331.h,
487         * device/include/pic16/pic18f4221.h,
488         * device/include/pic16/pic18f4321.h,
489         * device/include/pic16/pic18f4331.h: fixed config byte location names
490         * support/scripts/inc2h-pic16.pl: removed debug output, emit
491           consistently named config byte locations
492
493 2007-03-13 Borut Razem <borut.razem AT siol.net>
494
495         * src/Makefile.in, sim/ucsim/avr.src/Makefile.in,
496           sim/ucsim/hc08.src/Makefile.in, sim/ucsim/s51.src/Makefile.in,
497           sim/ucsim/xa.src/Makefile.in, sim/ucsim/z80.src/Makefile.in,
498           as/link/z80/Makefile.in, as/z80/Makefile.in:
499           introduced LDFLAGS
500
501 2007-03-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
502
503         * device/lib/printfl.c: 13 bytes less __data mem (12 more __idata)
504         * device/lib/printf_large.c: pointer was converted to generic
505         pointer for mcs51 models other than model-small (Maarten noticed)
506
507 2007-03-10 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
508
509         * device/include/mcs51/ADuC84x.h: Added.
510
511 2007-03-10 Borut Razem <borut.razem AT siol.net>
512
513         * src/SDCC.lex, src/SDCCutil.[ch], src/SDCCval:
514           fixed RFE #1624219: double backslashes in filenames;
515           functions hexEscape(), octalEscape() and copyStr() moved from
516           SDCCval.c to SDCCutil.c and made them glovbally available
517
518 2007-03-09 Borut Razem <borut.razem AT siol.net>
519
520         * src/SDCC.lex, src/SDCCast.c. src/SDCCglobl.c, src/SDCCsymt.c,
521           src/SDCCval.c: fixed bugs #1676768: Wrong line number reported and
522           1673361: Missaligned comments in output files
523
524 2007-03-09 Raphael Neider <rneider AT web.de>
525
526         * device/include/pic/pic14devices.txt: fixed confsiz of 16f91[3467]
527
528 2007-03-09 Raphael Neider <rneider AT web.de>
529
530         * src/pic/gen.c,
531         * src/pic/glue.c,
532         * src/pic/ralloc.c: suppress undesired debug output
533         * src/SDCCmain.c (linkEdit): initialize c to quieten compiler
534
535 2007-03-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
536
537         * device/lib/printf_large.c: 6 bytes less __data mem (6 more __idata)
538
539 2007-03-07 Borut Razem <borut.razem AT siol.net>
540
541         * device/lib/pic16/libdev/pic18f[24][34]31.c:
542           search include files in the current directory
543
544 2007-03-04 Maarten Brock <sourceforge.brock AT dse.nl>
545
546         * src/SDCCglue.c (emitMaps, glue),
547         * src/SDCCmem.c (initMem, allocDefault): added x_abs for initialized
548           absolute xdata
549         * support/regression/tests/absolute.c: added xdata test
550
551 2007-03-03 Maarten Brock <sourceforge.brock AT dse.nl>
552
553         * src/SDCCmain.c (parseCmdLine): only set options.xstack_loc for mcs51,
554           added condition to macro, fixes bug 1666080
555
556 2007-03-02 Raphael Neider <rneider AT web.de>
557
558         * src/pic/gen.c (genGenPointerSet): removed bogus assertion
559
560 2007-02-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
561
562         * device/lib/mcs51/crtxclear.asm: pdata segment of 256 byte would not
563         be cleared. Unconditionally set __XPAGE
564         * src/hc08/gen.c: --no-gen-comments (RFE #1493816) for hc08
565
566 2007-02-27 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
567
568         * src/SDCCglobl.h,
569         * src/SDCCmain.c,
570         * src/mcs51/gen.c,
571         * src/mcs51/rtrack.c,
572         * src/ds390/gen.c,
573         * doc/sdccman.lyx: added --no-gen-comments
574         * src/mcs51/peeph.def: added 192.b, disabled 185
575
576 2007-02-25 Raphael Neider <rneider AT web.de>
577
578         * src/pic16/gen.c (genCast): fixed typo
579         * device/lib/pic16/Makefile.subdir: only install existing files
580         * device/lib/pic16/libdev/Makefile.in: build serially, avoid races
581
582 2007-02-25 Maarten Brock <sourceforge.brock AT dse.nl>
583
584         * device/lib/mcs51/crtcall.asm: new, added for indirect calls
585         * device/lib/mcs51/crtclear.asm,
586         * device/lib/mcs51/crtxclear.asm: renumbered labels
587         * device/lib/mcs51/Makefile.in: added crtcall.asm
588         * doc/sdccman.lyx: documented mcs51 crt* library startup code
589         * src/mcs51/gen.c (movc): removed,
590           (aopGet, genPlusBits): clear a after loading the carry (possibly from
591             acc.x or psw.x),
592           (toCarry, genSend, genRet): added function toCarry,
593           (genPcall): use "lcall @a+dptr" for functions w/o parameters,
594           (assignBit, genAssign, genCast): added function assignBit
595         * src/mcs51/Makefile.bcc: added rtrack.c
596         * src/mcs51/ralloc.h: made valueKnown a bitfield
597         * src/mcs51/rtrack.c (getReg, rtrackUpdate): added getReg,
598           fixed "jbc acc" and "cpl acc" bug, enhanced "cjne", "jnz" and "djnz",
599           disabled InvalidateAllRx for lcall __gptrput, added "xch a,rn"
600         * src/pic/pcode.c (FixRegisterBanking): fixed warning used uninitialized
601         * src/z80/gen.c: added AOP_IS_PAIRPTR,
602           (_pop): only pop valid pairs, see gencjneshort,
603           (gencjneshort): return pair that still needs to be popped, restructured,
604           (gencjne, genCmpEq): call _pop
605
606 2007-02-23 Raphael Neider <rneider AT web.de>
607
608         * device/include/pic/pic14devices.txt: 16f684 has only one config word
609
610 2007-02-22 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
611
612         * device/include/mcs51/P89LPC925.h: Added.
613
614 2007-02-18 Raphael Neider <rneider AT web.de>
615
616         * src/pic/glue.c (emitInitVal): fixed #1659894 (SIGSEGV on arrays)
617
618 2007-02-17 Borut Razem <borut.razem AT siol.net>
619
620         * support/cpp2/directives.c, support/cpp2/version.c:
621           synchronized with GCC CPP 4.1.2
622
623 2007-02-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
624
625         * src/mcs51/rtrack.h,
626         * src/mcs51/rtrack.c: added register tracking for the mcs51 port,
627           by checking the strings passed by emitcode() to the assembler.
628           Feel free to change. This in part addresses RFE #482179.
629           Set environment variable SDCC_RTRACK to enable.
630         * src/mcs51/gen.c: inserted hooks
631         * src/mcs51/ralloc.h: added two members to struct regs
632         * support/regression/tests/regtrack.c: added
633
634 2007-02-14 Borut Razem <borut.razem AT siol.net>
635
636         * src/SDCC.y: fixed bug #1291133: duplicate members across enum(s)
637         * Makefile.in: applied patch from Makefile related part of
638           #1469393: Compiler does not initialize static data
639
640 2007-02-12 Maarten Brock <sourceforge.brock AT dse.nl>
641
642         * src/SDCCicode.c (geniCodeAssign): return (itemp) right instead of left
643           for better fix of bug 1273984, compiles pic16 rand.c
644
645 2007-02-12 Borut Razem <borut.razem AT siol.net>
646
647         * src/pic16/main.c: fixed pic16 standard library directory bug
648
649 2007-02-11 Maarten Brock <sourceforge.brock AT dse.nl>
650
651         * src/hc08/gen.c (genSwap): fix swap regression test
652
653 2007-02-10 Borut Razem <borut.razem AT siol.net>
654
655         * src/SDCCsymt.c: fixed bug #1159134: invalid duplicate declarations
656           with same scope
657         * support/regression/tests/bug-1654060.c: added regression test for
658           #1654060
659
660 2007-02-09 Bernhard Held <bernhard AT bernhardheld.de>
661
662         * src/mcs51/gen.c (genRet): fixed RFE 1652561: added code for bit to
663         bit moves in return statement
664
665 2007-02-09 Borut Razem <borut.razem AT siol.net>
666
667         * src/SDCC.y: fixed bug #1654060 typedef within function causes
668           syntax error
669
670 2007-02-07 Maarten Brock <sourceforge.brock AT dse.nl>
671
672         * src/mcs51/gen.c (aopPut): use direct name for pushing registers
673         * src/SDCCmain.c (parseCmdLine): dbuf_s path must be initialised
674
675 2007-02-07 Raphael Neider <rneider AT web.de>
676
677         * src/pic16/devices.inc,
678         * device/include/pic16/pic18fregs.h,
679         * device/include/pic16/pic18f[24][34]31.h,
680         * device/lib/pic16/libdev/pic18f[24][34]31.c,
681         * device/lib/pic16/pics.all: added 18f[24][34]31 family
682         * device/lib/pic16/libio/i2c.ignore: do not build i2c
683
684 2007-02-07 Maarten Brock <sourceforge.brock AT dse.nl>
685
686         * device/lib/printf_large.c (_print_format): fixed compare/assign bug, how
687           can this have lived here for so many years?
688         * src/SDCCicode.c (ast2iCode): return left instead of right for assignment,
689           fixes bug 1273984, see also patch 1645121, thanks Gnther Jehle
690         * support/regression/tests/bug1273984.c: new, added, thanks Gnther Jehle
691
692 2007-02-06 Bernhard Held <bernhard AT bernhardheld.de>
693
694         * src/SDCCBlock.c (addiCodeToeBBlock): fixed bug 1652207: GOTO icodes
695         appended by loop induction must be at the very end of the eBBlock
696
697 2007-02-05 Kevin Vigor
698
699         * src/ds390/gen.c, src/ds390/main.c: Address bug 1469393.
700
701 2007-02-05 Borut Razem <borut.razem AT siol.net>
702
703         * support/regression/fwk/lib/timeout.c: native WIN32 port,
704           implemented #1651830 Reg. tests: rewrite timeout.c to use WIN32 API
705
706 2007-02-03 Borut Razem <borut.razem AT siol.net>
707
708         * src/SDCC.y, src/SDCCmain.c, src/SDCCglobl.h, doc/sdccman.lyx:
709           applied patch #1646602 option to set default signedness of char to
710           unsigned, added -funsigned-char command line option,
711           thanks to Gunther Jehle
712         * device/lib/Makefile.in: added the -f option to rm so it doesn't
713           prompt for file deletion a few hundred times (especially the
714           subversion files, which have ro permissions so it asks for
715           confirmation), thanks to Simon McAuliffe;
716           added {} + option to find in order to remove multiple files from a
717           single rm commad
718
719 2007-02-02 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
720
721         * device/include/mcs51/SST89x5xRDx.h: Added.
722
723 2007-02-02 Raphael Neider <rneider AT web.de>
724
725         * src/pic/glue.c (emitSymbolSet): check sym->etype before use
726         * src/regression/Makefile: use --no-pcode-opt, ignore failing tests
727
728 2007-02-01 Raphael Neider <rneider AT web.de>
729
730         * src/pic/glue.c (picglue,emitSymbolSet,showAllMemmaps): emit the
731           config words again
732
733 2007-01-31 Borut Razem <borut.razem AT siol.net>
734
735         * support/Util/dbuf_string.h: added ATTRIBUTE_PRINTF to dbuf_printf()
736           if compiled with GCC. Thanks to Raphael Neider
737
738 2007-01-31 Raphael Neider <rneider AT web.de>
739
740         * src/pic/pcode.c (isValidIdChar,bankCompare): fuzzy matching of
741             operand names, handles name and (name + n) for all n,
742           (sameBank): restructured, also check bank allocation policy,
743         * src/pic/glue.c (emitPseudoStack): fixed printf arguments,
744           (pic14_operandsAllocatedInSameBank): check whether to operands
745             will be allocated into the same bank (i.e., section) to reduce
746             BANKSEL overhead, queried from pcode.c:sameBank,
747           (pic14printLocals): reintroduced clustering registers into a single
748             section: all compiler generated symbols will now reside in one
749             bank (per file), reducing BANKSEL overhead and code size,
750           (showAllMemmaps): use local dbuf where possible
751
752 2007-01-29 Raphael Neider <rneider AT web.de>
753
754         * src/pic/gen.c (popGetExternal): simplified, mark symbol as used,
755           (call_libraryfunc): retrieve/create symbol and mark as used,
756           (genFunction): mark defined functions as non-extern and add again
757            to code memmap for later output
758         * src/pic/glue.c (emitPseudoStack): put into own subroutine,
759           (pic14printLocals): reworked for new symbol emission,
760           (emitIfNew,pic14_constructAbsMap,emitIvalLabel,emitIvals,emitInitVal,
761           showAllMemmaps): reworked symbol output using dbufs, added handling
762             of string literals (still incomplete),
763           (picglue): removed symbol emission, moved into showAllMemmaps,
764           (emitSymbolSet): new workhorse for symbol output,
765           (pic14emitMaps,pic14printPublics,pic14printExterns): commented out
766
767 2007-01-29 Borut Razem <borut.razem AT siol.net>
768
769         * src/SDCCmain.c, src/SDCCutil.c: dbuf_splitFile: file extension
770           component contains the extension separator.
771
772 2007-01-28 Borut Razem <borut.razem AT siol.net>
773
774         * sim/ucsim/cmd.src/cmdutil.cc: NUL device is detected as CG_FILE type
775           on WIN32
776         * src/SDCCdwarf2.c, src/SDCCglobl.h, src/SDCCmain.c, src/SDCCutil.c,
777           src/SDCCutil.h, src/avr/gen.c, src/ds390/gen.c, src/hc08/gen.c,
778           src/mcs51/gen.c, src/pic/device.c, src/pic/gen.c, src/pic/pcode.c,
779           src/pic/pcodepeep.c, src/pic/ralloc.c, src/pic16/device.h,
780           src/pic16/gen.c, src/pic16/main.c, src/pic16/pcode.c,
781           src/pic16/pcodepeep.c, src/pic16/ralloc.c, src/xa51/gen.c,
782           src/z80/gen.c, support/Util/MySystem.c:
783           accept slash and backslash as directory separator on WIN32 and
784           Cygwin ports
785
786 2007-01-28 Raphael Neider <rneider AT web.de>
787
788         * src/pic16/devices.inc,
789         * device/include/pic16/pic18f[24][23]21.h,
790         * device/include/pic16/pic18fregs.h,
791         * device/lib/pic16/libdev/pic18f[24][23]21.c,
792         * device/lib/pic16/pics.all: added support for the 18f[24][23]21 family
793         * device/lib/pic16/libio/adc.ignore,
794         * device/lib/pic16/libio/i2c.ignore,
795         * device/lib/pic16/libio/usart.ignore: do not build I/O lib for new
796           family, as gputils do not yet support the devices
797         * device/lib/pic16/Makefile.subdir: ignore errors on install
798         * support/scripts/inc2h-pic16.pl: script to generate pic16 device
799           headers and libraries from gputils .inc files
800
801 2007-01-26 Paul Stoffregen <paul AT pjrc.com>
802
803         * doc/sdccman.lyx: add printf_fast_f precision limitation note
804
805 2007-01-26 Paul Stoffregen <paul AT pjrc.com>
806
807         * doc/sdccman.lyx: add printf benchmarks
808
809 2007-01-25 Paul Stoffregen <paul AT pjrc.com>
810
811         * device/lib/printf_fast.c: fix %c, char promoted to int
812         * device/lib/printf_tiny.c: fix %c, char promoted to int
813
814 2007-01-25 Paul Stoffregen <paul AT pjrc.com>
815
816         * device/lib/printf_fast.c: fix float overflow check, bug #1525093
817
818 2007-01-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
819
820         * support/regression/tests/swap.c: 64 bit hosts failed
821         * doc/sdccman.lyx: added preliminary mcs51 printf feature matrix
822
823 2007-01-25 Raphael Neider <rneider AT web.de>
824
825         * src/pic/pcode.c (sameBank,FixRegisterBanking): optimize banksels
826           based on absolute register address, patch by Alex Blond
827
828 2007-01-22 Raphael Neider <rneider AT web.de>
829
830         * src/pic/glue.c (pic14emitRegularMap): mark initialized symbols as
831           emitted, do not emit them again...
832
833 2007-01-22 Raphael Neider <rneider AT web.de>
834
835         * src/regression/bank1.c, src/regression/compare6.c,
836           src/regression/add.c: cosmetic changes
837         * src/pic/pcode.h: moved GPTRTAG_* here from gen.c
838         * src/pic/gen.c: fixed global zero and one,
839           (aopForSym): removed unued code,
840           (aopGet): assert aop is defined, check and use `index' of
841             pCodeImmd operands (fixes #1630908),
842         * src/pic/pcode.c (get_op): added output of generic pointer tag,
843           (register_reassign): prevent accidental register unification,
844           (ReuseReg): cosmetic changes (also above)
845         * src/pic/glue.c (pic14_constructAbsMap,pic14emitRegularMap,
846           pic14emitStaticSeg): do not emit initialized data,
847           (printIval*): replaced with working versions,
848           (pic14createInterruptVect,picglue): use idata for initialized data,
849             now init data should work in all modules (not only main()),
850         * device/lib/pic/libsdcc/idata.c: NEW, handle initialized data
851
852 2007-01-21 Borut Razem <borut.razem AT siol.net>
853
854         * sim/ucsim/configure.in: introduced macro DD_COPT_NO_IGNORE,
855           use -fPIC or -fpic if they are supported and not ignored
856         * src/SDCCval.c: fixed bug introduced by me in rev. #4577
857         * support/cpp2/libcpp/lex.c: fixed gcc 4.1.1 warnings
858
859 2007-01-20 Borut Razem <borut.razem AT siol.net>
860
861         * src/SDCC.lex, src/SDCCmain.c, sdc/SDCCglobl.h, doc/sdccman.lyx:
862           implemented RFE #1470316: allow "$" in variable names
863
864 2007-01-20 Raphael Neider <rneider AT web.de>
865
866         * device/include/pic/pic14regs.h: reverted accidental wipe of the file
867
868 2007-01-20 Raphael Neider <rneider AT web.de>
869
870         * device/lib/pic/libdev/devices.txt: device list for mkall.sh
871         * device/lib/pic/libdev/mkall.sh: script to rebuild all device libs
872         * device/lib/pic/libdev/pic14ports.txt: device PORT specifications
873         * support/scripts/inc2h.pl: fixed major .inc parsing bugs,
874           applied patch from Robert Tate (#1629249) to add PORTs and TRISs
875         * device/lib/pic/libdev/pic*.c,
876         * device/include/pic/pic*.h: regenerated with enhanced inc2h.pl
877         * device/lib/pic/libdev/Makefile.in: show progress
878
879 2007-01-19 Bernhard Held <bernhard AT bernhardheld.de>
880
881         * doc/sdccman.lyx: updated "configure options" for autoconf 2.6
882         * support/scripts/sdcc_cygwin_mingw32,
883         * support/scripts/sdcc_mingw32,
884         * support/scripts/build.mak: replaced --datadir by --datarootdir for
885         conformance with autoconf 2.6
886
887 2007-01-19 Raphael Neider <rneider AT web.de>
888
889         * src/pic/device.c (register_map): fixed list construction
890         * src/pic/gen.c (genDivOneByte,genModOneByte): accept result > 1 byte,
891           (genMod): removed case for genModbits,
892           (genModbits): removed as now unused/unimplemented
893         * src/pic/glue.c (picglue): prevent name clash with sources 'init.c'
894
895 2007-01-18 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
896
897         * support/regression/tests/swap.c: added in response to #1638622
898         * doc/sdccman.lyx: synced version, minor changes
899
900 2007-01-18 Borut Razem <borut.razem AT siol.net>
901
902         * SDCClabel.c: fixed bug #1638651: wrong linenumber presented in warning,
903           thanks to Gunther Jehle
904         * src/asm.c: don't die if the file drfined in #line couldn't be opened
905         * src/SDCC.lex, src/SDCCglobal.h, src/SDCCicode.c, src/SDCCsymt.c,
906           src/SDCCval.c: removed redundant definitions of currFname and mylineno;
907           use filename in lineno instead.
908         * SDCCast.c: removed MSVC warning C4018: '==' : signed/unsigned mismatch,
909           print the file name in ast_print()
910
911 2007-01-18 Borut Razem <borut.razem AT siol.net>
912
913         * support/Util/dbuf_string.c: removed (PTR) cast since it is not
914           defined in MSVC
915         * src/SDCC.lex: stringLiteral() returns const char pointer,
916           EOF detection in stringLiteral(), fixed asmbuf memory leak,
917           fixed column counting
918         * src/SDCCval.[ch]: constVal(), value *strVal() and charVal()
919           accept const char pointer as parameter
920         * src/SDCCdwarf2.c: corrected buffer size
921
922 2007-01-17 Borut Razem <borut.razem AT siol.net>
923
924         * support/Util/dbuf_string.c: fixed for amd64
925
926 2007-01-15 Borut Razem <borut.razem AT siol.net>
927
928         * src/pic16/ralloc.c, src/pic/ralloc.c, src/SDCC.y:
929           removed terminal symbol ELIPSIS, since it was never generated by the
930           lexer and it was wrongly used in parameter_identifier_list rule
931
932 2007-01-15 Raphael Neider <rneider AT web.de>
933
934         * doc/sdccman.lyx: updated PIC14/16 command line args, updated PIC14
935             code page and data banking description
936         * src/pic/genarith.c,
937         * src/pic/gen.h: removed bit arithmetic functions,
938             updated exit(1) to exit(EXIT_FAILURE)
939         * device/lib/pic16/libsdcc/stack/stack.S: default to 256 byte stack
940         * device/include/pic16/pic18f2455.h,
941         * device/lib/pic16/libdev/pic18f2455.c: added PORTD, LATD, LATE,
942             TRISD and TRISE, fixed/added some bit names
943         * device/lib/pic16/libdev/pic18f{2550,4550,4455}.c,
944         * device/include/pic16/pic18f{2550,4550,4455}.h: simply include
945             updated pic18f2455.{c,h} instead of duplicating them
946
947 2007-01-14 Borut Razem <borut.razem AT siol.net>
948
949         * as/mcs51/asnoice.c, as/hc08/asnoice.c: fixed bug #1447412:
950           Cannot debug files that contain spaces in the path name
951           by converting spaces in asm file name to underscores
952
953 2007-01-13 Borut Razem <borut.razem AT siol.net>
954
955         * doc/sdccman.lyx: fixed format errors
956
957 2007-01-10 Borut Razem <borut.razem AT siol.net>
958
959         * src/SDCC.lex, src/SDCCmain.c: fixed bug #1631895:
960           codeseg/constseg #pragma fail
961         * suppoprt/cpp2/Makefile.bcc: reenable Borland C compilation
962         * suppoprt/cpp2/configure.in, suppoprt/cpp2/libcpp/lex.c,
963           suppoprt/cpp2/Makefile.in, suppoprt/cpp2/sdcpp-opts,
964           suppoprt/cpp2/sdcpp.[ch]: house cleaning
965
966 2007-01-09 Borut Razem <borut.razem AT siol.net>
967
968         * get rid of diagnistic.[ch], pretty-print.[ch],
969           c-pretty-print.[ch], ... used just for error, warning, ...
970           message formatting
971         * suppoprt/cpp2/pretty-print.[ch], suppoprt/cpp2/diagnostic.[ch],
972           suppoprt/cpp2/diagnostic.def, suppoprt/cpp2/input.h,
973           suppoprt/cpp2/pretty-print.[ch]:
974           removed
975         * suppoprt/cpp2/Makefile.in, suppoprt/cpp2/opts.c,
976           suppoprt/cpp2/sdcpp-opts.c, suppoprt/cpp2/sdcpp.[ch],
977           suppoprt/cpp2/sdcpp.dsp:
978           changed
979
980 2007-01-08 Maarten Brock <sourceforge.brock AT dse.nl>
981
982         * device/lib/printf_large.c (output_float): removed recursion,
983           use smaller buffer on stack for mcs51,
984           fixed bug printing 1.96
985         * support/regression/tests/snprintf.c: added test
986
987 2007-01-07 Borut Razem <borut.razem AT siol.net>
988
989         * use dynamic memory buffers instead temporary files
990         * support/Util/dbuf_string.c, support/Util/dbuf_string.h:
991           added
992         * src/Makefile.in, src/SDCC.lex, src/SDCCast.c, src/SDCCast.h,
993           src/SDCCcse.c, src/SDCCglobl.h, src/SDCCglue.c, src/SDCCglue.h,
994           src/SDCCicode.c, src/SDCCicode.h, src/SDCCmain.c, src/SDCCmem.c,
995           src/SDCCmem.h, src/SDCCpeeph.c, src/SDCCpeeph.h, src/SDCCsymt.c,
996           src/SDCCsymt.h, src/SDCCutil.c, src/asm.c, src/asm.h, src/avr/gen.c,
997           src/avr/main.c, src/ds390/gen.c, src/ds390/main.c, src/hc08/gen.c,
998           src/hc08/main.c, src/izt/gen.c, src/mcs51/gen.c, src/mcs51/main.c,
999           src/pic/device.c, src/pic/gen.c, src/pic/glue.c, src/pic/main.c,
1000           src/pic/ralloc.c, src/pic16/gen.c, src/pic16/glue.c,
1001           src/pic16/main.c, src/pic16/ralloc.c, src/port.h, src/src.dsp,
1002           src/xa51/gen.c, src/xa51/main.c, src/z80/gen.c, src/z80/main.c,
1003           support/Util/dbuf.c, support/Util/dbuf.h:
1004           modified
1005         * .version, sdcc.spec: bumped version to 2.6.4
1006
1007 2007-01-07 Maarten Brock <sourceforge.brock AT dse.nl>
1008
1009         * src/port.h: added TARGET_Z80_LIKE macro
1010         * src/SDCCmain.c (linkEdit): use TARGET_Z80_LIKE,
1011           output PSEG location if --xram-loc or --xstack-loc was used
1012         * as/link/mcs51/lkarea.c (lnksect2): set segment address afterwards
1013
1014 2007-01-07 Maarten Brock <sourceforge.brock AT dse.nl>
1015
1016         * as/as_gbz80.dsp, as/z80/as_gbz80.dsp,
1017         * as/as_z80.dsp,   as/z80/as_z80.dsp,
1018         * as/asx8051.dsp,  as/mcs51/asx8051.dsp,
1019         * sdcc.dsw: moved project files into subdir
1020         * as/hc08/as_hc08.dsp,
1021         * as/hc08/Makefile.bcc,
1022         * as/hc08/Makefile.in,
1023         * as/mcs51/Makefile.bcc,
1024         * as/mcs51/Makefile.in,
1025         * as/z80/Makefile.bcc,
1026         * as/z80/Makefile.in,
1027         * as/link/mcs51/Makefile.bcc: use as/strcmpi.c
1028         * as/hc08/asm.h,
1029         * as/mcs51/asm.h,
1030         * as/z80/asm.h: added as_strcmpi() and as_strncmpi() prototypes
1031         * as/hc08/asmain.c,
1032         * as/hc08/assym.c,
1033         * as/mcs51/asmain.c,
1034         * as/mcs51/assym.c,
1035         * as/z80/assym.c: removed include "strcmpi.h"
1036         * as/hc08/strcmpi.c,
1037         * as/hc08/strcmpi.h,
1038         * as/mcs51/strcmpi.c,
1039         * as/mcs51/strcmpi.h,
1040         * support/Util/strcmpi.c,
1041         * support/Util/strcmpi.h: removed files
1042         * as/strcmpi.c: added as_strncmpi()
1043
1044 2007-01-05 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1045
1046         * sdcc.dsw: Added some dependencies on project config.dsp
1047
1048 2007-01-05 Maarten Brock <sourceforge.brock AT dse.nl>
1049
1050         * as/link/mcs51/lkarea.c (lnkarea2, lnksect2): replaced [di]seg_ap->a_addr
1051           with [di]ram_start to fix a regresion
1052
1053 2007-01-03 Bernhard Held <bernhard AT bernhardheld.de>
1054
1055         * configure.in: added missing mcs51 in status output
1056         * Makefile.in: add support/regression to SDCC_EXTRA to distclean this
1057         directory
1058         * debugger/mcs51/clean.mk (distclean): remove config.h
1059         * src/clean.mk (clean): remove SDCCy.c, SDCCy.h, SDCClex.c
1060         * support/cpp2/Makefile.in (clean): remove s-options, optionlist,
1061         options.h, s-options-h and options.c
1062         * support/cpp2/clean.mk: unused, removed
1063         * Makefile.common.in,
1064         * main_in.mk,
1065         * as/Makefile.in,
1066         * as/hc08/Makefile.in,
1067         * as/hc08/clean.mk,
1068         * as/mcs51/Makefile.in,
1069         * as/mcs51/clean.mk,
1070         * as/z80/clean.mk,
1071         * as/z80/conf.mk,
1072         * as/z80/Makefile.in,
1073         * as/z80/clean.mk,
1074         * as/link/Makefile.in,
1075         * as/link/hc08/Makefile.in,
1076         * as/link/hc08/clean.mk,
1077         * as/link/mcs51/Makefile.in,
1078         * as/link/mcs51/clean.mk,
1079         * as/link/z80/Makefile.in,
1080         * as/link/z80/clean.mk,
1081         * as/link/z80/conf.mk,
1082         * debugger/mcs51/Makefile.in,
1083         * debugger/mcs51/clean.mk,
1084         * device/include/Makefile.in,
1085         * device/lib/Makefile.in,
1086         * device/lib/mcs51/Makefile.in,
1087         * device/lib/pic/Makefile.in,
1088         * device/lib/pic/Makefile.common.in,
1089         * device/lib/pic/Makefile.subdir,
1090         * device/lib/pic/Makefile.rules,
1091         * device/lib/pic16/libio/Makefile.in,
1092         * device/lib/pic16/Makefile.subdir,
1093         * device/lib/pic16/libdev/Makefile.in,
1094         * device/lib/pic16/Makefile.rules,
1095         * device/lib/pic16/Makefile.common.in,
1096         * sim/ucsim/avr.src/Makefile.in,
1097         * sim/ucsim/main_in.mk,
1098         * sim/ucsim/cmd.src/Makefile.in,
1099         * sim/ucsim/doc/Makefile.in,
1100         * sim/ucsim/gui.src/Makefile.in,
1101         * sim/ucsim/gui.src/obsolete/portmon.src/Makefile.in,
1102         * sim/ucsim/gui.src/serio.src/Makefile.in,
1103         * sim/ucsim/hc08.src/Makefile.in,
1104         * sim/ucsim/libltdl/Makefile.in,
1105         * sim/ucsim/s51.src/Makefile.in,
1106         * sim/ucsim/sim.src/Makefile.in,
1107         * sim/ucsim/sim.src/conf.mk,
1108         * sim/ucsim/xa.src/Makefile.in,
1109         * sim/ucsim/z80.src/Makefile.in,
1110         * src/Makefile.in,
1111         * src/clean.mk,
1112         * src/port.mk,
1113         * support/cpp2/Makefile.in,
1114         * support/librarian/Makefile.in,
1115         * support/librarian/clean.mk,
1116         * support/makebin/Makefile.in,
1117         * support/makebin/clean.mk,
1118         * support/packihx/Makefile.in,
1119         * support/regression/Makefile.in,
1120         * support/regression/ports/ds390/spec.mk,
1121         * support/regression/ports/gbz80/spec.mk,
1122         * support/regression/ports/hc08/spec.mk,
1123         * support/regression/ports/mcs51/spec.mk,
1124         * support/regression/ports/mcs51-large/spec.mk,
1125         * support/regression/ports/mcs51-medium/spec.mk,
1126         * support/regression/ports/mcs51-xstack-auto/spec.mk,
1127         * support/regression/ports/pic14/spec.mk,
1128         * support/regression/ports/pic16/spec.mk,
1129         * support/regression/ports/mcs51-stack-auto/spec.mk,
1130         * support/regression/ports/ucz80/spec.mk,
1131         * support/regression/ports/xa51/spec.mk,
1132         * support/regression/ports/z80/spec.mk: fixed for autoconf 2.6x by
1133         adding a slash after $(top_builddir) and/or adding @datarootdir@
1134         * configure.in,
1135         * debugger/mcs51/configure.in,
1136         * device/lib/pic/configure.in,
1137         * device/lib/pic16/configure.in,
1138         * sim/ucsim/configure.in,
1139         * support/cpp2/configure.in,
1140         * support/packihx/configure.in: changed AC_PREREQ to 2.60
1141         * configure,
1142         * debugger/mcs51/configure,
1143         * device/lib/pic/configure,
1144         * device/lib/pic16/configure,
1145         * sim/ucsim/configure,
1146         * support/cpp2/configure,
1147         * support/packihx/configure: generated with autoconf 2.60
1148
1149 2007-01-02 Maarten Brock <sourceforge.brock AT dse.nl>
1150
1151         * as/link/hc08/lkihx.c (newArea),
1152         * as/link/hc08/lkrloc.c: renamed newArea() to ihxNewArea()
1153
1154 2007-01-02 Borut Razem <borut.razem AT siol.net>
1155
1156         * doc/sdccman.lyx: documented #pragma sdcc_hash
1157         * support/cpp2/sdcpp.c: allow_naked_hash (value of #pragma sdcc_hash)
1158           initialized to 0
1159         * support/cpp2/c-ppoutput.c: fixed warning: no newline at end of file
1160
1161 2007-01-01 Bernhard Held <bernhard AT bernhardheld.de>
1162
1163         * src/SDCCast.c (createDo): backPatchLabels() needs falseLabel in
1164         empty 'while'-loop to work correctly, see regression test 'while.c'
1165         * support/regression/tests/while.c: added
1166
1167 2007-01-01 Borut Razem <borut.razem AT siol.net>
1168
1169         * support/cpp2/libcpp/directives.c, support/cpp2/libcpp/identifiers.c,
1170           support/cpp2/libcpp/init.c, support/cpp2/libcpp/sdcpp-opts.c,
1171           support/cpp2/libcpp/sdcpp.c:
1172           sdcpp specific pragma/directive/option handling moved to sdcpp.c
1173         * doc/sdccman.lyx: reference to the GCC 4.1.1 CPP Manual
1174         * support/cpp2/libcpp/mkdeps.c: synchronized with GCC CPP 4.1.1
1175
1176 2006-12-31 Borut Razem <borut.razem AT siol.net>
1177
1178         * SDCPP synchronized with GCC CPP release version 4.1.1,
1179           currently the latest release:
1180         * support/cpp2/libcpp, support/cpp2/libcpp/include,
1181           support/cpp2/libcpp/include/cpp-id-data.h
1182           support/cpp2/libiberty/fopen_unlocked.c
1183           support/cpp2/libiberty/md5.c
1184           support/cpp2/md5.h
1185           support/cpp2/opt-functions.awk
1186           support/cpp2/opt-gather.awk
1187           support/cpp2/optc-gen.awk
1188           support/cpp2/opth-gen.awk:
1189           added
1190         * support/cpp2/Makefile.in, support/cpp2/auto-host_vc_in.h,
1191           support/cpp2/c-incpath.c, support/cpp2/c-incpath.h,
1192           support/cpp2/c-ppoutput.c, support/cpp2/c-pretty-print.c,
1193           support/cpp2/c-pretty-print.h, support/cpp2/cppdefault.c,
1194           support/cpp2/cppdefault.h, support/cpp2/diagnostic.c,
1195           support/cpp2/diagnostic.h, support/cpp2/except.h,
1196           support/cpp2/hwint.h, support/cpp2/input.h,
1197           support/cpp2/intl.h, support/cpp2/move-if-change,
1198           support/cpp2/opts.c, support/cpp2/opts.h,
1199           support/cpp2/output.h, support/cpp2/prefix.c,
1200           support/cpp2/prefix.h, support/cpp2/pretty-print.c,
1201           support/cpp2/pretty-print.h, support/cpp2/sdcpp-opts.c,
1202           support/cpp2/sdcpp.c, support/cpp2/sdcpp.dsp,
1203           support/cpp2/sdcpp.h, support/cpp2/sdcpp.opt,
1204           support/cpp2/sdcppa.dsp, support/cpp2/symcat.h,
1205           support/cpp2/version.c:
1206           modified
1207         * support/cpp2/libcpp/charset.c, support/cpp2/libcpp/directives.c,
1208           support/cpp2/libcpp/errors.c, support/cpp2/libcpp/expr.c,
1209           support/cpp2/libcpp/files.c, support/cpp2/libcpp/identifiers.c,
1210           support/cpp2/libcpp/include/cpplib.h, support/cpp2/libcpp/include/line-map.h,
1211           support/cpp2/libcpp/include/mkdeps.h, support/cpp2/libcpp/include/symtab.h,
1212           support/cpp2/libcpp/init.c, support/cpp2/libcpp/internal.h,
1213           support/cpp2/libcpp/lex.c, support/cpp2/libcpp/line-map.c,
1214           support/cpp2/libcpp/macro.c, support/cpp2/libcpp/mkdeps.c,
1215           support/cpp2/libcpp/symtab.c, support/cpp2/libcpp/system.h,
1216           support/cpp2/libcpp/traditional.c, support/cpp2/libcpp/ucnid.h,
1217           support/cpp2/libiberty/hashtab.c, support/cpp2/libiberty/hashtab.h:
1218           moved
1219         * support/cpp2/cppcharset.c, support/cpp2/cpperror.c,
1220           support/cpp2/cppexp.c, support/cpp2/cppfiles.c,
1221           support/cpp2/cpphash.c, support/cpp2/cpphash.h,
1222           support/cpp2/cppinit.c, support/cpp2/cpplex.c,
1223           support/cpp2/cpplib.c, support/cpp2/cpplib.h,
1224           support/cpp2/cppmacro.c, support/cpp2/cpptrad.c,
1225           support/cpp2/cppucnid.h, support/cpp2/hashtab.c,
1226           support/cpp2/hashtab.h, support/cpp2/hashtable.c,
1227           support/cpp2/hashtable.h, support/cpp2/line-map.c,
1228           support/cpp2/line-map.h, support/cpp2/mkdeps.c,
1229           support/cpp2/mkdeps.h, support/cpp2/options_vc_in.c,
1230           support/cpp2/options_vc_in.h, support/cpp2/opts.sh,
1231           support/cpp2/system.h:
1232           deleted / moved
1233
1234 2006-12-31 Borut Razem <borut.razem AT siol.net>
1235
1236         * configure.in, configure: fixed bug #1538756: configure dies if bison
1237           and flex are not installed, 2nd try
1238
1239 2006-12-30 Bernhard Held <bernhard AT bernhardheld.de>
1240
1241         * src/mcs51/peeph.def: renamed rule 400 to 500, moved rule 253.x to
1242         400.x for better code in RFE 899102
1243
1244 2006-12-30 Bernhard Held <bernhard AT bernhardheld.de>
1245
1246         * src/SDCCpeeph.c (deadMove),
1247         * src/port.h,
1248         * src/mcs51/peep.h: renamed 'op' by 'reg'
1249         * src/mcs51/peep.c (isFunc, isCallerSaveFunc): added,
1250         (scan4op): small change for removeDeadMove(), added support for
1251         'callee saves' and/or PACLL function calls,
1252         (removeDeadMove): added, removes superflous 'mov r%1,%2',
1253         (removeDeadPopPush): renamed from mcs51DeadMove(), common parts
1254         left in new dispatcher mcs51DeadMove()
1255         (mcs51DeadMove): dispatcher for removeDeadPopPush() and new
1256         removeDeadMove()
1257         * src/mcs51/peeph.def: added rule 301 removing superflous 'mov r%1,%2'
1258
1259 2006-12-30 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1260
1261         * support/cpp2/options_vc_in.h, support/cpp2/options_vc_in.c,
1262           support/cpp2/sdcppa.dsp: create 'options.h' and 'options.c' under MSVC.
1263
1264 2006-12-30 Borut Razem <borut.razem AT siol.net>
1265
1266         * support/cpp2/spacs.h: deleted from svn
1267         * configure.in, configure: fixed bug #1538756: configure dies if bison
1268           and flex are not installed
1269
1270 2006-12-29 Maarten Brock <sourceforge.brock AT dse.nl>
1271
1272         * src/z80/gen.c (assignResultValue): fixed bug when registers overlap,
1273           with this z80 passes printf float test when enabled
1274         * support/regression/tests/bug1057979.c: typo disabled ds390 float test
1275
1276 2006-12-28 Borut Razem <borut.razem AT siol.net>
1277
1278         * support/cpp2/config.in, support/cpp2/configure.in,
1279           support/cpp2/configure, support/cpp2/Makefile.in:
1280           fix for the solaris build
1281
1282 2006-12-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1283
1284         * src/SDCC.y (type_specifier2, pointer),
1285         * src/SDCCsymt.h,
1286         * src/SDCCsymt.c (mergeSpec, checkSClass),
1287         * support/Util/SDCCerr.c,
1288         * support/Util/SDCCerr.h: Parse and validate the restrict keyword
1289         * support/valdiag/valdiag.py: Allow test cases to specify
1290           required language standard
1291         * support/valdiag/tests/restrict.c: New file to test restrict keyword
1292         * support/valdiag/tests/tentdecl.c: Supress empty source file error
1293
1294 2006-12-27 Borut Razem <borut.razem AT siol.net>
1295
1296         * support/cpp2/cppmain.c, support/cpp2/mbchar.[ch]: removed
1297         * support/cpp2/libiberty/Makefile.in, support/cpp2/libiberty/sdcpp.dsp:
1298           mbchar removed
1299         * support/cpp2/libiberty/getpwd.c, support/cpp2/sdcpp.h:
1300           fixed for borland C
1301         * support/cpp2/libiberty/Makefile.bcc: updated
1302         * src/pic16/main.c: fixed #pragma udata handling
1303         * src/mcs51/mcs51.dsp: added peep.[ch] to the project
1304
1305 2006-12-26 Bernhard Held <bernhard AT bernhardheld.de>
1306
1307         * src/SDCCpeeph.c: made labelHashEntry global,
1308         made pcDistance, FBYNAME static,
1309         (pcDistance): made static, use isComment and isLabel,
1310         (deadMove): added,
1311         (getLabelRef): added, extracted from labelRefCount(),
1312         (labelRefCount): use new getLabelRef(),
1313         (callFuncByName): made static, added deadMove,
1314         use isComment and isLabel,
1315         (newPeepRule): made static, set isLabel,
1316         (isLabelDefinition): added parameter isPeepRule to allow '%' in
1317         labels from peephole rules,
1318         (buildLabelRefCountHash): speed up by running isLabelDefinition() only
1319         when isComment or isLabel is set
1320         * src/SDCCpeeph.h: added "isLabel" and "visited" to struct lineNode,
1321         added labelHashEntry, isLabelDefinition, labelHash and getLabelRef
1322         to make them global
1323         * src/mcs51/peep.h: added
1324         * src/mcs51/peep.c: added, implements mcs51DeadMove()
1325         * src/port.h: added peep->deadMove to port structure
1326         * src/mcs51/main.c: initialize peep->deadMove with mcs51DeadMove
1327         * src/mcs51/peeph.def: renumbered rule 300 to 400, added new rule 300
1328         deadMove, finally removed no. 1 and 2
1329         * src/mcs51/gen.c,
1330         * src/pic/gen.c,
1331         * src/z80/gen.c,
1332         * src/z80/ralloc.c,
1333         * src/pic16/gen.c,
1334         * src/ds390/gen.c,
1335         * src/hc08/gen.c: mark lines with isComment or isLabel
1336         * sim/ucsim/s51.src/uc390hw.cc: don't waist 65535 ticks before CKRDY
1337         * .version,
1338         * sdcc.spec: bumped version to 2.6.3
1339
1340 2006-12-26 Borut Razem <borut.razem AT siol.net>
1341
1342         * support/cpp2/Makefile.in: added dependency on options.h
1343         * configure: regenerated
1344         * support/cpp2/sdcpp.opt, support/cpp2/move-if-change: svn:eol-style native
1345         * support/cpp2/Makefile.in: added vasprintf.c
1346
1347 2006-12-25 Borut Razem <borut.razem AT siol.net>
1348
1349         * SDCPP synchronized with GCC CPP release version 3.4.6,
1350           the latest release before 4.x:
1351         * support/cpp2/Makefile.in, support/cpp2/config.h,
1352           support/cpp2/configure, support/cpp2/configure.in,
1353           support/cpp2/cppdefault.c, support/cpp2/cppdefault.h,
1354           support/cpp2/cpperror.c, support/cpp2/cppexp.c,
1355           support/cpp2/cppfiles.c, support/cpp2/cpphash.c,
1356           support/cpp2/cpphash.h, support/cpp2/cppinit.c,
1357           support/cpp2/cpplex.c, support/cpp2/cpplib.c,
1358           support/cpp2/cpplib.h, support/cpp2/cppmacro.c,
1359           support/cpp2/cpptrad.c, support/cpp2/except.h,
1360           support/cpp2/hashtable.c, support/cpp2/hashtable.h,
1361           support/cpp2/hwint.h, support/cpp2/intl.h,
1362           support/cpp2/line-map.c, support/cpp2/line-map.h,
1363           support/cpp2/mkdeps.c, support/cpp2/mkdeps.h,
1364           support/cpp2/output.h, support/cpp2/prefix.c,
1365           support/cpp2/prefix.h, support/cpp2/sdcpp.dsp,
1366           support/cpp2/system.h, support/cpp2/version.c:
1367           modified
1368         * support/cpp2/c-incpath.c, support/cpp2/c-incpath.h,
1369           support/cpp2/c-ppoutput.c, support/cpp2/c-pretty-print.c,
1370           support/cpp2/c-pretty-print.h, support/cpp2/cppcharset.c,
1371           support/cpp2/cppucnid.h, support/cpp2/diagnostic.c,
1372           support/cpp2/diagnostic.def, support/cpp2/diagnostic.h,
1373           support/cpp2/hashtab.c, support/cpp2/hashtab.h,
1374           support/cpp2/input.h, support/cpp2/libiberty/getpwd.c,
1375           support/cpp2/libiberty/vasprintf.c, support/cpp2/libiberty/xmemdup.c,
1376           support/cpp2/move-if-change, support/cpp2/opts.c,
1377           support/cpp2/opts.h, support/cpp2/opts.sh,
1378           support/cpp2/pretty-print.c, support/cpp2/pretty-print.h,
1379           support/cpp2/sdcpp.opt, support/cpp2/sdcpp-opts.c,
1380           support/cpp2/win32, support/cpp2/win32/dirent.c,
1381           support/cpp2/win32/dirent.h:
1382           added
1383         * support/cpp2/sdcpp.c: renamed from sdcppmain.c
1384         * support/cpp2/sdcpp.h: renamed from sdcc.h
1385         * sdcppinit.c: deleted
1386
1387 2006-12-23 Borut Razem <borut.razem AT siol.net>
1388
1389         * support/cpp2/cpphash.h, support/cpp2/cpplex.c,
1390           support/cpp2/cpplib.[ch], support/cpp2/sdcppinit.c, doc/sdccman.lyx,
1391           preproc.c: an other try to fix bug #982435: introduced
1392           -pedantic-parse-number command line option and pedantic_parse_number
1393           pragma
1394
1395 2006-12-21 Maarten Brock <sourceforge.brock AT dse.nl>
1396
1397         * as/link/mcs51/lkarea.c (lnkarea2): handle absolute areas, restructured
1398            BSEG handling,
1399           (lnksect2): use --data-loc and --idata-loc as lower bound for ramstart,
1400            corrected overlayed areax addresses, warn about memory overlaps
1401         * as/mcs51/asmain.c (asmbl): create a new area for every .org directive
1402         * src/avr/main.c,
1403         * src/ds390/main.c,
1404         * src/hc08/main.c,
1405         * src/mcs51/main.c,
1406         * src/pic16/main.c,
1407         * src/pic/main.c,
1408         * src/xa51/main.c,
1409         * src/z80/main.c,
1410         * src/port.h: added xabs_name and iabs_name
1411         * src/SDCCglue.c (emitRegularMap): allocate for absolutes with initializer
1412           (glue, emitMaps): create and emit maps d_abs and i_abs
1413         * src/SDCCglue.h: cosmetic changes
1414         * src/SDCCmain.c (setDefaultOptions): idata can start below 0x80
1415         * src/SDCCmem.h,
1416         * src/SDCCmem.c (initMem): added x_abs, i_abs and d_abs
1417           (allocDefault): put absolute, initialized globals in them
1418         * support/regression/tests/absolute.c: added absolute bdata test
1419         * device/lib/printf_large.c (output_float): moved fpBuffer to stack/xdata
1420
1421 2006-12-20 Borut Razem <borut.razem AT siol.net>
1422
1423         * support/cpp2/cpphash.h, support/cpp2/cpplex.c: fixed bug #982435
1424         * support/regression/tests/preproc.c: renamed from bug-1351710.c,
1425           added regression test for bug #982435
1426
1427 2006-12-18 Borut Razem <borut.razem AT siol.net>
1428
1429         * src/SDCCutil.c: fixed a bug in (get_pragma_token)
1430         * src/pic16/main.c, src/SDCC.lex, src/z80/main.c:
1431           small cosmetic changes
1432         * src/SDCC.lex: (stringLiteral) fixed bug #1351710
1433         * support/regression/tests/bug-1351710.c: added regression test
1434
1435 2006-12-18 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1436
1437         * doc/sdccman.lyx: added the long missed iCode table
1438           "<where is figure II?>", added links to wiki
1439
1440 2006-12-17 Borut Razem <borut.razem AT siol.net>
1441
1442         * doc/sdccman.lyx, src/pic16/main.c, src/pic/main.c, src/port.h,
1443           src/SDCC.lex, src/SDCCutil.[ch], src/z80/main.c,
1444           support/Util/SDCCerr.[ch]: removed deprecated pragmas,
1445           unified table driven pragma handling, pragma argument type checking
1446         * support/Util/dbuf.c: (dbuf_set_size) allow to set size equal to the
1447           current one - version 1.1.3
1448         * src/SDCCmain.c: (setParseWithComma) substituted brain damaged strtok
1449
1450 2006-12-13 Raphael Neider <rneider AT web.de>
1451
1452         * src/pic/device.h: removed AssignedMemory structure and macros
1453         * src/pic/device.c: removed global finalMapping (linker assigns
1454             memory locations),
1455           (register_map): add SFRs to remembered memRanges
1456           (addMemRange,isSFR,dump_map,dump_sfr,mapRegister,assignRegister,
1457           assignFixedRegisters,assignRelocatableRegisters): removed,
1458           (setMaxRAM,validAddress): adapted accordingly,
1459           (pic14_hasSharebank,pic14_getSharedStack): only report and use
1460             reasonably sized sharebanks,
1461         * src/pic/ralloc.c (writeUsedRegs): stripped down (remove?),
1462           (allDefsOutOfRange): removed unused code,
1463         * src/pic/main.c (_process_pragma): removed memmap/maxram pragma
1464             handling
1465         * src/pic/pcode.c (register_reassign): removed recursion warning,
1466             fired far too often,
1467         * src/pic/glue.c (emitSymbolToFile,pic14_constructAbsMap): modified
1468             to use existing pic14_stringInSet() to avoid duplicate symbols,
1469             tidied up the code a bit,
1470           (pic14printLocals): added in symmetry to printExterns, replaces
1471             writeUsedRegs more or less,
1472           (picglue): call new pic14_printLocals(),
1473         * device/include/pic/pic*.h: removed #pragma memmap directives,
1474             information gathered from include/pic/pic14devices.txt
1475         * support/scripts/inc2h.pl: do not emit #pragma memmap lines
1476
1477 2006-12-10 Maarten Brock <sourceforge.brock AT dse.nl>
1478
1479         * device/include/mcs51/C8051F520.h: fixed buggy CPT0MX
1480
1481 2006-12-11 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1482
1483         * device/include/mcs51/cc2430.h: fixed missing ';'
1484
1485 2006-12-10 Raphael Neider <rneider AT web.de>
1486
1487         * device/lib/pic16/libc/stdio/vfprintf.c,
1488         * device/lib/pic16/libc/stdio/printf_small.c,
1489         * device/lib/pic16/libc/stdio/printf_timy.c: pop int from stack for
1490           char arguments, as char varargs are cast to int by the caller,
1491           hopefully fixes #1604915 (other device libraries are still affected)
1492
1493 2006-12-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1494
1495         * src/mcs51/ralloc.c (packRegsForAssign),
1496         * src/hc08/ralloc.c (packRegsForAssign): fixed bug #1605880
1497
1498 2006-12-10 Maarten Brock <sourceforge.brock AT dse.nl>
1499
1500         * device/include/malloc.h: removed init_dynamic_memory
1501         * device/lib/malloc.c: made init_dynamic_memory static and automatically
1502           call it once from malloc. Also use _sdcc_heap[] from _heap.c
1503         * device/lib/_heap.c: new, added, contains _sdcc_heap[]
1504         * device/lib/libsdcc.lib,
1505         * device/lib/Makefile.in,
1506         * support/regression/ports/mcs51-xstack-auto/spec.mk: added _heap.c
1507         * doc/sdccman.lyx: documented use of new _heap.c
1508         * support/regression/tests/malloc.c: removed init_dynamic_memory
1509         * src/cdbFile.c(spacesToUnderscores): new function,
1510           (cdbWriteEndFunction, cdbWriteCLine): use spacesToUnderscores, fixes bug
1511           1068030
1512         * device/include/tinibios.h: removed defines for putchar and getchar
1513         * device/lib/ds390/Makefile.in: added putchar.c
1514         * device/lib/ds390/putchar.c: new, added, fixes bug 1465671
1515
1516 2006-12-09 Borut Razem <borut.razem AT siol.net>
1517
1518         * support/cpp2/sdcc.h: prevent multiple inclusion
1519         * support/cpp2/options.h: deleted
1520
1521 2006-12-08 Borut Razem <borut.razem AT siol.net>
1522
1523         * support/cpp2/sdcc.h: removed x*alloc() macros
1524         * support/cpp2/libiberty.h: uncommented out x*alloc() declarations
1525         * support/cpp2/Makefile.bcc, support/cpp2/Makefile.in,
1526           support/cpp2/sdcpp.sdc: x*alloc files added to the project
1527         * support/cpp2/system.h: moved #include "sdcc.h"
1528         * support/cpp2/libiberty/xexit.c, support/cpp2/libiberty/xmalloc.c,
1529           support/cpp2/libiberty/xstrdup.c, support/cpp2/libiberty/xstrerror.c:
1530           added
1531         * support/cpp2/sdcppinit.c: added -isysroot, -fsigned-char,
1532           -funsigned-char options
1533         * support/cpp2/sdcppmain.c: fixed bug 1611411
1534
1535 2006-12-07 Borut Razem <borut.razem AT siol.net>
1536
1537         * support/cpp2/cpplib.c: reverted sdcpp special handling of _Pragma()
1538           directive
1539
1540 2006-12-06 Maarten Brock <sourceforge.brock AT dse.nl>
1541
1542         * src/SDCCsymt.c (addDecl): fixed bug 1609244
1543         * src/SDCCmain.c (linkEdit): fixed bug 1609279
1544         * doc/sdccman.lyx,
1545         * .version: bumped to 2.6.2 because a) it's been a while
1546           b) the linker sources have moved c) the preprocessor is upgraded
1547
1548 2006-12-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1549
1550         * support/regression/tests/snprintf.c: some checks
1551         * lib/src/printf_large.c: %bc: read char instead of int from stack
1552
1553 2006-12-03 Maarten Brock <sourceforge.brock AT dse.nl>
1554
1555         * device/include/mcs51/cc2430.h: inserted _XPAGE
1556
1557 2006-12-02 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1558
1559         * device/include/mcs51/cc2430.h: added
1560
1561 2006-12-02 Maarten Brock <sourceforge.brock AT dse.nl>
1562
1563         * device/include/asm/default/features.h,
1564         * device/include/asm/ds390/features.h,
1565         * device/include/mcs51/at89s53.h,
1566         * device/include/ser.h,
1567         * device/include/ser_ir.h,
1568         * device/include/serial.h: changed keywords to double underscore variants,
1569           fixes bug 1590261 some more, thanks Steven Borley
1570
1571 2006-12-01 Raphael Neider <rneider AT web.de>
1572
1573         * src/pic/pcode.c (register_reassign): do not crash on recursive code
1574           but emit warning (recursion is not supported for pic14)
1575
1576 2006-11-30 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1577
1578         * src/mcs51/peeph.def: added 101.a,b (moves to int/long xdata)
1579         * doc/sdccman.lyx: various small changes, acknowledged Sourceforge
1580
1581 2006-11-30 Raphael Neider <rneider AT web.de>
1582
1583         * src/pic/device.c (dump_sfr): always emit symbols
1584         * src/pic/glue.c (pic14printPublics): fixed typo
1585
1586 2006-11-30 Raphael Neider <rneider AT web.de>
1587
1588         * src/pic/device.c (create_pic,ram_map): add memRange entries to PIC
1589           (pic14_getSharebankSize, pic14_getSharebankAddress): replaced with
1590           (pic14_hasSharebank,pic14_isShared,pic14_allRAMShared,
1591            pic14_getSharedStack): NEW, evaluate the memRange entries to locate
1592            a sharebank, use a non-shared bank for the stack if none available
1593         * src/pic/device.h (struct memRange): added linked list next field,
1594           added prototypes for above functions
1595         * src/pic/ralloc.c (initStack): handle shared and banked stacks,
1596           (typeRegWithIdx): accept fixed and unfixed stack registers
1597         * src/pic/pcode.c (pCodeInitRegisters): use new functions to create
1598           the stack, handle shared and banked stack (except for WSAVE),
1599           (insertBankSel): removed useless optimization (will never fire),
1600           (FixRegisterBanking): added optimization for devices with only one
1601           possibly aliased bank of memory, like 16f84
1602         * src/pic/glue.c (pic14_constructAbsMap): back to udata_ovr, as some
1603           devices have no SHAREBANK in the linker script
1604         * device/include/pic/pic14devices.txt: documented memmap
1605         * device/lib/pic/libdev/Makefile.in: removed --stack-loc again
1606
1607 2006-11-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1608
1609         * src/hc08/gen.c (transferRegReg, loadRegFromAop, forceStackedAop,
1610           storeRegToAop, freeAsmop, genPlusIncr, genPlus, genPointerGetSetOfs,
1611           genAnd, genOr, genXor, genLeftShiftLiteral, genRightShiftLiteral,
1612           genhc08Code): switched most of the D (debug) macros to DD (detailed
1613           debug) macros to better control clutter in the generated .asm file.
1614         * src/hc08/gen.c: (forceStackedAop, genUminus, genLeftShift,
1615           genRightShift): fixed bug with non-constant bit shift stored to
1616           a volatile result (SF Open Discussion forum thread #1616749).
1617           Single byte case is not yet optimized.
1618
1619 2006-11-28 Maarten Brock <sourceforge.brock AT dse.nl>
1620
1621         * device/include/asm/mcs51/features.h,
1622         * device/include/malloc.h,
1623         * device/include/stdio.h: changed keywords to double underscore variants,
1624           fixes bug 1590261
1625
1626 2006-11-27 Borut Razem <borut.razem AT siol.net>
1627
1628         * support/cpp2/cppexp.c, support/cpp2/hashtable.h,
1629           support/cpp2/Makefile.in, support/cpp2/cppfiles.c,
1630           support/cpp2/output.h, support/cpp2/cppinit.c,
1631           support/cpp2/cpplib.c, support/cpp2/cpplib.h,
1632           support/cpp2/Makefile.bcc, support/cpp2/cpphash.c,
1633           support/cpp2/cppdefault.c, support/cpp2/system.h,
1634           support/cpp2/cpphash.h, support/cpp2/cpplex.c,
1635           support/cpp2/cppdefault.h, support/cpp2/mbchar.c,
1636           support/cpp2/prefix.c, support/cpp2/except.h,
1637           support/cpp2/hwint.h, support/cpp2/cppmacro.c,
1638           support/cpp2/line-map.h, support/cpp2/sdcpp.dsp,
1639           support/cpp2/sdcc.h, support/cpp2/mkdeps.c,
1640           support/cpp2/version.c, support/cpp2/cppmain.c,
1641           support/cpp2/version.h, support/cpp2/hashtable.c,
1642           support/cpp2/cpperror.c:
1643           synchronized with GCC CPP release version 3.3.6,
1644           the latest where cppmain.c still exists.
1645         * support/cpp2/cpptrad.c, support/cpp2/sdcppmain.c,
1646           support/cpp2/sdcppinit.c: added
1647
1648 2006-11-27 Borut Razem <borut.razem AT siol.net>
1649
1650         * support/cpp2/cpplex.c:
1651           fixed _asm ... _endasm handling bug, introduce with GCC CPP
1652           synchronization
1653         * support/cpp2/cpplib.c: removed definitions of unused variables
1654
1655 2006-11-26 Borut Razem <borut.razem AT siol.net>
1656
1657         * support/cpp2/libiberty.h: commented out x*alloc() declarations
1658           since they are redefined by macros in support/cpp2/sdcc.h
1659         * support/cpp2/sdcc.h: x*alloc macro redefinition
1660
1661 2006-11-25 Borut Razem <borut.razem AT siol.net>
1662
1663         * support/cpp2/cppexp.c, support/cpp2/hashtable.h,
1664           support/cpp2/configure, support/cpp2/Makefile.in,
1665           support/cpp2/cppfiles.c, support/cpp2/output.h,
1666           support/cpp2/cppinit.c, support/cpp2/cpplib.c,
1667           support/cpp2/config.h, support/cpp2/cpplib.h,
1668           support/cpp2/Makefile.bcc, support/cpp2/cpphash.c,
1669           support/cpp2/cppdefault.c, support/cpp2/config.in,
1670           support/cpp2/system.h, support/cpp2/cpplex.c,
1671           support/cpp2/cpphash.h, support/cpp2/mbchar.c,
1672           support/cpp2/cppdefault.h, support/cpp2/prefix.c
1673           support/cpp2/hwint.h, support/cpp2/mbchar.h,
1674           support/cpp2/prefix.h, support/cpp2/cppmacro.c,
1675           support/cpp2/configure.in, support/cpp2/intl.h,
1676           support/cpp2/sdcpp.dsp, support/cpp2/acconfig.h,
1677           support/cpp2/sdcc.h, support/cpp2/mkdeps.c,
1678           support/cpp2/version.c, support/cpp2/cppmain.c,
1679           support/cpp2/ansidecl.h, support/cpp2/libiberty.h,
1680           support/cpp2/hashtable.c, support/cpp2/aclocal.m4,
1681           support/cpp2/cpperror.c,
1682           support/cpp2/libiberty/safe-ctype.c,
1683           support/cpp2/libiberty/safe-ctype.h,
1684           support/cpp2/libiberty/splay-tree.c,
1685           support/cpp2/libiberty/obstack.c,
1686           support/cpp2/libiberty/lbasename.c,
1687           support/cpp2/libiberty/splay-tree.h,
1688           support/cpp2/libiberty/obstack.h:
1689           synchronized with GCC CPP release version 3.2.3,
1690           the latest before integration of cpp into gcc
1691         * support/cpp2/except.h, support/cpp2/line-map.c,
1692           support/cpp2/line-map.h,
1693           support/cpp2/libiberty/hex.c,
1694           support/cpp2/libiberty/concat.c,
1695           support/cpp2/libiberty/filenames.h: added
1696         * support/cpp2/intl.c: deleted
1697
1698 2006-11-24 Borut Razem <borut.razem AT siol.net>
1699
1700         * src/SDCC.y: enabled compilation of empty source file
1701         * support/Util/SDCCerr.[ch]: added sdcc warning 190 -
1702           "ISO C forbids an empty source file"
1703         * device/lib/_startup.c, device/lib/printf_tiny.c: disable warning 190
1704           if all the code is ifdefed out.
1705
1706 2006-11-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1707
1708         * src/hc08/gen.c (genPcall): fix for bug #1601032
1709
1710 2006-11-23 Maarten Brock <sourceforge.brock AT dse.nl>
1711
1712         * device/include/mcs51/c8051f000.h, device/include/mcs51/C8051F000.h,
1713         * device/include/mcs51/c8051f018.h, device/include/mcs51/C8051F018.h,
1714         * device/include/mcs51/c8051f020.h, device/include/mcs51/C8051F020.h,
1715         * device/include/mcs51/c8051f040.h, device/include/mcs51/C8051F040.h,
1716         * device/include/mcs51/c8051f060.h, device/include/mcs51/C8051F060.h,
1717         * device/include/mcs51/c8051f120.h, device/include/mcs51/C8051F120.h,
1718         * device/include/mcs51/c8051f200.h, device/include/mcs51/C8051F200.h,
1719         * device/include/mcs51/c8051f300.h, device/include/mcs51/C8051F300.h,
1720         * device/include/mcs51/c8051f310.h, device/include/mcs51/C8051F310.h,
1721         * device/include/mcs51/c8051f320.h, device/include/mcs51/C8051F320.h,
1722         * device/include/mcs51/c8051f326.h, device/include/mcs51/C8051F326.h,
1723         * device/include/mcs51/c8051f330.h, device/include/mcs51/C8051F330.h,
1724         * device/include/mcs51/c8051f340.h, device/include/mcs51/C8051F340.h,
1725         * device/include/mcs51/c8051f350.h, device/include/mcs51/C8051F350.h,
1726         * device/include/mcs51/c8051f410.h, device/include/mcs51/C8051F410.h:
1727           Renamed to all upper case as per the standard set by SiLabs
1728
1729 2006-11-23 Maarten Brock <sourceforge.brock AT dse.nl>
1730
1731         * device/include/mcs51/C8051F520.h: new, added
1732         * device/include/mcs51/compiler.h: added link about predefined macros
1733
1734 2006-11-23 Raphael Neider <rneider AT web.de>
1735
1736         * src/regression/Makefile: add -L path to fresh library
1737         * src/regression/simulate: emphasize FAILED output
1738         * src/regression/create_stc: output _failures from gpsim
1739         * src/regression/compare4.c,
1740         * src/regression/rotate6.c: fixed char literals,
1741           all compile, all run =8-D
1742
1743         * src/pic/pcode.h: added isPCASMDIR macro
1744         * src/pic/gen.c (genAnd): fixed bit offset
1745         * src/pic/ralloc.c (allocNewDirReg,allocDirReg,allocRegByName,
1746           packBits): unified register numbering schemes,
1747           (newReg): do not insert stack registers into hash table,
1748           (initStack): unpinned pseudo stack, simplified,
1749           (typeRegWithIdx): fixed retrieval of stack registers,
1750         * src/pic/pcode.c (addpCodeComment,sameBank): added,
1751           (pCodeReplace): removed invalid assertion,
1752           (insertPCodeInstruction): fixed newly added labels,
1753           (insertBankSwitch,BankSelect,IsBankChange,DoBankSelect,
1754           FixRegisterBankingInFlow,compareBankFlow,FixBankFlow,
1755           DumpFlow): removed unsed (broken?) code,
1756           (insertBankSel): prevent STATUS from being BANKSELed,
1757           (FixRegisterBanking): rewritten from scratch, implemented generic
1758             optimizations (suppress BANKSELs to same register and to registers
1759             present in all banks),
1760           (AnalyzeBanking): update flow after BANKSELection
1761
1762         * src/pic/glue.c (pic14_constructAbsMap): emit pseudo stack in
1763             sharebank, let linker place it, mark STKxx symbols as emitted
1764
1765 2006-11-21 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1766
1767         * src/regression/arrays.c,
1768         * src/regression/bank1.c,
1769         * src/regression/bool2.c,
1770         * src/regression/compare7.c,
1771         * src/regression/compare8.c,
1772         * src/regression/compare9.c,
1773         * src/regression/compare10.c,
1774         * src/regression/configword.c,
1775         * src/regression/for.c,
1776         * src/regression/mult1.c,
1777         * src/regression/pointer1.c,
1778         * src/regression/rotate6.c,
1779         * src/regression/string1.c,
1780         * src/regression/struct1.c,
1781         * src/regression/Makefile: make PIC14 regression tests run again
1782           (3 fail, 6 won't compile)
1783
1784 2006-11-21 Raphael Neider <rneider AT web.de>
1785
1786         * device/include/pic16/pic18f4550.h,
1787         * device/include/pic16/pic18f4455.h,
1788         * device/lib/pic16/libdev/pic18f4550.c,
1789         * device/lib/pic16/libdev/pic18f4455.c: fixed #1578591 and #1595144
1790         * configure.in: removed superfluous closing bracket
1791
1792 2006-11-21 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1793
1794         * device/lib/expf.c: Fixed bug 1599523: result of expf(x) is
1795           always positive.
1796
1797 2006-11-21 Raphael Neider <rneider AT web.de>
1798
1799         * src/pic/device.{c,h}: added pic14_getPIC()
1800         * src/pic/gen.c (continueIfTrue,jumpIfTrue): added PIC code,
1801           (genAnd): added PIC code for one case, fixes #1597044
1802         * src/pic/pcode.c (BankSelect): Ohoh, added generic optimization for
1803           SFRs that are present in all banks (e.g., STATUS)
1804
1805 2006-11-20 Raphael Neider <rneider AT web.de>
1806
1807         * src/pic/pcode.c: changed inverted ops for DECFSZ/DECFSZW and
1808           INCFSZ/INCFSZW and declared them as changing Z bit,
1809           (insertPCodeInstruction): correctly invert the above instructions,
1810           fixes #1599333,
1811           (DoBankSelect): don't panic on po_immediates
1812
1813 2006-11-14 Maarten Brock <sourceforge.brock AT dse.nl>
1814
1815         * as/link/aslink.h,
1816         * as/link/mcs51/lkihx.c (newArea),
1817         * as/link/mcs51/lkrloc.c: renamed newArea() to ihxNewArea()
1818         * as/link/mcs51/lkihx.c (ihx): output reset vector as start address
1819
1820 2006-11-11 Raphael Neider <rneider AT web.de>
1821
1822         * src/pic/pcode.c (newpCodeOpBit): search SymbolTab for referenced
1823           bitfield symbols, fixes #1579535 (once more...).
1824
1825 2006-11-09 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1826
1827         * support/regression/generate-cases.py,
1828         * support/regression/fwk/include/testfwk.h,
1829         * support/regression/fwk/lib/testfwk.c: used code pointers,
1830           (about 50kByte less code generated for mcs51)
1831
1832 2006-11-06 Borut Razem <borut.razem AT siol.net>
1833
1834         * debugger/mcs51/acinclude.m4, debugger/mcs51/aclocal.m4,
1835           debugger/mcs51/configure: fixed failed check because the function
1836           rl_function_of_keyseq isn't in Readline 5.2. Thanks to Ilya Goldberg
1837           who submitted the patch for gpsim.
1838         * debugger/mcs51/configure.in: removed the result message
1839         * debugger/mcs51/Makefile.in: fixed the config.status warning
1840           "... seems to ignore the --datarootdir setting"
1841
1842 2006-11-03 Maarten Brock <sourceforge.brock AT dse.nl>
1843
1844         * device/include/mcs51/c8051f020.h,
1845         * device/include/mcs51/c8051f040.h,
1846         * device/include/mcs51/c8051f060.h,
1847         * device/include/mcs51/c8051f120.h: added PS0, fixed bug 1589279
1848         * src/z80/gen.c (gencjneshort),
1849         * src/z80/peeph.def: applied patch 1571373, thanks Philipp Krause
1850
1851 2006-10-31 Borut Razem <borut.razem AT siol.net>
1852
1853         * debugger/mcs51/acinclude.m4, debugger/mcs51/aclocal.m4,
1854           debugger/mcs51/configure: get readline version
1855
1856 2006-10-30 Borut Razem <borut.razem AT siol.net>
1857
1858         * debugger/mcs51/sdcdb.c: replaced hardcoded "/" with DIR_SEPARATOR_STRING
1859         * debugger/mcs51/acinclude.m4, debugger/mcs51/aclocal.m4,
1860           debugger/mcs51/configure: locate readline even when cross compiling
1861         * support/scripts/sdcc.nsi: include readline5.dll into the setup package
1862
1863 2006-10-29 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1864
1865         * device/include/mcs51/serial_IO.h: putchar() and getchar() using
1866           serial port.
1867
1868 2006-10-29 Maarten Brock <sourceforge.brock AT dse.nl>
1869
1870         * device/include/malloc.h,
1871         * device/lib/calloc.c,
1872         * device/lib/free.c,
1873         * device/lib/malloc.c,
1874         * device/lib/realloc.c: moved definition of struct into sources
1875         * support/regression/tests/malloc.c: use void* for init_dynamic_memory()
1876
1877 2006-10-29 Maarten Brock <sourceforge.brock AT dse.nl>
1878
1879         * as/asx8051.dsp: corrected output directories
1880         * as/link/hc08: new directory for hc08 linker
1881         * as/hc08/aslink.h,             as/link/aslink.h,
1882         * as/hc08/aslink.mak,           as/link/hc08/aslink.mak,
1883         * as/hc08/clean.mk,             as/link/hc08/clean.mk,
1884         * as/hc08/link_hc08.dsp,        as/link/hc08/link_hc08.dsp,
1885         * as/hc08/lkaomf51.c,           as/link/hc08/lkaomf51.c,
1886         * as/hc08/lkarea.c,             as/link/hc08/lkarea.c,
1887         * as/hc08/lkdata.c,             as/link/hc08/lkdata.c,
1888         * as/hc08/lkelf.c,              as/link/hc08/lkelf.c,
1889         * as/hc08/lkihx.c,              as/link/hc08/lkihx.c,
1890         * as/hc08/lklibr.c,             as/link/hc08/lklibr.c,
1891         * as/hc08/lkmain.c,             as/link/hc08/lkmain.c,
1892         * as/hc08/lkmem.c,              as/link/hc08/lkmem.c,
1893         * as/hc08/lkrloc.c,             as/link/hc08/lkrloc.c,
1894         * as/hc08/lks19.c,              as/link/hc08/lks19.c,
1895         * as/hc08/Makefile.aslink,      as/link/hc08/Makefile.aslink,
1896         * as/hc08/Makefile.bcc,         as/link/hc08/Makefile.bcc,
1897         * as/hc08/Makefile.in,          as/link/hc08/Makefile.in,
1898         * as/link/hc08/conf.mk,
1899         * configure,
1900         * configure.in,
1901         * Makefile.in,
1902         * sdcc.dsw: moved hc08 linker to as/link/hc08
1903         * as/hc08/lkeval.c,     as/link/mcs51/lkeval.c,     as/link/lkeval.c,
1904         * as/hc08/lkhead.c,     as/link/mcs51/lkhead.c,     as/link/lkhead.c,
1905         * as/hc08/lklex.c,      as/link/mcs51/lklex.c,      as/link/lklex.c,
1906         * as/hc08/lklist.c,     as/link/mcs51/lklist.c,     as/link/lklist.c,
1907         * as/hc08/lknoice.c,    as/link/mcs51/lknoice.c,    as/link/lknoice.c,
1908         * as/hc08/lksym.c,      as/link/mcs51/lksym.c,      as/link/lksym.c,
1909         * as/link/mcs51/aslink.dsp,
1910         * as/link/mcs51/Makefile.in: factored out the common files
1911         * as/hc08/lkstore.c: deleted, use the one already in as/link/
1912         * as/clean.mk: extra cleaning common files
1913         * as/link/mcs51/strcmpi.c,      as/strcmpi.c: moved
1914         * as/link/mcs51/strcmpi.h: deleted, moved protoype to aslink.h
1915         * as/mcs51/asm.h: include sdccconf.h or sdcc_vc.h
1916
1917 2006-10-29 Raphael Neider <rneider AT web.de>
1918
1919         * src/pic/ralloc.c (newReg): create aliases for registers with
1920           multiple names to fix #1579535 and #1584001,
1921           (regWithIdx,dirregWithName): resolve aliases on lookup
1922         * src/pic/pcode.c (DoBankSelect): die with error message on failing
1923           bankselect
1924         * device/lib/pic/libdev/Makefile.in: move pseudo stack down to 0x4f
1925           to prevent build errors on small devices
1926
1927 2006-10-28 Raphael Neider <rneider AT web.de>
1928
1929         * src/pic/gen.c (genFunction,genCall): drop "same code page"
1930           assumption within interrupt handlers, fixes #1584940
1931         * src/pic/glue.c (pic14_constructAbsMap): mark absolute symbols as
1932           "emitted" to avoid emitting them again in udata
1933
1934 2006-10-27 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1935
1936         * device/lib/_putchar.c, device/lib/_getchar.c, device/lib/inituart.c:
1937         Removed.
1938
1939 2006-10-26 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1940
1941         * device/lib/_putchar.c, device/lib/_getchar.c, device/lib/inituart.c:
1942         Initialize uart only if SM0 and SM1 are zero.  Also, use flag to turn
1943         on/off CR to CRLF conversion.
1944
1945 2006-10-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1946
1947         * doc/sdccman.lyx: updated IRQ section
1948
1949 2006-10-24 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1950
1951         * device/lib/serial_io.c: removed
1952         * device/lib/_putchar.c, device/lib/_getchar.c, device/lib/inituart.c
1953         replacements for serial_io.c
1954
1955 2006-10-24 Maarten Brock <sourceforge.brock AT dse.nl>
1956
1957         * src/z80/main.c (_process_pragma, _parseOptions): fixed bug 1583318
1958
1959 2006-10-24 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1960
1961         * device/lib/serial_io.c: Default putchar() and getchar() for
1962           mcs51 uses serial port.
1963
1964 2006-10-23 Maarten Brock <sourceforge.brock AT dse.nl>
1965
1966         * src/mcs51/gen.c (movc): improved check for 0 and 1, see RFE 1582704
1967
1968 2006-10-23 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1969
1970         * support/regression/ports/mcs51/support.c: smaller
1971         _sdcc_external_startup()
1972         * device/lib/mcs51/crtxclear.asm: don't check high byte of l_PSEG
1973
1974 2006-10-20 Maarten Brock <sourceforge.brock AT dse.nl>
1975
1976         * device/lib/gbz80/crt0.s,
1977         * device/lib/gbz80/crt0_rle.s,
1978         * device/lib/gbz80/div.s,
1979         * device/lib/gbz80/fstubs.s,
1980         * device/lib/gbz80/heap.s,
1981         * device/lib/gbz80/mul.s,
1982         * device/lib/gbz80/putchar.s,
1983         * device/lib/gbz80/stubs.s,
1984         * device/lib/z80/crt0.s,
1985         * device/lib/z80/crt0_rle.s,
1986         * device/lib/z80/div.s,
1987         * device/lib/z80/fstubs.s,
1988         * device/lib/z80/heap.s,
1989         * device/lib/z80/mul.s,
1990         * device/lib/z80/putchar.s,
1991         * device/lib/z80/stubs.s: reverted, I was mistaken
1992
1993 2006-10-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1994
1995         * src/mcs51/peeph.def: peephole 238.x added check for notvolatile
1996         * support/regression/ports/mcs51/support.c: removed race
1997         condition on TI in _putchar allowing to use serial port mode 0
1998
1999 2006-10-20 Borut Razem <borut.razem AT siol.net>
2000
2001         * debugger/mcs51/sdcdb.c: replaced isblank() with isspace()
2002
2003 2006-10-19 Maarten Brock <sourceforge.brock AT dse.nl>
2004
2005         * device/lib/gbz80/crt0.s,
2006         * device/lib/gbz80/crt0_rle.s,
2007         * device/lib/gbz80/div.s,
2008         * device/lib/gbz80/fstubs.s,
2009         * device/lib/gbz80/heap.s,
2010         * device/lib/gbz80/mul.s,
2011         * device/lib/gbz80/putchar.s,
2012         * device/lib/gbz80/stubs.s,
2013         * device/lib/z80/crt0.s,
2014         * device/lib/z80/crt0_rle.s,
2015         * device/lib/z80/div.s,
2016         * device/lib/z80/fstubs.s,
2017         * device/lib/z80/heap.s,
2018         * device/lib/z80/mul.s,
2019         * device/lib/z80/putchar.s,
2020         * device/lib/z80/stubs.s: removed all leading underscores from area names
2021
2022 2006-10-17 Maarten Brock <sourceforge.brock AT dse.nl>
2023
2024         * support/regression/ports/mcs51/support.c: use highest baudrate so the
2025           regression tests are not waiting in the simulator for simulated
2026           transmission of debug output
2027
2028 2006-10-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2029
2030         * device/lib/printf_large.c: slightly smaller
2031         * doc/sdccman.lyx: do not use spaces within html links
2032
2033 2006-10-16 Borut Razem <borut.razem AT siol.net>
2034
2035         * configure.in, configure, sdccconf_in.h, src/SDCCglobal,
2036           debugger/mcs51/Makefile.in, debugger/mcs51/sdcdb.[ch],
2037           debugger/mcs51/aclocal.m4, debugger/mcs51/acinclide.m4,
2038           debugger/mcs51/config.h.in, debugger/mcs51/configure.in,
2039           debugger/mcs51/configure:
2040           [ 1185668 ] add gnu readline support to sdcdb - enabled
2041
2042 2006-10-16 Raphael Neider <rneider AT web.de>
2043
2044         * src/pic/pcode.c (BankSelect): another fix on (partial) BANKSELs,
2045           fixes #1577882, removes close to all banking optimizations
2046
2047 2006-10-15 Maarten Brock <sourceforge.brock AT dse.nl>
2048
2049         * src/SDCCsymt.c (checkSClass): no error for uninitialised absolute
2050           variables in code memory
2051         * support/regression/tests/absolute.c: added test for this
2052
2053 2006-10-15 Raphael Neider <rneider AT web.de>
2054
2055         * src/pic/pcode.c (InsertBankSel): suppress BANKSELs for one bank
2056           devices,
2057           (BankSelect): emit BANKSEL before touching linker-placed regs,
2058           fixes #1570934
2059
2060 2006-10-10 Raphael Neider <rneider AT web.de>
2061
2062         * src/SDCCmain.c (optionsTable): accept --stack-size for PICs,
2063         * src/pic/device.c (pic14_getSharebankSize,pic14_getSharebankAddress),
2064         * src/pic/main.c (_pic14_parseOptions),
2065         * src/pic/main.h: mostly reverted to previous state, now use results
2066             from SDCCmain.c's argument parsing
2067
2068 2006-10-10 Borut Razem <borut.razem AT siol.net>
2069
2070         * debugger/mcs51/break.[ch], debugger/mcs51/cmd.c,
2071           debugger/mcs51/sdcdb.[ch], debugger/mcs51/simi.c:
2072           [ 1185668 ] add gnu readline support to sdcdb -
2073           prepared for READLINE, not enabled yet,
2074           thanks to <tal.bav AT gmail.com>
2075
2076 2006-10-10 Raphael Neider <rneider AT web.de>
2077
2078         * src/pic16/pcode.c (pic16_pCode2str): use isACCESS_BANK macro
2079         * src/pic16/devices.inc,
2080         * device/include/pic16 (pic18f[24]620.h),
2081         * device/include/pic18fregs.h,
2082         * device/lib/pic16/pics.all,
2083         * device/lib/pic16/libdev/pic18f[24]{620,525}.c): added support for
2084             18f2620, 18f4620, 18f2525, and 18f4525 devices, thanks to
2085             Gary Plumbridge and Anton Strobl
2086
2087 2006-10-10 Raphael Neider <rneider AT web.de>
2088
2089         * src/pic/main.c (_pic14_parseOptions): added --stack-loc=NUM and
2090           --stack-siz=NUM options to configure the argument passing stack
2091         * src/pic/main.h: added stackLocation and stackSize to pic14_options_t
2092         * src/pic/device.c (mapRegister): catch out-of-memory SIGSEGVs,
2093           (pic14_getSharebankSize): obey --stack-siz=NUM,
2094           (pic14_getSharebankAddress): obey --stack-loc=NUM
2095
2096 2006-10-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2097
2098         * doc/sdccman.lyx: added to the manual
2099         * doc/figures/ddd_example.png: added (neither pdflatex nor
2100         most browsers seem to like the .eps file)
2101
2102 2006-10-06 Bernhard Held <bernhard AT bernhardheld.de>
2103
2104         * src/SDCCglue.c (tempfileandname): changed un*x tmp search paths
2105         to /tmp and /var/tmp acc. LSB
2106         * src/SDCCast.c (addCast): Fixed bug 1571231: promote in case of
2107         RESULT_TYPE_IFX
2108         * support/regression/tests/onebyte.c: added test
2109
2110 2006-10-05 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2111
2112         * src/mcs51/gen.c: emitcode for "add a,0x%02x" requires only 8 bits.
2113
2114 2006-10-05 Borut Razem <borut.razem AT siol.net>
2115
2116         * partially fixed [ 1570701 ] peephole - not replacing code from multiline macros,
2117           thanks to dfulab:
2118           - sdcc.dsw: changed property eol-style to CRLF
2119           - support/scripts/resource.rc: replaced references to "afxres.h" with "winres.h"
2120
2121 2006-10-04 Raphael Neider <rneider AT web.de>
2122
2123         * device/include/pic/{pic16f84.h,pic16f84a.h},
2124         * device/lib/pic/libdev/{pic16f84.c,pic16f84a.c}: added PORT[AB]_bits
2125           from patch #1522504, thanks to Robas Teodor
2126
2127 2006-10-02 Maarten Brock <sourceforge.brock AT dse.nl>
2128
2129         * as/link/z80/lkarea.c: essentially reverted lnksect() to #4380 which
2130           fixes bug 1566015
2131
2132 2006-10-01 Maarten Brock <sourceforge.brock AT dse.nl>
2133
2134         * src/pic16/glue.c (pic16emitMaps),
2135         * src/pic/glue.c (pic14emitMaps): hopefully fixed bug 1568779
2136         * device/lib/gets.c: fixed bug 1568829,thanks Philipp Krause
2137         * device/lib/pic16/libc/string/memcpypgm2ram.c,
2138         * device/lib/pic16/libc/string/memcpyram2ram.c: fixed bug 1568836, thanks
2139           Philipp Krause
2140         * as/mcs51/asmain.c (asmbl, newdot): fixed problems with absolute areas
2141         * as/link/mcs51/lkmem.c (summary2): reverted, do do count abs segments
2142
2143 2006-09-30 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2144
2145         * support/librarian/sdcclib.c: Added option -l.
2146         * as/link/mcs51/lkmem.c: don't use absolute segments to compute memory
2147           usage totals.
2148         * device/lib/make51lib.bat: added.  Allows building mcs51 libraries easily
2149           using Windows command prompt.
2150
2151 2006-09-30 Maarten Brock <sourceforge.brock AT dse.nl>
2152
2153         * device/lib/libsdcc.lib: added module rand
2154         * src/ds390/ralloc.c (rematStr),
2155         * src/hc08/ralloc.c (rematStr),
2156         * src/mcs51/ralloc.c (rematStr),
2157         * src/z80/ralloc.c (rematStr): made output more consistent
2158         * src/mcs51/gen.c: cosmetic changes
2159
2160 2006-09-30 Maarten Brock <sourceforge.brock AT dse.nl>
2161
2162         * src/port.h: added mem.cabs_name to PORT
2163         * src/ds390/main.c,
2164         * src/hc08/main.c,
2165         * src/mcs51/main.c,
2166         * src/pic16/main.c,
2167         * src/pic/main.c,
2168         * src/xa51/main.c,
2169         * src/z80/main.c: added cabs_name initializers
2170         * src/SDCCglue.c (emitStaticSeg): allocate and initialize absolute
2171           constants
2172           (emitMaps): emit absolutes in code memory into cabs_name
2173         * src/SDCCmem.c,
2174         * src/SDCCmem.h: added memory map c_abs and defined CABS_NAME
2175         * src/ds390/gen.c (genCodePointerGet): fixed bug if left is a literal
2176         * support/regression/fwk/include/testfwk.h: added define for at
2177         * support/regression/tests/absolute.c: added, new
2178
2179 2006-09-29 Maarten Brock <sourceforge.brock AT dse.nl>
2180
2181         * src/mcs51/gen.c (genPlusIncr, genMinusDec, genAddrOf): small
2182           optimizations, see also patch 887161 by Stas Sergeev
2183         * src/mcs51/peeph.def(104, 207, 209, 212): disabled as they do not seem
2184           to be necessary anymore,
2185           (102, 103, 104, 127): renamed all occurances of bp to _bp
2186
2187 2006-09-27 Maarten Brock <sourceforge.brock AT dse.nl>
2188
2189         * device/include/mcs51/at89c51snd1c.h: fixed MSK_SREQ definition
2190           thanks Weston T. Schmidt for patch 1555221
2191         * src/mcs51/peeph.def: renamed rule 257 to 257.a, added 257.b
2192         * src/SDCCicode.c(geniCodeMultiply): small optimization
2193
2194 2006-09-26 Maarten Brock <sourceforge.brock AT dse.nl>
2195
2196         * device/include/stdlib.h: added rand prototypes
2197         * device/lib/rand.c: new, added
2198         * device/lib/Makefile.in: added rand.c
2199         * src/z80/peeph.def,
2200         * src/z80/peeph-gbz80.def,
2201         * src/z80/peeph-z80.def: updated conditonals, fixed bug 1565908
2202
2203 2006-09-20 Raphael Neider <rneider AT web.de>
2204
2205         * device/lib/pic16/libio/i2c/i2cnack.c (i2c_nack): fixed ACKDT bit
2206
2207 2006-09-19 Maarten Brock <sourceforge.brock AT dse.nl>
2208
2209         * as/link/aslink.h: cosmetic changes
2210         * as/link/mcs51/Makefile.in,
2211         * as/link/z80/Makefile.in: fixed build on CF where VPATH is used
2212
2213 2006-09-17 Maarten Brock <sourceforge.brock AT dse.nl>
2214
2215         * as/link/aslink.h,
2216         * as/link/mcs51/aslink.h,
2217         * as/link/z80/aslink.h: merged and moved to as/link/
2218         * as/link/lkstore.c,
2219         * as/link/mcs51/lkstore.c: moved to as/link/
2220         * as/link/clean.mk: remove *.o
2221         * as/link/mcs51/alloc.h: deleted
2222         * as/link/mcs51/lkarea.c: added lnksect prototype
2223         * as/link/mcs51/lkdata.c,
2224         * as/link/mcs51/lklex.c,
2225         * as/link/mcs51/lkmain.c: renamed as_getline to lk_getline
2226         * as/link/mcs51/lkmem.c,
2227         * as/link/mcs51/lknoice.c: removed include strcmpi.h
2228         * as/link/mcs51/lksym.c: include stdlib.h instead of malloc.h or alloc.h
2229         * as/link/mcs51/aslink.dsp,
2230         * as/link/mcs51/Makefile.aslink,
2231         * as/link/mcs51/Makefile.bcc,
2232         * as/link/mcs51/Makefile.in: updated for moved files
2233         * as/link/z80/lkarea.c,
2234         * as/link/z80/lkhead.c,
2235         * as/link/z80/lklex.c,
2236         * as/link/z80/lklibr.c,
2237         * as/link/z80/lklist.c,
2238         * as/link/z80/lkmain.c,
2239         * as/link/z80/lkrloc.c,
2240         * as/link/z80/lksym.c: synced with mcs51
2241         * as/link/z80/lkdata.c,
2242         * as/link/z80/lkeval.c,
2243         * as/link/z80/lkihx.c,
2244         * as/link/z80/lks19.c: cosmetic changes
2245         * as/link/z80/Makefile.in,
2246         * as/link/z80/linkgbz80.dsp,
2247         * as/link/z80/linkz80.dsp: updated for moved files
2248
2249 2006-09-16 Borut Razem <borut.razem AT siol.net>
2250
2251         * debugger/mcs51/sdcdb.c: partially fixed
2252           [ 1203664 ] sdcdb fails to open files w. two "." periods
2253         * debugger/mcs51/simi.c, debugger/mcs51/symtab.c,
2254           debugger/mcs51/symtab.h: fixed indenting
2255         * configure.in, configure: up to date with latest Maarten's changes
2256
2257 2006-09-15 Maarten Brock <sourceforge.brock AT dse.nl>
2258
2259         as/link/mcs51
2260         as/aslink.dsp,                  as/link/mcs51/aslink.dsp,
2261         as/link/mcs51/aslink.h,         as/mcs51/aslink.h,
2262         as/link/mcs51/aslink.mak,       as/mcs51/aslink.mak,
2263         as/link/mcs51/lkaomf51.c,       as/mcs51/lkaomf51.c,
2264         as/link/mcs51/lkarea.c,         as/mcs51/lkarea.c,
2265         as/link/mcs51/lkdata.c,         as/mcs51/lkdata.c,
2266         as/link/mcs51/lkeval.c,         as/mcs51/lkeval.c,
2267         as/link/mcs51/lkhead.c,         as/mcs51/lkhead.c,
2268         as/link/mcs51/lkihx.c,          as/mcs51/lkihx.c,
2269         as/link/mcs51/lklex.c,          as/mcs51/lklex.c,
2270         as/link/mcs51/lklibr.c,         as/mcs51/lklibr.c,
2271         as/link/mcs51/lklist.c,         as/mcs51/lklist.c,
2272         as/link/mcs51/lkmain.c,         as/mcs51/lkmain.c,
2273         as/link/mcs51/lkmem.c,          as/mcs51/lkmem.c,
2274         as/link/mcs51/lknoice.c,        as/mcs51/lknoice.c,
2275         as/link/mcs51/lkrloc.c,         as/mcs51/lkrloc.c,
2276         as/link/mcs51/lks19.c,          as/mcs51/lks19.c,
2277         as/link/mcs51/lkstore.c,        as/mcs51/lkstore.c,
2278         as/link/mcs51/lksym.c,          as/mcs51/lksym.c,
2279         as/link/mcs51/Makefile.aslink,  as/mcs51/Makefile.aslink,
2280         as/link/mcs51/alloc.h,
2281         as/link/mcs51/clean.mk,
2282         as/link/mcs51/conf.mk,
2283         as/link/mcs51/Makefile.bcc,
2284         as/link/mcs51/Makefile.in,
2285         as/link/mcs51/readme.390,
2286         as/link/mcs51/strcmpi.c,
2287         as/link/mcs51/strcmpi.h,
2288         as/mcs51/clean.mk,
2289         as/mcs51/Makefile.bcc,
2290         as/mcs51/Makefile.in,
2291         configure,
2292         Makefile.in,
2293         sdcc.dsw: moved mcs51 linker to as/link/mcs51
2294
2295 2006-09-14 Maarten Brock <sourceforge.brock AT dse.nl>
2296
2297         * as/link,
2298         * as/link/Makefile.in,
2299         * as/link/z80/linkgbz80.dsp,
2300         * as/link/z80/linkz80.dsp,
2301         * configure,
2302         * link,
2303         * link/clean.mk,
2304         * link/Makefile.in,
2305         * link/README,
2306         * link/z80,
2307         * link/z80/aslink.h,
2308         * link/z80/clean.mk,
2309         * link/z80/conf.mk,
2310         * link/z80/linkgbz80.dsp,
2311         * link/z80/linkz80.dsp,
2312         * link/z80/lkarea.c,
2313         * link/z80/lkdata.c,
2314         * link/z80/lkeval.c,
2315         * link/z80/lkgb.c,
2316         * link/z80/lkgg.c,
2317         * link/z80/lkhead.c,
2318         * link/z80/lkihx.c,
2319         * link/z80/lklex.c,
2320         * link/z80/lklibr.c,
2321         * link/z80/lklist.c,
2322         * link/z80/lkmain.c,
2323         * link/z80/lkrloc.c,
2324         * link/z80/lks19.c,
2325         * link/z80/lksym.c,
2326         * link/z80/Makefile.in,
2327         * Makefile.in,
2328         * sdcc.dsw: moved link/ to as/link/
2329
2330 2006-09-11 Maarten Brock <sourceforge.brock AT dse.nl>
2331
2332         * as/mcs51/i51mch.c (machine): fixed warning
2333
2334 2006-09-10 Maarten Brock <sourceforge.brock AT dse.nl>
2335
2336         * as/mcs51/i51mch.c (machine): S_DJNZ fixed bug 1554318
2337
2338 2006-09-09 Borut Razem <borut.razem AT siol.net>
2339
2340         * debugger/mcs51/sdcdb.c, debugger/mcs51/simi.c:
2341           sdcdb WIN32 native port
2342         * src/clean.mk: fixed
2343
2344 2006-09-08 Borut Razem <borut.razem AT siol.net>
2345
2346         * doc/sdccman.lyx: SDCDB and ucSim are available on Win32 platforms.
2347
2348 2006-09-08 Raphael Neider <rneider AT web.de>
2349
2350         * src/pic16/main.c (_pic16_linkEdit,pic16_linkCmd),
2351         * src/pic/main.c(_pic14_do_link, linkCmd): pass "-w" and "-r"
2352             to gplink to disable processor mismatch warning and to allow
2353             the use of devices with only aliased (shared) memory banks,
2354           (_pic16_genAssemblerPreamble): include pXXX.inc on --mplab-comp
2355
2356 2006-09-07 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2357
2358         * doc/sdccman.lyx: Some re-formating plus example on using
2359           #pragma preproc_asm +/-
2360
2361 2006-09-07 Borut Razem <borut.razem AT siol.net>
2362
2363         * support/scripts/sdcc.nsi: added SDCDB executables in a separate
2364           section
2365
2366 2006-09-06 Borut Razem <borut.razem AT siol.net>
2367
2368         * support/scripts/sdcc.nsi: fixed Error: unterminated string parsing
2369           line at sdcc.nsi:153
2370         * sdcc/debugger/mcs51/simi.c: argsToCmdLine() fixes
2371
2372 2006-09-05 Borut Razem <borut.razem AT siol.net>
2373
2374         * configure.in, configure: support for winsock2
2375         * debugger/mcs51/break.h, debugger/mcs51/cmd.c,
2376           debugger/mcs51/cmd.h, debugger/mcs51/sdcdb.c,
2377           debugger/mcs51/sdcdb.h, debugger/mcs51/simi.c,
2378           debugger/mcs51/simi.h, debugger/mcs51/symtab.c,
2379           debugger/mcs51/symtab.h: sdcdb WIN32 native port
2380
2381 2006-09-05 Maarten Brock <sourceforge.brock AT dse.nl>
2382
2383         * src/SDCCopt.c (cnvToFcall): fixed bug 1551947 by updating OP_USES
2384           and OP_DEFS
2385         * support/regression/tests/bug1551947.c: new, added
2386         * src/SDCCsymt.h: strings are char* not byte*
2387
2388 2006-09-05 Raphael Neider <rneider AT web.de>
2389
2390         * device/lib/pic16/libdev/pic18f4550.c,
2391           device/include/pic16/pic18f4550.h: added PORTD/TRISD
2392             declarations/definitions from patch #1520949
2393
2394 2006-09-05 Raphael Neider <rneider AT web.de>
2395
2396         * src/pic16/gen.c (genPackBits): fix assignment to 8-bit,
2397           byte-aligned bitfields, fixes #1539278
2398
2399 2006-09-05 Raphael Neider <rneider AT web.de>
2400
2401         * src/pic/gen.c (genReceive): skip unreferenced arguments,
2402           fixes #1544120
2403
2404 2006-09-04 Borut Razem <borut.razem AT siol.net>
2405
2406         * support/scripts/sdcc.nsi: move ucSim executables to a separate section
2407         * support/scripts/sdcc_cygwin_mingw32: don't disable ucsim,
2408           -mno-cygwin is a part of the compiler name
2409         * support/scripts/sdcc_mingw32: don't disable ucsim
2410
2411 2006-09-03 Borut Razem <borut.razem AT siol.net>
2412
2413         * sdcc.spec: corrected for 2.6.0. Thanks to Christer Weinigel.
2414         * device/lib/Makefile.in device/lib/clean.mk: small but essential corrections
2415
2416 2006-09-03 Raphael Neider <rneider AT web.de>
2417
2418         * src/pic/ralloc.c,
2419         * src/pic/pcode.c (InitReuseRegs): allocate registers with pseudo
2420           indices >= 0x1000 to disambiguate them from fixed regs __at(addr),
2421           fixes #1550049
2422
2423 2006-09-01 Borut Razem <borut.razem AT siol.net>
2424
2425         * sim/ucsim/cmd.src/cmdutil.cc: #include <sys/time.h> and <unistd.h>
2426           to make ppc-osx happy
2427
2428 2006-08-31 Borut Razem <borut.razem AT siol.net>
2429
2430         * sim/ucsim/cmd.src/newcmdposix.cc: #include <assert.h>
2431         * sim/ucsim/cmd.src/newcmd.cc: #include <ctype.h>
2432         * sim/ucsim/cmd.src/newcmd.cc: #include <ctype.h>
2433         * support/regression/ports/ds390/spec.mk,
2434           support/regression/ports/mcs51/spec.mk,
2435           support/regression/ports/xa51/spec.mk: introduced DEV_NULL variable.
2436           To run regression tests in mingw environment:
2437           make DEV_NULL=NUL CC=gcc
2438
2439 2006-08-30 Borut Razem <borut.razem AT siol.net>
2440
2441         * sim/ucsim/cmd.src/newcmdposix.cc, sim/ucsim/cmd.src/newcmdposixcl.h,
2442           sim/ucsim/cmd.src/newcmdwin32.cc, sim/ucsim/cmd.src/newcmdwin32cl.h,
2443           sim/ucsim/app.cc, sim/ucsim/appcl.h, sim/ucsim/configure,
2444           sim/ucsim/configure.in, sim/ucsim/ddconfig_in.h, sim/ucsim/error.cc,
2445           sim/ucsim/errorcl.h, sim/ucsim/option.cc, sim/ucsim/optioncl.h,
2446           sim/ucsim/utils.cc, sim/ucsim/utils.h, sim/ucsim/cmd.src/Makefile.in,
2447           sim/ucsim/avr.src/avr.cc, sim/ucsim/avr.src/avrcl.h,
2448           sim/ucsim/cmd.src/bp.cc, sim/ucsim/cmd.src/bpcl.h,
2449           sim/ucsim/cmd.src/cmdconf.cc, sim/ucsim/cmd.src/cmdgui.cc,
2450           sim/ucsim/cmd.src/cmdmem.cc, sim/ucsim/cmd.src/cmdset.cc,
2451           sim/ucsim/cmd.src/cmdsetcl.h, sim/ucsim/cmd.src/cmdstat.cc,
2452           sim/ucsim/cmd.src/cmduc.cc, sim/ucsim/cmd.src/cmduccl.h,
2453           sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/cmdutil.h,
2454           sim/ucsim/cmd.src/command.cc, sim/ucsim/cmd.src/commandcl.h,
2455           sim/ucsim/cmd.src/get.cc, sim/ucsim/cmd.src/getcl.h,
2456           sim/ucsim/cmd.src/info.cc, sim/ucsim/cmd.src/newcmd.cc,
2457           sim/ucsim/cmd.src/newcmdcl.h, sim/ucsim/cmd.src/set.cc,
2458           sim/ucsim/cmd.src/show.cc, sim/ucsim/cmd.src/timer.cc,
2459           sim/ucsim/hc08.src/hc08.cc, sim/ucsim/hc08.src/hc08cl.h,
2460           sim/ucsim/s51.src/Makefile.in, sim/ucsim/s51.src/interrupt.cc,
2461           sim/ucsim/s51.src/interruptcl.h, sim/ucsim/s51.src/pca.cc,
2462           sim/ucsim/s51.src/pcacl.h, sim/ucsim/s51.src/port.cc,
2463           sim/ucsim/s51.src/portcl.h, sim/ucsim/s51.src/serial.cc,
2464           sim/ucsim/s51.src/serialcl.h, sim/ucsim/s51.src/timer0.cc,
2465           sim/ucsim/s51.src/timer0cl.h, sim/ucsim/s51.src/timer1.cc,
2466           sim/ucsim/s51.src/timer1cl.h, sim/ucsim/s51.src/timer2.cc,
2467           sim/ucsim/s51.src/timer2cl.h, sim/ucsim/s51.src/uc390.cc,
2468           sim/ucsim/s51.src/uc390cl.h, sim/ucsim/s51.src/uc390hw.cc,
2469           sim/ucsim/s51.src/uc390hwcl.h, sim/ucsim/s51.src/uc51.cc,
2470           sim/ucsim/s51.src/uc51cl.h, sim/ucsim/s51.src/wdt.cc,
2471           sim/ucsim/s51.src/wdtcl.h, sim/ucsim/sim.src/hw.cc,
2472           sim/ucsim/sim.src/hwcl.h, sim/ucsim/sim.src/mem.cc,
2473           sim/ucsim/sim.src/memcl.h, sim/ucsim/sim.src/obsolete.cc,
2474           sim/ucsim/sim.src/obsolete.h, sim/ucsim/sim.src/sim.cc,
2475           sim/ucsim/sim.src/simcl.h, sim/ucsim/sim.src/stack.cc,
2476           sim/ucsim/sim.src/stackcl.h, sim/ucsim/sim.src/test_mem_speed.cc,
2477           sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
2478           sim/ucsim/xa.src/xa.cc, sim/ucsim/xa.src/xacl.h,
2479           sim/ucsim/z80.src/z80.cc, sim/ucsim/z80.src/z80cl.h:
2480           ucsim WIN32 native port
2481
2482 2006-08-30 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2483
2484         * doc/sdccman.lyx: added note on dynamic memory heap initialization
2485
2486 2006-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
2487
2488         * src/mcs51/gen.c (genAnd, genOr, genXor): fixed bug 1546986
2489         * src/ds390/gen.c (aopGetUsesAcc): handle AOP_DPTR2 and AOP_DPTRn too
2490
2491 2006-08-26 Maarten Brock <sourceforge.brock AT dse.nl>
2492
2493         * src/ds390/gen.c (genAnd, genOr, genXor): fixed bug 1546986
2494         * support/regression/tests/bug1546986.c: new, added
2495         * as/mcs51/.cvsignore,
2496         * debugger/mcs51/.cvsignore,
2497         * src/.cvsignore: deleted
2498
2499 2006-08-25 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2500
2501         * device/include/mcs51/P89c51RD2.h: fixed bug 1546936 (error in sbit
2502           definitions)
2503
2504 2006-08-20 Borut Razem <borut.razem AT siol.net>
2505
2506         * sim/ucsim/cmd.src/newcmd.cc, sim/ucsim/cmd.src/newcmdcl.h:
2507           removed cl_listen_console::match(), cl_console::match(),
2508           restructured cl_commander::proc_input()
2509
2510 2006-08-16 Borut Razem <borut.razem AT siol.net>
2511
2512         * sim/ucsim/cmd.src/newcmd.cc, sim/ucsim/cmd.src/newcmdcl.h,
2513           sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/cmdutil.h,
2514           sim/ucsim/sim.src/mem.cc, sim/ucsim/sim.src/uc.cc: code cleaning
2515
2516 2006-08-14 Borut Razem <borut.razem AT siol.net>
2517
2518         * support/regression/Makefile.in,
2519           support/regression/ports/pic14/gpsim.cmd,
2520           support/regression/ports/pic14/spec.mk,
2521           support/regression/ports/pic14/support.c:
2522           added pic14 regression test
2523
2524 2006-08-14 Maarten Brock <sourceforge.brock AT dse.nl>
2525
2526         * as/doc/asxhtm.html: documented changed ABS behaviour
2527         * as/doc/README: fixed some typos
2528
2529 2006-08-13 Maarten Brock <sourceforge.brock AT dse.nl>
2530
2531         * support/regression/tests/float_trans.c: disabled test if __STDC_IEC_559__
2532           not defined on host
2533
2534 2006-08-12 Borut Razem <borut.razem AT siol.net>
2535
2536         * support/regression/fwk/include/testfwk.h,
2537           support/regression/fwk/lib/testfwk.c,
2538           support/regression/generate-cases.py,
2539           support/regression/Makefile.in:
2540           regression test framework does not depend on function pointers and
2541           variable arguments
2542
2543 2006-08-09 Maarten Brock <sourceforge.brock AT dse.nl>
2544
2545         * device/include/stddef.h: c temporary hack to fix bug 1518273
2546
2547 2006-08-09 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2548
2549         * device/include/mcs51/cc2510fx.h: added
2550         * src/z80/z80.dsp, src/gbz80/gbz80.dsp: added support/Util/strcmpi.ch
2551           to projects.
2552
2553 2006-08-09 Maarten Brock <sourceforge.brock AT dse.nl>
2554
2555         * as/z80/assym.c (mlookup): ignore case when looking up mnemonics
2556         * as/z80/Makefile.in: added strcmpi.c
2557         * as/z80/z80adr.c: added upper case registers and lower case conditionals
2558         * support/Util/strcmpi.ch: added with intention to remove from mcs51/hc08
2559
2560 2006-08-08 Maarten Brock <sourceforge.brock AT dse.nl>
2561
2562         * device/lib/gbz80/asm_strings.s,
2563         * device/lib/gbz80/crt0_rle.s,
2564         * device/lib/gbz80/div.s,
2565         * device/lib/gbz80/mul.s,
2566         * device/lib/gbz80/shift.s,
2567         * device/lib/z80/asm_strings.s,
2568         * device/lib/z80/crt0_rle.s,
2569         * device/lib/z80/div.s,
2570         * device/lib/z80/mul.s,
2571         * device/lib/z80/shift.s: changed to all lower case menmonics except the
2572           flags which are all upper case
2573
2574 2006-08-07 Maarten Brock <sourceforge.brock AT dse.nl>
2575
2576         * as/z80/asm.h: made CASE_SENSITIVE 1
2577         * link/z80/aslink.h: made CASE_SENSITIVE 1
2578         * src/z80/gen.c (throughout): made all conditionals upper case
2579         * support/regression/tests/bug1503067.c: new
2580
2581 2006-08-07 Maarten Brock <sourceforge.brock AT dse.nl>
2582
2583         * src/z80/gen.c (aopPut): fixed bug !*ixy should be !*iyx,
2584           (shiftIntoPair): added case 2 for PAIR_IY,
2585           (setupToPreserveCarry): replaced parameters with iCode and check if
2586            PAIR_DE is in use to fix bug 1399290,
2587           (genPlus, genMinus): updated call to setupToPreserveCarry
2588         * support/regression/tests/bug1399290.c: new
2589
2590 2006-08-06 Maarten Brock <sourceforge.brock AT dse.nl>
2591
2592         * device/lib/Makefile.in (Z80SOURCES): enabled float support
2593         * sim/ucsim/z80.src/inst.cc (inst_rst): generate breakpoint on RST8,ACC==0
2594         * src/ds390/gen.c (shiftRLong),
2595         * src/hc08/gen.c (shiftLLong, shiftRLong): fixed bug 1533966
2596         * src/mcs51/gen.c (sameReg): changed to sameByte,
2597           (xch_a_aopGet): new,
2598           (shiftL2Left2Result, shiftR2Left2Result, shiftRLeftOrResult, shiftLLong,
2599            shiftRLong): fixed bug 1533966
2600         * src/z80/gen.c (shiftR2Left2Result, shiftL2Left2Result, genlshTwo,
2601           genLeftShiftLiteral, genrshTwo, genRightShiftLiteral): fixed bug 1533966
2602         * support/regression/Makefile.in: disabled z80, enabled ucz80
2603         * support/regression/tests/float_trans.c: enabled test for z80 and host
2604         * support/regression/tests/shifts2.c: new, for testing bug 1533966
2605
2606 2006-08-01 Borut Razem <borut.razem AT siol.net>
2607
2608         * src/mcs51/gen.c, src/dc390/gen.c: fixed warning:
2609           comparison is always false due to limited range of data type
2610           on PPC64 machine (openpower-linux1) where "char = unsigned char"
2611
2612 2006-08-01 Maarten Brock <sourceforge.brock AT dse.nl>
2613
2614         * sim/ucsim/hc08.src/hc08mac.h: removed faulty and unused add_u16_disp
2615         * sim/ucsim/hc08.src/hc08.cc: removed faulty and unused int8
2616         * sim/ucsim/z80.src/z80mac.h (add_u16_disp): use explicit signed char cast
2617         * sim/ucsim/z80.src/z80.cc: removed faulty and unused int8
2618
2619 2006-07-31 Borut Razem <borut.razem AT siol.net>
2620
2621         * sim/ucsim/configure, sim/ucsim/cmd.src/newcmdcl.h,
2622           sim/ucsim/cmd.src/newcmd.cc, sim/ucsim/cmd.src/cmdutil.cc,
2623           sim/ucsim/z80.src/Makefile.in, sim/ucsim/configure.in,
2624           sim/ucsim/hc08.src/Makefile.in, sim/ucsim/hc08.src/hc08.cc,
2625           sim/ucsim/ddconfig_in.h, sim/ucsim/s51.src/Makefile.in,
2626           sim/ucsim/s51.src/uc51cl.h, sim/ucsim/s51.src/serialcl.h,
2627           sim/ucsim/s51.src/uc51.cc, sim/ucsim/s51.src/serial.cc,
2628           sim/ucsim/app.cc, sim/ucsim/avr.src/Makefile.in:
2629           enable ucsim mingw compilation. Serial port is disabled,
2630           since it uses termios.h API, which is not available on native
2631           WIN32
2632
2633 2006-07-31 Borut Razem <borut.razem AT siol.net>
2634
2635         * Small Device C Compiler 2.6.0 released
2636         * support/scripts/sdcc.nsi: added FULL_DOC option
2637         * .version, doc/sdccman.lyx: changed sdcc version to 2.6.1
2638
2639 2006-07-28 Borut Razem <borut.razem AT siol.net>
2640
2641         * support/scripts/sdcc.nsi: remove $INSTDIR/include/asm/pic16/*.h
2642         * doc/INSTALL.txt: updated
2643
2644 2006-07-27 Borut Razem <borut.razem AT siol.net>
2645
2646         * device/lib/pic/Makefile.in, device/lib/pic/Makefile.subdir,
2647           device/lib/pic/libdev/Makefile.in: fixed bug
2648           [ 1438354 ] pic libsdcc: distclean doesn't work
2649         * device/lib/pic16/Makefile.in, device/lib/pic16/Makefile.subdir,
2650           device/lib/pic16/libio/Makefile.in: fixed bug
2651           [ 1438344 ] pic16 lib: clean doesn't work properly
2652         * doc/knownbugs.html removed [ 1438354 ] and [ 1438344 ] from the list
2653
2654 2006-07-26 Maarten Brock <sourceforge.brock AT dse.nl>
2655
2656         * device/lib/pic/libsdcc/fsdiv.c,
2657         * device/lib/pic/libsdcc/fsmul.c,
2658         * device/lib/pic16/libsdcc/float/fsdiv.c,
2659         * device/lib/pic16/libsdcc/float/fsmul.c,
2660         * device/lib/_fsdiv.c,
2661         * device/lib/_fsmul.c: bugfix, handle too large and too small numbers
2662         * support/regression/tests/bug1520966.c: added
2663         * doc/knownbugs.html: removed [ 1520966 ] from the list
2664
2665 2006-07-25 Borut Razem <borut.razem AT siol.net>
2666
2667         * configure.in, configure, sdccconf_in.h: fixed bug
2668           [ 1519095 ] regression test onebyte.c fails on ppc64 host
2669         * doc/knownbugs.html: removed [ 1519095 ] from the list
2670
2671 2006-07-25 Maarten Brock <sourceforge.brock AT dse.nl>
2672
2673         * doc/knownbugs.html: added, contains list of known bugs at release
2674         * device/include/mcs51/compiler.h: fixed SFR32 for SDCC
2675
2676 2006-07-23 Maarten Brock <sourceforge.brock AT dse.nl>
2677
2678         * device/include/mcs51/compiler.h: added SFRX for xdata based special
2679           function registers and corrected defaults with additional warning
2680         * device/lib/malloc.c: cosmetic changes
2681         * device/lib/realloc.c: bugfix for bug #1496907, Thanks Efim Monyak
2682         * src/ds390/ralloc.c (getRegBitNoSpil): reenabled,
2683           (fillGaps): and used it
2684
2685 2006-07-20 Raphael Neider <rneider AT web.de>
2686
2687         * src/pic/device.c (addMemRange,assignRegister): suppress verbose
2688           output unless SDCCPICDEBUG is set
2689         * device/lib/pic16/Makefile.rules (%.lib target): suppress verbose
2690           output if SILENT is set
2691
2692 2006-07-11 Borut Razem <borut.razem AT siol.net>
2693
2694         * doc/README.txt: updated
2695
2696 2006-07-10 Borut Razem <borut.razem AT siol.net>
2697
2698         * support/scripts/sdcc.nsi: added device/include/asm/pic/features.h and
2699           device/lib/src/pic/libm/*.c and device/lib/src/pic16/libsdcc/stack/*.S
2700           in WIN32 installation
2701         * .version, sdcc.spec, doc/sdccman.lyx: changed sdcc version to 2.6.0 -
2702           release candidate 1
2703
2704 2006-07-08 Maarten Brock <sourceforge.brock AT dse.nl>
2705
2706         * device/include/mcs51/XC866.h: added sbit definitions for Px_x, P1_x, P2_x
2707         * src/pic16/glue.c (initPointer): fixed bug 1496419 for pic16
2708
2709 2006-07-06 Maarten Brock <sourceforge.brock AT dse.nl>
2710
2711         * src/hc08/gen.c (genAddrOf): fixed bug when offset on stack is >127
2712
2713 2006-07-06 Borut Razem <borut.razem AT siol.net>
2714
2715         * support/regression/tests/bitfields.c:
2716           fixed bug [ 1518322 ] regression test bitfields fails on ppc hosts
2717         * support/regression/tests/constantRange.c:
2718           fixed bug [ 1518317 ] regression test constantRange fails on alpha host
2719
2720 2006-07-04 Borut Razem <borut.razem AT siol.net>
2721
2722         * src/configure.in, src/configure, src/Makefile.in, as/z80/Makefile.in,
2723           src/port.mk,
2724           src/avr/Makefile.in, src/ds390/Makefile.in, src/ds400/Makefile.in,
2725           src/hc08/Makefile.in, src/mcs51/Makefile.in, src/pic16/Makefile.in,
2726           src/pic/Makefile.in, src/xa51/Makefile.in, src/z80/Makefile.in:
2727           reverted changes from 2006-07-03
2728         * Makefile.common.in: added @CPPFLAGS@ to CPPFLAGS
2729         * support/regression/Makefile.in, support/regression/ports/host/spec.mk:
2730           added CPPFLAGS, used by the host port
2731
2732 2006-07-03 Bernhard Held <bernhard AT bernhardheld.de>
2733
2734         * support/regression/valdiag/tests/switch.c,
2735         * support/regression/valdiag/tests/constantRange.c: adapted to gcc 4
2736         * support/regression/tests/libmullong.c: fixed for host
2737         * support/regression/ports/host/spec.mk: disable all warnings for host,
2738         SDCC runs with --less-pedantic too
2739
2740 2006-07-03 Borut Razem <borut.razem AT siol.net>
2741
2742         * src/configure.in, src/configure, src/Makefile.in, as/z80/Makefile.in:
2743           defined CPPFLAGS
2744         * src/port.mk: defined CPPFLAGS, renamed to src/port.mk.in
2745         * src/avr/Makefile.in, src/ds390/Makefile.in, src/ds400/Makefile.in,
2746           src/hc08/Makefile.in, src/mcs51/Makefile.in, src/pic16/Makefile.in,
2747           src/pic/Makefile.in, src/xa51/Makefile.in, src/z80/Makefile.in:
2748           include ../port.mk
2749         * sim/ucsim/main_in.mk, sim/ucsim/avr.src/Makefile.in,
2750           sim/ucsim/gui.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
2751           sim/ucsim/s52.src/Makefile.in, sim/ucsim/sim.src/Makefile.in,
2752           sim/ucsim/xa.src/Makefile.in: ignore header files for dependencies
2753
2754 2006-07-02 Raphael Neider <rneider AT web.de>
2755
2756         * src/pic16/devices.inc,
2757         * device/include/pic16/pic18fregs.h,
2758         * device/include/pic16/pic18f4550.h,
2759         * device/lib/pic16/pics.all,
2760         * device/lib/pic16/libdev/pic18f4550.c: added support for 18f4550
2761
2762 2006-07-01 Bernhard Held <bernhard AT bernhardheld.de>
2763
2764         * as/hc08/lkaomf51.c (OutputName),
2765         * as/mcs51/lkaomf51.c (OutputName),
2766         * as/z80/asmain.c (asmbl),
2767         * src/ds390/main.c (asmLineNodeFromLineNode),
2768         * src/hc08/ralloc.c (hc08_assignRegisters),
2769         * src/mcs51/main.c (asmLineNodeFromLineNode),
2770         * src/xa51/ralloc.c (checkRegMask),
2771         * src/xa51/gen.c (emitcode),
2772         * src/z80/gen.c (_emit2),
2773         * src/SDCCast.c (searchLitOp),
2774         * src/SDCCglobl.h,
2775         * support/packihx/packihx.c,
2776         * support/Util/MySystem.c (split_command): fix gcc 4 warnings
2777         * src/ds390/gen.c (aopPutUsesAcc),
2778         * src/ds390/ralloc.c (getRegBitNoSpil): unused, therefore disabled
2779         * support/regression/tests/libmullong.c (mullong_wrapper),
2780         * src/SDCCsymt.c (powof2),
2781         * src/SDCCast.c,
2782         * src/SDCCicode.c: renamed TYPE_WORD by TYPE_TARGET_INT and so on
2783         * src/SDCCsymt.h: added TYPE_TARGET_*
2784         * src/SDCCutil.c (doubleFromFixed16x16, fixed16x16FromDouble),
2785         * src/SDCCutil.h (doubleFromFixed16x16, fixed16x16FromDouble): moved to
2786         SDCCast because 1) header problems 2) this is the right place
2787         * src/SDCCast.c (doubleFromFixed16x16, fixed16x16FromDouble): added
2788         * src/SDCCval.h (doubleFromFixed16x16, fixed16x16FromDouble): added
2789         prototype
2790
2791 2006-06-29 Bernhard Held <bernhard AT bernhardheld.de>
2792
2793         * src/SDCCicode.h: removed buggy semicolon in unused macro
2794         * src/SDCClrange.c (findPrevUseSym, rlivePoint): fixed bug #1486853,
2795         search for previous definiton of auto symbols too,
2796         (findPrevUse): fixed logic of emitWarnings
2797
2798 2006-06-26 Raphael Neider <rneider AT web.de>
2799
2800         * src/pic16/gen.c (genFunction, genEndFunction): also preserve
2801           PCLATH and PCLATU on interrupts, potentially fixes #1505141
2802
2803 2006-06-25 Raphael Neider <rneider AT web.de>
2804
2805         * device/lib/pic/libm: NEW, added math library functions
2806         * device/lib/pic/libsdcc: NEW; added float support functions
2807         * device/lib/pic/{Makefile.in,configure.in,configure}: added libm/
2808         * device/include/pic/{limits.h,errno.h,sdcc-lib.h,float.h,math.h}:
2809           NEW, added math related headers
2810         * device/include/asm/pic/features.h: NEW
2811         * src/pic/gen.c (emitpcode_real): emit warning on NULL pCodeOp,
2812           (popGet): allow larger offsets for AOP_PCODE,
2813           (genDataPointerSet): handle literals explicitly, more debug output,
2814           (genAssign): fixed for float using aopLiteral ;-)
2815         * src/pic/glue.c (pic14createInterruptVect): inserted pagesel before
2816           GOTO initialisation routine
2817         * src/pic/pcoderegs.c (pCodeRegMapLiveRangesInFlow): set wasUsed
2818           flag on registers, fixes #1469043 (local variables do not work)
2819         * src/pic/main.c (_pic14_do_link),
2820         * src/pic16/main.c (_pic16_linkEdit): use fullDstFileName if
2821           available
2822
2823 2006-06-25 Borut Razem <borut.razem AT siol.net>
2824
2825         * device/lib/pic16/libc/stdio/sprintf.c: return the number of
2826           characters printed (not including the trailing '\0' used to end
2827           output to strings). Problem detected in regression test bug-927659.c.
2828           NOTE: printf() family functions should return int instead
2829           unsigned int!
2830         * device/lib/pic16/libc/stdio/vfprintf.c: "%%" prints "%", unknown
2831           specifier are printed as themselves
2832         * sdcc/support/regression/tests/bug1057979.c: pic16 printf doesn't
2833           support flags, width and precision specifiers
2834
2835 2006-06-24 Borut Razem <borut.razem AT siol.net>
2836
2837         * sdcc/support/regression/tests/bitvars.c: added gbz80, pic16 and pic16
2838           to the list of sdcc tagrets not supporting bit type
2839         * sdcc/support/regression/tests/bug-905992.c.c: excluded regression
2840           testfor pic16 due to bug:
2841           [ 1511794 ] pic16: regression test bug-895992.c fails
2842
2843 2006-06-24 Maarten Brock <sourceforge.brock AT dse.nl>
2844
2845         * src/mcs51/gen.c (genCmp): optimization for RFE 1162453
2846         * src/SDCCglue.c (initPointer), fixed bug 1496419
2847         * support/regression/tests/bug1496419.c: new, added
2848
2849 2006-06-22 Borut Razem <borut.razem AT siol.net>
2850
2851         * support/regression/ports/pic16/support.c: use gpsim usart module from
2852           libgpsim_modules library
2853
2854 2006-06-21 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2855
2856         * device/include/mcs51/at89c51ed2.h: Fixed bug 1510144 changed
2857         IP0H to IPH0.
2858
2859 2006-06-19 Raphael Neider <rneider AT web.de>
2860
2861         * src/pic/glue.h,src/pic16/glue.h: added prototypes
2862         * src/pic/glue.c,src/pic16/glue.c (pic1x_stringInSet,
2863           pic1x_emitSymbolIfNew): NEW, check for a string in a set,
2864           (pic14printExterns,pic14printPublics,pic16printPublics,
2865           pic16_printExterns): use new functions to emit symbols
2866           (picglue,pic16glue): emit publics before emitting externs
2867         * src/pic/gen.c,src/pic16/gen.c (genFunction): remember the names of
2868           locally defined functions to avoid bug #1443651
2869         * support/regression/tests/bug-716242.c: removed pic16 workaround
2870         * support/regression/ports/pic16/spec.mk: ignore errors during build
2871
2872 2006-06-19 Raphael Neider <rneider AT web.de>
2873
2874         * src/pic/glue.h: added pic14aopLiteral prototype
2875         * src/pic/glue.c (pic14aopLiteral): return unsigned int
2876         * src/pic/gen.c: removed stdint.h dependency
2877           (aopGet): use Safe_strdup()
2878           (bitpatternFromVal): removed, replaced use with pic14aopLiteral
2879           (genDataPointerSet): use pic14aopLiteral()
2880         * src/pic16/glue.h, src/pic16/glue.c, src/pic16/gen.c: similar changes
2881           for pic16; thanks to Bernhard and Maarten
2882
2883 2006-06-18 Borut Razem <borut.razem AT siol.net>
2884
2885         * support/regression/tests/structflexarray.c: flexible array members
2886           not supported by gcc < 3
2887         * sim/ucsim/configure, sim/ucsim/configure.in: do not compile serio
2888           GUI tool by default
2889         * src/pic/gen.c: don't include [p]strdin.h on solaris
2890         * support/Util/pstdint.h: addad svn attributes
2891         * support/regression/tests/constantRange.c,
2892           support/regression/tests/rotate.c: include inttypes.h instead
2893           stdint.h on solaris, addad svn attributes
2894
2895 2006-06-18 Raphael Neider <rneider AT web.de>
2896
2897         * src/SDCCsymt.c (initCSupport): change return type of divschar to
2898           int for PIC16
2899         * src/pic16/genarith.c (genAddLit): sign-extend via standard routine
2900           (pic16_genMinusBits): simplified sign-extension
2901           (pic16_genUMult8XLit_8,pic16_genUMult8X8_8): renamed to
2902             pic16_genMult8XLit_n resp. pic16_genMult8X8_n, fixed and
2903             adjusted to correctly handle mixed-signed operands, disabled
2904             now unused multiplciation routines
2905         * src/pic16/gen.c (pic16_pushpCodeOp): fixed to handle literals
2906           (assignResultValue): added argument denoting the size of the result
2907             as returned by the function (fixes upcasts in assigning from
2908             function calls: char foo(); int i = foo();)
2909           (genCall,genPcall,genGenPointerGet,genReceive): pass size of
2910             function result to assignResultValue
2911           (genMult): disabled inlined multiplication code
2912           (genDiv): augmented to also handle the modulus operator, fixed to
2913             handle mixed-signed operands correctly
2914           (genMod): simply call genDiv, disabled unused code
2915           (genAssign): fixed missing (sign-)extension on result
2916         * src/pic16/main.c (_hasNativeMulFor): accept literals [-128..256) as
2917             valid char operands, allow signed operands for native code, added
2918             division and modulo operator handling
2919         * device/lib/pic16/libsdcc/char/divschar.c: divschar returns an int
2920
2921         As a consequence, onebyte.c (if split into two files) and muldiv.c
2922         pass regression tests.
2923
2924 2006-06-17 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2925
2926         * doc/Makefile.in: two runs of makeindex seem needed to get
2927         correct page references in the index of sdccman.pdf
2928         * doc/sdccman.lyx: mentioned cmon51, added links, small changes
2929
2930 2006-06-17 Borut Razem <borut.razem AT siol.net>
2931
2932         * sdcc/device/lib/Makefile.in: corrected PORTINCDIR path
2933
2934 2006-06-17 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2935
2936         * doc/sdccman.lyx: updated, added (porting source code, debugging),
2937         mentioned ec2drv and paulmon
2938
2939 2006-06-16 Maarten Brock <sourceforge.brock AT dse.nl>
2940
2941         * as/mcs51/lkarea.c (lnkarea2): clear new xdatamap, bugfix for two
2942           consecutive abs areas
2943           (find_empty_space, allocate_space): added map to handle codemap or
2944            xdatamap,
2945           (lnksect2): renamed rloc to locIndex, fixed bug 960060 by handling
2946            absolute idata and xdata
2947         * as/mcs51/lkmem.c (summary2): updated legend
2948
2949 2006-06-16 Raphael Neider <rneider AT web.de>
2950
2951         * src/pic16/gen.c (shiftR2Left2Result): fixed bug #1507127
2952
2953 2006-06-13 Maarten Brock <sourceforge.brock AT dse.nl>
2954
2955         * debugger/mcs51/cmd.c (cmdListFunctions): fixed bugs 1181163 and
2956           1208515
2957         * src/SDCClrange.c (findPrevUse): fixed bug 1294475
2958
2959 2006-06-13 Vangelis Rokas <vrokas AT users.sourceforge.net>
2960
2961         * src/port.h (struct PORT): added field gp_tags, to hold the tag
2962         value of generic pointers,
2963         * src/avr/main.c,
2964           src/ds390/main.c,
2965           src/hc08/main.c,
2966           src/izt/i186.c,
2967           src/izt/tlcs900h.c,
2968           src/mcs51/main.c,
2969           src/pic/main.c,
2970           src/pic16/main.c,
2971           src/xa51/main.c,
2972           src/z80/main.c: PORT structure, added elements for gp_tags field,
2973         * src/SDCCsymt.h: replaced hardwired values of GPTYPE_* macros with
2974         fields in the PORT structure of each port,
2975         * src/SDCCast.c (decorateType): allow processing of generic pointers
2976         for PIC16 port (FPTRSIZE equals GPTRSIZE), also set GPTYPE_NEAR for
2977         S_FIXED symbols
2978
2979 2006-06-12 Maarten Brock <sourceforge.brock AT dse.nl>
2980
2981         * link/z80/lkgb.c,
2982         * link/z80/lkgg.c,
2983         * src/pic16/gen.c,
2984         * src/pic16/main.c,
2985         * src/pic16/pcode.c,
2986         * src/pic/main.c,
2987         * src/pic/pcoderegs.c,
2988         * src/SDCCicode.c,
2989         * src/SDCCmain.c,
2990         * src/SDCCsymt.c: replaced all exit(-1) by exit(EXIT_FAILURE) to fix
2991           bug 1504689 on minGW
2992
2993 2006-06-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2994
2995         * device/lib/printf_tiny.c: fixed bug #1465675 (%x format specifier)
2996
2997 2006-06-12 Bernhard Held <bernhard AT bernhardheld.de>
2998
2999         * src/SDCCast.c (backPatchLabels): fixed bug #1504636
3000
3001 2006-06-11 Maarten Brock <sourceforge.brock AT dse.nl>
3002
3003         * device/lib/printf_large.c (OUTPUT_CHAR, _output_char): added and used
3004           for optimization
3005
3006 2006-06-11 Vangelis Rokas <vrokas AT users.sourceforge.net>
3007
3008         * src/pic16/gen.c (genCast): fixed bug with assignment of a pointer
3009         to a char variable. Fixed bug #1504211
3010         * device/include/pic16/adc.h,
3011         device/include/lib/pic16/libio/adc/adcopen.c: applied patch #1364387
3012         and fixed bug #1364390
3013
3014 2006-06-10 Borut Razem <borut.razem AT siol.net>
3015
3016         * CVSROOT: removed the CVS left-over
3017
3018 2006-06-10 Maarten Brock <sourceforge.brock AT dse.nl>
3019
3020         * as/hc08/asmain.c (asexit),
3021         * as/hc08/lkmain.c (lkexit),
3022         * as/mcs51/asmain.c (asexit),
3023         * as/mcs51/lkmain.c (lkexit),
3024         * src/SDCCglue.c (DEFSETFUNC),
3025         * src/SDCCmain.c (linkEdit, assemble),
3026         * support/librarian/sdcclib.c (AddRel),
3027           replaced unlink() by standard C remove()
3028         * src/SDCC.y: replaced removePostIncDecOps() by createRMW()
3029         * src/SDCCast.c (replaceAstWithTemporary, createRMW,
3030           gatherImplicitVariables): new, added to fix bug 608752,
3031           (createFunction): added gatherImplicitVariables()
3032         * src/SDCCast.h: added createRMW prototype
3033         * src/SDCCsymt.h (struct symbol): added infertype
3034         * support/regression/tests/bug608752.c: new, added
3035
3036 2006-06-10 Raphael Neider <rneider AT web.de>
3037
3038         * src/pic16/gen.c (pic16_aopOp): use WREG as destination even for
3039           multibyte dummy reads (fixes #1503234)
3040
3041 2006-06-10 Maarten Brock <sourceforge.brock AT dse.nl>
3042
3043         * device/include/mcs51/compiler.h: new, added header file to enable
3044           creating common sfr definition header files for different compilers
3045
3046 2006-06-05 Raphael Neider <rneider AT web.de>
3047
3048         * src/pic16/{pcode.h,genarith.c}:
3049           introduced pCodeOp combining any two pCodeOps (previously only
3050           two register operands could be combined), removed pcop2 from
3051           pCodepReg, replaced pCodeOpReg2 with pCodeOp2, fixes #1492366
3052         * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): added case for PO_TWO_OPS
3053         * src/pic16/gen.c (pic16_popGet2,pic16_popGet2p,pic16_popCombine2):
3054           rewritten to use new PO_TWO_OPS
3055         * src/pic16/main.c (_hasNativeMulFor): cover more cases natively,
3056         * src/pic16/pcode.c (pic16_newpCodeOpImmd): initialize rIdx field,
3057           (pic16_newpCodeOp): catch invalid attempts on PO_TWO_OPS,
3058           (pic16_newpCodeOp2): NEW, create combined pCodeOp,
3059           (pic16_get_op): embraced return arg to allow #define return(x),
3060             added new case for combined opcodes
3061           (pic16_get_op2): reduced to use pic16_get_op() on second pCodeOp,
3062           (pic16_pCode2str,pic16_getRegFrompCodeOp,
3063            pic16_getRegFromInstruction2): fixed/added handling of new pCodeOp
3064
3065 2006-06-04 Bernhard Held <bernhard AT bernhardheld.de>
3066
3067         * src/SDCCval.c (checkConstantRange): added
3068         * src/SDCCval.h: added checkConstantRange
3069         * support/Util/SDCCerr.c,
3070         * support/Util/SDCCerr.h: replaced unused W_IF_NEVER_TRUE and
3071         W_IF_ALWAYS_TRUE by W_COMP_RANGE and W_LIT_OVERFLOW
3072         * src/SDCC.y: moved early 'condition transformations' to SDCCast.c
3073         * src/SDCCast.c (decorateType): added checkConstantRange,
3074         added 'condition transformations' from SDCC.y so that now W_COMP_RANGE
3075         can be emitted with the correct always true/false warning,
3076         added optimization for double '!';
3077         result of decorateType() must be assigned back to the tree, because
3078         decorateType() can change the tree
3079         * src/SDCCicode.c (geniCodeLogic),
3080         (geniCodeAssign): replaced new checkConstantRange, added warnings,
3081         (checkConstantRange): removed, it was only a fragment which never
3082         emitted a warning
3083         * src/SDCCsymt.c (computeType): fixed promotion for
3084         "-1 < (unsigned bit) b"
3085         * src/pic/ralloc.c (packRegsForAssign),
3086         * src/pic16/ralloc.c (packRegsForAssign),
3087         * src/hc08/ralloc.c (packRegsForAssign),
3088         * src/z80/ralloc.c (packRegsForAssign): ported fix for bug #930931
3089         from mcs51
3090         * src/mcs51/ralloc.c (packRegsForAssign): removed outcommented source
3091         * support/regression/tests/constantRange.c: added
3092         * support/valdiag/tests/constantRange.c: added
3093         * support/valdiag/valdiag.py: added -DPORT_HOST=1
3094
3095 2006-06-02 Borut Razem <borut.razem AT siol.net>
3096
3097         * support/regression/ports/pic16/support.c: increase stack size
3098           to 255 bytes
3099         * support/regression/Makefile.in: sort tests by name so that the
3100           resutlts can be compared on different machines / platforms
3101
3102 2006-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
3103
3104         * device/lib/printf_large.c (output_digit): optimized further, Tnx Frieder
3105         * src/ds390/gen.c (emitLabel): new, added,
3106           (genDjnz): fixed stack overflow bug,
3107           (throughout): cosmetic changes to sync with mcs51/gen.c,
3108           replaced emitcode("", "%05d$:", lbl->key + 100) with emitLabel(lbl)
3109         * src/mcs51/gen.c (genEndFunction): small optimization,
3110           (throughout): cosmetic changes to sync with ds390/gen.c
3111
3112 2006-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
3113
3114         * device/lib/printf_large.c (output_digit, calculate_digit): optimized,
3115           (_print_format): fixed printing pointers
3116         * src/mcs51/gen.c (emitLabel, movb): new, added,
3117           (genAssign): small optimization,
3118           (genDjnz): fixed stack overflow bug,
3119           (throughout): replaced sprintf with SNPRINTF,
3120           replaced mcs51_regWithIdx with REG_WITH_INDEX,
3121           replaced emitcode("mov", "b,...") with MOVB(...),
3122           replaced emitcode("", "%05d$:", lbl->key + 100) with emitLabel(lbl),
3123           replaced D(emitcode("; genXXX", "")) with D(emitcode(";", "genXXX"))
3124         * src/mcs51/peeph.def: added rules 140 and 264
3125         * src/SDCCmem.c (allocLocal): store register declared locals in DSEG/OSEG
3126           so they may get optimized into registers
3127
3128 2006-05-30 Maarten Brock <sourceforge.brock AT dse.nl>
3129
3130         * src/SDCCmain.c (optionsTable, parseCmdLine): handle --use-stdout
3131           immediately when encountered,
3132           (printUsage): always use stderr even on windows
3133
3134 2006-05-30 Bernhard Held <bernhard AT bernhardheld.de>
3135
3136         * src/SDCCast.c (isLoopCountable): fixed bug #1478316
3137         (processParms): fixed bug #1247551
3138         * src/SDCCmain.c (printVersionInfo, printOptions, printUsage,
3139         parseCmdLine, main): print '--version' to stdout,
3140         print 'help' to stdout if --help is given,
3141         print 'help' to stderr and exit with EXIT_FAILURE if no or bad
3142         arguments are given; fixed --help
3143
3144 2006-05-27 Bernhard Held <bernhard AT bernhardheld.de>
3145
3146         * src/SDCCcse.c (findPointerSet): fixed bug #1493710
3147         * support/regression/tests/bug-1493710.c: added
3148
3149 2006-05-27 Borut Razem <borut.razem AT siol.net>
3150
3151         * support/regression/fwk/lib/testfwk.c: define array in _printn() as
3152           static instead auto
3153         * support/regression/ports/pic16/support.c: increase stack size
3154           from default 64 bytes to 128 bytes
3155         * support/regression/tests/staticinit.c,
3156           support/regression/tests/float.c: regression tests fully enabled
3157           for pic16 port by putting the initialized data arrays into the code
3158           section
3159         * support/regression/ports/pic16/spec.mk: don't link default libraries.
3160           This was changed by mistake in the previous version.
3161
3162 2006-05-28 Vangelis Rokas <vrokas AT users.sourceforge.net>
3163
3164         * src/pic16/gen.c (genFunction, genEndFunction): some
3165         beautifications, fixed bug with falsely restoring FSR2 in large
3166         stack model, thanks to Beau E. Cox for reporting the bug
3167
3168 2006-05-26 Maarten Brock <sourceforge.brock AT dse.nl>
3169
3170         * debugger/mcs51/break.c,
3171         * debugger/mcs51/cmd.c (throughout): removed unused variables and labels,
3172           use %p to print pointers, made address variables unsigned
3173         * debugger/mcs51/cmd.c (infoSymbols): added missing parameter to printf
3174         * debugger/mcs51/symtab.c (parseSymbol): must return something
3175         * src/mcs51/gen.c (aopForSym): small optimization,
3176            moved declarations mcs51_ptrRegReq and mcs51_nRegs to ralloc.h,
3177           (freeAsmop): added missing break,
3178           (aopPut): removed parameter bvolatile, determine it inside the function,
3179           (saveRegisters, unsaveRegisters): small optimization,
3180           (genIpush): removed pointless check,
3181           (throughout): replaced Safe_calloc, strcpy with Safe_strdup,
3182           replaced sprintf with SNPRINTF,
3183           replaced strcpy with strncpyz,
3184           updated aopPut calls,
3185           replaced D(emitcode("; genXXX", "")) with D(emitcode(";", "genXXX"))
3186         * src/mcs51/ralloc.h:  added declarations mcs51_ptrRegReq and mcs51_nRegs
3187
3188 2006-05-24 Borut Razem <borut.razem AT siol.net>
3189
3190         * support/regression/tests/bug-221100.c: fixed xdata problem caused by
3191           modification of test for the pic16 port, put the array to the code
3192           memory for pic16port; thanks to Maarten Brock and Frieder Ferlemann
3193
3194 2006-05-23 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3195
3196         * src/pic/gen.c: MSC 6 does not have <stdint.h>.  Use pstdint.h instead.
3197         * support/Util/pstdint.h: added
3198
3199 2006-05-22 Borut Razem <borut.razem AT siol.net>
3200
3201         * src/regression/Makefile: removed bool2.c test, added -q linker option
3202         * src/regression/add2.c, src/regression/add3.c, src/regression/bool1.c,
3203           src/regression/bool3.c, src/regression/nestfor.c, src/regression/ptrfunc.c,
3204           src/regression/compare.c, src/regression/or1.c, src/regression/compare2.c,
3205           src/regression/while.c, src/regression/compare3.c, src/regression/compare4.c,
3206           src/regression/compare5.c, src/regression/sub2.c, src/regression/rotate1.c,
3207           src/regression/rotate2.c, src/regression/rotate3.c, src/regression/rotate4.c,
3208           src/regression/switch1.c, src/regression/rotate5.c, src/regression/for.c,
3209           src/regression/add.c, src/regression/sub.c, src/regression/call1.c:
3210           define SUPPORT_BIT_TYPES 0, removed unused bit variables
3211
3212 2006-05-22 Raphael Neider <rneider AT web.de>
3213
3214         * src/pic16/gen.c (pic16_storeForReturn): fragile fix for
3215           bug #1492360 (problematic due to generic pointers, see code)
3216
3217 2006-05-22 Borut Razem <borut.razem AT siol.net>
3218
3219         * support/regression/ports/pic16/specs.mk: removed stack size linker
3220           directive
3221         * support/regression/tests/array.c,
3222           support/regression/tests/bitopcse.c,
3223           support/regression/tests/bug-908454.c,
3224           support/regression/tests/malloc.c: modified for pic16 regression test
3225         * support/regression/tests/bitfields.c:
3226           pic16 - excluded bitfileds of size > 8
3227         * support/regression/tests/bp.c: pic16 - reduced data size
3228         * support/regression/tests/bug-221100.c: pic16 - reduced data size
3229         * support/regression/tests/bug-460010.c:
3230           pic16 - used the absolute address the fits in memory
3231         * support/regression/tests/bug-716242.c:
3232           bug [ 1443651 ] pic 16: redefining symbol that cannot be redefined.
3233         * support/regression/tests/float.c:
3234           pic16 - excluded - data size too big
3235         * support/regression/tests/onebyte.c:
3236           pic16 - bug [ 1444425 ] onebyte.c regression tes fails on pic16
3237         * support/regression/tests/shifts.c:
3238           pic16 - function names probably have to differ in first X characters
3239           (gpasm limitation?)
3240         * support/regression/tests/staticinit.c:
3241           pic16 - excluded some tests due error: no target memory available for
3242           section ".idata"
3243
3244 2006-05-22 Borut Razem <borut.razem AT siol.net>
3245
3246         * support/Util/dbuf.c: fixed bug #1489008 fix dbuf_c_str(),
3247           second try. Thanks Stas Sergeev once more.
3248
3249 2006-05-21 Maarten Brock <sourceforge.brock AT dse.nl>
3250
3251         * src/hc08/gen.c (transferAopAop): aop forced to stack was not restored,
3252           (genLeftShift, genRightShift): fixed bug 1491627
3253         * src/hc08/peeph.def (rules 7, 8.x): added
3254         * support/regression/tests/shifts.c (ShiftLeftByParam,
3255           ShiftRightByParam, testShiftByParam): added to test variable shifting
3256
3257 2006-05-20 Raphael Neider <rneider AT web.de>
3258
3259         * src/pic/gen.c (bitpatternFromVal): fixed for 64-bit machines
3260         * src/pic16/ralloc.c (newReg): use correct name in hashtable,
3261           (allocReg): add only new registers to dynAllocRegs,
3262           (pic16_assignRegisters): do not reset dynrIdx, fixes bugs
3263             #1489055, #1445850, and probably #1483693
3264
3265 2006-05-19 Vangelis Rokas <vrokas AT users.sourceforge.net>
3266
3267         * src/pic16/glue.c (pic16_emitConfigRegs, pic16_emitIDRegs): fixed
3268         bug in for-loop that didn't emit the last of CONFIG and ID registers
3269
3270 2006-05-18 Maarten Brock <sourceforge.brock AT dse.nl>
3271
3272         * src/mcs51/gen.c (genCodePointerGet): inc dptr instead of loading acc
3273           with offset
3274         * src/mcs51/peeph.def (186.x): updated and reenabled to fix bugs
3275           1489016, 1434401 and 1490124
3276         * src/ds390/peeph.def (186.x, 227.x): updated and reenabled to fix bugs
3277           1489016, 1434401 and 1490124
3278
3279 2006-05-17 Borut Razem <borut.razem AT siol.net>
3280
3281         * support/Util/dbuf.c: fixed bug #1489008 fix dbuf_c_str(),
3282           thanks Stas Sergeev
3283
3284 2006-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
3285
3286         * device/include/mcs51/P89c51RD2.h,
3287         * device/include/mcs51/P89LPC901.h,
3288         * device/include/mcs51/P89LPC922.h,
3289         * device/include/mcs51/P89LPC932.h: added, thanks Omar Espinosa
3290
3291 2006-05-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
3292
3293         * device/lib/pic16/libsdcc/stack/{stack.S, Makefile.in}: add workaround
3294         to fix missing stack pragma in compiled binary object file,
3295
3296 2006-05-14 Bernhard Held <bernhard AT bernhardheld.de>
3297
3298         * support/packihx/configure.in,
3299         * support/packihx/configure: removed warning, autoconf >= 2.5x can
3300         determine sizeof basic types even while cross compiling
3301
3302 2006-05-13 Bernhard Held <bernhard AT bernhardheld.de>
3303
3304         * src/avr/gen.c (aopop),
3305         * src/ds390/gen.c (aopOp),
3306         * src/hc08/gen.c (aopOp),
3307         * src/mcs51/gen.c (aopop),
3308         * src/pic16/gen.c (pic16_aopOp),
3309         * src/pic/gen.c (aopOp),
3310         * src/z80/gen.c (aopop): fix for bug #1479882; use new, exclusive asmop
3311         if size of operand is smaller than spill location
3312
3313 2006-05-12 Borut Razem <borut.razem AT siol.net>
3314
3315         * *.dsw, *.dsp: changed property svn:eol-style to CRLF since they
3316           have to have CR/LF line endings even if they are checked out on *nix
3317           or on WIN32 in cygwin binmode
3318
3319 2006-05-12 Maarten Brock <sourceforge.brock AT dse.nl>
3320
3321         * doc/sdccman.lyx: documented numeric ranges, WEBDOC #1442369
3322         * device/include/ds80c390.h: added sfr16 definitions
3323         * src/ds390/gen.c,
3324         * src/ds390/gen.h,
3325         * src/ds390/main.c,
3326         * src/ds390/ralloc.c,
3327         * src/ds390/ralloc.h: changes all over the place to sync with mcs51
3328           fixing several bugs and adding sfr16/sfr32, reentrant bit params,
3329           bit returning functions
3330         * support/regression/tests/sfr16.c: enabled test on ds390
3331
3332 2006-05-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3333
3334         * src/hc08/gen.c (asmopToBool, genIfx): fix for bug #1429722
3335         * src/hc08/gen.c (storeRegToAop): fix for bug #1439894
3336
3337 2006-05-11 Maarten Brock <sourceforge.brock AT dse.nl>
3338
3339         * sim/ucsim/sim.src/memcl.h: added get_decoder() to cl_address_space
3340         * sim/ucsim/sim.src/mem.cc: implemented cl_address_space::get_decoder,
3341           (cl_address_space constructor): removed expensive initialization,
3342           (cl_address_space::get_cell): extended for late initialization,
3343           (cl_address_space::*): use late initialization,
3344           (cl_address_decoder::activate): removed expensive initialization,
3345           This reduced regression test running time by 25%
3346
3347 2006-05-11 Bernhard Held <bernhard AT bernhardheld.de>
3348
3349         * packihx/,
3350         * configure.in,
3351         * configure,
3352         * sdcc.dsw,
3353         * Makefile.bcc,
3354         * Makefile.in,
3355         * support/packihx/Makefile.in,
3356         * support/packihx/clean.mk,
3357         * support/packihx/Makefile.bcc,
3358         * support/packihx/PackIhx.dsp: moved packihx to support/packihx
3359
3360 2006-05-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3361
3362         * src/SDCCval.c (valNot): fix for regression test failure
3363           of not.c on big endian hosts
3364
3365 2006-05-10 Maarten Brock <sourceforge.brock AT dse.nl>
3366
3367         * device/inlcude/mcs51/msc1210.h: new, added, thanks Philippe Latu
3368
3369 2006-05-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3370
3371         * device/lib/mcs51/Makefile.in: changed string comparison operator
3372           to = for POSIX compliance; == is bash extension
3373
3374 2006-05-10 Maarten Brock <sourceforge.brock AT dse.nl>
3375
3376         * device/lib/hc08/_mulint.c: applied patch 1485428, thanks
3377           kosmonaut_pirx
3378
3379 2006-05-09 Vangelis Rokas <vrokas AT users.sourceforge.net>
3380
3381         * src/pic16/gen.c (pic16_freeAsmop): release any temp registers
3382         allocated by aopForSym thus fixing bug #1478657 about failed testfwk.c
3383         * src/pic16/main.c (_pic16_keywords): added 'sfr16' keyword,
3384         * src/pic16/ralloc.c (pic16_allocWithIdx): also a fix for bug exposed by
3385         bug report #1478657,
3386
3387 2006-05-05 Borut Razem <borut.razem AT siol.net>
3388
3389         * doc/Makefile.in: remove of WARNINGS and labels.pl immediately after
3390           making the html
3391
3392 2006-05-02 Borut Razem <borut.razem AT siol.net>
3393
3394         * doc/Makefile.in: removed *.ind dependency since there is no rule to
3395           create *.ind, which made make to fail if invoked with -j 2
3396
3397 2006-05-01 Maarten Brock <sourceforge.brock AT dse.nl>
3398
3399         * src/SDCCglue.c (emitRegularMap): partial fix for bug 1477149, thanks
3400           Hubert Sack for patch 1479782
3401
3402 2006-05-01 Vangelis Rokas <vrokas AT users.sourceforge.net>
3403
3404         * src/pic16/glue.c (pic16_printIvalStruct): fixed bug #1445929
3405
3406 2006-05-01 Raphael Neider <rneider AT web.de>
3407
3408         * src/pic/device.c (sanitise_processor_name): only remove p(ic) prefix,
3409           (create_pic): store only prefix-free device name,
3410           (init_pic): check for device names with "16" prefix,
3411           (list_valid_pics),
3412         * src/pic/device.h (struct PIC_device),
3413         * src/pic/main.c (_pic14_genAssemblerPreamble): adapted to single
3414             stored device name,
3415         * device/include/pic/pic12f{635,675,629,683}.h,
3416         * device/lib/pic/libdev/pic12f{635,675,629,683}.c: NEW device libraries
3417         * device/lib/pic/libdev/Makefile.in: allow pic12* devices,
3418         * device/include/pic/pic16f505.h,
3419         * device/lib/pic/libdev/pic16f505.c: removed
3420         * device/include/pic/pic14devices.txt: added support for pic12f
3421             devices, removed unsupported non 16-bit devices
3422             [above changes provided by patch from Zik Saleeba]
3423         * src/pic/*, src/pic16/*, device/include/pic16/*,
3424           device/lib/pic/**, device/lib/pic16/**: obfuscated email address
3425
3426 2006-05-01 Borut Razem <borut.razem AT siol.net>
3427
3428         * configure.in, configure, doc/Makefile.in:
3429           sync with nightly build makefile - latex, dvipdf and dvips
3430           not needed any more
3431
3432 2006-04-30 Bernhard Held <bernhard AT bernhardheld.de>
3433
3434         * support/scripts/sdcc.nsi: removed all Readmes and Makefiles
3435         in the library source
3436
3437 2006-04-30 Maarten Brock <sourceforge.brock AT dse.nl>
3438
3439         * support/regression/ports/hc08/spec.mk: fixed bug 1478892
3440
3441 2006-04-28 Raphael Neider <rneider AT web.de>
3442
3443         * src/pic16/pcode.c (pic16_newpCodeOpLit12),
3444         * src/pic16/gen.c (pic16_popGetLit12): NEW, create 12 bit literal,
3445           (pic16_loadFSR0): handle 12 bit literals correctly, fixes #1440527
3446         * src/pic16/pcode.h: added prototype for pic16_newpCodeOpLit12()
3447
3448 2006-04-28 Bernhard Held <bernhard AT bernhardheld.de>
3449
3450         * device/lib/pic/libdev/Makefile.in,
3451         * device/lib/hc08/Makefile.in,
3452         * device/lib/gbz80/Makefile.in,
3453         * device/lib/z80/Makefile.in,
3454         * device/lib/ds390/Makefile.in,
3455         * device/lib/ds400/Makefile.in: added srcdir to include search path,
3456         thanks to Borut for the bug report
3457         * configure.in,
3458         * configure: always create doc/Makefile independent from --enable-doc
3459         * Makefile.in: always install from directory doc independent from
3460         --enable-doc
3461         * device/lib/pic/Makefile.in: added libdev again, it was erroneously
3462         removed
3463         * device/lib/pic/libdev/Makefile.in: fixed VPATH build
3464         * doc/Makefile.in: install *.txt if present
3465         * device/include/Makefile.in (install): added installation of pic/*.inc
3466         and pic/*.txt files again, they were erroneously removed
3467
3468 2006-04-28 Raphael Neider <rneider AT web.de>
3469
3470         * src/pic/{gen.c,main.h,pcode.c},
3471         * src/pic16/{gen.c,pcode.c}: quietened compiler warnings
3472             concerning signedness with casts
3473
3474 2006-04-28 Raphael Neider <rneider AT web.de>
3475
3476         * src/pic/gen.c (genFunction): set global pic14_hasInterrupt on
3477             definition of an interrupt handler,
3478         * src/pic/glue.c (pic14_emitInterruptHandler): moved output of
3479             interrupt handler stuff from picglue() to separate routine,
3480           (picglue): enabled definition of intr handlers in files w/o main()
3481
3482 2006-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
3483
3484         * support/librarian/sdcclib.c: moved include <limits.h> up to enable
3485           compilation with MSVC 2005 Express Edition (VC8)
3486
3487 2006-04-26 Bernhard Held <bernhard AT bernhardheld.de>
3488
3489         * device/lib/Makefile: fixed build of gbz80 lib
3490
3491 2006-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
3492
3493         * support/regression/tests/bug-460010.c,
3494         * support/regression/tests/bug-524691.c,
3495         * support/regression/tests/bug-716242.c: removed conditional defines
3496           that are already in testfwk.h
3497
3498 2006-04-25 Maarten Brock <sourceforge.brock AT dse.nl>
3499
3500         * src/ds390/gen.c (AccAXRrl1, AccAXLrl1): changed to real rotate by 1,
3501           (AccAXRsh1): added, shift right by 1,
3502           (AccAXLsh, AccAXRsh, AccAXRshS): updated for AccAXRrl1, AccAXRsh1 and
3503            AccAXLrl1
3504         * support/regression/tests/rotate.c: use <stdint.h> and enabled ds390
3505
3506 2006-04-25 Bernhard Held <bernhard AT bernhardheld.de>
3507
3508         * src/SDCCast.c (decorateType): partial fix for RFE 1475769,
3509         remove cast to same type
3510         * src/SDCCast.c (decorateType): fix for RFE 1475742,
3511         optimize 'ifx (op == 0)' resp. 'ifx (op != 0)'
3512         * as/z80/Makefile,
3513         * link/z80/Makefile: removed, they have moved to
3514         Makefile.in files
3515         * configure,
3516         * configure.in: replaced duplicate message about ucsim by missing sdcpp
3517         * install-sh: fix bug #1204398 by setting umask 0022
3518         * device/lib/Makefile: separate build of z80 and gbz80 lib
3519
3520 2006-04-24 Bernhard Held <bernhard AT bernhardheld.de>
3521
3522         Enabled VPATH feature: changed nearly all Makefiles (149 files).
3523         See sdccman.lyx '2.4.10 VPATH feature' about how to use it.
3524
3525         One basic decision: e.g. src/clean.mk includes further files. In order
3526         to make this work there are two solutions:
3527         - rename another dozen clean.mk to clean_in.mk, add srcdir to them and
3528           run configure on them. This way they can use
3529           'include $(srcdir)/port-clean.mk'
3530         - always include clean.mk by the Makefile at the same level. To avoid
3531           that `make clean` tries to include and build Makefile.dep the
3532           MAKECMDGOALS are examined (see e.g. src/Makefile.in). This has been
3533           implemented, because now even `make uninstall` doesn't create
3534           Makefile.in. clean.mk could be eliminated by pasting it in
3535           Makefile.in.
3536
3537         * debugger/mcs51/Makefile.in: build own objects from library sources
3538         (SLIB, SDCC) in current directory
3539
3540         * configure, configure.in: renamed --disable-device-lib-build in
3541         --disable-device-lib; added --enable-doc, the required tools are
3542         searched by configure; added result message; the toolchain for the
3543         belonging ports are now only built, if the port is enabled.
3544
3545         * support/regression/*: all output is written in directory gen, because
3546         the fwk and ports directories don't livet in the build tree using vpath
3547
3548         * doc/sdccman.lyx: renamed --disable-device-lib-build to
3549         --disable-device-lib, added --enable-doc, added section VPATH
3550
3551         * sim/ucsim/configure.in,
3552         * sim/ucsim/configure.in: hc08 couldn't be disabled, now hc08 and
3553         z80 are enabled by default
3554
3555 2006-04-24 Raphael Neider <rneider AT web.de>
3556
3557         * src/pic/device.c (pic14_assignConfigWordValue): remember assignments
3558             to config word, "pic14_"-prefixed some extern functions
3559           (pic14_emitConfigWord): emit __config directive(s) if assignment to
3560             config word has been found
3561         * src/pic/device.h: added prototypes
3562         * src/pic/pcode.c: added "pic14_"-prefix where needed
3563         * src/pic/ralloc.c (IS_CONFIG_ADDRESS,pic14_assignRegisters): cosmetic
3564             fixup
3565         * src/pic/glue.c (pic14_constructAbsMap): handle assignments to config
3566             words,
3567           (pic14emitRegularMap): ignore config words,
3568           (pic14createInterruptVect): moved generating __config directives away
3569           (picglue): have __config directives emitted
3570
3571 2006-04-24 Borut Razem <borut.razem AT siol.net>
3572
3573         * doc/Makefile: sync with nightly build makefile
3574
3575 2006-04-24 Raphael Neider <rneider AT web.de>
3576
3577         * src/pic/pcoderegs.c (OptimizeRegUsage): do not optimize
3578             registers that have not been assigned proper liveranges,
3579             fixes #1469504 and #1474602,
3580           (pCodeRegOptimizeRegUsage): fixed typo in comment
3581
3582 2006-04-24 Borut Razem <borut.razem AT siol.net>
3583
3584         * device/examples/main8051.c: deleted - it was removed from CVS
3585           24.mar.2000 and after that modified 18.feb.2001, so it reappered
3586           after the transition to Subversion
3587         * src/SDCCalloc.h: deleted - it was removed  from CVS
3588           3.feb.2001 and after that modified 18.feb.2001, so it reappered
3589           after the transition to Subversion
3590         * sim/ucsim/cpu.gif, sim/ucsim/interrupt.gif, sim/ucsim/new.gif,
3591           sim/ucsim/serial1.gif, sim/ucsim/serial2.gif,
3592           sim/ucsim/term_cpuopt.gif, sim/ucsim/timers.gif, sim/ucsim/wins.gif,
3593           sim/ucsim/post.jpg, sim/ucsim/UCsim.jpg: corrected
3594
3595 2006-04-22 Maarten Brock <sourceforge.brock AT dse.nl>
3596
3597         * as/asx8051.dsp: added mcs51/strcmpi.h
3598         * as/hc08/as_hc08.dsp: added asm.h, m6808.h, strcmpi.h
3599         * as/hc08/aslink.h: updated lnksect prototype
3600         * as/hc08/asm.h,
3601         * as/mcs51/asm.h: added a_addr to struct area and s_org to struct sym
3602         * as/hc08/asmain.c,
3603         * as/mcs51/asmain.c (asmbl): init dot.s_org for S_ORG,
3604           (newdot): handle A_ABS
3605         * as/hc08/asout.c,
3606         * as/mcs51/asout.c (outarea): output address
3607         * as/hc08/lkaomf51.c,
3608         * as/mcs51/lkaomf51.c: disabled unused array UsageType
3609         * as/hc08/m08pst.c,
3610         * as/mcs51/i51pst.c,
3611         * as/z80/z80pst.c: "ABS" is not A_OVR
3612         * as/hc08/lkarea.c (newarea): read a_addr,
3613           (lnkarea): added codemap array, sort absolute areas to the front,
3614            combine all GSINITx/GSFINAL,
3615           (find_empty_space, allocate_space): new functions,
3616           (lnksect): return next address, handle absolute sections
3617         * as/mcs51/lkarea.c (newarea): read a_addr,
3618           lnksect2 prototype changed,
3619           (lnkarea2): define codemap unsigned, combine all GSINITx/GSFINAL,
3620           (find_empty_space, allocate_space): new, factored out of lnksect2,
3621           (lnksect2): return next address, handle absolute sections
3622         * as/hc08/lkhead.c,
3623         * as/mcs51/lkhead.c (newhead): head is absolute but not overlay
3624         * as/hc08/lklibr.c (addfile, fndsym),
3625         * as/mcs51/lklibr.c (addfile, buildlibraryindex, fndsym): prevent
3626           index out of range and detect both '\' and '/'
3627         * device/include/mcs51/c8051f200.h: added _XPAGE, removed bad comment
3628         * device/include/stdbool.h: removed SDCC_ds390 from check to pass
3629           regression tests (ds390 cannot return bool yet)
3630         * doc/sdccman.lyx: changed version number, document changed --no-peep,
3631           document critical interrupts on z80, document changed SDCC define
3632         * src/asm.c (_asxxxx_mapping): fixed .org directive,
3633           (_a390_mapping): added .org directive
3634         * src/hc08/gen.c (transferAopAop): made bytemask log to fix warning,
3635           (genMultOneByte): fixed warnings
3636         * src/hc08/hc08.dsp: lowered warning level to 2 to suppress pedantic
3637           ones
3638         * src/pic16/device.c: removed newReg prototype, removed BYTE_IN_LONG
3639         * src/pic16/gen.c (pic16_popGetLabel): made parameter key signed,
3640           (pic16_genLeftShiftLiteral, genRightShiftLiteral): fixed warnings
3641         * src/pic16/gen.h: changed prototype for pic16_popGetLabel
3642         * src/pic16/main.c: removed newReg prototype
3643         * src/pic16/pcode.c,
3644         * src/pic16/pcode.h (pic16_emitDB): changed parameter c to int to fix
3645           warnings
3646         * src/pic16/pic16.dsp: lowered warning level to 2 to suppress pedantic
3647           ones
3648         * src/pic16/ralloc.c
3649         * src/pic16/ralloc.h (newReg): changed type to int and size to unsigned
3650           to fix warnings
3651         * src/pic/pcode.c (allocInternalRegister): changed parameter optype
3652           from short to PIC_OPTYPE
3653         * src/pic/pic.dsp: lowered warning level to 2 to suppress pedantic ones
3654         * src/pic/ralloc.c (newReg, allocInternalRegister): changed parameter
3655           optype from short to PIC_OPTYPE
3656         * src/port.h: made int_size unsigned to fix warnings
3657         * src/SDCC.y: fixed warning on MSVC
3658         * src/SDCCicode.c (getArraySizePtr): return unsigned int
3659         * src/SDCCopt.c (convertToFcall): fixed warnings
3660         * src/SDCCsymt.h: removed double prototype for genSymName
3661         * src/xa51/ralloc.c (allocReg): made size unsigned int, type int and
3662           offset int to fix warnings
3663
3664 2006-04-22 Borut Razem <borut.razem AT siol.net>
3665
3666         * doc/sdccman.lyx, */Makefile, */Makefile.in:
3667           references to CVS replaced with Subversion
3668
3669 2006-04-21 Borut Razem <borut.razem AT siol.net>
3670
3671         * doc/sdccman.lyx, */Makefile, */Makefile.in:
3672           references to CVS replaced with Subversion
3673
3674 2006-04-19 Borut Razem <borut.razem AT siol.net>
3675
3676         * src/version.awk: adapted for svn
3677         * /asxxxx/asxhtml/*.gif: set property svn:mime-type to image/gif
3678           sim/ucsim/doc/*.gif: set property svn:mime-type to image/gif
3679           sim/ucsim/doc/*.jpg: set property svn:mime-type to image/jpeg
3680           /binutils-avr/etc/*.vi, *.jin: removed all properties
3681           support/scripts/sdcc.ico: set property svn:mime-type to image/x-icon
3682
3683 2006-04-19 Borut Razem <borut.razem AT siol.net>
3684
3685         * CVS to Subversion migration completed
3686
3687 2006-04-18 Borut Razem <borut.razem AT siol.net>
3688
3689         * support/scripts/sdcc.nsi: removed unexisting ${DEV_ROOT}\lib\pic\*.o,
3690           ${DEV_ROOT}\lib\src\pic\libdev\*.S, ${DEV_ROOT}\lib\src\pic\libdev\*.inc
3691
3692 2006-04-17 Borut Razem <borut.razem AT siol.net>
3693
3694         * device/include/Makefile.in: added pic/*.inc to the installation
3695
3696 2006-04-15 Bernhard Held <bernhard AT bernhardheld.de>
3697
3698         * support/regression/collate-results.py: fixed output in case of
3699         a valdiag error
3700         * support/regression/generate-cases.py: fixed splitting of pathnames
3701         with dots
3702         * as/hc08/lklibr.c (addfile),
3703         * as/mcs51/lklibr.c (addfile): fixed off-by-one bug
3704
3705 2006-04-11 Raphael Neider <rneider AT web.de>
3706
3707         * src/pic16/gen.c (getFreePtr, pic16_popRegFromString),
3708         * src/pic16/ralloc.c (pic16_allocregWithName): removed debug output
3709         * src/pic16/pcode.c (assignValnums): fixed #1460578
3710
3711 2006-04-11 Raphael Neider <rneider AT web.de>
3712
3713         * device/lib/pic/libdev/*.c,
3714         * device/include/pic/*.h: replaced sfr and data with __sfr and __data,
3715           fixes #1468739, enables compilation in --std-c99 mode
3716         * support/scripts/inc2h.pl: emit __sfr/__data instead of sfr/data
3717
3718 2006-04-11 Raphael Neider <rneider AT web.de>
3719
3720         * src/pic/device.c (find_device): removed debug output
3721           (list_valid_pics): enabled verbose listing of supported devices
3722         * device/include/stdbool.h: define bool as char for pic14/16 as well
3723
3724 2006-04-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3725
3726         * src/SDCC.y: allow using brackets here: "__interrupt (1) __using (1)"
3727
3728 2006-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
3729
3730         * .version: bumped version to 2.5.6
3731         * src/pic/ralloc.c (newReg): MSVC doesn't support __builtin_return_address
3732
3733 2006-04-06 Raphael Neider <rneider AT web.de>
3734
3735         * .version: bumped version to 2.5.6 (pic14 ABI changed)
3736         * src/SDCCmain.c: add -DSDCC_PROCESSOR=<id> for pic14 port
3737         * src/pic/glue.c (emitSymbolToFile,pic14_constructAbsMap,
3738           pic14emitRegularMap,pic14emitMaps): moved output for absolute symbols to
3739             pic14_constructAbsMap
3740           (pic14printPublics): declare absolute global symbols as global
3741           (pic14createInterruptVect),
3742         * src/pic/ralloc.c (IS_CONFIG_ADDRESS): support second config word,
3743           (newReg): assume new registers unused, use correct name in
3744             hashtable (reg->name instead of name), more debugLog output
3745         * src/pic/device.h (PIC_device): added fields for verbose output
3746         * src/pic/device.c: moved device definition to pic14devices.txt,
3747             added routines for runtime parsing of pic14devices.txt,
3748             added support for second config word
3749         * src/pic/main.c (_process_pragma): removed #pragma maxram,
3750           (_pic14_keywords): no longer accept "bit" and "sbit" keywords
3751           (_pic14_initPaths): add search paths with "pic" suffix (not "pic14")
3752           (_pic14_parseOptions): moved pCodeInitRegisters here
3753           (_pic14_do_link): add "pic$(ARCH).lib" to linker arguments
3754         * src/pic/pcode.c (AnalyzeBanking): bail out on unset processor,
3755           (pCodeInitRegisters): rewrapped comments, perpared new approach to
3756             handling the pseudo stack
3757         * device/lib/Makefile.in: ignore failures in objects-pic16,
3758         * device/lib/pic/{configure,configure.in,Makefile}: added libdev/
3759         * device/lib/pic/NEWS: document new dependency on picXXX.lib
3760         * device/lib/pic/Makefile.subdir,
3761         * device/lib/pic16/Makefile.subdir: improved clean rules
3762         * device/lib/pic/libdev/: NEW, pic14 device libraries
3763         * device/lib/pic/libsdcc/_gptr{get,put}{1,2,3,4}.S: use _X not X
3764         * device/lib/pic/libsdcc/macros.inc: use _X not X, declare default SFRs
3765         * device/include/Makefile.in: create subdir and install pic14 headers
3766         * device/include/pic/p16f_common.inc: removed unused declarations
3767         * device/include/pic/pic16*.h: added header files for 100+ 14 bit
3768             PICs from inc2h.pl v1.6,
3769             replaced BIT_AT macros with struct declarations
3770         * device/include/pic/pic14devices.txt: definition of supported devices,
3771             all above improvements contributed by Zik Saleeba, thanks
3772         * support/scripts/inc2h.pl: removed BIT_AT, replaced with structs
3773         * support/scripts/sdcc.nsi: also install pic14 device libraries and
3774             headers
3775
3776 2006-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
3777
3778         * device/include/mcs51/c8051f410.h: added interrupt numbers,
3779         * device/include/mcs51/c8051f200.h: old SiLabs mcu completes the list,
3780           thanks to Charles Olds
3781
3782 2006-04-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3783
3784         * debugger/mcs51/cmd.c (infoRegisters): show return address on stack
3785
3786 2006-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
3787
3788         * src/SDCCpeeph.c (labelIsReturnOnly): fixed bug 1464657
3789         * src/mcs51/gen.c (genJumpTab): fixed bug in medium model
3790         * support/regression/bug1464657.c: added, new test
3791
3792 2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
3793
3794         * src/SDCCmain.c (preProcess): implemented RFE 1449908, define SDCC as the
3795           version number
3796
3797 2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
3798
3799         * src/SDCCpeeph.c (initPeepHole): implemented RFE 1460196, when both
3800           --no-peep and --peep-file <file> are used don't use default rules but
3801           do use the <file>
3802
3803 2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
3804
3805         * src/mcs51/gen.c (genCall): fixed bug 1457608
3806
3807 2006-03-30 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3808
3809         * doc/sdccman.lyx: reverted to version 1.129 of december as my latest
3810         changes seem to cause (trigger?) problems with the build system.
3811
3812 2006-03-29 Maarten Brock <sourceforge.brock AT dse.nl>
3813
3814         * src/SDCCpeeph.c (operandsLiteral): new, added,
3815           (callFuncByName): inserted operandsLiteral
3816         * src/mcs51/peeph.def: reenabled 132.e, added extra check to 132.x
3817
3818 2006-03-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3819
3820         * doc/sdccman.lyx: added paragraph "Use of SDCC in Education"
3821         * src/mcs51/peeph.def: disabled rule 132.e fixing bug #1453093
3822
3823 2006-03-24 Maarten Brock <sourceforge.brock AT dse.nl>
3824
3825         * src/z80/gen.c (genFunction, genEndFunction): fixed bug 1160666,
3826           implemented patch 1120823 Thanks to Willy De la Court (normal
3827           interrupts need an interrupt number now if they are made critical),
3828           and enabled nesting of critical functions though not for gbz80
3829           (genCritical, genEndCritical): added functions
3830           (genZ80Code): added cases for CRITICAL and ENDCRITICAL
3831         * src/z80/mappings.i: added "ei" to all mappings
3832
3833 2006-03-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3834
3835         * sim/ucsim/cmd.src/newcmdcl.h: applied patch fixing GCC 4.1 build
3836         submitted by the Debian SDCC maintainer Aurelien Jarno:
3837         "Credits goes to Martin Michlmayr, who rebuilt the whole Debian
3838         archive with gcc 4.1 on mips and wrote the patch"
3839
3840 2006-03-16 Raphael Neider <rneider AT web.de>
3841
3842         * src/pic16/genarith.c (genAddLit): simplified and fixed case where
3843           the left operand is shorter than the result (c* = lit-c* + int),
3844           fixes bug #1450796
3845         * src/pic16/gen.c (genRightShift): check IS_SYMOP before accessing
3846           OP_SYMBOL
3847
3848 2006-03-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
3849
3850         * src/.version: increased version number to 2.5.5
3851         * src/SDCCmain.c (linkEdit): do not test for PIC16 target since, PIC16
3852         linking is done manually in pic16 port's _linkEdit,
3853         * src/SDCCsymt.c (compStructSize): for target PIC16 and shell variable
3854         PIC16_PACKED_BITFIELDS, compact bitfield structures as much as possible,
3855         * src/pic16/gen.c (aopForSym): when direct register name is WREG then
3856         allocate asmop as AOP_ACC,
3857         (aopForRemat): added parameter 'bool result' in function declaration,
3858         (pic16_aopGet): return AOP_ACC when accessing WREG,
3859         (pic16_popGetTempReg): minor modification,
3860         (pic16_popRegFromIdx): first try with 'pic16_regWithIdx' then with
3861         'pic16_allocWithIdx',
3862         (genPcall): removed ftype, usage of OP_SYM_TYPE asserted error when
3863         calling function in absolute addresses,
3864         (genAssign): take into account AOP_ACC asmop,
3865         * src/pic16/pcode.c (pic16_newpCodeOpReg): minor modifications,
3866         * src/pic16/pcoderegs.c: some debug functions and lines added,
3867         * src/pic16/ralloc.c (decodeRegType): added but commented out,
3868         * (pic16_typeRegWithIdx): search 'pic16_dynInternalRegs' for given
3869         register too,
3870         * (pic16_findFreeReg, pic16_findFreeRegNext): allocate new register via
3871         call to allocReg, not by manually allocating a new one,
3872         (pic16_assignRegisters): now before going through the register
3873         allocating functions mark all registers as free. This eliminates some
3874         side effects resulting from peephole parser done earlier in the backbone
3875
3876 2006-03-13 Maarten Brock <sourceforge.brock AT dse.nl>
3877
3878         * src/SDCCicode.c (geniCodeLogic),
3879         * src/SDCCast.c (decorateType): applied patch by Bernhard for rfe 1422617
3880
3881 2006-03-10 Maarten Brock <sourceforge.brock AT dse.nl>
3882
3883         * src/mcs51/gen.c (sameReg): new, checks if two aop regs are the same,
3884           (genSend): bugfix, do not allocate and free twice,
3885           (shiftRLong): handle partially overlapping aops
3886         * support/regression/tests/bitopcse.c: fixed warning redefined idata
3887
3888 2006-03-08 Borut Razem <borut.razem AT siol.net>
3889
3890         * support/regression/fwk/include/testfwk.h: added defines for xdata, idata
3891           for pic16
3892
3893 2006-03-08 Maarten Brock <sourceforge.brock AT dse.nl>
3894
3895         * support/regression/tests/bug1409955.c: new, added
3896         * src/mcs51/gen.h: changed asmop.freed:1 to asmop.allocated for tracking
3897         * src/mcs51/gen.c (newAsmop): set asmop.allocated to 1,
3898           (aopForSym, aopOp): increment asmop.allocated if reused,
3899           (freeAsmop): decrement asmop.allocated and check for zero instead of
3900           using asmop.freed,
3901           (freeForBranchAsmop): use asmop.allocated instead of asmop.freed,
3902           (genNot, genCpl, genUminus, genMinus, genMult, genDiv, genMod, genCmpGt,
3903            genCmpLt, genAndOp, genOrOp, genAnd, genOr, genXor, genRRC, genRLC,
3904            genGetHbit, genGetAbit, genGetByte, genGetWord, genSwap,
3905            genLeftShiftLiteral, genLeftShift, genRightShiftLiteral,
3906            genSignedRightShift, genRightShift, genDataPointerGet,
3907            genPagedPointerGet, genFarPointerGet, genCodePointerGet,
3908            genGenPointerGet, genDataPointerSet, genAssign, genCast): free asmop's
3909             in reverse order from allocation,
3910           (genPlus, genCmpEq): free asmop's in reverse order from allocation and
3911             added swappedLR to keep track
3912         * support/regression/fwk/include/testfwk.h: added defines for xdata, idata,
3913           pdata & code for GCC, z80, gbz80 & hc08
3914         * support/regression/tests/zeropad.c: moved defines to testfwk.h
3915
3916 2006-03-08 Raphael Neider <rneider AT web.de>
3917
3918         * src/pic16/main.c (_hasNativeMulFor): fixed bug #1444425
3919
3920 2006-03-07 Maarten Brock <sourceforge.brock AT dse.nl>
3921
3922         * device/include/mcs51/c8051f410.h: new SiLabs mcu
3923         * src/ds390/peeph.def: disabled 186.d and 227.a as fix for #1434401
3924         * support/regression/tests/array.c: added parenthesis, made arrays unsigned
3925
3926 2006-03-06 Borut Razem <borut.razem AT siol.net>
3927
3928         * support/regression/ports/pic16/spec.mk: link with libm18f.lib,
3929           made the linker quiet
3930
3931 2006-03-06 Vangelis Rokas <vrokas AT users.sourceforge.net>
3932
3933         * src/pic16/gen.c (genPcall): fixed bug #1443644
3934         * src/pic16/device.h (struct pic16_options_t): added 'int CATregs' flag
3935         which dumps before the function entry point a data byte which represents
3936         the number of the local variables used by the specified function, added
3937         'xinst' for initial support for Extended Instruction Support,
3938         * src/pic16/gen.c (aopForSym, pic16_aopGet): beautifications,
3939         (pic16_testStackOverflow): do not prefix GSTACK_TEST_NAME with
3940         port->fun_prefix anymore (may change later),
3941         (genFunction, genEndFunction): do not store/restore local registers for
3942         _main (this should take care the --main-return command line option in
3943         the future),
3944         (genOr): removed some legacy pic-port instructions,
3945         * src/pic16/genarith.c (genAddLit): re-enabled old code because
3946         performing operations with SFR's causes data to be written more than
3947         once to each SFR. Perhaps SFRs should be handled in special cases...
3948         * src/pic16/glue.c: macros BIG_ENDIAN and BYTE_IN_LONG are moved to
3949         pcode.h
3950         * src/pic16/main.c (_process_pragma): stack bound checking did not take
3951         into account for stack starting position,
3952         (struct OPTIONS pic16_optionsTable): added command line argument
3953         --extended or -y for Extended Instruction Support,
3954         * src/pic16/ralloc.c (pic16_decodeOp): added case for FUNCTION,
3955         (deassignLRs): *** perhaps the most important change, old 'for' code
3956         (commented out for reference), didn't account for some registers which
3957         were left marked 'not free' after a pointer operation. The change
3958         reduces register usage a lot in some cases
3959
3960 2006-03-04 Borut Razem <borut.razem AT siol.net>
3961
3962         * support/regression/ports/hc08/spec.mk: remove *.asm in traget
3963           _clean
3964         * support/regression/tests/bug-524697.c: decreased array size for
3965           mcs51 to fit into the internal RAM
3966         * support/regression/Makefile.in: a little bit more verbose
3967
3968 2006-03-03 Borut Razem <borut.razem AT siol.net>
3969
3970         * support/regression/fwk/lib/testfwk.c,
3971           support/regression/fwk/include/testfwk.h: introduced function
3972           _prints(), nonrecursive _printn(), call _initEmu() from main()
3973         * support/regression/ports/gbz80/support.asm,
3974           support/regression/ports/ucz80/support.asm,
3975           support/regression/ports/z80/support.asm,
3976           support/regression/ports/ds390/support.c,
3977           support/regression/ports/hc08/support.c,
3978           support/regression/ports/host/support.c,
3979           support/regression/ports/mcs51/support.c,
3980           support/regression/ports/xa51/support.c: added empty _initEmu()
3981           function
3982         * support/regression/ports/pic16/gpsim.cmd,
3983           support/regression/ports/pic16/spec.mk,
3984           support/regression/ports/pic16/support.c,
3985           support/regression/Makefile.in: added pic16 regression test
3986
3987 2006-03-01 Raphael Neider <rneider AT web.de>
3988
3989         * src/pic16/gen.c (genPcall,pic16_derefPtr,genGenPointerGet,
3990           genConstPointerGet): use safe way of generating MOVFF to cover
3991             literals as well as registers, fixes bug #1440527
3992         * src/pic16/glue.c (pic16_printIvalBitFields): prevent NULL pointer
3993             dereference
3994           (pic16_printIvalUnion,pic16_isUnion): NEW, handle initialized unions
3995             more correctly, fixes bug #1232186
3996           (pic16_printIval): use pic16_printIvalUnion() for initialized unions
3997         * src/pic16/main.c (_pic16_linkEdit): reorder linker arguments to make
3998             gplink guess the correct processor in more cases, applied patch
3999             from Till Riedel attached to and fixing bug #1436552
4000
4001 2006-02-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4002
4003         * support/regression/tests/array.c: added, contains check for #1434401
4004         * src/mcs51/peeph.def: disabled 186.d as temporary fix for #1434401
4005
4006 2006-02-16 Maarten Brock <sourceforge.brock AT dse.nl>
4007
4008         * device/include/mcs51/at89s8253.h: new, thanks to Krzysztof Polomka
4009         * device/include/mcs51/at89S8252.h: fixed, thanks to Krzysztof Polomka
4010         * device/include/mcs51/c8051f326.h,
4011         * device/include/mcs51/c8051f340.h: new SiLabs mcu's
4012         * device/include/mcs51/c8051f000.h,
4013         * device/include/mcs51/c8051f018.h,
4014         * device/include/mcs51/c8051f020.h: used () with __at, renamed IDLE,STOP to
4015           PCON_IDLE,PCON_STOP and added sfr16 definitions
4016
4017 2006-02-14 Maarten Brock <sourceforge.brock AT dse.nl>
4018
4019         * src/mcs51/gen.c (genPlus, genMinus, genMult, genGetAbit, genGetByte,
4020           genGetWord): fixed bug 1409955
4021
4022 2006-02-14 Maarten Brock <sourceforge.brock AT dse.nl>
4023
4024         * device/include/hc08/mc68hc908gp32.h,
4025         * device/include/hc08/mc68hc908jb8.h: removed AWUL, added PTA6 & PTA7
4026
4027 2006-02-13 Maarten Brock <sourceforge.brock AT dse.nl>
4028
4029         * src/SDCCast.c (constExprValue): return NULL if not a value
4030         * src/SDCCglue.c (printIvalArray): fixed bug 1225568
4031         * src/hc08/gen.c(genUnpackBits, genUnpackBitsImmed): fixed bug 1019480
4032         * support/regression/tests/bitfields.c: enabled signed bitfield for all
4033
4034 2006-02-13 Borut Razem <borut.razem AT siol.net>
4035
4036         * src/regression/ptrarg.c: added, fails due to bug #1430967
4037         * src/regression/Makefile: ptrarg.c added, ...
4038
4039 2006-02-12 Maarten Brock <sourceforge.brock AT dse.nl>
4040
4041         * src/z80/gen.c (genUnpackBits): fixed bug 1019480
4042         * support/regression/tests/bitfields.c: enabled signed bitfield for z80
4043
4044 2006-02-11 Borut Razem <borut.razem AT siol.net>
4045
4046         * src/SDCCmain.c: Added "sdcc: Calling linker..." if --verbose,
4047           print "Processor: xxx" message to stdout only if --verbose
4048
4049 2006-02-11 Maarten Brock <sourceforge.brock AT dse.nl>
4050
4051         * src/SDCCglue.c (printIvalStruct): fixed bug 1426356 union initializer
4052         * support/regression/tests/bug1426356.c: added
4053         * support/regression/tests/bitfields.c: removed 2 tests
4054
4055 2006-02-10 Maarten Brock <sourceforge.brock AT dse.nl>
4056
4057         * device/include/mcs51/at89c51snd1c.h: updated comments, see patch 1428901
4058         * device/include/mcs51/c8051f330.h,
4059         * device/include/mcs51/c8051f350.h: used () with __at, renamed IDLE,STOP to
4060           PCON_IDLE,PCON_STOP and added sfr16 definitions
4061         * device/lib/_divsint.c,
4062         * device/lib/_divuint.c,
4063         * device/lib/_divulong.c,
4064         * device/lib/_divulong.c: renamed a,b to x,y to avoid confusion, fixed
4065           register bank bug for small stackauto
4066
4067 2006-02-09 Maarten Brock <sourceforge.brock AT dse.nl>
4068
4069         * support/regression/fwk/lib/timeout.c: include <stdlib.h> for exit()
4070
4071 2006-02-08 Maarten Brock <sourceforge.brock AT dse.nl>
4072
4073         * support/regression/ports/mcs51-xstack-auto/spec.mk: forgot -I(...)/mcs51
4074         * all.dsp: corrected several bin paths
4075         * device/include/mcs51/c8051f120.h,
4076         * device/include/mcs51/c8051f300.h,
4077         * device/include/mcs51/c8051f310.h: used () with __at and renamed IDLE,STOP
4078           to PCON_IDLE,PCON_STOP
4079         * device/include/mcs51/c8051f320.h: see above, also added sfr16 definitions
4080         * device/lib/printf_large.c (output_float): fixed bug 1388703
4081         * support/regression/tests/bug1057979.c: added test for bug 1388703
4082
4083 2006-02-08 Raphael Neider <rneider AT web.de>
4084
4085         * src/pic/pcode.c (pciTRIS): fixed typo,
4086           (BuildFlow,LinkFlow_pCode): added (disabled) debug output,
4087           (LinkFlow): fixed handling of flows that end in a call,
4088           (ReuseReg): perform safety check earlier
4089         * src/pic/pcoderegs.c (pCodeRegMapLiveRangesInFlow): fixed
4090             to work with flows at the beginning of a pBlock,
4091             fixes #1426557 (Symbol not previously defined),
4092           (pic14_ReMapLiveRanges): NEW, destroy and rebuild register
4093             usage information
4094           (RemoveUnusedRegisters): update register usage info
4095         * src/pic/ralloc.c (newReg): prevent duplicate registers from being
4096             created, reuse existing ones instead
4097         * src/pic/gen.c (genPcall): fixed #1424719
4098
4099 2006-02-07 Bernhard Held <bernhard AT bernhardheld.de>
4100
4101         * link/z80/lkmain.c,
4102         * link/z80/lklex.c,
4103         * link/z80/lkdata.c,
4104         * link/z80/aslink.h: fixed build on current cygwin:
4105         replaced getline() by lk_getline()
4106
4107 2006-02-01 Borut Razem <borut.razem AT siol.net>
4108
4109         * src/regression/add.c, src/regression/add2.c, src/regression/add3.c,
4110           src/regression/add4.c, src/regression/and1.c, src/regression/and2.c,
4111           src/regression/arrays.c, src/regression/b.c, src/regression/bank1.c,
4112           src/regression/bool1.c, src/regression/bool2.c,
4113           src/regression/bool3.c, src/regression/call1.c,
4114           src/regression/compare.c, src/regression/compare10.c,
4115           src/regression/compare2.c, src/regression/compare3.c,
4116           src/regression/compare4.c, src/regression/compare5.c,
4117           src/regression/compare6.c, src/regression/compare7.c,
4118           src/regression/compare8.c, src/regression/compare9.c,
4119           src/regression/configword.c, src/regression/for.c,
4120           src/regression/inline.c, src/regression/mult1.c,
4121           src/regression/nestfor.c, src/regression/or1.c,
4122           src/regression/pointer1.c, src/regression/ptrfunc.c,
4123           src/regression/rotate1.c, src/regression/rotate2.c,
4124           src/regression/rotate3.c, src/regression/rotate4.c,
4125           src/regression/rotate5.c, src/regression/rotate6.c,
4126           src/regression/rotate7.c, src/regression/string1.c,
4127           src/regression/struct1.c, src/regression/sub.c,
4128           src/regression/sub2.c, src/regression/switch1.c,
4129           src/regression/while.c, src/regression/xor.c,
4130           src/regression/create_stc, src/regression/simulate,
4131           src/regression/rt.sh, src/regression/Makefile: reenabled Scott's PIC14
4132           regression tests
4133         * src/regression/gpsim_assert.h: added
4134
4135 2006-01-28 Bernhard Held <bernhard AT bernhardheld.de>
4136
4137         * src/ds390/gen.c (unsaveRegisters): fixed literal function pointer
4138         ((void (code *) (void)) 0) ();
4139         * as/hc08/aslex.c,
4140         * as/hc08/aslink.h,
4141         * as/hc08/asm.h,
4142         * as/hc08/asmain.c,
4143         * as/hc08/lkdata.c,
4144         * as/hc08/lklex.c,
4145         * as/hc08/lkmain.c,
4146         * as/mcs51/aslex.c,
4147         * as/mcs51/aslink.h,
4148         * as/mcs51/asm.h,
4149         * as/mcs51/asmain.c,
4150         * as/mcs51/lkdata.c,
4151         * as/mcs51/lklex.c,
4152         * as/mcs51/lkmain.c,
4153         * as/z80/aslex.c,
4154         * as/z80/asm.h,
4155         * as/z80/asmain.c: fixed build on current cygwin:
4156         replaced getline() by as_getline()
4157
4158 2006-01-27 Bernhard Held <bernhard AT bernhardheld.de>
4159
4160         * src/SDCC.y: fixed bug #716242, exchanged pointer and function
4161         declarator in the symbol chain
4162         * src/SDCCsymt.h,
4163         * src/SDCCsymt.c (processFuncPtrArgs): added, removes "(void)"
4164         parameter list for function pointers
4165         * src/SDCCast.c (decorateType): added call of processFuncPtrArgs()
4166         * support/regression/tests/bug-716242.c: added
4167
4168 2006-01-20 Bernhard Held <bernhard AT bernhardheld.de>
4169
4170         * src/SDCCicode.c (geniCodeAdd, geniCodeArray): use char for array
4171         offset if possible
4172         * src/SDCCast.c (getLeftResultType): 255 fits in char, not 256
4173
4174 2006-01-18 Bernhard Held <bernhard AT bernhardheld.de>
4175
4176         * src/SDCCast.c (backPatchLabels): fixed bug #1408066: made it
4177         inifinitely recurseable, added static
4178         * support/regression/tests/bug-1408066.c: added
4179
4180 2006-01-17 Bernhard Held <bernhard AT bernhardheld.de>
4181
4182         * src/SDCCicode.h,
4183         * src/SDCCicode.c (newiTempPreheaderLabel, newiTempLoopHeaderLabel):
4184         renamed, added possibility to create "postLoopLbl"-labels
4185         * src/SDCCBBlock.c (iCodeBreakDown): renamed newiTempPreheaderLabel to
4186         newiTempLoopHeaderLabel
4187         * src/SDCCloop.c (newInduction, newRegion, backEdges, insertIntoLoop,
4188         isNotInBlocks, addToExitsMarkDepth, createLoop, dominatedBy,
4189         addDefInExprs, assignmentsToSym, isOperandInvariant, pointerAssigned,
4190         hasNonPtrUse, loopInvariants, addressTaken, findInduction,
4191         findDefInRegion, mergeRegions, ifMerged, mergeInnerLoops): made static,
4192         (pinduction, pregion, hasIncomingDefs, findLoopEndSeq): disabled,
4193         (basicInduction): fixed bug #136564, made static,
4194         (loopInduction): changed parameter of basicInduction, made static,
4195         (addPostLoopBlock): added
4196         * src/SDCCloop.h: removed backEdges, pregion, pinduction,
4197         loopOptimizations, addressTaken, findDefInRegion, hasIncomingDefs,
4198         findLoopEndSeq
4199         * support/regression/tests/bug-136564.c: added
4200         * support/regression/ports/mcs51-xstack-auto/spec.mk: added
4201         --std-sdcc99 to LIBSDCCFLAGS
4202
4203 2006-01-16 Bernhard Held <bernhard AT bernhardheld.de>
4204
4205         * src/SDCCicode.c (geniCodeIfx): fix bug 1406131: always false
4206         while loop
4207         * support/regression/tests/bug-1406131.c: added
4208
4209 2005-12-31 Bernhard Held <bernhard AT bernhardheld.de>
4210
4211         * src/SDCCast.c (decorateType): fix promotion of unary minus
4212         * src/SDCCsymt.c (computeType): beautified
4213         * src/SDCCval.c (cheapestVal): beautified, old non-Ansi version removed,
4214         (valUnaryPM, valComplement): fix sign and promotion,
4215         (valNot): ANSI: result type is int (SDCC: unsigned char)
4216         * support/regression/tests/uminus.c: speedup by removing superflous
4217         test case 'int'
4218         * support/regression/tests/onebyte.c: added promotion and signedness
4219         tests for unary minus
4220         * support/regressions/tests/bug-477927.c: disable warning about
4221         uninitialized variables
4222         * support/regression/tests/not.c: added
4223
4224 2005-12-28 Bernhard Held <bernhard AT bernhardheld.de>
4225
4226         * device/lib/Makefile.in: added --std-sdcc99 to CFLAGS
4227         * src/mcs51/gen.c (gen51Code): show final register usage after
4228         fillGaps in asm with --i-code-in-asm
4229         * src/SDCClrange.c (sequenceiCode, setLiveFrom, setLiveTo,
4230         markLiveRanges, markAlive, findNextUseSym, findNextUse, unvisitBlocks,
4231         incUsed, rliveClear, adjustIChain): made static,
4232         (setFromRange): excluded because it's unused,
4233         (findPrevUseSym, markWholeLoop): added,
4234         (findPrevUse): rewritten; fixes bug 895992; now a complete search
4235         through all branches of predecessors enables sdcc to emit the warning
4236         W_LOCAL_NOINIT, marking of outermost loop was incomplete,
4237         (rlivePoint): made static, added parameter emitWarnings which is only
4238         true during the first run out of two,
4239         (findRecursiveSucc, findRecursivePred): removed,
4240         (computeLiveRanges): made static, added parameter emitWarnings,
4241         (dumpIcRlive): added for debugging only
4242         * src/SDCClrange.h: added boolean parameter to computeLiveRanges(),
4243         removed prototype of setFromRange()
4244         * src/SDCCopt.c (eBBlockFromiCode): added new parameter emitWarnings
4245         in call of computeLiveRanges()
4246         * support/regression/tests/bug-895992.c: added
4247         * support/regression/tests/bug-971834.c: added
4248         * support/valdiag/tests/bug-895992.c: added
4249         * support/valdiag/tests/bug-971834.c: added
4250
4251 2005-12-18 Raphael Neider <rneider AT web.de>
4252
4253         * src/pic16/gen.c: added IS_DIRECT macro for "direct" operands,
4254           (genUnpackBits): improved code for direct operands,
4255           (genPackBits): improved code for literal assignment to bitfields
4256             and for direct destination operands (no FSR indirection),
4257             prevented redundant AND, fixes #1362800,
4258           (AccLsh): added parameter to disable masking of the result
4259         * src/pic16/pcode.c (pic16_safepCodeUnlink): fixed to work with
4260           skip instructions with side-effects (like incfsz),
4261           (pic16_pCodeIsAlive): suppress verbose output unless pcode_verbose,
4262         * src/pic16/pcoderegs.c (RemoveRegsFromSet): removed annoying warning
4263         * device/lib/pic16/Makefile.common.in: added --asm=@GPASM@ to CC,
4264           fixes #1375263
4265
4266 2005-12-11 Bernhard Held <bernhard AT bernhardheld.de>
4267
4268         * src/SDCCicode.c (geniCodeAssign): fixed bug 11369874, don't use
4269         volatile variables as spill location
4270
4271 2005-12-10 Bernhard Held <bernhard AT bernhardheld.de>
4272
4273         * src/SDCCcse.c (findCheaperOp): fixed bug 1376320, copy signedness to
4274         replacing literals
4275         * support/regression/tests/bug-1376320.c: added
4276
4277 2005-12-08 Raphael Neider <rneider AT web.de>
4278
4279         * src/pic/device.c: renamed is_shared to pic14_is_shared
4280         * src/pic/gen.c (genIfx): re-enabled handling of sbits
4281         * src/pic/glue.c (emitSymbolToFile): added workaround for sbits,
4282           (is_valid_identifier): added for above workaround
4283
4284 2005-12-07 Maarten Brock <sourceforge.brock AT dse.nl>
4285
4286         * device/lib/Makefile.in: fixed to enable port-specific-objects
4287         * device/lib/ds390/i2c390.c (BitOutI2C): optimized by making bout unsigned
4288           char, thanks Hubert Sack
4289         * doc/sdccman.lyx: documented --xstack-loc,
4290           elaborated a bit more on interrupts and pitfalls,
4291           removed "setjmp/longjmp unsupported",
4292           documented some unsupported C99 features
4293         * src/SDCCmain.c (linkEdit): adapted default lib path for --stack-auto
4294         * src/SDCCpeeph.c (readRules): inserted patch 1367130 for finding missing
4295           if, thanks Hubert Sack
4296         * src/mcs51/gen.c (genEndFunction): enabled "pop psw" for regbank 0 isr
4297         * support/regression/Makefile.in: test-mcs51-stack-auto no longer needs to
4298           make make_library
4299         * support/regression/get_ticks.py: new, get cpu cycles and code size, so
4300           regression tests can report resource usage (rfe 700441)
4301         * support/regression/collate-results.py: report resource usage
4302         * support/regression/ports/ds390/spec.mk,
4303         * support/regression/ports/hc08/spec.mk,
4304         * support/regression/ports/mcs51/spec.mk,
4305         * support/regression/ports/ucz80/spec.mk: run sim output through get_ticks
4306         * support/regression/ports/ds390/uCsim.cmd,
4307         * support/regression/ports/hc08/uCsim.cmd,
4308         * support/regression/ports/mcs51/uCsim.cmd,
4309         * support/regression/ports/ucz80/uCsim.cmd: inserted "state" to report time
4310         * support/regression/ports/mcs51-stack-auto/spec.mk: no need to build the
4311           library, use the default one
4312         * support/regression/ports/mcs51-xstack-auto/spec.mk: inserted rules for
4313           building the library
4314
4315 2005-12-06 Maarten Brock <sourceforge.brock AT dse.nl>
4316
4317         * config.dsp: added dependency on .version and configure_vc.awk
4318         * device/include/setjmp.h: updated for --stack-auto and --xstack
4319         * device/include/mcs51/at89c51snd1c.h: corrected line endings
4320         * device/include/mcs51/XC866.h: added, thanks Llewellyn van Zyl
4321         * device/lib/_setjmp.c: updated for --stack-auto and --xstack
4322         * device/lib/libsdcc.lib: added _setjmp
4323         * src/SDCCast.c (createIvalCharPtr): fixed warnings,
4324           (decorateType): fixed bug 1372851,
4325           (optimizeGetHbit): fixed warning
4326         * src/SDCCglue.c (printIvalChar, printIvalArray): adapted for flexible
4327           array initialisation
4328         * support/regression/tests/bug1057979.c: added test for bug 1358192
4329         * support/regression/tests/setjmp.c: added, test for setjmp/longjmp
4330
4331 2005-12-03 Borut Razem <borut.razem AT siol.net>
4332
4333         * support/scripts/sdcc.nsi: added /SOLID option to "SetCompressor lzma"
4334           command since the NSIS was upgraded to version 2.11 on CF x86-linux2
4335
4336 2005-11-29 Bernhard Held <bernhard AT bernhardheld.de>
4337
4338         * src/SDCCast.c (createIvalStruct, createIvalArray, createIvalPtr,
4339         createIval): implement symbol independant "flexible array member",
4340         (createIvalCharPtr): implemented flexible array initialisation with a
4341         string
4342         * src/SDCCsymt.c (copyStruct): removed,
4343         (getSize): fixed misleading comment,
4344         (getAllocSize): removed, the additional allocation size is now in
4345         sym->flexArrayLength,
4346         (checkStructFlexArray): new, syntax checks for flexible array members,
4347         (compStructSize): added syntax checks for "flexible array members"
4348         (copyStruct): removed,
4349         (copyLinkChain): removed inefficient fix for bug 770487
4350         * src/SDCCglue.c (emitRegularMap): getAllocSize has been removed
4351         * src/SDCCsymt.h: added structdef.b_flexArrayMember and
4352         symbol->flexArrayLength
4353         * src/SDCCerr.c,
4354         * src/SDCCerr.h: added W_INVALID_FLEXARRAY, W_C89_NO_FLEXARRAY,
4355         E_FLEXARRAY_NOTATEND and E_FLEXARRAY_INEMPTYSTRCT
4356         * support/regression/tests/structflexarray.c: added
4357         * support/valdiag/tests/structflexiblearray.c: added
4358
4359 2005-11-29 Bernhard Held <bernhard AT bernhardheld.de>
4360
4361         * src/SDCCast.c (decorateType): fixed bug 1368489
4362         * support/Util/SDCCerr.c,
4363         * support/Util/SDCCerr.h: added warning W_CMP_SU_CHAR
4364
4365 2005-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4366
4367         * device/include/mcs51/at89c51snd1c.h: added file submitted by
4368           Weston T. Schmidt <schmidtw AT users.sourceforge.net>, patch #1368001
4369
4370 2005-11-27 Borut Razem <borut.razem AT siol.net>
4371
4372         * support/cpp2/cppinit.c, support/cpp2/cpplib.h, support/cpp2/mkdeps.c,
4373           support/cpp2/mkdeps.h: added command line option
4374           -obj-ext=<extension> to SDCPP to define object file externion, used
4375           for generation of make dependencies (-M)
4376         * src/SDCCmain.c: pass -obj-ext=<extension> to SDCPP
4377
4378 2005-11-26 Borut Razem <borut.razem AT siol.net>
4379
4380         * support/scripts/sdcc.nsi: added small-stack-auto libraries,
4381           added missing device/lib/mcs51/crt*.asm, pic and pic16 sources,
4382           added pic and pic16 libraries
4383
4384 2005-11-26 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4385
4386         * device/include/float.h: Corrected typo in prototype of __fsgt
4387
4388 2005-11-25 Borut Razem <borut.razem AT siol.net>
4389
4390         * sdcc/device/lib/Makefile.in, sdcc/device/lib/incl.mk:
4391           added creation of model-mcs51-stack-auto libraries
4392
4393 2005-11-24 Bernhard Held <bernhard AT bernhardheld.de>
4394
4395         * src/SDCCsymt.c (copyLinkChain): fixed bug 770487, copy structdef
4396         and fields-list too
4397         * src/SDCCast.c (createIvalArray): removed obsolete comment
4398
4399 2005-11-24 Borut Razem <borut.razem AT siol.net>
4400
4401         * sdcc/device/lib/Makefile.in: remove all unnecessary files, 2nd try...,
4402           added missing device/lib/mcs51/crt*.asm sources
4403
4404 2005-11-23 Bernhard Held <bernhard AT bernhardheld.de>
4405
4406         * src/SDCCast.c (createIvalCharPtr): fixed bug 1348271
4407
4408 2005-11-22 Maarten Brock <sourceforge.brock AT dse.nl>
4409
4410         * device/lib/_fs2schar.c,
4411         * device/lib/_fs2sint.c,
4412         * device/lib/_fs2slong.c: optimized inline asm
4413
4414 2005-11-21 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4415
4416         * device/lib/_fs2slong.c, device/lib/_fs2sint.c, device/lib/_fs2char.c:
4417           Better handling of floats between -1.0 and 0.0.
4418
4419 2005-11-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4420
4421         * src/mcs51/peeph.def: added missing "if"s as noted by Hubert Sack.
4422           (the missing "if"s prohibited removal of redundant labels)
4423
4424 2005-11-19 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4425
4426         * device/lib/_fs2slong.c, device/lib/_fs2sint.c, device/lib/_fs2char.c:
4427           Properly convert floats between -1.0 and 0.0 to long, int, and char
4428           types (max integer value of negative floats tends to zero).
4429         * device/lib/modff.c, device/lib/ceilf.c, device/lib/floorf.c:
4430           Removed changes made so to work properly with floats between
4431           -1.0 and 0.0, as the problem is fixed in _fs2slong.c, _fs2sint.c,
4432           and _fs2char.c
4433
4434 2005-11-18 Bernhard Held <bernhard AT bernhardheld.de>
4435
4436         * src/SDCCcse.c (ReplaceOpWithCheaperOp): minor fix for debugging only
4437         * src/mcs51/gen.c (genUnpackBits): better code and a fix,
4438         (genCast) cosmetic change
4439         * src/ds390/gen.c (genUnpackBits, ): ported from mcs51
4440         * src/ds390/ralloc.c (packRegsForAssign): ported fix for bitfields
4441         from mcs51
4442         * support/regression/tests/bitfields (testSignedBitfields): added
4443
4444 2005-11-18 Borut Razem <borut.razem AT siol.net>
4445
4446         * sdcc/device/lib/Makefile.in: remove all unnecessary files
4447         * device/lib/pic/Makefile.rules, device/lib/pic16/Makefile.subdir:
4448           introduced SILENT option to make building of pic16 libraries less
4449
4450 2005-11-18 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4451
4452         * device/lib/modff.c, device/lib/ceilf.c, device/lib/floorf.c:
4453           Now they work properly with floats between -1.0 and 0.0
4454         * device/lib/printf_large.c: Removed temporary patch for bug 1358192
4455
4456 2005-11-18 Maarten Brock <sourceforge.brock AT dse.nl>
4457
4458         * src/SDCCicode.c (printOperand): added missing else
4459
4460 2005-11-18 Bernhard Held <bernhard AT bernhardheld.de>
4461
4462         * src/SDCCsymt.c (computeType): fixed bug 1358192: added missing else,
4463         reformatted for better readability
4464         * src/mcs51/gen.c (genUnpackBits): initial, incomplete support for
4465         signed bitfields
4466
4467 2005-11-17 Borut Razem <borut.razem AT siol.net>
4468
4469         * device/lib/pic16/Makefile.rules, device/lib/pic16/Makefile.subdir:
4470           introduced SILENT option to make building of pic16 libraries less
4471           verbose - used for nightly snapshot build
4472         * doc/sdccman.lyx: documented that SDCDB and ucSim are currently not
4473           available on Win32 platforms.
4474         * sdcc/device/lib/Makefile.in: added library sources for mcs51, small,
4475           medium, large, pic and pic16
4476
4477 2005-11-16 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4478
4479         * device/lib/printf_large.c: Temporary patch for bug 1358192:
4480           printf("%f"...) sets fraction to zero.
4481
4482 2005-11-16 Raphael Neider <rneider AT web.de>
4483
4484         * src/pic/pcode.c (LinkFlow): handle empty flows correctly,
4485           fixes #1357221
4486         * src/pic/gen.c (genIfx): implemented for CARRY bit
4487         * src/pic16/gen.c (genAssign,genCast): fixed assigning/casting
4488           to generic pointers, fixes #1357332,
4489           (pic16_movLit2f): NEW,
4490           (pic16_storeForReturn,genDataPointerSet): use pic16_movLit2f
4491
4492 2005-11-14 Maarten Brock <sourceforge.brock AT dse.nl>
4493
4494         * src/SDCCmain.c (parseCmdLine): fixed bug 1356800, thanks rsudjian
4495
4496 2005-11-11 Raphael Neider <rneider AT web.de>
4497
4498         * src/pic/gen.c: handle FPOINTERS like POINTERS everywhere
4499         * src/pic16/gen.c (pic16_derefPtr): now works for non-pointers as well,
4500           compute pointer's type from operand,
4501           (genUnpackBits,genPackBits): handle FPOINTERS correctly, re-indented,
4502           improved single bit reads, fixes bug #1353379
4503
4504 2005-11-09 Borut Razem <borut.razem AT siol.net>
4505
4506         * support/scripts/sdcc.nsi: added lib/pic to the package
4507
4508 2005-11-08 Maarten Brock <sourceforge.brock AT dse.nl>
4509
4510         * src/SDCCval.c (valUnaryPM): fixed bug 1350699
4511
4512 2005-11-06 Maarten Brock <sourceforge.brock AT dse.nl>
4513
4514         * support/regression/tests/bug1348008.c: added
4515         * src/mcs51/gen.c (saveRBank, unsaveRBank): fixed bug 1348008
4516         * support/regression/tests/bug1337835.c: updated comment
4517
4518 2005-11-06 Borut Razem <borut.razem AT siol.net>
4519
4520         * sim/ucsim/error.cc, sim/ucsim/errorcl.h,
4521           sim/ucsim/sim.src/stack.cc, sim/ucsim/sim.src/stackcl.h,
4522           sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
4523           sim/ucsim/sim.src/mem.cc, sim/ucsim/sim.src/memcl.h,
4524           sim/ucsim/cmd.src/set.cc, sim/ucsim/cmd.src/show.cc:
4525           dynamic construction of cl_error_class and derivates - 2.nd try
4526
4527 2005-11-05 Borut Razem <borut.razem AT siol.net>
4528
4529         * sim/ucsim/sim.src/error.cc: fixed uninitialized class member variable
4530           bug, which caused Bus Errors on sparc solaris
4531
4532 2005-11-04 Borut Razem <borut.razem AT siol.net>
4533
4534         * sim/ucsim/error.cc, sim/ucsim/errorcl.h,
4535           sim/ucsim/sim.src/stack.cc, sim/ucsim/sim.src/stackcl.h,
4536           sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
4537           sim/ucsim/sim.src/mem.cc, sim/ucsim/sim.src/memcl.h,
4538           sim/ucsim/cmd.src/cmdconf.cc: dynamic construction of cl_error_class
4539           and derivates to resolve the initialization problem on OSX
4540
4541 2005-11-02 Borut Razem <borut.razem AT siol.net>
4542
4543         * sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/newcmd.cc:
4544           corrected typo - #include <winsock2.h>
4545
4546 2005-11-02 Maarten Brock <sourceforge.brock AT dse.nl>
4547
4548         * src/asm.c (printILine): always close tmpFile, thanks Beau E. Cox,
4549           (_asxxxx_mapping): added org directive for future enhancements
4550
4551 2005-11-01 Borut Razem <borut.razem AT siol.net>
4552
4553         * sim/ucsim/app.cc, sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/newcmd.cc:
4554           enabled sockets on WIN32
4555         * sim/ucsim/cmd.src/newcmd.cc: fixed bug with uninitialized variables
4556
4557 2005-10-31 Borut Razem <borut.razem AT siol.net>
4558
4559         * support/regression/generate-cases.py: escape backslashes in {testcase}:
4560           WIN32 backslash path delimiters should be escaped when used in C strings
4561         * support/regression/tests/bitfields.c: exclude failing assertions for
4562           __CYGWIN32__ and __MINGW32__ hosts
4563
4564 2005-10-30 Borut Razem <borut.razem AT siol.net>
4565
4566         * src/SDCCutil.c: corrected double comparison typo
4567
4568 2005-10-30 Maarten Brock <sourceforge.brock AT dse.nl>
4569
4570         * device/lib/medium/Makefile: added for new memory model medium
4571         * device/include/asm/mcs51/features.h: updated for medium/pdata
4572         * device/include/mcs51/c8051f120.h: added sfr16/sfr32 definitions,
4573           added Multiply & Accumulate sbit's and MAC0_PAGE define
4574         * device/include/mcs51/c8051f300.h: added sfr16 definitions
4575         * device/include/mcs51/c8051f310.h: added sfr16 definitions
4576         * device/lib/_mullong.c: update for medium model
4577         * device/lib/incl.mk: added medium model
4578         * doc/sdccman.lyx: documented medium model
4579         * src/SDCCast.c (isBitAndPow2): simplified using updated powof2
4580         * src/SDCCicode.c (geniCodeMultiply, geniCodeDivision): use updated powof2
4581         * src/SDCCmain.c (optionsTable, linkEdit): enabled medium model
4582         * src/SDCCmem.c (allocIntoSeg): set iaccess for pdata symbols,
4583           (allocParms): set SCLS and OCLS to pdata for medium model
4584         * src/SDCCsymt.c (processFuncArgs): use default_local_map and set iaccess
4585           for pdata,
4586           (powof2): return <0 if not power of 2
4587         * src/avr/gen.c (genBitWise): use updated powof2
4588         * src/mcs51/gen.c (genMinusDec): use acc if necessary,
4589           (shiftR2Left2Result): small optimization in setup, save acc when storing,
4590           (shiftLLeftOrResult): use B if necessary
4591         * src/mcs51/main.c (_mcs51_finaliseOptions, mcs51_port): added medium model
4592         * src/mcs51/peeph.def: renamed 226 to 226.b, added 226.a
4593         * src/pic/main.c (_pic14_do_link): made void parameter list explicit
4594         * support/regression/Makefile.in: added test-mcs51-medium
4595         * support/regression/ports/mcs51-medium/spec.mk: added to test medium model
4596
4597 2005-10-28 Bernhard Held <bernhard AT bernhardheld.de>
4598
4599         * src/SDCCsymt.c (compStructSize): make bitfields without (un)signed
4600         specifier unsigned
4601         * device/lib/time.c (mktime): fixed bug 1334315
4602
4603 2005-10-28 Raphael Neider <rneider AT web.de>
4604
4605         * device/include/pic/p16f_common.inc: added common declarations
4606         * src/pic/ralloc.c (initStack): moved regs *r to block start for Alpha
4607
4608 2005-10-27 Maarten Brock <sourceforge.brock AT dse.nl>
4609
4610         * src/mcs51/gen.c (getTempRegs): return 0 if not enough registers found,
4611           (aopPutUsesAcc): added to predict accumulator use,
4612           (assignResultValue): save acc if necessary,
4613           (genMinusDec): store result if indirectly addressed,
4614           (genDivOneByte):  save acc if necessary,
4615           (movLeft2Result): bugfix if left already in acc,
4616           (genAnd, genOr, genXor, shiftL2Left2Result, shiftR2Left2Result): pay more
4617             attention to accumulator use (esp. pdata),
4618           (genReceive): receive pdata correctly
4619         * src/SDCCicode.c (isOperandInPagedSpace): added to detect pdata operands
4620         * src/SDCCicode.h: added isOperandInPagedSpace prototype
4621
4622 2005-10-27 Raphael Neider <rneider AT web.de>
4623
4624         * doc/sdccman.lyx: corrected version (should be 2.5.4 not 2.5.5)
4625
4626 2005-10-27 Raphael Neider <rneider AT web.de>
4627
4628         * .version: changed version to 2.5.4
4629         * doc/sdccman.lyx: changed version to 2.5.4, added some remarks to PIC14
4630         * device/lib/pic/libsdcc/{_mulint.c,_mullong.c}: use unsigned literals,
4631           (_divschar.c,divuchar.c,_mulchar.c,_modschar.c,_moduchar): NEW,
4632             arithmetics support routines
4633         * device/lib/pic/Makefile.rules: have assembler sources preprocessed
4634         * device/lib/Makefile.in: also create installdir for pic
4635
4636         * src/SDCCopt.c (cnvToFcall): mark support routines `extern' for
4637           pic14 port as well
4638         * src/pic/device.c (dump_sfr): rewritten to delegate register
4639           placement to the linker (use `extern sym' rather than sym EQU addr),
4640           (validAddress): fixed to check last specified address
4641         * src/pic/gen.c (aopForSym): added code to deal with array (useless?),
4642           (popGetLit): truncate literal value to 8 bit,
4643           (popGet): moved assert to more appropriate place
4644           (popGetExternal): create pCode operand from and mark the according
4645             symbol as being `extern'
4646           (popGetAddr): added sanity check on immediate's offset, provide
4647             GPOINTER tag on demand
4648           (aopPut): fixed for immediates,
4649           (mov2w_op): move operand's address or contents to WREG (depending on
4650             operand type), safer variant of mov2w,
4651           (movwf,call_libraryfunc): NEW, handy abbreviations,
4652           (get_argument_pcop,get_return_val_pcop,pass_argument,
4653           get_returnvalue): interface for accessing function parameters and
4654             return values,
4655           (assignResultValuei,genRet): use new parameter/return value interface
4656           (pic14_getDataSize): back to old version handling generic pointers,
4657           (pic14_toBoolean,genNot,genCpl,genCmpEq,genOrOp): heavily rewritten,
4658             provided implementation and/or fixed old one,
4659           (genMultOneByte,genDivOneByte,genModOneByte): implemented as library
4660             calls, removed legacy 8051 reference code
4661           (AccLsh,AccRsh): rewritten and fixed to deal with signed operands
4662           (loadSignToC): NEW, move the operands sign bit to CARRY,
4663           (genGenericShift): NEW, replaces genLeftShift, genRightShift and
4664             genRightShiftSigned, accepts negative shift counts,
4665           (setup_fsr): load FSR and adjust IRP (indirect memory access),
4666           (emitPtrByteGet,emitPtrByteSet): rewritten, now works with
4667             generic pointers, __data pointers and __code pointers,
4668           (genUnpackBits,genPackBits): rewritten to work with generic pointers
4669             and signed bitfields, limit bitfields to 8 bit,
4670           (genDataPointerGet): fixed number of bytes read,
4671           (genGenPointerGet,genConstPointerGet): fixed bitfield access,
4672           (genPointerGet,genPointerSet): fixed handling of __code pointers,
4673             pointers to constant data are no longer assumed to point to __code
4674             space, removed invalid pointer types,
4675           (bitpatternFromVal): retrieve the PICs representation of an integer
4676             or float literal,
4677           (genDataPointerSet): fixed assigning to po_immediate operands,
4678           (genGenPointerSet): implemented as library call,
4679           (genIfx): fixed incorrect condition,
4680           (genAddrOf): limit generic pointers' addresses to 2 bytes,
4681             provide GPOINTER tag according to destination's storage class,
4682           (genCast): added code to handle casting to generic pointers, added
4683             sign-/zero extension of the result
4684           (aop_isLitLike,op_isLitLike): fixed handling of immediates
4685         * src/pic/gen.h: added macros to access IRP bit in STATUS register
4686         * src/pic/genarith.c (genAddLit): use min(result's,left's) size, sign
4687           extend the result
4688         * src/pic/glue.c (is_shared_address,is_shared): check whether a given
4689           address/register resides in the shared banks
4690           (emitSymbolToFile): improved to handle global and `pinned' symbols,
4691             put all variables into separate sections (have the linker arrange
4692             them)
4693           (picglue): put init code and interrupt handlers in separate sections
4694         * src/pic/main.c: added port specific options table, modified to PORT
4695           structure to make GPOINTERs 3 byte, added pic14_options
4696           (_pic14_do_link): private linking routine (update paths to libraries,
4697             add libsdcc.lib by default)
4698         * src/pic/main.h: declare pic14_options
4699         * src/pic/pcode.c: fixed instructions i/o relations,
4700           (RegCond): reverted to correct version,
4701           (newpCodeOpLit): truncate literals to 8 bit,
4702           (genericPrint): added debug output,
4703           (getRegFromInstruction): fixed for various operand types, simplified
4704           (BuildFlow): fixed broken handling of isntructions with labels
4705           (LinkFlow): start at last instruction in flow (skip trailing comments),
4706             pass the flow on to the next instruction after CALL
4707           (pCodeReplace): NEW, replace a pCode and move meta data to the new one
4708           (insertPCodeInstruction): fixed inserting after a skip instruction,
4709           (DoBankSelect): fixed for labeled instructions
4710           (OptimizepBlock): honor --nopeep switch
4711           (AnalyzeFlow,ReuseReg): prevent crash on source files with no function
4712         * src/pic/pcodepeep.c (pCodePeepMatchRule): prevent NULL pointer accesses
4713         * src/pic/pcoderegs.c (regIsLocal): NEW, check visibility of a register
4714           (pCodeOptime2pCodes): allow disabling this optimization via
4715             --no-pcode-opt due seldomly occuring bugs, fixed some conditions
4716             but is still buggy), started implementation of a dataflow based
4717             pCode optimization (CSE + dead code elimination)
4718           (pCodeRegMapLiveRangesInFlow): removed bogus inCond
4719         * src/pic/ralloc.c (initStack): renamed stack registers to STK%d, the new
4720           names are independant of the stack location and therefore portable across
4721           devices
4722
4723 2005-10-27 Maarten Brock <sourceforge.brock AT dse.nl>
4724
4725         * src/mcs51/ralloc.c (bitType): added to detect bit variables,
4726           (selectSpil): fixed bug 1337835 by not spilling bit variables
4727         * support/regression/tests/bug1337835.c: added test for this bug
4728         * src/mcs51/peeph.def: restart after rule 3.c,
4729           addded rules 263.x to optimize loading constants
4730
4731 2005-10-26 Raphael Neider <rneider AT web.de>
4732
4733         * src/SDCCsymt.c (compStructSize): allow signed bitfields for PIC ports
4734         * src/pic16/gen.c (genUnpackBits): support signed bitfields,
4735           (genAssign): emit warning when casting literals to generic pointer
4736             type, also applies when taking the address of a fixed variable,
4737           (genCast): improved casting to generic pointers
4738         * src/pic16/glue.c (pic16emitStaticSeg): fixed(?) handling of fixed
4739           extern variables, added verbose error message
4740         * device/include/pic16/{string.h,errno.h}: added #pragma library c
4741
4742 2005-10-26 Bernhard Held <bernhard AT bernhardheld.de>
4743
4744         * src/mcs51/gen.c (genMinus): fixed bug 1270906: reverse subtraction,
4745         carry must be complemented too
4746         * src/mcs51/peeph.def: addded rule 262 to remove double cpl c, which
4747         could be emitted by genMinus
4748         * src/SDCCval.c (constVal): fixed bug 1305065
4749
4750 2005-10-25 Bernhard Held <bernhard AT bernhardheld.de>
4751
4752         * src/SDCCast.c (addCast): added promotion for bit variables
4753         (decorateType): emit W_COMPLEMENT before the problem vanishes behind
4754         promotion casts + optimisation
4755         (optimizeGetWord): fix warning 'i' might be used uninitialized
4756         * src/mcs51/gen.c (genCpl): removed W_COMPLEMENT
4757         * src/ds390/gen.c (genCpl): removed W_COMPLEMENT
4758
4759 2005-10-24 Bernhard Held <bernhard AT bernhardheld.de>
4760
4761         * src/SDCCicode.c (ast2iCode): reverted to 1.224 because of regression:
4762         all chars are promoted to int; promotion should be handled in SDCCast.c
4763
4764 2005-10-15 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4765
4766         * device/lib/_strcmp.c: Fixed bug 1326457
4767
4768 2005-10-11 Raphael Neider <rneider AT web.de>
4769
4770         * device/lib/pic16/libio/i2c.ignore: added 1320, fixes broken builds
4771         * device/lib/pic16/libdev/pic18f1320.c: added 1320's device library
4772
4773 2005-10-05 Maarten Brock <sourceforge.brock AT dse.nl>
4774
4775         * src/SDCC.y (AT): fixed bug with sfr32 addresses when built with GCC
4776         * support/regression/tests/sfr16.c: added test for the sfr32 bug
4777
4778 2005-10-04 Raphael Neider <rneider AT web.de>
4779
4780         * device/include/pic16/pic18fregs.h, src/pic16/devices.inc,
4781           device/lib/pic16/pics.all: added pic18f1320
4782         * src/pic16/pcode.c (mnem2key): fixed prototype's argument mismatch
4783
4784 2005-09-30 Raphael Neider <rneider AT web.de>
4785
4786         * src/pic16/device.c (Pics16[]): moved device descriptions to devices.inc
4787         * src/pic16/devices.inc: NEW, provides device descriptions
4788         * src/pic16/gen.c (genInline): fixed handling of ';'-comments
4789
4790 2005-09-26 Maarten Brock <sourceforge.brock AT dse.nl>
4791
4792         * src/SDCCicode.c (operandOperation): added GETABIT, GETBYTE, GETWORD and
4793           GETHBIT
4794
4795 2005-09-25 Maarten Brock <sourceforge.brock AT dse.nl>
4796
4797         * doc/sdccman.lyx: updated Highest Order Bit documentation,
4798           documented Any Order Bit, Higher Order Byte and Higher Order Word
4799         * src/SDCC.y: added tokens GETABIT, GETBYTE, GETWORD
4800         * src/SDCCast.c (optimizeGetHbit): updated to also accept bool=expr&(1<<n),
4801           (optimizeGetAbit): new, to get any bit, not only the high bit,
4802           (optimizeGetByte): new, to get a byte from a (long) int: expr>>(8*n),
4803           (optimizeGetWord): new, to get a word from a long int: expr>>(8*n),
4804           (isConformingBody): also check GETABIT, GETBYTE, GETWORD,
4805           (decorateType): '&': also try GETABIT, GETBYTE, GETWORD optimization,
4806             RIGHT_OP: also try GETBYTE, GETWORD optimization,
4807             GETABIT, GETBYTE, GETWORD: decorate them,
4808           (isShiftRightLitVal, isBitAndPowOf2): new helper functions,
4809           (ast_print): added GETABIT, GETBYTE, GETWORD
4810         * src/SDCCcse.c (isSignedOp): added GETABIT, GETBYTE, GETWORD
4811         * src/SDCCicode.c (codeTable): added GETABIT, GETBYTE, GETWORD,
4812           (geniCodeBinary): new generic binary icode,
4813           (ast2iCode): added GETABIT, GETBYTE, GETWORD
4814         * src/port.h: updated comment for PORT.hasExtBitOp
4815         * src/mcs51/gen.c (genGetAbit): new, to get any single bit,
4816           (genGetByte): new, to get a single byte,
4817           (genGetWord): new, to get a word from a long,
4818           (gen51Code): added GETABIT, GETBYTE, GETWORD
4819         * src/mcs51/main.c (hasExtBitOp): added GETABIT, GETBYTE, GETWORD
4820
4821 2005-09-23 Raphael Neider <rneider AT web.de>
4822
4823         * configure.in, configure: have device/lib/pic configured
4824         * device/lib/Makefile.in: added model-pic14
4825         * device/lib/clean.mk: added pic/ to clean rule
4826         * device/lib/pic: added rudimentary pic14 library providing support
4827           functions for multiplication/division/generic pointer access
4828         * src/SDCCopt.c (convilong): mark support functions as extern
4829           for pic14 port as well
4830         * src/pic/gen.c (genMult): added assertions,
4831           (genpic14Code): emit warning on unhandled iCodes
4832         * src/pic/main.c (_hasNativeMulFor): return true only for 8x8 bit
4833         * src/pic/pcode.c (pCodeOpCopy),
4834         * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): fixed handling of various
4835           pCodeOpReg-subtypes (PO_{STATUS,INTCON,PCL,PCLATH,PCLATU,BSR,
4836           SFR_REGISTER}), made safe for future extensions
4837         * src/pic16/pcode.c (pic16_safepCodeUnlink): allow for removal of
4838           instructions even if preceeded by SKIP instructions (also remove
4839           them); removed unused code
4840         * src/pic16/pcode.h: added arg2 to pCodeOpLit to match pCodeOpLit2,
4841           prevents leaving parts of the structure uninitialized after copying
4842
4843 2005-09-22 Maarten Brock <sourceforge.brock AT dse.nl>
4844
4845         * src/mcs51/gen.c (genMinus): fix for undetected bug introduced 3 months
4846           ago by me
4847         * support/regression/tests/addsub.c: added test for the bug
4848
4849 2005-09-21 Raphael Neider <rneider AT web.de>
4850
4851         * device/include/pic16/pic18f1220.h,
4852           device/lib/pic16/libdev/pic18f1220.c: added ECCPAS sfr and bitfield
4853         * device/lib/pic16/Makefile.rules: added missing opening paren
4854         * src/pic16/gen.c (pic16_genNot,pic16_genCpl): removed as these
4855           are provided in genutils.c,
4856           (genUminusFloat,genUminus,genCmpEq): added asserts on different
4857           operand/result sizes,
4858           (genCmp): assert on NULL pointers first, then check deref'ed values
4859         * src/pic16/genutils.c (pic16_genCpl): fixed for different operand/
4860           result size
4861
4862 2005-09-18 Raphael Neider <rneider AT web.de>
4863
4864         * src/pic16/gen.c (genFarPointerGet,genFarPointerSet): removed
4865           as these are now unused,
4866           (genPointerGet,genPointerSet): handle FPOINTERs like POINTERs
4867         * src/pic16/pcode.c (pic16_symIsSpecial): assume REG_TMPs to be
4868           local, avoids uninitialized pointer dereference on r->name
4869         * src/pic16/ralloc.c (newReg): fixed indentation
4870
4871 2005-09-13 Maarten Brock <sourceforge.brock AT dse.nl>
4872
4873         * src/SDCCval.c (constVal): fixed bug 730366
4874         * support/Util/SDCCerr.c,
4875         * support/Util/SDCCerr.h: added warning W_INVALID_INT_CONST
4876
4877 2005-09-10 Maarten Brock <sourceforge.brock AT dse.nl>
4878
4879         * as/mcs51/lkmem.c (summary2): fixed report for absolute areas (bug 1210220)
4880
4881 2005-09-09 Maarten Brock <sourceforge.brock AT dse.nl>
4882
4883         * src/mcs51/peeph.def (241.x): fixed bug when comparing generic pointers
4884
4885 2005-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
4886
4887         * as/hc08/lkaomf51.c (OutputName): made name unsigned char,
4888           (hex2dec): made hex_digit unsigned char, removed ascii dependance
4889         * as/mcs51/lkaomf51.c (OutputName): made name unsigned char,
4890           (hex2dec): made hex_digit unsigned char, removed ascii dependance
4891         * as/mcs51/lkarea.c (lnkarea2): sort absolute areas to the front
4892         * packihx/packihx.c (hexDigit): made c unsigned char
4893         * as/mcs51/lklibr.c (fndsym),
4894         * link/z80/lkgb.c (gb),
4895         * link/z80/lklibr.c (fndsym),
4896         * link/z80/lkrloc.c (relr),
4897         * sim/ucsim/libltdl/ltdl.c (load_deplibs, try_dlopen),
4898         * src/SDCC.lex (checkCurrFile, process_pragma),
4899         * src/SDCCglue.c (spacesToUnderscores),
4900         * src/SDCCmain.c (setParseWithComma, processFile),
4901         * src/asm.c (tvsprintf, printCLine),
4902         * src/avr/gen.c (emitcode, aopPut),
4903         * src/ds390/gen.c (emitcode),
4904         * src/hc08/gen.c (emitcode, emitinline),
4905         * src/mcs51/gen.c (emitcode, genInline),
4906         * src/pic/pcodepeep.c (cvt_extract_destination, cvt_extract_status,
4907           tokenizeLineNode),
4908         * src/pic/ralloc.c (debugLog),
4909         * src/pic16/pcodepeep.c (cvt_extract_destination, cvt_extract_status,
4910           tokenizeLineNode),
4911         * src/pic16/ralloc.c (debugLog),
4912         * src/z80/main.c (_process_pragma):
4913            made all ctype.h function calls safe
4914         * src/SDCCopt.c: include math.h for fabs
4915         * src/SDCCpeeph.c: added macros ISCHARDIGIT, ISCHARSPACE and ISCHARALNUM
4916           and used them throughout the code to make ctype.h function calls safe
4917         * src/ds390/main.c (asmLineNodeFromLineNode),
4918         * src/mcs51/main.c (asmLineNodeFromLineNode): made p unsigned char*
4919         * src/pic/gen.c (DEBUGpic14_emitcode, pic14_emitcode): made lbp
4920            unsigned char*
4921         * src/pic/pcode.c (mnem2key): made mnem unsigned char*,
4922           (newpCodeAsmDir): made ctype.h function calls safe
4923         * src/pic16/gen.c (pic16_emitpcomment, DEBUGpic16_emitcode,
4924           pic16_emitcode):  made lbp unsigned char*
4925         * src/pic16/pcode.c (mnem2key): made mnem unsigned char*,
4926           (pic16_newpCodeAsmDir): made ctype.h function calls safe
4927         * src/xa51/gen.c (emitcode),
4928         * src/z80/gen.c (_emit2): made lbp unsigned char*
4929         * support/Util/MySystem.c (split_command): made cmd_line and p unsigned
4930            char*
4931
4932 2005-09-05 Raphael Neider <rneider AT web.de>
4933
4934         * src/pic16/ralloc.c (pic16_allocDirReg): use device specific
4935           access bank splitpoint
4936
4937 2005-09-05 Raphael Neider <rneider AT web.de>
4938
4939         * device/lib/pic16/libc/Makefile: added (missing) string to SUBDIRS
4940
4941 2005-09-03 Maarten Brock <sourceforge.brock AT dse.nl>
4942
4943         * .version: changed to version 2.5.3
4944         * doc/sdccman.lyx: changed version to 2.5.3,
4945           documented --codeseg and --constseg and pragma codeseg and constseg,
4946           documented bit parameters (reentrant) and bit returning
4947         * src/SDCCicode.c (geniCodeReceive): fixed (possible) bug generating
4948            currFunc->recvSize, but is this ok for all ports?
4949           (ast2iCode): result of ~ on unsigned char must be cast to int for
4950            bool to work
4951         * src/SDCCmem.c (allocGlobal, allocLocal): don't put bit returning
4952           function pointers in bit space
4953         * src/SDCCsymt.c (checkSClass): allow bit returning function pointers,
4954           (processFuncArgs): call port.reg_parm() with reentrancy info
4955         * src/port.h,
4956         * src/avr/main.c,
4957         * src/ds390/main.c,
4958         * src/hc08/main.c,
4959         * src/pic/main.c,
4960         * src/pic16/main.c,
4961         * src/xa51/main.c,
4962         * src/z80/main.c: port.reg_parm prototype extended with
4963           "bool reentrant" parameter
4964         * src/mcs51/main.c (_mcs51_regparm): use parameter reentrant instead of
4965           options.stackAuto for allocating bit register parameters
4966         * src/mcs51/gen.c (genNot): optimized complementing direct bit,
4967           (genSend): set BitBankUsed if it is,
4968           (selectRegBank): factored out of genCall for use in genPcall,
4969           (genCall): removed redundant dtype assignmen, use selectRegBank,
4970           (genPcall): handle returning in Carry properly, save in F0 if needed,
4971           (genReceive): handle bit register parameters
4972         * src/mcs51/ralloc.c (updateRegUsage): update BitBankUsed along the way,
4973           (mcs51_assignRegisters): enable bit registers for all reentrant
4974            functions and don't set BitBankUsed unconditionally
4975         * src/mcs51/peeph.def (177.d): fixed bug if %2==%3
4976         * support/regression/tests/bitvars.c: enable tests for SDCC_STACK_AUTO
4977         * support/regression/tests/funptrs.c: added tests for BOOL and for return
4978
4979 2005-08-27 Borut Razem <borut.razem AT siol.net>
4980
4981         * device/lib/Makefile.in: cp on sparc-solaris (SunOS) and on
4982         ppc-osx (Darwin) does not support -u option. It seems that it is
4983         supported only on Linux - GNU cp
4984
4985 2005-08-25 Borut Razem <borut.razem AT siol.net>
4986
4987         * sim/ucsim/gui.src/serio.src/Makefile.in,
4988           sim/ucsim/s51.src/Makefile.in, sim/ucsim/avr.src/Makefile.in,
4989           sim/ucsim/z80.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
4990           sim/ucsim/xa.src/Makefile.in: install -s changed to 2 steps:
4991           install and strip, since the strip at /usr/ccs/bin should be used
4992           on solaris
4993
4994 2005-08-24 Borut Razem <borut.razem AT siol.net>
4995
4996         * clean.mk, device/lib/clean.mk: find on sparc-solaris does not support -maxdepth option
4997
4998 2005-08-23 Bernhard Held <bernhard AT bernhardheld.de>
4999
5000         * src/SDCCopt.c (convertToFcall): fixed modulus with divisors 1 and
5001         ffffffffu
5002
5003 2005-08-23 Maarten Brock <sourceforge.brock AT dse.nl>
5004
5005         * as/mcs51/aslink.h: completed lkrloc.c prototypes
5006         * as/mcs51/lkmain.c (link_main): fixed warning
5007         * device/include/stdbool.h: ds390 has no advanced bit support yet
5008         * src/SDCC.y: use SPEC_SHORT and renamed _signed to b_signed
5009         * src/SDCCsymt.c: use SPEC_SHORT and renamed _signed to b_signed
5010         * src/SDCCsymt.h (struct specifier): renamed _xxx bitfields to b_xxx
5011           and updated their macros
5012         * src/SDCCval.c (constVal): updated comment for renamed b_long
5013
5014 2005-08-22 Maarten Brock <sourceforge.brock AT dse.nl>
5015
5016         * as/mcs51/asdata.c: changed ctype['['] to BINOP
5017         * as/mcs51/asexpr.c (expr): added case '[' for bit access in bdata,
5018           (term): abused bit 15 of s_addr to indicate bit-addressable bytes,
5019           (oprio): set priority for '['
5020         * as/mcs51/aslink.h: added define R_BIT, and prototypes for adb_bit
5021            and adb_24_bit
5022         * as/mcs51/asm.h: added defines R_BIT and S_BIT
5023         * as/mcs51/lkarea.c (lnksect2): use T for seg BIT_BANK and overlay it
5024         * as/mcs51/lkdata.c: changed ctype['['] to BINOP
5025         * as/mcs51/lkmain.c (Areas51): rel2 contains 12 (=C) areas now,
5026           added overlayable BIT_BANK area
5027         * as/mcs51/lkmem.c (summary): add BIT_BANK to BSEG_BYTES in the report,
5028           (summary2): explain 'T' in legenda
5029         * as/mcs51/lkrloc.c: replaced old K&R style,
5030           (relr): added R_BIT processing,
5031           (errmsg): added "Bit-addressable relocation error",
5032           (adb_bit): added for converting from byte- to bit-addressable space,
5033           (adb_24_bit): added for converting from byte- to bit-addressable space
5034         * device/include/stdbool.h: changed BOOL to __bit for mcs51 as it can be
5035            used in reentrant functions now even as return value
5036         * device/lib/_gptrput.c (_gptrput): removed obsolete code
5037         * src/SDCCast.c (resultTypePropagate): also propagate AND_OP and OR_OP,
5038           (decorateType): case '!', GETHBIT, AND_OP, OR_OP: result in bool or char
5039         * src/SDCCglobl.h: added indicator BitBankUsed
5040         * src/SDCCglue.c (glue): emit area BIT_BANK with byte 'bits' and equ's for
5041            the bit registers b0-b7
5042         * src/SDCCicode.c (operandFromSymbol): removed IS_BITVAR check,
5043           (geniCodeCast): fixed bug 1263853,
5044           (geniCodeLogicAndOr): put result in bool or char,
5045           (geniCodeReceive): added parameter func for accessing the return type,
5046           (geniCodeFunctionBody): pass func to geniCodeReceive
5047         * src/SDCCmain.c: added indicator BitBankUsed
5048         * src/SDCCmem.c (allocLocal): explicitly set sclass for V_BIT
5049         * src/SDCCsymt.c (newBoolLink): added for creating a bool/bit,
5050           (checkSClass): don't put automatic bool/bit on stack,
5051           (checkFunction): removed check on function cannot return bit
5052         * src/SDCCsymt.h: added newBoolLink prototype
5053         * src/mcs51/gen.c (rb1regs): added bit registers,
5054           (movc): created for assigning to carry,
5055           (pushReg, popReg): created for pushing registers,
5056           (sameRegs): check both AOP_REG and AOP_CRY types,
5057           (aopOp): handle bit registers,
5058           (aopPut): optimization no self-assign,
5059           (saveRegisters): push reg->base (bits) only once for bit registers,
5060            and use pushReg,
5061           (unsaveRegisters): pop reg->base only once and use popReg,
5062           (assignResultValue): added parameter func and return in carry for bits,
5063           (genIpush): optimization no reload in A if not changed,
5064           (genSend): bit parameters in reentrant functions are passed in bit
5065            registers by first assigning to bits in B, then save registers and
5066            copy B to bits,
5067           (genCall): handle returning in Carry properly, save it in F0 if needed,
5068           (genPcall): updated assignResultValue call, this is not safe yet for bit
5069            returning function !!!
5070           (genFunction): don't generate equ's for bit registers and use pushReg,
5071           (genEndFunction): take care of bit returning functions and use popReg,
5072           (genRet): return bit in Carry,
5073           (genIfx): optimize bit registers and other directly addressable bits,
5074           (genReceive): updated assignResultValue call
5075         * src/mcs51/main.c (_mcs51_reset_regparm): added regBitParmFlg,
5076           (_mcs51_regparm): allow passing of upto 8 bit parameters in bit
5077            registers when using stack-auto
5078         * src/mcs51/ralloc.c (_G): added allBitregs,
5079           (regs8051): added the bit registers,
5080           (createStackSpil): use macro IS_BIT,
5081           (getRegBit): added to allocate a bit register, else spill,
5082           (getRegBitNoSpil): added to allocate a bit register, else a gpr,
5083           (updateRegUsage): factored out to ease stepping while debugging,
5084           (serialRegAssign): use updateRegUsage, only spill bits if necessary,
5085            also allocate bit registers,
5086           (fillGaps): handle bit registers,
5087           (findAllBitregs): added to create bit vector with all bit registers,
5088           (mcs51_allBitregs): returns this bit vector,
5089           (mcs51_assignRegisters): when using stack-auto use bit registers for
5090            passing parameters and creating local variables
5091         * src/mcs51/ralloc.h: added B0_IDX..B7_IDX and prototype mcs51_allBitregs
5092
5093 2005-08-22 Borut Razem <borut.razem AT siol.net>
5094
5095         * device/lib/Makefile.in: replaced find option -or with -o
5096           to make it run on solaris
5097
5098 2005-08-22 Raphael Neider <rneider AT web.de>
5099
5100         * src/pic16/gen.c (pic16_loadFromReturn): added check for AOP_PCODE,
5101           fixes #1265442 (crash on Solaris)
5102
5103 2005-08-20 Borut Razem <borut.razem AT siol.net>
5104
5105         * configure, configure.in: added tests for libsocket and libnsl libraries,
5106           requred by sdcdb on sparc-solaris; generate support/regression/Makefile
5107           from support/regression/Makefile.in
5108         * support/regression/Makefile.in: added
5109         * device/lib/pic16/Makefile.common.in: force make to use bash shell
5110         * sim/ucsim/libtool: regenerated on sparc-solaris
5111         * sim/ucsim/avr.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
5112           sim/ucsim/s51.src/Makefile.in, sim/ucsim/xa.src/Makefile.in,
5113           sim/ucsim/z80.src/Makefile.in: removed GNU ld specific linker options
5114           -Wl,--start-group and -Wl,--end-group to enable ucsim compilation on
5115           sparc-solaris, which doesn't use GNU ld linker
5116         * device/lib/Makefile.in: cp on sparc-solaris (SunOS) does not support -u option
5117         * as/Makefile: find on sparc-solaris does not support -maxdepth option
5118
5119 2005-08-19 Maarten Brock <sourceforge.brock AT dse.nl>
5120
5121         * src/mcs51/peeph.def: updated comments
5122
5123 2005-08-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5124
5125         * device/lib/_gptrget.c,
5126         * device/lib/_gptrput.c: slightly shorter
5127         * doc/sdccman.lyx: incremented version
5128         * src/mcs51/peeph.def: moved peephole comments to the line of first
5129           change to better keep line correlation, reanimated 186.e
5130         * src/mcs51/peeph.def: renamed similar peepholes by using suffixes
5131
5132 2005-08-16 Slade Rich <slade_rich AT users.sourceforge.net>
5133
5134         * src/pic/pcode.c : Pasted ".line" assembly directives patch from
5135           David Saxton with quotes around file name.
5136
5137 2005-08-15 Borut Razem <borut.razem AT siol.net>
5138
5139         * support/regression/tests/bitfields.c, support/regression/tests/bitvars.c,
5140           support/regression/tests/bitwise.c, support/regression/tests/literalop.c,
5141           support/regression/tests/rotate.c, support/regression/tests/zeropad.c:
5142           make tests run on x86_64 platform
5143
5144 2005-08-13 Raphael Neider <rneider AT web.de>
5145
5146         * device/lib/pic16/Makefile.subdir: weakened clean-intermediate rule
5147           as it might be executed DURING a build (parallel make is wonderful)
5148
5149 2005-08-13 Raphael Neider <rneider AT web.de>
5150
5151         * device/lib/Makefile.in (port-specific-objects-pic16):
5152           revert to cp $(PORT)/bin/*.* $(PORTDIR)
5153         * device/lib/pic16/Makefile: added .PHONY targets, removed builddir
5154           dependency
5155         * device/lib/pic16/Makefile.rules: build subdirs before creating
5156           the library, removed builddir rule, create $(builddir) early in
5157           recurse rule, use empty recurse rule for leaf directories
5158         * device/lib/pic16/Makefile.subdir: added phony targets, ignore
5159           mkdir errors (race condition), removed duplicate suffix "hex"
5160           from clean rules
5161         * device/lib/pic16/libdev/Makefile: recursive make via + and $(MAKE)
5162         * device/lib/pic16/libio/Makefile: create sub-make's builddir early,
5163           prevents mkdir -p from aborting on Alpha
5164
5165 2005-08-12 Raphael Neider <rneider AT web.de>
5166
5167         * src/pic16/glue.c (pic16_print(G)PointerType): do not flush
5168           db-statements in order to allow for arrays of pointers in code
5169           sections to be placed without interspersed 0-padding, fixes
5170           bug #1256215
5171         * (emitStatistics): fixed division by zero for pic18f1220
5172         * src/pic16/pcode.c: buffer (up to) 12 DB directives to allow for
5173           unpadded writing of 8-bit, 16-bit, 24-bit and 32-bit values
5174         * (pic16_emitDS): respect DB_ITEMS_PER_LINE
5175         * (pic16_pCodeConstString): keep track of already emitted string
5176           literals to prevent "duplicate definitions of symbol _str_NR"
5177         * src/pic16/ralloc.c (pic16_allocRegByName): removed not so helpful
5178           debug message
5179         * device/lib/Makefile.in: ignore failing PIC16 library builds
5180         * device/lib/pic16/Makefile: do not build if gputils are missing
5181         * device/lib/pic16/Makefile.common.in: do not enforce MAKEFLAGS=-s
5182
5183 2005-08-10 Raphael Neider <rneider AT web.de>
5184
5185         * device/lib/Makefile.in: fixed copying pic16 libraries (broken by
5186           my last commit)
5187
5188 2005-08-10 Raphael Neider <rneider AT web.de>
5189
5190         * src/*.c, src/pic16/{gen.c,glue.c,main.c}: applied Vangelis
5191           Rokas' patch to add the new fixed point type "__fixed16x16"
5192         * device/lib/pic16/libsdcc/fixed16x16: added Vangelis' support
5193           functions for __fixed16x16 arithmetics
5194         * device/lib/pic16: reimplemented the build system to support
5195           a separate build directory, better handling of libio (create
5196           the library in a separate subdir for each architecture) and
5197           easier configuration (centralized in Makefile.common)
5198
5199 2005-08-07 Raphael Neider <rneider AT web.de>
5200
5201         * src/pic16/gen.c (genrshTwo): fixed sign extension
5202         * src/pic16/device.c: added pic18f2320, 4220 and 4320
5203         * device/include/pic16/pic18f2220.h: changed some bit definitions,
5204           added T0CONbits
5205         * device/include/pic16/pic18f4220.h: NEW, header for
5206           pic18f4220 and pic18f4320
5207         * device/include/pic16/pic18fregs.h: added new devices,
5208           embraced Nop(), ClrWdt(), Sleep() and Reset() with do {} while(0)
5209         * device/include/pic16/signal.h: resolved name clashes
5210           on bit definitions, added DEF_HANDLER2(sig1,sig2,handler)
5211           to also allow testing for interrupt enable bits, added
5212           comments on how to use the macros
5213         * device/lib/pic16/libdev/pic18f2220.c: added T0CONbits
5214         * device/lib/pic16/libdev/pic18f{2320,4220,4320}.c: NEW,
5215           register definitions for the devices
5216         * device/lib/pic16/pics.all: added new devices
5217         * device/lib/pic16/libc/stdlib/calloc.c: fixed zeroing
5218           allocated memory
5219         * device/lib/pic16/libc/stdlib/memfree: do not count
5220           the block header as free memory
5221         * device/lib/pic16/libc/stdlib/memmisc.c (_initHeap):
5222           simplified and added missing end-of-blocklist-marker
5223           (reported by Peter Onion, fixes #1252814)
5224         * (_mergeHeapBlock): fixed loop condition
5225         * device/lib/pic16/libc/stdlib/realloc.c: return NULL for
5226           len==0, restructured code
5227         * device/lib/pic16/libc/stdlib/{malloc,memfreemax}.c: cleaned
5228           up a bit, reduced bitfield accesses, prevent endless loops
5229           in case of heap corruption
5230         * device/lib/pic16/libc/stdlib/x_ftoa.c: disabled
5231           "unreferenced arguments/must return a value" warnings
5232         * device/lib/pic16/libio/usart/ubaud.c (usart_baud):
5233           replaced BAUDREG with SPBRG
5234         * device/lib/pic16/libsdcc/lregs/{lrrest.c,lrst.c},
5235           device/lib/pic16/debug/gstack/gstack.c: replaced
5236           _naked, _asm, _endasm with __naked, __asm, __endasm
5237
5238 2005-08-05 Raphael Neider <rneider AT web.de>
5239
5240         * src/pic16/gen.c (pic16_aopGet): fixed handling of offsets in
5241           AOP_PCODE operands, fixes multibyte union-bitfield-accesses
5242
5243 2005-08-05 Borut Razem <borut.razem AT siol.net>
5244
5245         * device/lib/Makefile.in: added missing ';'
5246         * configure: removed ^M characters
5247
5248 2005-08-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5249
5250         * device/include/mcs51/at89c51ed2.h, device/include/mcs51/p89v51rd2.h,
5251           device/include/mcs51/at89s53.h: changed to GNU Lesser General Public
5252           License
5253
5254 2005-08-04 Borut Razem <borut.razem AT siol.net>
5255
5256         * configure.in: pic16 libraries build 2nd try - enable running
5257           configure in device/lib/pic16
5258         * configure: regenerated from configure.in
5259         * device/lib/Makefile.in: create $(PORT)/bin directory
5260
5261 2005-08-03 Raphael Neider <rneider AT web.de>
5262
5263         * src/pic16/gen.c (pic16_derefPtr): NEW, single place
5264           to get/set values via pointers
5265         * (genUnpackBits,genPackBits): changed detection of
5266           ptr->bitfield vs. sym.bitfield, fixed access via generic
5267           pointers, removed dead (wrong) code for multibyte bitfields
5268         * (genNearPointerGet, genGenPointerGet): removed useless code,
5269           fixed bitfield detection, fixes #1250594
5270         * (genNearPointerSet): removed useless code
5271         * src/pic16/gen.h: renamed pic16_emitpcode to pic16_emitpcode_real
5272           and introduced macro pic16_emitpcode that conditionally emits
5273           the origin of the following pCode (useful for debugging SDCC)
5274         * src/pic16/pcode.c: changed (and disabled) some debug outputs
5275         * (createDefmap): fixed handling of LFSR for --optimize-df
5276
5277 2005-08-02 Borut Razem <borut.razem AT siol.net>
5278
5279         * device/lib/Makefile.in: pic16 libraries build enabled since
5280           gputils-0.13.2 are now localy installed at sourceforge's compile farm
5281
5282 2005-08-02 Raphael Neider <rneider AT web.de>
5283
5284         * src/pic16/gen.c (genPackBits): removed deprecated warning
5285         * (genGenPointerSet): fixed bitfield detection
5286
5287 2005-08-02 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5288
5289         * device/include/mcs51/msm8xc154s.h: Removed PT2 definition, now in 8052.h.
5290
5291 2005-07-31 Raphael Neider <rneider AT web.de>
5292
5293         * device/lib/pic16/libdev/pic18f458.c,
5294           device/include/pic16/pic18f458.h: added missing T0CONbits
5295
5296 2005-07-29 Maarten Brock <sourceforge.brock AT dse.nl>
5297
5298         * device/include/mcs51/msm8xc154s.h: added, thanks to Matthias Arndt
5299
5300 2005-07-28 Maarten Brock <sourceforge.brock AT dse.nl>
5301
5302         * src/mcs51/gen.c (operandsEqu): fixed bug 1246687
5303
5304 2005-07-23 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5305
5306         * device/include/mcs51/at89c51ed2.h: added.
5307
5308 2005-07-23 Raphael Neider <rneider AT web.de>
5309
5310         * src/pic/gen.h: added emitpcode macro for debugging
5311         * src/pic/gen.c (emitpcode): renamed to emitpcode_real
5312           and replace by macro adding debug information on demand
5313         * (genNot): fixed to C semantics (!0 = 1; !x = 0 iff x != 0)
5314         * (gencjne): tried to fix; replaced with correct (slower) code
5315         * (gen{Unp,P}ackBits): fixed single bit access
5316         * src/pic/pcode.c (AnalyzepCode): fixed DFPRINTF argument
5317         * src/pic/pcodepeep.c (pCodeSearchCondition): fixed finding
5318           previous instruction
5319         * src/pic/pcoderegs.c (regIsSpecial): NEW, check whether a
5320           register has to be handled with care (forbidding movement
5321           of assignments/uses, removing assignments completely, ...)
5322         * (pCodeOptime2pCodes): make use of regIsSpecial
5323         * added lots of debugging output (commented out)
5324         * src/pic/rallloc.c (deassignLRs): prevent operand registers
5325           from being reused as result UNLESS it is known to work
5326
5327 2005-07-23 Maarten Brock <sourceforge.brock AT dse.nl>
5328
5329         * support/Util/dbuf.h: include <stddef.h> for size_t
5330         * .version: changed to version 2.5.2
5331
5332 2005-07-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5333
5334         * src/SDCCloop.c (loopInvariants): fixed bug #1234048
5335
5336 2005-07-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5337
5338         * src/hc08/gen.c (genMinus): fixed bug #1241835,
5339           (genModOneByte): removed needless psha/pula
5340
5341 2005-07-22 Raphael Neider <rneider AT web.de>
5342
5343         * src/SDCCmain.c (linkEdit): initialized linkerScriptFileName,
5344           have PIC14 handled like PIC16, fixes broken pic14 linker calls
5345         * src/pic/gen.c (resolveIfx): do not "invent" labels
5346         * (genSkipc): changed to positive logic
5347         * (genSkipCond): removed as no longer needed
5348         * (pic14_mov2w_regOrLit,genCmp): NEW, replacement for buggy version,
5349           backport from PIC16
5350         * (genLeftShift): check operands are in different registers
5351         * src/pic/genarith.c (genPlus): replaced INCF with ADDLW as
5352           INCF does not update CARRY...
5353         * src/pic/main.c: fixed _linkCmd
5354         * src/pic/pcode.c (unlinkpCode): added inactive code
5355         * src/pic/ralloc.c (deassignLRs): keep arguments to shift operations
5356           alive (do not assign result and operand overlapping registers)
5357
5358 2005-07-22 Raphael Neider <rneider AT web.de>
5359
5360         * src/pic/device.c (dump_sfr): replaced register declaration with
5361           call to emitSymbolToFile() to avoid duplicate symbols
5362         * (assignRelocatableRegisters): do not declare external symbols
5363         * src/pic/ralloc.c (allocNewDirReg): fixed to get size of arrays
5364           right (take size of type, not etype)
5365         * (allocDirReg): fixed call to allocNewDirReg() to pass OP_SYM_TYPE
5366         * (writeUsedRegs): also dump dynDirectRegs (e.g. local variables)
5367         * (packRegsForAccUse): disabled assignment of WREG as
5368           the result reg to prevent occurence of just fixed #1235003,
5369           fixes #1242954
5370         * src/pic/glue.c (emitSymbolToFile): NEW, central place to declare
5371           symbols (avoids duplicate symbols in .asm file)
5372         * (pic14emitRegularMap): use emitSymbolToFile()
5373         * src/pic/gen.c (aopOp): fixed spillLocation handling
5374         * (gen{Unp,P}ackBits): fixed acquiring bit-operands
5375         * (genDataPointerSet): removed unneccessary variables/output
5376
5377 2005-07-22 Maarten Brock <sourceforge.brock AT dse.nl>
5378
5379         * as/mcs51/lkarea.c: enlarged codemap for banked memory
5380         * device/lib/mcs51/crtbank.asm: added # to 0x0F
5381
5382 2005-07-21 Raphael Neider <rneider AT web.de>
5383
5384         * src/pic/gen.c (aopOp): do not generate AOP_ACC operands as pic14
5385           architecture cannot handle them efficiently, fixes bug #1235003
5386         * src/pic16/device.c (pic16_dump_{u,i}section,pic16_dump_int_registers):
5387           check for empty sets before using them (fixes bug #1232190)
5388
5389 2005-07-19 Maarten Brock <sourceforge.brock AT dse.nl>
5390
5391         * as/mcs51/lkarea.c (lnkarea, lnkarea2): improved BSEG size calculation,
5392           (lnksect2): generate warnings for memory overlap
5393         * src/SDCC.lex (doPragma, process_pragma): added pragma's codeseg and
5394           constseg to set the name of these segments so you can instruct the linker
5395           to place them in banks
5396         * src/SDCCast.c (decorateType): use new macro IS_FUNCPTR()
5397         * src/SDCCglobl.h: added MODEL_HUGE to enum,
5398           added code_seg and const_seg to options
5399         * src/SDCCglue.c (emitMaps): use options.const_seg,
5400           (createInterruptVect): put interrupt vectors in segment HOME,
5401           (glue): put HOME before static segment and put the main glue in HOME,
5402           (glue): use options.code_seg
5403         * src/SDCCicode.c (geniCodeCall): use new macro IS_FUNCPTR()
5404         * src/SDCCmain.c: added option --codeseg and --constseg to set the name of
5405           these segments so you can instruct the linker to place them in banks
5406           (linkEdit): use code_loc for HOME segment which should be the first
5407           segment in code memory now
5408         * src/SDCCmem.c: fixed more stuff like bug 1238386
5409         * src/SDCCsymt.c (getSize): use generic pointer size for banked functions,
5410           (changePointer): don't change function pointers to code pointers for
5411           banked functions,
5412           (compareType): added exceptional check for banked function pointers
5413         * src/SDCCsymt.h: changed IFFUNC_ISBANKEDCALL, added IS_FUNCPTR
5414         * src/hc08/main.c (_hc08_genAssemblerPreamble): put HOME first, put CSEG
5415           after static in code memory
5416         * src/mcs51/gen.c: added aopLiteralLong prototype,
5417           (aopForSym): use getSize for functions,
5418           (genCall): generate banked calls over one trampoline __sdcc_banked_call
5419           in HOME with lsb of address in r0, msb in r1 and bank in r2, use
5420           -Wl-bBANKSEG=0xbbaaaa option to set the address (aaaa) and bank (bb) of
5421           the segment,
5422           (genPcall): use call for literal function pointers and generate banked
5423           calls over the one trampoline so there's only one place for the user to
5424           modify according to his/hers hardware,
5425           (genEndFunction): jump to __sdcc_banked_ret in HOME for banked functions,
5426           (genPlusIncr): moved check icount>4 beyond inc dptr optimization
5427         * src/mcs51/main.c: added keyword banked,
5428           (_mcs51_genExtraAreas): put HOME first followed by GSINIT, STATIC and CSEG
5429         * support/Util/SDCCerr.c,
5430         * support/Util/SDCCerr.h: added E_BANKED_WITH_CALLEESAVES, registers are
5431           needed for passing the bank and address to the trampoline
5432         * device/lib/mcs51/crtbank.asm: added for bankswitching
5433         * device/lib/mcs51/Makefile: added crtbank
5434
5435 2005-07-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5436
5437         * src/SDCCcse.c (algebraicOpts): fixed loss of volatility
5438           for fields at offset 0 of a struct or union as reported
5439           on 2005-07-07 in the developer mailing list.
5440
5441 2005-07-15 Maarten Brock <sourceforge.brock AT dse.nl>
5442
5443         * src/SDCCmem.c: fixed bug 1238386
5444
5445 2005-07-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5446
5447         * src/mcs51/peeph.def: added labelrefcounting for peepholes
5448           (patch #1144962), added peephole 300, enabled 259.x
5449         * doc/sdccman.lyx: removed screenshot and provided link instead
5450
5451 2005-07-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5452
5453         * doc/sdccman.lyx: added section about debugging with ddd
5454         * doc/figures/ddd_example.eps: screenshot of debugging session
5455
5456 2005-07-04 Raphael Neider <rneider AT web.de>
5457
5458         * src/pic/gen.c (genPointerGet): handle pointers to CONST values
5459           like CODE pointers, fixes #1115683
5460         * src/pic/pcode.c (DoBankSelect): forget LastRegIdx during function
5461           call, fixes bugs #1232211, #1228110,
5462           fixed wrong casts to pCodeFlow from pCodeInstructions
5463
5464 2005-07-04 Raphael Neider <rneider AT web.de>
5465
5466         * src/pic/gen.c (popGet): changed assert to allow for
5467           bit operands
5468         * (popGetAddr): changed signature to provide
5469           an additional index, patched all call sites
5470         * (genCmpEq): handle literal-like operands correctly
5471         * (genAddrOf): added sanity checks on __code/__data pointers
5472         * (genAssign): added handling of symbols from __code section
5473         * (gencjne): do not generate code for comparisons whose result
5474           is neither stored nor used, fixes bug #1171114
5475         * (AccLsh, AccRsh): operate on operand instead of WREG
5476         * (shift{Left,Right}_Left2ResultLit): NEW, size independant
5477           replacement for Shift{LR}{12}Left2Result; shift (byte/int/long)
5478           by known count
5479         * rewrote complete shift-by-literal logic, commented unused
5480           functions out
5481         * (genConstPointerGet): get multiple bytes (if result size > 1),
5482           fixed handling of non-immediate addresses
5483         * (genPointerGet): handle CODE pointers like CONST pointers
5484         * (genpic14Code): insert C-SRC lines as Cource-pCodes
5485         * ({aop,op}_isLitLike): NEW, single place to decide whether an
5486           operand is to be treated as a literal or not
5487         * (mov2w,genPcall,genCmpEq),
5488           src/pic/genarith.c: use aop_isLitLike() to decide between
5489           literal/register contents
5490         * (addSign): added missing offset
5491         * src/pic/gen.h: remove newline after FENTRY/FEXIT comments,
5492           only emit comment in debug-mode,
5493           use {aop,op}_isLitLike throughout the file
5494         * src/pic/glue.c: fix initializers for pointers (work in progress)
5495         * src/pic/pcode.c (get_op): honor index on _const symbols
5496         * ({reset,dump}pCodeStatistics): NEW, estimate code size
5497         * (dumppBlock): added pCode size estimation
5498         * src/pic/ralloc.c (deassignLRs,serialRegAssign,packRegisters):
5499           check for IS_SYMOP before OP_SYMBOL'ing
5500         * fixed indentation, compacted switch-statements
5501         * (allocReg): find free register and allocate it instead of
5502           allocating new registers all the time
5503         * (deassignLRs): prevent POINTER_GET's from being assigned the same
5504           registers as its operands (necessary only for multibyte GETs)
5505
5506 2005-07-01 Raphael Neider <rneider AT web.de>
5507
5508         * src/pic/gen.h: added prototypes emitpComment, popGetAddr and
5509           debugging .asm-output macros FENTRY + FEXIT
5510         * src/pic/gen.c (Safe_vsnprintf): NEW, is there a more generic
5511           way... I wonder...
5512         * (emitpComment): NEW, printf to pCode
5513         * (popGet): added assert on too large offsets, fixed PO_IMMEDIATE's
5514           offset handling
5515         * (popGetAddr): NEW, variant of popGet to access an immediates
5516           high(er) bytes instead of the n'th byte of memory they reference,
5517           replaced popGet with popGetAddr where neccessary
5518         * (genDataPointerGet): reactivated and fixed implementation
5519         * (genNearPointerGet): enabled call to genDataPointerGet, fixes array-
5520           accesses
5521         * (genDataPointerSet): fixed multibyte assignments
5522         * (genpic14Code): fixed --i-code-in-asm handling
5523         * src/pic/genarith.c: fixed PO_IMMEDIATE issue using popGetAddr,
5524         * (genPlus): fixed index-out-of-bounds error
5525         * src/pic/pcode.c (get_op): fixed PO_IMMEDIATE's index/offset handling
5526         * src/pic/ralloc.c: added debugging output macro FENTRY2
5527         * (spillThis): fixed indentation, enbraced for-body for clarity
5528         * (rematStr): commented out as now unused
5529         * (regTypeNum): commented out special spill case (overwrites
5530           arbitrary values)
5531         * fixes bugs #1229346, #1216476 (both arrays) and #1115667 (SIGSEGV)
5532
5533 2005-06-30 Maarten Brock <sourceforge.brock AT dse.nl>
5534
5535         * doc/sdccman.lyx: documented sfr16/sfr32,
5536           added example for using storage class with function pointers
5537         * src/mcs51/gen.c (genPlusIncr): optimized small offsets from dptr
5538
5539 2005-06-28 Maarten Brock <sourceforge.brock AT dse.nl>
5540
5541         * device/lib/_gptrget.c: also push/pop _PSBANK, added # to 0x03
5542         * device/lib/_itoa.c,
5543         * device/lib/_ltoa.c: optimized codesize
5544         * src/SDCCsymt.c (checkSClass): added sanity check for sfr at addresses,
5545           but don't know how to suppress the double warning.
5546         * src/mcs51/gen.c (genPlusIncr): fixed bug when incrementing volatile int's
5547         * support/Util/SDCCerr.c,
5548         * support/Util/SDCCerr.h: added warning W_SFR_ABSRANGE for sanity check
5549
5550 2005-06-27 Maarten Brock <sourceforge.brock AT dse.nl>
5551
5552         * as/mcs51/asexpr.c (expr): disabled warning "not in .flat24 mode",
5553           fixed old K&R prototypes
5554         * as/mcs51/asout.c (outrb): always output as if generating 24bit addresses
5555         * device/lib/_gptrget.c,
5556         * device/lib/_gptrgetc.c,
5557         * device/lib/_gptrput.c: changed versions for new memory indicator values,
5558           also new versions for small generic pointers and banked generic pointers
5559         * src/port.h: added const_name
5560         * src/SDCC.lex: added keywords sfr16, __sfr16, sfr32, __sfr32
5561         * src/SDCC.y: added tokens SFR16, SFR32 and their sfr_attributes
5562         * src/SDCCcse.c (findPrevIc): check all associative operators
5563         * src/SDCCglue.c (emitMaps): use CONST_NAME if defined
5564         * src/SDCCicode.h: added macro IS_ASSOCIATIVE
5565         * src/SDCCmem.c: updated comments,
5566           set far-space to 0 for pdata, results in optimized code
5567         * src/SDCCmem.h: added macro CONST_NAME
5568         * src/SDCCsymt.h: renumerated generic pointer types GPTYPE_... thereby
5569           moving the info into the highest bits, see also gptrget/gptrput
5570         * src/src.dsp: added sdcc.ico to project files
5571         * src/avr/gen.c (genCast): fixed bug 0x%d
5572         * src/avr/main.c (avr_port): added "CONST (CODE)" for const_name
5573         * src/ds390/gen.c (aopForRemat, adjustArithmeticResult): disconnected direct
5574           relation between ptr_type and DCL_TYPE,
5575           (genCast): fixed bug 0x%d
5576         * src/ds390/main.c (ds390_port, tininative_port, ds400_port): added "CONST
5577           (CODE)" for const_name
5578         * src/hc08/gen.c (genCast): fixed bug 0x%d
5579         * src/hc08/main.c (_hc08_genAssemblerPreamble): added .area ...const_name,
5580           (hc08_port): added "CONST (CODE)" for const_name
5581         * src/mcs51/gen.c (aopForSym): optimized pushing ACC,
5582           (aopForRemat, adjustArithmeticResult): disconnected direct relation
5583           between ptr_type and DCL_TYPE,
5584           (aopGetUsesAcc, aopGet, aopPut): changed first parameter from asmop* to
5585           operand* and took AOP() inside function so sfr-ness can be checked,
5586           (all over): repaired calls to aopGetUsesAcc, aopGet, aopPut to comply with
5587           new prototype,
5588           (genFunction, genEndFunction): optimized stack setup,
5589           (genMinus): optimized for literals with ending zeroes (in bytes),
5590           (genCast): fixed bug 0x%d
5591         * src/mcs51/main.c (_mcs51_keywords): added sfr16 and sfr32,
5592           (mcs51_port): added "CONST (CODE)" for const_name
5593         * src/mcs51/peeph.def: made rule 226 more generic
5594         * src/pic/main.c (pic_port): added "CONST (CODE)" for const_name
5595         * src/pic16/main.c (pic16_port): added "CONST (CODE)" for const_name
5596         * src/xa51/main.c (xa51_port): added "CONST (CODE)" for const_name
5597         * src/z80/main.c (z80_port): added NULL for const_name,
5598           (gbz80_port): added NULL for const_name
5599         * support/regression/tests/bug663539.c,
5600         * support/regression/tests/sfr16.c: new tests
5601
5602 2005-06-25 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5603
5604         * device/include/mcs51/p89v51rd2.h, device/include/mcs51/at89s53.h: added.
5605
5606 2005-06-24 Raphael Neider <rneider AT web.de>
5607
5608         * device/lib/pic16/libdev/pic18f[68][567]20.c:
5609           corrected typos...
5610         * device/include/pic16/signal.h: added USBIF
5611           and SIG_USB
5612
5613 2005-06-24 Raphael Neider <rneider AT web.de>
5614
5615         * device/lib/pic16/libdev/pic18f2455.c,
5616           device/include/pic16/pic18f2455.h: NEW
5617         * device/include/pic16/pic18fregs.h,
5618           device/lib/pic16/pics.all,
5619           src/pic16/device.c: added 18f2455
5620         * device/lib/pic16/libdev/pic18f[68][567]20.c,
5621           device/include/pic16/{pic18f[68][567].h,usart.h}:
5622           replaced MULTIPLE_USARTS define with more relaible
5623           compatibility sfrs (for USART access)
5624
5625 2005-06-20 Slade Rich <slade_rich AT users.sourceforge.net>
5626
5627         * src/pic/pcode.c : Fixed problem when a string constant contains a "\r\n"
5628           and the output asm file line is printed on two lines.
5629
5630 2005-06-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5631
5632         * sim/ucsim/hc08.src/inst.cc (inst_condbranch): fixed simulation of
5633           BGT, BLE, BHI, and BLS instructions
5634         * src/hc08/gen.c (outAcc, outBitC, outBitNV, genCmpLt, genCmpGt,
5635           genCmpEq): removed
5636         * src/hc08/gen.c (genCmpEQorNE, genCmp, branchopCmp, nameCmp,
5637           negatedCmp, exchangedCmp, genhc08Code): rewrite of comparison handling,
5638           fixes bug #1216342
5639         * src/hc08/peeph.def: added rules 2g - 2l for new conditional branches
5640
5641 2005-06-15 Raphael Neider <rneider AT web.de>
5642
5643         * src/pic16/NOTES: moved Vangelis from active developers to people to contact
5644         * device/include/pic16/{6520.h,8520.h}: fixed configuration bits
5645         * src/pic16/gen.c (): prevent iTemps from being considered to be in CODESPACE,
5646           fixes bug #1221120; for symbols in CODESPACE get number of bytes to read from
5647           OP_SYM_TYPE() instead of OP_SYM_ETYPE()
5648
5649 2005-06-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5650
5651         * device/include/mcs51/reg764.h: Changed PB0 to PBO as requested by
5652           Marcel Telka in bug #1215704
5653
5654 2005-06-02 Slade Rich <slade_rich AT users.sourceforge.net>
5655
5656         * src/pic/pcode.c : Changed pseudo stack size to 15 to allow WSAVE to be
5657           located in shared memory bank.
5658
5659 2005-05-31 Raphael Neider <rneider AT web.de>
5660
5661         * src/pic16/{gen.c,genarith.c}: replaced sign-extension
5662           "CLRF, BTFSC <signbit>, DECF/COMF" with side-effect-free
5663           "CLRF, BTFSC <signbit>, SETF"; fixes "long>>9"
5664
5665 2005-05-27 Maarten Brock <sourceforge.brock AT dse.nl>
5666
5667         * device/lib/_strncpy.c: fixed the fix
5668
5669 2005-05-26 Raphael Neider <rneider AT web.de>
5670
5671         * src/pic16/glue.c (pic16_printIvalChar): fixed _constant_ string
5672           initializers with \0, bug #1208187
5673         * src/pic/glue.c (printIvalChar): fixed (non- and constant) string
5674           intializers with \0, bug #1208187
5675
5676 2005-05-26 Raphael Neider <rneider AT web.de>
5677
5678         * src/pic16/glue.c (pic16_printIvalChar): fixed string
5679           initializers with \0, bug #1208187
5680         * src/pic16/main.c (_process_pragma): added sanity checks
5681           for stack position and size, emit warnings when appropriate
5682
5683 2005-05-26 Maarten Brock <sourceforge.brock AT dse.nl>
5684
5685         * device/lib/_strncpy.c: fixed not filling with \0
5686
5687 2005-05-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5688
5689         * src/SDCCast.c (funcOfType, funcOfTypeVarg, stringToSymbol,
5690           createFunction),
5691         * src/SDCC.y (external_definition, enumerator, parameter_declaration,
5692           compound_statement),
5693         * src/SDCCsymt.h,
5694         * src/SDCCsymt.c (addSymChain, processFuncArgs): fixed bug #1159134
5695
5696 2005-05-24 Raphael Neider <rneider AT web.de>
5697
5698         * src/pic16/glue.c (pic16_printGPointerType): fixed #1207796
5699
5700 2005-05-24 Raphael Neider <rneider AT web.de>
5701
5702         * device/include/pic16/pic18f{442,452,458}.h: fixed wrong
5703           TRISE definitions, closes bug #1162453
5704
5705 2005-05-22 Raphael Neider <rneider AT web.de>
5706
5707         * src/pic16/main.c (_process_pragma): check for missing
5708           arguments to pragmas code and udata
5709         * device/include/pic16/pic18f{2550,4331,4455,4520}.h:
5710           consistency fixes to match other headers (thanks to Jim Paris)
5711         * device/lib/pic16/libio/i2c.ignore: 18f4331 provides no I2C
5712
5713 2005-05-21 Maarten Brock <sourceforge.brock AT dse.nl>
5714
5715         * src/SDCCicode.c (isOperandEqual): fixed missing ;
5716
5717 2005-05-19 Maarten Brock <sourceforge.brock AT dse.nl>
5718
5719         * support/regression/tests/bug1198642.c: new test
5720         * src/SDCCicode.c (isOperandEqual): fixed bug 1198642
5721         * src/SDCCcse.c (findPrevIc): added comment, please have a look
5722         * support/scripts/resource.h,
5723         * support/scripts/resource.rc,
5724         * src/src.dsp: added sdcc.ico to project as icon for sdcc.exe
5725         * support/scripts/sdcc.ico: added 32x32 icon
5726
5727 2005-05-18 Raphael Neider <rneider AT web.de>
5728
5729         * device/lib/pic16/libdev/pic18f*.c,
5730         * device/include/pic16/pic18f*.h: updated "sfr" and "at X"
5731           keywords to "__sfr" and "__at (X)"
5732         * device/include/pic16/pic18fregs.h: added pic18f4520
5733         * src/pic16/pcode.c (pic16_pCode2str): fixed (?) bug
5734           #1203088 (MPLAB compatibility)
5735
5736 2005-05-17 Raphael Neider <rneider AT web.de>
5737
5738         * device/include/pic16/pic18f{2550,4331,4455,4520}.h: NEW
5739         * device/lib/pic16/libdev/pic18f{2550,4331,4455,4520}.c: NEW
5740         * device/lib/pic16/pics.all: added new devices
5741         * src/pic16/device.c: added support for pic18f4520
5742
5743 2005-05-16 Raphael Neider <rneider AT web.de>
5744         * src/pic16/gen.{c,h}: s/mov2f/pic16_mov2f made public
5745         * src/pic16/genarith.c (genAddLit): fixed bug 1202480
5746         * src/pic16/pcode.{c,h} (pic16_newpCodeOpBit_simple): NEW
5747           convenience function for bit access
5748
5749 2005-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
5750
5751         * device/lib/printf_large.c: fixed bug 1193299
5752         * support/regression/tests/bug1057979.c: added test %3.3s
5753
5754 2005-05-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5755
5756         * device/include/mcs51/8051.h,
5757         * device/include/mcs51/8052.h: made parseable with lint
5758         * device/include/mcs51/lint.h: added include file for (sp)lint
5759         * doc/sdccman.lyx: added doc about use of splint (syntax checking tool)
5760         * doc/cdbfileformat.lyx,
5761         * doc/test_suite_spec.lyx: hardcoded date to the date of last text change
5762
5763 2005-05-14 Raphael Neider <rneider AT web.de>
5764
5765         * device/lib/pic16/Makefile.common.in: add --optimize-df to OPT_FLAGS
5766         * device/lib/pic16/libc/stdlib/itoa.c (new)
5767         * device/lib/pic16/libc/stdlib/Makefile: have itoa.c built
5768         * device/lib/pic16/libio/Makefile: exclude subdir according to
5769           ${subdir}.ignore for certain PICs (lacking e.g. i2c)
5770         * device/lib/pic16/libio/i2c.ignore (new): pic18f1220 has no I2C support
5771         * src/pic16/gen.c (genFunction): prevent annoying warning
5772         * src/pic16/pcode.c: renamed stack_t to dynstack_t to prevent
5773           nameclashes on BeOS
5774         * support/cpp2/cppmain.c (cpp_output_string): new
5775         * support/cpp2/cpplib.c (_cpp_do__Pragma): fixed _Pragma(""),
5776           fixes bug 1116802
5777
5778 2005-05-13 Borut Razem <borut.razem AT siol.net>
5779
5780         * src/SDCCmain.c (linkEdit): fixed bug 1195202
5781
5782 2005-05-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5783
5784         * .version: changed to version 2.5.1; back to bleeding edge development
5785
5786 2005-05-11 Borut Razem <borut.razem AT siol.net>
5787
5788         * doc/sdccman.lyx doc/cdbfileformat.lyx doc/test_suite_spec.lyx:
5789           generate PDF version 1.3 documents
5790
5791 2005-05-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5792
5793         * .version: changed to version 2.5.0
5794
5795 2005-04-27 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5796
5797         * doc/sdccman.lyx: updated weblinks, index and smaller updates
5798
5799 2005-04-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5800
5801         * doc/sdccman.lyx: changed version 2.5.0, documented --std-c89,
5802         --std-sdcc89, --std-c99, --std-sdcc99, and the corresponding #pragmas, as
5803         well as many smaller updates.
5804         * .version: changed to version 2.5.0-pre1
5805
5806 2005-04-26 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5807
5808         * src/SDCCmain.c (setIncludePath): added port->target to SDCC_INCLUDE_NAME
5809
5810 2005-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
5811
5812         * support/regression/tests/bug1185672.c: added
5813         * src/mcs51/gen.c (aopGetUsesAcc, genCpl, genAnd, genOr, genXor): fixed
5814           bug 1185672
5815         * src/mcs51/gen.c (genCall): added comments, made it look safer
5816         * src/mcs51/gen.c (genEndFunction): simplified
5817
5818 2005-04-25 Maarten Brock <sourceforge.brock AT dse.nl>
5819
5820         * src/mcs51/ralloc.c (serialRegAssign): fixed bug 1189609
5821
5822 2005-04-14 Borut Razem <borut.razem AT siol.net>
5823
5824         * fixed bug 1045046 - SIGSEGV with really simple code?:
5825           src/pic/pcode.c (pCodeInitRegisters)- pseudo stack size increased to 16
5826           src/pic/ralloc.c (typeRegWithIdx) - error message on pseudo stack overflow
5827
5828 2005-04-14 Borut Razem <borut.razem AT siol.net>
5829
5830         * src/pic16/gen.c (genInline), src/pic16/main.c (_process_pragma),
5831           src/pic16/device.h: temporarily disabled experimental #inline pragma
5832           for 2.5.0 release
5833
5834 2005-04-14 Maarten Brock <sourceforge.brock AT dse.nl>
5835
5836         * device/include/z80/stdio.h,
5837         * device/include/z80/string.h: removed these highly incomplete files so
5838           SDCC can use the default ones in device/include/
5839
5840 2005-04-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5841
5842         * src/mcs51/gen.c (genEndFunction): removed unused variable to fix
5843         gcc warning.
5844         * device/lib/Makefile.in: default PORTINCDIR to the mcs51 subdir to
5845         fix sdcpp warnings.
5846
5847 2005-04-12 Maarten Brock <sourceforge.brock AT dse.nl>
5848
5849         * device/include/malloc.h: removed redundant __reentrant prototypes
5850         * device/lib/_mullong.c: added working xstack variant in asm (C version
5851           doesn't pass regression tests)
5852         * device/lib/bpx.c: used __data and made bpx char for mcs51
5853         * src/SDCCast.c (decorateType): removed unused GPTYPE_IDATA,
5854           (createFunction): fixed bug with xstackPtr
5855         * src/SDCCcse.c: corrected comments
5856         * src/SDCCopt.c (convertToFcall): fixed warning in MSVC,
5857           (killDeadCode, eBBlockFromiCode): removed unused code
5858         * src/SDCCsymt.h: removed unused GPTYPE_GPTR and GPTYPE_IDATA,
5859           corrected comments
5860         * src/mcs51/gen.c (aopForSym, aopPut, toBoolean, unsaveRegisters,
5861           assignResultValue, genCall, genFunction, genEndFunction, genAnd,
5862           genOr, genXor, genAddrOf): fixed several bugs concerning xstack
5863           (genModOneByte): fixed warning in MSVC
5864         * src/mcs51/main.c (): added comments
5865         * src/mcs51/peeph.def: changed 129 to 129.a, added 129.b, 129.c & 129.d
5866
5867 2005-04-12 Maarten Brock <sourceforge.brock AT dse.nl>
5868
5869         * src/SDCCmain.c (linkEdit): oops, changed one line too many
5870
5871 2005-04-11 Maarten Brock <sourceforge.brock AT dse.nl>
5872
5873         * src/SDCCmain.c (linkEdit): fixed bug with finding crt0.o for z80
5874
5875 2005-04-10 Vangelis Rokas <vrokas AT users.sourceforge.net>
5876
5877         * src/pic16/glue.c (printIvalChar): fixed bug when emitting
5878         characters arrays of larger size than the declared one.
5879
5880 2005-04-10 Borut Razem <borut.razem AT siol.net>
5881
5882         * src/pic/gen.c (genInline),
5883           src/pic/pcode.c (newpCodeAsmDir), (pCode2str),
5884           (genericPrint), (unlinkpCodeFromBranch), (compareLabel),
5885           (findNextInstruction), (findPrevInstruction),
5886           (findInstructionUsingLabel),
5887           src/pic/pcode.h: fixed bug #1164907 - Labels not being recognized
5888         * src/pic/pcode.c (findLabel): added missing '\n'
5889         * src/src.dsp: added SDCCdwarf2.c to the project
5890
5891 2005-04-09 Borut Razem <borut.razem AT siol.net>
5892
5893         * support/scripts/sdcc.nsi: added include/hc08/* h to NSIS setup
5894
5895 2005-04-08 Raphael Neider <rneider AT web.de>
5896
5897         * src/pic16/pcode.c: added helpers defmapInsertAfter (insert a new item
5898           into the chain after a given one) and mergeDefmapSymbols (combine
5899           defmap entries for each symbol per pcode)
5900         * (createDefmap): have defmap entries merged in the end
5901         * (defmapReplaceSymRef): split defmap entries covering two accesses to
5902           a symbol before replacing one access type's symbol, merge symbols in
5903           the end (replacement symbol might already have an entry)
5904         * (assignValnums): keep reference to written WREG intact
5905
5906 2005-04-08 Raphael Neider <rneider AT web.de>
5907
5908         * src/pic16/pcode.c (struct defmap_s): named anonymous union (for
5909           Alpha)
5910
5911 2005-04-08 Vangelis Rokas <vrokas AT users.sourceforge.net>
5912
5913         * src/pic16/pcode.c (pic16_get_op2): enlarged size of array b to 128
5914         bytes
5915
5916 2005-04-07 Raphael Neider <rneider AT web.de>
5917
5918         * device/include/pic16/usart.h: added compatibility defines for
5919           devices with more than one USART
5920         * device/include/pic16/pic18f[68][567]20.h: activated above defines
5921
5922 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
5923
5924         * device/lib/Makefile.in: updated for port specific include
5925
5926 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
5927
5928         * support/regression/ports/mcs51/spec.mk: added mcs51 include
5929
5930 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
5931
5932         * device/include/8051.h,
5933         * device/include/8052.h,
5934         * device/include/at89S8252.h,
5935         * device/include/at89c55.h,
5936         * device/include/at89x051.h,
5937         * device/include/at89x51.h,
5938         * device/include/at89x52.h,
5939         * device/include/mcs51reg.h,
5940         * device/include/reg51.h,
5941         * device/include/reg764.h,
5942         * device/include/regc515c.h,
5943         * device/include/sab80515.h: (re)moved these 12 files
5944         * device/include/mcs51/8051.h,
5945         * device/include/mcs51/8052.h,
5946         * device/include/mcs51/at89S8252.h,
5947         * device/include/mcs51/at89c55.h,
5948         * device/include/mcs51/at89x051.h,
5949         * device/include/mcs51/at89x51.h,
5950         * device/include/mcs51/at89x52.h,
5951         * device/include/mcs51/mcs51reg.h,
5952         * device/include/mcs51/reg51.h,
5953         * device/include/mcs51/reg764.h,
5954         * device/include/mcs51/regc515c.h,
5955         * device/include/mcs51/sab80515.h: and added them here
5956
5957 2005-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
5958
5959         * device/include/stdarg.h: changed SDCC specific keywords to double
5960           underlined form.
5961         * device/include/stdint.h: changed intptr_t and uintptr_t for others than
5962           mcs51 and ds390.
5963         * device/include/hc08/mc68hc908gp32.h,
5964         * device/include/hc08/mc68hc908jb8.h,
5965         * device/include/hc08/mc68hc908jkjl.h,
5966         * device/include/hc08/mc68hc908qy.h: fixed comments
5967         * device/include/mcs51/README: updated
5968         * device/include/mcs51/c8051f120.h: added PINRSF
5969         * device/lib/pic16/libc/stdlib/crc16.c: fixed comments
5970         * src/pic16/pcode.c: MSVC6 doesn't accept declaring new variables
5971           amidst code. Also inline is not supported.
5972
5973 2005-04-06 Raphael Neider <rneider AT web.de>
5974
5975         * src/pic16/pcode.c (pic16_pCodeReplace): also update pcflow->end
5976         * (createDefmap): fixed CALLs to depend on FSR1 and RETLW to restore
5977           callers stack/frame pointers
5978
5979 2005-04-06 Vangelis Rokas <vrokas AT users.sourceforge.net>
5980
5981         * device/include/pic16/usart.h: added, missing in previous commit,
5982         * device/include/pic16/adc.h: fixed typo,
5983         * device/lib/pic16/libc/utils/cvtdec.S: added missing in previous
5984         commit,
5985         * device/lib/pic16/libc/stdlib/g_ftoa.S: modified to include
5986         <p18fxxx.inc>
5987         * device/lib/pic16/libc/stdio/streams.c: leave stdin, stdout
5988         uninitialized because a bug appears with gplink
5989         * device/lib/pic16/{some makefiles}: moved $(CSTD) from CFLAGS to
5990         COMPILE_FLAGS and added CPPFLAGS with -nostdinc because sdcpp
5991         complains for unrecognised option
5992
5993 2005-04-05 Raphael Neider <rneider AT web.de>
5994
5995         * src/pic16/gen.c (pic16_popCopyReg): made copying work for extended
5996           structs as well (using memcpy)
5997         * (genFunction): fixed comparison, used pCodeOpLabel to reduce warning
5998           on ISRs (GOTO has no label)
5999         * src/pic16/device.h: added OF_OPTIMIZE_DF
6000         * src/pic16/main.c: added compiler switch --optimize-df to enable the
6001           new data flow analysis/optimization
6002         * src/pic16/pcode.c: added (prototypes for and implementation of)
6003           dataflow analysis functions, fixed pCodeInstructions' inCond and
6004           outCond values, made RCALL a branch instruction
6005         * (pic16_unlinkpCode): keep C line if possible
6006         * (pic16_pCodeUnlink): removed cast on left side of assignment, have
6007           C line moved if possible
6008         * (pic16_getRegFrompCodeOp): NEW, improved version of...
6009         * (pic16_getRegFromInstruction,pic16_getRegFromInstruction2): changed
6010           to use new pic16_getRegFrompCodeOp (works for more SFRs)
6011         * (pic16_BuildFlow): fixed skip instructions with label (did not start
6012           new flow)
6013         * (pic16_getJumptabpCode): NEW, needed in...
6014         * (LinkFlow): fixed handling of jumptables, calls and conditional
6015           branches
6016         * (pic16_InsertCommentAfter): NEW
6017         * (pic16_pCodeReplace): made verbose and flow preserving
6018         * (AnalyzeFlow): added call to data flow analysis
6019         * src/pic16/pcode.h: added defmaps to pCodeFlow struct
6020         * src/pic16/pcodeflow.h: added PCC_STATUS to mean all STATUS bits
6021         * src/pic16/ralloc.c (packRegsForAssign): added return 1 in the end
6022
6023 2005-04-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6024
6025         * src/SDCCast.c (decorateType): fixed bug #1105626
6026
6027 2005-04-02 Vangelis Rokas <vrokas AT users.sourceforge.net>
6028
6029         * device/include/asm/pic16/features.h,
6030         * pic18f*.h headers,
6031         * device/include/pic16/adc.h,
6032         * device/include/pic16/delay.h,
6033         * device/include/pic16/i2c.h,
6034         * device/include/pic16/malloc.h,
6035         * device/include/pic16/stdio.h,
6036         * device/include/pic16/stdlib.h,
6037         * device/include/pic16/string.h,
6038         * device/lib/pic16/libc/stdio/printf_tiny.c,
6039         * device/lib/pic16/libc/stdio/printf_small.c,
6040         * device/lib/pic16/libc/stdio/strmgpsim.c,
6041         * device/lib/pic16/libc/stdio/strmmssp.c,
6042         * device/lib/pic16/libc/stdio/strmusart.c,
6043         * device/lib/pic16/libc/stdio/vfprintf.c,
6044         * device/lib/pic16/libc/stdlib/ltoa.c,
6045         * device/lib/pic16/libc/stdlib/putchar.c,
6046         * device/lib/pic16/libc/stdlib/x_ftoa.c,
6047         * device/lib/pic16/libc/stdlib/memchrpgm.c,
6048         * device/lib/pic16/libc/stdlib/memchrram.c,
6049         * device/lib/pic16/libc/stdlib/memcpypgm2ram.c,
6050         * device/lib/pic16/libc/stdlib/memcpyram2ram.c,
6051         * device/lib/pic16/libio/adc/adcbusy.c,
6052         * device/lib/pic16/libio/adc/adcread.c,
6053         * device/lib/pic16/libio/adc/adcsetch.c,
6054         * device/lib/pic16/libio/usart/ubaud.c,
6055         * device/lib/pic16/libio/usart/ubusy.c,
6056         * device/lib/pic16/libio/usart/udrdy.c,
6057         * device/lib/pic16/libio/usart/uopen.c,
6058         * device/lib/pic16/libio/usart/uputc.c,
6059         * device/lib/pic16/libsdcc/gptr/gptrget1.c,
6060         * device/lib/pic16/libsdcc/gptr/gptrget2.c,
6061         * device/lib/pic16/libsdcc/gptr/gptrget3.c,
6062         * device/lib/pic16/libsdcc/gptr/gptrget4.c,
6063         * device/lib/pic16/libsdcc/gptr/gptrput1.c,
6064         * device/lib/pic16/libsdcc/gptr/gptrput2.c,
6065         * device/lib/pic16/libsdcc/gptr/gptrput3.c,
6066         * device/lib/pic16/libsdcc/gptr/gptrput4.c: modified all SDCC
6067         specific keywords to double underlined form,
6068         * device/lib/pic16/libc/Makefile.rules,
6069         * device/lib/pic16/libsdcc/Makefile.rules,
6070         * device/lib/pic16/libm/Makefile,
6071         * device/lib/pic16/libio/Makefile.rules: added CSTD macro in CFLAGS
6072         to compile with C standard set in Makefile.common
6073         * device/lib/pic16/libc/stdlib/Makefile: added new C sources
6074         rand.c and crc.c in compilation process,
6075         * device/lib/pic16/libsdcc/int/divuint.c,
6076         * device/lib/pic16/libsdcc/long/divulong.c: changed declaration of
6077         `c' from signed to unsigned,
6078         * device/lib/pic16/startup/crt0.c,
6079         * device/lib/pic16/startup/crt0i.c,
6080         * device/lib/pic16/startup/crt0iz.c: adopted to all SDCC specific
6081         keywords to double underlined form, bug fixes in _do_cinit function
6082         which prevented the correct initialization of the .idata segment,
6083         * src/pic16/pcoderegs.c (insideLRBlock): fixed a bug that caused the
6084         core to enter a infinite loop
6085         * device/lib/pic16/libc/stdlib/rand.c, crc.c: new files
6086
6087 2005-04-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6088
6089         * src/SDCCicode.c (getArraySizePtr): fixed bug #1122171
6090
6091 2005-04-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6092
6093         * device/include/Makefile.in: add support for hc08 subdirectory
6094         * device/include/hc08/: new subdirectory
6095         * device/include/hc08/mc68hc908jkjl.h: new header contributed by
6096         Lucas Loizaga, thanks!
6097         * device/include/hc08/mc68hc908qy.h,
6098         * device/include/hc08/mc68hc908gp32.h,
6099         * device/include/hc08/mc68hc908jb8.h: moved hc08 register defs to
6100         their own directory. Changed internal macro names to use the compiler
6101         reserved namespace. Changed SDCC specific keywords to double
6102         underlined form.
6103         * device/include/math.h,
6104         * device/include/malloc.h,
6105         * device/include/stdarg.h,
6106         * device/include/stdbool.h
6107         * device/include/string.h,
6108         * device/include/tinibios.h,
6109         * device/include/ds400rom.h,
6110         * device/include/8051.h,
6111         * device/include/8052.h,
6112         * device/include/80c51xa.h,
6113         * device/include/at89c55.h,
6114         * device/include/at89S8252.h,
6115         * device/include/at89x51.h,
6116         * device/include/at89x52.h,
6117         * device/include/ds80c390.h,
6118         * device/include/reg764.h,
6119         * device/include/regc515c.h,
6120         * device/include/sab80515.h,
6121         * device/include/mcs51/c8051f000.h,
6122         * device/include/mcs51/c8051f018.h,
6123         * device/include/mcs51/c8051f020.h,
6124         * device/include/mcs51/c8051f040.h,
6125         * device/include/mcs51/c8051f060.h,
6126         * device/include/mcs51/c8051f120.h,
6127         * device/include/mcs51/c8051f300.h,
6128         * device/include/mcs51/c8051f310.h,
6129         * device/include/mcs51/c8051f320.h,
6130         * device/include/mcs51/c8051f330.h,
6131         * device/include/mcs51/c8051f350.h,
6132         * device/include/z180.h: Changed SDCC specific keywords to double
6133         underlined form.
6134
6135 2005-03-31 Vangelis Rokas <vrokas AT users.sourceforge.net>
6136
6137         * src/pic16/device.c (Pics16[]): added devices 18F2550, 18F4331,
6138         18F4455,
6139         * (pic16_assignConfigWordValue): disable testing of configuration
6140         register value with config mask,
6141         * src/pic16/gen.c (pic16_testStackOverflow): prefix stack test
6142         function with port->fun_prefix,
6143         * (genFunction): when generating a naked interrupt function never
6144         create an absolute segment placed in interrupt vector address, place
6145         the actual interrupt function at IVA instead, when an interrupt
6146         function is generated with unspecified interrupt then do not create
6147         the absolute section,
6148         * (genGenPointerGet, genGenPointerSet, genPackBits): replace all
6149         code for generating a call to generic pointer get/put function with
6150         a call to function pic16_callGenericPointer(),
6151         * src/pic16/genutils.c (pic16_callGenericPointerRW): NEW, generates
6152         the call to the generic pointer get/put functions with prefixing the
6153         function name with port->fun_prefix,
6154         * src/pic16/glue.c (pic16glue): ifdef-out test of OF_LR_SUPPORT,
6155         * src/pic16/main.c (_process_pragma): prefix function with
6156         port->fun_prefix,
6157         * (_pic16_finaliseOptions): define macro __18Fxxxx macro when
6158         calling assembler, old 18Fxxxx macro is deprecated,
6159         * src/pic16/pcode.c (unlinkpCodeFromBranch): added PC_INLINE and
6160         PC_ASMDIR in while condition,
6161         * (findInstruction): add PC_ASMDIR in while condition,
6162         * (buildCallTree): prefix main with port->fun_prefix,
6163         * (pic16_pCode2str): fixed bug that didn't emit the memory access
6164         identifier for variable with banked access in instructions BTFSS,
6165         BTFSC, BCF, BSF, BTG
6166         * (AnalyzeFlow): moved call to OptimizepCode to pic16_AnalyzeBanking,
6167         * src/pic16/pcodepeep.c (pCodeOpCompare): increase size of b to 1024,
6168         * src/pic16/pcoderegs.c (pic16_pCodeRegoptimizeRegUsage): don't
6169         perform optimization when enviroment variable NO_REG_OPT is set,
6170         * (insideLRBlock): NEW, return 1 if register is inside an
6171         INF_LOCALREGS block,
6172         * (RemoveRegFromLRBlock): remove a register that is completely
6173         eliminated by register optimization, but it is still left in local
6174         register store/restore in/from stack block,
6175         * (Remove2pcodes): after removing register, check to see if it
6176         should be removed from local register store/restore in/from stack
6177         block,
6178         * src/pic16/ralloc.c (pic16_decodeOp): added decode for
6179         DUMMY_READ_VOLATILE,
6180
6181         * device/include/pic16/adc.h: minor prototype modifications and
6182         update,
6183         * device/include/pic16/malloc.h: added GPL notice various
6184         modifications,
6185         * device/include/pic16/stdint.h: NEW, standard header for ints
6186         * device/include/pic16/delay.h: NEW, header for delay functions,
6187         delay10tcy, delay100tcy, delay1ktcy, delay10ktcy, delay100ktcy,
6188         delay1mtcy,
6189         * device/include/pic16/signal.h: NEW, header providing helper macros
6190         for implementing signal handlers,
6191         * device/include/pic16/stdio.h: added prototypes for functions,
6192         printf, vprintf, sprintf, vsprintf, fprintf, vfprintf. Added
6193         prototypes for stdin and stdout, added macro PUTCHAR to
6194         automatically implement putchar function prototype,
6195         * device/include/pic16/usart.h: modified and updated USART library,
6196         * device/lib/pic16/libio/adc/,
6197         * device/lib/pic16/libio/i2c: some modifications to improve library
6198         performance,
6199         * device/lib/pic16/libc/stdio/: modifications for the new printf*
6200         family of functions,
6201         * device/lib/pic16/libc/stdlib/: various modifications in the malloc
6202         family of functions and other sources,
6203         * device/lib/pic16/libio/usart/: NEW, c sources for the usart module
6204         of the PIC18Fxx[28] devices,
6205         * device/lib/pic16/libc/delay/: NEW, c sources for the delay functions,
6206         * device/lib/pic16/libc/utils/: minor modifications in the .S sources,
6207         * device/lib/pic16/startup/{crt0i.c, crt0iz.c}: redesign of the
6208         _do_cinit function, because the previous failed when local variables
6209         where not placed in the same memory bank,
6210         * device/lib/pic16/libsdcc/char/: various modifications to improve
6211         library performance,
6212         * doc/sdccman.lyx: some reorganization of the PIC16 part, added many
6213         information on the new functions of the c library and more...
6214
6215 2005-03-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6216
6217         * src/SDCCBBlock.c (iCodeBreakDown): fixed bug #1170212
6218
6219 2005-03-26 Raphael Neider <rneider AT web.de>
6220
6221         * src/pic16/gen.c (genSkipc): fixed semantics (execute branch
6222           if condition == CARRY)
6223         * (genCmp): adapted to new genSkipc semantics
6224         * src/pic16/genutils.c (pic6_genCmp_special): removed side effect
6225           on rIfx (genCmp was broken)
6226
6227 2005-03-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6228
6229         * src/SDCCmain.c (setDefaultOptions, optionsTable[], parseCmdLine),
6230         * src/z80/main.c (_keywords[]),
6231         * src/SDCCglobal.h (struct options),
6232         * src/SDCC.y,
6233         * src/SDCC.lex (isTargetKeyword, doPragma, pragma_tbl[]): new pragmas
6234         to enable/disable SDCC and C99 extensions/keywords (std_c89, std_sdcc89,
6235         std_c99, std_sdcc99). Also, equivalent command line options (--std-c89,
6236         --std-sdcc89, --std-c99, --std-sdcc99). SDCC specific keywords are
6237         always available in leading double underscore form. The C99 support is
6238         mostly missing, but it's a start.
6239         * support/regression/tests/bug-227710.c: fixed nonconforming use of
6240         reserved identifier "__data".
6241
6242 2005-03-24 Maarten Brock <sourceforge.brock AT dse.nl>
6243
6244         * src/mcs51/peeph.def: fixed bug 1170013
6245
6246 2005-03-22 Maarten Brock <sourceforge.brock AT dse.nl>
6247
6248         * device/include/mcs51reg.h: fixed bug 842007
6249
6250 2005-03-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6251
6252         * src/SDCCcflow.c (dfNumCompare): committed the wrong version of this
6253         last time.
6254
6255 2005-03-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6256
6257         * src/port.h (struct PORT),
6258         * src/avr/ralloc.c (avr_assignRegisters),
6259         * src/avr/main.c,
6260         * src/ds390/ralloc.c (ds390_assignRegisters),
6261         * src/ds390/main.c,
6262         * src/hc08/ralloc.c (hc08_assignRegisters),
6263         * src/hc08/main.c,
6264         * src/mcs51/ralloc.c (mcs51_assignRegisters),
6265         * src/mcs51/main.c,
6266         * src/pic/ralloc.c (pic14_assignRegisters),
6267         * src/pic/main.c,
6268         * src/pic16/ralloc.c (pic16_assignRegisters),
6269         * src/pic16/main.c,
6270         * src/xa51/ralloc.c (xa51_assignRegisters),
6271         * src/xa51/main.c,
6272         * src/z80/ralloc.c (z80_assignRegisters),
6273         * src/z80/ralloc.h,
6274         * src/SDCCopt.c (eBBlockFromiCode, replaceRegEqv, killDeadCode),
6275         * src/SDCCcse.c (ifxOptimize, cseBBlock, cseAllBlocks),
6276         * src/SDCCcse.h,
6277         * src/SDCCdflow.c (computeDataFlow),
6278         * src/SDCCdflow.h,
6279         * src/SDCCloop.c (addDefInExprs, loopInvariants, loopOptimizations),
6280         * src/SDCCloop.h,
6281         * src/SDCCcflow.c (*),
6282         * src/SDCCcflow.h,
6283         * src/SDCCBBlock.c (iCodeBreakDown, dumpEbbsToFileExt, eBBWithEntryLabel),
6284         * src/SDCCBBlock.h (struct ebbIndex): new struct that keeps two copies
6285         of the eBBlock list, sorted by both bbnum and dfnum. (fixes bug with
6286         immedDom() returning wrong block; probably fixes bug #1160833)
6287
6288 2005-03-20 Borut Razem <borut.razem AT siol.net>
6289
6290         * support/scripts/inc2h.pl: WIN32 port
6291
6292 2005-03-19 Maarten Brock <sourceforge.brock AT dse.nl>
6293
6294         * device/lib/makefile.in: added abs.c and labs.c
6295
6296 2005-03-17 Maarten Brock <sourceforge.brock AT dse.nl>
6297
6298         * device/include/stdint.h: added
6299         * device/lib/abs.c: added
6300         * device/lib/labs.c: added
6301         * device/include/stdlib.h: added abs() and labs() prototypes
6302         * device/lib/libsdcc.lib: added abs and labs
6303         * device/include/float.h,
6304         * device/lib/_fsmul.c,
6305         * device/lib/printf_fast.c,
6306         * device/lib/printf_tiny.c: updated comments
6307
6308 2005-03-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6309
6310         * src/SDCCicode.c (geniCodeSwitch, geniCodeJumpTable): fixed
6311         bug #1164313
6312
6313 2005-03-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6314
6315         * src/SDCCcse.c (cseBBlock): retain assignment to self when volatile
6316         * src/SDCCast.c (isLoopCountable): fixed bug #1161985
6317
6318 2005-03-15 Maarten Brock <sourceforge.brock AT dse.nl>
6319
6320         * device/lib/printf_large.c: removed inline assembly for portability and
6321           readability. Use printf_fast if speed or size are more important.
6322         * src/pic16/gen.c: removed conditions around use of DEBUGpc
6323         * src/pic16/genutils.h: added define for DEBUGpc for MSVC
6324
6325 2005-03-15 Vangelis Rokas <vrokas AT users.sourceforge.net>
6326
6327         * src/pic16/genutils.c (pic16_genCmp_special): initialized offs to
6328         prevent compiler warning
6329
6330 2005-03-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
6331
6332         * device/lib/pic16/startup/crt0i.c (_cinit): local variables where
6333         moved to level 0 and declared as static. Also they are explicit
6334         placed in access bank. This was necessery because some times they
6335         might cross memory bank boundaries. crt0iz.c is *NOT* updated!!!
6336         * src/pic16/device.h: added flag OPTIMIZE_CMP to enable some compare
6337         optimizations. Currently only compare to unsigned char is implemented,
6338         * src/pic16/gen.c: added fReturnIdx array,
6339         * (struct resolvedIfx) is moved to gen.h and made public,
6340         * (struct _G): added sregsAlloc and sregsAllocSet fields,
6341         * (aopForSym): added an optimization to directly store in stack of
6342         the operand of a SEND iCode,
6343         * (pic16_aopOp): don't return return registers as strings (AOP_STR)
6344         but as registers instead (AOP_REG) using the fReturnIdx array,
6345         * (pic16_freeAsmop): remove the freed register from the
6346         _G.sregsAlloc field,
6347         * (pic16_aopGet): in case AOP_STR, the compare to 'a' is changed to
6348         a compare of 'WREG',
6349         * (pic16_popGetTempRegCond): changed function prototype, now
6350         function takes also a bitVector argument v which holds the current
6351         set of registers that are allocated for stack access by aopForSym,
6352         registers allocated in aopForSym for accessing stack symbols are not
6353         any more part of the functions usedRegs field,
6354         * (genCall): some times aopOp is called for a stack variable to be
6355         send, aopForSym might perform the push, if this is true make sure
6356         that genCall doesn't push the variable twice by testing _G.resDirect,
6357         * (genFunction): changed testing for unspecified interrupt number
6358         from 256 to INTNO_UNSPEC,
6359         * modified selection scheme of frame pointer generation. Previously
6360         if function did use local registers a frame pointer was generated,
6361         now a frame pointer is generated only if function has arguments
6362         (that need PLUSW2 register access), or has stack arguments, or the
6363         compiler is not instructed to omit the frame pointer,
6364         * (genEndFunction): before restoring local registers that were saved
6365         in the function preamble, also restore the registers that *might*
6366         have been allocated for stack access,
6367         * (genRet): removed some old comments,
6368         * (genCmp, the active (RN's) version): added a call to the
6369         pic16_genCmp_special function to perform the compare with a more
6370         robust and optimized way,
6371         * (genInline): a feature has been added in inline code generation,
6372         which allows a wildcard variable substitution when writing inline
6373         assembly. Code is incomplete and experimental therefore undocumented,
6374         * (genCast): changed order of aopOp for result and right to allow
6375         aopForSym to directly load the result if possible,
6376         * src/pic16/genutils.c (selectCompareOp, pic16_genCmp_special): NEW,
6377         perform an optimized compare on some selected special occasions,
6378         * src/pic16/genutils.h: declaration of resolvedIfx structure from gen.c,
6379         * src/pic16/glue.c (pic16createInterrupVect): make sure we never
6380         generate an IVT any more,
6381         * src/pic16/main.c (pic16_optionsTable): added command line option
6382         --optimize-cmp,
6383         * (_pic16_initPaths): when calling C preprocessor define pic18fXXXX
6384         macro too, when calling assembler define pic18fXXXX *and* __18Fxxxx
6385         macros,
6386         * src/pic16/NOTES: Raphael Neider added in list of active developers
6387         * src/pic16/pcode.c (OPT_TYPE_STR): added strings jumptable_begin and
6388         jumptable_end to prevent bug #,
6389         * (pic16_pciADDWFC, ADDFWC, COMF, CLRF): added some missing flags in
6390         inCond and outCond fields,
6391         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): add a fix for bug #,
6392         * src/pic16/ralloc.c (serialRegAssign): explicit set willCS to 0 to
6393         turn off register spilling,
6394         * (packRegsForOneUse): synced with other ports' versions although it
6395         is not used currently,
6396         * (pic16_packRegisters): added an optimization while reading
6397         structure bitfields, some registers may be saved (malloc code is
6398         decreased by 80 bytes)
6399
6400 2005-03-12 Vangelis Rokas <vrokas AT users.sourceforge.net>
6401
6402         * src/SDCCcse.c (cseBBlock): inside 'do operand lookup' loop test if
6403         left is a bitfield, if yes, then don't optimize assignment. Perhaps
6404         this can be optimized more?
6405
6406 2005-03-10 Raphael Neider <rneider AT web.de>
6407
6408         * src/pic16/gen.c (pic16_loadFSR0, genPackBits, genUnpackBits,
6409           genNearPointerGet): (hopefully) fixed access to bitfields via
6410           pointers (p->bitN = x; and x = p->bitN; failed)
6411
6412 2005-03-09 Paul Stoffregen <paul AT pjrc.com>
6413
6414         * device/lib/printf_fast.c: fix leading zero format, eg "%02d"
6415
6416 2005-03-09 Raphael Neider <rneider AT web.de>
6417
6418         * src/SDCCopt.c (killDeadCode): fixed bug #1156016
6419
6420 2005-03-06 Maarten Brock <sourceforge.brock AT dse.nl>
6421
6422         * src/SDCCicode.h: moved CRITICAL and ENDCRITICAL from SKIP_IC2 to SKIP_IC
6423         * src/mcs51/ralloc.c (willCauseSpill): added check for REG_BIT type,
6424           (regTypeNum): set REG_BIT type if necessary
6425         * src/mcs51/ralloc.h: added define REG_BIT, used to fix bug 1144613
6426         * support/regression/tests/critical.c: check bug 1144613
6427
6428 2005-03-02 Raphael Neider <rneider AT web.de>
6429
6430         * src/pic16/gen.c (genRightShiftLiteral): fixed bug #1154256
6431
6432 2005-02-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6433
6434         * src/avr/ralloc.c (serialRegAssign),
6435         * src/ds390/ralloc.c (serialRegAssign),
6436         * src/hc08/ralloc.c (serialRegAssign),
6437         * src/mcs51/ralloc.c (serialRegAssign),
6438         * src/pic/ralloc.c (serialRegAssign),
6439         * src/pic16/ralloc.c (serialRegAssign),
6440         * src/xa51/ralloc.c (serialRegAssign),
6441         * src/z80/ralloc.c (serialRegAssign): fixed bug #1105154
6442
6443 2005-02-22 Maarten Brock <sourceforge.brock AT dse.nl>
6444
6445         * src/SDCCast.c (decorateType): fixed bug 1124787
6446
6447 2005-02-20 Hubert Sack <sack AT digiplan.de>
6448         committed by Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6449
6450         * src/mcs51/peeph.def: added peepholes 3.h-k and 132.a-f from
6451         patch #1121755
6452
6453 2005-02-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6454
6455         * src/SDCCpeeph.def: new keyword "labelRefCountChange" which allows peepholes
6456         to keep the correct label reference count when adding/removing references
6457         to labels. A peephole file using this is appended to patch #1144962.
6458
6459 2005-02-14 Raphael Neider <rneider AT web.de>
6460
6461         * device/lib/pic16/libc/string/memccpy.c: changed 3rd argument to char
6462         * src/SDCC.lex (process_pragma): fixed to make disable_warning work for PIC16
6463         * src/pic16/gen.c (aopForSym, calls to pic16_aopOp): prevent unneccessary
6464           retrievals of result operand's value on assignment
6465
6466 2005-02-13 Vangelis Rokas <vrokas AT otenet.gr>
6467
6468         * device/include/pic16/string.h: modified prototype for memccpy()
6469         to memccpy(void *, void *, char, size_t)
6470         * src/pic16/gen.c (genFunction, genEndFunction): reenable if-case to
6471         check whether to omit frame pointer or not,
6472         * (genInline): convert all occurences of "\n" to LF in inline
6473         assembler blocks, this helps formatting the inline text,
6474         * (pic16_loadFSR0): modified prototype,
6475         * (genNearPointerGet, genNearPointerSet): reorganization of code,
6476         removed some 8051 legacy code,
6477         * (genPackBits): enabled handling bitfields exceeding one byte in size,
6478         * src/pic16/ralloc.c (pic16_assignRegisters): clear dynrIdx variable
6479         before allocating temporary registers in functions,
6480
6481 2005-02-11 Maarten Brock <sourceforge.brock AT dse.nl>
6482
6483         * support/regression/tests/bitvars.c: corrected the "fix"
6484
6485 2005-02-10 Maarten Brock <sourceforge.brock AT dse.nl>
6486
6487         * support/regression/tests/bitvars.c,
6488         * support/regression/tests/bitwise.c,
6489         * support/regression/tests/rotate.c: "fixed" problems on Alpha
6490
6491 2005-02-10 Raphael Neider <rneider AT web.de>
6492
6493         * src/pic16/pcode.c (assignToSameBank) : fixed cast to pointer of
6494           different size for Alpha
6495         * src/pic16/gen.c (genCmpEq) : improved compare with 0
6496
6497 2005-02-09 Raphael Neider <rneider AT web.de>
6498
6499         * src/SDCC.lex(doPragma) : save and restore warning options as well
6500           (also added new stack plus clone- and copyAndFreeSDCCERRG())
6501         * have #pragma less_pedantic set the errorlevel to WARNING
6502           (fixes #1117001)
6503         * (cloneOptimize) : fixed wrong malloc's size
6504         * support/Util/SDCCerr.[ch] : made SDCCERRG globally accessible to
6505           facilitate correct handling of #pragma (save|restore)
6506
6507 2005-02-09 Maarten Brock <sourceforge.brock AT dse.nl>
6508
6509         * src/mcs51/gen.c: removed non-standard C nameless struct/union
6510
6511 2005-02-04 Slade Rich <slade_rich AT users.sourceforge.net>
6512
6513         * src/pic/gen.c : Fix for bugs #1080519 & #1115662.
6514
6515 2005-02-03 Maarten Brock <sourceforge.brock AT dse.nl>
6516
6517         * device/include/mcs51/c8051f120.h: added declarations for sbit port 2,3&4
6518
6519 2005-02-02 Raphael Neider <rneider AT web.de>
6520
6521         * src/SDCCast.c (processParms): disabled W_NONRENT_ARGS for pic16 port
6522         * src/pic16/gen.c (aopForSym): reenabled special case for function pointers
6523         * (pic16_storeForReturn): fixed to allow returning function pointers
6524         * (genPackBits): improved accessing full bytes, implemented for GPOINTERs
6525         * device/include/pic16/{stddef.h,stdbool.h}: added
6526
6527 2005-02-02 Maarten Brock <sourceforge.brock AT dse.nl>
6528
6529         * device/include/mcs51/c8051f040.h: added define CPT2_PAGE
6530
6531 2005-02-01 Slade Rich <slade_rich AT users.sourceforge.net>
6532
6533         * src/pic16/pic16.dsp : Added file graph.c to make it compile under windows
6534         * src/pic16/Makefile.bcc : Do not use this file but added file graph.c as it
6535          appeared to be required
6536
6537 2005-01-31 Borut Razem <borut.razem AT siol.net>
6538
6539         * support/scripts/sdcc.nsi: added include/asm/ds390, include/asm/mcs51,
6540           include/mcs51 and include/z80 directories to the package
6541
6542 2005-01-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6543
6544         * src/hc08/gen.c (genFunction): fixed bug #1112752
6545
6546 2005-01-30 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6547
6548         * src/mcs51/peeph.def: adapted peephole 258.x to changed gen.c (genAnd)
6549
6550 2005-01-29 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6551
6552         * src/mcs51/gen.c (genAnd): accessing LSB/MSB by rotating acc
6553
6554 2005-01-29 Maarten Brock <sourceforge.brock AT dse.nl>
6555
6556         * device/include/Makefile.in: create/copy mcs51 and z80 include subdirs
6557
6558 2005-01-27 Maarten Brock <sourceforge.brock AT dse.nl>
6559
6560         * device/include/c8051fxxx.h: removed these 6 files
6561         * device/include/mcs51/c8051fxxx.h: added these 11 new files
6562
6563 2005-01-26 Raphael Neider <rneider AT web.de>
6564
6565         * src/pic16/gen.c (genAssign): fixed assignment from longs
6566           in codespace (were cut to three bytes)
6567         * (genDummyRead): implemented (except for CODESPACE...),
6568           fixed bug #1108575
6569         * src/pic16/glue.c (emitStatistics): beautified
6570         * device/lib/pic16/libm/Makefile: added include path
6571
6572 2005-01-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6573
6574         * src/z80/gen.c (aopPut): fixed bug #1103902
6575
6576 2005-01-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6577
6578         * device/lib/expf.c: fixed bug #1095792
6579
6580 2005-01-24 Vangelis Rokas <vrokas AT otenet.gr>
6581
6582         * device/lib/pic16/libm: added Math library sources
6583
6584 2005-01-24 Raphael Neider <rneider AT web.de>
6585
6586         * src/pic16/pcode.h: added second memory operand to pCodeOpReg
6587           to enable upcast to pCodeOpReg2 (there is no type tag to
6588           differenciate the two and pic16_popGet2p cast into PCOR2)
6589         * src/pic16/main.c (_process_pragma): fixed another malloc bug
6590           (sizeof(sectNames) changed to sizeof(sectName))
6591           Both patches fix segfaults under MinGW.
6592
6593 2005-01-23 Raphael Neider <rneider AT web.de>
6594
6595         * src/pic16/{device.c,pcode.c}: s/free/Safe_free/g for
6596           Safe_[mc]?alloc()'ed variables
6597         * src/pic16/gen.c (pic16_aopOp,pic16_popGet): added handling
6598           of (byte sized) temporaries (assign them to WREG for now)
6599         * src/pic16/main.c (_process_pragma): fixed nasty malloc bug
6600           (used sizeof(set *sectSyms) instead of sizeof(struct sectSym)),
6601           this might fix SIGSEGVs on MinGW...
6602         * src/SDCCopt.c (killDeadCode): restored original behaviour
6603           (volatile operands might get thrown away though)
6604
6605 2005-01-23 Vangelis Rokas <vrokas AT otenet.gr>
6606
6607         * src/pic16/gen.c: fixed bug #1106975,
6608         * src/pic16/gen.c: fixed possible bug #1102572, now during TOS
6609         pointer update, INTCON is saved, global interrupts are disabled and
6610         restored after updateing TOS.
6611         * src/SDCC.y, src/SDCC.lex, src/SDCCsymt.c, src/SDCCsymt.h:
6612         * added function attribute 'shadowregs' to take advantage of shadow
6613         registers,
6614         * added function attribute 'wparam' as an alternative to the wparam
6615         pragma,
6616         * support/Utils/SDCCerr.[ch]: added error E_SHADOWREGS_NO_ISR when
6617         user declares a non-ISR function as 'shadowregs',
6618         * doc/sdccman.lyx: updated to reflect recent changes of pic16 port
6619
6620 2005-01-22 Vangelis Rokas <vrokas AT otenet.gr>
6621
6622         * .version: bumped version number to 2.4.8
6623         * device/lib/pic16/pics.all: list of PIC18F devices supported by
6624         pic16 port,
6625         * device/lib/pic16/libio/i2c/: I2C module support library,
6626         * device/include/pic16/i2c.h: I2C support library header,
6627         * device/lib/pic16/libc/stdio/: standard IO support sources,
6628         * (printf_small.c): printf_small() source, supports float print,
6629         * (printf_tiny.c): printf_tiny() source, does not support floats,
6630         * device/lib/pic16/Makefile.common.in: added OPT_FLAGS macro to
6631         enable global optimizations for entire library source, other
6632         Makefiles in the source tree are also modified to reflect this,
6633         * device/lib/pic16/libc/stdlib/putchar.c (putchar): dummy putchar()
6634         function,
6635         * doc/sdccman.lyx: updated to reflect new changes,
6636         * src/pic16/gen.c (aopForSym): don't handle sym->iaccess in
6637         sym->onStack if-case,
6638         * src/pic16/main.c (_pic16_keywords): commented out keywords bit,
6639         sbit, idata, _idata, xdata, _xdata,
6640         * added pragma library, to link an external library, (see doc),
6641         * removed command line options, --pomit-config-words, --pomit-ivt,
6642         --pleave-reset-vector,
6643         * (pic16_finaliseOptions): when define macro SDCC_MODEL_{SMALL/LARGE}
6644         when calling assembler to reflect memory model used, also define
6645         macro STACK_MODEL_{SMALL/LARGE} when compiling and assembling to
6646         reflect stack model used,
6647         * src/pic16/ralloc.c (pic16_allocDirReg): when operand is allocated
6648         on stack return NULL,
6649
6650 2005-01-22 Daniel Winkler <post AT danielwinkler.de>
6651
6652         * src/SDCCopt.c (killDeadCode): do not throw iCodes away if one
6653           of the operands is volatile. Fixes #1020220
6654
6655 2005-01-22 Daniel Winkler <post AT danielwinkler.de>
6656
6657         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): reenabled optimization
6658         * (OptimizeRegUsage): make sure that there is really no other flow where
6659           the first pCode is used
6660
6661 2005-01-22 Raphael Neider <rneider AT web.de>
6662
6663         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): disabled optimization
6664           to fix #1106967 (pCode->seq are not set up correctly)
6665
6666 2005-01-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6667
6668         * src/SDCCglue.c (glue): make sure code area is declared before the
6669         static initialization area.
6670
6671 2005-01-21 Raphael Neider <rneider AT web.de>
6672
6673         * device/lib/Makefile.in: fixed test for pic16 install dir
6674         * device/lib/pic16/*/Makefile*: modified compile flags to enable
6675           optimizations
6676         * doc/sdccman.lyx: updated banksel optimization, removed --flr-support and
6677           added --optimize-goto compiler switch and pragma wparam documentation
6678         * src/pic16/pcode.c (pic16_OptimizeBanksel): removed statistics dump
6679         * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): fixed copying of WREG, PRODL
6680           and PRODH closing bug #1071770 (peephole optimizer)
6681
6682 2005-01-19 Raphael Neider <rneider AT web.de>
6683
6684         * src/SDCCglobl.h: ensure that PATH_MAX >= 2048 to guarantee
6685           cmdLine buffers (used when calling sdcpp...) are large enough
6686           (MAX_PATH=256 truncates arguments leading to system halts when
6687           used in MinGW...)
6688         * src/pic16/gen.c (pic16_sameRegs): relaxed size criterion
6689         * (genUminus): rewritten to for efficiency
6690         * (genNearPointer[GS]et): enforce reloading of FSR0 (was still
6691           used uninitialized in some cases)
6692         * (genCast): upcasting a 16bit int to a 24bit GPOINTER may not
6693           copy the third byte from the int -- now assumes 0x80 (data memory)
6694         * src/pic16/genarith.c (pic16_genPlus): fixed bug when swapping
6695           operands (genAddLit expects the iCode's operands to swapped as
6696           well), fixed leftover bytes (crashed for short left operands)
6697         * (pic16_genMinusDec): performance improvements, removed false
6698           PIC14 emitSKPNCs
6699         * (pic16_genMinus): fixed to cope with differently sized operands
6700         * src/pic16/glue.c (pic16_glue): added new banksel optimization
6701           for --obanksel > 1
6702         * src/pic16/pcode.c: implemented (first phase of) banksel optimization
6703         * src/pic16/graph.[ch]: implementation of directed graphs, used by
6704           new banksel optimization
6705         * src/pic16/pcoderegs.c (pCodeRegMapLiveRangesInFlow): prevented
6706           analysis for temporary registers (segfaults...)
6707         * src/pic16/peeph.def: added rule
6708
6709 2005-01-18 Vangelis Rokas <vrokas AT otenet.gr>
6710
6711         * device/lib/pic16/libc/stdlib/x_ftoa.c: it defines x_ftoa function
6712         which converts a float number to its ASCII representation
6713         * device/lib/pic16/libc/utils/cnvfrac.S,cnvint.S: support
6714         functions to convert the fractional and integer part of a float to ASCII,
6715         * device/lib/pic16/libc/stdlib/(calloc.c,free.c, malloc.c,
6716         realloc.c): added _MALLOC_SPEC to explicit place variables in data
6717         ram
6718         * device/include/asm/pic16/features.h: added _CODE, _DATA, _AUTOMEM,
6719         _STATMEM macros,
6720         * device/include/pic16/adc.h: added GPL info,
6721         * src/pic16/gen.c (genIfxpCOpJump): perform an genIfxJump but using
6722         a pCodeOp as tested operand,
6723         * (genNearPointerGet): optimized bit testing, does not use
6724         intermediate register for bit value, test directly instead with
6725         BTFSS, BTFSC, works only for single bits,
6726         * (genpic16Code): dump the name of the iCode in the asm,
6727         * src/pic16/ralloc.c (decodeOp): removed static declaration and
6728         renamed to pic16_decodeOp,
6729         * (serialRegAssign): do not allocate a temporary register for iCode
6730         sequences that test a single bit for 1/0
6731
6732 2005-01-12 Vangelis Rokas <vrokas AT otenet.gr>
6733
6734         * src/pic16/pcode.[ch]: introduced pic16_stackpnt_*,
6735         pic16_framepnt_*, pic16_stack_*, pic1_frame_* pointer variables to
6736         access stack and frame pointers. They are initially assigned to
6737         point at pic16_pc_fsr1[lh] and pic16_pc_fsr2[lh] variables and other
6738         accessing SFRs. Updated all occurences of modification of stack or
6739         frame pointer in gen.c and pcode.c,
6740         * src/pic16/ralloc.c (serialRegAssign): fixed two bugs with
6741         assigning of a literal value to pointers,
6742         * src/pic16/main.c (pic16_finiliseOptions): set pre-processor define
6743         flag STACK_MODEL_SMALL or STACK_MODEL_LARGE according to the model
6744         selected
6745
6746 2005-01-11 Vangelis Rokas <vrokas AT otenet.gr>
6747
6748         * doc/sdccman.lyx: update documentation about stack pragma, added
6749         some info for stack memory models
6750
6751 2005-01-08 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6752
6753         * src/pic16/gen.c (DEBUGpc): MSVC 6 does not support macro variable arguments
6754
6755 2005-01-08 Raphael Neider <rneider AT web.de>
6756
6757         * src/pic16/device.c (pic16_dump_usection): changed naming scheme for
6758           udata sections to fix bug #1097823
6759
6760 2005-01-05 Raphael Neider <rneider AT web.de>
6761
6762         * src/pic16/gen.c (genGenericShift): added handling of differently
6763           sized left operand and result
6764
6765 2005-01-04 Raphael Neider <rneider AT web.de>
6766
6767         * src/pic16/gen.c (genIfxJump): fixed inverted skips on CARRY
6768         * (genIfx): fixed (?) read from uninitialized SPIL_LOC (now assumes CARRY
6769           to hold the condition bit)
6770         * added new version of genCmp (old code available via #define)
6771         * added new version of genShiftLeft/genShiftRight in a generic
6772           way, now supports shifting by negative values
6773         * (genLeftShiftLiteral, genRightShiftLiteral): use absolute value of
6774           shiftCount (expected by genGenericShift)
6775         * src/pic16/genarith.c (genPlus): added code for adding CARRY+literal
6776         * src/pic16/pcode.c (pic16_OptimizeJumps): removed annoying statistics
6777           dump
6778         * (pic16_newpCodeOpLit): changed to cast to unsigned char (as e.g. -32766
6779           is an invalid literal too...)
6780
6781 2005-01-04 Vangelis Rokas <vrokas AT otenet.gr>
6782
6783         * src/pic16/gen.c (aopForSym, genEndFunction): applied some fixes
6784         from Raphael Neider,
6785         * src/pic16/pcode.c (pic16_newpCodeOpLit): removed casting to char
6786         for 8-bit literals. This fixes some literal operands which are sign
6787         extended to 16-bits ints when instruction needs only 8-bits.
6788
6789 2004-12-31 Paul Stoffregen <paul AT pjrc.com>
6790
6791         * device/lib/logf.c: added mcs51 assembly version
6792         * device/lib/expf.c: added mcs51 assembly version
6793         * device/lib/_logexpf.c: new shared asm code for expf and logf
6794         * device/include/math.h: add defines for assembly math library
6795         * device/lib/Makefile.in: build new _logexpf.c
6796         * device/lib/libfloat.lib: use new _logexpf.c
6797
6798 2004-12-29 Slade Rich <slade_rich AT users.sourceforge.net>
6799
6800         * src/pic/device.c
6801         * src/pic/pcode.c : adjusted internal stack and pre-allocated registers for
6802           device types which have less than 0x7f registers.
6803
6804 2004-12-29 Slade Rich <slade_rich AT users.sourceforge.net>
6805
6806         * src/pic/genarith.c : Fixed problem with subtraction where the result would not be updated when borrowing.
6807
6808 2004-12-28 Paul Stoffregen <paul AT pjrc.com>
6809
6810         * device/lib/printf_fast.c: only build on supported arch.
6811         * device/lib/printf_tiny.c: only build on supported arch.
6812         * device/lib/printf_fast_f.c: only build if asm float lib
6813         * device/lib/_fsget1arg.c: only build if asm float lib
6814         * device/lib/_fsget2args.c: only build if asm float lib
6815         * device/lib/_fsnormalize.c: only build if asm float lib
6816         * device/lib/_fsreturnval.c: only build if asm float lib
6817         * device/lib/_fsrshift.c: only build if asm float lib
6818         * device/lib/_fsswapargs.c: only build if asm float lib
6819         * device/include/stdio.h: don't provide print_fast,
6820           print_fast_f, print_tiny prototypes if --xstack used
6821
6822 2004-12-28 Maarten Brock <sourceforge.brock AT dse.nl>
6823
6824         * device/lib/sincosf.c (sincosf): don't invert bit/bool by ~
6825         * support/regression/ports/mcs51-stack-auto/spec.mk: added new _fs.. files
6826           to the SOURCES
6827
6828 2004-12-28 Paul Stoffregen <paul AT pjrc.com>
6829
6830         * device/lib/printf_fast_f.c: same as printf_fast, but
6831           with floating point enabled
6832         * device/lib/printf_fast.c: minor tweaks
6833         * device/include/stdio.h: add printf_fast_f
6834
6835 2004-12-27 Paul Stoffregen <paul AT pjrc.com>
6836
6837         * src/SDCCmain.c: make --float-reent default for mcs51
6838         * device/lib/_fsadd.c: added mcs51 assembly version
6839         * device/lib/_fssub.c: added mcs51 assembly version
6840         * device/lib/_fsmul.c: added mcs51 assembly version
6841         * device/lib/_fsdiv.c: added mcs51 assembly version
6842         * device/lib/_fseq.c: added mcs51 assembly version
6843         * device/lib/_fsneq.c: added mcs51 assembly version
6844         * device/lib/_fsgt.c: added mcs51 assembly version
6845         * device/lib/_fslt.c: added mcs51 assembly version
6846         * device/lib/_fscmp.c: shared code for fseq,fsgt,fslt,fsneq
6847         * device/lib/Makefile.in: add _fscmp to build
6848         * device/lib/libfloat.lib: add _fscmp to build
6849
6850 2004-12-27 Paul Stoffregen <paul AT pjrc.com>
6851
6852         * device/lib/_fs2slong.c: added mcs51 assembly version
6853         * device/lib/_fs2sint.c: added mcs51 assembly version
6854         * device/lib/_fs2schar.c: added mcs51 assembly version
6855         * device/lib/_fs2ulong.c: added mcs51 assembly version
6856         * device/lib/_fs2uint.c: added mcs51 assembly version
6857         * device/lib/_fs2uchar.c: added mcs51 assembly version
6858         * device/lib/_slong2fs.c: added mcs51 assembly version
6859         * device/lib/_sint2fs.c: added mcs51 assembly version
6860         * device/lib/_schar2fs.c: added mcs51 assembly version
6861         * device/lib/_ulong2fs.c: added mcs51 assembly version
6862         * device/lib/_uint2fs.c: added mcs51 assembly version
6863         * device/lib/_uchar2fs.c: added mcs51 assembly version
6864         * device/include/float.h: added #define to select asm vs c
6865
6866 2004-12-26 Paul Stoffregen <paul AT pjrc.com>
6867
6868         * device/lib/printf_fast.c: improvements to float output
6869         * device/include/float.h: add defines for assembly float library
6870         * device/lib/_fsget1arg.c: receive 1 float arg
6871         * device/lib/_fsget2args.c: receive 2 float args (reentrant)
6872         * device/lib/_fsnormalize.c: normalize a float
6873         * device/lib/_fsreturnval.c: return float, various helper routines
6874         * device/lib/_fsrshift.c: right shift a float's mantissa
6875         * device/lib/_fsswapargs.c: swap 2 floats
6876         * device/lib/Makefile.in: build these 6 new files for mcs51
6877         * device/lib/libfloat.lib: add these 6 files to the library
6878
6879 2004-12-26 Borut Razem <borut.razem AT siol.net>
6880
6881         * sim/ucsim/avr.src/arith_inst.cc: fixed bug #1088372- savr is not
6882           built by gcc 3.4.2
6883
6884 2004-12-25 Paul Stoffregen <paul AT pjrc.com>
6885
6886         * device/lib/printf_tiny.c: printf for mcs51 in only 267 bytes,
6887           and fully reentrant and register bank neutral.
6888         * device/lib/printf_fast.c: added float (not enabled by default),
6889           added compact/slower integer (also not enabled by default),
6890           improved size/speed of fast integer code, other minor changes
6891         * device/include/stdio.h, device/lib/Makefile.in,
6892           device/lib/libsdcc.lib: integrate printf_tiny into mcs51 build
6893
6894 2004-12-24 Maarten Brock <sourceforge.brock AT dse.nl>
6895
6896         * src/pic16/pcode.c: declaring variables other than at the start of a
6897           block is not supported in C by VC6.
6898
6899 2004-12-22 Vangelis Rokas <vrokas AT otenet.gr>
6900
6901         * applied a previous patch from Raphael Neider that wasn't included
6902         in the previous commits, which fixes infinite loops within jumptable
6903         improvements,
6904         * made some fixes that previous patches introduced
6905
6906 2004-12-21 Vangelis Rokas <vrokas AT otenet.gr>
6907
6908         * src/pic16/gen.c (pic16_aopGet): applied fix from Raphael Neider
6909         that fixes an issue with AOP_PCODE asmop's offset,
6910         * (pic16_popCopyReg): update instance field too,
6911         * (mov2w): modified to pic16_mov2w because it conflicts with mov2w
6912         function of pic port,
6913         * (genCmp, genAnd, genAssign),
6914         * src/pic16/genarith.c (genAddLit): some fixes from Raphael Neider,
6915
6916 2004-12-20 Vangelis Rokas <vrokas AT otenet.gr>
6917
6918         * src/SDCCast.c (gatherAutoInit): allow pic16 to emit static
6919         variables initial values to idata section,
6920         * src/SDCCicode.c (geniCodeCall): patch from ### to fix unreferenced
6921         variables in some functions. This utilizes parmBytes field of iCode
6922         structure to hold the offset of the variable in stack. (might be
6923         able to use the stack field too?)
6924         * applied patch from Raphael Neider # ### , # ###
6925         * src/pic16/glue.c (pic16emitRegularMap): fix to print static
6926         variable initial values in idata section,
6927         * src/pic16/ralloc.c (pic16_allocDirReg): don't allocate register
6928         for static variables with initial value
6929         * src/device/lib/pic16/libsdcc/float/ulong2fs.c (__ulong2fs):
6930         applied fix in while loop from Raphael Neider.
6931
6932 2004-12-19 Maarten Brock <sourceforge.brock AT dse.nl>
6933
6934         * src/ds390/gen.c (genCpl): fixed bit=~(char/bit) bugs, added warning
6935         * src/ds390/main.c (_ds390_regparm): don't pass bit params in registers
6936         * src/ds390/ralloc.c (serialRegAssign): spill bits
6937         * src/mcs51/gen.c (genCpl): fixed bit=~(char) bugs, added warning
6938         * support/Util/SDCCerr.c,
6939         * support/Util/SDCCerr.h: added warning W_COMPLEMENT for using bit=~(bit)
6940         * support/regression/tests/bitvars.c: added tests for bitwise complement(~)
6941         * support/regression/tests/bitwise.c: added test for bitwise complement(~)
6942
6943 2004-12-09 Maarten Brock <sourceforge.brock AT dse.nl>
6944
6945         * device/include/sdcc-lib.h: inserted LGPL, added includes
6946           asm/ds390/features.h and asm/mcs51/features.h
6947         * device/include/asm/default/features.h,
6948         * device/include/asm/gbz80/features.h,
6949         * device/include/asm/z80/features.h: added empty _AUTOMEM
6950           and _STATMEM
6951         * device/include/asm/ds390/features.h,
6952         * device/include/asm/mcs51/features.h: added files with defines for
6953           _AUTOMEM and _STATMEM indicating automatic and static storage class
6954         * device/lib/printf_large.c (_print_format): optimized & used _AUTOMEM
6955         * doc/sdccman.lyx: version 2.4.7, updated xstack documentation
6956         * src/SDCCicode.c (geniCodeCast),
6957         * src/SDCCsymt.c (compareType): allow cast of data-ptr to idata-ptr
6958         * src/SDCCloop.c (loopInduction): removed unused variable lr
6959         * src/SDCCopt.c (convilong, convertToFcall): moved "easy special case"
6960           to convertToFcall to include char modulo (RFE 1065037), added check
6961           if left operand is unsigned and use abs of literal value
6962         * src/SDCCpeeph.c (setFromConditionArgs): removed double quotes option
6963           as it doesn't work after conversion from peephole.def to peephole.rul
6964         * src/mcs51/gen.c (toBoolean): added check for size,
6965           (genModOneByte): optimized code for signed char modulo a literal
6966           power of 2 (thanks to Hubert Sack),
6967           (genRRC): removed unnecessary "clr c",
6968           (genRLC): replaced "add a,acc" with cheaper "rlc a"
6969         * src/mcs51/peeph.def: renamed 115 to 115.a, added rule 115.b: another
6970           jump optimization,
6971           swapped rules 256.c and 256.d,
6972           extended 256.d by using new multiple checks (thanks Erik),
6973           added rules 256.e and 256.f,
6974           updated rule 261.a and 261.b to new generated code
6975         * support/regression/tests/muldiv.c: added test div/mod by a power of 2
6976
6977 2004-12-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6978
6979         * src/SDCCloop.c (basicInduction, loopInduction): fixed several
6980           induction related bugs, including first part of bug #1074377
6981
6982 2004-12-05 Vangelis Rokas <vrokas AT otenet.gr>
6983
6984         * applied patch from bug-report #1076292,
6985         * applied patches for genAnd and Goto-optimizations for Raphael
6986         Neider,
6987         * src/SDCCicode.c (printOperand): fixed !REGA source to compile and
6988         dump a less iCode information,
6989         * src/pic16/device.h (pic16_options_t): added field debgen,
6990         * src/pic16/gen.h: added macros DUMP_FUNCTION_ENTRY,
6991         DUMP_FUNCTION_EXIT, FENTRY, FENTRY2,
6992         * src/pic16/gen.c (my_powof2): renamed to pic16_my_powof2 and made
6993         puclic,
6994         * (various functions): added macros FENTRY and FENTRY2 to functions,
6995         to emit function prologue,
6996         * (various functions): fixed indentation,
6997         * (genNearPointerGet): fixed loading of FSR0,
6998         * (genPackBits): applied patch from Raphael Neider to fix updating
6999         of FSR0 and touching only the modified bits,
7000         * src/pic16/genarith.c (various functions): added macros FENTRY to
7001         emit function prologue in comments,
7002         * src/pic16/pcode.h: added functions debugf2, debugf3,
7003         * src/pic16/ralloc.c: partial fix for packForPush caused
7004         segmentation fault,
7005
7006 2004-12-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7007
7008         * src/mcs51/peeph.def: added 261.a,b (16 bit rotate) by Stas Sergeev
7009           <stsp AT users.sourceforge.net> with reversed byte order
7010         * support/regression/tests/rotate.c: added (ds390 skips some tests)
7011
7012 2004-12-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7013
7014         * src/z80/gen.c (genLeftShift, genRightShift): fixed second part of
7015           bug #1074377
7016         * src/hc08/gen.c (genrshFour, shiftRLong, shiftLLong),
7017         * src/mcs51/gen.c (shiftLLong): Fixed some shifting bugs Frieder found
7018
7019 2004-12-02 Slade Rich <slade_rich AT users.sourceforge.net>
7020
7021         * src/pic/pcode.c : fixed a problem where banksel was not being inserted.
7022
7023 2004-12-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7024
7025         * src/SDCCpeeph.c (callFuncByName): support combined peephole rule
7026           conditions,
7027           (setFromConditionArgs): friendly operand parser for peephole rules,
7028           (operandBaseName, operandsNotRelated): new peephole condition
7029           "operandsNotRelated" -- similar to "operandsNotSame", but takes
7030           architecture specific register naming into account, handles n-way
7031           comparisons, and supports quoted literals
7032         * src/mcs51/peeph.def: restored rule 177.d with an extra condition
7033
7034 2004-12-02 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7035
7036         * src/mcs51/peeph.def: fixed bug #1076940
7037
7038 2004-12-02 Slade Rich <slade_rich AT users.sourceforge.net>
7039
7040         * device/include/pic/pic16f877.h : added an include file for the PIC16F877 device.
7041
7042 2004-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7043
7044         Adding support for replacing ljmps with sjmps in jumptables
7045         generated for switch statements. For now you need to set the
7046         environment variable SDCC_SJMP_JUMPTABLE to enable this.
7047         Now 4 algorithms for mcs51 jumptable generation are used:
7048         ljmp or sjmp jumptables for up to 16 cases, stack-pushing target
7049         addresses loaded pc-relative for up to 112 cases and stack-pushing
7050         target addresses loaded with offset from dptr for up to 256 cases.
7051
7052         * src/SDCCpeeph.c: added peephole conditional labelJTInRange
7053         * src/mcs51/main.c: adapted constants for switch table generation
7054         * src/mcs51/peeph.def: added 260.x for replacing ljmp with sjmp
7055
7056 2004-11-26 Maarten Brock <sourceforge.brock AT dse.nl>
7057
7058         * device/lib/printf_large.c (_print_format): fixed bug 1073386
7059         * support/regression/tests/bug1057979.c: added test for bug 1073386
7060
7061 2004-11-25 Vangelis Rokas <vrokas AT otenet.gr>
7062
7063         * src/pic16/pcode.c: fixed bug which may produce error in non-GNU
7064         compilers
7065
7066 2004-11-25 Vangelis Rokas <vrokas AT otenet.gr>
7067
7068         * src/pic16/device.h,
7069         * src/pic16/genarith.c,
7070         * src/pic16/glue.c,
7071         * src/pic16/main.c,
7072         * src/pic16/pcode.c: applied patches #1068154 and #1070213
7073
7074 2004-11-24 Vangelis Rokas <vrokas AT otenet.gr>
7075
7076         Large cummulative patch for pic16 port.
7077         * device/lib/pic16/gstack.h: NEW, user can specify its own handler
7078         to call when a stack overflow occurs,
7079         * (malloc.h): added CVS Id tag,
7080         * (pic18f{242,252,442,452}.h): added T0CONbits structure and
7081         variable,
7082         * added libc directory. The current version of LibC contains string
7083         functions, ctype functions and macros and some functions of the
7084         stdlib set (like malloc/free/atof/atoi etc...). All functions are to
7085         be extensively tested in the future. Standard disclaimer here.
7086         Library is not automatically build yet. But one can build it by
7087         invoking 'make' inside the libc directory.
7088         * added ADC library under libio. Preliminary version yet.
7089
7090         * src/pic16/gen.h: added emitTOGC macro, to toggle Carry flag,
7091         * src/pic16/gen.c (aopForRemat): asmop size is filled by
7092         aopForRemat() now and not by pic16_aopOp(),
7093         * (pic16_popGetTempReg): removed warning messgae when allocating
7094         temporary registers, its a buggy feature and will be removed,
7095         * (pic16_popGet): set register instance field in AOP_CRY,
7096         * (pic16_outBitC): fixed for results in size greater than 1,
7097         * (genUminusFloat): fixed for pic16, ported code from mcs51,
7098         * (pic16_storeForReturn): optimized return of 0,
7099         * (genCmp): experimental code for new genCmp which uses PIC18's
7100         special compare&skip instructions. Initial tests fail some times
7101         with variables grater than 1 byte in size, so new code is disabled,
7102         * (genUnpackBits, genPackBits): more optimizations in reading/writing,
7103         a single bit,
7104         * (genCast): began a fix to optimize the casting of a bit to another
7105         bit, now assigning a bitfield to another bitfield will fail, sorry,
7106         * src/pic16/main.c: disabled the use of lr-support feature,
7107         * src/pic16/pcode.h: renamed PCASMDIR to PCAD,
7108         * added some function prototypes, added function _debugf prototype,
7109         * src/pic16/pcode.c: (pic16_get_op): fixed emitting operands of register
7110         bits with offset (case PO_GPR_BIT),
7111         * (genericPrint): don't emit INFO pcode when --pcode-verbose not in
7112         command line,
7113         * (isBankInstruction): modified to return 0 for no banking instruction,
7114         and 1 for banking instruction,
7115         * (pic16_isPCinFlow): check for PCAD (assembler directives) too,
7116         caused stop processing pCodes after a inline assembly block,
7117         * (pic16_popCopyGPR2Bit): updated to match bitfields with offset,
7118         * src/pic16/pcoderegs.c: fixed a bug with eliminating some temporary
7119         registers when it shouldn't,
7120         * src/pic16/ralloc.c (allocReg): add preliminary support for
7121         supporting a limited set of temporary registers,
7122
7123 2004-11-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7124
7125         * src/hc08/gen.c (genAssign, genPointerGetSetOfs, genDataPointerGet,
7126           genDataPointerSet): ensure assignments always copy in MSB to LSB
7127           order,
7128           (loadRegFromAop): recognize CLRH optimization,
7129           (genFunction): optimize RECEIVE iCodes in reentrant functions
7130
7131 2004-11-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7132
7133         * src/SDCCmain.c (parseCmdLine, optionsTable[]): fixed bug with
7134           --out-fmt-s19 turning into --out-fmt-elf if s19 was already
7135           selected.
7136         * src/SDCCmain.c (linkEdit): don't define SSEG for HC08
7137         * src/hc08/main.c (_hc08_setDefaultOptions): default xdata to be
7138           contiguous with data
7139
7140 2004-11-19 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7141
7142         * device/lib/_gptrget.c (_gptrget),
7143         * device/lib/_gptrgetc.c (_gptrgetc),
7144         * device/lib/_gptrput.c (_gptrput): _naked allows to use ret
7145           instead of sjmp to ret
7146         * src/mcs51/peeph.def: added peepholes 3.d-g and 177.g,h provided
7147           by Hubert Sack <hsack2002 AT arcor.de> in RFE #1067986, thanks
7148
7149 2004-11-18 Maarten Brock <sourceforge.brock AT dse.nl>
7150
7151         * .version: bumped version to 2.4.7
7152         * device/lib/_gptrget.c (_gptrget): is now _naked
7153         * device/lib/_gptrgetc.c (_gptrgetc): is now _naked
7154         * device/lib/_gptrput.c (_gptrput): is now _naked
7155         * src/SDCCast.c (createBlock): removed ridiculous self-assignment,
7156           (createFunction): fixed xstack
7157         * src/SDCCglue.c (emitMaps): set allocation required for bit area
7158         * src/SDCCicode.c (geniCodeCast): don't change SPEC_OCLS for literal
7159           or bit either,
7160           (geniCodeCritical): store original interrupt state in an iTemp bit
7161           var unless stack-auto
7162         * src/SDCCicode.h: added CRITICAL and ENDCRITICAL to SKIP_IC2
7163         * src/SDCCmain.c (setIncludePath): added include/target to search path
7164         * src/SDCCmem.c (allocParms): store bit vars in bit space, not overlay
7165         * src/SDCCsymt.c (checkFunction): don't check regbank for isr's against
7166           prototype,
7167           (processFuncArgs): put bit vars in bit area
7168         * src/mcs51/gen.c (saveRegisters, unsaveRegisters, genXpush, saveRBank,
7169           unsaveRBank): fixed xstack,
7170           (genFunction): bugfix: replaced (global!) reentrant with fReentrant,
7171           (genFunction, genEndFunction): fixed xstack,
7172           (genAssign): optimization don't walk backwards through mem
7173         * src/mcs51/main.c (_mcs51_regparm): don't pass bit params in registers
7174         * src/mcs51/ralloc.c (createStackSpil): spill bits to bit area
7175         * support/regression/Makefile: also make library (for stack-auto) when
7176           making "all" and added "test-mcs51-xstack-auto"
7177         * support/regression/fwk/lib/testfwk.c: added T2_isr prototype for mcs51
7178         * support/regression/ports/mcs51/T2_isr.c: added this file as a stub
7179         * support/regression/ports/mcs51/fwk.lib: added to link T2_isr stub
7180         * support/regression/ports/mcs51/spec.mk: added rules for fwk.lib
7181         * support/regression/ports/mcs51-stack-auto/spec.mk: replaced
7182           make-library by MAKE_LIBRARY
7183         * support/regression/ports/mcs51-xstack-auto/spec.mk: file added to run
7184           regression tests for xstack
7185         * support/regression/tests/bitvars.c: test for bit vars (bug 938782)
7186         * support/regression/tests/critical.c: test for critical on mcs51
7187
7188 2004-11-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7189
7190         * support/regression/ports/ucz80/spec.mk: use include and lib files from
7191           built version of sdcc instead of installed version
7192
7193 2004-11-14 Maarten Brock <sourceforge.brock AT dse.nl>
7194
7195         * src/mcs51/gen.c (toBoolean): fixed bug 1065458
7196         * device/lib/Makefile.in: z80 uses printf_large.c, sprintf.c and
7197           vprintf.c now
7198         * device/lib/printf_large.c (calculate_digit): fixed bug 1057979
7199         * device/lib/z80/Makefile: don't use printf.c as it fails bug 1057979
7200           WARNING: remove device/lib/build/z80/printf.o by hand when
7201           updating from previous build!
7202         * device/lib/z80/printf.c: updated comment
7203         * support/regression/tests/bug1057979.c: test all ports now
7204         * support/regression/tests/bug1065458.c: file added
7205
7206 2004-11-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7207
7208         * src/z80/gen.c (genFunction, genEndFunction): avoided generating
7209           *_start and *_end symbols for static functions
7210
7211 2004-11-11 Maarten Brock <sourceforge.brock AT dse.nl>
7212
7213         * src/SDCCmain.c (linkEdit): don't suppress crt0 if --nostdlib is used
7214           and search crt0.o in all library paths,
7215           (setIncludePath): proper handling of --nostdinc,
7216           (setLibPath): proper handling of --nostdlib
7217         * support/regression/Makefile,
7218         * support/regression/ports/ds390/spec.mk,
7219         * support/regression/ports/gbz80/spec.mk,
7220         * support/regression/ports/hc08/spec.mk,
7221         * support/regression/ports/mcs51/spec.mk,
7222         * support/regression/ports/mcs51-large/spec.mk,
7223         * support/regression/ports/mcs51-stack-auto/spec.mk,
7224         * support/regression/ports/z80/spec.mk: use include and lib files from
7225           built version of sdcc instead of installed version
7226         * doc/sdccman.lyx: fixed typo in --nostdinc
7227
7228 2004-11-10 Slade Rich <slade_rich AT users.sourceforge.net>
7229
7230         * src/pic/pcode.c,
7231         * src/pic/device.c,
7232         * src/pic/ralloc.c,
7233         * src/pic/gen.c : added support to generate code for struct bit fields.
7234
7235 2004-11-06 Maarten Brock <sourceforge.brock AT dse.nl>
7236
7237         * as/xa51/xa_version.h,
7238         * device/include/errno.h,
7239         * device/include/regc515c.h,
7240         * device/lib/_itoa.c,
7241         * device/lib/_ltoa.c,
7242         * device/lib/ser_ir_cts_rts.c,
7243         * sim/ucsim/xa.src/glob.cc,
7244         * sim/ucsim/xa.src/inst_gen.cc,
7245         * sim/ucsim/xa.src/xa_bit.cc,
7246         * sim/ucsim/xa.src/xa_sfr.cc,
7247         * sim/ucsim/z80.src/inst_dd.cc,
7248         * sim/ucsim/z80.src/inst_fdcb.cc,
7249         * support/scripts/keil2sdcc.pl,
7250         * src/pic16/pic16.dsp,
7251         * src/pic16/pic16a.dsp: corrected cvs line endings
7252         * device/lib/printf_large.c: fixed bug 1057979
7253         * src/pic16/gen.c: fixed non-C standard code
7254         * src/SDCCmain.c: made --pack-iram default, added --no-pack-iram
7255         * src/SDCCglobl.h: changed pack_iram to no_pack_iram
7256         * support/regression/ports/mcs51/support.c: reload T1 asap
7257         * doc/sdccman.lyx: updated for options --pack-iram and --no-pack-iram,
7258           pdata use and clear idata startup behaviour
7259         * support/regression/tests/bug1057979.c: added
7260
7261 2004-11-04 Maarten Brock <sourceforge.brock AT dse.nl>
7262
7263         * device/examples/ds390/ow390/ad26.h,
7264         * device/examples/ds390/ow390/cnt1d.h,
7265         * device/examples/ds390/ow390/crcutil.c,
7266         * device/examples/ds390/ow390/ownet.h,
7267         * device/examples/ds390/ow390/owsesu.c,
7268         * device/examples/ds390/ow390/swt12.h,
7269         * device/examples/ds390/ow390/swtoper.c,
7270         * device/examples/ds390/ow390/temp10.h,
7271         * device/examples/ds390/ow390/thermodl.c,
7272         * device/examples/ds390/tinitalk/tinitalk.dsp,
7273         * device/examples/ds390/tinitalk/tinitalk.dsw,
7274         * device/examples/mcs51/clock/hw.h,
7275         * device/examples/mcs51/simple2/go.bat,
7276         * device/examples/serialcomm/windows/serial.h,
7277         * device/examples/xa51/dummy.c,
7278         * device/examples/xa51/hello.c,
7279         * device/include/80c51xa.h,
7280         * device/include/at89x051.h: corrected cvs line endings
7281
7282 2004-11-04 Vangelis Rokas <vrokas AT otenet.gr>
7283
7284         * src/pic16/main.c (options): added command line --gstack, to trace
7285         stack over/under flows,
7286         * added pragma 'wparam' to allow passing first byte of function
7287         parameters via WREG, syntax is #pragma wparam my_function[, func2...]
7288         * src/pic16/gen.c (pic16_testStackOverflow): function which emits a
7289         call to __gstack_test function and sets up the symbol as extern,
7290         * (pic16_pushpCodeOp, pic16_poppCodeOp, pushw, pushaop, popaopidx,
7291         * popaop): added call to pic16_testStackOverflow,
7292         * (wParamCmp, inWparamList): NEW, test existence of a symbol in
7293         wparamList list,
7294         * (genCall, genPcall): now all parameters are passed via stack
7295         except in functions that are pass to wparam pragma in which WREG is
7296         used too,
7297         * (genPcall): REENTRANT flag is checked to see if variable prototype
7298         contains reentrant keyword, don't call a non-reentrant function, via
7299         a reentrant function pointer or vice versa, functions are never
7300         passed via WREG,
7301         * (genJumpTab): applied patch from bug #1057478 by R.Neider and
7302         D.Winkler,
7303         * src/pic16/glue.c (pic16emitRegularMap): fixed bug which caused a
7304         SIGSEGV when accessing a NULL register stucture,
7305         * (pic16_printGPointerType): modified to handle UPPER modifier for
7306         function initializers, changed prototype of function to simpler one,
7307         * (pic16_printIvalFuncPtr): check to see if function is already
7308         added in externs list,
7309         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): fixed bug which
7310         optimized a move from W to SFR with a move to the same register
7311         later after a CALL,
7312         * device/lib/pic16/debug: NEW directory, contains debug features
7313         which are enabled when linking with libdebug.lib, currently command
7314         line option --gstack enables stack pointer tracing for over/under
7315         flow, corresponding sources are in debug/gstack
7316
7317 2004-10-30 Vangelis Rokas <vrokas AT otenet.gr>
7318
7319         * doc/sdccman.lyx: updated SDCC version,
7320         * (PIC16 port): update list of command line options,
7321         * src/pic16/device.h (structure pic16_options_t): added field gstack
7322         to enable stack overflow tracing on push/pops,
7323         * src/pic16/device.c (statistics structure): added statistics
7324         structure,
7325         * (pic16_dump_access, pic16_dump_usection, pic16_dump_gsection,
7326         pic16_dump_int_registers): increase statistics counters for each
7327         * variable which is encountered
7328         * (pic16_dump_usection): emit each .udata variable to its own udata
7329         section,
7330         * src/pic16/gen.c (assignResultValue, genCall, genPcall, genFunction):
7331         when macro USE_WREG_IN_FUNC_PARAMS is set to 0 pass all function
7332         parameters via stack, otherwise use old scheme,
7333         * src/pic16/glue.c (pic16_emitStatistics): dump statistics in
7334         assembler output file,
7335         * src/pic16/main.c: added command line options --gstack to enable
7336         push/pop tracing for stack overflow,
7337         * src/pic16/pcode.c (all pCodeInstruction records for PIC18F
7338         instructions): added size of each instruction,
7339         * (pic16_countInstruction): estimate size of instructions in
7340         the_pFile list, inline assembly blocks are not counted,
7341         * (pic16_FixRegisterBanking): trace previous register usage, when
7342         banksel optimizations is greater than 0, don't emit a redudant
7343         banksel directive,
7344
7345 2004-10-26 Slade Rich <slade_rich AT users.sourceforge.net>
7346
7347         * src/pic/ralloc.c : fixed inefficient code produced when compiling a complimented bit operation.
7348         * src/pic16/ralloc.c : applied same fix for pic16.
7349         * src/pic/gen.c : tidied it up a little.
7350
7351 2004-10-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7352
7353         * src/mcs51/peeph.def: disabled 259.a,b for removing redundant ret,
7354         thanks to Martin Helmling for reporting (mail on sdcc-devel 2004-10-25)
7355
7356 2004-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7357
7358         * src/SDCCast.c (reverseParms): fixed bug #1040577 (part 2)
7359
7360 2004-10-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7361
7362         * device/lib/ser_ir_cts_rts.c: integer promotion caused a call to the
7363         non-reentrant function __modsint in the interrupt function (thus
7364         corrupting math operations during serial I/O)
7365         * device/lib/ser_ir.c: as above, changed buffersize
7366         * src/mcs51/peeph.def: added 259.a,b for removing redundant ret,
7367         256.c,d for zeroing
7368         * doc/Makefile: added option -t for rsync
7369
7370 2004-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7371
7372         * src/SDCCast.h (struct ast),
7373         * src/SDCCast.c (reverseParms, copyAst): fixed bug #1040577 (part 1)
7374
7375 2004-10-20 Borut Razem <borut.razem AT siol.net>
7376
7377         * support/scripts/sdcc.nsi: added include/pic16/*.h to the setup
7378         package
7379
7380 2004-10-20 Vangelis Rokas <vrokas AT otenet.gr>
7381
7382         * device/lib/pic16/libsdcc/Makefile: added lregs directory in
7383         makefile targets,
7384         * device/lib/pic16/libsdcc/lregs/{Makefile,lrst.c,lrrest.c}: NEW
7385         support functions to replace long sequences of MOVFF's from access
7386         bank registers to stack and vice versa,
7387         * src/pic16/device.h: added new field opt_flags, where optimization
7388         flags can be set to enable certain features,
7389         * src/pic16/gen.c (pic16_emitpinfo): NEW to add PC_INFO pCode in
7390         * pBlock, (genFunction, genEndFunction): surroung loop for
7391         saving/loading used registers in stack with PC_INFO pCodes,
7392         INF_LREGS. Code in between can then be optimized by pCode optimizer
7393         to support function calls,
7394         * (genDataPointerSet): fixed bug which loaded float fields in
7395         structures with corrupt data,
7396         * src/pic16/genutils.c (debugf, _debugf): macro/function which emits
7397         in a standard way debug info on stderr. Feature used for developing
7398         and debugging only,
7399         * src/pic16/glue.c (pic16glue): reformatted, deleted some old and
7400         obsolete chunks of code,
7401         * if optimization flag OF_LR_SUPPORT was set, call pic16_OptimizeLocalRegs,
7402         * src/pic16/main.c (_pic16_parseOptions): added handler for --flr-support,
7403         * pic16/src/pcode.c (pic16_newpCodeInfo,
7404         * (pic16_newpCodeOpLocalRegs),
7405         * (pic16_convertLocalRegs2Support): NEW, to support new optimization
7406         feature,
7407         * (pic16_pCodeConstString): printing of the initial value of a
7408         symbol as a comment is inhibited since parsing was already done by
7409         copyStr and output is corrupt,
7410         * (pic16_pCode2str, genericPrint): handle PC_INFO pCode,
7411
7412 2004-10-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7413
7414         * src/mcs51/ralloc.c (packRegisters): fixed bug #1044601
7415
7416 2004-10-19 Maarten Brock <sourceforge.brock AT dse.nl>
7417
7418         * as/mcs51/lkarea.c: removed old K&R style,
7419           (lnksect): changed check on boundary error,
7420           (lnksect2): changed check on boundary error,
7421           (lnksect2): extend XSTK to end of page if size = 1
7422         * as/mcs51/lkmain.c: removed old K&R style,
7423           (Areas51): create l_IRAM symbol
7424         * as/mcs51/lkmem.c (summary2): added report on PSEG and XSTK
7425         * device/lib/Makefile.in: renamed model-mcs51-reentrant to
7426           model-mcs51-stack-auto, added model-mcs51-xstack-auto
7427         * device/lib/_mullong.c: added version to be compiled with xstack
7428         * device/lib/mcs51/crtclear.asm: clear only upto --iram-size
7429         * device/lib/mcs51/crtxclear.asm: clear pdata as well
7430         * device/lib/mcs51/crtxstack.asm: fixed comment
7431         * src/SDCCglue.c: maxInterrupts defaults to 0,
7432           (emitMaps): added pdata,
7433           (createInterruptVect): (re)moved default,
7434           (glue): added pdata,
7435           (glue): moved __start__xstack to XSTK with default size 1
7436         * src/SDCCmain.c (parseCmdLine): automatically set options.intlong_rent
7437           and options.float_rent when options.stackAuto is set,
7438           (linkEdit): only write XDATA_NAME if provided on command line
7439         * src/SDCCmem.h,
7440         * src/SDCCmem.c: added pdata
7441         * src/port.h: added pdata_name to PORT
7442         * src/mcs51/gen.c (toBoolean): fixed for Acc use of aopGet,
7443           (saveRegisters, unsaveRegisters): removed usage of B,
7444           (genMinus): fixed accumulator clash,
7445           (genJumpTab): added comment, this needs another look
7446         * src/mcs51/gen.c: added check for "B in use" paranoia,
7447           added pushB() and popB()
7448         * src/mcs51/peeph.def: restart after 177.c so 177.a can get a second
7449           chance
7450         * src/avr/main.c,
7451         * src/ds390/main.c,
7452         * src/hc08/main.c,
7453         * src/mcs51/main.c,
7454         * src/pic/main.c,
7455         * src/pic16/main.c,
7456         * src/xa51/main.c,
7457         * src/z80/main.c: (reset_regparms) made void parameter explicit and
7458           added PSEG (PAG,XDATA) or NULL to port specifier
7459         * src/ds390/main.c (_ds390_genIVT): moved implemented default in here
7460         * src/mcs51/main.c (_mcs51_genIVT): moved implemented default in here,
7461           (_mcs51_genInitStartup): removed __start__xstack equ,
7462           (mcs51_port): moved xstack from XSEG (XDATA) to XSTK (PAG,XDATA)
7463         * src/pic16/device.c (pic16_dump_usection, pic16_dump_isection),
7464         * src/z80/gen.c (_rleAppend): fixed warnings
7465         * support/regression/tests/zeropad.c: added pdata test
7466         * .version: bumped to 2.4.6
7467
7468 2004-10-17 Borut Razem <borut.razem AT siol.net>
7469
7470         * support/scripts/sdcc.nsi: cross compiling of WIN32 setup.exe on Linux
7471         as a part of nightly build
7472
7473 2004-10-16 Vangelis Rokas <vrokas AT otenet.gr>
7474
7475         * src/pic16/gen.c (struct _G): added field useWreg, is set to 1 when
7476         WREG holds the first byte function parameters,
7477         * (aopForSym): take special case for symbols which are in FARSPACE
7478         but in CODESPACE too,
7479         * (assignResultValue): modified to take into account _G.useWreg,
7480         * (genCall): don't use wreg for parameter passing when function is
7481         declared as reentrant, too, added optimization INCF to stack
7482         pointer when stack parameter count is 1,
7483         * (genFunction, genEndFunction): refurnished and fixed to not using
7484         wreg for passing parameters when function has varargs or is
7485         reentrant, fixed bug with symbol name compare for generating
7486         functions in absolute address,
7487         * (pic16_storeForReturn): refurnished,
7488         * (genCmp): began writing a new version of the function, not ready
7489         yet, therefore it is disabled,
7490         * (genAssign): do not read code memory when assigning a function to
7491         a pointer function,
7492         * src/pic16/glue.c (pic16emitStaticSeg): abSym->name is defined an
7493         array of characters, not pointer,
7494         * (pic16initialComments): in debug mode emit an .ident directive for
7495         the assembler,
7496         * (_process_pragma): emit a new warning type (internal to pic16)
7497         when setting stack to default length, emit a similar warning when
7498         placing a function at absolute address and address is not word aligned
7499         * (_pic16_parseOptions): added 'return TRUE' statement,
7500         * (_pic16_linkEdit): if compiling a source, then add the source's
7501         file object, first in the list of objects to link,
7502
7503 2004-10-13 Slade Rich <slade_rich AT users.sourceforge.net>
7504
7505         * src/pic/pcoderegs.c : increased count on regUsedinRange to prevent unnecessary warning.
7506         * src/pic/main.c : removed VC warning.
7507         * src/pic/gen.c : changed comment.
7508
7509 2004-10-12 Vangelis Rokas <vrokas AT otenet.gr>
7510
7511         * device/lib/pic16/libsdcc/gptr/gptrput[234].c: an external
7512         reference to a deprecated symbol _GPTRREG was causing failure to
7513         link. Thanks G. M. Gallant for the info.
7514
7515 2004-10-12 Slade Rich <slade_rich AT users.sourceforge.net>
7516
7517         * src/pic/pcode.c : Applied a code patch supplied by Paul Ashmore in
7518         comments for Bugs item #954788.
7519
7520 2004-10-10 Vangelis Rokas <vrokas AT otenet.gr>
7521
7522         * src/pic16/device.c (pic16_dump_gsection,
7523         * pic16_groupRegistersInSection): handle symbols declared to be in
7524         access bank differently,
7525         * src/pic16/gen.c (struct _G): added field resDirect,
7526         * (aopForSym): if symbol on stack and iCode is '=' and result exists,
7527         send values read from stack directly to result and don't allocate
7528         temporary values,
7529         * (pic16_sameRegs): fixed bug that allowed MOVFF to move between
7530         same registers,
7531         * (pic16_sameRegsOfs): NEW,
7532         * (freeAsmop): if _G.resDirect is set then do not mark registers as
7533         free because they were not allocated from temporary pool,
7534         * pic16_popRegFromString): workaround to fix a problem with
7535         allocating variables twice or never,
7536         * (genGenPointerGet): using PRODL instead of FSR0H,
7537         * (genGenPointerSet): using POSTDEC1 (that is a stack location)
7538         instead of FSR0H,
7539         * (genAssign): take advantage of the _G.resDirect flag,
7540         * (genCast): around line 11844, use mov2f instead of directly
7541         MOVFF'ing between operands to account for literal values,
7542         * src/pic16/genutils.c: some new debug functions for gpsim have been
7543         added,
7544         * src/pic16/glue.c (pic16_printIvalType): fixed bug that initialized
7545         float with integer part only,
7546         * src/pic16/main.c (_process_pragma): handle pragma udata access to
7547         place variables in access bank
7548         * device/lib/pic16/libsdcc/gptr/gptr*.c: using BRA instead of GOTO,
7549         updated sources to reflect recent changes in gen.c
7550
7551 2004-10-06 Vangelis Rokas <vrokas AT otenet.gr>
7552
7553         * device/lib/pic16/libsdcc/Makefile.rules: fixed bug concerning
7554         sources that searched for headers in installation path, now the
7555         device/include/pic16 is used,
7556         * src/pic16/glue.c (pic16glue),
7557         * src/pic16/pcode.c (pCode2str, genericPrint): don't print .file or
7558         .line directives if not in debug mode, this suppresses assembler's
7559         warnings for ignored directives
7560
7561 2004-10-05 Maarten Brock <sourceforge.brock AT dse.nl>
7562
7563         * src/port.h: made reset_regparms prototype void parameter explicit.
7564         * src/SDCCsymt.c (processFuncArgs): removed argument "func".
7565         * src/mcs51/ralloc.c (packRegisters): new fix for bugs 898889 & 979599.
7566         * doc/sdccman.lyx: documented warning disabling and how to use
7567           printf_large to make it print floats.
7568         * device/include/stdbool.h: NEW
7569         * device/lib/_atof.c,
7570         * device/lib/_divuint.c,
7571         * device/lib/_divulong.c,
7572         * device/lib/expf.c,
7573         * device/lib/printf_large.c,
7574         * device/lib/sincosf.c,
7575         * device/lib/sincoshf.c: used stdbool.h, all compile with stack-auto now
7576         * device/lib/Makefile.in: added target for model-mcs51-reentrant to build
7577           a completely reentrant lib.
7578
7579 2004-10-05 Vangelis Rokas <vrokas AT otenet.gr>
7580
7581         * device/lib/pic16/libsdcc/gptr/gptr*.c: added return statements
7582         * device/include/pic16/stdio.h: fixed bug with colon
7583
7584 2004-10-03 Vangelis Rokas <vrokas AT otenet.gr>
7585
7586         * device/include/pic16/stdio.h,
7587         * device/include/pic16/stdlib.h,
7588         * device/include/pic16/math.h: NEW
7589         * device/lib/pic16/libsdcc/gptr/*.c (gptrget*, gptrput*): functions
7590         declared as _naked to reduce overhead
7591         * device/lib/Makefile.in (target port-specific-objects-pic16):
7592         changed * to *.* so to ignore the CVS directory,
7593         * src/pic16/gen.c (pic16_freeAsmop): added code to store result of
7594         stacked variables back in stack,
7595         * (genEndFunction): fixed bug reported by G.M. Gallant with stack
7596         corruption
7597
7598 2004-10-01 Vangelis Rokas <vrokas AT otenet.gr>
7599
7600         * .version: bumped version number to 2.4.5
7601         * support/Util/SDCCerr.h: added warning W_POSSBUG2.
7602         * support/Util/SDCCerr.c (messages structure): added entry for
7603         W_POSSBUG2
7604
7605         Large cumulative patch for pic16 port and libraries.
7606         * device/include/pic16/sdcc-lib.h,
7607         * device/include/pic16/stdarg.h,
7608         * device/include/asm/pic16/features.h,
7609         * device/include/lib/pic16/libsdcc/gptr/{*.c, Makefile}: NEW,
7610         * device/include/pic16/float.h: changes reentrant keyword with
7611         _FS_REENTRANT, added prototype for __fsneq, included sdcc-lib.h
7612         * device/lib/pic16/libsdcc/Makefile: added target directory gptr,
7613         updated target build-libraries to include objects from gptr,
7614         * device/lib/pic16/libsdcc/{char,int,long}/*.c: added macro
7615         _IL_REENTRANT to all function headings, included sdcc-lib.h header,
7616         * device/lib/pic16/libsdcc/float/*.c: added macro _FS_REENTRANT to
7617         all function headings,
7618         * src/SDCCmain.c: added global parameter userIncDirsSet,
7619         * (parseCmdLine): when option -I is encountered add directory to
7620         userIncDirsSet too,
7621         * src/version.awk: added space between control and long,
7622         * src/pic16/NOTES: added some notes for the port,
7623         * src/pic16/gen.c: added prototype for mov2fp function,
7624         * (fReturnpic16[]): properly named return value registers,
7625         * (_G structure): added fields stackRegSet, fregsUsed, stack_lat,
7626         * (aopForSym): added code to handle symbols with onStack flag set,
7627         symbols onStack are allocated PTRSIZE bytes,
7628         * (aopFreeAsmop): handles special case where asmops are stack objects,
7629         * (aopGet, pic16_popGet): adde cod to handle new asmop AOP_STA,
7630         * (pic16_popGetTempReg, pic16_popGetTempRegCond, pic16_popReleaseTempReg):
7631         added argument lock to trace flaws in allocating temporary registers
7632         when developing port,
7633         * (pic16_popGetLit, pic16_popGetLit2): changed lit from unsigned to signed
7634         * (pic16_popRegFromString): reenabled allocating a direct register
7635         from string,
7636         * (assignResultValue): various beautifications,
7637         * fixed bug #1037717 (patch from R. Neider & D. Wrinkler) with mistaken
7638         referenced function argument,
7639         * (genIpush): reenabled to allow stacked arguments, handles only
7640         ic->parmPush iCodes,
7641         * (genCall, genPcall): major changes to allow for variable argument
7642         functions, fixed a bug with falsely restoring stack pointer after
7643         returning from call,
7644         * (genFunction): pending code for critical function,
7645         * (shiftR1Left2ResultSigned, shiftR1Left2Result, shiftL2Left2Result,
7646         * (shiftR2Left2Result, shiftLLong) applied patch #1032155 from R.Neider,
7647         * (genNearPointerGet): fixed bug with indirect reading, was always
7648         reading from INDF0
7649         * (genGenPointerGet, genGenPointerSet): rewrote to support generic
7650         pointers,
7651         * (genAddrOf): rewrote code to take address of a stacked function parameter
7652         * (genCast): fixed casting to generic pointer type,
7653         * src/pic16/gen.h: added AOP_STA,
7654         * (struct asmop): added field stk,
7655         * src/pic16/genarith.c (pic16_AopType): handle AOP_STA,
7656         * (pic16_genPlusIncr): changed emitSKPNZ to emitSKPNZ,
7657         * (pic16_genAddLit, pic16_genPlus): applied patch #1034042 by tecodev,
7658         * (pic16_genMinus): fixed bug #1035119 with patch submitted by tecodev,
7659         * src/pic16/genutils.c (pic16_genNot): removed symbol *tlbl,
7660         * src/pic16/glue.c (pic16_printGPPointerType): fixed to support new
7661         generic pointers,
7662         * src/pic16/main.c (_pic16_initPaths): ignores default SDCC include
7663         and library paths,
7664         * (pic16_port structure): generic pointer size is set to 3,
7665         * src/pic16/pcode.c (pic16_newpCodeOpLit): correctly print literal integer,
7666         * (insertBankSwitch): cast to (char *) to prevent 64bit CPUs'
7667         compiler warning,
7668         * src/pic16/ralloc.c (allocReg): prevent allocating register when
7669         operand is an iTemp,
7670
7671 2004-09-24 Martin Helmling <mh AT octo-soft.de>
7672
7673         * debugger/mcs51/cmd.c: set PC if a symbol at pc reg is set
7674         * debugger/mcs51/simi.c: addapt new syntax of s51
7675
7676 2004-09-23 Vangelis Rokas <vrokas AT otenet.gr>
7677
7678         * src/pic16/genutils.c (pic16_genNot): fixed bug #1032265,
7679         * src/pic16/pcode.c: commented out some calls to free() in order to
7680         fix bug #989576,
7681
7682 2004-09-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7683
7684         * src/SDCCicode.h,
7685         * src/SDCCicode.c (isiCodeInFunctionCall),
7686         * src/avr/ralloc.c (selectSpil),
7687         * src/pic/ralloc.c (selectSpil),
7688         * src/pic16/ralloc.c (selectSpil),
7689         * src/ds390/ralloc.c (selectSpil),
7690         * src/hc08/ralloc.c (selectSpil),
7691         * src/xa51/ralloc.c (selectSpil),
7692         * src/mcs51/ralloc.c (selectSpil): Don't use remainSpil to spill to the
7693         stack in the middle of a function call sequence (fixes bug #1020268)
7694         * src/SDCCicode.c (geniCodeJumpTable): fixed error in computing the
7695         costs associated with the minimum switch case.
7696
7697 2004-09-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7698
7699         * src/SDCC.lex: fixed bug #1030549
7700
7701 2004-09-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7702
7703         * src/SDCCcse.h (struct cseDef),
7704         * src/SDCCcse.c (cseBBlock, newCseDef, ifFromAddrTaken): purge CSEs
7705         over a function call if the CSE is derived from a symbol whose
7706         address has been taken (fixes bug #1029883)
7707         * support/regression/tests/bug-1029883: a new regression test for
7708         this bug
7709
7710 2004-09-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7711
7712         * src/hc08/gen.c (emitinline): fixed bug #1029778
7713         * src/SDCC.y (assignment_expr): fixed the grammer so that assignment
7714         to a cast object is no longer a syntax error ("fixes" bug #1030006,
7715         and starts toward RFE #905167)
7716
7717 2004-09-17 Vangelis Rokas <vrokas AT otenet.gr>
7718
7719         * src/pic16/gen.c (mov2f): New function to move an operand to
7720         another without considering if it is a literal or a register,
7721         * (pic16_sameRegs): don't check if they are both AOP_REG,
7722         * (AccRsh): removed andmask=0 lines,
7723         * (genLeftShift): duplicated to be improved in future versions,
7724         * src/pic16/main.c (_process_pragma): emit stack default size in hex,
7725         * src/pic16/pcode.c: added POC_INFSNZW, updated inverted_op fields
7726         in POC_INCFSZ, POC_INCFSZW, POC_INFSNZ,
7727         * (pic16initMnemonics): added initialization for POC_INFSNZW,
7728         * (insertBankSwitch): fixed inserting banksel directives algorithm
7729         for instructions that follow a skip instruction, this fixes a report
7730         for broken subtraction code generation,
7731         * src/pic16/ralloc.c (deassignLRs): do not free register if current
7732         iCode is a left op, just in case result and right share the same
7733         registers
7734
7735 2004-09-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7736
7737         * src/hc08/main.c,
7738         * src/hc08/gen.c (genJumpTable): more efficient jump table, supports
7739         preservation of HX
7740         * src/hc08/gen.c (pullRegs): fixed order of HX & XA pairs
7741         * src/mcs51/ralloc.c (packRegisters): removed the patch applied
7742         on 2004-09-12; it was buggy
7743
7744 2004-09-15 Bernhard Held <bernhard AT bernhardheld.de>
7745
7746         * src/SDCCsymt.h: removed RESULT_CHECK
7747         * src/SDCCast.c,
7748         * src/SDCCglue.c,
7749         * src/SDCCval.c,
7750         * src/pic/glue.c,
7751         * src/pic16/glue.c: replaced RESULT_CHECK with RESULT_TYPE_NONE
7752
7753 2004-09-15 Vangelis Rokas <vrokas AT otenet.gr>
7754
7755         * src/SDCCicode.c (piCode): applied patch from Raphael Neider,
7756         * src/pic16/device.c (pic16_assignConfigWordValues): wrong
7757         configuration values no more rejected by compiler, they are assigned
7758         to configuration registers with a warning message instead,
7759         * src/pic16/glue.c (pic16_emitConfigRegs): added +1 at top-limit of
7760         the for-loop so last conf register is emitted too,
7761         * (_pic16_initPaths): link library libsdcc.lib by default,
7762         * (_hasNativeMulFor): modified test for multiplication according to
7763         Raphael Neider's remarks. Integer multiplication is also done with
7764         support functions,
7765         * device/include/pic16/pic18fregs.h: corrected type error in while
7766         testing and including 18f6720 header file
7767
7768 2004-09-14 Vangelis Rokas <vrokas AT otenet.gr>
7769
7770         * src/pic16/device.h (pic16_options): removed field use_crt,
7771         * src/pic16/gen.c (genUnpackBits): added call to pic16_loadFSR0
7772         until an optimization to handle single bits is added,
7773         * (pic16_loadFSR0): moved before genUnpackBits,
7774         * (genAnd): some white lines removed,
7775         * src/pic16/main.c (_pic16_finaliseOptions): set omit_ivt and clear
7776         leave_reset flags in pic16_options when using crt modules,
7777
7778 2004-09-12 Maarten Brock <sourceforge.brock AT dse.nl>
7779
7780         * src/mcs51/ralloc.c (packRegisters): applied fix by Bernhard Held
7781           for bugs 898889 & 979599. Also used some safer print instructions.
7782
7783 2004-09-12 Vangelis Rokas <vrokas AT otenet.gr>
7784
7785         * src/pic16/device.h (pic16_options_t): added field use_crt,
7786         crt_name, no_crt,
7787         * src/pic16/genarith.c (pic16_genPlus): added an assert(0) line to
7788         catch a probable future bug,
7789         * src/pic16/gen.c: aopIdx function commented out,
7790         * (genAssign): commented out old code which used aopIdx,
7791         * src/pic16/glue.c (pic16glue): removed some legacy fragments of
7792         code, added if conditionals to take into account the --use-crt
7793         command line options,
7794         * src/pic16/main.c (pic16_optionsTable): added new command line
7795         options, --use-crt= and --no-crt,
7796         * (_pic16_linkEdit): now the proper crt object is added in the
7797         linker command line except than when --no-crt is specified,
7798         * src/pic16/pcode.c,
7799         * src/pic16/pcode.h: added some structures and functions for a new
7800         optimization scheme to compansate for instruction overhead between
7801         same iCodes, this scheme is currently under development and is not
7802         working in any way,
7803         * src/pic16/gen.c (genAnd): added patch provided by Aaron Collwell
7804         to && operator,
7805         * device/lib/pic16/startup/crt0i.c,
7806         * device/lib/pic16/startup/crt0iz.c: added global char variable
7807         __uflags to force the generation of an idata section
7808
7809 2004-09-12 Bernhard Held <bernhard AT bernhardheld.de>
7810
7811         * doc/Makefile,
7812         * doc/clean.mk: added support for easy creation of sdcc-doc.tar.bz2
7813         * doc/sdccman.lyx: updated sdcc version to 2.4.4
7814
7815 2004-09-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7816
7817         * doc/sdccman.lyx: fixed a problem with my new index entries (thanks
7818         Frieder) and clarified the default code optimization mode
7819
7820 2004-09-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7821
7822         * src/SDCC.lex (doPragma, process_pragma),
7823         * src/SDCCglobl.h (struct optimize): added pragmas "opt_code_speed",
7824         "opt_code_size", and "opt_code_balanced"
7825         * src/SDCCmain.c (optionsTable[], printOptions, scanOptionsTable):
7826         regrouped options by category, added support for category headers
7827         * src/SDCCmain.c (parseCmdLine): added options "--opt-code-speed"
7828         and "--opt-code-size"
7829         * doc/sdccman.lyx: documented these new options and pragmas
7830         * src/hc08/gen.c (AccLsh, AccRsh): take speed/size optimization
7831         preference into account
7832
7833 2004-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
7834
7835         * src/SDCCicode.c (geniCodePostInc, geniCodePreInc, geniCodePostDec,
7836           geniCodePreDec): Fixed bug 904237 by generating a warning
7837         * src/SDCCerr.h,
7838         * src/SDCCerr.c: added warning W_SIZEOF_VOID
7839
7840 2004-09-09 Slade Rich <slade_rich AT users.sourceforge.net>
7841
7842         * src/pic/device.c : When no max ram set validate full memory range.
7843         * src/pic/pcode.c,
7844         * src/pic/pcodepeep.c : Copy C code comments to optimised replacement code.
7845
7846 2004-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
7847
7848         * device/lib/_gptrget.c,
7849         * device/lib/_gptrput.c: updated comment
7850         * device/lib/calloc.c,
7851         * device/lib/free.c,
7852         * device/lib/malloc.c,
7853         * device/lib/realloc.c: added LGPL, made them reentrant-safe
7854         * src/SDCCcse.c (cseBBlock),
7855         * src/SDCCicode.c (printOperand, geniCodeArray),
7856         * src/SDCCicode.h (struct operand): fixed bug 868103
7857         * support/regression/tests/bug-868103.c: added
7858         * src/SDCCast.c (searchLitOp),
7859         * src/SDCCcse.h (struct cseDef),
7860         * src/SDCCglue.c (printIvalArray, spacesToUnderscores),
7861         * src/SDCCicode.h (struct operand),
7862         * src/SDCCsymt.h (struct sym_link),
7863         * src/avr/gen.c (hasInc),
7864         * src/ds390/gen.c (hasInc),
7865         * src/hc08/gen.c (genPlusIncr, hasInc),
7866         * src/mcs51/gen.c (hasInc),
7867         * src/pic16/glue.c (pic16_printIvalChar),
7868         * src/pic16/ralloc.c (regWithIdx),
7869         * src/xa51/gen.c (hasInc) : removed warnings
7870         * src/SDCCast.c (createBlock): added comment ???
7871         * src/hc08/ralloc.c: updated comments
7872
7873 2004-09-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7874
7875         * doc/sdccman.lyx: updated section on switch statements, added
7876         section about semaphore locking
7877         * doc/Makefile: added option -info for latex2html
7878         * device/lib/_gptrget.c,
7879         * device/lib/_gptrput.c: __XPAGE instead of P2 in outcommented code
7880
7881 2004-09-06 Slade Rich <slade_rich AT users.sourceforge.net>
7882
7883         * src/pic/device.h,
7884         * src/pic/device.c,
7885         * src/pic/port.c : Changed PIC14 code to not set bit RP1 when
7886          maxram is less than 0x100.
7887
7888 2004-09-06 Slade Rich <slade_rich AT users.sourceforge.net>
7889
7890         * Bug fixes for PIC14 - signed RSHIFT problem. Patch supplied by Allen(agschrum).
7891
7892 2004-09-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7893
7894         * src/port.h,
7895         * src/mcs51/main.c,
7896         * src/ds390/main.c,
7897         * src/z80/main.c,
7898         * src/hc08/main.c,
7899         * src/pic/main.c,
7900         * src/pic16/main.c,
7901         * src/avr/main.c,
7902         * src/xa51/main.c
7903         * src/SDCCicode.c (geniCodeJumpTable): Better logic to determine if a
7904         a jump table is the best form for a switch statement, including
7905         automatic insertion of missing cases to make the case range
7906         continuous. Developed in collaboration with Frieder Ferlemann.
7907
7908 2004-09-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7909
7910         * src/hc08/ralloc.c (canDefAccResult): multi-byte shift is unsafe for
7911         accumulator result if it needs sign extension
7912
7913 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
7914
7915         * src/hc08/ralloc.c (canUseAccOperand): fixed comparison bug
7916
7917 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
7918
7919         * device/lib/gbz80/printf.c,
7920         * device/lib/z80/printf.c: removed define for NULL
7921
7922 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
7923
7924         * as/xa51/xa_link.c,
7925         * device/examples/ds390/ow390/ad26.c,
7926         * device/examples/ds390/ow390/cnt1d.c,
7927         * device/examples/ds390/ow390/counter.c,
7928         * device/examples/ds390/ow390/ds2480.h,
7929         * device/examples/ds390/ow390/ds2480ut.c,
7930         * device/examples/ds390/ow390/findtype.c,
7931         * device/examples/ds390/ow390/gethumd.c,
7932         * device/examples/ds390/ow390/owllu.c,
7933         * device/examples/ds390/ow390/ownetu.c,
7934         * device/examples/ds390/ow390/swt12.c,
7935         * device/examples/ds390/ow390/swtloop.c,
7936         * device/examples/ds390/ow390/temp.c,
7937         * device/examples/ds390/ow390/temp10.c,
7938         * device/examples/ds390/ow390/thermo21.c,
7939         * device/examples/ds390/ow390/tinilnk.c,
7940         * device/examples/ds390/ow390/tstfind.c,
7941         * device/examples/serialcomm/windows/serial.cpp,
7942         * device/examples/serialcomm/windows/test_serialcomm.cpp,
7943         * device/include/reg51.h: fixed line endings for cvs
7944
7945 2004-09-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7946
7947         * src/hc08/ralloc.c (canDefAccResult, canUseAccOperand,
7948         packRegsForAccUse, packRegisters): new accumulator register
7949         packing algorithm
7950         * support/regression/ports/hc08/support.c (_putchar): suppress
7951         warning of unused variable
7952         * src/SDCCicode.c: added SWAP entry to codeTable
7953
7954 2004-09-01 Maarten Brock <sourceforge.brock AT dse.nl>
7955
7956         * device/lib/sprintf.c: forgot to add this file before previous commit
7957
7958 2004-09-01 Vangelis Rokas <vrokas AT otenet.gr>
7959
7960         * src/pic16/gen.c (genPackBits): added operand right in function
7961         parameters, load result directly if p_type is POINTER (that is
7962         called by genNearPointerSet)
7963         * (genUnPackBits): added operand left in function parameters,
7964         * (genNearPointerGet, genNearPointerSet): prevent the loading of
7965         FSR0 if accessing bitfields,
7966
7967 2004-08-31 Maarten Brock <sourceforge.brock AT dse.nl>
7968
7969         * device/include/stdio.h: added NULL, size_t, typedef pfn_outputchar,
7970           _print_format; updated printf, sprintf, vsprintf
7971         * device/include/asm/default/features.h: corrected comment/define
7972         * device/lib/Makefile.in: added sprintf.c
7973         * device/lib/libsdcc.lib: added sprintf module
7974         * device/lib/printf_large.c,
7975         * device/lib/vprintf.c,
7976         * device/lib/sprintf.c: totally refactored printf_large and vprintf
7977           into these 3 files
7978         * support/regression/Makefile: changed ALL_PORTS into a usefull default
7979         * support/regression/ports/mcs51-stack-auto/spec.mk: added sprintf
7980         * support/regression/tests/bug-927659.c: removed dummy putchar, enabled
7981           hc08 test
7982         * support/regression/tests/zeropad.c: define idata as data for hc08
7983
7984 2004-08-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7985
7986         * src/SDCCpeeph.c (labelIsReturnOnly): support hc08 rts opcode also
7987         * src/SDCCpeeph.c (buildLabelRefCountHash): assume function entry point
7988         labels are referenced at least once (even if a reference is not found)
7989         * src/hc08/gen.c (emitcode): set isComment flag for comments
7990         * src/hc08/peeph.def: added rules 5a..5f (optimize redundant immediate
7991         loads), rules 6a..6b (optimize jumps to return)
7992
7993 2004-08-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7994
7995         * device/lib/acosf.c (acosf),
7996         * device/lib/asinf.c (asinf),
7997         * device/lib/atanf.c (atanf),
7998         * device/lib/ceilf.c (ceilf),
7999         * device/lib/cosf.c (cosf),
8000         * device/lib/coshf.c (coshf),
8001         * device/lib/cotf.c (cotf),
8002         * device/lib/fabsf.c (fabsf),
8003         * device/lib/floorf.c (floorf),
8004         * device/lib/log10f.c (log10f),
8005         * device/lib/logf.c (logf),
8006         * device/lib/sinf.c (sinf),
8007         * device/lib/sinhf.c (sinhf),
8008         * device/lib/sqrtf.c (sqrtf),
8009         * device/lib/tanf.c (tanf),
8010         * device/lib/tanhf.c (tanhf),
8011         * device/include/math.h: defined _FLOAT_FUNC_REENTRANT macro and
8012         replaced all instances of "reentrant" in the library functions
8013         defined in math.h with this macro.
8014         * support/regression/tests/float_trans.c: reenabled test for hc08
8015
8016 2004-08-30 Bernhard Held <bernhard AT bernhardheld.de>
8017
8018         * device/lib/pic16/Makefile.common.in: added MODELFLAGS again, it was
8019         erroneously deleted
8020
8021 2004-08-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8022
8023         * src/hc08/gen.c (loadRegFromAop): better use of clra & clrx
8024         * src/hc08/gen.c (genAnd, genOr): fixed bug with conditional when
8025         multi-byte volatile operands are used
8026         * src/hc08/gen.c (shiftRLong): fixed bug with wrong rotate direction
8027         * src/hc08/main.c (_hc08_genAssemblerPreamble): moved the built-in
8028         initialization to area GSINIT0 so that it would always precede
8029         any static initializers in GSINIT
8030         * support/regression/tests/zeropad.c: fixed idata define for hc08
8031         * support/regression/tests/bug-927659.c,
8032         * support/regression/tests/float_trans.c: disabled tests for hc08
8033         pending missing library routines
8034         * .version: increased version number to 2.4.4 - hc08 port now passes
8035         regression tests
8036
8037
8038 2004-08-29 Bernhard Held <bernhard AT bernhardheld.de>
8039
8040         * device/lib/pic16/Makefile.common.in: added $(MM) to fix `make clean`
8041         * Makefile.common.in,
8042         * as/Makefile,
8043         * as/hc08/Makefile.in,
8044         * as/mcs51/Makefile.in,
8045         * as/z80/Makefile.in,
8046         * debugger/mcs51/Makefile.in,
8047         * device/include/Makefile.in,
8048         * device/lib/Makefile.in,
8049         * doc/Makefile,
8050         * link/Makefile,
8051         * link/z80/Makefile.in,
8052         * packihx/Makefile.in,
8053         * sim/ucsim/main_in.mk,
8054         * sim/ucsim/avr.src/Makefile.in,
8055         * sim/ucsim/doc/Makefile.in,
8056         * sim/ucsim/gui.src/serio.src/Makefile.in,
8057         * sim/ucsim/hc08.src/Makefile.in,
8058         * sim/ucsim/s51.src/Makefile.in,
8059         * sim/ucsim/xa.src/Makefile.in,
8060         * sim/ucsim/z80.src/Makefile.in,
8061         * src/Makefile.in,
8062         * support/cpp2/Makefile.in,
8063         * support/librarian/Makefile,
8064         * support/makebin/Makefile: added DESTDIR to the install path proposed
8065         by "Maciej 'Agaran' Pijanka" <agaran AT pld-linux.org>
8066         * doc/sdccman.lyx: added DESTDIR documentation
8067
8068 2004-08-29 Vangelis Rokas (vrokas AT otenet.gr>
8069
8070         * src/pic16/gen.c (genFunction, genEndFunction): fixed return
8071         instruction for interrupt handlers, use fast returns when returning
8072         from high priority interrupts
8073
8074 2004-08-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8075
8076         * src/hc08/gen.c (genAnd, genOr, transferAopAop, rmwWithAop): optimized
8077         code generation
8078         * src/hc08/gen.c (genrshFour, genCpl): fixed bugs
8079         * src/hc08/gen.c (genMultOneByte, genDivOneByte, genModOneByte): fixed
8080         bugs, ported much of Bernhard's code from mcs51
8081         * src/mcs51/gen.c (genSend),
8082         * src/hc08/gen.c (genSend): fixed bug with lost SEND iCodes if more
8083         than one when calling a reentrant function
8084         * device/lib/_mullong.c: defined an alternate struct layout for big
8085         endian ports (hc08)
8086
8087 2004-08-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8088
8089         * src/hc08/gen.c (shiftL2Left2Result): fix for bug-500536 regression
8090         test
8091
8092 2004-08-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8093
8094         * src/SDCCsymt.c (processFuncArgs): make sure parameter types
8095         are sane and complete before asking the port its prefered parameter
8096         passing method (fixes bug #1017633)
8097         * device/lib/hc08/_ret.c: added "data" storage class to _ret2
8098         and _ret3
8099
8100 2004-08-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8101
8102         * src/hc08/gen.c (genPackBitsImmed, genUnpackBitsImmed): fix offset
8103         problem in bitfields >= 8 bits.
8104
8105 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
8106
8107         * src/SDCCsymt.c: undid changes that were not meant to be committed
8108
8109 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
8110
8111         * support/regression/ports/hc08spec.mk: REENTRANT must be reentrant
8112
8113 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
8114
8115         * src/hc08/gen.c (genUminusFloat): fixed bug where only 3 bytes were
8116           copied and wrong bit got inverted
8117
8118 2004-08-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8119
8120         * src/hc08/gen.c (genPointerSet, genFarPointerSet): moved code from
8121         genFarPointerSet into genPointerSet; eliminated genFarPointerSet
8122         * src/hc08/gen.c (genPointerGet, genFarPointerGet): moved code from
8123         genFarPointerGet into genPointerGet; eliminated genFarPointerGet
8124         * src/hc08/gen.c (genPackBitsImmed): generate optimized code for
8125         assignments to bitfields at known addresses
8126         * src/hc08/gen.c (genUnpackBitsImmed): generate optimized code for
8127         reads from bitfields at known addresses
8128         * src/hc08/ralloc.c (packRegisters),
8129         * src/hc08/gen.c (genPointerGet, genUnpackBits, genUnpackBitsImmed,
8130         genhc08Code): optimize pointer get values used as conditionals
8131         * src/hc08/peeph.def: added rules 2e & 2f to optimize bit test
8132         and branch
8133
8134 2004-08-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8135
8136         * src/mcs51/gen.c (genPointerGet, genNearPointerGet, genPagedPointerGet,
8137         genFarPointerGet, genCodePointerGet, genGenPointerGet, genUnpackBits),
8138         * src/mcs51/ralloc.c (packRegisters): optimize pointer get values used
8139         as conditionals
8140
8141 2004-08-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8142
8143         * src/mcs51/peeph.def: peepholes 248.i-m for xdata bitfields
8144
8145 2004-08-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8146
8147         * src/mcs51/ralloc.c (packRegsForOneuse): fixed bug #1012650 and some
8148         related problems
8149
8150 2004-08-21 Bernhard Held <bernhard AT bernhardheld.de>
8151
8152         * sim/ucsim/cmd.src/Makefile.in: run lex only if $(PRJDIR)/devel exists
8153
8154 2004-08-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8155
8156         * src/z80/ralloc.c (packRegsForAssign): ported some bug fixes from the
8157         mcs51 port
8158
8159 2004-08-16 Slade Rich <slade_rich AT users.sourceforge.net>
8160
8161         * src/pic/gen.c: Restored fn genRet as previous fix was incorrect.
8162
8163 2004-08-14 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8164
8165         * src/mcs51/gen.c (genJumpTab): jumptables for more than 16 switch
8166         cases use more compact code.
8167
8168 2004-08-13 Slade Rich <slade_rich AT users.sourceforge.net>
8169
8170         * src/pic/gen.c: Fixed problem with fn returning a variable bigger than a char.
8171
8172 2004-08-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8173
8174         * src/SDCClrange.c (findPrevUse): fixed bug #1007371
8175
8176 2004-08-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8177
8178         * src/SDCCsymt.h,
8179         * src/SDCCsymt.c (changePointer, checkDecl, addSymChain): changed
8180         parameter of changePointer() from symbol* to sym_link*
8181         * src/SDCCast.c (decorateType): call changePointer() for CAST op
8182         * src/SDCCsymt.c (compareType): void* type is castable to other
8183         pointers, but not necesarily an exact match.
8184         * src/SDCCicode.c (geniCodeCast): allow void* casting here since it
8185         is no longer blindly treated as an exact match.
8186         * src/SDCCval.c (valCastLiteral): treat missing type as cast to void
8187
8188 2004-08-12 Slade Rich <slade_rich AT users.sourceforge.net>
8189
8190         * src/pic/glue.c: Added struct initialisation fn printIvalStruct.
8191
8192 2004-08-11 Slade Rich <slade_rich AT users.sourceforge.net>
8193
8194         * src/pic/gen.c,
8195         * src/pic/pcode.c,
8196         * src/pic/ralloc.h,
8197         * src/pic/ralloc.c: Printing rIdx on internal verbose debug.
8198
8199 2004-08-10 Slade Rich <slade_rich AT users.sourceforge.net>
8200
8201         * src/pic/device.c,
8202         * src/pic/device.h,
8203         * src/pic/device.c: Will no longer exit if #pragma maxram has not been defined.
8204
8205 2004-08-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8206
8207         * src/mcs51/gen.c (emitcode): fixed bug #992819
8208
8209 2004-08-05 Maarten Brock <sourceforge.brock AT dse.nl>
8210
8211         * src/pic/ralloc.c (deassignLR): allthough pic port is buggy already,
8212           there's no need to make it worse
8213
8214 2004-08-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8215
8216         * src/mcs51/ralloc.c (deassignLR),
8217         * src/ds390/ralloc.c (deassignLR),
8218         * src/hc08/ralloc.c (deassignLR),
8219         * src/z80/ralloc.c (deassignLR),
8220         * src/pic/ralloc.c (deassignLR),
8221         * src/pic16/ralloc.c (deassignLR),
8222         * src/avr/ralloc.c (deassignLR),
8223         * src/SDCClrange.c (findRecursiveSucc, findRecursivePred, findPrevUse,
8224         rlivePoint): fixed another part of bug #971834
8225
8226 2004-08-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8227
8228         * src/z80/main.c: enabled "critical" keyword
8229         * src/z80/mappings.i,
8230         * src/z80/gen.c (genFunction, genEndFunction): support for interrupt
8231         functions (fixes bug #979646)
8232         * doc/sdccman.lyx: added a subsection explaining z80 interrupt support
8233
8234 2004-08-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8235
8236         * src/mcs51/gen.c (genInline): Add \n for labels, not DOS/WIN dirs
8237           such as c:\mydir.
8238
8239 2004-08-03 Maarten Brock <sourceforge.brock AT dse.nl>
8240
8241         * src/SDCCloop.c (loopInvariants): fixed bug 983545, hope this
8242           doesn't disable too much optimizations
8243
8244 2004-08-02 Slade Rich <slade_rich AT users.sourceforge.net>
8245
8246         * src/pic/glue.c Disabled "WARNING: function 'main' undefined" when -S option is used.
8247
8248 2004-08-02 Maarten Brock <sourceforge.brock AT dse.nl>
8249
8250         * src/SDCClrange.c (rlivePoint): fixed bug 988568, thanks to anonymous
8251
8252 2004-08-02 Slade Rich <slade_rich AT users.sourceforge.net>
8253
8254         * src/pic/gen.c tidied up tabs
8255         * src/pic/genarith.c tidied up tabs and fixed bug with literal multiple where same register was used for hi and low byte
8256         * src/pic/main.c tidied up tabs
8257         * src/pic/pcode.c tidied up tabs and disabled verbose code generation
8258         * src/pic/pcoderegs.c tidied up tabs
8259         * src/pic/ralloc.c tidied up tabs
8260
8261 2004-07-30 Vangelis Rokas <vrokas AT otenet.gr>
8262
8263         * src/SDCCmem.c (allocGlobal): don't turn S_REGISTER storage class
8264         to S_FIXED for pic16 port and when symbol is not in level 0,
8265         allocate for S_REGISTER storage class and pic16 port, too,
8266         * src/pic16/device.h: prototype for checkSym,
8267         * src/pic16/device.c (pic16_dump_access, checkSym): NEW,
8268         * (pic16_assignConfigWordValue): test the value and the mask to
8269         validate that the value is suitable for the configuration word,
8270         * src/pic16/glue.c (pic16_printIvalFuncPtr): use 'externs' to
8271         collect extern declared symbols, don't emit symbol twice, check
8272         first if symbol is in publics set first,
8273         * src/pic16/main.c (_pic16_keywords[]): added keyword 'register',
8274         * added command line '--fstack' which enables an experimental
8275         feature for stack access, too buggy to be used yet...
8276         * src/pic16/ralloc.c (pic16_accessregWithName): NEW,
8277         * (pic16_allocDirReg): when register has storage class S_REGISTER
8278         allocate in pic16_dynAccessRegs,
8279         * device/include/pic16/pic18f????.h: modified configuration word
8280         naming convention, words started as CONFIG0H but should be CONFIG1H
8281
8282 2004-07-29 Maarten Brock <sourceforge.brock AT dse.nl>
8283
8284         * device/include/mcs51reg.h: fixed bug 970993
8285
8286 2004-07-27 Maarten Brock <sourceforge.brock AT dse.nl>
8287
8288         * added lib/calloc.c, lib/free.c, lib/realloc.c, include/stddef.h
8289         * updated lib/malloc.c, lib/libsdcc.lib, lib/Makefile.in, include/malloc.h
8290         * src/SDCC.lex (doPragma): added pragma disable_warning <nnn>
8291         * src/SDCCmain.c (parseCmdLine): added option --disable-warning <nnn>
8292         * src/ds390/gen.c (genPlusIncr): fixed bug when incrementing generic pointers
8293         * support/Util/SDCCerr.c (vwerror): suppress disabled warnings and output
8294           error/warning numbers,
8295           added function setWarningDisabled()
8296         * support/Util/SDCCerr.h: added setWarningDisabled() and MAX_ERROR_WARNING
8297         * support/regression/ports/mcs51-stack-auto/spec.mk: added dependencies
8298           _memcmp.c _memmove.c calloc.c realloc.c free.c
8299         * support/regression/tests/malloc.c: added tests for new functionality
8300         * support/regression/tests/zeropad.c: added tests for truncated initializers
8301           and initialized char arrays starting with '\x0'
8302         * src/mcs51/peeph.def: fixed regression, added peephole 177.f
8303
8304 2004-07-26 Bernhard Held <bernhard AT bernhardheld.de>
8305
8306         * support/valdiag/tests/overflow.c: fixed warning on (1 >> 40)
8307
8308 2004-07-26 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8309
8310         * doc/sdccman.lyx: updated example in section "Absolute Addressing"
8311         * src/mcs51/peeph.def: added contributed fix for "bug" #995347 as
8312         peephole 177.e. Thanks to anonymous
8313
8314 2004-07-25 Vangelis Rokas <vrokas AT otenet.gr>
8315
8316         * src/pic16/glue.c (pic16_printIvalFuncPtr): when an extern
8317         function isn't used in the source but referenced as a
8318         variable initializer then declare it as extern in .asm file
8319
8320 2004-07-24 Vangelis Rokas <vrokas AT otenet.gr>
8321
8322         * .version: increased version number to 2.4.3
8323
8324         Adding version extension according to ChangeLog CVS revision
8325         * src/Makefile.in (target all): added dependency 'version.h'
8326         * (rule version.h): added rule to create version.h from ChangeLog,
8327         * (rule dep): added dependency version.h,
8328         * src/version.awk: AWK script to create version.h
8329         * src/SDCCdwarf2.c (dwWriteModule),
8330         * src/SDCCglue.c (initialComments),
8331         * src/SDCCmain.c (printVersionInfo): modified to write after
8332         version string the version extension number,
8333         * src/SDCCutil.c: included "version.h"
8334         * (getBuildNumber): NEW, returns SDCC's ChangeLog minor revision
8335         number,
8336         * src/SDCCutil.h: added prototype for getBuildNumber
8337
8338         * src/SDCCmain.c (parseCmdLine): when sOpt is 'I' add rest in
8339         includeDirsSet, too,
8340         * src/SDCCsymt.c (checkSClass): don't emit error when a variable,
8341         const char [] is found in function prototype...
8342
8343         * src/pic16/genarith.c (pic16_genUMult8XLit_8): optimization to omit
8344         moving to WREG with source is already in WREG,
8345         * src/pic16/gen.h: added AOP_FSR0 and AOP_FSR2 in enum,
8346         * src/pic16/gen.c (getFreePtr): updated to look for FSR0 and FSR2,
8347         * (aopForSym): stack'ed symbols are partially supported, added
8348         if-clause to support symbols in FARSPACE,
8349         * (sameRegs): added test for AOP_ACC to see if registers are same,
8350         * (pic16_freeAsmop): added case for AOP_FSR0 and AOP_FSR2,
8351         * (pic16_aopGet): added case for AOP_FSR0 and AOP_FSR2,
8352         * (pic16_popRegFromString): will not allocate a new register if it
8353         doesn't find one by name, bug may have introduced...
8354         * (pic16_popGet): added case for AOP_FSR0 and AOP_FSR2,
8355         * (genIpush): revived to use pic16 port's stack,
8356         * (genAddrOf): added incomplete case for stack'ed operand,
8357         * (genCast): optimized a pair of MOVFW,MOVWF to MOVFF
8358         * src/pic16/genutils.c (pic16_genNot): almot new vesrion for NOT,
8359         can handle multibyte operands,
8360         * src/pic16/glue.c (pic16_printIval*): some debug info added,
8361         * (pic16initialComments): added message for MPLAB compatibility
8362         mode enabled,
8363         * src/pic16/main.h: prototype for pic16_mplab_comp,
8364         * src/pic16/main.c (pic16_optionsTable): new option --mplab-comp,
8365         which enabled MPLAB compatibility mode (i.e. no #LINE/#FILE, BANKED)
8366         * (_pic16_linkEdit): NEW, handles link stage, transferred here
8367         because of increased complexity of procedure,
8368         * (_process_pragma): stack pragma changed to format 'stack pos len',
8369         emit symbol '_stack_end' to conform with gplink,
8370         * src/pic16/pcode.c (pic16_newpCodeOpBit): using pic16_regWithName
8371         to search for register,
8372         * (pic16_get_op, pic16_get_op2): added case for PO_W, PO_WREG and
8373         PO_GPR_REGISTER,
8374         * (pic16_pCode2str): when in MPLAB compatibility mode, comment out
8375         #LINE directives and replace 'B' with 'BANKED' in instruction opcodes
8376         * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): added
8377         case for PO_GPR_REGISTER,
8378         * (pic16_AnalyzeBanking): removed the old message for inc2h.pl, past
8379         dies, the new era is ahead !...
8380         * src/pic16/ralloc.c: added hash reposits pic16_dynAllocRegNames and
8381         pic16_dynInternalRegs,
8382         * (pic16_allocregWithName, pic16_procregWithName, pic16_regWithname): NEW,
8383         * (pic16_allocDirReg): minor optimizations and bug fixes,
8384         * (pic16_allocWithIdx): when searching pic16_dynProcessorRegs use fixed,
8385
8386         * device/lib/pic16/startup/crt0*.c: extern definition of stack_end,
8387         load stack and frame pointer with address of 'stack_end' symbol
8388
8389 2004-07-23 Vangelis Rokas <vrokas AT otenet.gr>
8390
8391         * src/pic16/glue.c (pic16emitStaticSeg): fixed bug with files
8392         without source code but only variable initializers
8393
8394 2004-07-20 Vangelis Rokas <vrokas AT otenet.gr>
8395
8396         * src/pic16/glue.c (pic16emitRegularMap): unused functions marked as
8397         external are not declared as extern to reduce overhead while linking
8398
8399 2004-07-20 Maarten Brock <sourceforge.brock AT dse.nl>
8400
8401         * src/SDCCast.c (decorateType): removed buggy fix for bug #979599
8402
8403 2004-07-11 Maarten Brock <sourceforge.brock AT dse.nl>
8404
8405         * src/SDCCglue.c (printIvalArray): fixed bug #984229, thanks to Phuah
8406           Yee Keat for the patch
8407         * src/SDCCast.c (decorateType): fixed bug #979599
8408         * src/ds390/gen.h: removed local fReturnSizeDS390
8409         * src/ds390/gen.c: made fReturnSizeDS390 signed short to remove a warning
8410         * src/ds390/gen.c (genAnd, genOr, genXor),
8411         * src/mcs51/gen.c (genAnd, genOr, genXor): generate better optimized code
8412
8413 2004-07-04 Vangelis Rokas <vrokas AT otenet.gr>
8414
8415         * src/SDCCmain.c (linkEdit): modifications only for pic16 port,
8416         add relFilesSet to $3, manipulate $2 to handle linking of object
8417         files without source files in command line,
8418         * device/include/pic16 (all headers): added ID location macros,
8419         * src/pic16/device.c (struct PIC16_device Pics16[]): added field
8420         entries for ID location bytes,
8421         * (pic16_assignIdByteValue): NEW,
8422         * src/pic16/device.h: new structures idRegInfo_t and idBytesInfo_t,
8423         added field dumpcalltree to pic16_options_t,
8424         * src/pic16/gen.c (genCmp): fixed bug case so a temporary register
8425         is used instead of pic16_Gstack_base_addr, check if (ifx) before
8426         emitting rFalseIfx label after check_carry label,
8427         * src/pic16/glue.c (PIC16_IS_IDLOC_ADDRESS, PIC16_IS_HWREG_ADDRESS,
8428         pic16_emitDIRegs), NEW
8429         * (pic16glue): dump .calltree file when option --calltree found,
8430         * src/pic16/main.c (OPTION _pic16_optionsTable): new option --calltree
8431         * (_pic16_genAssemblerPreamble): emit ID locations after
8432         configuration registers,
8433         * (pic16_linkCmd): modifications of the link command,
8434         * src/pic16/pcode.c (pic16_pciMOVFF): PCC_REGISTER replaces PCC_REGISTER2
8435         * (pic16_pCodeInitRegisters): don't init stack registers,
8436         * (pic16_findPrevInstruction): fixed bug,
8437         * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): fixed
8438         bug with immediate registers,
8439         * (buildCallTree): traces stack push and pop,
8440         * (pct2): dump also stack usage for each function,
8441         * src/pic16/ralloc.c (dynrIdx): registers names start from 0x00
8442         * (pic16_allocDirReg): various modifications,
8443         * (pic16_typeRegWithIdx): when searching pic16_dynProcessorRegs set
8444         fixed to 1,
8445
8446 2004-07-02 Vangelis Rokas <vrokas AT otenet.gr>
8447
8448         * src/pic16/pcode.c: removed buggy double colon
8449
8450 2004-07-01 Borut Razem <borut.razem AT siol.net>
8451
8452         * support/scripts/sdcc.nsi: added include/pic16 to setup
8453
8454 2004-06-30 Vangelis Rokas <vrokas AT otenet.gr>
8455
8456         * device/lib/Makefile.in: fixed bug in target objects-pic16,
8457         * device/lib/pic16/Makefile: prefixed with dash (-) command under
8458         target 'clean',
8459         * doc/sdccman.lyx: changed version to 2.4.2 and added some port
8460         specific command line arguments. Also added sample lkr script
8461         for placing a variable at a specific memory bank.
8462         * src/pic16/device.c (pic16_dump_gsection): NEW, to dump variables
8463         at a specific memory bank,
8464         * (pic16_dump_isection): fixed bug which caused string literals to
8465         be omitted when dumping idata section,
8466         * (pic16_groupRegistersInSection): added code to handle registers
8467         in specific memory banks,
8468         * src/pic16/gen.c: labelOffset is prefixed with pic16_ and made
8469         public, all references are renamed too,
8470         * (pic16_aopGet): removed switch cases for AOP_R0,AOP_R1,AOP_DPTR,
8471         AOP_DPTR2,
8472         * (pic16_storeForReturn): added case to handle when dest is WREG,
8473         * src/pic16/genarith.c (pic16_pCodeOpSubType): NEW,
8474         * src/pic16/glue.c (pic16emitRegularMap): when adding a register in
8475         pic16_rel_udata, check to see if that register is marked as being
8476         a member of a specific memory bank,
8477         * (pic16_printIvalCharPtr): added code to add string literals either
8478         to code or the idata sections,
8479         * src/pic16/main.c (_process_pragma): added \n to WHITE constant,
8480         also accept the 'udata' pragma,
8481         * src/pic16/main.h: new structure types sectName and sectSym
8482         * src/pic16/pcode.c: added new pCodeInstruction entry for BANKSEL
8483         * (newpCodeOpBit): added PIC_OPTYPE subt in function prototype,
8484         * (pic16_findPrevInstruction): fixed, it returned nothing,
8485         * (insertBankSwitch): fixed to emit banksel/skip and skip/banksel
8486         instruction combinations,
8487         * (pic16_FixRegisterBanking): heavily reorganised,
8488         * (pic16_AnalyzeBanking): if generating banksel directives is
8489         disabled, then don't call FixRegisterBanking at all,
8490         * src/pic16/ralloc.c (bitEQUs, aliasEQUs, allDefsOutOfRange):
8491         completely removed,
8492         * (pic16_writeUsedRegisters): added call to pic16_dump_gsection
8493
8494 2004-06-29 Bernhard Held <bernhard AT bernhardheld.de>
8495
8496         * src/SDCCglue.c (printChar): fixed bug #973350, patch provided by
8497         Phuah Yee Keat <yk.phuah AT nestac.com>
8498
8499 2004-06-28 Vangelis Rokas <vrokas AT otenet.gr>
8500
8501         * src/pic16/glue.c (pic16createInterruptVect): function now emits
8502         correctly the IVT even if it is relocated to some other location
8503
8504 2004-06-28 Vangelis Rokas <vrokas AT otenet.gr>
8505
8506         * device/include/pic16/pic18fregs.h: added case for pic18f2220.h
8507         * device/include/pic16/pic18f2220.h: NEW,
8508         * device/lib/pic16/libdev/pic18f2220.c: NEW,
8509         * device/lib/pic16/libdev/Makefile: added 18f2220 in DEVS,
8510         * src/pic16/device.c (struct Pics16): added info for 18f2220,
8511         * src/pic16/device.h (struct pic16_options): added ivt_loc and
8512         nodefaultlibs, ivt_loc is the location of the interrupt vector
8513         table, and nodefaultlibs signs that default libraries should not be
8514         linked in link stage,
8515         * src/pic16/gen.c (genFunction): relocate interrupt vector functions
8516         according to --ivt-loc argument,
8517         * src/pic16/main.c (_process_pragma): emit '_stack' as public symbol
8518         when pragma stack is found,
8519
8520 2004-06-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8521
8522         * src/mcs51/peeph.def: added peepholes 182.d (return 0.0),
8523         256 (range check), 257 (do while), 258.a-f (bit banging
8524         f.e. on 3-wire SPI bus)
8525
8526 2004-06-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8527
8528         * src/SDCClrange.c (findNextUseSym): fixed a live range bug with
8529         variables used exclusively within a loop
8530
8531 2004-06-21 Bernhard Held <bernhard AT bernhardheld.de>
8532
8533         * src/mcs51/gen.c (genCpl): quick fix for bug #974835
8534
8535 2004-06-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8536
8537         * src/SDCClrange.c (computeClash): fixed bug #971834
8538
8539 2004-06-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8540
8541         * src/mcs51/gen.c (genCmp): fixed bug #975903
8542         * src/hc08/gen.c (operandsEqu),
8543         * src/ds390/gen.c (operandsEqu),
8544         * src/z80/gen.c (operandsEqu),
8545         * src/pic/gen.c (operandsEqu),
8546         * src/pic16/gen.c (operandsEqu),
8547         * src/mcs51/gen.c (operandsEqu): fixed bug #976283
8548         * src/SDCCmain.c (parseCmdLine): report --unknown-option only once
8549
8550 2004-06-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8551
8552         * src/SDCCcse.c (cseBBlock): fixed bug #966963
8553
8554 2004-06-12 Vangelis Rokas <vrokas AT otenet.gr>
8555
8556         * src/pic16/gen.c (genPointerGet): added E_INTERNAL_ERROR for
8557         default case in switch statement,
8558         * glue.c (pic16_initPointer): expr is initialised via decoarteType
8559         to eliminate problem with initialisation of pointers, but problem
8560         still exists,
8561         * (pic16_pointerTypeToGPByte): removed, no needed for pic16,
8562         * (emitStaticSegment): removed various lines emitting debug info,
8563         * src/pic16/pcode.c, src/pic16/pcode.h, src/pic16/ralloc.h:
8564         added processor registers for utilizing EEPROM,
8565         * src/pic16/pcode.c (pic16_emitDB): number of DBs emitted is not
8566         configurable and set 8
8567
8568 2004-06-08 Vangelis Rokas <vrokas AT otenet.gr>
8569
8570         * .version: increased version number to 2.4.2,
8571
8572         Cumulative patch for pic16 port
8573         * src/pic16/device.c: changed scheme to dump initial values for
8574         variables in idata segment, all print_idata* functions were removed,
8575         now the pic16_printIval* will be called,
8576         * src/pic16/glue.c: (pic16_initPointer, pic16_pointerTypeToGPByte,
8577         * _pic16_printPointerType, pic16_printPointerType,
8578         * pic16_printGPointerType, pic16_printIvalArray, pic16_printIvalStruct,
8579         * pic16_printIvalBitFields, pic16_printIvalFuncPtr, pic16_printIvalPtr:
8580         NEW, similar to the respective functions in SDCCglue.c,
8581         * src/pic16/pcode.c (pic16_emitDB, pic16_flushDB): reverted to old
8582         way, emitting hex bytes,
8583         * (pic16_emitDS): NEW, emits a string for pointer initialisation,
8584
8585 2004-06-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8586
8587         * src/avr/ralloc.c (serialRegAssign),
8588         * src/xa51/ralloc.c (serialRegAssign),
8589         * src/pic/ralloc.c (serialRegAssign),
8590         * src/pic16/ralloc.c (serialRegAssign),
8591         * src/hc08/ralloc.c (serialRegAssign),
8592         * src/z80/ralloc.c (serialRegAssign),
8593         * src/ds390/ralloc.c (serialRegAssign),
8594         * src/mcs51/ralloc.c (serialRegAssign): fixed bug #964479
8595
8596 2004-06-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8597
8598         * src/SDCCicode.c (geniCodeJumpTable): fixed bug #967601
8599         * src/SDCCpeeph.c (labelIsReturnOnly): fixed bug #966505
8600
8601 2004-06-07 Vangelis Rokas <vrokas AT otenet.gr>
8602
8603         Cumulative patch for pic16 port:
8604         * src/pic16/device.h (typedef PIC16_device) modified fields for
8605         defining microcontrollers,
8606         * src/pic16/device.c: added new info for all devices in Pics16 array,
8607         * src/pic16/gen.c (genPcall): fixed bug that caused the return label
8608         to be optimised out by the pCode optimiser,
8609         * src/pic16/glue.c (pic16emitRegularMap): treat implicit aggragates
8610         specially, bug reported by G.M. Gallant,
8611         * src/pic16/pcode.c (pic16_newpCodeLabelFORCE): NEW, marks a label
8612         as force'd so that cannot be optimised out by pCode optimiser,
8613         * src/pic16/pcode.c,
8614         * src/pic16/pcodepeeph.c,
8615         * src/pic16/pcoderegs.c: many modifications to re-enable peepholes,
8616         they are disabled by default, but can be enabled explicit with
8617         command argument --denable-peeps, for testing,
8618         * device/lib/pic16/startup/Makefile: added --no-peep,--pomit-config-words,
8619         --pomit-ivt in COMPILE_FLAGS
8620
8621 2004-06-06 Maarten Brock <sourceforge.brock AT dse.nl>
8622
8623         * src/pic16/pcode.c (pic16_emitDB): removed double semicolon which fails
8624           compilation on MSVC
8625
8626 2004-06-06 Maarten Brock <sourceforge.brock AT dse.nl>
8627
8628         * device/include/sab80515.h: added sfr P6, changed GPL to LGPL
8629
8630 2004-06-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8631
8632         device/include/sab80515.h: fixed bug #967492, DAPR is defined at adress
8633         0xd8, but the correct adress is 0xda. Thanks to anonymous for reporting
8634
8635 2004-06-06 Vangelis Rokas <vrokas AT otenet.gr>
8636
8637         * src/pic16/device.c (pic16_assignConfigWord): fixed bug that
8638         would only assign 0x300001 register.
8639
8640 2004-06-05 Vangelis Rokas <vrokas AT otenet.gr>
8641
8642         * device/lib/pic16/startup/Makefile: added $(MODELFLAGS)
8643         in COMPILE_FLAGS. Thanks to G. Gallant for report.
8644
8645 2004-06-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8646
8647         * doc/sdccman.lyx: minor changes, mentioned beta vendor support
8648         for ds80c400
8649         * src/mcs51/peeph.def: ran unexpand -a over peeph.def
8650         * src/mcs51/peeph.def: removed obsolete peephole 100.a,
8651         added peephole 254 (left shift), 255 (jump table)
8652
8653 2004-06-04 Vangelis Rokas <vrokas AT otenet.gr>
8654
8655         * device/lib/Makefile.in: removed comment line with model-pic16,
8656         * (target port-specific-objects-pic16): the libraries and objects
8657         are copied to the build directory form the device/lib/pic16/bin
8658         directory
8659
8660         Cumulative patch concerning pic16 port:
8661         * library directory has been re-organized,
8662         * added support for PIC18F1220,
8663         * added headers and library sources for chips 18f1220,18f6520,
8664         18f6620,18f6680,18f6720,18f8520,18f8620,18f8680,18f8720
8665
8666         * configuration registers setting has changed, now each supported
8667         device has a complete description of the registers it uses,
8668         * all initialisations are moved to idata sections, these section
8669         can be absolute or relocatable,
8670         * fixed initialisation of codespace variables,
8671         * fixed warning about PCLATU and gpsim,
8672         * src/pic16/gen.c (genCmp): now can handle partially iCodes with no ifx,
8673         * (genAssign): use table reads when assigning from variables in codespace,
8674         * src/pic16/glue.c (pic16emitStaticSeg): fixed to correctly initialise
8675         char/int variables placed in codespace,
8676         * (pic16_emitConfigRegs): NEW, emits a list with configuration
8677         registers set in .asm file, no need for --pomit-config-words anymore,
8678         * (pic16glue): some 8051 legacy segments are commented out
8679         (to be removed completely),
8680         * added support for alternative assembler and linker with --asm=
8681         and --link= command line arguments,
8682         * peepholes are disabled automatically in the port, no need to
8683         specify on command line,
8684         * port supports natively char/int/long multiplication, but converts
8685         all divisions to support functions,
8686         * main.c: pic16_linkCmd and pic16_asmCmd changed to force output
8687         to the file set in variable $2,
8688         * pcode.c (pic16_emitDB, pic16_flushDB): modified to print printable
8689         strings in ASCII format and not in hex,
8690         * ralloc.c (serialRegAssign): added a triplet of conditional calls
8691         to pic16_allocDirReg for IC_RESULT, IC_LEFT and IC_RIGHT so to
8692         allocate proper register if iCodes aren't temporary,
8693
8694 2004-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
8695
8696         * support/regression/tests/zeropad.c: added TEST_G macro for alpha
8697
8698 2004-06-02 Vangelis Rokas <vrokas AT otenet.gr>
8699
8700         * src/pic16/gen.c (genPcall): warning about gpsim and PCLATU
8701         is commented out
8702
8703 2004-06-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8704
8705         * src/hc08/gen.c (genPointerGetSetOfs): disabled optimization if
8706         computed address is reused
8707         * src/hc08/gen.c (genPackBits): fixed offsets in assignments to
8708         multi-byte bitfields
8709
8710 2004-06-01 Maarten Brock <sourceforge.brock AT dse.nl>
8711
8712         * src/z80/gen.c: (genArrayInit): must check for pointers too
8713
8714 2004-06-01 Maarten Brock <sourceforge.brock AT dse.nl>
8715
8716         * support/regression/tests/zeropad.c: never meant to commit the
8717           nestedstruct test: removed, added check for GCC version
8718
8719 2004-05-31 Maarten Brock <sourceforge.brock AT dse.nl>
8720
8721         * src/SDCCast.c (createIvalArray): fixed bug 770487 SIGSEGV
8722         * src/SDCCglue.c (emitRegularMap): fixed bug 770484 allocation problem
8723         * src/SDCCglue.c (initPointer, printIvalType, printIvalStruct,
8724           printIvalArray, printIvalFuncPtr, printIvalPtr, printIval): fixed
8725           bugs 928906 and 954082 half-empty initializers
8726         * src/SDCCsymt.h,
8727         * src/SDCCsymt.c (getAllocSize): added for above fix
8728         * src/z80/gen.c (genArrayInit): fixed bug 741044
8729         * support/regression/tests/zeropad.c: added tests
8730
8731 2004-05-30 Vangelis Rokas <vrokas AT otenet.gr>
8732
8733         * src/pic16/device.c (pic16_dump_section): corrected bug which
8734         caused some symbols of the libraries to be misplaced
8735
8736 2004-05-28 Vangelis Rokas <vrokas AT otenet.gr>
8737
8738         * src/pic16/glue.c,
8739         * src/pic16/ralloc.h,
8740         * src/pic16/ralloc.cc: prefixed IS_CONFIG_ADDRESS with PIC16_
8741         to fix conflict with pic port
8742
8743 2004-05-28 Vangelis Rokas <vrokas AT otenet.gr>
8744
8745         * src/pic16/glue.c (pic16emitStaticSeg): do not print as publics or
8746         externs configuration variables,
8747         * src/pic16/ralloc.h,
8748         * src/pic16/ralloc.cc: IS_CONFIG_ADDRESS is made public and added
8749         prototype in header, commented out some debug messages
8750
8751 2004-05-26 Vangelis Rokas <vrokas AT otenet.gr>
8752
8753         * src/pic16/glue.c,
8754         * src/pic16/main.c,
8755         * src/pic16/pcode.c: added gpasm directives #FILE/#LINE
8756         for gpasm COFF object generation. Thanks to D. Hawkins for
8757         his patch info
8758
8759 2004-05-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8760
8761         * src/ds390/main.c,
8762         * src/mcs51/main.c: fixed sort order of mnemonics (thanks to Maarten
8763         Brock for spotting this)
8764         * src/ds390/gen.c (genEndFunction),
8765         * src/mcs51/gen.c (genEndFunction): always save psw if function is an
8766         interrupt handler and critical. Disable push/pop optimizations when
8767         peephole optimizations disabled.
8768
8769 2004-05-25 Vangelis Rokas <vrokas AT otenet.gr>
8770
8771         Updated pic16 library sources and headers.
8772         * device/lib/pic16/pic18f*/ ,
8773         * device/include/pic16/*.h: modified to handle structured SFR
8774         definitions
8775
8776 2004-05-25 Vangelis Rokas <vrokas AT otenet.gr>
8777
8778         * src/port.h (PORT structure): added hook initPaths, now each
8779         port can declare its own default search paths,
8780         which can been seen with the --print-search-dirs option,
8781         see pic16 port for example,
8782         * src/SDCCmain.c (setBinPaths, setIncludePaths, setLibPath,
8783         setDataPaths): test to options.printSearchDirs is ifdef'ed out,
8784         * (doPrintSearchDirs): NEW, replaces in a central manner the
8785         printing of search dirs which was split in set*Paths functions,
8786         * (main): added call to port->initPaths and doPrintSearchDirs,
8787         * src/avr/main.c,
8788         * src/ds390/main.c,
8789         * src/hc08/main.c,
8790         * src/izt/i186.c,
8791         * src/izt/tlcs900h.c,
8792         * src/mcs51/main.c,
8793         * src/pic/main.c,
8794         * src/pic16/main.c: modified port structures to reflect addition of
8795         initPaths hook,
8796
8797         * src/pic16/device.c (regCompare): registers are finally sorted by name,
8798         * (pic16_dump_section): for registers in same address reserve memory once,
8799         * src/pic16/device.h (struct PIC16_device): changed variable gen_banksel
8800         to no_banksel,
8801         * src/pic16/genarith.c (pic16_genPlus): added code to handle cases where
8802         result is greater in size than right or left,
8803         * (pic16_genUMult8X8_8): there are some cases where the result can
8804         be 16 bits size, so handle these,
8805         * src/pic16/gen.c: changed some pic16_emitpcomment to DEBUGpic16_emitcode,
8806         * (pic16_outBitC): modified to emit pcodes,
8807         * (pic16_storeForReturn): using is_LitOp to see if operand is literal
8808         or not,
8809         * (genDivOneByte): implemented algorithm to divide 8-bits,
8810         * (genCmp): uncommented goto, but issues still exist,
8811         * (genAnd): fixed a bug with variables >8bits,
8812         * (genPackBits): optimization added that uses BCF/BSF to change a
8813         single bit,
8814         * (genAssign): fixed bug when assigning floating point literals,
8815         * src/pic16/glue.c (pic16glue): added assembler directive 'code' before
8816         __sdcc_gsinit_startup label,
8817         * src/pic16/main.c (_pic16_init): removed search directory
8818         initialisations,
8819         * (_pic16_initPaths): NEW, used to initialise search directories,
8820         * (_hasNativeMulFor): support functions for all except char/int
8821         multiplication, and char division,
8822         * (PIC16_port struct): modified entry for native mul support,
8823         * src/pic16/pcode.c (insertBankSwitch): modified to support the renamed
8824         no_banksel option,
8825         * (buildCallTree): call to register_usage is ifdef'ed out,
8826
8827 2004-05-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8828
8829         * device/include/string.h: applied Stas Sergeev's patch to make this
8830         header file compatible with the preprocessor -Wundef option
8831         * src/SDCCmain.c (main): abort compilation if preprocessor reports
8832         failure (fixes bug #941458)
8833
8834 2004-05-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8835
8836         * src/SDCCopt.c (killDeadCode): fixed bug #907733
8837         * support/Util/SDCCerr.c: reworded E_AUTO_ASSUMED diagnostic to clarify
8838         that the variable, not the function, should be static
8839         * src/SDCCval.c (valCastLiteral): fixed bit initialization from literal
8840         to be consistent with non-literal case
8841
8842 2004-05-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8843
8844         * src/SDCCast.c (isConformingBody): fixed bug #949967
8845         * src/SDCCopt.c (cnvToFcall, cnvToFloatCast, cnvFromFloatCast,
8846         convilong): fixed bug #952086
8847
8848 2004-05-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8849
8850         * src/SDCCmem.c (allocVariables): fixed bug #955321
8851
8852 2004-05-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8853
8854         * src/hc08/main.c (_hc08_genAssemblerEnd),
8855         * src/SDCCdwarf2.c (dwOpenFile, dwCloseFile, dwWriteFunction,
8856         dwWriteModule, dwWriteCLine, dwWriteALine, dwarf2FinalizeFile):
8857         completely eliminated the use of a temporary file
8858         * src/SDCCdwarf2.c (dwWriteAttr): fixed bug with location list offset
8859         when more than one file linked
8860         * src/SDCCloop.c (pointerAssigned): fixed bug #954163
8861
8862 2004-05-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8863
8864         * src/SDCCval.c (valForArray): applied Maarten Brock's patch #947682
8865         which fixes bug #543481
8866         * support/regression/tests/bug-751703.c: fixed comments left from a
8867         cut and paste error
8868         * src/SDCCdwarf2.c (dwCloseFile): don't explicitly close a temp file
8869         * src/SDCCdwarf2.c (dwTagFromType): added bitfield support
8870         * src/SDCCdwarf2.c (dwWriteSymbolInternal): handle extern within local
8871         scopes
8872         * src/SDCCdwarf2.c (dwWriteLineNumber): line number deltas are signed
8873         * src/SDCCmain.c (processFile, parseCmdLine): non-alphanumeric chars
8874         are now changed to underscores in moduleName
8875
8876 2004-05-15 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8877
8878         * as/mcs51/lkmem.c: better fix for bug #954173
8879
8880 2004-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
8881         committed by Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8882
8883         * device/include/c8051f020.h: newly added SiLabs (Cygnal) header file
8884         * device/include/c8051f000.h,
8885         * device/include/c8051f120.h,
8886         * device/include/c8051f300.h,
8887         * device/include/c8051f310.h,
8888         * device/include/c8051f320.h: updated (added _XPAGE, CAPN, CAPP,
8889         PWM16) and detab'ed
8890
8891 2004-05-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8892
8893         * doc/sdccman.lyx: mentioned sourceforge's delay between web frontend
8894         and mailing lists, doc'ed --no-peep-comments, removed reference
8895         to knoppix (newest version has no LyX/LaTeX), other minor changes
8896         * src/SDCCglue.c (glue): save 2 bytes stack space with
8897         option --main-return. The ljmp could probably be avoided too
8898
8899 2004-05-14 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8900
8901         * as/mcs51/lkmem.c, as/mcs51/lkaomf51: fixed bug 954173
8902
8903 2004-05-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8904
8905         * src/SDCCsymt.h: added IS_AUTO(symbol) test macro
8906         * src/SDCCopt.c (isLocalWithoutDef),
8907         * src/SDCCicode.c (operandFromSymbol): use the IS_AUTO test macro
8908         which adds a !IS_EXTERN codition. Fixes bugs #877426 and #751703.
8909         (credit to Maarten Brock for patch #949363, on which this is based)
8910         * support/regression/tests/bug-751703.c: some test cases of extern used
8911         within inner scopes.
8912
8913 2004-05-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8914
8915         * src/SDCCdwarf2.c (dwMatchTypes): structs must have matching
8916         SPEC_STRUCT
8917         * src/SDCCdwarf2.c (dwTagFromType): fix to handle recursive
8918         struct definitions
8919         * src/SDCCdwarf2.c (dwWriteModule, dwNewDebugSymbol, dwWriteEndFunction,
8920         dwWriteLabel): fix to create valid debugger symbols even when
8921         the module name has non-alphanumeric symbols in it
8922         * src/SDCCdwarf2.c (dwWriteSymbolInternal): better detection for
8923         when a variable's allocation has been optimized away
8924
8925
8926 2004-05-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8927
8928         * src/hc08/gen.c (hc08_emitDebuggerSymbol),
8929         * src/hc08/main.c,
8930         * src/mcs51/gen.c (mcs51_emitDebuggerSymbol),
8931         * src/mcs51/main.c,
8932         * src/ds390/gen.c (ds390_emitDebuggerSymbol),
8933         * src/ds390/main.c,
8934         * src/z80/gen.c (z80_emitDebuggerSymbol),
8935         * src/z80/main.c,
8936         * src/pic/gen.c (pic14_emitDebuggerSymbol),
8937         * src/pic/main.c,
8938         * src/pic16/gen.c (pic14_emitDebuggerSymbol),
8939         * src/pic16/main.c,
8940         * src/avr/gen.c (avr_emitDebuggerSymbol),
8941         * src/avr/main.c,
8942         * src/xa51/gen.c (xa51_emitDebuggerSymbol),
8943         * src/xa51/main.c,
8944         * src/SDCCdebug.c (emitDebuggerSymbol),
8945         * src/SDCCdebug.h,
8946         * src/port.h: added a debugger struct to the port struct. Added a
8947         callback for defining debugger symbols
8948
8949         * src/SDCCast.c (createLabel),
8950         * src/SDCC.y (labeled_statement): mark all compiler generated labels
8951         with isitmp = 1
8952         * src/SDCCicode.h,
8953         * src/SDCCicode.c (geniCodeFunctionBody): added a link from the FUNCTION
8954         iCode back to the ast for the function
8955
8956         * src/hc08/ralloc.c (hc08_assignRegisters),
8957         * src/hc08/ralloc.h: define a regs struct for the stack pointer. Removed
8958         unneeded fields from the regs struct.
8959         * src/hc08/gen.c (transferRegReg, genFunction, genEndFunction): use the
8960         pushReg() & pullReg() functions instead of emitcode()
8961
8962         * src/hc08/gen.c (genLabel, genhc08Code),
8963         * src/SDCCdebug.h: Added additional debugger hooks needed for DWARF
8964
8965         * src/cdbFile.c (cdbWriteLabel, cdbWriteScope): Added stubs for unneeded
8966         debugger hooks
8967
8968         * src/hc08/gen.c (genEndFunction, genhc08Code),
8969         * src/hc08/gen.h,
8970         * src/mcs51/gen.c (genEndFunction, gen51Code),
8971         * src/mcs51/gen.h,
8972         * src/ds390/gen.c (genEndFunction, gen390Code),
8973         * src/ds390/gen.h,
8974         * src/z80/gen.c (genEndFunction, genZ80Code),
8975         * src/z80/gen.h,
8976         * src/z80/z80.h,
8977         * src/pic/gen.c (genEndFunction, genpic14Code),
8978         * src/pic/gen.h,
8979         * src/pic16/gen.c (genEndFunction, genpic16Code),
8980         * src/pic16/gen.h,
8981         * src/avr/gen.c (genEndFunction, genAVRCode),
8982         * src/avr/gen.h,
8983         * src/xa51/gen.c (genEndFunction, genXA51Code),
8984         * src/xa51/gen.h,
8985         * src/cdbFile.c (cdbWriteFunction, cdbWriteEndFunction): moved cdb
8986         specific code to cdbFile.c and out of the backend code generators
8987
8988         * as/hc08/lkmain.c (main): removed OMF51 support from link-hc08
8989         * as/hc08/lkarea.c (lnkarea): areas with NOLOAD attribute default
8990         starting address is now 0
8991
8992         * as/hc08/asm.h,
8993         * as/hc08/m08pst.c,
8994         * as/hc08/asmain.c (asmbl): implemented the .sleb128 and .uleb128
8995         assembler directive for DWARF support
8996         * as/hc08/lkelf.c (elf): only increment address when rtflg[] set
8997
8998         * src/src.dsp,
8999         * src/Makefile.in,
9000         * src/SDCCdwarf2.c: preliminary DWARF (ver 2) debugger data generator
9001
9002 2004-05-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9003
9004         * src/hc08/gen.c (genJumpTab, emitcode, genhc08code): fixed stack error
9005         and inappropriate peephole optimization in jump tables
9006
9007 2004-04-30 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9008
9009         * as/hc08/m08pst.c,
9010         * src/SDCCglue.c: sdccopt works for the hc08 port now
9011
9012 2004-04-27 Bernhard Held <bernhard AT bernhardheld.de>
9013
9014         * src/SDCCicode.c (geniCodePreInc, geniCodePreDec): fixed bug #942130
9015
9016 2004-04-27 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9017
9018         * as/hc08/lkelf.c: sdccconf.h is not available in WIN32
9019
9020 2004-04-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9021
9022         * src/SDCCpeeph.c (replaceRule): support empty replacement peephole
9023         rules
9024         * src/SDCCmain.c,
9025         * src/SDCCglobl.h,
9026         * src/SDCCpeeph.c (getPeepLine): new option --no-peep-comments omits
9027         comments from the peephole optimizer replacement rules
9028         * src/SDCCmem.c (printAllocInfoSeg): give actual location of spilled
9029         symbols
9030         * src/SDCCcse.c (updateSpillLocation),
9031         * src/SDCCopt.c (killDeadCode, findReqv): better tracking of register
9032         equivalents
9033         * src/hc08/ralloc.c (regTypeNum): pseudo symbols must be in DATA only
9034         * src/hc08/main.c (_hc08_finaliseOptions): made pointers to stack
9035         objects far pointers
9036
9037 2004-04-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9038
9039         * src/SDCCsymt.h: a missing part of my last change
9040         * src/pic/ralloc.c (regTypeNum),
9041         * src/pic16/ralloc.c (regTypeNum): fixed statement/declaration order
9042
9043 2004-04-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9044
9045         * src/SDCCicode.h,
9046         * src/SDCCicode.c (aggrToPtrDclType),
9047         * src/SDCCptropt.h,
9048         * src/SDCCptropt.c (ptrBaseRematSym, ptrPseudoSymSafe,
9049         ptrPseudoSymConvert),
9050         * src/pic/ralloc.c (regTypeNum),
9051         * src/pic16/ralloc.c (regTypeNum),
9052         * src/hc08/ralloc.c (regTypeNum),
9053         * src/ds390/ralloc.c (regTypeNum),
9054         * src/mcs51/ralloc.c (regTypeNum): check for dependancy hazards before
9055         creating pseudo symbols (fixed bugs #777768, #930484, and #933966)
9056
9057 2004-04-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9058
9059         * link/z80/lkmain.c (afile),
9060         * as/hc08/lkmain.c (afile),
9061         * as/mcs51/lkmain.c (afile): fix suggested by Maarten Brock to
9062         prevent a pointer problem when a filename has no directory and
9063         no extension specified.
9064
9065 2004-04-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9066
9067         * link/z80/lkmain.c (afile): allow periods in directory names
9068         * link/z80/lkmain.c (afile),
9069         * as/mcs51/lkmain.c (afile),
9070         * as/hc08/lkmain.c (afile): allow linker script file to have an
9071         extension other than ".lnk"
9072         * link/z80/lklex.c (getfid),
9073         * link/z80/lkmain.c (parse),
9074         * as/mcs51/lklex.c (getfid),
9075         * as/mcs51/lkmain.c (parse),
9076         * as/hc08/lklex.c (getfid),
9077         * as/hc08/lkmain.c (parse): Support comments in the linker script
9078         file on lines by themselves and after filenames
9079
9080 2004-04-20 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9081
9082         * as/link_hc08.dsp: Added as/hc08/lkelf.c to project.
9083
9084 2004-04-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9085
9086         * src/z80/peeph-z80.def: removed some peephole rules that don't
9087         work with multibyte arithmetic (fixed bug #937126)
9088         * src/mcs51/peeph.def: fixed peephole rules 150-158 to apply only
9089         to registers and not global variables
9090         * src/SDCCicode.c (geniCodeAssign, ast2iCode, geniCodePostInc,
9091         geniCodePreInc, geniCodePostDec, geniCodePreDec,
9092         geniCodeLogicAndOr, geniCodeConditional): enforce strict lvalue
9093         checking for assignments not internally generated (fixed bug #931895)
9094         * src/SDCC.y (postfix_expr): ignore typedefs when looking for a
9095         structure member (fixed bug #930072)
9096
9097 2004-04-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9098
9099         * src/SDCCmain.c (linkEdit),
9100         * src/hc08/main.c (_hc08_parseOptions),
9101         * as/hc08/Makefile.in,
9102         * as/hc08/aslink.h,
9103         * as/hc08/asm.h,
9104         * as/hc08/m08pst.c,
9105         * as/hc08/lkrloc.c (relr, rele),
9106         * as/hc08/lkarea.c (lnkarea)
9107         * as/hc08/lkmain.c (afile, parse),
9108         * as/hc08/lkelf.c: support for ELF output
9109         * as/hc08/lks19.c (s19),
9110         * as/hc08/lkihx.c (ihx): ignore areas with the NOLOAD attribute
9111
9112 2004-04-17 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9113
9114         * as/mcs51/lkihx.c: Fixed bug #899105.
9115
9116 2004-04-16 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9117
9118         * doc/sdccman.lyx: Added instructons on how to convert MSVC .dsw and
9119         .dsp files from Unix to DOS.
9120
9121 2004-04-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9122
9123         * doc/sdccman.lyx: removed the ANSI-C noncompliance note regarding
9124         function pointers; we have been compliant for several months now.
9125         * src/mcs51/ralloc.c (serialRegAssign): enabled part of my 2004-04-13
9126         change that was accidently commented out
9127         * src/mcs51/gen.c (freeAsmop, getFreePtr, freeForBranchAsmop, genIfxJump,
9128         genCmpEq, jmpTrueOrFalse, genCmp, genAnd, genOr, genXor, genIfx): fixed
9129         bug #922319
9130
9131 2004-04-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9132
9133         * src/hc08/gen.c: output of all of the internal debugging information
9134         is now controlled by the D() macro; it is disabled by default
9135
9136 2004-04-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9137
9138         * src/mcs51/ralloc.c (serialRegAssign, fillGaps, allocThisReg): try
9139         harder to keep the same registers during a CAST iCode
9140         * src/SDCCopt.c (optimizeCastCast, eBBlockFromiCode): casts of char to
9141         long via int can be done in a single cast, if the signedness is
9142         correct.
9143         * support/regression/tests/bug-927659.c: fixed to avoid conflict with
9144         putchar() in tinibios.c in ds390's library
9145
9146 2004-04-12 Bernhard Held <bernhard AT bernhardheld.de>
9147
9148         * src/SDCCast.c (decorateType): fixed bug #898889,
9149         cast result of a literal complement too
9150         * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #930931,
9151         fixed check for bitfields
9152
9153 2004-04-11 Bernhard Held <bernhard AT bernhardheld.de>
9154
9155         * src/SDCCicode.c (geniCodeLogic): made it static,
9156         (geniCodeLogicAndOr): added in order to fix bug #905492,
9157         (ast2iCode): fixed bug #905492
9158         * support/regression/tests/bug-905492.c: added
9159         * src/SDCCast.c (decorateType): don't decorate/process parms twice,
9160         (processParms): fixed bug #927659: don't copy parms, this will clear
9161         decorated flag
9162         * support/regression/tests/bug-927659.c: added
9163
9164 2004-03-29 Bernhard Held <bernhard AT bernhardheld.de>
9165
9166         * src/SDCCast.c (addCast): don't cast float to char
9167         * device/lib/libsdcc.lib: added _memmove
9168
9169 2004-03-28 Bernhard Held <bernhard AT bernhardheld.de>
9170
9171         * device/lib/large/Makefile: fixed parallel execution by
9172         replacing `make` by `$(MAKE)`
9173
9174 2004-03-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9175
9176         * src/hc08/gen.c (genPointerGetSetOfs): correctly handle 1 byte array
9177         offsets (fixes bug #923936)
9178
9179 2004-03-26 Bernhard Held <bernhard AT bernhardheld.de>
9180
9181         * device/lib/small/Makefile: fixed parallel execution by
9182         replacing `make` by `$(MAKE)`
9183
9184 2004-03-23 Bernhard Held <bernhard AT bernhardheld.de>
9185
9186         * device/lib/vprintf.c (vsprintf): minor optimization, see bug #801101
9187
9188 2004-03-23  Scott Dattalo  <scott AT dattalo.com>
9189
9190         * src/pic/gen.c (genCpl): multi-byte complements were not working.
9191         * src/regression/Makefile: Regression test was not running.
9192
9193 2004-03-23 Bernhard Held <bernhard AT bernhardheld.de>
9194
9195         * src/SDCCast.c (resultTypePropagate, decorateType): avoid promotion to int for
9196         complement if possible
9197         * src/SDCCval.c (valComplement),
9198         * src/SDCCicode.c (operandOperation): fixed complement of literal
9199         * support/regression/tests/onebyte.c (testComplement): added
9200
9201 2004-03-22 Bernhard Held <bernhard AT bernhardheld.de>
9202
9203         * src/SDCCast.c (processParms): fixed bug #920866; decorateType() can
9204         return an optimized tree; actually replace actParm with the new tree
9205         * src/SDCCast.h: added some parantheses to remove side effects
9206         * support/regression/tests/bug-920866.c
9207
9208 2004-03-21  Scott Dattalo  <scott AT dattalo.com>
9209         * src/pic/gen.c, src/pic/gen.h, src/pic/genarith.c, src/pic/pcode.c:
9210         Bit operands were not being handled properly in the pic14 port.
9211         (now src/regression/add.c passes again).
9212
9213 2004-03-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9214
9215         * src/SDCC.y (labeled_statement): case and default no longer require
9216         a following statement (RFE #893037)
9217
9218 2004-03-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9219
9220         * src/mcs51/gen.c (pushSide, genSignedRightShift, genDjnz, geniPush):
9221         use MOVA macro to avoid "mov a,acc" when peephole optimizer is
9222         disabled (fixes bug #916294)
9223         * sim/ucsim/s51.src/mov.cc (inst_mov_a_addr): Throw an error on
9224         "mov a,acc"; patch provided by Lenny Story
9225         * device/include/mc68hc908gp32.h: header contibuted by Juan Gonzalez
9226
9227 2004-03-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9228
9229         * src/mcs51/gen.c (genFunction): optimize RECEIVE in reentrant
9230         functions
9231         * src/ds390/gen.c (genFunction, genEndFunction),
9232         * src/ds390/ralloc.c (ds390_assignRegisters),
9233         * src/mcs51/gen.c (genFunction, genEndFunction, mcs51_assignRegisters):
9234         * src/mcs51/ralloc.c (mcs51_assignRegisters): Skip optimizing registers
9235         pushed if there are parameters passed on the stack. Also, a cleaner
9236         way to decide if r0/r1 should be pushed/popped. (Together they fix
9237         bug #918693)
9238
9239 2004-03-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9240
9241         * doc/sdccman.lyx,
9242         * device/lib/mcs51/crtpagesfr.asm,
9243         * device/lib/mcs51/crtxinit.asm,
9244         * device/lib/mcs51/crtxstack.asm: Changed name of _PAGESFR to _XPAGE
9245         to avoid confusion with Si Lab's SFRPAGE register.
9246
9247 2004-03-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9248
9249         * src/SDCCglue.c (emitMaps): allow public sfr variables
9250         * src/SDCCglue.c (initialComments): include compiler build date
9251         with compiler version and put the timestamp of the generated
9252         assembly file on a serperate line to be less confusing.
9253         * src/port.h: added genInitStartup hook
9254         * src/avr/main.c,
9255         * src/ds390/main.c,
9256         * src/hc08/main.c,
9257         * src/pic/main.c,
9258         * src/pic16/main.c,
9259         * src/xa51/main.c,
9260         * src/z80/main.c: genInitStartup initialize as NULL (default to
9261         historical behaviour)
9262         * src/SDCCglue.c (glue): _sdcc_gsinit_startup is now port specific.
9263         * src/mcs51/main.c: (_mcs51_genInitStartup, _mcs51_genExtraAreas,
9264         _mcs51_genXINIT, _mcs51_genRAMCLEAR): link initialization code from the
9265         library instead of hard coding it into the compiler.
9266         * support/regression/ports/mcs51-stack-auto/spec.mk,
9267         * src/SDCCmain.c (linkEdit): added mcs51.lib to the link libraries
9268         * device/lib/mcs51/Makefile,
9269         * device/lib/small/Makefile,
9270         * device/lib/large/Makefile,
9271         * device/lib/mcs51/crtpagesfr.asm,
9272         * device/lib/mcs51/crtstart.asm,
9273         * device/lib/mcs51/crtxclear.asm,
9274         * device/lib/mcs51/crtxinit.asm,
9275         * device/lib/mcs51/crtclear.asm,
9276         * device/lib/mcs51/crtxstack.asm: move most of the mcs51 C runtime
9277         startup/initialization out of src/SDCCglue.c and src/mcs51/main.c
9278         and into user configurable files.
9279         * device/lib/clean.mk: clean mcs51 directory too
9280         * support/regression/tests/longlit.c: added static to T1 declaration
9281         * doc/sdccman.lyx: documented _PAGESFR sfr for customizing pdata
9282         accesses in the initialization code
9283
9284 2004-03-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9285
9286         * device/include/mc68hc908qy.h: corrected declarations of FLBPR and
9287         OSCTRIMVAL as noted in bug #916008
9288
9289 2004-03-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9290
9291         * src/SDCCloop.c (basicInduction): fixed bug with loop induction
9292         in loops with multiple exits (reported as incorrect registers
9293         used by Martin Helmling in Sdcc-user list)
9294
9295 2004-03-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9296
9297         * src/ds390/main.c (_ds390_genAssemblerPreamble): cosmetic change,
9298         made ds390 register extensions look less like error messages
9299
9300 2004-03-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9301
9302         * src/SDCCglue.c (printIvalPtr): fixed bug with pointer initializer
9303         reported by Adam Wozniak in Sdcc-user list
9304
9305 2004-03-10 Bernhard Held <bernhard AT bernhardheld.de>
9306
9307         * src/SDCCast.c (decorateType): fixed with bug and promotion in
9308         arithmetic optimizations, added debug output
9309
9310 2004-03-09 Bernhard Held <bernhard AT bernhardheld.de>
9311
9312         * device/lib/time.c (mktime): fixed bug reported by Bert Thomas
9313         * sdcc.spec: updated and split sdcc into 3 rpms
9314         * src/SDCCast.c (decorateType): &|^ don't need addCast(); addCast() is
9315         needed for literals of LEFT_OP and '+'
9316         * src/SDCCicode.c (geniCodeLogic): I must have been braindead when I
9317         introduced RESULT_TYPE_NOPROM
9318         (geniCodeMultiply): fixed logic for decision if mul is optimized to
9319         left shift
9320         * src/SDCCsymt.c (computeType): op is int; added RESULT_TYPE_OTHER;
9321         limited promotion to int only for '*'
9322         * src/SDCCsymt.h (computeType): op is int, removed RESULT_TYPE_NOPROM
9323
9324 2004-03-09 Hans Dorn <hjdorn AT users.sourceforge.net>
9325
9326         * src/pic16/gen.c (genSkip),
9327         (genc16bit2lit), (gencjneshort): commented out
9328         (is_LitOp): new helper function, checks operand type
9329         (genCmpEq): rewritten
9330
9331 2004-03-08 Bernhard Held <bernhard AT bernhardheld.de>
9332
9333         * support/regression/tests/bug-908454.c: added
9334
9335 2004-03-07 Bernhard Held <bernhard AT bernhardheld.de>
9336
9337         * src/SDCCast.c (addCast): fixed bug #908454 by promoting bits to char
9338         * src/SDCCicode.c (usualBinaryConversions): op needs int type
9339         (geniCodeCast): cosmetic, don't preserve bit storage class
9340         (geniCodeLeftShift): added promotion
9341         (geniCodeLogic): fixed regression
9342         * src/SDCCsymt.c (computeTypeOr): accept bits too
9343         (compareType): 2nd part of fix for bug #908454, needed for bitfields
9344
9345 2004-03-07  Borut Razem <borut.razem AT siol.net>
9346
9347         * support/Util/findme.c: alloca() replaced with malloc()/free() pair
9348
9349 2004-03-06 Vangelis Rokas <vrokas AT otenet.gr>
9350
9351         * src/pic16/ralloc.c (pic16_genPackRegisters): reverted to old
9352         version of pic16_genPackRegisters which does not check if ic is a
9353         CAST operator,
9354         * src/pic16/gen.c (ifxForOp): disabled new and untested code in
9355         function cause string1.c regression test fails
9356
9357 2004-03-06 Bernhard Held <bernhard AT bernhardheld.de>
9358
9359         * sim/ucsim/configure.in,
9360         * sim/ucsim/configure,
9361         * sim/ucsim/doc/Makefile.in: use docdir
9362         * src/SDCC.y: fixed sbit atrributes
9363         * src/SDCCast.c (getResultTypeFromType): added support for bitfields
9364         * src/SDCCast.c (decorateType): |^& need special promotion handling
9365         * src/SDCCast.h,
9366         * src/SDCCsymt.h: moved definition of RESULT_TYPE
9367         * src/SDCCsymt.h (computeType),
9368         * src/SDCCicode.c: computeType() needs op
9369         * src/SDCCsymt.c (checkTypeSanity),
9370         * doc/sddman.lyx: "plain" bitfields are unsigned
9371         * src/SDCCsymt.c (computeTypeOr): added
9372         * src/SDCCsymt.c (computeType): added support for bitfields, fixed
9373         |^& ops
9374         * src/SDCCval.c (val*): computeType() needs op
9375         * src/SDCCval.c (valCastLiteral): fixed casting of bitfields
9376         * support/regression/tests/onebyte.c: added tests for |^&
9377
9378 2004-03-06 Hans Dorn <hjdorn AT users.sourceforge.net>
9379
9380         * src/pic16/gen.c: (genpic16Code) use copy of printILine's output
9381         for writing icode into asm output.
9382
9383 2004-03-05 Vangelis Rokas <vrokas AT otenet.gr>
9384
9385         * src/pic16/device.c: added some debug lines enabled
9386         with macro DEBUG_CHECK,
9387         * src/pic16/genarith.c: more debug in genPlus,
9388         * (pic16_genUMult8XLit_16, pic16_genUMult8X8_16): removed,
9389         * (pic16_genUMult16X16_16, pic16_genUMult16XLit_16): NEW,
9390         * src/pic16/gen.c: added prototypes for pic16_genMult16X16_16,
9391         * (aopForSym): onStack symbols are re-placed in data memspace,
9392         and onStack flag is cleared,
9393         * (pic16_popGetTempReg, pic16_popReleaseTempReg): modified to
9394         copy temporary pcodeop,
9395         * (genPcall): added warning for not updating PCLATU,
9396         * (genFunction): removed test with IFFUNC_CALLEESAVES, its
9397         always true for pic16 port,
9398         * (genMultOneWord): NEW, supports integer multiplication,
9399         * (genMult): modified to call genMultOneWord,
9400         * (ifxForOp): added warning when return NULL,
9401         * src/pic16/glue.c (pic16emitRegularMap): symbol implicit
9402         flag is set before call to operandFromSymbol for implicit
9403         added structures,
9404         * src/pic16/main.c (_pic16_finaliseOptions): options.float_rent,
9405         options.intlong_rent are set by default,
9406         * (_hasNativeMulFor): modified to allow port generation of integer
9407         multiplication,
9408         * src/pic16/ralloc.c (pic16_allocDirReg): commented out line which
9409         set regtype to REG_SFR for all registers, restricting seting the
9410         accessBank flag for registers 0<= r < 0x80 and 0xf80<=r<=0xfff,
9411
9412 2004-03-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9413
9414         * src/mcs51/peephole.def: added 251.b and 253.x. 253.x are applied
9415         more than 500 times in the regression tests
9416
9417 2004-03-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9418
9419         * support/Util/SDCCerr.h,
9420         * support/Util/SDCCerr.c,
9421         * src/SDCC.y (struct_or_union_specifier, enum_specifier,
9422         enumerator_list),
9423         * src/SDCCsymt.c (addSymChain): show location of oriignal definition
9424         for symbol conflicts.
9425         * support/valdiags/tests/enum.c,
9426         * support/valdiags/tests/tentdecl.c,
9427         * support/valdiags/tests/struct.c: expect possible error messages
9428         referring to original symbol definitions.
9429         * src/SDCC.y (struct_or_union_specifier, struct_declarator),
9430         * src/SDCCsymt.h,
9431         * src/SDCCsymt.c (promoteAnonStructs): support anonymous struct/union
9432
9433 2004-03-03 Hans Dorn <hjdorn AT users.sourceforge.net>
9434
9435         * src/pic16/gen.c (gencjne): fixed for right=REG / left=LIT
9436
9437 2004-02-03 Vangelis Rokas <vrokas AT otenet.gr>
9438
9439         * src/pic16/ralloc.c (newReg): fixed bug #908929
9440
9441 2004-03-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9442
9443         * src/ds390/gen.c: added missing #include "main.h"
9444
9445 2004-03-02 Vangelis Rokas <vrokas AT otenet.gr>
9446
9447         * src/pic16/device.c (checkAddSym): NEW, adds a symbol to set while
9448         checking if symbol is already in set,
9449         * src/pic16/device.h: prototype for checkAddSym,
9450         * src/pic16/gen.c: (_G): added entry interruptvector,
9451         * (assignResultValue): removed some commented out lines,
9452         * (genFunction): check for ISR via sym->type, absolute section for
9453         interrupt code is created via a new pBlock, the goto instruction is
9454         placed now correctly at the interrupt vector position, changed all
9455         references from ivec to _G.interruptvector,
9456         * WREG,STATUS,BSR are not saved in stack upon an entry to interrupt
9457         is the interrupt is a high priority one, same for return from ISR,
9458         * src/pic16/glue.c: changed all calls of addSetHead for publics and
9459         externs to calls of checkAddSym,
9460         * src/pic16/pcode.c (pic16_pBlockConvert2*): emit warning when
9461         pic16_pcode_verbose flag is set,
9462         * src/pic16/pcode.h: extern to pic16_pcode_verbose,
9463         * src/pic16/pcoderegs.c: message about how many registers are saved
9464         will only be emitted if pic16_pcode_verbose flag is set,
9465
9466 2004-03-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9467
9468         * src/ds390/ralloc.h,
9469         * src/ds390/ralloc.c (ds390_regWithIdx),
9470         * src/ds390/gen.c (emitcode),
9471         * src/ds390/main.h,
9472         * src/ds390/main.c (instructionSize, ds390newAsmLineNode, updateOpRW,
9473         ds390opcodeCompare, asmLineNodeFromLineNode, getInstructionSize,
9474         ds390operandCompare, getRegsRead, getRegsWritten,
9475         initializeAsmLineNode): customized instruction size calculation for
9476         ds390, started basis for some register optimizations
9477         * src/ds390/gen.c (gen390Code, emitcode): associate iCodes with
9478         corresponding assembly output
9479         * src/ds390/gen.c (genFunction, genEndFunction): added case to handle
9480         missing push/pop of r0/r1. Optimized push/pops
9481
9482 2004-03-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9483
9484         * src/mcs51/main.c (instructionSize): fixed ACALL size
9485         * src/mcs51/main.c (updateOpRW): fixed bug with @dptr, @a+dptr operands
9486
9487 2004-03-01 Vangelis Rokas <vrokas AT otenet.gr>
9488
9489         * src/pic16/device.c (pic16_dump_section): fixed a bug that allowed
9490         the sorting of rlist with NULL elements
9491         * (print_idataType, print_idata): NEW to create idata sections
9492         * src/pic16/device.h: idataSymSet new variable
9493         * src/pic16/gen.c (genFunction): fixed some bugs in string
9494         comparing, improved the absolute section creation for ISRs,
9495         added FSR0L/FSR0H in registers that are saved in an ISR,
9496         * (genInline): fixed the processing of inline snippets,
9497         now they undergo no process by the peephole optimizer
9498         * src/pic16/glue.c (pic16emitRegularMap): symbols with initialiser
9499         are placed in idataSymSet,
9500         * (pic16emitStaticSeg): extern symbols are added in externs,
9501         * src/pic16/ralloc.c (pic16_allocDirReg): work around to reduce bank
9502         switching when aboslute variables are placed in access bank memory
9503         * (pic16_writeUsedRegs): added call to pic16_dump_idata,
9504         * (packRegsForSupport,packRegsForAccUse,packRegsForOneuse):
9505         commented out with #if,
9506         * (pic16_packRegisters): reintroduce the check for CAST because some
9507         symbols are not correctly handled,
9508         * src/pic16/pcode.h: changed the definition of pCodeAsmDir to hold a
9509         pCodeInstruction instead of pCode,
9510         * src/pic16/pcode.c (pic16_newpCodeAsmDir): modified for the new
9511         pCodeAsmDir definition,
9512         * (pic16_pCode2str, genericPrint): when an AsmDir pcode has a NULL
9513         directive, then the argument directive is emitted without the leading
9514         tab, hack for inline labels which must be in the first column,
9515         * (compareLabel,pic16_findNextInstruction),
9516         * (pic16_findPrevInstruction): added case for PO_ASMDIR,
9517         * (insertBankSwitch): modified for the new pCodeAsmDir,
9518
9519 2004-03-01 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
9520         patch applied by Vangelis Rokas <vrokas AT otenet.gr>
9521
9522         * src/pic16/gen.c (pic16_popGet): case PO_DIR, adds the offset to
9523         instance,
9524         * (pushSide): commented out with #if,
9525         * (assignResultValue): fixed some typos in saving
9526         registers,
9527         * (genPcall): FIXED and sync'ed with genCall,
9528         * (genDataPointerGet,genDataPointerSet): using offset not leoffset
9529         * (genNearPointerGet): fixed to handle some more cases,
9530         implementation scheme via table reads,
9531         * (genConstPointerGet): modified to access code memory correct,
9532         * (genCodePointerGet,genNearPointerSet,genGenPointerSet): modified
9533         and improved to handle some cases
9534         * glue.c (printIvalType,printIvalChar,emitStaticSeg): use "DB"
9535         instead of "RETLW" for init data
9536         * src/pic16/ralloc.c (pic16_allocDirReg): warning when a symbol is
9537         not IN_DIRSPACE, work around to reduce bank switching when aboslute
9538         variables are placed in access bank memory (<0x80 and >=0xf80),
9539         * src/pic16/pcode.c: added SFRs TBLPTR, TABLAT, added opcodes TBLRD,
9540         TBLRD_POSTINC,TBLRD_POSTDEC,TBLRD_PREINC,TBLWT,TBLWT_POSTINC,
9541         TBLWT_POSTDEC,TBLWT_PREINC
9542         * Fixed initialisation of BSR, set "alias" for SSAVE to "0"
9543         * (pic16_emitDB,pic16_flushDB): New functions to generate "DB"
9544         directives
9545         * (pic16_pCodeConstString): use "DB" instead of "RETLW"
9546         * src/pic16/pcode.h: added TBLRD*,TBLWT*, added pic16_emitDB,
9547         pic16_flushDB, made pic16_newpCodeAsmDir public, added TBLPTR, TABLAT
9548         * src/pic16/ralloc.h: added IDX_BSR,IDX_TBLPTR*,IDX_TABLAT
9549
9550 2004-02-29  Borut Razem <borut.razem AT siol.net>
9551
9552         * src/Makefile.in, src/SDCCutil.c, support/Util/findme.c,
9553         support/Util/findme.h, support/Util/system.h: enhance binary relative
9554         search for lib and include by using findProgramPath()
9555
9556 2004-02-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9557
9558         * src/SDCCpeeph.h,
9559         * src/SDCCpeeph.c (pcDistance),
9560         * src/port.h,
9561         * src/mcs51/ralloc.h,
9562         * src/mcs51/ralloc.c (mcs51_regWithIdx),
9563         * src/mcs51/main.h,
9564         * src/mcs51/main.c (instructionSize, asmLineNode, updateOpRW,
9565         mcs51opcodeCompare, asmLineNodeFromLineNode, getInstructionSize,
9566         mcs51operandCompare, getRegsRead, getRegsWritten): made instruction
9567         size calculation port specific, started basis for some register
9568         optimizations
9569         * src/mcs51/gen.c (genFunction, genEndFunction): added case to handle
9570         missing push/pop of r0/r1. Optimized push/pops
9571         * src/mcs51/ralloc.c (packregisters): fixed bug #727095
9572         * device/lib/_modsint.c (_modsint),
9573         * device/lib/_modslong.c (_modslong): fixed sign of result in non-asm
9574         and stack version so regression tests pass
9575
9576 2004-02-26 Bernhard Held <bernhard AT bernhardheld.de>
9577
9578         * src/Makefile.in (dep): include SLIBOBJS in dependency check
9579         * src/SDCCast.c (decorateType): catch another small optimization
9580         with '?' operator
9581         * src/SDCCsymt.c (computeType): added comments and cosmetic changes
9582         * src/SDCCval.c (valMult, valDiv, valMod, valPlus, valMinus, valShift):
9583         modified to finally use computeType() all over SDCC,
9584         see Feature Request #877103
9585         * src/SDCCval.h: cosmetic
9586         * src/SDCCicode.c (operandOperation): fixed EQ_OP bug, now same as in
9587         valCompare(); regression tested in muldiv.c
9588         * support/regression/tests/muldiv.c (testMod): mod sign follows
9589         dividend only
9590
9591 2004-02-23 Bernhard Held <bernhard AT bernhardheld.de>
9592
9593         * src/SDCCast.c (decorateType): fixed bug #902362
9594         * doc/INSTALL.txt: fixed install instructions for win32
9595
9596 2004-02-21 Bernhard Held <bernhard AT bernhardheld.de>
9597
9598         * device/include/Makefile.in (install): fixed by replacing spaces
9599         by tabs
9600         * doc/README.txt,
9601         * doc/INSTALL.txt: updated for release
9602         * doc/sdccman.lyx: added warning for --xstack being buggy
9603
9604 2004-02-20 Bernhard Held <bernhard AT bernhardheld.de>
9605
9606         * src/pic16/ralloc.c (packRegsForAccUse):  disabled functions with #if
9607         to eliminate build warnings.
9608         * src/pic16/gen.c (pic16_popGet): fixed for gcc 2.95.4
9609
9610 2004-02-20 Vangelis Rokas <vrokas AT otenet.gr>
9611            Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
9612
9613         * doc/sdccman.lyx: removed PIC16 from PIC16 Port Specific Options,
9614         removed -penable-stack, added comment for stack pragma, added
9615         warning for not initializing the stack/frame registers, removed
9616         comment at interrupts section
9617
9618         Stack is made permanent, there is no ability to disable stack usage.
9619         * src/pic16/device.h,
9620         * src/pic16/device.c: removed all references to USE_STACK macro,
9621         * src/pic16/device.c (pic16_dump_section): when no elements in
9622         rlist, free rlist before return,
9623         * (pic16_dump_int_registers): NEW, internal registers are a new set
9624         of general purpose registers reused by each function,
9625         * (checkAddReg): returns 1 if registers is added to set,
9626         * (pic16_groupRegistersInSection): when a registers is of type
9627         PO_GPR_TEMP add it in pic16_int_regs and not in pic16_rel_udata,
9628         * src/pic16/device.h: memRange and Assigned Memory are deleted,
9629         SRCASECMP macro is moved here from device.c
9630         * src/pic16/genarith.c (pic16_pCodeOpType): added cases for
9631         PO_PCLATU, PO_PRODL, PO_PRODH,
9632         * (pic16_pCodeOpType, genMinus,
9633         changed compares to "a" register, with AOP_ACC,
9634         * (pic16_genPlus): fixed some bugs and indented properly,
9635         * (pic16_addSign): changed size to size+offset in the MOVWF
9636         instruction,
9637         * (pic16_genUMult8XLit_8): NEW, uses processor MULLW instruction to
9638         multiply 8-bit operand by literal, result is 8-bit,
9639         * (pic16_genUMult8X8_8): NEW, uses processor MULWF instruction to
9640         multiply 2 8-bit operand, result is 8-bit,
9641         * (pic16_genMult8X8_8): modified to call genUMult8X*_8 functions and not
9642         genUMult8X*_16,
9643         * src/pic16/gen.c: changed accUse to contain WREG only,
9644         * (pic16_emitcomment): renamed to pic16_emitpcomment,
9645         * (aopForSym): allocated dir register when IN_DIRSPACE(space) is,
9646         true, do not use immediate addressing any more unless sym is a
9647         pointer in codespace,
9648         * (aopForRemat): do not use immediate addressing when symbol not in
9649         codespace and when symbol's address is requested,
9650         * (aopOp): for-loop in if(sym->accUse) is modified for the new
9651         accUse size (= 1),
9652         * (aopGet): added case for AOP_ACC and don't return "accumulator
9653         bug" but WREG instead,
9654         * (popGetTempReg): pushes contents of temporary register in stack,
9655         * (popReleaseTempReg): pops contents of temporary register from
9656         stack. Use popGetTempReg/popReleaseTempReg in aligned pairs,
9657         * (pic16_popGet): separated case AOP_ACC to return register WREG
9658         from processor registers, AOP_PCODE not checks if pcop is PO_DIR
9659         or PO_IMMEDIATE and initializes their instance/offset appropriately,
9660         * The whole issue with aopForSym,aopForRemat,popGet) is to minimize
9661         the use of immediate pointers to certain cases only.
9662
9663         * (pic16_pushpCodeOpReg, pic16_poppCodeOpReg): use pic16_popGet2p,
9664         * (pic16_loadFromReturn, pic16_storeForReturn: NEW,
9665         * (assignResultValue, genCall, genRet): modified to use the new
9666         function return value scheme with WREG,PRODL,PRODH,FSR0L and FSR0,
9667         genPcall is still broken,
9668         * (genFunction): added code to create 'A' type pBlocks when
9669         interrupt functions are generated, code not extensively tested yet,
9670         ISRs push WREG,STATUS,BSR,PRODL,PRODH,FSR0L,FSR0H registers on stack,
9671         * (genEndFunction): modified so ISRs pop stored registers from stack,
9672         * (genMultOneByte): cleanup,
9673         * (AccRsh): added flag andmask, to and result with appropriate mask,
9674         * (genUnpackBits,genPackBits): fixed and can handle bit fields,
9675         * (genDataPointerGet): fixed and reenabled its use,
9676         * (genNearDataPointerGet): bugs fixed,
9677         * (genDataPointerSet): bugs fixed,
9678         * src/pic16/genutils.c: added functions pic16_DumpValue,pic16_DumpAop,
9679         pic16_DumpSymbol, pic16_DumpOp,
9680         * src/pic16/genutils.h: function prototypes for the above functions,
9681         * src/pic16/glue.c: new flags initsfpnt, to initialize stack/frame
9682         pointers,
9683         * (pic16emitRegularMap): many many many improvements, but needs a
9684         major cleanup,
9685         * src/pic16/main.c: enable_stack in pic16_options is removed,
9686         * (_pic16_parseOptions): removed command line options -penable-stack,
9687         * (_process_pragma): emit stack symbol only when stack pragma is
9688         processed,
9689         * src/pic16/pcode.c: pic16_pc_fsr0 is removed, all operations are
9690         redirected to FSR0L/FSR0H pair,
9691         * (pic16_get_op, pic16_get_op2): modifications and improvements,
9692         * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): added
9693         cases PO_PRODL,PO_PRODH, pic16_getRegFromInstruction2 returns sane
9694         for immediates,
9695         * (insertBankSwitch): modified to handle cases like: (alfa + 1)
9696         * (dumpPicOptype): NEW,
9697         * src/pic16/pcode.h: added PO_PCLATU,PO_PRODL,PO_PRODH in enum,
9698         * src/pic16/pcoderegs.c (pCodeRegMapLiveRangesInFlow): fixed bug
9699         with movff instruction,
9700         * src/pic16/ralloc.c: renamed typeRegWithIdx to pic16_typeRegWithIdx,
9701         added pic16_int_regs, some packRegsFor* functions are commented out,
9702         because produce errors,
9703         * src/pic16/NOTES: minor modifications
9704
9705 2004-02-18  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9706
9707         * as/mcs51/aslink.h, as/mcs51/lkarea.c, as/mcs51/lkdata.c, as/mcs51/lkmain.c,
9708         as/mcs51/lkmem.c, src/SDCCglob.h, src/SDCCmain.c: added options --stack-size and
9709         --pack-iram.
9710         * doc/sdccman.lyx: described options --stack-size and --pack-iram.
9711         * as/mcs51/lkaomf51.c: fixed bug #895763
9712
9713 2004-02-17 Bernhard Held <bernhard AT bernhardheld.de>
9714
9715         * device/include/c8051f320.h: added. Contributed by Maarten Brock.
9716
9717 2004-02-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9718
9719         * doc/sdccman.lyx: added details about the HC08 storage classes and
9720         interrupts, fixed the register usage info for z80 & gbz80
9721
9722 2004-02-17 Vangelis Rokas <vrokas AT otenet.gr>
9723
9724         * doc/sdccman.lyx: added more pic16 port documentation
9725         * device/include/pic16/: added header pic18fregs.h
9726
9727 2004-02-16 Bernhard Held <bernhard AT bernhardheld.de>
9728
9729         * doc/sdccman.lyx: added Vangelis' contribution
9730
9731 2004-02-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9732
9733         * src/SDCClrange.c (rlivePoint): live range of SEND operand should
9734         extend to the next CALL or PCALL, not just to the next CALL.
9735
9736 2004-02-16 Vangelis Rokas <vrokas AT otenet.gr>
9737
9738         * src/pic16/gen.c (genInline): fixed bug #896482 with inline assembly
9739
9740 2004-02-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9741
9742         * src/mcs51/ralloc.c (packRegsForAssign, reassignAliasedSym): fixed
9743         bug #895752 and a better fix for bug #716790
9744
9745 2004-02-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9746
9747         * src/SDCCsymt.c (processFuncArgs): fixed bug #896796
9748
9749 2004-02-14 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9750
9751         * doc/sdccman.lyx: minor changes, minor changed
9752
9753 2004-02-13 Bernhard Held <bernhard AT bernhardheld.de>
9754
9755         * src/SDCCicode.c (usualBinaryConversions): removed pic16 from ports
9756         which can't handle SDCC_NEWONEBYTEOPS,
9757         (geniCodeMultiply): removed conversion from mult to shift for pic14
9758         and pic16
9759
9760 2004-02-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9761
9762         * src/hc08/gen.h,
9763         * src/hc08/gen.c (storeRegToAop, aopOp, aopAdrStr, accopWithAop,
9764         rmwWithAop): Ported my 2003-10-02 fix for bug #663539 to the hc08,
9765         thus fixing bug #895406
9766
9767 2004-02-11 Bernhard Held <bernhard AT bernhardheld.de>
9768
9769         * device/lib/_modsint.c,
9770         * device/lib/_modslong.c: sign follows divisor only
9771         * src/hc08/gen.c (genMultOneByte): if result size is 1,
9772         signs or signedness can be ignored
9773         * src/SDCCast.c (addCast): cosmetic - added lineno to CAST
9774         * src/SDCCast.c (resultTypePropagate): added even more ops: +, - and *,
9775         added optimization for IFX,
9776         (decorateType): Mult/Div/ModOneByte ops can handle all kind of signed
9777         arguments;
9778         reenabled optimization for IFX, which was removed on 2004-01-11
9779         * src/SDCCast.h: added return type IFX
9780         * src/SDCCicode.c: Mult/Div/ModOneByte ops can handle all kind of signed
9781         arguments with 8 or 16 bit results; pic14 and pic16 ports use old
9782         promotion behaviour; env. var. SDCC_NEWONEBYTEOPS selects the new,
9783         SDCC_OLDONEBYTEOPS selects the old behaviour
9784         * src/SDCCsymt.c (computeType): type2 can be NULL (for LEFT_OP);
9785         changed again and commented promotion rule
9786         * src/SDCCval.c (valDiv): promotion no longer necessary
9787         * src/ds390/gen.c (genMultOneByte) (genDivOneByte) (genModOneByte),
9788         * src/mcs51/gen.c (genMultOneByte) (genDivOneByte) (genModOneByte):
9789         rewritten
9790         * support/regression/tests/onebyte.c: added
9791
9792 2004-02-11 Vangelis Rokas <vrokas AT otenet.gr>
9793
9794         * gen.c (genInline): reverted to old code for assemnling inline
9795         code because of bug reported James Chadd
9796
9797 2004-02-10 Vangelis Rokas <vrokas AT otenet.gr>
9798
9799         * ralloc.h: missing declarations from previous patch,
9800         seems that patch for ralloc.h was never applied, fixed
9801
9802 2004-02-10 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
9803            patch committed by Vangelis Rokas <vrokas AT otenet.gr>
9804
9805         * pcode.c,
9806         * pcode.h,
9807         * ralloc.h: added FSR0L, FSR0H and other missing PIC16 SFR's for
9808         indirect addressing. Marked FSR0 as deprecated
9809         * gen.c (pointerCode): commented out, not needed now
9810         (pic16_popGet2p): new MOVFF helper function
9811         (genGenPointerGet),
9812         (genGenPointerSet): reimplemented with MOVFF and POSTINC0
9813         (shiftRLong): removed duplicate debugging info
9814
9815 2004-02-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9816
9817         * src/ds390/gen.c (genNearPointerGet),
9818         * src/mcs51/gen.c (genNearPointerGet): allow the genDataPointerGet()
9819         optimization with bits, but not bitfields.
9820         * src/ds390/ralloc.c (packRegisters),
9821         * src/mcs51/ralloc.c (packRegisters): fixed bug #884453 & #880832
9822
9823 2004-02-09 Bernhard Held <bernhard AT bernhardheld.de>
9824
9825         * src/SDCCcse.c (algebraicOpts): copy operands before modification
9826
9827 2004-02-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9828
9829         * src/SDCCsymt.h,
9830         * src/SDCCicode.c (operandFromSymbol),
9831         * src/mcs51/ralloc.c (verifyRegsAssigned, serialRegAssign),
9832         * src/ds390/ralloc.c (verifyRegsAssigned, serialRegAssign),
9833         * src/z80/ralloc.c (verifyRegsAssigned, serialRegAssign),
9834         * src/hc08/ralloc.c (verifyRegsAssigned, serialRegAssign),
9835         * src/pic/ralloc.c (verifyRegsAssigned, serialRegAssign),
9836         * src/pic16/ralloc.c (verifyRegsAssigned, serialRegAssign): fixed
9837         bug #892038
9838         * src/SDCCast.c (createIvalStruct, createIvalArray, gatherAutoInit),
9839         * src/SDCCglue.c (emitRegularMap, printIvalStruct, printIvalArray,
9840         printIvalCharPtr, printIvalPtr, printIval, emitStaticSeg, emitOverlay)
9841         * src/SDCCsymt.c (newSymbol),
9842         * src/SDCC.y (struct_or_union_specifier, enum_specifier,
9843         enumerator_list),
9844         * src/SDCCval.h,
9845         * src/SDCCval.c (newiList): fixed bug #885705
9846
9847 2004-02-08  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9848
9849         * doc/sdccman.lyx: added section 3.1.4: sdcclib.
9850         * as/mcs51/lkmem.c: report the size of the stack in .mem file.
9851
9852 2004-02-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9853
9854         * device/include/c8051f120.h,
9855         * device/include/c8051f300.h,
9856         * device/include/c8051f310.h: added/updated header files for Silicon
9857         Laboratories (formerly Cygnal) CPUs. Contributed by Maarten Brock.
9858         * doc/sdccman.lyx: minor changes, recommended diff -Naur and diff -u
9859         in new section Submitting patches
9860
9861 2004-02-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9862
9863         * src/mcs51/gen.c (genNearPointerGet, genPagedPointerGet,
9864         genFarPointerGet, genCodePointerGet, genGenPointerGet,
9865         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
9866         genGenPointerSet),
9867         * src/ds390/gen.c (genNearPointerGet, genPagedPointerGet,
9868         genFarPointerGet, genCodePointerGet, genGenPointerGet,
9869         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
9870         genGenPointerSet),
9871         * src/pic16/gen.c (genNearPointerGet, genPagedPointerGet,
9872         genFarPointerGet, genCodePointerGet, genGenPointerGet,
9873         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
9874         genGenPointerSet),
9875         * src/pic/gen.c (genNearPointerGet, genPagedPointerGet,
9876         genFarPointerGet, genCodePointerGet, genGenPointerGet,
9877         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
9878         genGenPointerSet): fixed bug #892400
9879         * src/pic16/gen.c (genSkipz, AccRol): disabled functions with #if 0
9880         to eliminate build warnings.
9881         * src/SDCCast.c (processParms),
9882         * src/SDCC.y (function_declarator2, declarator2_function_attributes):
9883         fixed bug 751859
9884         * support/valdiag/valdiag.py: added GCC to the list of defines active
9885         when compiling with gcc
9886
9887 2004-02-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9888
9889         * support/Util/SDCCerr.h,
9890         * support/Util/SDCCerr.c,
9891         * src/SDCCast.c (decorateType, sizeofOp): complain when sizeof is used
9892         with an incomplete type (fixed bug #883734)
9893         * src/SDCCicode.c (geniCodeCast): fixed bug #890510
9894
9895 2004-02-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9896
9897         * src/pic16/gen.c (genCmpEq, shiftRLong): fixed declarations
9898
9899 2004-02-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9900
9901         * src/SDCCast.c (decorateType),
9902         * src/SDCCicode.c (geniCodeParms, geniCodeCall): fixed bugs in my ANSI
9903         function pointer implementation
9904         * support/regression/tests/funptrs.c: added tests to verify both forms
9905         of function pointers work correctly. Added tests to verify parameters
9906         are passed in the correct order.
9907
9908 2004-02-06  Vangelis Rokas <vrokas AT otenet.gr>
9909
9910         * device.c (regCompare): registers are sorted by ascending
9911         address and increasing size,
9912         * main.c (_pic16_finaliseOptions): removed the declaration
9913         of compiler macro MCU. Now a macro of the format pic18fxxxx
9914         will be defined from the command line
9915
9916 2004-02-06  Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
9917             patch committed by Vangelis Rokas <vrokas AT otenet.gr>
9918
9919         * pcode.c (pic16initMnemonics): fixed typo in assignment to PCOP_RLNCF
9920         PCOP_RLCF was overwritten!
9921         * gen.c (genSkip): commented out calls to pic16_emitcode,
9922         * (genCmpEQ): fixed "long" compares, only high word did get compared,
9923         * (genlshTwo),
9924         * (genRRC): added debugging info,
9925         * (shiftL2Left2Result): Fixed bug, if offr > offl. Result got
9926         overwritten while shifting,
9927         * (shiftR2Left2Result): Fixed bug, if offr < offl. Result got
9928         overwritten while shifting,
9929         * (AccLsh),
9930         * (AccRsh),
9931         * (shiftLLeftOrResult),
9932         * (shiftRLeftOrResult),
9933         * (shiftRLong),
9934         * (shiftLLong): Implemented with pic16_emitpcode
9935         * (genlshFour): Replaced pic16_aopPut with pic16_emitpcode,
9936         * (genLeftShift): Fixed bug, operand for shift by variable always
9937         was "and"ed with 0x0f,
9938         * (genLeftShiftLiteral),
9939         * (genrshTwo),
9940         * (genRightShiftLiteral): added debugging info,
9941         * (genrshFour): added comment,
9942         * (genRightShift): determined signedness from operand "left"
9943         instead of "result"
9944
9945 2004-02-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9946
9947         * src/SDCCicode.c (geniCodeParms),
9948         * src/SDCCast.c (decorateType, processParms): support for ANSI-style
9949         function pointers, fixed function pointer bugs #861242 and #861896
9950
9951 2004-01-31 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9952
9953         * device/include/c8051f000.h,
9954         * device/include/c8051f120.h,
9955         * device/include/c8051f300.h: added header files for Silicon
9956         Laboratories (formerly Cygnal) CPUs. Contributed by Maarten Brock.
9957
9958 2004-01-31 Bernhard Held <bernhard AT bernhardheld.de>
9959
9960         * src/SDCCast.c (processParams): added new type flow and restructured
9961         (gatherAutoInit): added new type flow
9962         (addCast): cosmetic changes
9963         (getLeftResultType): added new type flow for array indices, patch
9964         provided by Stas, see FR #877103
9965         (decorateType): SDCC_NEWTYPEFLOW removed, new type flow is now standard;
9966         array index patch by Stas
9967         * src/SDCCast.h: added prototype getResultTypeFromType()
9968         * src/SDCCval.h,
9969         * src/SDCCval.c (resolveIvalSym) (resolveIvalSym),
9970         * src/pic/glue.c (pic14emitStaticSeg),
9971         * src/pic16/glue.c (pic16emitStaticSeg),
9972         * src/SDCCglue.c (emitRegularMap) (emitStaticSeg): added new type flow
9973         for initialization of symbols
9974         * src/SDCCicode.c (geniCodeArray): removed warning W_ARRAY_BOUND
9975         * support/Util/SDCCerr.h:
9976         * support/Util/SDCCerr.c: replaced W_ARRAY_BOUND by W_IDX_OUT_OF_BOUNDS
9977         * .version: bumped version number to 2.3.8
9978         * device/include/Makefile.in (install),
9979         * doc/Makefile (install): changed to 'rm `find ...`' construct to
9980         avoid warnings
9981
9982 2004-01-30 Bernhard Held <bernhard AT bernhardheld.de>
9983
9984         * support/regression/tests/libmullong.c: fixed for 64 bit hosts
9985         Slade Rich fixed an optimization bug
9986         * src/pic/pcodepeep.c,
9987         * src/pic/pcoderegs.c
9988         * doc/Makefile (install): added test for directory
9989
9990 2004-01-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9991
9992         * src/mcs51/ralloc.c (getRegPtr, getRegGpr),
9993         * src/ds390/ralloc.c (getRegPtr, getRegGpr),
9994         * src/pic/ralloc.c (getRegPtr, getRegGpr),
9995         * src/pic16/ralloc.c (getRegPtr, getRegGpr),
9996         * src/z80/ralloc.c (getRegGpr): fixed bug #883361
9997         * as/mcs51/asexpr.c (term),
9998         * as/hc08/asexpr.c (term): fixed bug #887146
9999
10000 2004-01-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10001
10002         * src/z80/gen.c (genMult): handle single byte result product
10003         * src/SDCCopt.c (killDeadCode): never convert ADDRESS_OF iCode to
10004         DUMMY_READ_VOLATILE (fixed bug #886367)
10005
10006 2004-01-27 Bernhard Held <bernhard AT bernhardheld.de>
10007
10008         * support/regression/tests/libmullong.c: fixed logic, on little endian
10009         hosts we ended without a mullong_wrapper()
10010
10011 2004-01-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10012
10013         * ChangeLog: changed "@" to " AT " in hopes of reducing spam and
10014         virus/worm forged address usage.
10015
10016 2004-01-27 Bernhard Held <bernhard AT bernhardheld.de>
10017
10018         Fixed promotion, it should be done on AST level:
10019         * src/SDCCast.c (addCast): added promotion to int
10020         (decorateType): updated call to upCast()
10021         * src/SDCCicode.c (geniCodeLeftShift): removed call to
10022         usualUnaryConversions()
10023
10024 2004-01-26  Michael Hope  <michaelh AT juju.net.nz>
10025
10026         * support/regression/tests/literalop.c (mulWrapper): Added a
10027         wrapper to remove integer overflow warnings.
10028
10029         * support/regression/tests/float_trans.c: Made work on host.
10030
10031         * support/regression/ports/ucz80/spec.mk (UCZ80): Made detect the
10032         location of sz80.
10033
10034         * support/regression/generate-cases.py (main): Changed from inline
10035         to a main method.
10036
10037         * doc/Makefile (install): Changed to depth first to get rid of
10038         missing directory install warning.
10039
10040         * as/Makefile (install-doc): Made work on Mac.
10041
10042 2004-01-25 Bernhard Held <bernhard AT bernhardheld.de>
10043
10044         * src/SDCCast.c: added an additional type flow in decorateType() of
10045         opposite direction, see feature request #860006; it's enabled at runtime
10046         by setting the environment variable SDCC_NEWTYPEFLOW
10047         * src/SDCCast.h: changed prototype of decorateType()
10048         * src/SDCCglue.c (emitRegularMap): updated call of decorateType()
10049         * src/SDCCicode.c (geniCodeDivision) (geniCodeModulus): promotion from
10050         'char' to 'int' can be omitted, if both operands are 'unsigned char';
10051         see feature request #877103
10052         * src/SDCCval.c: updated call of decorateType()
10053         (valBitwise): fixed bug #882876
10054         (valMinus): added promotion
10055         (valLogicAndOr): result is unsigned
10056         (cheapestVal) (constVal): literals from 0...255 are 'unsigned char' now
10057         * src/SDCCsymt.c (computeType),
10058         * src/mcs51/gen.c (genCmpGt) (genCmpLt): literal 'unsigned char'
10059         must not cause an unsigned operation
10060         * src/pic/glue (pic14emitRegularMap),
10061         * src/pic16/glue.c (pic16emitRegularMap): updated call of decorateType()
10062
10063 2004-01-23 Bernhard Held <bernhard AT bernhardheld.de>
10064
10065         * src/pic/pcode.c (PCodeID): commented out left over debug code
10066
10067 2004-01-20 Bernhard Held <bernhard AT bernhardheld.de>
10068
10069         * support/valdiag/tests/overflow.c: added shift tests
10070         * src/pic/device.c,
10071         * src/pic/gen.c,
10072         * src/pic/gen.h,
10073         * src/pic/glue.c,
10074         * src/pic/main.c,
10075         * src/pic/pcode.c,
10076         * src/pic/pcode.h,
10077         * src/pic/pcodepeep.c,
10078         * src/pic/pcoderegs.c,
10079         * src/pic/ralloc.c,
10080         * src/pic/ralloc.h: applied patch from Slade Rich;
10081         added support for multiple code pages and multiple RAM banks on the
10082         PIC 14 port. The ASM files now no longer simply assume all the
10083         code / RAM are in the same page / bank. This means the linker can
10084         safely allocate code/RAM of separate ASM files to different pages/banks.
10085         * doc/sdccman.lyx: added Slade's tips
10086         * src/mcs51/peeph.def: fixed bug #880768
10087
10088 2004-01-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10089
10090         * src/hc08/ralloc.c (rematStr): fixed bug #879282
10091         * src/SDCCast.c (decorateType): fixed bug #880197
10092
10093 2004-01-20  Michael Hope  <michaelh AT juju.net.nz>
10094
10095         * sim/ucsim/gui.src/serio.src/main.cc: Fixed unconditional use of
10096         getopt.h.
10097
10098         * debugger/mcs51/cmd.c (getValBasic): Changed strtof to strtod as
10099         strtof is not part of C89 and isn't included with Mac OS X.
10100
10101 2004-01-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10102
10103         * src/hc08/gen.c (genPlusIncr, genUminus, genMinusDec, genCmp,
10104         shiftL2Left2Result): fixed bug #879326
10105         (genAnd, genOr, genXor): fixed bug when result was of type AOP_CRY
10106         (genMultOneByte): fixed bug in signed vs unsigned multiplication
10107         * sim/ucsim/hc08.src/inst.cc (inst_clr): added missing effective
10108         address fetch for clr instruction
10109         * device/lib/hc08/_mulint.c: created optimized assembly version
10110         * src/SDCCdflow.c (computeDataFlow): fixed bug #878209
10111
10112 2004-01-19 Bernhard Held <bernhard AT bernhardheld.de>
10113
10114         * src/SDCCicode.c (geniCodeArray): applied patch from Stas Sergeev
10115         proposed in FR #877103
10116
10117 2004-01-18 Bernhard Held <bernhard AT bernhardheld.de>
10118
10119         * src/SDCCval.c (cheapestVal): added missing checks
10120         * src/SDCCicode.c (usualBinaryConversions): fixed condition
10121         * src/SDCCicode.c (geniCodeAdd): fixed part of bug #877103
10122
10123 2004-01-16 Klaus Flittner <klaus_flittner AT gmx.de>
10124
10125         * src/ds390/gen.c (aopOp3): fixed the assignment of different dptrs to
10126         equal operands
10127
10128 2004-01-16 Vangelis Rokas <vrokas AT otenet.gr>
10129
10130         * src/SDCCmain.c (linkEdit): variable $3 of the linker command is
10131         loaded with the linker search paths (-L arguments) and the libraries
10132         to be linked with the current source (-l arguments). Changes
10133         currently will affect only the pic16 port.
10134         * src/pic16/main.c (_pic16_finaliseOptions): add to the linker
10135         include path the port specific paths and port specific libraries,
10136         * gplink command now contains the $3 argument,
10137         * src/pic16/device.h,
10138         * src/pic16/device.c,: structure PIC_device is made public and
10139         renamed to PIC16_device, the same for variable Pics which is renamed
10140         to Pics16. Updated all references to them.
10141         * src/pic16/glue.c (pic16glue): corrected bug with code
10142         initialization which bypassed the variable initializations block.
10143
10144         * device/lib/pic16/Makefile.rules: removed --penable-stack from
10145         COMPILE_FLAGS and added the --nostdinc option
10146
10147 2004-01-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10148
10149         * device/include/mc68hc908jb8.h: Register defs for another member
10150         of the hc08 family. Contributed by Bjorn Bringert - thanks!
10151
10152 2004-01-14 Vangelis Rokas <vrokas AT otenet.gr>
10153
10154         Documenting changes from previous commits.
10155         * configure.in (version 1.56),
10156         * configure: initially I've added AC_CONFIG_SUBDIRS(device/lib/pic16)
10157         when generating output files to configure the pic16 library,
10158         but now I've commented it out, since gputils aren't installed in the
10159         SF compile farm, so library won't compile
10160
10161         * device/lib/Makefile.in (version 1.56): initially I've added in
10162         target 'all' the prerequestive 'model-pic16' so it compiled the
10163         pic16 library, but now I've commented it out for the same reasons
10164         above,
10165         * added targets 'model-pic16' and 'objects-pic16' to compile the
10166         library
10167         * added target 'port-specific-objects-pic16' to handle the
10168         generated libraries and copy them into the build/ directory
10169         * added target 'clean-intermediate-pic16' to clean intermediate
10170         files into pic16 directory
10171         * in target 'installdirs' added line to create directory pic16 in
10172         the installation path
10173
10174         * device/include/Makefile.in (version 1.11): in target 'install'
10175         added lines to copy all header files to installation path,
10176         * in target 'installdirs' added line create directory for pic16
10177         headers in the installation path
10178
10179 2004-01-13 Klaus Flittner <klaus_flittner AT gmx.de>
10180
10181         * src/ds390/gen.c (genCall): fixed a double use of acc and b after
10182          a function call
10183
10184 2004-01-13 Bernhard Held <bernhard AT bernhardheld.de>
10185
10186         * configure,
10187         * device/lib/configure.in,
10188         * device/lib/configure: fixed for autoconf 2.57
10189
10190 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10191
10192         * src/z80/main.c (_parseOptions): fixed the portmode= command line
10193         option so that it actually works. Made it specific to the z80, since
10194         the gbz80 doesn't have these kinds of I/O ports.
10195
10196 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10197
10198         * device/include/z180.h,
10199         * device/lib/_memcpy.c,
10200         * device/lib/_memmove.c,
10201         * device/lib/_mulint.c,
10202         * device/lib/ser_ir.c,
10203         * device/lib/ser_ir_cts_rts.c,
10204         * device/lib/_strcmp.c,
10205         * device/lib/_strtok.c: fixed pragmas to non-deprecated form
10206         * src/z80/main.c (_process_pragma): add support for pragmas bank and
10207         portmode; added deprecation warning for bank= and protmode= forms.
10208         Also, guard against buffer overflow.
10209         * src/z80/gen.c (aopGet): generate better code for sfr banked read
10210
10211 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10212
10213         * src/hc08/main.c (_hc08_genAssemblerPreamble): fixed bug #875487. Also
10214         changed interrupt vector table generation to only emit declared vectors.
10215         * device/include/Makefile.in: added missing backslash
10216         * device/lib/pic16/Makefile.rules: add $(MODELFLAGS) to $(CFLAGS)
10217
10218 2004-01-13 Vangelis Rokas <vrokas AT otenet.gr>
10219
10220         Mainly changes to support compilation of the device libraries
10221         * src/pic16/device.c: stack is allocated via symbol and not
10222         via literal number. The symbol is placed in the corresponding
10223         position of the data ram
10224         * (pic16_dump_section): relocatable and absolute uninitialized
10225         data are now emitted in sorted order to reduce section naming,
10226         * src/pic16/ralloc.c (newReg): fixed bug with SFR's that
10227         weren't marked as being in the access bank,
10228
10229 2004-01-13 Vangelis Rokas <vrokas AT otenet.gr>
10230
10231         Added portion of GNU PIC Library under the directory
10232         device/include/pic16 and device/lib/pic16. These files
10233         contain the declarations of SFRs for the PIC18Fxx2 devices.
10234         The directory is initialized via configure from toplevel.
10235
10236 2004-01-12 Klaus Flittner <klaus_flittner AT gmx.de>
10237
10238         * src/ds390/gen.c (operandsEqu): fixed a little typo, that prevented
10239         the spilllocations to be compared correctly
10240
10241 2004-01-12 Bernhard Held <bernhard AT bernhardheld.de>
10242
10243         * src/SDCCast.c (decorateType): fixed bug introduced today
10244
10245 2004-01-12  Borut Razem <borut.razem AT siol.net>
10246
10247         * src/SDCC.lex, support/Util/SDCCerr.h, support/Util/SDCCerr.c,
10248         doc/sdccman.lyx: upper case pragmas are deprecated
10249
10250 2004-01-12 Bernhard Held <bernhard AT bernhardheld.de>
10251
10252         * src/SDCCast.c (decorateType): replacing 'ul > 0' by  '!ul' results
10253         in simpler and even better code
10254
10255 2004-01-11 Bernhard Held <bernhard AT bernhardheld.de>
10256
10257         * src/SDCCicode.c (operandOperation): fixed bug #874819
10258         * src/SDCCast.c (decorateType): fixed
10259         char foo (unsigned long ul) { return ul > 0; }
10260
10261 2004-01-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10262
10263         * doc/sdccman.lyx: Moved and added some sections, small changes
10264         all over. Telling LaTeX to be less strict with word spacing
10265         to better keep the right margin. Changed some notes about
10266         maintainance of the ports in section 3.2.1 - is it OK like this?
10267
10268 2004-01-11 Vangelis Rokas <vrokas AT otenet.gr>
10269
10270         SDCC source changes:
10271         * src/SDCCopt.c (cntToFcall, cnvToFloatCast, cnvFromFloatCast,
10272         convilong): modified to inform the pic16 port that builtin functions
10273         are external
10274
10275         PIC16 PORT specific changes:
10276         * src/pic16/device.c pic16_dump_equates() added,
10277         processor registers declared internally by the port are emitted in
10278         the translation as equates,
10279         * src/pic16/gen.c: inline code is passed unprocessed to the
10280         translation,
10281         * (pic16_popGetLit2): fnuction modified to take second operand as
10282         pCodeOp pointer and not as literal,
10283         * (popRegFromIdx): prefixed with pic16_,
10284         * (pic16_popCombine2): modified to receive already allocated pCode
10285         operands,
10286         * (pic16_pushpCodeOpReg, pic16_poppCodeOpReg): added
10287         * (genFunction): initializes local stack frame and pushes on stack
10288         all the registers used by this function,
10289         * (genEndFunction): restores all registers from stack and restores
10290         stack frame,
10291         * src/pic16/glue.c (pic16emitRegularMap): various changes and
10292         improvements,
10293         * (pic16glue): changed the program startup sequence,
10294         * added new dbName code 'A' for functions placed in absolute section
10295         * src/pic16/main.c: added function attribute _naked,
10296         * added pragma 'code' to place a fnuction at an absolute address,
10297         * added command line arguments --debug-ralloc and --pcode-verbose,
10298         * (_pic16_finiliseOptions): options.all_callee_saves is set by default
10299         * src/pic16/pcode.c (pic16_pBlockConvert2Absolute) added,
10300         * (pic16_newpCodeOpLit2): modified to take the second operand as
10301         pCodeOp pointer,
10302         * (pic16_printpBlock): modified to emit each function in a separate
10303         section,
10304         * (pic16_get_op): modified to use the gpasm modifiers LOW,HIGH and
10305         UPPER for immediate operands,
10306         * src/pic16/pcodepeeph.c: added peephole support for the LFSR
10307         instruction,
10308         * src/pic16/peeph.def: all peepholes with movff are commented out,
10309         because there is a problem in the pcode peep optimizer,
10310         * src/pic16/ralloc.c: the register allocator can now reuse local
10311         function symbols for another function. This saves register usage.
10312         * src/pic16/ralloc.h: added flag isLocal in structure regs,
10313
10314         Added file src/pic16/NOTES with information about program writing on
10315         the current port version.
10316
10317 2004-01-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10318
10319         * src/mcs51/peephole.def: added peepholes 177.c,d (redundant moves)
10320         and peephole 252 (array access)
10321
10322 2004-01-09  Borut Razem <borut.razem AT siol.net>
10323
10324         * src/SDCCmain.c : fixed #872250: -l command line defined library
10325           files are scanned before standard library files
10326
10327 2004-01-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10328
10329         * src/SDCCast.c (decorateType): fixed bug #874046
10330
10331 2004-01-09  Borut Razem <borut.razem AT siol.net>
10332
10333         * support/scripts/sdcc.nsi: remove previous installation
10334
10335 2004-01-09 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10336
10337         * src/SDCCglue.c (createInterruptVect): don't append 7(5) padding
10338         bytes for last interrupt vector (mcs51)
10339         * sdcc.spec: fixed typo
10340
10341 2004-01-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10342
10343         * src/mcs51/gen.c (genFunction, genEndFunction, genReceive, getTempRegs,
10344         gen51Code): more efficient parameter receive for --model-large
10345         ("bug" #845294)
10346
10347 2004-01-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10348
10349         * src/ds390/main.c,
10350         * src/z80/main.c: added missed needLinkerScript flags (more than
10351         one port structure defined in these file)
10352         * src/ds390/gen.c (aopForSym, aopOp, operandsEqu, aopOp3): fixed
10353         bug #795325
10354
10355 2004-01-08 Vangelis Rokas <vrokas AT otenet.gr>
10356
10357         * src/SDCCmain.c: removed various references to DEFAULT_PORT
10358         * src/port.h: added flag needLinkerScript in port->linker
10359         structure to inform whether to create a .lnk file or not,
10360         * src/avr/main.c,
10361         * src/ds390/main.c,
10362         * src/hc08/main.c,
10363         * src/mcs51/main.c,
10364         * src/pic/main.c,
10365         * src/pic16/main.c,
10366         * src/xa51/main.c,
10367         * src/z80/main.c: changed appropriately to configure
10368         needLinkerScript flag
10369         * src/pic/gen.c,
10370         * src/pic16/gen.c (genAddrOf): fixed bug #863624
10371         * src/pic/glue.c: added variable udata_section_name to
10372         override default uninitialized data segment definition for
10373         devices only with SHAREBANK memory (reported from Erik Epetrich)
10374         * (pic14emitOverlay): modified to emit a commented overlay segment
10375         directive when no overlay data exist
10376         * (picglue): modified to emit uninitialized data segment
10377         according to udata_section_name
10378         * src/pic/main.c (_pic14_parseOptions): added command line
10379         options --udata-section-name=[name] to override default
10380         udata definition name
10381         * modified _linkCmd and _asmCmd to include compiler passed
10382         arguments via -W option
10383         * src/pic16/main.c: added $l in _asmCmd, changed extension for
10384         object file from '.rel' to '.o' in port->linker structure,
10385         changed size of fptr from 2 to 3 in port structure
10386
10387 2004-01-07  Borut Razem <borut.razem AT siol.net>
10388
10389         * support/scripts/sdcc.nsi: update PATH
10390         * support/scripts/sdcc.ico: craeted
10391
10392 2004-01-07 Bernhard Held <bernhard AT bernhardheld.de>
10393
10394         * device/include/Makefile.in: fix install
10395         * doc/Makefile: fix install
10396
10397 2004-01-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10398
10399         * src/SDCCsymt.c (processFuncArgs): fixed superflous allocation noted
10400         in bug #860505
10401         * src/SDCCmem.c (printAllocInfoSeg, printAllocInfo): minor changes to
10402         how the function variable allocation summary is displayed; also
10403         include information about variables allocated to the overlay
10404         segment
10405
10406 2004-01-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10407
10408         * as/mcs51/lkmain.c: Help about -Y option
10409         * as/mcs51/lkarea.c: Fixed gcc warnings
10410
10411 2004-01-06 Bernhard Held <bernhard AT bernhardheld.de>
10412
10413         * src/SDCCval.c (valShift): changed from 16 to 32 bit shift count,
10414         fixed warning
10415         * support/valdiag/tests/overflow.c: added
10416         * src/SDCCast.c (decorateType),
10417         * src/SDCCicode.c (geniCodeLeftShift): added promotion to int for
10418         LEFT_OP (left shift)
10419
10420 2004-01-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10421
10422         * as/mcs51/lkmain.c: stack must be after data when option -Y is not used
10423         (default behaviour).
10424
10425 2004-01-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10426
10427         A python script to validate compiler diagnostic messages. It can be
10428         used to verify that sdcc complains about bad c source code and
10429         gives a good location of the error.
10430         * support/valdiag/Makefile,
10431         * support/valdiag/valdiag.py,
10432         * support/valdiag/tests/*
10433
10434 2004-01-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10435
10436         * src/SDCC.y (enum_specifier, enumerator_list, opt_assign_expr),
10437         * src/SDCCsymt.c (newEnumType),
10438         * src/SDCCsymt.h
10439         * support/Util/SDCCerr.c,
10440         * support/Util/SDCCerr.h: fixed bug #871258 and some other unreported
10441         enum related bugs.
10442         * support/regression/tests/enum.c: added test for enum values that
10443         require at least 2 bytes of storage.
10444
10445 2004-01-06 Vangelis Rokas <vrokas AT otenet.gr>
10446
10447         * src/common.h: added ifndef/define/endif macros
10448         around the header file.
10449         Bug reported from Jesus Calvino-Fraga
10450
10451 2004-01-06 Bernhard Held <bernhard AT bernhardheld.de>
10452
10453         * sdcc.spec: updated
10454         * device/include/Makefile.in: don't install CVS directories
10455         * device/lib/Makefile.in: added removal of CVS directories after install
10456         * doc/Makefile: fixed install, added local_icons
10457         * sim/ucsim/gui.src/Makefile.in: fixed an old typo
10458         * src/mcs51/gen.c (genRightShift): fixed bug #870788
10459         * src/ds390/gen.c (genRightShift): fixed bug #870788
10460         * src/SDCCast.c (decorateType): fixed bug #870781
10461
10462 2004-01-06 Vangelis Rokas <vrokas AT otenet.gr>
10463
10464         PIC16 port related changes:
10465         * device.c: removed pic16_finalMapping and pic16_finalMappingSize,
10466         added variable stackPos,
10467
10468         * gen.c: genCall, assignResultValue: added support for
10469         pushing/retrieving function parameters to/from stack,
10470         genFunction,genEndFunction: setup stack frame for the
10471         generated function,
10472         genAddrOf: will be changed according to bug 863624
10473
10474         * added files genutils.c and genutils.h which contain gen*
10475         debugged and optimised functions extracted from gen.c
10476
10477         * glue.c: added variable 'externs' which holds extern symbols,
10478         pic16emitRegularMap: is modified to properly handle relocatable
10479          symbols under the new scheme,
10480         pic16createInterruptVect: is modified
10481         pic16printPublics: is modified to emit 'global' assembler directives,
10482         added pic16_printExterns to print extern symbols,
10483         pic16glue: initializes stack/frame pointer in the beginning of
10484         the assembly output. Temporary hack, will be corrected later,
10485         because gplink yet does not support stack and SDCC does not
10486         yet support a type of crt0.o object to create the final binary.
10487
10488         * Removed many lines that contain 8051 legacy code.
10489         * The code is finally placed under a 'code' directive.
10490         * Added port specific options.
10491
10492         * _process_pragma: simplified since now we do not need *special*
10493         include file to define SFR registers. But a separate header
10494         will be needed. This will be developed later.
10495         * _pic16_parseOptions: added, parses port specific options:
10496         --pgen-banksel, --obanksel=, --pomit-config-words, --pomit-ivt,
10497         --pleave-reset-vector, --penable-stack, --pstack-model, --debug-xtra
10498         --preplace-udata-with=
10499
10500         * _pic16_setDefaultOptions: modified to initialize section names,
10501         but hack is temporarly out of order since it needs improvement.
10502         * _pic16_genAssemblerPreamble: configuration words are emitted by
10503         their address instead of their name. This part is incomplete and
10504         supports only the 18Fxx2 devices. Other devices will emit an error
10505         during assembly since they do not contain the same set of config
10506         registers
10507         * _pic16_genIVT: is modified,
10508
10509         * pcode.c: added definitions for some hardware registers that are needed
10510         for stack support
10511         * added flag is2LitOp and variable pci_magic in pCodeInstruction.
10512         All PCI entries are updated. Now LFSR is supported.
10513         * Removed pic16_pciTRIS is mentioned by mdubuc in source
10514         * added pic16_newpCodeOpLit2 to support instructions with
10515         two literal arguments
10516         * pic16_pCode2str: corrected code that emits assembler instructions
10517         with two literal operands and those that have an access bit modifier
10518         * genericPrint: now PC_ASMDIR pCodes, can emit a label if it exists,
10519         this fixes a bug which caused some labels to be lost, when an
10520         assembler directive was added, i.e. banksel,
10521         * pic16_FixRegisterBanking: improved logic that causes the insertion
10522         of bank switching,
10523         * InlineFunction: functions that are called once, are not any more
10524         inlined. This can be a port option in the future,
10525
10526         * pcode.h: added pCodeOpLit2 and added variable label in pCodeAsmDir
10527
10528         * ralloc.c: added pic16_rel_udata and pic16_fix_udata variables which
10529         hold the corresponding uninitialized symbols,
10530         * pic16_allocProcessorRegister: registers have explicit marked the
10531         accessBank field,
10532         * pic16_allocInternalRegister: registers are explicit marked as
10533         not used,
10534         * pic16_writeUsedRegs: pic16_dynDirectBitRegs was missing from the
10535         processing list, so bit registers were lost,
10536         *
10537
10538         * ralloc.h: added field 'accessBank' and original symbol operand
10539         in register definition,
10540         * removed the field isMapped from register definition,
10541
10542         ** Several functions have been removed from various sources:
10543         BanksUsedFlow2,BanksUsedFlow,FixBankFlow,InstructionRegBank,
10544         pic16_addMemRange,pic16_isREGinBank,pic16_dump_map,pic16_dump_cblock
10545         isSFR,validAddress,mapRegister,assignRegister,pic16_assignFixedRegisters
10546         pic16_assignRelocatableRegisters
10547
10548         ** others have been introduced:
10549         pic16_areRegsSame,pic16_dump_section,checkAddReg,pic16_groupRegistersInSection
10550         pic16_popGetLit2,pic16_popCombine2,pushw,pushaop
10551
10552 2004-01-05 Vangelis Rokas <vrokas AT otenet.gr>
10553
10554         * support/scripts/inc2h.pl: changed definition of BIT_AT
10555         to emit 'sbit at' instead of 'bit at'. This was a request.
10556
10557         PIC16 port related preliminary changes:
10558         * gen.c: prefixed function popRegFromString with
10559         pic16_ and all references to it corrected
10560         * pcode.c: all pic16_pc_* hardware registers prefixed
10561         with underscore (_),
10562         pic16_popCopyGPR2Bit(): function sets register wasUsed=1
10563         * ralloc.c: newReg(): when register is REG_SFR then
10564         set address to rIdx,
10565         pic16_allocProcessorRegister(): marks register wasUsed=0
10566         pic16_writeUsedRegs(): added a call to assign processor
10567         registers via pic16_assignFixedRegisters
10568
10569 2004-01-04  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10570
10571         * as/mcs51/aslink.h, as/mcs51/lkarea.c, as/mcs51/lkdata.c,
10572         as/mcs51/lkmain.c, as/mcs51/lkmem.c: 8051 linker can now pack
10573         variables in unused register banks.  Also the SSEG is placed
10574         wherever there is enough space for it, and IDATA can be anywhere
10575         in internal RAM.  For now compile using -Wl-Y[stack_size].
10576         The mem file is different for this option as well, since it
10577         makes no sense of talking about DSEG lenght.
10578
10579 2004-01-02 Vangelis Rokas <vrokas AT otenet.gr>
10580
10581         * src/SDCClrange.c: fixed bug 869095 that caused segfault
10582         in certain cases, e.g. when ROM assignment, patch provided
10583         from Albert den Haan.
10584
10585 2004-01-01 Bernhard Held <bernhard AT bernhardheld.de>
10586
10587         Many signedness and type propagation fixes:
10588         * src/SDCCicode.c: made geniCodeCast() static
10589         replaced SPEC_ by IS_ (cosmetic)
10590         (operandOperation): fixed div and mod operation
10591         (usualBinaryConversions): added support for promotion of char
10592         (geniCodeMultiply): replaced (unsigned long) by (TYPE_UDWORD)
10593         (geniCodeDivision): replaced (unsigned long) by (TYPE_UDWORD)
10594         (geniCodeAdd): an array index will stay unsigned, even if promoted
10595         from char to int
10596         (geniCodeArray): ditto
10597         * src/SDCCicode.h: made geniCodeCast() static: removed prototype
10598         * src/SDCCsymt.c (computeType): added more support for char;
10599         promotion of char is selectable by promoteCharToInt, fixed signedness
10600         for all cases
10601         (powof2): replaced (unsigned long) by (TYPE_UDWORD)
10602         * src/SDCCsymt.h (powof2): replaced (unsigned long) by (TYPE_UDWORD)
10603         * src/SDCCval (val*): replaced signedness calculation by
10604         computeType()
10605         rearranged if-branches (cosmetic)
10606         (valShift): added warning W_SHIFT_CHANGED
10607         (valCompare): fixed problem with different types
10608         * src/hc08/rallo.c (leastUsedLR): fixed gcc 3.3 warning
10609         * support/regression/tests/literalop.c: added many cases
10610         * support/regression/tests/ast_constant_folding.c: changed finally to
10611         'unsigned int'
10612         * .version: new year, new version: 2.3.7
10613         * src/SDCCmain.c (main): applied patch #866468
10614         * debugger/mcs51/sdcdb.c (parseCmdLine): added -k for ucsim, patch
10615         provided by Scott Bronson
10616         * doc/sdccman.lyx: updated documentation for sdcdb
10617         updated and added chapter tips
10618
10619 2004-01-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10620
10621         * src/SDCCsymt.h: missing from yesterday's commits
10622
10623 2003-12-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10624
10625         * src/SDCC.y (struct_or_union_specifier),
10626         * support/Util/SDCCerr.c,
10627         * support/Util/SDCCerr.h: verify that struct & union tags are used
10628         as declared.
10629
10630 2003-12-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10631
10632         * src/SDCCglobl.h: missing from yesterday's commits
10633
10634 2003-12-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10635
10636         * src/SDCC.y (external_definition, type_specifier2, sfr_reg_bit,
10637         sft_attributes, struct_declaration, parameter_declaration,
10638         type_name, start_block, declaration_list),
10639         * src/SDCC.lex (check_type): support redefinition of typedef names
10640
10641 2003-12-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10642
10643         * src/mcs51/gen.c (genPlus): added special handling for 256 byte
10644         aligned xdata arrays. Erik helped me with the if clause.
10645
10646 2003-12-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10647
10648         * device/lib/ds390/tinibios.c (CpuSpeed): suppress unreachable code
10649         warning
10650
10651 2003-12-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10652
10653         * src/SDCCast.h,
10654         * src/SDCCast.c (newAst_),
10655         * src/SDCCicode.h,
10656         * src/SDCCicode.c (ast2iCode, newiCode),
10657         * src/SDCCglobl.h,
10658         * src/SDCC.y (logical_and_expr, logical_or_expr, conditional_expr,
10659         expr, statement, expression_statement, selection_statement,
10660         iteration_statement, expr_opt, jump_statement): foundation for tracking
10661         sequence points
10662         * src/SDCCopt.c (killDeadCode): fixed bug #861580 (needs the sequence
10663         point code too)
10664
10665 2003-12-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10666
10667         * support/Util/SDCCerr.c,
10668         * src/SDCCast.h,
10669         * src/SDCCast.c (createCase, createDefault, decorateType),
10670         * src/SDCClabel.c (labelUnreach),
10671         * src/SDCC.y (labeled_statement, jump_statement): More improvements
10672         to error messages.
10673         * support/Util/SDCCerr.c (werrorfl): fixed a non-standard declaration
10674         (with thanks to Stas Sergeev)
10675         * device/include/time.h,
10676         * device/lib/time.c (CheckTime): suppress unreachable code warning
10677
10678 2003-12-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10679
10680         * src/SDCCast.c (createIvalCharPtr),
10681         * src/SDCCglue.c (printChar): fixed bug #862241 (an error in my fix for
10682         bug #753752)
10683         * support/regression/tests/nullstring.c: tests for these two bugs
10684
10685 2003-12-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10686
10687         * support/Util/SDCCerr.h,
10688         * support/Util/SDCCerr.c (E_NOT_ALLOWED),
10689         * src/SDCC.y (struct_declaration, struct_or_union_specifier): complain
10690         about storage class and 'at' used inside struct or union
10691         * src/SDCCBBlock.c (iCodeFromeBBlock),
10692         * src/SDCCcse.c (ifxOptimize),
10693         * src/SDCCglue.c (emitRegularMap, initPointer, printIvalStruct,
10694         printIvalArray, printiValFuncPtr, printIvalCharPtr, printIvalPtr,
10695         printIval, emitStaticSeg, emitOverlay),
10696         * src/SDCClabel.c (deleteIfx),
10697         * src/SDCCopt.c (replaceRegEqv, eBBlockFromiCode),
10698         * src/SDCCast.c (resolveSymbols, createIvalStruct, createIvalArray,
10699         gatherAutoInit, processParms),
10700         * support/Util/SDCCerr.h,
10701         * support/Util/SDCCerr.c (werrorfl): Support for better error location
10702         reporting for post-parse errors.
10703
10704 2003-12-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10705
10706         * src/SDCCval.c (valPlus, valMinus, valShift): fixed some problems with
10707         implicit casts via union; they don't work on big endian systems
10708         (possible fix for bug #861138)
10709
10710 2003-12-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10711
10712         (committed by Erik Petrich <epetrich AT ivorytower.norman.ok.us> on Frieder's behalf)
10713         * src/mcs51/main.c: fixed the fix for bug #737001
10714
10715 2003-12-15  Borut Razem <borut.razem AT siol.net>
10716
10717         * support/scripts/sdcc.nsi: updated for NSIS 2.0 beta 4
10718
10719 2003-12-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10720
10721         * support/makebin/makebin.c: put output in binary mode
10722
10723 2003-12-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10724
10725         * src/mcs51/main.c: fixed bug #737001 for the mcs51. SDCC clears
10726         xdata and data memory on startup. Set the environment variable
10727         SDCC_NOGENRAMCLEAR to disable this.
10728         * src/mcs51/peephole.def,
10729         * src/ds390/peephole.def: using the atomic test and clear instruction jbc
10730         (allows non-interrupt and interrupt code to safely compete for a resource
10731         without the non-interrupt code having to disable interrupts)
10732
10733 2003-12-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10734
10735         * src/SDCCicode.c (geniCodeAdd),
10736         * src/SDCCast.c (decorateType): fixed bug #857753 (need to be careful
10737         with valFromType if type might be a pointer and host is big endian).
10738         * src/SDCCast.c (decorateType): unary plus compatible with all arithmetic
10739         types, not just integer types.
10740         * src/SDCCsymt.c (addSymChain): clarified error message when symbol is
10741         multiply defined with mismatching "at" address.
10742
10743 2003-12-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10744
10745         * src/ds390/main.c (PORT tininative_port): fixed bug #858416
10746         * src/SDCCglue.c (printChar, printIvalChar, emitStaticSeg),
10747         * src/SDCCast.c (createIvalCharPtr, stringToSymbol): handle strings
10748         with embedded nulls (fixed bug #753752)
10749
10750 2003-12-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10751
10752         * src/mcs51/main.c(_mcs51_genRAMCLEAR): using r0 instead of r1/r2.
10753         Apparently this did not see much testing (endless loop)
10754
10755 2003-12-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10756
10757         * src/z80/ralloc.c: set DISABLE_PACK_HL = 1 as a temporary fix to bug #855165
10758
10759 2003-12-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10760
10761         * src/SDCCdebug.c (outputDebugSymbols, outputDebugStackSymbols, dumpSymInfo):
10762         gracefully handle NULL memmap pointers
10763
10764 2003-12-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10765
10766         * src/SDCCopt.c (killDeadCode): change iCode type to DUMMY_READ_VOLATILE
10767         instead of deleting the iCode when an operand is volatile
10768         * src/z80/gen.c (genDummyRead),
10769         * src/mcs51/gen.c (genDummyRead),
10770         * src/ds390/gen.c (genDummyRead),
10771         * src/hc08/gen.c (genDummyRead): handle operands in IC_LEFT and/or IC_RIGHT,
10772         not just IC_RIGHT
10773         * src/SDCCicode.c (geniCodeCall): fixed bug #851607
10774         * src/SDCC.y: fixed bug #850420
10775
10776 2003-12-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10777
10778         Applied z80 i/o port patch from Peter Townson and fixed some operators
10779         to better handle operands in A register.
10780         * device/include/z180.h
10781         * src/SDCC.y
10782         * src/SDCCglue.c
10783         * src/z80/gen.c
10784         * src/z80/gen.h
10785         * src/z80/main.c
10786         * src/z80/peeph-z80.def
10787         * src/z80/peeph.def
10788         * src/z80/z80.h
10789
10790 2003-12-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10791
10792         * src/SDCCsymt.c (addSymChain, compareTypeExact): fixed bug #838241 again
10793
10794 2003-12-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10795
10796         * device/lib/hc08/_mullong.c: Removed extra #endif
10797
10798 2003-12-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10799
10800         * sim/ucsim/hc08.src/inst.cc,
10801         * sim/ucsim/hc08.src/hc08mac.h: fixed some problems with CC flag bits and
10802         carries from x to h
10803         * src/hc08/gen.c (aopAdrStr): fixed problem with 16 bit immediate
10804         * src/hc08/gen.c (XAccRsh): fixed problem with right shift
10805         * device/include/stdarg.h: fixed varargs for hc08
10806         * device/lib/Makefile.in,
10807         * device/lib/hc08/Makefile,
10808         * device/lib/hc08/_mulint.c,
10809         * device/lib/hc08/_mullong.c: fixed some endian problems
10810
10811 2003-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10812
10813         * sdcc/src/mcs51/gen.c (genMultOneByte): help peephole 105
10814         * sdcc/src/mcs51/peeph.def: added peephole 186.e array access in code space
10815         * device/lib/_gptrget.c,
10816         * device/lib/_gptrput.c: P2 not used any more (related to #850747, #785979)
10817
10818 2003-11-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10819
10820         * src/SDCClrange.c (findNextUseSym, rlivePoint): fixed bug #849795
10821         * src/SDCCast.c (astErrors): fixed bug #846007
10822         * src/SDCCsymt.c (checkFunction): fixed follow-up bug on bug #846007
10823
10824 2003-11-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10825
10826         * src/SDCCast.c (decorateType): disabled a transformation I added in
10827         revision 1.188 (access to fields of a structure at an absolute address);
10828         it breaks with bitfields, extern declarations, and gcse analysis.
10829         * src/SDCCopt.c (isLocalWithoutDef): if ADDRESS_OF applied to a symbol, it
10830         could be assigned through a pointer, so don't complain.
10831         * src/SDCCast.c (astErrors),
10832         * src/SDCCast.h,
10833         * src/SDCCglue.c (emitRegularMap): fixed bug #847813
10834
10835 2003-11-26 Vangelis Rokas <vrokas AT otenet.gr>
10836
10837         * src/pic16/main.c (_pic16_genIVT): fixed interrupt vector table
10838         * src/pic16/main.c (_pic16_genAssemblerPreamble): re-enabled the
10839         output of __config directives, since gpasm now supports them
10840         * src/pic16/main.c (_pic16_finaliseOptions): define MCU
10841         pre-processor macro, i.e. -DMCU=p18f452
10842         * src/pic16/ralloc.c: renamed packRegisters to pic16_packRegisters,
10843         and modified to handle 'cast' icode similarly to '=' icode
10844         * src/pic16/device.h (typedef struct PIC_device): added field
10845         'extMIface' to indicate that chip has external memory interface
10846         * src/pic16/device.c: added chips 18F248, 18F258, 18F448, 18F458,
10847         18F6520, 18F6620, 18F6680, 18F6720, 18F8520, 18F8620, 18F8680,
10848         18F8720
10849
10850 2003-11-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10851
10852         * src/SDCC.y (pointer): fixed bug #846006
10853         * support/Util/SDCCerr.c: made W_PTR_TYPE_INVALID message clearer
10854         * src/SDCCast.c (decorateType): fixed bug #846009
10855         * src/ds390/peeph.def,
10856         * src/ds390/gen.c (genAnd, genOr),
10857         * src/mcs51/peeph.def,
10858         * src/mcs51/gen.c (genAnd, genOr): fixed bug #846777
10859
10860 2003-11-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10861
10862         Fixed several common-sub-expression bugs (#772861, #768380, & #755323)
10863         * src/SDCCdflow.c
10864         * src/SDCCcse.c
10865         * src/SDCCcse.h
10866         * src/SDCCBBlock.h
10867         * src/SDCCBBlock.c
10868
10869 2003-11-23 Klaus Flittner <klaus_flittner AT gmx.de>
10870
10871         fixed bug #845089
10872         * src/SDCCbitv.h,
10873         * src/SDCCbitv.c: added function to free a bitvector
10874         * src/SDCClrange.h,
10875         * src/SDCClrange.c: added function to recompute the liveranges
10876         * src/avr/ralloc.c,
10877         * src/ds390/ralloc.c,
10878         * src/hc08/ralloc.c,
10879         * src/mcs51/ralloc.c,
10880         * src/pic/ralloc.c,
10881         * src/pic16/ralloc.c,
10882         * src/xa51/ralloc.c,
10883         * src/z80/ralloc.c: recompute the liveranges after register packing
10884
10885 2003-11-21 Klaus Flittner <klaus_flittner AT gmx.de>
10886
10887         * src/SDCCloop.c (newInduction): fixed bug #845630
10888
10889 2003-11-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10890
10891         * src/SDCCsymt.c (compareTypesExact): disabled debugging output
10892         inadvertantly left behind from my 2003-11-12 change
10893
10894 2003-11-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10895
10896         Updated headers I neglected to commit yesterday.
10897         * src/SDCClrange.h,
10898         * src/SDCCicode.h
10899
10900 2003-11-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10901
10902         * src/SDCCcse.c (algebraicOpts): fixed bug #773153
10903         * src/SDCClrange.c (rlivePoint): need to mark IC_RESULT used if POINTER_SET op
10904         * src/SDCCopt.c (eBBlockFromiCode),
10905         * src/SDCClrange.c (hashiCodeKeys, sequenceiCode, computeLiveRanges): seperated
10906         the creation of the key hash table from the sequencing so it can be used
10907         earlier (for some GCSE bug fixes still pending)
10908
10909 2003-11-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10910
10911         * src/mcs51/gen.c (genPlus): generate shortcut for adding 0xab00
10912         * support/regression/tests/addsub.c: testing genPlus shortcut
10913
10914 2003-11-15  Borut Razem <borut.razem AT siol.net>
10915
10916         * src/SDCCmain.c: fixed bug #841645: -MM command line option passed to sdcpp
10917
10918 2003-11-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10919
10920         * src/SDCCcse.c (cseBBlock): fixed bug #527779
10921         * src/SDCCcse.c (deleteGetPointers): rewrote so that the set
10922         ordering is immaterial.
10923         * src/SDCCdflow.c (mergeInExprs): fixed bug #587536
10924
10925 2003-11-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10926
10927         * src/SDCCicode.c (geniCodeAddressOf): fixed part of bug #840381
10928         * src/SDCCopt.c (replaceRegEqv, isLocalWithoutDef): fixed other part
10929         (SIGSEV) of bug #840381
10930         * src/SDCCmain.c (linkEdit, assemble): fixed bug #841606 (don't
10931         unlink new file before rename if new and old filenames are the same)
10932
10933 2003-11-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10934
10935         * src/mcs51/main.c: started fixing bug #737001 (SDCC not clearing
10936         uninitialized variables) for the mcs51. Set environment variable
10937         SDCC_GENRAMCLEAR to test.
10938         xdata initialization slightly shorter
10939
10940 2003-11-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10941
10942         * src/SDCCsymt.h,
10943         * src/SDCCsymt.c (addSymTypeChain, compareTypesExact): fixed bugs
10944         #838241 & 780691 (basicly the same bug)
10945         * src/SDCCBBlock.c (iCode2eBBlock): fixed bug #840148
10946         * src/SDCCBBlock.c (iCodeFromeBBlock): fixed bug #840162
10947
10948 2003-11-11 Bernhard Held <bernhard AT bernhardheld.de>
10949
10950         * src/SDCCmain.c (linkEdit): "fix" #834252
10951
10952 2003-11-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10953
10954         * src/SDCCast.c (removePostIncDecOps, removePreIncDecOps),
10955         * src/SDCCast.h,
10956         * src/SDCC.y: fixed bug #819403
10957
10958 2003-11-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10959
10960         * support/regression/fwk/lib/testfwk.c: printn is recursive and thus needs
10961         the reentrant attribute.
10962         * src/hc08/gen.c (genPackBits): added missing stack readjustment
10963         * sim/ucsim/hc08.src/inst.cc (inst_mov): fixed bugs with mov instruction
10964         simulation
10965         * src/SDCCast.c (decorateType): fixed bug with storage class not being
10966         updated during pointer dereference; f.e. ~(((char *)1)*) was being
10967         erroneously reduced to a literal.
10968         * src/hc08/ralloc.c (packRegisters, rematStr),
10969         * src/hc08/gen.c (aopForRemat): allow literals to be rematerialized in
10970         some cases
10971
10972 2003-11-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10973
10974         * src/mcs51/main.c: fixed bug #838385. Thanks to Josef Pavlik for finding and fixing
10975         * doc/sdccman.lyx: changed from 'article' to 'book'
10976         * doc/Makefile: readded test_suite_spec and cdbfileformat
10977
10978 2003-11-08 Bernhard Held <bernhard AT bernhardheld.de>
10979
10980         * device/include/stdlib.h: include malloc.h to comply with ANSI
10981         * support/regression/tests/malloc.c: include stdlib.h instead of malloc.h
10982
10983 2003-11-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10984
10985         * doc/Makefile: sdccman.pdf should build with correct references (more info in commit msg)
10986         * doc/clean.mk: also remove *.out files
10987         * doc/sdccman.lyx: some additions, larger top/bottom margins
10988
10989 2003-11-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10990
10991         * src/SDCC.y: fixed bug #837365
10992         * support/regression/tests/bitopcse.c
10993         * src/hc08/gen.c (genPointerGet): Don't assume pointer operand is
10994         a symbol (might be valop instead)
10995         * device/lib/Makefile.in: added errno.c to HC08SOURCES
10996         * device/lib/clean.mk: added hc08 to the cleaning list
10997
10998 2003-11-04  Borut Razem <borut.razem AT siol.net>
10999
11000         * configure, configure.in, sdcc_vc_in.h, sdcconf_in.h: reverted changes,
11001           made 2003-11-04
11002         * support/Util/NewAlloc.c, as/hc08/lklibr.c, as/mcs51/lklibr.c,
11003           as/z80/aslist.c, as/z80/assym.c: removed inclusion of nonstandard malloc.h;
11004           malloc is declared in standard stdlib.h
11005
11006 2003-11-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11007
11008         * device/lib/hc08/Makefile: need to clean .rel not .o files
11009         * src/hc08/gen.c (genDjnz): can't use djnz with extended addressing mode
11010
11011 2003-11-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11012
11013         * src/port.h,
11014         * src/hc08/main.c,
11015         * src/mcs51/main.c,
11016         * src/ds390/main.c,
11017         * src/z80/main.c,
11018         * src/avr/main.c,
11019         * src/pic/main.c,
11020         * src/pic16/main.c,
11021         * src/xa51/main.c: added hasExtBitOp & oclsExpense functions to ports
11022         * src/SDCCicode.c: changed several IS_FARSPACE tests to isOclsExpensive
11023         tests (which uses the port's oclsExpense function)
11024         * src/SDCC.y,
11025         * src/SDCCast.c,
11026         * src/SDCCicode.c,
11027         * src/hc08/gen.c,
11028         * src/ds390/gen.c,
11029         * src/mcs51/gen.c: added support for the SWAP iCode (RFE #834167)
11030
11031 2003-11-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11032
11033         * src/SDCCcse.c (ifxOptimize),
11034         * src/SDCClabel.c (labelIfx, deleteIfx): When the condition to
11035         an IFX iCode is volatile, convert to DUMMY_READ_VOLATILE instead
11036         deleting the IFX iCode.
11037         * src/hc08/ralloc.c: reduced unneeded slocs
11038         * src/hc08/gen.c: fixed bug in asmopToBoolean
11039
11040 2003-11-04  Borut Razem <borut.razem AT siol.net>
11041
11042         * configure, configure.in, sdcc_vc_in.h, sdcconf_in.h,
11043           support/Util/NewAlloc.c, as/hc08/lklibr.c, as/mcs51/lklibr.c,
11044           as/z80/aslist.c, as/z80/assym.c: decision to include malloc.h
11045           transferred to configure
11046
11047 2003-11-03 Bernhard Held <bernhard AT bernhardheld.de>
11048
11049         Use headers defined in the C[++] standards:
11050         * sim/ucsim/gui.src/serio.src/fileio.cc
11051         * sim/ucsim/gui.src/serio.src/frontend.cc
11052         * sim/ucsim/gui.src/serio.src/main.cc
11053         * sim/ucsim/gui.src/serio.src/posix_signal.cc
11054         * support/Util/NewAlloc.c
11055         * as/hc08/lklibr.c
11056         * as/mcs51/lklibr.c
11057         * as/z80/aslist.c
11058         * as/z80/assym.c
11059
11060 2003-11-03  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11061
11062         * Added MSVC projects for hc08 assembler and linker:
11063         all.dsp, config.dsp, sdcc.dsw, /as/hc08/as_hc08.dsp,
11064         /as/hc08/link_hc08.dsp
11065
11066 2003-11-03 Martin Helmling <Martin.Helmling AT octo-soft.de>
11067
11068         * debugger/mcs51/cmd.c: allows filename starting with digit(+ some debug)
11069
11070 2003-11-02 Bernhard Held <bernhard AT bernhardheld.de>
11071
11072         * src/SDCCmain.c (linkEdit): "fixed" again bug #833605
11073
11074 2003-11-01 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11075
11076         * src/mcs51/main.c: xdata initialization is 13 bytes shorter now
11077
11078 2003-10-31  Borut Razem <borut.razem AT siol.net>
11079
11080         * support/cpp2/cpplib.h,
11081           support/cpp2/cpplib.c,
11082           support/cpp2/cpplex.c,
11083           support/cpp2/cppinit.c: introduced #pragma preproc_asm [ + | - ]
11084           to switch _asm block preprocessing on / off. Default is
11085           #pragma preproc_asm +
11086
11087 2003-10-31  Borut Razem <borut.razem AT siol.net>
11088
11089         * support/cpp2/cpplex.c: Fixed _WIN32 problem with CR-CR-LF sequences
11090           when outputting comment blocks (when executed with -C option) and
11091           _asm (SDCPP specific) blocks
11092
11093 2003-10-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11094
11095         * as/hc08/lkrloc.c (relr): Fixed ihx output, fixed lastAreaIndex warning
11096
11097 2003-10-31 Klaus Flittner <klaus_flittner AT gmx.de>
11098
11099         * src/SDCCcse.c (updateSpillLocation): fixed bug #808027
11100
11101 2003-10-31 Bernhard Held <bernhard AT bernhardheld.de>
11102
11103         * src/SDCCmain.c (linkEdit): "fixed" bug #833605
11104         * src/SDCCast.c (decorateType): fixed bug #832664
11105
11106 2003-10-31  Borut Razem <borut.razem AT siol.net>
11107
11108         * support/cpp2/cpplex.c: fixed for SDCPP:
11109           comments(when executed with -C option) and _asm blocks
11110           were included even if they where in skipped #if block.
11111           Applied solution from GCC cpp 3.3.2
11112
11113 2003-10-31  Borut Razem <borut.razem AT siol.net>
11114
11115         * src/SDCC.lex: sdcc now understands both formats:
11116           '# <line_number> <file_name>' and
11117           '#line <line_number> <file_name>'
11118         * support/cpp2/cppmain.c: sdcpp now generates the standard
11119           '# <line_number> <file_name>' instead of former
11120           '#line <line_number> <file_name>'
11121
11122 2003-10-30  Borut Razem <borut.razem AT siol.net>
11123
11124         * support/cpp2/cpphash.h,
11125         * support/cpp2/cpplib.h
11126         * support/cpp2/cpplex.c,
11127         * support/cpp2/cppmain.c,
11128         * support/cpp2/cppinit.c: fixed bug #828015 - Syntax variation for _asm character constants
11129
11130 2003-10-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11131
11132         Fixed a number of problems revealed by bug #827883.
11133         * src/SDCCloop.c (loopInvariants): Spill location of the
11134         result operand should be recomputed if extracted from
11135         a loop. Also, don't extract assignments of an iTemp
11136         from a literal.
11137         * src/SDCCast.c (isConformingBody): loop reversal should
11138         not occur if the control variable is involved with a
11139         relational operator.
11140
11141 2003-10-28 Bernhard Held <bernhard AT bernhardheld.de>
11142
11143         * .version: bumped to 2.3.6 to reflect the big improvements
11144         made by Erik and Klaus. Thanks!
11145
11146 2003-10-28 Klaus Flittner <klaus_flittner AT gmx.de>
11147
11148         Replaced the livrange code.
11149         * src/SDCClrange.c: added new LR code
11150         * src/SDCCloop.c,
11151         * src/SDCCBBlock.h: removed remainig parts from old LR code
11152         * src/ds390/ralloc.c,
11153         * src/ds390/gen.c: minor fixes to make it work with new code
11154
11155 2003-10-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11156
11157         * as/hc08/asm.h,
11158         * as/hc08/lkrloc.c,
11159         * src/hc08/gen.c,
11160         * src/hc08/ralloc.c: Fix various warnings related to the hc08
11161         * src/SDCCicode.c (geniCodePreInc, geniCodePreDec): Fixed bug #829717
11162         (tweaked fix for bug #818696)
11163
11164 2003-10-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11165
11166         * src/z80/ralloc.c (joinPushes): Fixed bug #828742
11167
11168 2003-10-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11169
11170         * src/SDCCmain.c,
11171         * sdccconf_in.h: Fixed bug #828387 (--disable-hc08-port didn't work)
11172         * src/mcs51/gen.c (gencjneshort),
11173         * src/ds390/gen.c (gencjneshort): Made comparison with AOP_IMMD operand
11174         more efficient (per Scott Bronson's suggestion)
11175
11176 2003-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11177
11178         Extended the semantics of the critical keyword to include
11179         individual statements. See RFE #827755 and #799831
11180         * src/SDCC.y
11181         * src/SDCCicode.c
11182         * src/SDCCopt.c
11183         * src/SDCCast.c
11184         * support/Util/SDCCerr.c
11185         * support/Util/SDCCerr.h
11186         * src/mcs51/gen.c
11187         * src/ds390/gen.c
11188         * src/hc08/gen.c
11189
11190 2003-10-19  Borut Razem <borut.razem AT siol.net>
11191
11192         * src/SDCC.lex: fixed bug #825944 - defined yytext_ptr to make it compile with flex 2.5.31
11193
11194 2003-10-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11195
11196         * src/SDCCicode.c (geniCodePreInc, geniCodePreDec, ast2iCode):
11197         Fixed bug #818696
11198         * src/SDCCast.c (ast_print): Fixed --dumptree so that preincrement
11199         and predecrement operand is displayed
11200
11201 2003-10-13 Bernhard Held <bernhard AT bernhardheld.de>
11202
11203         * src/SDCCval.c (valMinus): fixed bug #826041
11204
11205 2003-10-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11206
11207         Some hc08 related updates that I missed earlier
11208         * sim/ucsim/stypes.h
11209         * support/regression/ports/hc08/spec.mk
11210
11211 2003-10-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11212
11213         New target "hc08" for the Motorola 68hc08 family of micros
11214
11215         * configure
11216         * configure.in
11217         * Makefile
11218         * src/hc08/*
11219         * src/SDCCmain.c
11220         * src/port.h
11221         * sim/ucsim/hc08.src/*
11222         * sim/ucsim/configure.in
11223         * src/ucsim/configure
11224         * sim/ucsim/packages_in.mk
11225         * as/hc08/*
11226         * as/Makefile
11227         * device/include/mc68hc908qy.h
11228         * device/lib/hc08/*
11229         * device/lib/Makefile.in
11230         * support/regression/ports/hc08/*
11231         * support/regression/Makefile
11232
11233 2003-10-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11234
11235         * src/z80/gen.c: fixed bug revealed by ast_constant_folding.c
11236         regression test
11237         * src/ds390/gen.c (genCast): fixed bug #821957
11238
11239 2003-10-13 Bernhard Held <bernhard AT bernhardheld.de>
11240
11241         * device/lib/logf.c: "fixed" overlay bug
11242         * support/regression/ports/host/spec.mk: added m library
11243         * support/regression/ports/mcs51-stack-auto/spec.mk: added float funcs
11244         * support/regression/tests/float_trans: added (for Eric)
11245
11246 2003-10-12 Bernhard Held <bernhard AT bernhardheld.de>
11247
11248         * src/mcs51/gen.c (genCpl): fixed bug
11249         http://sf.net/mailarchive/message.php?msg_id=6263915
11250
11251 2003-10-10 Bernhard Held <bernhard AT bernhardheld.de>
11252
11253         * src/SDCCast.c (decorateType): added extended constant folding
11254         * src/SDCCsymt.c (computeType): cleanup
11255         * src/SDCCval.c (valShift): minor optimization
11256         * support/regression/tests/ast_constant_folding.c: added
11257
11258 2003-10-09  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11259
11260         * src/SDCCmain.c: removed some unintended changes
11261
11262 2003-10-09  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11263
11264         * src/SDCCmain.c (setParseWithComma): fixed bug #816685
11265         * src/z80/gen.c: fixed part of bug #817589
11266         * src/SDCCsymt.c (checkFunction): fixed bug #817895
11267
11268 2003-10-08 Bernhard Held <bernhard AT bernhardheld.de>
11269
11270         Replaced cast (void **) with (void *) to avoid gcc 3 warning:
11271         * src/SDCCcflow.c
11272         * src/SDCCcse.c
11273         * src/SDCCdflow.c
11274         * src/SDCClabel.c
11275         * src/SDCClrange.c
11276         * src/SDCCmem.c
11277         * src/SDCCopt.c
11278         * src/SDCCpeeph.c
11279         * src/SDCCset.c
11280         * src/avr/ralloc.c
11281         * src/ds390/ralloc.c
11282         * src/izt/ralloc.c
11283         * src/mcs51/ralloc.c
11284         * src/pic/ralloc.c
11285         * src/pic16/ralloc.c
11286         * src/xa51/ralloc.c
11287         * src/z80/ralloc.c
11288         * src/z80/gen.c: removed unused label "release:"
11289
11290 2003-10-06  Borut Razem <borut.razem AT siol.net>
11291
11292         * src/SDCC.lex: removed definition of unused variables
11293           save_optimize and save_options
11294
11295 2003-10-06 Bernhard Held <bernhard AT bernhardheld.de>
11296
11297         * clean.mk: removed '=' in "-maxdepth=1"
11298         * src/SDCCloop.c: replace LRKLAUS with SDCC_LRKLAUS
11299         * src/SDCClrange.c: replace LRKLAUS with SDCC_LRKLAUS
11300
11301 2003-10-06  Borut Razem <borut.razem AT siol.net>
11302
11303         * src/SDCC.lex, src/SDCC.lex: use dbuf for "_asm" definitions;
11304           my_unput() replaced by unput()
11305
11306 2003-10-05 Bernhard Held <bernhard AT bernhardheld.de>
11307
11308         * src/SDCCloop.c (assignmentsToSym, loopInduction): cast argument of
11309         setToNull() to (void *) to avoid gcc3.x's warning: "dereferencing
11310         type-punned pointer will break strict-aliasing rules"
11311         Old LR behaviour is again default; Klaus' LR can be choosen by
11312         defining the environment variable LRKLAUS
11313         * src/SDCCBBlock.h
11314         * src/SDCCloop.c
11315         * src/SDCClrange.c
11316         * src/ds390/ralloc.c (spillThis): applied Klaus' patch
11317         * clean.mk: fixed removal of files in bin/CVS/
11318         * device/lib/clean.mk: fixed removal of directories small and large
11319         * support/Util/SDCCerr.c: changed W_INT_OVL to ERROR_LEVEL_PEDANTIC
11320         * src/SDCCicode.c,
11321         * src/SDCCval.c: removed superflous test for pedantic
11322
11323 2003-10-05  Borut Razem <borut.razem AT siol.net>
11324
11325         * src/SDCC.lex, support/Util/SDCCerr.c, sdcc/support/Util/SDCCerr.h:
11326           Fixed bug #816692: introduced new ERROR_LEVEL_PEDANTIC warning
11327           message "unmatched #pragma SAVE and #pragma RESTORE"
11328
11329 2003-10-04  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11330
11331         * doc/sdccman.lyx: various additions and updates (interrupts, inline
11332           assembly, critical functions, atomic, nojtbound)
11333
11334 2003-10-04 Bernhard Held <bernhard AT bernhardheld.de>
11335
11336         Applied liferange patch from Klaus Flittner <klaus_flittner AT gmx.de>
11337         * src/SDCCBBlock.h
11338         * src/SDCCloop.c
11339         * src/SDCCloop.h
11340         * src/SDCClrange.c
11341
11342 2003-10-03  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11343
11344         * src/z80/gen.h,
11345         * src/z80/gen.c (aopOp, aopGet, aopPut, genDummyRead),
11346         * src/mcs51/gen.h
11347         * src/mcs51/gen.c (aopOp, aopGet, aopPut, genDummyRead),
11348         * src/ds390/gen.h
11349         * src/ds390/gen.c (aopOp, aopGet, aopPut, genDummyRead),
11350         * src/SDCCicode.c (ast2iCode, geniCodeDummyRead): Fixed bug #663539
11351         * src/SDCCopt.c (killDeadCode): Fixed bugs #663539 & #816705
11352
11353 2003-10-02  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11354
11355         * src/z80/gen.c (genRet): fixed bug #524753
11356         * src/z80/gen.c (genCast): fixed internal error on cast from
11357         pointer to long
11358         * src/z80/gen.c (_saveRegsForCall, emitCall): adapted Johan's
11359         fix for bug #477835 to the z80
11360         * src/z80/gen.c (genZ80code, _vemit2, _emit2): added support
11361         for tracking iCodes in the peephole optimizer for z80
11362
11363 2003-10-01  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11364
11365         * src/SDCCicode.c (geniCodeJumpTable, geniCodeSwitch): fixed
11366         the other part of bug #814548
11367         * src/SDCCpeeph.c (labelInRange): fixed bug #814558
11368
11369 2003-09-30  Bernhard Held <bernhard AT bernhardheld.de>
11370
11371         * src/SDCCcse.c: fixed part of bug #814548
11372
11373 2003-09-28  Borut Razem <borut.razem AT siol.net>
11374
11375         * src/asm.c: rewrite of printILine() to use temporary file instead
11376           a pipe
11377         * src/xa51/main.c: commented out declaration of int rewinds
11378
11379 2003-09-27  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11380
11381         * src/SDCCicode.c (geniCodeJumpTable): Fixed bug #813206
11382
11383 2003-09-26  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11384
11385         * src/SDCCdflow.c (computeDataFlow): Fixed bug #810746
11386         * src/asm.c (printILine): Fixed bug #811015
11387
11388 2003-09-22  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11389
11390         *link/z80/lklibr.c, as/mcs51/lklibr.c: Improved memory allocation and
11391         freeing.
11392
11393 2003-09-21  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11394
11395         * src/z80/gen.c (setupToPreserveCarry): Fixed bug #796955
11396         * src/z80/gen.c (setupPair, genMovePairPair): Fixed setupPair
11397         to correctly handle general case of AOP_PAIRPTR
11398         * src/z80/gen.c (aopGet, aopPut): Generalized AOP_PAIRPTR handling
11399
11400 2003-09-21  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11401
11402         * src/mcs51/ralloc.c (fillGaps),
11403         * src/ds390/ralloc.c (fillGaps): fixed bug #810093 (yet another
11404         register positioning bug)
11405
11406 2003-09-21  Bernhard Held <bernhard AT bernhardheld.de>
11407
11408         * device/lib/_fsdiv.c: replaced (1<<31) by (1ul<<31)
11409
11410 2003-09-19  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11411
11412         * src/mcs51/gen.c (loadDptrFromOperand, genFarPointerGet,
11413         genCodePointerGet, genGenPointerGet, genFarPointerSet,
11414         genGenPointerSet): handle AOP_DPTR correctly when loading dptr
11415         (ralloc doesn't intentionally do this now, but perhaps later)
11416         * src/mcs51/ralloc.c (serialRegAssign, fillGaps),
11417         * src/ds390/ralloc.c (serialRegAssign, fillGaps): fixed some
11418         register positioning bugs (Fixed bug #762602 and #795325)
11419         * src/SDCCicode.c (geniCodeDerefPtr): Track output class correctly
11420         (Fixed bug #808779)
11421         * src/z80/gen.c: increased _vemit2's buffer[] to handle long
11422         lines that --i-code-in-asm generates
11423
11424 2003-09-18  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11425
11426         *link/z80/lklibr.c, as/mcs51/lklibr.c: Fixed Linux segfaults when
11427         trying to fclose a FILE* that was already closed.
11428
11429 2003-09-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11430
11431         * src/SDCCsymt.c (structElemType): fixed bug #808291 (members
11432         of const struct should be treated as if const themselves)
11433
11434 2003-09-18  Bernhard Held <bernhard AT bernhardheld.de>
11435
11436         * src/SDCCval.c (valPlus, valMinus): fixed bug #808337
11437
11438 2003-07-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11439
11440         * support/librarian/sdcclib.c: Generate correct offsets for libraries with
11441         Unix (/n) and DOS (/r/n) line terminations.
11442
11443 2003-09-17  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11444
11445         * src/SDCCopt.c (cnvFromFloatCast, cnvToFloatCast): fixed
11446         bug #613775
11447
11448 2003-09-16  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11449
11450         * src/mcs51/gen.c (genFunction, genEndFunction),
11451         * src/ds390/gen.c (genFunction, genEndFunction): Moved save
11452         and restore of EA so that stack offsets to parameters are
11453         correct when using both critical and reentrant/stack-auto.
11454         * src/z80/gen.c (aopOp): removed erroneous assertion about sloc
11455         size (can be triggered in error if sloc is shared between
11456         different sized objects)
11457         * device/include/float.h: fixed macros to explicitly use
11458         unsigned long where needed
11459
11460 2003-09-15  Bernhard Held <bernhard AT bernhardheld.de>
11461
11462         Feature req. 799831: added code to allow nesting of critical functions
11463         * src/mcs51/gen.c (genFunction, genEndFunction)
11464         * src/ds390/gen.c (genFunction, genEndFunction)
11465
11466 2003-09-14  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11467
11468         * src/SDCCsymt.c (sclsFromPtr),
11469         * src/SDCCsymt.h,
11470         * src/SDCCast.c (decorateType): fixed bug #462971. Also, better
11471         support for standard C idiom of memory mapped variables; for
11472         example, *((xdata int*)0x1234) = 1 is now internally equivalent
11473         to xdata int at 0x1234 tempvar = 1.
11474         * sim/ucsim/z80.src/inst_xd.cc: fixed bug #805483 with patch
11475         provided by Akiya ISHIDA
11476
11477 2003-09-13  Bernhard Held <bernhard AT bernhardheld.de>
11478
11479         * src/SDCCval.c (cheapestVal): reenabled to reduce int to char
11480         * src/SDCCval.c (constVal): added reduction from int to char
11481         * src/SDCCval.c (valMult, valDiv): fixed sign handling
11482         * src/SDCCval.c (valShift): fixed after change of cheapestVal()
11483         * src/SDCCval.c (valCompare): fixed EQ_OP and NE_OP; they have
11484         to ignore the sign
11485         * support/regression/tests/shifts.c: fixed
11486
11487 2003-09-13  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11488
11489         * src/z80/gen.c (genXor): Fixed bug #805445
11490
11491 2003-09-12  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11492
11493         Fixed bug #621531 (const & volatile confusion in the type chain).
11494         DCL_PTR_CONST, DCL_PTR_VOLATILE, & IS_PTR_CONST now exclusively
11495         refer to the const or volatile state of the pointer itself.
11496
11497         * src/SDCCast.c
11498         * src/SDCCglue.c
11499         * src/SDCCicode.c
11500         * src/SDCCsymt.c
11501         * src/SDCCval.c
11502         * src/SDCC.y
11503         * src/SDCCsymt.h
11504         * src/pic/gen.c
11505         * src/pic/ralloc.c
11506         * src/pic16/gen.c
11507         * src/pic16/ralloc.c
11508         * support/regression/tests/const.c
11509
11510 2003-09-10  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11511
11512         When checking for duplicated modules, use absolute paths
11513         instead of relative paths.  Files changed:
11514
11515         * as/mcs51/lklib.c
11516         * link/z80/lklib.c
11517
11518 2003-09-09  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11519
11520         * src/SDCCicode.c (geniCodeLogic): fixed bug #797572
11521
11522 2003-09-07  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11523
11524         * device/include/string.h: added size_t typedef, changed
11525         prototypes to use size_t, eliminated separate reentrant and
11526         non-reentrant declarations, added _memmove declaration
11527         * device/lib/_memcpy.c: changed to use size_t instead of int,
11528         changed /4 to >>2 to avoid division library call
11529         * device/lib/_memcmp.c,
11530         * device/lib/_memset.c,
11531         * device/lib/_strncat.c,
11532         * device/lib/_strncpy.c,
11533         * device/lib/_strncmp.c: changed to use size_t instead of int
11534         * device/lib/_memmove.c: new file (fixed bug #772294)
11535         * device/lib/Makefile.in: added _memmove.c
11536         * device/lib/z80/asm_strings.s: fixed bug #772290
11537         * support/regression/tests/bitfields.c: attempt to fix host assertion
11538         failure on amd64-unknown-linux2.2
11539
11540 2003-09-06  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11541
11542         * src/z80/gen.c (aopPut, spillPairReg): fixed bug #800998
11543         * src/z80/gen.c (genFunction, genEndFunction): fixed "bug" #774700
11544         * as/z80/asmain.c (main): fixed bug #801766
11545
11546 2003-09-06  Bernhard Held <bernhard AT bernhardheld.de>
11547
11548         * src/SDCCicode.c (ast2iCode): fixed differences in iCode with different
11549         compilers
11550
11551 2003-09-05  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11552
11553         * src/SDCCast.c (isConformingBody): fixed loop reversal bug
11554         reported in bug #800609
11555
11556 2003-09-04  Vangelis Rokas <vrokas AT otenet.gr>
11557
11558         * Top header beautifications in src/pic16 directory:
11559           device.c, device.h, gen.c, gen.h, genarith.c, glue.c, pcode.c,
11560           pcodeflow.c, pcodeflow.h, pcode.h, pcodepeep.c, pcoderegs.c,
11561           pcoderegs.h, ralloc.c, ralloc.h
11562         * main.c: added top header and GPL license notice
11563         * pcode.c: fixed the if-conditional warning
11564
11565 2003-09-04  Bernhard Held <bernhard AT bernhardheld.de>
11566
11567         * device/lib/_mullong.c: replaced int by short for gcc
11568
11569 2003-08-31  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11570
11571         * src/SDCCpeeph.c (notVolatile, notVolatileVariable): handle IFX
11572         and JUMPTABLE iCodes properly now (worked by accident before)
11573         * src/mcs51/gen.c (leftRightUseAcc),
11574         * src/ds390/gen.c (leftRightUseAcc): handle IFX and JUMPTABLE
11575         iCode properly now. Use getSize instead of nRegs since a & b
11576         aren't part of the nRegs tally.
11577
11578 2003-08-31  Vangelis Rokas <vrokas AT otenet.gr>
11579
11580         * src/pic16/main.c: corrected offsets of interrupt vectors in _pic16_genIVT()
11581         * src/pic16/pcode.c: fix to disable inserting BANKSEL directive
11582           before instructions that use the _STATUS register
11583
11584 2003-08-31  Bernhard Held <bernhard AT bernhardheld.de>
11585
11586         * src/mcs51/gen.c (freeAsmop): fixed off by one in stack offset (AOP_STK)
11587         * src/mcs51/gen.c (genNearPointerSet): added missing opcode for
11588         fetching of the pointer
11589         * src/mcs51/gen.c (genNearPointerGet): added reuse of PREG,
11590         copied from genNearPointerSet()
11591         * src/mcs51/gen.c (genNearPointerGet): don't pop r0/r1, if RESULTONSTACK
11592         * src/mcs51/gen.c: changed order of freeAsmop(left/right/result)-calls.
11593         If they pop r0/r1 they must be called in the opposite order than aopOp().
11594         * device/lib/_mullong.c: fixed for "--model-large --int-long-reent"
11595         (resp. --stack-auto), prepared for --xstack
11596
11597 2003-08-28  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11598
11599         * doc/sdccman.lyx: reverted tables to those in cvs 1.64
11600
11601 2003-08-28  Bernhard Held <bernhard AT bernhardheld.de>
11602
11603         * device/lib/_startup.c: quick & dirty fix for ds390/ds400;
11604         these ports have their own __sdcc_external_start()
11605
11606 2003-08-26  Bernhard Held <bernhard AT bernhardheld.de>
11607
11608         pic patch provided by Slade Rich <slade_rich AT yahoo.com>
11609         * src/pic/glue.c (pic14printPublics): fixed bug introduced when symbol
11610         type for bits was changed. It resulted in bit variables becoming
11611         global, which is not permitted in PIC 14 assembly output.
11612
11613 2003-08-23  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11614
11615         * doc/sdccman.lyx: various additions and updates. Rearranged sections
11616
11617 2003-08-22  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11618
11619         Z80 and MCS51 linkers complaint if a public symbol is defined
11620         in more than one library module:
11621
11622         * as/mcs51/lklib.c
11623         * link/z80/lklib.c
11624         * as/mcs51/Makefile.in
11625
11626 2003-08-22  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11627
11628         A few small changes that speed up the peephole optimizer.
11629
11630         * src/SDCCpeeph.c
11631
11632 2003-08-22  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11633
11634         Try to make the peephole optimizer smarter by maintaining
11635         an association between the assembly source code and the
11636         iCodes that originated them. Put this information to use
11637         with a new peephole rule condition "notVolatile" so that
11638         the rules can be aggressive yet still safe.
11639
11640         * src/SDCCpeeph.c
11641         * src/SDCCpeeph.h
11642         * src/mcs51/gen.c
11643         * src/mcs51/peeph.def
11644
11645 2003-08-20  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11646
11647         Fixed bug #741761
11648
11649         * src/mcs51/gen.c (aopForSym, leftRightUseAcc),
11650         * src/ds390/gen.c (aopForSym, leftRightUseAcc): preserve A and B
11651         if the left or right operand symbols have the accuse flag set.
11652
11653 2003-08-20  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11654
11655         Changed the type of the result of the ! (NOT) operator to char;
11656         previously it returned the same type as the source. This allows
11657         us to eliminate all the genFloatNot functions (all of its target
11658         implementations were very buggy) since !float can use the same
11659         code as !long now.
11660
11661         * src/SDCCicode.c (ast2iCode): ! returns char
11662         * src/mcs51/gen.c (genNot, genNotFloat),
11663         * src/ds390/gen.c (genNot, genNotFloat),
11664         * src/z80/gen.c (genNot, genNotFloat),
11665         * src/pic/gen.c (genNot, genNotFloat),
11666         * src/pic16/gen.c (genNot, genNotFloat): eliminated genNotFloat
11667
11668 2003-08-19  Bernhard Held <bernhard AT bernhardheld.de>
11669
11670         pic patch provided by Slade Rich <slade_rich AT yahoo.com>
11671         1. Interrupt would not compile properly. Ensure PCLATH register is saved
11672            during interrupts. Ensure WSAVE is located at a shared bank address.
11673         2. Fixed page selection in some places
11674         3. Fixed BTFSS/C to where necessary use registers directly and not simply
11675            the registers name strings.
11676         4. Fixed "signed / unsigned compare" compiler warnings.
11677         5. The PIC port manages its own allocation of the general purpose
11678            registers, but makes no attempt to reuse them. As a result when
11679            compiling it soon runs out of general purpose registers. Some
11680            additional code was added to the files pcode.c and device.c to walk
11681            through the function call tree and rename the registers so that they
11682            get reused.
11683
11684         * src/pic/device.c
11685         * src/pic/gen.c
11686         * src/pic/glue.c
11687         * src/pic/pcode.c
11688         * src/pic/pcode.h
11689         * src/pic/ralloc.c
11690         * src/pic/ralloc.h
11691         * src/pic/genarith.c: Fixed problems with PIC 14 port in functions
11692         genPlus() & genMinus() when the result is the same as left or right
11693
11694 2003-08-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11695
11696         * src/z80/gen.c (isUnsplitable, fetchPairLong): fixed bug #770454
11697
11698 2003-08-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11699
11700         Made bitfield a distinct type from bit so that bitfields
11701         convert as per ANSI C and bits retain their traditional
11702         boolean style behaviour. Implemented bitfield support in
11703         the z80 port.
11704
11705         * src/SDCCsymt.h,
11706         * src/SDCCsymt.c,
11707         * src/SDCCast.c,
11708         * src/cdbFile.c,
11709         * src/mcs51/gen.c,
11710         * src/ds390/gen.c: bit v bitfield split
11711         * src/z80/gen.c: New support for bitfields
11712         * support/regression/tests/bitfields.c: reenabled z80,
11713         added more tests
11714
11715 2003-08-17  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11716
11717         Rules 246.x, 247.x relate to bitfields, the others speed up
11718         access to xdata mapped I/O devices.
11719
11720         * src/mcs51/peeph.def: added 26 peepholes 246.x - 248.x, 180.x
11721
11722 2003-08-16  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11723
11724         Cleaned up genPackBits and genUnpackBits and added two helper
11725         functions, emitPtrByteGet & emitPtrByteSet. Added optimizations
11726         for literal assignments in genPackBits (thanks to Frieder for
11727         reminding me).
11728
11729         * src/mcs51/gen.c
11730         * src/ds390/gen.c
11731
11732 2003-08-16  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11733
11734         Fixed bug #748310 (pointer to function type mishandled when the
11735         function name is omitted). Also fixed a SIGSEGV when a function
11736         attribute (reentrant, etc) is used on a non-function or on a
11737         function but misplaced before the parameter list.
11738
11739         * src/SDCC.y (abstract_declarator, abstract_declaractor2): fixed
11740         bug #748310
11741         * src/SDCC.y (declarator2_function_attributes): avoided SIGSEGV
11742         * support/Util/SDCCerr.h,
11743         * support/Util/SDCCerr.c: Added func attr misuse error msg
11744
11745 2003-08-13  Bernhard Held <bernhard AT bernhardheld.de>
11746
11747         Fixed bug #787649 by anonymous
11748         * src/SDCCglue.c (emitRegularMap): added emission of sloc for func ptr
11749         * src/ds390/gen.c (aopForSym): fixed func ptr in sloc
11750
11751 2003-08-14  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11752
11753         Fixed numerous bitfield problems.
11754
11755         * src/SDCC.y: More bitfield related error checking
11756         * src/SDCCsymt.h,
11757         * src/SDCCsymt.c (compStructSize): fixed bitfield offset calc
11758         * support/Util/SDCCerr.h,
11759         * support/Util/SDCCerr.c: Added & edited some bitfield err msgs
11760         * src/mcs51/gen.c (genPackBits, genUnpackBits): fixed mask bugs
11761         * src/ds390/gen.c (genPackBits, genUnpackBits): fixed mask bugs
11762         * support/regression/tests/bitfields.c: tests added
11763
11764 2003-08-13  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11765
11766         Made the constant following the "interrupt" keyword optional. If
11767         omitted, the function will not automatically be given an entry
11768         in the interrupt vector table (similar to #pragma NOIV, but
11769         less syntacticly kludgy). The interrupt number is also now
11770         range checked. Also fixed a bug in the high order bit example
11771         in the manual.
11772
11773         * src/SDCC.y
11774         * src/SDCCmem.c
11775         * src/SDCCglue.c
11776         * src/SDCCsymt.h
11777         * support/Util/SDCCerr.c
11778         * support/Util/SDCCerr.h
11779         * doc/sdccman.lyx
11780
11781 2003-08-13  Bernhard Held <bernhard AT bernhardheld.de>
11782
11783         * src/SDCCcse.c (algebraicOpts): fix bug converting op from value to type
11784         * src/SDCCicode.c (operandOperation): rewritten some ops
11785         (*, ==, unary_minus) to fix possible overflows and to accord with ANSI
11786         * src/SDCCsymt.c (computeType): literals are handled the same way as any
11787         other type
11788         * src/SDCCval.c (cheapestVal): removed, it doesn't accord with ANSI (can
11789         be re-activated by defining REDUCE_LITERALS)
11790         * src/SDCCval.c (constVal): fixed; hex and octal constants can be
11791         unsigned, but are signed by default
11792         * src/SDCCval.c (constVal): rearranged
11793         * src/SDCCval.c (valMod): preliminary fix
11794         * src/SDCCval.c (valCastLiteral): use TYPE_* types
11795         * support/regression/literalop.c: added, work in progress
11796
11797 2003-08-12  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11798
11799         Generate warnings for useless declarations like "char data;"
11800         that don't do what new users expect.
11801
11802         * src/SDCC.y
11803         * support/Util/SDCCerr.h
11804         * support/Util/SDCCerr.c
11805
11806 2003-08-09  Bernhard Held <bernhard AT bernhardheld.de>
11807
11808         * src/SDCCval.c (valMult): fix overflow detection of negative int
11809
11810 2003-08-07  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11811
11812         * src/z80/ralloc.c (joinPushes): made compatible with new signedness
11813
11814         Changes to support big endian targets:
11815
11816         * src/ports.h
11817         * src/SDCCglue.c
11818         * src/avr/main.c
11819         * src/ds390/main.c
11820         * src/izt/i186.c
11821         * src/mcs51/main.c
11822         * src/pic/main.c
11823         * src/pic16/main.c
11824         * src/xa51/main.c
11825         * src/z80/main.c
11826
11827 2003-08-06  Bernhard Held <bernhard AT bernhardheld.de>
11828
11829         * src/SDCCval.c (cheapestVal): changed behaviour to the same as constVal()
11830         * device/lib/time.c: fixed warning "integer overflow in expression"
11831
11832 2003-08-05  Bernhard Held <bernhard AT bernhardheld.de>
11833
11834         * src/SDCCval.c (cheapestVal, valueFromLit): use TYPE_* types
11835         * src/SDCCval.c (constVal): changed default to signed; hex and octal
11836         constants are unsigned; added recognition of "u" flag for unsigned
11837         * src/SDCCval.c (valMult): fixed signdness, added warning for overflow
11838         * src/SDCCval.c (valDiv, valMod): fixed signdness
11839         * src/SDCCicode.c (operandOperation): fixed critical typo; fixed
11840         signedness of modulo, left and right shift
11841         * support/Util/SDCCerr.c: added warning "integer overflow in expression"
11842         * support/Util/SDCCerr.h: added warning W_INT_OVL
11843         * src/SDCCast.c (decorateType): fixed gcc3.3 warning
11844         * src/SDCCast.c (ast_print): improved output of constants
11845
11846 2003-08-04  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11847
11848         Fixed some warnings when building with MSVC:
11849
11850         * as/mcs51/asdata.c
11851         * as/z80/asdata.c
11852         * as/mcs51/asm.h
11853         * as/z80/asm.h
11854         * link/z80/aslink.h
11855         * link/z80/lkdata.c
11856         * link/z80/lkeval.c
11857         * link/z80/lkgb.c
11858         * link/z80/lkihx.c
11859         * link/z80/lks19.c
11860         * link/z80/lksym.c
11861         * support/cpp2/cpplib.c
11862         * src/ds390/gen.c
11863         * src/mcs51/gen.c
11864
11865 2003-08-03  Bernhard Held <bernhard AT bernhardheld.de>
11866
11867         * src/SDCCast.c (constExprTree): fix bug #781827 by Carl Worth <cworth AT isi.edu>
11868
11869 2003-08-01  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11870
11871         * support/librarian/clean.mk: Do not remove Makefile.
11872         * support/librarian/Makefile: added.
11873
11874 2003-08-01  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11875
11876         Added librarian to MSVC build:
11877         * all.dsp
11878         * sdcc.dsw
11879         * support/librarian/librarian.dsp
11880
11881         'configure' not needed for librarian, removed:
11882         * support/librarian/configure
11883         * support/librarian/configure.in
11884         * support/librarian/config_in.h
11885         * support/librarian/Makefile.in
11886
11887         Hopefully these ones built the librarian and the rest of sdcc properly:
11888         * Makefile
11889         * Makefile.common.in
11890
11891         Messed up 'configure', so revert to previous version:
11892         * configure
11893         * configure.in
11894
11895 2003-07-31  Bernhard Held <bernhard AT bernhardheld.de>
11896
11897         * src/SDCCicode.c (operandOperation): 3. fix, this time for Alpha; ULONG has 64 bits
11898         there, while the mantissa of a double is "only" 53 bits wide.
11899
11900 2003-07-31  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11901
11902         Adding sdcclib to the build.  MSVC project coming soon.
11903         Files added/changed:
11904
11905         * support/librarian/clean.mk
11906         * support/librarian/configure
11907         * support/librarian/configure.in
11908         * support/librarian/config_in.h
11909         * support/librarian/Makefile.bcc
11910         * support/librarian/Makefile.in
11911         * support/librarian/sdcclib.c
11912         * Makefile.bcc
11913         * Makefile
11914         * Makefile.common.in
11915         * configure
11916         * configure.in
11917
11918 2003-07-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11919
11920         Linker now complaints if linked modules have conflicting options, for
11921         example, one compiled using --model-large and another one compiled with
11922         --model-small.  The following files were modified:
11923
11924         * as/mcs51/asdata.c
11925         * as/mcs51/aslink.h
11926         * as/mcs51/asm.h
11927         * as/mcs51/asmain.c
11928         * as/mcs51/asout.c
11929         * as/mcs51/i51pst.c
11930         * as/mcs51/lkdata.c
11931         * as/mcs51/lklibr.c
11932         * as/mcs51/lkmain.c
11933         * as/z80/asdata.c
11934         * as/z80/asm.h
11935         * as/z80/asmain.c
11936         * as/z80/asout.c
11937         * as/z80/z80pst.c
11938         * link/z80/aslink.h
11939         * link/z80/lkdata.c
11940         * link/z80/lklibr.c
11941         * link/z80/lkmain.c
11942         * src/SDCCglue.c
11943
11944 2003-07-28  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11945
11946         *link/z80/aslink.h, link/z80/lklibr.c, as/mcs51/aslink.h,
11947         as/mcs51/lklibr.c: Generate a warning when a library is not found.
11948
11949 2003-07-28  Bernhard Held <bernhard AT bernhardheld.de>
11950
11951         * src/z80/mappings.i: fix _mul[us][int,long] entries
11952
11953 2003-07-26  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11954
11955         *src/SDCCmain.c: do not search for crt0.o when using --nostdlib
11956
11957 2003-07-24  Bernhard Held <bernhard AT bernhardheld.de>
11958
11959         * src/SDCCicode.c (operandOperation): really fixed problem with bitops
11960         * support/regression/tests/bitopcse.c: added
11961         fixed warning:
11962         * src/avr/gen.c:
11963         * src/pic/gen.c:
11964         * src/pic16/gen.c:
11965         * src/z80/gen.c:
11966         * src/xa51/gen.c:
11967
11968 2003-07-24  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11969
11970         added support for new library format to z80, gbz80 linkers:
11971         *link/z80/aslink.h
11972         *link/z80/lklex.c
11973         *link/z80/lklib.c
11974         *link/z80/lklist.c
11975
11976 2003-07-24  Bernhard Held <bernhard AT bernhardheld.de>
11977
11978         * src/SDCCicode.c (operandOperation): fixed problem with bitops and 0xffffffff;
11979         after {double d = 0xffffffff; long l = d;} l will be 0x80000000 (LONG_MIN)
11980
11981 2003-07-23  Bernhard Held <bernhard AT bernhardheld.de>
11982
11983         added DUMMY_READ_VOLATILE:
11984         * src/SDCC.y:
11985         * src/avr/gen.c:
11986         * src/xa51/gen.c:
11987         * src/z80/gen.c:
11988         * src/pic/gen.c:
11989         * src/pic16/gen.c:
11990         * src/mcs51/gen.c:
11991         * src/ds390/gen.c:
11992         * src/SDCCcse.c (algebraicOpts): many improvements
11993         * src/SDCCcse.h: removed algebraicOpts()
11994         * src/SDCCicode.c (picDummyRead): added
11995
11996 2003-07-23  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11997
11998         * as/mcs51/lkmem.c: Changed message "Insufficient DRAM memory" to
11999         "Insufficient space in data memory".
12000
12001 2003-07-20  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12002
12003         * src/mcs51/gen.c: fixed bug #771358
12004         * src/z80/gen.c: fixed bug #759087
12005
12006 2003-07-20  Bernhard Held <bernhard AT bernhardheld.de>
12007
12008         * src/pic16/glue.c: minor cleanup by Vangelis
12009
12010 2003-07-19  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12011
12012         * device/include/regc515c.h: fixed #758477
12013         * device/lib/_gptrget.c: saving some cycles in generic pointer get
12014         * device/lib/_gptrput.c: saved a few bytes
12015         * my tab spacing is 8, yours too?)
12016         * device/lib/_ser.c: process RX bytes earlier than TX bytes
12017         * device/lib/serial.c: process RX bytes earlier than TX bytes
12018         * src/mcs51/gen.c(genGenPointerGet/Set): removed writing of type after postincrement
12019
12020 2003-07-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12021
12022         * src/z80/gen.c: fixed some right shift bugs (#772726 among them)
12023
12024 2003-07-17  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12025
12026     * link/z80/lklibr.c: fixed bug when there is a '.' in a library path.
12027
12028 2003-07-17  Bernhard Held <bernhard AT bernhardheld.de>
12029
12030         * device/lib/Makefile.in: bad fix, reverted to 1.43
12031
12032 2003-07-16  Bernhard Held <bernhard AT bernhardheld.de>
12033
12034         * device/lib/Makefile.in: added missing z80 object files
12035
12036 2003-07-14  Bernhard Held <bernhard AT bernhardheld.de>
12037
12038         * src/SDCCcse.c (algebraicOpts): CSE fun with &|^ and 0x00/0xff literals
12039         pic16 progress by Vangelis:
12040         * src/SDCCglobl.h:
12041         * src/SDCCmain.c:
12042         * src/pic/Makefile:
12043         * src/pic:
12044         * pic/Makefile:
12045         * pic16/device.c:
12046         * pic16/device.h:
12047         * pic16/gen.c:
12048         * pic16/gen.h:
12049         * pic16/genarith.c:
12050         * pic16/glue.c:
12051         * pic16/main.c:
12052         * pic16/pcode.c:
12053         * pic16/pcode.h:
12054         * pic16/pcodepeep.c:
12055         * pic16/peeph.def:
12056
12057 2003-07-13  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12058
12059     * src/SDCCmain.c, src/SDCCglobl.h: added option --no-std-crt0
12060
12061 2003-07-12  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12062
12063     * sdcc.dsw, all.dsp, link/z80/linkgbz80.dsp, as/z80/as-gbz80.dsp:
12064     added gbz80 build to MSVC project.
12065     * src/SDCCmain.c, src/SDCCglue.c, src/z80/main.c, src/z80/z80.dsp,
12066     link/z80/aslink.h, linkz80.dsp: cleaned up z80 and gbz80 asm files
12067     from 8051 stuff and setup so it links using a .lnk file.
12068
12069 2003-07-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12070
12071     * support/librarian/sdcclib.c: sdcc librarian.
12072     * as/mcs51/aslink.h, as/mcs51/lklib.c: Support for libraries created
12073     with sdcclib.
12074
12075 2003-07-03  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12076
12077     * as/mcs51/lkmain.c: properly handle extensions in function afile.
12078
12079 2003-07-02  Borut Razem <borut.razem AT siol.net>
12080
12081         * src/port.h, src/SDCCmain.c, src/pic/glue.h, src/pic/main.c,
12082         src/pic16/glue.h, sdcc/src/pic16/main.c, src/izt/i186.c,
12083         src/izt/tlcs900h.c, src/avr/main.c, src/ds390/main.c, src/mcs51/main.c,
12084         src/xa51/main.c, src/z80/main.c:
12085         virtualization of glue() function: each port has it's own glue function,
12086         which is accessed by do_glue function pointer in PORT.general structure
12087
12088 2003-07-01 Kevin Vigor <kevin AT vigor.nu>
12089
12090         * DS800C400 fun, improved ROM interface and tinibios.
12091
12092 2003-06-27 Kevin Vigor <kevin AT vigor.nu>
12093
12094         * More support for DS80C400. Now includes beginning of interface to ROM.
12095
12096 2003-06-25  Bernhard Held <bernhard AT bernhardheld.de>
12097
12098         * src/mcs51/gen.c (gencjneshort): fixed bug #760345
12099
12100 2003-06-20  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12101
12102         * as/mcs51/lkaomf51.c: Make sure the size of the last procedure is correct.
12103
12104 2003-06-19  Borut Razem <borut.razem AT siol.net>
12105
12106         * src/z80/main.c: fixed Z80 port again: missing -k library paths in linker command line
12107
12108 2003-06-19  Borut Razem <borut.razem AT siol.net>
12109
12110         * src/SDCCutil.h, src/SDCCutil.c, src/SDCCglobl.h, src/SDCCmain.c, src/z80/main.c:
12111         fixed Z80 port - crt0.o: cannot open.
12112
12113 2003-06-19  Bernhard Held <bernhard AT bernhardheld.de>
12114
12115         * support/Util/MySystem.c (merge_command): revert bad fix
12116
12117 2003-06-18  Borut Razem <borut.razem AT siol.net>
12118
12119         * src/SDCC.lex, src/SDCCmain.c: fixed some warnings, introduced with changes made 15.06.1003
12120
12121 2003-06-18  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12122
12123         * src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx:
12124         option --use-stdout sends errors to stdout instead of stderr.
12125
12126 2003-06-18  Bernhard Held <bernhard AT bernhardheld.de>
12127
12128         * support/Util/MySystem.c (merge_command): quick fix for Linux segfault with \"cmd\" arg
12129
12130 2003-06-15  Borut Razem <borut.razem AT siol.net>
12131
12132         * support/cpp2/sdcc.h: HAVE_DOS_BASED_FILE_SYSTEM defined for _WIN32
12133         * src/SDCC.lex: cloneXxx and copyAndFreeXxx functions for options and optimize stack handling
12134         * src/SDCCglobl.h, src/SDCCmain.c, src/ds390/main.c, src/mcs51/main.c, src/z80/main.c:
12135         fixed width array of pointers replaced with sets;
12136         multiple include and lib paths ared transferred to preprocessor and linker
12137         * src/SDCCset.c, src/SDCCset.h: added function setFromSetNonRev() and mergeSets()
12138         * src/SDCCsymt.c: reimplemented function inCalleeSaveList() by using sets instead
12139         fixed width array of pointers
12140         * src/SDCCutil.c, src/SDCCutil.h: added functions fputStrSet(), appendStrSet(), joinStrSet();
12141         removed functions addToList(), join(), joinn(), pathCharsEquivalent(), pathCharTransform(),
12142         fixupPath(), getPathDifference()
12143         * src/ds390/gen.c, src/mcs51/gen.c: reimplemented function  inExcludeList() by using sets instead
12144         fixed width array of pointers
12145
12146 2003-06-11  Bernhard Held <bernhard AT bernhardheld.de>
12147
12148         * src/pic16/ralloc.c: fix warnings
12149         * src/pic16/pcode.c: fix warning
12150
12151 2003-06-10  Scott Dattalo  <scott AT dattalo.com>
12152
12153          Scott D. for Vangelis Rokas (vrokas AT otenet.gr). I (scott) don't
12154         know all the details, but essentially this set of changes enable
12155         the pic16 port to generate movff instructions and generate assembler
12156         directives,
12157         * src/SDCCmain.c:
12158         * src/pic16/gen.c:
12159         * src/pic16/glue.c:
12160         * src/pic16/pcode.c:
12161         * src/pic16/device.c:
12162         * src/pic16/main.c:
12163         * src/pic16/pcode.h:
12164         * src/pic16/pcoderegs.c:
12165         * src/pic16/ralloc.c:
12166         * src/pic16/ralloc.h:
12167
12168 2003-06-08  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12169
12170         * support/Util/SDCCerr.c, src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx:
12171         added option --vc, so sdcc errors and warnings are compatible with
12172         Microsoft Visual Studio.
12173
12174 2003-06-07  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12175
12176         * device/lib/_atof.c, device/lib/Makefile.in, device/include/stdlib.h,
12177           device/lib/libfloat.lib: added atof function.
12178
12179 2003-06-04  Bernhard Held <bernhard AT bernhardheld.de>
12180
12181         * doc/sdccman.lyx: updated to Lyx 1.3
12182         * doc/cdbfileformat.lyx: updated to Lyx 1.3
12183         * doc/test_suite_spec.lyx: updated to Lyx 1.3
12184         * doc/Makefile: added fix for the \tabularnewline problem, thanks to Jesus
12185
12186 2003-06-03  Bernhard Held <bernhard AT bernhardheld.de>
12187
12188         * src/SDCCpeeph.c: separate peepRules2pCode() for pic16 by "Vangelis Rokas" <vrokas AT otenet.gr>
12189
12190 2003-06-02  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12191
12192         * doc/sdccman.lyx: cvs revision keywords, passing pdf information in latex preamble,
12193           additions to the "related tools/documentation" section
12194
12195 2003-06-02  Bernhard Held <bernhard AT bernhardheld.de>
12196
12197         * src/SDCCglue.c (tempfileandname): added check for missing TMP/TEMP/TMPDIR variable
12198
12199 2003-05-29  Bernhard Held <bernhard AT bernhardheld.de>
12200
12201         * src/pic/device.c: added 16F819, patch by "David I. Lehn" <dlehn AT vt.edu>
12202         * src/SDCCcse.c (algebraicOpts): fixed "c * 1"
12203
12204 2003-05-28  Bernhard Held <bernhard AT bernhardheld.de>
12205
12206         * doc/sdccman.lyx: fix double dash and other minor things
12207         * doc/Makefile: fix double dash
12208
12209 2003-05-28  Karl Bongers(patches from Martin Helmling)
12210         * debugger/mcs51/sdcdb.c,cmd.c,break.c and .h files. Martin adds
12211           condition and ignore commands.
12212
12213 2003-05-28  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12214
12215         * doc/sdccman.lyx: Changes all over, index improved, smaller margins. The manual
12216           is in parts still quite out of date, I did changes as far as I felt makes sense
12217           for a non-native english speaker.
12218           Please feel free to add to the manual or to correct my changes.
12219         * doc/Makefile: undid touching the date of intermediate tex files.
12220
12221 2003-05-26  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12222
12223         * doc/sdccman.lyx: Manual has an index now
12224
12225 2003-05-25  Bernhard Held <bernhard AT bernhardheld.de>
12226
12227         Finalize muluint/mulsint and mululong/mulslong merging:
12228         * device/lib/_mulint.c
12229         * device/lib/_mullong.c
12230         * device/lib/gbz80/mul.s
12231         * device/lib/gbz80/stubs.s
12232         * device/lib/z80/mul.s
12233         * device/lib/z80/stubs.s
12234         * src/SDCCsymt.c (initCSupport)
12235
12236 2003-05-25  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12237
12238         * as/mcs51/lkaomf51.c: Address space 'z' was missing.
12239         * src/avr/avr.dsp, src/ds390/ds390.dsp, src/mcs51/mcs51.dsp,
12240           src/pic/pic.dsp, src/pic16/pic16.dsp, src/xa51/xa51.dsp,
12241           src/x80/z80.dsp: peep.rul is bigger now, so /Zm1000 is used
12242           instead of /Zm500.
12243
12244 2003-05-25  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12245
12246         * src/mcs51/peeph.def: added rules 244.x, 245.x. Although they pass
12247           the regression tests I'm not brave enough to enable 245.b, 245.c
12248         * doc/sdccman.lyx: added latex preamble for hyperref package.
12249           Using pdflatex this will give you a hyperlinked pdf file with
12250           bookmarks. (prepend '%' before /usepackage if this breaks something)
12251
12252 2003-05-24  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12253
12254          * doc/sdccman.lyx: updated information about .adb files (fixed bug 742649)
12255
12256 2003-05-22  Bernhard Held <bernhard AT bernhardheld.de>
12257
12258         * src/pic16/pcode.c (pic16_get_op_from_instruction): fixed a gcc 3.x warning
12259
12260 2003-05-21    <johan AT balder>
12261
12262         * src/SDCCglue.c (printIval): fixed bug #739934
12263
12264 2003-05-19  Bernhard Held <bernhard AT bernhardheld.de>
12265
12266         Applied patch from bug 737905 (renamed yylineo to mylineno):
12267         * src/altlex.c
12268         * src/SDCCast.c
12269         * src/SDCglobl.h
12270         * src/SDCC.lex
12271         * src/SDCCsymt.c
12272         * src/SDCCval.c
12273         * src/pic16/pcode.c: Cleaned warnings
12274         * src/pic16/pcodeflow.c: Cleaned warnings
12275         * src/pic16/pcoderegs.c: Cleaned warnings
12276
12277 2003-05-19  Scott Dattalo  <scott AT dattalo.com>
12278
12279         * src/pic16/pcode.c: Cleaned warnings
12280         * src/pic16/pcodepeep.c: Cleaned warnings
12281         * src/pic16/ralloc.c: Cleaned warnings
12282
12283 2003-05-19  Bernhard Held <bernhard AT bernhardheld.de>
12284
12285         * doc/sdccman.lyx: fixed bug 739745
12286         * src/pic16/pcode.c (pic16_get_op): fixed warning on alpha
12287
12288 2003-05-18  Bernhard Held <bernhard AT bernhardheld.de>
12289
12290         * src/port.h: removed DEFAULT_PORT, it's not yet pic16 ;-)
12291         it can be defined with CFLAGS when running configure
12292         * src/SDCCmain.c: fixed compiling + linking with object files
12293
12294 2003-05-18  Vangelis Rokas (vrokas AT otenet.gr)
12295
12296         * configure.in: configure for pic16 port,
12297             added --disable-pic16-port
12298         * sdccconf_in.h: added macro OPT_DISABLE_PIC16
12299         * src/SDCCmain.c: linkOptions is changed to set *,
12300             added if/endif conditional macros to remove options help
12301             messages from optionsTable when a port is not configured, added
12302             support for the PIc16 port in the ports table, when executing
12303             the compiler with no port specified on command line, a default
12304             port is selected with the new macro DEFAULT_PORT which is
12305             defined in port.h, in setDefaultOptions() linkOptions is removed
12306             from initialization assignment, since now it is a set,
12307             parseCmdLine uses setParseWithComma for linkOptions, in
12308             linkEdit() linkOptions are accessed with new function indexSet()
12309             which returns the i'th item of a set variable. See SDCCset.c, in
12310             linkEdit() when calling buildCmdLine(), added linkOptions as
12311             last argument. Now users can pass arguments to gplink via the
12312             -Wl option, main() uses pic16glue() to glue up pic16 programs
12313         * src/SDCCpeeph.c: various changes to support pic16
12314         * src/SDCCset.c: added function  void *indexSet(set *, int)  to
12315             return the i'th item of the set
12316         * src/SDCCset.h: added function prototype for indexSet()
12317         * src/SDCCsymt.c: in checkSClass(), added support for PIC16
12318         * src/clean.mk: added pic16 in CLEANALLPORTS variable
12319         * src/port.h: added TARGET_ID_PIC16,TARGET_IS_PIC16 macro,
12320             added macro DEFAULT_PORT
12321         * src/pic/main.c: corrected arguments of gplnk in _linkCmd
12322         * src/pic16/gen.c: bug fix in genCpl(), now the correct code is
12323             generated
12324         * src/pic16/glue.c: commented out some error producing lines
12325         * src/pic16/main.c: __config directives are commented out to stop
12326             gpasm complaining and test the linkage with gplink, _linkCmd and
12327             _asmCmd changed to be more gplink and gpasm friendly
12328         * src/pic16/peeph.def: peep rule 3 is commented out, since it
12329             produced an error when parsed, peep rule 12 is added to utilize
12330             movff, but it is commented out since the pCode does not support
12331             yet a command with 2 address arguments
12332
12333 2003-05-18    <johan AT balder>
12334
12335         * src/ds390/gen.c (genArrayInit): removed obsolete and buggy ARRAYINIT
12336         * src/ds390/main.c (genArrayInit): removed obsolete and buggy ARRAYINIT
12337 2003-05-17  Karl Bongers(apply patches from Martin Helmling)
12338
12339         * debugger/mcs51/sdcdb.c,cmd.c,break.c and .h files.
12340   Added feature to script commands from file.
12341
12342 2003-05-14  Bernhard Held <bernhard AT bernhardheld.de>
12343
12344         * device/lib/_strtok.c: fixed bug #734355 by Lenny Story and Tim Woodall
12345         * src/SDCCutil.c: include ctype.h for win32
12346
12347 2003-05-13  Bernhard Held <bernhard AT bernhardheld.de>
12348
12349         * src/pic16/*: removed CR from many files, reported by Vangelis Rokas
12350
12351 2003-05-12  Karl Bongers(apply development patches from Martin Helmling)
12352
12353         * debugger/mcs51/sdcdb.c,simi.c,cmd.c,break.c and .h files.
12354   Fixed so you can set breakpoints prior to run, run does not stop
12355   on entry now.  Add tbreak.  Other enhancements and fixes for use
12356   with ddd.
12357
12358 2003-05-12  Borut Razem <borut.razem AT siol.net>
12359
12360         * src/SDCCmain.c: fixed the problem with searching the DATADIR as the last resort on *nix
12361
12362 2003-05-11  Borut Razem <borut.razem AT siol.net>
12363
12364         * src/SDCCutil.c: WIN32 version of getBinPath() calls GetModuleFileName() to determine
12365         the path of bin directory, so that PATH is the only env. variable, which has to be set
12366         in case of standard installation.
12367         * src/ds390/ds390.dsp: increased value of /Zm option to 1000
12368         * src/pic/main.c: add quotes to file name parameters for gplink and gpasm
12369         * src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx: added --print-search-dirs command line option
12370
12371 2003-05-04  Bernhard Held <bernhard AT bernhardheld.de>
12372
12373         * src/SDCCmain.c (linkEdit): fixed buffer overflow for gbz80
12374         * support/regression/Makefile: inter-port-clean is no longer nesessary, the
12375         temp files are in the port dir; clean the gen/test directory when
12376         generating new test.c
12377         * support/regression/ports/host/spec.mk: defined OBJEXT for target clean
12378         * support/regression/tests/vaargs.c: fixed gcc 3.3 warning
12379         * support/regression/tests/zeropad.c: added
12380
12381 2003-05-09    <johan AT balder>
12382
12383         * src/SDCCglue.c: fixed bug #597940
12384
12385 2003-05-05  Karl Bongers(apply patches from Martin Helmling)
12386
12387         * debugger/mcs51/sdcdb.c,simi.c,cmd.c,symtab.c and .h files.
12388   cache sfr, optimize next,step, fix off by one sourceline,
12389   support ddd list function.
12390         * sim/ucsim/cmd.src/newcmd.cc - small fix for sdcdb use.
12391
12392 2003-05-04  Bernhard Held <bernhard AT bernhardheld.de>
12393
12394         * support/regression/HTMLgen.py: added compare_s2f()
12395         * support/regression/Makefile: redo 1.27
12396         * support/regression/generate-cases.py: redo 1.5
12397
12398 2003-04-30  Bernhard Held <bernhard AT bernhardheld.de>
12399
12400         * support/regression/tests/float.c: workaround 33 bit hex constant
12401         * support/regression/tests/simplefloat.c: fix division for host
12402
12403 2003-04-29  Scott Dattalo  <scott AT dattalo.com>
12404
12405         * src/pic/pcoderegs.c Applied patch from Jim Hawkridge <jim AT jimhawkridge.uk.eu.org>
12406         that tame's the PIC's over-aggressive optimizer.
12407
12408 2003-04-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12409
12410          * src.dsw, link/z80/aslink.h, link/z80/linkz80.dsp: z80 linker
12411          support for MSVC.
12412
12413 2003-04-29  Kevin Vigor <kevin AT vigor.nu>
12414
12415         Initial support for DS80C400. "Hello world" runs on TINIm400
12416         (with polled I/O).
12417
12418 2003-04-28  Karl Bongers(apply patches for Martin Helmling)
12419
12420          * debugger/mcs51/sdcdb.c,simi.c,cmd.c,symtab.c and .h files.
12421          * Some notes on ddd usage added in debugger/README
12422          Martin Helmling adding more features and fixes for ddd GUI debugger.
12423          Code added for nexti, stepi, up, down, and other adjustments.
12424
12425 2003-04-28  Scott Dattalo  <scott AT DATTALO.COM>
12426
12427         * src/pic/pCodepeep.c non-wildcard asmops are now handled
12428         * src/pic/peeph.def Added two rules to optimize carry manipulation
12429         * src/pic/* removed debug printfs
12430
12431 2003-04-28  Bernhard Held <bernhard AT bernhardheld.de>
12432
12433         * debugger/mcs51/cmd.c: added header newalloc.h
12434
12435 2003-04-26  Bernhard Held <bernhard AT bernhardheld.de>
12436
12437         * as/Makefile: new EXEEXT
12438         * as/z80/Makefile: remove trailing slash of BUILDIR
12439         * as/z80/clean.mk: new EXEEXT
12440         * Makefile.common.in: add to CFLAGS (and others), don't replace it
12441         * support/cpp2/Makefile.in: new EXEEXT
12442         * src/pic/glue.c (pic14emitRegularMap): fixed warning
12443
12444 2003-04-24  Bernhard Held <bernhard AT bernhardheld.de>
12445
12446         Cygwin's gcc always appends .exe: 'gcc -o a a.c' creates a.exe;
12447         EXEEXT was introduced to fix all related problems with targets
12448         "clean", "install" and "uninstall"; a couple of further flaws
12449         especially with "clean" have been fixed too
12450         * as/mcs51/Makefile.in
12451         * as/mcs51/clean.mk
12452         * as/z80/Makefile
12453         * Makefile
12454         * clean.mk
12455         * debugger/mcs51/Makefile.in
12456         * debugger/mcs51/clean.mk
12457         * link/z80/Makefile
12458         * link/z80/Makefile.in
12459         * link/z80/clean.mk
12460         * link/Makefile
12461         * packihx/Makefile.in
12462         * packihx/clean.mk
12463         * sim/ucsim/Makefile
12464         * sim/ucsim/clean.mk
12465         * sim/ucsim/avr.src/Makefile.in
12466         * sim/ucsim/avr.src/clean.mk
12467         * sim/ucsim/s51.src/Makefile.in
12468         * sim/ucsim/s51.src/clean.mk
12469         * sim/ucsim/xa.src/Makefile.in
12470         * sim/ucsim/xa.src/clean.mk
12471         * sim/ucsim/z80.src/Makefile.in
12472         * sim/ucsim/z80.src/clean.mk
12473         * sim/ucsim/main_in.mk
12474         * sim/ucsim/packages_in.mk
12475         * sim/ucsim/gui.src/Makefile.in
12476         * sim/ucsim/gui.src/serio.src/Makefile.in
12477         * sim/ucsim/gui.src/serio.src/clean.mk
12478         * src/Makefile.in
12479         * src/clean.mk
12480         * support/cpp2/Makefile.in
12481         * support/cpp2/clean.mk
12482         * support/makebin/Makefile
12483         * support/makebin/clean.mk
12484         * support/scripts/sdcc_mingw32: --program-suffix no longer needed
12485         * doc/sdccman.lyx: --program-suffix no longer needed
12486
12487 2003-04-23  Karl Bongers(apply patches for Martin Helmling)
12488
12489          * debugger/mcs51/sdcdb.c,simi.c,cmd.c,..
12490          Martin Helmling added support for ddd GUI debugger.
12491          Code added to display assembly, set variables, and other commands
12492          to interface to ddd.
12493
12494 2003-04-23  Bernhard Held <bernhard AT bernhardheld.de>
12495
12496         * as/Makefile: fix target clean
12497         * as/clean.mk: fix target clean
12498         * as/z80/clean.mk: fix target clean
12499
12500 2003-04-22  Bernhard Held <bernhard AT bernhardheld.de>
12501
12502         * Makefile.common.in: added  AT EXEEXT AT
12503         * configure.in: removed all mingw32 stuff
12504         * configure: rebuilt from configure.in
12505         * doc/sdccman.lyx: updated section "installation"
12506         * support/scripts/sdcc_mingw32: adapted to configure
12507         * support/scripts/sdcc_cygwin_mingw32: added
12508
12509 2003-04-22  Scott Dattalo  <scott AT dattalo.com>
12510
12511         * src/pic Added object file support for the PIC port
12512         * src/pic Applied patch from Craig Franklin (this started the object file support)
12513         * src/regression Updated the PIC regression tests for object files
12514
12515 2003-04-20  Borut Razem <borut.razem AT siol.net>
12516
12517         * sdcc/as/mcs51/lklex.c: make getfid() more robust and fixed gcc warning:
12518           lklex.c: In function `getfid':
12519           lklex.c:203: warning: array subscript has type `char'
12520         * src/SDCCglobl.h: small change in stack handling macros, to avoid crash when compiled
12521           with MSVC with global optimization enabled (probably an cl compiler bug ;-)
12522         * support/Util/SDCCerr.c, support/Util/SDCCerr.h: added function fatal(), called from
12523           stack handling macros
12524
12525 2003-04-19  Borut Razem <borut.razem AT siol.net>
12526
12527         * "handling space characters in file path" task:
12528         * src/SDCCmacro.c: fixed bug in handlig quote at the end of line
12529         * support/Util/BuildCmd.c: define par as NULL if parameter value is invalid
12530         * support/Util/MySystem.h: make it self-sufficient
12531         * src/avr/main.c, src/ds390/main.c, src/mcs51/main.c, src/pic/main.c, src/xa51/main.c,
12532           src/z80/main.c, sdcc/as/mcs51/lklex.c:
12533           handling space characters in file path
12534         * src/SDCCmain.c: introduced setDataPaths() function, {datadir} macro
12535           (it will be used by assemblers, which have their own includes, e.g. gpasm)
12536         * support/Util/MySystem.c: handling space characters in executable's path
12537
12538 2003-04-19  Bernhard Held <bernhard AT bernhardheld.de>
12539
12540         * as/z80/Makefile: fix permanent rebuild of z80
12541         * sim/ucsim/gui.src/Makefile.in: target "install" builds the same packages as target "all"
12542         * support/regression/tests/bitfields.c: added Johan's bitfields.c
12543
12544 2003-04-18      Kevin Vigor <kevin AT vigor.nu>
12545
12546         * src/SDCCopt.c: add special case optimization to replace modulo by
12547           a power of two with a bitwise AND.
12548
12549 2003-04-18    <johan AT balder>
12550
12551         * src/mcs51/gen.c (getFreePtr): fixed bug #635354
12552
12553 2003-04-17    <johan AT balder>
12554
12555         * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #716790 and removes lot's of redundant register usage around function calls
12556         * src/mcs51/ralloc.c (packRegisters): fixed bug #720667
12557
12558 2003-04-13  Borut Razem <borut.razem AT siol.net>
12559
12560         * doc/sdccman.lyx: updated info about #pragma SAVE/RESTORE nesting
12561         * configure.in, configure: fixed problems on cygwin/WinCVS environmet with ports.* line endings;
12562           fixed mingw problem in adl_NORMALIZE_PATH
12563
12564 2003-04-12  Borut Razem <borut.razem AT siol.net>
12565
12566         * fixed "#pragma SAVE/RESTORE can not be nested":
12567         * src/SDCC.lex: reworked pragma handling functions
12568         * sdcc/src/SDCCglobl.h: reworked stack handling macros
12569         * support/Util/SDCCerr.c, support/Util/SDCCerr.h: added E_STACK_VIOLATION error
12570
12571 2003-04-12  Bernhard Held <bernhard AT bernhardheld.de>
12572
12573         * src/SDCCutil.c (pathEquivalent): defined but not used
12574         * debugger/mcs51/sdcdb.c: replace SDCC_LIB_DIR
12575         * configure.in: remove sdcc_datadir, sdcc_lib_dir and sdcc_include_dir
12576         * configure: rebuilt from configure.in
12577         * sdccconf_in.h: remove SDCC_LIB_DIR and SDCC_INCLUDE_DIR
12578         * sdcc_vc_in.h: remove SDCC_LIB_DIR and SDCC_INCLUDE_DIR
12579         * device/include/Makefile.in: replace sdcc_datadir
12580         * device/lib/Makefile.in: replace sdcc_datadir
12581         * Makefile.common.in: add LDFLAGS from configure
12582         * packihx/Makefile.in: use LDFLAGS
12583         * src/Makefile.in: use LDFLAGS
12584         * support/cpp2/Makefile.in: add LDFLAGS from configure
12585         * support/makebin/Makefile: use LDFLAGS
12586         * .version: bumped version number to 2.3.5
12587
12588 2003-04-12  Borut Razem <borut.razem AT siol.net>
12589
12590         * completed "different paths" task:
12591         * src/SDCCmacro.c: fixed bug in handling quotes
12592         * src/SDCCutil.c, src/SDCCutil.c: rewritten getPrefixFromBinPath()
12593         * src/SDCCmain.c: _discoverPaths() replaced with setBinPaths(), setIncludePath() and setLibPath()
12594
12595 2003-04-12  Bernhard Held <bernhard AT bernhardheld.de>
12596
12597         * src/pic/pcoderegs.c (Remove1pcode): fix warning on alpha
12598
12599 2003-04-11 kevin Vigor <kevin AT vigor.nu>
12600
12601         * ds390/gen.c ds390/peeph.def: fix bug 706781
12602
12603 2003-04-11  Borut Razem <borut.razem AT siol.net>
12604
12605         * support/Util/dbuf.c, support/Util/dbuf.h: update to version 1.1.1 - re-added C++ stuff to make it still more portable
12606
12607 2003-04-10  Scott Dattalo  <scott AT dattalo.com>
12608
12609         * src/pic/* Applied the pointer-to-function patch from Steve Tell.
12610         * src/pic/* Fixed several pointer bugs. (PIC port broke when the ruonly bit was
12611          set - this bit used to not be set...).
12612         * src/pic/gen.c Fixed buf 609268 ==> x = (x+1) & 0xf; generated
12613           bad code in PIC Port
12614         * src/regression/and2.c added to test bug 609268
12615         * src/regression/Makefile added and2.c to regression test
12616
12617
12618 2003-04-08    <johan AT CP255758-A>
12619
12620         * src/mcs51/gen.c (gen51Code): display reg usage in --icode-in-asm
12621         * src/mcs51/ralloc.c (serialRegAssign): update the registers in use and save some slocs
12622         * src/SDCCicode.h: added riu to show the register usage in --icode-in-asm
12623
12624 2003-04-07  Bernhard Held <bernhard AT bernhardheld.de>
12625
12626         * configure.in: fully support prefix, exec_prefix, datadir, docdir;
12627         fix bug #487815
12628         * support/cpp2/Makefile.in: fix bug #487815
12629         * configure: rebuilt from configure.in
12630         * Makefile.common.in: docdir changed, new path suffixes
12631         * sdccconf_in.h: new RETSIGTYPE, and other PATHs
12632         * sdcc_vc_in.h: reflect changes from sdccconf.h
12633         * src/SDCCglobl.h: remove *SEPARATOR_CHARS, they are now in sdccconf.h
12634         * src/SDCCutil.h: remove BINDIR hack
12635         * doc/sdccman.lyx: update new path hierarchy
12636
12637 2003-04-06    Paul Stoffregen <paul AT pjrc.com>
12638
12639         * src/SDCCpeeph.c: added okToRemoveSLOC test
12640
12641 2003-04-06    Paul Stoffregen <paul AT pjrc.com>
12642
12643         * device/lib/printf_fast.c: added leading zero format ("%06d", etc)
12644
12645 2003-04-06    Paul Stoffregen <paul AT pjrc.com>
12646
12647         * src/SDCCpeeph.c: added labelIsReturnOnly test
12648         * src/mcs51/peeph.def: Peephole 244: replace ljmp to ret with ret
12649
12650 2003-04-05    <johan AT balder>
12651
12652         * src/SDCCcse.c (cseAllBlocks): fixed bug #460088
12653         * src/SDCCloop.c (DEFSETFUNC): fixed bug #460088
12654         * src/SDCCopt.c (eBBlockFromiCode): fixed bug #460088
12655         * src/SDCCast.c: fixed a warning
12656         * src/SDCCast.h: fixed a warning
12657         * src/SDCCicode.c (operandFromAst): fixed a warning
12658
12659 2003-04-04    <johan AT balder>
12660
12661         * src/SDCCloop.c (DEFSETFUNC): undid the fix for bug #519584
12662         * src/SDCCast.c (decorateType): fixed bug #715076
12663         * src/SDCC.y: fixed bug #702907
12664
12665 2003-04-03    <johan AT balder>
12666
12667         * device/lib/_mulint.c (_muluint): new #pragma LESS_PEDANTIC
12668         * src/SDCCopt.c (eBBlockFromiCode): new #pragma LESS_PEDANTIC
12669         * src/SDCCglobl.h (PRAGMA_LESSPEDANTIC): new #pragma LESS_PEDANTIC
12670         * src/SDCC.lex (doPragma): new #pragma LESS_PEDANTIC
12671         * src/SDCCmain.c (parseCmdLine): new #pragma LESS_PEDANTIC
12672
12673 2003-04-03  Bernhard Held <bernhard AT bernhardheld.de>
12674
12675         * _decdptr.c: fix return values
12676         * _gptrget.c: fix return values
12677         * _gptrgetc.c: fix return values
12678         * _gptrput.c: fix return values
12679         * _mulint.c: fix return values
12680         * as/z80/Makefile: fix 'make -j' problem
12681
12682 2003-04-02  Bernhard Held <bernhard AT bernhardheld.de>
12683
12684         * Makefile.common.in: unused PORT, SCC and SAS removed, fixed docdir
12685         * configure.in: big cleanup, updated to autoconf 2.5x
12686         * configure: rebuilt from configure.in
12687         * sdccconf_in.h: new RETSIGTYPE, and other PATHs
12688         * sdcc_vc_in.h: reflect changes from sdccconf.h
12689         * doc/Makefile: fixed a flaw in "make install"
12690
12691 2003-04-02    <johan AT balder>
12692
12693         * src/ds390/gen.c (genCmp): no comments
12694         * src/mcs51/gen.c (genCmp): no comments
12695         * src/SDCCopt.c (eBBlockFromiCode): detect missing return values
12696         * src/SDCCast.c (ast_print): fixed the function type in --dumptree
12697
12698 2003-04-01  Bernhard Held <bernhard AT bernhardheld.de>
12699
12700         * support/regression/generate-cases.py: place generated file in given sub directory
12701         * support/regression/ports/host/spec.mk: prevent removal of testfwk.o
12702         * support/regression/Makefile: improvements for 'make -j';
12703         side effect: it's simpler and faster now
12704
12705 2003-03-31  Borut Razem <borut.razem AT siol.net>
12706
12707         * src/z80/main.c: link-{port} and as-{port} defined without path
12708         * src/src.dsp: support/Util/MySystem.h and src/SDCCutil.h added to project
12709
12710 2003-03-31  Bernhard Held <bernhard AT bernhardheld.de>
12711
12712         * Makefile, src/Makefile.in: add dependencies, so that 'make -j' works
12713
12714 2003-03-30  Borut Razem <borut.razem AT siol.net>
12715
12716         * support/Util/BuildCmd.c, support/Util/BuildCmd.h: rewrite buildCmdLine(),
12717           changed type of list parameter to set
12718         * src/ds390/main.c: changed type of parameter asmOptions to set in _tininative_do_assemble()
12719         * src/port.h: changed type of do_assemble() parameter to set
12720         * src/SDCCmain.c: type of asmOptions changed to set, introduced setParseWithComma(),
12721           sdcpp defined without path, removed variable VersionString, introduced set binPathSet,
12722           definition of "cppoutfilename" macro with NULL value in preProcess()
12723         * src/SDCCglobl.h: included "SDCCset.h", added declaration of setParseWithComma()
12724         * src/SDCCglue.c: removed variable VersionString, inroduced spacesToUnderscores()
12725         * support/Util/MySystem.c, support/Util/MySystem.h: rewrite, char *ExePathList[]
12726           replaced with set *binPathSet
12727         * shash_add() deallocates the item, if allready exsists, before adding the new one
12728         * src/SDCCmacro.c: handling macros with empty or NULL values in _evalMacros()
12729
12730 2003-03-30  Scott Dattalo  <scott AT dattalo.com>
12731
12732         * src/pic/gen.c: Commit patch from Steve Tell <tell AT telltronics.org> that fixes
12733           a nested for loop bug in the PIC port
12734         * src/regression/nestfor.c: new regression test file Steve wrote to test nested
12735           for loops
12736
12737 2003-03-29  Bernhard Held <bernhard AT bernhardheld.de>
12738
12739         * support/Util/dbuf.h: remove C++ stuff to make it portable
12740
12741 2003-03-28  Borut Razem <borut.razem AT siol.net>
12742
12743         * src/SDCC.lex: Fix for bug #711240: dynamic buffer handling of C
12744           literal strings in stringLiteral()
12745         * support/Util/dbuf.c, support/Util/dbuf.h: added: dynamic buffer handling
12746         * src/Makefile.bcc, src/Makefile.in, src/src.dsp: added support/Util/dbuf.c
12747           to the project
12748
12749 2003-03-27  Paul Stoffregen <paul AT pjrc.com>
12750
12751         * src/SDCCpeeph.c (pcDistance): accurate byte distance for mcs51
12752
12753 2003-03-26    <johan AT balder>
12754
12755         * src/mcs51/gen.c (saveRegisters): catched symbol abuse
12756         * src/ds390/gen.c (saveRegisters): catched symbol abuse
12757         * src/SDCCast.c (decorateType): fixed " -v < 3"
12758
12759 2003-03-23  Bernhard Held <bernhard AT bernhardheld.de>
12760
12761         * doc/cdbfile.html: removed, replaced by cdbfileformat.lyx
12762         Added Lenny Story's debug infrastructure changes:
12763         * src/Makefile.in:  added new files cdbFile.c and SDCCdebug.c
12764         * src/Makefile.bcc: added new files cdbFile.c and SDCCdebug.c
12765         * src/cdbFile.c: added
12766         * src/SDCCdebug.c: added
12767         * src/SDCCdebug.h: added
12768         * src/SDCCast.c (createFunction)
12769         * src/SDCCglue.c (emitRegularMap, emitStaticSeg, emitOverlay, glue)
12770         * src/SDCCmain.c (parseCmdLine, main)
12771         * src/SDCCmem.c (redoStackOffsets)
12772         * src/SDCCsymt.c (cdbStructBlock, cdbTypeInfo, cdbSymbol, cdbStruct, cdbStructBlock)
12773         * src/SDCCsymt.h
12774         * src/common.h
12775         * src/avr/gen.c (genAVRCode)
12776         * src/ds390/gen.c (gen390Code)
12777         * src/mcs51/gen.c (gen51Code)
12778         * src/pic/gen.c (genpic14Code)
12779         * src/pic/glue.c (pic14emitRegularMap, pic14emitStaticSeg, pic14emitOverlay, picglue)
12780         * src/xa51/gen.c (genXA51Code)
12781         * src/SDCCast.c: fixed "void foo(void){char c; -c < 0;}"
12782
12783 2003-03-22  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12784
12785         * src/mcs51/gen.c (genCodePointerGet): quicker code for bug #700797
12786         * src/mcs51/peeph.def: added rules 177, 241.x to 243, touched 181, 182.x, 193.x
12787
12788 2003-03-22    <johan AT balder>
12789
12790         * src/SDCCicode.c (geniCodeDerefPtr): fixed bug #698231
12791
12792 2003-03-21  Bernhard Held <bernhard AT bernhardheld.de>
12793
12794         * support/scripts/sdcc_mingw32: adapted to configure from autoconf 2.54
12795         * doc/cdbfileformat.lyx: added, written by Lenny Story
12796         * doc/Makefile: added cdbfileformat.lyx
12797         * doc/clean.mk: added cdbfileformat.lyx
12798
12799 2003-03-20  Bernhard Held <bernhard AT bernhardheld.de>
12800
12801         * src/mcs51/peeph.def: fix bug #705773
12802
12803 2003-03-20    <johan AT balder>
12804
12805         An sfr/sbit can have an "at #" AND an initializer
12806         * src/SDCCsymt.c (checkSClass):
12807         * src/SDCCmem.c (allocGlobal):
12808         * src/SDCCmem.c (allocLocal):
12809         * src/SDCCast.c (createBlock):
12810
12811 2003-03-17  Bernhard Held <bernhard AT bernhardheld.de>
12812
12813         * src/ds390/peeph.def: fix bug #704878: added rule 213.b suggested by Jan Rejlek
12814
12815 2003-03-16    <johan AT balder>
12816
12817         Undid the hackup of const and volatile, the problem is much bigger
12818         * src/SDCC.y:1.65
12819         * src/SDCCast.c:1.171
12820         * src/SDCCglue.c:1.138
12821         * src/SDCCicode.c:1.146
12822         * src/SDCCsymt.c:1.150
12823         * src/SDCCval.c:1.65
12824
12825 2003-03-15  Bernhard Held <bernhard AT bernhardheld.de>
12826
12827         * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #703541
12828         * src/ds390/gen.c (genAddrOf): fixed bug #704087
12829
12830 2003-03-13    <johan AT balder>
12831
12832         Hackup const and volatile modifiers in type chains a bit:
12833         * src/SDCC.y:1.63
12834         * src/SDCCast.c:1.169
12835         * src/SDCCglue.c:1.136
12836         * src/SDCCicode.c:1.143
12837         * src/SDCCsymt.c1.146
12838         * src/SDCCsymt.h1.59
12839         * src/SDCCval.c:1.63
12840
12841 2003-03-12    <johan AT balder>
12842
12843         * src/SDCCBBlock.h: more LRH debugging junk
12844         * src/SDCCcflow.h: more LRH debugging junk
12845         * src/SDCCloop.c: more LRH debugging junk
12846         * src/SDCC.y (struct_declaration): fixed bug #697590
12847         * src/SDCCsymt.[hc] (cloneSpec): NEVER EVER use this again
12848         * src/ds390/gen.c (aopForRemat): fixed bug #700031
12849         * src/SDCCglue.c (emitStaticSeg): fixed bug #700797
12850
12851 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
12852         * src/SDCCpeeph.c: quit being lazy and made proper fix (peephole
12853         test function names must now match exactly).
12854         * src/SDCCcse.c: added special case in findCheaperOp to allow
12855         extending a short integer. Makes less awful code for bug 700121 test case.
12856
12857 2003-03-11  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12858
12859         * as/mcs51/lkmain.c: Added ASlink-Warning to messages
12860         * as/mcs51/lkaomf51.c: Fixed bug when linking asmblink example
12861
12862 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
12863
12864         * src/SDCCpeeph.c: fix so that operandsNotEqualX functions are
12865         actually called (operandsNotEqual() was called for all
12866         operandsNotEqualX tests).
12867
12868 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
12869
12870         * src/SDCCcse.c: fix findCheaperOp to prevent replacing int types
12871         with shorter literals. Fixes bug 700121.
12872
12873 2003-03-11    <johan AT balder>
12874
12875         * src/SDCCsymt.c (compareType): a (void *) can be assigned to any pointer
12876
12877 2003-03-11  Bernhard Held <bernhard AT bernhardheld.de>
12878
12879         * src/SDCCloop.c (mergeRegions): an evil beast is dead
12880         * src/SDCCmain.c (preProcess): minor cleanup: eliminate preOutName
12881
12882 2003-03-10  Borut Razem <borut.razem AT siol.net>
12883
12884         * src/SDCCmain.c: pipe preprocessor's output
12885         * support/Util/MySystem.c, support/Util/MySystem.h: added my_popen()
12886         * sdcc_vc_in.h: define pclose as _pclose for WIN32
12887         * src/SDCCglue.c, src/SDCCglue.h: added set pipeSet, added function closePipes,
12888         which closes all pipes in pipeSet set
12889         * src/SDCCset.c: free deleted item in function deleteSetItem()
12890         * src/src.dsp, src/z80/z80.dsp: files support/Util/BuildCmd.c and support/Util/MySystem.c
12891         moved from z80 to src subproject
12892         * .version: increased version number to 2.3.4
12893
12894 2003-03-10  Bernhard Held <bernhard AT bernhardheld.de>
12895
12896         * support/regression/ports/mcs51/spec.mk: increase timeout for CF's sparc to 30s
12897         * support/regression/ports/ds390/spec.mk: increase timeout for CF's sparc to 25s
12898         * support/regression/ports/xa51/spec.mk: fix typo
12899
12900 2003-03-09  Bernhard Held <bernhard AT bernhardheld.de>
12901
12902         * src/SDCCglobl.h: PATH_MAX is already defined in mingw32 headers
12903
12904 2003-03-09  Borut Razem <borut.razem AT siol.net>
12905
12906         * src/SDCCmain.c: pipe preprocessor's output
12907         * support/Util/MySystem.c, support/Util/MySystem.h: added my_popen()
12908         * sdcc_vc_in.h: define pclose as _pclose for WIN32
12909         * src/SDCCglue.c, src/SDCCglue.h: added set pipeSet, added function closePipes,
12910         which closes all pipes in pipeSet set
12911         * src/SDCCset.c: free deleted item in function deleteSetItem()
12912         * src/src.dsp, src/z80/z80.dsp: files support/Util/BuildCmd.c and support/Util/MySystem.c
12913         moved from z80 to src subproject
12914
12915 2003-03-09  Borut Razem <borut.razem AT siol.net>
12916
12917         * src/SDCCglue.c: re-implemented tempfilename() and tempfile(): using mkstemp() if available
12918         * src/SDCCsymt.h: fixed MSVC and BORLANDC compilation (included SDCCglobl.h instead srccconf.h)
12919         * sdcc_vc_in.h: explicitly undefined HAVE_MKSTEMP which is not available on BORLANDC and MSVC
12920         * src/SDCCset.h: removed inclusion of sdccconf.h or sdcc_vc.h
12921         * src/SDCCglobl.h: unification of WIN32 native definitions
12922
12923 2003-03-09  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12924
12925         * src/mcs51/gen.c: applied in-/dec patch mentioned on sdcc-devel 2003-03-01
12926
12927 2003-03-08  Bernhard Held <bernhard AT bernhardheld.de>
12928
12929         * src/configure.in:   check for endianess (even while cross-compiling)
12930         * src/configure:      check for endianess (even while cross-compiling)
12931         * src/configure_in.h: check for endianess (even while cross-compiling)
12932         * src/avr/gen.c:        remove old endianess stuff
12933         * src/mcs51/gen.c:      remove old endianess stuff
12934         * src/ds390/gen.c:      remove old endianess stuff
12935         * src/pic/gen.c:        remove old endianess stuff
12936         * src/pic/genarith.c:   remove old endianess stuff
12937         * src/pic/glue.c:       fix endianess check
12938         * src/pic16/gen.c:      remove old endianess stuff
12939         * src/pic16/genarith.c: remove old endianess stuff
12940         * src/pic16/glue.c:     fix endianess check
12941         * src/xa51/gen.c:       remove old endianess stuff
12942         * src/z80/gen.c:        fix endianess check
12943         * src/SDCCglue.c:       fix endianess check
12944         * src/ds390/peeph.def: fix bug 700036
12945
12946 2003-03-08  Bernhard Held <bernhard AT bernhardheld.de>
12947
12948         * src/SDCCsymt.h: use appropriate data-types on host for SDCC's int and long
12949         * src/configure: find appropriate data-types on host for SDCC's int and long
12950         * src/configure.in: find appropriate data-types on host for SDCC's int and long
12951         * src/sdccconf_in.h: find appropriate data-types on host for SDCC's int and long
12952         * src/xa51/gen.c: use %d, not %ld for 4 byte variables
12953
12954 2003-03-07    <johan AT balder>
12955
12956         Just a big NOOP:
12957                 some minor cleanups before the big shot
12958                 OP_DEFS and OP_USES now use Kevin's protection
12959                 new option --nolabelopt
12960
12961         * src/SDCCBBlock.c:
12962         * src/SDCCast.c,:
12963         * src/SDCCcflow.c:
12964         * src/SDCCcse.c:
12965         * src/SDCCicode.c:
12966         * src/SDCCicode.h:
12967         * src/SDCClabel.c:
12968         * src/SDCCloop.c:
12969         * src/SDCCmain.c:
12970         * src/ds390/ralloc.c:
12971         * src/mcs51/ralloc.c:
12972         * src/pic/ralloc.c:
12973         * src/xa51/ralloc.c:
12974         * src/z80/ralloc.c:
12975
12976 2003-03-06  Bernhard Held <bernhard AT bernhardheld.de>
12977
12978         * src/pic/pcode.c (get_op): fix 64 bit warnings
12979         * src/pic/pcode.c (pCode2str): fix 64 bit warnings
12980         * src/SDCChasht.c (newHashTable): fix 64 bit warnings
12981         * src/SDCCsymt.c (checkTypeSanity): fix 64 bit warnings
12982         * support/regression/tests/malloc.c: fix 64 bit warnings
12983
12984 2003-03-04  Bernhard Held <bernhard AT bernhardheld.de>
12985
12986         * src/mcs51/gen.c (genMinus): fixed bug 696436
12987
12988 2003-03-02  Borut Razem <borut.razem AT siol.net>
12989
12990         * src/SDCCmain.c: added BORLANDC, corrected MSVC in printVersionInfo()
12991
12992 2003-02-26  Bernhard Held <bernhard AT bernhardheld.de>
12993
12994         * configure.in: test for mkstemp
12995         * sdccconf_in.h: add HAVE_MKSTEMP
12996
12997 2003-02-24  Bernhard Held <bernhard AT bernhardheld.de>
12998
12999         * device/include/ctype.h: removed warning while using --stack-auto
13000         * device/include/malloc.h: removed warning while using --stack-auto
13001         * device/include/string.h: removed warning while using --stack-auto
13002
13003 2003-02-23  Borut Razem <borut.razem AT siol.net>
13004
13005         * src/asm.h: corrected assertion in function printILine(): _pipe() was not executed on MSVC,
13006         because NDEBUG is defined (see man assert)
13007         * sdcc_vc_in.h: vsnprintf is defined as _vsnprintf on MSVC
13008
13009 2003-02-23  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13010
13011         * src/mcs51/gen.c (genUminusFloat): avoided dptr in-/decrement for xdata variables
13012         * src/mcs51/peeph.def: added rule suggested by Gernot Fink, white space/comment changes
13013
13014 2003-02-18  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13015
13016         * src/SDCCpeeph.c: added peephole conditions testing for same arguments
13017         * src/mcs51/peeph.def: added rules 238a-d which remove redundant moves
13018
13019 2003-02-18    <johan AT balder>
13020
13021         * as/mcs51/asmain.c (asmbl): module can start with a digit
13022         * as/z80/asmain.c (asmbl): module can start with a digit
13023
13024 2003-02-16  Bernhard Held <bernhard AT bernhardheld.de>
13025
13026         * sim/ucsim/mkecho: inserted #!/bin/sh for Cygwin, so that it's executable
13027         * src/asm.c: fix pipe() for Mingw32
13028
13029 2003-02-15  Bernhard Held <bernhard AT bernhardheld.de>
13030
13031         * src/SDCCglue.h: make tmpfileNameSet available for preOutName
13032         * src/SDCCmain.c (preProcess): make sure, that preOutName will be deleted;
13033         make -V work again; --c1mode reads now from stdin
13034         * doc/sdccman.lyx: added --c1mode
13035         * support/Util/SDCCerr.c: new messages for c1 mode
13036         * support/Util/SDCCerr.h: new messages for c1 mode
13037         * src/SDCC.lex (checkCurrFile): test if fullSrcFileName is NULL for c1mode
13038
13039 2003-02-15    <johan AT balder>
13040
13041         * src/asm.c: new options: --no-c-code-in-asm and --i-code-in-asm
13042
13043 2003-02-14  Bernhard Held <bernhard AT bernhardheld.de>
13044
13045         * doc/sdccman.lyx: Environment variables, -o and other minor things
13046
13047 2003-02-14    <johan AT balder>
13048
13049         * src/xa51/main.c: before anyone really tries to use it :)
13050
13051         * Install doc's in share/sdcc/doc
13052         * removed some obsolete files
13053         * Do a proper make distclean and uninstall
13054         M Makefile.common.in
13055         R sdccbuild.sh
13056         M as/Makefile
13057         M device/include/Makefile.in
13058         M device/lib/Makefile.in
13059         M doc/sdccman.lyx
13060         M link/Makefile
13061         M sim/ucsim/doc/Makefile.in
13062         M src/clean.mk
13063         R src/avr/peeph.rul
13064         R src/xa51/peeph.rul
13065         M support/cpp2/Makefile.in
13066         M support/makebin/Makefile
13067
13068
13069 2003-02-13  Bernhard Held <bernhard AT bernhardheld.de>
13070
13071         * support/regression/ports/host/spec.mk: use cc as host compiler for max osx
13072
13073 2003-02-10  Borut Razem <borut.razem AT siol.net>
13074
13075         * doc/bccinst.txt, packihx/packihx.c, sdcc_vc_in.h, src/SDCCset.h,
13076         support/cpp2/config.in: Borland C++ build doesn't depend on Cygwin configure
13077         * Bcc.ini, Makefile.bcc, as/mcs51/Makefile.bcc,
13078         device/examples/ds390/tinitalk/Makefile.bcc, packihx/Makefile.bcc,
13079         support/cpp2/Makefile.bcc, src/Makefile.bcc, src/avr/Makefile.bcc,
13080         src/ds390/Makefile.bcc, src/izt/Makefile.bcc, src/mcs51/Makefile.bcc,
13081         src/pic/Makefile.bcc, src/pic16/Makefile.bcc, src/xa15/Makefile.bcc,
13082         src/z80/Makefile.bcc: Borland Makefile cleanup
13083         * as/z80/Makefile.bcc: Added Borland Makefile
13084         * support/cpp2/borland.h: Removed
13085
13086 2003-02-10  Bernhard Held <bernhard AT bernhardheld.de>
13087
13088         * doc/sdccman.lyx: new pragma NOIV by "Johannes Stezenbach" <js AT convergence.de>
13089         * src/SDCC.lex: new pragma NOIV
13090         * src/SDCCglobl.h: new pragma NOIV
13091         * src/SDCCmem.c: new pragma NOIV
13092
13093 2003-02-09  Bernhard Held <bernhard AT bernhardheld.de>
13094
13095         * src/SDCCmain.c: signal handling is switched off by SDCC_LEAVE_SIGNALS
13096
13097 2003-02-09  Bernhard Held <bernhard AT bernhardheld.de>
13098
13099         * src/SDCCmain.c: signal handling is switched off by --debug
13100         * doc/Makefile: small fix for install; use clean.mk again
13101         * doc/clean.mk: clean *.pdf and *.html too
13102
13103 2003-02-08  Bernhard Held <bernhard AT bernhardheld.de>
13104
13105         * device/lib/_mulint.c: small fix for large/ds390 --int-long-reent resp. --stack-auto
13106         * device/lib/printfl.c: fix a ds390 bug by making it portable
13107         * src/SDCCsymt.c (initCSupport): fix compile warning on Cygwin
13108         * src/SDCCopt.c (cnvToFloatCast): fix compile warning on Cygwin
13109         * src/SDCCopt.c (cnvFromFloatCast): fix compile warning on Cygwin
13110         * debugger/mcs51/cmd.c: converted multi-line string literals
13111         * sim/ucsim/globals.cc: converted multi-line string literals
13112         * src/SDCCmain.c: introduced signal handler to remove temp files
13113         * doc/Makefile: small tweaks, implement clean
13114         * doc: removed generated files
13115
13116 2003-02-05  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13117
13118         * as/mcs51/aslink.h, as/mcs51/lkihx.c, as/mcs51/lkrloc.c:  Applied
13119         patch from Jan Rejlek <jr AT apex-lib.cz> to fix Bug 677692: "Extended
13120         Address Record is not correctly generated for DS390."
13121
13122 2003-02-02  Borut Razem <borut.razem AT siol.net>
13123
13124         * Makefile.bcc: removed non existing cpp project and non compilable izt project from makefile
13125         * as/mcs51/asm.h: fixed compilation with Borland C
13126         * support/cpp2/Makefile.bcc: added rule to generate auto-host.h
13127         * support/cpp2/auto-host_vc_in.h: fixed compilation with Borland C
13128         * src/mcs51/mcs51a.dsp: corrected misspelled project name from msc51a to mcs51a
13129         * src/avr/Makefile.bcc, src/ds390/Makefile.bcc, src/izt/Makefile.bcc,
13130         src/mcs51/Makefile.bcc, src/pic16/Makefile.bcc, src/xa51/Makefile.bcc,
13131         src/z80/Makefile.bcc: delete $(LIB) only if exist
13132         * src/Makefile.bcc, src/pic/Makefile.bcc:  fixed compilation with Borland C
13133
13134 2003-02-02  Bernhard Held <bernhard AT bernhardheld.de>
13135
13136         * device/include/malloc.h: introduced NULL
13137         * device/include/string.h: introduced NULL
13138         * device/include/stdlib.h: introduced NULL
13139         * device/lib/_memcpy.c: removed NULL
13140         * device/lib/_strcat.c: removed NULL
13141         * device/lib/_strchr.c: removed NULL
13142         * device/lib/_strcmp.c: removed NULL
13143         * device/lib/_strcpy.c: removed NULL
13144         * device/lib/_strcspn.c: removed NULL
13145         * device/lib/_strlen.c: removed NULL
13146         * device/lib/_strncat.c: removed NULL
13147         * device/lib/_strncmp.c: removed NULL
13148         * device/lib/_strncpy.c: removed NULL
13149         * device/lib/_strpbrk.c: removed NULL
13150         * device/lib/_strrchr.c: removed NULL
13151         * device/lib/_strspn.c: removed NULL
13152         * device/lib/_strstr.c: removed NULL
13153         * device/lib/_strtok.c: removed NULL
13154         * device/lib/malloc.c: removed NULL, include own header
13155
13156 2003-02-02    <johan AT balder>
13157
13158         * 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
13159         * support/regression/fwk/lib/testfwk.c: div and mod isn't broken anymore
13160         * regressions ds390/spec.mk and mcs51/spec.mk (timeout): my good old balder isn't fast enough for some tests
13161         * src/z80/gen.c (genZ80Code): added c-lines in asm comments
13162         * as/z80/asm.h (NINPUT): increased for long c-comments in regression tests
13163         * src/z80/gen.c (genRightShiftLiteral): fixed the (char)(-3)>>8 (I think)
13164
13165 2003-02-01  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13166
13167         * src/SDCCmain.c: Fixed bug 678574: "ds390: ASlink-Error-Stack overlaps
13168         area 'DATA'"
13169
13170 2003-02-01    <johan AT balder>
13171
13172         * src/SDCCval.c (valBitwise): fixed Karl's "2 | (1<<8)"
13173
13174 2003-01-31    <johan AT CP255758-A>
13175
13176         * src/ds390/main.c (_ds390_genAssemblerPreamble): applied Jan Rejlek's >64K startup patch
13177
13178 2003-01-30    <johan AT balder>
13179
13180         * src/SDCCBBlock.c: automatic bug detection
13181         * src/SDCCicode.c: automatic bug detection
13182
13183 2003-01-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13184
13185         * src/SDCCglobl.h:   now --xram-size 0 works
13186         * src/SDCCmain.c:    now --xram-size 0 works
13187
13188 2003-01-29    <johan AT balder>
13189
13190         * src/almosteverything: changed OP_DEFS and OP_USES from macros to functions to catch symbol abuse (a hot topic in the bug list :)
13191
13192 2003-01-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13193
13194         * as/mcs51/aslink.h: Added options --xram-size and --code-size
13195         * as/mcs51/lkdata.c: Added options --xram-size and --code-size
13196         * as/mcs51/lkmain.c: Added options --xram-size and --code-size
13197         * as/mcs51/lkmem.c:  Added options --xram-size and --code-size
13198         * src/SDCCglobl.h:   Added options --xram-size and --code-size
13199         * src/SDCCmain.c:    Added options --xram-size and --code-size
13200
13201 2003-01-28  Bernhard Held <bernhard AT bernhardheld.de>
13202
13203         * src/ds390/gen.c: fix deps by replacing <common.h> with "common.h"
13204         * src/SDCC.lex: rename P_OVERLAY to P_OVERLAY_ for cross-gcc 3.2 MINGW32
13205
13206 2003-01-27    <johan AT balder>
13207
13208         * src/SDCC.y: fixed bug #613764
13209
13210 2003-01-26    <johan AT balder>
13211
13212         * src/SDCClrange.c:  fixed Bernhard's "char * code ptr = &c"
13213         * src/SDCCsymt.h: fixed bug #673374
13214         * src/SDCCglue.c: fixed bug #661910
13215         * src/SDCCast.c: fixed bug #458099 and 673374
13216
13217 2003-01-26  Bernhard Held <bernhard AT bernhardheld.de>
13218
13219         * as/mcs51/strcmpi.c: added, provides Aurelien Jarno's as_strcmpi(); strcmpi() is not ANSI
13220         * as/mcs51/strcmpi.h: added
13221         * as/mcs51/asm.h: remove ugly "#define strcmpi strcmp"
13222         * as/mcs51/aslink.h: remove ugly "#define strcmpi strcmp"
13223         * as/mcs51/asmain.c: strcmpi -> as_strcmpi
13224         * as/mcs51/assym.c: strcmpi -> as_strcmpi
13225         * as/mcs51/lkmem.c: strcmpi -> as_strcmpi
13226         * as/mcs51/lknoice.c: strcmpi -> as_strcmpi
13227         * as/mcs51/lksym.c: strcmpi -> as_strcmpi
13228         * as/mcs51/Makefile.aslink: new module strcmpi
13229         * as/mcs51/Makefile.asx8051: new module strcmpi
13230         * as/mcs51/Makefil.bcc: new module strcmpi
13231         * as/mcs51/Makefile.in: new module strcmpi
13232         * sim/ucsim/s51.src/uc390.cc (get_mem_size): make RAM big enough for tinibios
13233
13234 2003-01-26    <johan AT balder>
13235
13236         * src/SDCCglue.c: reverted back to 1.124
13237         * src/SDCCast.c: reverted back to 1.156
13238         * src/mcs51/gen.c (aopGet): applied Frieder's efficiency patch
13239
13240 2003-01-25    <johan AT balder>
13241
13242         * src/SDCCglue.c: A better fix for bug #661910
13243         * src/SDCCast.c: A better fix for bug #661910
13244         * src/SDCCglue.c (emitRegularMap): That was a little too efficient
13245
13246 2003-01-24  Bernhard Held <bernhard AT bernhardheld.de>
13247
13248         * src/Makefile.in: remove spawn.o
13249         * src/SDCCmain.c: remove spawn.h
13250         * src/SDCCmain.c (printVersionInfo): report MINGW32 instead of UNIX
13251         * src/spawn.c: removed
13252         * src/spawn.h: removed
13253         * support/regression/ports/ds390/spec.mk: link with -r
13254
13255 2003-01-24    <johan AT CP255758-A>
13256
13257         * src/ds390/gen.c (aopOp): fixed bug #667458
13258         * src/SDCCglue.c (emitRegularMap): fixed bug #458099 again
13259         * src/SDCCast.c (createIvalCharPtr): fixed bug #661910
13260         (createIvalCharPtr): an ival doesn't always have a storage class anymore
13261
13262 2003-01-24  Bernhard Held <bernhard AT bernhardheld.de>
13263
13264         * src/mcs51/peeph.def: better assembler identation by Frieder
13265         * src/mcs51/gen.c: better assembler identation by Frieder
13266
13267 2003-01-22  Bernhard Held <bernhard AT bernhardheld.de>
13268
13269         * as/z80/string.h: removed for gcc 3.2
13270         * support/makebin/makebin.c: #include <string.h> for gcc 3.2
13271         * src/pic/pcode.c (get_op_from_instruction): fix concatenation of string literals with __FUNCTION__ for gcc 3.2
13272
13273 2003-01-19  Bernhard Held <bernhard AT bernhardheld.de>
13274
13275         * src/SDCCmain.c (linkEdit): rename mem and map files even in case of failure
13276         * src/SDCCpeeph.c (replaceRule): fix bug #663503
13277         * support/regression/Makefile: separate temp files for ports
13278         * support/regression/generate-cases.py: separate temp files for ports
13279         * src/mcs51/peeph.def: Frieder: removed 237 (obsolete by 236g and 105); added 237 a/b
13280         * src/ds390/peeph.def: Frieder: removed 237 (obsolete by 236g and 105); added 237 a/b
13281
13282 2003-01-19  Bernhard Held <bernhard AT bernhardheld.de>
13283
13284         * moved tinitalk to device/examples/ds390
13285
13286 2003-01-14  Bernhard Held <bernhard AT bernhardheld.de>
13287
13288         * as/mcs51/lkmem.c: rflag is for DS390
13289         * src/SDCCglobl.h: removed out_name and options stackOnData, genericPtr
13290         * src/SDCCmain.c (optionsTable, setDefaultOptions): removed --stack-after-data and --generic
13291                          (linkEdit): move mem- and map-files the same way as ihx-files
13292         * src/z80/main.c (_setDefaultOptions): removed --generic
13293         * src/SDCCmain.c (_processC1Arg, parseCmdLine, main): --c1mode works again
13294         * src/SDCCglue.c (createInterruptVect, glue): --c1mode works again
13295         * src/pic/glue.c (picglue): --c1mode works again
13296         * src/pic16/glue.c (pic16glue): --c1mode works again
13297         * src/asm.c (printCLine): fix #660034
13298
13299 2003-01-13  Bernhard Held <bernhard AT bernhardheld.de>
13300
13301         * src/ds390/peeph.def: fix #123; add 14 rules by Fiorenzo D. Ramaglia <fd.ramaglia AT tin.it>, 1 by Frieder
13302         * src/mcs51/peeph.def: fix #123; add 14 rules by Fiorenzo, 1 by Frieder
13303         * src/mcs51/gen.c (genFunction): emit r0 instead of ar0 by Fiorenzo
13304         * as/mcs51/lkmem (summary): better fix for sp problem
13305         * src/SDCCglue.c (glue): __start_stack - 1, saves 1 byte!
13306         * src/ds390/main.c (_ds390_finaliseOptions, _tininative_finaliseOptions): stack_loc = 0x400008
13307         * support/regression/ports/*/spec.mk: moving testfwk-object to port dir allow parallel execution of regression tests
13308                                               remove --stack-after-data
13309
13310 2003-01-12  Bernhard Held <bernhard AT bernhardheld.de>
13311
13312         * src/SDCCmain.c (main): port->finaliseOptions() moved for z80 linking
13313         * src/SDCCutil.c (join): ugly bug: missing '\0'
13314         * as/mcs51/lkmem.c (summary): sp on address 7 is safe
13315
13316 2003-01-11  Bernhard Held <bernhard AT bernhardheld.de>
13317
13318         * src/SDCCmain.c (assemble, linkEdit): preparations for -o
13319         * src/port.h: typo
13320         * src/pic/main.c (_asmCmd): gpasm supports -o
13321         * src/z80/main.c: more general macros
13322         * device/lib/Makefile.in: remove intermediate files
13323
13324 2003-01-11  Bernhard Held <bernhard AT bernhardheld.de>
13325
13326         * .version: Bumped version number to 2.3.3
13327         * src/SDCCBBlock.c: new option -o
13328         * src/SDCCglobl.h: new option -o
13329         * src/SDCCglue.c: new option -o
13330         * src/SDCCmain.c: new option -o
13331         * src/asm.c: new option -o
13332         * src/ds390/main.c: new option -o
13333         * src/pic/glue.c: new option -o
13334         * src/pic/pcode.c: new option -o
13335         * src/pic/ralloc.c: new option -o
13336         * src/pic16/glue.c: new option -o
13337         * src/pic16/pcode.c: new option -o
13338         * src/pic16/ralloc.c: new option -o
13339         * src/z80/main.c: new option -o
13340         * device/lib/Makefile.in: use -o
13341         * support/regression/ports/ds390/spec.mk: use -o
13342         * support/regression/ports/gbz80/spec.mk: use -o
13343         * support/regression/ports/mcs51/spec.mk: use -o
13344         * support/regression/ports/mcs51-stack-auto/spec.mk: use -o
13345         * support/regression/ports/z80/spec.mk: use -o
13346         * support/regression/ports/ucz80/spec.mk: use -o
13347         * support/regression/ports/xa51/spec.mk: use -o
13348         * support/regression/fwk/lib/timeout.c: fix usage string
13349
13350 2003-01-09  Bernhard Held <bernhard AT bernhardheld.de>
13351         * src/mcs51/gen.c (genPlus): replaced "mov b,acc" by "mov b,a" Fiorenzo D. Ramaglia <fd.ramaglia AT tin.it>
13352
13353 2003-01-07    <johan AT balder>
13354
13355         * src/SDCCast.c (decorateType): fixed bug #600035
13356
13357 2003-01-07  Bernhard Held <bernhard AT bernhardheld.de>
13358         * as/mcs51/lkmem.c: added several l-modifiers to printf to remove warnings
13359         * as/mcs51/lkaomf51.c: #include <ctype.h> to remove warnings
13360         * src/pic/main.c (_hasNativeMulFor): outcommented unused variables to remove warnings
13361         * src/pic/pcode.c: outcommented unused variable to remove warnings
13362         * src/pic/ralloc.c: outcommented unused variable to remove warnings
13363
13364 2003-01-06    <karl AT turbobit.com>
13365         * sim/ucsim/cmd.src/command.cc: fixed so "break xram r 0x7654" works again in
13366    regression tests.
13367
13368 2003-01-06    <johan AT balder>
13369
13370         * src/SDCCicode.c: fixed array add
13371
13372 2002-01-05  Bernhard Held <bernhard AT bernhardheld.de>
13373         * src/SDCCmacro.c: MAX_STRING_LENGTH increased to 2048; was too small for regression tests
13374         * support/regression/ports/host/support.c: #include <stdarg.h> for gcc 3.2
13375
13376 2003-01-04    <johan AT balder>
13377
13378         * src/SDCCval.c (getNelements): fixed the initialized array of structures
13379
13380 2002-12-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13381         * as/mcs51/Makefile.bcc: fixed typo lkomf51.o -> lkaomf51.o
13382
13383 2002-12-28  Bernhard Held <bernhard AT bernhardheld.de>
13384         * src/mcs51/peeph.def: added rules 234 and 235 from Frieder Ferlemann <frieder.ferlemann AT web.de>
13385         * support/regression/tests/bug-524697.c: fit mem usage into 8032
13386
13387 2002-12-28  Bernhard Held <bernhard AT bernhardheld.de>
13388         * src/mcs51/gen.c (aopGetUsesAcc): inserted missing "return FALSE"
13389
13390 2002-12-27  Bernhard Held <bernhard AT bernhardheld.de>
13391         * as/mcs51/Makefile.in: fixed typo lkomf51.o -> lkaomf51.o
13392
13393 2002-12-26  Bernhard Held <bernhard AT bernhardheld.de>
13394         * src/mcs51/main.c: removed {bindir}{sep} from aslink
13395
13396 2002-12-10  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13397
13398     * in /sdcc/as/mcs51/ changed these files in order to create an
13399     aomf51 file: aslink.h, lkdta.c, lklex.c, lklibr.c, lklist.c,
13400     lkmain.c.  Also added: lkmem.c and lkaomf51.c.  Changed the
13401     following files to include the previous two files: aslink.dsp,
13402     Makefile.aslink, Makefile.bcc, and Makefile.in.
13403
13404     * Changed /sdcc/src/SDCCmain.c so it creates files with extension
13405     .adb instead of .cdb
13406
13407 2002-11-09  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13408
13409         * /sdcc/as/mcs51/lklist.c: Now reports memory usage using the
13410         value from option --iram-size.
13411
13412 2002-09-20  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13413
13414         * /sdcc/as/mcs51/lklist.c: added boundary check before using
13415         dram[] array.
13416
13417 2002-09-18    <wiml AT hhhh.org>
13418
13419         * SDCClrange.h: exposed setFromRange() and setToRange()
13420         * mcs51/ralloc.c: fixed over-eager packRegsForSupport() and
13421           packRegsForAccUse() (bug 542397)
13422         * mcs51/gen.c: MOVA() is now a function to avoid calling aopGet()
13423           multiple times and emitting the fetch operations more than once
13424           added aopGetUsesAcc() function to allow binary operators to
13425           fetch their operands in the correct order; made genMinus() emit
13426           compact code for X = LITERAL - Y
13427
13428 2002-09-00  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13429         * /sdcc/as/mcs51/lklist.c: Fixed incorrect number of parameters to
13430         sprintf() in line 1267.
13431
13432 2002-09-08  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13433         * /sdcc/src/SDCCglue.c: Generate areas REG_BANK_[0-3] only for 8051
13434         like ports.
13435
13436 2002-09-04  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13437         Changes to aslink (All the changes are marked with 'JCF'):
13438
13439         * /sdcc/as/mcs51/aslink.h: External definition of sflag and
13440         summary().
13441
13442         * /sdcc/as/mcs51/lkarea.c: Computes the size of area BSEG_BYTES from
13443         area BSEG.  Also moves, if possible, the DATA area down into the internal
13444         ram so more space is available.
13445
13446         * /sdcc/as/mcs51/lkdata.c: Definition of memory summary output flag
13447         sflag.
13448
13449         * /sdcc/as/mcs51/lklist.c: For the BSEG area report the size in bits,
13450         not bytes.  Function summary() which creates a memory usage summary
13451         file with extension .mem.  Reports of overlaping stack and small stack
13452         size.  If the space for the stack is less than 16 bytes aslink trows a
13453         warning.
13454
13455         * /sdcc/as/mcs51/lkmain.c: Creation of some of the default areas for
13456         the 8051.  Option 'y' for memory summary output file.
13457
13458         Changes to sdcc (All the changes are marked with 'JCF'):
13459
13460         * /sdcc/src/SDCCglobl.h: External definition of RegBankUsed[4].
13461
13462         * /sdcc/src/SDCCglue.c:  If a register bank is used, creates an
13463         overlaying area for it (uses RegBankUsed[4]).
13464
13465         * /sdcc/src/SDCCmain.c: Definition RegBankUsed[4]; marks register
13466         bank zero as used by default.  By default aslink locates the stack
13467         (equivalent to --stack-after-data).  Pass option 'y' to aslink for
13468         the creation of the .mem file.  Delegates the allocation of data area
13469         to aslink (it is not longer 0x30 by default).  If --stack-loc passes
13470         the begining of the stack area to aslink.
13471
13472         * /sdcc/src/SDCCmem.c:  If a register bank is used, marks it so
13473         glue() in SDCCglue.c creates an area for it.
13474
13475 2002-09-03  Borut Razem <borut.razem AT siol.net>
13476         * sdcc/src/SDCCglue.c, sdcc/src/SDCCglue.h, sdcc/src/SDCCmain.c,
13477         sdcc/src/pic/glue.c:
13478         introduced atexit() handler for teporay files removal in case of
13479         errors, assertions, ...
13480
13481 2002-08-29  Borut Razem <borut.razem AT siol.net>
13482         * sdcc/support/cpp2/auto-host_vc_in.h:
13483         re-definition of O_BINARY and other O_XXX as _O_BINARY and _O_XXX, so the problem
13484         with the returned value from read() in sdcc/support/cpp2/cppfiles.c is solved for MSC.
13485         Maybe there is a similar problem with BORLANDC? It should be checked!
13486
13487         * sdcc/src/ds390/ralloc.c, sdcc/src/mcs51/ralloc.c, sdcc/src/z80/ralloc.c:
13488         corrected improper use of assert: the assignment to clr variable was done inside the assert.
13489         In case that NDEBUG was defined, the assert macro was substituted with no-op, so the assignment
13490         was not executed, and the compiler (cl) launched a warning:
13491         ralloc.c(1442) : warning C4700: local variable 'clr' used without having been initialized
13492
13493 2002-08-28  Bernhard Held <bernhard AT bernhardheld.de>
13494         * src/SDCCglue.c (printIvalArray): iterative calculation of array length
13495
13496 2002-08-28  Jesus Calvino-Fraga and Borut Razem <borut.razem AT siol.net>
13497         * sdcc/sdcc.dsw: added sdcpp, sdcppa, yacc, conf projects
13498
13499         * sdcc/src/src.dsp, sdcc/src/avr/avr.dsp, sdcc/src/ds390/ds390.dsp,
13500           sdcc/src/mcs51/mcs51.dsp, sdcc/src/pic/pic.dsp, sdcc/src/z80/z80.dsp,
13501           sdcc/src/xa51/xa51.dsp, sdcc/src/avr/avra.dsp,
13502           sdcc/src/ds390/ds390a.dsp, sdcc/src/mcs51/mcs51a.dsp,
13503           sdcc/src/pic/pica.dsp, sdcc/src/z80/z80a.dsp,
13504           sdcc/src/xa51/xa51a.dsp, sdcc/as/as_z80.dsp,
13505           sdcc/as/aslink.dsp, sdcc/as/asx8051.dsp, sdcc/packihx/packihx.dsp:
13506         - added Release configuration in VS projects
13507         - review of compiler an linker options
13508         - VC .exe files are generated in bin_vc directory, not to interfere
13509           with binaries generated from other projects (cygwin, mingw, bcc ...)
13510
13511         * sdcc/src/yacc.dsp: added
13512
13513         * sdcc/config.dsp, sdcc/configure_vc.awk, sdcc/sdcc_vc_in.h:
13514         added - genarate sdcc_vc.h using sdcc_vc_in.h as template
13515         and insert the version number definitions from .version
13516
13517         * sdcc/support/cpp2/sdcpp.dsp: added - VC project for sdcpp
13518
13519         * sdcc/support/cpp2/sdcppa.dsp, sdcc/support/cpp2/auto-host_vc_in.h:
13520         added - genarate auto-host.h using auto-host_vc_in.h as template
13521
13522         * sdcc/sdcc_vc.h,
13523         removed from CVS, generated automatically
13524
13525 2002-08-25  Bernhard Held <bernhard AT bernhardheld.de>
13526         * support/scripts/inc2h.pl: use gputils or gpasm (from Nathan Hurst)
13527
13528 2002-08-11  Borut Razem <borut.razem AT siol.net>
13529         * support/Util/NewAlloc.c: removed unneeded #include "sdccconf.h" (suggested by Jesus Calvino-Fraga)
13530
13531 2002-08-10  Borut Razem <borut.razem AT siol.net>
13532         * src/SDCCmain.c (main):
13533         file preOutName was unlinked before closed. This seems to be OK on UNIX and cygwin
13534         platforms, but it doesn't work with Visual Studio: the opened file can not be removed.
13535         The consequence was that some temporary files were not removed.
13536
13537         * src/SDCCglue.c:
13538         unification of code in functions tempfilename() and tempfile():
13539         function tempnam() is defined in Visual Studio 6.0 and .NET
13540
13541         * sdcc/sdcc.dsw: removed project sdcpp, added project xa51a
13542
13543         * sdcc/src/src.dsp, sdcc/src/avr/avr.dsp, sdcc/src/ds390/ds390.dsp,
13544           sdcc/src/mcs51/mcs51.dsp, sdcc/src/pic/pic.dsp, sdcc/src/z80/z80.dsp:
13545         - removed compiler command line option /WX: Treats all warnings as errors
13546         - update a list of source files, included into the project
13547
13548         * sdcc/src/avr/avra.dsp, sdcc/src/ds390/ds390a.dsp, sdcc/src/mcs51/mcs51a.dsp,
13549           sdcc/src/pic/pica.dsp, sdcc/src/z80/z80a.dsp:
13550         changed project type to Generic Project so that can be correcly converted to VS.NET project
13551
13552         * sdcc/as/mcs51/asm.h: definition of PATH_MAX for MSC
13553
13554         * sdcc/src/SDCCast.c: solved MSC error in function decorateType()
13555
13556         * sdcc/src/SDCC.y: added missing ending ';' to rules to get rid of bison warnings
13557
13558         * dcc/src/ds390/ralloc.c, sdcc/src/mcs51/ralloc.c:
13559         added return 0 statements after assert() to make compiler happy
13560
13561         * sdcc/src/xa51/peeph.rul, sdcc/src/xa51/peeph.def, sdcc/src/z80/ralloc.c:
13562         added newline in the def file to keep MSC compiler satisfied
13563
13564         * sdcc/src/z80/gen.c:
13565         - function strcasecmp() is not defined in MSC (and probably also in BORLANDC),
13566           so it is replaced with STRCASECMP, which is defined as stricmp in case of MSC and BORLANDC
13567         - solved MSC error in function aopDump()
13568
13569         * sdcc_vc.h: define PREFIX as "\\sdcc"
13570
13571 2002-07-18  Bernhard Held <bernhard AT bernhardheld.de>
13572         * src/SDCCast.c (decorateType): fixed access to array of structures http://sourceforge.net/mailarchive/forum.php?thread_id=902690&forum_id=4107
13573
13574 2002-06-22  Scott Dattalo <scott AT dattalo.com>
13575         * src/pic/*: Numerous bug fixes. Flow analysis has been enhanced.
13576         - Rewrote the register banking algorithm.
13577         - Added pCode live-range analysis to registers (for now, only non-used and
13578         singly-used registers optimized away)
13579
13580         * src/pic/pcoderegs.[ch]: Added new files for pCode live-range analysis
13581
13582         * 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.
13583
13584 2002-05-10  Scott Dattalo <scott AT dattalo.com>
13585         * src/pic/*: Added support for multiplication. Fixed many,many bugs.
13586
13587 2002-04-22  Michael Hope  <michaelh AT vroom>
13588
13589         * device/lib/z80/printf.c: Changed emitter to volatile to work around a pcall bug.
13590
13591         * configure.in (DD_COPT): Added include support required for gbdk.
13592
13593         * .version: Bumped version number just to increase it.
13594
13595         * src/SDCCmain.c: Added -nostdinc to the default options.
13596
13597 2002-04-15  Michael Hope  <michaelh AT vroom>
13598
13599         * device/lib/z80/printf.c (sprintf): Added.
13600
13601         * src/z80/ralloc.c (packRegisters): Disabled pack HL use for GB as it's broken.
13602
13603         * src/z80/peeph.def: Added transpose redundent load rule.
13604
13605         * src/z80/main.c: Added force callee saves for jaune.
13606
13607         * src/port.h: Removed the i186 and tlcs-900h ports as they weren't being being developed.
13608
13609         * src/SDCCmain.c: Pulled the options definition out so that you can add port specific options without changing the main file.
13610
13611 2002-03-28  Johan Knol  <johan AT balder>
13612
13613         * src/SDCCval.c: fixed bug #532436
13614
13615 2002-03-14  Scott Dattalo <scott AT dattalo.com>
13616         * /src/port.h:
13617         Added "char *Processor" field to the port structure.
13618
13619         * /src/SDCCmain.c:
13620         Added -p option. Allows port dependent processor to be specified.
13621
13622         * all ports:
13623         Initialized the new field char *Processor field to NULL in all ports
13624
13625         * /src/pic/*:
13626         Compiler generated registers for interrupt context saving
13627         were not getting allocated.
13628
13629 2002-03-16  Sandeep Dutta  <sandeep AT ddi.com>
13630
13631         * /src/SDCCast.c:
13632         Fixed left shift. Will promote the left side of a left shift
13633         if a) left shifting more than size of operand or b) when assigned
13634         to something size > size of left side
13635
13636 2002-03-14  Scott Dattalo <scott AT dattalo.com>
13637         * src/pic/*
13638         tons of changes. Register allocation has been
13639         rewritten. Added customization for the various PICs. Flow
13640         analysis is restructured. ...
13641
13642         * src/pic/device.h:
13643         Added
13644
13645         * src/pic/device.c:
13646         Added. device.c is a PIC port hack to accomodate variations
13647         in PIC devices.
13648
13649 2002-03-13  Michael Hope  <michaelh AT vroom>
13650
13651         * src/z80/gen.c (genGenPointerGet): Fixed a bug where a pointer in HL is dereferenced into HL but HL is not spilled.  Yeah.
13652
13653 2002-03-04  johanknol  <johanknol AT manik>
13654
13655         * /src/SDCCval.c: fixed
13656
13657         const unsigned char arr[][2] = { { 0, 1 } };
13658         t18.c:1: error: Initializer element is not constant
13659
13660 2002-03-04  bela  <bela AT manik>
13661
13662         * /device/include/mcs51reg.h:
13663         ds89c420 register definition update
13664
13665 2002-03-03    <johan AT FRIJA>
13666
13667         * support/Util/SDCCerr.c: did something, but don't no why anymore
13668
13669         * support/regression/tests/bug-524691.c: made it a little less shy
13670
13671         * src/SDCCast.c (decorateType): fixed bug #524697
13672
13673         * src/SDCCast.c: made some lineno improvements
13674
13675         * src/SDCCval.c (getNelements): changed warning to error
13676
13677         * src/SDCCglue.c (printIvalArray): changed warning to error
13678
13679         * src/SDCCicode.c: fixed a warning for mingw
13680
13681         * src/SDCCast.c (decorateType): fixed the << promotion for ops
13682
13683         * src/SDCCicode.c (geniCodeDivision): divide is shift only for unsigned (bug #524685)
13684
13685 2002-03-02  Sandeep Dutta  <sandeep AT ddi.com>
13686
13687         * src/ds390/peeph.def:
13688         Added some more peephole rules
13689
13690         * src/ds390/gen.c: Various fixes & enhancements
13691
13692         * src/SDCClrange.c, src/SDCClrange.h:
13693         functions "alldefsoutofrange" and "notusedinblock" moved to SDCClrange.c
13694
13695         * src/ds390/ralloc.c:
13696         various fixes & enhancements (ds390) specific
13697
13698         * src/avr/ralloc.c, src/mcs51/ralloc.c, src/pic/ralloc.c, src/xa51/ralloc.c, src/z80/ralloc.c:
13699         Functions "allDefsOutOfRange" & "notUsedinBlock" moved to SDCClrange.c
13700         from rallocs.
13701
13702         * sdcc/src/SDCCcse.c: Better fix for bug # 514308
13703
13704 2002-03-02    <johan AT FRIJA>
13705
13706         * src/SDCCast.c (decorateType): fixed bug #524708
13707
13708         * src/SDCCval.c (floatFromVal): fixed the literal void (whatever that may be)
13709
13710         * src/SDCCicode.c (geniCodePtrPtrSubtract): fixed bug #524691
13711
13712 2002-03-01  Michael Hope  <michaelh AT vroom>
13713
13714         * src/SDCCsymt.c (initCSupport): Removed managling of support function names.
13715
13716         * src/z80/ralloc.c (packRegsForIYUse): Fixed fp bug where four byte operands were packed into IY.
13717
13718 2002-03-01    <johan AT FRIJA>
13719
13720         * src/SDCCglue.c (printIvalPtr): fixed bug #524211
13721
13722         * src/SDCCast.c (decorateType): fixed bug #524209
13723
13724         * src/SDCCval.c (valNot): fixed bug #524195
13725
13726 2002-02-26    <johan AT balder>
13727
13728         * src/xa51/gen.c: fixed a warning
13729
13730         * src/SDCCglue.c (printIvalFuncPtr): fixed bug #522534
13731
13732         * src/SDCCast.c (decorateType): fixed bug #522534
13733
13734 2002-02-23    <johan AT balder>
13735
13736         * src/SDCCdflow.c (computeDataFlow): fixed bug #460088
13737
13738 2002-02-22    <johan AT balder>
13739
13740         * src/SDCCast.c: fixed bug #514865
13741
13742         * src/SDCCy.c ("SDCC.y"): fixed bug #516625
13743
13744 2002-02-21  Sandeep Dutta  <sandeep AT ddi.com>
13745
13746         * sdcc/src/SDCCloop.c:
13747         Previous fix was not good. basic blocks that have "break" or "return" are
13748         not really partof a loop , but live ranges used in these blocks should
13749         be live thru the entire loop, so set partOfLoop but don't add them to
13750         loop region
13751
13752 2002-02-21    <johan AT FRIJA>
13753
13754         * src/SDCCcse.c: fixed bug #514308
13755
13756 2002-02-20  Sandeep Dutta  <sandeep AT ddi.com>
13757
13758         * src/SDCCloop.c:
13759         Fixed BUG #519583. If a conditional block ended in a return/break
13760         statement inside a loop, it was not being considered part of the loop.
13761
13762         * src/SDCCcflow.c: Removed fix (Fixed in SDCCloop.c)
13763
13764 2002-02-10  Karl Bongers <karl AT turbobit.com>
13765
13766         * debugger/*:
13767         Fixed up SDCDB debugger somewhat.  Updated debugger/README
13768         with lots of comments and notes.
13769
13770         * device/examples/test2.c:
13771         Fix bug, "red" variable not being initialized(compiler complained).
13772
13773         * device/examples/Makefile, examples/test3.c:
13774         Add Makefile in device/examples folder, compiles test3.c
13775         for use as a multiple module SDCDB test case.
13776
13777         * sim/ucsim/cmd.src/cmdset.cc:
13778         Took out debug printfs in ucsim "next" command.
13779
13780         * sim/ucsim/xa.src:
13781         Karl and Johan start ucsim XA support.  Most dissassembly working,
13782         about 75% emulation done(plenty of work remaining).
13783
13784         * sim/ucsim/z80.src:
13785         Add Z80 support to ucsim, add test-ucz80 regression test,
13786         notice ucsim/z80 emulation fails on examples/test3.c/itoa code.
13787         Notice z80 compiler fails on examples/test3.c/crc code.
13788
13789 2002-01-30  Sandeep Dutta  <sandeep AT ddi.com>
13790
13791         * src/mcs51/gen.c, src/mcs51/main.c, src/mcs51/ralloc.c:
13792         Added support for --parms-in-bank1
13793
13794         * src/ds390/peeph.def:
13795         added a few more peephole optimzations
13796
13797         * src/ds390/main.c:
13798         1) added __builtin_inp & __builtin_outp used to read in data of given length
13799            from a memory mapped port
13800         2) added __builtin_memcmp
13801         3) added __builtin_swapw swap bytes of a short
13802
13803         * src/ds390/gen.c, src/ds390/gen.h, src/ds390/ralloc.c:
13804         1) handle multiple send & receives from register bank1
13805         2) ralloc can now allocate DPTR1 to some liveRanges
13806
13807         * src/SDCCsymt.c, src/SDCCsymt.h:
13808         changes to handle multiple sends & receives
13809
13810         * src/SDCCptropt.h:
13811         added some pointer arithmetic optimization
13812
13813         * src/SDCCptropt.c:
13814         added some pointer arithmetic optimizations but not stable yet so not
13815         called from anywhere (will get this working shortly)
13816
13817         * src/SDCCopt.c: fixed for multiple sends & receives
13818
13819         * src/SDCCmain.c:
13820         1) added options --parms-in-bank1 (ds390/mcs51) & --protect-sp-update
13821         2) preprocessing done AFTER port->finalizeoptions . This allows ports to
13822            set preprocessor defines (depending on options)
13823
13824         * src/SDCCicode.c, src/SDCCicode.h:
13825         changes made to handle multiple sends & receives
13826
13827         * src/SDCCglobl.h:
13828         Added options --protect-sp-update (ds390) and --parms-in-bank1 (ds390/mcs51)
13829
13830         * src/SDCCcse.c, src/SDCCcse.h:
13831         added function findbackward def (to be used in upcoming optimization)
13832
13833         * src/SDCCcflow.c, src/SDCCcflow.h:
13834         added function returnAtEnd - to determine if a basic block terminates with
13835         a RETURN iCode
13836
13837         * src/SDCCast.c, src/SDCCast.h:
13838         added option parms-in-bank1
13839
13840         * device/lib/_divsint.c, device/lib/_divslong.c, device/lib/_divuint.c
13841         * device/lib/_divulong.c, device/lib/_modsint.c, device/lib/_modslong.c
13842         * device/lib/_modulong.c, device/lib/_mulint.c, device/lib/_mullong.c:
13843         adjusted for --parms-in-bank1 option
13844
13845         * device/include/string.h:
13846         donot redefine "reentrant" keyword
13847
13848         * device/include/ds80c390.h: Added some more SFRs
13849
13850 2002-01-28  Bernhard Held  <bernhard AT bernhardheld.de>
13851
13852         * sim/ucsim: Merged branch ucsim-034-pre3 to main trunk; new version 0.4
13853
13854 2002-01-26  Bernhard Held  <bernhard AT bernhardheld.de>
13855
13856         * src/SDCCast.c (funcOfType): fix usage of double --float-reent
13857
13858 2002-01-22  Bernhard Held  <bernhard AT bernhardheld.de>
13859
13860         * support/regression/fwk/lib/testfwk.c (main): Removed workaround for bug #505387
13861
13862 2002-01-18  Paul Stoffregen  <paul AT pjrc.com>
13863
13864         * Added --xram-movc option
13865
13866 2002-01-13  Bernhard Held  <bernhard AT bernhardheld.de>
13867
13868         * support/regression/Makefile: don't include test-mcs51-stack-auto in target all
13869
13870 2002-01-11  Johan Knol
13871
13872         * Added math lib of Jesus Calvino-Fraga
13873
13874 2002-01-08  Bernhard Held  <bernhard AT bernhardheld.de>
13875
13876         * src/SDCCmain.c (processFile): fix processing of ../../src.c
13877         * support/regression/Makefile: new target test-mcs51-stack-auto
13878         * support/regression/ports/mcs51-stack-auto/spec.mk: added
13879
13880 2002-01-04  Bernhard Held  <bernhard AT bernhardheld.de>
13881
13882         * src/SDCCglue.h: printIvalCharPtr(), not printIvalChar()
13883
13884 2002-01-04  Bernhard Held  <bernhard AT bernhardheld.de>
13885
13886         * support/regression/ports/mcs51/support.c: correct setup of timer / UART
13887
13888 2002-01-03  Bernhard Held  <bernhard AT bernhardheld.de>
13889
13890         * src/SDCCsymt.c (processFuncArgs): fix #498307 by Johan
13891
13892         * src/SDCCglue.h: add definition for printIvalChar()
13893
13894 2002-01-02  Bernhard Held  <bernhard AT bernhardheld.de>
13895
13896         * src/SDCCast.c: fix #498138 by Johan
13897
13898         * src/SDCCglue.c: fix #498138 by Johan
13899
13900 2002-01-02  Bernhard Held  <bernhard AT bernhardheld.de>
13901
13902         * support/regression/Makefile: fix clean
13903
13904         * support/regression/ports/ds390/support.c: fix transmission of last character
13905
13906 2001-12-29  Sandeep Dutta  <sandeep AT ddi.com>
13907
13908         * /sdcc/src/ds390/gen.c:
13909         a) improved computing address of stack variable
13910         b) took out some #if 0 code
13911         c) improved parmBytes adjustment
13912         d) improved genPlusIncr & genMinusIncr
13913         e) genCmp could generate bad code (when left assigned to DPTR)
13914         f) Fixed bug in hasInc
13915
13916         * /sdcc/src/ds390/ralloc.c:
13917         a) packRegsForSupport could mess up live information (Fixed)
13918         b) packRegsDPTRuse could be incorrect for left & right shift
13919
13920         * /sdcc/src/mcs51/ralloc.c:
13921         packRegsForSupport could mess up the live information (Fixed)
13922
13923         * /sdcc/src/mcs51/gen.c: Fixed a bug in hasInc
13924
13925         * /sdcc/src/SDCCast.c:
13926         can reverse a loop even if function call is present as long
13927         as the loop control variable is local & is not passed as parameter
13928
13929 2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>
13930
13931         * /sdcc/ChangeLog: *** empty log message ***
13932
13933         * /sdcc/src/ds390/gen.c, /sdcc/src/ds390/main.c:
13934         More builtin function additions for TININative
13935
13936         * /sdcc/src/ds390/ralloc.c:
13937         Had broken the regression testsuite
13938
13939         * /sdcc/src/SDCCast.c: Fixed a bug in dumptree
13940
13941         * /sdcc/src/SDCCsymt.c, /sdcc/src/SDCCsymt.h:
13942         Added funcattr hasStackParms will be set for reentrant functions when there
13943         are paramteres on the stack, this helps in minimizing frame pointer generation
13944         typeFromStr can handle function pointers now
13945
13946         * /sdcc/doc/builtins.txt, /sdcc/doc/TININative.txt:
13947         *** empty log message ***
13948
13949 2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>
13950
13951         * /src/ds390/gen.c, /src/ds390/main.c:
13952         More builtin function additions for TININative
13953
13954         * /src/ds390/ralloc.c:
13955         Had broken the regression testsuite
13956
13957         * /src/SDCCast.c: Fixed a bug in dumptree
13958
13959         * /src/SDCCsymt.c, /src/SDCCsymt.h:
13960         Added funcattr hasStackParms will be set for reentrant functions when there
13961         are paramteres on the stack, this helps in minimizing frame pointer generation
13962         typeFromStr can handle function pointers now
13963
13964         * /doc/builtins.txt, /doc/TININative.txt:
13965         *** empty log message ***
13966
13967
13968 2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>
13969
13970         * /src/ds390/gen.c, /src/ds390/main.c, /src/ds390/peeph.def, /src/ds390/ralloc.c:
13971         ALPHA version for -mTININative
13972
13973         * /src/izt/i186.c, /src/izt/tlcs900h.c, /src/mcs51/main.c, /src/pic/main.c, /src/z80/main.c, /src/avr/main.c:
13974         updated to reflect changes in the port structure
13975
13976         * /src/port.h:
13977         added function do_assemble (similar to do_link) if non-null this function
13978         will be called to do assembly (-mTININative) requires a multi command
13979         assembly
13980         added function genAssemblerEnd will be called to generate assembler Epilogue
13981
13982         * /src/SDCCsymt.c:
13983         added _JavaNative to debug info printing
13984
13985         * /src/SDCCmain.c: added option --tini-libid
13986         added port->do_assemble function (-mTININative) has a multi command assemble
13987
13988         * /src/SDCCglue.c: Disabled "constExpr" check
13989         added port->genAssemblerEnd function
13990
13991         * /src/SDCCglobl.h: Added option --tini-libid value
13992
13993         * /src/SDCCast.h:
13994         tookout optimizeCompare from the header (has no external references)
13995
13996         * /src/SDCCast.c: made one more function "static"
13997
13998 2001-12-23  Michael Hope  <michaelh AT juju.net.nz>
13999
14000         * src/z80/mappings.i: Added z80asm support.
14001
14002         * src/z80/main.c: Added z80asm support on --asm=z80asm
14003
14004         * src/z80/gen.c: Fixed asm portability issues.
14005
14006         * src/asm.c (tvsprintf): Removed old code, added 'N' for function name.  For extern support.
14007
14008         * src/SDCCglue.c (printExterns): Added global/extern split.
14009
14010 2001-12-17  Bernhard Held  <bernhard AT bernhardheld.de>
14011
14012         * support/regression/Makefile: added test for mcs51 model large
14013
14014         * support/regression/ports/mcs51-large/spec.mk: added test for mcs51 model large
14015
14016         * support/regression/ports/gbz80/spec.mk: added -mgbz80
14017
14018 2001-12-05  Michael Hope  <michaelh AT juju.net.nz>
14019
14020         * src/diff.1 (Index): Many, many optmisiations.  Dhrystone up to 201.
14021
14022 1904-01-06  Michael Hope  <michaelh AT juju.net.nz>
14023
14024         * src/z80/ralloc.c (packRegsForIYUse): Fixed the case where an operand is in direct space.
14025
14026         * src/z80/gen.c (makeFreePairId): Optimised IY load by using a spare pair.
14027
14028 2001-12-02  Bernhard Held  <bernhard AT bernhardheld.de>
14029
14030         * src/mcs51/gen.c (genFunction): avoid excess "inc sp"
14031
14032         * support/regression/tests/simplefloat.c: Port to mcs51.
14033
14034 2001-11-25  Michael Hope  <michaelh AT juju.net.nz>
14035         * support/regression/tests/bug-485362.c: Added.
14036
14037         * support/regression/tests/simplefloat.c (testDivNearOne): Added.
14038
14039         * src/z80/gen.c (aopOp): Fixed case where left and result are in the same spill loc and they have different sizes.
14040
14041         * src/z80/peeph.def: Added rules for optimising two byte compares on the same thing, and to optimise two ptr assign.
14042
14043         * src/z80/gen.c (aopDump): Added a dump function.
14044
14045 2001-11-25  Bernhard Held  <bernhard AT bernhardheld.de>
14046         * sim/ucsim/s51.src/glob.cc: DS390 SFRs and bits added.
14047
14048         * sim/ucsim/s51.src/port.cc: Port 4 and 5 added.
14049
14050         * sim/ucsim/s51.src/regs51.h: DS390 SFRs added.
14051
14052         * sim/ucsim/s51.src/uc390.cc: Some details improved, CKRDY works for tinibios.
14053
14054         * sim/ucsim/s51.src/uc390cl.h: Work in progress.
14055
14056         * sim/ucsim/sim.src/uccl.h: 6 ports for DS390.
14057
14058         * support/regression/fwk/lib/testfwk.c: Run with tinibios.
14059
14060         * support/regression/ports/mcs51/spec.mk: Fine tuninig.
14061
14062         * support/regression/ports/ds390/support.c: Use tinibios.
14063
14064         * support/regression/ports/ds390/spec.mk: Fine tuning, use tinibios.
14065
14066 2001-11-23  Michael Hope  <michaelh AT juju.net.nz>support/regression/tests/bug-460010.c
14067
14068         * src/z80/ralloc.c (packRegsForHLUse3): Changed to not pack into HL if anything is in direct space.
14069         (packRegsForHLUse3): Added packing support for send, cast, and return value from a call.
14070
14071         * src/z80/peeph.def: Added rules for optimising pushes of part of a pair.
14072
14073         * src/z80/gen.c (emitCall): Changed the stack fixup to not use HL.
14074
14075 2001-11-18  Michael Hope  <michaelh AT juju.net.nz>
14076
14077         * src/z80/gen.c (genCmp): Fixed compare on unsigned.
14078
14079         * src/z80/ralloc.c (packRegsForHLUse3): Created and optimised.
14080         (packRegsForIYUse): Created and optimised.
14081
14082 2001-11-07  Michael Hope  <michaelh AT juju.net.nz>
14083
14084         * support/regression/tests/float.c (testFloatAdd): Fixed up warning.
14085 2001-11-18  Bernhard Held  <bernhard AT bernhardheld.de>
14086
14087         * sdcc/support/regression/tests/bug-460010.c: fix seg violation on host
14088
14089         * sdcc/support/regression/tests/muldiv.c: fix output on mcs51
14090
14091         * sdcc/support/regression/tests/stacks.c: fix DSEG overflow on mcs51
14092
14093 2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>
14094
14095         * sdcc/sim/device/lib/_gptrget.c: mem region 5 (idata) added
14096
14097         * sdcc/sim/device/lib/_gptrput.c: mem region 5 (idata) added
14098
14099 2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>
14100
14101         * sdcc/sim/ucsim/globals.cc: New: IXRAM.
14102
14103         * sdcc/sim/ucsim/stypes.h: New: IXRAM.
14104
14105         * sdcc/sim/ucsim/s51.src/uc390.cc: New: IXRAM.
14106
14107 2001-11-07  Michael Hope  <michaelh AT juju.net.nz>
14108
14109         * src/z80/ralloc.c (packRegsForHLUse): Banned IFXs from being packed into HL.
14110         (packRegsForHLUse): Added rule to pack address of/pointer get for itemps into HL for the Z80.
14111         (packRegsForAccUse2): Added rule to pack hbit IFXs into A.
14112
14113         * src/z80/main.c (_setDefaultOptions): Made float code re-entrant by default.
14114
14115         * src/z80/gen.c (aopGetLitWordLong): Added word support for floats.
14116         (genNotFloat): Added.
14117         (genUminusFloat): Added.
14118
14119         * device/lib/z80/Makefile: Added floating pt stubs.
14120
14121         * device/lib/Makefile.in (Z80SOURCES): Added floating pt support.
14122
14123         * src/z80/gen.c (genIpush): Fixed up a push of one byte when left is in a pair.
14124
14125         * device/lib/_fsadd.c (__fsadd): Fixed up return where the numbers are hugely different.
14126
14127 2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>
14128
14129         * sdcc/sim/ucsim/s51.src/glob.cc: Minor fix.
14130
14131         * sdcc/sim/ucsim/s51.src/regs51.h: Minor fix.
14132
14133         * sdcc/support/regression/Makefile: Add port ds390.
14134
14135         * sdcc/support/regression/ports/mcs51/spec.mk: Minor change.
14136
14137         * sdcc/support/regression/ports/z80/spec.mk: Minor change.
14138
14139         * sdcc/support/regression/ports/ds390/spec.mk: Added.
14140
14141         * sdcc/support/regression/ports/ds390/support.c: Added.
14142
14143         * sdcc/support/regression/ports/ds390/uCsim.cmd: Added.
14144
14145         * sdcc/support/regression/ports/mcs51/timeout.c: Cut.
14146
14147         * sdcc/support/regression/fwk/lib/timeout.c: Paste.
14148
14149 2001-11-04  Michael Hope  <michaelh AT juju.net.nz>
14150
14151         * device/include/malloc.h: Added z80 and gbz80 support.
14152
14153         * device/lib/gbz80/heap.s: Added.
14154
14155         * device/lib/z80/heap.s: Added.
14156
14157         * device/lib/malloc.c: Added z80 and gbz80 support.
14158
14159         * support/regression/tests/malloc.c (testMalloc): Added.
14160
14161         * src/SDCCmain.c (parseCmdLine): Added support for -Wp.
14162
14163         * support/regression/tests/bug-478094.c: Added.
14164
14165         * src/z80/gen.c (commitPair): Fixed silly gbz80/z80 commit to static bug.
14166
14167 2001-11-04  Bernhard Held  <bernhard AT bernhardheld.de>
14168
14169         * sdcc/sim/ucsim/s51.src/uc390cl.h: Improvement for ds390 to run regression tests
14170
14171         * sdcc/sim/ucsim/s51.src/uc390.h: Improvement for ds390 to run regression tests
14172
14173         * sdcc/sim/ucsim/s51.src/regs51.h: Improvement for ds390 to run regression tests
14174
14175         * sdcc/sim/ucsim/s51.src/glob.cc: Improvement for ds390 to run regression tests
14176
14177         * sdcc/support/regression/tests/bug-460010.c: Small change for ds390
14178
14179 2001-11-04  Michael Hope  <michaelh AT juju.net.nz>
14180
14181         * src/z80/peeph-gbz80.def: Removed a bad sub optimisation.
14182
14183 2001-11-03  Michael Hope  <michaelh AT juju.net.nz>
14184
14185         * support/regression/tests/bug-477927.c: Added.
14186
14187         * src/z80/peeph.def: Added minor rules.
14188
14189         * src/z80/gen.c (genPlusIncr): Added an extra plusinc rule.
14190
14191         * src/z80/peeph.def: Added jump optimisation modification.
14192
14193 2001-11-01  Michael Hope  <michaelh AT juju.net.nz>
14194
14195         * src/SDCCmain.c (linkEdit): Added runtime path detection to the mcs51 port.
14196
14197 2001-10-30  Michael Hope  <michaelh AT juju.net.nz>
14198
14199         * support/regression/tests/funptrs.c: Added.
14200
14201 2001-10-29  Michael Hope  <michaelh AT juju.net.nz>
14202
14203         * src/z80/ralloc.c (packRegsForHLUse): Fixed up bad spill due to pushing one byte via HL.
14204
14205 2001-10-28  Michael Hope  <michaelh AT juju.net.nz>
14206
14207         * src/z80/gen.c (genArrayInit): Made it work for on stack arrays.
14208
14209         * src/z80/main.c (gbz80_port =): Added rle support to the gbz80 port.
14210
14211         * src/z80/gen.c (genMinus): Fixed for where the result is one byte.
14212         (movLeft2ResultLong): Created.
14213
14214         * src/z80/ralloc.c (packRegsForHLUse): Added a couple of simple cases for the GB.
14215         (joinPushes): Added.  Joins two char pushes into a word push.
14216
14217 2001-10-27  Michael Hope  <michaelh AT juju.net.nz>
14218
14219         * support/cpp2/Makefile.in (install): Added creation of dest dir.
14220
14221         * support/makebin/Makefile (install): Added creation of dest dir.
14222
14223 2001-10-24 Karl Bongers <karl AT turbobit.com>
14224
14225         * configure.in, configure, Makefile, support/cpp: Removed cpp folder, since we have new cpp2 preprocessor code.
14226
14227 2001-10-21  Michael Hope  <michaelh AT juju.net.nz>
14228
14229         * src/z80/ralloc.c: Turned off faulty pack for one use.
14230
14231         * src/z80/peeph-gbz80.def: Removed redundent restart options.
14232
14233         * src/z80/gen.c (genMult): Added native mul for constants on the z80 and gbz80.
14234
14235 2001-10-21  Bernhard Held  <bernhard AT bernhardheld.de>
14236
14237         * support/regression/Makefile: Improved clean
14238
14239         * support/regression/ports/gbz80/spec.mk: Added clean
14240
14241         * support/regression/ports/host/spec.mk: Added clean
14242
14243         * support/regression/ports/z80/spec.mk: Added clean
14244
14245         * support/regression/ports/mcs51/spec.mk: Added clean, little improvements
14246
14247         * support/regression/ports/mcs51/timeout.c: little improvements
14248
14249 2001-10-17  Michael Hope  <michaelh AT juju.net.nz>
14250
14251         * device/lib/malloc.c (MEMHEADER): Fixed against new pedantic pointers.
14252
14253         * support/regression/fwk/include/testfwk.h: Fixed up to use function pts correctly.
14254
14255         * support/regression/generate-cases.py: Fixed up to use function pts correctly.
14256
14257 2001-10-16  Bernhard Held  <bernhard AT bernhardheld.de>
14258
14259         * support/regression/port/mcs51/spec.mk: add timeout for uCsim
14260
14261         * support/regression/port/mcs51/timeout.c: add timeout for uCsim
14262
14263 2001-10-13  Michael Hope  <michaelh AT juju.net.nz>
14264         * src/z80/gen.c (emitCall): Fixed up missing spill of HL when used to assign the result value.
14265
14266         * src/z80/ralloc.c: Turned off pack for one use as it's quite broken.
14267
14268         * src/SDCCmain.c (linkEdit): Added support for passing a legacy command line through the processor.
14269
14270         * src/mcs51/main.c (_linkCmd): Added bin path to command.
14271
14272         * src/SDCCmain.c (initValues): Added support for when it it called just to link.
14273
14274         * as/mcs51/lklibr.c (libfil;): Turned off 'library file' message.
14275
14276         * src/SDCCval.c (constVal): Fixed usage of 'L' modifier problems on ppc.
14277
14278         * support/regression/tests/longor.c: Added.
14279
14280 2001-10-11  Bernhard Held  <bernhard AT bernhardheld.de>
14281
14282         * as/mcs51/asdata.c: replaced FILENAME_MAX with PATH_MAX
14283
14284         * as/mcs51/aslink.h: define PATH_MAX
14285
14286         * as/mcs51/asm.h: define PATH_MAX
14287
14288         * as/mcs51/asmain.c: replaced FILENAME_MAX with PATH_MAX
14289
14290         * as/mcs51/asnoice.c: replaced FILENAME_MAX with PATH_MAX
14291
14292         * as/mcs51/lklex.c: replaced FILENAME_MAX with PATH_MAX
14293
14294         * as/mcs51/lkmain.c: replaced FILENAME_MAX with PATH_MAX
14295
14296         * src/SDCCglobl.h: define PATH_MAX
14297
14298         * src/SDCCmacro.c: replaced FILENAME_MAX with PATH_MAX
14299
14300         * src/SDCCmain.c: replaced FILENAME_MAX with PATH_MAX
14301
14302 2001-10-11  Michael Hope  <michaelh AT juju.net.nz>
14303
14304         * src/z80/gen.c (gencjneshort): Fixed
14305
14306         * src/z80/ralloc.c (packRegsForHLUse): Added pack into HL for cast then ipush.
14307
14308 2001-10-09  Michael Hope  <michaelh AT juju.net.nz>
14309
14310         * support/regression/tests/bug-469671.c: Added.
14311
14312         * src/z80/gen.c (shiftIntoPair): Fixed up warning.
14313
14314 2001-10-08  Michael Hope  <michaelh AT juju.net.nz>
14315
14316         * src/SDCCmain.c: Added --fommit-frame-pointer option and implemented in the z80 port.
14317
14318         * src/z80/gen.c (genPlus): Fixed to work with extended stack.  Also fixed genMinus, genCmp.  genUMinus is still left.
14319
14320 2001-10-08  Bernhar Held  <bernhard AT bernhardheld.de>
14321
14322         * src/SDCCmain.c (preProcess): added define SDCC_NOOVERLAY
14323
14324         * src/device/lib/_mulint.c  : removed hint: nooverlay bug
14325
14326         * src/device/lib/_mullong.c : removed hint: nooverlay bug
14327
14328         * src/device/lib/_divuint.c : removed hint: nooverlay bug
14329
14330         * src/device/lib/_divulong.c: removed hint: nooverlay bug
14331
14332         * src/device/lib/_moduint.c : removed hint: nooverlay bug
14333
14334         * src/device/lib/_modulong.c: removed hint: nooverlay bug
14335
14336 2001-10-07  Michael Hope  <michaelh AT juju.net.nz>
14337
14338         * 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.
14339
14340         * support/Util/NewAlloc.c (freeTrace): Changed free for the gc case to not free at all.  Fixes runtime segfault.
14341
14342         * support/regression/tests/scott-compare3.c (c_abcd): Fixed up casts.
14343
14344 2001-10-07    <johan AT FRIJA>
14345
14346         * device/lib/gets.c (gets): fixed the return value.
14347
14348 2001-10-06  Michael Hope  <michaelh AT juju.net.nz>
14349         * src/SDCCmain.c (WRITE_SEG_LOC): Fixed up to use Safe_strdup.
14350
14351         * 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.
14352
14353         * 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.
14354
14355         * src/z80/gen.c (genZ80Code): Added de-allocation via trace support.
14356
14357         * src/pic/gen.c: Removed Safe_strdup.
14358
14359         * configure.in: Added option to enable libgc support.
14360
14361         * src/SDCCbitv.c (bitVectnBitsOn): Optimised.
14362         (bitVectUnion): Optimised.
14363         (bitVectIntersect): Optimised.
14364         (bitVectBitsInCommon): Optimised.
14365         (bitVectCplAnd): Optimised.
14366
14367         * support/makebin/makebin.c (usage): Removed getopt as mingw32 doesn't have it.  Sigh.
14368
14369 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
14370
14371         * src/SDCCmain.c: distinguish between assembler debug and plain options
14372
14373         * src/avr/main.c:   remove standard assembler options
14374
14375         * src/ds390/main.c: remove standard assembler options
14376
14377         * src/mcs51/main.c: remove standard assembler options
14378
14379         * src/port.h: removed "PENDING" comment
14380
14381 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
14382
14383         * src/device/lib/_mulint.c  : new, with assember functions
14384
14385         * src/device/lib/_mullong.c : new, with assember functions
14386
14387         * src/device/lib/_divuint.c : with assember functions
14388
14389         * src/device/lib/_divsint.c : with assember functions
14390
14391         * src/device/lib/_divulong.c: with assember functions
14392
14393         * src/device/lib/_divslong.c: with assember functions
14394
14395         * src/device/lib/_moduint.c : with assember functions
14396
14397         * src/device/lib/_modsint.c : with assember functions
14398
14399         * src/device/lib/_modulong.c: with assember functions
14400
14401         * src/device/lib/_modslong.c: with assember functions
14402
14403         * src/device/lib/libint.lib:  replaced _muluint.c  and _mulsint.c  by _mulint.c
14404
14405         * src/device/lib/liblong.lib: replaced _mululong.c and _mulslong.c by _mullong.c
14406
14407         * src/device/lib/Makefile.in: replaced _muluint.c  and _mulsint.c  by _mulint.c
14408                                       replaced _mululong.c and _mulslong.c by _mullong.c
14409
14410 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
14411
14412         * src/SDCCsymt.c: sequence of specifiers in pintTypeChain() corrected
14413
14414 2001-10-01 Bernhard Held <bernhard AT bernhardheld.de>
14415
14416         * src/SDCCglue.c: test, if win32api is available for MINGW
14417
14418 2001-10-01 Bernhard Held <bernhard AT bernhardheld.de>
14419
14420         * src/SDCCsymt.c: no more _modifier in printTypeChain()
14421         * support/regression/tests/driverstruct.c: REENTRANT for mcs51
14422         * support/regression/ports/gbz80/spec.mk: removed GENERIC
14423         * support/regression/ports/host/spec.mk: removed GENERIC
14424         * support/regression/ports/mcs51/spec.mk: removed GENERIC
14425         * support/regression/ports/z80/spec.mk: removed GENERIC
14426
14427 2001-10-01  Michael Hope  <michaelh AT juju.net.nz>
14428
14429         * support/regression/fwk/lib/testfwk.c (__printf): Removed GENERIC.
14430
14431         * support/regression/tests/bug-467035.c: Created.
14432
14433 2001-10-01    <johan AT FRIJA>
14434
14435         * src/SDCC.y: fixed bug #466586 part 1
14436
14437 2001-10-01  Johan Knol <johan.knol AT iduna.nl>
14438
14439         * SDCCicode.c: z80 has no generic pointers
14440         * removed -s from strip in all Makefile(.in)'s. It is not needed, but Solaris chocks on it.
14441
14442 2001-09-30  Michael Hope  <michaelh AT juju.net.nz>
14443
14444         * sim/ucsim/cmd.src/Makefile.in ($(PRJDIR)/libcmd.a): Changed all ar references to $(AR) for Solaris.
14445
14446 2001-09-29  Michael Hope  <michaelh AT juju.net.nz>
14447
14448         * Makefile (sdcc-libs): Added makebin to the list of standard targets.
14449
14450         * support/regression/ports/z80/spec.mk: Updated to use env for sdcc bin dir for automatic regression.
14451
14452 2001-09-25  Michael Hope  <michaelh AT juju.net.nz>
14453
14454         * configure.in: Fixed up so that ucsim is only configured once.
14455
14456         * support/cpp2/configure.in: Fixed to use the program transform to append the .exe for the win32 build.
14457
14458         * src/SDCCutil.c (getPrefixFromBinPath): Fixed up to work with win32 in all of its glory.
14459         (getPathDifference): As above.
14460
14461         * src/SDCCmain.c (preProcess): Changed to use a temporary file in a proper temp directory.  Fixed case where pre-processing only.
14462
14463         * src/SDCCglue.c (tempfilename): Added function for pre-processor.
14464
14465 2001-09-23  Michael Hope  <michaelh AT juju.net.nz>
14466         * .version: Updated to 2.3.1
14467
14468         * src/z80/main.c (z80_port =): Added macro based linker and assembler command line support.
14469         Added copyright header.
14470
14471         * src/SDCCmain.c: Shifted various functions into SDCCutil.c
14472         (assemble): Added support for macro based assembler commands.
14473         (linkEdit): Added support for macro based linker commands.
14474         (preProcess): Changed the pre-processor to use macros.
14475         (_setPaths): Added functionality to autodetect the include, lib and bin dir paths.
14476         (_discoverPaths): Added support for overriding the install directory using the SDCCDIR env variable.
14477
14478         * device/lib/z80/crt0.s: Added module name for debugging.
14479
14480 2001-09-20  Michael Hope  <michaelh AT juju.net.nz>
14481
14482         * src/SDCCmain.c (printVersionInfo): Added the build date to the version info.
14483
14484         * src/SDCChasht.c (hTabDeleteByKey): Fixed delete as it would delete the last item from a bucket even if it wasn't the real one.
14485
14486         * src/SDCCglue.c: Moved gc_strdup to SDCCutil.c
14487
14488         * src/Makefile.in: Added SDCCmacro and SDCCutil
14489
14490 2001-09-19  Michael Hope  <michaelh AT juju.net.nz>
14491
14492         * src/SDCCmain.c (printVersionInfo): Added the build date to the version info.
14493
14494 2001-09-16    <johan AT FRIJA>
14495
14496         * 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.
14497
14498 2001-09-15    <johan AT FRIJA>
14499
14500         * src/mcs51/ralloc.c: (findAssignToSym): fixed bug #460662 part 1
14501         * src/ds390/ralloc.c (findAssignToSym): fixed bug #460662 part 1
14502
14503 2001-09-11    <johan AT FRIJA>
14504
14505         * src/SDCCval.c (valDiv Mod Minus Plus Shift): keep litteral expressions as small as possible (bug #460010)
14506
14507 2001-09-10  Michael Hope  <michaelh AT juju.net.nz>
14508
14509         * support/regression/tests/bug-460444.c: Added test case.
14510
14511         * src/z80/gen.c (genOr): bug 460444: if (a ^ lit) was broken for &, |, and ^.
14512         (genCast): Added justification for all of the asserts.
14513
14514 2001-09-10  Bernhard Held <bernhard AT bernhardheld.de>
14515
14516         * support/regression/support.c: _xdata replaced by xdata
14517
14518         * support/regression/spec.mk: removed _generic
14519
14520 2001-09-09  Michael Hope  <michaelh AT juju.net.nz>
14521
14522         * src/pic/ralloc.c (debugLogRegType): Removed some old types to get it to compile.
14523
14524         * src/z80/gen.c (shiftR2Left2Result): Improved the case when v = v >> n for small values of n to use less code space and time.
14525         (genrshTwo): Fixed v = v >> n where v is a negative int and n is > 8: bug 460010.
14526
14527         * src/z80/peeph.def: Added a rule to optimise shift then compare.
14528
14529         * support/regression/tests/bug-460000.c (testShiftByParam): Added test case.
14530
14531         * support/regression/tests/bug-460010.c: Added test case.
14532
14533         * support/regression/Makefile (test-host): Removed a silly 'clean' target when testing against gcc.
14534
14535 2001-09-09  Bernhard Held <bernhard AT bernhardheld.de>
14536
14537         * support/regression/Makefile: inter-port-clean adjusted for mcs51
14538
14539         * support/regression/testfwk.c: removed workaround for bug #436344
14540
14541         * support/regression/tests/bp.c: use less memory with mcs51
14542
14543         * support/regression/tests/bug-441448.c: use less memory
14544
14545         * support/regression/tests/ports/mcs51/spec.mk: cleanup, use --stack-after-data
14546
14547         * support/regression/collate-results.py: typo
14548
14549 2001-09-08  Michael Hope  <michaelh AT juju.net.nz>
14550
14551         * support/regression/tests/fetchoverlap.c: Added new test case.
14552
14553         * support/regression/tests/bp.c: Added new test case.
14554
14555         * support/regression/tests/bug-448984.c: Added new test case.
14556
14557         * support/regression/tests/pow2shifts.c: Added new test case.
14558
14559         * src/z80/gen.c: Turned off the noise it normally generates for the release.
14560         (genlshTwo): Fixed right shift for count > 8.
14561
14562         * src/z80/ralloc.c: Disabled most of the ACC packing rules as they weren't getting hit and weren't at all safe.
14563
14564 2001-09-08    <johan AT FRIJA>
14565
14566         * src/SDCCicode.c (geniCodeCall): a CPOINTER can be used as a function
14567
14568 2001-09-07    <johan AT FRIJA>
14569
14570         * src/SDCCicode.c (newiCodeCondition): fixed bug #456235 (1.77)
14571
14572         * src/SDCCglue.c (emitRegularMap): only delete a symbol when it is a symbol
14573
14574 2001-09-06    <johan AT FRIJA>
14575
14576         * src/SDCC.y: this could be a fix for bug #458744 (1.37)
14577         * bernhard noted me at this: "() equals to (void)" (1.38)
14578
14579 2001-09-05    <johan AT FRIJA>
14580
14581         * src/SDCCglue.c (emitRegularMap): a fix for bug #458099/2
14582
14583 2001-09-04    <johan AT FRIJA>
14584
14585         * src/SDCCsymt.c (checkSClass): a fix for bug #458099/1
14586
14587
14588 2001-09-04  Paul Stoffregen  <paul AT pjrc.com>
14589
14590         * pragma noinduction broke memcpy on mcs51 large model.  Moved it inside z80 optimization
14591
14592 2001-09-03  Michael Hope  <michaelh AT juju.net.nz>
14593
14594         * link/z80/aslink.h: Fixed path for PATH_MAX
14595
14596 2001-09-02  Michael Hope  <michaelh AT juju.net.nz>
14597
14598         * src/z80/gen.c (fetchLitPair): Changed so that it properly caches direct space references.
14599
14600         * support/regression/tests/addsub.c: Added cases to cover all the +, - combinations.
14601
14602         * support/regression/tests/uminus.c: Added a test for the unary minus operator.
14603
14604         * 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.
14605
14606 2001-09-01  Michael Hope  <michaelh AT juju.net.nz>
14607
14608         * src/z80/gen.c: Fixed up generator to pass the regresion tests, specifically fixing loads for longs, genCmp, and turned on the map file.
14609         (genCmp): Fixed up genCmp for the GB with longs.
14610
14611         * device/lib/gbz80/Makefile: Fixed up all the libraries to pass the regression tests.
14612
14613         * support/regression/ports/host/spec.mk: Updated to compile with the new type specifiers.
14614
14615         * device/lib/Makefile.in (Z80SOURCES): Removed old _mululong, _mulslong, and unneeded _mulint.
14616
14617         * device/lib/_mullong.c (_mulslong): Changed to actually return a value :)
14618
14619 2001-08-30  Paul Stoffregen  <paul AT pjrc.com>
14620
14621         * added peepholes 223 to 231 to mcs51 port.  These improve code when using large model.
14622
14623 2001-08-30  Michael Hope  <michaelh AT juju.net.nz>
14624
14625         * 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.
14626
14627         * src/z80/gen.c (genPlus): Changed bad long add for gb to a fall through.
14628
14629 2001-08-29  Michael Hope  <michaelh AT juju.net.nz>
14630
14631         * link/z80/aslink.h: Fixed long file name support.  Is now based off PATH_MAX instead of a constant.
14632
14633         * src/z80/gen.c: Fixed add and sub for the case where left or right are in static space.
14634
14635 2001-08-30 Bernhard Held   <bernhard AT bernhardheld.de>
14636
14637   * sim/ucsim/configure:    little improvement of Cygwin-detection
14638   * sim/ucsim/configure.in: little improvement of Cygwin-detection
14639   * sim/ucsim/cmd.src/newcmdcl.h: include <sys/types.h> to define fd_set automated build
14640   * support/regression/tests/bug-221100.c: small changes for mcs51
14641   * support/regression/tests/bug-221168.c: small changes for mcs51
14642   * support/regression/tests/bug-227710.c: small changes for mcs51
14643   * support/regression/tests/staticinit.c: small changes for mcs51
14644   * as/mcs51/aslink.h: accept everything as symbol name in rel-files, bug fix ID 452601
14645   * as/mcs51/lklex.c:  accept everything as symbol name in rel-files, bug fix ID 452601
14646   * as/mcs51/lksym.c:  accept everything as symbol name in rel-files, bug fix ID 452601
14647
14648 $Revision$