* src/pic/pcoderegs.c (pCodeOptime2pCodes): fixed bogus optimization,
[fw/sdcc] / ChangeLog
1 2007-05-21 Raphael Neider <rneider AT web.de>
2
3         * src/pic/pcoderegs.c (pCodeOptime2pCodes): fixed bogus optimization,
4           closes #1722392
5         * src/regression/gpsim_assert.h,
6         * src/regression/Makefile,
7         * src/regression/pcodeopt.c: regression test for the above fix
8
9 2007-05-08 Maarten Brock <sourceforge.brock AT dse.nl>
10
11         * src/SDCCpeeph.c (labelIsUncondJump): ignore identical labels for
12           jumps to self, fixed bug 1717281
13
14 2007-05-10 Borut Razem <borut.razem AT siol.net>
15
16         * support/scripts/gen_known_bugs.pl: cosmetic fix
17         * doc/knownbugs.html: generated by gen_known_bugs.pl
18
19 2007-05-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
20
21         * src/SDCCast.c (createFunction): also generate non-inlined version of
22           function for functions declared as "static inline"
23         * src/SDCCast.c (fixupInline, inlineAddDecl): reset symbol state so
24           function can be inlined after non-inlined version generated.
25
26 2007-05-10 Borut Razem <borut.razem AT siol.net>
27
28         * support/scripts/gen_known_bugs.pl: added script
29           which generates knownbugs.html
30
31 2007-05-09 Maarten Brock <sourceforge.brock AT dse.nl>
32
33         * doc/knownbugs.html: updated for release 2.7.0
34
35 2007-05-09 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
36
37         * device/include/mcs51/uPSD33xx.h: Added patch by Jan Waclawek.
38
39 2007-05-08 Maarten Brock <sourceforge.brock AT dse.nl>
40
41         * src/ds390/gen.c (emitcode): don't change properties of previous lines,
42           (throughout): updated generating comments
43         * src/mcs51/gen.c (emitcode): don't change properties of previous lines,
44           (throughout): updated generating comments
45         * src/SDCCpeeph.c (peepHole): continue searching at the first replaced
46           rule instead of at the second, or it might skip lines when removing the
47           complete match
48         * support/regression/tests/bug1714204.c: changed test to foo
49
50 2007-05-08 Borut Razem <borut.razem AT siol.net>
51
52         * doc/sdccman.lyx: changed sdcc version to 2.7.0,
53           thanks to SDCC Distributed Compile Farm members,
54           added Z80 and GBZ80 command line options
55         * .version, doc/INSTALL.txt, sdcc.spec: changed sdcc version to 2.7.0
56
57 2007-05-08 Maarten Brock <sourceforge.brock AT dse.nl>
58
59         * device/lib/mcs51/crtxinit.asm: added disabled version for dual dptr
60         * device/include/mcs51/uPSD33xx.h: added sfr DPS as alias for DPTC
61         * support/regression/tests/longlit.c: modified to be tested at all and
62           to pass the actual test
63
64 2007-05-07 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
65
66         * device/include/mcs51/uPSD33xx.h: Added.
67
68 2007-05-07 Maarten Brock <sourceforge.brock AT dse.nl>
69
70         * device/lib/_gptrput.c,
71         * device/lib/_gptrget.c: removed old code,
72          (_gptrgetWord),
73         * src/ds390/gen.c (genGenPointerGet): fixed bug 1714204
74         * support/regression/tests/bug1714204.c: new, added
75
76 2007-05-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
77
78         * support/regression/tests/regtrack.c: test was never executed
79           because of the regression test being picky about white spaces.
80         * device/lib/mcs51/crtclear.asm: added comment
81
82 2007-05-06 Raphael Neider <rneider AT web.de>
83
84         * device/lib/pic/Makefile.rules,
85         * device/lib/pic16/Makefile.rules: make sure *.ignore file exists,
86           made "&> /dev/null" redirection sh-safe ("> /dev/null 2>&1")
87
88 2007-05-06 Raphael Neider <rneider AT web.de>
89
90         * src/pic16/device.h,
91         * src/pic16/main.h,
92         * src/pic16/main.c (pic16_optionsTable,_pic16_parseOptions,
93           _pic16_setDefaultOptions): removed/reordered command-line args
94         * doc/sdccman.lyx: updated PIC14 and PIC16 documentation (supported
95           devices, regrouped command line args, environment variables),
96           clarified sone points, added sections on how to add devices to the
97           PIC14/PIC16 ports
98
99 2007-05-06 Maarten Brock <sourceforge.brock AT dse.nl>
100
101         * src/z80/peeph.def: fixed bug in rule 2
102
103 2007-05-05 Maarten Brock <sourceforge.brock AT dse.nl>
104
105         * src/port.h: added TARGET_MCS51_LIKE
106         * src/SDCCpeeph.c (labelIsUncondJump): new, added, other targets could
107           take advantage of it too
108         * src/z80/gen.c (genIpush): push b, d or h directly instead of using a,
109           (shiftR2Left2Result): Optimized: don't check shifting by 0
110         * src/z80/peeph-z80.def,
111         * src/z80/peeph.def: whole set of new rules by Philipp Krause with some
112           modifications, see patch 1700823
113         * src/mcs51/peep.c (): fixed bug 1712928
114         * support/regression/tests/bug1712928.c: new, added
115
116 2007-05-05 Borut Razem <borut.razem AT siol.net>
117
118         * device/lib/pic16/Makefile.common.in,
119           device/lib/pic/Makefile.common.in, sim/ucsim/cmd.src/Makefile.in:
120           removed bash dependencies
121
122 2007-05-01 Borut Razem <borut.razem AT siol.net>
123
124         * src/SDCCicode.c:
125           fixed bug #1710507: --i-code-in-asm makes compile fail
126           all iCode comments are now one liners
127         * src/mcs51/gen.c: fixed memory leak
128
129 2007-05-01 Raphael Neider <rneider AT web.de>
130
131         * device/lib/pic/libdev/*.c
132         * device/include/pic/*.h: regenerated all device libs from updated
133           .inc files
134         * support/scripts/inc2h.pl: documented usage, now uses strict to
135           catch more bugs
136
137 2007-04-30 Borut Razem <borut.razem AT siol.net>
138
139         * doc/sdccman.lyx:
140           fixed bug #1669175: Problem with space in output paths
141           documented how to use paths with spaces for Windows users
142
143 2007-04-29 Borut Razem <borut.razem AT siol.net>
144
145         * Fixed svn:eol-style and svn:keywords properties
146         * src/SDCCval.c: fixed bug
147           #1592871: Segfault with "large" const arrays of characters
148           replaced recursion with iteration
149         * Removed svn:executable property from non-executable files
150
151 2007-04-29 Maarten Brock <sourceforge.brock AT dse.nl>
152
153         * src/mcs51/gen.c (genRet): fixed bug 1707003
154
155 2007-04-27 Raphael Neider <rneider AT web.de>
156
157         * src/pic16/pcode.c (pBlockRemoveUnusedLabels,pic16_pBlockAddInval,
158           createReachingDefinitions,assignValnums,pic16_destructDF,
159           pic16_createDF,pic16_vcg_dumpedges,pic16_vcg_dump_default):
160           prevent NULL pointer dereferences
161         * device/lib/pic/libdev/pic16f886.c,
162         * device/lib/pic/libdev/pic16f887.c: svn mv'ed to disabled_* to
163           prevent building them, gputils do not really support them yet
164
165 2007-04-27 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
166
167         * device/lib/_ltoa.c: 36 bytes less __data mem. This really
168           helps printf_small. 32 bytes more __idata mem.
169
170 2007-04-27 Raphael Neider <rneider AT web.de>
171
172         * src/pic/pcode.c (addpCode2pBlock,LinkFlow,pBlockRemoveUnusedLabels):
173           return early when pb or pb->pcHead is NULL (patch #1708427)
174         * src/regression/empty.c,
175         * src/regression/Makefile: added test with empty functions
176         * support/Util/SDCCerr.c: fixed typo in E_INIT_STRUCT message
177
178 2007-04-27 Borut Razem <borut.razem AT siol.net>
179
180         * src/SDCCast.c: fixed feature request
181           #1547512: Redundant strings linked when using sizeof("abc")
182
183 2007-04-23 Borut Razem <borut.razem AT siol.net>
184
185         * doc/sdccman.lyx, src/SDCCmain.c:
186           peep-hole comments are generated only if --fverbose-asm option is
187           specified and --no-peep-comments is not, as proposed by Frieder.
188         * support/regression/Makefile.in: compile regression tests with
189           --fverbose-asm option so one can "grep" whether a new (or an old)
190           peephole is (still) applied; requested by Frieder.
191
192 2007-04-23 Kevin Buettner <kevin AT buettner.to>
193
194         * device/include/pic/pic16f886.h,
195         * device/include/pic/pic16f887.h,
196         * device/lib/pic/libdev/pic16f886.c,
197         * device/lib/pic/libdev/pic16f887.c,
198         * device/include/pic/pic14devices.txt,
199         * device/lib/pic/libdev/devices.txt: Add 16f886 and 16f887.
200
201 2007-04-23 Kevin Buettner <kevin AT buettner.to>
202
203         * device/lib/pic/libsdcc/idata.c: PAGESEL _main before going there,
204           fixes #1704666
205
206 2007-04-23 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
207
208         * device/lib/_memset.c: assembler version for mcs51
209
210 2007-04-22 Borut Razem <borut.razem AT siol.net>
211
212         * support/scripts/listerr.c: program to create the list of errors and
213           warnings list from - added
214         * doc/sdccman.lyx: removed the note
215           "For list of warnings and corresponding codes, see err_warn.txt"
216         * src/SDCCsymt.c: fixed bug #1699804:
217           Bug with some uses of sizeof(static local array) (MCS51)
218         * support/regression/tests/bug-1699804.c: added
219
220 2007-04-20 Maarten Brock <sourceforge.brock AT dse.nl>
221
222         * as/mcs51/asmain.c (search_path_append, search_path_fopen): new, added,
223           (main): added option -i,
224           (asmbl, case S_INCL): use search_path_fopen,
225           mostly from patch 1579668 by Peter Miller, thanks
226         * src/z80/main.c: fixed typo --callee-saves-bc
227         * device/include/mcs51/compiler.h: added sfrword for Tasking
228
229 2007-04-20 Borut Razem <borut.razem AT siol.net>
230
231         * src/z80/main.c: replaced reserved keyword asm with asmblr
232
233 2007-04-19 Borut Razem <borut.razem AT siol.net>
234
235         * src/port.h: use const pointers to strings
236         * src/SDCCargs.h: declared getStringArg() and getIntArg()
237         * src/pic16/main.c: include SDCCargs.h
238         * src/SDCCglobl.h: code_seg and const_seg are not pointers to
239           const char, since the strings are dynamically allocated
240         * src/SDCCmain.c: options.code_seg and options.const_seg are
241           dynamically allocated; check port specific command line options
242           before the general ones
243         * src/z80/main.c: fixed bug #1631895: codeseg/constseg #pragma fail
244
245 2007-04-18 Maarten Brock <sourceforge.brock AT dse.nl>
246
247         * device/include/ds400rom.h,
248         * device/lib/ds390/lcd390.c,
249         * device/lib/ds390/memcpyx.c,
250         * device/lib/ds390/rtc390.c,
251         * device/lib/ds400/ds400rom.c,
252         * device/lib/ds400/memcpyx.c,
253         * device/lib/hc08/_ret.c: more replacements of keywords with their
254           double underscore equivalents
255         * device/lib/ds390/Makefile.in,
256         * device/lib/ds400/Makefile.in,
257         * device/lib/gbz80/Makefile.in,
258         * device/lib/hc08/Makefile.in,
259         * device/lib/mcs51/Makefile.in,
260         * device/lib/z80/Makefile.in: added --std-c89 to CFLAGS
261
262 2007-04-17 Borut Razem <borut.razem AT siol.net>
263
264         * doc/sdccman.lyx, src/SDCCmain.c, src/SDCCglobal.h, src/ds390/gen.c,
265           src/hc08/gen.c, src/mcs51/gen.c, src/mcs51/rtrack.c:
266           fixed #1493816: option --no-gen-comments: --no-gen-comments renamed
267           to --fverbose-asm, to be gcc'ish
268
269 2007-04-17 Maarten Brock <sourceforge.brock AT dse.nl>
270
271         * src/mcs51/gen.c (aopOp): set size to 1 for ruonly, fixes bug 1699455
272
273 2007-04-17 Borut Razem <borut.razem AT siol.net>
274
275         * doc/sdccman.lyx: fixed #1701874: Mac OSX references in SDCC manual
276         * device/lib/ds400/tinibios.c, device/lib/hc08/_divuint.c,
277           device/lib/hc08/_divulong.c: replaced _asm and _endasm keywords
278           with their double underscore equivalent
279
280 2007-04-14 Borut Razem <borut.razem AT siol.net>
281
282         * doc/sdccman.lyx: some additional "freeware" replaced with "free open
283           source"
284
285 2007-04-13 Borut Razem <borut.razem AT siol.net>
286
287         * doc/sdccman.lyx: -pedantic-parse-number is not in conformance with
288           C99 standard
289         * device/examples/serialcomm/windows/serial.[ch],
290           device/examples/serialcomm/windows/test_serialcomm.cpp:
291           updated by Bela Torok
292         * device/examples/serialcomm/windows/serialcomm.dsw,
293           device/examples/serialcomm/windows/serialcomm.dsp: added
294
295 2007-04-13 Jan Waclawek <wek AT efton.sk>
296
297         * doc/sdccman.lyx: additions and changes at various places
298           (submitted as #1697136).
299           (svn commit by Frieder Ferlemann <Frieder.Ferlemann AT web.de>)
300
301 2007-04-10 Borut Razem <borut.razem AT siol.net>
302
303         * doc/cdbfileformat.lyx, doc/sdccman.lyx, doc/test_suite_spec.lyx:
304           LyX file format changed to 245
305         * doc/sdccman.lyx, doc/README.txt, sdc/SDCC.lex, src/SDCCglue.c:
306           "FreeWare" replaced with "free open source"
307
308 2007-04-10 Maarten Brock <sourceforge.brock AT dse.nl>
309
310         * device/include/mcs51/C8051F120.h: added some defines for bits in RSTSRC
311
312 2007-04-08 Maarten Brock <sourceforge.brock AT dse.nl>
313
314         * device/include/pic16/pic18fregs.h,
315         * device/lib/_bp.c,
316         * device/lib/_decdptr.c,
317         * device/lib/_divsint.c,
318         * device/lib/_divslong.c,
319         * device/lib/_divuint.c,
320         * device/lib/_divulong.c,
321         * device/lib/_fs2schar.c,
322         * device/lib/_fs2sint.c,
323         * device/lib/_fs2slong.c,
324         * device/lib/_fs2uchar.c,
325         * device/lib/_fs2uint.c,
326         * device/lib/_fs2ulong.c,
327         * device/lib/_fsadd.c,
328         * device/lib/_fscmp.c,
329         * device/lib/_fsdiv.c,
330         * device/lib/_fseq.c,
331         * device/lib/_fsget1arg.c,
332         * device/lib/_fsget2args.c,
333         * device/lib/_fsgt.c,
334         * device/lib/_fslt.c,
335         * device/lib/_fsmul.c,
336         * device/lib/_fsneq.c,
337         * device/lib/_fsnormalize.c,
338         * device/lib/_fsreturnval.c,
339         * device/lib/_fsrshift.c,
340         * device/lib/_fssub.c,
341         * device/lib/_fsswapargs.c,
342         * device/lib/_gptrget.c,
343         * device/lib/_gptrgetc.c,
344         * device/lib/_gptrput.c,
345         * device/lib/_logexpf.c,
346         * device/lib/_modsint.c,
347         * device/lib/_modslong.c,
348         * device/lib/_moduint.c,
349         * device/lib/_modulong.c,
350         * device/lib/_mulint.c,
351         * device/lib/_mullong.c,
352         * device/lib/_schar2fs.c,
353         * device/lib/_ser.c,
354         * device/lib/_setjmp.c,
355         * device/lib/_sint2fs.c,
356         * device/lib/_slong2fs.c,
357         * device/lib/_spx.c,
358         * device/lib/_uchar2fs.c,
359         * device/lib/_uint2fs.c,
360         * device/lib/_ulong2fs.c,
361         * device/lib/asincosf.c,
362         * device/lib/atanf.c,
363         * device/lib/calloc.c,
364         * device/lib/ds390/tinibios.c,
365         * device/lib/ds400/tinibios.c,
366         * device/lib/expf.c,
367         * device/lib/free.c,
368         * device/lib/hc08/_mulint.c,
369         * device/lib/logf.c,
370         * device/lib/malloc.c,
371         * device/lib/printf_fast.c,
372         * device/lib/printf_tiny.c,
373         * device/lib/printfl.c,
374         * device/lib/realloc.c,
375         * device/lib/ser_ir.c,
376         * device/lib/serial.c,
377         * support/regression/tests/libmullong.c: replaced all special keywords
378           with their double underscore equivalent
379         * support/regression/ports/mcs51-xstack-auto/spec.mk,
380         * device/lib/Makefile.in: compile libs with --std-c99 instead of
381           --std-sdcc99
382         * src/mcs51/gen.c (outBitC): don't store if result is return-use-only,
383           (genRet): if the bit-symbol is ruonly it already is in the carry
384         * src/mcs51/ralloc.c (regTypeNum): make regType REG_CND for ruonly bit
385         * src/SDCCast.c (createFunction): applied patch 887171 by Stas Sergeev
386         * src/SDCCicode.c (ast2iCode): '!', GETHBIT, GETABIT: only set operand
387           type UCHAR if dest is not bit
388
389 2007-04-03 Maarten Brock <sourceforge.brock AT dse.nl>
390
391         * device/include/math.h,
392         * device/lib/cotf.c,
393         * device/lib/expf.c,
394         * device/lib/sincoshf.c: changed XMAX to C99 HUGE_VALF
395
396 2007-04-01 Borut Razem <borut.razem AT siol.net>
397
398         * src/SDCC.lex, src/SDCCmain.c, support/cpp2/sdcpp.c:
399           fixed bug #1692042: input buffer overflow...scanner uses REJECT
400         * support/cpp2/sdcpp.c: fixed recursion bug - internal_error() called
401           gcc_unreachable() called internal_error()...
402
403 2007-03-30 Raphael Neider <rneider AT web.de>
404
405         * src/pic/ralloc.c (isData): suppress garbage debug output
406
407 2007-03-28 Borut Razem <borut.razem AT siol.net>
408
409         * doc/sdccman.lyx:
410           "Nightly Snapshots" replaced with "Snapshot Builds", since the SDCC
411           is developed, built and used worldwide, and the word "night" doesn't
412           make any sense.
413
414 2007-03-28 Maarten Brock <sourceforge.brock AT dse.nl>
415
416         * device/include/mcs51/C8051F360.h: new, added
417         * device/include/mcs51/C8051F520.h: fixed buggy sbit addresses SPI0CN
418
419 2007-03-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
420
421         * src/SDCC.y (declaration_specifiers, function_specifier),
422         * support/Util/SDCCerr.c,
423         * support/Util/SDCCerr.h,
424         * src/SDCCsymt.h,
425         * src/SDCCsymt.c (mergeSpec, checkFunction): Parse and validate the
426           inline keyword
427         * src/SDCCmem.c (deallocParms),
428         * src/SDCCast.c: support for function inlining, not quite complete
429         * src/SDCCsymt.c (printTypeChain, printTypeChainRaw): display
430           'restrict' qualifier
431
432 2007-03-24 Maarten Brock <sourceforge.brock AT dse.nl>
433
434         * src/mcs51/gen.c (saveRegisters, unsaveRegisters): free some bitVects,
435           (saveRBank, unsaveRBank): don't save bits,
436           (genFunction, genEndFunction): save bits exactly once, fix bug 1535242
437         * support/regression/tests/bug1535242.c: new, added
438         * device/include/assert.h: applied patch 1686533 to fix bug 1686528,
439           thanks Alexey Shamrin <shamrin AT gmail.com>,
440           made assert.h header ANSI compliant (added a check for NDEBUG macro,
441           removed header guard)
442         * .version,
443         * sdcc.spec: bumped version to 2.6.5
444         * src/SDCCmain.c(parseCmdLine): fixed bug 1677144
445
446 2007-03-22 Borut Razem <borut.razem AT siol.net>
447
448         * debugger/mcs51/cmd.c, debugger/mcs51/sdcdb.c:
449           fixed bug #1653671: sdcdb integration into ddd is broken
450
451 2007-03-22 Raphael Neider <rneider AT web.de>
452
453         * src/pic/gen.c (popGetExternal): augmented to also create references
454           to external variables (not only labels),
455           (genCall): comment on plan to reduce PAGESEL overhead,
456           (genFunction, genEndFunction): also save/restore FSR around interrupt
457           handling code, removed lots of unused code
458           (genDivOneByte): release acquired temp register
459         * src/pic/glue.c (pic14createInterruptVect): adapt to new signature
460           of popGetExternal
461         * device/lib/pic/libsdcc/shadowregs.c: NEW, provide storage location
462           for registers that need to be saved during interrupts (FSR, STATUS,
463           PCLATH; W needs special handling), currently only FSR is used
464
465 2007-03-22 Raphael Neider <rneider AT web.de>
466
467         * device/include/pic/pic14devices.txt: 16f688 has only one config word
468
469 2007-03-19 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
470
471         * /as/link/mcs51/aslink.dsp: Object extension for mcs51 is 'rel' not 'o'.
472
473 2007-03-17 Maarten Brock <sourceforge.brock AT dse.nl>
474
475         * src/mcs51/peeph.def (263.x): fixed bug for volatile variables
476
477 2007-03-14 Maarten Brock <sourceforge.brock AT dse.nl>
478
479         * as/link/aslink.h: added LKOBJEXT
480         * as/link/hc08/link_hc08.dsp,
481         * as/link/hc08/Makefile.bcc,
482         * as/link/hc08/Makefile.in,
483         * as/link/mcs51/aslink.dsp,
484         * as/link/mcs51/Makefile.bcc,
485         * as/link/mcs51/Makefile.in: moved lkamof51.c and lkdata.c
486         * as/link/hc08/lkaomf51.c,      as/link/mcs51/lkaomf51.c,
487         * as/link/lkaomf51.c: merged and moved
488         * as/link/hc08/lkdata.c,        as/link/mcs51/lkdata.c,
489         * as/link/z80/lkdata.c,
490         * as/link/lkdata.c: merged and moved
491         * as/link/hc08/lkmain.c,
492         * as/link/mcs51/lkmain.c: cosmetic changes
493         * as/link/z80/lkeval.c,         as/link/lkeval.c: merged
494         * as/link/lklex.c: use LKOBJEXT
495         * as/link/z80/lklist.c,         as/link/lklist.c: merged,
496           ANSI-fied functions, removed bubble-sorts
497         * as/link/z80/lksym.c           as/link/lksym.c: merged,
498           ANSI-fied functions
499         * as/link/z80/linkgbz80.dsp,
500         * as/link/z80/linkz80.dsp,
501         * as/link/z80/Makefile.in: added lkaomf51.c and lknoice.c,
502           moved lkdata.c, lkeval.c, lkhead.c, lklex.x, lklist.c, lksym.c
503         * as/link/z80/lkhead.c,
504         * as/link/z80/lklex.c: deleted
505         * as/link/z80/lklibr.c: moved LKOBJEXT to aslink.h
506         * as/link/z80/lkmain.c: added copyfile()
507
508 2007-03-13 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
509
510         * device/include/mcs51/P89LPC925.h: Added missing P1_6 and P1_7.
511
512 2007-03-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
513
514         * device/lib/_strlen.c: assembler version for mcs51
515
516 2007-03-13 Raphael Neider <rneider AT web.de>
517
518         * device/include/pic16/pic18f2221.h,
519         * device/include/pic16/pic18f2321.h,
520         * device/include/pic16/pic18f2331.h,
521         * device/include/pic16/pic18f4221.h,
522         * device/include/pic16/pic18f4321.h,
523         * device/include/pic16/pic18f4331.h: fixed config byte location names
524         * support/scripts/inc2h-pic16.pl: removed debug output, emit
525           consistently named config byte locations
526
527 2007-03-13 Borut Razem <borut.razem AT siol.net>
528
529         * src/Makefile.in, sim/ucsim/avr.src/Makefile.in,
530           sim/ucsim/hc08.src/Makefile.in, sim/ucsim/s51.src/Makefile.in,
531           sim/ucsim/xa.src/Makefile.in, sim/ucsim/z80.src/Makefile.in,
532           as/link/z80/Makefile.in, as/z80/Makefile.in:
533           introduced LDFLAGS
534
535 2007-03-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
536
537         * device/lib/printfl.c: 13 bytes less __data mem (12 more __idata)
538         * device/lib/printf_large.c: pointer was converted to generic
539         pointer for mcs51 models other than model-small (Maarten noticed)
540
541 2007-03-10 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
542
543         * device/include/mcs51/ADuC84x.h: Added.
544
545 2007-03-10 Borut Razem <borut.razem AT siol.net>
546
547         * src/SDCC.lex, src/SDCCutil.[ch], src/SDCCval:
548           fixed RFE #1624219: double backslashes in filenames;
549           functions hexEscape(), octalEscape() and copyStr() moved from
550           SDCCval.c to SDCCutil.c and made them glovbally available
551
552 2007-03-09 Borut Razem <borut.razem AT siol.net>
553
554         * src/SDCC.lex, src/SDCCast.c. src/SDCCglobl.c, src/SDCCsymt.c,
555           src/SDCCval.c: fixed bugs #1676768: Wrong line number reported and
556           1673361: Missaligned comments in output files
557
558 2007-03-09 Raphael Neider <rneider AT web.de>
559
560         * device/include/pic/pic14devices.txt: fixed confsiz of 16f91[3467]
561
562 2007-03-09 Raphael Neider <rneider AT web.de>
563
564         * src/pic/gen.c,
565         * src/pic/glue.c,
566         * src/pic/ralloc.c: suppress undesired debug output
567         * src/SDCCmain.c (linkEdit): initialize c to quieten compiler
568
569 2007-03-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
570
571         * device/lib/printf_large.c: 6 bytes less __data mem (6 more __idata)
572
573 2007-03-07 Borut Razem <borut.razem AT siol.net>
574
575         * device/lib/pic16/libdev/pic18f[24][34]31.c:
576           search include files in the current directory
577
578 2007-03-04 Maarten Brock <sourceforge.brock AT dse.nl>
579
580         * src/SDCCglue.c (emitMaps, glue),
581         * src/SDCCmem.c (initMem, allocDefault): added x_abs for initialized
582           absolute xdata
583         * support/regression/tests/absolute.c: added xdata test
584
585 2007-03-03 Maarten Brock <sourceforge.brock AT dse.nl>
586
587         * src/SDCCmain.c (parseCmdLine): only set options.xstack_loc for mcs51,
588           added condition to macro, fixes bug 1666080
589
590 2007-03-02 Raphael Neider <rneider AT web.de>
591
592         * src/pic/gen.c (genGenPointerSet): removed bogus assertion
593
594 2007-02-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
595
596         * device/lib/mcs51/crtxclear.asm: pdata segment of 256 byte would not
597         be cleared. Unconditionally set __XPAGE
598         * src/hc08/gen.c: --no-gen-comments (RFE #1493816) for hc08
599
600 2007-02-27 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
601
602         * src/SDCCglobl.h,
603         * src/SDCCmain.c,
604         * src/mcs51/gen.c,
605         * src/mcs51/rtrack.c,
606         * src/ds390/gen.c,
607         * doc/sdccman.lyx: added --no-gen-comments
608         * src/mcs51/peeph.def: added 192.b, disabled 185
609
610 2007-02-25 Raphael Neider <rneider AT web.de>
611
612         * src/pic16/gen.c (genCast): fixed typo
613         * device/lib/pic16/Makefile.subdir: only install existing files
614         * device/lib/pic16/libdev/Makefile.in: build serially, avoid races
615
616 2007-02-25 Maarten Brock <sourceforge.brock AT dse.nl>
617
618         * device/lib/mcs51/crtcall.asm: new, added for indirect calls
619         * device/lib/mcs51/crtclear.asm,
620         * device/lib/mcs51/crtxclear.asm: renumbered labels
621         * device/lib/mcs51/Makefile.in: added crtcall.asm
622         * doc/sdccman.lyx: documented mcs51 crt* library startup code
623         * src/mcs51/gen.c (movc): removed,
624           (aopGet, genPlusBits): clear a after loading the carry (possibly from
625             acc.x or psw.x),
626           (toCarry, genSend, genRet): added function toCarry,
627           (genPcall): use "lcall @a+dptr" for functions w/o parameters,
628           (assignBit, genAssign, genCast): added function assignBit
629         * src/mcs51/Makefile.bcc: added rtrack.c
630         * src/mcs51/ralloc.h: made valueKnown a bitfield
631         * src/mcs51/rtrack.c (getReg, rtrackUpdate): added getReg,
632           fixed "jbc acc" and "cpl acc" bug, enhanced "cjne", "jnz" and "djnz",
633           disabled InvalidateAllRx for lcall __gptrput, added "xch a,rn"
634         * src/pic/pcode.c (FixRegisterBanking): fixed warning used uninitialized
635         * src/z80/gen.c: added AOP_IS_PAIRPTR,
636           (_pop): only pop valid pairs, see gencjneshort,
637           (gencjneshort): return pair that still needs to be popped, restructured,
638           (gencjne, genCmpEq): call _pop
639
640 2007-02-23 Raphael Neider <rneider AT web.de>
641
642         * device/include/pic/pic14devices.txt: 16f684 has only one config word
643
644 2007-02-22 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
645
646         * device/include/mcs51/P89LPC925.h: Added.
647
648 2007-02-18 Raphael Neider <rneider AT web.de>
649
650         * src/pic/glue.c (emitInitVal): fixed #1659894 (SIGSEGV on arrays)
651
652 2007-02-17 Borut Razem <borut.razem AT siol.net>
653
654         * support/cpp2/directives.c, support/cpp2/version.c:
655           synchronized with GCC CPP 4.1.2
656
657 2007-02-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
658
659         * src/mcs51/rtrack.h,
660         * src/mcs51/rtrack.c: added register tracking for the mcs51 port,
661           by checking the strings passed by emitcode() to the assembler.
662           Feel free to change. This in part addresses RFE #482179.
663           Set environment variable SDCC_RTRACK to enable.
664         * src/mcs51/gen.c: inserted hooks
665         * src/mcs51/ralloc.h: added two members to struct regs
666         * support/regression/tests/regtrack.c: added
667
668 2007-02-14 Borut Razem <borut.razem AT siol.net>
669
670         * src/SDCC.y: fixed bug #1291133: duplicate members across enum(s)
671         * Makefile.in: applied patch from Makefile related part of
672           #1469393: Compiler does not initialize static data
673
674 2007-02-12 Maarten Brock <sourceforge.brock AT dse.nl>
675
676         * src/SDCCicode.c (geniCodeAssign): return (itemp) right instead of left
677           for better fix of bug 1273984, compiles pic16 rand.c
678
679 2007-02-12 Borut Razem <borut.razem AT siol.net>
680
681         * src/pic16/main.c: fixed pic16 standard library directory bug
682
683 2007-02-11 Maarten Brock <sourceforge.brock AT dse.nl>
684
685         * src/hc08/gen.c (genSwap): fix swap regression test
686
687 2007-02-10 Borut Razem <borut.razem AT siol.net>
688
689         * src/SDCCsymt.c: fixed bug #1159134: invalid duplicate declarations
690           with same scope
691         * support/regression/tests/bug-1654060.c: added regression test for
692           #1654060
693
694 2007-02-09 Bernhard Held <bernhard AT bernhardheld.de>
695
696         * src/mcs51/gen.c (genRet): fixed RFE 1652561: added code for bit to
697         bit moves in return statement
698
699 2007-02-09 Borut Razem <borut.razem AT siol.net>
700
701         * src/SDCC.y: fixed bug #1654060 typedef within function causes
702           syntax error
703
704 2007-02-07 Maarten Brock <sourceforge.brock AT dse.nl>
705
706         * src/mcs51/gen.c (aopPut): use direct name for pushing registers
707         * src/SDCCmain.c (parseCmdLine): dbuf_s path must be initialised
708
709 2007-02-07 Raphael Neider <rneider AT web.de>
710
711         * src/pic16/devices.inc,
712         * device/include/pic16/pic18fregs.h,
713         * device/include/pic16/pic18f[24][34]31.h,
714         * device/lib/pic16/libdev/pic18f[24][34]31.c,
715         * device/lib/pic16/pics.all: added 18f[24][34]31 family
716         * device/lib/pic16/libio/i2c.ignore: do not build i2c
717
718 2007-02-07 Maarten Brock <sourceforge.brock AT dse.nl>
719
720         * device/lib/printf_large.c (_print_format): fixed compare/assign bug, how
721           can this have lived here for so many years?
722         * src/SDCCicode.c (ast2iCode): return left instead of right for assignment,
723           fixes bug 1273984, see also patch 1645121, thanks Gnther Jehle
724         * support/regression/tests/bug1273984.c: new, added, thanks Gnther Jehle
725
726 2007-02-06 Bernhard Held <bernhard AT bernhardheld.de>
727
728         * src/SDCCBlock.c (addiCodeToeBBlock): fixed bug 1652207: GOTO icodes
729         appended by loop induction must be at the very end of the eBBlock
730
731 2007-02-05 Kevin Vigor
732
733         * src/ds390/gen.c, src/ds390/main.c: Address bug 1469393.
734
735 2007-02-05 Borut Razem <borut.razem AT siol.net>
736
737         * support/regression/fwk/lib/timeout.c: native WIN32 port,
738           implemented #1651830 Reg. tests: rewrite timeout.c to use WIN32 API
739
740 2007-02-03 Borut Razem <borut.razem AT siol.net>
741
742         * src/SDCC.y, src/SDCCmain.c, src/SDCCglobl.h, doc/sdccman.lyx:
743           applied patch #1646602 option to set default signedness of char to
744           unsigned, added -funsigned-char command line option,
745           thanks to Gunther Jehle
746         * device/lib/Makefile.in: added the -f option to rm so it doesn't
747           prompt for file deletion a few hundred times (especially the
748           subversion files, which have ro permissions so it asks for
749           confirmation), thanks to Simon McAuliffe;
750           added {} + option to find in order to remove multiple files from a
751           single rm commad
752
753 2007-02-02 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
754
755         * device/include/mcs51/SST89x5xRDx.h: Added.
756
757 2007-02-02 Raphael Neider <rneider AT web.de>
758
759         * src/pic/glue.c (emitSymbolSet): check sym->etype before use
760         * src/regression/Makefile: use --no-pcode-opt, ignore failing tests
761
762 2007-02-01 Raphael Neider <rneider AT web.de>
763
764         * src/pic/glue.c (picglue,emitSymbolSet,showAllMemmaps): emit the
765           config words again
766
767 2007-01-31 Borut Razem <borut.razem AT siol.net>
768
769         * support/Util/dbuf_string.h: added ATTRIBUTE_PRINTF to dbuf_printf()
770           if compiled with GCC. Thanks to Raphael Neider
771
772 2007-01-31 Raphael Neider <rneider AT web.de>
773
774         * src/pic/pcode.c (isValidIdChar,bankCompare): fuzzy matching of
775             operand names, handles name and (name + n) for all n,
776           (sameBank): restructured, also check bank allocation policy,
777         * src/pic/glue.c (emitPseudoStack): fixed printf arguments,
778           (pic14_operandsAllocatedInSameBank): check whether to operands
779             will be allocated into the same bank (i.e., section) to reduce
780             BANKSEL overhead, queried from pcode.c:sameBank,
781           (pic14printLocals): reintroduced clustering registers into a single
782             section: all compiler generated symbols will now reside in one
783             bank (per file), reducing BANKSEL overhead and code size,
784           (showAllMemmaps): use local dbuf where possible
785
786 2007-01-29 Raphael Neider <rneider AT web.de>
787
788         * src/pic/gen.c (popGetExternal): simplified, mark symbol as used,
789           (call_libraryfunc): retrieve/create symbol and mark as used,
790           (genFunction): mark defined functions as non-extern and add again
791            to code memmap for later output
792         * src/pic/glue.c (emitPseudoStack): put into own subroutine,
793           (pic14printLocals): reworked for new symbol emission,
794           (emitIfNew,pic14_constructAbsMap,emitIvalLabel,emitIvals,emitInitVal,
795           showAllMemmaps): reworked symbol output using dbufs, added handling
796             of string literals (still incomplete),
797           (picglue): removed symbol emission, moved into showAllMemmaps,
798           (emitSymbolSet): new workhorse for symbol output,
799           (pic14emitMaps,pic14printPublics,pic14printExterns): commented out
800
801 2007-01-29 Borut Razem <borut.razem AT siol.net>
802
803         * src/SDCCmain.c, src/SDCCutil.c: dbuf_splitFile: file extension
804           component contains the extension separator.
805
806 2007-01-28 Borut Razem <borut.razem AT siol.net>
807
808         * sim/ucsim/cmd.src/cmdutil.cc: NUL device is detected as CG_FILE type
809           on WIN32
810         * src/SDCCdwarf2.c, src/SDCCglobl.h, src/SDCCmain.c, src/SDCCutil.c,
811           src/SDCCutil.h, src/avr/gen.c, src/ds390/gen.c, src/hc08/gen.c,
812           src/mcs51/gen.c, src/pic/device.c, src/pic/gen.c, src/pic/pcode.c,
813           src/pic/pcodepeep.c, src/pic/ralloc.c, src/pic16/device.h,
814           src/pic16/gen.c, src/pic16/main.c, src/pic16/pcode.c,
815           src/pic16/pcodepeep.c, src/pic16/ralloc.c, src/xa51/gen.c,
816           src/z80/gen.c, support/Util/MySystem.c:
817           accept slash and backslash as directory separator on WIN32 and
818           Cygwin ports
819
820 2007-01-28 Raphael Neider <rneider AT web.de>
821
822         * src/pic16/devices.inc,
823         * device/include/pic16/pic18f[24][23]21.h,
824         * device/include/pic16/pic18fregs.h,
825         * device/lib/pic16/libdev/pic18f[24][23]21.c,
826         * device/lib/pic16/pics.all: added support for the 18f[24][23]21 family
827         * device/lib/pic16/libio/adc.ignore,
828         * device/lib/pic16/libio/i2c.ignore,
829         * device/lib/pic16/libio/usart.ignore: do not build I/O lib for new
830           family, as gputils do not yet support the devices
831         * device/lib/pic16/Makefile.subdir: ignore errors on install
832         * support/scripts/inc2h-pic16.pl: script to generate pic16 device
833           headers and libraries from gputils .inc files
834
835 2007-01-26 Paul Stoffregen <paul AT pjrc.com>
836
837         * doc/sdccman.lyx: add printf_fast_f precision limitation note
838
839 2007-01-26 Paul Stoffregen <paul AT pjrc.com>
840
841         * doc/sdccman.lyx: add printf benchmarks
842
843 2007-01-25 Paul Stoffregen <paul AT pjrc.com>
844
845         * device/lib/printf_fast.c: fix %c, char promoted to int
846         * device/lib/printf_tiny.c: fix %c, char promoted to int
847
848 2007-01-25 Paul Stoffregen <paul AT pjrc.com>
849
850         * device/lib/printf_fast.c: fix float overflow check, bug #1525093
851
852 2007-01-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
853
854         * support/regression/tests/swap.c: 64 bit hosts failed
855         * doc/sdccman.lyx: added preliminary mcs51 printf feature matrix
856
857 2007-01-25 Raphael Neider <rneider AT web.de>
858
859         * src/pic/pcode.c (sameBank,FixRegisterBanking): optimize banksels
860           based on absolute register address, patch by Alex Blond
861
862 2007-01-22 Raphael Neider <rneider AT web.de>
863
864         * src/pic/glue.c (pic14emitRegularMap): mark initialized symbols as
865           emitted, do not emit them again...
866
867 2007-01-22 Raphael Neider <rneider AT web.de>
868
869         * src/regression/bank1.c, src/regression/compare6.c,
870           src/regression/add.c: cosmetic changes
871         * src/pic/pcode.h: moved GPTRTAG_* here from gen.c
872         * src/pic/gen.c: fixed global zero and one,
873           (aopForSym): removed unued code,
874           (aopGet): assert aop is defined, check and use `index' of
875             pCodeImmd operands (fixes #1630908),
876         * src/pic/pcode.c (get_op): added output of generic pointer tag,
877           (register_reassign): prevent accidental register unification,
878           (ReuseReg): cosmetic changes (also above)
879         * src/pic/glue.c (pic14_constructAbsMap,pic14emitRegularMap,
880           pic14emitStaticSeg): do not emit initialized data,
881           (printIval*): replaced with working versions,
882           (pic14createInterruptVect,picglue): use idata for initialized data,
883             now init data should work in all modules (not only main()),
884         * device/lib/pic/libsdcc/idata.c: NEW, handle initialized data
885
886 2007-01-21 Borut Razem <borut.razem AT siol.net>
887
888         * sim/ucsim/configure.in: introduced macro DD_COPT_NO_IGNORE,
889           use -fPIC or -fpic if they are supported and not ignored
890         * src/SDCCval.c: fixed bug introduced by me in rev. #4577
891         * support/cpp2/libcpp/lex.c: fixed gcc 4.1.1 warnings
892
893 2007-01-20 Borut Razem <borut.razem AT siol.net>
894
895         * src/SDCC.lex, src/SDCCmain.c, sdc/SDCCglobl.h, doc/sdccman.lyx:
896           implemented RFE #1470316: allow "$" in variable names
897
898 2007-01-20 Raphael Neider <rneider AT web.de>
899
900         * device/include/pic/pic14regs.h: reverted accidental wipe of the file
901
902 2007-01-20 Raphael Neider <rneider AT web.de>
903
904         * device/lib/pic/libdev/devices.txt: device list for mkall.sh
905         * device/lib/pic/libdev/mkall.sh: script to rebuild all device libs
906         * device/lib/pic/libdev/pic14ports.txt: device PORT specifications
907         * support/scripts/inc2h.pl: fixed major .inc parsing bugs,
908           applied patch from Robert Tate (#1629249) to add PORTs and TRISs
909         * device/lib/pic/libdev/pic*.c,
910         * device/include/pic/pic*.h: regenerated with enhanced inc2h.pl
911         * device/lib/pic/libdev/Makefile.in: show progress
912
913 2007-01-19 Bernhard Held <bernhard AT bernhardheld.de>
914
915         * doc/sdccman.lyx: updated "configure options" for autoconf 2.6
916         * support/scripts/sdcc_cygwin_mingw32,
917         * support/scripts/sdcc_mingw32,
918         * support/scripts/build.mak: replaced --datadir by --datarootdir for
919         conformance with autoconf 2.6
920
921 2007-01-19 Raphael Neider <rneider AT web.de>
922
923         * src/pic/device.c (register_map): fixed list construction
924         * src/pic/gen.c (genDivOneByte,genModOneByte): accept result > 1 byte,
925           (genMod): removed case for genModbits,
926           (genModbits): removed as now unused/unimplemented
927         * src/pic/glue.c (picglue): prevent name clash with sources 'init.c'
928
929 2007-01-18 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
930
931         * support/regression/tests/swap.c: added in response to #1638622
932         * doc/sdccman.lyx: synced version, minor changes
933
934 2007-01-18 Borut Razem <borut.razem AT siol.net>
935
936         * SDCClabel.c: fixed bug #1638651: wrong linenumber presented in warning,
937           thanks to Gunther Jehle
938         * src/asm.c: don't die if the file drfined in #line couldn't be opened
939         * src/SDCC.lex, src/SDCCglobal.h, src/SDCCicode.c, src/SDCCsymt.c,
940           src/SDCCval.c: removed redundant definitions of currFname and mylineno;
941           use filename in lineno instead.
942         * SDCCast.c: removed MSVC warning C4018: '==' : signed/unsigned mismatch,
943           print the file name in ast_print()
944
945 2007-01-18 Borut Razem <borut.razem AT siol.net>
946
947         * support/Util/dbuf_string.c: removed (PTR) cast since it is not
948           defined in MSVC
949         * src/SDCC.lex: stringLiteral() returns const char pointer,
950           EOF detection in stringLiteral(), fixed asmbuf memory leak,
951           fixed column counting
952         * src/SDCCval.[ch]: constVal(), value *strVal() and charVal()
953           accept const char pointer as parameter
954         * src/SDCCdwarf2.c: corrected buffer size
955
956 2007-01-17 Borut Razem <borut.razem AT siol.net>
957
958         * support/Util/dbuf_string.c: fixed for amd64
959
960 2007-01-15 Borut Razem <borut.razem AT siol.net>
961
962         * src/pic16/ralloc.c, src/pic/ralloc.c, src/SDCC.y:
963           removed terminal symbol ELIPSIS, since it was never generated by the
964           lexer and it was wrongly used in parameter_identifier_list rule
965
966 2007-01-15 Raphael Neider <rneider AT web.de>
967
968         * doc/sdccman.lyx: updated PIC14/16 command line args, updated PIC14
969             code page and data banking description
970         * src/pic/genarith.c,
971         * src/pic/gen.h: removed bit arithmetic functions,
972             updated exit(1) to exit(EXIT_FAILURE)
973         * device/lib/pic16/libsdcc/stack/stack.S: default to 256 byte stack
974         * device/include/pic16/pic18f2455.h,
975         * device/lib/pic16/libdev/pic18f2455.c: added PORTD, LATD, LATE,
976             TRISD and TRISE, fixed/added some bit names
977         * device/lib/pic16/libdev/pic18f{2550,4550,4455}.c,
978         * device/include/pic16/pic18f{2550,4550,4455}.h: simply include
979             updated pic18f2455.{c,h} instead of duplicating them
980
981 2007-01-14 Borut Razem <borut.razem AT siol.net>
982
983         * as/mcs51/asnoice.c, as/hc08/asnoice.c: fixed bug #1447412:
984           Cannot debug files that contain spaces in the path name
985           by converting spaces in asm file name to underscores
986
987 2007-01-13 Borut Razem <borut.razem AT siol.net>
988
989         * doc/sdccman.lyx: fixed format errors
990
991 2007-01-10 Borut Razem <borut.razem AT siol.net>
992
993         * src/SDCC.lex, src/SDCCmain.c: fixed bug #1631895:
994           codeseg/constseg #pragma fail
995         * suppoprt/cpp2/Makefile.bcc: reenable Borland C compilation
996         * suppoprt/cpp2/configure.in, suppoprt/cpp2/libcpp/lex.c,
997           suppoprt/cpp2/Makefile.in, suppoprt/cpp2/sdcpp-opts,
998           suppoprt/cpp2/sdcpp.[ch]: house cleaning
999
1000 2007-01-09 Borut Razem <borut.razem AT siol.net>
1001
1002         * get rid of diagnistic.[ch], pretty-print.[ch],
1003           c-pretty-print.[ch], ... used just for error, warning, ...
1004           message formatting
1005         * suppoprt/cpp2/pretty-print.[ch], suppoprt/cpp2/diagnostic.[ch],
1006           suppoprt/cpp2/diagnostic.def, suppoprt/cpp2/input.h,
1007           suppoprt/cpp2/pretty-print.[ch]:
1008           removed
1009         * suppoprt/cpp2/Makefile.in, suppoprt/cpp2/opts.c,
1010           suppoprt/cpp2/sdcpp-opts.c, suppoprt/cpp2/sdcpp.[ch],
1011           suppoprt/cpp2/sdcpp.dsp:
1012           changed
1013
1014 2007-01-08 Maarten Brock <sourceforge.brock AT dse.nl>
1015
1016         * device/lib/printf_large.c (output_float): removed recursion,
1017           use smaller buffer on stack for mcs51,
1018           fixed bug printing 1.96
1019         * support/regression/tests/snprintf.c: added test
1020
1021 2007-01-07 Borut Razem <borut.razem AT siol.net>
1022
1023         * use dynamic memory buffers instead temporary files
1024         * support/Util/dbuf_string.c, support/Util/dbuf_string.h:
1025           added
1026         * src/Makefile.in, src/SDCC.lex, src/SDCCast.c, src/SDCCast.h,
1027           src/SDCCcse.c, src/SDCCglobl.h, src/SDCCglue.c, src/SDCCglue.h,
1028           src/SDCCicode.c, src/SDCCicode.h, src/SDCCmain.c, src/SDCCmem.c,
1029           src/SDCCmem.h, src/SDCCpeeph.c, src/SDCCpeeph.h, src/SDCCsymt.c,
1030           src/SDCCsymt.h, src/SDCCutil.c, src/asm.c, src/asm.h, src/avr/gen.c,
1031           src/avr/main.c, src/ds390/gen.c, src/ds390/main.c, src/hc08/gen.c,
1032           src/hc08/main.c, src/izt/gen.c, src/mcs51/gen.c, src/mcs51/main.c,
1033           src/pic/device.c, src/pic/gen.c, src/pic/glue.c, src/pic/main.c,
1034           src/pic/ralloc.c, src/pic16/gen.c, src/pic16/glue.c,
1035           src/pic16/main.c, src/pic16/ralloc.c, src/port.h, src/src.dsp,
1036           src/xa51/gen.c, src/xa51/main.c, src/z80/gen.c, src/z80/main.c,
1037           support/Util/dbuf.c, support/Util/dbuf.h:
1038           modified
1039         * .version, sdcc.spec: bumped version to 2.6.4
1040
1041 2007-01-07 Maarten Brock <sourceforge.brock AT dse.nl>
1042
1043         * src/port.h: added TARGET_Z80_LIKE macro
1044         * src/SDCCmain.c (linkEdit): use TARGET_Z80_LIKE,
1045           output PSEG location if --xram-loc or --xstack-loc was used
1046         * as/link/mcs51/lkarea.c (lnksect2): set segment address afterwards
1047
1048 2007-01-07 Maarten Brock <sourceforge.brock AT dse.nl>
1049
1050         * as/as_gbz80.dsp, as/z80/as_gbz80.dsp,
1051         * as/as_z80.dsp,   as/z80/as_z80.dsp,
1052         * as/asx8051.dsp,  as/mcs51/asx8051.dsp,
1053         * sdcc.dsw: moved project files into subdir
1054         * as/hc08/as_hc08.dsp,
1055         * as/hc08/Makefile.bcc,
1056         * as/hc08/Makefile.in,
1057         * as/mcs51/Makefile.bcc,
1058         * as/mcs51/Makefile.in,
1059         * as/z80/Makefile.bcc,
1060         * as/z80/Makefile.in,
1061         * as/link/mcs51/Makefile.bcc: use as/strcmpi.c
1062         * as/hc08/asm.h,
1063         * as/mcs51/asm.h,
1064         * as/z80/asm.h: added as_strcmpi() and as_strncmpi() prototypes
1065         * as/hc08/asmain.c,
1066         * as/hc08/assym.c,
1067         * as/mcs51/asmain.c,
1068         * as/mcs51/assym.c,
1069         * as/z80/assym.c: removed include "strcmpi.h"
1070         * as/hc08/strcmpi.c,
1071         * as/hc08/strcmpi.h,
1072         * as/mcs51/strcmpi.c,
1073         * as/mcs51/strcmpi.h,
1074         * support/Util/strcmpi.c,
1075         * support/Util/strcmpi.h: removed files
1076         * as/strcmpi.c: added as_strncmpi()
1077
1078 2007-01-05 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1079
1080         * sdcc.dsw: Added some dependencies on project config.dsp
1081
1082 2007-01-05 Maarten Brock <sourceforge.brock AT dse.nl>
1083
1084         * as/link/mcs51/lkarea.c (lnkarea2, lnksect2): replaced [di]seg_ap->a_addr
1085           with [di]ram_start to fix a regresion
1086
1087 2007-01-03 Bernhard Held <bernhard AT bernhardheld.de>
1088
1089         * configure.in: added missing mcs51 in status output
1090         * Makefile.in: add support/regression to SDCC_EXTRA to distclean this
1091         directory
1092         * debugger/mcs51/clean.mk (distclean): remove config.h
1093         * src/clean.mk (clean): remove SDCCy.c, SDCCy.h, SDCClex.c
1094         * support/cpp2/Makefile.in (clean): remove s-options, optionlist,
1095         options.h, s-options-h and options.c
1096         * support/cpp2/clean.mk: unused, removed
1097         * Makefile.common.in,
1098         * main_in.mk,
1099         * as/Makefile.in,
1100         * as/hc08/Makefile.in,
1101         * as/hc08/clean.mk,
1102         * as/mcs51/Makefile.in,
1103         * as/mcs51/clean.mk,
1104         * as/z80/clean.mk,
1105         * as/z80/conf.mk,
1106         * as/z80/Makefile.in,
1107         * as/z80/clean.mk,
1108         * as/link/Makefile.in,
1109         * as/link/hc08/Makefile.in,
1110         * as/link/hc08/clean.mk,
1111         * as/link/mcs51/Makefile.in,
1112         * as/link/mcs51/clean.mk,
1113         * as/link/z80/Makefile.in,
1114         * as/link/z80/clean.mk,
1115         * as/link/z80/conf.mk,
1116         * debugger/mcs51/Makefile.in,
1117         * debugger/mcs51/clean.mk,
1118         * device/include/Makefile.in,
1119         * device/lib/Makefile.in,
1120         * device/lib/mcs51/Makefile.in,
1121         * device/lib/pic/Makefile.in,
1122         * device/lib/pic/Makefile.common.in,
1123         * device/lib/pic/Makefile.subdir,
1124         * device/lib/pic/Makefile.rules,
1125         * device/lib/pic16/libio/Makefile.in,
1126         * device/lib/pic16/Makefile.subdir,
1127         * device/lib/pic16/libdev/Makefile.in,
1128         * device/lib/pic16/Makefile.rules,
1129         * device/lib/pic16/Makefile.common.in,
1130         * sim/ucsim/avr.src/Makefile.in,
1131         * sim/ucsim/main_in.mk,
1132         * sim/ucsim/cmd.src/Makefile.in,
1133         * sim/ucsim/doc/Makefile.in,
1134         * sim/ucsim/gui.src/Makefile.in,
1135         * sim/ucsim/gui.src/obsolete/portmon.src/Makefile.in,
1136         * sim/ucsim/gui.src/serio.src/Makefile.in,
1137         * sim/ucsim/hc08.src/Makefile.in,
1138         * sim/ucsim/libltdl/Makefile.in,
1139         * sim/ucsim/s51.src/Makefile.in,
1140         * sim/ucsim/sim.src/Makefile.in,
1141         * sim/ucsim/sim.src/conf.mk,
1142         * sim/ucsim/xa.src/Makefile.in,
1143         * sim/ucsim/z80.src/Makefile.in,
1144         * src/Makefile.in,
1145         * src/clean.mk,
1146         * src/port.mk,
1147         * support/cpp2/Makefile.in,
1148         * support/librarian/Makefile.in,
1149         * support/librarian/clean.mk,
1150         * support/makebin/Makefile.in,
1151         * support/makebin/clean.mk,
1152         * support/packihx/Makefile.in,
1153         * support/regression/Makefile.in,
1154         * support/regression/ports/ds390/spec.mk,
1155         * support/regression/ports/gbz80/spec.mk,
1156         * support/regression/ports/hc08/spec.mk,
1157         * support/regression/ports/mcs51/spec.mk,
1158         * support/regression/ports/mcs51-large/spec.mk,
1159         * support/regression/ports/mcs51-medium/spec.mk,
1160         * support/regression/ports/mcs51-xstack-auto/spec.mk,
1161         * support/regression/ports/pic14/spec.mk,
1162         * support/regression/ports/pic16/spec.mk,
1163         * support/regression/ports/mcs51-stack-auto/spec.mk,
1164         * support/regression/ports/ucz80/spec.mk,
1165         * support/regression/ports/xa51/spec.mk,
1166         * support/regression/ports/z80/spec.mk: fixed for autoconf 2.6x by
1167         adding a slash after $(top_builddir) and/or adding @datarootdir@
1168         * configure.in,
1169         * debugger/mcs51/configure.in,
1170         * device/lib/pic/configure.in,
1171         * device/lib/pic16/configure.in,
1172         * sim/ucsim/configure.in,
1173         * support/cpp2/configure.in,
1174         * support/packihx/configure.in: changed AC_PREREQ to 2.60
1175         * configure,
1176         * debugger/mcs51/configure,
1177         * device/lib/pic/configure,
1178         * device/lib/pic16/configure,
1179         * sim/ucsim/configure,
1180         * support/cpp2/configure,
1181         * support/packihx/configure: generated with autoconf 2.60
1182
1183 2007-01-02 Maarten Brock <sourceforge.brock AT dse.nl>
1184
1185         * as/link/hc08/lkihx.c (newArea),
1186         * as/link/hc08/lkrloc.c: renamed newArea() to ihxNewArea()
1187
1188 2007-01-02 Borut Razem <borut.razem AT siol.net>
1189
1190         * doc/sdccman.lyx: documented #pragma sdcc_hash
1191         * support/cpp2/sdcpp.c: allow_naked_hash (value of #pragma sdcc_hash)
1192           initialized to 0
1193         * support/cpp2/c-ppoutput.c: fixed warning: no newline at end of file
1194
1195 2007-01-01 Bernhard Held <bernhard AT bernhardheld.de>
1196
1197         * src/SDCCast.c (createDo): backPatchLabels() needs falseLabel in
1198         empty 'while'-loop to work correctly, see regression test 'while.c'
1199         * support/regression/tests/while.c: added
1200
1201 2007-01-01 Borut Razem <borut.razem AT siol.net>
1202
1203         * support/cpp2/libcpp/directives.c, support/cpp2/libcpp/identifiers.c,
1204           support/cpp2/libcpp/init.c, support/cpp2/libcpp/sdcpp-opts.c,
1205           support/cpp2/libcpp/sdcpp.c:
1206           sdcpp specific pragma/directive/option handling moved to sdcpp.c
1207         * doc/sdccman.lyx: reference to the GCC 4.1.1 CPP Manual
1208         * support/cpp2/libcpp/mkdeps.c: synchronized with GCC CPP 4.1.1
1209
1210 2006-12-31 Borut Razem <borut.razem AT siol.net>
1211
1212         * SDCPP synchronized with GCC CPP release version 4.1.1,
1213           currently the latest release:
1214         * support/cpp2/libcpp, support/cpp2/libcpp/include,
1215           support/cpp2/libcpp/include/cpp-id-data.h
1216           support/cpp2/libiberty/fopen_unlocked.c
1217           support/cpp2/libiberty/md5.c
1218           support/cpp2/md5.h
1219           support/cpp2/opt-functions.awk
1220           support/cpp2/opt-gather.awk
1221           support/cpp2/optc-gen.awk
1222           support/cpp2/opth-gen.awk:
1223           added
1224         * support/cpp2/Makefile.in, support/cpp2/auto-host_vc_in.h,
1225           support/cpp2/c-incpath.c, support/cpp2/c-incpath.h,
1226           support/cpp2/c-ppoutput.c, support/cpp2/c-pretty-print.c,
1227           support/cpp2/c-pretty-print.h, support/cpp2/cppdefault.c,
1228           support/cpp2/cppdefault.h, support/cpp2/diagnostic.c,
1229           support/cpp2/diagnostic.h, support/cpp2/except.h,
1230           support/cpp2/hwint.h, support/cpp2/input.h,
1231           support/cpp2/intl.h, support/cpp2/move-if-change,
1232           support/cpp2/opts.c, support/cpp2/opts.h,
1233           support/cpp2/output.h, support/cpp2/prefix.c,
1234           support/cpp2/prefix.h, support/cpp2/pretty-print.c,
1235           support/cpp2/pretty-print.h, support/cpp2/sdcpp-opts.c,
1236           support/cpp2/sdcpp.c, support/cpp2/sdcpp.dsp,
1237           support/cpp2/sdcpp.h, support/cpp2/sdcpp.opt,
1238           support/cpp2/sdcppa.dsp, support/cpp2/symcat.h,
1239           support/cpp2/version.c:
1240           modified
1241         * support/cpp2/libcpp/charset.c, support/cpp2/libcpp/directives.c,
1242           support/cpp2/libcpp/errors.c, support/cpp2/libcpp/expr.c,
1243           support/cpp2/libcpp/files.c, support/cpp2/libcpp/identifiers.c,
1244           support/cpp2/libcpp/include/cpplib.h, support/cpp2/libcpp/include/line-map.h,
1245           support/cpp2/libcpp/include/mkdeps.h, support/cpp2/libcpp/include/symtab.h,
1246           support/cpp2/libcpp/init.c, support/cpp2/libcpp/internal.h,
1247           support/cpp2/libcpp/lex.c, support/cpp2/libcpp/line-map.c,
1248           support/cpp2/libcpp/macro.c, support/cpp2/libcpp/mkdeps.c,
1249           support/cpp2/libcpp/symtab.c, support/cpp2/libcpp/system.h,
1250           support/cpp2/libcpp/traditional.c, support/cpp2/libcpp/ucnid.h,
1251           support/cpp2/libiberty/hashtab.c, support/cpp2/libiberty/hashtab.h:
1252           moved
1253         * support/cpp2/cppcharset.c, support/cpp2/cpperror.c,
1254           support/cpp2/cppexp.c, support/cpp2/cppfiles.c,
1255           support/cpp2/cpphash.c, support/cpp2/cpphash.h,
1256           support/cpp2/cppinit.c, support/cpp2/cpplex.c,
1257           support/cpp2/cpplib.c, support/cpp2/cpplib.h,
1258           support/cpp2/cppmacro.c, support/cpp2/cpptrad.c,
1259           support/cpp2/cppucnid.h, support/cpp2/hashtab.c,
1260           support/cpp2/hashtab.h, support/cpp2/hashtable.c,
1261           support/cpp2/hashtable.h, support/cpp2/line-map.c,
1262           support/cpp2/line-map.h, support/cpp2/mkdeps.c,
1263           support/cpp2/mkdeps.h, support/cpp2/options_vc_in.c,
1264           support/cpp2/options_vc_in.h, support/cpp2/opts.sh,
1265           support/cpp2/system.h:
1266           deleted / moved
1267
1268 2006-12-31 Borut Razem <borut.razem AT siol.net>
1269
1270         * configure.in, configure: fixed bug #1538756: configure dies if bison
1271           and flex are not installed, 2nd try
1272
1273 2006-12-30 Bernhard Held <bernhard AT bernhardheld.de>
1274
1275         * src/mcs51/peeph.def: renamed rule 400 to 500, moved rule 253.x to
1276         400.x for better code in RFE 899102
1277
1278 2006-12-30 Bernhard Held <bernhard AT bernhardheld.de>
1279
1280         * src/SDCCpeeph.c (deadMove),
1281         * src/port.h,
1282         * src/mcs51/peep.h: renamed 'op' by 'reg'
1283         * src/mcs51/peep.c (isFunc, isCallerSaveFunc): added,
1284         (scan4op): small change for removeDeadMove(), added support for
1285         'callee saves' and/or PACLL function calls,
1286         (removeDeadMove): added, removes superflous 'mov r%1,%2',
1287         (removeDeadPopPush): renamed from mcs51DeadMove(), common parts
1288         left in new dispatcher mcs51DeadMove()
1289         (mcs51DeadMove): dispatcher for removeDeadPopPush() and new
1290         removeDeadMove()
1291         * src/mcs51/peeph.def: added rule 301 removing superflous 'mov r%1,%2'
1292
1293 2006-12-30 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1294
1295         * support/cpp2/options_vc_in.h, support/cpp2/options_vc_in.c,
1296           support/cpp2/sdcppa.dsp: create 'options.h' and 'options.c' under MSVC.
1297
1298 2006-12-30 Borut Razem <borut.razem AT siol.net>
1299
1300         * support/cpp2/spacs.h: deleted from svn
1301         * configure.in, configure: fixed bug #1538756: configure dies if bison
1302           and flex are not installed
1303
1304 2006-12-29 Maarten Brock <sourceforge.brock AT dse.nl>
1305
1306         * src/z80/gen.c (assignResultValue): fixed bug when registers overlap,
1307           with this z80 passes printf float test when enabled
1308         * support/regression/tests/bug1057979.c: typo disabled ds390 float test
1309
1310 2006-12-28 Borut Razem <borut.razem AT siol.net>
1311
1312         * support/cpp2/config.in, support/cpp2/configure.in,
1313           support/cpp2/configure, support/cpp2/Makefile.in:
1314           fix for the solaris build
1315
1316 2006-12-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1317
1318         * src/SDCC.y (type_specifier2, pointer),
1319         * src/SDCCsymt.h,
1320         * src/SDCCsymt.c (mergeSpec, checkSClass),
1321         * support/Util/SDCCerr.c,
1322         * support/Util/SDCCerr.h: Parse and validate the restrict keyword
1323         * support/valdiag/valdiag.py: Allow test cases to specify
1324           required language standard
1325         * support/valdiag/tests/restrict.c: New file to test restrict keyword
1326         * support/valdiag/tests/tentdecl.c: Supress empty source file error
1327
1328 2006-12-27 Borut Razem <borut.razem AT siol.net>
1329
1330         * support/cpp2/cppmain.c, support/cpp2/mbchar.[ch]: removed
1331         * support/cpp2/libiberty/Makefile.in, support/cpp2/libiberty/sdcpp.dsp:
1332           mbchar removed
1333         * support/cpp2/libiberty/getpwd.c, support/cpp2/sdcpp.h:
1334           fixed for borland C
1335         * support/cpp2/libiberty/Makefile.bcc: updated
1336         * src/pic16/main.c: fixed #pragma udata handling
1337         * src/mcs51/mcs51.dsp: added peep.[ch] to the project
1338
1339 2006-12-26 Bernhard Held <bernhard AT bernhardheld.de>
1340
1341         * src/SDCCpeeph.c: made labelHashEntry global,
1342         made pcDistance, FBYNAME static,
1343         (pcDistance): made static, use isComment and isLabel,
1344         (deadMove): added,
1345         (getLabelRef): added, extracted from labelRefCount(),
1346         (labelRefCount): use new getLabelRef(),
1347         (callFuncByName): made static, added deadMove,
1348         use isComment and isLabel,
1349         (newPeepRule): made static, set isLabel,
1350         (isLabelDefinition): added parameter isPeepRule to allow '%' in
1351         labels from peephole rules,
1352         (buildLabelRefCountHash): speed up by running isLabelDefinition() only
1353         when isComment or isLabel is set
1354         * src/SDCCpeeph.h: added "isLabel" and "visited" to struct lineNode,
1355         added labelHashEntry, isLabelDefinition, labelHash and getLabelRef
1356         to make them global
1357         * src/mcs51/peep.h: added
1358         * src/mcs51/peep.c: added, implements mcs51DeadMove()
1359         * src/port.h: added peep->deadMove to port structure
1360         * src/mcs51/main.c: initialize peep->deadMove with mcs51DeadMove
1361         * src/mcs51/peeph.def: renumbered rule 300 to 400, added new rule 300
1362         deadMove, finally removed no. 1 and 2
1363         * src/mcs51/gen.c,
1364         * src/pic/gen.c,
1365         * src/z80/gen.c,
1366         * src/z80/ralloc.c,
1367         * src/pic16/gen.c,
1368         * src/ds390/gen.c,
1369         * src/hc08/gen.c: mark lines with isComment or isLabel
1370         * sim/ucsim/s51.src/uc390hw.cc: don't waist 65535 ticks before CKRDY
1371         * .version,
1372         * sdcc.spec: bumped version to 2.6.3
1373
1374 2006-12-26 Borut Razem <borut.razem AT siol.net>
1375
1376         * support/cpp2/Makefile.in: added dependency on options.h
1377         * configure: regenerated
1378         * support/cpp2/sdcpp.opt, support/cpp2/move-if-change: svn:eol-style native
1379         * support/cpp2/Makefile.in: added vasprintf.c
1380
1381 2006-12-25 Borut Razem <borut.razem AT siol.net>
1382
1383         * SDCPP synchronized with GCC CPP release version 3.4.6,
1384           the latest release before 4.x:
1385         * support/cpp2/Makefile.in, support/cpp2/config.h,
1386           support/cpp2/configure, support/cpp2/configure.in,
1387           support/cpp2/cppdefault.c, support/cpp2/cppdefault.h,
1388           support/cpp2/cpperror.c, support/cpp2/cppexp.c,
1389           support/cpp2/cppfiles.c, support/cpp2/cpphash.c,
1390           support/cpp2/cpphash.h, support/cpp2/cppinit.c,
1391           support/cpp2/cpplex.c, support/cpp2/cpplib.c,
1392           support/cpp2/cpplib.h, support/cpp2/cppmacro.c,
1393           support/cpp2/cpptrad.c, support/cpp2/except.h,
1394           support/cpp2/hashtable.c, support/cpp2/hashtable.h,
1395           support/cpp2/hwint.h, support/cpp2/intl.h,
1396           support/cpp2/line-map.c, support/cpp2/line-map.h,
1397           support/cpp2/mkdeps.c, support/cpp2/mkdeps.h,
1398           support/cpp2/output.h, support/cpp2/prefix.c,
1399           support/cpp2/prefix.h, support/cpp2/sdcpp.dsp,
1400           support/cpp2/system.h, support/cpp2/version.c:
1401           modified
1402         * support/cpp2/c-incpath.c, support/cpp2/c-incpath.h,
1403           support/cpp2/c-ppoutput.c, support/cpp2/c-pretty-print.c,
1404           support/cpp2/c-pretty-print.h, support/cpp2/cppcharset.c,
1405           support/cpp2/cppucnid.h, support/cpp2/diagnostic.c,
1406           support/cpp2/diagnostic.def, support/cpp2/diagnostic.h,
1407           support/cpp2/hashtab.c, support/cpp2/hashtab.h,
1408           support/cpp2/input.h, support/cpp2/libiberty/getpwd.c,
1409           support/cpp2/libiberty/vasprintf.c, support/cpp2/libiberty/xmemdup.c,
1410           support/cpp2/move-if-change, support/cpp2/opts.c,
1411           support/cpp2/opts.h, support/cpp2/opts.sh,
1412           support/cpp2/pretty-print.c, support/cpp2/pretty-print.h,
1413           support/cpp2/sdcpp.opt, support/cpp2/sdcpp-opts.c,
1414           support/cpp2/win32, support/cpp2/win32/dirent.c,
1415           support/cpp2/win32/dirent.h:
1416           added
1417         * support/cpp2/sdcpp.c: renamed from sdcppmain.c
1418         * support/cpp2/sdcpp.h: renamed from sdcc.h
1419         * sdcppinit.c: deleted
1420
1421 2006-12-23 Borut Razem <borut.razem AT siol.net>
1422
1423         * support/cpp2/cpphash.h, support/cpp2/cpplex.c,
1424           support/cpp2/cpplib.[ch], support/cpp2/sdcppinit.c, doc/sdccman.lyx,
1425           preproc.c: an other try to fix bug #982435: introduced
1426           -pedantic-parse-number command line option and pedantic_parse_number
1427           pragma
1428
1429 2006-12-21 Maarten Brock <sourceforge.brock AT dse.nl>
1430
1431         * as/link/mcs51/lkarea.c (lnkarea2): handle absolute areas, restructured
1432            BSEG handling,
1433           (lnksect2): use --data-loc and --idata-loc as lower bound for ramstart,
1434            corrected overlayed areax addresses, warn about memory overlaps
1435         * as/mcs51/asmain.c (asmbl): create a new area for every .org directive
1436         * src/avr/main.c,
1437         * src/ds390/main.c,
1438         * src/hc08/main.c,
1439         * src/mcs51/main.c,
1440         * src/pic16/main.c,
1441         * src/pic/main.c,
1442         * src/xa51/main.c,
1443         * src/z80/main.c,
1444         * src/port.h: added xabs_name and iabs_name
1445         * src/SDCCglue.c (emitRegularMap): allocate for absolutes with initializer
1446           (glue, emitMaps): create and emit maps d_abs and i_abs
1447         * src/SDCCglue.h: cosmetic changes
1448         * src/SDCCmain.c (setDefaultOptions): idata can start below 0x80
1449         * src/SDCCmem.h,
1450         * src/SDCCmem.c (initMem): added x_abs, i_abs and d_abs
1451           (allocDefault): put absolute, initialized globals in them
1452         * support/regression/tests/absolute.c: added absolute bdata test
1453         * device/lib/printf_large.c (output_float): moved fpBuffer to stack/xdata
1454
1455 2006-12-20 Borut Razem <borut.razem AT siol.net>
1456
1457         * support/cpp2/cpphash.h, support/cpp2/cpplex.c: fixed bug #982435
1458         * support/regression/tests/preproc.c: renamed from bug-1351710.c,
1459           added regression test for bug #982435
1460
1461 2006-12-18 Borut Razem <borut.razem AT siol.net>
1462
1463         * src/SDCCutil.c: fixed a bug in (get_pragma_token)
1464         * src/pic16/main.c, src/SDCC.lex, src/z80/main.c:
1465           small cosmetic changes
1466         * src/SDCC.lex: (stringLiteral) fixed bug #1351710
1467         * support/regression/tests/bug-1351710.c: added regression test
1468
1469 2006-12-18 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1470
1471         * doc/sdccman.lyx: added the long missed iCode table
1472           "<where is figure II?>", added links to wiki
1473
1474 2006-12-17 Borut Razem <borut.razem AT siol.net>
1475
1476         * doc/sdccman.lyx, src/pic16/main.c, src/pic/main.c, src/port.h,
1477           src/SDCC.lex, src/SDCCutil.[ch], src/z80/main.c,
1478           support/Util/SDCCerr.[ch]: removed deprecated pragmas,
1479           unified table driven pragma handling, pragma argument type checking
1480         * support/Util/dbuf.c: (dbuf_set_size) allow to set size equal to the
1481           current one - version 1.1.3
1482         * src/SDCCmain.c: (setParseWithComma) substituted brain damaged strtok
1483
1484 2006-12-13 Raphael Neider <rneider AT web.de>
1485
1486         * src/pic/device.h: removed AssignedMemory structure and macros
1487         * src/pic/device.c: removed global finalMapping (linker assigns
1488             memory locations),
1489           (register_map): add SFRs to remembered memRanges
1490           (addMemRange,isSFR,dump_map,dump_sfr,mapRegister,assignRegister,
1491           assignFixedRegisters,assignRelocatableRegisters): removed,
1492           (setMaxRAM,validAddress): adapted accordingly,
1493           (pic14_hasSharebank,pic14_getSharedStack): only report and use
1494             reasonably sized sharebanks,
1495         * src/pic/ralloc.c (writeUsedRegs): stripped down (remove?),
1496           (allDefsOutOfRange): removed unused code,
1497         * src/pic/main.c (_process_pragma): removed memmap/maxram pragma
1498             handling
1499         * src/pic/pcode.c (register_reassign): removed recursion warning,
1500             fired far too often,
1501         * src/pic/glue.c (emitSymbolToFile,pic14_constructAbsMap): modified
1502             to use existing pic14_stringInSet() to avoid duplicate symbols,
1503             tidied up the code a bit,
1504           (pic14printLocals): added in symmetry to printExterns, replaces
1505             writeUsedRegs more or less,
1506           (picglue): call new pic14_printLocals(),
1507         * device/include/pic/pic*.h: removed #pragma memmap directives,
1508             information gathered from include/pic/pic14devices.txt
1509         * support/scripts/inc2h.pl: do not emit #pragma memmap lines
1510
1511 2006-12-10 Maarten Brock <sourceforge.brock AT dse.nl>
1512
1513         * device/include/mcs51/C8051F520.h: fixed buggy CPT0MX
1514
1515 2006-12-11 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1516
1517         * device/include/mcs51/cc2430.h: fixed missing ';'
1518
1519 2006-12-10 Raphael Neider <rneider AT web.de>
1520
1521         * device/lib/pic16/libc/stdio/vfprintf.c,
1522         * device/lib/pic16/libc/stdio/printf_small.c,
1523         * device/lib/pic16/libc/stdio/printf_timy.c: pop int from stack for
1524           char arguments, as char varargs are cast to int by the caller,
1525           hopefully fixes #1604915 (other device libraries are still affected)
1526
1527 2006-12-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1528
1529         * src/mcs51/ralloc.c (packRegsForAssign),
1530         * src/hc08/ralloc.c (packRegsForAssign): fixed bug #1605880
1531
1532 2006-12-10 Maarten Brock <sourceforge.brock AT dse.nl>
1533
1534         * device/include/malloc.h: removed init_dynamic_memory
1535         * device/lib/malloc.c: made init_dynamic_memory static and automatically
1536           call it once from malloc. Also use _sdcc_heap[] from _heap.c
1537         * device/lib/_heap.c: new, added, contains _sdcc_heap[]
1538         * device/lib/libsdcc.lib,
1539         * device/lib/Makefile.in,
1540         * support/regression/ports/mcs51-xstack-auto/spec.mk: added _heap.c
1541         * doc/sdccman.lyx: documented use of new _heap.c
1542         * support/regression/tests/malloc.c: removed init_dynamic_memory
1543         * src/cdbFile.c(spacesToUnderscores): new function,
1544           (cdbWriteEndFunction, cdbWriteCLine): use spacesToUnderscores, fixes bug
1545           1068030
1546         * device/include/tinibios.h: removed defines for putchar and getchar
1547         * device/lib/ds390/Makefile.in: added putchar.c
1548         * device/lib/ds390/putchar.c: new, added, fixes bug 1465671
1549
1550 2006-12-09 Borut Razem <borut.razem AT siol.net>
1551
1552         * support/cpp2/sdcc.h: prevent multiple inclusion
1553         * support/cpp2/options.h: deleted
1554
1555 2006-12-08 Borut Razem <borut.razem AT siol.net>
1556
1557         * support/cpp2/sdcc.h: removed x*alloc() macros
1558         * support/cpp2/libiberty.h: uncommented out x*alloc() declarations
1559         * support/cpp2/Makefile.bcc, support/cpp2/Makefile.in,
1560           support/cpp2/sdcpp.sdc: x*alloc files added to the project
1561         * support/cpp2/system.h: moved #include "sdcc.h"
1562         * support/cpp2/libiberty/xexit.c, support/cpp2/libiberty/xmalloc.c,
1563           support/cpp2/libiberty/xstrdup.c, support/cpp2/libiberty/xstrerror.c:
1564           added
1565         * support/cpp2/sdcppinit.c: added -isysroot, -fsigned-char,
1566           -funsigned-char options
1567         * support/cpp2/sdcppmain.c: fixed bug 1611411
1568
1569 2006-12-07 Borut Razem <borut.razem AT siol.net>
1570
1571         * support/cpp2/cpplib.c: reverted sdcpp special handling of _Pragma()
1572           directive
1573
1574 2006-12-06 Maarten Brock <sourceforge.brock AT dse.nl>
1575
1576         * src/SDCCsymt.c (addDecl): fixed bug 1609244
1577         * src/SDCCmain.c (linkEdit): fixed bug 1609279
1578         * doc/sdccman.lyx,
1579         * .version: bumped to 2.6.2 because a) it's been a while
1580           b) the linker sources have moved c) the preprocessor is upgraded
1581
1582 2006-12-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1583
1584         * support/regression/tests/snprintf.c: some checks
1585         * lib/src/printf_large.c: %bc: read char instead of int from stack
1586
1587 2006-12-03 Maarten Brock <sourceforge.brock AT dse.nl>
1588
1589         * device/include/mcs51/cc2430.h: inserted _XPAGE
1590
1591 2006-12-02 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1592
1593         * device/include/mcs51/cc2430.h: added
1594
1595 2006-12-02 Maarten Brock <sourceforge.brock AT dse.nl>
1596
1597         * device/include/asm/default/features.h,
1598         * device/include/asm/ds390/features.h,
1599         * device/include/mcs51/at89s53.h,
1600         * device/include/ser.h,
1601         * device/include/ser_ir.h,
1602         * device/include/serial.h: changed keywords to double underscore variants,
1603           fixes bug 1590261 some more, thanks Steven Borley
1604
1605 2006-12-01 Raphael Neider <rneider AT web.de>
1606
1607         * src/pic/pcode.c (register_reassign): do not crash on recursive code
1608           but emit warning (recursion is not supported for pic14)
1609
1610 2006-11-30 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1611
1612         * src/mcs51/peeph.def: added 101.a,b (moves to int/long xdata)
1613         * doc/sdccman.lyx: various small changes, acknowledged Sourceforge
1614
1615 2006-11-30 Raphael Neider <rneider AT web.de>
1616
1617         * src/pic/device.c (dump_sfr): always emit symbols
1618         * src/pic/glue.c (pic14printPublics): fixed typo
1619
1620 2006-11-30 Raphael Neider <rneider AT web.de>
1621
1622         * src/pic/device.c (create_pic,ram_map): add memRange entries to PIC
1623           (pic14_getSharebankSize, pic14_getSharebankAddress): replaced with
1624           (pic14_hasSharebank,pic14_isShared,pic14_allRAMShared,
1625            pic14_getSharedStack): NEW, evaluate the memRange entries to locate
1626            a sharebank, use a non-shared bank for the stack if none available
1627         * src/pic/device.h (struct memRange): added linked list next field,
1628           added prototypes for above functions
1629         * src/pic/ralloc.c (initStack): handle shared and banked stacks,
1630           (typeRegWithIdx): accept fixed and unfixed stack registers
1631         * src/pic/pcode.c (pCodeInitRegisters): use new functions to create
1632           the stack, handle shared and banked stack (except for WSAVE),
1633           (insertBankSel): removed useless optimization (will never fire),
1634           (FixRegisterBanking): added optimization for devices with only one
1635           possibly aliased bank of memory, like 16f84
1636         * src/pic/glue.c (pic14_constructAbsMap): back to udata_ovr, as some
1637           devices have no SHAREBANK in the linker script
1638         * device/include/pic/pic14devices.txt: documented memmap
1639         * device/lib/pic/libdev/Makefile.in: removed --stack-loc again
1640
1641 2006-11-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1642
1643         * src/hc08/gen.c (transferRegReg, loadRegFromAop, forceStackedAop,
1644           storeRegToAop, freeAsmop, genPlusIncr, genPlus, genPointerGetSetOfs,
1645           genAnd, genOr, genXor, genLeftShiftLiteral, genRightShiftLiteral,
1646           genhc08Code): switched most of the D (debug) macros to DD (detailed
1647           debug) macros to better control clutter in the generated .asm file.
1648         * src/hc08/gen.c: (forceStackedAop, genUminus, genLeftShift,
1649           genRightShift): fixed bug with non-constant bit shift stored to
1650           a volatile result (SF Open Discussion forum thread #1616749).
1651           Single byte case is not yet optimized.
1652
1653 2006-11-28 Maarten Brock <sourceforge.brock AT dse.nl>
1654
1655         * device/include/asm/mcs51/features.h,
1656         * device/include/malloc.h,
1657         * device/include/stdio.h: changed keywords to double underscore variants,
1658           fixes bug 1590261
1659
1660 2006-11-27 Borut Razem <borut.razem AT siol.net>
1661
1662         * support/cpp2/cppexp.c, support/cpp2/hashtable.h,
1663           support/cpp2/Makefile.in, support/cpp2/cppfiles.c,
1664           support/cpp2/output.h, support/cpp2/cppinit.c,
1665           support/cpp2/cpplib.c, support/cpp2/cpplib.h,
1666           support/cpp2/Makefile.bcc, support/cpp2/cpphash.c,
1667           support/cpp2/cppdefault.c, support/cpp2/system.h,
1668           support/cpp2/cpphash.h, support/cpp2/cpplex.c,
1669           support/cpp2/cppdefault.h, support/cpp2/mbchar.c,
1670           support/cpp2/prefix.c, support/cpp2/except.h,
1671           support/cpp2/hwint.h, support/cpp2/cppmacro.c,
1672           support/cpp2/line-map.h, support/cpp2/sdcpp.dsp,
1673           support/cpp2/sdcc.h, support/cpp2/mkdeps.c,
1674           support/cpp2/version.c, support/cpp2/cppmain.c,
1675           support/cpp2/version.h, support/cpp2/hashtable.c,
1676           support/cpp2/cpperror.c:
1677           synchronized with GCC CPP release version 3.3.6,
1678           the latest where cppmain.c still exists.
1679         * support/cpp2/cpptrad.c, support/cpp2/sdcppmain.c,
1680           support/cpp2/sdcppinit.c: added
1681
1682 2006-11-27 Borut Razem <borut.razem AT siol.net>
1683
1684         * support/cpp2/cpplex.c:
1685           fixed _asm ... _endasm handling bug, introduce with GCC CPP
1686           synchronization
1687         * support/cpp2/cpplib.c: removed definitions of unused variables
1688
1689 2006-11-26 Borut Razem <borut.razem AT siol.net>
1690
1691         * support/cpp2/libiberty.h: commented out x*alloc() declarations
1692           since they are redefined by macros in support/cpp2/sdcc.h
1693         * support/cpp2/sdcc.h: x*alloc macro redefinition
1694
1695 2006-11-25 Borut Razem <borut.razem AT siol.net>
1696
1697         * support/cpp2/cppexp.c, support/cpp2/hashtable.h,
1698           support/cpp2/configure, support/cpp2/Makefile.in,
1699           support/cpp2/cppfiles.c, support/cpp2/output.h,
1700           support/cpp2/cppinit.c, support/cpp2/cpplib.c,
1701           support/cpp2/config.h, support/cpp2/cpplib.h,
1702           support/cpp2/Makefile.bcc, support/cpp2/cpphash.c,
1703           support/cpp2/cppdefault.c, support/cpp2/config.in,
1704           support/cpp2/system.h, support/cpp2/cpplex.c,
1705           support/cpp2/cpphash.h, support/cpp2/mbchar.c,
1706           support/cpp2/cppdefault.h, support/cpp2/prefix.c
1707           support/cpp2/hwint.h, support/cpp2/mbchar.h,
1708           support/cpp2/prefix.h, support/cpp2/cppmacro.c,
1709           support/cpp2/configure.in, support/cpp2/intl.h,
1710           support/cpp2/sdcpp.dsp, support/cpp2/acconfig.h,
1711           support/cpp2/sdcc.h, support/cpp2/mkdeps.c,
1712           support/cpp2/version.c, support/cpp2/cppmain.c,
1713           support/cpp2/ansidecl.h, support/cpp2/libiberty.h,
1714           support/cpp2/hashtable.c, support/cpp2/aclocal.m4,
1715           support/cpp2/cpperror.c,
1716           support/cpp2/libiberty/safe-ctype.c,
1717           support/cpp2/libiberty/safe-ctype.h,
1718           support/cpp2/libiberty/splay-tree.c,
1719           support/cpp2/libiberty/obstack.c,
1720           support/cpp2/libiberty/lbasename.c,
1721           support/cpp2/libiberty/splay-tree.h,
1722           support/cpp2/libiberty/obstack.h:
1723           synchronized with GCC CPP release version 3.2.3,
1724           the latest before integration of cpp into gcc
1725         * support/cpp2/except.h, support/cpp2/line-map.c,
1726           support/cpp2/line-map.h,
1727           support/cpp2/libiberty/hex.c,
1728           support/cpp2/libiberty/concat.c,
1729           support/cpp2/libiberty/filenames.h: added
1730         * support/cpp2/intl.c: deleted
1731
1732 2006-11-24 Borut Razem <borut.razem AT siol.net>
1733
1734         * src/SDCC.y: enabled compilation of empty source file
1735         * support/Util/SDCCerr.[ch]: added sdcc warning 190 -
1736           "ISO C forbids an empty source file"
1737         * device/lib/_startup.c, device/lib/printf_tiny.c: disable warning 190
1738           if all the code is ifdefed out.
1739
1740 2006-11-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1741
1742         * src/hc08/gen.c (genPcall): fix for bug #1601032
1743
1744 2006-11-23 Maarten Brock <sourceforge.brock AT dse.nl>
1745
1746         * device/include/mcs51/c8051f000.h, device/include/mcs51/C8051F000.h,
1747         * device/include/mcs51/c8051f018.h, device/include/mcs51/C8051F018.h,
1748         * device/include/mcs51/c8051f020.h, device/include/mcs51/C8051F020.h,
1749         * device/include/mcs51/c8051f040.h, device/include/mcs51/C8051F040.h,
1750         * device/include/mcs51/c8051f060.h, device/include/mcs51/C8051F060.h,
1751         * device/include/mcs51/c8051f120.h, device/include/mcs51/C8051F120.h,
1752         * device/include/mcs51/c8051f200.h, device/include/mcs51/C8051F200.h,
1753         * device/include/mcs51/c8051f300.h, device/include/mcs51/C8051F300.h,
1754         * device/include/mcs51/c8051f310.h, device/include/mcs51/C8051F310.h,
1755         * device/include/mcs51/c8051f320.h, device/include/mcs51/C8051F320.h,
1756         * device/include/mcs51/c8051f326.h, device/include/mcs51/C8051F326.h,
1757         * device/include/mcs51/c8051f330.h, device/include/mcs51/C8051F330.h,
1758         * device/include/mcs51/c8051f340.h, device/include/mcs51/C8051F340.h,
1759         * device/include/mcs51/c8051f350.h, device/include/mcs51/C8051F350.h,
1760         * device/include/mcs51/c8051f410.h, device/include/mcs51/C8051F410.h:
1761           Renamed to all upper case as per the standard set by SiLabs
1762
1763 2006-11-23 Maarten Brock <sourceforge.brock AT dse.nl>
1764
1765         * device/include/mcs51/C8051F520.h: new, added
1766         * device/include/mcs51/compiler.h: added link about predefined macros
1767
1768 2006-11-23 Raphael Neider <rneider AT web.de>
1769
1770         * src/regression/Makefile: add -L path to fresh library
1771         * src/regression/simulate: emphasize FAILED output
1772         * src/regression/create_stc: output _failures from gpsim
1773         * src/regression/compare4.c,
1774         * src/regression/rotate6.c: fixed char literals,
1775           all compile, all run =8-D
1776
1777         * src/pic/pcode.h: added isPCASMDIR macro
1778         * src/pic/gen.c (genAnd): fixed bit offset
1779         * src/pic/ralloc.c (allocNewDirReg,allocDirReg,allocRegByName,
1780           packBits): unified register numbering schemes,
1781           (newReg): do not insert stack registers into hash table,
1782           (initStack): unpinned pseudo stack, simplified,
1783           (typeRegWithIdx): fixed retrieval of stack registers,
1784         * src/pic/pcode.c (addpCodeComment,sameBank): added,
1785           (pCodeReplace): removed invalid assertion,
1786           (insertPCodeInstruction): fixed newly added labels,
1787           (insertBankSwitch,BankSelect,IsBankChange,DoBankSelect,
1788           FixRegisterBankingInFlow,compareBankFlow,FixBankFlow,
1789           DumpFlow): removed unsed (broken?) code,
1790           (insertBankSel): prevent STATUS from being BANKSELed,
1791           (FixRegisterBanking): rewritten from scratch, implemented generic
1792             optimizations (suppress BANKSELs to same register and to registers
1793             present in all banks),
1794           (AnalyzeBanking): update flow after BANKSELection
1795
1796         * src/pic/glue.c (pic14_constructAbsMap): emit pseudo stack in
1797             sharebank, let linker place it, mark STKxx symbols as emitted
1798
1799 2006-11-21 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1800
1801         * src/regression/arrays.c,
1802         * src/regression/bank1.c,
1803         * src/regression/bool2.c,
1804         * src/regression/compare7.c,
1805         * src/regression/compare8.c,
1806         * src/regression/compare9.c,
1807         * src/regression/compare10.c,
1808         * src/regression/configword.c,
1809         * src/regression/for.c,
1810         * src/regression/mult1.c,
1811         * src/regression/pointer1.c,
1812         * src/regression/rotate6.c,
1813         * src/regression/string1.c,
1814         * src/regression/struct1.c,
1815         * src/regression/Makefile: make PIC14 regression tests run again
1816           (3 fail, 6 won't compile)
1817
1818 2006-11-21 Raphael Neider <rneider AT web.de>
1819
1820         * device/include/pic16/pic18f4550.h,
1821         * device/include/pic16/pic18f4455.h,
1822         * device/lib/pic16/libdev/pic18f4550.c,
1823         * device/lib/pic16/libdev/pic18f4455.c: fixed #1578591 and #1595144
1824         * configure.in: removed superfluous closing bracket
1825
1826 2006-11-21 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1827
1828         * device/lib/expf.c: Fixed bug 1599523: result of expf(x) is
1829           always positive.
1830
1831 2006-11-21 Raphael Neider <rneider AT web.de>
1832
1833         * src/pic/device.{c,h}: added pic14_getPIC()
1834         * src/pic/gen.c (continueIfTrue,jumpIfTrue): added PIC code,
1835           (genAnd): added PIC code for one case, fixes #1597044
1836         * src/pic/pcode.c (BankSelect): Ohoh, added generic optimization for
1837           SFRs that are present in all banks (e.g., STATUS)
1838
1839 2006-11-20 Raphael Neider <rneider AT web.de>
1840
1841         * src/pic/pcode.c: changed inverted ops for DECFSZ/DECFSZW and
1842           INCFSZ/INCFSZW and declared them as changing Z bit,
1843           (insertPCodeInstruction): correctly invert the above instructions,
1844           fixes #1599333,
1845           (DoBankSelect): don't panic on po_immediates
1846
1847 2006-11-14 Maarten Brock <sourceforge.brock AT dse.nl>
1848
1849         * as/link/aslink.h,
1850         * as/link/mcs51/lkihx.c (newArea),
1851         * as/link/mcs51/lkrloc.c: renamed newArea() to ihxNewArea()
1852         * as/link/mcs51/lkihx.c (ihx): output reset vector as start address
1853
1854 2006-11-11 Raphael Neider <rneider AT web.de>
1855
1856         * src/pic/pcode.c (newpCodeOpBit): search SymbolTab for referenced
1857           bitfield symbols, fixes #1579535 (once more...).
1858
1859 2006-11-09 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1860
1861         * support/regression/generate-cases.py,
1862         * support/regression/fwk/include/testfwk.h,
1863         * support/regression/fwk/lib/testfwk.c: used code pointers,
1864           (about 50kByte less code generated for mcs51)
1865
1866 2006-11-06 Borut Razem <borut.razem AT siol.net>
1867
1868         * debugger/mcs51/acinclude.m4, debugger/mcs51/aclocal.m4,
1869           debugger/mcs51/configure: fixed failed check because the function
1870           rl_function_of_keyseq isn't in Readline 5.2. Thanks to Ilya Goldberg
1871           who submitted the patch for gpsim.
1872         * debugger/mcs51/configure.in: removed the result message
1873         * debugger/mcs51/Makefile.in: fixed the config.status warning
1874           "... seems to ignore the --datarootdir setting"
1875
1876 2006-11-03 Maarten Brock <sourceforge.brock AT dse.nl>
1877
1878         * device/include/mcs51/c8051f020.h,
1879         * device/include/mcs51/c8051f040.h,
1880         * device/include/mcs51/c8051f060.h,
1881         * device/include/mcs51/c8051f120.h: added PS0, fixed bug 1589279
1882         * src/z80/gen.c (gencjneshort),
1883         * src/z80/peeph.def: applied patch 1571373, thanks Philipp Krause
1884
1885 2006-10-31 Borut Razem <borut.razem AT siol.net>
1886
1887         * debugger/mcs51/acinclude.m4, debugger/mcs51/aclocal.m4,
1888           debugger/mcs51/configure: get readline version
1889
1890 2006-10-30 Borut Razem <borut.razem AT siol.net>
1891
1892         * debugger/mcs51/sdcdb.c: replaced hardcoded "/" with DIR_SEPARATOR_STRING
1893         * debugger/mcs51/acinclude.m4, debugger/mcs51/aclocal.m4,
1894           debugger/mcs51/configure: locate readline even when cross compiling
1895         * support/scripts/sdcc.nsi: include readline5.dll into the setup package
1896
1897 2006-10-29 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1898
1899         * device/include/mcs51/serial_IO.h: putchar() and getchar() using
1900           serial port.
1901
1902 2006-10-29 Maarten Brock <sourceforge.brock AT dse.nl>
1903
1904         * device/include/malloc.h,
1905         * device/lib/calloc.c,
1906         * device/lib/free.c,
1907         * device/lib/malloc.c,
1908         * device/lib/realloc.c: moved definition of struct into sources
1909         * support/regression/tests/malloc.c: use void* for init_dynamic_memory()
1910
1911 2006-10-29 Maarten Brock <sourceforge.brock AT dse.nl>
1912
1913         * as/asx8051.dsp: corrected output directories
1914         * as/link/hc08: new directory for hc08 linker
1915         * as/hc08/aslink.h,             as/link/aslink.h,
1916         * as/hc08/aslink.mak,           as/link/hc08/aslink.mak,
1917         * as/hc08/clean.mk,             as/link/hc08/clean.mk,
1918         * as/hc08/link_hc08.dsp,        as/link/hc08/link_hc08.dsp,
1919         * as/hc08/lkaomf51.c,           as/link/hc08/lkaomf51.c,
1920         * as/hc08/lkarea.c,             as/link/hc08/lkarea.c,
1921         * as/hc08/lkdata.c,             as/link/hc08/lkdata.c,
1922         * as/hc08/lkelf.c,              as/link/hc08/lkelf.c,
1923         * as/hc08/lkihx.c,              as/link/hc08/lkihx.c,
1924         * as/hc08/lklibr.c,             as/link/hc08/lklibr.c,
1925         * as/hc08/lkmain.c,             as/link/hc08/lkmain.c,
1926         * as/hc08/lkmem.c,              as/link/hc08/lkmem.c,
1927         * as/hc08/lkrloc.c,             as/link/hc08/lkrloc.c,
1928         * as/hc08/lks19.c,              as/link/hc08/lks19.c,
1929         * as/hc08/Makefile.aslink,      as/link/hc08/Makefile.aslink,
1930         * as/hc08/Makefile.bcc,         as/link/hc08/Makefile.bcc,
1931         * as/hc08/Makefile.in,          as/link/hc08/Makefile.in,
1932         * as/link/hc08/conf.mk,
1933         * configure,
1934         * configure.in,
1935         * Makefile.in,
1936         * sdcc.dsw: moved hc08 linker to as/link/hc08
1937         * as/hc08/lkeval.c,     as/link/mcs51/lkeval.c,     as/link/lkeval.c,
1938         * as/hc08/lkhead.c,     as/link/mcs51/lkhead.c,     as/link/lkhead.c,
1939         * as/hc08/lklex.c,      as/link/mcs51/lklex.c,      as/link/lklex.c,
1940         * as/hc08/lklist.c,     as/link/mcs51/lklist.c,     as/link/lklist.c,
1941         * as/hc08/lknoice.c,    as/link/mcs51/lknoice.c,    as/link/lknoice.c,
1942         * as/hc08/lksym.c,      as/link/mcs51/lksym.c,      as/link/lksym.c,
1943         * as/link/mcs51/aslink.dsp,
1944         * as/link/mcs51/Makefile.in: factored out the common files
1945         * as/hc08/lkstore.c: deleted, use the one already in as/link/
1946         * as/clean.mk: extra cleaning common files
1947         * as/link/mcs51/strcmpi.c,      as/strcmpi.c: moved
1948         * as/link/mcs51/strcmpi.h: deleted, moved protoype to aslink.h
1949         * as/mcs51/asm.h: include sdccconf.h or sdcc_vc.h
1950
1951 2006-10-29 Raphael Neider <rneider AT web.de>
1952
1953         * src/pic/ralloc.c (newReg): create aliases for registers with
1954           multiple names to fix #1579535 and #1584001,
1955           (regWithIdx,dirregWithName): resolve aliases on lookup
1956         * src/pic/pcode.c (DoBankSelect): die with error message on failing
1957           bankselect
1958         * device/lib/pic/libdev/Makefile.in: move pseudo stack down to 0x4f
1959           to prevent build errors on small devices
1960
1961 2006-10-28 Raphael Neider <rneider AT web.de>
1962
1963         * src/pic/gen.c (genFunction,genCall): drop "same code page"
1964           assumption within interrupt handlers, fixes #1584940
1965         * src/pic/glue.c (pic14_constructAbsMap): mark absolute symbols as
1966           "emitted" to avoid emitting them again in udata
1967
1968 2006-10-27 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1969
1970         * device/lib/_putchar.c, device/lib/_getchar.c, device/lib/inituart.c:
1971         Removed.
1972
1973 2006-10-26 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1974
1975         * device/lib/_putchar.c, device/lib/_getchar.c, device/lib/inituart.c:
1976         Initialize uart only if SM0 and SM1 are zero.  Also, use flag to turn
1977         on/off CR to CRLF conversion.
1978
1979 2006-10-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1980
1981         * doc/sdccman.lyx: updated IRQ section
1982
1983 2006-10-24 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1984
1985         * device/lib/serial_io.c: removed
1986         * device/lib/_putchar.c, device/lib/_getchar.c, device/lib/inituart.c
1987         replacements for serial_io.c
1988
1989 2006-10-24 Maarten Brock <sourceforge.brock AT dse.nl>
1990
1991         * src/z80/main.c (_process_pragma, _parseOptions): fixed bug 1583318
1992
1993 2006-10-24 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1994
1995         * device/lib/serial_io.c: Default putchar() and getchar() for
1996           mcs51 uses serial port.
1997
1998 2006-10-23 Maarten Brock <sourceforge.brock AT dse.nl>
1999
2000         * src/mcs51/gen.c (movc): improved check for 0 and 1, see RFE 1582704
2001
2002 2006-10-23 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2003
2004         * support/regression/ports/mcs51/support.c: smaller
2005         _sdcc_external_startup()
2006         * device/lib/mcs51/crtxclear.asm: don't check high byte of l_PSEG
2007
2008 2006-10-20 Maarten Brock <sourceforge.brock AT dse.nl>
2009
2010         * device/lib/gbz80/crt0.s,
2011         * device/lib/gbz80/crt0_rle.s,
2012         * device/lib/gbz80/div.s,
2013         * device/lib/gbz80/fstubs.s,
2014         * device/lib/gbz80/heap.s,
2015         * device/lib/gbz80/mul.s,
2016         * device/lib/gbz80/putchar.s,
2017         * device/lib/gbz80/stubs.s,
2018         * device/lib/z80/crt0.s,
2019         * device/lib/z80/crt0_rle.s,
2020         * device/lib/z80/div.s,
2021         * device/lib/z80/fstubs.s,
2022         * device/lib/z80/heap.s,
2023         * device/lib/z80/mul.s,
2024         * device/lib/z80/putchar.s,
2025         * device/lib/z80/stubs.s: reverted, I was mistaken
2026
2027 2006-10-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2028
2029         * src/mcs51/peeph.def: peephole 238.x added check for notvolatile
2030         * support/regression/ports/mcs51/support.c: removed race
2031         condition on TI in _putchar allowing to use serial port mode 0
2032
2033 2006-10-20 Borut Razem <borut.razem AT siol.net>
2034
2035         * debugger/mcs51/sdcdb.c: replaced isblank() with isspace()
2036
2037 2006-10-19 Maarten Brock <sourceforge.brock AT dse.nl>
2038
2039         * device/lib/gbz80/crt0.s,
2040         * device/lib/gbz80/crt0_rle.s,
2041         * device/lib/gbz80/div.s,
2042         * device/lib/gbz80/fstubs.s,
2043         * device/lib/gbz80/heap.s,
2044         * device/lib/gbz80/mul.s,
2045         * device/lib/gbz80/putchar.s,
2046         * device/lib/gbz80/stubs.s,
2047         * device/lib/z80/crt0.s,
2048         * device/lib/z80/crt0_rle.s,
2049         * device/lib/z80/div.s,
2050         * device/lib/z80/fstubs.s,
2051         * device/lib/z80/heap.s,
2052         * device/lib/z80/mul.s,
2053         * device/lib/z80/putchar.s,
2054         * device/lib/z80/stubs.s: removed all leading underscores from area names
2055
2056 2006-10-17 Maarten Brock <sourceforge.brock AT dse.nl>
2057
2058         * support/regression/ports/mcs51/support.c: use highest baudrate so the
2059           regression tests are not waiting in the simulator for simulated
2060           transmission of debug output
2061
2062 2006-10-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2063
2064         * device/lib/printf_large.c: slightly smaller
2065         * doc/sdccman.lyx: do not use spaces within html links
2066
2067 2006-10-16 Borut Razem <borut.razem AT siol.net>
2068
2069         * configure.in, configure, sdccconf_in.h, src/SDCCglobal,
2070           debugger/mcs51/Makefile.in, debugger/mcs51/sdcdb.[ch],
2071           debugger/mcs51/aclocal.m4, debugger/mcs51/acinclide.m4,
2072           debugger/mcs51/config.h.in, debugger/mcs51/configure.in,
2073           debugger/mcs51/configure:
2074           [ 1185668 ] add gnu readline support to sdcdb - enabled
2075
2076 2006-10-16 Raphael Neider <rneider AT web.de>
2077
2078         * src/pic/pcode.c (BankSelect): another fix on (partial) BANKSELs,
2079           fixes #1577882, removes close to all banking optimizations
2080
2081 2006-10-15 Maarten Brock <sourceforge.brock AT dse.nl>
2082
2083         * src/SDCCsymt.c (checkSClass): no error for uninitialised absolute
2084           variables in code memory
2085         * support/regression/tests/absolute.c: added test for this
2086
2087 2006-10-15 Raphael Neider <rneider AT web.de>
2088
2089         * src/pic/pcode.c (InsertBankSel): suppress BANKSELs for one bank
2090           devices,
2091           (BankSelect): emit BANKSEL before touching linker-placed regs,
2092           fixes #1570934
2093
2094 2006-10-10 Raphael Neider <rneider AT web.de>
2095
2096         * src/SDCCmain.c (optionsTable): accept --stack-size for PICs,
2097         * src/pic/device.c (pic14_getSharebankSize,pic14_getSharebankAddress),
2098         * src/pic/main.c (_pic14_parseOptions),
2099         * src/pic/main.h: mostly reverted to previous state, now use results
2100             from SDCCmain.c's argument parsing
2101
2102 2006-10-10 Borut Razem <borut.razem AT siol.net>
2103
2104         * debugger/mcs51/break.[ch], debugger/mcs51/cmd.c,
2105           debugger/mcs51/sdcdb.[ch], debugger/mcs51/simi.c:
2106           [ 1185668 ] add gnu readline support to sdcdb -
2107           prepared for READLINE, not enabled yet,
2108           thanks to <tal.bav AT gmail.com>
2109
2110 2006-10-10 Raphael Neider <rneider AT web.de>
2111
2112         * src/pic16/pcode.c (pic16_pCode2str): use isACCESS_BANK macro
2113         * src/pic16/devices.inc,
2114         * device/include/pic16 (pic18f[24]620.h),
2115         * device/include/pic18fregs.h,
2116         * device/lib/pic16/pics.all,
2117         * device/lib/pic16/libdev/pic18f[24]{620,525}.c): added support for
2118             18f2620, 18f4620, 18f2525, and 18f4525 devices, thanks to
2119             Gary Plumbridge and Anton Strobl
2120
2121 2006-10-10 Raphael Neider <rneider AT web.de>
2122
2123         * src/pic/main.c (_pic14_parseOptions): added --stack-loc=NUM and
2124           --stack-siz=NUM options to configure the argument passing stack
2125         * src/pic/main.h: added stackLocation and stackSize to pic14_options_t
2126         * src/pic/device.c (mapRegister): catch out-of-memory SIGSEGVs,
2127           (pic14_getSharebankSize): obey --stack-siz=NUM,
2128           (pic14_getSharebankAddress): obey --stack-loc=NUM
2129
2130 2006-10-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2131
2132         * doc/sdccman.lyx: added to the manual
2133         * doc/figures/ddd_example.png: added (neither pdflatex nor
2134         most browsers seem to like the .eps file)
2135
2136 2006-10-06 Bernhard Held <bernhard AT bernhardheld.de>
2137
2138         * src/SDCCglue.c (tempfileandname): changed un*x tmp search paths
2139         to /tmp and /var/tmp acc. LSB
2140         * src/SDCCast.c (addCast): Fixed bug 1571231: promote in case of
2141         RESULT_TYPE_IFX
2142         * support/regression/tests/onebyte.c: added test
2143
2144 2006-10-05 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2145
2146         * src/mcs51/gen.c: emitcode for "add a,0x%02x" requires only 8 bits.
2147
2148 2006-10-05 Borut Razem <borut.razem AT siol.net>
2149
2150         * partially fixed [ 1570701 ] peephole - not replacing code from multiline macros,
2151           thanks to dfulab:
2152           - sdcc.dsw: changed property eol-style to CRLF
2153           - support/scripts/resource.rc: replaced references to "afxres.h" with "winres.h"
2154
2155 2006-10-04 Raphael Neider <rneider AT web.de>
2156
2157         * device/include/pic/{pic16f84.h,pic16f84a.h},
2158         * device/lib/pic/libdev/{pic16f84.c,pic16f84a.c}: added PORT[AB]_bits
2159           from patch #1522504, thanks to Robas Teodor
2160
2161 2006-10-02 Maarten Brock <sourceforge.brock AT dse.nl>
2162
2163         * as/link/z80/lkarea.c: essentially reverted lnksect() to #4380 which
2164           fixes bug 1566015
2165
2166 2006-10-01 Maarten Brock <sourceforge.brock AT dse.nl>
2167
2168         * src/pic16/glue.c (pic16emitMaps),
2169         * src/pic/glue.c (pic14emitMaps): hopefully fixed bug 1568779
2170         * device/lib/gets.c: fixed bug 1568829,thanks Philipp Krause
2171         * device/lib/pic16/libc/string/memcpypgm2ram.c,
2172         * device/lib/pic16/libc/string/memcpyram2ram.c: fixed bug 1568836, thanks
2173           Philipp Krause
2174         * as/mcs51/asmain.c (asmbl, newdot): fixed problems with absolute areas
2175         * as/link/mcs51/lkmem.c (summary2): reverted, do do count abs segments
2176
2177 2006-09-30 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2178
2179         * support/librarian/sdcclib.c: Added option -l.
2180         * as/link/mcs51/lkmem.c: don't use absolute segments to compute memory
2181           usage totals.
2182         * device/lib/make51lib.bat: added.  Allows building mcs51 libraries easily
2183           using Windows command prompt.
2184
2185 2006-09-30 Maarten Brock <sourceforge.brock AT dse.nl>
2186
2187         * device/lib/libsdcc.lib: added module rand
2188         * src/ds390/ralloc.c (rematStr),
2189         * src/hc08/ralloc.c (rematStr),
2190         * src/mcs51/ralloc.c (rematStr),
2191         * src/z80/ralloc.c (rematStr): made output more consistent
2192         * src/mcs51/gen.c: cosmetic changes
2193
2194 2006-09-30 Maarten Brock <sourceforge.brock AT dse.nl>
2195
2196         * src/port.h: added mem.cabs_name to PORT
2197         * src/ds390/main.c,
2198         * src/hc08/main.c,
2199         * src/mcs51/main.c,
2200         * src/pic16/main.c,
2201         * src/pic/main.c,
2202         * src/xa51/main.c,
2203         * src/z80/main.c: added cabs_name initializers
2204         * src/SDCCglue.c (emitStaticSeg): allocate and initialize absolute
2205           constants
2206           (emitMaps): emit absolutes in code memory into cabs_name
2207         * src/SDCCmem.c,
2208         * src/SDCCmem.h: added memory map c_abs and defined CABS_NAME
2209         * src/ds390/gen.c (genCodePointerGet): fixed bug if left is a literal
2210         * support/regression/fwk/include/testfwk.h: added define for at
2211         * support/regression/tests/absolute.c: added, new
2212
2213 2006-09-29 Maarten Brock <sourceforge.brock AT dse.nl>
2214
2215         * src/mcs51/gen.c (genPlusIncr, genMinusDec, genAddrOf): small
2216           optimizations, see also patch 887161 by Stas Sergeev
2217         * src/mcs51/peeph.def(104, 207, 209, 212): disabled as they do not seem
2218           to be necessary anymore,
2219           (102, 103, 104, 127): renamed all occurances of bp to _bp
2220
2221 2006-09-27 Maarten Brock <sourceforge.brock AT dse.nl>
2222
2223         * device/include/mcs51/at89c51snd1c.h: fixed MSK_SREQ definition
2224           thanks Weston T. Schmidt for patch 1555221
2225         * src/mcs51/peeph.def: renamed rule 257 to 257.a, added 257.b
2226         * src/SDCCicode.c(geniCodeMultiply): small optimization
2227
2228 2006-09-26 Maarten Brock <sourceforge.brock AT dse.nl>
2229
2230         * device/include/stdlib.h: added rand prototypes
2231         * device/lib/rand.c: new, added
2232         * device/lib/Makefile.in: added rand.c
2233         * src/z80/peeph.def,
2234         * src/z80/peeph-gbz80.def,
2235         * src/z80/peeph-z80.def: updated conditonals, fixed bug 1565908
2236
2237 2006-09-20 Raphael Neider <rneider AT web.de>
2238
2239         * device/lib/pic16/libio/i2c/i2cnack.c (i2c_nack): fixed ACKDT bit
2240
2241 2006-09-19 Maarten Brock <sourceforge.brock AT dse.nl>
2242
2243         * as/link/aslink.h: cosmetic changes
2244         * as/link/mcs51/Makefile.in,
2245         * as/link/z80/Makefile.in: fixed build on CF where VPATH is used
2246
2247 2006-09-17 Maarten Brock <sourceforge.brock AT dse.nl>
2248
2249         * as/link/aslink.h,
2250         * as/link/mcs51/aslink.h,
2251         * as/link/z80/aslink.h: merged and moved to as/link/
2252         * as/link/lkstore.c,
2253         * as/link/mcs51/lkstore.c: moved to as/link/
2254         * as/link/clean.mk: remove *.o
2255         * as/link/mcs51/alloc.h: deleted
2256         * as/link/mcs51/lkarea.c: added lnksect prototype
2257         * as/link/mcs51/lkdata.c,
2258         * as/link/mcs51/lklex.c,
2259         * as/link/mcs51/lkmain.c: renamed as_getline to lk_getline
2260         * as/link/mcs51/lkmem.c,
2261         * as/link/mcs51/lknoice.c: removed include strcmpi.h
2262         * as/link/mcs51/lksym.c: include stdlib.h instead of malloc.h or alloc.h
2263         * as/link/mcs51/aslink.dsp,
2264         * as/link/mcs51/Makefile.aslink,
2265         * as/link/mcs51/Makefile.bcc,
2266         * as/link/mcs51/Makefile.in: updated for moved files
2267         * as/link/z80/lkarea.c,
2268         * as/link/z80/lkhead.c,
2269         * as/link/z80/lklex.c,
2270         * as/link/z80/lklibr.c,
2271         * as/link/z80/lklist.c,
2272         * as/link/z80/lkmain.c,
2273         * as/link/z80/lkrloc.c,
2274         * as/link/z80/lksym.c: synced with mcs51
2275         * as/link/z80/lkdata.c,
2276         * as/link/z80/lkeval.c,
2277         * as/link/z80/lkihx.c,
2278         * as/link/z80/lks19.c: cosmetic changes
2279         * as/link/z80/Makefile.in,
2280         * as/link/z80/linkgbz80.dsp,
2281         * as/link/z80/linkz80.dsp: updated for moved files
2282
2283 2006-09-16 Borut Razem <borut.razem AT siol.net>
2284
2285         * debugger/mcs51/sdcdb.c: partially fixed
2286           [ 1203664 ] sdcdb fails to open files w. two "." periods
2287         * debugger/mcs51/simi.c, debugger/mcs51/symtab.c,
2288           debugger/mcs51/symtab.h: fixed indenting
2289         * configure.in, configure: up to date with latest Maarten's changes
2290
2291 2006-09-15 Maarten Brock <sourceforge.brock AT dse.nl>
2292
2293         as/link/mcs51
2294         as/aslink.dsp,                  as/link/mcs51/aslink.dsp,
2295         as/link/mcs51/aslink.h,         as/mcs51/aslink.h,
2296         as/link/mcs51/aslink.mak,       as/mcs51/aslink.mak,
2297         as/link/mcs51/lkaomf51.c,       as/mcs51/lkaomf51.c,
2298         as/link/mcs51/lkarea.c,         as/mcs51/lkarea.c,
2299         as/link/mcs51/lkdata.c,         as/mcs51/lkdata.c,
2300         as/link/mcs51/lkeval.c,         as/mcs51/lkeval.c,
2301         as/link/mcs51/lkhead.c,         as/mcs51/lkhead.c,
2302         as/link/mcs51/lkihx.c,          as/mcs51/lkihx.c,
2303         as/link/mcs51/lklex.c,          as/mcs51/lklex.c,
2304         as/link/mcs51/lklibr.c,         as/mcs51/lklibr.c,
2305         as/link/mcs51/lklist.c,         as/mcs51/lklist.c,
2306         as/link/mcs51/lkmain.c,         as/mcs51/lkmain.c,
2307         as/link/mcs51/lkmem.c,          as/mcs51/lkmem.c,
2308         as/link/mcs51/lknoice.c,        as/mcs51/lknoice.c,
2309         as/link/mcs51/lkrloc.c,         as/mcs51/lkrloc.c,
2310         as/link/mcs51/lks19.c,          as/mcs51/lks19.c,
2311         as/link/mcs51/lkstore.c,        as/mcs51/lkstore.c,
2312         as/link/mcs51/lksym.c,          as/mcs51/lksym.c,
2313         as/link/mcs51/Makefile.aslink,  as/mcs51/Makefile.aslink,
2314         as/link/mcs51/alloc.h,
2315         as/link/mcs51/clean.mk,
2316         as/link/mcs51/conf.mk,
2317         as/link/mcs51/Makefile.bcc,
2318         as/link/mcs51/Makefile.in,
2319         as/link/mcs51/readme.390,
2320         as/link/mcs51/strcmpi.c,
2321         as/link/mcs51/strcmpi.h,
2322         as/mcs51/clean.mk,
2323         as/mcs51/Makefile.bcc,
2324         as/mcs51/Makefile.in,
2325         configure,
2326         Makefile.in,
2327         sdcc.dsw: moved mcs51 linker to as/link/mcs51
2328
2329 2006-09-14 Maarten Brock <sourceforge.brock AT dse.nl>
2330
2331         * as/link,
2332         * as/link/Makefile.in,
2333         * as/link/z80/linkgbz80.dsp,
2334         * as/link/z80/linkz80.dsp,
2335         * configure,
2336         * link,
2337         * link/clean.mk,
2338         * link/Makefile.in,
2339         * link/README,
2340         * link/z80,
2341         * link/z80/aslink.h,
2342         * link/z80/clean.mk,
2343         * link/z80/conf.mk,
2344         * link/z80/linkgbz80.dsp,
2345         * link/z80/linkz80.dsp,
2346         * link/z80/lkarea.c,
2347         * link/z80/lkdata.c,
2348         * link/z80/lkeval.c,
2349         * link/z80/lkgb.c,
2350         * link/z80/lkgg.c,
2351         * link/z80/lkhead.c,
2352         * link/z80/lkihx.c,
2353         * link/z80/lklex.c,
2354         * link/z80/lklibr.c,
2355         * link/z80/lklist.c,
2356         * link/z80/lkmain.c,
2357         * link/z80/lkrloc.c,
2358         * link/z80/lks19.c,
2359         * link/z80/lksym.c,
2360         * link/z80/Makefile.in,
2361         * Makefile.in,
2362         * sdcc.dsw: moved link/ to as/link/
2363
2364 2006-09-11 Maarten Brock <sourceforge.brock AT dse.nl>
2365
2366         * as/mcs51/i51mch.c (machine): fixed warning
2367
2368 2006-09-10 Maarten Brock <sourceforge.brock AT dse.nl>
2369
2370         * as/mcs51/i51mch.c (machine): S_DJNZ fixed bug 1554318
2371
2372 2006-09-09 Borut Razem <borut.razem AT siol.net>
2373
2374         * debugger/mcs51/sdcdb.c, debugger/mcs51/simi.c:
2375           sdcdb WIN32 native port
2376         * src/clean.mk: fixed
2377
2378 2006-09-08 Borut Razem <borut.razem AT siol.net>
2379
2380         * doc/sdccman.lyx: SDCDB and ucSim are available on Win32 platforms.
2381
2382 2006-09-08 Raphael Neider <rneider AT web.de>
2383
2384         * src/pic16/main.c (_pic16_linkEdit,pic16_linkCmd),
2385         * src/pic/main.c(_pic14_do_link, linkCmd): pass "-w" and "-r"
2386             to gplink to disable processor mismatch warning and to allow
2387             the use of devices with only aliased (shared) memory banks,
2388           (_pic16_genAssemblerPreamble): include pXXX.inc on --mplab-comp
2389
2390 2006-09-07 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2391
2392         * doc/sdccman.lyx: Some re-formating plus example on using
2393           #pragma preproc_asm +/-
2394
2395 2006-09-07 Borut Razem <borut.razem AT siol.net>
2396
2397         * support/scripts/sdcc.nsi: added SDCDB executables in a separate
2398           section
2399
2400 2006-09-06 Borut Razem <borut.razem AT siol.net>
2401
2402         * support/scripts/sdcc.nsi: fixed Error: unterminated string parsing
2403           line at sdcc.nsi:153
2404         * sdcc/debugger/mcs51/simi.c: argsToCmdLine() fixes
2405
2406 2006-09-05 Borut Razem <borut.razem AT siol.net>
2407
2408         * configure.in, configure: support for winsock2
2409         * debugger/mcs51/break.h, debugger/mcs51/cmd.c,
2410           debugger/mcs51/cmd.h, debugger/mcs51/sdcdb.c,
2411           debugger/mcs51/sdcdb.h, debugger/mcs51/simi.c,
2412           debugger/mcs51/simi.h, debugger/mcs51/symtab.c,
2413           debugger/mcs51/symtab.h: sdcdb WIN32 native port
2414
2415 2006-09-05 Maarten Brock <sourceforge.brock AT dse.nl>
2416
2417         * src/SDCCopt.c (cnvToFcall): fixed bug 1551947 by updating OP_USES
2418           and OP_DEFS
2419         * support/regression/tests/bug1551947.c: new, added
2420         * src/SDCCsymt.h: strings are char* not byte*
2421
2422 2006-09-05 Raphael Neider <rneider AT web.de>
2423
2424         * device/lib/pic16/libdev/pic18f4550.c,
2425           device/include/pic16/pic18f4550.h: added PORTD/TRISD
2426             declarations/definitions from patch #1520949
2427
2428 2006-09-05 Raphael Neider <rneider AT web.de>
2429
2430         * src/pic16/gen.c (genPackBits): fix assignment to 8-bit,
2431           byte-aligned bitfields, fixes #1539278
2432
2433 2006-09-05 Raphael Neider <rneider AT web.de>
2434
2435         * src/pic/gen.c (genReceive): skip unreferenced arguments,
2436           fixes #1544120
2437
2438 2006-09-04 Borut Razem <borut.razem AT siol.net>
2439
2440         * support/scripts/sdcc.nsi: move ucSim executables to a separate section
2441         * support/scripts/sdcc_cygwin_mingw32: don't disable ucsim,
2442           -mno-cygwin is a part of the compiler name
2443         * support/scripts/sdcc_mingw32: don't disable ucsim
2444
2445 2006-09-03 Borut Razem <borut.razem AT siol.net>
2446
2447         * sdcc.spec: corrected for 2.6.0. Thanks to Christer Weinigel.
2448         * device/lib/Makefile.in device/lib/clean.mk: small but essential corrections
2449
2450 2006-09-03 Raphael Neider <rneider AT web.de>
2451
2452         * src/pic/ralloc.c,
2453         * src/pic/pcode.c (InitReuseRegs): allocate registers with pseudo
2454           indices >= 0x1000 to disambiguate them from fixed regs __at(addr),
2455           fixes #1550049
2456
2457 2006-09-01 Borut Razem <borut.razem AT siol.net>
2458
2459         * sim/ucsim/cmd.src/cmdutil.cc: #include <sys/time.h> and <unistd.h>
2460           to make ppc-osx happy
2461
2462 2006-08-31 Borut Razem <borut.razem AT siol.net>
2463
2464         * sim/ucsim/cmd.src/newcmdposix.cc: #include <assert.h>
2465         * sim/ucsim/cmd.src/newcmd.cc: #include <ctype.h>
2466         * sim/ucsim/cmd.src/newcmd.cc: #include <ctype.h>
2467         * support/regression/ports/ds390/spec.mk,
2468           support/regression/ports/mcs51/spec.mk,
2469           support/regression/ports/xa51/spec.mk: introduced DEV_NULL variable.
2470           To run regression tests in mingw environment:
2471           make DEV_NULL=NUL CC=gcc
2472
2473 2006-08-30 Borut Razem <borut.razem AT siol.net>
2474
2475         * sim/ucsim/cmd.src/newcmdposix.cc, sim/ucsim/cmd.src/newcmdposixcl.h,
2476           sim/ucsim/cmd.src/newcmdwin32.cc, sim/ucsim/cmd.src/newcmdwin32cl.h,
2477           sim/ucsim/app.cc, sim/ucsim/appcl.h, sim/ucsim/configure,
2478           sim/ucsim/configure.in, sim/ucsim/ddconfig_in.h, sim/ucsim/error.cc,
2479           sim/ucsim/errorcl.h, sim/ucsim/option.cc, sim/ucsim/optioncl.h,
2480           sim/ucsim/utils.cc, sim/ucsim/utils.h, sim/ucsim/cmd.src/Makefile.in,
2481           sim/ucsim/avr.src/avr.cc, sim/ucsim/avr.src/avrcl.h,
2482           sim/ucsim/cmd.src/bp.cc, sim/ucsim/cmd.src/bpcl.h,
2483           sim/ucsim/cmd.src/cmdconf.cc, sim/ucsim/cmd.src/cmdgui.cc,
2484           sim/ucsim/cmd.src/cmdmem.cc, sim/ucsim/cmd.src/cmdset.cc,
2485           sim/ucsim/cmd.src/cmdsetcl.h, sim/ucsim/cmd.src/cmdstat.cc,
2486           sim/ucsim/cmd.src/cmduc.cc, sim/ucsim/cmd.src/cmduccl.h,
2487           sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/cmdutil.h,
2488           sim/ucsim/cmd.src/command.cc, sim/ucsim/cmd.src/commandcl.h,
2489           sim/ucsim/cmd.src/get.cc, sim/ucsim/cmd.src/getcl.h,
2490           sim/ucsim/cmd.src/info.cc, sim/ucsim/cmd.src/newcmd.cc,
2491           sim/ucsim/cmd.src/newcmdcl.h, sim/ucsim/cmd.src/set.cc,
2492           sim/ucsim/cmd.src/show.cc, sim/ucsim/cmd.src/timer.cc,
2493           sim/ucsim/hc08.src/hc08.cc, sim/ucsim/hc08.src/hc08cl.h,
2494           sim/ucsim/s51.src/Makefile.in, sim/ucsim/s51.src/interrupt.cc,
2495           sim/ucsim/s51.src/interruptcl.h, sim/ucsim/s51.src/pca.cc,
2496           sim/ucsim/s51.src/pcacl.h, sim/ucsim/s51.src/port.cc,
2497           sim/ucsim/s51.src/portcl.h, sim/ucsim/s51.src/serial.cc,
2498           sim/ucsim/s51.src/serialcl.h, sim/ucsim/s51.src/timer0.cc,
2499           sim/ucsim/s51.src/timer0cl.h, sim/ucsim/s51.src/timer1.cc,
2500           sim/ucsim/s51.src/timer1cl.h, sim/ucsim/s51.src/timer2.cc,
2501           sim/ucsim/s51.src/timer2cl.h, sim/ucsim/s51.src/uc390.cc,
2502           sim/ucsim/s51.src/uc390cl.h, sim/ucsim/s51.src/uc390hw.cc,
2503           sim/ucsim/s51.src/uc390hwcl.h, sim/ucsim/s51.src/uc51.cc,
2504           sim/ucsim/s51.src/uc51cl.h, sim/ucsim/s51.src/wdt.cc,
2505           sim/ucsim/s51.src/wdtcl.h, sim/ucsim/sim.src/hw.cc,
2506           sim/ucsim/sim.src/hwcl.h, sim/ucsim/sim.src/mem.cc,
2507           sim/ucsim/sim.src/memcl.h, sim/ucsim/sim.src/obsolete.cc,
2508           sim/ucsim/sim.src/obsolete.h, sim/ucsim/sim.src/sim.cc,
2509           sim/ucsim/sim.src/simcl.h, sim/ucsim/sim.src/stack.cc,
2510           sim/ucsim/sim.src/stackcl.h, sim/ucsim/sim.src/test_mem_speed.cc,
2511           sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
2512           sim/ucsim/xa.src/xa.cc, sim/ucsim/xa.src/xacl.h,
2513           sim/ucsim/z80.src/z80.cc, sim/ucsim/z80.src/z80cl.h:
2514           ucsim WIN32 native port
2515
2516 2006-08-30 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2517
2518         * doc/sdccman.lyx: added note on dynamic memory heap initialization
2519
2520 2006-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
2521
2522         * src/mcs51/gen.c (genAnd, genOr, genXor): fixed bug 1546986
2523         * src/ds390/gen.c (aopGetUsesAcc): handle AOP_DPTR2 and AOP_DPTRn too
2524
2525 2006-08-26 Maarten Brock <sourceforge.brock AT dse.nl>
2526
2527         * src/ds390/gen.c (genAnd, genOr, genXor): fixed bug 1546986
2528         * support/regression/tests/bug1546986.c: new, added
2529         * as/mcs51/.cvsignore,
2530         * debugger/mcs51/.cvsignore,
2531         * src/.cvsignore: deleted
2532
2533 2006-08-25 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2534
2535         * device/include/mcs51/P89c51RD2.h: fixed bug 1546936 (error in sbit
2536           definitions)
2537
2538 2006-08-20 Borut Razem <borut.razem AT siol.net>
2539
2540         * sim/ucsim/cmd.src/newcmd.cc, sim/ucsim/cmd.src/newcmdcl.h:
2541           removed cl_listen_console::match(), cl_console::match(),
2542           restructured cl_commander::proc_input()
2543
2544 2006-08-16 Borut Razem <borut.razem AT siol.net>
2545
2546         * sim/ucsim/cmd.src/newcmd.cc, sim/ucsim/cmd.src/newcmdcl.h,
2547           sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/cmdutil.h,
2548           sim/ucsim/sim.src/mem.cc, sim/ucsim/sim.src/uc.cc: code cleaning
2549
2550 2006-08-14 Borut Razem <borut.razem AT siol.net>
2551
2552         * support/regression/Makefile.in,
2553           support/regression/ports/pic14/gpsim.cmd,
2554           support/regression/ports/pic14/spec.mk,
2555           support/regression/ports/pic14/support.c:
2556           added pic14 regression test
2557
2558 2006-08-14 Maarten Brock <sourceforge.brock AT dse.nl>
2559
2560         * as/doc/asxhtm.html: documented changed ABS behaviour
2561         * as/doc/README: fixed some typos
2562
2563 2006-08-13 Maarten Brock <sourceforge.brock AT dse.nl>
2564
2565         * support/regression/tests/float_trans.c: disabled test if __STDC_IEC_559__
2566           not defined on host
2567
2568 2006-08-12 Borut Razem <borut.razem AT siol.net>
2569
2570         * support/regression/fwk/include/testfwk.h,
2571           support/regression/fwk/lib/testfwk.c,
2572           support/regression/generate-cases.py,
2573           support/regression/Makefile.in:
2574           regression test framework does not depend on function pointers and
2575           variable arguments
2576
2577 2006-08-09 Maarten Brock <sourceforge.brock AT dse.nl>
2578
2579         * device/include/stddef.h: c temporary hack to fix bug 1518273
2580
2581 2006-08-09 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2582
2583         * device/include/mcs51/cc2510fx.h: added
2584         * src/z80/z80.dsp, src/gbz80/gbz80.dsp: added support/Util/strcmpi.ch
2585           to projects.
2586
2587 2006-08-09 Maarten Brock <sourceforge.brock AT dse.nl>
2588
2589         * as/z80/assym.c (mlookup): ignore case when looking up mnemonics
2590         * as/z80/Makefile.in: added strcmpi.c
2591         * as/z80/z80adr.c: added upper case registers and lower case conditionals
2592         * support/Util/strcmpi.ch: added with intention to remove from mcs51/hc08
2593
2594 2006-08-08 Maarten Brock <sourceforge.brock AT dse.nl>
2595
2596         * device/lib/gbz80/asm_strings.s,
2597         * device/lib/gbz80/crt0_rle.s,
2598         * device/lib/gbz80/div.s,
2599         * device/lib/gbz80/mul.s,
2600         * device/lib/gbz80/shift.s,
2601         * device/lib/z80/asm_strings.s,
2602         * device/lib/z80/crt0_rle.s,
2603         * device/lib/z80/div.s,
2604         * device/lib/z80/mul.s,
2605         * device/lib/z80/shift.s: changed to all lower case menmonics except the
2606           flags which are all upper case
2607
2608 2006-08-07 Maarten Brock <sourceforge.brock AT dse.nl>
2609
2610         * as/z80/asm.h: made CASE_SENSITIVE 1
2611         * link/z80/aslink.h: made CASE_SENSITIVE 1
2612         * src/z80/gen.c (throughout): made all conditionals upper case
2613         * support/regression/tests/bug1503067.c: new
2614
2615 2006-08-07 Maarten Brock <sourceforge.brock AT dse.nl>
2616
2617         * src/z80/gen.c (aopPut): fixed bug !*ixy should be !*iyx,
2618           (shiftIntoPair): added case 2 for PAIR_IY,
2619           (setupToPreserveCarry): replaced parameters with iCode and check if
2620            PAIR_DE is in use to fix bug 1399290,
2621           (genPlus, genMinus): updated call to setupToPreserveCarry
2622         * support/regression/tests/bug1399290.c: new
2623
2624 2006-08-06 Maarten Brock <sourceforge.brock AT dse.nl>
2625
2626         * device/lib/Makefile.in (Z80SOURCES): enabled float support
2627         * sim/ucsim/z80.src/inst.cc (inst_rst): generate breakpoint on RST8,ACC==0
2628         * src/ds390/gen.c (shiftRLong),
2629         * src/hc08/gen.c (shiftLLong, shiftRLong): fixed bug 1533966
2630         * src/mcs51/gen.c (sameReg): changed to sameByte,
2631           (xch_a_aopGet): new,
2632           (shiftL2Left2Result, shiftR2Left2Result, shiftRLeftOrResult, shiftLLong,
2633            shiftRLong): fixed bug 1533966
2634         * src/z80/gen.c (shiftR2Left2Result, shiftL2Left2Result, genlshTwo,
2635           genLeftShiftLiteral, genrshTwo, genRightShiftLiteral): fixed bug 1533966
2636         * support/regression/Makefile.in: disabled z80, enabled ucz80
2637         * support/regression/tests/float_trans.c: enabled test for z80 and host
2638         * support/regression/tests/shifts2.c: new, for testing bug 1533966
2639
2640 2006-08-01 Borut Razem <borut.razem AT siol.net>
2641
2642         * src/mcs51/gen.c, src/dc390/gen.c: fixed warning:
2643           comparison is always false due to limited range of data type
2644           on PPC64 machine (openpower-linux1) where "char = unsigned char"
2645
2646 2006-08-01 Maarten Brock <sourceforge.brock AT dse.nl>
2647
2648         * sim/ucsim/hc08.src/hc08mac.h: removed faulty and unused add_u16_disp
2649         * sim/ucsim/hc08.src/hc08.cc: removed faulty and unused int8
2650         * sim/ucsim/z80.src/z80mac.h (add_u16_disp): use explicit signed char cast
2651         * sim/ucsim/z80.src/z80.cc: removed faulty and unused int8
2652
2653 2006-07-31 Borut Razem <borut.razem AT siol.net>
2654
2655         * sim/ucsim/configure, sim/ucsim/cmd.src/newcmdcl.h,
2656           sim/ucsim/cmd.src/newcmd.cc, sim/ucsim/cmd.src/cmdutil.cc,
2657           sim/ucsim/z80.src/Makefile.in, sim/ucsim/configure.in,
2658           sim/ucsim/hc08.src/Makefile.in, sim/ucsim/hc08.src/hc08.cc,
2659           sim/ucsim/ddconfig_in.h, sim/ucsim/s51.src/Makefile.in,
2660           sim/ucsim/s51.src/uc51cl.h, sim/ucsim/s51.src/serialcl.h,
2661           sim/ucsim/s51.src/uc51.cc, sim/ucsim/s51.src/serial.cc,
2662           sim/ucsim/app.cc, sim/ucsim/avr.src/Makefile.in:
2663           enable ucsim mingw compilation. Serial port is disabled,
2664           since it uses termios.h API, which is not available on native
2665           WIN32
2666
2667 2006-07-31 Borut Razem <borut.razem AT siol.net>
2668
2669         * Small Device C Compiler 2.6.0 released
2670         * support/scripts/sdcc.nsi: added FULL_DOC option
2671         * .version, doc/sdccman.lyx: changed sdcc version to 2.6.1
2672
2673 2006-07-28 Borut Razem <borut.razem AT siol.net>
2674
2675         * support/scripts/sdcc.nsi: remove $INSTDIR/include/asm/pic16/*.h
2676         * doc/INSTALL.txt: updated
2677
2678 2006-07-27 Borut Razem <borut.razem AT siol.net>
2679
2680         * device/lib/pic/Makefile.in, device/lib/pic/Makefile.subdir,
2681           device/lib/pic/libdev/Makefile.in: fixed bug
2682           [ 1438354 ] pic libsdcc: distclean doesn't work
2683         * device/lib/pic16/Makefile.in, device/lib/pic16/Makefile.subdir,
2684           device/lib/pic16/libio/Makefile.in: fixed bug
2685           [ 1438344 ] pic16 lib: clean doesn't work properly
2686         * doc/knownbugs.html removed [ 1438354 ] and [ 1438344 ] from the list
2687
2688 2006-07-26 Maarten Brock <sourceforge.brock AT dse.nl>
2689
2690         * device/lib/pic/libsdcc/fsdiv.c,
2691         * device/lib/pic/libsdcc/fsmul.c,
2692         * device/lib/pic16/libsdcc/float/fsdiv.c,
2693         * device/lib/pic16/libsdcc/float/fsmul.c,
2694         * device/lib/_fsdiv.c,
2695         * device/lib/_fsmul.c: bugfix, handle too large and too small numbers
2696         * support/regression/tests/bug1520966.c: added
2697         * doc/knownbugs.html: removed [ 1520966 ] from the list
2698
2699 2006-07-25 Borut Razem <borut.razem AT siol.net>
2700
2701         * configure.in, configure, sdccconf_in.h: fixed bug
2702           [ 1519095 ] regression test onebyte.c fails on ppc64 host
2703         * doc/knownbugs.html: removed [ 1519095 ] from the list
2704
2705 2006-07-25 Maarten Brock <sourceforge.brock AT dse.nl>
2706
2707         * doc/knownbugs.html: added, contains list of known bugs at release
2708         * device/include/mcs51/compiler.h: fixed SFR32 for SDCC
2709
2710 2006-07-23 Maarten Brock <sourceforge.brock AT dse.nl>
2711
2712         * device/include/mcs51/compiler.h: added SFRX for xdata based special
2713           function registers and corrected defaults with additional warning
2714         * device/lib/malloc.c: cosmetic changes
2715         * device/lib/realloc.c: bugfix for bug #1496907, Thanks Efim Monyak
2716         * src/ds390/ralloc.c (getRegBitNoSpil): reenabled,
2717           (fillGaps): and used it
2718
2719 2006-07-20 Raphael Neider <rneider AT web.de>
2720
2721         * src/pic/device.c (addMemRange,assignRegister): suppress verbose
2722           output unless SDCCPICDEBUG is set
2723         * device/lib/pic16/Makefile.rules (%.lib target): suppress verbose
2724           output if SILENT is set
2725
2726 2006-07-11 Borut Razem <borut.razem AT siol.net>
2727
2728         * doc/README.txt: updated
2729
2730 2006-07-10 Borut Razem <borut.razem AT siol.net>
2731
2732         * support/scripts/sdcc.nsi: added device/include/asm/pic/features.h and
2733           device/lib/src/pic/libm/*.c and device/lib/src/pic16/libsdcc/stack/*.S
2734           in WIN32 installation
2735         * .version, sdcc.spec, doc/sdccman.lyx: changed sdcc version to 2.6.0 -
2736           release candidate 1
2737
2738 2006-07-08 Maarten Brock <sourceforge.brock AT dse.nl>
2739
2740         * device/include/mcs51/XC866.h: added sbit definitions for Px_x, P1_x, P2_x
2741         * src/pic16/glue.c (initPointer): fixed bug 1496419 for pic16
2742
2743 2006-07-06 Maarten Brock <sourceforge.brock AT dse.nl>
2744
2745         * src/hc08/gen.c (genAddrOf): fixed bug when offset on stack is >127
2746
2747 2006-07-06 Borut Razem <borut.razem AT siol.net>
2748
2749         * support/regression/tests/bitfields.c:
2750           fixed bug [ 1518322 ] regression test bitfields fails on ppc hosts
2751         * support/regression/tests/constantRange.c:
2752           fixed bug [ 1518317 ] regression test constantRange fails on alpha host
2753
2754 2006-07-04 Borut Razem <borut.razem AT siol.net>
2755
2756         * src/configure.in, src/configure, src/Makefile.in, as/z80/Makefile.in,
2757           src/port.mk,
2758           src/avr/Makefile.in, src/ds390/Makefile.in, src/ds400/Makefile.in,
2759           src/hc08/Makefile.in, src/mcs51/Makefile.in, src/pic16/Makefile.in,
2760           src/pic/Makefile.in, src/xa51/Makefile.in, src/z80/Makefile.in:
2761           reverted changes from 2006-07-03
2762         * Makefile.common.in: added @CPPFLAGS@ to CPPFLAGS
2763         * support/regression/Makefile.in, support/regression/ports/host/spec.mk:
2764           added CPPFLAGS, used by the host port
2765
2766 2006-07-03 Bernhard Held <bernhard AT bernhardheld.de>
2767
2768         * support/regression/valdiag/tests/switch.c,
2769         * support/regression/valdiag/tests/constantRange.c: adapted to gcc 4
2770         * support/regression/tests/libmullong.c: fixed for host
2771         * support/regression/ports/host/spec.mk: disable all warnings for host,
2772         SDCC runs with --less-pedantic too
2773
2774 2006-07-03 Borut Razem <borut.razem AT siol.net>
2775
2776         * src/configure.in, src/configure, src/Makefile.in, as/z80/Makefile.in:
2777           defined CPPFLAGS
2778         * src/port.mk: defined CPPFLAGS, renamed to src/port.mk.in
2779         * src/avr/Makefile.in, src/ds390/Makefile.in, src/ds400/Makefile.in,
2780           src/hc08/Makefile.in, src/mcs51/Makefile.in, src/pic16/Makefile.in,
2781           src/pic/Makefile.in, src/xa51/Makefile.in, src/z80/Makefile.in:
2782           include ../port.mk
2783         * sim/ucsim/main_in.mk, sim/ucsim/avr.src/Makefile.in,
2784           sim/ucsim/gui.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
2785           sim/ucsim/s52.src/Makefile.in, sim/ucsim/sim.src/Makefile.in,
2786           sim/ucsim/xa.src/Makefile.in: ignore header files for dependencies
2787
2788 2006-07-02 Raphael Neider <rneider AT web.de>
2789
2790         * src/pic16/devices.inc,
2791         * device/include/pic16/pic18fregs.h,
2792         * device/include/pic16/pic18f4550.h,
2793         * device/lib/pic16/pics.all,
2794         * device/lib/pic16/libdev/pic18f4550.c: added support for 18f4550
2795
2796 2006-07-01 Bernhard Held <bernhard AT bernhardheld.de>
2797
2798         * as/hc08/lkaomf51.c (OutputName),
2799         * as/mcs51/lkaomf51.c (OutputName),
2800         * as/z80/asmain.c (asmbl),
2801         * src/ds390/main.c (asmLineNodeFromLineNode),
2802         * src/hc08/ralloc.c (hc08_assignRegisters),
2803         * src/mcs51/main.c (asmLineNodeFromLineNode),
2804         * src/xa51/ralloc.c (checkRegMask),
2805         * src/xa51/gen.c (emitcode),
2806         * src/z80/gen.c (_emit2),
2807         * src/SDCCast.c (searchLitOp),
2808         * src/SDCCglobl.h,
2809         * support/packihx/packihx.c,
2810         * support/Util/MySystem.c (split_command): fix gcc 4 warnings
2811         * src/ds390/gen.c (aopPutUsesAcc),
2812         * src/ds390/ralloc.c (getRegBitNoSpil): unused, therefore disabled
2813         * support/regression/tests/libmullong.c (mullong_wrapper),
2814         * src/SDCCsymt.c (powof2),
2815         * src/SDCCast.c,
2816         * src/SDCCicode.c: renamed TYPE_WORD by TYPE_TARGET_INT and so on
2817         * src/SDCCsymt.h: added TYPE_TARGET_*
2818         * src/SDCCutil.c (doubleFromFixed16x16, fixed16x16FromDouble),
2819         * src/SDCCutil.h (doubleFromFixed16x16, fixed16x16FromDouble): moved to
2820         SDCCast because 1) header problems 2) this is the right place
2821         * src/SDCCast.c (doubleFromFixed16x16, fixed16x16FromDouble): added
2822         * src/SDCCval.h (doubleFromFixed16x16, fixed16x16FromDouble): added
2823         prototype
2824
2825 2006-06-29 Bernhard Held <bernhard AT bernhardheld.de>
2826
2827         * src/SDCCicode.h: removed buggy semicolon in unused macro
2828         * src/SDCClrange.c (findPrevUseSym, rlivePoint): fixed bug #1486853,
2829         search for previous definiton of auto symbols too,
2830         (findPrevUse): fixed logic of emitWarnings
2831
2832 2006-06-26 Raphael Neider <rneider AT web.de>
2833
2834         * src/pic16/gen.c (genFunction, genEndFunction): also preserve
2835           PCLATH and PCLATU on interrupts, potentially fixes #1505141
2836
2837 2006-06-25 Raphael Neider <rneider AT web.de>
2838
2839         * device/lib/pic/libm: NEW, added math library functions
2840         * device/lib/pic/libsdcc: NEW; added float support functions
2841         * device/lib/pic/{Makefile.in,configure.in,configure}: added libm/
2842         * device/include/pic/{limits.h,errno.h,sdcc-lib.h,float.h,math.h}:
2843           NEW, added math related headers
2844         * device/include/asm/pic/features.h: NEW
2845         * src/pic/gen.c (emitpcode_real): emit warning on NULL pCodeOp,
2846           (popGet): allow larger offsets for AOP_PCODE,
2847           (genDataPointerSet): handle literals explicitly, more debug output,
2848           (genAssign): fixed for float using aopLiteral ;-)
2849         * src/pic/glue.c (pic14createInterruptVect): inserted pagesel before
2850           GOTO initialisation routine
2851         * src/pic/pcoderegs.c (pCodeRegMapLiveRangesInFlow): set wasUsed
2852           flag on registers, fixes #1469043 (local variables do not work)
2853         * src/pic/main.c (_pic14_do_link),
2854         * src/pic16/main.c (_pic16_linkEdit): use fullDstFileName if
2855           available
2856
2857 2006-06-25 Borut Razem <borut.razem AT siol.net>
2858
2859         * device/lib/pic16/libc/stdio/sprintf.c: return the number of
2860           characters printed (not including the trailing '\0' used to end
2861           output to strings). Problem detected in regression test bug-927659.c.
2862           NOTE: printf() family functions should return int instead
2863           unsigned int!
2864         * device/lib/pic16/libc/stdio/vfprintf.c: "%%" prints "%", unknown
2865           specifier are printed as themselves
2866         * sdcc/support/regression/tests/bug1057979.c: pic16 printf doesn't
2867           support flags, width and precision specifiers
2868
2869 2006-06-24 Borut Razem <borut.razem AT siol.net>
2870
2871         * sdcc/support/regression/tests/bitvars.c: added gbz80, pic16 and pic16
2872           to the list of sdcc tagrets not supporting bit type
2873         * sdcc/support/regression/tests/bug-905992.c.c: excluded regression
2874           testfor pic16 due to bug:
2875           [ 1511794 ] pic16: regression test bug-895992.c fails
2876
2877 2006-06-24 Maarten Brock <sourceforge.brock AT dse.nl>
2878
2879         * src/mcs51/gen.c (genCmp): optimization for RFE 1162453
2880         * src/SDCCglue.c (initPointer), fixed bug 1496419
2881         * support/regression/tests/bug1496419.c: new, added
2882
2883 2006-06-22 Borut Razem <borut.razem AT siol.net>
2884
2885         * support/regression/ports/pic16/support.c: use gpsim usart module from
2886           libgpsim_modules library
2887
2888 2006-06-21 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2889
2890         * device/include/mcs51/at89c51ed2.h: Fixed bug 1510144 changed
2891         IP0H to IPH0.
2892
2893 2006-06-19 Raphael Neider <rneider AT web.de>
2894
2895         * src/pic/glue.h,src/pic16/glue.h: added prototypes
2896         * src/pic/glue.c,src/pic16/glue.c (pic1x_stringInSet,
2897           pic1x_emitSymbolIfNew): NEW, check for a string in a set,
2898           (pic14printExterns,pic14printPublics,pic16printPublics,
2899           pic16_printExterns): use new functions to emit symbols
2900           (picglue,pic16glue): emit publics before emitting externs
2901         * src/pic/gen.c,src/pic16/gen.c (genFunction): remember the names of
2902           locally defined functions to avoid bug #1443651
2903         * support/regression/tests/bug-716242.c: removed pic16 workaround
2904         * support/regression/ports/pic16/spec.mk: ignore errors during build
2905
2906 2006-06-19 Raphael Neider <rneider AT web.de>
2907
2908         * src/pic/glue.h: added pic14aopLiteral prototype
2909         * src/pic/glue.c (pic14aopLiteral): return unsigned int
2910         * src/pic/gen.c: removed stdint.h dependency
2911           (aopGet): use Safe_strdup()
2912           (bitpatternFromVal): removed, replaced use with pic14aopLiteral
2913           (genDataPointerSet): use pic14aopLiteral()
2914         * src/pic16/glue.h, src/pic16/glue.c, src/pic16/gen.c: similar changes
2915           for pic16; thanks to Bernhard and Maarten
2916
2917 2006-06-18 Borut Razem <borut.razem AT siol.net>
2918
2919         * support/regression/tests/structflexarray.c: flexible array members
2920           not supported by gcc < 3
2921         * sim/ucsim/configure, sim/ucsim/configure.in: do not compile serio
2922           GUI tool by default
2923         * src/pic/gen.c: don't include [p]strdin.h on solaris
2924         * support/Util/pstdint.h: addad svn attributes
2925         * support/regression/tests/constantRange.c,
2926           support/regression/tests/rotate.c: include inttypes.h instead
2927           stdint.h on solaris, addad svn attributes
2928
2929 2006-06-18 Raphael Neider <rneider AT web.de>
2930
2931         * src/SDCCsymt.c (initCSupport): change return type of divschar to
2932           int for PIC16
2933         * src/pic16/genarith.c (genAddLit): sign-extend via standard routine
2934           (pic16_genMinusBits): simplified sign-extension
2935           (pic16_genUMult8XLit_8,pic16_genUMult8X8_8): renamed to
2936             pic16_genMult8XLit_n resp. pic16_genMult8X8_n, fixed and
2937             adjusted to correctly handle mixed-signed operands, disabled
2938             now unused multiplciation routines
2939         * src/pic16/gen.c (pic16_pushpCodeOp): fixed to handle literals
2940           (assignResultValue): added argument denoting the size of the result
2941             as returned by the function (fixes upcasts in assigning from
2942             function calls: char foo(); int i = foo();)
2943           (genCall,genPcall,genGenPointerGet,genReceive): pass size of
2944             function result to assignResultValue
2945           (genMult): disabled inlined multiplication code
2946           (genDiv): augmented to also handle the modulus operator, fixed to
2947             handle mixed-signed operands correctly
2948           (genMod): simply call genDiv, disabled unused code
2949           (genAssign): fixed missing (sign-)extension on result
2950         * src/pic16/main.c (_hasNativeMulFor): accept literals [-128..256) as
2951             valid char operands, allow signed operands for native code, added
2952             division and modulo operator handling
2953         * device/lib/pic16/libsdcc/char/divschar.c: divschar returns an int
2954
2955         As a consequence, onebyte.c (if split into two files) and muldiv.c
2956         pass regression tests.
2957
2958 2006-06-17 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2959
2960         * doc/Makefile.in: two runs of makeindex seem needed to get
2961         correct page references in the index of sdccman.pdf
2962         * doc/sdccman.lyx: mentioned cmon51, added links, small changes
2963
2964 2006-06-17 Borut Razem <borut.razem AT siol.net>
2965
2966         * sdcc/device/lib/Makefile.in: corrected PORTINCDIR path
2967
2968 2006-06-17 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2969
2970         * doc/sdccman.lyx: updated, added (porting source code, debugging),
2971         mentioned ec2drv and paulmon
2972
2973 2006-06-16 Maarten Brock <sourceforge.brock AT dse.nl>
2974
2975         * as/mcs51/lkarea.c (lnkarea2): clear new xdatamap, bugfix for two
2976           consecutive abs areas
2977           (find_empty_space, allocate_space): added map to handle codemap or
2978            xdatamap,
2979           (lnksect2): renamed rloc to locIndex, fixed bug 960060 by handling
2980            absolute idata and xdata
2981         * as/mcs51/lkmem.c (summary2): updated legend
2982
2983 2006-06-16 Raphael Neider <rneider AT web.de>
2984
2985         * src/pic16/gen.c (shiftR2Left2Result): fixed bug #1507127
2986
2987 2006-06-13 Maarten Brock <sourceforge.brock AT dse.nl>
2988
2989         * debugger/mcs51/cmd.c (cmdListFunctions): fixed bugs 1181163 and
2990           1208515
2991         * src/SDCClrange.c (findPrevUse): fixed bug 1294475
2992
2993 2006-06-13 Vangelis Rokas <vrokas AT users.sourceforge.net>
2994
2995         * src/port.h (struct PORT): added field gp_tags, to hold the tag
2996         value of generic pointers,
2997         * src/avr/main.c,
2998           src/ds390/main.c,
2999           src/hc08/main.c,
3000           src/izt/i186.c,
3001           src/izt/tlcs900h.c,
3002           src/mcs51/main.c,
3003           src/pic/main.c,
3004           src/pic16/main.c,
3005           src/xa51/main.c,
3006           src/z80/main.c: PORT structure, added elements for gp_tags field,
3007         * src/SDCCsymt.h: replaced hardwired values of GPTYPE_* macros with
3008         fields in the PORT structure of each port,
3009         * src/SDCCast.c (decorateType): allow processing of generic pointers
3010         for PIC16 port (FPTRSIZE equals GPTRSIZE), also set GPTYPE_NEAR for
3011         S_FIXED symbols
3012
3013 2006-06-12 Maarten Brock <sourceforge.brock AT dse.nl>
3014
3015         * link/z80/lkgb.c,
3016         * link/z80/lkgg.c,
3017         * src/pic16/gen.c,
3018         * src/pic16/main.c,
3019         * src/pic16/pcode.c,
3020         * src/pic/main.c,
3021         * src/pic/pcoderegs.c,
3022         * src/SDCCicode.c,
3023         * src/SDCCmain.c,
3024         * src/SDCCsymt.c: replaced all exit(-1) by exit(EXIT_FAILURE) to fix
3025           bug 1504689 on minGW
3026
3027 2006-06-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3028
3029         * device/lib/printf_tiny.c: fixed bug #1465675 (%x format specifier)
3030
3031 2006-06-12 Bernhard Held <bernhard AT bernhardheld.de>
3032
3033         * src/SDCCast.c (backPatchLabels): fixed bug #1504636
3034
3035 2006-06-11 Maarten Brock <sourceforge.brock AT dse.nl>
3036
3037         * device/lib/printf_large.c (OUTPUT_CHAR, _output_char): added and used
3038           for optimization
3039
3040 2006-06-11 Vangelis Rokas <vrokas AT users.sourceforge.net>
3041
3042         * src/pic16/gen.c (genCast): fixed bug with assignment of a pointer
3043         to a char variable. Fixed bug #1504211
3044         * device/include/pic16/adc.h,
3045         device/include/lib/pic16/libio/adc/adcopen.c: applied patch #1364387
3046         and fixed bug #1364390
3047
3048 2006-06-10 Borut Razem <borut.razem AT siol.net>
3049
3050         * CVSROOT: removed the CVS left-over
3051
3052 2006-06-10 Maarten Brock <sourceforge.brock AT dse.nl>
3053
3054         * as/hc08/asmain.c (asexit),
3055         * as/hc08/lkmain.c (lkexit),
3056         * as/mcs51/asmain.c (asexit),
3057         * as/mcs51/lkmain.c (lkexit),
3058         * src/SDCCglue.c (DEFSETFUNC),
3059         * src/SDCCmain.c (linkEdit, assemble),
3060         * support/librarian/sdcclib.c (AddRel),
3061           replaced unlink() by standard C remove()
3062         * src/SDCC.y: replaced removePostIncDecOps() by createRMW()
3063         * src/SDCCast.c (replaceAstWithTemporary, createRMW,
3064           gatherImplicitVariables): new, added to fix bug 608752,
3065           (createFunction): added gatherImplicitVariables()
3066         * src/SDCCast.h: added createRMW prototype
3067         * src/SDCCsymt.h (struct symbol): added infertype
3068         * support/regression/tests/bug608752.c: new, added
3069
3070 2006-06-10 Raphael Neider <rneider AT web.de>
3071
3072         * src/pic16/gen.c (pic16_aopOp): use WREG as destination even for
3073           multibyte dummy reads (fixes #1503234)
3074
3075 2006-06-10 Maarten Brock <sourceforge.brock AT dse.nl>
3076
3077         * device/include/mcs51/compiler.h: new, added header file to enable
3078           creating common sfr definition header files for different compilers
3079
3080 2006-06-05 Raphael Neider <rneider AT web.de>
3081
3082         * src/pic16/{pcode.h,genarith.c}:
3083           introduced pCodeOp combining any two pCodeOps (previously only
3084           two register operands could be combined), removed pcop2 from
3085           pCodepReg, replaced pCodeOpReg2 with pCodeOp2, fixes #1492366
3086         * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): added case for PO_TWO_OPS
3087         * src/pic16/gen.c (pic16_popGet2,pic16_popGet2p,pic16_popCombine2):
3088           rewritten to use new PO_TWO_OPS
3089         * src/pic16/main.c (_hasNativeMulFor): cover more cases natively,
3090         * src/pic16/pcode.c (pic16_newpCodeOpImmd): initialize rIdx field,
3091           (pic16_newpCodeOp): catch invalid attempts on PO_TWO_OPS,
3092           (pic16_newpCodeOp2): NEW, create combined pCodeOp,
3093           (pic16_get_op): embraced return arg to allow #define return(x),
3094             added new case for combined opcodes
3095           (pic16_get_op2): reduced to use pic16_get_op() on second pCodeOp,
3096           (pic16_pCode2str,pic16_getRegFrompCodeOp,
3097            pic16_getRegFromInstruction2): fixed/added handling of new pCodeOp
3098
3099 2006-06-04 Bernhard Held <bernhard AT bernhardheld.de>
3100
3101         * src/SDCCval.c (checkConstantRange): added
3102         * src/SDCCval.h: added checkConstantRange
3103         * support/Util/SDCCerr.c,
3104         * support/Util/SDCCerr.h: replaced unused W_IF_NEVER_TRUE and
3105         W_IF_ALWAYS_TRUE by W_COMP_RANGE and W_LIT_OVERFLOW
3106         * src/SDCC.y: moved early 'condition transformations' to SDCCast.c
3107         * src/SDCCast.c (decorateType): added checkConstantRange,
3108         added 'condition transformations' from SDCC.y so that now W_COMP_RANGE
3109         can be emitted with the correct always true/false warning,
3110         added optimization for double '!';
3111         result of decorateType() must be assigned back to the tree, because
3112         decorateType() can change the tree
3113         * src/SDCCicode.c (geniCodeLogic),
3114         (geniCodeAssign): replaced new checkConstantRange, added warnings,
3115         (checkConstantRange): removed, it was only a fragment which never
3116         emitted a warning
3117         * src/SDCCsymt.c (computeType): fixed promotion for
3118         "-1 < (unsigned bit) b"
3119         * src/pic/ralloc.c (packRegsForAssign),
3120         * src/pic16/ralloc.c (packRegsForAssign),
3121         * src/hc08/ralloc.c (packRegsForAssign),
3122         * src/z80/ralloc.c (packRegsForAssign): ported fix for bug #930931
3123         from mcs51
3124         * src/mcs51/ralloc.c (packRegsForAssign): removed outcommented source
3125         * support/regression/tests/constantRange.c: added
3126         * support/valdiag/tests/constantRange.c: added
3127         * support/valdiag/valdiag.py: added -DPORT_HOST=1
3128
3129 2006-06-02 Borut Razem <borut.razem AT siol.net>
3130
3131         * support/regression/ports/pic16/support.c: increase stack size
3132           to 255 bytes
3133         * support/regression/Makefile.in: sort tests by name so that the
3134           resutlts can be compared on different machines / platforms
3135
3136 2006-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
3137
3138         * device/lib/printf_large.c (output_digit): optimized further, Tnx Frieder
3139         * src/ds390/gen.c (emitLabel): new, added,
3140           (genDjnz): fixed stack overflow bug,
3141           (throughout): cosmetic changes to sync with mcs51/gen.c,
3142           replaced emitcode("", "%05d$:", lbl->key + 100) with emitLabel(lbl)
3143         * src/mcs51/gen.c (genEndFunction): small optimization,
3144           (throughout): cosmetic changes to sync with ds390/gen.c
3145
3146 2006-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
3147
3148         * device/lib/printf_large.c (output_digit, calculate_digit): optimized,
3149           (_print_format): fixed printing pointers
3150         * src/mcs51/gen.c (emitLabel, movb): new, added,
3151           (genAssign): small optimization,
3152           (genDjnz): fixed stack overflow bug,
3153           (throughout): replaced sprintf with SNPRINTF,
3154           replaced mcs51_regWithIdx with REG_WITH_INDEX,
3155           replaced emitcode("mov", "b,...") with MOVB(...),
3156           replaced emitcode("", "%05d$:", lbl->key + 100) with emitLabel(lbl),
3157           replaced D(emitcode("; genXXX", "")) with D(emitcode(";", "genXXX"))
3158         * src/mcs51/peeph.def: added rules 140 and 264
3159         * src/SDCCmem.c (allocLocal): store register declared locals in DSEG/OSEG
3160           so they may get optimized into registers
3161
3162 2006-05-30 Maarten Brock <sourceforge.brock AT dse.nl>
3163
3164         * src/SDCCmain.c (optionsTable, parseCmdLine): handle --use-stdout
3165           immediately when encountered,
3166           (printUsage): always use stderr even on windows
3167
3168 2006-05-30 Bernhard Held <bernhard AT bernhardheld.de>
3169
3170         * src/SDCCast.c (isLoopCountable): fixed bug #1478316
3171         (processParms): fixed bug #1247551
3172         * src/SDCCmain.c (printVersionInfo, printOptions, printUsage,
3173         parseCmdLine, main): print '--version' to stdout,
3174         print 'help' to stdout if --help is given,
3175         print 'help' to stderr and exit with EXIT_FAILURE if no or bad
3176         arguments are given; fixed --help
3177
3178 2006-05-27 Bernhard Held <bernhard AT bernhardheld.de>
3179
3180         * src/SDCCcse.c (findPointerSet): fixed bug #1493710
3181         * support/regression/tests/bug-1493710.c: added
3182
3183 2006-05-27 Borut Razem <borut.razem AT siol.net>
3184
3185         * support/regression/fwk/lib/testfwk.c: define array in _printn() as
3186           static instead auto
3187         * support/regression/ports/pic16/support.c: increase stack size
3188           from default 64 bytes to 128 bytes
3189         * support/regression/tests/staticinit.c,
3190           support/regression/tests/float.c: regression tests fully enabled
3191           for pic16 port by putting the initialized data arrays into the code
3192           section
3193         * support/regression/ports/pic16/spec.mk: don't link default libraries.
3194           This was changed by mistake in the previous version.
3195
3196 2006-05-28 Vangelis Rokas <vrokas AT users.sourceforge.net>
3197
3198         * src/pic16/gen.c (genFunction, genEndFunction): some
3199         beautifications, fixed bug with falsely restoring FSR2 in large
3200         stack model, thanks to Beau E. Cox for reporting the bug
3201
3202 2006-05-26 Maarten Brock <sourceforge.brock AT dse.nl>
3203
3204         * debugger/mcs51/break.c,
3205         * debugger/mcs51/cmd.c (throughout): removed unused variables and labels,
3206           use %p to print pointers, made address variables unsigned
3207         * debugger/mcs51/cmd.c (infoSymbols): added missing parameter to printf
3208         * debugger/mcs51/symtab.c (parseSymbol): must return something
3209         * src/mcs51/gen.c (aopForSym): small optimization,
3210            moved declarations mcs51_ptrRegReq and mcs51_nRegs to ralloc.h,
3211           (freeAsmop): added missing break,
3212           (aopPut): removed parameter bvolatile, determine it inside the function,
3213           (saveRegisters, unsaveRegisters): small optimization,
3214           (genIpush): removed pointless check,
3215           (throughout): replaced Safe_calloc, strcpy with Safe_strdup,
3216           replaced sprintf with SNPRINTF,
3217           replaced strcpy with strncpyz,
3218           updated aopPut calls,
3219           replaced D(emitcode("; genXXX", "")) with D(emitcode(";", "genXXX"))
3220         * src/mcs51/ralloc.h:  added declarations mcs51_ptrRegReq and mcs51_nRegs
3221
3222 2006-05-24 Borut Razem <borut.razem AT siol.net>
3223
3224         * support/regression/tests/bug-221100.c: fixed xdata problem caused by
3225           modification of test for the pic16 port, put the array to the code
3226           memory for pic16port; thanks to Maarten Brock and Frieder Ferlemann
3227
3228 2006-05-23 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3229
3230         * src/pic/gen.c: MSC 6 does not have <stdint.h>.  Use pstdint.h instead.
3231         * support/Util/pstdint.h: added
3232
3233 2006-05-22 Borut Razem <borut.razem AT siol.net>
3234
3235         * src/regression/Makefile: removed bool2.c test, added -q linker option
3236         * src/regression/add2.c, src/regression/add3.c, src/regression/bool1.c,
3237           src/regression/bool3.c, src/regression/nestfor.c, src/regression/ptrfunc.c,
3238           src/regression/compare.c, src/regression/or1.c, src/regression/compare2.c,
3239           src/regression/while.c, src/regression/compare3.c, src/regression/compare4.c,
3240           src/regression/compare5.c, src/regression/sub2.c, src/regression/rotate1.c,
3241           src/regression/rotate2.c, src/regression/rotate3.c, src/regression/rotate4.c,
3242           src/regression/switch1.c, src/regression/rotate5.c, src/regression/for.c,
3243           src/regression/add.c, src/regression/sub.c, src/regression/call1.c:
3244           define SUPPORT_BIT_TYPES 0, removed unused bit variables
3245
3246 2006-05-22 Raphael Neider <rneider AT web.de>
3247
3248         * src/pic16/gen.c (pic16_storeForReturn): fragile fix for
3249           bug #1492360 (problematic due to generic pointers, see code)
3250
3251 2006-05-22 Borut Razem <borut.razem AT siol.net>
3252
3253         * support/regression/ports/pic16/specs.mk: removed stack size linker
3254           directive
3255         * support/regression/tests/array.c,
3256           support/regression/tests/bitopcse.c,
3257           support/regression/tests/bug-908454.c,
3258           support/regression/tests/malloc.c: modified for pic16 regression test
3259         * support/regression/tests/bitfields.c:
3260           pic16 - excluded bitfileds of size > 8
3261         * support/regression/tests/bp.c: pic16 - reduced data size
3262         * support/regression/tests/bug-221100.c: pic16 - reduced data size
3263         * support/regression/tests/bug-460010.c:
3264           pic16 - used the absolute address the fits in memory
3265         * support/regression/tests/bug-716242.c:
3266           bug [ 1443651 ] pic 16: redefining symbol that cannot be redefined.
3267         * support/regression/tests/float.c:
3268           pic16 - excluded - data size too big
3269         * support/regression/tests/onebyte.c:
3270           pic16 - bug [ 1444425 ] onebyte.c regression tes fails on pic16
3271         * support/regression/tests/shifts.c:
3272           pic16 - function names probably have to differ in first X characters
3273           (gpasm limitation?)
3274         * support/regression/tests/staticinit.c:
3275           pic16 - excluded some tests due error: no target memory available for
3276           section ".idata"
3277
3278 2006-05-22 Borut Razem <borut.razem AT siol.net>
3279
3280         * support/Util/dbuf.c: fixed bug #1489008 fix dbuf_c_str(),
3281           second try. Thanks Stas Sergeev once more.
3282
3283 2006-05-21 Maarten Brock <sourceforge.brock AT dse.nl>
3284
3285         * src/hc08/gen.c (transferAopAop): aop forced to stack was not restored,
3286           (genLeftShift, genRightShift): fixed bug 1491627
3287         * src/hc08/peeph.def (rules 7, 8.x): added
3288         * support/regression/tests/shifts.c (ShiftLeftByParam,
3289           ShiftRightByParam, testShiftByParam): added to test variable shifting
3290
3291 2006-05-20 Raphael Neider <rneider AT web.de>
3292
3293         * src/pic/gen.c (bitpatternFromVal): fixed for 64-bit machines
3294         * src/pic16/ralloc.c (newReg): use correct name in hashtable,
3295           (allocReg): add only new registers to dynAllocRegs,
3296           (pic16_assignRegisters): do not reset dynrIdx, fixes bugs
3297             #1489055, #1445850, and probably #1483693
3298
3299 2006-05-19 Vangelis Rokas <vrokas AT users.sourceforge.net>
3300
3301         * src/pic16/glue.c (pic16_emitConfigRegs, pic16_emitIDRegs): fixed
3302         bug in for-loop that didn't emit the last of CONFIG and ID registers
3303
3304 2006-05-18 Maarten Brock <sourceforge.brock AT dse.nl>
3305
3306         * src/mcs51/gen.c (genCodePointerGet): inc dptr instead of loading acc
3307           with offset
3308         * src/mcs51/peeph.def (186.x): updated and reenabled to fix bugs
3309           1489016, 1434401 and 1490124
3310         * src/ds390/peeph.def (186.x, 227.x): updated and reenabled to fix bugs
3311           1489016, 1434401 and 1490124
3312
3313 2006-05-17 Borut Razem <borut.razem AT siol.net>
3314
3315         * support/Util/dbuf.c: fixed bug #1489008 fix dbuf_c_str(),
3316           thanks Stas Sergeev
3317
3318 2006-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
3319
3320         * device/include/mcs51/P89c51RD2.h,
3321         * device/include/mcs51/P89LPC901.h,
3322         * device/include/mcs51/P89LPC922.h,
3323         * device/include/mcs51/P89LPC932.h: added, thanks Omar Espinosa
3324
3325 2006-05-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
3326
3327         * device/lib/pic16/libsdcc/stack/{stack.S, Makefile.in}: add workaround
3328         to fix missing stack pragma in compiled binary object file,
3329
3330 2006-05-14 Bernhard Held <bernhard AT bernhardheld.de>
3331
3332         * support/packihx/configure.in,
3333         * support/packihx/configure: removed warning, autoconf >= 2.5x can
3334         determine sizeof basic types even while cross compiling
3335
3336 2006-05-13 Bernhard Held <bernhard AT bernhardheld.de>
3337
3338         * src/avr/gen.c (aopop),
3339         * src/ds390/gen.c (aopOp),
3340         * src/hc08/gen.c (aopOp),
3341         * src/mcs51/gen.c (aopop),
3342         * src/pic16/gen.c (pic16_aopOp),
3343         * src/pic/gen.c (aopOp),
3344         * src/z80/gen.c (aopop): fix for bug #1479882; use new, exclusive asmop
3345         if size of operand is smaller than spill location
3346
3347 2006-05-12 Borut Razem <borut.razem AT siol.net>
3348
3349         * *.dsw, *.dsp: changed property svn:eol-style to CRLF since they
3350           have to have CR/LF line endings even if they are checked out on *nix
3351           or on WIN32 in cygwin binmode
3352
3353 2006-05-12 Maarten Brock <sourceforge.brock AT dse.nl>
3354
3355         * doc/sdccman.lyx: documented numeric ranges, WEBDOC #1442369
3356         * device/include/ds80c390.h: added sfr16 definitions
3357         * src/ds390/gen.c,
3358         * src/ds390/gen.h,
3359         * src/ds390/main.c,
3360         * src/ds390/ralloc.c,
3361         * src/ds390/ralloc.h: changes all over the place to sync with mcs51
3362           fixing several bugs and adding sfr16/sfr32, reentrant bit params,
3363           bit returning functions
3364         * support/regression/tests/sfr16.c: enabled test on ds390
3365
3366 2006-05-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3367
3368         * src/hc08/gen.c (asmopToBool, genIfx): fix for bug #1429722
3369         * src/hc08/gen.c (storeRegToAop): fix for bug #1439894
3370
3371 2006-05-11 Maarten Brock <sourceforge.brock AT dse.nl>
3372
3373         * sim/ucsim/sim.src/memcl.h: added get_decoder() to cl_address_space
3374         * sim/ucsim/sim.src/mem.cc: implemented cl_address_space::get_decoder,
3375           (cl_address_space constructor): removed expensive initialization,
3376           (cl_address_space::get_cell): extended for late initialization,
3377           (cl_address_space::*): use late initialization,
3378           (cl_address_decoder::activate): removed expensive initialization,
3379           This reduced regression test running time by 25%
3380
3381 2006-05-11 Bernhard Held <bernhard AT bernhardheld.de>
3382
3383         * packihx/,
3384         * configure.in,
3385         * configure,
3386         * sdcc.dsw,
3387         * Makefile.bcc,
3388         * Makefile.in,
3389         * support/packihx/Makefile.in,
3390         * support/packihx/clean.mk,
3391         * support/packihx/Makefile.bcc,
3392         * support/packihx/PackIhx.dsp: moved packihx to support/packihx
3393
3394 2006-05-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3395
3396         * src/SDCCval.c (valNot): fix for regression test failure
3397           of not.c on big endian hosts
3398
3399 2006-05-10 Maarten Brock <sourceforge.brock AT dse.nl>
3400
3401         * device/inlcude/mcs51/msc1210.h: new, added, thanks Philippe Latu
3402
3403 2006-05-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3404
3405         * device/lib/mcs51/Makefile.in: changed string comparison operator
3406           to = for POSIX compliance; == is bash extension
3407
3408 2006-05-10 Maarten Brock <sourceforge.brock AT dse.nl>
3409
3410         * device/lib/hc08/_mulint.c: applied patch 1485428, thanks
3411           kosmonaut_pirx
3412
3413 2006-05-09 Vangelis Rokas <vrokas AT users.sourceforge.net>
3414
3415         * src/pic16/gen.c (pic16_freeAsmop): release any temp registers
3416         allocated by aopForSym thus fixing bug #1478657 about failed testfwk.c
3417         * src/pic16/main.c (_pic16_keywords): added 'sfr16' keyword,
3418         * src/pic16/ralloc.c (pic16_allocWithIdx): also a fix for bug exposed by
3419         bug report #1478657,
3420
3421 2006-05-05 Borut Razem <borut.razem AT siol.net>
3422
3423         * doc/Makefile.in: remove of WARNINGS and labels.pl immediately after
3424           making the html
3425
3426 2006-05-02 Borut Razem <borut.razem AT siol.net>
3427
3428         * doc/Makefile.in: removed *.ind dependency since there is no rule to
3429           create *.ind, which made make to fail if invoked with -j 2
3430
3431 2006-05-01 Maarten Brock <sourceforge.brock AT dse.nl>
3432
3433         * src/SDCCglue.c (emitRegularMap): partial fix for bug 1477149, thanks
3434           Hubert Sack for patch 1479782
3435
3436 2006-05-01 Vangelis Rokas <vrokas AT users.sourceforge.net>
3437
3438         * src/pic16/glue.c (pic16_printIvalStruct): fixed bug #1445929
3439
3440 2006-05-01 Raphael Neider <rneider AT web.de>
3441
3442         * src/pic/device.c (sanitise_processor_name): only remove p(ic) prefix,
3443           (create_pic): store only prefix-free device name,
3444           (init_pic): check for device names with "16" prefix,
3445           (list_valid_pics),
3446         * src/pic/device.h (struct PIC_device),
3447         * src/pic/main.c (_pic14_genAssemblerPreamble): adapted to single
3448             stored device name,
3449         * device/include/pic/pic12f{635,675,629,683}.h,
3450         * device/lib/pic/libdev/pic12f{635,675,629,683}.c: NEW device libraries
3451         * device/lib/pic/libdev/Makefile.in: allow pic12* devices,
3452         * device/include/pic/pic16f505.h,
3453         * device/lib/pic/libdev/pic16f505.c: removed
3454         * device/include/pic/pic14devices.txt: added support for pic12f
3455             devices, removed unsupported non 16-bit devices
3456             [above changes provided by patch from Zik Saleeba]
3457         * src/pic/*, src/pic16/*, device/include/pic16/*,
3458           device/lib/pic/**, device/lib/pic16/**: obfuscated email address
3459
3460 2006-05-01 Borut Razem <borut.razem AT siol.net>
3461
3462         * configure.in, configure, doc/Makefile.in:
3463           sync with nightly build makefile - latex, dvipdf and dvips
3464           not needed any more
3465
3466 2006-04-30 Bernhard Held <bernhard AT bernhardheld.de>
3467
3468         * support/scripts/sdcc.nsi: removed all Readmes and Makefiles
3469         in the library source
3470
3471 2006-04-30 Maarten Brock <sourceforge.brock AT dse.nl>
3472
3473         * support/regression/ports/hc08/spec.mk: fixed bug 1478892
3474
3475 2006-04-28 Raphael Neider <rneider AT web.de>
3476
3477         * src/pic16/pcode.c (pic16_newpCodeOpLit12),
3478         * src/pic16/gen.c (pic16_popGetLit12): NEW, create 12 bit literal,
3479           (pic16_loadFSR0): handle 12 bit literals correctly, fixes #1440527
3480         * src/pic16/pcode.h: added prototype for pic16_newpCodeOpLit12()
3481
3482 2006-04-28 Bernhard Held <bernhard AT bernhardheld.de>
3483
3484         * device/lib/pic/libdev/Makefile.in,
3485         * device/lib/hc08/Makefile.in,
3486         * device/lib/gbz80/Makefile.in,
3487         * device/lib/z80/Makefile.in,
3488         * device/lib/ds390/Makefile.in,
3489         * device/lib/ds400/Makefile.in: added srcdir to include search path,
3490         thanks to Borut for the bug report
3491         * configure.in,
3492         * configure: always create doc/Makefile independent from --enable-doc
3493         * Makefile.in: always install from directory doc independent from
3494         --enable-doc
3495         * device/lib/pic/Makefile.in: added libdev again, it was erroneously
3496         removed
3497         * device/lib/pic/libdev/Makefile.in: fixed VPATH build
3498         * doc/Makefile.in: install *.txt if present
3499         * device/include/Makefile.in (install): added installation of pic/*.inc
3500         and pic/*.txt files again, they were erroneously removed
3501
3502 2006-04-28 Raphael Neider <rneider AT web.de>
3503
3504         * src/pic/{gen.c,main.h,pcode.c},
3505         * src/pic16/{gen.c,pcode.c}: quietened compiler warnings
3506             concerning signedness with casts
3507
3508 2006-04-28 Raphael Neider <rneider AT web.de>
3509
3510         * src/pic/gen.c (genFunction): set global pic14_hasInterrupt on
3511             definition of an interrupt handler,
3512         * src/pic/glue.c (pic14_emitInterruptHandler): moved output of
3513             interrupt handler stuff from picglue() to separate routine,
3514           (picglue): enabled definition of intr handlers in files w/o main()
3515
3516 2006-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
3517
3518         * support/librarian/sdcclib.c: moved include <limits.h> up to enable
3519           compilation with MSVC 2005 Express Edition (VC8)
3520
3521 2006-04-26 Bernhard Held <bernhard AT bernhardheld.de>
3522
3523         * device/lib/Makefile: fixed build of gbz80 lib
3524
3525 2006-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
3526
3527         * support/regression/tests/bug-460010.c,
3528         * support/regression/tests/bug-524691.c,
3529         * support/regression/tests/bug-716242.c: removed conditional defines
3530           that are already in testfwk.h
3531
3532 2006-04-25 Maarten Brock <sourceforge.brock AT dse.nl>
3533
3534         * src/ds390/gen.c (AccAXRrl1, AccAXLrl1): changed to real rotate by 1,
3535           (AccAXRsh1): added, shift right by 1,
3536           (AccAXLsh, AccAXRsh, AccAXRshS): updated for AccAXRrl1, AccAXRsh1 and
3537            AccAXLrl1
3538         * support/regression/tests/rotate.c: use <stdint.h> and enabled ds390
3539
3540 2006-04-25 Bernhard Held <bernhard AT bernhardheld.de>
3541
3542         * src/SDCCast.c (decorateType): partial fix for RFE 1475769,
3543         remove cast to same type
3544         * src/SDCCast.c (decorateType): fix for RFE 1475742,
3545         optimize 'ifx (op == 0)' resp. 'ifx (op != 0)'
3546         * as/z80/Makefile,
3547         * link/z80/Makefile: removed, they have moved to
3548         Makefile.in files
3549         * configure,
3550         * configure.in: replaced duplicate message about ucsim by missing sdcpp
3551         * install-sh: fix bug #1204398 by setting umask 0022
3552         * device/lib/Makefile: separate build of z80 and gbz80 lib
3553
3554 2006-04-24 Bernhard Held <bernhard AT bernhardheld.de>
3555
3556         Enabled VPATH feature: changed nearly all Makefiles (149 files).
3557         See sdccman.lyx '2.4.10 VPATH feature' about how to use it.
3558
3559         One basic decision: e.g. src/clean.mk includes further files. In order
3560         to make this work there are two solutions:
3561         - rename another dozen clean.mk to clean_in.mk, add srcdir to them and
3562           run configure on them. This way they can use
3563           'include $(srcdir)/port-clean.mk'
3564         - always include clean.mk by the Makefile at the same level. To avoid
3565           that `make clean` tries to include and build Makefile.dep the
3566           MAKECMDGOALS are examined (see e.g. src/Makefile.in). This has been
3567           implemented, because now even `make uninstall` doesn't create
3568           Makefile.in. clean.mk could be eliminated by pasting it in
3569           Makefile.in.
3570
3571         * debugger/mcs51/Makefile.in: build own objects from library sources
3572         (SLIB, SDCC) in current directory
3573
3574         * configure, configure.in: renamed --disable-device-lib-build in
3575         --disable-device-lib; added --enable-doc, the required tools are
3576         searched by configure; added result message; the toolchain for the
3577         belonging ports are now only built, if the port is enabled.
3578
3579         * support/regression/*: all output is written in directory gen, because
3580         the fwk and ports directories don't livet in the build tree using vpath
3581
3582         * doc/sdccman.lyx: renamed --disable-device-lib-build to
3583         --disable-device-lib, added --enable-doc, added section VPATH
3584
3585         * sim/ucsim/configure.in,
3586         * sim/ucsim/configure.in: hc08 couldn't be disabled, now hc08 and
3587         z80 are enabled by default
3588
3589 2006-04-24 Raphael Neider <rneider AT web.de>
3590
3591         * src/pic/device.c (pic14_assignConfigWordValue): remember assignments
3592             to config word, "pic14_"-prefixed some extern functions
3593           (pic14_emitConfigWord): emit __config directive(s) if assignment to
3594             config word has been found
3595         * src/pic/device.h: added prototypes
3596         * src/pic/pcode.c: added "pic14_"-prefix where needed
3597         * src/pic/ralloc.c (IS_CONFIG_ADDRESS,pic14_assignRegisters): cosmetic
3598             fixup
3599         * src/pic/glue.c (pic14_constructAbsMap): handle assignments to config
3600             words,
3601           (pic14emitRegularMap): ignore config words,
3602           (pic14createInterruptVect): moved generating __config directives away
3603           (picglue): have __config directives emitted
3604
3605 2006-04-24 Borut Razem <borut.razem AT siol.net>
3606
3607         * doc/Makefile: sync with nightly build makefile
3608
3609 2006-04-24 Raphael Neider <rneider AT web.de>
3610
3611         * src/pic/pcoderegs.c (OptimizeRegUsage): do not optimize
3612             registers that have not been assigned proper liveranges,
3613             fixes #1469504 and #1474602,
3614           (pCodeRegOptimizeRegUsage): fixed typo in comment
3615
3616 2006-04-24 Borut Razem <borut.razem AT siol.net>
3617
3618         * device/examples/main8051.c: deleted - it was removed from CVS
3619           24.mar.2000 and after that modified 18.feb.2001, so it reappered
3620           after the transition to Subversion
3621         * src/SDCCalloc.h: deleted - it was removed  from CVS
3622           3.feb.2001 and after that modified 18.feb.2001, so it reappered
3623           after the transition to Subversion
3624         * sim/ucsim/cpu.gif, sim/ucsim/interrupt.gif, sim/ucsim/new.gif,
3625           sim/ucsim/serial1.gif, sim/ucsim/serial2.gif,
3626           sim/ucsim/term_cpuopt.gif, sim/ucsim/timers.gif, sim/ucsim/wins.gif,
3627           sim/ucsim/post.jpg, sim/ucsim/UCsim.jpg: corrected
3628
3629 2006-04-22 Maarten Brock <sourceforge.brock AT dse.nl>
3630
3631         * as/asx8051.dsp: added mcs51/strcmpi.h
3632         * as/hc08/as_hc08.dsp: added asm.h, m6808.h, strcmpi.h
3633         * as/hc08/aslink.h: updated lnksect prototype
3634         * as/hc08/asm.h,
3635         * as/mcs51/asm.h: added a_addr to struct area and s_org to struct sym
3636         * as/hc08/asmain.c,
3637         * as/mcs51/asmain.c (asmbl): init dot.s_org for S_ORG,
3638           (newdot): handle A_ABS
3639         * as/hc08/asout.c,
3640         * as/mcs51/asout.c (outarea): output address
3641         * as/hc08/lkaomf51.c,
3642         * as/mcs51/lkaomf51.c: disabled unused array UsageType
3643         * as/hc08/m08pst.c,
3644         * as/mcs51/i51pst.c,
3645         * as/z80/z80pst.c: "ABS" is not A_OVR
3646         * as/hc08/lkarea.c (newarea): read a_addr,
3647           (lnkarea): added codemap array, sort absolute areas to the front,
3648            combine all GSINITx/GSFINAL,
3649           (find_empty_space, allocate_space): new functions,
3650           (lnksect): return next address, handle absolute sections
3651         * as/mcs51/lkarea.c (newarea): read a_addr,
3652           lnksect2 prototype changed,
3653           (lnkarea2): define codemap unsigned, combine all GSINITx/GSFINAL,
3654           (find_empty_space, allocate_space): new, factored out of lnksect2,
3655           (lnksect2): return next address, handle absolute sections
3656         * as/hc08/lkhead.c,
3657         * as/mcs51/lkhead.c (newhead): head is absolute but not overlay
3658         * as/hc08/lklibr.c (addfile, fndsym),
3659         * as/mcs51/lklibr.c (addfile, buildlibraryindex, fndsym): prevent
3660           index out of range and detect both '\' and '/'
3661         * device/include/mcs51/c8051f200.h: added _XPAGE, removed bad comment
3662         * device/include/stdbool.h: removed SDCC_ds390 from check to pass
3663           regression tests (ds390 cannot return bool yet)
3664         * doc/sdccman.lyx: changed version number, document changed --no-peep,
3665           document critical interrupts on z80, document changed SDCC define
3666         * src/asm.c (_asxxxx_mapping): fixed .org directive,
3667           (_a390_mapping): added .org directive
3668         * src/hc08/gen.c (transferAopAop): made bytemask log to fix warning,
3669           (genMultOneByte): fixed warnings
3670         * src/hc08/hc08.dsp: lowered warning level to 2 to suppress pedantic
3671           ones
3672         * src/pic16/device.c: removed newReg prototype, removed BYTE_IN_LONG
3673         * src/pic16/gen.c (pic16_popGetLabel): made parameter key signed,
3674           (pic16_genLeftShiftLiteral, genRightShiftLiteral): fixed warnings
3675         * src/pic16/gen.h: changed prototype for pic16_popGetLabel
3676         * src/pic16/main.c: removed newReg prototype
3677         * src/pic16/pcode.c,
3678         * src/pic16/pcode.h (pic16_emitDB): changed parameter c to int to fix
3679           warnings
3680         * src/pic16/pic16.dsp: lowered warning level to 2 to suppress pedantic
3681           ones
3682         * src/pic16/ralloc.c
3683         * src/pic16/ralloc.h (newReg): changed type to int and size to unsigned
3684           to fix warnings
3685         * src/pic/pcode.c (allocInternalRegister): changed parameter optype
3686           from short to PIC_OPTYPE
3687         * src/pic/pic.dsp: lowered warning level to 2 to suppress pedantic ones
3688         * src/pic/ralloc.c (newReg, allocInternalRegister): changed parameter
3689           optype from short to PIC_OPTYPE
3690         * src/port.h: made int_size unsigned to fix warnings
3691         * src/SDCC.y: fixed warning on MSVC
3692         * src/SDCCicode.c (getArraySizePtr): return unsigned int
3693         * src/SDCCopt.c (convertToFcall): fixed warnings
3694         * src/SDCCsymt.h: removed double prototype for genSymName
3695         * src/xa51/ralloc.c (allocReg): made size unsigned int, type int and
3696           offset int to fix warnings
3697
3698 2006-04-22 Borut Razem <borut.razem AT siol.net>
3699
3700         * doc/sdccman.lyx, */Makefile, */Makefile.in:
3701           references to CVS replaced with Subversion
3702
3703 2006-04-21 Borut Razem <borut.razem AT siol.net>
3704
3705         * doc/sdccman.lyx, */Makefile, */Makefile.in:
3706           references to CVS replaced with Subversion
3707
3708 2006-04-19 Borut Razem <borut.razem AT siol.net>
3709
3710         * src/version.awk: adapted for svn
3711         * /asxxxx/asxhtml/*.gif: set property svn:mime-type to image/gif
3712           sim/ucsim/doc/*.gif: set property svn:mime-type to image/gif
3713           sim/ucsim/doc/*.jpg: set property svn:mime-type to image/jpeg
3714           /binutils-avr/etc/*.vi, *.jin: removed all properties
3715           support/scripts/sdcc.ico: set property svn:mime-type to image/x-icon
3716
3717 2006-04-19 Borut Razem <borut.razem AT siol.net>
3718
3719         * CVS to Subversion migration completed
3720
3721 2006-04-18 Borut Razem <borut.razem AT siol.net>
3722
3723         * support/scripts/sdcc.nsi: removed unexisting ${DEV_ROOT}\lib\pic\*.o,
3724           ${DEV_ROOT}\lib\src\pic\libdev\*.S, ${DEV_ROOT}\lib\src\pic\libdev\*.inc
3725
3726 2006-04-17 Borut Razem <borut.razem AT siol.net>
3727
3728         * device/include/Makefile.in: added pic/*.inc to the installation
3729
3730 2006-04-15 Bernhard Held <bernhard AT bernhardheld.de>
3731
3732         * support/regression/collate-results.py: fixed output in case of
3733         a valdiag error
3734         * support/regression/generate-cases.py: fixed splitting of pathnames
3735         with dots
3736         * as/hc08/lklibr.c (addfile),
3737         * as/mcs51/lklibr.c (addfile): fixed off-by-one bug
3738
3739 2006-04-11 Raphael Neider <rneider AT web.de>
3740
3741         * src/pic16/gen.c (getFreePtr, pic16_popRegFromString),
3742         * src/pic16/ralloc.c (pic16_allocregWithName): removed debug output
3743         * src/pic16/pcode.c (assignValnums): fixed #1460578
3744
3745 2006-04-11 Raphael Neider <rneider AT web.de>
3746
3747         * device/lib/pic/libdev/*.c,
3748         * device/include/pic/*.h: replaced sfr and data with __sfr and __data,
3749           fixes #1468739, enables compilation in --std-c99 mode
3750         * support/scripts/inc2h.pl: emit __sfr/__data instead of sfr/data
3751
3752 2006-04-11 Raphael Neider <rneider AT web.de>
3753
3754         * src/pic/device.c (find_device): removed debug output
3755           (list_valid_pics): enabled verbose listing of supported devices
3756         * device/include/stdbool.h: define bool as char for pic14/16 as well
3757
3758 2006-04-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3759
3760         * src/SDCC.y: allow using brackets here: "__interrupt (1) __using (1)"
3761
3762 2006-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
3763
3764         * .version: bumped version to 2.5.6
3765         * src/pic/ralloc.c (newReg): MSVC doesn't support __builtin_return_address
3766
3767 2006-04-06 Raphael Neider <rneider AT web.de>
3768
3769         * .version: bumped version to 2.5.6 (pic14 ABI changed)
3770         * src/SDCCmain.c: add -DSDCC_PROCESSOR=<id> for pic14 port
3771         * src/pic/glue.c (emitSymbolToFile,pic14_constructAbsMap,
3772           pic14emitRegularMap,pic14emitMaps): moved output for absolute symbols to
3773             pic14_constructAbsMap
3774           (pic14printPublics): declare absolute global symbols as global
3775           (pic14createInterruptVect),
3776         * src/pic/ralloc.c (IS_CONFIG_ADDRESS): support second config word,
3777           (newReg): assume new registers unused, use correct name in
3778             hashtable (reg->name instead of name), more debugLog output
3779         * src/pic/device.h (PIC_device): added fields for verbose output
3780         * src/pic/device.c: moved device definition to pic14devices.txt,
3781             added routines for runtime parsing of pic14devices.txt,
3782             added support for second config word
3783         * src/pic/main.c (_process_pragma): removed #pragma maxram,
3784           (_pic14_keywords): no longer accept "bit" and "sbit" keywords
3785           (_pic14_initPaths): add search paths with "pic" suffix (not "pic14")
3786           (_pic14_parseOptions): moved pCodeInitRegisters here
3787           (_pic14_do_link): add "pic$(ARCH).lib" to linker arguments
3788         * src/pic/pcode.c (AnalyzeBanking): bail out on unset processor,
3789           (pCodeInitRegisters): rewrapped comments, perpared new approach to
3790             handling the pseudo stack
3791         * device/lib/Makefile.in: ignore failures in objects-pic16,
3792         * device/lib/pic/{configure,configure.in,Makefile}: added libdev/
3793         * device/lib/pic/NEWS: document new dependency on picXXX.lib
3794         * device/lib/pic/Makefile.subdir,
3795         * device/lib/pic16/Makefile.subdir: improved clean rules
3796         * device/lib/pic/libdev/: NEW, pic14 device libraries
3797         * device/lib/pic/libsdcc/_gptr{get,put}{1,2,3,4}.S: use _X not X
3798         * device/lib/pic/libsdcc/macros.inc: use _X not X, declare default SFRs
3799         * device/include/Makefile.in: create subdir and install pic14 headers
3800         * device/include/pic/p16f_common.inc: removed unused declarations
3801         * device/include/pic/pic16*.h: added header files for 100+ 14 bit
3802             PICs from inc2h.pl v1.6,
3803             replaced BIT_AT macros with struct declarations
3804         * device/include/pic/pic14devices.txt: definition of supported devices,
3805             all above improvements contributed by Zik Saleeba, thanks
3806         * support/scripts/inc2h.pl: removed BIT_AT, replaced with structs
3807         * support/scripts/sdcc.nsi: also install pic14 device libraries and
3808             headers
3809
3810 2006-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
3811
3812         * device/include/mcs51/c8051f410.h: added interrupt numbers,
3813         * device/include/mcs51/c8051f200.h: old SiLabs mcu completes the list,
3814           thanks to Charles Olds
3815
3816 2006-04-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3817
3818         * debugger/mcs51/cmd.c (infoRegisters): show return address on stack
3819
3820 2006-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
3821
3822         * src/SDCCpeeph.c (labelIsReturnOnly): fixed bug 1464657
3823         * src/mcs51/gen.c (genJumpTab): fixed bug in medium model
3824         * support/regression/bug1464657.c: added, new test
3825
3826 2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
3827
3828         * src/SDCCmain.c (preProcess): implemented RFE 1449908, define SDCC as the
3829           version number
3830
3831 2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
3832
3833         * src/SDCCpeeph.c (initPeepHole): implemented RFE 1460196, when both
3834           --no-peep and --peep-file <file> are used don't use default rules but
3835           do use the <file>
3836
3837 2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
3838
3839         * src/mcs51/gen.c (genCall): fixed bug 1457608
3840
3841 2006-03-30 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3842
3843         * doc/sdccman.lyx: reverted to version 1.129 of december as my latest
3844         changes seem to cause (trigger?) problems with the build system.
3845
3846 2006-03-29 Maarten Brock <sourceforge.brock AT dse.nl>
3847
3848         * src/SDCCpeeph.c (operandsLiteral): new, added,
3849           (callFuncByName): inserted operandsLiteral
3850         * src/mcs51/peeph.def: reenabled 132.e, added extra check to 132.x
3851
3852 2006-03-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3853
3854         * doc/sdccman.lyx: added paragraph "Use of SDCC in Education"
3855         * src/mcs51/peeph.def: disabled rule 132.e fixing bug #1453093
3856
3857 2006-03-24 Maarten Brock <sourceforge.brock AT dse.nl>
3858
3859         * src/z80/gen.c (genFunction, genEndFunction): fixed bug 1160666,
3860           implemented patch 1120823 Thanks to Willy De la Court (normal
3861           interrupts need an interrupt number now if they are made critical),
3862           and enabled nesting of critical functions though not for gbz80
3863           (genCritical, genEndCritical): added functions
3864           (genZ80Code): added cases for CRITICAL and ENDCRITICAL
3865         * src/z80/mappings.i: added "ei" to all mappings
3866
3867 2006-03-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3868
3869         * sim/ucsim/cmd.src/newcmdcl.h: applied patch fixing GCC 4.1 build
3870         submitted by the Debian SDCC maintainer Aurelien Jarno:
3871         "Credits goes to Martin Michlmayr, who rebuilt the whole Debian
3872         archive with gcc 4.1 on mips and wrote the patch"
3873
3874 2006-03-16 Raphael Neider <rneider AT web.de>
3875
3876         * src/pic16/genarith.c (genAddLit): simplified and fixed case where
3877           the left operand is shorter than the result (c* = lit-c* + int),
3878           fixes bug #1450796
3879         * src/pic16/gen.c (genRightShift): check IS_SYMOP before accessing
3880           OP_SYMBOL
3881
3882 2006-03-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
3883
3884         * src/.version: increased version number to 2.5.5
3885         * src/SDCCmain.c (linkEdit): do not test for PIC16 target since, PIC16
3886         linking is done manually in pic16 port's _linkEdit,
3887         * src/SDCCsymt.c (compStructSize): for target PIC16 and shell variable
3888         PIC16_PACKED_BITFIELDS, compact bitfield structures as much as possible,
3889         * src/pic16/gen.c (aopForSym): when direct register name is WREG then
3890         allocate asmop as AOP_ACC,
3891         (aopForRemat): added parameter 'bool result' in function declaration,
3892         (pic16_aopGet): return AOP_ACC when accessing WREG,
3893         (pic16_popGetTempReg): minor modification,
3894         (pic16_popRegFromIdx): first try with 'pic16_regWithIdx' then with
3895         'pic16_allocWithIdx',
3896         (genPcall): removed ftype, usage of OP_SYM_TYPE asserted error when
3897         calling function in absolute addresses,
3898         (genAssign): take into account AOP_ACC asmop,
3899         * src/pic16/pcode.c (pic16_newpCodeOpReg): minor modifications,
3900         * src/pic16/pcoderegs.c: some debug functions and lines added,
3901         * src/pic16/ralloc.c (decodeRegType): added but commented out,
3902         * (pic16_typeRegWithIdx): search 'pic16_dynInternalRegs' for given
3903         register too,
3904         * (pic16_findFreeReg, pic16_findFreeRegNext): allocate new register via
3905         call to allocReg, not by manually allocating a new one,
3906         (pic16_assignRegisters): now before going through the register
3907         allocating functions mark all registers as free. This eliminates some
3908         side effects resulting from peephole parser done earlier in the backbone
3909
3910 2006-03-13 Maarten Brock <sourceforge.brock AT dse.nl>
3911
3912         * src/SDCCicode.c (geniCodeLogic),
3913         * src/SDCCast.c (decorateType): applied patch by Bernhard for rfe 1422617
3914
3915 2006-03-10 Maarten Brock <sourceforge.brock AT dse.nl>
3916
3917         * src/mcs51/gen.c (sameReg): new, checks if two aop regs are the same,
3918           (genSend): bugfix, do not allocate and free twice,
3919           (shiftRLong): handle partially overlapping aops
3920         * support/regression/tests/bitopcse.c: fixed warning redefined idata
3921
3922 2006-03-08 Borut Razem <borut.razem AT siol.net>
3923
3924         * support/regression/fwk/include/testfwk.h: added defines for xdata, idata
3925           for pic16
3926
3927 2006-03-08 Maarten Brock <sourceforge.brock AT dse.nl>
3928
3929         * support/regression/tests/bug1409955.c: new, added
3930         * src/mcs51/gen.h: changed asmop.freed:1 to asmop.allocated for tracking
3931         * src/mcs51/gen.c (newAsmop): set asmop.allocated to 1,
3932           (aopForSym, aopOp): increment asmop.allocated if reused,
3933           (freeAsmop): decrement asmop.allocated and check for zero instead of
3934           using asmop.freed,
3935           (freeForBranchAsmop): use asmop.allocated instead of asmop.freed,
3936           (genNot, genCpl, genUminus, genMinus, genMult, genDiv, genMod, genCmpGt,
3937            genCmpLt, genAndOp, genOrOp, genAnd, genOr, genXor, genRRC, genRLC,
3938            genGetHbit, genGetAbit, genGetByte, genGetWord, genSwap,
3939            genLeftShiftLiteral, genLeftShift, genRightShiftLiteral,
3940            genSignedRightShift, genRightShift, genDataPointerGet,
3941            genPagedPointerGet, genFarPointerGet, genCodePointerGet,
3942            genGenPointerGet, genDataPointerSet, genAssign, genCast): free asmop's
3943             in reverse order from allocation,
3944           (genPlus, genCmpEq): free asmop's in reverse order from allocation and
3945             added swappedLR to keep track
3946         * support/regression/fwk/include/testfwk.h: added defines for xdata, idata,
3947           pdata & code for GCC, z80, gbz80 & hc08
3948         * support/regression/tests/zeropad.c: moved defines to testfwk.h
3949
3950 2006-03-08 Raphael Neider <rneider AT web.de>
3951
3952         * src/pic16/main.c (_hasNativeMulFor): fixed bug #1444425
3953
3954 2006-03-07 Maarten Brock <sourceforge.brock AT dse.nl>
3955
3956         * device/include/mcs51/c8051f410.h: new SiLabs mcu
3957         * src/ds390/peeph.def: disabled 186.d and 227.a as fix for #1434401
3958         * support/regression/tests/array.c: added parenthesis, made arrays unsigned
3959
3960 2006-03-06 Borut Razem <borut.razem AT siol.net>
3961
3962         * support/regression/ports/pic16/spec.mk: link with libm18f.lib,
3963           made the linker quiet
3964
3965 2006-03-06 Vangelis Rokas <vrokas AT users.sourceforge.net>
3966
3967         * src/pic16/gen.c (genPcall): fixed bug #1443644
3968         * src/pic16/device.h (struct pic16_options_t): added 'int CATregs' flag
3969         which dumps before the function entry point a data byte which represents
3970         the number of the local variables used by the specified function, added
3971         'xinst' for initial support for Extended Instruction Support,
3972         * src/pic16/gen.c (aopForSym, pic16_aopGet): beautifications,
3973         (pic16_testStackOverflow): do not prefix GSTACK_TEST_NAME with
3974         port->fun_prefix anymore (may change later),
3975         (genFunction, genEndFunction): do not store/restore local registers for
3976         _main (this should take care the --main-return command line option in
3977         the future),
3978         (genOr): removed some legacy pic-port instructions,
3979         * src/pic16/genarith.c (genAddLit): re-enabled old code because
3980         performing operations with SFR's causes data to be written more than
3981         once to each SFR. Perhaps SFRs should be handled in special cases...
3982         * src/pic16/glue.c: macros BIG_ENDIAN and BYTE_IN_LONG are moved to
3983         pcode.h
3984         * src/pic16/main.c (_process_pragma): stack bound checking did not take
3985         into account for stack starting position,
3986         (struct OPTIONS pic16_optionsTable): added command line argument
3987         --extended or -y for Extended Instruction Support,
3988         * src/pic16/ralloc.c (pic16_decodeOp): added case for FUNCTION,
3989         (deassignLRs): *** perhaps the most important change, old 'for' code
3990         (commented out for reference), didn't account for some registers which
3991         were left marked 'not free' after a pointer operation. The change
3992         reduces register usage a lot in some cases
3993
3994 2006-03-04 Borut Razem <borut.razem AT siol.net>
3995
3996         * support/regression/ports/hc08/spec.mk: remove *.asm in traget
3997           _clean
3998         * support/regression/tests/bug-524697.c: decreased array size for
3999           mcs51 to fit into the internal RAM
4000         * support/regression/Makefile.in: a little bit more verbose
4001
4002 2006-03-03 Borut Razem <borut.razem AT siol.net>
4003
4004         * support/regression/fwk/lib/testfwk.c,
4005           support/regression/fwk/include/testfwk.h: introduced function
4006           _prints(), nonrecursive _printn(), call _initEmu() from main()
4007         * support/regression/ports/gbz80/support.asm,
4008           support/regression/ports/ucz80/support.asm,
4009           support/regression/ports/z80/support.asm,
4010           support/regression/ports/ds390/support.c,
4011           support/regression/ports/hc08/support.c,
4012           support/regression/ports/host/support.c,
4013           support/regression/ports/mcs51/support.c,
4014           support/regression/ports/xa51/support.c: added empty _initEmu()
4015           function
4016         * support/regression/ports/pic16/gpsim.cmd,
4017           support/regression/ports/pic16/spec.mk,
4018           support/regression/ports/pic16/support.c,
4019           support/regression/Makefile.in: added pic16 regression test
4020
4021 2006-03-01 Raphael Neider <rneider AT web.de>
4022
4023         * src/pic16/gen.c (genPcall,pic16_derefPtr,genGenPointerGet,
4024           genConstPointerGet): use safe way of generating MOVFF to cover
4025             literals as well as registers, fixes bug #1440527
4026         * src/pic16/glue.c (pic16_printIvalBitFields): prevent NULL pointer
4027             dereference
4028           (pic16_printIvalUnion,pic16_isUnion): NEW, handle initialized unions
4029             more correctly, fixes bug #1232186
4030           (pic16_printIval): use pic16_printIvalUnion() for initialized unions
4031         * src/pic16/main.c (_pic16_linkEdit): reorder linker arguments to make
4032             gplink guess the correct processor in more cases, applied patch
4033             from Till Riedel attached to and fixing bug #1436552
4034
4035 2006-02-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4036
4037         * support/regression/tests/array.c: added, contains check for #1434401
4038         * src/mcs51/peeph.def: disabled 186.d as temporary fix for #1434401
4039
4040 2006-02-16 Maarten Brock <sourceforge.brock AT dse.nl>
4041
4042         * device/include/mcs51/at89s8253.h: new, thanks to Krzysztof Polomka
4043         * device/include/mcs51/at89S8252.h: fixed, thanks to Krzysztof Polomka
4044         * device/include/mcs51/c8051f326.h,
4045         * device/include/mcs51/c8051f340.h: new SiLabs mcu's
4046         * device/include/mcs51/c8051f000.h,
4047         * device/include/mcs51/c8051f018.h,
4048         * device/include/mcs51/c8051f020.h: used () with __at, renamed IDLE,STOP to
4049           PCON_IDLE,PCON_STOP and added sfr16 definitions
4050
4051 2006-02-14 Maarten Brock <sourceforge.brock AT dse.nl>
4052
4053         * src/mcs51/gen.c (genPlus, genMinus, genMult, genGetAbit, genGetByte,
4054           genGetWord): fixed bug 1409955
4055
4056 2006-02-14 Maarten Brock <sourceforge.brock AT dse.nl>
4057
4058         * device/include/hc08/mc68hc908gp32.h,
4059         * device/include/hc08/mc68hc908jb8.h: removed AWUL, added PTA6 & PTA7
4060
4061 2006-02-13 Maarten Brock <sourceforge.brock AT dse.nl>
4062
4063         * src/SDCCast.c (constExprValue): return NULL if not a value
4064         * src/SDCCglue.c (printIvalArray): fixed bug 1225568
4065         * src/hc08/gen.c(genUnpackBits, genUnpackBitsImmed): fixed bug 1019480
4066         * support/regression/tests/bitfields.c: enabled signed bitfield for all
4067
4068 2006-02-13 Borut Razem <borut.razem AT siol.net>
4069
4070         * src/regression/ptrarg.c: added, fails due to bug #1430967
4071         * src/regression/Makefile: ptrarg.c added, ...
4072
4073 2006-02-12 Maarten Brock <sourceforge.brock AT dse.nl>
4074
4075         * src/z80/gen.c (genUnpackBits): fixed bug 1019480
4076         * support/regression/tests/bitfields.c: enabled signed bitfield for z80
4077
4078 2006-02-11 Borut Razem <borut.razem AT siol.net>
4079
4080         * src/SDCCmain.c: Added "sdcc: Calling linker..." if --verbose,
4081           print "Processor: xxx" message to stdout only if --verbose
4082
4083 2006-02-11 Maarten Brock <sourceforge.brock AT dse.nl>
4084
4085         * src/SDCCglue.c (printIvalStruct): fixed bug 1426356 union initializer
4086         * support/regression/tests/bug1426356.c: added
4087         * support/regression/tests/bitfields.c: removed 2 tests
4088
4089 2006-02-10 Maarten Brock <sourceforge.brock AT dse.nl>
4090
4091         * device/include/mcs51/at89c51snd1c.h: updated comments, see patch 1428901
4092         * device/include/mcs51/c8051f330.h,
4093         * device/include/mcs51/c8051f350.h: used () with __at, renamed IDLE,STOP to
4094           PCON_IDLE,PCON_STOP and added sfr16 definitions
4095         * device/lib/_divsint.c,
4096         * device/lib/_divuint.c,
4097         * device/lib/_divulong.c,
4098         * device/lib/_divulong.c: renamed a,b to x,y to avoid confusion, fixed
4099           register bank bug for small stackauto
4100
4101 2006-02-09 Maarten Brock <sourceforge.brock AT dse.nl>
4102
4103         * support/regression/fwk/lib/timeout.c: include <stdlib.h> for exit()
4104
4105 2006-02-08 Maarten Brock <sourceforge.brock AT dse.nl>
4106
4107         * support/regression/ports/mcs51-xstack-auto/spec.mk: forgot -I(...)/mcs51
4108         * all.dsp: corrected several bin paths
4109         * device/include/mcs51/c8051f120.h,
4110         * device/include/mcs51/c8051f300.h,
4111         * device/include/mcs51/c8051f310.h: used () with __at and renamed IDLE,STOP
4112           to PCON_IDLE,PCON_STOP
4113         * device/include/mcs51/c8051f320.h: see above, also added sfr16 definitions
4114         * device/lib/printf_large.c (output_float): fixed bug 1388703
4115         * support/regression/tests/bug1057979.c: added test for bug 1388703
4116
4117 2006-02-08 Raphael Neider <rneider AT web.de>
4118
4119         * src/pic/pcode.c (pciTRIS): fixed typo,
4120           (BuildFlow,LinkFlow_pCode): added (disabled) debug output,
4121           (LinkFlow): fixed handling of flows that end in a call,
4122           (ReuseReg): perform safety check earlier
4123         * src/pic/pcoderegs.c (pCodeRegMapLiveRangesInFlow): fixed
4124             to work with flows at the beginning of a pBlock,
4125             fixes #1426557 (Symbol not previously defined),
4126           (pic14_ReMapLiveRanges): NEW, destroy and rebuild register
4127             usage information
4128           (RemoveUnusedRegisters): update register usage info
4129         * src/pic/ralloc.c (newReg): prevent duplicate registers from being
4130             created, reuse existing ones instead
4131         * src/pic/gen.c (genPcall): fixed #1424719
4132
4133 2006-02-07 Bernhard Held <bernhard AT bernhardheld.de>
4134
4135         * link/z80/lkmain.c,
4136         * link/z80/lklex.c,
4137         * link/z80/lkdata.c,
4138         * link/z80/aslink.h: fixed build on current cygwin:
4139         replaced getline() by lk_getline()
4140
4141 2006-02-01 Borut Razem <borut.razem AT siol.net>
4142
4143         * src/regression/add.c, src/regression/add2.c, src/regression/add3.c,
4144           src/regression/add4.c, src/regression/and1.c, src/regression/and2.c,
4145           src/regression/arrays.c, src/regression/b.c, src/regression/bank1.c,
4146           src/regression/bool1.c, src/regression/bool2.c,
4147           src/regression/bool3.c, src/regression/call1.c,
4148           src/regression/compare.c, src/regression/compare10.c,
4149           src/regression/compare2.c, src/regression/compare3.c,
4150           src/regression/compare4.c, src/regression/compare5.c,
4151           src/regression/compare6.c, src/regression/compare7.c,
4152           src/regression/compare8.c, src/regression/compare9.c,
4153           src/regression/configword.c, src/regression/for.c,
4154           src/regression/inline.c, src/regression/mult1.c,
4155           src/regression/nestfor.c, src/regression/or1.c,
4156           src/regression/pointer1.c, src/regression/ptrfunc.c,
4157           src/regression/rotate1.c, src/regression/rotate2.c,
4158           src/regression/rotate3.c, src/regression/rotate4.c,
4159           src/regression/rotate5.c, src/regression/rotate6.c,
4160           src/regression/rotate7.c, src/regression/string1.c,
4161           src/regression/struct1.c, src/regression/sub.c,
4162           src/regression/sub2.c, src/regression/switch1.c,
4163           src/regression/while.c, src/regression/xor.c,
4164           src/regression/create_stc, src/regression/simulate,
4165           src/regression/rt.sh, src/regression/Makefile: reenabled Scott's PIC14
4166           regression tests
4167         * src/regression/gpsim_assert.h: added
4168
4169 2006-01-28 Bernhard Held <bernhard AT bernhardheld.de>
4170
4171         * src/ds390/gen.c (unsaveRegisters): fixed literal function pointer
4172         ((void (code *) (void)) 0) ();
4173         * as/hc08/aslex.c,
4174         * as/hc08/aslink.h,
4175         * as/hc08/asm.h,
4176         * as/hc08/asmain.c,
4177         * as/hc08/lkdata.c,
4178         * as/hc08/lklex.c,
4179         * as/hc08/lkmain.c,
4180         * as/mcs51/aslex.c,
4181         * as/mcs51/aslink.h,
4182         * as/mcs51/asm.h,
4183         * as/mcs51/asmain.c,
4184         * as/mcs51/lkdata.c,
4185         * as/mcs51/lklex.c,
4186         * as/mcs51/lkmain.c,
4187         * as/z80/aslex.c,
4188         * as/z80/asm.h,
4189         * as/z80/asmain.c: fixed build on current cygwin:
4190         replaced getline() by as_getline()
4191
4192 2006-01-27 Bernhard Held <bernhard AT bernhardheld.de>
4193
4194         * src/SDCC.y: fixed bug #716242, exchanged pointer and function
4195         declarator in the symbol chain
4196         * src/SDCCsymt.h,
4197         * src/SDCCsymt.c (processFuncPtrArgs): added, removes "(void)"
4198         parameter list for function pointers
4199         * src/SDCCast.c (decorateType): added call of processFuncPtrArgs()
4200         * support/regression/tests/bug-716242.c: added
4201
4202 2006-01-20 Bernhard Held <bernhard AT bernhardheld.de>
4203
4204         * src/SDCCicode.c (geniCodeAdd, geniCodeArray): use char for array
4205         offset if possible
4206         * src/SDCCast.c (getLeftResultType): 255 fits in char, not 256
4207
4208 2006-01-18 Bernhard Held <bernhard AT bernhardheld.de>
4209
4210         * src/SDCCast.c (backPatchLabels): fixed bug #1408066: made it
4211         inifinitely recurseable, added static
4212         * support/regression/tests/bug-1408066.c: added
4213
4214 2006-01-17 Bernhard Held <bernhard AT bernhardheld.de>
4215
4216         * src/SDCCicode.h,
4217         * src/SDCCicode.c (newiTempPreheaderLabel, newiTempLoopHeaderLabel):
4218         renamed, added possibility to create "postLoopLbl"-labels
4219         * src/SDCCBBlock.c (iCodeBreakDown): renamed newiTempPreheaderLabel to
4220         newiTempLoopHeaderLabel
4221         * src/SDCCloop.c (newInduction, newRegion, backEdges, insertIntoLoop,
4222         isNotInBlocks, addToExitsMarkDepth, createLoop, dominatedBy,
4223         addDefInExprs, assignmentsToSym, isOperandInvariant, pointerAssigned,
4224         hasNonPtrUse, loopInvariants, addressTaken, findInduction,
4225         findDefInRegion, mergeRegions, ifMerged, mergeInnerLoops): made static,
4226         (pinduction, pregion, hasIncomingDefs, findLoopEndSeq): disabled,
4227         (basicInduction): fixed bug #136564, made static,
4228         (loopInduction): changed parameter of basicInduction, made static,
4229         (addPostLoopBlock): added
4230         * src/SDCCloop.h: removed backEdges, pregion, pinduction,
4231         loopOptimizations, addressTaken, findDefInRegion, hasIncomingDefs,
4232         findLoopEndSeq
4233         * support/regression/tests/bug-136564.c: added
4234         * support/regression/ports/mcs51-xstack-auto/spec.mk: added
4235         --std-sdcc99 to LIBSDCCFLAGS
4236
4237 2006-01-16 Bernhard Held <bernhard AT bernhardheld.de>
4238
4239         * src/SDCCicode.c (geniCodeIfx): fix bug 1406131: always false
4240         while loop
4241         * support/regression/tests/bug-1406131.c: added
4242
4243 2005-12-31 Bernhard Held <bernhard AT bernhardheld.de>
4244
4245         * src/SDCCast.c (decorateType): fix promotion of unary minus
4246         * src/SDCCsymt.c (computeType): beautified
4247         * src/SDCCval.c (cheapestVal): beautified, old non-Ansi version removed,
4248         (valUnaryPM, valComplement): fix sign and promotion,
4249         (valNot): ANSI: result type is int (SDCC: unsigned char)
4250         * support/regression/tests/uminus.c: speedup by removing superflous
4251         test case 'int'
4252         * support/regression/tests/onebyte.c: added promotion and signedness
4253         tests for unary minus
4254         * support/regressions/tests/bug-477927.c: disable warning about
4255         uninitialized variables
4256         * support/regression/tests/not.c: added
4257
4258 2005-12-28 Bernhard Held <bernhard AT bernhardheld.de>
4259
4260         * device/lib/Makefile.in: added --std-sdcc99 to CFLAGS
4261         * src/mcs51/gen.c (gen51Code): show final register usage after
4262         fillGaps in asm with --i-code-in-asm
4263         * src/SDCClrange.c (sequenceiCode, setLiveFrom, setLiveTo,
4264         markLiveRanges, markAlive, findNextUseSym, findNextUse, unvisitBlocks,
4265         incUsed, rliveClear, adjustIChain): made static,
4266         (setFromRange): excluded because it's unused,
4267         (findPrevUseSym, markWholeLoop): added,
4268         (findPrevUse): rewritten; fixes bug 895992; now a complete search
4269         through all branches of predecessors enables sdcc to emit the warning
4270         W_LOCAL_NOINIT, marking of outermost loop was incomplete,
4271         (rlivePoint): made static, added parameter emitWarnings which is only
4272         true during the first run out of two,
4273         (findRecursiveSucc, findRecursivePred): removed,
4274         (computeLiveRanges): made static, added parameter emitWarnings,
4275         (dumpIcRlive): added for debugging only
4276         * src/SDCClrange.h: added boolean parameter to computeLiveRanges(),
4277         removed prototype of setFromRange()
4278         * src/SDCCopt.c (eBBlockFromiCode): added new parameter emitWarnings
4279         in call of computeLiveRanges()
4280         * support/regression/tests/bug-895992.c: added
4281         * support/regression/tests/bug-971834.c: added
4282         * support/valdiag/tests/bug-895992.c: added
4283         * support/valdiag/tests/bug-971834.c: added
4284
4285 2005-12-18 Raphael Neider <rneider AT web.de>
4286
4287         * src/pic16/gen.c: added IS_DIRECT macro for "direct" operands,
4288           (genUnpackBits): improved code for direct operands,
4289           (genPackBits): improved code for literal assignment to bitfields
4290             and for direct destination operands (no FSR indirection),
4291             prevented redundant AND, fixes #1362800,
4292           (AccLsh): added parameter to disable masking of the result
4293         * src/pic16/pcode.c (pic16_safepCodeUnlink): fixed to work with
4294           skip instructions with side-effects (like incfsz),
4295           (pic16_pCodeIsAlive): suppress verbose output unless pcode_verbose,
4296         * src/pic16/pcoderegs.c (RemoveRegsFromSet): removed annoying warning
4297         * device/lib/pic16/Makefile.common.in: added --asm=@GPASM@ to CC,
4298           fixes #1375263
4299
4300 2005-12-11 Bernhard Held <bernhard AT bernhardheld.de>
4301
4302         * src/SDCCicode.c (geniCodeAssign): fixed bug 11369874, don't use
4303         volatile variables as spill location
4304
4305 2005-12-10 Bernhard Held <bernhard AT bernhardheld.de>
4306
4307         * src/SDCCcse.c (findCheaperOp): fixed bug 1376320, copy signedness to
4308         replacing literals
4309         * support/regression/tests/bug-1376320.c: added
4310
4311 2005-12-08 Raphael Neider <rneider AT web.de>
4312
4313         * src/pic/device.c: renamed is_shared to pic14_is_shared
4314         * src/pic/gen.c (genIfx): re-enabled handling of sbits
4315         * src/pic/glue.c (emitSymbolToFile): added workaround for sbits,
4316           (is_valid_identifier): added for above workaround
4317
4318 2005-12-07 Maarten Brock <sourceforge.brock AT dse.nl>
4319
4320         * device/lib/Makefile.in: fixed to enable port-specific-objects
4321         * device/lib/ds390/i2c390.c (BitOutI2C): optimized by making bout unsigned
4322           char, thanks Hubert Sack
4323         * doc/sdccman.lyx: documented --xstack-loc,
4324           elaborated a bit more on interrupts and pitfalls,
4325           removed "setjmp/longjmp unsupported",
4326           documented some unsupported C99 features
4327         * src/SDCCmain.c (linkEdit): adapted default lib path for --stack-auto
4328         * src/SDCCpeeph.c (readRules): inserted patch 1367130 for finding missing
4329           if, thanks Hubert Sack
4330         * src/mcs51/gen.c (genEndFunction): enabled "pop psw" for regbank 0 isr
4331         * support/regression/Makefile.in: test-mcs51-stack-auto no longer needs to
4332           make make_library
4333         * support/regression/get_ticks.py: new, get cpu cycles and code size, so
4334           regression tests can report resource usage (rfe 700441)
4335         * support/regression/collate-results.py: report resource usage
4336         * support/regression/ports/ds390/spec.mk,
4337         * support/regression/ports/hc08/spec.mk,
4338         * support/regression/ports/mcs51/spec.mk,
4339         * support/regression/ports/ucz80/spec.mk: run sim output through get_ticks
4340         * support/regression/ports/ds390/uCsim.cmd,
4341         * support/regression/ports/hc08/uCsim.cmd,
4342         * support/regression/ports/mcs51/uCsim.cmd,
4343         * support/regression/ports/ucz80/uCsim.cmd: inserted "state" to report time
4344         * support/regression/ports/mcs51-stack-auto/spec.mk: no need to build the
4345           library, use the default one
4346         * support/regression/ports/mcs51-xstack-auto/spec.mk: inserted rules for
4347           building the library
4348
4349 2005-12-06 Maarten Brock <sourceforge.brock AT dse.nl>
4350
4351         * config.dsp: added dependency on .version and configure_vc.awk
4352         * device/include/setjmp.h: updated for --stack-auto and --xstack
4353         * device/include/mcs51/at89c51snd1c.h: corrected line endings
4354         * device/include/mcs51/XC866.h: added, thanks Llewellyn van Zyl
4355         * device/lib/_setjmp.c: updated for --stack-auto and --xstack
4356         * device/lib/libsdcc.lib: added _setjmp
4357         * src/SDCCast.c (createIvalCharPtr): fixed warnings,
4358           (decorateType): fixed bug 1372851,
4359           (optimizeGetHbit): fixed warning
4360         * src/SDCCglue.c (printIvalChar, printIvalArray): adapted for flexible
4361           array initialisation
4362         * support/regression/tests/bug1057979.c: added test for bug 1358192
4363         * support/regression/tests/setjmp.c: added, test for setjmp/longjmp
4364
4365 2005-12-03 Borut Razem <borut.razem AT siol.net>
4366
4367         * support/scripts/sdcc.nsi: added /SOLID option to "SetCompressor lzma"
4368           command since the NSIS was upgraded to version 2.11 on CF x86-linux2
4369
4370 2005-11-29 Bernhard Held <bernhard AT bernhardheld.de>
4371
4372         * src/SDCCast.c (createIvalStruct, createIvalArray, createIvalPtr,
4373         createIval): implement symbol independant "flexible array member",
4374         (createIvalCharPtr): implemented flexible array initialisation with a
4375         string
4376         * src/SDCCsymt.c (copyStruct): removed,
4377         (getSize): fixed misleading comment,
4378         (getAllocSize): removed, the additional allocation size is now in
4379         sym->flexArrayLength,
4380         (checkStructFlexArray): new, syntax checks for flexible array members,
4381         (compStructSize): added syntax checks for "flexible array members"
4382         (copyStruct): removed,
4383         (copyLinkChain): removed inefficient fix for bug 770487
4384         * src/SDCCglue.c (emitRegularMap): getAllocSize has been removed
4385         * src/SDCCsymt.h: added structdef.b_flexArrayMember and
4386         symbol->flexArrayLength
4387         * src/SDCCerr.c,
4388         * src/SDCCerr.h: added W_INVALID_FLEXARRAY, W_C89_NO_FLEXARRAY,
4389         E_FLEXARRAY_NOTATEND and E_FLEXARRAY_INEMPTYSTRCT
4390         * support/regression/tests/structflexarray.c: added
4391         * support/valdiag/tests/structflexiblearray.c: added
4392
4393 2005-11-29 Bernhard Held <bernhard AT bernhardheld.de>
4394
4395         * src/SDCCast.c (decorateType): fixed bug 1368489
4396         * support/Util/SDCCerr.c,
4397         * support/Util/SDCCerr.h: added warning W_CMP_SU_CHAR
4398
4399 2005-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4400
4401         * device/include/mcs51/at89c51snd1c.h: added file submitted by
4402           Weston T. Schmidt <schmidtw AT users.sourceforge.net>, patch #1368001
4403
4404 2005-11-27 Borut Razem <borut.razem AT siol.net>
4405
4406         * support/cpp2/cppinit.c, support/cpp2/cpplib.h, support/cpp2/mkdeps.c,
4407           support/cpp2/mkdeps.h: added command line option
4408           -obj-ext=<extension> to SDCPP to define object file externion, used
4409           for generation of make dependencies (-M)
4410         * src/SDCCmain.c: pass -obj-ext=<extension> to SDCPP
4411
4412 2005-11-26 Borut Razem <borut.razem AT siol.net>
4413
4414         * support/scripts/sdcc.nsi: added small-stack-auto libraries,
4415           added missing device/lib/mcs51/crt*.asm, pic and pic16 sources,
4416           added pic and pic16 libraries
4417
4418 2005-11-26 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4419
4420         * device/include/float.h: Corrected typo in prototype of __fsgt
4421
4422 2005-11-25 Borut Razem <borut.razem AT siol.net>
4423
4424         * sdcc/device/lib/Makefile.in, sdcc/device/lib/incl.mk:
4425           added creation of model-mcs51-stack-auto libraries
4426
4427 2005-11-24 Bernhard Held <bernhard AT bernhardheld.de>
4428
4429         * src/SDCCsymt.c (copyLinkChain): fixed bug 770487, copy structdef
4430         and fields-list too
4431         * src/SDCCast.c (createIvalArray): removed obsolete comment
4432
4433 2005-11-24 Borut Razem <borut.razem AT siol.net>
4434
4435         * sdcc/device/lib/Makefile.in: remove all unnecessary files, 2nd try...,
4436           added missing device/lib/mcs51/crt*.asm sources
4437
4438 2005-11-23 Bernhard Held <bernhard AT bernhardheld.de>
4439
4440         * src/SDCCast.c (createIvalCharPtr): fixed bug 1348271
4441
4442 2005-11-22 Maarten Brock <sourceforge.brock AT dse.nl>
4443
4444         * device/lib/_fs2schar.c,
4445         * device/lib/_fs2sint.c,
4446         * device/lib/_fs2slong.c: optimized inline asm
4447
4448 2005-11-21 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4449
4450         * device/lib/_fs2slong.c, device/lib/_fs2sint.c, device/lib/_fs2char.c:
4451           Better handling of floats between -1.0 and 0.0.
4452
4453 2005-11-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4454
4455         * src/mcs51/peeph.def: added missing "if"s as noted by Hubert Sack.
4456           (the missing "if"s prohibited removal of redundant labels)
4457
4458 2005-11-19 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4459
4460         * device/lib/_fs2slong.c, device/lib/_fs2sint.c, device/lib/_fs2char.c:
4461           Properly convert floats between -1.0 and 0.0 to long, int, and char
4462           types (max integer value of negative floats tends to zero).
4463         * device/lib/modff.c, device/lib/ceilf.c, device/lib/floorf.c:
4464           Removed changes made so to work properly with floats between
4465           -1.0 and 0.0, as the problem is fixed in _fs2slong.c, _fs2sint.c,
4466           and _fs2char.c
4467
4468 2005-11-18 Bernhard Held <bernhard AT bernhardheld.de>
4469
4470         * src/SDCCcse.c (ReplaceOpWithCheaperOp): minor fix for debugging only
4471         * src/mcs51/gen.c (genUnpackBits): better code and a fix,
4472         (genCast) cosmetic change
4473         * src/ds390/gen.c (genUnpackBits, ): ported from mcs51
4474         * src/ds390/ralloc.c (packRegsForAssign): ported fix for bitfields
4475         from mcs51
4476         * support/regression/tests/bitfields (testSignedBitfields): added
4477
4478 2005-11-18 Borut Razem <borut.razem AT siol.net>
4479
4480         * sdcc/device/lib/Makefile.in: remove all unnecessary files
4481         * device/lib/pic/Makefile.rules, device/lib/pic16/Makefile.subdir:
4482           introduced SILENT option to make building of pic16 libraries less
4483
4484 2005-11-18 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4485
4486         * device/lib/modff.c, device/lib/ceilf.c, device/lib/floorf.c:
4487           Now they work properly with floats between -1.0 and 0.0
4488         * device/lib/printf_large.c: Removed temporary patch for bug 1358192
4489
4490 2005-11-18 Maarten Brock <sourceforge.brock AT dse.nl>
4491
4492         * src/SDCCicode.c (printOperand): added missing else
4493
4494 2005-11-18 Bernhard Held <bernhard AT bernhardheld.de>
4495
4496         * src/SDCCsymt.c (computeType): fixed bug 1358192: added missing else,
4497         reformatted for better readability
4498         * src/mcs51/gen.c (genUnpackBits): initial, incomplete support for
4499         signed bitfields
4500
4501 2005-11-17 Borut Razem <borut.razem AT siol.net>
4502
4503         * device/lib/pic16/Makefile.rules, device/lib/pic16/Makefile.subdir:
4504           introduced SILENT option to make building of pic16 libraries less
4505           verbose - used for nightly snapshot build
4506         * doc/sdccman.lyx: documented that SDCDB and ucSim are currently not
4507           available on Win32 platforms.
4508         * sdcc/device/lib/Makefile.in: added library sources for mcs51, small,
4509           medium, large, pic and pic16
4510
4511 2005-11-16 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4512
4513         * device/lib/printf_large.c: Temporary patch for bug 1358192:
4514           printf("%f"...) sets fraction to zero.
4515
4516 2005-11-16 Raphael Neider <rneider AT web.de>
4517
4518         * src/pic/pcode.c (LinkFlow): handle empty flows correctly,
4519           fixes #1357221
4520         * src/pic/gen.c (genIfx): implemented for CARRY bit
4521         * src/pic16/gen.c (genAssign,genCast): fixed assigning/casting
4522           to generic pointers, fixes #1357332,
4523           (pic16_movLit2f): NEW,
4524           (pic16_storeForReturn,genDataPointerSet): use pic16_movLit2f
4525
4526 2005-11-14 Maarten Brock <sourceforge.brock AT dse.nl>
4527
4528         * src/SDCCmain.c (parseCmdLine): fixed bug 1356800, thanks rsudjian
4529
4530 2005-11-11 Raphael Neider <rneider AT web.de>
4531
4532         * src/pic/gen.c: handle FPOINTERS like POINTERS everywhere
4533         * src/pic16/gen.c (pic16_derefPtr): now works for non-pointers as well,
4534           compute pointer's type from operand,
4535           (genUnpackBits,genPackBits): handle FPOINTERS correctly, re-indented,
4536           improved single bit reads, fixes bug #1353379
4537
4538 2005-11-09 Borut Razem <borut.razem AT siol.net>
4539
4540         * support/scripts/sdcc.nsi: added lib/pic to the package
4541
4542 2005-11-08 Maarten Brock <sourceforge.brock AT dse.nl>
4543
4544         * src/SDCCval.c (valUnaryPM): fixed bug 1350699
4545
4546 2005-11-06 Maarten Brock <sourceforge.brock AT dse.nl>
4547
4548         * support/regression/tests/bug1348008.c: added
4549         * src/mcs51/gen.c (saveRBank, unsaveRBank): fixed bug 1348008
4550         * support/regression/tests/bug1337835.c: updated comment
4551
4552 2005-11-06 Borut Razem <borut.razem AT siol.net>
4553
4554         * sim/ucsim/error.cc, sim/ucsim/errorcl.h,
4555           sim/ucsim/sim.src/stack.cc, sim/ucsim/sim.src/stackcl.h,
4556           sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
4557           sim/ucsim/sim.src/mem.cc, sim/ucsim/sim.src/memcl.h,
4558           sim/ucsim/cmd.src/set.cc, sim/ucsim/cmd.src/show.cc:
4559           dynamic construction of cl_error_class and derivates - 2.nd try
4560
4561 2005-11-05 Borut Razem <borut.razem AT siol.net>
4562
4563         * sim/ucsim/sim.src/error.cc: fixed uninitialized class member variable
4564           bug, which caused Bus Errors on sparc solaris
4565
4566 2005-11-04 Borut Razem <borut.razem AT siol.net>
4567
4568         * sim/ucsim/error.cc, sim/ucsim/errorcl.h,
4569           sim/ucsim/sim.src/stack.cc, sim/ucsim/sim.src/stackcl.h,
4570           sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
4571           sim/ucsim/sim.src/mem.cc, sim/ucsim/sim.src/memcl.h,
4572           sim/ucsim/cmd.src/cmdconf.cc: dynamic construction of cl_error_class
4573           and derivates to resolve the initialization problem on OSX
4574
4575 2005-11-02 Borut Razem <borut.razem AT siol.net>
4576
4577         * sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/newcmd.cc:
4578           corrected typo - #include <winsock2.h>
4579
4580 2005-11-02 Maarten Brock <sourceforge.brock AT dse.nl>
4581
4582         * src/asm.c (printILine): always close tmpFile, thanks Beau E. Cox,
4583           (_asxxxx_mapping): added org directive for future enhancements
4584
4585 2005-11-01 Borut Razem <borut.razem AT siol.net>
4586
4587         * sim/ucsim/app.cc, sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/newcmd.cc:
4588           enabled sockets on WIN32
4589         * sim/ucsim/cmd.src/newcmd.cc: fixed bug with uninitialized variables
4590
4591 2005-10-31 Borut Razem <borut.razem AT siol.net>
4592
4593         * support/regression/generate-cases.py: escape backslashes in {testcase}:
4594           WIN32 backslash path delimiters should be escaped when used in C strings
4595         * support/regression/tests/bitfields.c: exclude failing assertions for
4596           __CYGWIN32__ and __MINGW32__ hosts
4597
4598 2005-10-30 Borut Razem <borut.razem AT siol.net>
4599
4600         * src/SDCCutil.c: corrected double comparison typo
4601
4602 2005-10-30 Maarten Brock <sourceforge.brock AT dse.nl>
4603
4604         * device/lib/medium/Makefile: added for new memory model medium
4605         * device/include/asm/mcs51/features.h: updated for medium/pdata
4606         * device/include/mcs51/c8051f120.h: added sfr16/sfr32 definitions,
4607           added Multiply & Accumulate sbit's and MAC0_PAGE define
4608         * device/include/mcs51/c8051f300.h: added sfr16 definitions
4609         * device/include/mcs51/c8051f310.h: added sfr16 definitions
4610         * device/lib/_mullong.c: update for medium model
4611         * device/lib/incl.mk: added medium model
4612         * doc/sdccman.lyx: documented medium model
4613         * src/SDCCast.c (isBitAndPow2): simplified using updated powof2
4614         * src/SDCCicode.c (geniCodeMultiply, geniCodeDivision): use updated powof2
4615         * src/SDCCmain.c (optionsTable, linkEdit): enabled medium model
4616         * src/SDCCmem.c (allocIntoSeg): set iaccess for pdata symbols,
4617           (allocParms): set SCLS and OCLS to pdata for medium model
4618         * src/SDCCsymt.c (processFuncArgs): use default_local_map and set iaccess
4619           for pdata,
4620           (powof2): return <0 if not power of 2
4621         * src/avr/gen.c (genBitWise): use updated powof2
4622         * src/mcs51/gen.c (genMinusDec): use acc if necessary,
4623           (shiftR2Left2Result): small optimization in setup, save acc when storing,
4624           (shiftLLeftOrResult): use B if necessary
4625         * src/mcs51/main.c (_mcs51_finaliseOptions, mcs51_port): added medium model
4626         * src/mcs51/peeph.def: renamed 226 to 226.b, added 226.a
4627         * src/pic/main.c (_pic14_do_link): made void parameter list explicit
4628         * support/regression/Makefile.in: added test-mcs51-medium
4629         * support/regression/ports/mcs51-medium/spec.mk: added to test medium model
4630
4631 2005-10-28 Bernhard Held <bernhard AT bernhardheld.de>
4632
4633         * src/SDCCsymt.c (compStructSize): make bitfields without (un)signed
4634         specifier unsigned
4635         * device/lib/time.c (mktime): fixed bug 1334315
4636
4637 2005-10-28 Raphael Neider <rneider AT web.de>
4638
4639         * device/include/pic/p16f_common.inc: added common declarations
4640         * src/pic/ralloc.c (initStack): moved regs *r to block start for Alpha
4641
4642 2005-10-27 Maarten Brock <sourceforge.brock AT dse.nl>
4643
4644         * src/mcs51/gen.c (getTempRegs): return 0 if not enough registers found,
4645           (aopPutUsesAcc): added to predict accumulator use,
4646           (assignResultValue): save acc if necessary,
4647           (genMinusDec): store result if indirectly addressed,
4648           (genDivOneByte):  save acc if necessary,
4649           (movLeft2Result): bugfix if left already in acc,
4650           (genAnd, genOr, genXor, shiftL2Left2Result, shiftR2Left2Result): pay more
4651             attention to accumulator use (esp. pdata),
4652           (genReceive): receive pdata correctly
4653         * src/SDCCicode.c (isOperandInPagedSpace): added to detect pdata operands
4654         * src/SDCCicode.h: added isOperandInPagedSpace prototype
4655
4656 2005-10-27 Raphael Neider <rneider AT web.de>
4657
4658         * doc/sdccman.lyx: corrected version (should be 2.5.4 not 2.5.5)
4659
4660 2005-10-27 Raphael Neider <rneider AT web.de>
4661
4662         * .version: changed version to 2.5.4
4663         * doc/sdccman.lyx: changed version to 2.5.4, added some remarks to PIC14
4664         * device/lib/pic/libsdcc/{_mulint.c,_mullong.c}: use unsigned literals,
4665           (_divschar.c,divuchar.c,_mulchar.c,_modschar.c,_moduchar): NEW,
4666             arithmetics support routines
4667         * device/lib/pic/Makefile.rules: have assembler sources preprocessed
4668         * device/lib/Makefile.in: also create installdir for pic
4669
4670         * src/SDCCopt.c (cnvToFcall): mark support routines `extern' for
4671           pic14 port as well
4672         * src/pic/device.c (dump_sfr): rewritten to delegate register
4673           placement to the linker (use `extern sym' rather than sym EQU addr),
4674           (validAddress): fixed to check last specified address
4675         * src/pic/gen.c (aopForSym): added code to deal with array (useless?),
4676           (popGetLit): truncate literal value to 8 bit,
4677           (popGet): moved assert to more appropriate place
4678           (popGetExternal): create pCode operand from and mark the according
4679             symbol as being `extern'
4680           (popGetAddr): added sanity check on immediate's offset, provide
4681             GPOINTER tag on demand
4682           (aopPut): fixed for immediates,
4683           (mov2w_op): move operand's address or contents to WREG (depending on
4684             operand type), safer variant of mov2w,
4685           (movwf,call_libraryfunc): NEW, handy abbreviations,
4686           (get_argument_pcop,get_return_val_pcop,pass_argument,
4687           get_returnvalue): interface for accessing function parameters and
4688             return values,
4689           (assignResultValuei,genRet): use new parameter/return value interface
4690           (pic14_getDataSize): back to old version handling generic pointers,
4691           (pic14_toBoolean,genNot,genCpl,genCmpEq,genOrOp): heavily rewritten,
4692             provided implementation and/or fixed old one,
4693           (genMultOneByte,genDivOneByte,genModOneByte): implemented as library
4694             calls, removed legacy 8051 reference code
4695           (AccLsh,AccRsh): rewritten and fixed to deal with signed operands
4696           (loadSignToC): NEW, move the operands sign bit to CARRY,
4697           (genGenericShift): NEW, replaces genLeftShift, genRightShift and
4698             genRightShiftSigned, accepts negative shift counts,
4699           (setup_fsr): load FSR and adjust IRP (indirect memory access),
4700           (emitPtrByteGet,emitPtrByteSet): rewritten, now works with
4701             generic pointers, __data pointers and __code pointers,
4702           (genUnpackBits,genPackBits): rewritten to work with generic pointers
4703             and signed bitfields, limit bitfields to 8 bit,
4704           (genDataPointerGet): fixed number of bytes read,
4705           (genGenPointerGet,genConstPointerGet): fixed bitfield access,
4706           (genPointerGet,genPointerSet): fixed handling of __code pointers,
4707             pointers to constant data are no longer assumed to point to __code
4708             space, removed invalid pointer types,
4709           (bitpatternFromVal): retrieve the PICs representation of an integer
4710             or float literal,
4711           (genDataPointerSet): fixed assigning to po_immediate operands,
4712           (genGenPointerSet): implemented as library call,
4713           (genIfx): fixed incorrect condition,
4714           (genAddrOf): limit generic pointers' addresses to 2 bytes,
4715             provide GPOINTER tag according to destination's storage class,
4716           (genCast): added code to handle casting to generic pointers, added
4717             sign-/zero extension of the result
4718           (aop_isLitLike,op_isLitLike): fixed handling of immediates
4719         * src/pic/gen.h: added macros to access IRP bit in STATUS register
4720         * src/pic/genarith.c (genAddLit): use min(result's,left's) size, sign
4721           extend the result
4722         * src/pic/glue.c (is_shared_address,is_shared): check whether a given
4723           address/register resides in the shared banks
4724           (emitSymbolToFile): improved to handle global and `pinned' symbols,
4725             put all variables into separate sections (have the linker arrange
4726             them)
4727           (picglue): put init code and interrupt handlers in separate sections
4728         * src/pic/main.c: added port specific options table, modified to PORT
4729           structure to make GPOINTERs 3 byte, added pic14_options
4730           (_pic14_do_link): private linking routine (update paths to libraries,
4731             add libsdcc.lib by default)
4732         * src/pic/main.h: declare pic14_options
4733         * src/pic/pcode.c: fixed instructions i/o relations,
4734           (RegCond): reverted to correct version,
4735           (newpCodeOpLit): truncate literals to 8 bit,
4736           (genericPrint): added debug output,
4737           (getRegFromInstruction): fixed for various operand types, simplified
4738           (BuildFlow): fixed broken handling of isntructions with labels
4739           (LinkFlow): start at last instruction in flow (skip trailing comments),
4740             pass the flow on to the next instruction after CALL
4741           (pCodeReplace): NEW, replace a pCode and move meta data to the new one
4742           (insertPCodeInstruction): fixed inserting after a skip instruction,
4743           (DoBankSelect): fixed for labeled instructions
4744           (OptimizepBlock): honor --nopeep switch
4745           (AnalyzeFlow,ReuseReg): prevent crash on source files with no function
4746         * src/pic/pcodepeep.c (pCodePeepMatchRule): prevent NULL pointer accesses
4747         * src/pic/pcoderegs.c (regIsLocal): NEW, check visibility of a register
4748           (pCodeOptime2pCodes): allow disabling this optimization via
4749             --no-pcode-opt due seldomly occuring bugs, fixed some conditions
4750             but is still buggy), started implementation of a dataflow based
4751             pCode optimization (CSE + dead code elimination)
4752           (pCodeRegMapLiveRangesInFlow): removed bogus inCond
4753         * src/pic/ralloc.c (initStack): renamed stack registers to STK%d, the new
4754           names are independant of the stack location and therefore portable across
4755           devices
4756
4757 2005-10-27 Maarten Brock <sourceforge.brock AT dse.nl>
4758
4759         * src/mcs51/ralloc.c (bitType): added to detect bit variables,
4760           (selectSpil): fixed bug 1337835 by not spilling bit variables
4761         * support/regression/tests/bug1337835.c: added test for this bug
4762         * src/mcs51/peeph.def: restart after rule 3.c,
4763           addded rules 263.x to optimize loading constants
4764
4765 2005-10-26 Raphael Neider <rneider AT web.de>
4766
4767         * src/SDCCsymt.c (compStructSize): allow signed bitfields for PIC ports
4768         * src/pic16/gen.c (genUnpackBits): support signed bitfields,
4769           (genAssign): emit warning when casting literals to generic pointer
4770             type, also applies when taking the address of a fixed variable,
4771           (genCast): improved casting to generic pointers
4772         * src/pic16/glue.c (pic16emitStaticSeg): fixed(?) handling of fixed
4773           extern variables, added verbose error message
4774         * device/include/pic16/{string.h,errno.h}: added #pragma library c
4775
4776 2005-10-26 Bernhard Held <bernhard AT bernhardheld.de>
4777
4778         * src/mcs51/gen.c (genMinus): fixed bug 1270906: reverse subtraction,
4779         carry must be complemented too
4780         * src/mcs51/peeph.def: addded rule 262 to remove double cpl c, which
4781         could be emitted by genMinus
4782         * src/SDCCval.c (constVal): fixed bug 1305065
4783
4784 2005-10-25 Bernhard Held <bernhard AT bernhardheld.de>
4785
4786         * src/SDCCast.c (addCast): added promotion for bit variables
4787         (decorateType): emit W_COMPLEMENT before the problem vanishes behind
4788         promotion casts + optimisation
4789         (optimizeGetWord): fix warning 'i' might be used uninitialized
4790         * src/mcs51/gen.c (genCpl): removed W_COMPLEMENT
4791         * src/ds390/gen.c (genCpl): removed W_COMPLEMENT
4792
4793 2005-10-24 Bernhard Held <bernhard AT bernhardheld.de>
4794
4795         * src/SDCCicode.c (ast2iCode): reverted to 1.224 because of regression:
4796         all chars are promoted to int; promotion should be handled in SDCCast.c
4797
4798 2005-10-15 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4799
4800         * device/lib/_strcmp.c: Fixed bug 1326457
4801
4802 2005-10-11 Raphael Neider <rneider AT web.de>
4803
4804         * device/lib/pic16/libio/i2c.ignore: added 1320, fixes broken builds
4805         * device/lib/pic16/libdev/pic18f1320.c: added 1320's device library
4806
4807 2005-10-05 Maarten Brock <sourceforge.brock AT dse.nl>
4808
4809         * src/SDCC.y (AT): fixed bug with sfr32 addresses when built with GCC
4810         * support/regression/tests/sfr16.c: added test for the sfr32 bug
4811
4812 2005-10-04 Raphael Neider <rneider AT web.de>
4813
4814         * device/include/pic16/pic18fregs.h, src/pic16/devices.inc,
4815           device/lib/pic16/pics.all: added pic18f1320
4816         * src/pic16/pcode.c (mnem2key): fixed prototype's argument mismatch
4817
4818 2005-09-30 Raphael Neider <rneider AT web.de>
4819
4820         * src/pic16/device.c (Pics16[]): moved device descriptions to devices.inc
4821         * src/pic16/devices.inc: NEW, provides device descriptions
4822         * src/pic16/gen.c (genInline): fixed handling of ';'-comments
4823
4824 2005-09-26 Maarten Brock <sourceforge.brock AT dse.nl>
4825
4826         * src/SDCCicode.c (operandOperation): added GETABIT, GETBYTE, GETWORD and
4827           GETHBIT
4828
4829 2005-09-25 Maarten Brock <sourceforge.brock AT dse.nl>
4830
4831         * doc/sdccman.lyx: updated Highest Order Bit documentation,
4832           documented Any Order Bit, Higher Order Byte and Higher Order Word
4833         * src/SDCC.y: added tokens GETABIT, GETBYTE, GETWORD
4834         * src/SDCCast.c (optimizeGetHbit): updated to also accept bool=expr&(1<<n),
4835           (optimizeGetAbit): new, to get any bit, not only the high bit,
4836           (optimizeGetByte): new, to get a byte from a (long) int: expr>>(8*n),
4837           (optimizeGetWord): new, to get a word from a long int: expr>>(8*n),
4838           (isConformingBody): also check GETABIT, GETBYTE, GETWORD,
4839           (decorateType): '&': also try GETABIT, GETBYTE, GETWORD optimization,
4840             RIGHT_OP: also try GETBYTE, GETWORD optimization,
4841             GETABIT, GETBYTE, GETWORD: decorate them,
4842           (isShiftRightLitVal, isBitAndPowOf2): new helper functions,
4843           (ast_print): added GETABIT, GETBYTE, GETWORD
4844         * src/SDCCcse.c (isSignedOp): added GETABIT, GETBYTE, GETWORD
4845         * src/SDCCicode.c (codeTable): added GETABIT, GETBYTE, GETWORD,
4846           (geniCodeBinary): new generic binary icode,
4847           (ast2iCode): added GETABIT, GETBYTE, GETWORD
4848         * src/port.h: updated comment for PORT.hasExtBitOp
4849         * src/mcs51/gen.c (genGetAbit): new, to get any single bit,
4850           (genGetByte): new, to get a single byte,
4851           (genGetWord): new, to get a word from a long,
4852           (gen51Code): added GETABIT, GETBYTE, GETWORD
4853         * src/mcs51/main.c (hasExtBitOp): added GETABIT, GETBYTE, GETWORD
4854
4855 2005-09-23 Raphael Neider <rneider AT web.de>
4856
4857         * configure.in, configure: have device/lib/pic configured
4858         * device/lib/Makefile.in: added model-pic14
4859         * device/lib/clean.mk: added pic/ to clean rule
4860         * device/lib/pic: added rudimentary pic14 library providing support
4861           functions for multiplication/division/generic pointer access
4862         * src/SDCCopt.c (convilong): mark support functions as extern
4863           for pic14 port as well
4864         * src/pic/gen.c (genMult): added assertions,
4865           (genpic14Code): emit warning on unhandled iCodes
4866         * src/pic/main.c (_hasNativeMulFor): return true only for 8x8 bit
4867         * src/pic/pcode.c (pCodeOpCopy),
4868         * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): fixed handling of various
4869           pCodeOpReg-subtypes (PO_{STATUS,INTCON,PCL,PCLATH,PCLATU,BSR,
4870           SFR_REGISTER}), made safe for future extensions
4871         * src/pic16/pcode.c (pic16_safepCodeUnlink): allow for removal of
4872           instructions even if preceeded by SKIP instructions (also remove
4873           them); removed unused code
4874         * src/pic16/pcode.h: added arg2 to pCodeOpLit to match pCodeOpLit2,
4875           prevents leaving parts of the structure uninitialized after copying
4876
4877 2005-09-22 Maarten Brock <sourceforge.brock AT dse.nl>
4878
4879         * src/mcs51/gen.c (genMinus): fix for undetected bug introduced 3 months
4880           ago by me
4881         * support/regression/tests/addsub.c: added test for the bug
4882
4883 2005-09-21 Raphael Neider <rneider AT web.de>
4884
4885         * device/include/pic16/pic18f1220.h,
4886           device/lib/pic16/libdev/pic18f1220.c: added ECCPAS sfr and bitfield
4887         * device/lib/pic16/Makefile.rules: added missing opening paren
4888         * src/pic16/gen.c (pic16_genNot,pic16_genCpl): removed as these
4889           are provided in genutils.c,
4890           (genUminusFloat,genUminus,genCmpEq): added asserts on different
4891           operand/result sizes,
4892           (genCmp): assert on NULL pointers first, then check deref'ed values
4893         * src/pic16/genutils.c (pic16_genCpl): fixed for different operand/
4894           result size
4895
4896 2005-09-18 Raphael Neider <rneider AT web.de>
4897
4898         * src/pic16/gen.c (genFarPointerGet,genFarPointerSet): removed
4899           as these are now unused,
4900           (genPointerGet,genPointerSet): handle FPOINTERs like POINTERs
4901         * src/pic16/pcode.c (pic16_symIsSpecial): assume REG_TMPs to be
4902           local, avoids uninitialized pointer dereference on r->name
4903         * src/pic16/ralloc.c (newReg): fixed indentation
4904
4905 2005-09-13 Maarten Brock <sourceforge.brock AT dse.nl>
4906
4907         * src/SDCCval.c (constVal): fixed bug 730366
4908         * support/Util/SDCCerr.c,
4909         * support/Util/SDCCerr.h: added warning W_INVALID_INT_CONST
4910
4911 2005-09-10 Maarten Brock <sourceforge.brock AT dse.nl>
4912
4913         * as/mcs51/lkmem.c (summary2): fixed report for absolute areas (bug 1210220)
4914
4915 2005-09-09 Maarten Brock <sourceforge.brock AT dse.nl>
4916
4917         * src/mcs51/peeph.def (241.x): fixed bug when comparing generic pointers
4918
4919 2005-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
4920
4921         * as/hc08/lkaomf51.c (OutputName): made name unsigned char,
4922           (hex2dec): made hex_digit unsigned char, removed ascii dependance
4923         * as/mcs51/lkaomf51.c (OutputName): made name unsigned char,
4924           (hex2dec): made hex_digit unsigned char, removed ascii dependance
4925         * as/mcs51/lkarea.c (lnkarea2): sort absolute areas to the front
4926         * packihx/packihx.c (hexDigit): made c unsigned char
4927         * as/mcs51/lklibr.c (fndsym),
4928         * link/z80/lkgb.c (gb),
4929         * link/z80/lklibr.c (fndsym),
4930         * link/z80/lkrloc.c (relr),
4931         * sim/ucsim/libltdl/ltdl.c (load_deplibs, try_dlopen),
4932         * src/SDCC.lex (checkCurrFile, process_pragma),
4933         * src/SDCCglue.c (spacesToUnderscores),
4934         * src/SDCCmain.c (setParseWithComma, processFile),
4935         * src/asm.c (tvsprintf, printCLine),
4936         * src/avr/gen.c (emitcode, aopPut),
4937         * src/ds390/gen.c (emitcode),
4938         * src/hc08/gen.c (emitcode, emitinline),
4939         * src/mcs51/gen.c (emitcode, genInline),
4940         * src/pic/pcodepeep.c (cvt_extract_destination, cvt_extract_status,
4941           tokenizeLineNode),
4942         * src/pic/ralloc.c (debugLog),
4943         * src/pic16/pcodepeep.c (cvt_extract_destination, cvt_extract_status,
4944           tokenizeLineNode),
4945         * src/pic16/ralloc.c (debugLog),
4946         * src/z80/main.c (_process_pragma):
4947            made all ctype.h function calls safe
4948         * src/SDCCopt.c: include math.h for fabs
4949         * src/SDCCpeeph.c: added macros ISCHARDIGIT, ISCHARSPACE and ISCHARALNUM
4950           and used them throughout the code to make ctype.h function calls safe
4951         * src/ds390/main.c (asmLineNodeFromLineNode),
4952         * src/mcs51/main.c (asmLineNodeFromLineNode): made p unsigned char*
4953         * src/pic/gen.c (DEBUGpic14_emitcode, pic14_emitcode): made lbp
4954            unsigned char*
4955         * src/pic/pcode.c (mnem2key): made mnem unsigned char*,
4956           (newpCodeAsmDir): made ctype.h function calls safe
4957         * src/pic16/gen.c (pic16_emitpcomment, DEBUGpic16_emitcode,
4958           pic16_emitcode):  made lbp unsigned char*
4959         * src/pic16/pcode.c (mnem2key): made mnem unsigned char*,
4960           (pic16_newpCodeAsmDir): made ctype.h function calls safe
4961         * src/xa51/gen.c (emitcode),
4962         * src/z80/gen.c (_emit2): made lbp unsigned char*
4963         * support/Util/MySystem.c (split_command): made cmd_line and p unsigned
4964            char*
4965
4966 2005-09-05 Raphael Neider <rneider AT web.de>
4967
4968         * src/pic16/ralloc.c (pic16_allocDirReg): use device specific
4969           access bank splitpoint
4970
4971 2005-09-05 Raphael Neider <rneider AT web.de>
4972
4973         * device/lib/pic16/libc/Makefile: added (missing) string to SUBDIRS
4974
4975 2005-09-03 Maarten Brock <sourceforge.brock AT dse.nl>
4976
4977         * .version: changed to version 2.5.3
4978         * doc/sdccman.lyx: changed version to 2.5.3,
4979           documented --codeseg and --constseg and pragma codeseg and constseg,
4980           documented bit parameters (reentrant) and bit returning
4981         * src/SDCCicode.c (geniCodeReceive): fixed (possible) bug generating
4982            currFunc->recvSize, but is this ok for all ports?
4983           (ast2iCode): result of ~ on unsigned char must be cast to int for
4984            bool to work
4985         * src/SDCCmem.c (allocGlobal, allocLocal): don't put bit returning
4986           function pointers in bit space
4987         * src/SDCCsymt.c (checkSClass): allow bit returning function pointers,
4988           (processFuncArgs): call port.reg_parm() with reentrancy info
4989         * src/port.h,
4990         * src/avr/main.c,
4991         * src/ds390/main.c,
4992         * src/hc08/main.c,
4993         * src/pic/main.c,
4994         * src/pic16/main.c,
4995         * src/xa51/main.c,
4996         * src/z80/main.c: port.reg_parm prototype extended with
4997           "bool reentrant" parameter
4998         * src/mcs51/main.c (_mcs51_regparm): use parameter reentrant instead of
4999           options.stackAuto for allocating bit register parameters
5000         * src/mcs51/gen.c (genNot): optimized complementing direct bit,
5001           (genSend): set BitBankUsed if it is,
5002           (selectRegBank): factored out of genCall for use in genPcall,
5003           (genCall): removed redundant dtype assignmen, use selectRegBank,
5004           (genPcall): handle returning in Carry properly, save in F0 if needed,
5005           (genReceive): handle bit register parameters
5006         * src/mcs51/ralloc.c (updateRegUsage): update BitBankUsed along the way,
5007           (mcs51_assignRegisters): enable bit registers for all reentrant
5008            functions and don't set BitBankUsed unconditionally
5009         * src/mcs51/peeph.def (177.d): fixed bug if %2==%3
5010         * support/regression/tests/bitvars.c: enable tests for SDCC_STACK_AUTO
5011         * support/regression/tests/funptrs.c: added tests for BOOL and for return
5012
5013 2005-08-27 Borut Razem <borut.razem AT siol.net>
5014
5015         * device/lib/Makefile.in: cp on sparc-solaris (SunOS) and on
5016         ppc-osx (Darwin) does not support -u option. It seems that it is
5017         supported only on Linux - GNU cp
5018
5019 2005-08-25 Borut Razem <borut.razem AT siol.net>
5020
5021         * sim/ucsim/gui.src/serio.src/Makefile.in,
5022           sim/ucsim/s51.src/Makefile.in, sim/ucsim/avr.src/Makefile.in,
5023           sim/ucsim/z80.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
5024           sim/ucsim/xa.src/Makefile.in: install -s changed to 2 steps:
5025           install and strip, since the strip at /usr/ccs/bin should be used
5026           on solaris
5027
5028 2005-08-24 Borut Razem <borut.razem AT siol.net>
5029
5030         * clean.mk, device/lib/clean.mk: find on sparc-solaris does not support -maxdepth option
5031
5032 2005-08-23 Bernhard Held <bernhard AT bernhardheld.de>
5033
5034         * src/SDCCopt.c (convertToFcall): fixed modulus with divisors 1 and
5035         ffffffffu
5036
5037 2005-08-23 Maarten Brock <sourceforge.brock AT dse.nl>
5038
5039         * as/mcs51/aslink.h: completed lkrloc.c prototypes
5040         * as/mcs51/lkmain.c (link_main): fixed warning
5041         * device/include/stdbool.h: ds390 has no advanced bit support yet
5042         * src/SDCC.y: use SPEC_SHORT and renamed _signed to b_signed
5043         * src/SDCCsymt.c: use SPEC_SHORT and renamed _signed to b_signed
5044         * src/SDCCsymt.h (struct specifier): renamed _xxx bitfields to b_xxx
5045           and updated their macros
5046         * src/SDCCval.c (constVal): updated comment for renamed b_long
5047
5048 2005-08-22 Maarten Brock <sourceforge.brock AT dse.nl>
5049
5050         * as/mcs51/asdata.c: changed ctype['['] to BINOP
5051         * as/mcs51/asexpr.c (expr): added case '[' for bit access in bdata,
5052           (term): abused bit 15 of s_addr to indicate bit-addressable bytes,
5053           (oprio): set priority for '['
5054         * as/mcs51/aslink.h: added define R_BIT, and prototypes for adb_bit
5055            and adb_24_bit
5056         * as/mcs51/asm.h: added defines R_BIT and S_BIT
5057         * as/mcs51/lkarea.c (lnksect2): use T for seg BIT_BANK and overlay it
5058         * as/mcs51/lkdata.c: changed ctype['['] to BINOP
5059         * as/mcs51/lkmain.c (Areas51): rel2 contains 12 (=C) areas now,
5060           added overlayable BIT_BANK area
5061         * as/mcs51/lkmem.c (summary): add BIT_BANK to BSEG_BYTES in the report,
5062           (summary2): explain 'T' in legenda
5063         * as/mcs51/lkrloc.c: replaced old K&R style,
5064           (relr): added R_BIT processing,
5065           (errmsg): added "Bit-addressable relocation error",
5066           (adb_bit): added for converting from byte- to bit-addressable space,
5067           (adb_24_bit): added for converting from byte- to bit-addressable space
5068         * device/include/stdbool.h: changed BOOL to __bit for mcs51 as it can be
5069            used in reentrant functions now even as return value
5070         * device/lib/_gptrput.c (_gptrput): removed obsolete code
5071         * src/SDCCast.c (resultTypePropagate): also propagate AND_OP and OR_OP,
5072           (decorateType): case '!', GETHBIT, AND_OP, OR_OP: result in bool or char
5073         * src/SDCCglobl.h: added indicator BitBankUsed
5074         * src/SDCCglue.c (glue): emit area BIT_BANK with byte 'bits' and equ's for
5075            the bit registers b0-b7
5076         * src/SDCCicode.c (operandFromSymbol): removed IS_BITVAR check,
5077           (geniCodeCast): fixed bug 1263853,
5078           (geniCodeLogicAndOr): put result in bool or char,
5079           (geniCodeReceive): added parameter func for accessing the return type,
5080           (geniCodeFunctionBody): pass func to geniCodeReceive
5081         * src/SDCCmain.c: added indicator BitBankUsed
5082         * src/SDCCmem.c (allocLocal): explicitly set sclass for V_BIT
5083         * src/SDCCsymt.c (newBoolLink): added for creating a bool/bit,
5084           (checkSClass): don't put automatic bool/bit on stack,
5085           (checkFunction): removed check on function cannot return bit
5086         * src/SDCCsymt.h: added newBoolLink prototype
5087         * src/mcs51/gen.c (rb1regs): added bit registers,
5088           (movc): created for assigning to carry,
5089           (pushReg, popReg): created for pushing registers,
5090           (sameRegs): check both AOP_REG and AOP_CRY types,
5091           (aopOp): handle bit registers,
5092           (aopPut): optimization no self-assign,
5093           (saveRegisters): push reg->base (bits) only once for bit registers,
5094            and use pushReg,
5095           (unsaveRegisters): pop reg->base only once and use popReg,
5096           (assignResultValue): added parameter func and return in carry for bits,
5097           (genIpush): optimization no reload in A if not changed,
5098           (genSend): bit parameters in reentrant functions are passed in bit
5099            registers by first assigning to bits in B, then save registers and
5100            copy B to bits,
5101           (genCall): handle returning in Carry properly, save it in F0 if needed,
5102           (genPcall): updated assignResultValue call, this is not safe yet for bit
5103            returning function !!!
5104           (genFunction): don't generate equ's for bit registers and use pushReg,
5105           (genEndFunction): take care of bit returning functions and use popReg,
5106           (genRet): return bit in Carry,
5107           (genIfx): optimize bit registers and other directly addressable bits,
5108           (genReceive): updated assignResultValue call
5109         * src/mcs51/main.c (_mcs51_reset_regparm): added regBitParmFlg,
5110           (_mcs51_regparm): allow passing of upto 8 bit parameters in bit
5111            registers when using stack-auto
5112         * src/mcs51/ralloc.c (_G): added allBitregs,
5113           (regs8051): added the bit registers,
5114           (createStackSpil): use macro IS_BIT,
5115           (getRegBit): added to allocate a bit register, else spill,
5116           (getRegBitNoSpil): added to allocate a bit register, else a gpr,
5117           (updateRegUsage): factored out to ease stepping while debugging,
5118           (serialRegAssign): use updateRegUsage, only spill bits if necessary,
5119            also allocate bit registers,
5120           (fillGaps): handle bit registers,
5121           (findAllBitregs): added to create bit vector with all bit registers,
5122           (mcs51_allBitregs): returns this bit vector,
5123           (mcs51_assignRegisters): when using stack-auto use bit registers for
5124            passing parameters and creating local variables
5125         * src/mcs51/ralloc.h: added B0_IDX..B7_IDX and prototype mcs51_allBitregs
5126
5127 2005-08-22 Borut Razem <borut.razem AT siol.net>
5128
5129         * device/lib/Makefile.in: replaced find option -or with -o
5130           to make it run on solaris
5131
5132 2005-08-22 Raphael Neider <rneider AT web.de>
5133
5134         * src/pic16/gen.c (pic16_loadFromReturn): added check for AOP_PCODE,
5135           fixes #1265442 (crash on Solaris)
5136
5137 2005-08-20 Borut Razem <borut.razem AT siol.net>
5138
5139         * configure, configure.in: added tests for libsocket and libnsl libraries,
5140           requred by sdcdb on sparc-solaris; generate support/regression/Makefile
5141           from support/regression/Makefile.in
5142         * support/regression/Makefile.in: added
5143         * device/lib/pic16/Makefile.common.in: force make to use bash shell
5144         * sim/ucsim/libtool: regenerated on sparc-solaris
5145         * sim/ucsim/avr.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
5146           sim/ucsim/s51.src/Makefile.in, sim/ucsim/xa.src/Makefile.in,
5147           sim/ucsim/z80.src/Makefile.in: removed GNU ld specific linker options
5148           -Wl,--start-group and -Wl,--end-group to enable ucsim compilation on
5149           sparc-solaris, which doesn't use GNU ld linker
5150         * device/lib/Makefile.in: cp on sparc-solaris (SunOS) does not support -u option
5151         * as/Makefile: find on sparc-solaris does not support -maxdepth option
5152
5153 2005-08-19 Maarten Brock <sourceforge.brock AT dse.nl>
5154
5155         * src/mcs51/peeph.def: updated comments
5156
5157 2005-08-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5158
5159         * device/lib/_gptrget.c,
5160         * device/lib/_gptrput.c: slightly shorter
5161         * doc/sdccman.lyx: incremented version
5162         * src/mcs51/peeph.def: moved peephole comments to the line of first
5163           change to better keep line correlation, reanimated 186.e
5164         * src/mcs51/peeph.def: renamed similar peepholes by using suffixes
5165
5166 2005-08-16 Slade Rich <slade_rich AT users.sourceforge.net>
5167
5168         * src/pic/pcode.c : Pasted ".line" assembly directives patch from
5169           David Saxton with quotes around file name.
5170
5171 2005-08-15 Borut Razem <borut.razem AT siol.net>
5172
5173         * support/regression/tests/bitfields.c, support/regression/tests/bitvars.c,
5174           support/regression/tests/bitwise.c, support/regression/tests/literalop.c,
5175           support/regression/tests/rotate.c, support/regression/tests/zeropad.c:
5176           make tests run on x86_64 platform
5177
5178 2005-08-13 Raphael Neider <rneider AT web.de>
5179
5180         * device/lib/pic16/Makefile.subdir: weakened clean-intermediate rule
5181           as it might be executed DURING a build (parallel make is wonderful)
5182
5183 2005-08-13 Raphael Neider <rneider AT web.de>
5184
5185         * device/lib/Makefile.in (port-specific-objects-pic16):
5186           revert to cp $(PORT)/bin/*.* $(PORTDIR)
5187         * device/lib/pic16/Makefile: added .PHONY targets, removed builddir
5188           dependency
5189         * device/lib/pic16/Makefile.rules: build subdirs before creating
5190           the library, removed builddir rule, create $(builddir) early in
5191           recurse rule, use empty recurse rule for leaf directories
5192         * device/lib/pic16/Makefile.subdir: added phony targets, ignore
5193           mkdir errors (race condition), removed duplicate suffix "hex"
5194           from clean rules
5195         * device/lib/pic16/libdev/Makefile: recursive make via + and $(MAKE)
5196         * device/lib/pic16/libio/Makefile: create sub-make's builddir early,
5197           prevents mkdir -p from aborting on Alpha
5198
5199 2005-08-12 Raphael Neider <rneider AT web.de>
5200
5201         * src/pic16/glue.c (pic16_print(G)PointerType): do not flush
5202           db-statements in order to allow for arrays of pointers in code
5203           sections to be placed without interspersed 0-padding, fixes
5204           bug #1256215
5205         * (emitStatistics): fixed division by zero for pic18f1220
5206         * src/pic16/pcode.c: buffer (up to) 12 DB directives to allow for
5207           unpadded writing of 8-bit, 16-bit, 24-bit and 32-bit values
5208         * (pic16_emitDS): respect DB_ITEMS_PER_LINE
5209         * (pic16_pCodeConstString): keep track of already emitted string
5210           literals to prevent "duplicate definitions of symbol _str_NR"
5211         * src/pic16/ralloc.c (pic16_allocRegByName): removed not so helpful
5212           debug message
5213         * device/lib/Makefile.in: ignore failing PIC16 library builds
5214         * device/lib/pic16/Makefile: do not build if gputils are missing
5215         * device/lib/pic16/Makefile.common.in: do not enforce MAKEFLAGS=-s
5216
5217 2005-08-10 Raphael Neider <rneider AT web.de>
5218
5219         * device/lib/Makefile.in: fixed copying pic16 libraries (broken by
5220           my last commit)
5221
5222 2005-08-10 Raphael Neider <rneider AT web.de>
5223
5224         * src/*.c, src/pic16/{gen.c,glue.c,main.c}: applied Vangelis
5225           Rokas' patch to add the new fixed point type "__fixed16x16"
5226         * device/lib/pic16/libsdcc/fixed16x16: added Vangelis' support
5227           functions for __fixed16x16 arithmetics
5228         * device/lib/pic16: reimplemented the build system to support
5229           a separate build directory, better handling of libio (create
5230           the library in a separate subdir for each architecture) and
5231           easier configuration (centralized in Makefile.common)
5232
5233 2005-08-07 Raphael Neider <rneider AT web.de>
5234
5235         * src/pic16/gen.c (genrshTwo): fixed sign extension
5236         * src/pic16/device.c: added pic18f2320, 4220 and 4320
5237         * device/include/pic16/pic18f2220.h: changed some bit definitions,
5238           added T0CONbits
5239         * device/include/pic16/pic18f4220.h: NEW, header for
5240           pic18f4220 and pic18f4320
5241         * device/include/pic16/pic18fregs.h: added new devices,
5242           embraced Nop(), ClrWdt(), Sleep() and Reset() with do {} while(0)
5243         * device/include/pic16/signal.h: resolved name clashes
5244           on bit definitions, added DEF_HANDLER2(sig1,sig2,handler)
5245           to also allow testing for interrupt enable bits, added
5246           comments on how to use the macros
5247         * device/lib/pic16/libdev/pic18f2220.c: added T0CONbits
5248         * device/lib/pic16/libdev/pic18f{2320,4220,4320}.c: NEW,
5249           register definitions for the devices
5250         * device/lib/pic16/pics.all: added new devices
5251         * device/lib/pic16/libc/stdlib/calloc.c: fixed zeroing
5252           allocated memory
5253         * device/lib/pic16/libc/stdlib/memfree: do not count
5254           the block header as free memory
5255         * device/lib/pic16/libc/stdlib/memmisc.c (_initHeap):
5256           simplified and added missing end-of-blocklist-marker
5257           (reported by Peter Onion, fixes #1252814)
5258         * (_mergeHeapBlock): fixed loop condition
5259         * device/lib/pic16/libc/stdlib/realloc.c: return NULL for
5260           len==0, restructured code
5261         * device/lib/pic16/libc/stdlib/{malloc,memfreemax}.c: cleaned
5262           up a bit, reduced bitfield accesses, prevent endless loops
5263           in case of heap corruption
5264         * device/lib/pic16/libc/stdlib/x_ftoa.c: disabled
5265           "unreferenced arguments/must return a value" warnings
5266         * device/lib/pic16/libio/usart/ubaud.c (usart_baud):
5267           replaced BAUDREG with SPBRG
5268         * device/lib/pic16/libsdcc/lregs/{lrrest.c,lrst.c},
5269           device/lib/pic16/debug/gstack/gstack.c: replaced
5270           _naked, _asm, _endasm with __naked, __asm, __endasm
5271
5272 2005-08-05 Raphael Neider <rneider AT web.de>
5273
5274         * src/pic16/gen.c (pic16_aopGet): fixed handling of offsets in
5275           AOP_PCODE operands, fixes multibyte union-bitfield-accesses
5276
5277 2005-08-05 Borut Razem <borut.razem AT siol.net>
5278
5279         * device/lib/Makefile.in: added missing ';'
5280         * configure: removed ^M characters
5281
5282 2005-08-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5283
5284         * device/include/mcs51/at89c51ed2.h, device/include/mcs51/p89v51rd2.h,
5285           device/include/mcs51/at89s53.h: changed to GNU Lesser General Public
5286           License
5287
5288 2005-08-04 Borut Razem <borut.razem AT siol.net>
5289
5290         * configure.in: pic16 libraries build 2nd try - enable running
5291           configure in device/lib/pic16
5292         * configure: regenerated from configure.in
5293         * device/lib/Makefile.in: create $(PORT)/bin directory
5294
5295 2005-08-03 Raphael Neider <rneider AT web.de>
5296
5297         * src/pic16/gen.c (pic16_derefPtr): NEW, single place
5298           to get/set values via pointers
5299         * (genUnpackBits,genPackBits): changed detection of
5300           ptr->bitfield vs. sym.bitfield, fixed access via generic
5301           pointers, removed dead (wrong) code for multibyte bitfields
5302         * (genNearPointerGet, genGenPointerGet): removed useless code,
5303           fixed bitfield detection, fixes #1250594
5304         * (genNearPointerSet): removed useless code
5305         * src/pic16/gen.h: renamed pic16_emitpcode to pic16_emitpcode_real
5306           and introduced macro pic16_emitpcode that conditionally emits
5307           the origin of the following pCode (useful for debugging SDCC)
5308         * src/pic16/pcode.c: changed (and disabled) some debug outputs
5309         * (createDefmap): fixed handling of LFSR for --optimize-df
5310
5311 2005-08-02 Borut Razem <borut.razem AT siol.net>
5312
5313         * device/lib/Makefile.in: pic16 libraries build enabled since
5314           gputils-0.13.2 are now localy installed at sourceforge's compile farm
5315
5316 2005-08-02 Raphael Neider <rneider AT web.de>
5317
5318         * src/pic16/gen.c (genPackBits): removed deprecated warning
5319         * (genGenPointerSet): fixed bitfield detection
5320
5321 2005-08-02 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5322
5323         * device/include/mcs51/msm8xc154s.h: Removed PT2 definition, now in 8052.h.
5324
5325 2005-07-31 Raphael Neider <rneider AT web.de>
5326
5327         * device/lib/pic16/libdev/pic18f458.c,
5328           device/include/pic16/pic18f458.h: added missing T0CONbits
5329
5330 2005-07-29 Maarten Brock <sourceforge.brock AT dse.nl>
5331
5332         * device/include/mcs51/msm8xc154s.h: added, thanks to Matthias Arndt
5333
5334 2005-07-28 Maarten Brock <sourceforge.brock AT dse.nl>
5335
5336         * src/mcs51/gen.c (operandsEqu): fixed bug 1246687
5337
5338 2005-07-23 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5339
5340         * device/include/mcs51/at89c51ed2.h: added.
5341
5342 2005-07-23 Raphael Neider <rneider AT web.de>
5343
5344         * src/pic/gen.h: added emitpcode macro for debugging
5345         * src/pic/gen.c (emitpcode): renamed to emitpcode_real
5346           and replace by macro adding debug information on demand
5347         * (genNot): fixed to C semantics (!0 = 1; !x = 0 iff x != 0)
5348         * (gencjne): tried to fix; replaced with correct (slower) code
5349         * (gen{Unp,P}ackBits): fixed single bit access
5350         * src/pic/pcode.c (AnalyzepCode): fixed DFPRINTF argument
5351         * src/pic/pcodepeep.c (pCodeSearchCondition): fixed finding
5352           previous instruction
5353         * src/pic/pcoderegs.c (regIsSpecial): NEW, check whether a
5354           register has to be handled with care (forbidding movement
5355           of assignments/uses, removing assignments completely, ...)
5356         * (pCodeOptime2pCodes): make use of regIsSpecial
5357         * added lots of debugging output (commented out)
5358         * src/pic/rallloc.c (deassignLRs): prevent operand registers
5359           from being reused as result UNLESS it is known to work
5360
5361 2005-07-23 Maarten Brock <sourceforge.brock AT dse.nl>
5362
5363         * support/Util/dbuf.h: include <stddef.h> for size_t
5364         * .version: changed to version 2.5.2
5365
5366 2005-07-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5367
5368         * src/SDCCloop.c (loopInvariants): fixed bug #1234048
5369
5370 2005-07-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5371
5372         * src/hc08/gen.c (genMinus): fixed bug #1241835,
5373           (genModOneByte): removed needless psha/pula
5374
5375 2005-07-22 Raphael Neider <rneider AT web.de>
5376
5377         * src/SDCCmain.c (linkEdit): initialized linkerScriptFileName,
5378           have PIC14 handled like PIC16, fixes broken pic14 linker calls
5379         * src/pic/gen.c (resolveIfx): do not "invent" labels
5380         * (genSkipc): changed to positive logic
5381         * (genSkipCond): removed as no longer needed
5382         * (pic14_mov2w_regOrLit,genCmp): NEW, replacement for buggy version,
5383           backport from PIC16
5384         * (genLeftShift): check operands are in different registers
5385         * src/pic/genarith.c (genPlus): replaced INCF with ADDLW as
5386           INCF does not update CARRY...
5387         * src/pic/main.c: fixed _linkCmd
5388         * src/pic/pcode.c (unlinkpCode): added inactive code
5389         * src/pic/ralloc.c (deassignLRs): keep arguments to shift operations
5390           alive (do not assign result and operand overlapping registers)
5391
5392 2005-07-22 Raphael Neider <rneider AT web.de>
5393
5394         * src/pic/device.c (dump_sfr): replaced register declaration with
5395           call to emitSymbolToFile() to avoid duplicate symbols
5396         * (assignRelocatableRegisters): do not declare external symbols
5397         * src/pic/ralloc.c (allocNewDirReg): fixed to get size of arrays
5398           right (take size of type, not etype)
5399         * (allocDirReg): fixed call to allocNewDirReg() to pass OP_SYM_TYPE
5400         * (writeUsedRegs): also dump dynDirectRegs (e.g. local variables)
5401         * (packRegsForAccUse): disabled assignment of WREG as
5402           the result reg to prevent occurence of just fixed #1235003,
5403           fixes #1242954
5404         * src/pic/glue.c (emitSymbolToFile): NEW, central place to declare
5405           symbols (avoids duplicate symbols in .asm file)
5406         * (pic14emitRegularMap): use emitSymbolToFile()
5407         * src/pic/gen.c (aopOp): fixed spillLocation handling
5408         * (gen{Unp,P}ackBits): fixed acquiring bit-operands
5409         * (genDataPointerSet): removed unneccessary variables/output
5410
5411 2005-07-22 Maarten Brock <sourceforge.brock AT dse.nl>
5412
5413         * as/mcs51/lkarea.c: enlarged codemap for banked memory
5414         * device/lib/mcs51/crtbank.asm: added # to 0x0F
5415
5416 2005-07-21 Raphael Neider <rneider AT web.de>
5417
5418         * src/pic/gen.c (aopOp): do not generate AOP_ACC operands as pic14
5419           architecture cannot handle them efficiently, fixes bug #1235003
5420         * src/pic16/device.c (pic16_dump_{u,i}section,pic16_dump_int_registers):
5421           check for empty sets before using them (fixes bug #1232190)
5422
5423 2005-07-19 Maarten Brock <sourceforge.brock AT dse.nl>
5424
5425         * as/mcs51/lkarea.c (lnkarea, lnkarea2): improved BSEG size calculation,
5426           (lnksect2): generate warnings for memory overlap
5427         * src/SDCC.lex (doPragma, process_pragma): added pragma's codeseg and
5428           constseg to set the name of these segments so you can instruct the linker
5429           to place them in banks
5430         * src/SDCCast.c (decorateType): use new macro IS_FUNCPTR()
5431         * src/SDCCglobl.h: added MODEL_HUGE to enum,
5432           added code_seg and const_seg to options
5433         * src/SDCCglue.c (emitMaps): use options.const_seg,
5434           (createInterruptVect): put interrupt vectors in segment HOME,
5435           (glue): put HOME before static segment and put the main glue in HOME,
5436           (glue): use options.code_seg
5437         * src/SDCCicode.c (geniCodeCall): use new macro IS_FUNCPTR()
5438         * src/SDCCmain.c: added option --codeseg and --constseg to set the name of
5439           these segments so you can instruct the linker to place them in banks
5440           (linkEdit): use code_loc for HOME segment which should be the first
5441           segment in code memory now
5442         * src/SDCCmem.c: fixed more stuff like bug 1238386
5443         * src/SDCCsymt.c (getSize): use generic pointer size for banked functions,
5444           (changePointer): don't change function pointers to code pointers for
5445           banked functions,
5446           (compareType): added exceptional check for banked function pointers
5447         * src/SDCCsymt.h: changed IFFUNC_ISBANKEDCALL, added IS_FUNCPTR
5448         * src/hc08/main.c (_hc08_genAssemblerPreamble): put HOME first, put CSEG
5449           after static in code memory
5450         * src/mcs51/gen.c: added aopLiteralLong prototype,
5451           (aopForSym): use getSize for functions,
5452           (genCall): generate banked calls over one trampoline __sdcc_banked_call
5453           in HOME with lsb of address in r0, msb in r1 and bank in r2, use
5454           -Wl-bBANKSEG=0xbbaaaa option to set the address (aaaa) and bank (bb) of
5455           the segment,
5456           (genPcall): use call for literal function pointers and generate banked
5457           calls over the one trampoline so there's only one place for the user to
5458           modify according to his/hers hardware,
5459           (genEndFunction): jump to __sdcc_banked_ret in HOME for banked functions,
5460           (genPlusIncr): moved check icount>4 beyond inc dptr optimization
5461         * src/mcs51/main.c: added keyword banked,
5462           (_mcs51_genExtraAreas): put HOME first followed by GSINIT, STATIC and CSEG
5463         * support/Util/SDCCerr.c,
5464         * support/Util/SDCCerr.h: added E_BANKED_WITH_CALLEESAVES, registers are
5465           needed for passing the bank and address to the trampoline
5466         * device/lib/mcs51/crtbank.asm: added for bankswitching
5467         * device/lib/mcs51/Makefile: added crtbank
5468
5469 2005-07-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5470
5471         * src/SDCCcse.c (algebraicOpts): fixed loss of volatility
5472           for fields at offset 0 of a struct or union as reported
5473           on 2005-07-07 in the developer mailing list.
5474
5475 2005-07-15 Maarten Brock <sourceforge.brock AT dse.nl>
5476
5477         * src/SDCCmem.c: fixed bug 1238386
5478
5479 2005-07-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5480
5481         * src/mcs51/peeph.def: added labelrefcounting for peepholes
5482           (patch #1144962), added peephole 300, enabled 259.x
5483         * doc/sdccman.lyx: removed screenshot and provided link instead
5484
5485 2005-07-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5486
5487         * doc/sdccman.lyx: added section about debugging with ddd
5488         * doc/figures/ddd_example.eps: screenshot of debugging session
5489
5490 2005-07-04 Raphael Neider <rneider AT web.de>
5491
5492         * src/pic/gen.c (genPointerGet): handle pointers to CONST values
5493           like CODE pointers, fixes #1115683
5494         * src/pic/pcode.c (DoBankSelect): forget LastRegIdx during function
5495           call, fixes bugs #1232211, #1228110,
5496           fixed wrong casts to pCodeFlow from pCodeInstructions
5497
5498 2005-07-04 Raphael Neider <rneider AT web.de>
5499
5500         * src/pic/gen.c (popGet): changed assert to allow for
5501           bit operands
5502         * (popGetAddr): changed signature to provide
5503           an additional index, patched all call sites
5504         * (genCmpEq): handle literal-like operands correctly
5505         * (genAddrOf): added sanity checks on __code/__data pointers
5506         * (genAssign): added handling of symbols from __code section
5507         * (gencjne): do not generate code for comparisons whose result
5508           is neither stored nor used, fixes bug #1171114
5509         * (AccLsh, AccRsh): operate on operand instead of WREG
5510         * (shift{Left,Right}_Left2ResultLit): NEW, size independant
5511           replacement for Shift{LR}{12}Left2Result; shift (byte/int/long)
5512           by known count
5513         * rewrote complete shift-by-literal logic, commented unused
5514           functions out
5515         * (genConstPointerGet): get multiple bytes (if result size > 1),
5516           fixed handling of non-immediate addresses
5517         * (genPointerGet): handle CODE pointers like CONST pointers
5518         * (genpic14Code): insert C-SRC lines as Cource-pCodes
5519         * ({aop,op}_isLitLike): NEW, single place to decide whether an
5520           operand is to be treated as a literal or not
5521         * (mov2w,genPcall,genCmpEq),
5522           src/pic/genarith.c: use aop_isLitLike() to decide between
5523           literal/register contents
5524         * (addSign): added missing offset
5525         * src/pic/gen.h: remove newline after FENTRY/FEXIT comments,
5526           only emit comment in debug-mode,
5527           use {aop,op}_isLitLike throughout the file
5528         * src/pic/glue.c: fix initializers for pointers (work in progress)
5529         * src/pic/pcode.c (get_op): honor index on _const symbols
5530         * ({reset,dump}pCodeStatistics): NEW, estimate code size
5531         * (dumppBlock): added pCode size estimation
5532         * src/pic/ralloc.c (deassignLRs,serialRegAssign,packRegisters):
5533           check for IS_SYMOP before OP_SYMBOL'ing
5534         * fixed indentation, compacted switch-statements
5535         * (allocReg): find free register and allocate it instead of
5536           allocating new registers all the time
5537         * (deassignLRs): prevent POINTER_GET's from being assigned the same
5538           registers as its operands (necessary only for multibyte GETs)
5539
5540 2005-07-01 Raphael Neider <rneider AT web.de>
5541
5542         * src/pic/gen.h: added prototypes emitpComment, popGetAddr and
5543           debugging .asm-output macros FENTRY + FEXIT
5544         * src/pic/gen.c (Safe_vsnprintf): NEW, is there a more generic
5545           way... I wonder...
5546         * (emitpComment): NEW, printf to pCode
5547         * (popGet): added assert on too large offsets, fixed PO_IMMEDIATE's
5548           offset handling
5549         * (popGetAddr): NEW, variant of popGet to access an immediates
5550           high(er) bytes instead of the n'th byte of memory they reference,
5551           replaced popGet with popGetAddr where neccessary
5552         * (genDataPointerGet): reactivated and fixed implementation
5553         * (genNearPointerGet): enabled call to genDataPointerGet, fixes array-
5554           accesses
5555         * (genDataPointerSet): fixed multibyte assignments
5556         * (genpic14Code): fixed --i-code-in-asm handling
5557         * src/pic/genarith.c: fixed PO_IMMEDIATE issue using popGetAddr,
5558         * (genPlus): fixed index-out-of-bounds error
5559         * src/pic/pcode.c (get_op): fixed PO_IMMEDIATE's index/offset handling
5560         * src/pic/ralloc.c: added debugging output macro FENTRY2
5561         * (spillThis): fixed indentation, enbraced for-body for clarity
5562         * (rematStr): commented out as now unused
5563         * (regTypeNum): commented out special spill case (overwrites
5564           arbitrary values)
5565         * fixes bugs #1229346, #1216476 (both arrays) and #1115667 (SIGSEGV)
5566
5567 2005-06-30 Maarten Brock <sourceforge.brock AT dse.nl>
5568
5569         * doc/sdccman.lyx: documented sfr16/sfr32,
5570           added example for using storage class with function pointers
5571         * src/mcs51/gen.c (genPlusIncr): optimized small offsets from dptr
5572
5573 2005-06-28 Maarten Brock <sourceforge.brock AT dse.nl>
5574
5575         * device/lib/_gptrget.c: also push/pop _PSBANK, added # to 0x03
5576         * device/lib/_itoa.c,
5577         * device/lib/_ltoa.c: optimized codesize
5578         * src/SDCCsymt.c (checkSClass): added sanity check for sfr at addresses,
5579           but don't know how to suppress the double warning.
5580         * src/mcs51/gen.c (genPlusIncr): fixed bug when incrementing volatile int's
5581         * support/Util/SDCCerr.c,
5582         * support/Util/SDCCerr.h: added warning W_SFR_ABSRANGE for sanity check
5583
5584 2005-06-27 Maarten Brock <sourceforge.brock AT dse.nl>
5585
5586         * as/mcs51/asexpr.c (expr): disabled warning "not in .flat24 mode",
5587           fixed old K&R prototypes
5588         * as/mcs51/asout.c (outrb): always output as if generating 24bit addresses
5589         * device/lib/_gptrget.c,
5590         * device/lib/_gptrgetc.c,
5591         * device/lib/_gptrput.c: changed versions for new memory indicator values,
5592           also new versions for small generic pointers and banked generic pointers
5593         * src/port.h: added const_name
5594         * src/SDCC.lex: added keywords sfr16, __sfr16, sfr32, __sfr32
5595         * src/SDCC.y: added tokens SFR16, SFR32 and their sfr_attributes
5596         * src/SDCCcse.c (findPrevIc): check all associative operators
5597         * src/SDCCglue.c (emitMaps): use CONST_NAME if defined
5598         * src/SDCCicode.h: added macro IS_ASSOCIATIVE
5599         * src/SDCCmem.c: updated comments,
5600           set far-space to 0 for pdata, results in optimized code
5601         * src/SDCCmem.h: added macro CONST_NAME
5602         * src/SDCCsymt.h: renumerated generic pointer types GPTYPE_... thereby
5603           moving the info into the highest bits, see also gptrget/gptrput
5604         * src/src.dsp: added sdcc.ico to project files
5605         * src/avr/gen.c (genCast): fixed bug 0x%d
5606         * src/avr/main.c (avr_port): added "CONST (CODE)" for const_name
5607         * src/ds390/gen.c (aopForRemat, adjustArithmeticResult): disconnected direct
5608           relation between ptr_type and DCL_TYPE,
5609           (genCast): fixed bug 0x%d
5610         * src/ds390/main.c (ds390_port, tininative_port, ds400_port): added "CONST
5611           (CODE)" for const_name
5612         * src/hc08/gen.c (genCast): fixed bug 0x%d
5613         * src/hc08/main.c (_hc08_genAssemblerPreamble): added .area ...const_name,
5614           (hc08_port): added "CONST (CODE)" for const_name
5615         * src/mcs51/gen.c (aopForSym): optimized pushing ACC,
5616           (aopForRemat, adjustArithmeticResult): disconnected direct relation
5617           between ptr_type and DCL_TYPE,
5618           (aopGetUsesAcc, aopGet, aopPut): changed first parameter from asmop* to
5619           operand* and took AOP() inside function so sfr-ness can be checked,
5620           (all over): repaired calls to aopGetUsesAcc, aopGet, aopPut to comply with
5621           new prototype,
5622           (genFunction, genEndFunction): optimized stack setup,
5623           (genMinus): optimized for literals with ending zeroes (in bytes),
5624           (genCast): fixed bug 0x%d
5625         * src/mcs51/main.c (_mcs51_keywords): added sfr16 and sfr32,
5626           (mcs51_port): added "CONST (CODE)" for const_name
5627         * src/mcs51/peeph.def: made rule 226 more generic
5628         * src/pic/main.c (pic_port): added "CONST (CODE)" for const_name
5629         * src/pic16/main.c (pic16_port): added "CONST (CODE)" for const_name
5630         * src/xa51/main.c (xa51_port): added "CONST (CODE)" for const_name
5631         * src/z80/main.c (z80_port): added NULL for const_name,
5632           (gbz80_port): added NULL for const_name
5633         * support/regression/tests/bug663539.c,
5634         * support/regression/tests/sfr16.c: new tests
5635
5636 2005-06-25 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5637
5638         * device/include/mcs51/p89v51rd2.h, device/include/mcs51/at89s53.h: added.
5639
5640 2005-06-24 Raphael Neider <rneider AT web.de>
5641
5642         * device/lib/pic16/libdev/pic18f[68][567]20.c:
5643           corrected typos...
5644         * device/include/pic16/signal.h: added USBIF
5645           and SIG_USB
5646
5647 2005-06-24 Raphael Neider <rneider AT web.de>
5648
5649         * device/lib/pic16/libdev/pic18f2455.c,
5650           device/include/pic16/pic18f2455.h: NEW
5651         * device/include/pic16/pic18fregs.h,
5652           device/lib/pic16/pics.all,
5653           src/pic16/device.c: added 18f2455
5654         * device/lib/pic16/libdev/pic18f[68][567]20.c,
5655           device/include/pic16/{pic18f[68][567].h,usart.h}:
5656           replaced MULTIPLE_USARTS define with more relaible
5657           compatibility sfrs (for USART access)
5658
5659 2005-06-20 Slade Rich <slade_rich AT users.sourceforge.net>
5660
5661         * src/pic/pcode.c : Fixed problem when a string constant contains a "\r\n"
5662           and the output asm file line is printed on two lines.
5663
5664 2005-06-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5665
5666         * sim/ucsim/hc08.src/inst.cc (inst_condbranch): fixed simulation of
5667           BGT, BLE, BHI, and BLS instructions
5668         * src/hc08/gen.c (outAcc, outBitC, outBitNV, genCmpLt, genCmpGt,
5669           genCmpEq): removed
5670         * src/hc08/gen.c (genCmpEQorNE, genCmp, branchopCmp, nameCmp,
5671           negatedCmp, exchangedCmp, genhc08Code): rewrite of comparison handling,
5672           fixes bug #1216342
5673         * src/hc08/peeph.def: added rules 2g - 2l for new conditional branches
5674
5675 2005-06-15 Raphael Neider <rneider AT web.de>
5676
5677         * src/pic16/NOTES: moved Vangelis from active developers to people to contact
5678         * device/include/pic16/{6520.h,8520.h}: fixed configuration bits
5679         * src/pic16/gen.c (): prevent iTemps from being considered to be in CODESPACE,
5680           fixes bug #1221120; for symbols in CODESPACE get number of bytes to read from
5681           OP_SYM_TYPE() instead of OP_SYM_ETYPE()
5682
5683 2005-06-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5684
5685         * device/include/mcs51/reg764.h: Changed PB0 to PBO as requested by
5686           Marcel Telka in bug #1215704
5687
5688 2005-06-02 Slade Rich <slade_rich AT users.sourceforge.net>
5689
5690         * src/pic/pcode.c : Changed pseudo stack size to 15 to allow WSAVE to be
5691           located in shared memory bank.
5692
5693 2005-05-31 Raphael Neider <rneider AT web.de>
5694
5695         * src/pic16/{gen.c,genarith.c}: replaced sign-extension
5696           "CLRF, BTFSC <signbit>, DECF/COMF" with side-effect-free
5697           "CLRF, BTFSC <signbit>, SETF"; fixes "long>>9"
5698
5699 2005-05-27 Maarten Brock <sourceforge.brock AT dse.nl>
5700
5701         * device/lib/_strncpy.c: fixed the fix
5702
5703 2005-05-26 Raphael Neider <rneider AT web.de>
5704
5705         * src/pic16/glue.c (pic16_printIvalChar): fixed _constant_ string
5706           initializers with \0, bug #1208187
5707         * src/pic/glue.c (printIvalChar): fixed (non- and constant) string
5708           intializers with \0, bug #1208187
5709
5710 2005-05-26 Raphael Neider <rneider AT web.de>
5711
5712         * src/pic16/glue.c (pic16_printIvalChar): fixed string
5713           initializers with \0, bug #1208187
5714         * src/pic16/main.c (_process_pragma): added sanity checks
5715           for stack position and size, emit warnings when appropriate
5716
5717 2005-05-26 Maarten Brock <sourceforge.brock AT dse.nl>
5718
5719         * device/lib/_strncpy.c: fixed not filling with \0
5720
5721 2005-05-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5722
5723         * src/SDCCast.c (funcOfType, funcOfTypeVarg, stringToSymbol,
5724           createFunction),
5725         * src/SDCC.y (external_definition, enumerator, parameter_declaration,
5726           compound_statement),
5727         * src/SDCCsymt.h,
5728         * src/SDCCsymt.c (addSymChain, processFuncArgs): fixed bug #1159134
5729
5730 2005-05-24 Raphael Neider <rneider AT web.de>
5731
5732         * src/pic16/glue.c (pic16_printGPointerType): fixed #1207796
5733
5734 2005-05-24 Raphael Neider <rneider AT web.de>
5735
5736         * device/include/pic16/pic18f{442,452,458}.h: fixed wrong
5737           TRISE definitions, closes bug #1162453
5738
5739 2005-05-22 Raphael Neider <rneider AT web.de>
5740
5741         * src/pic16/main.c (_process_pragma): check for missing
5742           arguments to pragmas code and udata
5743         * device/include/pic16/pic18f{2550,4331,4455,4520}.h:
5744           consistency fixes to match other headers (thanks to Jim Paris)
5745         * device/lib/pic16/libio/i2c.ignore: 18f4331 provides no I2C
5746
5747 2005-05-21 Maarten Brock <sourceforge.brock AT dse.nl>
5748
5749         * src/SDCCicode.c (isOperandEqual): fixed missing ;
5750
5751 2005-05-19 Maarten Brock <sourceforge.brock AT dse.nl>
5752
5753         * support/regression/tests/bug1198642.c: new test
5754         * src/SDCCicode.c (isOperandEqual): fixed bug 1198642
5755         * src/SDCCcse.c (findPrevIc): added comment, please have a look
5756         * support/scripts/resource.h,
5757         * support/scripts/resource.rc,
5758         * src/src.dsp: added sdcc.ico to project as icon for sdcc.exe
5759         * support/scripts/sdcc.ico: added 32x32 icon
5760
5761 2005-05-18 Raphael Neider <rneider AT web.de>
5762
5763         * device/lib/pic16/libdev/pic18f*.c,
5764         * device/include/pic16/pic18f*.h: updated "sfr" and "at X"
5765           keywords to "__sfr" and "__at (X)"
5766         * device/include/pic16/pic18fregs.h: added pic18f4520
5767         * src/pic16/pcode.c (pic16_pCode2str): fixed (?) bug
5768           #1203088 (MPLAB compatibility)
5769
5770 2005-05-17 Raphael Neider <rneider AT web.de>
5771
5772         * device/include/pic16/pic18f{2550,4331,4455,4520}.h: NEW
5773         * device/lib/pic16/libdev/pic18f{2550,4331,4455,4520}.c: NEW
5774         * device/lib/pic16/pics.all: added new devices
5775         * src/pic16/device.c: added support for pic18f4520
5776
5777 2005-05-16 Raphael Neider <rneider AT web.de>
5778         * src/pic16/gen.{c,h}: s/mov2f/pic16_mov2f made public
5779         * src/pic16/genarith.c (genAddLit): fixed bug 1202480
5780         * src/pic16/pcode.{c,h} (pic16_newpCodeOpBit_simple): NEW
5781           convenience function for bit access
5782
5783 2005-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
5784
5785         * device/lib/printf_large.c: fixed bug 1193299
5786         * support/regression/tests/bug1057979.c: added test %3.3s
5787
5788 2005-05-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5789
5790         * device/include/mcs51/8051.h,
5791         * device/include/mcs51/8052.h: made parseable with lint
5792         * device/include/mcs51/lint.h: added include file for (sp)lint
5793         * doc/sdccman.lyx: added doc about use of splint (syntax checking tool)
5794         * doc/cdbfileformat.lyx,
5795         * doc/test_suite_spec.lyx: hardcoded date to the date of last text change
5796
5797 2005-05-14 Raphael Neider <rneider AT web.de>
5798
5799         * device/lib/pic16/Makefile.common.in: add --optimize-df to OPT_FLAGS
5800         * device/lib/pic16/libc/stdlib/itoa.c (new)
5801         * device/lib/pic16/libc/stdlib/Makefile: have itoa.c built
5802         * device/lib/pic16/libio/Makefile: exclude subdir according to
5803           ${subdir}.ignore for certain PICs (lacking e.g. i2c)
5804         * device/lib/pic16/libio/i2c.ignore (new): pic18f1220 has no I2C support
5805         * src/pic16/gen.c (genFunction): prevent annoying warning
5806         * src/pic16/pcode.c: renamed stack_t to dynstack_t to prevent
5807           nameclashes on BeOS
5808         * support/cpp2/cppmain.c (cpp_output_string): new
5809         * support/cpp2/cpplib.c (_cpp_do__Pragma): fixed _Pragma(""),
5810           fixes bug 1116802
5811
5812 2005-05-13 Borut Razem <borut.razem AT siol.net>
5813
5814         * src/SDCCmain.c (linkEdit): fixed bug 1195202
5815
5816 2005-05-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5817
5818         * .version: changed to version 2.5.1; back to bleeding edge development
5819
5820 2005-05-11 Borut Razem <borut.razem AT siol.net>
5821
5822         * doc/sdccman.lyx doc/cdbfileformat.lyx doc/test_suite_spec.lyx:
5823           generate PDF version 1.3 documents
5824
5825 2005-05-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5826
5827         * .version: changed to version 2.5.0
5828
5829 2005-04-27 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5830
5831         * doc/sdccman.lyx: updated weblinks, index and smaller updates
5832
5833 2005-04-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5834
5835         * doc/sdccman.lyx: changed version 2.5.0, documented --std-c89,
5836         --std-sdcc89, --std-c99, --std-sdcc99, and the corresponding #pragmas, as
5837         well as many smaller updates.
5838         * .version: changed to version 2.5.0-pre1
5839
5840 2005-04-26 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5841
5842         * src/SDCCmain.c (setIncludePath): added port->target to SDCC_INCLUDE_NAME
5843
5844 2005-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
5845
5846         * support/regression/tests/bug1185672.c: added
5847         * src/mcs51/gen.c (aopGetUsesAcc, genCpl, genAnd, genOr, genXor): fixed
5848           bug 1185672
5849         * src/mcs51/gen.c (genCall): added comments, made it look safer
5850         * src/mcs51/gen.c (genEndFunction): simplified
5851
5852 2005-04-25 Maarten Brock <sourceforge.brock AT dse.nl>
5853
5854         * src/mcs51/ralloc.c (serialRegAssign): fixed bug 1189609
5855
5856 2005-04-14 Borut Razem <borut.razem AT siol.net>
5857
5858         * fixed bug 1045046 - SIGSEGV with really simple code?:
5859           src/pic/pcode.c (pCodeInitRegisters)- pseudo stack size increased to 16
5860           src/pic/ralloc.c (typeRegWithIdx) - error message on pseudo stack overflow
5861
5862 2005-04-14 Borut Razem <borut.razem AT siol.net>
5863
5864         * src/pic16/gen.c (genInline), src/pic16/main.c (_process_pragma),
5865           src/pic16/device.h: temporarily disabled experimental #inline pragma
5866           for 2.5.0 release
5867
5868 2005-04-14 Maarten Brock <sourceforge.brock AT dse.nl>
5869
5870         * device/include/z80/stdio.h,
5871         * device/include/z80/string.h: removed these highly incomplete files so
5872           SDCC can use the default ones in device/include/
5873
5874 2005-04-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5875
5876         * src/mcs51/gen.c (genEndFunction): removed unused variable to fix
5877         gcc warning.
5878         * device/lib/Makefile.in: default PORTINCDIR to the mcs51 subdir to
5879         fix sdcpp warnings.
5880
5881 2005-04-12 Maarten Brock <sourceforge.brock AT dse.nl>
5882
5883         * device/include/malloc.h: removed redundant __reentrant prototypes
5884         * device/lib/_mullong.c: added working xstack variant in asm (C version
5885           doesn't pass regression tests)
5886         * device/lib/bpx.c: used __data and made bpx char for mcs51
5887         * src/SDCCast.c (decorateType): removed unused GPTYPE_IDATA,
5888           (createFunction): fixed bug with xstackPtr
5889         * src/SDCCcse.c: corrected comments
5890         * src/SDCCopt.c (convertToFcall): fixed warning in MSVC,
5891           (killDeadCode, eBBlockFromiCode): removed unused code
5892         * src/SDCCsymt.h: removed unused GPTYPE_GPTR and GPTYPE_IDATA,
5893           corrected comments
5894         * src/mcs51/gen.c (aopForSym, aopPut, toBoolean, unsaveRegisters,
5895           assignResultValue, genCall, genFunction, genEndFunction, genAnd,
5896           genOr, genXor, genAddrOf): fixed several bugs concerning xstack
5897           (genModOneByte): fixed warning in MSVC
5898         * src/mcs51/main.c (): added comments
5899         * src/mcs51/peeph.def: changed 129 to 129.a, added 129.b, 129.c & 129.d
5900
5901 2005-04-12 Maarten Brock <sourceforge.brock AT dse.nl>
5902
5903         * src/SDCCmain.c (linkEdit): oops, changed one line too many
5904
5905 2005-04-11 Maarten Brock <sourceforge.brock AT dse.nl>
5906
5907         * src/SDCCmain.c (linkEdit): fixed bug with finding crt0.o for z80
5908
5909 2005-04-10 Vangelis Rokas <vrokas AT users.sourceforge.net>
5910
5911         * src/pic16/glue.c (printIvalChar): fixed bug when emitting
5912         characters arrays of larger size than the declared one.
5913
5914 2005-04-10 Borut Razem <borut.razem AT siol.net>
5915
5916         * src/pic/gen.c (genInline),
5917           src/pic/pcode.c (newpCodeAsmDir), (pCode2str),
5918           (genericPrint), (unlinkpCodeFromBranch), (compareLabel),
5919           (findNextInstruction), (findPrevInstruction),
5920           (findInstructionUsingLabel),
5921           src/pic/pcode.h: fixed bug #1164907 - Labels not being recognized
5922         * src/pic/pcode.c (findLabel): added missing '\n'
5923         * src/src.dsp: added SDCCdwarf2.c to the project
5924
5925 2005-04-09 Borut Razem <borut.razem AT siol.net>
5926
5927         * support/scripts/sdcc.nsi: added include/hc08/* h to NSIS setup
5928
5929 2005-04-08 Raphael Neider <rneider AT web.de>
5930
5931         * src/pic16/pcode.c: added helpers defmapInsertAfter (insert a new item
5932           into the chain after a given one) and mergeDefmapSymbols (combine
5933           defmap entries for each symbol per pcode)
5934         * (createDefmap): have defmap entries merged in the end
5935         * (defmapReplaceSymRef): split defmap entries covering two accesses to
5936           a symbol before replacing one access type's symbol, merge symbols in
5937           the end (replacement symbol might already have an entry)
5938         * (assignValnums): keep reference to written WREG intact
5939
5940 2005-04-08 Raphael Neider <rneider AT web.de>
5941
5942         * src/pic16/pcode.c (struct defmap_s): named anonymous union (for
5943           Alpha)
5944
5945 2005-04-08 Vangelis Rokas <vrokas AT users.sourceforge.net>
5946
5947         * src/pic16/pcode.c (pic16_get_op2): enlarged size of array b to 128
5948         bytes
5949
5950 2005-04-07 Raphael Neider <rneider AT web.de>
5951
5952         * device/include/pic16/usart.h: added compatibility defines for
5953           devices with more than one USART
5954         * device/include/pic16/pic18f[68][567]20.h: activated above defines
5955
5956 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
5957
5958         * device/lib/Makefile.in: updated for port specific include
5959
5960 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
5961
5962         * support/regression/ports/mcs51/spec.mk: added mcs51 include
5963
5964 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
5965
5966         * device/include/8051.h,
5967         * device/include/8052.h,
5968         * device/include/at89S8252.h,
5969         * device/include/at89c55.h,
5970         * device/include/at89x051.h,
5971         * device/include/at89x51.h,
5972         * device/include/at89x52.h,
5973         * device/include/mcs51reg.h,
5974         * device/include/reg51.h,
5975         * device/include/reg764.h,
5976         * device/include/regc515c.h,
5977         * device/include/sab80515.h: (re)moved these 12 files
5978         * device/include/mcs51/8051.h,
5979         * device/include/mcs51/8052.h,
5980         * device/include/mcs51/at89S8252.h,
5981         * device/include/mcs51/at89c55.h,
5982         * device/include/mcs51/at89x051.h,
5983         * device/include/mcs51/at89x51.h,
5984         * device/include/mcs51/at89x52.h,
5985         * device/include/mcs51/mcs51reg.h,
5986         * device/include/mcs51/reg51.h,
5987         * device/include/mcs51/reg764.h,
5988         * device/include/mcs51/regc515c.h,
5989         * device/include/mcs51/sab80515.h: and added them here
5990
5991 2005-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
5992
5993         * device/include/stdarg.h: changed SDCC specific keywords to double
5994           underlined form.
5995         * device/include/stdint.h: changed intptr_t and uintptr_t for others than
5996           mcs51 and ds390.
5997         * device/include/hc08/mc68hc908gp32.h,
5998         * device/include/hc08/mc68hc908jb8.h,
5999         * device/include/hc08/mc68hc908jkjl.h,
6000         * device/include/hc08/mc68hc908qy.h: fixed comments
6001         * device/include/mcs51/README: updated
6002         * device/include/mcs51/c8051f120.h: added PINRSF
6003         * device/lib/pic16/libc/stdlib/crc16.c: fixed comments
6004         * src/pic16/pcode.c: MSVC6 doesn't accept declaring new variables
6005           amidst code. Also inline is not supported.
6006
6007 2005-04-06 Raphael Neider <rneider AT web.de>
6008
6009         * src/pic16/pcode.c (pic16_pCodeReplace): also update pcflow->end
6010         * (createDefmap): fixed CALLs to depend on FSR1 and RETLW to restore
6011           callers stack/frame pointers
6012
6013 2005-04-06 Vangelis Rokas <vrokas AT users.sourceforge.net>
6014
6015         * device/include/pic16/usart.h: added, missing in previous commit,
6016         * device/include/pic16/adc.h: fixed typo,
6017         * device/lib/pic16/libc/utils/cvtdec.S: added missing in previous
6018         commit,
6019         * device/lib/pic16/libc/stdlib/g_ftoa.S: modified to include
6020         <p18fxxx.inc>
6021         * device/lib/pic16/libc/stdio/streams.c: leave stdin, stdout
6022         uninitialized because a bug appears with gplink
6023         * device/lib/pic16/{some makefiles}: moved $(CSTD) from CFLAGS to
6024         COMPILE_FLAGS and added CPPFLAGS with -nostdinc because sdcpp
6025         complains for unrecognised option
6026
6027 2005-04-05 Raphael Neider <rneider AT web.de>
6028
6029         * src/pic16/gen.c (pic16_popCopyReg): made copying work for extended
6030           structs as well (using memcpy)
6031         * (genFunction): fixed comparison, used pCodeOpLabel to reduce warning
6032           on ISRs (GOTO has no label)
6033         * src/pic16/device.h: added OF_OPTIMIZE_DF
6034         * src/pic16/main.c: added compiler switch --optimize-df to enable the
6035           new data flow analysis/optimization
6036         * src/pic16/pcode.c: added (prototypes for and implementation of)
6037           dataflow analysis functions, fixed pCodeInstructions' inCond and
6038           outCond values, made RCALL a branch instruction
6039         * (pic16_unlinkpCode): keep C line if possible
6040         * (pic16_pCodeUnlink): removed cast on left side of assignment, have
6041           C line moved if possible
6042         * (pic16_getRegFrompCodeOp): NEW, improved version of...
6043         * (pic16_getRegFromInstruction,pic16_getRegFromInstruction2): changed
6044           to use new pic16_getRegFrompCodeOp (works for more SFRs)
6045         * (pic16_BuildFlow): fixed skip instructions with label (did not start
6046           new flow)
6047         * (pic16_getJumptabpCode): NEW, needed in...
6048         * (LinkFlow): fixed handling of jumptables, calls and conditional
6049           branches
6050         * (pic16_InsertCommentAfter): NEW
6051         * (pic16_pCodeReplace): made verbose and flow preserving
6052         * (AnalyzeFlow): added call to data flow analysis
6053         * src/pic16/pcode.h: added defmaps to pCodeFlow struct
6054         * src/pic16/pcodeflow.h: added PCC_STATUS to mean all STATUS bits
6055         * src/pic16/ralloc.c (packRegsForAssign): added return 1 in the end
6056
6057 2005-04-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6058
6059         * src/SDCCast.c (decorateType): fixed bug #1105626
6060
6061 2005-04-02 Vangelis Rokas <vrokas AT users.sourceforge.net>
6062
6063         * device/include/asm/pic16/features.h,
6064         * pic18f*.h headers,
6065         * device/include/pic16/adc.h,
6066         * device/include/pic16/delay.h,
6067         * device/include/pic16/i2c.h,
6068         * device/include/pic16/malloc.h,
6069         * device/include/pic16/stdio.h,
6070         * device/include/pic16/stdlib.h,
6071         * device/include/pic16/string.h,
6072         * device/lib/pic16/libc/stdio/printf_tiny.c,
6073         * device/lib/pic16/libc/stdio/printf_small.c,
6074         * device/lib/pic16/libc/stdio/strmgpsim.c,
6075         * device/lib/pic16/libc/stdio/strmmssp.c,
6076         * device/lib/pic16/libc/stdio/strmusart.c,
6077         * device/lib/pic16/libc/stdio/vfprintf.c,
6078         * device/lib/pic16/libc/stdlib/ltoa.c,
6079         * device/lib/pic16/libc/stdlib/putchar.c,
6080         * device/lib/pic16/libc/stdlib/x_ftoa.c,
6081         * device/lib/pic16/libc/stdlib/memchrpgm.c,
6082         * device/lib/pic16/libc/stdlib/memchrram.c,
6083         * device/lib/pic16/libc/stdlib/memcpypgm2ram.c,
6084         * device/lib/pic16/libc/stdlib/memcpyram2ram.c,
6085         * device/lib/pic16/libio/adc/adcbusy.c,
6086         * device/lib/pic16/libio/adc/adcread.c,
6087         * device/lib/pic16/libio/adc/adcsetch.c,
6088         * device/lib/pic16/libio/usart/ubaud.c,
6089         * device/lib/pic16/libio/usart/ubusy.c,
6090         * device/lib/pic16/libio/usart/udrdy.c,
6091         * device/lib/pic16/libio/usart/uopen.c,
6092         * device/lib/pic16/libio/usart/uputc.c,
6093         * device/lib/pic16/libsdcc/gptr/gptrget1.c,
6094         * device/lib/pic16/libsdcc/gptr/gptrget2.c,
6095         * device/lib/pic16/libsdcc/gptr/gptrget3.c,
6096         * device/lib/pic16/libsdcc/gptr/gptrget4.c,
6097         * device/lib/pic16/libsdcc/gptr/gptrput1.c,
6098         * device/lib/pic16/libsdcc/gptr/gptrput2.c,
6099         * device/lib/pic16/libsdcc/gptr/gptrput3.c,
6100         * device/lib/pic16/libsdcc/gptr/gptrput4.c: modified all SDCC
6101         specific keywords to double underlined form,
6102         * device/lib/pic16/libc/Makefile.rules,
6103         * device/lib/pic16/libsdcc/Makefile.rules,
6104         * device/lib/pic16/libm/Makefile,
6105         * device/lib/pic16/libio/Makefile.rules: added CSTD macro in CFLAGS
6106         to compile with C standard set in Makefile.common
6107         * device/lib/pic16/libc/stdlib/Makefile: added new C sources
6108         rand.c and crc.c in compilation process,
6109         * device/lib/pic16/libsdcc/int/divuint.c,
6110         * device/lib/pic16/libsdcc/long/divulong.c: changed declaration of
6111         `c' from signed to unsigned,
6112         * device/lib/pic16/startup/crt0.c,
6113         * device/lib/pic16/startup/crt0i.c,
6114         * device/lib/pic16/startup/crt0iz.c: adopted to all SDCC specific
6115         keywords to double underlined form, bug fixes in _do_cinit function
6116         which prevented the correct initialization of the .idata segment,
6117         * src/pic16/pcoderegs.c (insideLRBlock): fixed a bug that caused the
6118         core to enter a infinite loop
6119         * device/lib/pic16/libc/stdlib/rand.c, crc.c: new files
6120
6121 2005-04-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6122
6123         * src/SDCCicode.c (getArraySizePtr): fixed bug #1122171
6124
6125 2005-04-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6126
6127         * device/include/Makefile.in: add support for hc08 subdirectory
6128         * device/include/hc08/: new subdirectory
6129         * device/include/hc08/mc68hc908jkjl.h: new header contributed by
6130         Lucas Loizaga, thanks!
6131         * device/include/hc08/mc68hc908qy.h,
6132         * device/include/hc08/mc68hc908gp32.h,
6133         * device/include/hc08/mc68hc908jb8.h: moved hc08 register defs to
6134         their own directory. Changed internal macro names to use the compiler
6135         reserved namespace. Changed SDCC specific keywords to double
6136         underlined form.
6137         * device/include/math.h,
6138         * device/include/malloc.h,
6139         * device/include/stdarg.h,
6140         * device/include/stdbool.h
6141         * device/include/string.h,
6142         * device/include/tinibios.h,
6143         * device/include/ds400rom.h,
6144         * device/include/8051.h,
6145         * device/include/8052.h,
6146         * device/include/80c51xa.h,
6147         * device/include/at89c55.h,
6148         * device/include/at89S8252.h,
6149         * device/include/at89x51.h,
6150         * device/include/at89x52.h,
6151         * device/include/ds80c390.h,
6152         * device/include/reg764.h,
6153         * device/include/regc515c.h,
6154         * device/include/sab80515.h,
6155         * device/include/mcs51/c8051f000.h,
6156         * device/include/mcs51/c8051f018.h,
6157         * device/include/mcs51/c8051f020.h,
6158         * device/include/mcs51/c8051f040.h,
6159         * device/include/mcs51/c8051f060.h,
6160         * device/include/mcs51/c8051f120.h,
6161         * device/include/mcs51/c8051f300.h,
6162         * device/include/mcs51/c8051f310.h,
6163         * device/include/mcs51/c8051f320.h,
6164         * device/include/mcs51/c8051f330.h,
6165         * device/include/mcs51/c8051f350.h,
6166         * device/include/z180.h: Changed SDCC specific keywords to double
6167         underlined form.
6168
6169 2005-03-31 Vangelis Rokas <vrokas AT users.sourceforge.net>
6170
6171         * src/pic16/device.c (Pics16[]): added devices 18F2550, 18F4331,
6172         18F4455,
6173         * (pic16_assignConfigWordValue): disable testing of configuration
6174         register value with config mask,
6175         * src/pic16/gen.c (pic16_testStackOverflow): prefix stack test
6176         function with port->fun_prefix,
6177         * (genFunction): when generating a naked interrupt function never
6178         create an absolute segment placed in interrupt vector address, place
6179         the actual interrupt function at IVA instead, when an interrupt
6180         function is generated with unspecified interrupt then do not create
6181         the absolute section,
6182         * (genGenPointerGet, genGenPointerSet, genPackBits): replace all
6183         code for generating a call to generic pointer get/put function with
6184         a call to function pic16_callGenericPointer(),
6185         * src/pic16/genutils.c (pic16_callGenericPointerRW): NEW, generates
6186         the call to the generic pointer get/put functions with prefixing the
6187         function name with port->fun_prefix,
6188         * src/pic16/glue.c (pic16glue): ifdef-out test of OF_LR_SUPPORT,
6189         * src/pic16/main.c (_process_pragma): prefix function with
6190         port->fun_prefix,
6191         * (_pic16_finaliseOptions): define macro __18Fxxxx macro when
6192         calling assembler, old 18Fxxxx macro is deprecated,
6193         * src/pic16/pcode.c (unlinkpCodeFromBranch): added PC_INLINE and
6194         PC_ASMDIR in while condition,
6195         * (findInstruction): add PC_ASMDIR in while condition,
6196         * (buildCallTree): prefix main with port->fun_prefix,
6197         * (pic16_pCode2str): fixed bug that didn't emit the memory access
6198         identifier for variable with banked access in instructions BTFSS,
6199         BTFSC, BCF, BSF, BTG
6200         * (AnalyzeFlow): moved call to OptimizepCode to pic16_AnalyzeBanking,
6201         * src/pic16/pcodepeep.c (pCodeOpCompare): increase size of b to 1024,
6202         * src/pic16/pcoderegs.c (pic16_pCodeRegoptimizeRegUsage): don't
6203         perform optimization when enviroment variable NO_REG_OPT is set,
6204         * (insideLRBlock): NEW, return 1 if register is inside an
6205         INF_LOCALREGS block,
6206         * (RemoveRegFromLRBlock): remove a register that is completely
6207         eliminated by register optimization, but it is still left in local
6208         register store/restore in/from stack block,
6209         * (Remove2pcodes): after removing register, check to see if it
6210         should be removed from local register store/restore in/from stack
6211         block,
6212         * src/pic16/ralloc.c (pic16_decodeOp): added decode for
6213         DUMMY_READ_VOLATILE,
6214
6215         * device/include/pic16/adc.h: minor prototype modifications and
6216         update,
6217         * device/include/pic16/malloc.h: added GPL notice various
6218         modifications,
6219         * device/include/pic16/stdint.h: NEW, standard header for ints
6220         * device/include/pic16/delay.h: NEW, header for delay functions,
6221         delay10tcy, delay100tcy, delay1ktcy, delay10ktcy, delay100ktcy,
6222         delay1mtcy,
6223         * device/include/pic16/signal.h: NEW, header providing helper macros
6224         for implementing signal handlers,
6225         * device/include/pic16/stdio.h: added prototypes for functions,
6226         printf, vprintf, sprintf, vsprintf, fprintf, vfprintf. Added
6227         prototypes for stdin and stdout, added macro PUTCHAR to
6228         automatically implement putchar function prototype,
6229         * device/include/pic16/usart.h: modified and updated USART library,
6230         * device/lib/pic16/libio/adc/,
6231         * device/lib/pic16/libio/i2c: some modifications to improve library
6232         performance,
6233         * device/lib/pic16/libc/stdio/: modifications for the new printf*
6234         family of functions,
6235         * device/lib/pic16/libc/stdlib/: various modifications in the malloc
6236         family of functions and other sources,
6237         * device/lib/pic16/libio/usart/: NEW, c sources for the usart module
6238         of the PIC18Fxx[28] devices,
6239         * device/lib/pic16/libc/delay/: NEW, c sources for the delay functions,
6240         * device/lib/pic16/libc/utils/: minor modifications in the .S sources,
6241         * device/lib/pic16/startup/{crt0i.c, crt0iz.c}: redesign of the
6242         _do_cinit function, because the previous failed when local variables
6243         where not placed in the same memory bank,
6244         * device/lib/pic16/libsdcc/char/: various modifications to improve
6245         library performance,
6246         * doc/sdccman.lyx: some reorganization of the PIC16 part, added many
6247         information on the new functions of the c library and more...
6248
6249 2005-03-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6250
6251         * src/SDCCBBlock.c (iCodeBreakDown): fixed bug #1170212
6252
6253 2005-03-26 Raphael Neider <rneider AT web.de>
6254
6255         * src/pic16/gen.c (genSkipc): fixed semantics (execute branch
6256           if condition == CARRY)
6257         * (genCmp): adapted to new genSkipc semantics
6258         * src/pic16/genutils.c (pic6_genCmp_special): removed side effect
6259           on rIfx (genCmp was broken)
6260
6261 2005-03-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6262
6263         * src/SDCCmain.c (setDefaultOptions, optionsTable[], parseCmdLine),
6264         * src/z80/main.c (_keywords[]),
6265         * src/SDCCglobal.h (struct options),
6266         * src/SDCC.y,
6267         * src/SDCC.lex (isTargetKeyword, doPragma, pragma_tbl[]): new pragmas
6268         to enable/disable SDCC and C99 extensions/keywords (std_c89, std_sdcc89,
6269         std_c99, std_sdcc99). Also, equivalent command line options (--std-c89,
6270         --std-sdcc89, --std-c99, --std-sdcc99). SDCC specific keywords are
6271         always available in leading double underscore form. The C99 support is
6272         mostly missing, but it's a start.
6273         * support/regression/tests/bug-227710.c: fixed nonconforming use of
6274         reserved identifier "__data".
6275
6276 2005-03-24 Maarten Brock <sourceforge.brock AT dse.nl>
6277
6278         * src/mcs51/peeph.def: fixed bug 1170013
6279
6280 2005-03-22 Maarten Brock <sourceforge.brock AT dse.nl>
6281
6282         * device/include/mcs51reg.h: fixed bug 842007
6283
6284 2005-03-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6285
6286         * src/SDCCcflow.c (dfNumCompare): committed the wrong version of this
6287         last time.
6288
6289 2005-03-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6290
6291         * src/port.h (struct PORT),
6292         * src/avr/ralloc.c (avr_assignRegisters),
6293         * src/avr/main.c,
6294         * src/ds390/ralloc.c (ds390_assignRegisters),
6295         * src/ds390/main.c,
6296         * src/hc08/ralloc.c (hc08_assignRegisters),
6297         * src/hc08/main.c,
6298         * src/mcs51/ralloc.c (mcs51_assignRegisters),
6299         * src/mcs51/main.c,
6300         * src/pic/ralloc.c (pic14_assignRegisters),
6301         * src/pic/main.c,
6302         * src/pic16/ralloc.c (pic16_assignRegisters),
6303         * src/pic16/main.c,
6304         * src/xa51/ralloc.c (xa51_assignRegisters),
6305         * src/xa51/main.c,
6306         * src/z80/ralloc.c (z80_assignRegisters),
6307         * src/z80/ralloc.h,
6308         * src/SDCCopt.c (eBBlockFromiCode, replaceRegEqv, killDeadCode),
6309         * src/SDCCcse.c (ifxOptimize, cseBBlock, cseAllBlocks),
6310         * src/SDCCcse.h,
6311         * src/SDCCdflow.c (computeDataFlow),
6312         * src/SDCCdflow.h,
6313         * src/SDCCloop.c (addDefInExprs, loopInvariants, loopOptimizations),
6314         * src/SDCCloop.h,
6315         * src/SDCCcflow.c (*),
6316         * src/SDCCcflow.h,
6317         * src/SDCCBBlock.c (iCodeBreakDown, dumpEbbsToFileExt, eBBWithEntryLabel),
6318         * src/SDCCBBlock.h (struct ebbIndex): new struct that keeps two copies
6319         of the eBBlock list, sorted by both bbnum and dfnum. (fixes bug with
6320         immedDom() returning wrong block; probably fixes bug #1160833)
6321
6322 2005-03-20 Borut Razem <borut.razem AT siol.net>
6323
6324         * support/scripts/inc2h.pl: WIN32 port
6325
6326 2005-03-19 Maarten Brock <sourceforge.brock AT dse.nl>
6327
6328         * device/lib/makefile.in: added abs.c and labs.c
6329
6330 2005-03-17 Maarten Brock <sourceforge.brock AT dse.nl>
6331
6332         * device/include/stdint.h: added
6333         * device/lib/abs.c: added
6334         * device/lib/labs.c: added
6335         * device/include/stdlib.h: added abs() and labs() prototypes
6336         * device/lib/libsdcc.lib: added abs and labs
6337         * device/include/float.h,
6338         * device/lib/_fsmul.c,
6339         * device/lib/printf_fast.c,
6340         * device/lib/printf_tiny.c: updated comments
6341
6342 2005-03-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6343
6344         * src/SDCCicode.c (geniCodeSwitch, geniCodeJumpTable): fixed
6345         bug #1164313
6346
6347 2005-03-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6348
6349         * src/SDCCcse.c (cseBBlock): retain assignment to self when volatile
6350         * src/SDCCast.c (isLoopCountable): fixed bug #1161985
6351
6352 2005-03-15 Maarten Brock <sourceforge.brock AT dse.nl>
6353
6354         * device/lib/printf_large.c: removed inline assembly for portability and
6355           readability. Use printf_fast if speed or size are more important.
6356         * src/pic16/gen.c: removed conditions around use of DEBUGpc
6357         * src/pic16/genutils.h: added define for DEBUGpc for MSVC
6358
6359 2005-03-15 Vangelis Rokas <vrokas AT users.sourceforge.net>
6360
6361         * src/pic16/genutils.c (pic16_genCmp_special): initialized offs to
6362         prevent compiler warning
6363
6364 2005-03-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
6365
6366         * device/lib/pic16/startup/crt0i.c (_cinit): local variables where
6367         moved to level 0 and declared as static. Also they are explicit
6368         placed in access bank. This was necessery because some times they
6369         might cross memory bank boundaries. crt0iz.c is *NOT* updated!!!
6370         * src/pic16/device.h: added flag OPTIMIZE_CMP to enable some compare
6371         optimizations. Currently only compare to unsigned char is implemented,
6372         * src/pic16/gen.c: added fReturnIdx array,
6373         * (struct resolvedIfx) is moved to gen.h and made public,
6374         * (struct _G): added sregsAlloc and sregsAllocSet fields,
6375         * (aopForSym): added an optimization to directly store in stack of
6376         the operand of a SEND iCode,
6377         * (pic16_aopOp): don't return return registers as strings (AOP_STR)
6378         but as registers instead (AOP_REG) using the fReturnIdx array,
6379         * (pic16_freeAsmop): remove the freed register from the
6380         _G.sregsAlloc field,
6381         * (pic16_aopGet): in case AOP_STR, the compare to 'a' is changed to
6382         a compare of 'WREG',
6383         * (pic16_popGetTempRegCond): changed function prototype, now
6384         function takes also a bitVector argument v which holds the current
6385         set of registers that are allocated for stack access by aopForSym,
6386         registers allocated in aopForSym for accessing stack symbols are not
6387         any more part of the functions usedRegs field,
6388         * (genCall): some times aopOp is called for a stack variable to be
6389         send, aopForSym might perform the push, if this is true make sure
6390         that genCall doesn't push the variable twice by testing _G.resDirect,
6391         * (genFunction): changed testing for unspecified interrupt number
6392         from 256 to INTNO_UNSPEC,
6393         * modified selection scheme of frame pointer generation. Previously
6394         if function did use local registers a frame pointer was generated,
6395         now a frame pointer is generated only if function has arguments
6396         (that need PLUSW2 register access), or has stack arguments, or the
6397         compiler is not instructed to omit the frame pointer,
6398         * (genEndFunction): before restoring local registers that were saved
6399         in the function preamble, also restore the registers that *might*
6400         have been allocated for stack access,
6401         * (genRet): removed some old comments,
6402         * (genCmp, the active (RN's) version): added a call to the
6403         pic16_genCmp_special function to perform the compare with a more
6404         robust and optimized way,
6405         * (genInline): a feature has been added in inline code generation,
6406         which allows a wildcard variable substitution when writing inline
6407         assembly. Code is incomplete and experimental therefore undocumented,
6408         * (genCast): changed order of aopOp for result and right to allow
6409         aopForSym to directly load the result if possible,
6410         * src/pic16/genutils.c (selectCompareOp, pic16_genCmp_special): NEW,
6411         perform an optimized compare on some selected special occasions,
6412         * src/pic16/genutils.h: declaration of resolvedIfx structure from gen.c,
6413         * src/pic16/glue.c (pic16createInterrupVect): make sure we never
6414         generate an IVT any more,
6415         * src/pic16/main.c (pic16_optionsTable): added command line option
6416         --optimize-cmp,
6417         * (_pic16_initPaths): when calling C preprocessor define pic18fXXXX
6418         macro too, when calling assembler define pic18fXXXX *and* __18Fxxxx
6419         macros,
6420         * src/pic16/NOTES: Raphael Neider added in list of active developers
6421         * src/pic16/pcode.c (OPT_TYPE_STR): added strings jumptable_begin and
6422         jumptable_end to prevent bug #,
6423         * (pic16_pciADDWFC, ADDFWC, COMF, CLRF): added some missing flags in
6424         inCond and outCond fields,
6425         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): add a fix for bug #,
6426         * src/pic16/ralloc.c (serialRegAssign): explicit set willCS to 0 to
6427         turn off register spilling,
6428         * (packRegsForOneUse): synced with other ports' versions although it
6429         is not used currently,
6430         * (pic16_packRegisters): added an optimization while reading
6431         structure bitfields, some registers may be saved (malloc code is
6432         decreased by 80 bytes)
6433
6434 2005-03-12 Vangelis Rokas <vrokas AT users.sourceforge.net>
6435
6436         * src/SDCCcse.c (cseBBlock): inside 'do operand lookup' loop test if
6437         left is a bitfield, if yes, then don't optimize assignment. Perhaps
6438         this can be optimized more?
6439
6440 2005-03-10 Raphael Neider <rneider AT web.de>
6441
6442         * src/pic16/gen.c (pic16_loadFSR0, genPackBits, genUnpackBits,
6443           genNearPointerGet): (hopefully) fixed access to bitfields via
6444           pointers (p->bitN = x; and x = p->bitN; failed)
6445
6446 2005-03-09 Paul Stoffregen <paul AT pjrc.com>
6447
6448         * device/lib/printf_fast.c: fix leading zero format, eg "%02d"
6449
6450 2005-03-09 Raphael Neider <rneider AT web.de>
6451
6452         * src/SDCCopt.c (killDeadCode): fixed bug #1156016
6453
6454 2005-03-06 Maarten Brock <sourceforge.brock AT dse.nl>
6455
6456         * src/SDCCicode.h: moved CRITICAL and ENDCRITICAL from SKIP_IC2 to SKIP_IC
6457         * src/mcs51/ralloc.c (willCauseSpill): added check for REG_BIT type,
6458           (regTypeNum): set REG_BIT type if necessary
6459         * src/mcs51/ralloc.h: added define REG_BIT, used to fix bug 1144613
6460         * support/regression/tests/critical.c: check bug 1144613
6461
6462 2005-03-02 Raphael Neider <rneider AT web.de>
6463
6464         * src/pic16/gen.c (genRightShiftLiteral): fixed bug #1154256
6465
6466 2005-02-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6467
6468         * src/avr/ralloc.c (serialRegAssign),
6469         * src/ds390/ralloc.c (serialRegAssign),
6470         * src/hc08/ralloc.c (serialRegAssign),
6471         * src/mcs51/ralloc.c (serialRegAssign),
6472         * src/pic/ralloc.c (serialRegAssign),
6473         * src/pic16/ralloc.c (serialRegAssign),
6474         * src/xa51/ralloc.c (serialRegAssign),
6475         * src/z80/ralloc.c (serialRegAssign): fixed bug #1105154
6476
6477 2005-02-22 Maarten Brock <sourceforge.brock AT dse.nl>
6478
6479         * src/SDCCast.c (decorateType): fixed bug 1124787
6480
6481 2005-02-20 Hubert Sack <sack AT digiplan.de>
6482         committed by Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6483
6484         * src/mcs51/peeph.def: added peepholes 3.h-k and 132.a-f from
6485         patch #1121755
6486
6487 2005-02-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6488
6489         * src/SDCCpeeph.def: new keyword "labelRefCountChange" which allows peepholes
6490         to keep the correct label reference count when adding/removing references
6491         to labels. A peephole file using this is appended to patch #1144962.
6492
6493 2005-02-14 Raphael Neider <rneider AT web.de>
6494
6495         * device/lib/pic16/libc/string/memccpy.c: changed 3rd argument to char
6496         * src/SDCC.lex (process_pragma): fixed to make disable_warning work for PIC16
6497         * src/pic16/gen.c (aopForSym, calls to pic16_aopOp): prevent unneccessary
6498           retrievals of result operand's value on assignment
6499
6500 2005-02-13 Vangelis Rokas <vrokas AT otenet.gr>
6501
6502         * device/include/pic16/string.h: modified prototype for memccpy()
6503         to memccpy(void *, void *, char, size_t)
6504         * src/pic16/gen.c (genFunction, genEndFunction): reenable if-case to
6505         check whether to omit frame pointer or not,
6506         * (genInline): convert all occurences of "\n" to LF in inline
6507         assembler blocks, this helps formatting the inline text,
6508         * (pic16_loadFSR0): modified prototype,
6509         * (genNearPointerGet, genNearPointerSet): reorganization of code,
6510         removed some 8051 legacy code,
6511         * (genPackBits): enabled handling bitfields exceeding one byte in size,
6512         * src/pic16/ralloc.c (pic16_assignRegisters): clear dynrIdx variable
6513         before allocating temporary registers in functions,
6514
6515 2005-02-11 Maarten Brock <sourceforge.brock AT dse.nl>
6516
6517         * support/regression/tests/bitvars.c: corrected the "fix"
6518
6519 2005-02-10 Maarten Brock <sourceforge.brock AT dse.nl>
6520
6521         * support/regression/tests/bitvars.c,
6522         * support/regression/tests/bitwise.c,
6523         * support/regression/tests/rotate.c: "fixed" problems on Alpha
6524
6525 2005-02-10 Raphael Neider <rneider AT web.de>
6526
6527         * src/pic16/pcode.c (assignToSameBank) : fixed cast to pointer of
6528           different size for Alpha
6529         * src/pic16/gen.c (genCmpEq) : improved compare with 0
6530
6531 2005-02-09 Raphael Neider <rneider AT web.de>
6532
6533         * src/SDCC.lex(doPragma) : save and restore warning options as well
6534           (also added new stack plus clone- and copyAndFreeSDCCERRG())
6535         * have #pragma less_pedantic set the errorlevel to WARNING
6536           (fixes #1117001)
6537         * (cloneOptimize) : fixed wrong malloc's size
6538         * support/Util/SDCCerr.[ch] : made SDCCERRG globally accessible to
6539           facilitate correct handling of #pragma (save|restore)
6540
6541 2005-02-09 Maarten Brock <sourceforge.brock AT dse.nl>
6542
6543         * src/mcs51/gen.c: removed non-standard C nameless struct/union
6544
6545 2005-02-04 Slade Rich <slade_rich AT users.sourceforge.net>
6546
6547         * src/pic/gen.c : Fix for bugs #1080519 & #1115662.
6548
6549 2005-02-03 Maarten Brock <sourceforge.brock AT dse.nl>
6550
6551         * device/include/mcs51/c8051f120.h: added declarations for sbit port 2,3&4
6552
6553 2005-02-02 Raphael Neider <rneider AT web.de>
6554
6555         * src/SDCCast.c (processParms): disabled W_NONRENT_ARGS for pic16 port
6556         * src/pic16/gen.c (aopForSym): reenabled special case for function pointers
6557         * (pic16_storeForReturn): fixed to allow returning function pointers
6558         * (genPackBits): improved accessing full bytes, implemented for GPOINTERs
6559         * device/include/pic16/{stddef.h,stdbool.h}: added
6560
6561 2005-02-02 Maarten Brock <sourceforge.brock AT dse.nl>
6562
6563         * device/include/mcs51/c8051f040.h: added define CPT2_PAGE
6564
6565 2005-02-01 Slade Rich <slade_rich AT users.sourceforge.net>
6566
6567         * src/pic16/pic16.dsp : Added file graph.c to make it compile under windows
6568         * src/pic16/Makefile.bcc : Do not use this file but added file graph.c as it
6569          appeared to be required
6570
6571 2005-01-31 Borut Razem <borut.razem AT siol.net>
6572
6573         * support/scripts/sdcc.nsi: added include/asm/ds390, include/asm/mcs51,
6574           include/mcs51 and include/z80 directories to the package
6575
6576 2005-01-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6577
6578         * src/hc08/gen.c (genFunction): fixed bug #1112752
6579
6580 2005-01-30 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6581
6582         * src/mcs51/peeph.def: adapted peephole 258.x to changed gen.c (genAnd)
6583
6584 2005-01-29 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6585
6586         * src/mcs51/gen.c (genAnd): accessing LSB/MSB by rotating acc
6587
6588 2005-01-29 Maarten Brock <sourceforge.brock AT dse.nl>
6589
6590         * device/include/Makefile.in: create/copy mcs51 and z80 include subdirs
6591
6592 2005-01-27 Maarten Brock <sourceforge.brock AT dse.nl>
6593
6594         * device/include/c8051fxxx.h: removed these 6 files
6595         * device/include/mcs51/c8051fxxx.h: added these 11 new files
6596
6597 2005-01-26 Raphael Neider <rneider AT web.de>
6598
6599         * src/pic16/gen.c (genAssign): fixed assignment from longs
6600           in codespace (were cut to three bytes)
6601         * (genDummyRead): implemented (except for CODESPACE...),
6602           fixed bug #1108575
6603         * src/pic16/glue.c (emitStatistics): beautified
6604         * device/lib/pic16/libm/Makefile: added include path
6605
6606 2005-01-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6607
6608         * src/z80/gen.c (aopPut): fixed bug #1103902
6609
6610 2005-01-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6611
6612         * device/lib/expf.c: fixed bug #1095792
6613
6614 2005-01-24 Vangelis Rokas <vrokas AT otenet.gr>
6615
6616         * device/lib/pic16/libm: added Math library sources
6617
6618 2005-01-24 Raphael Neider <rneider AT web.de>
6619
6620         * src/pic16/pcode.h: added second memory operand to pCodeOpReg
6621           to enable upcast to pCodeOpReg2 (there is no type tag to
6622           differenciate the two and pic16_popGet2p cast into PCOR2)
6623         * src/pic16/main.c (_process_pragma): fixed another malloc bug
6624           (sizeof(sectNames) changed to sizeof(sectName))
6625           Both patches fix segfaults under MinGW.
6626
6627 2005-01-23 Raphael Neider <rneider AT web.de>
6628
6629         * src/pic16/{device.c,pcode.c}: s/free/Safe_free/g for
6630           Safe_[mc]?alloc()'ed variables
6631         * src/pic16/gen.c (pic16_aopOp,pic16_popGet): added handling
6632           of (byte sized) temporaries (assign them to WREG for now)
6633         * src/pic16/main.c (_process_pragma): fixed nasty malloc bug
6634           (used sizeof(set *sectSyms) instead of sizeof(struct sectSym)),
6635           this might fix SIGSEGVs on MinGW...
6636         * src/SDCCopt.c (killDeadCode): restored original behaviour
6637           (volatile operands might get thrown away though)
6638
6639 2005-01-23 Vangelis Rokas <vrokas AT otenet.gr>
6640
6641         * src/pic16/gen.c: fixed bug #1106975,
6642         * src/pic16/gen.c: fixed possible bug #1102572, now during TOS
6643         pointer update, INTCON is saved, global interrupts are disabled and
6644         restored after updateing TOS.
6645         * src/SDCC.y, src/SDCC.lex, src/SDCCsymt.c, src/SDCCsymt.h:
6646         * added function attribute 'shadowregs' to take advantage of shadow
6647         registers,
6648         * added function attribute 'wparam' as an alternative to the wparam
6649         pragma,
6650         * support/Utils/SDCCerr.[ch]: added error E_SHADOWREGS_NO_ISR when
6651         user declares a non-ISR function as 'shadowregs',
6652         * doc/sdccman.lyx: updated to reflect recent changes of pic16 port
6653
6654 2005-01-22 Vangelis Rokas <vrokas AT otenet.gr>
6655
6656         * .version: bumped version number to 2.4.8
6657         * device/lib/pic16/pics.all: list of PIC18F devices supported by
6658         pic16 port,
6659         * device/lib/pic16/libio/i2c/: I2C module support library,
6660         * device/include/pic16/i2c.h: I2C support library header,
6661         * device/lib/pic16/libc/stdio/: standard IO support sources,
6662         * (printf_small.c): printf_small() source, supports float print,
6663         * (printf_tiny.c): printf_tiny() source, does not support floats,
6664         * device/lib/pic16/Makefile.common.in: added OPT_FLAGS macro to
6665         enable global optimizations for entire library source, other
6666         Makefiles in the source tree are also modified to reflect this,
6667         * device/lib/pic16/libc/stdlib/putchar.c (putchar): dummy putchar()
6668         function,
6669         * doc/sdccman.lyx: updated to reflect new changes,
6670         * src/pic16/gen.c (aopForSym): don't handle sym->iaccess in
6671         sym->onStack if-case,
6672         * src/pic16/main.c (_pic16_keywords): commented out keywords bit,
6673         sbit, idata, _idata, xdata, _xdata,
6674         * added pragma library, to link an external library, (see doc),
6675         * removed command line options, --pomit-config-words, --pomit-ivt,
6676         --pleave-reset-vector,
6677         * (pic16_finaliseOptions): when define macro SDCC_MODEL_{SMALL/LARGE}
6678         when calling assembler to reflect memory model used, also define
6679         macro STACK_MODEL_{SMALL/LARGE} when compiling and assembling to
6680         reflect stack model used,
6681         * src/pic16/ralloc.c (pic16_allocDirReg): when operand is allocated
6682         on stack return NULL,
6683
6684 2005-01-22 Daniel Winkler <post AT danielwinkler.de>
6685
6686         * src/SDCCopt.c (killDeadCode): do not throw iCodes away if one
6687           of the operands is volatile. Fixes #1020220
6688
6689 2005-01-22 Daniel Winkler <post AT danielwinkler.de>
6690
6691         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): reenabled optimization
6692         * (OptimizeRegUsage): make sure that there is really no other flow where
6693           the first pCode is used
6694
6695 2005-01-22 Raphael Neider <rneider AT web.de>
6696
6697         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): disabled optimization
6698           to fix #1106967 (pCode->seq are not set up correctly)
6699
6700 2005-01-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6701
6702         * src/SDCCglue.c (glue): make sure code area is declared before the
6703         static initialization area.
6704
6705 2005-01-21 Raphael Neider <rneider AT web.de>
6706
6707         * device/lib/Makefile.in: fixed test for pic16 install dir
6708         * device/lib/pic16/*/Makefile*: modified compile flags to enable
6709           optimizations
6710         * doc/sdccman.lyx: updated banksel optimization, removed --flr-support and
6711           added --optimize-goto compiler switch and pragma wparam documentation
6712         * src/pic16/pcode.c (pic16_OptimizeBanksel): removed statistics dump
6713         * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): fixed copying of WREG, PRODL
6714           and PRODH closing bug #1071770 (peephole optimizer)
6715
6716 2005-01-19 Raphael Neider <rneider AT web.de>
6717
6718         * src/SDCCglobl.h: ensure that PATH_MAX >= 2048 to guarantee
6719           cmdLine buffers (used when calling sdcpp...) are large enough
6720           (MAX_PATH=256 truncates arguments leading to system halts when
6721           used in MinGW...)
6722         * src/pic16/gen.c (pic16_sameRegs): relaxed size criterion
6723         * (genUminus): rewritten to for efficiency
6724         * (genNearPointer[GS]et): enforce reloading of FSR0 (was still
6725           used uninitialized in some cases)
6726         * (genCast): upcasting a 16bit int to a 24bit GPOINTER may not
6727           copy the third byte from the int -- now assumes 0x80 (data memory)
6728         * src/pic16/genarith.c (pic16_genPlus): fixed bug when swapping
6729           operands (genAddLit expects the iCode's operands to swapped as
6730           well), fixed leftover bytes (crashed for short left operands)
6731         * (pic16_genMinusDec): performance improvements, removed false
6732           PIC14 emitSKPNCs
6733         * (pic16_genMinus): fixed to cope with differently sized operands
6734         * src/pic16/glue.c (pic16_glue): added new banksel optimization
6735           for --obanksel > 1
6736         * src/pic16/pcode.c: implemented (first phase of) banksel optimization
6737         * src/pic16/graph.[ch]: implementation of directed graphs, used by
6738           new banksel optimization
6739         * src/pic16/pcoderegs.c (pCodeRegMapLiveRangesInFlow): prevented
6740           analysis for temporary registers (segfaults...)
6741         * src/pic16/peeph.def: added rule
6742
6743 2005-01-18 Vangelis Rokas <vrokas AT otenet.gr>
6744
6745         * device/lib/pic16/libc/stdlib/x_ftoa.c: it defines x_ftoa function
6746         which converts a float number to its ASCII representation
6747         * device/lib/pic16/libc/utils/cnvfrac.S,cnvint.S: support
6748         functions to convert the fractional and integer part of a float to ASCII,
6749         * device/lib/pic16/libc/stdlib/(calloc.c,free.c, malloc.c,
6750         realloc.c): added _MALLOC_SPEC to explicit place variables in data
6751         ram
6752         * device/include/asm/pic16/features.h: added _CODE, _DATA, _AUTOMEM,
6753         _STATMEM macros,
6754         * device/include/pic16/adc.h: added GPL info,
6755         * src/pic16/gen.c (genIfxpCOpJump): perform an genIfxJump but using
6756         a pCodeOp as tested operand,
6757         * (genNearPointerGet): optimized bit testing, does not use
6758         intermediate register for bit value, test directly instead with
6759         BTFSS, BTFSC, works only for single bits,
6760         * (genpic16Code): dump the name of the iCode in the asm,
6761         * src/pic16/ralloc.c (decodeOp): removed static declaration and
6762         renamed to pic16_decodeOp,
6763         * (serialRegAssign): do not allocate a temporary register for iCode
6764         sequences that test a single bit for 1/0
6765
6766 2005-01-12 Vangelis Rokas <vrokas AT otenet.gr>
6767
6768         * src/pic16/pcode.[ch]: introduced pic16_stackpnt_*,
6769         pic16_framepnt_*, pic16_stack_*, pic1_frame_* pointer variables to
6770         access stack and frame pointers. They are initially assigned to
6771         point at pic16_pc_fsr1[lh] and pic16_pc_fsr2[lh] variables and other
6772         accessing SFRs. Updated all occurences of modification of stack or
6773         frame pointer in gen.c and pcode.c,
6774         * src/pic16/ralloc.c (serialRegAssign): fixed two bugs with
6775         assigning of a literal value to pointers,
6776         * src/pic16/main.c (pic16_finiliseOptions): set pre-processor define
6777         flag STACK_MODEL_SMALL or STACK_MODEL_LARGE according to the model
6778         selected
6779
6780 2005-01-11 Vangelis Rokas <vrokas AT otenet.gr>
6781
6782         * doc/sdccman.lyx: update documentation about stack pragma, added
6783         some info for stack memory models
6784
6785 2005-01-08 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6786
6787         * src/pic16/gen.c (DEBUGpc): MSVC 6 does not support macro variable arguments
6788
6789 2005-01-08 Raphael Neider <rneider AT web.de>
6790
6791         * src/pic16/device.c (pic16_dump_usection): changed naming scheme for
6792           udata sections to fix bug #1097823
6793
6794 2005-01-05 Raphael Neider <rneider AT web.de>
6795
6796         * src/pic16/gen.c (genGenericShift): added handling of differently
6797           sized left operand and result
6798
6799 2005-01-04 Raphael Neider <rneider AT web.de>
6800
6801         * src/pic16/gen.c (genIfxJump): fixed inverted skips on CARRY
6802         * (genIfx): fixed (?) read from uninitialized SPIL_LOC (now assumes CARRY
6803           to hold the condition bit)
6804         * added new version of genCmp (old code available via #define)
6805         * added new version of genShiftLeft/genShiftRight in a generic
6806           way, now supports shifting by negative values
6807         * (genLeftShiftLiteral, genRightShiftLiteral): use absolute value of
6808           shiftCount (expected by genGenericShift)
6809         * src/pic16/genarith.c (genPlus): added code for adding CARRY+literal
6810         * src/pic16/pcode.c (pic16_OptimizeJumps): removed annoying statistics
6811           dump
6812         * (pic16_newpCodeOpLit): changed to cast to unsigned char (as e.g. -32766
6813           is an invalid literal too...)
6814
6815 2005-01-04 Vangelis Rokas <vrokas AT otenet.gr>
6816
6817         * src/pic16/gen.c (aopForSym, genEndFunction): applied some fixes
6818         from Raphael Neider,
6819         * src/pic16/pcode.c (pic16_newpCodeOpLit): removed casting to char
6820         for 8-bit literals. This fixes some literal operands which are sign
6821         extended to 16-bits ints when instruction needs only 8-bits.
6822
6823 2004-12-31 Paul Stoffregen <paul AT pjrc.com>
6824
6825         * device/lib/logf.c: added mcs51 assembly version
6826         * device/lib/expf.c: added mcs51 assembly version
6827         * device/lib/_logexpf.c: new shared asm code for expf and logf
6828         * device/include/math.h: add defines for assembly math library
6829         * device/lib/Makefile.in: build new _logexpf.c
6830         * device/lib/libfloat.lib: use new _logexpf.c
6831
6832 2004-12-29 Slade Rich <slade_rich AT users.sourceforge.net>
6833
6834         * src/pic/device.c
6835         * src/pic/pcode.c : adjusted internal stack and pre-allocated registers for
6836           device types which have less than 0x7f registers.
6837
6838 2004-12-29 Slade Rich <slade_rich AT users.sourceforge.net>
6839
6840         * src/pic/genarith.c : Fixed problem with subtraction where the result would not be updated when borrowing.
6841
6842 2004-12-28 Paul Stoffregen <paul AT pjrc.com>
6843
6844         * device/lib/printf_fast.c: only build on supported arch.
6845         * device/lib/printf_tiny.c: only build on supported arch.
6846         * device/lib/printf_fast_f.c: only build if asm float lib
6847         * device/lib/_fsget1arg.c: only build if asm float lib
6848         * device/lib/_fsget2args.c: only build if asm float lib
6849         * device/lib/_fsnormalize.c: only build if asm float lib
6850         * device/lib/_fsreturnval.c: only build if asm float lib
6851         * device/lib/_fsrshift.c: only build if asm float lib
6852         * device/lib/_fsswapargs.c: only build if asm float lib
6853         * device/include/stdio.h: don't provide print_fast,
6854           print_fast_f, print_tiny prototypes if --xstack used
6855
6856 2004-12-28 Maarten Brock <sourceforge.brock AT dse.nl>
6857
6858         * device/lib/sincosf.c (sincosf): don't invert bit/bool by ~
6859         * support/regression/ports/mcs51-stack-auto/spec.mk: added new _fs.. files
6860           to the SOURCES
6861
6862 2004-12-28 Paul Stoffregen <paul AT pjrc.com>
6863
6864         * device/lib/printf_fast_f.c: same as printf_fast, but
6865           with floating point enabled
6866         * device/lib/printf_fast.c: minor tweaks
6867         * device/include/stdio.h: add printf_fast_f
6868
6869 2004-12-27 Paul Stoffregen <paul AT pjrc.com>
6870
6871         * src/SDCCmain.c: make --float-reent default for mcs51
6872         * device/lib/_fsadd.c: added mcs51 assembly version
6873         * device/lib/_fssub.c: added mcs51 assembly version
6874         * device/lib/_fsmul.c: added mcs51 assembly version
6875         * device/lib/_fsdiv.c: added mcs51 assembly version
6876         * device/lib/_fseq.c: added mcs51 assembly version
6877         * device/lib/_fsneq.c: added mcs51 assembly version
6878         * device/lib/_fsgt.c: added mcs51 assembly version
6879         * device/lib/_fslt.c: added mcs51 assembly version
6880         * device/lib/_fscmp.c: shared code for fseq,fsgt,fslt,fsneq
6881         * device/lib/Makefile.in: add _fscmp to build
6882         * device/lib/libfloat.lib: add _fscmp to build
6883
6884 2004-12-27 Paul Stoffregen <paul AT pjrc.com>
6885
6886         * device/lib/_fs2slong.c: added mcs51 assembly version
6887         * device/lib/_fs2sint.c: added mcs51 assembly version
6888         * device/lib/_fs2schar.c: added mcs51 assembly version
6889         * device/lib/_fs2ulong.c: added mcs51 assembly version
6890         * device/lib/_fs2uint.c: added mcs51 assembly version
6891         * device/lib/_fs2uchar.c: added mcs51 assembly version
6892         * device/lib/_slong2fs.c: added mcs51 assembly version
6893         * device/lib/_sint2fs.c: added mcs51 assembly version
6894         * device/lib/_schar2fs.c: added mcs51 assembly version
6895         * device/lib/_ulong2fs.c: added mcs51 assembly version
6896         * device/lib/_uint2fs.c: added mcs51 assembly version
6897         * device/lib/_uchar2fs.c: added mcs51 assembly version
6898         * device/include/float.h: added #define to select asm vs c
6899
6900 2004-12-26 Paul Stoffregen <paul AT pjrc.com>
6901
6902         * device/lib/printf_fast.c: improvements to float output
6903         * device/include/float.h: add defines for assembly float library
6904         * device/lib/_fsget1arg.c: receive 1 float arg
6905         * device/lib/_fsget2args.c: receive 2 float args (reentrant)
6906         * device/lib/_fsnormalize.c: normalize a float
6907         * device/lib/_fsreturnval.c: return float, various helper routines
6908         * device/lib/_fsrshift.c: right shift a float's mantissa
6909         * device/lib/_fsswapargs.c: swap 2 floats
6910         * device/lib/Makefile.in: build these 6 new files for mcs51
6911         * device/lib/libfloat.lib: add these 6 files to the library
6912
6913 2004-12-26 Borut Razem <borut.razem AT siol.net>
6914
6915         * sim/ucsim/avr.src/arith_inst.cc: fixed bug #1088372- savr is not
6916           built by gcc 3.4.2
6917
6918 2004-12-25 Paul Stoffregen <paul AT pjrc.com>
6919
6920         * device/lib/printf_tiny.c: printf for mcs51 in only 267 bytes,
6921           and fully reentrant and register bank neutral.
6922         * device/lib/printf_fast.c: added float (not enabled by default),
6923           added compact/slower integer (also not enabled by default),
6924           improved size/speed of fast integer code, other minor changes
6925         * device/include/stdio.h, device/lib/Makefile.in,
6926           device/lib/libsdcc.lib: integrate printf_tiny into mcs51 build
6927
6928 2004-12-24 Maarten Brock <sourceforge.brock AT dse.nl>
6929
6930         * src/pic16/pcode.c: declaring variables other than at the start of a
6931           block is not supported in C by VC6.
6932
6933 2004-12-22 Vangelis Rokas <vrokas AT otenet.gr>
6934
6935         * applied a previous patch from Raphael Neider that wasn't included
6936         in the previous commits, which fixes infinite loops within jumptable
6937         improvements,
6938         * made some fixes that previous patches introduced
6939
6940 2004-12-21 Vangelis Rokas <vrokas AT otenet.gr>
6941
6942         * src/pic16/gen.c (pic16_aopGet): applied fix from Raphael Neider
6943         that fixes an issue with AOP_PCODE asmop's offset,
6944         * (pic16_popCopyReg): update instance field too,
6945         * (mov2w): modified to pic16_mov2w because it conflicts with mov2w
6946         function of pic port,
6947         * (genCmp, genAnd, genAssign),
6948         * src/pic16/genarith.c (genAddLit): some fixes from Raphael Neider,
6949
6950 2004-12-20 Vangelis Rokas <vrokas AT otenet.gr>
6951
6952         * src/SDCCast.c (gatherAutoInit): allow pic16 to emit static
6953         variables initial values to idata section,
6954         * src/SDCCicode.c (geniCodeCall): patch from ### to fix unreferenced
6955         variables in some functions. This utilizes parmBytes field of iCode
6956         structure to hold the offset of the variable in stack. (might be
6957         able to use the stack field too?)
6958         * applied patch from Raphael Neider # ### , # ###
6959         * src/pic16/glue.c (pic16emitRegularMap): fix to print static
6960         variable initial values in idata section,
6961         * src/pic16/ralloc.c (pic16_allocDirReg): don't allocate register
6962         for static variables with initial value
6963         * src/device/lib/pic16/libsdcc/float/ulong2fs.c (__ulong2fs):
6964         applied fix in while loop from Raphael Neider.
6965
6966 2004-12-19 Maarten Brock <sourceforge.brock AT dse.nl>
6967
6968         * src/ds390/gen.c (genCpl): fixed bit=~(char/bit) bugs, added warning
6969         * src/ds390/main.c (_ds390_regparm): don't pass bit params in registers
6970         * src/ds390/ralloc.c (serialRegAssign): spill bits
6971         * src/mcs51/gen.c (genCpl): fixed bit=~(char) bugs, added warning
6972         * support/Util/SDCCerr.c,
6973         * support/Util/SDCCerr.h: added warning W_COMPLEMENT for using bit=~(bit)
6974         * support/regression/tests/bitvars.c: added tests for bitwise complement(~)
6975         * support/regression/tests/bitwise.c: added test for bitwise complement(~)
6976
6977 2004-12-09 Maarten Brock <sourceforge.brock AT dse.nl>
6978
6979         * device/include/sdcc-lib.h: inserted LGPL, added includes
6980           asm/ds390/features.h and asm/mcs51/features.h
6981         * device/include/asm/default/features.h,
6982         * device/include/asm/gbz80/features.h,
6983         * device/include/asm/z80/features.h: added empty _AUTOMEM
6984           and _STATMEM
6985         * device/include/asm/ds390/features.h,
6986         * device/include/asm/mcs51/features.h: added files with defines for
6987           _AUTOMEM and _STATMEM indicating automatic and static storage class
6988         * device/lib/printf_large.c (_print_format): optimized & used _AUTOMEM
6989         * doc/sdccman.lyx: version 2.4.7, updated xstack documentation
6990         * src/SDCCicode.c (geniCodeCast),
6991         * src/SDCCsymt.c (compareType): allow cast of data-ptr to idata-ptr
6992         * src/SDCCloop.c (loopInduction): removed unused variable lr
6993         * src/SDCCopt.c (convilong, convertToFcall): moved "easy special case"
6994           to convertToFcall to include char modulo (RFE 1065037), added check
6995           if left operand is unsigned and use abs of literal value
6996         * src/SDCCpeeph.c (setFromConditionArgs): removed double quotes option
6997           as it doesn't work after conversion from peephole.def to peephole.rul
6998         * src/mcs51/gen.c (toBoolean): added check for size,
6999           (genModOneByte): optimized code for signed char modulo a literal
7000           power of 2 (thanks to Hubert Sack),
7001           (genRRC): removed unnecessary "clr c",
7002           (genRLC): replaced "add a,acc" with cheaper "rlc a"
7003         * src/mcs51/peeph.def: renamed 115 to 115.a, added rule 115.b: another
7004           jump optimization,
7005           swapped rules 256.c and 256.d,
7006           extended 256.d by using new multiple checks (thanks Erik),
7007           added rules 256.e and 256.f,
7008           updated rule 261.a and 261.b to new generated code
7009         * support/regression/tests/muldiv.c: added test div/mod by a power of 2
7010
7011 2004-12-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7012
7013         * src/SDCCloop.c (basicInduction, loopInduction): fixed several
7014           induction related bugs, including first part of bug #1074377
7015
7016 2004-12-05 Vangelis Rokas <vrokas AT otenet.gr>
7017
7018         * applied patch from bug-report #1076292,
7019         * applied patches for genAnd and Goto-optimizations for Raphael
7020         Neider,
7021         * src/SDCCicode.c (printOperand): fixed !REGA source to compile and
7022         dump a less iCode information,
7023         * src/pic16/device.h (pic16_options_t): added field debgen,
7024         * src/pic16/gen.h: added macros DUMP_FUNCTION_ENTRY,
7025         DUMP_FUNCTION_EXIT, FENTRY, FENTRY2,
7026         * src/pic16/gen.c (my_powof2): renamed to pic16_my_powof2 and made
7027         puclic,
7028         * (various functions): added macros FENTRY and FENTRY2 to functions,
7029         to emit function prologue,
7030         * (various functions): fixed indentation,
7031         * (genNearPointerGet): fixed loading of FSR0,
7032         * (genPackBits): applied patch from Raphael Neider to fix updating
7033         of FSR0 and touching only the modified bits,
7034         * src/pic16/genarith.c (various functions): added macros FENTRY to
7035         emit function prologue in comments,
7036         * src/pic16/pcode.h: added functions debugf2, debugf3,
7037         * src/pic16/ralloc.c: partial fix for packForPush caused
7038         segmentation fault,
7039
7040 2004-12-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7041
7042         * src/mcs51/peeph.def: added 261.a,b (16 bit rotate) by Stas Sergeev
7043           <stsp AT users.sourceforge.net> with reversed byte order
7044         * support/regression/tests/rotate.c: added (ds390 skips some tests)
7045
7046 2004-12-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7047
7048         * src/z80/gen.c (genLeftShift, genRightShift): fixed second part of
7049           bug #1074377
7050         * src/hc08/gen.c (genrshFour, shiftRLong, shiftLLong),
7051         * src/mcs51/gen.c (shiftLLong): Fixed some shifting bugs Frieder found
7052
7053 2004-12-02 Slade Rich <slade_rich AT users.sourceforge.net>
7054
7055         * src/pic/pcode.c : fixed a problem where banksel was not being inserted.
7056
7057 2004-12-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7058
7059         * src/SDCCpeeph.c (callFuncByName): support combined peephole rule
7060           conditions,
7061           (setFromConditionArgs): friendly operand parser for peephole rules,
7062           (operandBaseName, operandsNotRelated): new peephole condition
7063           "operandsNotRelated" -- similar to "operandsNotSame", but takes
7064           architecture specific register naming into account, handles n-way
7065           comparisons, and supports quoted literals
7066         * src/mcs51/peeph.def: restored rule 177.d with an extra condition
7067
7068 2004-12-02 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7069
7070         * src/mcs51/peeph.def: fixed bug #1076940
7071
7072 2004-12-02 Slade Rich <slade_rich AT users.sourceforge.net>
7073
7074         * device/include/pic/pic16f877.h : added an include file for the PIC16F877 device.
7075
7076 2004-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7077
7078         Adding support for replacing ljmps with sjmps in jumptables
7079         generated for switch statements. For now you need to set the
7080         environment variable SDCC_SJMP_JUMPTABLE to enable this.
7081         Now 4 algorithms for mcs51 jumptable generation are used:
7082         ljmp or sjmp jumptables for up to 16 cases, stack-pushing target
7083         addresses loaded pc-relative for up to 112 cases and stack-pushing
7084         target addresses loaded with offset from dptr for up to 256 cases.
7085
7086         * src/SDCCpeeph.c: added peephole conditional labelJTInRange
7087         * src/mcs51/main.c: adapted constants for switch table generation
7088         * src/mcs51/peeph.def: added 260.x for replacing ljmp with sjmp
7089
7090 2004-11-26 Maarten Brock <sourceforge.brock AT dse.nl>
7091
7092         * device/lib/printf_large.c (_print_format): fixed bug 1073386
7093         * support/regression/tests/bug1057979.c: added test for bug 1073386
7094
7095 2004-11-25 Vangelis Rokas <vrokas AT otenet.gr>
7096
7097         * src/pic16/pcode.c: fixed bug which may produce error in non-GNU
7098         compilers
7099
7100 2004-11-25 Vangelis Rokas <vrokas AT otenet.gr>
7101
7102         * src/pic16/device.h,
7103         * src/pic16/genarith.c,
7104         * src/pic16/glue.c,
7105         * src/pic16/main.c,
7106         * src/pic16/pcode.c: applied patches #1068154 and #1070213
7107
7108 2004-11-24 Vangelis Rokas <vrokas AT otenet.gr>
7109
7110         Large cummulative patch for pic16 port.
7111         * device/lib/pic16/gstack.h: NEW, user can specify its own handler
7112         to call when a stack overflow occurs,
7113         * (malloc.h): added CVS Id tag,
7114         * (pic18f{242,252,442,452}.h): added T0CONbits structure and
7115         variable,
7116         * added libc directory. The current version of LibC contains string
7117         functions, ctype functions and macros and some functions of the
7118         stdlib set (like malloc/free/atof/atoi etc...). All functions are to
7119         be extensively tested in the future. Standard disclaimer here.
7120         Library is not automatically build yet. But one can build it by
7121         invoking 'make' inside the libc directory.
7122         * added ADC library under libio. Preliminary version yet.
7123
7124         * src/pic16/gen.h: added emitTOGC macro, to toggle Carry flag,
7125         * src/pic16/gen.c (aopForRemat): asmop size is filled by
7126         aopForRemat() now and not by pic16_aopOp(),
7127         * (pic16_popGetTempReg): removed warning messgae when allocating
7128         temporary registers, its a buggy feature and will be removed,
7129         * (pic16_popGet): set register instance field in AOP_CRY,
7130         * (pic16_outBitC): fixed for results in size greater than 1,
7131         * (genUminusFloat): fixed for pic16, ported code from mcs51,
7132         * (pic16_storeForReturn): optimized return of 0,
7133         * (genCmp): experimental code for new genCmp which uses PIC18's
7134         special compare&skip instructions. Initial tests fail some times
7135         with variables grater than 1 byte in size, so new code is disabled,
7136         * (genUnpackBits, genPackBits): more optimizations in reading/writing,
7137         a single bit,
7138         * (genCast): began a fix to optimize the casting of a bit to another
7139         bit, now assigning a bitfield to another bitfield will fail, sorry,
7140         * src/pic16/main.c: disabled the use of lr-support feature,
7141         * src/pic16/pcode.h: renamed PCASMDIR to PCAD,
7142         * added some function prototypes, added function _debugf prototype,
7143         * src/pic16/pcode.c: (pic16_get_op): fixed emitting operands of register
7144         bits with offset (case PO_GPR_BIT),
7145         * (genericPrint): don't emit INFO pcode when --pcode-verbose not in
7146         command line,
7147         * (isBankInstruction): modified to return 0 for no banking instruction,
7148         and 1 for banking instruction,
7149         * (pic16_isPCinFlow): check for PCAD (assembler directives) too,
7150         caused stop processing pCodes after a inline assembly block,
7151         * (pic16_popCopyGPR2Bit): updated to match bitfields with offset,
7152         * src/pic16/pcoderegs.c: fixed a bug with eliminating some temporary
7153         registers when it shouldn't,
7154         * src/pic16/ralloc.c (allocReg): add preliminary support for
7155         supporting a limited set of temporary registers,
7156
7157 2004-11-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7158
7159         * src/hc08/gen.c (genAssign, genPointerGetSetOfs, genDataPointerGet,
7160           genDataPointerSet): ensure assignments always copy in MSB to LSB
7161           order,
7162           (loadRegFromAop): recognize CLRH optimization,
7163           (genFunction): optimize RECEIVE iCodes in reentrant functions
7164
7165 2004-11-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7166
7167         * src/SDCCmain.c (parseCmdLine, optionsTable[]): fixed bug with
7168           --out-fmt-s19 turning into --out-fmt-elf if s19 was already
7169           selected.
7170         * src/SDCCmain.c (linkEdit): don't define SSEG for HC08
7171         * src/hc08/main.c (_hc08_setDefaultOptions): default xdata to be
7172           contiguous with data
7173
7174 2004-11-19 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7175
7176         * device/lib/_gptrget.c (_gptrget),
7177         * device/lib/_gptrgetc.c (_gptrgetc),
7178         * device/lib/_gptrput.c (_gptrput): _naked allows to use ret
7179           instead of sjmp to ret
7180         * src/mcs51/peeph.def: added peepholes 3.d-g and 177.g,h provided
7181           by Hubert Sack <hsack2002 AT arcor.de> in RFE #1067986, thanks
7182
7183 2004-11-18 Maarten Brock <sourceforge.brock AT dse.nl>
7184
7185         * .version: bumped version to 2.4.7
7186         * device/lib/_gptrget.c (_gptrget): is now _naked
7187         * device/lib/_gptrgetc.c (_gptrgetc): is now _naked
7188         * device/lib/_gptrput.c (_gptrput): is now _naked
7189         * src/SDCCast.c (createBlock): removed ridiculous self-assignment,
7190           (createFunction): fixed xstack
7191         * src/SDCCglue.c (emitMaps): set allocation required for bit area
7192         * src/SDCCicode.c (geniCodeCast): don't change SPEC_OCLS for literal
7193           or bit either,
7194           (geniCodeCritical): store original interrupt state in an iTemp bit
7195           var unless stack-auto
7196         * src/SDCCicode.h: added CRITICAL and ENDCRITICAL to SKIP_IC2
7197         * src/SDCCmain.c (setIncludePath): added include/target to search path
7198         * src/SDCCmem.c (allocParms): store bit vars in bit space, not overlay
7199         * src/SDCCsymt.c (checkFunction): don't check regbank for isr's against
7200           prototype,
7201           (processFuncArgs): put bit vars in bit area
7202         * src/mcs51/gen.c (saveRegisters, unsaveRegisters, genXpush, saveRBank,
7203           unsaveRBank): fixed xstack,
7204           (genFunction): bugfix: replaced (global!) reentrant with fReentrant,
7205           (genFunction, genEndFunction): fixed xstack,
7206           (genAssign): optimization don't walk backwards through mem
7207         * src/mcs51/main.c (_mcs51_regparm): don't pass bit params in registers
7208         * src/mcs51/ralloc.c (createStackSpil): spill bits to bit area
7209         * support/regression/Makefile: also make library (for stack-auto) when
7210           making "all" and added "test-mcs51-xstack-auto"
7211         * support/regression/fwk/lib/testfwk.c: added T2_isr prototype for mcs51
7212         * support/regression/ports/mcs51/T2_isr.c: added this file as a stub
7213         * support/regression/ports/mcs51/fwk.lib: added to link T2_isr stub
7214         * support/regression/ports/mcs51/spec.mk: added rules for fwk.lib
7215         * support/regression/ports/mcs51-stack-auto/spec.mk: replaced
7216           make-library by MAKE_LIBRARY
7217         * support/regression/ports/mcs51-xstack-auto/spec.mk: file added to run
7218           regression tests for xstack
7219         * support/regression/tests/bitvars.c: test for bit vars (bug 938782)
7220         * support/regression/tests/critical.c: test for critical on mcs51
7221
7222 2004-11-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7223
7224         * support/regression/ports/ucz80/spec.mk: use include and lib files from
7225           built version of sdcc instead of installed version
7226
7227 2004-11-14 Maarten Brock <sourceforge.brock AT dse.nl>
7228
7229         * src/mcs51/gen.c (toBoolean): fixed bug 1065458
7230         * device/lib/Makefile.in: z80 uses printf_large.c, sprintf.c and
7231           vprintf.c now
7232         * device/lib/printf_large.c (calculate_digit): fixed bug 1057979
7233         * device/lib/z80/Makefile: don't use printf.c as it fails bug 1057979
7234           WARNING: remove device/lib/build/z80/printf.o by hand when
7235           updating from previous build!
7236         * device/lib/z80/printf.c: updated comment
7237         * support/regression/tests/bug1057979.c: test all ports now
7238         * support/regression/tests/bug1065458.c: file added
7239
7240 2004-11-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7241
7242         * src/z80/gen.c (genFunction, genEndFunction): avoided generating
7243           *_start and *_end symbols for static functions
7244
7245 2004-11-11 Maarten Brock <sourceforge.brock AT dse.nl>
7246
7247         * src/SDCCmain.c (linkEdit): don't suppress crt0 if --nostdlib is used
7248           and search crt0.o in all library paths,
7249           (setIncludePath): proper handling of --nostdinc,
7250           (setLibPath): proper handling of --nostdlib
7251         * support/regression/Makefile,
7252         * support/regression/ports/ds390/spec.mk,
7253         * support/regression/ports/gbz80/spec.mk,
7254         * support/regression/ports/hc08/spec.mk,
7255         * support/regression/ports/mcs51/spec.mk,
7256         * support/regression/ports/mcs51-large/spec.mk,
7257         * support/regression/ports/mcs51-stack-auto/spec.mk,
7258         * support/regression/ports/z80/spec.mk: use include and lib files from
7259           built version of sdcc instead of installed version
7260         * doc/sdccman.lyx: fixed typo in --nostdinc
7261
7262 2004-11-10 Slade Rich <slade_rich AT users.sourceforge.net>
7263
7264         * src/pic/pcode.c,
7265         * src/pic/device.c,
7266         * src/pic/ralloc.c,
7267         * src/pic/gen.c : added support to generate code for struct bit fields.
7268
7269 2004-11-06 Maarten Brock <sourceforge.brock AT dse.nl>
7270
7271         * as/xa51/xa_version.h,
7272         * device/include/errno.h,
7273         * device/include/regc515c.h,
7274         * device/lib/_itoa.c,
7275         * device/lib/_ltoa.c,
7276         * device/lib/ser_ir_cts_rts.c,
7277         * sim/ucsim/xa.src/glob.cc,
7278         * sim/ucsim/xa.src/inst_gen.cc,
7279         * sim/ucsim/xa.src/xa_bit.cc,
7280         * sim/ucsim/xa.src/xa_sfr.cc,
7281         * sim/ucsim/z80.src/inst_dd.cc,
7282         * sim/ucsim/z80.src/inst_fdcb.cc,
7283         * support/scripts/keil2sdcc.pl,
7284         * src/pic16/pic16.dsp,
7285         * src/pic16/pic16a.dsp: corrected cvs line endings
7286         * device/lib/printf_large.c: fixed bug 1057979
7287         * src/pic16/gen.c: fixed non-C standard code
7288         * src/SDCCmain.c: made --pack-iram default, added --no-pack-iram
7289         * src/SDCCglobl.h: changed pack_iram to no_pack_iram
7290         * support/regression/ports/mcs51/support.c: reload T1 asap
7291         * doc/sdccman.lyx: updated for options --pack-iram and --no-pack-iram,
7292           pdata use and clear idata startup behaviour
7293         * support/regression/tests/bug1057979.c: added
7294
7295 2004-11-04 Maarten Brock <sourceforge.brock AT dse.nl>
7296
7297         * device/examples/ds390/ow390/ad26.h,
7298         * device/examples/ds390/ow390/cnt1d.h,
7299         * device/examples/ds390/ow390/crcutil.c,
7300         * device/examples/ds390/ow390/ownet.h,
7301         * device/examples/ds390/ow390/owsesu.c,
7302         * device/examples/ds390/ow390/swt12.h,
7303         * device/examples/ds390/ow390/swtoper.c,
7304         * device/examples/ds390/ow390/temp10.h,
7305         * device/examples/ds390/ow390/thermodl.c,
7306         * device/examples/ds390/tinitalk/tinitalk.dsp,
7307         * device/examples/ds390/tinitalk/tinitalk.dsw,
7308         * device/examples/mcs51/clock/hw.h,
7309         * device/examples/mcs51/simple2/go.bat,
7310         * device/examples/serialcomm/windows/serial.h,
7311         * device/examples/xa51/dummy.c,
7312         * device/examples/xa51/hello.c,
7313         * device/include/80c51xa.h,
7314         * device/include/at89x051.h: corrected cvs line endings
7315
7316 2004-11-04 Vangelis Rokas <vrokas AT otenet.gr>
7317
7318         * src/pic16/main.c (options): added command line --gstack, to trace
7319         stack over/under flows,
7320         * added pragma 'wparam' to allow passing first byte of function
7321         parameters via WREG, syntax is #pragma wparam my_function[, func2...]
7322         * src/pic16/gen.c (pic16_testStackOverflow): function which emits a
7323         call to __gstack_test function and sets up the symbol as extern,
7324         * (pic16_pushpCodeOp, pic16_poppCodeOp, pushw, pushaop, popaopidx,
7325         * popaop): added call to pic16_testStackOverflow,
7326         * (wParamCmp, inWparamList): NEW, test existence of a symbol in
7327         wparamList list,
7328         * (genCall, genPcall): now all parameters are passed via stack
7329         except in functions that are pass to wparam pragma in which WREG is
7330         used too,
7331         * (genPcall): REENTRANT flag is checked to see if variable prototype
7332         contains reentrant keyword, don't call a non-reentrant function, via
7333         a reentrant function pointer or vice versa, functions are never
7334         passed via WREG,
7335         * (genJumpTab): applied patch from bug #1057478 by R.Neider and
7336         D.Winkler,
7337         * src/pic16/glue.c (pic16emitRegularMap): fixed bug which caused a
7338         SIGSEGV when accessing a NULL register stucture,
7339         * (pic16_printGPointerType): modified to handle UPPER modifier for
7340         function initializers, changed prototype of function to simpler one,
7341         * (pic16_printIvalFuncPtr): check to see if function is already
7342         added in externs list,
7343         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): fixed bug which
7344         optimized a move from W to SFR with a move to the same register
7345         later after a CALL,
7346         * device/lib/pic16/debug: NEW directory, contains debug features
7347         which are enabled when linking with libdebug.lib, currently command
7348         line option --gstack enables stack pointer tracing for over/under
7349         flow, corresponding sources are in debug/gstack
7350
7351 2004-10-30 Vangelis Rokas <vrokas AT otenet.gr>
7352
7353         * doc/sdccman.lyx: updated SDCC version,
7354         * (PIC16 port): update list of command line options,
7355         * src/pic16/device.h (structure pic16_options_t): added field gstack
7356         to enable stack overflow tracing on push/pops,
7357         * src/pic16/device.c (statistics structure): added statistics
7358         structure,
7359         * (pic16_dump_access, pic16_dump_usection, pic16_dump_gsection,
7360         pic16_dump_int_registers): increase statistics counters for each
7361         * variable which is encountered
7362         * (pic16_dump_usection): emit each .udata variable to its own udata
7363         section,
7364         * src/pic16/gen.c (assignResultValue, genCall, genPcall, genFunction):
7365         when macro USE_WREG_IN_FUNC_PARAMS is set to 0 pass all function
7366         parameters via stack, otherwise use old scheme,
7367         * src/pic16/glue.c (pic16_emitStatistics): dump statistics in
7368         assembler output file,
7369         * src/pic16/main.c: added command line options --gstack to enable
7370         push/pop tracing for stack overflow,
7371         * src/pic16/pcode.c (all pCodeInstruction records for PIC18F
7372         instructions): added size of each instruction,
7373         * (pic16_countInstruction): estimate size of instructions in
7374         the_pFile list, inline assembly blocks are not counted,
7375         * (pic16_FixRegisterBanking): trace previous register usage, when
7376         banksel optimizations is greater than 0, don't emit a redudant
7377         banksel directive,
7378
7379 2004-10-26 Slade Rich <slade_rich AT users.sourceforge.net>
7380
7381         * src/pic/ralloc.c : fixed inefficient code produced when compiling a complimented bit operation.
7382         * src/pic16/ralloc.c : applied same fix for pic16.
7383         * src/pic/gen.c : tidied it up a little.
7384
7385 2004-10-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7386
7387         * src/mcs51/peeph.def: disabled 259.a,b for removing redundant ret,
7388         thanks to Martin Helmling for reporting (mail on sdcc-devel 2004-10-25)
7389
7390 2004-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7391
7392         * src/SDCCast.c (reverseParms): fixed bug #1040577 (part 2)
7393
7394 2004-10-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7395
7396         * device/lib/ser_ir_cts_rts.c: integer promotion caused a call to the
7397         non-reentrant function __modsint in the interrupt function (thus
7398         corrupting math operations during serial I/O)
7399         * device/lib/ser_ir.c: as above, changed buffersize
7400         * src/mcs51/peeph.def: added 259.a,b for removing redundant ret,
7401         256.c,d for zeroing
7402         * doc/Makefile: added option -t for rsync
7403
7404 2004-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7405
7406         * src/SDCCast.h (struct ast),
7407         * src/SDCCast.c (reverseParms, copyAst): fixed bug #1040577 (part 1)
7408
7409 2004-10-20 Borut Razem <borut.razem AT siol.net>
7410
7411         * support/scripts/sdcc.nsi: added include/pic16/*.h to the setup
7412         package
7413
7414 2004-10-20 Vangelis Rokas <vrokas AT otenet.gr>
7415
7416         * device/lib/pic16/libsdcc/Makefile: added lregs directory in
7417         makefile targets,
7418         * device/lib/pic16/libsdcc/lregs/{Makefile,lrst.c,lrrest.c}: NEW
7419         support functions to replace long sequences of MOVFF's from access
7420         bank registers to stack and vice versa,
7421         * src/pic16/device.h: added new field opt_flags, where optimization
7422         flags can be set to enable certain features,
7423         * src/pic16/gen.c (pic16_emitpinfo): NEW to add PC_INFO pCode in
7424         * pBlock, (genFunction, genEndFunction): surroung loop for
7425         saving/loading used registers in stack with PC_INFO pCodes,
7426         INF_LREGS. Code in between can then be optimized by pCode optimizer
7427         to support function calls,
7428         * (genDataPointerSet): fixed bug which loaded float fields in
7429         structures with corrupt data,
7430         * src/pic16/genutils.c (debugf, _debugf): macro/function which emits
7431         in a standard way debug info on stderr. Feature used for developing
7432         and debugging only,
7433         * src/pic16/glue.c (pic16glue): reformatted, deleted some old and
7434         obsolete chunks of code,
7435         * if optimization flag OF_LR_SUPPORT was set, call pic16_OptimizeLocalRegs,
7436         * src/pic16/main.c (_pic16_parseOptions): added handler for --flr-support,
7437         * pic16/src/pcode.c (pic16_newpCodeInfo,
7438         * (pic16_newpCodeOpLocalRegs),
7439         * (pic16_convertLocalRegs2Support): NEW, to support new optimization
7440         feature,
7441         * (pic16_pCodeConstString): printing of the initial value of a
7442         symbol as a comment is inhibited since parsing was already done by
7443         copyStr and output is corrupt,
7444         * (pic16_pCode2str, genericPrint): handle PC_INFO pCode,
7445
7446 2004-10-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7447
7448         * src/mcs51/ralloc.c (packRegisters): fixed bug #1044601
7449
7450 2004-10-19 Maarten Brock <sourceforge.brock AT dse.nl>
7451
7452         * as/mcs51/lkarea.c: removed old K&R style,
7453           (lnksect): changed check on boundary error,
7454           (lnksect2): changed check on boundary error,
7455           (lnksect2): extend XSTK to end of page if size = 1
7456         * as/mcs51/lkmain.c: removed old K&R style,
7457           (Areas51): create l_IRAM symbol
7458         * as/mcs51/lkmem.c (summary2): added report on PSEG and XSTK
7459         * device/lib/Makefile.in: renamed model-mcs51-reentrant to
7460           model-mcs51-stack-auto, added model-mcs51-xstack-auto
7461         * device/lib/_mullong.c: added version to be compiled with xstack
7462         * device/lib/mcs51/crtclear.asm: clear only upto --iram-size
7463         * device/lib/mcs51/crtxclear.asm: clear pdata as well
7464         * device/lib/mcs51/crtxstack.asm: fixed comment
7465         * src/SDCCglue.c: maxInterrupts defaults to 0,
7466           (emitMaps): added pdata,
7467           (createInterruptVect): (re)moved default,
7468           (glue): added pdata,
7469           (glue): moved __start__xstack to XSTK with default size 1
7470         * src/SDCCmain.c (parseCmdLine): automatically set options.intlong_rent
7471           and options.float_rent when options.stackAuto is set,
7472           (linkEdit): only write XDATA_NAME if provided on command line
7473         * src/SDCCmem.h,
7474         * src/SDCCmem.c: added pdata
7475         * src/port.h: added pdata_name to PORT
7476         * src/mcs51/gen.c (toBoolean): fixed for Acc use of aopGet,
7477           (saveRegisters, unsaveRegisters): removed usage of B,
7478           (genMinus): fixed accumulator clash,
7479           (genJumpTab): added comment, this needs another look
7480         * src/mcs51/gen.c: added check for "B in use" paranoia,
7481           added pushB() and popB()
7482         * src/mcs51/peeph.def: restart after 177.c so 177.a can get a second
7483           chance
7484         * src/avr/main.c,
7485         * src/ds390/main.c,
7486         * src/hc08/main.c,
7487         * src/mcs51/main.c,
7488         * src/pic/main.c,
7489         * src/pic16/main.c,
7490         * src/xa51/main.c,
7491         * src/z80/main.c: (reset_regparms) made void parameter explicit and
7492           added PSEG (PAG,XDATA) or NULL to port specifier
7493         * src/ds390/main.c (_ds390_genIVT): moved implemented default in here
7494         * src/mcs51/main.c (_mcs51_genIVT): moved implemented default in here,
7495           (_mcs51_genInitStartup): removed __start__xstack equ,
7496           (mcs51_port): moved xstack from XSEG (XDATA) to XSTK (PAG,XDATA)
7497         * src/pic16/device.c (pic16_dump_usection, pic16_dump_isection),
7498         * src/z80/gen.c (_rleAppend): fixed warnings
7499         * support/regression/tests/zeropad.c: added pdata test
7500         * .version: bumped to 2.4.6
7501
7502 2004-10-17 Borut Razem <borut.razem AT siol.net>
7503
7504         * support/scripts/sdcc.nsi: cross compiling of WIN32 setup.exe on Linux
7505         as a part of nightly build
7506
7507 2004-10-16 Vangelis Rokas <vrokas AT otenet.gr>
7508
7509         * src/pic16/gen.c (struct _G): added field useWreg, is set to 1 when
7510         WREG holds the first byte function parameters,
7511         * (aopForSym): take special case for symbols which are in FARSPACE
7512         but in CODESPACE too,
7513         * (assignResultValue): modified to take into account _G.useWreg,
7514         * (genCall): don't use wreg for parameter passing when function is
7515         declared as reentrant, too, added optimization INCF to stack
7516         pointer when stack parameter count is 1,
7517         * (genFunction, genEndFunction): refurnished and fixed to not using
7518         wreg for passing parameters when function has varargs or is
7519         reentrant, fixed bug with symbol name compare for generating
7520         functions in absolute address,
7521         * (pic16_storeForReturn): refurnished,
7522         * (genCmp): began writing a new version of the function, not ready
7523         yet, therefore it is disabled,
7524         * (genAssign): do not read code memory when assigning a function to
7525         a pointer function,
7526         * src/pic16/glue.c (pic16emitStaticSeg): abSym->name is defined an
7527         array of characters, not pointer,
7528         * (pic16initialComments): in debug mode emit an .ident directive for
7529         the assembler,
7530         * (_process_pragma): emit a new warning type (internal to pic16)
7531         when setting stack to default length, emit a similar warning when
7532         placing a function at absolute address and address is not word aligned
7533         * (_pic16_parseOptions): added 'return TRUE' statement,
7534         * (_pic16_linkEdit): if compiling a source, then add the source's
7535         file object, first in the list of objects to link,
7536
7537 2004-10-13 Slade Rich <slade_rich AT users.sourceforge.net>
7538
7539         * src/pic/pcoderegs.c : increased count on regUsedinRange to prevent unnecessary warning.
7540         * src/pic/main.c : removed VC warning.
7541         * src/pic/gen.c : changed comment.
7542
7543 2004-10-12 Vangelis Rokas <vrokas AT otenet.gr>
7544
7545         * device/lib/pic16/libsdcc/gptr/gptrput[234].c: an external
7546         reference to a deprecated symbol _GPTRREG was causing failure to
7547         link. Thanks G. M. Gallant for the info.
7548
7549 2004-10-12 Slade Rich <slade_rich AT users.sourceforge.net>
7550
7551         * src/pic/pcode.c : Applied a code patch supplied by Paul Ashmore in
7552         comments for Bugs item #954788.
7553
7554 2004-10-10 Vangelis Rokas <vrokas AT otenet.gr>
7555
7556         * src/pic16/device.c (pic16_dump_gsection,
7557         * pic16_groupRegistersInSection): handle symbols declared to be in
7558         access bank differently,
7559         * src/pic16/gen.c (struct _G): added field resDirect,
7560         * (aopForSym): if symbol on stack and iCode is '=' and result exists,
7561         send values read from stack directly to result and don't allocate
7562         temporary values,
7563         * (pic16_sameRegs): fixed bug that allowed MOVFF to move between
7564         same registers,
7565         * (pic16_sameRegsOfs): NEW,
7566         * (freeAsmop): if _G.resDirect is set then do not mark registers as
7567         free because they were not allocated from temporary pool,
7568         * pic16_popRegFromString): workaround to fix a problem with
7569         allocating variables twice or never,
7570         * (genGenPointerGet): using PRODL instead of FSR0H,
7571         * (genGenPointerSet): using POSTDEC1 (that is a stack location)
7572         instead of FSR0H,
7573         * (genAssign): take advantage of the _G.resDirect flag,
7574         * (genCast): around line 11844, use mov2f instead of directly
7575         MOVFF'ing between operands to account for literal values,
7576         * src/pic16/genutils.c: some new debug functions for gpsim have been
7577         added,
7578         * src/pic16/glue.c (pic16_printIvalType): fixed bug that initialized
7579         float with integer part only,
7580         * src/pic16/main.c (_process_pragma): handle pragma udata access to
7581         place variables in access bank
7582         * device/lib/pic16/libsdcc/gptr/gptr*.c: using BRA instead of GOTO,
7583         updated sources to reflect recent changes in gen.c
7584
7585 2004-10-06 Vangelis Rokas <vrokas AT otenet.gr>
7586
7587         * device/lib/pic16/libsdcc/Makefile.rules: fixed bug concerning
7588         sources that searched for headers in installation path, now the
7589         device/include/pic16 is used,
7590         * src/pic16/glue.c (pic16glue),
7591         * src/pic16/pcode.c (pCode2str, genericPrint): don't print .file or
7592         .line directives if not in debug mode, this suppresses assembler's
7593         warnings for ignored directives
7594
7595 2004-10-05 Maarten Brock <sourceforge.brock AT dse.nl>
7596
7597         * src/port.h: made reset_regparms prototype void parameter explicit.
7598         * src/SDCCsymt.c (processFuncArgs): removed argument "func".
7599         * src/mcs51/ralloc.c (packRegisters): new fix for bugs 898889 & 979599.
7600         * doc/sdccman.lyx: documented warning disabling and how to use
7601           printf_large to make it print floats.
7602         * device/include/stdbool.h: NEW
7603         * device/lib/_atof.c,
7604         * device/lib/_divuint.c,
7605         * device/lib/_divulong.c,
7606         * device/lib/expf.c,
7607         * device/lib/printf_large.c,
7608         * device/lib/sincosf.c,
7609         * device/lib/sincoshf.c: used stdbool.h, all compile with stack-auto now
7610         * device/lib/Makefile.in: added target for model-mcs51-reentrant to build
7611           a completely reentrant lib.
7612
7613 2004-10-05 Vangelis Rokas <vrokas AT otenet.gr>
7614
7615         * device/lib/pic16/libsdcc/gptr/gptr*.c: added return statements
7616         * device/include/pic16/stdio.h: fixed bug with colon
7617
7618 2004-10-03 Vangelis Rokas <vrokas AT otenet.gr>
7619
7620         * device/include/pic16/stdio.h,
7621         * device/include/pic16/stdlib.h,
7622         * device/include/pic16/math.h: NEW
7623         * device/lib/pic16/libsdcc/gptr/*.c (gptrget*, gptrput*): functions
7624         declared as _naked to reduce overhead
7625         * device/lib/Makefile.in (target port-specific-objects-pic16):
7626         changed * to *.* so to ignore the CVS directory,
7627         * src/pic16/gen.c (pic16_freeAsmop): added code to store result of
7628         stacked variables back in stack,
7629         * (genEndFunction): fixed bug reported by G.M. Gallant with stack
7630         corruption
7631
7632 2004-10-01 Vangelis Rokas <vrokas AT otenet.gr>
7633
7634         * .version: bumped version number to 2.4.5
7635         * support/Util/SDCCerr.h: added warning W_POSSBUG2.
7636         * support/Util/SDCCerr.c (messages structure): added entry for
7637         W_POSSBUG2
7638
7639         Large cumulative patch for pic16 port and libraries.
7640         * device/include/pic16/sdcc-lib.h,
7641         * device/include/pic16/stdarg.h,
7642         * device/include/asm/pic16/features.h,
7643         * device/include/lib/pic16/libsdcc/gptr/{*.c, Makefile}: NEW,
7644         * device/include/pic16/float.h: changes reentrant keyword with
7645         _FS_REENTRANT, added prototype for __fsneq, included sdcc-lib.h
7646         * device/lib/pic16/libsdcc/Makefile: added target directory gptr,
7647         updated target build-libraries to include objects from gptr,
7648         * device/lib/pic16/libsdcc/{char,int,long}/*.c: added macro
7649         _IL_REENTRANT to all function headings, included sdcc-lib.h header,
7650         * device/lib/pic16/libsdcc/float/*.c: added macro _FS_REENTRANT to
7651         all function headings,
7652         * src/SDCCmain.c: added global parameter userIncDirsSet,
7653         * (parseCmdLine): when option -I is encountered add directory to
7654         userIncDirsSet too,
7655         * src/version.awk: added space between control and long,
7656         * src/pic16/NOTES: added some notes for the port,
7657         * src/pic16/gen.c: added prototype for mov2fp function,
7658         * (fReturnpic16[]): properly named return value registers,
7659         * (_G structure): added fields stackRegSet, fregsUsed, stack_lat,
7660         * (aopForSym): added code to handle symbols with onStack flag set,
7661         symbols onStack are allocated PTRSIZE bytes,
7662         * (aopFreeAsmop): handles special case where asmops are stack objects,
7663         * (aopGet, pic16_popGet): adde cod to handle new asmop AOP_STA,
7664         * (pic16_popGetTempReg, pic16_popGetTempRegCond, pic16_popReleaseTempReg):
7665         added argument lock to trace flaws in allocating temporary registers
7666         when developing port,
7667         * (pic16_popGetLit, pic16_popGetLit2): changed lit from unsigned to signed
7668         * (pic16_popRegFromString): reenabled allocating a direct register
7669         from string,
7670         * (assignResultValue): various beautifications,
7671         * fixed bug #1037717 (patch from R. Neider & D. Wrinkler) with mistaken
7672         referenced function argument,
7673         * (genIpush): reenabled to allow stacked arguments, handles only
7674         ic->parmPush iCodes,
7675         * (genCall, genPcall): major changes to allow for variable argument
7676         functions, fixed a bug with falsely restoring stack pointer after
7677         returning from call,
7678         * (genFunction): pending code for critical function,
7679         * (shiftR1Left2ResultSigned, shiftR1Left2Result, shiftL2Left2Result,
7680         * (shiftR2Left2Result, shiftLLong) applied patch #1032155 from R.Neider,
7681         * (genNearPointerGet): fixed bug with indirect reading, was always
7682         reading from INDF0
7683         * (genGenPointerGet, genGenPointerSet): rewrote to support generic
7684         pointers,
7685         * (genAddrOf): rewrote code to take address of a stacked function parameter
7686         * (genCast): fixed casting to generic pointer type,
7687         * src/pic16/gen.h: added AOP_STA,
7688         * (struct asmop): added field stk,
7689         * src/pic16/genarith.c (pic16_AopType): handle AOP_STA,
7690         * (pic16_genPlusIncr): changed emitSKPNZ to emitSKPNZ,
7691         * (pic16_genAddLit, pic16_genPlus): applied patch #1034042 by tecodev,
7692         * (pic16_genMinus): fixed bug #1035119 with patch submitted by tecodev,
7693         * src/pic16/genutils.c (pic16_genNot): removed symbol *tlbl,
7694         * src/pic16/glue.c (pic16_printGPPointerType): fixed to support new
7695         generic pointers,
7696         * src/pic16/main.c (_pic16_initPaths): ignores default SDCC include
7697         and library paths,
7698         * (pic16_port structure): generic pointer size is set to 3,
7699         * src/pic16/pcode.c (pic16_newpCodeOpLit): correctly print literal integer,
7700         * (insertBankSwitch): cast to (char *) to prevent 64bit CPUs'
7701         compiler warning,
7702         * src/pic16/ralloc.c (allocReg): prevent allocating register when
7703         operand is an iTemp,
7704
7705 2004-09-24 Martin Helmling <mh AT octo-soft.de>
7706
7707         * debugger/mcs51/cmd.c: set PC if a symbol at pc reg is set
7708         * debugger/mcs51/simi.c: addapt new syntax of s51
7709
7710 2004-09-23 Vangelis Rokas <vrokas AT otenet.gr>
7711
7712         * src/pic16/genutils.c (pic16_genNot): fixed bug #1032265,
7713         * src/pic16/pcode.c: commented out some calls to free() in order to
7714         fix bug #989576,
7715
7716 2004-09-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7717
7718         * src/SDCCicode.h,
7719         * src/SDCCicode.c (isiCodeInFunctionCall),
7720         * src/avr/ralloc.c (selectSpil),
7721         * src/pic/ralloc.c (selectSpil),
7722         * src/pic16/ralloc.c (selectSpil),
7723         * src/ds390/ralloc.c (selectSpil),
7724         * src/hc08/ralloc.c (selectSpil),
7725         * src/xa51/ralloc.c (selectSpil),
7726         * src/mcs51/ralloc.c (selectSpil): Don't use remainSpil to spill to the
7727         stack in the middle of a function call sequence (fixes bug #1020268)
7728         * src/SDCCicode.c (geniCodeJumpTable): fixed error in computing the
7729         costs associated with the minimum switch case.
7730
7731 2004-09-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7732
7733         * src/SDCC.lex: fixed bug #1030549
7734
7735 2004-09-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7736
7737         * src/SDCCcse.h (struct cseDef),
7738         * src/SDCCcse.c (cseBBlock, newCseDef, ifFromAddrTaken): purge CSEs
7739         over a function call if the CSE is derived from a symbol whose
7740         address has been taken (fixes bug #1029883)
7741         * support/regression/tests/bug-1029883: a new regression test for
7742         this bug
7743
7744 2004-09-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7745
7746         * src/hc08/gen.c (emitinline): fixed bug #1029778
7747         * src/SDCC.y (assignment_expr): fixed the grammer so that assignment
7748         to a cast object is no longer a syntax error ("fixes" bug #1030006,
7749         and starts toward RFE #905167)
7750
7751 2004-09-17 Vangelis Rokas <vrokas AT otenet.gr>
7752
7753         * src/pic16/gen.c (mov2f): New function to move an operand to
7754         another without considering if it is a literal or a register,
7755         * (pic16_sameRegs): don't check if they are both AOP_REG,
7756         * (AccRsh): removed andmask=0 lines,
7757         * (genLeftShift): duplicated to be improved in future versions,
7758         * src/pic16/main.c (_process_pragma): emit stack default size in hex,
7759         * src/pic16/pcode.c: added POC_INFSNZW, updated inverted_op fields
7760         in POC_INCFSZ, POC_INCFSZW, POC_INFSNZ,
7761         * (pic16initMnemonics): added initialization for POC_INFSNZW,
7762         * (insertBankSwitch): fixed inserting banksel directives algorithm
7763         for instructions that follow a skip instruction, this fixes a report
7764         for broken subtraction code generation,
7765         * src/pic16/ralloc.c (deassignLRs): do not free register if current
7766         iCode is a left op, just in case result and right share the same
7767         registers
7768
7769 2004-09-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7770
7771         * src/hc08/main.c,
7772         * src/hc08/gen.c (genJumpTable): more efficient jump table, supports
7773         preservation of HX
7774         * src/hc08/gen.c (pullRegs): fixed order of HX & XA pairs
7775         * src/mcs51/ralloc.c (packRegisters): removed the patch applied
7776         on 2004-09-12; it was buggy
7777
7778 2004-09-15 Bernhard Held <bernhard AT bernhardheld.de>
7779
7780         * src/SDCCsymt.h: removed RESULT_CHECK
7781         * src/SDCCast.c,
7782         * src/SDCCglue.c,
7783         * src/SDCCval.c,
7784         * src/pic/glue.c,
7785         * src/pic16/glue.c: replaced RESULT_CHECK with RESULT_TYPE_NONE
7786
7787 2004-09-15 Vangelis Rokas <vrokas AT otenet.gr>
7788
7789         * src/SDCCicode.c (piCode): applied patch from Raphael Neider,
7790         * src/pic16/device.c (pic16_assignConfigWordValues): wrong
7791         configuration values no more rejected by compiler, they are assigned
7792         to configuration registers with a warning message instead,
7793         * src/pic16/glue.c (pic16_emitConfigRegs): added +1 at top-limit of
7794         the for-loop so last conf register is emitted too,
7795         * (_pic16_initPaths): link library libsdcc.lib by default,
7796         * (_hasNativeMulFor): modified test for multiplication according to
7797         Raphael Neider's remarks. Integer multiplication is also done with
7798         support functions,
7799         * device/include/pic16/pic18fregs.h: corrected type error in while
7800         testing and including 18f6720 header file
7801
7802 2004-09-14 Vangelis Rokas <vrokas AT otenet.gr>
7803
7804         * src/pic16/device.h (pic16_options): removed field use_crt,
7805         * src/pic16/gen.c (genUnpackBits): added call to pic16_loadFSR0
7806         until an optimization to handle single bits is added,
7807         * (pic16_loadFSR0): moved before genUnpackBits,
7808         * (genAnd): some white lines removed,
7809         * src/pic16/main.c (_pic16_finaliseOptions): set omit_ivt and clear
7810         leave_reset flags in pic16_options when using crt modules,
7811
7812 2004-09-12 Maarten Brock <sourceforge.brock AT dse.nl>
7813
7814         * src/mcs51/ralloc.c (packRegisters): applied fix by Bernhard Held
7815           for bugs 898889 & 979599. Also used some safer print instructions.
7816
7817 2004-09-12 Vangelis Rokas <vrokas AT otenet.gr>
7818
7819         * src/pic16/device.h (pic16_options_t): added field use_crt,
7820         crt_name, no_crt,
7821         * src/pic16/genarith.c (pic16_genPlus): added an assert(0) line to
7822         catch a probable future bug,
7823         * src/pic16/gen.c: aopIdx function commented out,
7824         * (genAssign): commented out old code which used aopIdx,
7825         * src/pic16/glue.c (pic16glue): removed some legacy fragments of
7826         code, added if conditionals to take into account the --use-crt
7827         command line options,
7828         * src/pic16/main.c (pic16_optionsTable): added new command line
7829         options, --use-crt= and --no-crt,
7830         * (_pic16_linkEdit): now the proper crt object is added in the
7831         linker command line except than when --no-crt is specified,
7832         * src/pic16/pcode.c,
7833         * src/pic16/pcode.h: added some structures and functions for a new
7834         optimization scheme to compansate for instruction overhead between
7835         same iCodes, this scheme is currently under development and is not
7836         working in any way,
7837         * src/pic16/gen.c (genAnd): added patch provided by Aaron Collwell
7838         to && operator,
7839         * device/lib/pic16/startup/crt0i.c,
7840         * device/lib/pic16/startup/crt0iz.c: added global char variable
7841         __uflags to force the generation of an idata section
7842
7843 2004-09-12 Bernhard Held <bernhard AT bernhardheld.de>
7844
7845         * doc/Makefile,
7846         * doc/clean.mk: added support for easy creation of sdcc-doc.tar.bz2
7847         * doc/sdccman.lyx: updated sdcc version to 2.4.4
7848
7849 2004-09-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7850
7851         * doc/sdccman.lyx: fixed a problem with my new index entries (thanks
7852         Frieder) and clarified the default code optimization mode
7853
7854 2004-09-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7855
7856         * src/SDCC.lex (doPragma, process_pragma),
7857         * src/SDCCglobl.h (struct optimize): added pragmas "opt_code_speed",
7858         "opt_code_size", and "opt_code_balanced"
7859         * src/SDCCmain.c (optionsTable[], printOptions, scanOptionsTable):
7860         regrouped options by category, added support for category headers
7861         * src/SDCCmain.c (parseCmdLine): added options "--opt-code-speed"
7862         and "--opt-code-size"
7863         * doc/sdccman.lyx: documented these new options and pragmas
7864         * src/hc08/gen.c (AccLsh, AccRsh): take speed/size optimization
7865         preference into account
7866
7867 2004-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
7868
7869         * src/SDCCicode.c (geniCodePostInc, geniCodePreInc, geniCodePostDec,
7870           geniCodePreDec): Fixed bug 904237 by generating a warning
7871         * src/SDCCerr.h,
7872         * src/SDCCerr.c: added warning W_SIZEOF_VOID
7873
7874 2004-09-09 Slade Rich <slade_rich AT users.sourceforge.net>
7875
7876         * src/pic/device.c : When no max ram set validate full memory range.
7877         * src/pic/pcode.c,
7878         * src/pic/pcodepeep.c : Copy C code comments to optimised replacement code.
7879
7880 2004-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
7881
7882         * device/lib/_gptrget.c,
7883         * device/lib/_gptrput.c: updated comment
7884         * device/lib/calloc.c,
7885         * device/lib/free.c,
7886         * device/lib/malloc.c,
7887         * device/lib/realloc.c: added LGPL, made them reentrant-safe
7888         * src/SDCCcse.c (cseBBlock),
7889         * src/SDCCicode.c (printOperand, geniCodeArray),
7890         * src/SDCCicode.h (struct operand): fixed bug 868103
7891         * support/regression/tests/bug-868103.c: added
7892         * src/SDCCast.c (searchLitOp),
7893         * src/SDCCcse.h (struct cseDef),
7894         * src/SDCCglue.c (printIvalArray, spacesToUnderscores),
7895         * src/SDCCicode.h (struct operand),
7896         * src/SDCCsymt.h (struct sym_link),
7897         * src/avr/gen.c (hasInc),
7898         * src/ds390/gen.c (hasInc),
7899         * src/hc08/gen.c (genPlusIncr, hasInc),
7900         * src/mcs51/gen.c (hasInc),
7901         * src/pic16/glue.c (pic16_printIvalChar),
7902         * src/pic16/ralloc.c (regWithIdx),
7903         * src/xa51/gen.c (hasInc) : removed warnings
7904         * src/SDCCast.c (createBlock): added comment ???
7905         * src/hc08/ralloc.c: updated comments
7906
7907 2004-09-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7908
7909         * doc/sdccman.lyx: updated section on switch statements, added
7910         section about semaphore locking
7911         * doc/Makefile: added option -info for latex2html
7912         * device/lib/_gptrget.c,
7913         * device/lib/_gptrput.c: __XPAGE instead of P2 in outcommented code
7914
7915 2004-09-06 Slade Rich <slade_rich AT users.sourceforge.net>
7916
7917         * src/pic/device.h,
7918         * src/pic/device.c,
7919         * src/pic/port.c : Changed PIC14 code to not set bit RP1 when
7920          maxram is less than 0x100.
7921
7922 2004-09-06 Slade Rich <slade_rich AT users.sourceforge.net>
7923
7924         * Bug fixes for PIC14 - signed RSHIFT problem. Patch supplied by Allen(agschrum).
7925
7926 2004-09-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7927
7928         * src/port.h,
7929         * src/mcs51/main.c,
7930         * src/ds390/main.c,
7931         * src/z80/main.c,
7932         * src/hc08/main.c,
7933         * src/pic/main.c,
7934         * src/pic16/main.c,
7935         * src/avr/main.c,
7936         * src/xa51/main.c
7937         * src/SDCCicode.c (geniCodeJumpTable): Better logic to determine if a
7938         a jump table is the best form for a switch statement, including
7939         automatic insertion of missing cases to make the case range
7940         continuous. Developed in collaboration with Frieder Ferlemann.
7941
7942 2004-09-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7943
7944         * src/hc08/ralloc.c (canDefAccResult): multi-byte shift is unsafe for
7945         accumulator result if it needs sign extension
7946
7947 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
7948
7949         * src/hc08/ralloc.c (canUseAccOperand): fixed comparison bug
7950
7951 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
7952
7953         * device/lib/gbz80/printf.c,
7954         * device/lib/z80/printf.c: removed define for NULL
7955
7956 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
7957
7958         * as/xa51/xa_link.c,
7959         * device/examples/ds390/ow390/ad26.c,
7960         * device/examples/ds390/ow390/cnt1d.c,
7961         * device/examples/ds390/ow390/counter.c,
7962         * device/examples/ds390/ow390/ds2480.h,
7963         * device/examples/ds390/ow390/ds2480ut.c,
7964         * device/examples/ds390/ow390/findtype.c,
7965         * device/examples/ds390/ow390/gethumd.c,
7966         * device/examples/ds390/ow390/owllu.c,
7967         * device/examples/ds390/ow390/ownetu.c,
7968         * device/examples/ds390/ow390/swt12.c,
7969         * device/examples/ds390/ow390/swtloop.c,
7970         * device/examples/ds390/ow390/temp.c,
7971         * device/examples/ds390/ow390/temp10.c,
7972         * device/examples/ds390/ow390/thermo21.c,
7973         * device/examples/ds390/ow390/tinilnk.c,
7974         * device/examples/ds390/ow390/tstfind.c,
7975         * device/examples/serialcomm/windows/serial.cpp,
7976         * device/examples/serialcomm/windows/test_serialcomm.cpp,
7977         * device/include/reg51.h: fixed line endings for cvs
7978
7979 2004-09-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7980
7981         * src/hc08/ralloc.c (canDefAccResult, canUseAccOperand,
7982         packRegsForAccUse, packRegisters): new accumulator register
7983         packing algorithm
7984         * support/regression/ports/hc08/support.c (_putchar): suppress
7985         warning of unused variable
7986         * src/SDCCicode.c: added SWAP entry to codeTable
7987
7988 2004-09-01 Maarten Brock <sourceforge.brock AT dse.nl>
7989
7990         * device/lib/sprintf.c: forgot to add this file before previous commit
7991
7992 2004-09-01 Vangelis Rokas <vrokas AT otenet.gr>
7993
7994         * src/pic16/gen.c (genPackBits): added operand right in function
7995         parameters, load result directly if p_type is POINTER (that is
7996         called by genNearPointerSet)
7997         * (genUnPackBits): added operand left in function parameters,
7998         * (genNearPointerGet, genNearPointerSet): prevent the loading of
7999         FSR0 if accessing bitfields,
8000
8001 2004-08-31 Maarten Brock <sourceforge.brock AT dse.nl>
8002
8003         * device/include/stdio.h: added NULL, size_t, typedef pfn_outputchar,
8004           _print_format; updated printf, sprintf, vsprintf
8005         * device/include/asm/default/features.h: corrected comment/define
8006         * device/lib/Makefile.in: added sprintf.c
8007         * device/lib/libsdcc.lib: added sprintf module
8008         * device/lib/printf_large.c,
8009         * device/lib/vprintf.c,
8010         * device/lib/sprintf.c: totally refactored printf_large and vprintf
8011           into these 3 files
8012         * support/regression/Makefile: changed ALL_PORTS into a usefull default
8013         * support/regression/ports/mcs51-stack-auto/spec.mk: added sprintf
8014         * support/regression/tests/bug-927659.c: removed dummy putchar, enabled
8015           hc08 test
8016         * support/regression/tests/zeropad.c: define idata as data for hc08
8017
8018 2004-08-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8019
8020         * src/SDCCpeeph.c (labelIsReturnOnly): support hc08 rts opcode also
8021         * src/SDCCpeeph.c (buildLabelRefCountHash): assume function entry point
8022         labels are referenced at least once (even if a reference is not found)
8023         * src/hc08/gen.c (emitcode): set isComment flag for comments
8024         * src/hc08/peeph.def: added rules 5a..5f (optimize redundant immediate
8025         loads), rules 6a..6b (optimize jumps to return)
8026
8027 2004-08-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8028
8029         * device/lib/acosf.c (acosf),
8030         * device/lib/asinf.c (asinf),
8031         * device/lib/atanf.c (atanf),
8032         * device/lib/ceilf.c (ceilf),
8033         * device/lib/cosf.c (cosf),
8034         * device/lib/coshf.c (coshf),
8035         * device/lib/cotf.c (cotf),
8036         * device/lib/fabsf.c (fabsf),
8037         * device/lib/floorf.c (floorf),
8038         * device/lib/log10f.c (log10f),
8039         * device/lib/logf.c (logf),
8040         * device/lib/sinf.c (sinf),
8041         * device/lib/sinhf.c (sinhf),
8042         * device/lib/sqrtf.c (sqrtf),
8043         * device/lib/tanf.c (tanf),
8044         * device/lib/tanhf.c (tanhf),
8045         * device/include/math.h: defined _FLOAT_FUNC_REENTRANT macro and
8046         replaced all instances of "reentrant" in the library functions
8047         defined in math.h with this macro.
8048         * support/regression/tests/float_trans.c: reenabled test for hc08
8049
8050 2004-08-30 Bernhard Held <bernhard AT bernhardheld.de>
8051
8052         * device/lib/pic16/Makefile.common.in: added MODELFLAGS again, it was
8053         erroneously deleted
8054
8055 2004-08-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8056
8057         * src/hc08/gen.c (loadRegFromAop): better use of clra & clrx
8058         * src/hc08/gen.c (genAnd, genOr): fixed bug with conditional when
8059         multi-byte volatile operands are used
8060         * src/hc08/gen.c (shiftRLong): fixed bug with wrong rotate direction
8061         * src/hc08/main.c (_hc08_genAssemblerPreamble): moved the built-in
8062         initialization to area GSINIT0 so that it would always precede
8063         any static initializers in GSINIT
8064         * support/regression/tests/zeropad.c: fixed idata define for hc08
8065         * support/regression/tests/bug-927659.c,
8066         * support/regression/tests/float_trans.c: disabled tests for hc08
8067         pending missing library routines
8068         * .version: increased version number to 2.4.4 - hc08 port now passes
8069         regression tests
8070
8071
8072 2004-08-29 Bernhard Held <bernhard AT bernhardheld.de>
8073
8074         * device/lib/pic16/Makefile.common.in: added $(MM) to fix `make clean`
8075         * Makefile.common.in,
8076         * as/Makefile,
8077         * as/hc08/Makefile.in,
8078         * as/mcs51/Makefile.in,
8079         * as/z80/Makefile.in,
8080         * debugger/mcs51/Makefile.in,
8081         * device/include/Makefile.in,
8082         * device/lib/Makefile.in,
8083         * doc/Makefile,
8084         * link/Makefile,
8085         * link/z80/Makefile.in,
8086         * packihx/Makefile.in,
8087         * sim/ucsim/main_in.mk,
8088         * sim/ucsim/avr.src/Makefile.in,
8089         * sim/ucsim/doc/Makefile.in,
8090         * sim/ucsim/gui.src/serio.src/Makefile.in,
8091         * sim/ucsim/hc08.src/Makefile.in,
8092         * sim/ucsim/s51.src/Makefile.in,
8093         * sim/ucsim/xa.src/Makefile.in,
8094         * sim/ucsim/z80.src/Makefile.in,
8095         * src/Makefile.in,
8096         * support/cpp2/Makefile.in,
8097         * support/librarian/Makefile,
8098         * support/makebin/Makefile: added DESTDIR to the install path proposed
8099         by "Maciej 'Agaran' Pijanka" <agaran AT pld-linux.org>
8100         * doc/sdccman.lyx: added DESTDIR documentation
8101
8102 2004-08-29 Vangelis Rokas (vrokas AT otenet.gr>
8103
8104         * src/pic16/gen.c (genFunction, genEndFunction): fixed return
8105         instruction for interrupt handlers, use fast returns when returning
8106         from high priority interrupts
8107
8108 2004-08-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8109
8110         * src/hc08/gen.c (genAnd, genOr, transferAopAop, rmwWithAop): optimized
8111         code generation
8112         * src/hc08/gen.c (genrshFour, genCpl): fixed bugs
8113         * src/hc08/gen.c (genMultOneByte, genDivOneByte, genModOneByte): fixed
8114         bugs, ported much of Bernhard's code from mcs51
8115         * src/mcs51/gen.c (genSend),
8116         * src/hc08/gen.c (genSend): fixed bug with lost SEND iCodes if more
8117         than one when calling a reentrant function
8118         * device/lib/_mullong.c: defined an alternate struct layout for big
8119         endian ports (hc08)
8120
8121 2004-08-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8122
8123         * src/hc08/gen.c (shiftL2Left2Result): fix for bug-500536 regression
8124         test
8125
8126 2004-08-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8127
8128         * src/SDCCsymt.c (processFuncArgs): make sure parameter types
8129         are sane and complete before asking the port its prefered parameter
8130         passing method (fixes bug #1017633)
8131         * device/lib/hc08/_ret.c: added "data" storage class to _ret2
8132         and _ret3
8133
8134 2004-08-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8135
8136         * src/hc08/gen.c (genPackBitsImmed, genUnpackBitsImmed): fix offset
8137         problem in bitfields >= 8 bits.
8138
8139 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
8140
8141         * src/SDCCsymt.c: undid changes that were not meant to be committed
8142
8143 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
8144
8145         * support/regression/ports/hc08spec.mk: REENTRANT must be reentrant
8146
8147 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
8148
8149         * src/hc08/gen.c (genUminusFloat): fixed bug where only 3 bytes were
8150           copied and wrong bit got inverted
8151
8152 2004-08-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8153
8154         * src/hc08/gen.c (genPointerSet, genFarPointerSet): moved code from
8155         genFarPointerSet into genPointerSet; eliminated genFarPointerSet
8156         * src/hc08/gen.c (genPointerGet, genFarPointerGet): moved code from
8157         genFarPointerGet into genPointerGet; eliminated genFarPointerGet
8158         * src/hc08/gen.c (genPackBitsImmed): generate optimized code for
8159         assignments to bitfields at known addresses
8160         * src/hc08/gen.c (genUnpackBitsImmed): generate optimized code for
8161         reads from bitfields at known addresses
8162         * src/hc08/ralloc.c (packRegisters),
8163         * src/hc08/gen.c (genPointerGet, genUnpackBits, genUnpackBitsImmed,
8164         genhc08Code): optimize pointer get values used as conditionals
8165         * src/hc08/peeph.def: added rules 2e & 2f to optimize bit test
8166         and branch
8167
8168 2004-08-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8169
8170         * src/mcs51/gen.c (genPointerGet, genNearPointerGet, genPagedPointerGet,
8171         genFarPointerGet, genCodePointerGet, genGenPointerGet, genUnpackBits),
8172         * src/mcs51/ralloc.c (packRegisters): optimize pointer get values used
8173         as conditionals
8174
8175 2004-08-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8176
8177         * src/mcs51/peeph.def: peepholes 248.i-m for xdata bitfields
8178
8179 2004-08-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8180
8181         * src/mcs51/ralloc.c (packRegsForOneuse): fixed bug #1012650 and some
8182         related problems
8183
8184 2004-08-21 Bernhard Held <bernhard AT bernhardheld.de>
8185
8186         * sim/ucsim/cmd.src/Makefile.in: run lex only if $(PRJDIR)/devel exists
8187
8188 2004-08-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8189
8190         * src/z80/ralloc.c (packRegsForAssign): ported some bug fixes from the
8191         mcs51 port
8192
8193 2004-08-16 Slade Rich <slade_rich AT users.sourceforge.net>
8194
8195         * src/pic/gen.c: Restored fn genRet as previous fix was incorrect.
8196
8197 2004-08-14 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8198
8199         * src/mcs51/gen.c (genJumpTab): jumptables for more than 16 switch
8200         cases use more compact code.
8201
8202 2004-08-13 Slade Rich <slade_rich AT users.sourceforge.net>
8203
8204         * src/pic/gen.c: Fixed problem with fn returning a variable bigger than a char.
8205
8206 2004-08-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8207
8208         * src/SDCClrange.c (findPrevUse): fixed bug #1007371
8209
8210 2004-08-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8211
8212         * src/SDCCsymt.h,
8213         * src/SDCCsymt.c (changePointer, checkDecl, addSymChain): changed
8214         parameter of changePointer() from symbol* to sym_link*
8215         * src/SDCCast.c (decorateType): call changePointer() for CAST op
8216         * src/SDCCsymt.c (compareType): void* type is castable to other
8217         pointers, but not necesarily an exact match.
8218         * src/SDCCicode.c (geniCodeCast): allow void* casting here since it
8219         is no longer blindly treated as an exact match.
8220         * src/SDCCval.c (valCastLiteral): treat missing type as cast to void
8221
8222 2004-08-12 Slade Rich <slade_rich AT users.sourceforge.net>
8223
8224         * src/pic/glue.c: Added struct initialisation fn printIvalStruct.
8225
8226 2004-08-11 Slade Rich <slade_rich AT users.sourceforge.net>
8227
8228         * src/pic/gen.c,
8229         * src/pic/pcode.c,
8230         * src/pic/ralloc.h,
8231         * src/pic/ralloc.c: Printing rIdx on internal verbose debug.
8232
8233 2004-08-10 Slade Rich <slade_rich AT users.sourceforge.net>
8234
8235         * src/pic/device.c,
8236         * src/pic/device.h,
8237         * src/pic/device.c: Will no longer exit if #pragma maxram has not been defined.
8238
8239 2004-08-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8240
8241         * src/mcs51/gen.c (emitcode): fixed bug #992819
8242
8243 2004-08-05 Maarten Brock <sourceforge.brock AT dse.nl>
8244
8245         * src/pic/ralloc.c (deassignLR): allthough pic port is buggy already,
8246           there's no need to make it worse
8247
8248 2004-08-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8249
8250         * src/mcs51/ralloc.c (deassignLR),
8251         * src/ds390/ralloc.c (deassignLR),
8252         * src/hc08/ralloc.c (deassignLR),
8253         * src/z80/ralloc.c (deassignLR),
8254         * src/pic/ralloc.c (deassignLR),
8255         * src/pic16/ralloc.c (deassignLR),
8256         * src/avr/ralloc.c (deassignLR),
8257         * src/SDCClrange.c (findRecursiveSucc, findRecursivePred, findPrevUse,
8258         rlivePoint): fixed another part of bug #971834
8259
8260 2004-08-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8261
8262         * src/z80/main.c: enabled "critical" keyword
8263         * src/z80/mappings.i,
8264         * src/z80/gen.c (genFunction, genEndFunction): support for interrupt
8265         functions (fixes bug #979646)
8266         * doc/sdccman.lyx: added a subsection explaining z80 interrupt support
8267
8268 2004-08-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8269
8270         * src/mcs51/gen.c (genInline): Add \n for labels, not DOS/WIN dirs
8271           such as c:\mydir.
8272
8273 2004-08-03 Maarten Brock <sourceforge.brock AT dse.nl>
8274
8275         * src/SDCCloop.c (loopInvariants): fixed bug 983545, hope this
8276           doesn't disable too much optimizations
8277
8278 2004-08-02 Slade Rich <slade_rich AT users.sourceforge.net>
8279
8280         * src/pic/glue.c Disabled "WARNING: function 'main' undefined" when -S option is used.
8281
8282 2004-08-02 Maarten Brock <sourceforge.brock AT dse.nl>
8283
8284         * src/SDCClrange.c (rlivePoint): fixed bug 988568, thanks to anonymous
8285
8286 2004-08-02 Slade Rich <slade_rich AT users.sourceforge.net>
8287
8288         * src/pic/gen.c tidied up tabs
8289         * src/pic/genarith.c tidied up tabs and fixed bug with literal multiple where same register was used for hi and low byte
8290         * src/pic/main.c tidied up tabs
8291         * src/pic/pcode.c tidied up tabs and disabled verbose code generation
8292         * src/pic/pcoderegs.c tidied up tabs
8293         * src/pic/ralloc.c tidied up tabs
8294
8295 2004-07-30 Vangelis Rokas <vrokas AT otenet.gr>
8296
8297         * src/SDCCmem.c (allocGlobal): don't turn S_REGISTER storage class
8298         to S_FIXED for pic16 port and when symbol is not in level 0,
8299         allocate for S_REGISTER storage class and pic16 port, too,
8300         * src/pic16/device.h: prototype for checkSym,
8301         * src/pic16/device.c (pic16_dump_access, checkSym): NEW,
8302         * (pic16_assignConfigWordValue): test the value and the mask to
8303         validate that the value is suitable for the configuration word,
8304         * src/pic16/glue.c (pic16_printIvalFuncPtr): use 'externs' to
8305         collect extern declared symbols, don't emit symbol twice, check
8306         first if symbol is in publics set first,
8307         * src/pic16/main.c (_pic16_keywords[]): added keyword 'register',
8308         * added command line '--fstack' which enables an experimental
8309         feature for stack access, too buggy to be used yet...
8310         * src/pic16/ralloc.c (pic16_accessregWithName): NEW,
8311         * (pic16_allocDirReg): when register has storage class S_REGISTER
8312         allocate in pic16_dynAccessRegs,
8313         * device/include/pic16/pic18f????.h: modified configuration word
8314         naming convention, words started as CONFIG0H but should be CONFIG1H
8315
8316 2004-07-29 Maarten Brock <sourceforge.brock AT dse.nl>
8317
8318         * device/include/mcs51reg.h: fixed bug 970993
8319
8320 2004-07-27 Maarten Brock <sourceforge.brock AT dse.nl>
8321
8322         * added lib/calloc.c, lib/free.c, lib/realloc.c, include/stddef.h
8323         * updated lib/malloc.c, lib/libsdcc.lib, lib/Makefile.in, include/malloc.h
8324         * src/SDCC.lex (doPragma): added pragma disable_warning <nnn>
8325         * src/SDCCmain.c (parseCmdLine): added option --disable-warning <nnn>
8326         * src/ds390/gen.c (genPlusIncr): fixed bug when incrementing generic pointers
8327         * support/Util/SDCCerr.c (vwerror): suppress disabled warnings and output
8328           error/warning numbers,
8329           added function setWarningDisabled()
8330         * support/Util/SDCCerr.h: added setWarningDisabled() and MAX_ERROR_WARNING
8331         * support/regression/ports/mcs51-stack-auto/spec.mk: added dependencies
8332           _memcmp.c _memmove.c calloc.c realloc.c free.c
8333         * support/regression/tests/malloc.c: added tests for new functionality
8334         * support/regression/tests/zeropad.c: added tests for truncated initializers
8335           and initialized char arrays starting with '\x0'
8336         * src/mcs51/peeph.def: fixed regression, added peephole 177.f
8337
8338 2004-07-26 Bernhard Held <bernhard AT bernhardheld.de>
8339
8340         * support/valdiag/tests/overflow.c: fixed warning on (1 >> 40)
8341
8342 2004-07-26 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8343
8344         * doc/sdccman.lyx: updated example in section "Absolute Addressing"
8345         * src/mcs51/peeph.def: added contributed fix for "bug" #995347 as
8346         peephole 177.e. Thanks to anonymous
8347
8348 2004-07-25 Vangelis Rokas <vrokas AT otenet.gr>
8349
8350         * src/pic16/glue.c (pic16_printIvalFuncPtr): when an extern
8351         function isn't used in the source but referenced as a
8352         variable initializer then declare it as extern in .asm file
8353
8354 2004-07-24 Vangelis Rokas <vrokas AT otenet.gr>
8355
8356         * .version: increased version number to 2.4.3
8357
8358         Adding version extension according to ChangeLog CVS revision
8359         * src/Makefile.in (target all): added dependency 'version.h'
8360         * (rule version.h): added rule to create version.h from ChangeLog,
8361         * (rule dep): added dependency version.h,
8362         * src/version.awk: AWK script to create version.h
8363         * src/SDCCdwarf2.c (dwWriteModule),
8364         * src/SDCCglue.c (initialComments),
8365         * src/SDCCmain.c (printVersionInfo): modified to write after
8366         version string the version extension number,
8367         * src/SDCCutil.c: included "version.h"
8368         * (getBuildNumber): NEW, returns SDCC's ChangeLog minor revision
8369         number,
8370         * src/SDCCutil.h: added prototype for getBuildNumber
8371
8372         * src/SDCCmain.c (parseCmdLine): when sOpt is 'I' add rest in
8373         includeDirsSet, too,
8374         * src/SDCCsymt.c (checkSClass): don't emit error when a variable,
8375         const char [] is found in function prototype...
8376
8377         * src/pic16/genarith.c (pic16_genUMult8XLit_8): optimization to omit
8378         moving to WREG with source is already in WREG,
8379         * src/pic16/gen.h: added AOP_FSR0 and AOP_FSR2 in enum,
8380         * src/pic16/gen.c (getFreePtr): updated to look for FSR0 and FSR2,
8381         * (aopForSym): stack'ed symbols are partially supported, added
8382         if-clause to support symbols in FARSPACE,
8383         * (sameRegs): added test for AOP_ACC to see if registers are same,
8384         * (pic16_freeAsmop): added case for AOP_FSR0 and AOP_FSR2,
8385         * (pic16_aopGet): added case for AOP_FSR0 and AOP_FSR2,
8386         * (pic16_popRegFromString): will not allocate a new register if it
8387         doesn't find one by name, bug may have introduced...
8388         * (pic16_popGet): added case for AOP_FSR0 and AOP_FSR2,
8389         * (genIpush): revived to use pic16 port's stack,
8390         * (genAddrOf): added incomplete case for stack'ed operand,
8391         * (genCast): optimized a pair of MOVFW,MOVWF to MOVFF
8392         * src/pic16/genutils.c (pic16_genNot): almot new vesrion for NOT,
8393         can handle multibyte operands,
8394         * src/pic16/glue.c (pic16_printIval*): some debug info added,
8395         * (pic16initialComments): added message for MPLAB compatibility
8396         mode enabled,
8397         * src/pic16/main.h: prototype for pic16_mplab_comp,
8398         * src/pic16/main.c (pic16_optionsTable): new option --mplab-comp,
8399         which enabled MPLAB compatibility mode (i.e. no #LINE/#FILE, BANKED)
8400         * (_pic16_linkEdit): NEW, handles link stage, transferred here
8401         because of increased complexity of procedure,
8402         * (_process_pragma): stack pragma changed to format 'stack pos len',
8403         emit symbol '_stack_end' to conform with gplink,
8404         * src/pic16/pcode.c (pic16_newpCodeOpBit): using pic16_regWithName
8405         to search for register,
8406         * (pic16_get_op, pic16_get_op2): added case for PO_W, PO_WREG and
8407         PO_GPR_REGISTER,
8408         * (pic16_pCode2str): when in MPLAB compatibility mode, comment out
8409         #LINE directives and replace 'B' with 'BANKED' in instruction opcodes
8410         * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): added
8411         case for PO_GPR_REGISTER,
8412         * (pic16_AnalyzeBanking): removed the old message for inc2h.pl, past
8413         dies, the new era is ahead !...
8414         * src/pic16/ralloc.c: added hash reposits pic16_dynAllocRegNames and
8415         pic16_dynInternalRegs,
8416         * (pic16_allocregWithName, pic16_procregWithName, pic16_regWithname): NEW,
8417         * (pic16_allocDirReg): minor optimizations and bug fixes,
8418         * (pic16_allocWithIdx): when searching pic16_dynProcessorRegs use fixed,
8419
8420         * device/lib/pic16/startup/crt0*.c: extern definition of stack_end,
8421         load stack and frame pointer with address of 'stack_end' symbol
8422
8423 2004-07-23 Vangelis Rokas <vrokas AT otenet.gr>
8424
8425         * src/pic16/glue.c (pic16emitStaticSeg): fixed bug with files
8426         without source code but only variable initializers
8427
8428 2004-07-20 Vangelis Rokas <vrokas AT otenet.gr>
8429
8430         * src/pic16/glue.c (pic16emitRegularMap): unused functions marked as
8431         external are not declared as extern to reduce overhead while linking
8432
8433 2004-07-20 Maarten Brock <sourceforge.brock AT dse.nl>
8434
8435         * src/SDCCast.c (decorateType): removed buggy fix for bug #979599
8436
8437 2004-07-11 Maarten Brock <sourceforge.brock AT dse.nl>
8438
8439         * src/SDCCglue.c (printIvalArray): fixed bug #984229, thanks to Phuah
8440           Yee Keat for the patch
8441         * src/SDCCast.c (decorateType): fixed bug #979599
8442         * src/ds390/gen.h: removed local fReturnSizeDS390
8443         * src/ds390/gen.c: made fReturnSizeDS390 signed short to remove a warning
8444         * src/ds390/gen.c (genAnd, genOr, genXor),
8445         * src/mcs51/gen.c (genAnd, genOr, genXor): generate better optimized code
8446
8447 2004-07-04 Vangelis Rokas <vrokas AT otenet.gr>
8448
8449         * src/SDCCmain.c (linkEdit): modifications only for pic16 port,
8450         add relFilesSet to $3, manipulate $2 to handle linking of object
8451         files without source files in command line,
8452         * device/include/pic16 (all headers): added ID location macros,
8453         * src/pic16/device.c (struct PIC16_device Pics16[]): added field
8454         entries for ID location bytes,
8455         * (pic16_assignIdByteValue): NEW,
8456         * src/pic16/device.h: new structures idRegInfo_t and idBytesInfo_t,
8457         added field dumpcalltree to pic16_options_t,
8458         * src/pic16/gen.c (genCmp): fixed bug case so a temporary register
8459         is used instead of pic16_Gstack_base_addr, check if (ifx) before
8460         emitting rFalseIfx label after check_carry label,
8461         * src/pic16/glue.c (PIC16_IS_IDLOC_ADDRESS, PIC16_IS_HWREG_ADDRESS,
8462         pic16_emitDIRegs), NEW
8463         * (pic16glue): dump .calltree file when option --calltree found,
8464         * src/pic16/main.c (OPTION _pic16_optionsTable): new option --calltree
8465         * (_pic16_genAssemblerPreamble): emit ID locations after
8466         configuration registers,
8467         * (pic16_linkCmd): modifications of the link command,
8468         * src/pic16/pcode.c (pic16_pciMOVFF): PCC_REGISTER replaces PCC_REGISTER2
8469         * (pic16_pCodeInitRegisters): don't init stack registers,
8470         * (pic16_findPrevInstruction): fixed bug,
8471         * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): fixed
8472         bug with immediate registers,
8473         * (buildCallTree): traces stack push and pop,
8474         * (pct2): dump also stack usage for each function,
8475         * src/pic16/ralloc.c (dynrIdx): registers names start from 0x00
8476         * (pic16_allocDirReg): various modifications,
8477         * (pic16_typeRegWithIdx): when searching pic16_dynProcessorRegs set
8478         fixed to 1,
8479
8480 2004-07-02 Vangelis Rokas <vrokas AT otenet.gr>
8481
8482         * src/pic16/pcode.c: removed buggy double colon
8483
8484 2004-07-01 Borut Razem <borut.razem AT siol.net>
8485
8486         * support/scripts/sdcc.nsi: added include/pic16 to setup
8487
8488 2004-06-30 Vangelis Rokas <vrokas AT otenet.gr>
8489
8490         * device/lib/Makefile.in: fixed bug in target objects-pic16,
8491         * device/lib/pic16/Makefile: prefixed with dash (-) command under
8492         target 'clean',
8493         * doc/sdccman.lyx: changed version to 2.4.2 and added some port
8494         specific command line arguments. Also added sample lkr script
8495         for placing a variable at a specific memory bank.
8496         * src/pic16/device.c (pic16_dump_gsection): NEW, to dump variables
8497         at a specific memory bank,
8498         * (pic16_dump_isection): fixed bug which caused string literals to
8499         be omitted when dumping idata section,
8500         * (pic16_groupRegistersInSection): added code to handle registers
8501         in specific memory banks,
8502         * src/pic16/gen.c: labelOffset is prefixed with pic16_ and made
8503         public, all references are renamed too,
8504         * (pic16_aopGet): removed switch cases for AOP_R0,AOP_R1,AOP_DPTR,
8505         AOP_DPTR2,
8506         * (pic16_storeForReturn): added case to handle when dest is WREG,
8507         * src/pic16/genarith.c (pic16_pCodeOpSubType): NEW,
8508         * src/pic16/glue.c (pic16emitRegularMap): when adding a register in
8509         pic16_rel_udata, check to see if that register is marked as being
8510         a member of a specific memory bank,
8511         * (pic16_printIvalCharPtr): added code to add string literals either
8512         to code or the idata sections,
8513         * src/pic16/main.c (_process_pragma): added \n to WHITE constant,
8514         also accept the 'udata' pragma,
8515         * src/pic16/main.h: new structure types sectName and sectSym
8516         * src/pic16/pcode.c: added new pCodeInstruction entry for BANKSEL
8517         * (newpCodeOpBit): added PIC_OPTYPE subt in function prototype,
8518         * (pic16_findPrevInstruction): fixed, it returned nothing,
8519         * (insertBankSwitch): fixed to emit banksel/skip and skip/banksel
8520         instruction combinations,
8521         * (pic16_FixRegisterBanking): heavily reorganised,
8522         * (pic16_AnalyzeBanking): if generating banksel directives is
8523         disabled, then don't call FixRegisterBanking at all,
8524         * src/pic16/ralloc.c (bitEQUs, aliasEQUs, allDefsOutOfRange):
8525         completely removed,
8526         * (pic16_writeUsedRegisters): added call to pic16_dump_gsection
8527
8528 2004-06-29 Bernhard Held <bernhard AT bernhardheld.de>
8529
8530         * src/SDCCglue.c (printChar): fixed bug #973350, patch provided by
8531         Phuah Yee Keat <yk.phuah AT nestac.com>
8532
8533 2004-06-28 Vangelis Rokas <vrokas AT otenet.gr>
8534
8535         * src/pic16/glue.c (pic16createInterruptVect): function now emits
8536         correctly the IVT even if it is relocated to some other location
8537
8538 2004-06-28 Vangelis Rokas <vrokas AT otenet.gr>
8539
8540         * device/include/pic16/pic18fregs.h: added case for pic18f2220.h
8541         * device/include/pic16/pic18f2220.h: NEW,
8542         * device/lib/pic16/libdev/pic18f2220.c: NEW,
8543         * device/lib/pic16/libdev/Makefile: added 18f2220 in DEVS,
8544         * src/pic16/device.c (struct Pics16): added info for 18f2220,
8545         * src/pic16/device.h (struct pic16_options): added ivt_loc and
8546         nodefaultlibs, ivt_loc is the location of the interrupt vector
8547         table, and nodefaultlibs signs that default libraries should not be
8548         linked in link stage,
8549         * src/pic16/gen.c (genFunction): relocate interrupt vector functions
8550         according to --ivt-loc argument,
8551         * src/pic16/main.c (_process_pragma): emit '_stack' as public symbol
8552         when pragma stack is found,
8553
8554 2004-06-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8555
8556         * src/mcs51/peeph.def: added peepholes 182.d (return 0.0),
8557         256 (range check), 257 (do while), 258.a-f (bit banging
8558         f.e. on 3-wire SPI bus)
8559
8560 2004-06-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8561
8562         * src/SDCClrange.c (findNextUseSym): fixed a live range bug with
8563         variables used exclusively within a loop
8564
8565 2004-06-21 Bernhard Held <bernhard AT bernhardheld.de>
8566
8567         * src/mcs51/gen.c (genCpl): quick fix for bug #974835
8568
8569 2004-06-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8570
8571         * src/SDCClrange.c (computeClash): fixed bug #971834
8572
8573 2004-06-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8574
8575         * src/mcs51/gen.c (genCmp): fixed bug #975903
8576         * src/hc08/gen.c (operandsEqu),
8577         * src/ds390/gen.c (operandsEqu),
8578         * src/z80/gen.c (operandsEqu),
8579         * src/pic/gen.c (operandsEqu),
8580         * src/pic16/gen.c (operandsEqu),
8581         * src/mcs51/gen.c (operandsEqu): fixed bug #976283
8582         * src/SDCCmain.c (parseCmdLine): report --unknown-option only once
8583
8584 2004-06-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8585
8586         * src/SDCCcse.c (cseBBlock): fixed bug #966963
8587
8588 2004-06-12 Vangelis Rokas <vrokas AT otenet.gr>
8589
8590         * src/pic16/gen.c (genPointerGet): added E_INTERNAL_ERROR for
8591         default case in switch statement,
8592         * glue.c (pic16_initPointer): expr is initialised via decoarteType
8593         to eliminate problem with initialisation of pointers, but problem
8594         still exists,
8595         * (pic16_pointerTypeToGPByte): removed, no needed for pic16,
8596         * (emitStaticSegment): removed various lines emitting debug info,
8597         * src/pic16/pcode.c, src/pic16/pcode.h, src/pic16/ralloc.h:
8598         added processor registers for utilizing EEPROM,
8599         * src/pic16/pcode.c (pic16_emitDB): number of DBs emitted is not
8600         configurable and set 8
8601
8602 2004-06-08 Vangelis Rokas <vrokas AT otenet.gr>
8603
8604         * .version: increased version number to 2.4.2,
8605
8606         Cumulative patch for pic16 port
8607         * src/pic16/device.c: changed scheme to dump initial values for
8608         variables in idata segment, all print_idata* functions were removed,
8609         now the pic16_printIval* will be called,
8610         * src/pic16/glue.c: (pic16_initPointer, pic16_pointerTypeToGPByte,
8611         * _pic16_printPointerType, pic16_printPointerType,
8612         * pic16_printGPointerType, pic16_printIvalArray, pic16_printIvalStruct,
8613         * pic16_printIvalBitFields, pic16_printIvalFuncPtr, pic16_printIvalPtr:
8614         NEW, similar to the respective functions in SDCCglue.c,
8615         * src/pic16/pcode.c (pic16_emitDB, pic16_flushDB): reverted to old
8616         way, emitting hex bytes,
8617         * (pic16_emitDS): NEW, emits a string for pointer initialisation,
8618
8619 2004-06-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8620
8621         * src/avr/ralloc.c (serialRegAssign),
8622         * src/xa51/ralloc.c (serialRegAssign),
8623         * src/pic/ralloc.c (serialRegAssign),
8624         * src/pic16/ralloc.c (serialRegAssign),
8625         * src/hc08/ralloc.c (serialRegAssign),
8626         * src/z80/ralloc.c (serialRegAssign),
8627         * src/ds390/ralloc.c (serialRegAssign),
8628         * src/mcs51/ralloc.c (serialRegAssign): fixed bug #964479
8629
8630 2004-06-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8631
8632         * src/SDCCicode.c (geniCodeJumpTable): fixed bug #967601
8633         * src/SDCCpeeph.c (labelIsReturnOnly): fixed bug #966505
8634
8635 2004-06-07 Vangelis Rokas <vrokas AT otenet.gr>
8636
8637         Cumulative patch for pic16 port:
8638         * src/pic16/device.h (typedef PIC16_device) modified fields for
8639         defining microcontrollers,
8640         * src/pic16/device.c: added new info for all devices in Pics16 array,
8641         * src/pic16/gen.c (genPcall): fixed bug that caused the return label
8642         to be optimised out by the pCode optimiser,
8643         * src/pic16/glue.c (pic16emitRegularMap): treat implicit aggragates
8644         specially, bug reported by G.M. Gallant,
8645         * src/pic16/pcode.c (pic16_newpCodeLabelFORCE): NEW, marks a label
8646         as force'd so that cannot be optimised out by pCode optimiser,
8647         * src/pic16/pcode.c,
8648         * src/pic16/pcodepeeph.c,
8649         * src/pic16/pcoderegs.c: many modifications to re-enable peepholes,
8650         they are disabled by default, but can be enabled explicit with
8651         command argument --denable-peeps, for testing,
8652         * device/lib/pic16/startup/Makefile: added --no-peep,--pomit-config-words,
8653         --pomit-ivt in COMPILE_FLAGS
8654
8655 2004-06-06 Maarten Brock <sourceforge.brock AT dse.nl>
8656
8657         * src/pic16/pcode.c (pic16_emitDB): removed double semicolon which fails
8658           compilation on MSVC
8659
8660 2004-06-06 Maarten Brock <sourceforge.brock AT dse.nl>
8661
8662         * device/include/sab80515.h: added sfr P6, changed GPL to LGPL
8663
8664 2004-06-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8665
8666         device/include/sab80515.h: fixed bug #967492, DAPR is defined at adress
8667         0xd8, but the correct adress is 0xda. Thanks to anonymous for reporting
8668
8669 2004-06-06 Vangelis Rokas <vrokas AT otenet.gr>
8670
8671         * src/pic16/device.c (pic16_assignConfigWord): fixed bug that
8672         would only assign 0x300001 register.
8673
8674 2004-06-05 Vangelis Rokas <vrokas AT otenet.gr>
8675
8676         * device/lib/pic16/startup/Makefile: added $(MODELFLAGS)
8677         in COMPILE_FLAGS. Thanks to G. Gallant for report.
8678
8679 2004-06-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8680
8681         * doc/sdccman.lyx: minor changes, mentioned beta vendor support
8682         for ds80c400
8683         * src/mcs51/peeph.def: ran unexpand -a over peeph.def
8684         * src/mcs51/peeph.def: removed obsolete peephole 100.a,
8685         added peephole 254 (left shift), 255 (jump table)
8686
8687 2004-06-04 Vangelis Rokas <vrokas AT otenet.gr>
8688
8689         * device/lib/Makefile.in: removed comment line with model-pic16,
8690         * (target port-specific-objects-pic16): the libraries and objects
8691         are copied to the build directory form the device/lib/pic16/bin
8692         directory
8693
8694         Cumulative patch concerning pic16 port:
8695         * library directory has been re-organized,
8696         * added support for PIC18F1220,
8697         * added headers and library sources for chips 18f1220,18f6520,
8698         18f6620,18f6680,18f6720,18f8520,18f8620,18f8680,18f8720
8699
8700         * configuration registers setting has changed, now each supported
8701         device has a complete description of the registers it uses,
8702         * all initialisations are moved to idata sections, these section
8703         can be absolute or relocatable,
8704         * fixed initialisation of codespace variables,
8705         * fixed warning about PCLATU and gpsim,
8706         * src/pic16/gen.c (genCmp): now can handle partially iCodes with no ifx,
8707         * (genAssign): use table reads when assigning from variables in codespace,
8708         * src/pic16/glue.c (pic16emitStaticSeg): fixed to correctly initialise
8709         char/int variables placed in codespace,
8710         * (pic16_emitConfigRegs): NEW, emits a list with configuration
8711         registers set in .asm file, no need for --pomit-config-words anymore,
8712         * (pic16glue): some 8051 legacy segments are commented out
8713         (to be removed completely),
8714         * added support for alternative assembler and linker with --asm=
8715         and --link= command line arguments,
8716         * peepholes are disabled automatically in the port, no need to
8717         specify on command line,
8718         * port supports natively char/int/long multiplication, but converts
8719         all divisions to support functions,
8720         * main.c: pic16_linkCmd and pic16_asmCmd changed to force output
8721         to the file set in variable $2,
8722         * pcode.c (pic16_emitDB, pic16_flushDB): modified to print printable
8723         strings in ASCII format and not in hex,
8724         * ralloc.c (serialRegAssign): added a triplet of conditional calls
8725         to pic16_allocDirReg for IC_RESULT, IC_LEFT and IC_RIGHT so to
8726         allocate proper register if iCodes aren't temporary,
8727
8728 2004-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
8729
8730         * support/regression/tests/zeropad.c: added TEST_G macro for alpha
8731
8732 2004-06-02 Vangelis Rokas <vrokas AT otenet.gr>
8733
8734         * src/pic16/gen.c (genPcall): warning about gpsim and PCLATU
8735         is commented out
8736
8737 2004-06-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8738
8739         * src/hc08/gen.c (genPointerGetSetOfs): disabled optimization if
8740         computed address is reused
8741         * src/hc08/gen.c (genPackBits): fixed offsets in assignments to
8742         multi-byte bitfields
8743
8744 2004-06-01 Maarten Brock <sourceforge.brock AT dse.nl>
8745
8746         * src/z80/gen.c: (genArrayInit): must check for pointers too
8747
8748 2004-06-01 Maarten Brock <sourceforge.brock AT dse.nl>
8749
8750         * support/regression/tests/zeropad.c: never meant to commit the
8751           nestedstruct test: removed, added check for GCC version
8752
8753 2004-05-31 Maarten Brock <sourceforge.brock AT dse.nl>
8754
8755         * src/SDCCast.c (createIvalArray): fixed bug 770487 SIGSEGV
8756         * src/SDCCglue.c (emitRegularMap): fixed bug 770484 allocation problem
8757         * src/SDCCglue.c (initPointer, printIvalType, printIvalStruct,
8758           printIvalArray, printIvalFuncPtr, printIvalPtr, printIval): fixed
8759           bugs 928906 and 954082 half-empty initializers
8760         * src/SDCCsymt.h,
8761         * src/SDCCsymt.c (getAllocSize): added for above fix
8762         * src/z80/gen.c (genArrayInit): fixed bug 741044
8763         * support/regression/tests/zeropad.c: added tests
8764
8765 2004-05-30 Vangelis Rokas <vrokas AT otenet.gr>
8766
8767         * src/pic16/device.c (pic16_dump_section): corrected bug which
8768         caused some symbols of the libraries to be misplaced
8769
8770 2004-05-28 Vangelis Rokas <vrokas AT otenet.gr>
8771
8772         * src/pic16/glue.c,
8773         * src/pic16/ralloc.h,
8774         * src/pic16/ralloc.cc: prefixed IS_CONFIG_ADDRESS with PIC16_
8775         to fix conflict with pic port
8776
8777 2004-05-28 Vangelis Rokas <vrokas AT otenet.gr>
8778
8779         * src/pic16/glue.c (pic16emitStaticSeg): do not print as publics or
8780         externs configuration variables,
8781         * src/pic16/ralloc.h,
8782         * src/pic16/ralloc.cc: IS_CONFIG_ADDRESS is made public and added
8783         prototype in header, commented out some debug messages
8784
8785 2004-05-26 Vangelis Rokas <vrokas AT otenet.gr>
8786
8787         * src/pic16/glue.c,
8788         * src/pic16/main.c,
8789         * src/pic16/pcode.c: added gpasm directives #FILE/#LINE
8790         for gpasm COFF object generation. Thanks to D. Hawkins for
8791         his patch info
8792
8793 2004-05-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8794
8795         * src/ds390/main.c,
8796         * src/mcs51/main.c: fixed sort order of mnemonics (thanks to Maarten
8797         Brock for spotting this)
8798         * src/ds390/gen.c (genEndFunction),
8799         * src/mcs51/gen.c (genEndFunction): always save psw if function is an
8800         interrupt handler and critical. Disable push/pop optimizations when
8801         peephole optimizations disabled.
8802
8803 2004-05-25 Vangelis Rokas <vrokas AT otenet.gr>
8804
8805         Updated pic16 library sources and headers.
8806         * device/lib/pic16/pic18f*/ ,
8807         * device/include/pic16/*.h: modified to handle structured SFR
8808         definitions
8809
8810 2004-05-25 Vangelis Rokas <vrokas AT otenet.gr>
8811
8812         * src/port.h (PORT structure): added hook initPaths, now each
8813         port can declare its own default search paths,
8814         which can been seen with the --print-search-dirs option,
8815         see pic16 port for example,
8816         * src/SDCCmain.c (setBinPaths, setIncludePaths, setLibPath,
8817         setDataPaths): test to options.printSearchDirs is ifdef'ed out,
8818         * (doPrintSearchDirs): NEW, replaces in a central manner the
8819         printing of search dirs which was split in set*Paths functions,
8820         * (main): added call to port->initPaths and doPrintSearchDirs,
8821         * src/avr/main.c,
8822         * src/ds390/main.c,
8823         * src/hc08/main.c,
8824         * src/izt/i186.c,
8825         * src/izt/tlcs900h.c,
8826         * src/mcs51/main.c,
8827         * src/pic/main.c,
8828         * src/pic16/main.c: modified port structures to reflect addition of
8829         initPaths hook,
8830
8831         * src/pic16/device.c (regCompare): registers are finally sorted by name,
8832         * (pic16_dump_section): for registers in same address reserve memory once,
8833         * src/pic16/device.h (struct PIC16_device): changed variable gen_banksel
8834         to no_banksel,
8835         * src/pic16/genarith.c (pic16_genPlus): added code to handle cases where
8836         result is greater in size than right or left,
8837         * (pic16_genUMult8X8_8): there are some cases where the result can
8838         be 16 bits size, so handle these,
8839         * src/pic16/gen.c: changed some pic16_emitpcomment to DEBUGpic16_emitcode,
8840         * (pic16_outBitC): modified to emit pcodes,
8841         * (pic16_storeForReturn): using is_LitOp to see if operand is literal
8842         or not,
8843         * (genDivOneByte): implemented algorithm to divide 8-bits,
8844         * (genCmp): uncommented goto, but issues still exist,
8845         * (genAnd): fixed a bug with variables >8bits,
8846         * (genPackBits): optimization added that uses BCF/BSF to change a
8847         single bit,
8848         * (genAssign): fixed bug when assigning floating point literals,
8849         * src/pic16/glue.c (pic16glue): added assembler directive 'code' before
8850         __sdcc_gsinit_startup label,
8851         * src/pic16/main.c (_pic16_init): removed search directory
8852         initialisations,
8853         * (_pic16_initPaths): NEW, used to initialise search directories,
8854         * (_hasNativeMulFor): support functions for all except char/int
8855         multiplication, and char division,
8856         * (PIC16_port struct): modified entry for native mul support,
8857         * src/pic16/pcode.c (insertBankSwitch): modified to support the renamed
8858         no_banksel option,
8859         * (buildCallTree): call to register_usage is ifdef'ed out,
8860
8861 2004-05-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8862
8863         * device/include/string.h: applied Stas Sergeev's patch to make this
8864         header file compatible with the preprocessor -Wundef option
8865         * src/SDCCmain.c (main): abort compilation if preprocessor reports
8866         failure (fixes bug #941458)
8867
8868 2004-05-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8869
8870         * src/SDCCopt.c (killDeadCode): fixed bug #907733
8871         * support/Util/SDCCerr.c: reworded E_AUTO_ASSUMED diagnostic to clarify
8872         that the variable, not the function, should be static
8873         * src/SDCCval.c (valCastLiteral): fixed bit initialization from literal
8874         to be consistent with non-literal case
8875
8876 2004-05-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8877
8878         * src/SDCCast.c (isConformingBody): fixed bug #949967
8879         * src/SDCCopt.c (cnvToFcall, cnvToFloatCast, cnvFromFloatCast,
8880         convilong): fixed bug #952086
8881
8882 2004-05-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8883
8884         * src/SDCCmem.c (allocVariables): fixed bug #955321
8885
8886 2004-05-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8887
8888         * src/hc08/main.c (_hc08_genAssemblerEnd),
8889         * src/SDCCdwarf2.c (dwOpenFile, dwCloseFile, dwWriteFunction,
8890         dwWriteModule, dwWriteCLine, dwWriteALine, dwarf2FinalizeFile):
8891         completely eliminated the use of a temporary file
8892         * src/SDCCdwarf2.c (dwWriteAttr): fixed bug with location list offset
8893         when more than one file linked
8894         * src/SDCCloop.c (pointerAssigned): fixed bug #954163
8895
8896 2004-05-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8897
8898         * src/SDCCval.c (valForArray): applied Maarten Brock's patch #947682
8899         which fixes bug #543481
8900         * support/regression/tests/bug-751703.c: fixed comments left from a
8901         cut and paste error
8902         * src/SDCCdwarf2.c (dwCloseFile): don't explicitly close a temp file
8903         * src/SDCCdwarf2.c (dwTagFromType): added bitfield support
8904         * src/SDCCdwarf2.c (dwWriteSymbolInternal): handle extern within local
8905         scopes
8906         * src/SDCCdwarf2.c (dwWriteLineNumber): line number deltas are signed
8907         * src/SDCCmain.c (processFile, parseCmdLine): non-alphanumeric chars
8908         are now changed to underscores in moduleName
8909
8910 2004-05-15 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8911
8912         * as/mcs51/lkmem.c: better fix for bug #954173
8913
8914 2004-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
8915         committed by Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8916
8917         * device/include/c8051f020.h: newly added SiLabs (Cygnal) header file
8918         * device/include/c8051f000.h,
8919         * device/include/c8051f120.h,
8920         * device/include/c8051f300.h,
8921         * device/include/c8051f310.h,
8922         * device/include/c8051f320.h: updated (added _XPAGE, CAPN, CAPP,
8923         PWM16) and detab'ed
8924
8925 2004-05-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8926
8927         * doc/sdccman.lyx: mentioned sourceforge's delay between web frontend
8928         and mailing lists, doc'ed --no-peep-comments, removed reference
8929         to knoppix (newest version has no LyX/LaTeX), other minor changes
8930         * src/SDCCglue.c (glue): save 2 bytes stack space with
8931         option --main-return. The ljmp could probably be avoided too
8932
8933 2004-05-14 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8934
8935         * as/mcs51/lkmem.c, as/mcs51/lkaomf51: fixed bug 954173
8936
8937 2004-05-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8938
8939         * src/SDCCsymt.h: added IS_AUTO(symbol) test macro
8940         * src/SDCCopt.c (isLocalWithoutDef),
8941         * src/SDCCicode.c (operandFromSymbol): use the IS_AUTO test macro
8942         which adds a !IS_EXTERN codition. Fixes bugs #877426 and #751703.
8943         (credit to Maarten Brock for patch #949363, on which this is based)
8944         * support/regression/tests/bug-751703.c: some test cases of extern used
8945         within inner scopes.
8946
8947 2004-05-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8948
8949         * src/SDCCdwarf2.c (dwMatchTypes): structs must have matching
8950         SPEC_STRUCT
8951         * src/SDCCdwarf2.c (dwTagFromType): fix to handle recursive
8952         struct definitions
8953         * src/SDCCdwarf2.c (dwWriteModule, dwNewDebugSymbol, dwWriteEndFunction,
8954         dwWriteLabel): fix to create valid debugger symbols even when
8955         the module name has non-alphanumeric symbols in it
8956         * src/SDCCdwarf2.c (dwWriteSymbolInternal): better detection for
8957         when a variable's allocation has been optimized away
8958
8959
8960 2004-05-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8961
8962         * src/hc08/gen.c (hc08_emitDebuggerSymbol),
8963         * src/hc08/main.c,
8964         * src/mcs51/gen.c (mcs51_emitDebuggerSymbol),
8965         * src/mcs51/main.c,
8966         * src/ds390/gen.c (ds390_emitDebuggerSymbol),
8967         * src/ds390/main.c,
8968         * src/z80/gen.c (z80_emitDebuggerSymbol),
8969         * src/z80/main.c,
8970         * src/pic/gen.c (pic14_emitDebuggerSymbol),
8971         * src/pic/main.c,
8972         * src/pic16/gen.c (pic14_emitDebuggerSymbol),
8973         * src/pic16/main.c,
8974         * src/avr/gen.c (avr_emitDebuggerSymbol),
8975         * src/avr/main.c,
8976         * src/xa51/gen.c (xa51_emitDebuggerSymbol),
8977         * src/xa51/main.c,
8978         * src/SDCCdebug.c (emitDebuggerSymbol),
8979         * src/SDCCdebug.h,
8980         * src/port.h: added a debugger struct to the port struct. Added a
8981         callback for defining debugger symbols
8982
8983         * src/SDCCast.c (createLabel),
8984         * src/SDCC.y (labeled_statement): mark all compiler generated labels
8985         with isitmp = 1
8986         * src/SDCCicode.h,
8987         * src/SDCCicode.c (geniCodeFunctionBody): added a link from the FUNCTION
8988         iCode back to the ast for the function
8989
8990         * src/hc08/ralloc.c (hc08_assignRegisters),
8991         * src/hc08/ralloc.h: define a regs struct for the stack pointer. Removed
8992         unneeded fields from the regs struct.
8993         * src/hc08/gen.c (transferRegReg, genFunction, genEndFunction): use the
8994         pushReg() & pullReg() functions instead of emitcode()
8995
8996         * src/hc08/gen.c (genLabel, genhc08Code),
8997         * src/SDCCdebug.h: Added additional debugger hooks needed for DWARF
8998
8999         * src/cdbFile.c (cdbWriteLabel, cdbWriteScope): Added stubs for unneeded
9000         debugger hooks
9001
9002         * src/hc08/gen.c (genEndFunction, genhc08Code),
9003         * src/hc08/gen.h,
9004         * src/mcs51/gen.c (genEndFunction, gen51Code),
9005         * src/mcs51/gen.h,
9006         * src/ds390/gen.c (genEndFunction, gen390Code),
9007         * src/ds390/gen.h,
9008         * src/z80/gen.c (genEndFunction, genZ80Code),
9009         * src/z80/gen.h,
9010         * src/z80/z80.h,
9011         * src/pic/gen.c (genEndFunction, genpic14Code),
9012         * src/pic/gen.h,
9013         * src/pic16/gen.c (genEndFunction, genpic16Code),
9014         * src/pic16/gen.h,
9015         * src/avr/gen.c (genEndFunction, genAVRCode),
9016         * src/avr/gen.h,
9017         * src/xa51/gen.c (genEndFunction, genXA51Code),
9018         * src/xa51/gen.h,
9019         * src/cdbFile.c (cdbWriteFunction, cdbWriteEndFunction): moved cdb
9020         specific code to cdbFile.c and out of the backend code generators
9021
9022         * as/hc08/lkmain.c (main): removed OMF51 support from link-hc08
9023         * as/hc08/lkarea.c (lnkarea): areas with NOLOAD attribute default
9024         starting address is now 0
9025
9026         * as/hc08/asm.h,
9027         * as/hc08/m08pst.c,
9028         * as/hc08/asmain.c (asmbl): implemented the .sleb128 and .uleb128
9029         assembler directive for DWARF support
9030         * as/hc08/lkelf.c (elf): only increment address when rtflg[] set
9031
9032         * src/src.dsp,
9033         * src/Makefile.in,
9034         * src/SDCCdwarf2.c: preliminary DWARF (ver 2) debugger data generator
9035
9036 2004-05-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9037
9038         * src/hc08/gen.c (genJumpTab, emitcode, genhc08code): fixed stack error
9039         and inappropriate peephole optimization in jump tables
9040
9041 2004-04-30 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9042
9043         * as/hc08/m08pst.c,
9044         * src/SDCCglue.c: sdccopt works for the hc08 port now
9045
9046 2004-04-27 Bernhard Held <bernhard AT bernhardheld.de>
9047
9048         * src/SDCCicode.c (geniCodePreInc, geniCodePreDec): fixed bug #942130
9049
9050 2004-04-27 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9051
9052         * as/hc08/lkelf.c: sdccconf.h is not available in WIN32
9053
9054 2004-04-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9055
9056         * src/SDCCpeeph.c (replaceRule): support empty replacement peephole
9057         rules
9058         * src/SDCCmain.c,
9059         * src/SDCCglobl.h,
9060         * src/SDCCpeeph.c (getPeepLine): new option --no-peep-comments omits
9061         comments from the peephole optimizer replacement rules
9062         * src/SDCCmem.c (printAllocInfoSeg): give actual location of spilled
9063         symbols
9064         * src/SDCCcse.c (updateSpillLocation),
9065         * src/SDCCopt.c (killDeadCode, findReqv): better tracking of register
9066         equivalents
9067         * src/hc08/ralloc.c (regTypeNum): pseudo symbols must be in DATA only
9068         * src/hc08/main.c (_hc08_finaliseOptions): made pointers to stack
9069         objects far pointers
9070
9071 2004-04-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9072
9073         * src/SDCCsymt.h: a missing part of my last change
9074         * src/pic/ralloc.c (regTypeNum),
9075         * src/pic16/ralloc.c (regTypeNum): fixed statement/declaration order
9076
9077 2004-04-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9078
9079         * src/SDCCicode.h,
9080         * src/SDCCicode.c (aggrToPtrDclType),
9081         * src/SDCCptropt.h,
9082         * src/SDCCptropt.c (ptrBaseRematSym, ptrPseudoSymSafe,
9083         ptrPseudoSymConvert),
9084         * src/pic/ralloc.c (regTypeNum),
9085         * src/pic16/ralloc.c (regTypeNum),
9086         * src/hc08/ralloc.c (regTypeNum),
9087         * src/ds390/ralloc.c (regTypeNum),
9088         * src/mcs51/ralloc.c (regTypeNum): check for dependancy hazards before
9089         creating pseudo symbols (fixed bugs #777768, #930484, and #933966)
9090
9091 2004-04-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9092
9093         * link/z80/lkmain.c (afile),
9094         * as/hc08/lkmain.c (afile),
9095         * as/mcs51/lkmain.c (afile): fix suggested by Maarten Brock to
9096         prevent a pointer problem when a filename has no directory and
9097         no extension specified.
9098
9099 2004-04-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9100
9101         * link/z80/lkmain.c (afile): allow periods in directory names
9102         * link/z80/lkmain.c (afile),
9103         * as/mcs51/lkmain.c (afile),
9104         * as/hc08/lkmain.c (afile): allow linker script file to have an
9105         extension other than ".lnk"
9106         * link/z80/lklex.c (getfid),
9107         * link/z80/lkmain.c (parse),
9108         * as/mcs51/lklex.c (getfid),
9109         * as/mcs51/lkmain.c (parse),
9110         * as/hc08/lklex.c (getfid),
9111         * as/hc08/lkmain.c (parse): Support comments in the linker script
9112         file on lines by themselves and after filenames
9113
9114 2004-04-20 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9115
9116         * as/link_hc08.dsp: Added as/hc08/lkelf.c to project.
9117
9118 2004-04-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9119
9120         * src/z80/peeph-z80.def: removed some peephole rules that don't
9121         work with multibyte arithmetic (fixed bug #937126)
9122         * src/mcs51/peeph.def: fixed peephole rules 150-158 to apply only
9123         to registers and not global variables
9124         * src/SDCCicode.c (geniCodeAssign, ast2iCode, geniCodePostInc,
9125         geniCodePreInc, geniCodePostDec, geniCodePreDec,
9126         geniCodeLogicAndOr, geniCodeConditional): enforce strict lvalue
9127         checking for assignments not internally generated (fixed bug #931895)
9128         * src/SDCC.y (postfix_expr): ignore typedefs when looking for a
9129         structure member (fixed bug #930072)
9130
9131 2004-04-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9132
9133         * src/SDCCmain.c (linkEdit),
9134         * src/hc08/main.c (_hc08_parseOptions),
9135         * as/hc08/Makefile.in,
9136         * as/hc08/aslink.h,
9137         * as/hc08/asm.h,
9138         * as/hc08/m08pst.c,
9139         * as/hc08/lkrloc.c (relr, rele),
9140         * as/hc08/lkarea.c (lnkarea)
9141         * as/hc08/lkmain.c (afile, parse),
9142         * as/hc08/lkelf.c: support for ELF output
9143         * as/hc08/lks19.c (s19),
9144         * as/hc08/lkihx.c (ihx): ignore areas with the NOLOAD attribute
9145
9146 2004-04-17 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9147
9148         * as/mcs51/lkihx.c: Fixed bug #899105.
9149
9150 2004-04-16 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9151
9152         * doc/sdccman.lyx: Added instructons on how to convert MSVC .dsw and
9153         .dsp files from Unix to DOS.
9154
9155 2004-04-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9156
9157         * doc/sdccman.lyx: removed the ANSI-C noncompliance note regarding
9158         function pointers; we have been compliant for several months now.
9159         * src/mcs51/ralloc.c (serialRegAssign): enabled part of my 2004-04-13
9160         change that was accidently commented out
9161         * src/mcs51/gen.c (freeAsmop, getFreePtr, freeForBranchAsmop, genIfxJump,
9162         genCmpEq, jmpTrueOrFalse, genCmp, genAnd, genOr, genXor, genIfx): fixed
9163         bug #922319
9164
9165 2004-04-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9166
9167         * src/hc08/gen.c: output of all of the internal debugging information
9168         is now controlled by the D() macro; it is disabled by default
9169
9170 2004-04-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9171
9172         * src/mcs51/ralloc.c (serialRegAssign, fillGaps, allocThisReg): try
9173         harder to keep the same registers during a CAST iCode
9174         * src/SDCCopt.c (optimizeCastCast, eBBlockFromiCode): casts of char to
9175         long via int can be done in a single cast, if the signedness is
9176         correct.
9177         * support/regression/tests/bug-927659.c: fixed to avoid conflict with
9178         putchar() in tinibios.c in ds390's library
9179
9180 2004-04-12 Bernhard Held <bernhard AT bernhardheld.de>
9181
9182         * src/SDCCast.c (decorateType): fixed bug #898889,
9183         cast result of a literal complement too
9184         * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #930931,
9185         fixed check for bitfields
9186
9187 2004-04-11 Bernhard Held <bernhard AT bernhardheld.de>
9188
9189         * src/SDCCicode.c (geniCodeLogic): made it static,
9190         (geniCodeLogicAndOr): added in order to fix bug #905492,
9191         (ast2iCode): fixed bug #905492
9192         * support/regression/tests/bug-905492.c: added
9193         * src/SDCCast.c (decorateType): don't decorate/process parms twice,
9194         (processParms): fixed bug #927659: don't copy parms, this will clear
9195         decorated flag
9196         * support/regression/tests/bug-927659.c: added
9197
9198 2004-03-29 Bernhard Held <bernhard AT bernhardheld.de>
9199
9200         * src/SDCCast.c (addCast): don't cast float to char
9201         * device/lib/libsdcc.lib: added _memmove
9202
9203 2004-03-28 Bernhard Held <bernhard AT bernhardheld.de>
9204
9205         * device/lib/large/Makefile: fixed parallel execution by
9206         replacing `make` by `$(MAKE)`
9207
9208 2004-03-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9209
9210         * src/hc08/gen.c (genPointerGetSetOfs): correctly handle 1 byte array
9211         offsets (fixes bug #923936)
9212
9213 2004-03-26 Bernhard Held <bernhard AT bernhardheld.de>
9214
9215         * device/lib/small/Makefile: fixed parallel execution by
9216         replacing `make` by `$(MAKE)`
9217
9218 2004-03-23 Bernhard Held <bernhard AT bernhardheld.de>
9219
9220         * device/lib/vprintf.c (vsprintf): minor optimization, see bug #801101
9221
9222 2004-03-23  Scott Dattalo  <scott AT dattalo.com>
9223
9224         * src/pic/gen.c (genCpl): multi-byte complements were not working.
9225         * src/regression/Makefile: Regression test was not running.
9226
9227 2004-03-23 Bernhard Held <bernhard AT bernhardheld.de>
9228
9229         * src/SDCCast.c (resultTypePropagate, decorateType): avoid promotion to int for
9230         complement if possible
9231         * src/SDCCval.c (valComplement),
9232         * src/SDCCicode.c (operandOperation): fixed complement of literal
9233         * support/regression/tests/onebyte.c (testComplement): added
9234
9235 2004-03-22 Bernhard Held <bernhard AT bernhardheld.de>
9236
9237         * src/SDCCast.c (processParms): fixed bug #920866; decorateType() can
9238         return an optimized tree; actually replace actParm with the new tree
9239         * src/SDCCast.h: added some parantheses to remove side effects
9240         * support/regression/tests/bug-920866.c
9241
9242 2004-03-21  Scott Dattalo  <scott AT dattalo.com>
9243         * src/pic/gen.c, src/pic/gen.h, src/pic/genarith.c, src/pic/pcode.c:
9244         Bit operands were not being handled properly in the pic14 port.
9245         (now src/regression/add.c passes again).
9246
9247 2004-03-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9248
9249         * src/SDCC.y (labeled_statement): case and default no longer require
9250         a following statement (RFE #893037)
9251
9252 2004-03-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9253
9254         * src/mcs51/gen.c (pushSide, genSignedRightShift, genDjnz, geniPush):
9255         use MOVA macro to avoid "mov a,acc" when peephole optimizer is
9256         disabled (fixes bug #916294)
9257         * sim/ucsim/s51.src/mov.cc (inst_mov_a_addr): Throw an error on
9258         "mov a,acc"; patch provided by Lenny Story
9259         * device/include/mc68hc908gp32.h: header contibuted by Juan Gonzalez
9260
9261 2004-03-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9262
9263         * src/mcs51/gen.c (genFunction): optimize RECEIVE in reentrant
9264         functions
9265         * src/ds390/gen.c (genFunction, genEndFunction),
9266         * src/ds390/ralloc.c (ds390_assignRegisters),
9267         * src/mcs51/gen.c (genFunction, genEndFunction, mcs51_assignRegisters):
9268         * src/mcs51/ralloc.c (mcs51_assignRegisters): Skip optimizing registers
9269         pushed if there are parameters passed on the stack. Also, a cleaner
9270         way to decide if r0/r1 should be pushed/popped. (Together they fix
9271         bug #918693)
9272
9273 2004-03-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9274
9275         * doc/sdccman.lyx,
9276         * device/lib/mcs51/crtpagesfr.asm,
9277         * device/lib/mcs51/crtxinit.asm,
9278         * device/lib/mcs51/crtxstack.asm: Changed name of _PAGESFR to _XPAGE
9279         to avoid confusion with Si Lab's SFRPAGE register.
9280
9281 2004-03-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9282
9283         * src/SDCCglue.c (emitMaps): allow public sfr variables
9284         * src/SDCCglue.c (initialComments): include compiler build date
9285         with compiler version and put the timestamp of the generated
9286         assembly file on a serperate line to be less confusing.
9287         * src/port.h: added genInitStartup hook
9288         * src/avr/main.c,
9289         * src/ds390/main.c,
9290         * src/hc08/main.c,
9291         * src/pic/main.c,
9292         * src/pic16/main.c,
9293         * src/xa51/main.c,
9294         * src/z80/main.c: genInitStartup initialize as NULL (default to
9295         historical behaviour)
9296         * src/SDCCglue.c (glue): _sdcc_gsinit_startup is now port specific.
9297         * src/mcs51/main.c: (_mcs51_genInitStartup, _mcs51_genExtraAreas,
9298         _mcs51_genXINIT, _mcs51_genRAMCLEAR): link initialization code from the
9299         library instead of hard coding it into the compiler.
9300         * support/regression/ports/mcs51-stack-auto/spec.mk,
9301         * src/SDCCmain.c (linkEdit): added mcs51.lib to the link libraries
9302         * device/lib/mcs51/Makefile,
9303         * device/lib/small/Makefile,
9304         * device/lib/large/Makefile,
9305         * device/lib/mcs51/crtpagesfr.asm,
9306         * device/lib/mcs51/crtstart.asm,
9307         * device/lib/mcs51/crtxclear.asm,
9308         * device/lib/mcs51/crtxinit.asm,
9309         * device/lib/mcs51/crtclear.asm,
9310         * device/lib/mcs51/crtxstack.asm: move most of the mcs51 C runtime
9311         startup/initialization out of src/SDCCglue.c and src/mcs51/main.c
9312         and into user configurable files.
9313         * device/lib/clean.mk: clean mcs51 directory too
9314         * support/regression/tests/longlit.c: added static to T1 declaration
9315         * doc/sdccman.lyx: documented _PAGESFR sfr for customizing pdata
9316         accesses in the initialization code
9317
9318 2004-03-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9319
9320         * device/include/mc68hc908qy.h: corrected declarations of FLBPR and
9321         OSCTRIMVAL as noted in bug #916008
9322
9323 2004-03-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9324
9325         * src/SDCCloop.c (basicInduction): fixed bug with loop induction
9326         in loops with multiple exits (reported as incorrect registers
9327         used by Martin Helmling in Sdcc-user list)
9328
9329 2004-03-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9330
9331         * src/ds390/main.c (_ds390_genAssemblerPreamble): cosmetic change,
9332         made ds390 register extensions look less like error messages
9333
9334 2004-03-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9335
9336         * src/SDCCglue.c (printIvalPtr): fixed bug with pointer initializer
9337         reported by Adam Wozniak in Sdcc-user list
9338
9339 2004-03-10 Bernhard Held <bernhard AT bernhardheld.de>
9340
9341         * src/SDCCast.c (decorateType): fixed with bug and promotion in
9342         arithmetic optimizations, added debug output
9343
9344 2004-03-09 Bernhard Held <bernhard AT bernhardheld.de>
9345
9346         * device/lib/time.c (mktime): fixed bug reported by Bert Thomas
9347         * sdcc.spec: updated and split sdcc into 3 rpms
9348         * src/SDCCast.c (decorateType): &|^ don't need addCast(); addCast() is
9349         needed for literals of LEFT_OP and '+'
9350         * src/SDCCicode.c (geniCodeLogic): I must have been braindead when I
9351         introduced RESULT_TYPE_NOPROM
9352         (geniCodeMultiply): fixed logic for decision if mul is optimized to
9353         left shift
9354         * src/SDCCsymt.c (computeType): op is int; added RESULT_TYPE_OTHER;
9355         limited promotion to int only for '*'
9356         * src/SDCCsymt.h (computeType): op is int, removed RESULT_TYPE_NOPROM
9357
9358 2004-03-09 Hans Dorn <hjdorn AT users.sourceforge.net>
9359
9360         * src/pic16/gen.c (genSkip),
9361         (genc16bit2lit), (gencjneshort): commented out
9362         (is_LitOp): new helper function, checks operand type
9363         (genCmpEq): rewritten
9364
9365 2004-03-08 Bernhard Held <bernhard AT bernhardheld.de>
9366
9367         * support/regression/tests/bug-908454.c: added
9368
9369 2004-03-07 Bernhard Held <bernhard AT bernhardheld.de>
9370
9371         * src/SDCCast.c (addCast): fixed bug #908454 by promoting bits to char
9372         * src/SDCCicode.c (usualBinaryConversions): op needs int type
9373         (geniCodeCast): cosmetic, don't preserve bit storage class
9374         (geniCodeLeftShift): added promotion
9375         (geniCodeLogic): fixed regression
9376         * src/SDCCsymt.c (computeTypeOr): accept bits too
9377         (compareType): 2nd part of fix for bug #908454, needed for bitfields
9378
9379 2004-03-07  Borut Razem <borut.razem AT siol.net>
9380
9381         * support/Util/findme.c: alloca() replaced with malloc()/free() pair
9382
9383 2004-03-06 Vangelis Rokas <vrokas AT otenet.gr>
9384
9385         * src/pic16/ralloc.c (pic16_genPackRegisters): reverted to old
9386         version of pic16_genPackRegisters which does not check if ic is a
9387         CAST operator,
9388         * src/pic16/gen.c (ifxForOp): disabled new and untested code in
9389         function cause string1.c regression test fails
9390
9391 2004-03-06 Bernhard Held <bernhard AT bernhardheld.de>
9392
9393         * sim/ucsim/configure.in,
9394         * sim/ucsim/configure,
9395         * sim/ucsim/doc/Makefile.in: use docdir
9396         * src/SDCC.y: fixed sbit atrributes
9397         * src/SDCCast.c (getResultTypeFromType): added support for bitfields
9398         * src/SDCCast.c (decorateType): |^& need special promotion handling
9399         * src/SDCCast.h,
9400         * src/SDCCsymt.h: moved definition of RESULT_TYPE
9401         * src/SDCCsymt.h (computeType),
9402         * src/SDCCicode.c: computeType() needs op
9403         * src/SDCCsymt.c (checkTypeSanity),
9404         * doc/sddman.lyx: "plain" bitfields are unsigned
9405         * src/SDCCsymt.c (computeTypeOr): added
9406         * src/SDCCsymt.c (computeType): added support for bitfields, fixed
9407         |^& ops
9408         * src/SDCCval.c (val*): computeType() needs op
9409         * src/SDCCval.c (valCastLiteral): fixed casting of bitfields
9410         * support/regression/tests/onebyte.c: added tests for |^&
9411
9412 2004-03-06 Hans Dorn <hjdorn AT users.sourceforge.net>
9413
9414         * src/pic16/gen.c: (genpic16Code) use copy of printILine's output
9415         for writing icode into asm output.
9416
9417 2004-03-05 Vangelis Rokas <vrokas AT otenet.gr>
9418
9419         * src/pic16/device.c: added some debug lines enabled
9420         with macro DEBUG_CHECK,
9421         * src/pic16/genarith.c: more debug in genPlus,
9422         * (pic16_genUMult8XLit_16, pic16_genUMult8X8_16): removed,
9423         * (pic16_genUMult16X16_16, pic16_genUMult16XLit_16): NEW,
9424         * src/pic16/gen.c: added prototypes for pic16_genMult16X16_16,
9425         * (aopForSym): onStack symbols are re-placed in data memspace,
9426         and onStack flag is cleared,
9427         * (pic16_popGetTempReg, pic16_popReleaseTempReg): modified to
9428         copy temporary pcodeop,
9429         * (genPcall): added warning for not updating PCLATU,
9430         * (genFunction): removed test with IFFUNC_CALLEESAVES, its
9431         always true for pic16 port,
9432         * (genMultOneWord): NEW, supports integer multiplication,
9433         * (genMult): modified to call genMultOneWord,
9434         * (ifxForOp): added warning when return NULL,
9435         * src/pic16/glue.c (pic16emitRegularMap): symbol implicit
9436         flag is set before call to operandFromSymbol for implicit
9437         added structures,
9438         * src/pic16/main.c (_pic16_finaliseOptions): options.float_rent,
9439         options.intlong_rent are set by default,
9440         * (_hasNativeMulFor): modified to allow port generation of integer
9441         multiplication,
9442         * src/pic16/ralloc.c (pic16_allocDirReg): commented out line which
9443         set regtype to REG_SFR for all registers, restricting seting the
9444         accessBank flag for registers 0<= r < 0x80 and 0xf80<=r<=0xfff,
9445
9446 2004-03-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9447
9448         * src/mcs51/peephole.def: added 251.b and 253.x. 253.x are applied
9449         more than 500 times in the regression tests
9450
9451 2004-03-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9452
9453         * support/Util/SDCCerr.h,
9454         * support/Util/SDCCerr.c,
9455         * src/SDCC.y (struct_or_union_specifier, enum_specifier,
9456         enumerator_list),
9457         * src/SDCCsymt.c (addSymChain): show location of oriignal definition
9458         for symbol conflicts.
9459         * support/valdiags/tests/enum.c,
9460         * support/valdiags/tests/tentdecl.c,
9461         * support/valdiags/tests/struct.c: expect possible error messages
9462         referring to original symbol definitions.
9463         * src/SDCC.y (struct_or_union_specifier, struct_declarator),
9464         * src/SDCCsymt.h,
9465         * src/SDCCsymt.c (promoteAnonStructs): support anonymous struct/union
9466
9467 2004-03-03 Hans Dorn <hjdorn AT users.sourceforge.net>
9468
9469         * src/pic16/gen.c (gencjne): fixed for right=REG / left=LIT
9470
9471 2004-02-03 Vangelis Rokas <vrokas AT otenet.gr>
9472
9473         * src/pic16/ralloc.c (newReg): fixed bug #908929
9474
9475 2004-03-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9476
9477         * src/ds390/gen.c: added missing #include "main.h"
9478
9479 2004-03-02 Vangelis Rokas <vrokas AT otenet.gr>
9480
9481         * src/pic16/device.c (checkAddSym): NEW, adds a symbol to set while
9482         checking if symbol is already in set,
9483         * src/pic16/device.h: prototype for checkAddSym,
9484         * src/pic16/gen.c: (_G): added entry interruptvector,
9485         * (assignResultValue): removed some commented out lines,
9486         * (genFunction): check for ISR via sym->type, absolute section for
9487         interrupt code is created via a new pBlock, the goto instruction is
9488         placed now correctly at the interrupt vector position, changed all
9489         references from ivec to _G.interruptvector,
9490         * WREG,STATUS,BSR are not saved in stack upon an entry to interrupt
9491         is the interrupt is a high priority one, same for return from ISR,
9492         * src/pic16/glue.c: changed all calls of addSetHead for publics and
9493         externs to calls of checkAddSym,
9494         * src/pic16/pcode.c (pic16_pBlockConvert2*): emit warning when
9495         pic16_pcode_verbose flag is set,
9496         * src/pic16/pcode.h: extern to pic16_pcode_verbose,
9497         * src/pic16/pcoderegs.c: message about how many registers are saved
9498         will only be emitted if pic16_pcode_verbose flag is set,
9499
9500 2004-03-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9501
9502         * src/ds390/ralloc.h,
9503         * src/ds390/ralloc.c (ds390_regWithIdx),
9504         * src/ds390/gen.c (emitcode),
9505         * src/ds390/main.h,
9506         * src/ds390/main.c (instructionSize, ds390newAsmLineNode, updateOpRW,
9507         ds390opcodeCompare, asmLineNodeFromLineNode, getInstructionSize,
9508         ds390operandCompare, getRegsRead, getRegsWritten,
9509         initializeAsmLineNode): customized instruction size calculation for
9510         ds390, started basis for some register optimizations
9511         * src/ds390/gen.c (gen390Code, emitcode): associate iCodes with
9512         corresponding assembly output
9513         * src/ds390/gen.c (genFunction, genEndFunction): added case to handle
9514         missing push/pop of r0/r1. Optimized push/pops
9515
9516 2004-03-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9517
9518         * src/mcs51/main.c (instructionSize): fixed ACALL size
9519         * src/mcs51/main.c (updateOpRW): fixed bug with @dptr, @a+dptr operands
9520
9521 2004-03-01 Vangelis Rokas <vrokas AT otenet.gr>
9522
9523         * src/pic16/device.c (pic16_dump_section): fixed a bug that allowed
9524         the sorting of rlist with NULL elements
9525         * (print_idataType, print_idata): NEW to create idata sections
9526         * src/pic16/device.h: idataSymSet new variable
9527         * src/pic16/gen.c (genFunction): fixed some bugs in string
9528         comparing, improved the absolute section creation for ISRs,
9529         added FSR0L/FSR0H in registers that are saved in an ISR,
9530         * (genInline): fixed the processing of inline snippets,
9531         now they undergo no process by the peephole optimizer
9532         * src/pic16/glue.c (pic16emitRegularMap): symbols with initialiser
9533         are placed in idataSymSet,
9534         * (pic16emitStaticSeg): extern symbols are added in externs,
9535         * src/pic16/ralloc.c (pic16_allocDirReg): work around to reduce bank
9536         switching when aboslute variables are placed in access bank memory
9537         * (pic16_writeUsedRegs): added call to pic16_dump_idata,
9538         * (packRegsForSupport,packRegsForAccUse,packRegsForOneuse):
9539         commented out with #if,
9540         * (pic16_packRegisters): reintroduce the check for CAST because some
9541         symbols are not correctly handled,
9542         * src/pic16/pcode.h: changed the definition of pCodeAsmDir to hold a
9543         pCodeInstruction instead of pCode,
9544         * src/pic16/pcode.c (pic16_newpCodeAsmDir): modified for the new
9545         pCodeAsmDir definition,
9546         * (pic16_pCode2str, genericPrint): when an AsmDir pcode has a NULL
9547         directive, then the argument directive is emitted without the leading
9548         tab, hack for inline labels which must be in the first column,
9549         * (compareLabel,pic16_findNextInstruction),
9550         * (pic16_findPrevInstruction): added case for PO_ASMDIR,
9551         * (insertBankSwitch): modified for the new pCodeAsmDir,
9552
9553 2004-03-01 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
9554         patch applied by Vangelis Rokas <vrokas AT otenet.gr>
9555
9556         * src/pic16/gen.c (pic16_popGet): case PO_DIR, adds the offset to
9557         instance,
9558         * (pushSide): commented out with #if,
9559         * (assignResultValue): fixed some typos in saving
9560         registers,
9561         * (genPcall): FIXED and sync'ed with genCall,
9562         * (genDataPointerGet,genDataPointerSet): using offset not leoffset
9563         * (genNearPointerGet): fixed to handle some more cases,
9564         implementation scheme via table reads,
9565         * (genConstPointerGet): modified to access code memory correct,
9566         * (genCodePointerGet,genNearPointerSet,genGenPointerSet): modified
9567         and improved to handle some cases
9568         * glue.c (printIvalType,printIvalChar,emitStaticSeg): use "DB"
9569         instead of "RETLW" for init data
9570         * src/pic16/ralloc.c (pic16_allocDirReg): warning when a symbol is
9571         not IN_DIRSPACE, work around to reduce bank switching when aboslute
9572         variables are placed in access bank memory (<0x80 and >=0xf80),
9573         * src/pic16/pcode.c: added SFRs TBLPTR, TABLAT, added opcodes TBLRD,
9574         TBLRD_POSTINC,TBLRD_POSTDEC,TBLRD_PREINC,TBLWT,TBLWT_POSTINC,
9575         TBLWT_POSTDEC,TBLWT_PREINC
9576         * Fixed initialisation of BSR, set "alias" for SSAVE to "0"
9577         * (pic16_emitDB,pic16_flushDB): New functions to generate "DB"
9578         directives
9579         * (pic16_pCodeConstString): use "DB" instead of "RETLW"
9580         * src/pic16/pcode.h: added TBLRD*,TBLWT*, added pic16_emitDB,
9581         pic16_flushDB, made pic16_newpCodeAsmDir public, added TBLPTR, TABLAT
9582         * src/pic16/ralloc.h: added IDX_BSR,IDX_TBLPTR*,IDX_TABLAT
9583
9584 2004-02-29  Borut Razem <borut.razem AT siol.net>
9585
9586         * src/Makefile.in, src/SDCCutil.c, support/Util/findme.c,
9587         support/Util/findme.h, support/Util/system.h: enhance binary relative
9588         search for lib and include by using findProgramPath()
9589
9590 2004-02-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9591
9592         * src/SDCCpeeph.h,
9593         * src/SDCCpeeph.c (pcDistance),
9594         * src/port.h,
9595         * src/mcs51/ralloc.h,
9596         * src/mcs51/ralloc.c (mcs51_regWithIdx),
9597         * src/mcs51/main.h,
9598         * src/mcs51/main.c (instructionSize, asmLineNode, updateOpRW,
9599         mcs51opcodeCompare, asmLineNodeFromLineNode, getInstructionSize,
9600         mcs51operandCompare, getRegsRead, getRegsWritten): made instruction
9601         size calculation port specific, started basis for some register
9602         optimizations
9603         * src/mcs51/gen.c (genFunction, genEndFunction): added case to handle
9604         missing push/pop of r0/r1. Optimized push/pops
9605         * src/mcs51/ralloc.c (packregisters): fixed bug #727095
9606         * device/lib/_modsint.c (_modsint),
9607         * device/lib/_modslong.c (_modslong): fixed sign of result in non-asm
9608         and stack version so regression tests pass
9609
9610 2004-02-26 Bernhard Held <bernhard AT bernhardheld.de>
9611
9612         * src/Makefile.in (dep): include SLIBOBJS in dependency check
9613         * src/SDCCast.c (decorateType): catch another small optimization
9614         with '?' operator
9615         * src/SDCCsymt.c (computeType): added comments and cosmetic changes
9616         * src/SDCCval.c (valMult, valDiv, valMod, valPlus, valMinus, valShift):
9617         modified to finally use computeType() all over SDCC,
9618         see Feature Request #877103
9619         * src/SDCCval.h: cosmetic
9620         * src/SDCCicode.c (operandOperation): fixed EQ_OP bug, now same as in
9621         valCompare(); regression tested in muldiv.c
9622         * support/regression/tests/muldiv.c (testMod): mod sign follows
9623         dividend only
9624
9625 2004-02-23 Bernhard Held <bernhard AT bernhardheld.de>
9626
9627         * src/SDCCast.c (decorateType): fixed bug #902362
9628         * doc/INSTALL.txt: fixed install instructions for win32
9629
9630 2004-02-21 Bernhard Held <bernhard AT bernhardheld.de>
9631
9632         * device/include/Makefile.in (install): fixed by replacing spaces
9633         by tabs
9634         * doc/README.txt,
9635         * doc/INSTALL.txt: updated for release
9636         * doc/sdccman.lyx: added warning for --xstack being buggy
9637
9638 2004-02-20 Bernhard Held <bernhard AT bernhardheld.de>
9639
9640         * src/pic16/ralloc.c (packRegsForAccUse):  disabled functions with #if
9641         to eliminate build warnings.
9642         * src/pic16/gen.c (pic16_popGet): fixed for gcc 2.95.4
9643
9644 2004-02-20 Vangelis Rokas <vrokas AT otenet.gr>
9645            Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
9646
9647         * doc/sdccman.lyx: removed PIC16 from PIC16 Port Specific Options,
9648         removed -penable-stack, added comment for stack pragma, added
9649         warning for not initializing the stack/frame registers, removed
9650         comment at interrupts section
9651
9652         Stack is made permanent, there is no ability to disable stack usage.
9653         * src/pic16/device.h,
9654         * src/pic16/device.c: removed all references to USE_STACK macro,
9655         * src/pic16/device.c (pic16_dump_section): when no elements in
9656         rlist, free rlist before return,
9657         * (pic16_dump_int_registers): NEW, internal registers are a new set
9658         of general purpose registers reused by each function,
9659         * (checkAddReg): returns 1 if registers is added to set,
9660         * (pic16_groupRegistersInSection): when a registers is of type
9661         PO_GPR_TEMP add it in pic16_int_regs and not in pic16_rel_udata,
9662         * src/pic16/device.h: memRange and Assigned Memory are deleted,
9663         SRCASECMP macro is moved here from device.c
9664         * src/pic16/genarith.c (pic16_pCodeOpType): added cases for
9665         PO_PCLATU, PO_PRODL, PO_PRODH,
9666         * (pic16_pCodeOpType, genMinus,
9667         changed compares to "a" register, with AOP_ACC,
9668         * (pic16_genPlus): fixed some bugs and indented properly,
9669         * (pic16_addSign): changed size to size+offset in the MOVWF
9670         instruction,
9671         * (pic16_genUMult8XLit_8): NEW, uses processor MULLW instruction to
9672         multiply 8-bit operand by literal, result is 8-bit,
9673         * (pic16_genUMult8X8_8): NEW, uses processor MULWF instruction to
9674         multiply 2 8-bit operand, result is 8-bit,
9675         * (pic16_genMult8X8_8): modified to call genUMult8X*_8 functions and not
9676         genUMult8X*_16,
9677         * src/pic16/gen.c: changed accUse to contain WREG only,
9678         * (pic16_emitcomment): renamed to pic16_emitpcomment,
9679         * (aopForSym): allocated dir register when IN_DIRSPACE(space) is,
9680         true, do not use immediate addressing any more unless sym is a
9681         pointer in codespace,
9682         * (aopForRemat): do not use immediate addressing when symbol not in
9683         codespace and when symbol's address is requested,
9684         * (aopOp): for-loop in if(sym->accUse) is modified for the new
9685         accUse size (= 1),
9686         * (aopGet): added case for AOP_ACC and don't return "accumulator
9687         bug" but WREG instead,
9688         * (popGetTempReg): pushes contents of temporary register in stack,
9689         * (popReleaseTempReg): pops contents of temporary register from
9690         stack. Use popGetTempReg/popReleaseTempReg in aligned pairs,
9691         * (pic16_popGet): separated case AOP_ACC to return register WREG
9692         from processor registers, AOP_PCODE not checks if pcop is PO_DIR
9693         or PO_IMMEDIATE and initializes their instance/offset appropriately,
9694         * The whole issue with aopForSym,aopForRemat,popGet) is to minimize
9695         the use of immediate pointers to certain cases only.
9696
9697         * (pic16_pushpCodeOpReg, pic16_poppCodeOpReg): use pic16_popGet2p,
9698         * (pic16_loadFromReturn, pic16_storeForReturn: NEW,
9699         * (assignResultValue, genCall, genRet): modified to use the new
9700         function return value scheme with WREG,PRODL,PRODH,FSR0L and FSR0,
9701         genPcall is still broken,
9702         * (genFunction): added code to create 'A' type pBlocks when
9703         interrupt functions are generated, code not extensively tested yet,
9704         ISRs push WREG,STATUS,BSR,PRODL,PRODH,FSR0L,FSR0H registers on stack,
9705         * (genEndFunction): modified so ISRs pop stored registers from stack,
9706         * (genMultOneByte): cleanup,
9707         * (AccRsh): added flag andmask, to and result with appropriate mask,
9708         * (genUnpackBits,genPackBits): fixed and can handle bit fields,
9709         * (genDataPointerGet): fixed and reenabled its use,
9710         * (genNearDataPointerGet): bugs fixed,
9711         * (genDataPointerSet): bugs fixed,
9712         * src/pic16/genutils.c: added functions pic16_DumpValue,pic16_DumpAop,
9713         pic16_DumpSymbol, pic16_DumpOp,
9714         * src/pic16/genutils.h: function prototypes for the above functions,
9715         * src/pic16/glue.c: new flags initsfpnt, to initialize stack/frame
9716         pointers,
9717         * (pic16emitRegularMap): many many many improvements, but needs a
9718         major cleanup,
9719         * src/pic16/main.c: enable_stack in pic16_options is removed,
9720         * (_pic16_parseOptions): removed command line options -penable-stack,
9721         * (_process_pragma): emit stack symbol only when stack pragma is
9722         processed,
9723         * src/pic16/pcode.c: pic16_pc_fsr0 is removed, all operations are
9724         redirected to FSR0L/FSR0H pair,
9725         * (pic16_get_op, pic16_get_op2): modifications and improvements,
9726         * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): added
9727         cases PO_PRODL,PO_PRODH, pic16_getRegFromInstruction2 returns sane
9728         for immediates,
9729         * (insertBankSwitch): modified to handle cases like: (alfa + 1)
9730         * (dumpPicOptype): NEW,
9731         * src/pic16/pcode.h: added PO_PCLATU,PO_PRODL,PO_PRODH in enum,
9732         * src/pic16/pcoderegs.c (pCodeRegMapLiveRangesInFlow): fixed bug
9733         with movff instruction,
9734         * src/pic16/ralloc.c: renamed typeRegWithIdx to pic16_typeRegWithIdx,
9735         added pic16_int_regs, some packRegsFor* functions are commented out,
9736         because produce errors,
9737         * src/pic16/NOTES: minor modifications
9738
9739 2004-02-18  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9740
9741         * as/mcs51/aslink.h, as/mcs51/lkarea.c, as/mcs51/lkdata.c, as/mcs51/lkmain.c,
9742         as/mcs51/lkmem.c, src/SDCCglob.h, src/SDCCmain.c: added options --stack-size and
9743         --pack-iram.
9744         * doc/sdccman.lyx: described options --stack-size and --pack-iram.
9745         * as/mcs51/lkaomf51.c: fixed bug #895763
9746
9747 2004-02-17 Bernhard Held <bernhard AT bernhardheld.de>
9748
9749         * device/include/c8051f320.h: added. Contributed by Maarten Brock.
9750
9751 2004-02-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9752
9753         * doc/sdccman.lyx: added details about the HC08 storage classes and
9754         interrupts, fixed the register usage info for z80 & gbz80
9755
9756 2004-02-17 Vangelis Rokas <vrokas AT otenet.gr>
9757
9758         * doc/sdccman.lyx: added more pic16 port documentation
9759         * device/include/pic16/: added header pic18fregs.h
9760
9761 2004-02-16 Bernhard Held <bernhard AT bernhardheld.de>
9762
9763         * doc/sdccman.lyx: added Vangelis' contribution
9764
9765 2004-02-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9766
9767         * src/SDCClrange.c (rlivePoint): live range of SEND operand should
9768         extend to the next CALL or PCALL, not just to the next CALL.
9769
9770 2004-02-16 Vangelis Rokas <vrokas AT otenet.gr>
9771
9772         * src/pic16/gen.c (genInline): fixed bug #896482 with inline assembly
9773
9774 2004-02-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9775
9776         * src/mcs51/ralloc.c (packRegsForAssign, reassignAliasedSym): fixed
9777         bug #895752 and a better fix for bug #716790
9778
9779 2004-02-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9780
9781         * src/SDCCsymt.c (processFuncArgs): fixed bug #896796
9782
9783 2004-02-14 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9784
9785         * doc/sdccman.lyx: minor changes, minor changed
9786
9787 2004-02-13 Bernhard Held <bernhard AT bernhardheld.de>
9788
9789         * src/SDCCicode.c (usualBinaryConversions): removed pic16 from ports
9790         which can't handle SDCC_NEWONEBYTEOPS,
9791         (geniCodeMultiply): removed conversion from mult to shift for pic14
9792         and pic16
9793
9794 2004-02-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9795
9796         * src/hc08/gen.h,
9797         * src/hc08/gen.c (storeRegToAop, aopOp, aopAdrStr, accopWithAop,
9798         rmwWithAop): Ported my 2003-10-02 fix for bug #663539 to the hc08,
9799         thus fixing bug #895406
9800
9801 2004-02-11 Bernhard Held <bernhard AT bernhardheld.de>
9802
9803         * device/lib/_modsint.c,
9804         * device/lib/_modslong.c: sign follows divisor only
9805         * src/hc08/gen.c (genMultOneByte): if result size is 1,
9806         signs or signedness can be ignored
9807         * src/SDCCast.c (addCast): cosmetic - added lineno to CAST
9808         * src/SDCCast.c (resultTypePropagate): added even more ops: +, - and *,
9809         added optimization for IFX,
9810         (decorateType): Mult/Div/ModOneByte ops can handle all kind of signed
9811         arguments;
9812         reenabled optimization for IFX, which was removed on 2004-01-11
9813         * src/SDCCast.h: added return type IFX
9814         * src/SDCCicode.c: Mult/Div/ModOneByte ops can handle all kind of signed
9815         arguments with 8 or 16 bit results; pic14 and pic16 ports use old
9816         promotion behaviour; env. var. SDCC_NEWONEBYTEOPS selects the new,
9817         SDCC_OLDONEBYTEOPS selects the old behaviour
9818         * src/SDCCsymt.c (computeType): type2 can be NULL (for LEFT_OP);
9819         changed again and commented promotion rule
9820         * src/SDCCval.c (valDiv): promotion no longer necessary
9821         * src/ds390/gen.c (genMultOneByte) (genDivOneByte) (genModOneByte),
9822         * src/mcs51/gen.c (genMultOneByte) (genDivOneByte) (genModOneByte):
9823         rewritten
9824         * support/regression/tests/onebyte.c: added
9825
9826 2004-02-11 Vangelis Rokas <vrokas AT otenet.gr>
9827
9828         * gen.c (genInline): reverted to old code for assemnling inline
9829         code because of bug reported James Chadd
9830
9831 2004-02-10 Vangelis Rokas <vrokas AT otenet.gr>
9832
9833         * ralloc.h: missing declarations from previous patch,
9834         seems that patch for ralloc.h was never applied, fixed
9835
9836 2004-02-10 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
9837            patch committed by Vangelis Rokas <vrokas AT otenet.gr>
9838
9839         * pcode.c,
9840         * pcode.h,
9841         * ralloc.h: added FSR0L, FSR0H and other missing PIC16 SFR's for
9842         indirect addressing. Marked FSR0 as deprecated
9843         * gen.c (pointerCode): commented out, not needed now
9844         (pic16_popGet2p): new MOVFF helper function
9845         (genGenPointerGet),
9846         (genGenPointerSet): reimplemented with MOVFF and POSTINC0
9847         (shiftRLong): removed duplicate debugging info
9848
9849 2004-02-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9850
9851         * src/ds390/gen.c (genNearPointerGet),
9852         * src/mcs51/gen.c (genNearPointerGet): allow the genDataPointerGet()
9853         optimization with bits, but not bitfields.
9854         * src/ds390/ralloc.c (packRegisters),
9855         * src/mcs51/ralloc.c (packRegisters): fixed bug #884453 & #880832
9856
9857 2004-02-09 Bernhard Held <bernhard AT bernhardheld.de>
9858
9859         * src/SDCCcse.c (algebraicOpts): copy operands before modification
9860
9861 2004-02-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9862
9863         * src/SDCCsymt.h,
9864         * src/SDCCicode.c (operandFromSymbol),
9865         * src/mcs51/ralloc.c (verifyRegsAssigned, serialRegAssign),
9866         * src/ds390/ralloc.c (verifyRegsAssigned, serialRegAssign),
9867         * src/z80/ralloc.c (verifyRegsAssigned, serialRegAssign),
9868         * src/hc08/ralloc.c (verifyRegsAssigned, serialRegAssign),
9869         * src/pic/ralloc.c (verifyRegsAssigned, serialRegAssign),
9870         * src/pic16/ralloc.c (verifyRegsAssigned, serialRegAssign): fixed
9871         bug #892038
9872         * src/SDCCast.c (createIvalStruct, createIvalArray, gatherAutoInit),
9873         * src/SDCCglue.c (emitRegularMap, printIvalStruct, printIvalArray,
9874         printIvalCharPtr, printIvalPtr, printIval, emitStaticSeg, emitOverlay)
9875         * src/SDCCsymt.c (newSymbol),
9876         * src/SDCC.y (struct_or_union_specifier, enum_specifier,
9877         enumerator_list),
9878         * src/SDCCval.h,
9879         * src/SDCCval.c (newiList): fixed bug #885705
9880
9881 2004-02-08  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9882
9883         * doc/sdccman.lyx: added section 3.1.4: sdcclib.
9884         * as/mcs51/lkmem.c: report the size of the stack in .mem file.
9885
9886 2004-02-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9887
9888         * device/include/c8051f120.h,
9889         * device/include/c8051f300.h,
9890         * device/include/c8051f310.h: added/updated header files for Silicon
9891         Laboratories (formerly Cygnal) CPUs. Contributed by Maarten Brock.
9892         * doc/sdccman.lyx: minor changes, recommended diff -Naur and diff -u
9893         in new section Submitting patches
9894
9895 2004-02-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9896
9897         * src/mcs51/gen.c (genNearPointerGet, genPagedPointerGet,
9898         genFarPointerGet, genCodePointerGet, genGenPointerGet,
9899         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
9900         genGenPointerSet),
9901         * src/ds390/gen.c (genNearPointerGet, genPagedPointerGet,
9902         genFarPointerGet, genCodePointerGet, genGenPointerGet,
9903         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
9904         genGenPointerSet),
9905         * src/pic16/gen.c (genNearPointerGet, genPagedPointerGet,
9906         genFarPointerGet, genCodePointerGet, genGenPointerGet,
9907         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
9908         genGenPointerSet),
9909         * src/pic/gen.c (genNearPointerGet, genPagedPointerGet,
9910         genFarPointerGet, genCodePointerGet, genGenPointerGet,
9911         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
9912         genGenPointerSet): fixed bug #892400
9913         * src/pic16/gen.c (genSkipz, AccRol): disabled functions with #if 0
9914         to eliminate build warnings.
9915         * src/SDCCast.c (processParms),
9916         * src/SDCC.y (function_declarator2, declarator2_function_attributes):
9917         fixed bug 751859
9918         * support/valdiag/valdiag.py: added GCC to the list of defines active
9919         when compiling with gcc
9920
9921 2004-02-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9922
9923         * support/Util/SDCCerr.h,
9924         * support/Util/SDCCerr.c,
9925         * src/SDCCast.c (decorateType, sizeofOp): complain when sizeof is used
9926         with an incomplete type (fixed bug #883734)
9927         * src/SDCCicode.c (geniCodeCast): fixed bug #890510
9928
9929 2004-02-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9930
9931         * src/pic16/gen.c (genCmpEq, shiftRLong): fixed declarations
9932
9933 2004-02-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9934
9935         * src/SDCCast.c (decorateType),
9936         * src/SDCCicode.c (geniCodeParms, geniCodeCall): fixed bugs in my ANSI
9937         function pointer implementation
9938         * support/regression/tests/funptrs.c: added tests to verify both forms
9939         of function pointers work correctly. Added tests to verify parameters
9940         are passed in the correct order.
9941
9942 2004-02-06  Vangelis Rokas <vrokas AT otenet.gr>
9943
9944         * device.c (regCompare): registers are sorted by ascending
9945         address and increasing size,
9946         * main.c (_pic16_finaliseOptions): removed the declaration
9947         of compiler macro MCU. Now a macro of the format pic18fxxxx
9948         will be defined from the command line
9949
9950 2004-02-06  Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
9951             patch committed by Vangelis Rokas <vrokas AT otenet.gr>
9952
9953         * pcode.c (pic16initMnemonics): fixed typo in assignment to PCOP_RLNCF
9954         PCOP_RLCF was overwritten!
9955         * gen.c (genSkip): commented out calls to pic16_emitcode,
9956         * (genCmpEQ): fixed "long" compares, only high word did get compared,
9957         * (genlshTwo),
9958         * (genRRC): added debugging info,
9959         * (shiftL2Left2Result): Fixed bug, if offr > offl. Result got
9960         overwritten while shifting,
9961         * (shiftR2Left2Result): Fixed bug, if offr < offl. Result got
9962         overwritten while shifting,
9963         * (AccLsh),
9964         * (AccRsh),
9965         * (shiftLLeftOrResult),
9966         * (shiftRLeftOrResult),
9967         * (shiftRLong),
9968         * (shiftLLong): Implemented with pic16_emitpcode
9969         * (genlshFour): Replaced pic16_aopPut with pic16_emitpcode,
9970         * (genLeftShift): Fixed bug, operand for shift by variable always
9971         was "and"ed with 0x0f,
9972         * (genLeftShiftLiteral),
9973         * (genrshTwo),
9974         * (genRightShiftLiteral): added debugging info,
9975         * (genrshFour): added comment,
9976         * (genRightShift): determined signedness from operand "left"
9977         instead of "result"
9978
9979 2004-02-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9980
9981         * src/SDCCicode.c (geniCodeParms),
9982         * src/SDCCast.c (decorateType, processParms): support for ANSI-style
9983         function pointers, fixed function pointer bugs #861242 and #861896
9984
9985 2004-01-31 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9986
9987         * device/include/c8051f000.h,
9988         * device/include/c8051f120.h,
9989         * device/include/c8051f300.h: added header files for Silicon
9990         Laboratories (formerly Cygnal) CPUs. Contributed by Maarten Brock.
9991
9992 2004-01-31 Bernhard Held <bernhard AT bernhardheld.de>
9993
9994         * src/SDCCast.c (processParams): added new type flow and restructured
9995         (gatherAutoInit): added new type flow
9996         (addCast): cosmetic changes
9997         (getLeftResultType): added new type flow for array indices, patch
9998         provided by Stas, see FR #877103
9999         (decorateType): SDCC_NEWTYPEFLOW removed, new type flow is now standard;
10000         array index patch by Stas
10001         * src/SDCCast.h: added prototype getResultTypeFromType()
10002         * src/SDCCval.h,
10003         * src/SDCCval.c (resolveIvalSym) (resolveIvalSym),
10004         * src/pic/glue.c (pic14emitStaticSeg),
10005         * src/pic16/glue.c (pic16emitStaticSeg),
10006         * src/SDCCglue.c (emitRegularMap) (emitStaticSeg): added new type flow
10007         for initialization of symbols
10008         * src/SDCCicode.c (geniCodeArray): removed warning W_ARRAY_BOUND
10009         * support/Util/SDCCerr.h:
10010         * support/Util/SDCCerr.c: replaced W_ARRAY_BOUND by W_IDX_OUT_OF_BOUNDS
10011         * .version: bumped version number to 2.3.8
10012         * device/include/Makefile.in (install),
10013         * doc/Makefile (install): changed to 'rm `find ...`' construct to
10014         avoid warnings
10015
10016 2004-01-30 Bernhard Held <bernhard AT bernhardheld.de>
10017
10018         * support/regression/tests/libmullong.c: fixed for 64 bit hosts
10019         Slade Rich fixed an optimization bug
10020         * src/pic/pcodepeep.c,
10021         * src/pic/pcoderegs.c
10022         * doc/Makefile (install): added test for directory
10023
10024 2004-01-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10025
10026         * src/mcs51/ralloc.c (getRegPtr, getRegGpr),
10027         * src/ds390/ralloc.c (getRegPtr, getRegGpr),
10028         * src/pic/ralloc.c (getRegPtr, getRegGpr),
10029         * src/pic16/ralloc.c (getRegPtr, getRegGpr),
10030         * src/z80/ralloc.c (getRegGpr): fixed bug #883361
10031         * as/mcs51/asexpr.c (term),
10032         * as/hc08/asexpr.c (term): fixed bug #887146
10033
10034 2004-01-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10035
10036         * src/z80/gen.c (genMult): handle single byte result product
10037         * src/SDCCopt.c (killDeadCode): never convert ADDRESS_OF iCode to
10038         DUMMY_READ_VOLATILE (fixed bug #886367)
10039
10040 2004-01-27 Bernhard Held <bernhard AT bernhardheld.de>
10041
10042         * support/regression/tests/libmullong.c: fixed logic, on little endian
10043         hosts we ended without a mullong_wrapper()
10044
10045 2004-01-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10046
10047         * ChangeLog: changed "@" to " AT " in hopes of reducing spam and
10048         virus/worm forged address usage.
10049
10050 2004-01-27 Bernhard Held <bernhard AT bernhardheld.de>
10051
10052         Fixed promotion, it should be done on AST level:
10053         * src/SDCCast.c (addCast): added promotion to int
10054         (decorateType): updated call to upCast()
10055         * src/SDCCicode.c (geniCodeLeftShift): removed call to
10056         usualUnaryConversions()
10057
10058 2004-01-26  Michael Hope  <michaelh AT juju.net.nz>
10059
10060         * support/regression/tests/literalop.c (mulWrapper): Added a
10061         wrapper to remove integer overflow warnings.
10062
10063         * support/regression/tests/float_trans.c: Made work on host.
10064
10065         * support/regression/ports/ucz80/spec.mk (UCZ80): Made detect the
10066         location of sz80.
10067
10068         * support/regression/generate-cases.py (main): Changed from inline
10069         to a main method.
10070
10071         * doc/Makefile (install): Changed to depth first to get rid of
10072         missing directory install warning.
10073
10074         * as/Makefile (install-doc): Made work on Mac.
10075
10076 2004-01-25 Bernhard Held <bernhard AT bernhardheld.de>
10077
10078         * src/SDCCast.c: added an additional type flow in decorateType() of
10079         opposite direction, see feature request #860006; it's enabled at runtime
10080         by setting the environment variable SDCC_NEWTYPEFLOW
10081         * src/SDCCast.h: changed prototype of decorateType()
10082         * src/SDCCglue.c (emitRegularMap): updated call of decorateType()
10083         * src/SDCCicode.c (geniCodeDivision) (geniCodeModulus): promotion from
10084         'char' to 'int' can be omitted, if both operands are 'unsigned char';
10085         see feature request #877103
10086         * src/SDCCval.c: updated call of decorateType()
10087         (valBitwise): fixed bug #882876
10088         (valMinus): added promotion
10089         (valLogicAndOr): result is unsigned
10090         (cheapestVal) (constVal): literals from 0...255 are 'unsigned char' now
10091         * src/SDCCsymt.c (computeType),
10092         * src/mcs51/gen.c (genCmpGt) (genCmpLt): literal 'unsigned char'
10093         must not cause an unsigned operation
10094         * src/pic/glue (pic14emitRegularMap),
10095         * src/pic16/glue.c (pic16emitRegularMap): updated call of decorateType()
10096
10097 2004-01-23 Bernhard Held <bernhard AT bernhardheld.de>
10098
10099         * src/pic/pcode.c (PCodeID): commented out left over debug code
10100
10101 2004-01-20 Bernhard Held <bernhard AT bernhardheld.de>
10102
10103         * support/valdiag/tests/overflow.c: added shift tests
10104         * src/pic/device.c,
10105         * src/pic/gen.c,
10106         * src/pic/gen.h,
10107         * src/pic/glue.c,
10108         * src/pic/main.c,
10109         * src/pic/pcode.c,
10110         * src/pic/pcode.h,
10111         * src/pic/pcodepeep.c,
10112         * src/pic/pcoderegs.c,
10113         * src/pic/ralloc.c,
10114         * src/pic/ralloc.h: applied patch from Slade Rich;
10115         added support for multiple code pages and multiple RAM banks on the
10116         PIC 14 port. The ASM files now no longer simply assume all the
10117         code / RAM are in the same page / bank. This means the linker can
10118         safely allocate code/RAM of separate ASM files to different pages/banks.
10119         * doc/sdccman.lyx: added Slade's tips
10120         * src/mcs51/peeph.def: fixed bug #880768
10121
10122 2004-01-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10123
10124         * src/hc08/ralloc.c (rematStr): fixed bug #879282
10125         * src/SDCCast.c (decorateType): fixed bug #880197
10126
10127 2004-01-20  Michael Hope  <michaelh AT juju.net.nz>
10128
10129         * sim/ucsim/gui.src/serio.src/main.cc: Fixed unconditional use of
10130         getopt.h.
10131
10132         * debugger/mcs51/cmd.c (getValBasic): Changed strtof to strtod as
10133         strtof is not part of C89 and isn't included with Mac OS X.
10134
10135 2004-01-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10136
10137         * src/hc08/gen.c (genPlusIncr, genUminus, genMinusDec, genCmp,
10138         shiftL2Left2Result): fixed bug #879326
10139         (genAnd, genOr, genXor): fixed bug when result was of type AOP_CRY
10140         (genMultOneByte): fixed bug in signed vs unsigned multiplication
10141         * sim/ucsim/hc08.src/inst.cc (inst_clr): added missing effective
10142         address fetch for clr instruction
10143         * device/lib/hc08/_mulint.c: created optimized assembly version
10144         * src/SDCCdflow.c (computeDataFlow): fixed bug #878209
10145
10146 2004-01-19 Bernhard Held <bernhard AT bernhardheld.de>
10147
10148         * src/SDCCicode.c (geniCodeArray): applied patch from Stas Sergeev
10149         proposed in FR #877103
10150
10151 2004-01-18 Bernhard Held <bernhard AT bernhardheld.de>
10152
10153         * src/SDCCval.c (cheapestVal): added missing checks
10154         * src/SDCCicode.c (usualBinaryConversions): fixed condition
10155         * src/SDCCicode.c (geniCodeAdd): fixed part of bug #877103
10156
10157 2004-01-16 Klaus Flittner <klaus_flittner AT gmx.de>
10158
10159         * src/ds390/gen.c (aopOp3): fixed the assignment of different dptrs to
10160         equal operands
10161
10162 2004-01-16 Vangelis Rokas <vrokas AT otenet.gr>
10163
10164         * src/SDCCmain.c (linkEdit): variable $3 of the linker command is
10165         loaded with the linker search paths (-L arguments) and the libraries
10166         to be linked with the current source (-l arguments). Changes
10167         currently will affect only the pic16 port.
10168         * src/pic16/main.c (_pic16_finaliseOptions): add to the linker
10169         include path the port specific paths and port specific libraries,
10170         * gplink command now contains the $3 argument,
10171         * src/pic16/device.h,
10172         * src/pic16/device.c,: structure PIC_device is made public and
10173         renamed to PIC16_device, the same for variable Pics which is renamed
10174         to Pics16. Updated all references to them.
10175         * src/pic16/glue.c (pic16glue): corrected bug with code
10176         initialization which bypassed the variable initializations block.
10177
10178         * device/lib/pic16/Makefile.rules: removed --penable-stack from
10179         COMPILE_FLAGS and added the --nostdinc option
10180
10181 2004-01-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10182
10183         * device/include/mc68hc908jb8.h: Register defs for another member
10184         of the hc08 family. Contributed by Bjorn Bringert - thanks!
10185
10186 2004-01-14 Vangelis Rokas <vrokas AT otenet.gr>
10187
10188         Documenting changes from previous commits.
10189         * configure.in (version 1.56),
10190         * configure: initially I've added AC_CONFIG_SUBDIRS(device/lib/pic16)
10191         when generating output files to configure the pic16 library,
10192         but now I've commented it out, since gputils aren't installed in the
10193         SF compile farm, so library won't compile
10194
10195         * device/lib/Makefile.in (version 1.56): initially I've added in
10196         target 'all' the prerequestive 'model-pic16' so it compiled the
10197         pic16 library, but now I've commented it out for the same reasons
10198         above,
10199         * added targets 'model-pic16' and 'objects-pic16' to compile the
10200         library
10201         * added target 'port-specific-objects-pic16' to handle the
10202         generated libraries and copy them into the build/ directory
10203         * added target 'clean-intermediate-pic16' to clean intermediate
10204         files into pic16 directory
10205         * in target 'installdirs' added line to create directory pic16 in
10206         the installation path
10207
10208         * device/include/Makefile.in (version 1.11): in target 'install'
10209         added lines to copy all header files to installation path,
10210         * in target 'installdirs' added line create directory for pic16
10211         headers in the installation path
10212
10213 2004-01-13 Klaus Flittner <klaus_flittner AT gmx.de>
10214
10215         * src/ds390/gen.c (genCall): fixed a double use of acc and b after
10216          a function call
10217
10218 2004-01-13 Bernhard Held <bernhard AT bernhardheld.de>
10219
10220         * configure,
10221         * device/lib/configure.in,
10222         * device/lib/configure: fixed for autoconf 2.57
10223
10224 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10225
10226         * src/z80/main.c (_parseOptions): fixed the portmode= command line
10227         option so that it actually works. Made it specific to the z80, since
10228         the gbz80 doesn't have these kinds of I/O ports.
10229
10230 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10231
10232         * device/include/z180.h,
10233         * device/lib/_memcpy.c,
10234         * device/lib/_memmove.c,
10235         * device/lib/_mulint.c,
10236         * device/lib/ser_ir.c,
10237         * device/lib/ser_ir_cts_rts.c,
10238         * device/lib/_strcmp.c,
10239         * device/lib/_strtok.c: fixed pragmas to non-deprecated form
10240         * src/z80/main.c (_process_pragma): add support for pragmas bank and
10241         portmode; added deprecation warning for bank= and protmode= forms.
10242         Also, guard against buffer overflow.
10243         * src/z80/gen.c (aopGet): generate better code for sfr banked read
10244
10245 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10246
10247         * src/hc08/main.c (_hc08_genAssemblerPreamble): fixed bug #875487. Also
10248         changed interrupt vector table generation to only emit declared vectors.
10249         * device/include/Makefile.in: added missing backslash
10250         * device/lib/pic16/Makefile.rules: add $(MODELFLAGS) to $(CFLAGS)
10251
10252 2004-01-13 Vangelis Rokas <vrokas AT otenet.gr>
10253
10254         Mainly changes to support compilation of the device libraries
10255         * src/pic16/device.c: stack is allocated via symbol and not
10256         via literal number. The symbol is placed in the corresponding
10257         position of the data ram
10258         * (pic16_dump_section): relocatable and absolute uninitialized
10259         data are now emitted in sorted order to reduce section naming,
10260         * src/pic16/ralloc.c (newReg): fixed bug with SFR's that
10261         weren't marked as being in the access bank,
10262
10263 2004-01-13 Vangelis Rokas <vrokas AT otenet.gr>
10264
10265         Added portion of GNU PIC Library under the directory
10266         device/include/pic16 and device/lib/pic16. These files
10267         contain the declarations of SFRs for the PIC18Fxx2 devices.
10268         The directory is initialized via configure from toplevel.
10269
10270 2004-01-12 Klaus Flittner <klaus_flittner AT gmx.de>
10271
10272         * src/ds390/gen.c (operandsEqu): fixed a little typo, that prevented
10273         the spilllocations to be compared correctly
10274
10275 2004-01-12 Bernhard Held <bernhard AT bernhardheld.de>
10276
10277         * src/SDCCast.c (decorateType): fixed bug introduced today
10278
10279 2004-01-12  Borut Razem <borut.razem AT siol.net>
10280
10281         * src/SDCC.lex, support/Util/SDCCerr.h, support/Util/SDCCerr.c,
10282         doc/sdccman.lyx: upper case pragmas are deprecated
10283
10284 2004-01-12 Bernhard Held <bernhard AT bernhardheld.de>
10285
10286         * src/SDCCast.c (decorateType): replacing 'ul > 0' by  '!ul' results
10287         in simpler and even better code
10288
10289 2004-01-11 Bernhard Held <bernhard AT bernhardheld.de>
10290
10291         * src/SDCCicode.c (operandOperation): fixed bug #874819
10292         * src/SDCCast.c (decorateType): fixed
10293         char foo (unsigned long ul) { return ul > 0; }
10294
10295 2004-01-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10296
10297         * doc/sdccman.lyx: Moved and added some sections, small changes
10298         all over. Telling LaTeX to be less strict with word spacing
10299         to better keep the right margin. Changed some notes about
10300         maintainance of the ports in section 3.2.1 - is it OK like this?
10301
10302 2004-01-11 Vangelis Rokas <vrokas AT otenet.gr>
10303
10304         SDCC source changes:
10305         * src/SDCCopt.c (cntToFcall, cnvToFloatCast, cnvFromFloatCast,
10306         convilong): modified to inform the pic16 port that builtin functions
10307         are external
10308
10309         PIC16 PORT specific changes:
10310         * src/pic16/device.c pic16_dump_equates() added,
10311         processor registers declared internally by the port are emitted in
10312         the translation as equates,
10313         * src/pic16/gen.c: inline code is passed unprocessed to the
10314         translation,
10315         * (pic16_popGetLit2): fnuction modified to take second operand as
10316         pCodeOp pointer and not as literal,
10317         * (popRegFromIdx): prefixed with pic16_,
10318         * (pic16_popCombine2): modified to receive already allocated pCode
10319         operands,
10320         * (pic16_pushpCodeOpReg, pic16_poppCodeOpReg): added
10321         * (genFunction): initializes local stack frame and pushes on stack
10322         all the registers used by this function,
10323         * (genEndFunction): restores all registers from stack and restores
10324         stack frame,
10325         * src/pic16/glue.c (pic16emitRegularMap): various changes and
10326         improvements,
10327         * (pic16glue): changed the program startup sequence,
10328         * added new dbName code 'A' for functions placed in absolute section
10329         * src/pic16/main.c: added function attribute _naked,
10330         * added pragma 'code' to place a fnuction at an absolute address,
10331         * added command line arguments --debug-ralloc and --pcode-verbose,
10332         * (_pic16_finiliseOptions): options.all_callee_saves is set by default
10333         * src/pic16/pcode.c (pic16_pBlockConvert2Absolute) added,
10334         * (pic16_newpCodeOpLit2): modified to take the second operand as
10335         pCodeOp pointer,
10336         * (pic16_printpBlock): modified to emit each function in a separate
10337         section,
10338         * (pic16_get_op): modified to use the gpasm modifiers LOW,HIGH and
10339         UPPER for immediate operands,
10340         * src/pic16/pcodepeeph.c: added peephole support for the LFSR
10341         instruction,
10342         * src/pic16/peeph.def: all peepholes with movff are commented out,
10343         because there is a problem in the pcode peep optimizer,
10344         * src/pic16/ralloc.c: the register allocator can now reuse local
10345         function symbols for another function. This saves register usage.
10346         * src/pic16/ralloc.h: added flag isLocal in structure regs,
10347
10348         Added file src/pic16/NOTES with information about program writing on
10349         the current port version.
10350
10351 2004-01-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10352
10353         * src/mcs51/peephole.def: added peepholes 177.c,d (redundant moves)
10354         and peephole 252 (array access)
10355
10356 2004-01-09  Borut Razem <borut.razem AT siol.net>
10357
10358         * src/SDCCmain.c : fixed #872250: -l command line defined library
10359           files are scanned before standard library files
10360
10361 2004-01-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10362
10363         * src/SDCCast.c (decorateType): fixed bug #874046
10364
10365 2004-01-09  Borut Razem <borut.razem AT siol.net>
10366
10367         * support/scripts/sdcc.nsi: remove previous installation
10368
10369 2004-01-09 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10370
10371         * src/SDCCglue.c (createInterruptVect): don't append 7(5) padding
10372         bytes for last interrupt vector (mcs51)
10373         * sdcc.spec: fixed typo
10374
10375 2004-01-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10376
10377         * src/mcs51/gen.c (genFunction, genEndFunction, genReceive, getTempRegs,
10378         gen51Code): more efficient parameter receive for --model-large
10379         ("bug" #845294)
10380
10381 2004-01-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10382
10383         * src/ds390/main.c,
10384         * src/z80/main.c: added missed needLinkerScript flags (more than
10385         one port structure defined in these file)
10386         * src/ds390/gen.c (aopForSym, aopOp, operandsEqu, aopOp3): fixed
10387         bug #795325
10388
10389 2004-01-08 Vangelis Rokas <vrokas AT otenet.gr>
10390
10391         * src/SDCCmain.c: removed various references to DEFAULT_PORT
10392         * src/port.h: added flag needLinkerScript in port->linker
10393         structure to inform whether to create a .lnk file or not,
10394         * src/avr/main.c,
10395         * src/ds390/main.c,
10396         * src/hc08/main.c,
10397         * src/mcs51/main.c,
10398         * src/pic/main.c,
10399         * src/pic16/main.c,
10400         * src/xa51/main.c,
10401         * src/z80/main.c: changed appropriately to configure
10402         needLinkerScript flag
10403         * src/pic/gen.c,
10404         * src/pic16/gen.c (genAddrOf): fixed bug #863624
10405         * src/pic/glue.c: added variable udata_section_name to
10406         override default uninitialized data segment definition for
10407         devices only with SHAREBANK memory (reported from Erik Epetrich)
10408         * (pic14emitOverlay): modified to emit a commented overlay segment
10409         directive when no overlay data exist
10410         * (picglue): modified to emit uninitialized data segment
10411         according to udata_section_name
10412         * src/pic/main.c (_pic14_parseOptions): added command line
10413         options --udata-section-name=[name] to override default
10414         udata definition name
10415         * modified _linkCmd and _asmCmd to include compiler passed
10416         arguments via -W option
10417         * src/pic16/main.c: added $l in _asmCmd, changed extension for
10418         object file from '.rel' to '.o' in port->linker structure,
10419         changed size of fptr from 2 to 3 in port structure
10420
10421 2004-01-07  Borut Razem <borut.razem AT siol.net>
10422
10423         * support/scripts/sdcc.nsi: update PATH
10424         * support/scripts/sdcc.ico: craeted
10425
10426 2004-01-07 Bernhard Held <bernhard AT bernhardheld.de>
10427
10428         * device/include/Makefile.in: fix install
10429         * doc/Makefile: fix install
10430
10431 2004-01-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10432
10433         * src/SDCCsymt.c (processFuncArgs): fixed superflous allocation noted
10434         in bug #860505
10435         * src/SDCCmem.c (printAllocInfoSeg, printAllocInfo): minor changes to
10436         how the function variable allocation summary is displayed; also
10437         include information about variables allocated to the overlay
10438         segment
10439
10440 2004-01-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10441
10442         * as/mcs51/lkmain.c: Help about -Y option
10443         * as/mcs51/lkarea.c: Fixed gcc warnings
10444
10445 2004-01-06 Bernhard Held <bernhard AT bernhardheld.de>
10446
10447         * src/SDCCval.c (valShift): changed from 16 to 32 bit shift count,
10448         fixed warning
10449         * support/valdiag/tests/overflow.c: added
10450         * src/SDCCast.c (decorateType),
10451         * src/SDCCicode.c (geniCodeLeftShift): added promotion to int for
10452         LEFT_OP (left shift)
10453
10454 2004-01-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10455
10456         * as/mcs51/lkmain.c: stack must be after data when option -Y is not used
10457         (default behaviour).
10458
10459 2004-01-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10460
10461         A python script to validate compiler diagnostic messages. It can be
10462         used to verify that sdcc complains about bad c source code and
10463         gives a good location of the error.
10464         * support/valdiag/Makefile,
10465         * support/valdiag/valdiag.py,
10466         * support/valdiag/tests/*
10467
10468 2004-01-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10469
10470         * src/SDCC.y (enum_specifier, enumerator_list, opt_assign_expr),
10471         * src/SDCCsymt.c (newEnumType),
10472         * src/SDCCsymt.h
10473         * support/Util/SDCCerr.c,
10474         * support/Util/SDCCerr.h: fixed bug #871258 and some other unreported
10475         enum related bugs.
10476         * support/regression/tests/enum.c: added test for enum values that
10477         require at least 2 bytes of storage.
10478
10479 2004-01-06 Vangelis Rokas <vrokas AT otenet.gr>
10480
10481         * src/common.h: added ifndef/define/endif macros
10482         around the header file.
10483         Bug reported from Jesus Calvino-Fraga
10484
10485 2004-01-06 Bernhard Held <bernhard AT bernhardheld.de>
10486
10487         * sdcc.spec: updated
10488         * device/include/Makefile.in: don't install CVS directories
10489         * device/lib/Makefile.in: added removal of CVS directories after install
10490         * doc/Makefile: fixed install, added local_icons
10491         * sim/ucsim/gui.src/Makefile.in: fixed an old typo
10492         * src/mcs51/gen.c (genRightShift): fixed bug #870788
10493         * src/ds390/gen.c (genRightShift): fixed bug #870788
10494         * src/SDCCast.c (decorateType): fixed bug #870781
10495
10496 2004-01-06 Vangelis Rokas <vrokas AT otenet.gr>
10497
10498         PIC16 port related changes:
10499         * device.c: removed pic16_finalMapping and pic16_finalMappingSize,
10500         added variable stackPos,
10501
10502         * gen.c: genCall, assignResultValue: added support for
10503         pushing/retrieving function parameters to/from stack,
10504         genFunction,genEndFunction: setup stack frame for the
10505         generated function,
10506         genAddrOf: will be changed according to bug 863624
10507
10508         * added files genutils.c and genutils.h which contain gen*
10509         debugged and optimised functions extracted from gen.c
10510
10511         * glue.c: added variable 'externs' which holds extern symbols,
10512         pic16emitRegularMap: is modified to properly handle relocatable
10513          symbols under the new scheme,
10514         pic16createInterruptVect: is modified
10515         pic16printPublics: is modified to emit 'global' assembler directives,
10516         added pic16_printExterns to print extern symbols,
10517         pic16glue: initializes stack/frame pointer in the beginning of
10518         the assembly output. Temporary hack, will be corrected later,
10519         because gplink yet does not support stack and SDCC does not
10520         yet support a type of crt0.o object to create the final binary.
10521
10522         * Removed many lines that contain 8051 legacy code.
10523         * The code is finally placed under a 'code' directive.
10524         * Added port specific options.
10525
10526         * _process_pragma: simplified since now we do not need *special*
10527         include file to define SFR registers. But a separate header
10528         will be needed. This will be developed later.
10529         * _pic16_parseOptions: added, parses port specific options:
10530         --pgen-banksel, --obanksel=, --pomit-config-words, --pomit-ivt,
10531         --pleave-reset-vector, --penable-stack, --pstack-model, --debug-xtra
10532         --preplace-udata-with=
10533
10534         * _pic16_setDefaultOptions: modified to initialize section names,
10535         but hack is temporarly out of order since it needs improvement.
10536         * _pic16_genAssemblerPreamble: configuration words are emitted by
10537         their address instead of their name. This part is incomplete and
10538         supports only the 18Fxx2 devices. Other devices will emit an error
10539         during assembly since they do not contain the same set of config
10540         registers
10541         * _pic16_genIVT: is modified,
10542
10543         * pcode.c: added definitions for some hardware registers that are needed
10544         for stack support
10545         * added flag is2LitOp and variable pci_magic in pCodeInstruction.
10546         All PCI entries are updated. Now LFSR is supported.
10547         * Removed pic16_pciTRIS is mentioned by mdubuc in source
10548         * added pic16_newpCodeOpLit2 to support instructions with
10549         two literal arguments
10550         * pic16_pCode2str: corrected code that emits assembler instructions
10551         with two literal operands and those that have an access bit modifier
10552         * genericPrint: now PC_ASMDIR pCodes, can emit a label if it exists,
10553         this fixes a bug which caused some labels to be lost, when an
10554         assembler directive was added, i.e. banksel,
10555         * pic16_FixRegisterBanking: improved logic that causes the insertion
10556         of bank switching,
10557         * InlineFunction: functions that are called once, are not any more
10558         inlined. This can be a port option in the future,
10559
10560         * pcode.h: added pCodeOpLit2 and added variable label in pCodeAsmDir
10561
10562         * ralloc.c: added pic16_rel_udata and pic16_fix_udata variables which
10563         hold the corresponding uninitialized symbols,
10564         * pic16_allocProcessorRegister: registers have explicit marked the
10565         accessBank field,
10566         * pic16_allocInternalRegister: registers are explicit marked as
10567         not used,
10568         * pic16_writeUsedRegs: pic16_dynDirectBitRegs was missing from the
10569         processing list, so bit registers were lost,
10570         *
10571
10572         * ralloc.h: added field 'accessBank' and original symbol operand
10573         in register definition,
10574         * removed the field isMapped from register definition,
10575
10576         ** Several functions have been removed from various sources:
10577         BanksUsedFlow2,BanksUsedFlow,FixBankFlow,InstructionRegBank,
10578         pic16_addMemRange,pic16_isREGinBank,pic16_dump_map,pic16_dump_cblock
10579         isSFR,validAddress,mapRegister,assignRegister,pic16_assignFixedRegisters
10580         pic16_assignRelocatableRegisters
10581
10582         ** others have been introduced:
10583         pic16_areRegsSame,pic16_dump_section,checkAddReg,pic16_groupRegistersInSection
10584         pic16_popGetLit2,pic16_popCombine2,pushw,pushaop
10585
10586 2004-01-05 Vangelis Rokas <vrokas AT otenet.gr>
10587
10588         * support/scripts/inc2h.pl: changed definition of BIT_AT
10589         to emit 'sbit at' instead of 'bit at'. This was a request.
10590
10591         PIC16 port related preliminary changes:
10592         * gen.c: prefixed function popRegFromString with
10593         pic16_ and all references to it corrected
10594         * pcode.c: all pic16_pc_* hardware registers prefixed
10595         with underscore (_),
10596         pic16_popCopyGPR2Bit(): function sets register wasUsed=1
10597         * ralloc.c: newReg(): when register is REG_SFR then
10598         set address to rIdx,
10599         pic16_allocProcessorRegister(): marks register wasUsed=0
10600         pic16_writeUsedRegs(): added a call to assign processor
10601         registers via pic16_assignFixedRegisters
10602
10603 2004-01-04  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10604
10605         * as/mcs51/aslink.h, as/mcs51/lkarea.c, as/mcs51/lkdata.c,
10606         as/mcs51/lkmain.c, as/mcs51/lkmem.c: 8051 linker can now pack
10607         variables in unused register banks.  Also the SSEG is placed
10608         wherever there is enough space for it, and IDATA can be anywhere
10609         in internal RAM.  For now compile using -Wl-Y[stack_size].
10610         The mem file is different for this option as well, since it
10611         makes no sense of talking about DSEG lenght.
10612
10613 2004-01-02 Vangelis Rokas <vrokas AT otenet.gr>
10614
10615         * src/SDCClrange.c: fixed bug 869095 that caused segfault
10616         in certain cases, e.g. when ROM assignment, patch provided
10617         from Albert den Haan.
10618
10619 2004-01-01 Bernhard Held <bernhard AT bernhardheld.de>
10620
10621         Many signedness and type propagation fixes:
10622         * src/SDCCicode.c: made geniCodeCast() static
10623         replaced SPEC_ by IS_ (cosmetic)
10624         (operandOperation): fixed div and mod operation
10625         (usualBinaryConversions): added support for promotion of char
10626         (geniCodeMultiply): replaced (unsigned long) by (TYPE_UDWORD)
10627         (geniCodeDivision): replaced (unsigned long) by (TYPE_UDWORD)
10628         (geniCodeAdd): an array index will stay unsigned, even if promoted
10629         from char to int
10630         (geniCodeArray): ditto
10631         * src/SDCCicode.h: made geniCodeCast() static: removed prototype
10632         * src/SDCCsymt.c (computeType): added more support for char;
10633         promotion of char is selectable by promoteCharToInt, fixed signedness
10634         for all cases
10635         (powof2): replaced (unsigned long) by (TYPE_UDWORD)
10636         * src/SDCCsymt.h (powof2): replaced (unsigned long) by (TYPE_UDWORD)
10637         * src/SDCCval (val*): replaced signedness calculation by
10638         computeType()
10639         rearranged if-branches (cosmetic)
10640         (valShift): added warning W_SHIFT_CHANGED
10641         (valCompare): fixed problem with different types
10642         * src/hc08/rallo.c (leastUsedLR): fixed gcc 3.3 warning
10643         * support/regression/tests/literalop.c: added many cases
10644         * support/regression/tests/ast_constant_folding.c: changed finally to
10645         'unsigned int'
10646         * .version: new year, new version: 2.3.7
10647         * src/SDCCmain.c (main): applied patch #866468
10648         * debugger/mcs51/sdcdb.c (parseCmdLine): added -k for ucsim, patch
10649         provided by Scott Bronson
10650         * doc/sdccman.lyx: updated documentation for sdcdb
10651         updated and added chapter tips
10652
10653 2004-01-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10654
10655         * src/SDCCsymt.h: missing from yesterday's commits
10656
10657 2003-12-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10658
10659         * src/SDCC.y (struct_or_union_specifier),
10660         * support/Util/SDCCerr.c,
10661         * support/Util/SDCCerr.h: verify that struct & union tags are used
10662         as declared.
10663
10664 2003-12-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10665
10666         * src/SDCCglobl.h: missing from yesterday's commits
10667
10668 2003-12-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10669
10670         * src/SDCC.y (external_definition, type_specifier2, sfr_reg_bit,
10671         sft_attributes, struct_declaration, parameter_declaration,
10672         type_name, start_block, declaration_list),
10673         * src/SDCC.lex (check_type): support redefinition of typedef names
10674
10675 2003-12-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10676
10677         * src/mcs51/gen.c (genPlus): added special handling for 256 byte
10678         aligned xdata arrays. Erik helped me with the if clause.
10679
10680 2003-12-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10681
10682         * device/lib/ds390/tinibios.c (CpuSpeed): suppress unreachable code
10683         warning
10684
10685 2003-12-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10686
10687         * src/SDCCast.h,
10688         * src/SDCCast.c (newAst_),
10689         * src/SDCCicode.h,
10690         * src/SDCCicode.c (ast2iCode, newiCode),
10691         * src/SDCCglobl.h,
10692         * src/SDCC.y (logical_and_expr, logical_or_expr, conditional_expr,
10693         expr, statement, expression_statement, selection_statement,
10694         iteration_statement, expr_opt, jump_statement): foundation for tracking
10695         sequence points
10696         * src/SDCCopt.c (killDeadCode): fixed bug #861580 (needs the sequence
10697         point code too)
10698
10699 2003-12-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10700
10701         * support/Util/SDCCerr.c,
10702         * src/SDCCast.h,
10703         * src/SDCCast.c (createCase, createDefault, decorateType),
10704         * src/SDCClabel.c (labelUnreach),
10705         * src/SDCC.y (labeled_statement, jump_statement): More improvements
10706         to error messages.
10707         * support/Util/SDCCerr.c (werrorfl): fixed a non-standard declaration
10708         (with thanks to Stas Sergeev)
10709         * device/include/time.h,
10710         * device/lib/time.c (CheckTime): suppress unreachable code warning
10711
10712 2003-12-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10713
10714         * src/SDCCast.c (createIvalCharPtr),
10715         * src/SDCCglue.c (printChar): fixed bug #862241 (an error in my fix for
10716         bug #753752)
10717         * support/regression/tests/nullstring.c: tests for these two bugs
10718
10719 2003-12-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10720
10721         * support/Util/SDCCerr.h,
10722         * support/Util/SDCCerr.c (E_NOT_ALLOWED),
10723         * src/SDCC.y (struct_declaration, struct_or_union_specifier): complain
10724         about storage class and 'at' used inside struct or union
10725         * src/SDCCBBlock.c (iCodeFromeBBlock),
10726         * src/SDCCcse.c (ifxOptimize),
10727         * src/SDCCglue.c (emitRegularMap, initPointer, printIvalStruct,
10728         printIvalArray, printiValFuncPtr, printIvalCharPtr, printIvalPtr,
10729         printIval, emitStaticSeg, emitOverlay),
10730         * src/SDCClabel.c (deleteIfx),
10731         * src/SDCCopt.c (replaceRegEqv, eBBlockFromiCode),
10732         * src/SDCCast.c (resolveSymbols, createIvalStruct, createIvalArray,
10733         gatherAutoInit, processParms),
10734         * support/Util/SDCCerr.h,
10735         * support/Util/SDCCerr.c (werrorfl): Support for better error location
10736         reporting for post-parse errors.
10737
10738 2003-12-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10739
10740         * src/SDCCval.c (valPlus, valMinus, valShift): fixed some problems with
10741         implicit casts via union; they don't work on big endian systems
10742         (possible fix for bug #861138)
10743
10744 2003-12-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10745
10746         (committed by Erik Petrich <epetrich AT ivorytower.norman.ok.us> on Frieder's behalf)
10747         * src/mcs51/main.c: fixed the fix for bug #737001
10748
10749 2003-12-15  Borut Razem <borut.razem AT siol.net>
10750
10751         * support/scripts/sdcc.nsi: updated for NSIS 2.0 beta 4
10752
10753 2003-12-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10754
10755         * support/makebin/makebin.c: put output in binary mode
10756
10757 2003-12-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10758
10759         * src/mcs51/main.c: fixed bug #737001 for the mcs51. SDCC clears
10760         xdata and data memory on startup. Set the environment variable
10761         SDCC_NOGENRAMCLEAR to disable this.
10762         * src/mcs51/peephole.def,
10763         * src/ds390/peephole.def: using the atomic test and clear instruction jbc
10764         (allows non-interrupt and interrupt code to safely compete for a resource
10765         without the non-interrupt code having to disable interrupts)
10766
10767 2003-12-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10768
10769         * src/SDCCicode.c (geniCodeAdd),
10770         * src/SDCCast.c (decorateType): fixed bug #857753 (need to be careful
10771         with valFromType if type might be a pointer and host is big endian).
10772         * src/SDCCast.c (decorateType): unary plus compatible with all arithmetic
10773         types, not just integer types.
10774         * src/SDCCsymt.c (addSymChain): clarified error message when symbol is
10775         multiply defined with mismatching "at" address.
10776
10777 2003-12-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10778
10779         * src/ds390/main.c (PORT tininative_port): fixed bug #858416
10780         * src/SDCCglue.c (printChar, printIvalChar, emitStaticSeg),
10781         * src/SDCCast.c (createIvalCharPtr, stringToSymbol): handle strings
10782         with embedded nulls (fixed bug #753752)
10783
10784 2003-12-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10785
10786         * src/mcs51/main.c(_mcs51_genRAMCLEAR): using r0 instead of r1/r2.
10787         Apparently this did not see much testing (endless loop)
10788
10789 2003-12-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10790
10791         * src/z80/ralloc.c: set DISABLE_PACK_HL = 1 as a temporary fix to bug #855165
10792
10793 2003-12-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10794
10795         * src/SDCCdebug.c (outputDebugSymbols, outputDebugStackSymbols, dumpSymInfo):
10796         gracefully handle NULL memmap pointers
10797
10798 2003-12-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10799
10800         * src/SDCCopt.c (killDeadCode): change iCode type to DUMMY_READ_VOLATILE
10801         instead of deleting the iCode when an operand is volatile
10802         * src/z80/gen.c (genDummyRead),
10803         * src/mcs51/gen.c (genDummyRead),
10804         * src/ds390/gen.c (genDummyRead),
10805         * src/hc08/gen.c (genDummyRead): handle operands in IC_LEFT and/or IC_RIGHT,
10806         not just IC_RIGHT
10807         * src/SDCCicode.c (geniCodeCall): fixed bug #851607
10808         * src/SDCC.y: fixed bug #850420
10809
10810 2003-12-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10811
10812         Applied z80 i/o port patch from Peter Townson and fixed some operators
10813         to better handle operands in A register.
10814         * device/include/z180.h
10815         * src/SDCC.y
10816         * src/SDCCglue.c
10817         * src/z80/gen.c
10818         * src/z80/gen.h
10819         * src/z80/main.c
10820         * src/z80/peeph-z80.def
10821         * src/z80/peeph.def
10822         * src/z80/z80.h
10823
10824 2003-12-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10825
10826         * src/SDCCsymt.c (addSymChain, compareTypeExact): fixed bug #838241 again
10827
10828 2003-12-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10829
10830         * device/lib/hc08/_mullong.c: Removed extra #endif
10831
10832 2003-12-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10833
10834         * sim/ucsim/hc08.src/inst.cc,
10835         * sim/ucsim/hc08.src/hc08mac.h: fixed some problems with CC flag bits and
10836         carries from x to h
10837         * src/hc08/gen.c (aopAdrStr): fixed problem with 16 bit immediate
10838         * src/hc08/gen.c (XAccRsh): fixed problem with right shift
10839         * device/include/stdarg.h: fixed varargs for hc08
10840         * device/lib/Makefile.in,
10841         * device/lib/hc08/Makefile,
10842         * device/lib/hc08/_mulint.c,
10843         * device/lib/hc08/_mullong.c: fixed some endian problems
10844
10845 2003-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10846
10847         * sdcc/src/mcs51/gen.c (genMultOneByte): help peephole 105
10848         * sdcc/src/mcs51/peeph.def: added peephole 186.e array access in code space
10849         * device/lib/_gptrget.c,
10850         * device/lib/_gptrput.c: P2 not used any more (related to #850747, #785979)
10851
10852 2003-11-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10853
10854         * src/SDCClrange.c (findNextUseSym, rlivePoint): fixed bug #849795
10855         * src/SDCCast.c (astErrors): fixed bug #846007
10856         * src/SDCCsymt.c (checkFunction): fixed follow-up bug on bug #846007
10857
10858 2003-11-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10859
10860         * src/SDCCast.c (decorateType): disabled a transformation I added in
10861         revision 1.188 (access to fields of a structure at an absolute address);
10862         it breaks with bitfields, extern declarations, and gcse analysis.
10863         * src/SDCCopt.c (isLocalWithoutDef): if ADDRESS_OF applied to a symbol, it
10864         could be assigned through a pointer, so don't complain.
10865         * src/SDCCast.c (astErrors),
10866         * src/SDCCast.h,
10867         * src/SDCCglue.c (emitRegularMap): fixed bug #847813
10868
10869 2003-11-26 Vangelis Rokas <vrokas AT otenet.gr>
10870
10871         * src/pic16/main.c (_pic16_genIVT): fixed interrupt vector table
10872         * src/pic16/main.c (_pic16_genAssemblerPreamble): re-enabled the
10873         output of __config directives, since gpasm now supports them
10874         * src/pic16/main.c (_pic16_finaliseOptions): define MCU
10875         pre-processor macro, i.e. -DMCU=p18f452
10876         * src/pic16/ralloc.c: renamed packRegisters to pic16_packRegisters,
10877         and modified to handle 'cast' icode similarly to '=' icode
10878         * src/pic16/device.h (typedef struct PIC_device): added field
10879         'extMIface' to indicate that chip has external memory interface
10880         * src/pic16/device.c: added chips 18F248, 18F258, 18F448, 18F458,
10881         18F6520, 18F6620, 18F6680, 18F6720, 18F8520, 18F8620, 18F8680,
10882         18F8720
10883
10884 2003-11-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10885
10886         * src/SDCC.y (pointer): fixed bug #846006
10887         * support/Util/SDCCerr.c: made W_PTR_TYPE_INVALID message clearer
10888         * src/SDCCast.c (decorateType): fixed bug #846009
10889         * src/ds390/peeph.def,
10890         * src/ds390/gen.c (genAnd, genOr),
10891         * src/mcs51/peeph.def,
10892         * src/mcs51/gen.c (genAnd, genOr): fixed bug #846777
10893
10894 2003-11-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10895
10896         Fixed several common-sub-expression bugs (#772861, #768380, & #755323)
10897         * src/SDCCdflow.c
10898         * src/SDCCcse.c
10899         * src/SDCCcse.h
10900         * src/SDCCBBlock.h
10901         * src/SDCCBBlock.c
10902
10903 2003-11-23 Klaus Flittner <klaus_flittner AT gmx.de>
10904
10905         fixed bug #845089
10906         * src/SDCCbitv.h,
10907         * src/SDCCbitv.c: added function to free a bitvector
10908         * src/SDCClrange.h,
10909         * src/SDCClrange.c: added function to recompute the liveranges
10910         * src/avr/ralloc.c,
10911         * src/ds390/ralloc.c,
10912         * src/hc08/ralloc.c,
10913         * src/mcs51/ralloc.c,
10914         * src/pic/ralloc.c,
10915         * src/pic16/ralloc.c,
10916         * src/xa51/ralloc.c,
10917         * src/z80/ralloc.c: recompute the liveranges after register packing
10918
10919 2003-11-21 Klaus Flittner <klaus_flittner AT gmx.de>
10920
10921         * src/SDCCloop.c (newInduction): fixed bug #845630
10922
10923 2003-11-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10924
10925         * src/SDCCsymt.c (compareTypesExact): disabled debugging output
10926         inadvertantly left behind from my 2003-11-12 change
10927
10928 2003-11-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10929
10930         Updated headers I neglected to commit yesterday.
10931         * src/SDCClrange.h,
10932         * src/SDCCicode.h
10933
10934 2003-11-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10935
10936         * src/SDCCcse.c (algebraicOpts): fixed bug #773153
10937         * src/SDCClrange.c (rlivePoint): need to mark IC_RESULT used if POINTER_SET op
10938         * src/SDCCopt.c (eBBlockFromiCode),
10939         * src/SDCClrange.c (hashiCodeKeys, sequenceiCode, computeLiveRanges): seperated
10940         the creation of the key hash table from the sequencing so it can be used
10941         earlier (for some GCSE bug fixes still pending)
10942
10943 2003-11-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10944
10945         * src/mcs51/gen.c (genPlus): generate shortcut for adding 0xab00
10946         * support/regression/tests/addsub.c: testing genPlus shortcut
10947
10948 2003-11-15  Borut Razem <borut.razem AT siol.net>
10949
10950         * src/SDCCmain.c: fixed bug #841645: -MM command line option passed to sdcpp
10951
10952 2003-11-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10953
10954         * src/SDCCcse.c (cseBBlock): fixed bug #527779
10955         * src/SDCCcse.c (deleteGetPointers): rewrote so that the set
10956         ordering is immaterial.
10957         * src/SDCCdflow.c (mergeInExprs): fixed bug #587536
10958
10959 2003-11-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10960
10961         * src/SDCCicode.c (geniCodeAddressOf): fixed part of bug #840381
10962         * src/SDCCopt.c (replaceRegEqv, isLocalWithoutDef): fixed other part
10963         (SIGSEV) of bug #840381
10964         * src/SDCCmain.c (linkEdit, assemble): fixed bug #841606 (don't
10965         unlink new file before rename if new and old filenames are the same)
10966
10967 2003-11-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10968
10969         * src/mcs51/main.c: started fixing bug #737001 (SDCC not clearing
10970         uninitialized variables) for the mcs51. Set environment variable
10971         SDCC_GENRAMCLEAR to test.
10972         xdata initialization slightly shorter
10973
10974 2003-11-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10975
10976         * src/SDCCsymt.h,
10977         * src/SDCCsymt.c (addSymTypeChain, compareTypesExact): fixed bugs
10978         #838241 & 780691 (basicly the same bug)
10979         * src/SDCCBBlock.c (iCode2eBBlock): fixed bug #840148
10980         * src/SDCCBBlock.c (iCodeFromeBBlock): fixed bug #840162
10981
10982 2003-11-11 Bernhard Held <bernhard AT bernhardheld.de>
10983
10984         * src/SDCCmain.c (linkEdit): "fix" #834252
10985
10986 2003-11-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10987
10988         * src/SDCCast.c (removePostIncDecOps, removePreIncDecOps),
10989         * src/SDCCast.h,
10990         * src/SDCC.y: fixed bug #819403
10991
10992 2003-11-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10993
10994         * support/regression/fwk/lib/testfwk.c: printn is recursive and thus needs
10995         the reentrant attribute.
10996         * src/hc08/gen.c (genPackBits): added missing stack readjustment
10997         * sim/ucsim/hc08.src/inst.cc (inst_mov): fixed bugs with mov instruction
10998         simulation
10999         * src/SDCCast.c (decorateType): fixed bug with storage class not being
11000         updated during pointer dereference; f.e. ~(((char *)1)*) was being
11001         erroneously reduced to a literal.
11002         * src/hc08/ralloc.c (packRegisters, rematStr),
11003         * src/hc08/gen.c (aopForRemat): allow literals to be rematerialized in
11004         some cases
11005
11006 2003-11-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11007
11008         * src/mcs51/main.c: fixed bug #838385. Thanks to Josef Pavlik for finding and fixing
11009         * doc/sdccman.lyx: changed from 'article' to 'book'
11010         * doc/Makefile: readded test_suite_spec and cdbfileformat
11011
11012 2003-11-08 Bernhard Held <bernhard AT bernhardheld.de>
11013
11014         * device/include/stdlib.h: include malloc.h to comply with ANSI
11015         * support/regression/tests/malloc.c: include stdlib.h instead of malloc.h
11016
11017 2003-11-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11018
11019         * doc/Makefile: sdccman.pdf should build with correct references (more info in commit msg)
11020         * doc/clean.mk: also remove *.out files
11021         * doc/sdccman.lyx: some additions, larger top/bottom margins
11022
11023 2003-11-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11024
11025         * src/SDCC.y: fixed bug #837365
11026         * support/regression/tests/bitopcse.c
11027         * src/hc08/gen.c (genPointerGet): Don't assume pointer operand is
11028         a symbol (might be valop instead)
11029         * device/lib/Makefile.in: added errno.c to HC08SOURCES
11030         * device/lib/clean.mk: added hc08 to the cleaning list
11031
11032 2003-11-04  Borut Razem <borut.razem AT siol.net>
11033
11034         * configure, configure.in, sdcc_vc_in.h, sdcconf_in.h: reverted changes,
11035           made 2003-11-04
11036         * support/Util/NewAlloc.c, as/hc08/lklibr.c, as/mcs51/lklibr.c,
11037           as/z80/aslist.c, as/z80/assym.c: removed inclusion of nonstandard malloc.h;
11038           malloc is declared in standard stdlib.h
11039
11040 2003-11-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11041
11042         * device/lib/hc08/Makefile: need to clean .rel not .o files
11043         * src/hc08/gen.c (genDjnz): can't use djnz with extended addressing mode
11044
11045 2003-11-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11046
11047         * src/port.h,
11048         * src/hc08/main.c,
11049         * src/mcs51/main.c,
11050         * src/ds390/main.c,
11051         * src/z80/main.c,
11052         * src/avr/main.c,
11053         * src/pic/main.c,
11054         * src/pic16/main.c,
11055         * src/xa51/main.c: added hasExtBitOp & oclsExpense functions to ports
11056         * src/SDCCicode.c: changed several IS_FARSPACE tests to isOclsExpensive
11057         tests (which uses the port's oclsExpense function)
11058         * src/SDCC.y,
11059         * src/SDCCast.c,
11060         * src/SDCCicode.c,
11061         * src/hc08/gen.c,
11062         * src/ds390/gen.c,
11063         * src/mcs51/gen.c: added support for the SWAP iCode (RFE #834167)
11064
11065 2003-11-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11066
11067         * src/SDCCcse.c (ifxOptimize),
11068         * src/SDCClabel.c (labelIfx, deleteIfx): When the condition to
11069         an IFX iCode is volatile, convert to DUMMY_READ_VOLATILE instead
11070         deleting the IFX iCode.
11071         * src/hc08/ralloc.c: reduced unneeded slocs
11072         * src/hc08/gen.c: fixed bug in asmopToBoolean
11073
11074 2003-11-04  Borut Razem <borut.razem AT siol.net>
11075
11076         * configure, configure.in, sdcc_vc_in.h, sdcconf_in.h,
11077           support/Util/NewAlloc.c, as/hc08/lklibr.c, as/mcs51/lklibr.c,
11078           as/z80/aslist.c, as/z80/assym.c: decision to include malloc.h
11079           transferred to configure
11080
11081 2003-11-03 Bernhard Held <bernhard AT bernhardheld.de>
11082
11083         Use headers defined in the C[++] standards:
11084         * sim/ucsim/gui.src/serio.src/fileio.cc
11085         * sim/ucsim/gui.src/serio.src/frontend.cc
11086         * sim/ucsim/gui.src/serio.src/main.cc
11087         * sim/ucsim/gui.src/serio.src/posix_signal.cc
11088         * support/Util/NewAlloc.c
11089         * as/hc08/lklibr.c
11090         * as/mcs51/lklibr.c
11091         * as/z80/aslist.c
11092         * as/z80/assym.c
11093
11094 2003-11-03  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11095
11096         * Added MSVC projects for hc08 assembler and linker:
11097         all.dsp, config.dsp, sdcc.dsw, /as/hc08/as_hc08.dsp,
11098         /as/hc08/link_hc08.dsp
11099
11100 2003-11-03 Martin Helmling <Martin.Helmling AT octo-soft.de>
11101
11102         * debugger/mcs51/cmd.c: allows filename starting with digit(+ some debug)
11103
11104 2003-11-02 Bernhard Held <bernhard AT bernhardheld.de>
11105
11106         * src/SDCCmain.c (linkEdit): "fixed" again bug #833605
11107
11108 2003-11-01 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11109
11110         * src/mcs51/main.c: xdata initialization is 13 bytes shorter now
11111
11112 2003-10-31  Borut Razem <borut.razem AT siol.net>
11113
11114         * support/cpp2/cpplib.h,
11115           support/cpp2/cpplib.c,
11116           support/cpp2/cpplex.c,
11117           support/cpp2/cppinit.c: introduced #pragma preproc_asm [ + | - ]
11118           to switch _asm block preprocessing on / off. Default is
11119           #pragma preproc_asm +
11120
11121 2003-10-31  Borut Razem <borut.razem AT siol.net>
11122
11123         * support/cpp2/cpplex.c: Fixed _WIN32 problem with CR-CR-LF sequences
11124           when outputting comment blocks (when executed with -C option) and
11125           _asm (SDCPP specific) blocks
11126
11127 2003-10-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11128
11129         * as/hc08/lkrloc.c (relr): Fixed ihx output, fixed lastAreaIndex warning
11130
11131 2003-10-31 Klaus Flittner <klaus_flittner AT gmx.de>
11132
11133         * src/SDCCcse.c (updateSpillLocation): fixed bug #808027
11134
11135 2003-10-31 Bernhard Held <bernhard AT bernhardheld.de>
11136
11137         * src/SDCCmain.c (linkEdit): "fixed" bug #833605
11138         * src/SDCCast.c (decorateType): fixed bug #832664
11139
11140 2003-10-31  Borut Razem <borut.razem AT siol.net>
11141
11142         * support/cpp2/cpplex.c: fixed for SDCPP:
11143           comments(when executed with -C option) and _asm blocks
11144           were included even if they where in skipped #if block.
11145           Applied solution from GCC cpp 3.3.2
11146
11147 2003-10-31  Borut Razem <borut.razem AT siol.net>
11148
11149         * src/SDCC.lex: sdcc now understands both formats:
11150           '# <line_number> <file_name>' and
11151           '#line <line_number> <file_name>'
11152         * support/cpp2/cppmain.c: sdcpp now generates the standard
11153           '# <line_number> <file_name>' instead of former
11154           '#line <line_number> <file_name>'
11155
11156 2003-10-30  Borut Razem <borut.razem AT siol.net>
11157
11158         * support/cpp2/cpphash.h,
11159         * support/cpp2/cpplib.h
11160         * support/cpp2/cpplex.c,
11161         * support/cpp2/cppmain.c,
11162         * support/cpp2/cppinit.c: fixed bug #828015 - Syntax variation for _asm character constants
11163
11164 2003-10-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11165
11166         Fixed a number of problems revealed by bug #827883.
11167         * src/SDCCloop.c (loopInvariants): Spill location of the
11168         result operand should be recomputed if extracted from
11169         a loop. Also, don't extract assignments of an iTemp
11170         from a literal.
11171         * src/SDCCast.c (isConformingBody): loop reversal should
11172         not occur if the control variable is involved with a
11173         relational operator.
11174
11175 2003-10-28 Bernhard Held <bernhard AT bernhardheld.de>
11176
11177         * .version: bumped to 2.3.6 to reflect the big improvements
11178         made by Erik and Klaus. Thanks!
11179
11180 2003-10-28 Klaus Flittner <klaus_flittner AT gmx.de>
11181
11182         Replaced the livrange code.
11183         * src/SDCClrange.c: added new LR code
11184         * src/SDCCloop.c,
11185         * src/SDCCBBlock.h: removed remainig parts from old LR code
11186         * src/ds390/ralloc.c,
11187         * src/ds390/gen.c: minor fixes to make it work with new code
11188
11189 2003-10-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11190
11191         * as/hc08/asm.h,
11192         * as/hc08/lkrloc.c,
11193         * src/hc08/gen.c,
11194         * src/hc08/ralloc.c: Fix various warnings related to the hc08
11195         * src/SDCCicode.c (geniCodePreInc, geniCodePreDec): Fixed bug #829717
11196         (tweaked fix for bug #818696)
11197
11198 2003-10-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11199
11200         * src/z80/ralloc.c (joinPushes): Fixed bug #828742
11201
11202 2003-10-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11203
11204         * src/SDCCmain.c,
11205         * sdccconf_in.h: Fixed bug #828387 (--disable-hc08-port didn't work)
11206         * src/mcs51/gen.c (gencjneshort),
11207         * src/ds390/gen.c (gencjneshort): Made comparison with AOP_IMMD operand
11208         more efficient (per Scott Bronson's suggestion)
11209
11210 2003-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11211
11212         Extended the semantics of the critical keyword to include
11213         individual statements. See RFE #827755 and #799831
11214         * src/SDCC.y
11215         * src/SDCCicode.c
11216         * src/SDCCopt.c
11217         * src/SDCCast.c
11218         * support/Util/SDCCerr.c
11219         * support/Util/SDCCerr.h
11220         * src/mcs51/gen.c
11221         * src/ds390/gen.c
11222         * src/hc08/gen.c
11223
11224 2003-10-19  Borut Razem <borut.razem AT siol.net>
11225
11226         * src/SDCC.lex: fixed bug #825944 - defined yytext_ptr to make it compile with flex 2.5.31
11227
11228 2003-10-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11229
11230         * src/SDCCicode.c (geniCodePreInc, geniCodePreDec, ast2iCode):
11231         Fixed bug #818696
11232         * src/SDCCast.c (ast_print): Fixed --dumptree so that preincrement
11233         and predecrement operand is displayed
11234
11235 2003-10-13 Bernhard Held <bernhard AT bernhardheld.de>
11236
11237         * src/SDCCval.c (valMinus): fixed bug #826041
11238
11239 2003-10-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11240
11241         Some hc08 related updates that I missed earlier
11242         * sim/ucsim/stypes.h
11243         * support/regression/ports/hc08/spec.mk
11244
11245 2003-10-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11246
11247         New target "hc08" for the Motorola 68hc08 family of micros
11248
11249         * configure
11250         * configure.in
11251         * Makefile
11252         * src/hc08/*
11253         * src/SDCCmain.c
11254         * src/port.h
11255         * sim/ucsim/hc08.src/*
11256         * sim/ucsim/configure.in
11257         * src/ucsim/configure
11258         * sim/ucsim/packages_in.mk
11259         * as/hc08/*
11260         * as/Makefile
11261         * device/include/mc68hc908qy.h
11262         * device/lib/hc08/*
11263         * device/lib/Makefile.in
11264         * support/regression/ports/hc08/*
11265         * support/regression/Makefile
11266
11267 2003-10-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11268
11269         * src/z80/gen.c: fixed bug revealed by ast_constant_folding.c
11270         regression test
11271         * src/ds390/gen.c (genCast): fixed bug #821957
11272
11273 2003-10-13 Bernhard Held <bernhard AT bernhardheld.de>
11274
11275         * device/lib/logf.c: "fixed" overlay bug
11276         * support/regression/ports/host/spec.mk: added m library
11277         * support/regression/ports/mcs51-stack-auto/spec.mk: added float funcs
11278         * support/regression/tests/float_trans: added (for Eric)
11279
11280 2003-10-12 Bernhard Held <bernhard AT bernhardheld.de>
11281
11282         * src/mcs51/gen.c (genCpl): fixed bug
11283         http://sf.net/mailarchive/message.php?msg_id=6263915
11284
11285 2003-10-10 Bernhard Held <bernhard AT bernhardheld.de>
11286
11287         * src/SDCCast.c (decorateType): added extended constant folding
11288         * src/SDCCsymt.c (computeType): cleanup
11289         * src/SDCCval.c (valShift): minor optimization
11290         * support/regression/tests/ast_constant_folding.c: added
11291
11292 2003-10-09  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11293
11294         * src/SDCCmain.c: removed some unintended changes
11295
11296 2003-10-09  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11297
11298         * src/SDCCmain.c (setParseWithComma): fixed bug #816685
11299         * src/z80/gen.c: fixed part of bug #817589
11300         * src/SDCCsymt.c (checkFunction): fixed bug #817895
11301
11302 2003-10-08 Bernhard Held <bernhard AT bernhardheld.de>
11303
11304         Replaced cast (void **) with (void *) to avoid gcc 3 warning:
11305         * src/SDCCcflow.c
11306         * src/SDCCcse.c
11307         * src/SDCCdflow.c
11308         * src/SDCClabel.c
11309         * src/SDCClrange.c
11310         * src/SDCCmem.c
11311         * src/SDCCopt.c
11312         * src/SDCCpeeph.c
11313         * src/SDCCset.c
11314         * src/avr/ralloc.c
11315         * src/ds390/ralloc.c
11316         * src/izt/ralloc.c
11317         * src/mcs51/ralloc.c
11318         * src/pic/ralloc.c
11319         * src/pic16/ralloc.c
11320         * src/xa51/ralloc.c
11321         * src/z80/ralloc.c
11322         * src/z80/gen.c: removed unused label "release:"
11323
11324 2003-10-06  Borut Razem <borut.razem AT siol.net>
11325
11326         * src/SDCC.lex: removed definition of unused variables
11327           save_optimize and save_options
11328
11329 2003-10-06 Bernhard Held <bernhard AT bernhardheld.de>
11330
11331         * clean.mk: removed '=' in "-maxdepth=1"
11332         * src/SDCCloop.c: replace LRKLAUS with SDCC_LRKLAUS
11333         * src/SDCClrange.c: replace LRKLAUS with SDCC_LRKLAUS
11334
11335 2003-10-06  Borut Razem <borut.razem AT siol.net>
11336
11337         * src/SDCC.lex, src/SDCC.lex: use dbuf for "_asm" definitions;
11338           my_unput() replaced by unput()
11339
11340 2003-10-05 Bernhard Held <bernhard AT bernhardheld.de>
11341
11342         * src/SDCCloop.c (assignmentsToSym, loopInduction): cast argument of
11343         setToNull() to (void *) to avoid gcc3.x's warning: "dereferencing
11344         type-punned pointer will break strict-aliasing rules"
11345         Old LR behaviour is again default; Klaus' LR can be choosen by
11346         defining the environment variable LRKLAUS
11347         * src/SDCCBBlock.h
11348         * src/SDCCloop.c
11349         * src/SDCClrange.c
11350         * src/ds390/ralloc.c (spillThis): applied Klaus' patch
11351         * clean.mk: fixed removal of files in bin/CVS/
11352         * device/lib/clean.mk: fixed removal of directories small and large
11353         * support/Util/SDCCerr.c: changed W_INT_OVL to ERROR_LEVEL_PEDANTIC
11354         * src/SDCCicode.c,
11355         * src/SDCCval.c: removed superflous test for pedantic
11356
11357 2003-10-05  Borut Razem <borut.razem AT siol.net>
11358
11359         * src/SDCC.lex, support/Util/SDCCerr.c, sdcc/support/Util/SDCCerr.h:
11360           Fixed bug #816692: introduced new ERROR_LEVEL_PEDANTIC warning
11361           message "unmatched #pragma SAVE and #pragma RESTORE"
11362
11363 2003-10-04  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11364
11365         * doc/sdccman.lyx: various additions and updates (interrupts, inline
11366           assembly, critical functions, atomic, nojtbound)
11367
11368 2003-10-04 Bernhard Held <bernhard AT bernhardheld.de>
11369
11370         Applied liferange patch from Klaus Flittner <klaus_flittner AT gmx.de>
11371         * src/SDCCBBlock.h
11372         * src/SDCCloop.c
11373         * src/SDCCloop.h
11374         * src/SDCClrange.c
11375
11376 2003-10-03  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11377
11378         * src/z80/gen.h,
11379         * src/z80/gen.c (aopOp, aopGet, aopPut, genDummyRead),
11380         * src/mcs51/gen.h
11381         * src/mcs51/gen.c (aopOp, aopGet, aopPut, genDummyRead),
11382         * src/ds390/gen.h
11383         * src/ds390/gen.c (aopOp, aopGet, aopPut, genDummyRead),
11384         * src/SDCCicode.c (ast2iCode, geniCodeDummyRead): Fixed bug #663539
11385         * src/SDCCopt.c (killDeadCode): Fixed bugs #663539 & #816705
11386
11387 2003-10-02  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11388
11389         * src/z80/gen.c (genRet): fixed bug #524753
11390         * src/z80/gen.c (genCast): fixed internal error on cast from
11391         pointer to long
11392         * src/z80/gen.c (_saveRegsForCall, emitCall): adapted Johan's
11393         fix for bug #477835 to the z80
11394         * src/z80/gen.c (genZ80code, _vemit2, _emit2): added support
11395         for tracking iCodes in the peephole optimizer for z80
11396
11397 2003-10-01  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11398
11399         * src/SDCCicode.c (geniCodeJumpTable, geniCodeSwitch): fixed
11400         the other part of bug #814548
11401         * src/SDCCpeeph.c (labelInRange): fixed bug #814558
11402
11403 2003-09-30  Bernhard Held <bernhard AT bernhardheld.de>
11404
11405         * src/SDCCcse.c: fixed part of bug #814548
11406
11407 2003-09-28  Borut Razem <borut.razem AT siol.net>
11408
11409         * src/asm.c: rewrite of printILine() to use temporary file instead
11410           a pipe
11411         * src/xa51/main.c: commented out declaration of int rewinds
11412
11413 2003-09-27  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11414
11415         * src/SDCCicode.c (geniCodeJumpTable): Fixed bug #813206
11416
11417 2003-09-26  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11418
11419         * src/SDCCdflow.c (computeDataFlow): Fixed bug #810746
11420         * src/asm.c (printILine): Fixed bug #811015
11421
11422 2003-09-22  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11423
11424         *link/z80/lklibr.c, as/mcs51/lklibr.c: Improved memory allocation and
11425         freeing.
11426
11427 2003-09-21  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11428
11429         * src/z80/gen.c (setupToPreserveCarry): Fixed bug #796955
11430         * src/z80/gen.c (setupPair, genMovePairPair): Fixed setupPair
11431         to correctly handle general case of AOP_PAIRPTR
11432         * src/z80/gen.c (aopGet, aopPut): Generalized AOP_PAIRPTR handling
11433
11434 2003-09-21  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11435
11436         * src/mcs51/ralloc.c (fillGaps),
11437         * src/ds390/ralloc.c (fillGaps): fixed bug #810093 (yet another
11438         register positioning bug)
11439
11440 2003-09-21  Bernhard Held <bernhard AT bernhardheld.de>
11441
11442         * device/lib/_fsdiv.c: replaced (1<<31) by (1ul<<31)
11443
11444 2003-09-19  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11445
11446         * src/mcs51/gen.c (loadDptrFromOperand, genFarPointerGet,
11447         genCodePointerGet, genGenPointerGet, genFarPointerSet,
11448         genGenPointerSet): handle AOP_DPTR correctly when loading dptr
11449         (ralloc doesn't intentionally do this now, but perhaps later)
11450         * src/mcs51/ralloc.c (serialRegAssign, fillGaps),
11451         * src/ds390/ralloc.c (serialRegAssign, fillGaps): fixed some
11452         register positioning bugs (Fixed bug #762602 and #795325)
11453         * src/SDCCicode.c (geniCodeDerefPtr): Track output class correctly
11454         (Fixed bug #808779)
11455         * src/z80/gen.c: increased _vemit2's buffer[] to handle long
11456         lines that --i-code-in-asm generates
11457
11458 2003-09-18  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11459
11460         *link/z80/lklibr.c, as/mcs51/lklibr.c: Fixed Linux segfaults when
11461         trying to fclose a FILE* that was already closed.
11462
11463 2003-09-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11464
11465         * src/SDCCsymt.c (structElemType): fixed bug #808291 (members
11466         of const struct should be treated as if const themselves)
11467
11468 2003-09-18  Bernhard Held <bernhard AT bernhardheld.de>
11469
11470         * src/SDCCval.c (valPlus, valMinus): fixed bug #808337
11471
11472 2003-07-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11473
11474         * support/librarian/sdcclib.c: Generate correct offsets for libraries with
11475         Unix (/n) and DOS (/r/n) line terminations.
11476
11477 2003-09-17  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11478
11479         * src/SDCCopt.c (cnvFromFloatCast, cnvToFloatCast): fixed
11480         bug #613775
11481
11482 2003-09-16  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11483
11484         * src/mcs51/gen.c (genFunction, genEndFunction),
11485         * src/ds390/gen.c (genFunction, genEndFunction): Moved save
11486         and restore of EA so that stack offsets to parameters are
11487         correct when using both critical and reentrant/stack-auto.
11488         * src/z80/gen.c (aopOp): removed erroneous assertion about sloc
11489         size (can be triggered in error if sloc is shared between
11490         different sized objects)
11491         * device/include/float.h: fixed macros to explicitly use
11492         unsigned long where needed
11493
11494 2003-09-15  Bernhard Held <bernhard AT bernhardheld.de>
11495
11496         Feature req. 799831: added code to allow nesting of critical functions
11497         * src/mcs51/gen.c (genFunction, genEndFunction)
11498         * src/ds390/gen.c (genFunction, genEndFunction)
11499
11500 2003-09-14  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11501
11502         * src/SDCCsymt.c (sclsFromPtr),
11503         * src/SDCCsymt.h,
11504         * src/SDCCast.c (decorateType): fixed bug #462971. Also, better
11505         support for standard C idiom of memory mapped variables; for
11506         example, *((xdata int*)0x1234) = 1 is now internally equivalent
11507         to xdata int at 0x1234 tempvar = 1.
11508         * sim/ucsim/z80.src/inst_xd.cc: fixed bug #805483 with patch
11509         provided by Akiya ISHIDA
11510
11511 2003-09-13  Bernhard Held <bernhard AT bernhardheld.de>
11512
11513         * src/SDCCval.c (cheapestVal): reenabled to reduce int to char
11514         * src/SDCCval.c (constVal): added reduction from int to char
11515         * src/SDCCval.c (valMult, valDiv): fixed sign handling
11516         * src/SDCCval.c (valShift): fixed after change of cheapestVal()
11517         * src/SDCCval.c (valCompare): fixed EQ_OP and NE_OP; they have
11518         to ignore the sign
11519         * support/regression/tests/shifts.c: fixed
11520
11521 2003-09-13  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11522
11523         * src/z80/gen.c (genXor): Fixed bug #805445
11524
11525 2003-09-12  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11526
11527         Fixed bug #621531 (const & volatile confusion in the type chain).
11528         DCL_PTR_CONST, DCL_PTR_VOLATILE, & IS_PTR_CONST now exclusively
11529         refer to the const or volatile state of the pointer itself.
11530
11531         * src/SDCCast.c
11532         * src/SDCCglue.c
11533         * src/SDCCicode.c
11534         * src/SDCCsymt.c
11535         * src/SDCCval.c
11536         * src/SDCC.y
11537         * src/SDCCsymt.h
11538         * src/pic/gen.c
11539         * src/pic/ralloc.c
11540         * src/pic16/gen.c
11541         * src/pic16/ralloc.c
11542         * support/regression/tests/const.c
11543
11544 2003-09-10  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11545
11546         When checking for duplicated modules, use absolute paths
11547         instead of relative paths.  Files changed:
11548
11549         * as/mcs51/lklib.c
11550         * link/z80/lklib.c
11551
11552 2003-09-09  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11553
11554         * src/SDCCicode.c (geniCodeLogic): fixed bug #797572
11555
11556 2003-09-07  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11557
11558         * device/include/string.h: added size_t typedef, changed
11559         prototypes to use size_t, eliminated separate reentrant and
11560         non-reentrant declarations, added _memmove declaration
11561         * device/lib/_memcpy.c: changed to use size_t instead of int,
11562         changed /4 to >>2 to avoid division library call
11563         * device/lib/_memcmp.c,
11564         * device/lib/_memset.c,
11565         * device/lib/_strncat.c,
11566         * device/lib/_strncpy.c,
11567         * device/lib/_strncmp.c: changed to use size_t instead of int
11568         * device/lib/_memmove.c: new file (fixed bug #772294)
11569         * device/lib/Makefile.in: added _memmove.c
11570         * device/lib/z80/asm_strings.s: fixed bug #772290
11571         * support/regression/tests/bitfields.c: attempt to fix host assertion
11572         failure on amd64-unknown-linux2.2
11573
11574 2003-09-06  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11575
11576         * src/z80/gen.c (aopPut, spillPairReg): fixed bug #800998
11577         * src/z80/gen.c (genFunction, genEndFunction): fixed "bug" #774700
11578         * as/z80/asmain.c (main): fixed bug #801766
11579
11580 2003-09-06  Bernhard Held <bernhard AT bernhardheld.de>
11581
11582         * src/SDCCicode.c (ast2iCode): fixed differences in iCode with different
11583         compilers
11584
11585 2003-09-05  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11586
11587         * src/SDCCast.c (isConformingBody): fixed loop reversal bug
11588         reported in bug #800609
11589
11590 2003-09-04  Vangelis Rokas <vrokas AT otenet.gr>
11591
11592         * Top header beautifications in src/pic16 directory:
11593           device.c, device.h, gen.c, gen.h, genarith.c, glue.c, pcode.c,
11594           pcodeflow.c, pcodeflow.h, pcode.h, pcodepeep.c, pcoderegs.c,
11595           pcoderegs.h, ralloc.c, ralloc.h
11596         * main.c: added top header and GPL license notice
11597         * pcode.c: fixed the if-conditional warning
11598
11599 2003-09-04  Bernhard Held <bernhard AT bernhardheld.de>
11600
11601         * device/lib/_mullong.c: replaced int by short for gcc
11602
11603 2003-08-31  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11604
11605         * src/SDCCpeeph.c (notVolatile, notVolatileVariable): handle IFX
11606         and JUMPTABLE iCodes properly now (worked by accident before)
11607         * src/mcs51/gen.c (leftRightUseAcc),
11608         * src/ds390/gen.c (leftRightUseAcc): handle IFX and JUMPTABLE
11609         iCode properly now. Use getSize instead of nRegs since a & b
11610         aren't part of the nRegs tally.
11611
11612 2003-08-31  Vangelis Rokas <vrokas AT otenet.gr>
11613
11614         * src/pic16/main.c: corrected offsets of interrupt vectors in _pic16_genIVT()
11615         * src/pic16/pcode.c: fix to disable inserting BANKSEL directive
11616           before instructions that use the _STATUS register
11617
11618 2003-08-31  Bernhard Held <bernhard AT bernhardheld.de>
11619
11620         * src/mcs51/gen.c (freeAsmop): fixed off by one in stack offset (AOP_STK)
11621         * src/mcs51/gen.c (genNearPointerSet): added missing opcode for
11622         fetching of the pointer
11623         * src/mcs51/gen.c (genNearPointerGet): added reuse of PREG,
11624         copied from genNearPointerSet()
11625         * src/mcs51/gen.c (genNearPointerGet): don't pop r0/r1, if RESULTONSTACK
11626         * src/mcs51/gen.c: changed order of freeAsmop(left/right/result)-calls.
11627         If they pop r0/r1 they must be called in the opposite order than aopOp().
11628         * device/lib/_mullong.c: fixed for "--model-large --int-long-reent"
11629         (resp. --stack-auto), prepared for --xstack
11630
11631 2003-08-28  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11632
11633         * doc/sdccman.lyx: reverted tables to those in cvs 1.64
11634
11635 2003-08-28  Bernhard Held <bernhard AT bernhardheld.de>
11636
11637         * device/lib/_startup.c: quick & dirty fix for ds390/ds400;
11638         these ports have their own __sdcc_external_start()
11639
11640 2003-08-26  Bernhard Held <bernhard AT bernhardheld.de>
11641
11642         pic patch provided by Slade Rich <slade_rich AT yahoo.com>
11643         * src/pic/glue.c (pic14printPublics): fixed bug introduced when symbol
11644         type for bits was changed. It resulted in bit variables becoming
11645         global, which is not permitted in PIC 14 assembly output.
11646
11647 2003-08-23  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11648
11649         * doc/sdccman.lyx: various additions and updates. Rearranged sections
11650
11651 2003-08-22  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11652
11653         Z80 and MCS51 linkers complaint if a public symbol is defined
11654         in more than one library module:
11655
11656         * as/mcs51/lklib.c
11657         * link/z80/lklib.c
11658         * as/mcs51/Makefile.in
11659
11660 2003-08-22  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11661
11662         A few small changes that speed up the peephole optimizer.
11663
11664         * src/SDCCpeeph.c
11665
11666 2003-08-22  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11667
11668         Try to make the peephole optimizer smarter by maintaining
11669         an association between the assembly source code and the
11670         iCodes that originated them. Put this information to use
11671         with a new peephole rule condition "notVolatile" so that
11672         the rules can be aggressive yet still safe.
11673
11674         * src/SDCCpeeph.c
11675         * src/SDCCpeeph.h
11676         * src/mcs51/gen.c
11677         * src/mcs51/peeph.def
11678
11679 2003-08-20  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11680
11681         Fixed bug #741761
11682
11683         * src/mcs51/gen.c (aopForSym, leftRightUseAcc),
11684         * src/ds390/gen.c (aopForSym, leftRightUseAcc): preserve A and B
11685         if the left or right operand symbols have the accuse flag set.
11686
11687 2003-08-20  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11688
11689         Changed the type of the result of the ! (NOT) operator to char;
11690         previously it returned the same type as the source. This allows
11691         us to eliminate all the genFloatNot functions (all of its target
11692         implementations were very buggy) since !float can use the same
11693         code as !long now.
11694
11695         * src/SDCCicode.c (ast2iCode): ! returns char
11696         * src/mcs51/gen.c (genNot, genNotFloat),
11697         * src/ds390/gen.c (genNot, genNotFloat),
11698         * src/z80/gen.c (genNot, genNotFloat),
11699         * src/pic/gen.c (genNot, genNotFloat),
11700         * src/pic16/gen.c (genNot, genNotFloat): eliminated genNotFloat
11701
11702 2003-08-19  Bernhard Held <bernhard AT bernhardheld.de>
11703
11704         pic patch provided by Slade Rich <slade_rich AT yahoo.com>
11705         1. Interrupt would not compile properly. Ensure PCLATH register is saved
11706            during interrupts. Ensure WSAVE is located at a shared bank address.
11707         2. Fixed page selection in some places
11708         3. Fixed BTFSS/C to where necessary use registers directly and not simply
11709            the registers name strings.
11710         4. Fixed "signed / unsigned compare" compiler warnings.
11711         5. The PIC port manages its own allocation of the general purpose
11712            registers, but makes no attempt to reuse them. As a result when
11713            compiling it soon runs out of general purpose registers. Some
11714            additional code was added to the files pcode.c and device.c to walk
11715            through the function call tree and rename the registers so that they
11716            get reused.
11717
11718         * src/pic/device.c
11719         * src/pic/gen.c
11720         * src/pic/glue.c
11721         * src/pic/pcode.c
11722         * src/pic/pcode.h
11723         * src/pic/ralloc.c
11724         * src/pic/ralloc.h
11725         * src/pic/genarith.c: Fixed problems with PIC 14 port in functions
11726         genPlus() & genMinus() when the result is the same as left or right
11727
11728 2003-08-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11729
11730         * src/z80/gen.c (isUnsplitable, fetchPairLong): fixed bug #770454
11731
11732 2003-08-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11733
11734         Made bitfield a distinct type from bit so that bitfields
11735         convert as per ANSI C and bits retain their traditional
11736         boolean style behaviour. Implemented bitfield support in
11737         the z80 port.
11738
11739         * src/SDCCsymt.h,
11740         * src/SDCCsymt.c,
11741         * src/SDCCast.c,
11742         * src/cdbFile.c,
11743         * src/mcs51/gen.c,
11744         * src/ds390/gen.c: bit v bitfield split
11745         * src/z80/gen.c: New support for bitfields
11746         * support/regression/tests/bitfields.c: reenabled z80,
11747         added more tests
11748
11749 2003-08-17  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11750
11751         Rules 246.x, 247.x relate to bitfields, the others speed up
11752         access to xdata mapped I/O devices.
11753
11754         * src/mcs51/peeph.def: added 26 peepholes 246.x - 248.x, 180.x
11755
11756 2003-08-16  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11757
11758         Cleaned up genPackBits and genUnpackBits and added two helper
11759         functions, emitPtrByteGet & emitPtrByteSet. Added optimizations
11760         for literal assignments in genPackBits (thanks to Frieder for
11761         reminding me).
11762
11763         * src/mcs51/gen.c
11764         * src/ds390/gen.c
11765
11766 2003-08-16  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11767
11768         Fixed bug #748310 (pointer to function type mishandled when the
11769         function name is omitted). Also fixed a SIGSEGV when a function
11770         attribute (reentrant, etc) is used on a non-function or on a
11771         function but misplaced before the parameter list.
11772
11773         * src/SDCC.y (abstract_declarator, abstract_declaractor2): fixed
11774         bug #748310
11775         * src/SDCC.y (declarator2_function_attributes): avoided SIGSEGV
11776         * support/Util/SDCCerr.h,
11777         * support/Util/SDCCerr.c: Added func attr misuse error msg
11778
11779 2003-08-13  Bernhard Held <bernhard AT bernhardheld.de>
11780
11781         Fixed bug #787649 by anonymous
11782         * src/SDCCglue.c (emitRegularMap): added emission of sloc for func ptr
11783         * src/ds390/gen.c (aopForSym): fixed func ptr in sloc
11784
11785 2003-08-14  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11786
11787         Fixed numerous bitfield problems.
11788
11789         * src/SDCC.y: More bitfield related error checking
11790         * src/SDCCsymt.h,
11791         * src/SDCCsymt.c (compStructSize): fixed bitfield offset calc
11792         * support/Util/SDCCerr.h,
11793         * support/Util/SDCCerr.c: Added & edited some bitfield err msgs
11794         * src/mcs51/gen.c (genPackBits, genUnpackBits): fixed mask bugs
11795         * src/ds390/gen.c (genPackBits, genUnpackBits): fixed mask bugs
11796         * support/regression/tests/bitfields.c: tests added
11797
11798 2003-08-13  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11799
11800         Made the constant following the "interrupt" keyword optional. If
11801         omitted, the function will not automatically be given an entry
11802         in the interrupt vector table (similar to #pragma NOIV, but
11803         less syntacticly kludgy). The interrupt number is also now
11804         range checked. Also fixed a bug in the high order bit example
11805         in the manual.
11806
11807         * src/SDCC.y
11808         * src/SDCCmem.c
11809         * src/SDCCglue.c
11810         * src/SDCCsymt.h
11811         * support/Util/SDCCerr.c
11812         * support/Util/SDCCerr.h
11813         * doc/sdccman.lyx
11814
11815 2003-08-13  Bernhard Held <bernhard AT bernhardheld.de>
11816
11817         * src/SDCCcse.c (algebraicOpts): fix bug converting op from value to type
11818         * src/SDCCicode.c (operandOperation): rewritten some ops
11819         (*, ==, unary_minus) to fix possible overflows and to accord with ANSI
11820         * src/SDCCsymt.c (computeType): literals are handled the same way as any
11821         other type
11822         * src/SDCCval.c (cheapestVal): removed, it doesn't accord with ANSI (can
11823         be re-activated by defining REDUCE_LITERALS)
11824         * src/SDCCval.c (constVal): fixed; hex and octal constants can be
11825         unsigned, but are signed by default
11826         * src/SDCCval.c (constVal): rearranged
11827         * src/SDCCval.c (valMod): preliminary fix
11828         * src/SDCCval.c (valCastLiteral): use TYPE_* types
11829         * support/regression/literalop.c: added, work in progress
11830
11831 2003-08-12  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11832
11833         Generate warnings for useless declarations like "char data;"
11834         that don't do what new users expect.
11835
11836         * src/SDCC.y
11837         * support/Util/SDCCerr.h
11838         * support/Util/SDCCerr.c
11839
11840 2003-08-09  Bernhard Held <bernhard AT bernhardheld.de>
11841
11842         * src/SDCCval.c (valMult): fix overflow detection of negative int
11843
11844 2003-08-07  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11845
11846         * src/z80/ralloc.c (joinPushes): made compatible with new signedness
11847
11848         Changes to support big endian targets:
11849
11850         * src/ports.h
11851         * src/SDCCglue.c
11852         * src/avr/main.c
11853         * src/ds390/main.c
11854         * src/izt/i186.c
11855         * src/mcs51/main.c
11856         * src/pic/main.c
11857         * src/pic16/main.c
11858         * src/xa51/main.c
11859         * src/z80/main.c
11860
11861 2003-08-06  Bernhard Held <bernhard AT bernhardheld.de>
11862
11863         * src/SDCCval.c (cheapestVal): changed behaviour to the same as constVal()
11864         * device/lib/time.c: fixed warning "integer overflow in expression"
11865
11866 2003-08-05  Bernhard Held <bernhard AT bernhardheld.de>
11867
11868         * src/SDCCval.c (cheapestVal, valueFromLit): use TYPE_* types
11869         * src/SDCCval.c (constVal): changed default to signed; hex and octal
11870         constants are unsigned; added recognition of "u" flag for unsigned
11871         * src/SDCCval.c (valMult): fixed signdness, added warning for overflow
11872         * src/SDCCval.c (valDiv, valMod): fixed signdness
11873         * src/SDCCicode.c (operandOperation): fixed critical typo; fixed
11874         signedness of modulo, left and right shift
11875         * support/Util/SDCCerr.c: added warning "integer overflow in expression"
11876         * support/Util/SDCCerr.h: added warning W_INT_OVL
11877         * src/SDCCast.c (decorateType): fixed gcc3.3 warning
11878         * src/SDCCast.c (ast_print): improved output of constants
11879
11880 2003-08-04  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11881
11882         Fixed some warnings when building with MSVC:
11883
11884         * as/mcs51/asdata.c
11885         * as/z80/asdata.c
11886         * as/mcs51/asm.h
11887         * as/z80/asm.h
11888         * link/z80/aslink.h
11889         * link/z80/lkdata.c
11890         * link/z80/lkeval.c
11891         * link/z80/lkgb.c
11892         * link/z80/lkihx.c
11893         * link/z80/lks19.c
11894         * link/z80/lksym.c
11895         * support/cpp2/cpplib.c
11896         * src/ds390/gen.c
11897         * src/mcs51/gen.c
11898
11899 2003-08-03  Bernhard Held <bernhard AT bernhardheld.de>
11900
11901         * src/SDCCast.c (constExprTree): fix bug #781827 by Carl Worth <cworth AT isi.edu>
11902
11903 2003-08-01  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11904
11905         * support/librarian/clean.mk: Do not remove Makefile.
11906         * support/librarian/Makefile: added.
11907
11908 2003-08-01  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11909
11910         Added librarian to MSVC build:
11911         * all.dsp
11912         * sdcc.dsw
11913         * support/librarian/librarian.dsp
11914
11915         'configure' not needed for librarian, removed:
11916         * support/librarian/configure
11917         * support/librarian/configure.in
11918         * support/librarian/config_in.h
11919         * support/librarian/Makefile.in
11920
11921         Hopefully these ones built the librarian and the rest of sdcc properly:
11922         * Makefile
11923         * Makefile.common.in
11924
11925         Messed up 'configure', so revert to previous version:
11926         * configure
11927         * configure.in
11928
11929 2003-07-31  Bernhard Held <bernhard AT bernhardheld.de>
11930
11931         * src/SDCCicode.c (operandOperation): 3. fix, this time for Alpha; ULONG has 64 bits
11932         there, while the mantissa of a double is "only" 53 bits wide.
11933
11934 2003-07-31  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11935
11936         Adding sdcclib to the build.  MSVC project coming soon.
11937         Files added/changed:
11938
11939         * support/librarian/clean.mk
11940         * support/librarian/configure
11941         * support/librarian/configure.in
11942         * support/librarian/config_in.h
11943         * support/librarian/Makefile.bcc
11944         * support/librarian/Makefile.in
11945         * support/librarian/sdcclib.c
11946         * Makefile.bcc
11947         * Makefile
11948         * Makefile.common.in
11949         * configure
11950         * configure.in
11951
11952 2003-07-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11953
11954         Linker now complaints if linked modules have conflicting options, for
11955         example, one compiled using --model-large and another one compiled with
11956         --model-small.  The following files were modified:
11957
11958         * as/mcs51/asdata.c
11959         * as/mcs51/aslink.h
11960         * as/mcs51/asm.h
11961         * as/mcs51/asmain.c
11962         * as/mcs51/asout.c
11963         * as/mcs51/i51pst.c
11964         * as/mcs51/lkdata.c
11965         * as/mcs51/lklibr.c
11966         * as/mcs51/lkmain.c
11967         * as/z80/asdata.c
11968         * as/z80/asm.h
11969         * as/z80/asmain.c
11970         * as/z80/asout.c
11971         * as/z80/z80pst.c
11972         * link/z80/aslink.h
11973         * link/z80/lkdata.c
11974         * link/z80/lklibr.c
11975         * link/z80/lkmain.c
11976         * src/SDCCglue.c
11977
11978 2003-07-28  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11979
11980         *link/z80/aslink.h, link/z80/lklibr.c, as/mcs51/aslink.h,
11981         as/mcs51/lklibr.c: Generate a warning when a library is not found.
11982
11983 2003-07-28  Bernhard Held <bernhard AT bernhardheld.de>
11984
11985         * src/z80/mappings.i: fix _mul[us][int,long] entries
11986
11987 2003-07-26  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11988
11989         *src/SDCCmain.c: do not search for crt0.o when using --nostdlib
11990
11991 2003-07-24  Bernhard Held <bernhard AT bernhardheld.de>
11992
11993         * src/SDCCicode.c (operandOperation): really fixed problem with bitops
11994         * support/regression/tests/bitopcse.c: added
11995         fixed warning:
11996         * src/avr/gen.c:
11997         * src/pic/gen.c:
11998         * src/pic16/gen.c:
11999         * src/z80/gen.c:
12000         * src/xa51/gen.c:
12001
12002 2003-07-24  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12003
12004         added support for new library format to z80, gbz80 linkers:
12005         *link/z80/aslink.h
12006         *link/z80/lklex.c
12007         *link/z80/lklib.c
12008         *link/z80/lklist.c
12009
12010 2003-07-24  Bernhard Held <bernhard AT bernhardheld.de>
12011
12012         * src/SDCCicode.c (operandOperation): fixed problem with bitops and 0xffffffff;
12013         after {double d = 0xffffffff; long l = d;} l will be 0x80000000 (LONG_MIN)
12014
12015 2003-07-23  Bernhard Held <bernhard AT bernhardheld.de>
12016
12017         added DUMMY_READ_VOLATILE:
12018         * src/SDCC.y:
12019         * src/avr/gen.c:
12020         * src/xa51/gen.c:
12021         * src/z80/gen.c:
12022         * src/pic/gen.c:
12023         * src/pic16/gen.c:
12024         * src/mcs51/gen.c:
12025         * src/ds390/gen.c:
12026         * src/SDCCcse.c (algebraicOpts): many improvements
12027         * src/SDCCcse.h: removed algebraicOpts()
12028         * src/SDCCicode.c (picDummyRead): added
12029
12030 2003-07-23  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12031
12032         * as/mcs51/lkmem.c: Changed message "Insufficient DRAM memory" to
12033         "Insufficient space in data memory".
12034
12035 2003-07-20  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12036
12037         * src/mcs51/gen.c: fixed bug #771358
12038         * src/z80/gen.c: fixed bug #759087
12039
12040 2003-07-20  Bernhard Held <bernhard AT bernhardheld.de>
12041
12042         * src/pic16/glue.c: minor cleanup by Vangelis
12043
12044 2003-07-19  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12045
12046         * device/include/regc515c.h: fixed #758477
12047         * device/lib/_gptrget.c: saving some cycles in generic pointer get
12048         * device/lib/_gptrput.c: saved a few bytes
12049         * my tab spacing is 8, yours too?)
12050         * device/lib/_ser.c: process RX bytes earlier than TX bytes
12051         * device/lib/serial.c: process RX bytes earlier than TX bytes
12052         * src/mcs51/gen.c(genGenPointerGet/Set): removed writing of type after postincrement
12053
12054 2003-07-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12055
12056         * src/z80/gen.c: fixed some right shift bugs (#772726 among them)
12057
12058 2003-07-17  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12059
12060     * link/z80/lklibr.c: fixed bug when there is a '.' in a library path.
12061
12062 2003-07-17  Bernhard Held <bernhard AT bernhardheld.de>
12063
12064         * device/lib/Makefile.in: bad fix, reverted to 1.43
12065
12066 2003-07-16  Bernhard Held <bernhard AT bernhardheld.de>
12067
12068         * device/lib/Makefile.in: added missing z80 object files
12069
12070 2003-07-14  Bernhard Held <bernhard AT bernhardheld.de>
12071
12072         * src/SDCCcse.c (algebraicOpts): CSE fun with &|^ and 0x00/0xff literals
12073         pic16 progress by Vangelis:
12074         * src/SDCCglobl.h:
12075         * src/SDCCmain.c:
12076         * src/pic/Makefile:
12077         * src/pic:
12078         * pic/Makefile:
12079         * pic16/device.c:
12080         * pic16/device.h:
12081         * pic16/gen.c:
12082         * pic16/gen.h:
12083         * pic16/genarith.c:
12084         * pic16/glue.c:
12085         * pic16/main.c:
12086         * pic16/pcode.c:
12087         * pic16/pcode.h:
12088         * pic16/pcodepeep.c:
12089         * pic16/peeph.def:
12090
12091 2003-07-13  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12092
12093     * src/SDCCmain.c, src/SDCCglobl.h: added option --no-std-crt0
12094
12095 2003-07-12  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12096
12097     * sdcc.dsw, all.dsp, link/z80/linkgbz80.dsp, as/z80/as-gbz80.dsp:
12098     added gbz80 build to MSVC project.
12099     * src/SDCCmain.c, src/SDCCglue.c, src/z80/main.c, src/z80/z80.dsp,
12100     link/z80/aslink.h, linkz80.dsp: cleaned up z80 and gbz80 asm files
12101     from 8051 stuff and setup so it links using a .lnk file.
12102
12103 2003-07-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12104
12105     * support/librarian/sdcclib.c: sdcc librarian.
12106     * as/mcs51/aslink.h, as/mcs51/lklib.c: Support for libraries created
12107     with sdcclib.
12108
12109 2003-07-03  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12110
12111     * as/mcs51/lkmain.c: properly handle extensions in function afile.
12112
12113 2003-07-02  Borut Razem <borut.razem AT siol.net>
12114
12115         * src/port.h, src/SDCCmain.c, src/pic/glue.h, src/pic/main.c,
12116         src/pic16/glue.h, sdcc/src/pic16/main.c, src/izt/i186.c,
12117         src/izt/tlcs900h.c, src/avr/main.c, src/ds390/main.c, src/mcs51/main.c,
12118         src/xa51/main.c, src/z80/main.c:
12119         virtualization of glue() function: each port has it's own glue function,
12120         which is accessed by do_glue function pointer in PORT.general structure
12121
12122 2003-07-01 Kevin Vigor <kevin AT vigor.nu>
12123
12124         * DS800C400 fun, improved ROM interface and tinibios.
12125
12126 2003-06-27 Kevin Vigor <kevin AT vigor.nu>
12127
12128         * More support for DS80C400. Now includes beginning of interface to ROM.
12129
12130 2003-06-25  Bernhard Held <bernhard AT bernhardheld.de>
12131
12132         * src/mcs51/gen.c (gencjneshort): fixed bug #760345
12133
12134 2003-06-20  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12135
12136         * as/mcs51/lkaomf51.c: Make sure the size of the last procedure is correct.
12137
12138 2003-06-19  Borut Razem <borut.razem AT siol.net>
12139
12140         * src/z80/main.c: fixed Z80 port again: missing -k library paths in linker command line
12141
12142 2003-06-19  Borut Razem <borut.razem AT siol.net>
12143
12144         * src/SDCCutil.h, src/SDCCutil.c, src/SDCCglobl.h, src/SDCCmain.c, src/z80/main.c:
12145         fixed Z80 port - crt0.o: cannot open.
12146
12147 2003-06-19  Bernhard Held <bernhard AT bernhardheld.de>
12148
12149         * support/Util/MySystem.c (merge_command): revert bad fix
12150
12151 2003-06-18  Borut Razem <borut.razem AT siol.net>
12152
12153         * src/SDCC.lex, src/SDCCmain.c: fixed some warnings, introduced with changes made 15.06.1003
12154
12155 2003-06-18  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12156
12157         * src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx:
12158         option --use-stdout sends errors to stdout instead of stderr.
12159
12160 2003-06-18  Bernhard Held <bernhard AT bernhardheld.de>
12161
12162         * support/Util/MySystem.c (merge_command): quick fix for Linux segfault with \"cmd\" arg
12163
12164 2003-06-15  Borut Razem <borut.razem AT siol.net>
12165
12166         * support/cpp2/sdcc.h: HAVE_DOS_BASED_FILE_SYSTEM defined for _WIN32
12167         * src/SDCC.lex: cloneXxx and copyAndFreeXxx functions for options and optimize stack handling
12168         * src/SDCCglobl.h, src/SDCCmain.c, src/ds390/main.c, src/mcs51/main.c, src/z80/main.c:
12169         fixed width array of pointers replaced with sets;
12170         multiple include and lib paths ared transferred to preprocessor and linker
12171         * src/SDCCset.c, src/SDCCset.h: added function setFromSetNonRev() and mergeSets()
12172         * src/SDCCsymt.c: reimplemented function inCalleeSaveList() by using sets instead
12173         fixed width array of pointers
12174         * src/SDCCutil.c, src/SDCCutil.h: added functions fputStrSet(), appendStrSet(), joinStrSet();
12175         removed functions addToList(), join(), joinn(), pathCharsEquivalent(), pathCharTransform(),
12176         fixupPath(), getPathDifference()
12177         * src/ds390/gen.c, src/mcs51/gen.c: reimplemented function  inExcludeList() by using sets instead
12178         fixed width array of pointers
12179
12180 2003-06-11  Bernhard Held <bernhard AT bernhardheld.de>
12181
12182         * src/pic16/ralloc.c: fix warnings
12183         * src/pic16/pcode.c: fix warning
12184
12185 2003-06-10  Scott Dattalo  <scott AT dattalo.com>
12186
12187          Scott D. for Vangelis Rokas (vrokas AT otenet.gr). I (scott) don't
12188         know all the details, but essentially this set of changes enable
12189         the pic16 port to generate movff instructions and generate assembler
12190         directives,
12191         * src/SDCCmain.c:
12192         * src/pic16/gen.c:
12193         * src/pic16/glue.c:
12194         * src/pic16/pcode.c:
12195         * src/pic16/device.c:
12196         * src/pic16/main.c:
12197         * src/pic16/pcode.h:
12198         * src/pic16/pcoderegs.c:
12199         * src/pic16/ralloc.c:
12200         * src/pic16/ralloc.h:
12201
12202 2003-06-08  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12203
12204         * support/Util/SDCCerr.c, src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx:
12205         added option --vc, so sdcc errors and warnings are compatible with
12206         Microsoft Visual Studio.
12207
12208 2003-06-07  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12209
12210         * device/lib/_atof.c, device/lib/Makefile.in, device/include/stdlib.h,
12211           device/lib/libfloat.lib: added atof function.
12212
12213 2003-06-04  Bernhard Held <bernhard AT bernhardheld.de>
12214
12215         * doc/sdccman.lyx: updated to Lyx 1.3
12216         * doc/cdbfileformat.lyx: updated to Lyx 1.3
12217         * doc/test_suite_spec.lyx: updated to Lyx 1.3
12218         * doc/Makefile: added fix for the \tabularnewline problem, thanks to Jesus
12219
12220 2003-06-03  Bernhard Held <bernhard AT bernhardheld.de>
12221
12222         * src/SDCCpeeph.c: separate peepRules2pCode() for pic16 by "Vangelis Rokas" <vrokas AT otenet.gr>
12223
12224 2003-06-02  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12225
12226         * doc/sdccman.lyx: cvs revision keywords, passing pdf information in latex preamble,
12227           additions to the "related tools/documentation" section
12228
12229 2003-06-02  Bernhard Held <bernhard AT bernhardheld.de>
12230
12231         * src/SDCCglue.c (tempfileandname): added check for missing TMP/TEMP/TMPDIR variable
12232
12233 2003-05-29  Bernhard Held <bernhard AT bernhardheld.de>
12234
12235         * src/pic/device.c: added 16F819, patch by "David I. Lehn" <dlehn AT vt.edu>
12236         * src/SDCCcse.c (algebraicOpts): fixed "c * 1"
12237
12238 2003-05-28  Bernhard Held <bernhard AT bernhardheld.de>
12239
12240         * doc/sdccman.lyx: fix double dash and other minor things
12241         * doc/Makefile: fix double dash
12242
12243 2003-05-28  Karl Bongers(patches from Martin Helmling)
12244         * debugger/mcs51/sdcdb.c,cmd.c,break.c and .h files. Martin adds
12245           condition and ignore commands.
12246
12247 2003-05-28  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12248
12249         * doc/sdccman.lyx: Changes all over, index improved, smaller margins. The manual
12250           is in parts still quite out of date, I did changes as far as I felt makes sense
12251           for a non-native english speaker.
12252           Please feel free to add to the manual or to correct my changes.
12253         * doc/Makefile: undid touching the date of intermediate tex files.
12254
12255 2003-05-26  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12256
12257         * doc/sdccman.lyx: Manual has an index now
12258
12259 2003-05-25  Bernhard Held <bernhard AT bernhardheld.de>
12260
12261         Finalize muluint/mulsint and mululong/mulslong merging:
12262         * device/lib/_mulint.c
12263         * device/lib/_mullong.c
12264         * device/lib/gbz80/mul.s
12265         * device/lib/gbz80/stubs.s
12266         * device/lib/z80/mul.s
12267         * device/lib/z80/stubs.s
12268         * src/SDCCsymt.c (initCSupport)
12269
12270 2003-05-25  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12271
12272         * as/mcs51/lkaomf51.c: Address space 'z' was missing.
12273         * src/avr/avr.dsp, src/ds390/ds390.dsp, src/mcs51/mcs51.dsp,
12274           src/pic/pic.dsp, src/pic16/pic16.dsp, src/xa51/xa51.dsp,
12275           src/x80/z80.dsp: peep.rul is bigger now, so /Zm1000 is used
12276           instead of /Zm500.
12277
12278 2003-05-25  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12279
12280         * src/mcs51/peeph.def: added rules 244.x, 245.x. Although they pass
12281           the regression tests I'm not brave enough to enable 245.b, 245.c
12282         * doc/sdccman.lyx: added latex preamble for hyperref package.
12283           Using pdflatex this will give you a hyperlinked pdf file with
12284           bookmarks. (prepend '%' before /usepackage if this breaks something)
12285
12286 2003-05-24  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12287
12288          * doc/sdccman.lyx: updated information about .adb files (fixed bug 742649)
12289
12290 2003-05-22  Bernhard Held <bernhard AT bernhardheld.de>
12291
12292         * src/pic16/pcode.c (pic16_get_op_from_instruction): fixed a gcc 3.x warning
12293
12294 2003-05-21    <johan AT balder>
12295
12296         * src/SDCCglue.c (printIval): fixed bug #739934
12297
12298 2003-05-19  Bernhard Held <bernhard AT bernhardheld.de>
12299
12300         Applied patch from bug 737905 (renamed yylineo to mylineno):
12301         * src/altlex.c
12302         * src/SDCCast.c
12303         * src/SDCglobl.h
12304         * src/SDCC.lex
12305         * src/SDCCsymt.c
12306         * src/SDCCval.c
12307         * src/pic16/pcode.c: Cleaned warnings
12308         * src/pic16/pcodeflow.c: Cleaned warnings
12309         * src/pic16/pcoderegs.c: Cleaned warnings
12310
12311 2003-05-19  Scott Dattalo  <scott AT dattalo.com>
12312
12313         * src/pic16/pcode.c: Cleaned warnings
12314         * src/pic16/pcodepeep.c: Cleaned warnings
12315         * src/pic16/ralloc.c: Cleaned warnings
12316
12317 2003-05-19  Bernhard Held <bernhard AT bernhardheld.de>
12318
12319         * doc/sdccman.lyx: fixed bug 739745
12320         * src/pic16/pcode.c (pic16_get_op): fixed warning on alpha
12321
12322 2003-05-18  Bernhard Held <bernhard AT bernhardheld.de>
12323
12324         * src/port.h: removed DEFAULT_PORT, it's not yet pic16 ;-)
12325         it can be defined with CFLAGS when running configure
12326         * src/SDCCmain.c: fixed compiling + linking with object files
12327
12328 2003-05-18  Vangelis Rokas (vrokas AT otenet.gr)
12329
12330         * configure.in: configure for pic16 port,
12331             added --disable-pic16-port
12332         * sdccconf_in.h: added macro OPT_DISABLE_PIC16
12333         * src/SDCCmain.c: linkOptions is changed to set *,
12334             added if/endif conditional macros to remove options help
12335             messages from optionsTable when a port is not configured, added
12336             support for the PIc16 port in the ports table, when executing
12337             the compiler with no port specified on command line, a default
12338             port is selected with the new macro DEFAULT_PORT which is
12339             defined in port.h, in setDefaultOptions() linkOptions is removed
12340             from initialization assignment, since now it is a set,
12341             parseCmdLine uses setParseWithComma for linkOptions, in
12342             linkEdit() linkOptions are accessed with new function indexSet()
12343             which returns the i'th item of a set variable. See SDCCset.c, in
12344             linkEdit() when calling buildCmdLine(), added linkOptions as
12345             last argument. Now users can pass arguments to gplink via the
12346             -Wl option, main() uses pic16glue() to glue up pic16 programs
12347         * src/SDCCpeeph.c: various changes to support pic16
12348         * src/SDCCset.c: added function  void *indexSet(set *, int)  to
12349             return the i'th item of the set
12350         * src/SDCCset.h: added function prototype for indexSet()
12351         * src/SDCCsymt.c: in checkSClass(), added support for PIC16
12352         * src/clean.mk: added pic16 in CLEANALLPORTS variable
12353         * src/port.h: added TARGET_ID_PIC16,TARGET_IS_PIC16 macro,
12354             added macro DEFAULT_PORT
12355         * src/pic/main.c: corrected arguments of gplnk in _linkCmd
12356         * src/pic16/gen.c: bug fix in genCpl(), now the correct code is
12357             generated
12358         * src/pic16/glue.c: commented out some error producing lines
12359         * src/pic16/main.c: __config directives are commented out to stop
12360             gpasm complaining and test the linkage with gplink, _linkCmd and
12361             _asmCmd changed to be more gplink and gpasm friendly
12362         * src/pic16/peeph.def: peep rule 3 is commented out, since it
12363             produced an error when parsed, peep rule 12 is added to utilize
12364             movff, but it is commented out since the pCode does not support
12365             yet a command with 2 address arguments
12366
12367 2003-05-18    <johan AT balder>
12368
12369         * src/ds390/gen.c (genArrayInit): removed obsolete and buggy ARRAYINIT
12370         * src/ds390/main.c (genArrayInit): removed obsolete and buggy ARRAYINIT
12371 2003-05-17  Karl Bongers(apply patches from Martin Helmling)
12372
12373         * debugger/mcs51/sdcdb.c,cmd.c,break.c and .h files.
12374   Added feature to script commands from file.
12375
12376 2003-05-14  Bernhard Held <bernhard AT bernhardheld.de>
12377
12378         * device/lib/_strtok.c: fixed bug #734355 by Lenny Story and Tim Woodall
12379         * src/SDCCutil.c: include ctype.h for win32
12380
12381 2003-05-13  Bernhard Held <bernhard AT bernhardheld.de>
12382
12383         * src/pic16/*: removed CR from many files, reported by Vangelis Rokas
12384
12385 2003-05-12  Karl Bongers(apply development patches from Martin Helmling)
12386
12387         * debugger/mcs51/sdcdb.c,simi.c,cmd.c,break.c and .h files.
12388   Fixed so you can set breakpoints prior to run, run does not stop
12389   on entry now.  Add tbreak.  Other enhancements and fixes for use
12390   with ddd.
12391
12392 2003-05-12  Borut Razem <borut.razem AT siol.net>
12393
12394         * src/SDCCmain.c: fixed the problem with searching the DATADIR as the last resort on *nix
12395
12396 2003-05-11  Borut Razem <borut.razem AT siol.net>
12397
12398         * src/SDCCutil.c: WIN32 version of getBinPath() calls GetModuleFileName() to determine
12399         the path of bin directory, so that PATH is the only env. variable, which has to be set
12400         in case of standard installation.
12401         * src/ds390/ds390.dsp: increased value of /Zm option to 1000
12402         * src/pic/main.c: add quotes to file name parameters for gplink and gpasm
12403         * src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx: added --print-search-dirs command line option
12404
12405 2003-05-04  Bernhard Held <bernhard AT bernhardheld.de>
12406
12407         * src/SDCCmain.c (linkEdit): fixed buffer overflow for gbz80
12408         * support/regression/Makefile: inter-port-clean is no longer nesessary, the
12409         temp files are in the port dir; clean the gen/test directory when
12410         generating new test.c
12411         * support/regression/ports/host/spec.mk: defined OBJEXT for target clean
12412         * support/regression/tests/vaargs.c: fixed gcc 3.3 warning
12413         * support/regression/tests/zeropad.c: added
12414
12415 2003-05-09    <johan AT balder>
12416
12417         * src/SDCCglue.c: fixed bug #597940
12418
12419 2003-05-05  Karl Bongers(apply patches from Martin Helmling)
12420
12421         * debugger/mcs51/sdcdb.c,simi.c,cmd.c,symtab.c and .h files.
12422   cache sfr, optimize next,step, fix off by one sourceline,
12423   support ddd list function.
12424         * sim/ucsim/cmd.src/newcmd.cc - small fix for sdcdb use.
12425
12426 2003-05-04  Bernhard Held <bernhard AT bernhardheld.de>
12427
12428         * support/regression/HTMLgen.py: added compare_s2f()
12429         * support/regression/Makefile: redo 1.27
12430         * support/regression/generate-cases.py: redo 1.5
12431
12432 2003-04-30  Bernhard Held <bernhard AT bernhardheld.de>
12433
12434         * support/regression/tests/float.c: workaround 33 bit hex constant
12435         * support/regression/tests/simplefloat.c: fix division for host
12436
12437 2003-04-29  Scott Dattalo  <scott AT dattalo.com>
12438
12439         * src/pic/pcoderegs.c Applied patch from Jim Hawkridge <jim AT jimhawkridge.uk.eu.org>
12440         that tame's the PIC's over-aggressive optimizer.
12441
12442 2003-04-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12443
12444          * src.dsw, link/z80/aslink.h, link/z80/linkz80.dsp: z80 linker
12445          support for MSVC.
12446
12447 2003-04-29  Kevin Vigor <kevin AT vigor.nu>
12448
12449         Initial support for DS80C400. "Hello world" runs on TINIm400
12450         (with polled I/O).
12451
12452 2003-04-28  Karl Bongers(apply patches for Martin Helmling)
12453
12454          * debugger/mcs51/sdcdb.c,simi.c,cmd.c,symtab.c and .h files.
12455          * Some notes on ddd usage added in debugger/README
12456          Martin Helmling adding more features and fixes for ddd GUI debugger.
12457          Code added for nexti, stepi, up, down, and other adjustments.
12458
12459 2003-04-28  Scott Dattalo  <scott AT DATTALO.COM>
12460
12461         * src/pic/pCodepeep.c non-wildcard asmops are now handled
12462         * src/pic/peeph.def Added two rules to optimize carry manipulation
12463         * src/pic/* removed debug printfs
12464
12465 2003-04-28  Bernhard Held <bernhard AT bernhardheld.de>
12466
12467         * debugger/mcs51/cmd.c: added header newalloc.h
12468
12469 2003-04-26  Bernhard Held <bernhard AT bernhardheld.de>
12470
12471         * as/Makefile: new EXEEXT
12472         * as/z80/Makefile: remove trailing slash of BUILDIR
12473         * as/z80/clean.mk: new EXEEXT
12474         * Makefile.common.in: add to CFLAGS (and others), don't replace it
12475         * support/cpp2/Makefile.in: new EXEEXT
12476         * src/pic/glue.c (pic14emitRegularMap): fixed warning
12477
12478 2003-04-24  Bernhard Held <bernhard AT bernhardheld.de>
12479
12480         Cygwin's gcc always appends .exe: 'gcc -o a a.c' creates a.exe;
12481         EXEEXT was introduced to fix all related problems with targets
12482         "clean", "install" and "uninstall"; a couple of further flaws
12483         especially with "clean" have been fixed too
12484         * as/mcs51/Makefile.in
12485         * as/mcs51/clean.mk
12486         * as/z80/Makefile
12487         * Makefile
12488         * clean.mk
12489         * debugger/mcs51/Makefile.in
12490         * debugger/mcs51/clean.mk
12491         * link/z80/Makefile
12492         * link/z80/Makefile.in
12493         * link/z80/clean.mk
12494         * link/Makefile
12495         * packihx/Makefile.in
12496         * packihx/clean.mk
12497         * sim/ucsim/Makefile
12498         * sim/ucsim/clean.mk
12499         * sim/ucsim/avr.src/Makefile.in
12500         * sim/ucsim/avr.src/clean.mk
12501         * sim/ucsim/s51.src/Makefile.in
12502         * sim/ucsim/s51.src/clean.mk
12503         * sim/ucsim/xa.src/Makefile.in
12504         * sim/ucsim/xa.src/clean.mk
12505         * sim/ucsim/z80.src/Makefile.in
12506         * sim/ucsim/z80.src/clean.mk
12507         * sim/ucsim/main_in.mk
12508         * sim/ucsim/packages_in.mk
12509         * sim/ucsim/gui.src/Makefile.in
12510         * sim/ucsim/gui.src/serio.src/Makefile.in
12511         * sim/ucsim/gui.src/serio.src/clean.mk
12512         * src/Makefile.in
12513         * src/clean.mk
12514         * support/cpp2/Makefile.in
12515         * support/cpp2/clean.mk
12516         * support/makebin/Makefile
12517         * support/makebin/clean.mk
12518         * support/scripts/sdcc_mingw32: --program-suffix no longer needed
12519         * doc/sdccman.lyx: --program-suffix no longer needed
12520
12521 2003-04-23  Karl Bongers(apply patches for Martin Helmling)
12522
12523          * debugger/mcs51/sdcdb.c,simi.c,cmd.c,..
12524          Martin Helmling added support for ddd GUI debugger.
12525          Code added to display assembly, set variables, and other commands
12526          to interface to ddd.
12527
12528 2003-04-23  Bernhard Held <bernhard AT bernhardheld.de>
12529
12530         * as/Makefile: fix target clean
12531         * as/clean.mk: fix target clean
12532         * as/z80/clean.mk: fix target clean
12533
12534 2003-04-22  Bernhard Held <bernhard AT bernhardheld.de>
12535
12536         * Makefile.common.in: added  AT EXEEXT AT
12537         * configure.in: removed all mingw32 stuff
12538         * configure: rebuilt from configure.in
12539         * doc/sdccman.lyx: updated section "installation"
12540         * support/scripts/sdcc_mingw32: adapted to configure
12541         * support/scripts/sdcc_cygwin_mingw32: added
12542
12543 2003-04-22  Scott Dattalo  <scott AT dattalo.com>
12544
12545         * src/pic Added object file support for the PIC port
12546         * src/pic Applied patch from Craig Franklin (this started the object file support)
12547         * src/regression Updated the PIC regression tests for object files
12548
12549 2003-04-20  Borut Razem <borut.razem AT siol.net>
12550
12551         * sdcc/as/mcs51/lklex.c: make getfid() more robust and fixed gcc warning:
12552           lklex.c: In function `getfid':
12553           lklex.c:203: warning: array subscript has type `char'
12554         * src/SDCCglobl.h: small change in stack handling macros, to avoid crash when compiled
12555           with MSVC with global optimization enabled (probably an cl compiler bug ;-)
12556         * support/Util/SDCCerr.c, support/Util/SDCCerr.h: added function fatal(), called from
12557           stack handling macros
12558
12559 2003-04-19  Borut Razem <borut.razem AT siol.net>
12560
12561         * "handling space characters in file path" task:
12562         * src/SDCCmacro.c: fixed bug in handlig quote at the end of line
12563         * support/Util/BuildCmd.c: define par as NULL if parameter value is invalid
12564         * support/Util/MySystem.h: make it self-sufficient
12565         * src/avr/main.c, src/ds390/main.c, src/mcs51/main.c, src/pic/main.c, src/xa51/main.c,
12566           src/z80/main.c, sdcc/as/mcs51/lklex.c:
12567           handling space characters in file path
12568         * src/SDCCmain.c: introduced setDataPaths() function, {datadir} macro
12569           (it will be used by assemblers, which have their own includes, e.g. gpasm)
12570         * support/Util/MySystem.c: handling space characters in executable's path
12571
12572 2003-04-19  Bernhard Held <bernhard AT bernhardheld.de>
12573
12574         * as/z80/Makefile: fix permanent rebuild of z80
12575         * sim/ucsim/gui.src/Makefile.in: target "install" builds the same packages as target "all"
12576         * support/regression/tests/bitfields.c: added Johan's bitfields.c
12577
12578 2003-04-18      Kevin Vigor <kevin AT vigor.nu>
12579
12580         * src/SDCCopt.c: add special case optimization to replace modulo by
12581           a power of two with a bitwise AND.
12582
12583 2003-04-18    <johan AT balder>
12584
12585         * src/mcs51/gen.c (getFreePtr): fixed bug #635354
12586
12587 2003-04-17    <johan AT balder>
12588
12589         * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #716790 and removes lot's of redundant register usage around function calls
12590         * src/mcs51/ralloc.c (packRegisters): fixed bug #720667
12591
12592 2003-04-13  Borut Razem <borut.razem AT siol.net>
12593
12594         * doc/sdccman.lyx: updated info about #pragma SAVE/RESTORE nesting
12595         * configure.in, configure: fixed problems on cygwin/WinCVS environmet with ports.* line endings;
12596           fixed mingw problem in adl_NORMALIZE_PATH
12597
12598 2003-04-12  Borut Razem <borut.razem AT siol.net>
12599
12600         * fixed "#pragma SAVE/RESTORE can not be nested":
12601         * src/SDCC.lex: reworked pragma handling functions
12602         * sdcc/src/SDCCglobl.h: reworked stack handling macros
12603         * support/Util/SDCCerr.c, support/Util/SDCCerr.h: added E_STACK_VIOLATION error
12604
12605 2003-04-12  Bernhard Held <bernhard AT bernhardheld.de>
12606
12607         * src/SDCCutil.c (pathEquivalent): defined but not used
12608         * debugger/mcs51/sdcdb.c: replace SDCC_LIB_DIR
12609         * configure.in: remove sdcc_datadir, sdcc_lib_dir and sdcc_include_dir
12610         * configure: rebuilt from configure.in
12611         * sdccconf_in.h: remove SDCC_LIB_DIR and SDCC_INCLUDE_DIR
12612         * sdcc_vc_in.h: remove SDCC_LIB_DIR and SDCC_INCLUDE_DIR
12613         * device/include/Makefile.in: replace sdcc_datadir
12614         * device/lib/Makefile.in: replace sdcc_datadir
12615         * Makefile.common.in: add LDFLAGS from configure
12616         * packihx/Makefile.in: use LDFLAGS
12617         * src/Makefile.in: use LDFLAGS
12618         * support/cpp2/Makefile.in: add LDFLAGS from configure
12619         * support/makebin/Makefile: use LDFLAGS
12620         * .version: bumped version number to 2.3.5
12621
12622 2003-04-12  Borut Razem <borut.razem AT siol.net>
12623
12624         * completed "different paths" task:
12625         * src/SDCCmacro.c: fixed bug in handling quotes
12626         * src/SDCCutil.c, src/SDCCutil.c: rewritten getPrefixFromBinPath()
12627         * src/SDCCmain.c: _discoverPaths() replaced with setBinPaths(), setIncludePath() and setLibPath()
12628
12629 2003-04-12  Bernhard Held <bernhard AT bernhardheld.de>
12630
12631         * src/pic/pcoderegs.c (Remove1pcode): fix warning on alpha
12632
12633 2003-04-11 kevin Vigor <kevin AT vigor.nu>
12634
12635         * ds390/gen.c ds390/peeph.def: fix bug 706781
12636
12637 2003-04-11  Borut Razem <borut.razem AT siol.net>
12638
12639         * support/Util/dbuf.c, support/Util/dbuf.h: update to version 1.1.1 - re-added C++ stuff to make it still more portable
12640
12641 2003-04-10  Scott Dattalo  <scott AT dattalo.com>
12642
12643         * src/pic/* Applied the pointer-to-function patch from Steve Tell.
12644         * src/pic/* Fixed several pointer bugs. (PIC port broke when the ruonly bit was
12645          set - this bit used to not be set...).
12646         * src/pic/gen.c Fixed buf 609268 ==> x = (x+1) & 0xf; generated
12647           bad code in PIC Port
12648         * src/regression/and2.c added to test bug 609268
12649         * src/regression/Makefile added and2.c to regression test
12650
12651
12652 2003-04-08    <johan AT CP255758-A>
12653
12654         * src/mcs51/gen.c (gen51Code): display reg usage in --icode-in-asm
12655         * src/mcs51/ralloc.c (serialRegAssign): update the registers in use and save some slocs
12656         * src/SDCCicode.h: added riu to show the register usage in --icode-in-asm
12657
12658 2003-04-07  Bernhard Held <bernhard AT bernhardheld.de>
12659
12660         * configure.in: fully support prefix, exec_prefix, datadir, docdir;
12661         fix bug #487815
12662         * support/cpp2/Makefile.in: fix bug #487815
12663         * configure: rebuilt from configure.in
12664         * Makefile.common.in: docdir changed, new path suffixes
12665         * sdccconf_in.h: new RETSIGTYPE, and other PATHs
12666         * sdcc_vc_in.h: reflect changes from sdccconf.h
12667         * src/SDCCglobl.h: remove *SEPARATOR_CHARS, they are now in sdccconf.h
12668         * src/SDCCutil.h: remove BINDIR hack
12669         * doc/sdccman.lyx: update new path hierarchy
12670
12671 2003-04-06    Paul Stoffregen <paul AT pjrc.com>
12672
12673         * src/SDCCpeeph.c: added okToRemoveSLOC test
12674
12675 2003-04-06    Paul Stoffregen <paul AT pjrc.com>
12676
12677         * device/lib/printf_fast.c: added leading zero format ("%06d", etc)
12678
12679 2003-04-06    Paul Stoffregen <paul AT pjrc.com>
12680
12681         * src/SDCCpeeph.c: added labelIsReturnOnly test
12682         * src/mcs51/peeph.def: Peephole 244: replace ljmp to ret with ret
12683
12684 2003-04-05    <johan AT balder>
12685
12686         * src/SDCCcse.c (cseAllBlocks): fixed bug #460088
12687         * src/SDCCloop.c (DEFSETFUNC): fixed bug #460088
12688         * src/SDCCopt.c (eBBlockFromiCode): fixed bug #460088
12689         * src/SDCCast.c: fixed a warning
12690         * src/SDCCast.h: fixed a warning
12691         * src/SDCCicode.c (operandFromAst): fixed a warning
12692
12693 2003-04-04    <johan AT balder>
12694
12695         * src/SDCCloop.c (DEFSETFUNC): undid the fix for bug #519584
12696         * src/SDCCast.c (decorateType): fixed bug #715076
12697         * src/SDCC.y: fixed bug #702907
12698
12699 2003-04-03    <johan AT balder>
12700
12701         * device/lib/_mulint.c (_muluint): new #pragma LESS_PEDANTIC
12702         * src/SDCCopt.c (eBBlockFromiCode): new #pragma LESS_PEDANTIC
12703         * src/SDCCglobl.h (PRAGMA_LESSPEDANTIC): new #pragma LESS_PEDANTIC
12704         * src/SDCC.lex (doPragma): new #pragma LESS_PEDANTIC
12705         * src/SDCCmain.c (parseCmdLine): new #pragma LESS_PEDANTIC
12706
12707 2003-04-03  Bernhard Held <bernhard AT bernhardheld.de>
12708
12709         * _decdptr.c: fix return values
12710         * _gptrget.c: fix return values
12711         * _gptrgetc.c: fix return values
12712         * _gptrput.c: fix return values
12713         * _mulint.c: fix return values
12714         * as/z80/Makefile: fix 'make -j' problem
12715
12716 2003-04-02  Bernhard Held <bernhard AT bernhardheld.de>
12717
12718         * Makefile.common.in: unused PORT, SCC and SAS removed, fixed docdir
12719         * configure.in: big cleanup, updated to autoconf 2.5x
12720         * configure: rebuilt from configure.in
12721         * sdccconf_in.h: new RETSIGTYPE, and other PATHs
12722         * sdcc_vc_in.h: reflect changes from sdccconf.h
12723         * doc/Makefile: fixed a flaw in "make install"
12724
12725 2003-04-02    <johan AT balder>
12726
12727         * src/ds390/gen.c (genCmp): no comments
12728         * src/mcs51/gen.c (genCmp): no comments
12729         * src/SDCCopt.c (eBBlockFromiCode): detect missing return values
12730         * src/SDCCast.c (ast_print): fixed the function type in --dumptree
12731
12732 2003-04-01  Bernhard Held <bernhard AT bernhardheld.de>
12733
12734         * support/regression/generate-cases.py: place generated file in given sub directory
12735         * support/regression/ports/host/spec.mk: prevent removal of testfwk.o
12736         * support/regression/Makefile: improvements for 'make -j';
12737         side effect: it's simpler and faster now
12738
12739 2003-03-31  Borut Razem <borut.razem AT siol.net>
12740
12741         * src/z80/main.c: link-{port} and as-{port} defined without path
12742         * src/src.dsp: support/Util/MySystem.h and src/SDCCutil.h added to project
12743
12744 2003-03-31  Bernhard Held <bernhard AT bernhardheld.de>
12745
12746         * Makefile, src/Makefile.in: add dependencies, so that 'make -j' works
12747
12748 2003-03-30  Borut Razem <borut.razem AT siol.net>
12749
12750         * support/Util/BuildCmd.c, support/Util/BuildCmd.h: rewrite buildCmdLine(),
12751           changed type of list parameter to set
12752         * src/ds390/main.c: changed type of parameter asmOptions to set in _tininative_do_assemble()
12753         * src/port.h: changed type of do_assemble() parameter to set
12754         * src/SDCCmain.c: type of asmOptions changed to set, introduced setParseWithComma(),
12755           sdcpp defined without path, removed variable VersionString, introduced set binPathSet,
12756           definition of "cppoutfilename" macro with NULL value in preProcess()
12757         * src/SDCCglobl.h: included "SDCCset.h", added declaration of setParseWithComma()
12758         * src/SDCCglue.c: removed variable VersionString, inroduced spacesToUnderscores()
12759         * support/Util/MySystem.c, support/Util/MySystem.h: rewrite, char *ExePathList[]
12760           replaced with set *binPathSet
12761         * shash_add() deallocates the item, if allready exsists, before adding the new one
12762         * src/SDCCmacro.c: handling macros with empty or NULL values in _evalMacros()
12763
12764 2003-03-30  Scott Dattalo  <scott AT dattalo.com>
12765
12766         * src/pic/gen.c: Commit patch from Steve Tell <tell AT telltronics.org> that fixes
12767           a nested for loop bug in the PIC port
12768         * src/regression/nestfor.c: new regression test file Steve wrote to test nested
12769           for loops
12770
12771 2003-03-29  Bernhard Held <bernhard AT bernhardheld.de>
12772
12773         * support/Util/dbuf.h: remove C++ stuff to make it portable
12774
12775 2003-03-28  Borut Razem <borut.razem AT siol.net>
12776
12777         * src/SDCC.lex: Fix for bug #711240: dynamic buffer handling of C
12778           literal strings in stringLiteral()
12779         * support/Util/dbuf.c, support/Util/dbuf.h: added: dynamic buffer handling
12780         * src/Makefile.bcc, src/Makefile.in, src/src.dsp: added support/Util/dbuf.c
12781           to the project
12782
12783 2003-03-27  Paul Stoffregen <paul AT pjrc.com>
12784
12785         * src/SDCCpeeph.c (pcDistance): accurate byte distance for mcs51
12786
12787 2003-03-26    <johan AT balder>
12788
12789         * src/mcs51/gen.c (saveRegisters): catched symbol abuse
12790         * src/ds390/gen.c (saveRegisters): catched symbol abuse
12791         * src/SDCCast.c (decorateType): fixed " -v < 3"
12792
12793 2003-03-23  Bernhard Held <bernhard AT bernhardheld.de>
12794
12795         * doc/cdbfile.html: removed, replaced by cdbfileformat.lyx
12796         Added Lenny Story's debug infrastructure changes:
12797         * src/Makefile.in:  added new files cdbFile.c and SDCCdebug.c
12798         * src/Makefile.bcc: added new files cdbFile.c and SDCCdebug.c
12799         * src/cdbFile.c: added
12800         * src/SDCCdebug.c: added
12801         * src/SDCCdebug.h: added
12802         * src/SDCCast.c (createFunction)
12803         * src/SDCCglue.c (emitRegularMap, emitStaticSeg, emitOverlay, glue)
12804         * src/SDCCmain.c (parseCmdLine, main)
12805         * src/SDCCmem.c (redoStackOffsets)
12806         * src/SDCCsymt.c (cdbStructBlock, cdbTypeInfo, cdbSymbol, cdbStruct, cdbStructBlock)
12807         * src/SDCCsymt.h
12808         * src/common.h
12809         * src/avr/gen.c (genAVRCode)
12810         * src/ds390/gen.c (gen390Code)
12811         * src/mcs51/gen.c (gen51Code)
12812         * src/pic/gen.c (genpic14Code)
12813         * src/pic/glue.c (pic14emitRegularMap, pic14emitStaticSeg, pic14emitOverlay, picglue)
12814         * src/xa51/gen.c (genXA51Code)
12815         * src/SDCCast.c: fixed "void foo(void){char c; -c < 0;}"
12816
12817 2003-03-22  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12818
12819         * src/mcs51/gen.c (genCodePointerGet): quicker code for bug #700797
12820         * src/mcs51/peeph.def: added rules 177, 241.x to 243, touched 181, 182.x, 193.x
12821
12822 2003-03-22    <johan AT balder>
12823
12824         * src/SDCCicode.c (geniCodeDerefPtr): fixed bug #698231
12825
12826 2003-03-21  Bernhard Held <bernhard AT bernhardheld.de>
12827
12828         * support/scripts/sdcc_mingw32: adapted to configure from autoconf 2.54
12829         * doc/cdbfileformat.lyx: added, written by Lenny Story
12830         * doc/Makefile: added cdbfileformat.lyx
12831         * doc/clean.mk: added cdbfileformat.lyx
12832
12833 2003-03-20  Bernhard Held <bernhard AT bernhardheld.de>
12834
12835         * src/mcs51/peeph.def: fix bug #705773
12836
12837 2003-03-20    <johan AT balder>
12838
12839         An sfr/sbit can have an "at #" AND an initializer
12840         * src/SDCCsymt.c (checkSClass):
12841         * src/SDCCmem.c (allocGlobal):
12842         * src/SDCCmem.c (allocLocal):
12843         * src/SDCCast.c (createBlock):
12844
12845 2003-03-17  Bernhard Held <bernhard AT bernhardheld.de>
12846
12847         * src/ds390/peeph.def: fix bug #704878: added rule 213.b suggested by Jan Rejlek
12848
12849 2003-03-16    <johan AT balder>
12850
12851         Undid the hackup of const and volatile, the problem is much bigger
12852         * src/SDCC.y:1.65
12853         * src/SDCCast.c:1.171
12854         * src/SDCCglue.c:1.138
12855         * src/SDCCicode.c:1.146
12856         * src/SDCCsymt.c:1.150
12857         * src/SDCCval.c:1.65
12858
12859 2003-03-15  Bernhard Held <bernhard AT bernhardheld.de>
12860
12861         * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #703541
12862         * src/ds390/gen.c (genAddrOf): fixed bug #704087
12863
12864 2003-03-13    <johan AT balder>
12865
12866         Hackup const and volatile modifiers in type chains a bit:
12867         * src/SDCC.y:1.63
12868         * src/SDCCast.c:1.169
12869         * src/SDCCglue.c:1.136
12870         * src/SDCCicode.c:1.143
12871         * src/SDCCsymt.c1.146
12872         * src/SDCCsymt.h1.59
12873         * src/SDCCval.c:1.63
12874
12875 2003-03-12    <johan AT balder>
12876
12877         * src/SDCCBBlock.h: more LRH debugging junk
12878         * src/SDCCcflow.h: more LRH debugging junk
12879         * src/SDCCloop.c: more LRH debugging junk
12880         * src/SDCC.y (struct_declaration): fixed bug #697590
12881         * src/SDCCsymt.[hc] (cloneSpec): NEVER EVER use this again
12882         * src/ds390/gen.c (aopForRemat): fixed bug #700031
12883         * src/SDCCglue.c (emitStaticSeg): fixed bug #700797
12884
12885 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
12886         * src/SDCCpeeph.c: quit being lazy and made proper fix (peephole
12887         test function names must now match exactly).
12888         * src/SDCCcse.c: added special case in findCheaperOp to allow
12889         extending a short integer. Makes less awful code for bug 700121 test case.
12890
12891 2003-03-11  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12892
12893         * as/mcs51/lkmain.c: Added ASlink-Warning to messages
12894         * as/mcs51/lkaomf51.c: Fixed bug when linking asmblink example
12895
12896 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
12897
12898         * src/SDCCpeeph.c: fix so that operandsNotEqualX functions are
12899         actually called (operandsNotEqual() was called for all
12900         operandsNotEqualX tests).
12901
12902 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
12903
12904         * src/SDCCcse.c: fix findCheaperOp to prevent replacing int types
12905         with shorter literals. Fixes bug 700121.
12906
12907 2003-03-11    <johan AT balder>
12908
12909         * src/SDCCsymt.c (compareType): a (void *) can be assigned to any pointer
12910
12911 2003-03-11  Bernhard Held <bernhard AT bernhardheld.de>
12912
12913         * src/SDCCloop.c (mergeRegions): an evil beast is dead
12914         * src/SDCCmain.c (preProcess): minor cleanup: eliminate preOutName
12915
12916 2003-03-10  Borut Razem <borut.razem AT siol.net>
12917
12918         * src/SDCCmain.c: pipe preprocessor's output
12919         * support/Util/MySystem.c, support/Util/MySystem.h: added my_popen()
12920         * sdcc_vc_in.h: define pclose as _pclose for WIN32
12921         * src/SDCCglue.c, src/SDCCglue.h: added set pipeSet, added function closePipes,
12922         which closes all pipes in pipeSet set
12923         * src/SDCCset.c: free deleted item in function deleteSetItem()
12924         * src/src.dsp, src/z80/z80.dsp: files support/Util/BuildCmd.c and support/Util/MySystem.c
12925         moved from z80 to src subproject
12926         * .version: increased version number to 2.3.4
12927
12928 2003-03-10  Bernhard Held <bernhard AT bernhardheld.de>
12929
12930         * support/regression/ports/mcs51/spec.mk: increase timeout for CF's sparc to 30s
12931         * support/regression/ports/ds390/spec.mk: increase timeout for CF's sparc to 25s
12932         * support/regression/ports/xa51/spec.mk: fix typo
12933
12934 2003-03-09  Bernhard Held <bernhard AT bernhardheld.de>
12935
12936         * src/SDCCglobl.h: PATH_MAX is already defined in mingw32 headers
12937
12938 2003-03-09  Borut Razem <borut.razem AT siol.net>
12939
12940         * src/SDCCmain.c: pipe preprocessor's output
12941         * support/Util/MySystem.c, support/Util/MySystem.h: added my_popen()
12942         * sdcc_vc_in.h: define pclose as _pclose for WIN32
12943         * src/SDCCglue.c, src/SDCCglue.h: added set pipeSet, added function closePipes,
12944         which closes all pipes in pipeSet set
12945         * src/SDCCset.c: free deleted item in function deleteSetItem()
12946         * src/src.dsp, src/z80/z80.dsp: files support/Util/BuildCmd.c and support/Util/MySystem.c
12947         moved from z80 to src subproject
12948
12949 2003-03-09  Borut Razem <borut.razem AT siol.net>
12950
12951         * src/SDCCglue.c: re-implemented tempfilename() and tempfile(): using mkstemp() if available
12952         * src/SDCCsymt.h: fixed MSVC and BORLANDC compilation (included SDCCglobl.h instead srccconf.h)
12953         * sdcc_vc_in.h: explicitly undefined HAVE_MKSTEMP which is not available on BORLANDC and MSVC
12954         * src/SDCCset.h: removed inclusion of sdccconf.h or sdcc_vc.h
12955         * src/SDCCglobl.h: unification of WIN32 native definitions
12956
12957 2003-03-09  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12958
12959         * src/mcs51/gen.c: applied in-/dec patch mentioned on sdcc-devel 2003-03-01
12960
12961 2003-03-08  Bernhard Held <bernhard AT bernhardheld.de>
12962
12963         * src/configure.in:   check for endianess (even while cross-compiling)
12964         * src/configure:      check for endianess (even while cross-compiling)
12965         * src/configure_in.h: check for endianess (even while cross-compiling)
12966         * src/avr/gen.c:        remove old endianess stuff
12967         * src/mcs51/gen.c:      remove old endianess stuff
12968         * src/ds390/gen.c:      remove old endianess stuff
12969         * src/pic/gen.c:        remove old endianess stuff
12970         * src/pic/genarith.c:   remove old endianess stuff
12971         * src/pic/glue.c:       fix endianess check
12972         * src/pic16/gen.c:      remove old endianess stuff
12973         * src/pic16/genarith.c: remove old endianess stuff
12974         * src/pic16/glue.c:     fix endianess check
12975         * src/xa51/gen.c:       remove old endianess stuff
12976         * src/z80/gen.c:        fix endianess check
12977         * src/SDCCglue.c:       fix endianess check
12978         * src/ds390/peeph.def: fix bug 700036
12979
12980 2003-03-08  Bernhard Held <bernhard AT bernhardheld.de>
12981
12982         * src/SDCCsymt.h: use appropriate data-types on host for SDCC's int and long
12983         * src/configure: find appropriate data-types on host for SDCC's int and long
12984         * src/configure.in: find appropriate data-types on host for SDCC's int and long
12985         * src/sdccconf_in.h: find appropriate data-types on host for SDCC's int and long
12986         * src/xa51/gen.c: use %d, not %ld for 4 byte variables
12987
12988 2003-03-07    <johan AT balder>
12989
12990         Just a big NOOP:
12991                 some minor cleanups before the big shot
12992                 OP_DEFS and OP_USES now use Kevin's protection
12993                 new option --nolabelopt
12994
12995         * src/SDCCBBlock.c:
12996         * src/SDCCast.c,:
12997         * src/SDCCcflow.c:
12998         * src/SDCCcse.c:
12999         * src/SDCCicode.c:
13000         * src/SDCCicode.h:
13001         * src/SDCClabel.c:
13002         * src/SDCCloop.c:
13003         * src/SDCCmain.c:
13004         * src/ds390/ralloc.c:
13005         * src/mcs51/ralloc.c:
13006         * src/pic/ralloc.c:
13007         * src/xa51/ralloc.c:
13008         * src/z80/ralloc.c:
13009
13010 2003-03-06  Bernhard Held <bernhard AT bernhardheld.de>
13011
13012         * src/pic/pcode.c (get_op): fix 64 bit warnings
13013         * src/pic/pcode.c (pCode2str): fix 64 bit warnings
13014         * src/SDCChasht.c (newHashTable): fix 64 bit warnings
13015         * src/SDCCsymt.c (checkTypeSanity): fix 64 bit warnings
13016         * support/regression/tests/malloc.c: fix 64 bit warnings
13017
13018 2003-03-04  Bernhard Held <bernhard AT bernhardheld.de>
13019
13020         * src/mcs51/gen.c (genMinus): fixed bug 696436
13021
13022 2003-03-02  Borut Razem <borut.razem AT siol.net>
13023
13024         * src/SDCCmain.c: added BORLANDC, corrected MSVC in printVersionInfo()
13025
13026 2003-02-26  Bernhard Held <bernhard AT bernhardheld.de>
13027
13028         * configure.in: test for mkstemp
13029         * sdccconf_in.h: add HAVE_MKSTEMP
13030
13031 2003-02-24  Bernhard Held <bernhard AT bernhardheld.de>
13032
13033         * device/include/ctype.h: removed warning while using --stack-auto
13034         * device/include/malloc.h: removed warning while using --stack-auto
13035         * device/include/string.h: removed warning while using --stack-auto
13036
13037 2003-02-23  Borut Razem <borut.razem AT siol.net>
13038
13039         * src/asm.h: corrected assertion in function printILine(): _pipe() was not executed on MSVC,
13040         because NDEBUG is defined (see man assert)
13041         * sdcc_vc_in.h: vsnprintf is defined as _vsnprintf on MSVC
13042
13043 2003-02-23  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13044
13045         * src/mcs51/gen.c (genUminusFloat): avoided dptr in-/decrement for xdata variables
13046         * src/mcs51/peeph.def: added rule suggested by Gernot Fink, white space/comment changes
13047
13048 2003-02-18  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13049
13050         * src/SDCCpeeph.c: added peephole conditions testing for same arguments
13051         * src/mcs51/peeph.def: added rules 238a-d which remove redundant moves
13052
13053 2003-02-18    <johan AT balder>
13054
13055         * as/mcs51/asmain.c (asmbl): module can start with a digit
13056         * as/z80/asmain.c (asmbl): module can start with a digit
13057
13058 2003-02-16  Bernhard Held <bernhard AT bernhardheld.de>
13059
13060         * sim/ucsim/mkecho: inserted #!/bin/sh for Cygwin, so that it's executable
13061         * src/asm.c: fix pipe() for Mingw32
13062
13063 2003-02-15  Bernhard Held <bernhard AT bernhardheld.de>
13064
13065         * src/SDCCglue.h: make tmpfileNameSet available for preOutName
13066         * src/SDCCmain.c (preProcess): make sure, that preOutName will be deleted;
13067         make -V work again; --c1mode reads now from stdin
13068         * doc/sdccman.lyx: added --c1mode
13069         * support/Util/SDCCerr.c: new messages for c1 mode
13070         * support/Util/SDCCerr.h: new messages for c1 mode
13071         * src/SDCC.lex (checkCurrFile): test if fullSrcFileName is NULL for c1mode
13072
13073 2003-02-15    <johan AT balder>
13074
13075         * src/asm.c: new options: --no-c-code-in-asm and --i-code-in-asm
13076
13077 2003-02-14  Bernhard Held <bernhard AT bernhardheld.de>
13078
13079         * doc/sdccman.lyx: Environment variables, -o and other minor things
13080
13081 2003-02-14    <johan AT balder>
13082
13083         * src/xa51/main.c: before anyone really tries to use it :)
13084
13085         * Install doc's in share/sdcc/doc
13086         * removed some obsolete files
13087         * Do a proper make distclean and uninstall
13088         M Makefile.common.in
13089         R sdccbuild.sh
13090         M as/Makefile
13091         M device/include/Makefile.in
13092         M device/lib/Makefile.in
13093         M doc/sdccman.lyx
13094         M link/Makefile
13095         M sim/ucsim/doc/Makefile.in
13096         M src/clean.mk
13097         R src/avr/peeph.rul
13098         R src/xa51/peeph.rul
13099         M support/cpp2/Makefile.in
13100         M support/makebin/Makefile
13101
13102
13103 2003-02-13  Bernhard Held <bernhard AT bernhardheld.de>
13104
13105         * support/regression/ports/host/spec.mk: use cc as host compiler for max osx
13106
13107 2003-02-10  Borut Razem <borut.razem AT siol.net>
13108
13109         * doc/bccinst.txt, packihx/packihx.c, sdcc_vc_in.h, src/SDCCset.h,
13110         support/cpp2/config.in: Borland C++ build doesn't depend on Cygwin configure
13111         * Bcc.ini, Makefile.bcc, as/mcs51/Makefile.bcc,
13112         device/examples/ds390/tinitalk/Makefile.bcc, packihx/Makefile.bcc,
13113         support/cpp2/Makefile.bcc, src/Makefile.bcc, src/avr/Makefile.bcc,
13114         src/ds390/Makefile.bcc, src/izt/Makefile.bcc, src/mcs51/Makefile.bcc,
13115         src/pic/Makefile.bcc, src/pic16/Makefile.bcc, src/xa15/Makefile.bcc,
13116         src/z80/Makefile.bcc: Borland Makefile cleanup
13117         * as/z80/Makefile.bcc: Added Borland Makefile
13118         * support/cpp2/borland.h: Removed
13119
13120 2003-02-10  Bernhard Held <bernhard AT bernhardheld.de>
13121
13122         * doc/sdccman.lyx: new pragma NOIV by "Johannes Stezenbach" <js AT convergence.de>
13123         * src/SDCC.lex: new pragma NOIV
13124         * src/SDCCglobl.h: new pragma NOIV
13125         * src/SDCCmem.c: new pragma NOIV
13126
13127 2003-02-09  Bernhard Held <bernhard AT bernhardheld.de>
13128
13129         * src/SDCCmain.c: signal handling is switched off by SDCC_LEAVE_SIGNALS
13130
13131 2003-02-09  Bernhard Held <bernhard AT bernhardheld.de>
13132
13133         * src/SDCCmain.c: signal handling is switched off by --debug
13134         * doc/Makefile: small fix for install; use clean.mk again
13135         * doc/clean.mk: clean *.pdf and *.html too
13136
13137 2003-02-08  Bernhard Held <bernhard AT bernhardheld.de>
13138
13139         * device/lib/_mulint.c: small fix for large/ds390 --int-long-reent resp. --stack-auto
13140         * device/lib/printfl.c: fix a ds390 bug by making it portable
13141         * src/SDCCsymt.c (initCSupport): fix compile warning on Cygwin
13142         * src/SDCCopt.c (cnvToFloatCast): fix compile warning on Cygwin
13143         * src/SDCCopt.c (cnvFromFloatCast): fix compile warning on Cygwin
13144         * debugger/mcs51/cmd.c: converted multi-line string literals
13145         * sim/ucsim/globals.cc: converted multi-line string literals
13146         * src/SDCCmain.c: introduced signal handler to remove temp files
13147         * doc/Makefile: small tweaks, implement clean
13148         * doc: removed generated files
13149
13150 2003-02-05  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13151
13152         * as/mcs51/aslink.h, as/mcs51/lkihx.c, as/mcs51/lkrloc.c:  Applied
13153         patch from Jan Rejlek <jr AT apex-lib.cz> to fix Bug 677692: "Extended
13154         Address Record is not correctly generated for DS390."
13155
13156 2003-02-02  Borut Razem <borut.razem AT siol.net>
13157
13158         * Makefile.bcc: removed non existing cpp project and non compilable izt project from makefile
13159         * as/mcs51/asm.h: fixed compilation with Borland C
13160         * support/cpp2/Makefile.bcc: added rule to generate auto-host.h
13161         * support/cpp2/auto-host_vc_in.h: fixed compilation with Borland C
13162         * src/mcs51/mcs51a.dsp: corrected misspelled project name from msc51a to mcs51a
13163         * src/avr/Makefile.bcc, src/ds390/Makefile.bcc, src/izt/Makefile.bcc,
13164         src/mcs51/Makefile.bcc, src/pic16/Makefile.bcc, src/xa51/Makefile.bcc,
13165         src/z80/Makefile.bcc: delete $(LIB) only if exist
13166         * src/Makefile.bcc, src/pic/Makefile.bcc:  fixed compilation with Borland C
13167
13168 2003-02-02  Bernhard Held <bernhard AT bernhardheld.de>
13169
13170         * device/include/malloc.h: introduced NULL
13171         * device/include/string.h: introduced NULL
13172         * device/include/stdlib.h: introduced NULL
13173         * device/lib/_memcpy.c: removed NULL
13174         * device/lib/_strcat.c: removed NULL
13175         * device/lib/_strchr.c: removed NULL
13176         * device/lib/_strcmp.c: removed NULL
13177         * device/lib/_strcpy.c: removed NULL
13178         * device/lib/_strcspn.c: removed NULL
13179         * device/lib/_strlen.c: removed NULL
13180         * device/lib/_strncat.c: removed NULL
13181         * device/lib/_strncmp.c: removed NULL
13182         * device/lib/_strncpy.c: removed NULL
13183         * device/lib/_strpbrk.c: removed NULL
13184         * device/lib/_strrchr.c: removed NULL
13185         * device/lib/_strspn.c: removed NULL
13186         * device/lib/_strstr.c: removed NULL
13187         * device/lib/_strtok.c: removed NULL
13188         * device/lib/malloc.c: removed NULL, include own header
13189
13190 2003-02-02    <johan AT balder>
13191
13192         * 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
13193         * support/regression/fwk/lib/testfwk.c: div and mod isn't broken anymore
13194         * regressions ds390/spec.mk and mcs51/spec.mk (timeout): my good old balder isn't fast enough for some tests
13195         * src/z80/gen.c (genZ80Code): added c-lines in asm comments
13196         * as/z80/asm.h (NINPUT): increased for long c-comments in regression tests
13197         * src/z80/gen.c (genRightShiftLiteral): fixed the (char)(-3)>>8 (I think)
13198
13199 2003-02-01  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13200
13201         * src/SDCCmain.c: Fixed bug 678574: "ds390: ASlink-Error-Stack overlaps
13202         area 'DATA'"
13203
13204 2003-02-01    <johan AT balder>
13205
13206         * src/SDCCval.c (valBitwise): fixed Karl's "2 | (1<<8)"
13207
13208 2003-01-31    <johan AT CP255758-A>
13209
13210         * src/ds390/main.c (_ds390_genAssemblerPreamble): applied Jan Rejlek's >64K startup patch
13211
13212 2003-01-30    <johan AT balder>
13213
13214         * src/SDCCBBlock.c: automatic bug detection
13215         * src/SDCCicode.c: automatic bug detection
13216
13217 2003-01-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13218
13219         * src/SDCCglobl.h:   now --xram-size 0 works
13220         * src/SDCCmain.c:    now --xram-size 0 works
13221
13222 2003-01-29    <johan AT balder>
13223
13224         * src/almosteverything: changed OP_DEFS and OP_USES from macros to functions to catch symbol abuse (a hot topic in the bug list :)
13225
13226 2003-01-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13227
13228         * as/mcs51/aslink.h: Added options --xram-size and --code-size
13229         * as/mcs51/lkdata.c: Added options --xram-size and --code-size
13230         * as/mcs51/lkmain.c: Added options --xram-size and --code-size
13231         * as/mcs51/lkmem.c:  Added options --xram-size and --code-size
13232         * src/SDCCglobl.h:   Added options --xram-size and --code-size
13233         * src/SDCCmain.c:    Added options --xram-size and --code-size
13234
13235 2003-01-28  Bernhard Held <bernhard AT bernhardheld.de>
13236
13237         * src/ds390/gen.c: fix deps by replacing <common.h> with "common.h"
13238         * src/SDCC.lex: rename P_OVERLAY to P_OVERLAY_ for cross-gcc 3.2 MINGW32
13239
13240 2003-01-27    <johan AT balder>
13241
13242         * src/SDCC.y: fixed bug #613764
13243
13244 2003-01-26    <johan AT balder>
13245
13246         * src/SDCClrange.c:  fixed Bernhard's "char * code ptr = &c"
13247         * src/SDCCsymt.h: fixed bug #673374
13248         * src/SDCCglue.c: fixed bug #661910
13249         * src/SDCCast.c: fixed bug #458099 and 673374
13250
13251 2003-01-26  Bernhard Held <bernhard AT bernhardheld.de>
13252
13253         * as/mcs51/strcmpi.c: added, provides Aurelien Jarno's as_strcmpi(); strcmpi() is not ANSI
13254         * as/mcs51/strcmpi.h: added
13255         * as/mcs51/asm.h: remove ugly "#define strcmpi strcmp"
13256         * as/mcs51/aslink.h: remove ugly "#define strcmpi strcmp"
13257         * as/mcs51/asmain.c: strcmpi -> as_strcmpi
13258         * as/mcs51/assym.c: strcmpi -> as_strcmpi
13259         * as/mcs51/lkmem.c: strcmpi -> as_strcmpi
13260         * as/mcs51/lknoice.c: strcmpi -> as_strcmpi
13261         * as/mcs51/lksym.c: strcmpi -> as_strcmpi
13262         * as/mcs51/Makefile.aslink: new module strcmpi
13263         * as/mcs51/Makefile.asx8051: new module strcmpi
13264         * as/mcs51/Makefil.bcc: new module strcmpi
13265         * as/mcs51/Makefile.in: new module strcmpi
13266         * sim/ucsim/s51.src/uc390.cc (get_mem_size): make RAM big enough for tinibios
13267
13268 2003-01-26    <johan AT balder>
13269
13270         * src/SDCCglue.c: reverted back to 1.124
13271         * src/SDCCast.c: reverted back to 1.156
13272         * src/mcs51/gen.c (aopGet): applied Frieder's efficiency patch
13273
13274 2003-01-25    <johan AT balder>
13275
13276         * src/SDCCglue.c: A better fix for bug #661910
13277         * src/SDCCast.c: A better fix for bug #661910
13278         * src/SDCCglue.c (emitRegularMap): That was a little too efficient
13279
13280 2003-01-24  Bernhard Held <bernhard AT bernhardheld.de>
13281
13282         * src/Makefile.in: remove spawn.o
13283         * src/SDCCmain.c: remove spawn.h
13284         * src/SDCCmain.c (printVersionInfo): report MINGW32 instead of UNIX
13285         * src/spawn.c: removed
13286         * src/spawn.h: removed
13287         * support/regression/ports/ds390/spec.mk: link with -r
13288
13289 2003-01-24    <johan AT CP255758-A>
13290
13291         * src/ds390/gen.c (aopOp): fixed bug #667458
13292         * src/SDCCglue.c (emitRegularMap): fixed bug #458099 again
13293         * src/SDCCast.c (createIvalCharPtr): fixed bug #661910
13294         (createIvalCharPtr): an ival doesn't always have a storage class anymore
13295
13296 2003-01-24  Bernhard Held <bernhard AT bernhardheld.de>
13297
13298         * src/mcs51/peeph.def: better assembler identation by Frieder
13299         * src/mcs51/gen.c: better assembler identation by Frieder
13300
13301 2003-01-22  Bernhard Held <bernhard AT bernhardheld.de>
13302
13303         * as/z80/string.h: removed for gcc 3.2
13304         * support/makebin/makebin.c: #include <string.h> for gcc 3.2
13305         * src/pic/pcode.c (get_op_from_instruction): fix concatenation of string literals with __FUNCTION__ for gcc 3.2
13306
13307 2003-01-19  Bernhard Held <bernhard AT bernhardheld.de>
13308
13309         * src/SDCCmain.c (linkEdit): rename mem and map files even in case of failure
13310         * src/SDCCpeeph.c (replaceRule): fix bug #663503
13311         * support/regression/Makefile: separate temp files for ports
13312         * support/regression/generate-cases.py: separate temp files for ports
13313         * src/mcs51/peeph.def: Frieder: removed 237 (obsolete by 236g and 105); added 237 a/b
13314         * src/ds390/peeph.def: Frieder: removed 237 (obsolete by 236g and 105); added 237 a/b
13315
13316 2003-01-19  Bernhard Held <bernhard AT bernhardheld.de>
13317
13318         * moved tinitalk to device/examples/ds390
13319
13320 2003-01-14  Bernhard Held <bernhard AT bernhardheld.de>
13321
13322         * as/mcs51/lkmem.c: rflag is for DS390
13323         * src/SDCCglobl.h: removed out_name and options stackOnData, genericPtr
13324         * src/SDCCmain.c (optionsTable, setDefaultOptions): removed --stack-after-data and --generic
13325                          (linkEdit): move mem- and map-files the same way as ihx-files
13326         * src/z80/main.c (_setDefaultOptions): removed --generic
13327         * src/SDCCmain.c (_processC1Arg, parseCmdLine, main): --c1mode works again
13328         * src/SDCCglue.c (createInterruptVect, glue): --c1mode works again
13329         * src/pic/glue.c (picglue): --c1mode works again
13330         * src/pic16/glue.c (pic16glue): --c1mode works again
13331         * src/asm.c (printCLine): fix #660034
13332
13333 2003-01-13  Bernhard Held <bernhard AT bernhardheld.de>
13334
13335         * src/ds390/peeph.def: fix #123; add 14 rules by Fiorenzo D. Ramaglia <fd.ramaglia AT tin.it>, 1 by Frieder
13336         * src/mcs51/peeph.def: fix #123; add 14 rules by Fiorenzo, 1 by Frieder
13337         * src/mcs51/gen.c (genFunction): emit r0 instead of ar0 by Fiorenzo
13338         * as/mcs51/lkmem (summary): better fix for sp problem
13339         * src/SDCCglue.c (glue): __start_stack - 1, saves 1 byte!
13340         * src/ds390/main.c (_ds390_finaliseOptions, _tininative_finaliseOptions): stack_loc = 0x400008
13341         * support/regression/ports/*/spec.mk: moving testfwk-object to port dir allow parallel execution of regression tests
13342                                               remove --stack-after-data
13343
13344 2003-01-12  Bernhard Held <bernhard AT bernhardheld.de>
13345
13346         * src/SDCCmain.c (main): port->finaliseOptions() moved for z80 linking
13347         * src/SDCCutil.c (join): ugly bug: missing '\0'
13348         * as/mcs51/lkmem.c (summary): sp on address 7 is safe
13349
13350 2003-01-11  Bernhard Held <bernhard AT bernhardheld.de>
13351
13352         * src/SDCCmain.c (assemble, linkEdit): preparations for -o
13353         * src/port.h: typo
13354         * src/pic/main.c (_asmCmd): gpasm supports -o
13355         * src/z80/main.c: more general macros
13356         * device/lib/Makefile.in: remove intermediate files
13357
13358 2003-01-11  Bernhard Held <bernhard AT bernhardheld.de>
13359
13360         * .version: Bumped version number to 2.3.3
13361         * src/SDCCBBlock.c: new option -o
13362         * src/SDCCglobl.h: new option -o
13363         * src/SDCCglue.c: new option -o
13364         * src/SDCCmain.c: new option -o
13365         * src/asm.c: new option -o
13366         * src/ds390/main.c: new option -o
13367         * src/pic/glue.c: new option -o
13368         * src/pic/pcode.c: new option -o
13369         * src/pic/ralloc.c: new option -o
13370         * src/pic16/glue.c: new option -o
13371         * src/pic16/pcode.c: new option -o
13372         * src/pic16/ralloc.c: new option -o
13373         * src/z80/main.c: new option -o
13374         * device/lib/Makefile.in: use -o
13375         * support/regression/ports/ds390/spec.mk: use -o
13376         * support/regression/ports/gbz80/spec.mk: use -o
13377         * support/regression/ports/mcs51/spec.mk: use -o
13378         * support/regression/ports/mcs51-stack-auto/spec.mk: use -o
13379         * support/regression/ports/z80/spec.mk: use -o
13380         * support/regression/ports/ucz80/spec.mk: use -o
13381         * support/regression/ports/xa51/spec.mk: use -o
13382         * support/regression/fwk/lib/timeout.c: fix usage string
13383
13384 2003-01-09  Bernhard Held <bernhard AT bernhardheld.de>
13385         * src/mcs51/gen.c (genPlus): replaced "mov b,acc" by "mov b,a" Fiorenzo D. Ramaglia <fd.ramaglia AT tin.it>
13386
13387 2003-01-07    <johan AT balder>
13388
13389         * src/SDCCast.c (decorateType): fixed bug #600035
13390
13391 2003-01-07  Bernhard Held <bernhard AT bernhardheld.de>
13392         * as/mcs51/lkmem.c: added several l-modifiers to printf to remove warnings
13393         * as/mcs51/lkaomf51.c: #include <ctype.h> to remove warnings
13394         * src/pic/main.c (_hasNativeMulFor): outcommented unused variables to remove warnings
13395         * src/pic/pcode.c: outcommented unused variable to remove warnings
13396         * src/pic/ralloc.c: outcommented unused variable to remove warnings
13397
13398 2003-01-06    <karl AT turbobit.com>
13399         * sim/ucsim/cmd.src/command.cc: fixed so "break xram r 0x7654" works again in
13400    regression tests.
13401
13402 2003-01-06    <johan AT balder>
13403
13404         * src/SDCCicode.c: fixed array add
13405
13406 2002-01-05  Bernhard Held <bernhard AT bernhardheld.de>
13407         * src/SDCCmacro.c: MAX_STRING_LENGTH increased to 2048; was too small for regression tests
13408         * support/regression/ports/host/support.c: #include <stdarg.h> for gcc 3.2
13409
13410 2003-01-04    <johan AT balder>
13411
13412         * src/SDCCval.c (getNelements): fixed the initialized array of structures
13413
13414 2002-12-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13415         * as/mcs51/Makefile.bcc: fixed typo lkomf51.o -> lkaomf51.o
13416
13417 2002-12-28  Bernhard Held <bernhard AT bernhardheld.de>
13418         * src/mcs51/peeph.def: added rules 234 and 235 from Frieder Ferlemann <frieder.ferlemann AT web.de>
13419         * support/regression/tests/bug-524697.c: fit mem usage into 8032
13420
13421 2002-12-28  Bernhard Held <bernhard AT bernhardheld.de>
13422         * src/mcs51/gen.c (aopGetUsesAcc): inserted missing "return FALSE"
13423
13424 2002-12-27  Bernhard Held <bernhard AT bernhardheld.de>
13425         * as/mcs51/Makefile.in: fixed typo lkomf51.o -> lkaomf51.o
13426
13427 2002-12-26  Bernhard Held <bernhard AT bernhardheld.de>
13428         * src/mcs51/main.c: removed {bindir}{sep} from aslink
13429
13430 2002-12-10  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13431
13432     * in /sdcc/as/mcs51/ changed these files in order to create an
13433     aomf51 file: aslink.h, lkdta.c, lklex.c, lklibr.c, lklist.c,
13434     lkmain.c.  Also added: lkmem.c and lkaomf51.c.  Changed the
13435     following files to include the previous two files: aslink.dsp,
13436     Makefile.aslink, Makefile.bcc, and Makefile.in.
13437
13438     * Changed /sdcc/src/SDCCmain.c so it creates files with extension
13439     .adb instead of .cdb
13440
13441 2002-11-09  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13442
13443         * /sdcc/as/mcs51/lklist.c: Now reports memory usage using the
13444         value from option --iram-size.
13445
13446 2002-09-20  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13447
13448         * /sdcc/as/mcs51/lklist.c: added boundary check before using
13449         dram[] array.
13450
13451 2002-09-18    <wiml AT hhhh.org>
13452
13453         * SDCClrange.h: exposed setFromRange() and setToRange()
13454         * mcs51/ralloc.c: fixed over-eager packRegsForSupport() and
13455           packRegsForAccUse() (bug 542397)
13456         * mcs51/gen.c: MOVA() is now a function to avoid calling aopGet()
13457           multiple times and emitting the fetch operations more than once
13458           added aopGetUsesAcc() function to allow binary operators to
13459           fetch their operands in the correct order; made genMinus() emit
13460           compact code for X = LITERAL - Y
13461
13462 2002-09-00  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13463         * /sdcc/as/mcs51/lklist.c: Fixed incorrect number of parameters to
13464         sprintf() in line 1267.
13465
13466 2002-09-08  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13467         * /sdcc/src/SDCCglue.c: Generate areas REG_BANK_[0-3] only for 8051
13468         like ports.
13469
13470 2002-09-04  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13471         Changes to aslink (All the changes are marked with 'JCF'):
13472
13473         * /sdcc/as/mcs51/aslink.h: External definition of sflag and
13474         summary().
13475
13476         * /sdcc/as/mcs51/lkarea.c: Computes the size of area BSEG_BYTES from
13477         area BSEG.  Also moves, if possible, the DATA area down into the internal
13478         ram so more space is available.
13479
13480         * /sdcc/as/mcs51/lkdata.c: Definition of memory summary output flag
13481         sflag.
13482
13483         * /sdcc/as/mcs51/lklist.c: For the BSEG area report the size in bits,
13484         not bytes.  Function summary() which creates a memory usage summary
13485         file with extension .mem.  Reports of overlaping stack and small stack
13486         size.  If the space for the stack is less than 16 bytes aslink trows a
13487         warning.
13488
13489         * /sdcc/as/mcs51/lkmain.c: Creation of some of the default areas for
13490         the 8051.  Option 'y' for memory summary output file.
13491
13492         Changes to sdcc (All the changes are marked with 'JCF'):
13493
13494         * /sdcc/src/SDCCglobl.h: External definition of RegBankUsed[4].
13495
13496         * /sdcc/src/SDCCglue.c:  If a register bank is used, creates an
13497         overlaying area for it (uses RegBankUsed[4]).
13498
13499         * /sdcc/src/SDCCmain.c: Definition RegBankUsed[4]; marks register
13500         bank zero as used by default.  By default aslink locates the stack
13501         (equivalent to --stack-after-data).  Pass option 'y' to aslink for
13502         the creation of the .mem file.  Delegates the allocation of data area
13503         to aslink (it is not longer 0x30 by default).  If --stack-loc passes
13504         the begining of the stack area to aslink.
13505
13506         * /sdcc/src/SDCCmem.c:  If a register bank is used, marks it so
13507         glue() in SDCCglue.c creates an area for it.
13508
13509 2002-09-03  Borut Razem <borut.razem AT siol.net>
13510         * sdcc/src/SDCCglue.c, sdcc/src/SDCCglue.h, sdcc/src/SDCCmain.c,
13511         sdcc/src/pic/glue.c:
13512         introduced atexit() handler for teporay files removal in case of
13513         errors, assertions, ...
13514
13515 2002-08-29  Borut Razem <borut.razem AT siol.net>
13516         * sdcc/support/cpp2/auto-host_vc_in.h:
13517         re-definition of O_BINARY and other O_XXX as _O_BINARY and _O_XXX, so the problem
13518         with the returned value from read() in sdcc/support/cpp2/cppfiles.c is solved for MSC.
13519         Maybe there is a similar problem with BORLANDC? It should be checked!
13520
13521         * sdcc/src/ds390/ralloc.c, sdcc/src/mcs51/ralloc.c, sdcc/src/z80/ralloc.c:
13522         corrected improper use of assert: the assignment to clr variable was done inside the assert.
13523         In case that NDEBUG was defined, the assert macro was substituted with no-op, so the assignment
13524         was not executed, and the compiler (cl) launched a warning:
13525         ralloc.c(1442) : warning C4700: local variable 'clr' used without having been initialized
13526
13527 2002-08-28  Bernhard Held <bernhard AT bernhardheld.de>
13528         * src/SDCCglue.c (printIvalArray): iterative calculation of array length
13529
13530 2002-08-28  Jesus Calvino-Fraga and Borut Razem <borut.razem AT siol.net>
13531         * sdcc/sdcc.dsw: added sdcpp, sdcppa, yacc, conf projects
13532
13533         * sdcc/src/src.dsp, sdcc/src/avr/avr.dsp, sdcc/src/ds390/ds390.dsp,
13534           sdcc/src/mcs51/mcs51.dsp, sdcc/src/pic/pic.dsp, sdcc/src/z80/z80.dsp,
13535           sdcc/src/xa51/xa51.dsp, sdcc/src/avr/avra.dsp,
13536           sdcc/src/ds390/ds390a.dsp, sdcc/src/mcs51/mcs51a.dsp,
13537           sdcc/src/pic/pica.dsp, sdcc/src/z80/z80a.dsp,
13538           sdcc/src/xa51/xa51a.dsp, sdcc/as/as_z80.dsp,
13539           sdcc/as/aslink.dsp, sdcc/as/asx8051.dsp, sdcc/packihx/packihx.dsp:
13540         - added Release configuration in VS projects
13541         - review of compiler an linker options
13542         - VC .exe files are generated in bin_vc directory, not to interfere
13543           with binaries generated from other projects (cygwin, mingw, bcc ...)
13544
13545         * sdcc/src/yacc.dsp: added
13546
13547         * sdcc/config.dsp, sdcc/configure_vc.awk, sdcc/sdcc_vc_in.h:
13548         added - genarate sdcc_vc.h using sdcc_vc_in.h as template
13549         and insert the version number definitions from .version
13550
13551         * sdcc/support/cpp2/sdcpp.dsp: added - VC project for sdcpp
13552
13553         * sdcc/support/cpp2/sdcppa.dsp, sdcc/support/cpp2/auto-host_vc_in.h:
13554         added - genarate auto-host.h using auto-host_vc_in.h as template
13555
13556         * sdcc/sdcc_vc.h,
13557         removed from CVS, generated automatically
13558
13559 2002-08-25  Bernhard Held <bernhard AT bernhardheld.de>
13560         * support/scripts/inc2h.pl: use gputils or gpasm (from Nathan Hurst)
13561
13562 2002-08-11  Borut Razem <borut.razem AT siol.net>
13563         * support/Util/NewAlloc.c: removed unneeded #include "sdccconf.h" (suggested by Jesus Calvino-Fraga)
13564
13565 2002-08-10  Borut Razem <borut.razem AT siol.net>
13566         * src/SDCCmain.c (main):
13567         file preOutName was unlinked before closed. This seems to be OK on UNIX and cygwin
13568         platforms, but it doesn't work with Visual Studio: the opened file can not be removed.
13569         The consequence was that some temporary files were not removed.
13570
13571         * src/SDCCglue.c:
13572         unification of code in functions tempfilename() and tempfile():
13573         function tempnam() is defined in Visual Studio 6.0 and .NET
13574
13575         * sdcc/sdcc.dsw: removed project sdcpp, added project xa51a
13576
13577         * sdcc/src/src.dsp, sdcc/src/avr/avr.dsp, sdcc/src/ds390/ds390.dsp,
13578           sdcc/src/mcs51/mcs51.dsp, sdcc/src/pic/pic.dsp, sdcc/src/z80/z80.dsp:
13579         - removed compiler command line option /WX: Treats all warnings as errors
13580         - update a list of source files, included into the project
13581
13582         * sdcc/src/avr/avra.dsp, sdcc/src/ds390/ds390a.dsp, sdcc/src/mcs51/mcs51a.dsp,
13583           sdcc/src/pic/pica.dsp, sdcc/src/z80/z80a.dsp:
13584         changed project type to Generic Project so that can be correcly converted to VS.NET project
13585
13586         * sdcc/as/mcs51/asm.h: definition of PATH_MAX for MSC
13587
13588         * sdcc/src/SDCCast.c: solved MSC error in function decorateType()
13589
13590         * sdcc/src/SDCC.y: added missing ending ';' to rules to get rid of bison warnings
13591
13592         * dcc/src/ds390/ralloc.c, sdcc/src/mcs51/ralloc.c:
13593         added return 0 statements after assert() to make compiler happy
13594
13595         * sdcc/src/xa51/peeph.rul, sdcc/src/xa51/peeph.def, sdcc/src/z80/ralloc.c:
13596         added newline in the def file to keep MSC compiler satisfied
13597
13598         * sdcc/src/z80/gen.c:
13599         - function strcasecmp() is not defined in MSC (and probably also in BORLANDC),
13600           so it is replaced with STRCASECMP, which is defined as stricmp in case of MSC and BORLANDC
13601         - solved MSC error in function aopDump()
13602
13603         * sdcc_vc.h: define PREFIX as "\\sdcc"
13604
13605 2002-07-18  Bernhard Held <bernhard AT bernhardheld.de>
13606         * src/SDCCast.c (decorateType): fixed access to array of structures http://sourceforge.net/mailarchive/forum.php?thread_id=902690&forum_id=4107
13607
13608 2002-06-22  Scott Dattalo <scott AT dattalo.com>
13609         * src/pic/*: Numerous bug fixes. Flow analysis has been enhanced.
13610         - Rewrote the register banking algorithm.
13611         - Added pCode live-range analysis to registers (for now, only non-used and
13612         singly-used registers optimized away)
13613
13614         * src/pic/pcoderegs.[ch]: Added new files for pCode live-range analysis
13615
13616         * 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.
13617
13618 2002-05-10  Scott Dattalo <scott AT dattalo.com>
13619         * src/pic/*: Added support for multiplication. Fixed many,many bugs.
13620
13621 2002-04-22  Michael Hope  <michaelh AT vroom>
13622
13623         * device/lib/z80/printf.c: Changed emitter to volatile to work around a pcall bug.
13624
13625         * configure.in (DD_COPT): Added include support required for gbdk.
13626
13627         * .version: Bumped version number just to increase it.
13628
13629         * src/SDCCmain.c: Added -nostdinc to the default options.
13630
13631 2002-04-15  Michael Hope  <michaelh AT vroom>
13632
13633         * device/lib/z80/printf.c (sprintf): Added.
13634
13635         * src/z80/ralloc.c (packRegisters): Disabled pack HL use for GB as it's broken.
13636
13637         * src/z80/peeph.def: Added transpose redundent load rule.
13638
13639         * src/z80/main.c: Added force callee saves for jaune.
13640
13641         * src/port.h: Removed the i186 and tlcs-900h ports as they weren't being being developed.
13642
13643         * src/SDCCmain.c: Pulled the options definition out so that you can add port specific options without changing the main file.
13644
13645 2002-03-28  Johan Knol  <johan AT balder>
13646
13647         * src/SDCCval.c: fixed bug #532436
13648
13649 2002-03-14  Scott Dattalo <scott AT dattalo.com>
13650         * /src/port.h:
13651         Added "char *Processor" field to the port structure.
13652
13653         * /src/SDCCmain.c:
13654         Added -p option. Allows port dependent processor to be specified.
13655
13656         * all ports:
13657         Initialized the new field char *Processor field to NULL in all ports
13658
13659         * /src/pic/*:
13660         Compiler generated registers for interrupt context saving
13661         were not getting allocated.
13662
13663 2002-03-16  Sandeep Dutta  <sandeep AT ddi.com>
13664
13665         * /src/SDCCast.c:
13666         Fixed left shift. Will promote the left side of a left shift
13667         if a) left shifting more than size of operand or b) when assigned
13668         to something size > size of left side
13669
13670 2002-03-14  Scott Dattalo <scott AT dattalo.com>
13671         * src/pic/*
13672         tons of changes. Register allocation has been
13673         rewritten. Added customization for the various PICs. Flow
13674         analysis is restructured. ...
13675
13676         * src/pic/device.h:
13677         Added
13678
13679         * src/pic/device.c:
13680         Added. device.c is a PIC port hack to accomodate variations
13681         in PIC devices.
13682
13683 2002-03-13  Michael Hope  <michaelh AT vroom>
13684
13685         * src/z80/gen.c (genGenPointerGet): Fixed a bug where a pointer in HL is dereferenced into HL but HL is not spilled.  Yeah.
13686
13687 2002-03-04  johanknol  <johanknol AT manik>
13688
13689         * /src/SDCCval.c: fixed
13690
13691         const unsigned char arr[][2] = { { 0, 1 } };
13692         t18.c:1: error: Initializer element is not constant
13693
13694 2002-03-04  bela  <bela AT manik>
13695
13696         * /device/include/mcs51reg.h:
13697         ds89c420 register definition update
13698
13699 2002-03-03    <johan AT FRIJA>
13700
13701         * support/Util/SDCCerr.c: did something, but don't no why anymore
13702
13703         * support/regression/tests/bug-524691.c: made it a little less shy
13704
13705         * src/SDCCast.c (decorateType): fixed bug #524697
13706
13707         * src/SDCCast.c: made some lineno improvements
13708
13709         * src/SDCCval.c (getNelements): changed warning to error
13710
13711         * src/SDCCglue.c (printIvalArray): changed warning to error
13712
13713         * src/SDCCicode.c: fixed a warning for mingw
13714
13715         * src/SDCCast.c (decorateType): fixed the << promotion for ops
13716
13717         * src/SDCCicode.c (geniCodeDivision): divide is shift only for unsigned (bug #524685)
13718
13719 2002-03-02  Sandeep Dutta  <sandeep AT ddi.com>
13720
13721         * src/ds390/peeph.def:
13722         Added some more peephole rules
13723
13724         * src/ds390/gen.c: Various fixes & enhancements
13725
13726         * src/SDCClrange.c, src/SDCClrange.h:
13727         functions "alldefsoutofrange" and "notusedinblock" moved to SDCClrange.c
13728
13729         * src/ds390/ralloc.c:
13730         various fixes & enhancements (ds390) specific
13731
13732         * src/avr/ralloc.c, src/mcs51/ralloc.c, src/pic/ralloc.c, src/xa51/ralloc.c, src/z80/ralloc.c:
13733         Functions "allDefsOutOfRange" & "notUsedinBlock" moved to SDCClrange.c
13734         from rallocs.
13735
13736         * sdcc/src/SDCCcse.c: Better fix for bug # 514308
13737
13738 2002-03-02    <johan AT FRIJA>
13739
13740         * src/SDCCast.c (decorateType): fixed bug #524708
13741
13742         * src/SDCCval.c (floatFromVal): fixed the literal void (whatever that may be)
13743
13744         * src/SDCCicode.c (geniCodePtrPtrSubtract): fixed bug #524691
13745
13746 2002-03-01  Michael Hope  <michaelh AT vroom>
13747
13748         * src/SDCCsymt.c (initCSupport): Removed managling of support function names.
13749
13750         * src/z80/ralloc.c (packRegsForIYUse): Fixed fp bug where four byte operands were packed into IY.
13751
13752 2002-03-01    <johan AT FRIJA>
13753
13754         * src/SDCCglue.c (printIvalPtr): fixed bug #524211
13755
13756         * src/SDCCast.c (decorateType): fixed bug #524209
13757
13758         * src/SDCCval.c (valNot): fixed bug #524195
13759
13760 2002-02-26    <johan AT balder>
13761
13762         * src/xa51/gen.c: fixed a warning
13763
13764         * src/SDCCglue.c (printIvalFuncPtr): fixed bug #522534
13765
13766         * src/SDCCast.c (decorateType): fixed bug #522534
13767
13768 2002-02-23    <johan AT balder>
13769
13770         * src/SDCCdflow.c (computeDataFlow): fixed bug #460088
13771
13772 2002-02-22    <johan AT balder>
13773
13774         * src/SDCCast.c: fixed bug #514865
13775
13776         * src/SDCCy.c ("SDCC.y"): fixed bug #516625
13777
13778 2002-02-21  Sandeep Dutta  <sandeep AT ddi.com>
13779
13780         * sdcc/src/SDCCloop.c:
13781         Previous fix was not good. basic blocks that have "break" or "return" are
13782         not really partof a loop , but live ranges used in these blocks should
13783         be live thru the entire loop, so set partOfLoop but don't add them to
13784         loop region
13785
13786 2002-02-21    <johan AT FRIJA>
13787
13788         * src/SDCCcse.c: fixed bug #514308
13789
13790 2002-02-20  Sandeep Dutta  <sandeep AT ddi.com>
13791
13792         * src/SDCCloop.c:
13793         Fixed BUG #519583. If a conditional block ended in a return/break
13794         statement inside a loop, it was not being considered part of the loop.
13795
13796         * src/SDCCcflow.c: Removed fix (Fixed in SDCCloop.c)
13797
13798 2002-02-10  Karl Bongers <karl AT turbobit.com>
13799
13800         * debugger/*:
13801         Fixed up SDCDB debugger somewhat.  Updated debugger/README
13802         with lots of comments and notes.
13803
13804         * device/examples/test2.c:
13805         Fix bug, "red" variable not being initialized(compiler complained).
13806
13807         * device/examples/Makefile, examples/test3.c:
13808         Add Makefile in device/examples folder, compiles test3.c
13809         for use as a multiple module SDCDB test case.
13810
13811         * sim/ucsim/cmd.src/cmdset.cc:
13812         Took out debug printfs in ucsim "next" command.
13813
13814         * sim/ucsim/xa.src:
13815         Karl and Johan start ucsim XA support.  Most dissassembly working,
13816         about 75% emulation done(plenty of work remaining).
13817
13818         * sim/ucsim/z80.src:
13819         Add Z80 support to ucsim, add test-ucz80 regression test,
13820         notice ucsim/z80 emulation fails on examples/test3.c/itoa code.
13821         Notice z80 compiler fails on examples/test3.c/crc code.
13822
13823 2002-01-30  Sandeep Dutta  <sandeep AT ddi.com>
13824
13825         * src/mcs51/gen.c, src/mcs51/main.c, src/mcs51/ralloc.c:
13826         Added support for --parms-in-bank1
13827
13828         * src/ds390/peeph.def:
13829         added a few more peephole optimzations
13830
13831         * src/ds390/main.c:
13832         1) added __builtin_inp & __builtin_outp used to read in data of given length
13833            from a memory mapped port
13834         2) added __builtin_memcmp
13835         3) added __builtin_swapw swap bytes of a short
13836
13837         * src/ds390/gen.c, src/ds390/gen.h, src/ds390/ralloc.c:
13838         1) handle multiple send & receives from register bank1
13839         2) ralloc can now allocate DPTR1 to some liveRanges
13840
13841         * src/SDCCsymt.c, src/SDCCsymt.h:
13842         changes to handle multiple sends & receives
13843
13844         * src/SDCCptropt.h:
13845         added some pointer arithmetic optimization
13846
13847         * src/SDCCptropt.c:
13848         added some pointer arithmetic optimizations but not stable yet so not
13849         called from anywhere (will get this working shortly)
13850
13851         * src/SDCCopt.c: fixed for multiple sends & receives
13852
13853         * src/SDCCmain.c:
13854         1) added options --parms-in-bank1 (ds390/mcs51) & --protect-sp-update
13855         2) preprocessing done AFTER port->finalizeoptions . This allows ports to
13856            set preprocessor defines (depending on options)
13857
13858         * src/SDCCicode.c, src/SDCCicode.h:
13859         changes made to handle multiple sends & receives
13860
13861         * src/SDCCglobl.h:
13862         Added options --protect-sp-update (ds390) and --parms-in-bank1 (ds390/mcs51)
13863
13864         * src/SDCCcse.c, src/SDCCcse.h:
13865         added function findbackward def (to be used in upcoming optimization)
13866
13867         * src/SDCCcflow.c, src/SDCCcflow.h:
13868         added function returnAtEnd - to determine if a basic block terminates with
13869         a RETURN iCode
13870
13871         * src/SDCCast.c, src/SDCCast.h:
13872         added option parms-in-bank1
13873
13874         * device/lib/_divsint.c, device/lib/_divslong.c, device/lib/_divuint.c
13875         * device/lib/_divulong.c, device/lib/_modsint.c, device/lib/_modslong.c
13876         * device/lib/_modulong.c, device/lib/_mulint.c, device/lib/_mullong.c:
13877         adjusted for --parms-in-bank1 option
13878
13879         * device/include/string.h:
13880         donot redefine "reentrant" keyword
13881
13882         * device/include/ds80c390.h: Added some more SFRs
13883
13884 2002-01-28  Bernhard Held  <bernhard AT bernhardheld.de>
13885
13886         * sim/ucsim: Merged branch ucsim-034-pre3 to main trunk; new version 0.4
13887
13888 2002-01-26  Bernhard Held  <bernhard AT bernhardheld.de>
13889
13890         * src/SDCCast.c (funcOfType): fix usage of double --float-reent
13891
13892 2002-01-22  Bernhard Held  <bernhard AT bernhardheld.de>
13893
13894         * support/regression/fwk/lib/testfwk.c (main): Removed workaround for bug #505387
13895
13896 2002-01-18  Paul Stoffregen  <paul AT pjrc.com>
13897
13898         * Added --xram-movc option
13899
13900 2002-01-13  Bernhard Held  <bernhard AT bernhardheld.de>
13901
13902         * support/regression/Makefile: don't include test-mcs51-stack-auto in target all
13903
13904 2002-01-11  Johan Knol
13905
13906         * Added math lib of Jesus Calvino-Fraga
13907
13908 2002-01-08  Bernhard Held  <bernhard AT bernhardheld.de>
13909
13910         * src/SDCCmain.c (processFile): fix processing of ../../src.c
13911         * support/regression/Makefile: new target test-mcs51-stack-auto
13912         * support/regression/ports/mcs51-stack-auto/spec.mk: added
13913
13914 2002-01-04  Bernhard Held  <bernhard AT bernhardheld.de>
13915
13916         * src/SDCCglue.h: printIvalCharPtr(), not printIvalChar()
13917
13918 2002-01-04  Bernhard Held  <bernhard AT bernhardheld.de>
13919
13920         * support/regression/ports/mcs51/support.c: correct setup of timer / UART
13921
13922 2002-01-03  Bernhard Held  <bernhard AT bernhardheld.de>
13923
13924         * src/SDCCsymt.c (processFuncArgs): fix #498307 by Johan
13925
13926         * src/SDCCglue.h: add definition for printIvalChar()
13927
13928 2002-01-02  Bernhard Held  <bernhard AT bernhardheld.de>
13929
13930         * src/SDCCast.c: fix #498138 by Johan
13931
13932         * src/SDCCglue.c: fix #498138 by Johan
13933
13934 2002-01-02  Bernhard Held  <bernhard AT bernhardheld.de>
13935
13936         * support/regression/Makefile: fix clean
13937
13938         * support/regression/ports/ds390/support.c: fix transmission of last character
13939
13940 2001-12-29  Sandeep Dutta  <sandeep AT ddi.com>
13941
13942         * /sdcc/src/ds390/gen.c:
13943         a) improved computing address of stack variable
13944         b) took out some #if 0 code
13945         c) improved parmBytes adjustment
13946         d) improved genPlusIncr & genMinusIncr
13947         e) genCmp could generate bad code (when left assigned to DPTR)
13948         f) Fixed bug in hasInc
13949
13950         * /sdcc/src/ds390/ralloc.c:
13951         a) packRegsForSupport could mess up live information (Fixed)
13952         b) packRegsDPTRuse could be incorrect for left & right shift
13953
13954         * /sdcc/src/mcs51/ralloc.c:
13955         packRegsForSupport could mess up the live information (Fixed)
13956
13957         * /sdcc/src/mcs51/gen.c: Fixed a bug in hasInc
13958
13959         * /sdcc/src/SDCCast.c:
13960         can reverse a loop even if function call is present as long
13961         as the loop control variable is local & is not passed as parameter
13962
13963 2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>
13964
13965         * /sdcc/ChangeLog: *** empty log message ***
13966
13967         * /sdcc/src/ds390/gen.c, /sdcc/src/ds390/main.c:
13968         More builtin function additions for TININative
13969
13970         * /sdcc/src/ds390/ralloc.c:
13971         Had broken the regression testsuite
13972
13973         * /sdcc/src/SDCCast.c: Fixed a bug in dumptree
13974
13975         * /sdcc/src/SDCCsymt.c, /sdcc/src/SDCCsymt.h:
13976         Added funcattr hasStackParms will be set for reentrant functions when there
13977         are paramteres on the stack, this helps in minimizing frame pointer generation
13978         typeFromStr can handle function pointers now
13979
13980         * /sdcc/doc/builtins.txt, /sdcc/doc/TININative.txt:
13981         *** empty log message ***
13982
13983 2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>
13984
13985         * /src/ds390/gen.c, /src/ds390/main.c:
13986         More builtin function additions for TININative
13987
13988         * /src/ds390/ralloc.c:
13989         Had broken the regression testsuite
13990
13991         * /src/SDCCast.c: Fixed a bug in dumptree
13992
13993         * /src/SDCCsymt.c, /src/SDCCsymt.h:
13994         Added funcattr hasStackParms will be set for reentrant functions when there
13995         are paramteres on the stack, this helps in minimizing frame pointer generation
13996         typeFromStr can handle function pointers now
13997
13998         * /doc/builtins.txt, /doc/TININative.txt:
13999         *** empty log message ***
14000
14001
14002 2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>
14003
14004         * /src/ds390/gen.c, /src/ds390/main.c, /src/ds390/peeph.def, /src/ds390/ralloc.c:
14005         ALPHA version for -mTININative
14006
14007         * /src/izt/i186.c, /src/izt/tlcs900h.c, /src/mcs51/main.c, /src/pic/main.c, /src/z80/main.c, /src/avr/main.c:
14008         updated to reflect changes in the port structure
14009
14010         * /src/port.h:
14011         added function do_assemble (similar to do_link) if non-null this function
14012         will be called to do assembly (-mTININative) requires a multi command
14013         assembly
14014         added function genAssemblerEnd will be called to generate assembler Epilogue
14015
14016         * /src/SDCCsymt.c:
14017         added _JavaNative to debug info printing
14018
14019         * /src/SDCCmain.c: added option --tini-libid
14020         added port->do_assemble function (-mTININative) has a multi command assemble
14021
14022         * /src/SDCCglue.c: Disabled "constExpr" check
14023         added port->genAssemblerEnd function
14024
14025         * /src/SDCCglobl.h: Added option --tini-libid value
14026
14027         * /src/SDCCast.h:
14028         tookout optimizeCompare from the header (has no external references)
14029
14030         * /src/SDCCast.c: made one more function "static"
14031
14032 2001-12-23  Michael Hope  <michaelh AT juju.net.nz>
14033
14034         * src/z80/mappings.i: Added z80asm support.
14035
14036         * src/z80/main.c: Added z80asm support on --asm=z80asm
14037
14038         * src/z80/gen.c: Fixed asm portability issues.
14039
14040         * src/asm.c (tvsprintf): Removed old code, added 'N' for function name.  For extern support.
14041
14042         * src/SDCCglue.c (printExterns): Added global/extern split.
14043
14044 2001-12-17  Bernhard Held  <bernhard AT bernhardheld.de>
14045
14046         * support/regression/Makefile: added test for mcs51 model large
14047
14048         * support/regression/ports/mcs51-large/spec.mk: added test for mcs51 model large
14049
14050         * support/regression/ports/gbz80/spec.mk: added -mgbz80
14051
14052 2001-12-05  Michael Hope  <michaelh AT juju.net.nz>
14053
14054         * src/diff.1 (Index): Many, many optmisiations.  Dhrystone up to 201.
14055
14056 1904-01-06  Michael Hope  <michaelh AT juju.net.nz>
14057
14058         * src/z80/ralloc.c (packRegsForIYUse): Fixed the case where an operand is in direct space.
14059
14060         * src/z80/gen.c (makeFreePairId): Optimised IY load by using a spare pair.
14061
14062 2001-12-02  Bernhard Held  <bernhard AT bernhardheld.de>
14063
14064         * src/mcs51/gen.c (genFunction): avoid excess "inc sp"
14065
14066         * support/regression/tests/simplefloat.c: Port to mcs51.
14067
14068 2001-11-25  Michael Hope  <michaelh AT juju.net.nz>
14069         * support/regression/tests/bug-485362.c: Added.
14070
14071         * support/regression/tests/simplefloat.c (testDivNearOne): Added.
14072
14073         * src/z80/gen.c (aopOp): Fixed case where left and result are in the same spill loc and they have different sizes.
14074
14075         * src/z80/peeph.def: Added rules for optimising two byte compares on the same thing, and to optimise two ptr assign.
14076
14077         * src/z80/gen.c (aopDump): Added a dump function.
14078
14079 2001-11-25  Bernhard Held  <bernhard AT bernhardheld.de>
14080         * sim/ucsim/s51.src/glob.cc: DS390 SFRs and bits added.
14081
14082         * sim/ucsim/s51.src/port.cc: Port 4 and 5 added.
14083
14084         * sim/ucsim/s51.src/regs51.h: DS390 SFRs added.
14085
14086         * sim/ucsim/s51.src/uc390.cc: Some details improved, CKRDY works for tinibios.
14087
14088         * sim/ucsim/s51.src/uc390cl.h: Work in progress.
14089
14090         * sim/ucsim/sim.src/uccl.h: 6 ports for DS390.
14091
14092         * support/regression/fwk/lib/testfwk.c: Run with tinibios.
14093
14094         * support/regression/ports/mcs51/spec.mk: Fine tuninig.
14095
14096         * support/regression/ports/ds390/support.c: Use tinibios.
14097
14098         * support/regression/ports/ds390/spec.mk: Fine tuning, use tinibios.
14099
14100 2001-11-23  Michael Hope  <michaelh AT juju.net.nz>support/regression/tests/bug-460010.c
14101
14102         * src/z80/ralloc.c (packRegsForHLUse3): Changed to not pack into HL if anything is in direct space.
14103         (packRegsForHLUse3): Added packing support for send, cast, and return value from a call.
14104
14105         * src/z80/peeph.def: Added rules for optimising pushes of part of a pair.
14106
14107         * src/z80/gen.c (emitCall): Changed the stack fixup to not use HL.
14108
14109 2001-11-18  Michael Hope  <michaelh AT juju.net.nz>
14110
14111         * src/z80/gen.c (genCmp): Fixed compare on unsigned.
14112
14113         * src/z80/ralloc.c (packRegsForHLUse3): Created and optimised.
14114         (packRegsForIYUse): Created and optimised.
14115
14116 2001-11-07  Michael Hope  <michaelh AT juju.net.nz>
14117
14118         * support/regression/tests/float.c (testFloatAdd): Fixed up warning.
14119 2001-11-18  Bernhard Held  <bernhard AT bernhardheld.de>
14120
14121         * sdcc/support/regression/tests/bug-460010.c: fix seg violation on host
14122
14123         * sdcc/support/regression/tests/muldiv.c: fix output on mcs51
14124
14125         * sdcc/support/regression/tests/stacks.c: fix DSEG overflow on mcs51
14126
14127 2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>
14128
14129         * sdcc/sim/device/lib/_gptrget.c: mem region 5 (idata) added
14130
14131         * sdcc/sim/device/lib/_gptrput.c: mem region 5 (idata) added
14132
14133 2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>
14134
14135         * sdcc/sim/ucsim/globals.cc: New: IXRAM.
14136
14137         * sdcc/sim/ucsim/stypes.h: New: IXRAM.
14138
14139         * sdcc/sim/ucsim/s51.src/uc390.cc: New: IXRAM.
14140
14141 2001-11-07  Michael Hope  <michaelh AT juju.net.nz>
14142
14143         * src/z80/ralloc.c (packRegsForHLUse): Banned IFXs from being packed into HL.
14144         (packRegsForHLUse): Added rule to pack address of/pointer get for itemps into HL for the Z80.
14145         (packRegsForAccUse2): Added rule to pack hbit IFXs into A.
14146
14147         * src/z80/main.c (_setDefaultOptions): Made float code re-entrant by default.
14148
14149         * src/z80/gen.c (aopGetLitWordLong): Added word support for floats.
14150         (genNotFloat): Added.
14151         (genUminusFloat): Added.
14152
14153         * device/lib/z80/Makefile: Added floating pt stubs.
14154
14155         * device/lib/Makefile.in (Z80SOURCES): Added floating pt support.
14156
14157         * src/z80/gen.c (genIpush): Fixed up a push of one byte when left is in a pair.
14158
14159         * device/lib/_fsadd.c (__fsadd): Fixed up return where the numbers are hugely different.
14160
14161 2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>
14162
14163         * sdcc/sim/ucsim/s51.src/glob.cc: Minor fix.
14164
14165         * sdcc/sim/ucsim/s51.src/regs51.h: Minor fix.
14166
14167         * sdcc/support/regression/Makefile: Add port ds390.
14168
14169         * sdcc/support/regression/ports/mcs51/spec.mk: Minor change.
14170
14171         * sdcc/support/regression/ports/z80/spec.mk: Minor change.
14172
14173         * sdcc/support/regression/ports/ds390/spec.mk: Added.
14174
14175         * sdcc/support/regression/ports/ds390/support.c: Added.
14176
14177         * sdcc/support/regression/ports/ds390/uCsim.cmd: Added.
14178
14179         * sdcc/support/regression/ports/mcs51/timeout.c: Cut.
14180
14181         * sdcc/support/regression/fwk/lib/timeout.c: Paste.
14182
14183 2001-11-04  Michael Hope  <michaelh AT juju.net.nz>
14184
14185         * device/include/malloc.h: Added z80 and gbz80 support.
14186
14187         * device/lib/gbz80/heap.s: Added.
14188
14189         * device/lib/z80/heap.s: Added.
14190
14191         * device/lib/malloc.c: Added z80 and gbz80 support.
14192
14193         * support/regression/tests/malloc.c (testMalloc): Added.
14194
14195         * src/SDCCmain.c (parseCmdLine): Added support for -Wp.
14196
14197         * support/regression/tests/bug-478094.c: Added.
14198
14199         * src/z80/gen.c (commitPair): Fixed silly gbz80/z80 commit to static bug.
14200
14201 2001-11-04  Bernhard Held  <bernhard AT bernhardheld.de>
14202
14203         * sdcc/sim/ucsim/s51.src/uc390cl.h: Improvement for ds390 to run regression tests
14204
14205         * sdcc/sim/ucsim/s51.src/uc390.h: Improvement for ds390 to run regression tests
14206
14207         * sdcc/sim/ucsim/s51.src/regs51.h: Improvement for ds390 to run regression tests
14208
14209         * sdcc/sim/ucsim/s51.src/glob.cc: Improvement for ds390 to run regression tests
14210
14211         * sdcc/support/regression/tests/bug-460010.c: Small change for ds390
14212
14213 2001-11-04  Michael Hope  <michaelh AT juju.net.nz>
14214
14215         * src/z80/peeph-gbz80.def: Removed a bad sub optimisation.
14216
14217 2001-11-03  Michael Hope  <michaelh AT juju.net.nz>
14218
14219         * support/regression/tests/bug-477927.c: Added.
14220
14221         * src/z80/peeph.def: Added minor rules.
14222
14223         * src/z80/gen.c (genPlusIncr): Added an extra plusinc rule.
14224
14225         * src/z80/peeph.def: Added jump optimisation modification.
14226
14227 2001-11-01  Michael Hope  <michaelh AT juju.net.nz>
14228
14229         * src/SDCCmain.c (linkEdit): Added runtime path detection to the mcs51 port.
14230
14231 2001-10-30  Michael Hope  <michaelh AT juju.net.nz>
14232
14233         * support/regression/tests/funptrs.c: Added.
14234
14235 2001-10-29  Michael Hope  <michaelh AT juju.net.nz>
14236
14237         * src/z80/ralloc.c (packRegsForHLUse): Fixed up bad spill due to pushing one byte via HL.
14238
14239 2001-10-28  Michael Hope  <michaelh AT juju.net.nz>
14240
14241         * src/z80/gen.c (genArrayInit): Made it work for on stack arrays.
14242
14243         * src/z80/main.c (gbz80_port =): Added rle support to the gbz80 port.
14244
14245         * src/z80/gen.c (genMinus): Fixed for where the result is one byte.
14246         (movLeft2ResultLong): Created.
14247
14248         * src/z80/ralloc.c (packRegsForHLUse): Added a couple of simple cases for the GB.
14249         (joinPushes): Added.  Joins two char pushes into a word push.
14250
14251 2001-10-27  Michael Hope  <michaelh AT juju.net.nz>
14252
14253         * support/cpp2/Makefile.in (install): Added creation of dest dir.
14254
14255         * support/makebin/Makefile (install): Added creation of dest dir.
14256
14257 2001-10-24 Karl Bongers <karl AT turbobit.com>
14258
14259         * configure.in, configure, Makefile, support/cpp: Removed cpp folder, since we have new cpp2 preprocessor code.
14260
14261 2001-10-21  Michael Hope  <michaelh AT juju.net.nz>
14262
14263         * src/z80/ralloc.c: Turned off faulty pack for one use.
14264
14265         * src/z80/peeph-gbz80.def: Removed redundent restart options.
14266
14267         * src/z80/gen.c (genMult): Added native mul for constants on the z80 and gbz80.
14268
14269 2001-10-21  Bernhard Held  <bernhard AT bernhardheld.de>
14270
14271         * support/regression/Makefile: Improved clean
14272
14273         * support/regression/ports/gbz80/spec.mk: Added clean
14274
14275         * support/regression/ports/host/spec.mk: Added clean
14276
14277         * support/regression/ports/z80/spec.mk: Added clean
14278
14279         * support/regression/ports/mcs51/spec.mk: Added clean, little improvements
14280
14281         * support/regression/ports/mcs51/timeout.c: little improvements
14282
14283 2001-10-17  Michael Hope  <michaelh AT juju.net.nz>
14284
14285         * device/lib/malloc.c (MEMHEADER): Fixed against new pedantic pointers.
14286
14287         * support/regression/fwk/include/testfwk.h: Fixed up to use function pts correctly.
14288
14289         * support/regression/generate-cases.py: Fixed up to use function pts correctly.
14290
14291 2001-10-16  Bernhard Held  <bernhard AT bernhardheld.de>
14292
14293         * support/regression/port/mcs51/spec.mk: add timeout for uCsim
14294
14295         * support/regression/port/mcs51/timeout.c: add timeout for uCsim
14296
14297 2001-10-13  Michael Hope  <michaelh AT juju.net.nz>
14298         * src/z80/gen.c (emitCall): Fixed up missing spill of HL when used to assign the result value.
14299
14300         * src/z80/ralloc.c: Turned off pack for one use as it's quite broken.
14301
14302         * src/SDCCmain.c (linkEdit): Added support for passing a legacy command line through the processor.
14303
14304         * src/mcs51/main.c (_linkCmd): Added bin path to command.
14305
14306         * src/SDCCmain.c (initValues): Added support for when it it called just to link.
14307
14308         * as/mcs51/lklibr.c (libfil;): Turned off 'library file' message.
14309
14310         * src/SDCCval.c (constVal): Fixed usage of 'L' modifier problems on ppc.
14311
14312         * support/regression/tests/longor.c: Added.
14313
14314 2001-10-11  Bernhard Held  <bernhard AT bernhardheld.de>
14315
14316         * as/mcs51/asdata.c: replaced FILENAME_MAX with PATH_MAX
14317
14318         * as/mcs51/aslink.h: define PATH_MAX
14319
14320         * as/mcs51/asm.h: define PATH_MAX
14321
14322         * as/mcs51/asmain.c: replaced FILENAME_MAX with PATH_MAX
14323
14324         * as/mcs51/asnoice.c: replaced FILENAME_MAX with PATH_MAX
14325
14326         * as/mcs51/lklex.c: replaced FILENAME_MAX with PATH_MAX
14327
14328         * as/mcs51/lkmain.c: replaced FILENAME_MAX with PATH_MAX
14329
14330         * src/SDCCglobl.h: define PATH_MAX
14331
14332         * src/SDCCmacro.c: replaced FILENAME_MAX with PATH_MAX
14333
14334         * src/SDCCmain.c: replaced FILENAME_MAX with PATH_MAX
14335
14336 2001-10-11  Michael Hope  <michaelh AT juju.net.nz>
14337
14338         * src/z80/gen.c (gencjneshort): Fixed
14339
14340         * src/z80/ralloc.c (packRegsForHLUse): Added pack into HL for cast then ipush.
14341
14342 2001-10-09  Michael Hope  <michaelh AT juju.net.nz>
14343
14344         * support/regression/tests/bug-469671.c: Added.
14345
14346         * src/z80/gen.c (shiftIntoPair): Fixed up warning.
14347
14348 2001-10-08  Michael Hope  <michaelh AT juju.net.nz>
14349
14350         * src/SDCCmain.c: Added --fommit-frame-pointer option and implemented in the z80 port.
14351
14352         * src/z80/gen.c (genPlus): Fixed to work with extended stack.  Also fixed genMinus, genCmp.  genUMinus is still left.
14353
14354 2001-10-08  Bernhar Held  <bernhard AT bernhardheld.de>
14355
14356         * src/SDCCmain.c (preProcess): added define SDCC_NOOVERLAY
14357
14358         * src/device/lib/_mulint.c  : removed hint: nooverlay bug
14359
14360         * src/device/lib/_mullong.c : removed hint: nooverlay bug
14361
14362         * src/device/lib/_divuint.c : removed hint: nooverlay bug
14363
14364         * src/device/lib/_divulong.c: removed hint: nooverlay bug
14365
14366         * src/device/lib/_moduint.c : removed hint: nooverlay bug
14367
14368         * src/device/lib/_modulong.c: removed hint: nooverlay bug
14369
14370 2001-10-07  Michael Hope  <michaelh AT juju.net.nz>
14371
14372         * 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.
14373
14374         * support/Util/NewAlloc.c (freeTrace): Changed free for the gc case to not free at all.  Fixes runtime segfault.
14375
14376         * support/regression/tests/scott-compare3.c (c_abcd): Fixed up casts.
14377
14378 2001-10-07    <johan AT FRIJA>
14379
14380         * device/lib/gets.c (gets): fixed the return value.
14381
14382 2001-10-06  Michael Hope  <michaelh AT juju.net.nz>
14383         * src/SDCCmain.c (WRITE_SEG_LOC): Fixed up to use Safe_strdup.
14384
14385         * 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.
14386
14387         * 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.
14388
14389         * src/z80/gen.c (genZ80Code): Added de-allocation via trace support.
14390
14391         * src/pic/gen.c: Removed Safe_strdup.
14392
14393         * configure.in: Added option to enable libgc support.
14394
14395         * src/SDCCbitv.c (bitVectnBitsOn): Optimised.
14396         (bitVectUnion): Optimised.
14397         (bitVectIntersect): Optimised.
14398         (bitVectBitsInCommon): Optimised.
14399         (bitVectCplAnd): Optimised.
14400
14401         * support/makebin/makebin.c (usage): Removed getopt as mingw32 doesn't have it.  Sigh.
14402
14403 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
14404
14405         * src/SDCCmain.c: distinguish between assembler debug and plain options
14406
14407         * src/avr/main.c:   remove standard assembler options
14408
14409         * src/ds390/main.c: remove standard assembler options
14410
14411         * src/mcs51/main.c: remove standard assembler options
14412
14413         * src/port.h: removed "PENDING" comment
14414
14415 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
14416
14417         * src/device/lib/_mulint.c  : new, with assember functions
14418
14419         * src/device/lib/_mullong.c : new, with assember functions
14420
14421         * src/device/lib/_divuint.c : with assember functions
14422
14423         * src/device/lib/_divsint.c : with assember functions
14424
14425         * src/device/lib/_divulong.c: with assember functions
14426
14427         * src/device/lib/_divslong.c: with assember functions
14428
14429         * src/device/lib/_moduint.c : with assember functions
14430
14431         * src/device/lib/_modsint.c : with assember functions
14432
14433         * src/device/lib/_modulong.c: with assember functions
14434
14435         * src/device/lib/_modslong.c: with assember functions
14436
14437         * src/device/lib/libint.lib:  replaced _muluint.c  and _mulsint.c  by _mulint.c
14438
14439         * src/device/lib/liblong.lib: replaced _mululong.c and _mulslong.c by _mullong.c
14440
14441         * src/device/lib/Makefile.in: replaced _muluint.c  and _mulsint.c  by _mulint.c
14442                                       replaced _mululong.c and _mulslong.c by _mullong.c
14443
14444 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
14445
14446         * src/SDCCsymt.c: sequence of specifiers in pintTypeChain() corrected
14447
14448 2001-10-01 Bernhard Held <bernhard AT bernhardheld.de>
14449
14450         * src/SDCCglue.c: test, if win32api is available for MINGW
14451
14452 2001-10-01 Bernhard Held <bernhard AT bernhardheld.de>
14453
14454         * src/SDCCsymt.c: no more _modifier in printTypeChain()
14455         * support/regression/tests/driverstruct.c: REENTRANT for mcs51
14456         * support/regression/ports/gbz80/spec.mk: removed GENERIC
14457         * support/regression/ports/host/spec.mk: removed GENERIC
14458         * support/regression/ports/mcs51/spec.mk: removed GENERIC
14459         * support/regression/ports/z80/spec.mk: removed GENERIC
14460
14461 2001-10-01  Michael Hope  <michaelh AT juju.net.nz>
14462
14463         * support/regression/fwk/lib/testfwk.c (__printf): Removed GENERIC.
14464
14465         * support/regression/tests/bug-467035.c: Created.
14466
14467 2001-10-01    <johan AT FRIJA>
14468
14469         * src/SDCC.y: fixed bug #466586 part 1
14470
14471 2001-10-01  Johan Knol <johan.knol AT iduna.nl>
14472
14473         * SDCCicode.c: z80 has no generic pointers
14474         * removed -s from strip in all Makefile(.in)'s. It is not needed, but Solaris chocks on it.
14475
14476 2001-09-30  Michael Hope  <michaelh AT juju.net.nz>
14477
14478         * sim/ucsim/cmd.src/Makefile.in ($(PRJDIR)/libcmd.a): Changed all ar references to $(AR) for Solaris.
14479
14480 2001-09-29  Michael Hope  <michaelh AT juju.net.nz>
14481
14482         * Makefile (sdcc-libs): Added makebin to the list of standard targets.
14483
14484         * support/regression/ports/z80/spec.mk: Updated to use env for sdcc bin dir for automatic regression.
14485
14486 2001-09-25  Michael Hope  <michaelh AT juju.net.nz>
14487
14488         * configure.in: Fixed up so that ucsim is only configured once.
14489
14490         * support/cpp2/configure.in: Fixed to use the program transform to append the .exe for the win32 build.
14491
14492         * src/SDCCutil.c (getPrefixFromBinPath): Fixed up to work with win32 in all of its glory.
14493         (getPathDifference): As above.
14494
14495         * src/SDCCmain.c (preProcess): Changed to use a temporary file in a proper temp directory.  Fixed case where pre-processing only.
14496
14497         * src/SDCCglue.c (tempfilename): Added function for pre-processor.
14498
14499 2001-09-23  Michael Hope  <michaelh AT juju.net.nz>
14500         * .version: Updated to 2.3.1
14501
14502         * src/z80/main.c (z80_port =): Added macro based linker and assembler command line support.
14503         Added copyright header.
14504
14505         * src/SDCCmain.c: Shifted various functions into SDCCutil.c
14506         (assemble): Added support for macro based assembler commands.
14507         (linkEdit): Added support for macro based linker commands.
14508         (preProcess): Changed the pre-processor to use macros.
14509         (_setPaths): Added functionality to autodetect the include, lib and bin dir paths.
14510         (_discoverPaths): Added support for overriding the install directory using the SDCCDIR env variable.
14511
14512         * device/lib/z80/crt0.s: Added module name for debugging.
14513
14514 2001-09-20  Michael Hope  <michaelh AT juju.net.nz>
14515
14516         * src/SDCCmain.c (printVersionInfo): Added the build date to the version info.
14517
14518         * src/SDCChasht.c (hTabDeleteByKey): Fixed delete as it would delete the last item from a bucket even if it wasn't the real one.
14519
14520         * src/SDCCglue.c: Moved gc_strdup to SDCCutil.c
14521
14522         * src/Makefile.in: Added SDCCmacro and SDCCutil
14523
14524 2001-09-19  Michael Hope  <michaelh AT juju.net.nz>
14525
14526         * src/SDCCmain.c (printVersionInfo): Added the build date to the version info.
14527
14528 2001-09-16    <johan AT FRIJA>
14529
14530         * 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.
14531
14532 2001-09-15    <johan AT FRIJA>
14533
14534         * src/mcs51/ralloc.c: (findAssignToSym): fixed bug #460662 part 1
14535         * src/ds390/ralloc.c (findAssignToSym): fixed bug #460662 part 1
14536
14537 2001-09-11    <johan AT FRIJA>
14538
14539         * src/SDCCval.c (valDiv Mod Minus Plus Shift): keep litteral expressions as small as possible (bug #460010)
14540
14541 2001-09-10  Michael Hope  <michaelh AT juju.net.nz>
14542
14543         * support/regression/tests/bug-460444.c: Added test case.
14544
14545         * src/z80/gen.c (genOr): bug 460444: if (a ^ lit) was broken for &, |, and ^.
14546         (genCast): Added justification for all of the asserts.
14547
14548 2001-09-10  Bernhard Held <bernhard AT bernhardheld.de>
14549
14550         * support/regression/support.c: _xdata replaced by xdata
14551
14552         * support/regression/spec.mk: removed _generic
14553
14554 2001-09-09  Michael Hope  <michaelh AT juju.net.nz>
14555
14556         * src/pic/ralloc.c (debugLogRegType): Removed some old types to get it to compile.
14557
14558         * src/z80/gen.c (shiftR2Left2Result): Improved the case when v = v >> n for small values of n to use less code space and time.
14559         (genrshTwo): Fixed v = v >> n where v is a negative int and n is > 8: bug 460010.
14560
14561         * src/z80/peeph.def: Added a rule to optimise shift then compare.
14562
14563         * support/regression/tests/bug-460000.c (testShiftByParam): Added test case.
14564
14565         * support/regression/tests/bug-460010.c: Added test case.
14566
14567         * support/regression/Makefile (test-host): Removed a silly 'clean' target when testing against gcc.
14568
14569 2001-09-09  Bernhard Held <bernhard AT bernhardheld.de>
14570
14571         * support/regression/Makefile: inter-port-clean adjusted for mcs51
14572
14573         * support/regression/testfwk.c: removed workaround for bug #436344
14574
14575         * support/regression/tests/bp.c: use less memory with mcs51
14576
14577         * support/regression/tests/bug-441448.c: use less memory
14578
14579         * support/regression/tests/ports/mcs51/spec.mk: cleanup, use --stack-after-data
14580
14581         * support/regression/collate-results.py: typo
14582
14583 2001-09-08  Michael Hope  <michaelh AT juju.net.nz>
14584
14585         * support/regression/tests/fetchoverlap.c: Added new test case.
14586
14587         * support/regression/tests/bp.c: Added new test case.
14588
14589         * support/regression/tests/bug-448984.c: Added new test case.
14590
14591         * support/regression/tests/pow2shifts.c: Added new test case.
14592
14593         * src/z80/gen.c: Turned off the noise it normally generates for the release.
14594         (genlshTwo): Fixed right shift for count > 8.
14595
14596         * src/z80/ralloc.c: Disabled most of the ACC packing rules as they weren't getting hit and weren't at all safe.
14597
14598 2001-09-08    <johan AT FRIJA>
14599
14600         * src/SDCCicode.c (geniCodeCall): a CPOINTER can be used as a function
14601
14602 2001-09-07    <johan AT FRIJA>
14603
14604         * src/SDCCicode.c (newiCodeCondition): fixed bug #456235 (1.77)
14605
14606         * src/SDCCglue.c (emitRegularMap): only delete a symbol when it is a symbol
14607
14608 2001-09-06    <johan AT FRIJA>
14609
14610         * src/SDCC.y: this could be a fix for bug #458744 (1.37)
14611         * bernhard noted me at this: "() equals to (void)" (1.38)
14612
14613 2001-09-05    <johan AT FRIJA>
14614
14615         * src/SDCCglue.c (emitRegularMap): a fix for bug #458099/2
14616
14617 2001-09-04    <johan AT FRIJA>
14618
14619         * src/SDCCsymt.c (checkSClass): a fix for bug #458099/1
14620
14621
14622 2001-09-04  Paul Stoffregen  <paul AT pjrc.com>
14623
14624         * pragma noinduction broke memcpy on mcs51 large model.  Moved it inside z80 optimization
14625
14626 2001-09-03  Michael Hope  <michaelh AT juju.net.nz>
14627
14628         * link/z80/aslink.h: Fixed path for PATH_MAX
14629
14630 2001-09-02  Michael Hope  <michaelh AT juju.net.nz>
14631
14632         * src/z80/gen.c (fetchLitPair): Changed so that it properly caches direct space references.
14633
14634         * support/regression/tests/addsub.c: Added cases to cover all the +, - combinations.
14635
14636         * support/regression/tests/uminus.c: Added a test for the unary minus operator.
14637
14638         * 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.
14639
14640 2001-09-01  Michael Hope  <michaelh AT juju.net.nz>
14641
14642         * src/z80/gen.c: Fixed up generator to pass the regresion tests, specifically fixing loads for longs, genCmp, and turned on the map file.
14643         (genCmp): Fixed up genCmp for the GB with longs.
14644
14645         * device/lib/gbz80/Makefile: Fixed up all the libraries to pass the regression tests.
14646
14647         * support/regression/ports/host/spec.mk: Updated to compile with the new type specifiers.
14648
14649         * device/lib/Makefile.in (Z80SOURCES): Removed old _mululong, _mulslong, and unneeded _mulint.
14650
14651         * device/lib/_mullong.c (_mulslong): Changed to actually return a value :)
14652
14653 2001-08-30  Paul Stoffregen  <paul AT pjrc.com>
14654
14655         * added peepholes 223 to 231 to mcs51 port.  These improve code when using large model.
14656
14657 2001-08-30  Michael Hope  <michaelh AT juju.net.nz>
14658
14659         * 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.
14660
14661         * src/z80/gen.c (genPlus): Changed bad long add for gb to a fall through.
14662
14663 2001-08-29  Michael Hope  <michaelh AT juju.net.nz>
14664
14665         * link/z80/aslink.h: Fixed long file name support.  Is now based off PATH_MAX instead of a constant.
14666
14667         * src/z80/gen.c: Fixed add and sub for the case where left or right are in static space.
14668
14669 2001-08-30 Bernhard Held   <bernhard AT bernhardheld.de>
14670
14671   * sim/ucsim/configure:    little improvement of Cygwin-detection
14672   * sim/ucsim/configure.in: little improvement of Cygwin-detection
14673   * sim/ucsim/cmd.src/newcmdcl.h: include <sys/types.h> to define fd_set automated build
14674   * support/regression/tests/bug-221100.c: small changes for mcs51
14675   * support/regression/tests/bug-221168.c: small changes for mcs51
14676   * support/regression/tests/bug-227710.c: small changes for mcs51
14677   * support/regression/tests/staticinit.c: small changes for mcs51
14678   * as/mcs51/aslink.h: accept everything as symbol name in rel-files, bug fix ID 452601
14679   * as/mcs51/lklex.c:  accept everything as symbol name in rel-files, bug fix ID 452601
14680   * as/mcs51/lksym.c:  accept everything as symbol name in rel-files, bug fix ID 452601
14681
14682 $Revision$