d16fe4fe1884413c1cdffb4d29351629fc0bd390
[fw/sdcc] / ChangeLog
1 2007-04-03 Maarten Brock <sourceforge.brock AT dse.nl>
2
3         * device/include/math.h,
4         * device/lib/cotf.c,
5         * device/lib/expf.c,
6         * device/lib/sincoshf.c: changed XMAX to C99 HUGE_VALF
7
8 2007-04-01 Borut Razem <borut.razem AT siol.net>
9
10         * src/SDCC.lex, src/SDCCmain.c, support/cpp2/sdcpp.c:
11           fixed bug #1692042: input buffer overflow...scanner uses REJECT
12         * support/cpp2/sdcpp.c: fixed recursion bug - internal_error() called
13           gcc_unreachable() called internal_error()...
14
15 2007-03-30 Raphael Neider <rneider AT web.de>
16
17         * src/pic/ralloc.c (isData): suppress garbage debug output4/1/2007 6:28PM
18
19 2007-03-28 Borut Razem <borut.razem AT siol.net>
20
21         * doc/sdccman.lyx:
22           "Nightly Snapshots" replaced with "Snapshot Builds", since the SDCC
23           is developed, built and used worldwide, and the word "night" doesn't
24           make any sense.
25
26 2007-03-28 Maarten Brock <sourceforge.brock AT dse.nl>
27
28         * device/include/mcs51/C8051F360.h: new, added
29         * device/include/mcs51/C8051F520.h: fixed buggy sbit addresses SPI0CN
30
31 2007-03-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
32
33         * src/SDCC.y (declaration_specifiers, function_specifier),
34         * support/Util/SDCCerr.c,
35         * support/Util/SDCCerr.h,
36         * src/SDCCsymt.h,
37         * src/SDCCsymt.c (mergeSpec, checkFunction): Parse and validate the
38           inline keyword
39         * src/SDCCmem.c (deallocParms),
40         * src/SDCCast.c: support for function inlining, not quite complete
41         * src/SDCCsymt.c (printTypeChain, printTypeChainRaw): display
42           'restrict' qualifier
43
44 2007-03-24 Maarten Brock <sourceforge.brock AT dse.nl>
45
46         * src/mcs51/gen.c (saveRegisters, unsaveRegisters): free some bitVects,
47           (saveRBank, unsaveRBank): don't save bits,
48           (genFunction, genEndFunction): save bits exactly once, fix bug 1535242
49         * support/regression/tests/bug1535242.c: new, added
50         * device/include/assert.h: applied patch 1686533 to fix bug 1686528,
51           thanks Alexey Shamrin <shamrin AT gmail.com>,
52           made assert.h header ANSI compliant (added a check for NDEBUG macro,
53           removed header guard)
54         * .version,
55         * sdcc.spec: bumped version to 2.6.5
56         * src/SDCCmain.c(parseCmdLine): fixed bug 1677144
57
58 2007-03-22 Borut Razem <borut.razem AT siol.net>
59
60         * debugger/mcs51/cmd.c, debugger/mcs51/sdcdb.c:
61           fixed bug #1653671: sdcdb integration into ddd is broken
62
63 2007-03-22 Raphael Neider <rneider AT web.de>
64
65         * src/pic/gen.c (popGetExternal): augmented to also create references
66           to external variables (not only labels),
67           (genCall): comment on plan to reduce PAGESEL overhead,
68           (genFunction, genEndFunction): also save/restore FSR around interrupt
69           handling code, removed lots of unused code
70           (genDivOneByte): release acquired temp register
71         * src/pic/glue.c (pic14createInterruptVect): adadt to new signature
72           of popGetExternal
73         * device/lib/pic/libsdcc/shadowregs.c: NEW, provide storage location
74           for registers that need to be saved during interrupts (FSR, STATUS,
75           PCLATH; W needs special handling), currently only FSR is used
76
77 2007-03-22 Raphael Neider <rneider AT web.de>
78
79         * device/include/pic/pic14devices.txt: 16f688 has only one config word
80
81 2007-03-19 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
82
83         * /as/link/mcs51/aslink.dsp: Object extension for mcs51 is 'rel' not 'o'.
84
85 2007-03-17 Maarten Brock <sourceforge.brock AT dse.nl>
86
87         * src/mcs51/peeph.def (263.x): fixed bug for volatile variables
88
89 2007-03-14 Maarten Brock <sourceforge.brock AT dse.nl>
90
91         * as/link/aslink.h: added LKOBJEXT
92         * as/link/hc08/link_hc08.dsp,
93         * as/link/hc08/Makefile.bcc,
94         * as/link/hc08/Makefile.in,
95         * as/link/mcs51/aslink.dsp,
96         * as/link/mcs51/Makefile.bcc,
97         * as/link/mcs51/Makefile.in: moved lkamof51.c and lkdata.c
98         * as/link/hc08/lkaomf51.c,      as/link/mcs51/lkaomf51.c,
99         * as/link/lkaomf51.c: merged and moved
100         * as/link/hc08/lkdata.c,        as/link/mcs51/lkdata.c,
101         * as/link/z80/lkdata.c,
102         * as/link/lkdata.c: merged and moved
103         * as/link/hc08/lkmain.c,
104         * as/link/mcs51/lkmain.c: cosmetic changes
105         * as/link/z80/lkeval.c,         as/link/lkeval.c: merged
106         * as/link/lklex.c: use LKOBJEXT
107         * as/link/z80/lklist.c,         as/link/lklist.c: merged,
108           ANSI-fied functions, removed bubble-sorts
109         * as/link/z80/lksym.c           as/link/lksym.c: merged,
110           ANSI-fied functions
111         * as/link/z80/linkgbz80.dsp,
112         * as/link/z80/linkz80.dsp,
113         * as/link/z80/Makefile.in: added lkaomf51.c and lknoice.c,
114           moved lkdata.c, lkeval.c, lkhead.c, lklex.x, lklist.c, lksym.c
115         * as/link/z80/lkhead.c,
116         * as/link/z80/lklex.c: deleted
117         * as/link/z80/lklibr.c: moved LKOBJEXT to aslink.h
118         * as/link/z80/lkmain.c: added copyfile()
119
120 2007-03-13 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
121
122         * device/include/mcs51/P89LPC925.h: Added missing P1_6 and P1_7.
123
124 2007-03-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
125
126         * device/lib/_strlen.c: assembler version for mcs51
127
128 2007-03-13 Raphael Neider <rneider AT web.de>
129
130         * device/include/pic16/pic18f2221.h,
131         * device/include/pic16/pic18f2321.h,
132         * device/include/pic16/pic18f2331.h,
133         * device/include/pic16/pic18f4221.h,
134         * device/include/pic16/pic18f4321.h,
135         * device/include/pic16/pic18f4331.h: fixed config byte location names
136         * support/scripts/inc2h-pic16.pl: removed debug output, emit
137           consistently named config byte locations
138
139 2007-03-13 Borut Razem <borut.razem AT siol.net>
140
141         * src/Makefile.in, sim/ucsim/avr.src/Makefile.in,
142           sim/ucsim/hc08.src/Makefile.in, sim/ucsim/s51.src/Makefile.in,
143           sim/ucsim/xa.src/Makefile.in, sim/ucsim/z80.src/Makefile.in,
144           as/link/z80/Makefile.in, as/z80/Makefile.in:
145           introduced LDFLAGS
146
147 2007-03-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
148
149         * device/lib/printfl.c: 13 bytes less __data mem (12 more __idata)
150         * device/lib/printf_large.c: pointer was converted to generic
151         pointer for mcs51 models other than model-small (Maarten noticed)
152
153 2007-03-10 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
154
155         * device/include/mcs51/ADuC84x.h: Added.
156
157 2007-03-10 Borut Razem <borut.razem AT siol.net>
158
159         * src/SDCC.lex, src/SDCCutil.[ch], src/SDCCval:
160           fixed RFE #1624219: double backslashes in filenames;
161           functions hexEscape(), octalEscape() and copyStr() moved from
162           SDCCval.c to SDCCutil.c and made them glovbally available
163
164 2007-03-09 Borut Razem <borut.razem AT siol.net>
165
166         * src/SDCC.lex, src/SDCCast.c. src/SDCCglobl.c, src/SDCCsymt.c,
167           src/SDCCval.c: fixed bugs #1676768: Wrong line number reported and
168           1673361: Missaligned comments in output files
169
170 2007-03-09 Raphael Neider <rneider AT web.de>
171
172         * device/include/pic/pic14devices.txt: fixed confsiz of 16f91[3467]
173
174 2007-03-09 Raphael Neider <rneider AT web.de>
175
176         * src/pic/gen.c,
177         * src/pic/glue.c,
178         * src/pic/ralloc.c: suppress undesired debug output
179         * src/SDCCmain.c (linkEdit): initialize c to quieten compiler
180
181 2007-03-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
182
183         * device/lib/printf_large.c: 6 bytes less __data mem (6 more __idata)
184
185 2007-03-07 Borut Razem <borut.razem AT siol.net>
186
187         * device/lib/pic16/libdev/pic18f[24][34]31.c:
188           search include files in the current directory
189
190 2007-03-04 Maarten Brock <sourceforge.brock AT dse.nl>
191
192         * src/SDCCglue.c (emitMaps, glue),
193         * src/SDCCmem.c (initMem, allocDefault): added x_abs for initialized
194           absolute xdata
195         * support/regression/tests/absolute.c: added xdata test
196
197 2007-03-03 Maarten Brock <sourceforge.brock AT dse.nl>
198
199         * src/SDCCmain.c (parseCmdLine): only set options.xstack_loc for mcs51,
200           added condition to macro, fixes bug 1666080
201
202 2007-03-02 Raphael Neider <rneider AT web.de>
203
204         * src/pic/gen.c (genGenPointerSet): removed bogus assertion
205
206 2007-02-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
207
208         * device/lib/mcs51/crtxclear.asm: pdata segment of 256 byte would not
209         be cleared. Unconditionally set __XPAGE
210         * src/hc08/gen.c: --no-gen-comments (RFE #1493816) for hc08
211
212 2007-02-27 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
213
214         * src/SDCCglobl.h,
215         * src/SDCCmain.c,
216         * src/mcs51/gen.c,
217         * src/mcs51/rtrack.c,
218         * src/ds390/gen.c,
219         * doc/sdccman.lyx: added --no-gen-comments
220         * src/mcs51/peeph.def: added 192.b, disabled 185
221
222 2007-02-25 Raphael Neider <rneider AT web.de>
223
224         * src/pic16/gen.c (genCast): fixed typo
225         * device/lib/pic16/Makefile.subdir: only install existing files
226         * device/lib/pic16/libdev/Makefile.in: build serially, avoid races
227
228 2007-02-25 Maarten Brock <sourceforge.brock AT dse.nl>
229
230         * device/lib/mcs51/crtcall.asm: new, added for indirect calls
231         * device/lib/mcs51/crtclear.asm,
232         * device/lib/mcs51/crtxclear.asm: renumbered labels
233         * device/lib/mcs51/Makefile.in: added crtcall.asm
234         * doc/sdccman.lyx: documented mcs51 crt* library startup code
235         * src/mcs51/gen.c (movc): removed,
236           (aopGet, genPlusBits): clear a after loading the carry (possibly from
237             acc.x or psw.x),
238           (toCarry, genSend, genRet): added function toCarry,
239           (genPcall): use "lcall @a+dptr" for functions w/o parameters,
240           (assignBit, genAssign, genCast): added function assignBit
241         * src/mcs51/Makefile.bcc: added rtrack.c
242         * src/mcs51/ralloc.h: made valueKnown a bitfield
243         * src/mcs51/rtrack.c (getReg, rtrackUpdate): added getReg,
244           fixed "jbc acc" and "cpl acc" bug, enhanced "cjne", "jnz" and "djnz",
245           disabled InvalidateAllRx for lcall __gptrput, added "xch a,rn"
246         * src/pic/pcode.c (FixRegisterBanking): fixed warning used uninitialized
247         * src/z80/gen.c: added AOP_IS_PAIRPTR,
248           (_pop): only pop valid pairs, see gencjneshort,
249           (gencjneshort): return pair that still needs to be popped, restructured,
250           (gencjne, genCmpEq): call _pop
251
252 2007-02-23 Raphael Neider <rneider AT web.de>
253
254         * device/include/pic/pic14devices.txt: 16f684 has only one config word
255
256 2007-02-22 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
257
258         * device/include/mcs51/P89LPC925.h: Added.
259
260 2007-02-18 Raphael Neider <rneider AT web.de>
261
262         * src/pic/glue.c (emitInitVal): fixed #1659894 (SIGSEGV on arrays)
263
264 2007-02-17 Borut Razem <borut.razem AT siol.net>
265
266         * support/cpp2/directives.c, support/cpp2/version.c:
267           synchronized with GCC CPP 4.1.2
268
269 2007-02-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
270
271         * src/mcs51/rtrack.h,
272         * src/mcs51/rtrack.c: added register tracking for the mcs51 port,
273           by checking the strings passed by emitcode() to the assembler.
274           Feel free to change. This in part addresses RFE #482179.
275           Set environment variable SDCC_RTRACK to enable.
276         * src/mcs51/gen.c: inserted hooks
277         * src/mcs51/ralloc.h: added two members to struct regs
278         * support/regression/tests/regtrack.c: added
279
280 2007-02-14 Borut Razem <borut.razem AT siol.net>
281
282         * src/SDCC.y: fixed bug #1291133: duplicate members across enum(s)
283         * Makefile.in: applied patch from Makefile related part of
284           #1469393: Compiler does not initialize static data
285
286 2007-02-12 Maarten Brock <sourceforge.brock AT dse.nl>
287
288         * src/SDCCicode.c (geniCodeAssign): return (itemp) right instead of left
289           for better fix of bug 1273984, compiles pic16 rand.c
290
291 2007-02-12 Borut Razem <borut.razem AT siol.net>
292
293         * src/pic16/main.c: fixed pic16 standard library directory bug
294
295 2007-02-11 Maarten Brock <sourceforge.brock AT dse.nl>
296
297         * src/hc08/gen.c (genSwap): fix swap regression test
298
299 2007-02-10 Borut Razem <borut.razem AT siol.net>
300
301         * src/SDCCsymt.c: fixed bug #1159134: invalid duplicate declarations
302           with same scope
303         * support/regression/tests/bug-1654060.c: added regression test for
304           #1654060
305
306 2007-02-09 Bernhard Held <bernhard AT bernhardheld.de>
307
308         * src/mcs51/gen.c (genRet): fixed RFE 1652561: added code for bit to
309         bit moves in return statement
310
311 2007-02-09 Borut Razem <borut.razem AT siol.net>
312
313         * src/SDCC.y: fixed bug #1654060 typedef within function causes
314           syntax error
315
316 2007-02-07 Maarten Brock <sourceforge.brock AT dse.nl>
317
318         * src/mcs51/gen.c (aopPut): use direct name for pushing registers
319         * src/SDCCmain.c (parseCmdLine): dbuf_s path must be initialised
320
321 2007-02-07 Raphael Neider <rneider AT web.de>
322
323         * src/pic16/devices.inc,
324         * device/include/pic16/pic18fregs.h,
325         * device/include/pic16/pic18f[24][34]31.h,
326         * device/lib/pic16/libdev/pic18f[24][34]31.c,
327         * device/lib/pic16/pics.all: added 18f[24][34]31 family
328         * device/lib/pic16/libio/i2c.ignore: do not build i2c
329
330 2007-02-07 Maarten Brock <sourceforge.brock AT dse.nl>
331
332         * device/lib/printf_large.c (_print_format): fixed compare/assign bug, how
333           can this have lived here for so many years?
334         * src/SDCCicode.c (ast2iCode): return left instead of right for assignment,
335           fixes bug 1273984, see also patch 1645121, thanks Gnther Jehle
336         * support/regression/tests/bug1273984.c: new, added, thanks Gnther Jehle
337
338 2007-02-06 Bernhard Held <bernhard AT bernhardheld.de>
339
340         * src/SDCCBlock.c (addiCodeToeBBlock): fixed bug 1652207: GOTO icodes
341         appended by loop induction must be at the very end of the eBBlock
342
343 2007-02-05 Kevin Vigor
344
345         * src/ds390/gen.c, src/ds390/main.c: Address bug 1469393.
346
347 2007-02-05 Borut Razem <borut.razem AT siol.net>
348
349         * support/regression/fwk/lib/timeout.c: native WIN32 port,
350           implemented #1651830 Reg. tests: rewrite timeout.c to use WIN32 API
351
352 2007-02-03 Borut Razem <borut.razem AT siol.net>
353
354         * src/SDCC.y, src/SDCCmain.c, src/SDCCglobl.h, doc/sdccman.lyx:
355           applied patch #1646602 option to set default signedness of char to
356           unsigned, added -funsigned-char command line option,
357           thanks to Gunther Jehle
358         * device/lib/Makefile.in: added the -f option to rm so it doesn't
359           prompt for file deletion a few hundred times (especially the
360           subversion files, which have ro permissions so it asks for
361           confirmation), thanks to Simon McAuliffe;
362           added {} + option to find in order to remove multiple files from a
363           single rm commad
364
365 2007-02-02 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
366
367         * device/include/mcs51/SST89x5xRDx.h: Added.
368
369 2007-02-02 Raphael Neider <rneider AT web.de>
370
371         * src/pic/glue.c (emitSymbolSet): check sym->etype before use
372         * src/regression/Makefile: use --no-pcode-opt, ignore failing tests
373
374 2007-02-01 Raphael Neider <rneider AT web.de>
375
376         * src/pic/glue.c (picglue,emitSymbolSet,showAllMemmaps): emit the
377           config words again
378
379 2007-01-31 Borut Razem <borut.razem AT siol.net>
380
381         * support/Util/dbuf_string.h: added ATTRIBUTE_PRINTF to dbuf_printf()
382           if compiled with GCC. Thanks to Raphael Neider
383
384 2007-01-31 Raphael Neider <rneider AT web.de>
385
386         * src/pic/pcode.c (isValidIdChar,bankCompare): fuzzy matching of
387             operand names, handles name and (name + n) for all n,
388           (sameBank): restructured, also check bank allocation policy,
389         * src/pic/glue.c (emitPseudoStack): fixed printf arguments,
390           (pic14_operandsAllocatedInSameBank): check whether to operands
391             will be allocated into the same bank (i.e., section) to reduce
392             BANKSEL overhead, queried from pcode.c:sameBank,
393           (pic14printLocals): reintroduced clustering registers into a single
394             section: all compiler generated symbols will now reside in one
395             bank (per file), reducing BANKSEL overhead and code size,
396           (showAllMemmaps): use local dbuf where possible
397
398 2007-01-29 Raphael Neider <rneider AT web.de>
399
400         * src/pic/gen.c (popGetExternal): simplified, mark symbol as used,
401           (call_libraryfunc): retrieve/create symbol and mark as used,
402           (genFunction): mark defined functions as non-extern and add again
403            to code memmap for later output
404         * src/pic/glue.c (emitPseudoStack): put into own subroutine,
405           (pic14printLocals): reworked for new symbol emission,
406           (emitIfNew,pic14_constructAbsMap,emitIvalLabel,emitIvals,emitInitVal,
407           showAllMemmaps): reworked symbol output using dbufs, added handling
408             of string literals (still incomplete),
409           (picglue): removed symbol emission, moved into showAllMemmaps,
410           (emitSymbolSet): new workhorse for symbol output,
411           (pic14emitMaps,pic14printPublics,pic14printExterns): commented out
412
413 2007-01-29 Borut Razem <borut.razem AT siol.net>
414
415         * src/SDCCmain.c, src/SDCCutil.c: dbuf_splitFile: file extension
416           component contains the extension separator.
417
418 2007-01-28 Borut Razem <borut.razem AT siol.net>
419
420         * sim/ucsim/cmd.src/cmdutil.cc: NUL device is detected as CG_FILE type
421           on WIN32
422         * src/SDCCdwarf2.c, src/SDCCglobl.h, src/SDCCmain.c, src/SDCCutil.c,
423           src/SDCCutil.h, src/avr/gen.c, src/ds390/gen.c, src/hc08/gen.c,
424           src/mcs51/gen.c, src/pic/device.c, src/pic/gen.c, src/pic/pcode.c,
425           src/pic/pcodepeep.c, src/pic/ralloc.c, src/pic16/device.h,
426           src/pic16/gen.c, src/pic16/main.c, src/pic16/pcode.c,
427           src/pic16/pcodepeep.c, src/pic16/ralloc.c, src/xa51/gen.c,
428           src/z80/gen.c, support/Util/MySystem.c:
429           accept slash and backslash as directory separator on WIN32 and
430           Cygwin ports
431
432 2007-01-28 Raphael Neider <rneider AT web.de>
433
434         * src/pic16/devices.inc,
435         * device/include/pic16/pic18f[24][23]21.h,
436         * device/include/pic16/pic18fregs.h,
437         * device/lib/pic16/libdev/pic18f[24][23]21.c,
438         * device/lib/pic16/pics.all: added support for the 18f[24][23]21 family
439         * device/lib/pic16/libio/adc.ignore,
440         * device/lib/pic16/libio/i2c.ignore,
441         * device/lib/pic16/libio/usart.ignore: do not build I/O lib for new
442           family, as gputils do not yet support the devices
443         * device/lib/pic16/Makefile.subdir: ignore errors on install
444         * support/scripts/inc2h-pic16.pl: script to generate pic16 device
445           headers and libraries from gputils .inc files
446
447 2007-01-26 Paul Stoffregen <paul AT pjrc.com>
448
449         * doc/sdccman.lyx: add printf_fast_f precision limitation note
450
451 2007-01-26 Paul Stoffregen <paul AT pjrc.com>
452
453         * doc/sdccman.lyx: add printf benchmarks
454
455 2007-01-25 Paul Stoffregen <paul AT pjrc.com>
456
457         * device/lib/printf_fast.c: fix %c, char promoted to int
458         * device/lib/printf_tiny.c: fix %c, char promoted to int
459
460 2007-01-25 Paul Stoffregen <paul AT pjrc.com>
461
462         * device/lib/printf_fast.c: fix float overflow check, bug #1525093
463
464 2007-01-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
465
466         * support/regression/tests/swap.c: 64 bit hosts failed
467         * doc/sdccman.lyx: added preliminary mcs51 printf feature matrix
468
469 2007-01-25 Raphael Neider <rneider AT web.de>
470
471         * src/pic/pcode.c (sameBank,FixRegisterBanking): optimize banksels
472           based on absolute register address, patch by Alex Blond
473
474 2007-01-22 Raphael Neider <rneider AT web.de>
475
476         * src/pic/glue.c (pic14emitRegularMap): mark initialized symbols as
477           emitted, do not emit them again...
478
479 2007-01-22 Raphael Neider <rneider AT web.de>
480
481         * src/regression/bank1.c, src/regression/compare6.c,
482           src/regression/add.c: cosmetic changes
483         * src/pic/pcode.h: moved GPTRTAG_* here from gen.c
484         * src/pic/gen.c: fixed global zero and one,
485           (aopForSym): removed unued code,
486           (aopGet): assert aop is defined, check and use `index' of
487             pCodeImmd operands (fixes #1630908),
488         * src/pic/pcode.c (get_op): added output of generic pointer tag,
489           (register_reassign): prevent accidental register unification,
490           (ReuseReg): cosmetic changes (also above)
491         * src/pic/glue.c (pic14_constructAbsMap,pic14emitRegularMap,
492           pic14emitStaticSeg): do not emit initialized data,
493           (printIval*): replaced with working versions,
494           (pic14createInterruptVect,picglue): use idata for initialized data,
495             now init data should work in all modules (not only main()),
496         * device/lib/pic/libsdcc/idata.c: NEW, handle initialized data
497
498 2007-01-21 Borut Razem <borut.razem AT siol.net>
499
500         * sim/ucsim/configure.in: introduced macro DD_COPT_NO_IGNORE,
501           use -fPIC or -fpic if they are supported and not ignored
502         * src/SDCCval.c: fixed bug introduced by me in rev. #4577
503         * support/cpp2/libcpp/lex.c: fixed gcc 4.1.1 warnings
504
505 2007-01-20 Borut Razem <borut.razem AT siol.net>
506
507         * src/SDCC.lex, src/SDCCmain.c, sdc/SDCCglobl.h, doc/sdccman.lyx:
508           implemented RFE #1470316: allow "$" in variable names
509
510 2007-01-20 Raphael Neider <rneider AT web.de>
511
512         * device/include/pic/pic14regs.h: reverted accidental wipe of the file
513
514 2007-01-20 Raphael Neider <rneider AT web.de>
515
516         * device/lib/pic/libdev/devices.txt: device list for mkall.sh
517         * device/lib/pic/libdev/mkall.sh: script to rebuild all device libs
518         * device/lib/pic/libdev/pic14ports.txt: device PORT specifications
519         * support/scripts/inc2h.pl: fixed major .inc parsing bugs,
520           applied patch from Robert Tate (#1629249) to add PORTs and TRISs
521         * device/lib/pic/libdev/pic*.c,
522         * device/include/pic/pic*.h: regenerated with enhanced inc2h.pl
523         * device/lib/pic/libdev/Makefile.in: show progress
524
525 2007-01-19 Bernhard Held <bernhard AT bernhardheld.de>
526
527         * doc/sdccman.lyx: updated "configure options" for autoconf 2.6
528         * support/scripts/sdcc_cygwin_mingw32,
529         * support/scripts/sdcc_mingw32,
530         * support/scripts/build.mak: replaced --datadir by --datarootdir for
531         conformance with autoconf 2.6
532
533 2007-01-19 Raphael Neider <rneider AT web.de>
534
535         * src/pic/device.c (register_map): fixed list construction
536         * src/pic/gen.c (genDivOneByte,genModOneByte): accept result > 1 byte,
537           (genMod): removed case for genModbits,
538           (genModbits): removed as now unused/unimplemented
539         * src/pic/glue.c (picglue): prevent name clash with sources 'init.c'
540
541 2007-01-18 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
542
543         * support/regression/tests/swap.c: added in response to #1638622
544         * doc/sdccman.lyx: synced version, minor changes
545
546 2007-01-18 Borut Razem <borut.razem AT siol.net>
547
548         * SDCClabel.c: fixed bug #1638651: wrong linenumber presented in warning,
549           thanks to Gunther Jehle
550         * src/asm.c: don't die if the file drfined in #line couldn't be opened
551         * src/SDCC.lex, src/SDCCglobal.h, src/SDCCicode.c, src/SDCCsymt.c,
552           src/SDCCval.c: removed redundant definitions of currFname and mylineno;
553           use filename in lineno instead.
554         * SDCCast.c: removed MSVC warning C4018: '==' : signed/unsigned mismatch,
555           print the file name in ast_print()
556
557 2007-01-18 Borut Razem <borut.razem AT siol.net>
558
559         * support/Util/dbuf_string.c: removed (PTR) cast since it is not
560           defined in MSVC
561         * src/SDCC.lex: stringLiteral() returns const char pointer,
562           EOF detection in stringLiteral(), fixed asmbuf memory leak,
563           fixed column counting
564         * src/SDCCval.[ch]: constVal(), value *strVal() and charVal()
565           accept const char pointer as parameter
566         * src/SDCCdwarf2.c: corrected buffer size
567
568 2007-01-17 Borut Razem <borut.razem AT siol.net>
569
570         * support/Util/dbuf_string.c: fixed for amd64
571
572 2007-01-15 Borut Razem <borut.razem AT siol.net>
573
574         * src/pic16/ralloc.c, src/pic/ralloc.c, src/SDCC.y:
575           removed terminal symbol ELIPSIS, since it was never generated by the
576           lexer and it was wrongly used in parameter_identifier_list rule
577
578 2007-01-15 Raphael Neider <rneider AT web.de>
579
580         * doc/sdccman.lyx: updated PIC14/16 command line args, updated PIC14
581             code page and data banking description
582         * src/pic/genarith.c,
583         * src/pic/gen.h: removed bit arithmetic functions,
584             updated exit(1) to exit(EXIT_FAILURE)
585         * device/lib/pic16/libsdcc/stack/stack.S: default to 256 byte stack
586         * device/include/pic16/pic18f2455.h,
587         * device/lib/pic16/libdev/pic18f2455.c: added PORTD, LATD, LATE,
588             TRISD and TRISE, fixed/added some bit names
589         * device/lib/pic16/libdev/pic18f{2550,4550,4455}.c,
590         * device/include/pic16/pic18f{2550,4550,4455}.h: simply include
591             updated pic18f2455.{c,h} instead of duplicating them
592
593 2007-01-14 Borut Razem <borut.razem AT siol.net>
594
595         * as/mcs51/asnoice.c, as/hc08/asnoice.c: fixed bug #1447412:
596           Cannot debug files that contain spaces in the path name
597           by converting spaces in asm file name to underscores
598
599 2007-01-13 Borut Razem <borut.razem AT siol.net>
600
601         * doc/sdccman.lyx: fixed format errors
602
603 2007-01-10 Borut Razem <borut.razem AT siol.net>
604
605         * src/SDCC.lex, src/SDCCmain.c: fixed bug #1631895:
606           codeseg/constseg #pragma fail
607         * suppoprt/cpp2/Makefile.bcc: reenable Borland C compilation
608         * suppoprt/cpp2/configure.in, suppoprt/cpp2/libcpp/lex.c,
609           suppoprt/cpp2/Makefile.in, suppoprt/cpp2/sdcpp-opts,
610           suppoprt/cpp2/sdcpp.[ch]: house cleaning
611
612 2007-01-09 Borut Razem <borut.razem AT siol.net>
613
614         * get rid of diagnistic.[ch], pretty-print.[ch],
615           c-pretty-print.[ch], ... used just for error, warning, ...
616           message formatting
617         * suppoprt/cpp2/pretty-print.[ch], suppoprt/cpp2/diagnostic.[ch],
618           suppoprt/cpp2/diagnostic.def, suppoprt/cpp2/input.h,
619           suppoprt/cpp2/pretty-print.[ch]:
620           removed
621         * suppoprt/cpp2/Makefile.in, suppoprt/cpp2/opts.c,
622           suppoprt/cpp2/sdcpp-opts.c, suppoprt/cpp2/sdcpp.[ch],
623           suppoprt/cpp2/sdcpp.dsp:
624           changed
625
626 2007-01-08 Maarten Brock <sourceforge.brock AT dse.nl>
627
628         * device/lib/printf_large.c (output_float): removed recursion,
629           use smaller buffer on stack for mcs51,
630           fixed bug printing 1.96
631         * support/regression/tests/snprintf.c: added test
632
633 2007-01-07 Borut Razem <borut.razem AT siol.net>
634
635         * use dynamic memory buffers instead temporary files
636         * support/Util/dbuf_string.c, support/Util/dbuf_string.h:
637           added
638         * src/Makefile.in, src/SDCC.lex, src/SDCCast.c, src/SDCCast.h,
639           src/SDCCcse.c, src/SDCCglobl.h, src/SDCCglue.c, src/SDCCglue.h,
640           src/SDCCicode.c, src/SDCCicode.h, src/SDCCmain.c, src/SDCCmem.c,
641           src/SDCCmem.h, src/SDCCpeeph.c, src/SDCCpeeph.h, src/SDCCsymt.c,
642           src/SDCCsymt.h, src/SDCCutil.c, src/asm.c, src/asm.h, src/avr/gen.c,
643           src/avr/main.c, src/ds390/gen.c, src/ds390/main.c, src/hc08/gen.c,
644           src/hc08/main.c, src/izt/gen.c, src/mcs51/gen.c, src/mcs51/main.c,
645           src/pic/device.c, src/pic/gen.c, src/pic/glue.c, src/pic/main.c,
646           src/pic/ralloc.c, src/pic16/gen.c, src/pic16/glue.c,
647           src/pic16/main.c, src/pic16/ralloc.c, src/port.h, src/src.dsp,
648           src/xa51/gen.c, src/xa51/main.c, src/z80/gen.c, src/z80/main.c,
649           support/Util/dbuf.c, support/Util/dbuf.h:
650           modified
651         * .version, sdcc.spec: bumped version to 2.6.4
652
653 2007-01-07 Maarten Brock <sourceforge.brock AT dse.nl>
654
655         * src/port.h: added TARGET_Z80_LIKE macro
656         * src/SDCCmain.c (linkEdit): use TARGET_Z80_LIKE,
657           output PSEG location if --xram-loc or --xstack-loc was used
658         * as/link/mcs51/lkarea.c (lnksect2): set segment address afterwards
659
660 2007-01-07 Maarten Brock <sourceforge.brock AT dse.nl>
661
662         * as/as_gbz80.dsp, as/z80/as_gbz80.dsp,
663         * as/as_z80.dsp,   as/z80/as_z80.dsp,
664         * as/asx8051.dsp,  as/mcs51/asx8051.dsp,
665         * sdcc.dsw: moved project files into subdir
666         * as/hc08/as_hc08.dsp,
667         * as/hc08/Makefile.bcc,
668         * as/hc08/Makefile.in,
669         * as/mcs51/Makefile.bcc,
670         * as/mcs51/Makefile.in,
671         * as/z80/Makefile.bcc,
672         * as/z80/Makefile.in,
673         * as/link/mcs51/Makefile.bcc: use as/strcmpi.c
674         * as/hc08/asm.h,
675         * as/mcs51/asm.h,
676         * as/z80/asm.h: added as_strcmpi() and as_strncmpi() prototypes
677         * as/hc08/asmain.c,
678         * as/hc08/assym.c,
679         * as/mcs51/asmain.c,
680         * as/mcs51/assym.c,
681         * as/z80/assym.c: removed include "strcmpi.h"
682         * as/hc08/strcmpi.c,
683         * as/hc08/strcmpi.h,
684         * as/mcs51/strcmpi.c,
685         * as/mcs51/strcmpi.h,
686         * support/Util/strcmpi.c,
687         * support/Util/strcmpi.h: removed files
688         * as/strcmpi.c: added as_strncmpi()
689
690 2007-01-05 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
691
692         * sdcc.dsw: Added some dependencies on project config.dsp
693
694 2007-01-05 Maarten Brock <sourceforge.brock AT dse.nl>
695
696         * as/link/mcs51/lkarea.c (lnkarea2, lnksect2): replaced [di]seg_ap->a_addr
697           with [di]ram_start to fix a regresion
698
699 2007-01-03 Bernhard Held <bernhard AT bernhardheld.de>
700
701         * configure.in: added missing mcs51 in status output
702         * Makefile.in: add support/regression to SDCC_EXTRA to distclean this
703         directory
704         * debugger/mcs51/clean.mk (distclean): remove config.h
705         * src/clean.mk (clean): remove SDCCy.c, SDCCy.h, SDCClex.c
706         * support/cpp2/Makefile.in (clean): remove s-options, optionlist,
707         options.h, s-options-h and options.c
708         * support/cpp2/clean.mk: unused, removed
709         * Makefile.common.in,
710         * main_in.mk,
711         * as/Makefile.in,
712         * as/hc08/Makefile.in,
713         * as/hc08/clean.mk,
714         * as/mcs51/Makefile.in,
715         * as/mcs51/clean.mk,
716         * as/z80/clean.mk,
717         * as/z80/conf.mk,
718         * as/z80/Makefile.in,
719         * as/z80/clean.mk,
720         * as/link/Makefile.in,
721         * as/link/hc08/Makefile.in,
722         * as/link/hc08/clean.mk,
723         * as/link/mcs51/Makefile.in,
724         * as/link/mcs51/clean.mk,
725         * as/link/z80/Makefile.in,
726         * as/link/z80/clean.mk,
727         * as/link/z80/conf.mk,
728         * debugger/mcs51/Makefile.in,
729         * debugger/mcs51/clean.mk,
730         * device/include/Makefile.in,
731         * device/lib/Makefile.in,
732         * device/lib/mcs51/Makefile.in,
733         * device/lib/pic/Makefile.in,
734         * device/lib/pic/Makefile.common.in,
735         * device/lib/pic/Makefile.subdir,
736         * device/lib/pic/Makefile.rules,
737         * device/lib/pic16/libio/Makefile.in,
738         * device/lib/pic16/Makefile.subdir,
739         * device/lib/pic16/libdev/Makefile.in,
740         * device/lib/pic16/Makefile.rules,
741         * device/lib/pic16/Makefile.common.in,
742         * sim/ucsim/avr.src/Makefile.in,
743         * sim/ucsim/main_in.mk,
744         * sim/ucsim/cmd.src/Makefile.in,
745         * sim/ucsim/doc/Makefile.in,
746         * sim/ucsim/gui.src/Makefile.in,
747         * sim/ucsim/gui.src/obsolete/portmon.src/Makefile.in,
748         * sim/ucsim/gui.src/serio.src/Makefile.in,
749         * sim/ucsim/hc08.src/Makefile.in,
750         * sim/ucsim/libltdl/Makefile.in,
751         * sim/ucsim/s51.src/Makefile.in,
752         * sim/ucsim/sim.src/Makefile.in,
753         * sim/ucsim/sim.src/conf.mk,
754         * sim/ucsim/xa.src/Makefile.in,
755         * sim/ucsim/z80.src/Makefile.in,
756         * src/Makefile.in,
757         * src/clean.mk,
758         * src/port.mk,
759         * support/cpp2/Makefile.in,
760         * support/librarian/Makefile.in,
761         * support/librarian/clean.mk,
762         * support/makebin/Makefile.in,
763         * support/makebin/clean.mk,
764         * support/packihx/Makefile.in,
765         * support/regression/Makefile.in,
766         * support/regression/ports/ds390/spec.mk,
767         * support/regression/ports/gbz80/spec.mk,
768         * support/regression/ports/hc08/spec.mk,
769         * support/regression/ports/mcs51/spec.mk,
770         * support/regression/ports/mcs51-large/spec.mk,
771         * support/regression/ports/mcs51-medium/spec.mk,
772         * support/regression/ports/mcs51-xstack-auto/spec.mk,
773         * support/regression/ports/pic14/spec.mk,
774         * support/regression/ports/pic16/spec.mk,
775         * support/regression/ports/mcs51-stack-auto/spec.mk,
776         * support/regression/ports/ucz80/spec.mk,
777         * support/regression/ports/xa51/spec.mk,
778         * support/regression/ports/z80/spec.mk: fixed for autoconf 2.6x by
779         adding a slash after $(top_builddir) and/or adding @datarootdir@
780         * configure.in,
781         * debugger/mcs51/configure.in,
782         * device/lib/pic/configure.in,
783         * device/lib/pic16/configure.in,
784         * sim/ucsim/configure.in,
785         * support/cpp2/configure.in,
786         * support/packihx/configure.in: changed AC_PREREQ to 2.60
787         * configure,
788         * debugger/mcs51/configure,
789         * device/lib/pic/configure,
790         * device/lib/pic16/configure,
791         * sim/ucsim/configure,
792         * support/cpp2/configure,
793         * support/packihx/configure: generated with autoconf 2.60
794
795 2007-01-02 Maarten Brock <sourceforge.brock AT dse.nl>
796
797         * as/link/hc08/lkihx.c (newArea),
798         * as/link/hc08/lkrloc.c: renamed newArea() to ihxNewArea()
799
800 2007-01-02 Borut Razem <borut.razem AT siol.net>
801
802         * doc/sdccman.lyx: documented #pragma sdcc_hash
803         * support/cpp2/sdcpp.c: allow_naked_hash (value of #pragma sdcc_hash)
804           initialized to 0
805         * support/cpp2/c-ppoutput.c: fixed warning: no newline at end of file
806
807 2007-01-01 Bernhard Held <bernhard AT bernhardheld.de>
808
809         * src/SDCCast.c (createDo): backPatchLabels() needs falseLabel in
810         empty 'while'-loop to work correctly, see regression test 'while.c'
811         * support/regression/tests/while.c: added
812
813 2007-01-01 Borut Razem <borut.razem AT siol.net>
814
815         * support/cpp2/libcpp/directives.c, support/cpp2/libcpp/identifiers.c,
816           support/cpp2/libcpp/init.c, support/cpp2/libcpp/sdcpp-opts.c,
817           support/cpp2/libcpp/sdcpp.c:
818           sdcpp specific pragma/directive/option handling moved to sdcpp.c
819         * doc/sdccman.lyx: reference to the GCC 4.1.1 CPP Manual
820         * support/cpp2/libcpp/mkdeps.c: synchronized with GCC CPP 4.1.1
821
822 2006-12-31 Borut Razem <borut.razem AT siol.net>
823
824         * SDCPP synchronized with GCC CPP release version 4.1.1,
825           currently the latest release:
826         * support/cpp2/libcpp, support/cpp2/libcpp/include,
827           support/cpp2/libcpp/include/cpp-id-data.h
828           support/cpp2/libiberty/fopen_unlocked.c
829           support/cpp2/libiberty/md5.c
830           support/cpp2/md5.h
831           support/cpp2/opt-functions.awk
832           support/cpp2/opt-gather.awk
833           support/cpp2/optc-gen.awk
834           support/cpp2/opth-gen.awk:
835           added
836         * support/cpp2/Makefile.in, support/cpp2/auto-host_vc_in.h,
837           support/cpp2/c-incpath.c, support/cpp2/c-incpath.h,
838           support/cpp2/c-ppoutput.c, support/cpp2/c-pretty-print.c,
839           support/cpp2/c-pretty-print.h, support/cpp2/cppdefault.c,
840           support/cpp2/cppdefault.h, support/cpp2/diagnostic.c,
841           support/cpp2/diagnostic.h, support/cpp2/except.h,
842           support/cpp2/hwint.h, support/cpp2/input.h,
843           support/cpp2/intl.h, support/cpp2/move-if-change,
844           support/cpp2/opts.c, support/cpp2/opts.h,
845           support/cpp2/output.h, support/cpp2/prefix.c,
846           support/cpp2/prefix.h, support/cpp2/pretty-print.c,
847           support/cpp2/pretty-print.h, support/cpp2/sdcpp-opts.c,
848           support/cpp2/sdcpp.c, support/cpp2/sdcpp.dsp,
849           support/cpp2/sdcpp.h, support/cpp2/sdcpp.opt,
850           support/cpp2/sdcppa.dsp, support/cpp2/symcat.h,
851           support/cpp2/version.c:
852           modified
853         * support/cpp2/libcpp/charset.c, support/cpp2/libcpp/directives.c,
854           support/cpp2/libcpp/errors.c, support/cpp2/libcpp/expr.c,
855           support/cpp2/libcpp/files.c, support/cpp2/libcpp/identifiers.c,
856           support/cpp2/libcpp/include/cpplib.h, support/cpp2/libcpp/include/line-map.h,
857           support/cpp2/libcpp/include/mkdeps.h, support/cpp2/libcpp/include/symtab.h,
858           support/cpp2/libcpp/init.c, support/cpp2/libcpp/internal.h,
859           support/cpp2/libcpp/lex.c, support/cpp2/libcpp/line-map.c,
860           support/cpp2/libcpp/macro.c, support/cpp2/libcpp/mkdeps.c,
861           support/cpp2/libcpp/symtab.c, support/cpp2/libcpp/system.h,
862           support/cpp2/libcpp/traditional.c, support/cpp2/libcpp/ucnid.h,
863           support/cpp2/libiberty/hashtab.c, support/cpp2/libiberty/hashtab.h:
864           moved
865         * support/cpp2/cppcharset.c, support/cpp2/cpperror.c,
866           support/cpp2/cppexp.c, support/cpp2/cppfiles.c,
867           support/cpp2/cpphash.c, support/cpp2/cpphash.h,
868           support/cpp2/cppinit.c, support/cpp2/cpplex.c,
869           support/cpp2/cpplib.c, support/cpp2/cpplib.h,
870           support/cpp2/cppmacro.c, support/cpp2/cpptrad.c,
871           support/cpp2/cppucnid.h, support/cpp2/hashtab.c,
872           support/cpp2/hashtab.h, support/cpp2/hashtable.c,
873           support/cpp2/hashtable.h, support/cpp2/line-map.c,
874           support/cpp2/line-map.h, support/cpp2/mkdeps.c,
875           support/cpp2/mkdeps.h, support/cpp2/options_vc_in.c,
876           support/cpp2/options_vc_in.h, support/cpp2/opts.sh,
877           support/cpp2/system.h:
878           deleted / moved
879
880 2006-12-31 Borut Razem <borut.razem AT siol.net>
881
882         * configure.in, configure: fixed bug #1538756: configure dies if bison
883           and flex are not installed, 2nd try
884
885 2006-12-30 Bernhard Held <bernhard AT bernhardheld.de>
886
887         * src/mcs51/peeph.def: renamed rule 400 to 500, moved rule 253.x to
888         400.x for better code in RFE 899102
889
890 2006-12-30 Bernhard Held <bernhard AT bernhardheld.de>
891
892         * src/SDCCpeeph.c (deadMove),
893         * src/port.h,
894         * src/mcs51/peep.h: renamed 'op' by 'reg'
895         * src/mcs51/peep.c (isFunc, isCallerSaveFunc): added,
896         (scan4op): small change for removeDeadMove(), added support for
897         'callee saves' and/or PACLL function calls,
898         (removeDeadMove): added, removes superflous 'mov r%1,%2',
899         (removeDeadPopPush): renamed from mcs51DeadMove(), common parts
900         left in new dispatcher mcs51DeadMove()
901         (mcs51DeadMove): dispatcher for removeDeadPopPush() and new
902         removeDeadMove()
903         * src/mcs51/peeph.def: added rule 301 removing superflous 'mov r%1,%2'
904
905 2006-12-30 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
906
907         * support/cpp2/options_vc_in.h, support/cpp2/options_vc_in.c,
908           support/cpp2/sdcppa.dsp: create 'options.h' and 'options.c' under MSVC.
909
910 2006-12-30 Borut Razem <borut.razem AT siol.net>
911
912         * support/cpp2/spacs.h: deleted from svn
913         * configure.in, configure: fixed bug #1538756: configure dies if bison
914           and flex are not installed
915
916 2006-12-29 Maarten Brock <sourceforge.brock AT dse.nl>
917
918         * src/z80/gen.c (assignResultValue): fixed bug when registers overlap,
919           with this z80 passes printf float test when enabled
920         * support/regression/tests/bug1057979.c: typo disabled ds390 float test
921
922 2006-12-28 Borut Razem <borut.razem AT siol.net>
923
924         * support/cpp2/config.in, support/cpp2/configure.in,
925           support/cpp2/configure, support/cpp2/Makefile.in:
926           fix for the solaris build
927
928 2006-12-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
929
930         * src/SDCC.y (type_specifier2, pointer),
931         * src/SDCCsymt.h,
932         * src/SDCCsymt.c (mergeSpec, checkSClass),
933         * support/Util/SDCCerr.c,
934         * support/Util/SDCCerr.h: Parse and validate the restrict keyword
935         * support/valdiag/valdiag.py: Allow test cases to specify
936           required language standard
937         * support/valdiag/tests/restrict.c: New file to test restrict keyword
938         * support/valdiag/tests/tentdecl.c: Supress empty source file error
939
940 2006-12-27 Borut Razem <borut.razem AT siol.net>
941
942         * support/cpp2/cppmain.c, support/cpp2/mbchar.[ch]: removed
943         * support/cpp2/libiberty/Makefile.in, support/cpp2/libiberty/sdcpp.dsp:
944           mbchar removed
945         * support/cpp2/libiberty/getpwd.c, support/cpp2/sdcpp.h:
946           fixed for borland C
947         * support/cpp2/libiberty/Makefile.bcc: updated
948         * src/pic16/main.c: fixed #pragma udata handling
949         * src/mcs51/mcs51.dsp: added peep.[ch] to the project
950
951 2006-12-26 Bernhard Held <bernhard AT bernhardheld.de>
952
953         * src/SDCCpeeph.c: made labelHashEntry global,
954         made pcDistance, FBYNAME static,
955         (pcDistance): made static, use isComment and isLabel,
956         (deadMove): added,
957         (getLabelRef): added, extracted from labelRefCount(),
958         (labelRefCount): use new getLabelRef(),
959         (callFuncByName): made static, added deadMove,
960         use isComment and isLabel,
961         (newPeepRule): made static, set isLabel,
962         (isLabelDefinition): added parameter isPeepRule to allow '%' in
963         labels from peephole rules,
964         (buildLabelRefCountHash): speed up by running isLabelDefinition() only
965         when isComment or isLabel is set
966         * src/SDCCpeeph.h: added "isLabel" and "visited" to struct lineNode,
967         added labelHashEntry, isLabelDefinition, labelHash and getLabelRef
968         to make them global
969         * src/mcs51/peep.h: added
970         * src/mcs51/peep.c: added, implements mcs51DeadMove()
971         * src/port.h: added peep->deadMove to port structure
972         * src/mcs51/main.c: initialize peep->deadMove with mcs51DeadMove
973         * src/mcs51/peeph.def: renumbered rule 300 to 400, added new rule 300
974         deadMove, finally removed no. 1 and 2
975         * src/mcs51/gen.c,
976         * src/pic/gen.c,
977         * src/z80/gen.c,
978         * src/z80/ralloc.c,
979         * src/pic16/gen.c,
980         * src/ds390/gen.c,
981         * src/hc08/gen.c: mark lines with isComment or isLabel
982         * sim/ucsim/s51.src/uc390hw.cc: don't waist 65535 ticks before CKRDY
983         * .version,
984         * sdcc.spec: bumped version to 2.6.3
985
986 2006-12-26 Borut Razem <borut.razem AT siol.net>
987
988         * support/cpp2/Makefile.in: added dependency on options.h
989         * configure: regenerated
990         * support/cpp2/sdcpp.opt, support/cpp2/move-if-change: svn:eol-style native
991         * support/cpp2/Makefile.in: added vasprintf.c
992
993 2006-12-25 Borut Razem <borut.razem AT siol.net>
994
995         * SDCPP synchronized with GCC CPP release version 3.4.6,
996           the latest release before 4.x:
997         * support/cpp2/Makefile.in, support/cpp2/config.h,
998           support/cpp2/configure, support/cpp2/configure.in,
999           support/cpp2/cppdefault.c, support/cpp2/cppdefault.h,
1000           support/cpp2/cpperror.c, support/cpp2/cppexp.c,
1001           support/cpp2/cppfiles.c, support/cpp2/cpphash.c,
1002           support/cpp2/cpphash.h, support/cpp2/cppinit.c,
1003           support/cpp2/cpplex.c, support/cpp2/cpplib.c,
1004           support/cpp2/cpplib.h, support/cpp2/cppmacro.c,
1005           support/cpp2/cpptrad.c, support/cpp2/except.h,
1006           support/cpp2/hashtable.c, support/cpp2/hashtable.h,
1007           support/cpp2/hwint.h, support/cpp2/intl.h,
1008           support/cpp2/line-map.c, support/cpp2/line-map.h,
1009           support/cpp2/mkdeps.c, support/cpp2/mkdeps.h,
1010           support/cpp2/output.h, support/cpp2/prefix.c,
1011           support/cpp2/prefix.h, support/cpp2/sdcpp.dsp,
1012           support/cpp2/system.h, support/cpp2/version.c:
1013           modified
1014         * support/cpp2/c-incpath.c, support/cpp2/c-incpath.h,
1015           support/cpp2/c-ppoutput.c, support/cpp2/c-pretty-print.c,
1016           support/cpp2/c-pretty-print.h, support/cpp2/cppcharset.c,
1017           support/cpp2/cppucnid.h, support/cpp2/diagnostic.c,
1018           support/cpp2/diagnostic.def, support/cpp2/diagnostic.h,
1019           support/cpp2/hashtab.c, support/cpp2/hashtab.h,
1020           support/cpp2/input.h, support/cpp2/libiberty/getpwd.c,
1021           support/cpp2/libiberty/vasprintf.c, support/cpp2/libiberty/xmemdup.c,
1022           support/cpp2/move-if-change, support/cpp2/opts.c,
1023           support/cpp2/opts.h, support/cpp2/opts.sh,
1024           support/cpp2/pretty-print.c, support/cpp2/pretty-print.h,
1025           support/cpp2/sdcpp.opt, support/cpp2/sdcpp-opts.c,
1026           support/cpp2/win32, support/cpp2/win32/dirent.c,
1027           support/cpp2/win32/dirent.h:
1028           added
1029         * support/cpp2/sdcpp.c: renamed from sdcppmain.c
1030         * support/cpp2/sdcpp.h: renamed from sdcc.h
1031         * sdcppinit.c: deleted
1032
1033 2006-12-23 Borut Razem <borut.razem AT siol.net>
1034
1035         * support/cpp2/cpphash.h, support/cpp2/cpplex.c,
1036           support/cpp2/cpplib.[ch], support/cpp2/sdcppinit.c, doc/sdccman.lyx,
1037           preproc.c: an other try to fix bug #982435: introduced
1038           -pedantic-parse-number command line option and pedantic_parse_number
1039           pragma
1040
1041 2006-12-21 Maarten Brock <sourceforge.brock AT dse.nl>
1042
1043         * as/link/mcs51/lkarea.c (lnkarea2): handle absolute areas, restructured
1044            BSEG handling,
1045           (lnksect2): use --data-loc and --idata-loc as lower bound for ramstart,
1046            corrected overlayed areax addresses, warn about memory overlaps
1047         * as/mcs51/asmain.c (asmbl): create a new area for every .org directive
1048         * src/avr/main.c,
1049         * src/ds390/main.c,
1050         * src/hc08/main.c,
1051         * src/mcs51/main.c,
1052         * src/pic16/main.c,
1053         * src/pic/main.c,
1054         * src/xa51/main.c,
1055         * src/z80/main.c,
1056         * src/port.h: added xabs_name and iabs_name
1057         * src/SDCCglue.c (emitRegularMap): allocate for absolutes with initializer
1058           (glue, emitMaps): create and emit maps d_abs and i_abs
1059         * src/SDCCglue.h: cosmetic changes
1060         * src/SDCCmain.c (setDefaultOptions): idata can start below 0x80
1061         * src/SDCCmem.h,
1062         * src/SDCCmem.c (initMem): added x_abs, i_abs and d_abs
1063           (allocDefault): put absolute, initialized globals in them
1064         * support/regression/tests/absolute.c: added absolute bdata test
1065         * device/lib/printf_large.c (output_float): moved fpBuffer to stack/xdata
1066
1067 2006-12-20 Borut Razem <borut.razem AT siol.net>
1068
1069         * support/cpp2/cpphash.h, support/cpp2/cpplex.c: fixed bug #982435
1070         * support/regression/tests/preproc.c: renamed from bug-1351710.c,
1071           added regression test for bug #982435
1072
1073 2006-12-18 Borut Razem <borut.razem AT siol.net>
1074
1075         * src/SDCCutil.c: fixed a bug in (get_pragma_token)
1076         * src/pic16/main.c, src/SDCC.lex, src/z80/main.c:
1077           small cosmetic changes
1078         * src/SDCC.lex: (stringLiteral) fixed bug #1351710
1079         * support/regression/tests/bug-1351710.c: added regression test
1080
1081 2006-12-18 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1082
1083         * doc/sdccman.lyx: added the long missed iCode table
1084           "<where is figure II?>", added links to wiki
1085
1086 2006-12-17 Borut Razem <borut.razem AT siol.net>
1087
1088         * doc/sdccman.lyx, src/pic16/main.c, src/pic/main.c, src/port.h,
1089           src/SDCC.lex, src/SDCCutil.[ch], src/z80/main.c,
1090           support/Util/SDCCerr.[ch]: removed deprecated pragmas,
1091           unified table driven pragma handling, pragma argument type checking
1092         * support/Util/dbuf.c: (dbuf_set_size) allow to set size equal to the
1093           current one - version 1.1.3
1094         * src/SDCCmain.c: (setParseWithComma) substituted brain damaged strtok
1095
1096 2006-12-13 Raphael Neider <rneider AT web.de>
1097
1098         * src/pic/device.h: removed AssignedMemory structure and macros
1099         * src/pic/device.c: removed global finalMapping (linker assigns
1100             memory locations),
1101           (register_map): add SFRs to remembered memRanges
1102           (addMemRange,isSFR,dump_map,dump_sfr,mapRegister,assignRegister,
1103           assignFixedRegisters,assignRelocatableRegisters): removed,
1104           (setMaxRAM,validAddress): adapted accordingly,
1105           (pic14_hasSharebank,pic14_getSharedStack): only report and use
1106             reasonably sized sharebanks,
1107         * src/pic/ralloc.c (writeUsedRegs): stripped down (remove?),
1108           (allDefsOutOfRange): removed unused code,
1109         * src/pic/main.c (_process_pragma): removed memmap/maxram pragma
1110             handling
1111         * src/pic/pcode.c (register_reassign): removed recursion warning,
1112             fired far too often,
1113         * src/pic/glue.c (emitSymbolToFile,pic14_constructAbsMap): modified
1114             to use existing pic14_stringInSet() to avoid duplicate symbols,
1115             tidied up the code a bit,
1116           (pic14printLocals): added in symmetry to printExterns, replaces
1117             writeUsedRegs more or less,
1118           (picglue): call new pic14_printLocals(),
1119         * device/include/pic/pic*.h: removed #pragma memmap directives,
1120             information gathered from include/pic/pic14devices.txt
1121         * support/scripts/inc2h.pl: do not emit #pragma memmap lines
1122
1123 2006-12-10 Maarten Brock <sourceforge.brock AT dse.nl>
1124
1125         * device/include/mcs51/C8051F520.h: fixed buggy CPT0MX
1126
1127 2006-12-11 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1128
1129         * device/include/mcs51/cc2430.h: fixed missing ';'
1130
1131 2006-12-10 Raphael Neider <rneider AT web.de>
1132
1133         * device/lib/pic16/libc/stdio/vfprintf.c,
1134         * device/lib/pic16/libc/stdio/printf_small.c,
1135         * device/lib/pic16/libc/stdio/printf_timy.c: pop int from stack for
1136           char arguments, as char varargs are cast to int by the caller,
1137           hopefully fixes #1604915 (other device libraries are still affected)
1138
1139 2006-12-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1140
1141         * src/mcs51/ralloc.c (packRegsForAssign),
1142         * src/hc08/ralloc.c (packRegsForAssign): fixed bug #1605880
1143
1144 2006-12-10 Maarten Brock <sourceforge.brock AT dse.nl>
1145
1146         * device/include/malloc.h: removed init_dynamic_memory
1147         * device/lib/malloc.c: made init_dynamic_memory static and automatically
1148           call it once from malloc. Also use _sdcc_heap[] from _heap.c
1149         * device/lib/_heap.c: new, added, contains _sdcc_heap[]
1150         * device/lib/libsdcc.lib,
1151         * device/lib/Makefile.in,
1152         * support/regression/ports/mcs51-xstack-auto/spec.mk: added _heap.c
1153         * doc/sdccman.lyx: documented use of new _heap.c
1154         * support/regression/tests/malloc.c: removed init_dynamic_memory
1155         * src/cdbFile.c(spacesToUnderscores): new function,
1156           (cdbWriteEndFunction, cdbWriteCLine): use spacesToUnderscores, fixes bug
1157           1068030
1158         * device/include/tinibios.h: removed defines for putchar and getchar
1159         * device/lib/ds390/Makefile.in: added putchar.c
1160         * device/lib/ds390/putchar.c: new, added, fixes bug 1465671
1161
1162 2006-12-09 Borut Razem <borut.razem AT siol.net>
1163
1164         * support/cpp2/sdcc.h: prevent multiple inclusion
1165         * support/cpp2/options.h: deleted
1166
1167 2006-12-08 Borut Razem <borut.razem AT siol.net>
1168
1169         * support/cpp2/sdcc.h: removed x*alloc() macros
1170         * support/cpp2/libiberty.h: uncommented out x*alloc() declarations
1171         * support/cpp2/Makefile.bcc, support/cpp2/Makefile.in,
1172           support/cpp2/sdcpp.sdc: x*alloc files added to the project
1173         * support/cpp2/system.h: moved #include "sdcc.h"
1174         * support/cpp2/libiberty/xexit.c, support/cpp2/libiberty/xmalloc.c,
1175           support/cpp2/libiberty/xstrdup.c, support/cpp2/libiberty/xstrerror.c:
1176           added
1177         * support/cpp2/sdcppinit.c: added -isysroot, -fsigned-char,
1178           -funsigned-char options
1179         * support/cpp2/sdcppmain.c: fixed bug 1611411
1180
1181 2006-12-07 Borut Razem <borut.razem AT siol.net>
1182
1183         * support/cpp2/cpplib.c: reverted sdcpp special handling of _Pragma()
1184           directive
1185
1186 2006-12-06 Maarten Brock <sourceforge.brock AT dse.nl>
1187
1188         * src/SDCCsymt.c (addDecl): fixed bug 1609244
1189         * src/SDCCmain.c (linkEdit): fixed bug 1609279
1190         * doc/sdccman.lyx,
1191         * .version: bumped to 2.6.2 because a) it's been a while
1192           b) the linker sources have moved c) the preprocessor is upgraded
1193
1194 2006-12-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1195
1196         * support/regression/tests/snprintf.c: some checks
1197         * lib/src/printf_large.c: %bc: read char instead of int from stack
1198
1199 2006-12-03 Maarten Brock <sourceforge.brock AT dse.nl>
1200
1201         * device/include/mcs51/cc2430.h: inserted _XPAGE
1202
1203 2006-12-02 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1204
1205         * device/include/mcs51/cc2430.h: added
1206
1207 2006-12-02 Maarten Brock <sourceforge.brock AT dse.nl>
1208
1209         * device/include/asm/default/features.h,
1210         * device/include/asm/ds390/features.h,
1211         * device/include/mcs51/at89s53.h,
1212         * device/include/ser.h,
1213         * device/include/ser_ir.h,
1214         * device/include/serial.h: changed keywords to double underscore variants,
1215           fixes bug 1590261 some more, thanks Steven Borley
1216
1217 2006-12-01 Raphael Neider <rneider AT web.de>
1218
1219         * src/pic/pcode.c (register_reassign): do not crash on recursive code
1220           but emit warning (recursion is not supported for pic14)
1221
1222 2006-11-30 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1223
1224         * src/mcs51/peeph.def: added 101.a,b (moves to int/long xdata)
1225         * doc/sdccman.lyx: various small changes, acknowledged Sourceforge
1226
1227 2006-11-30 Raphael Neider <rneider AT web.de>
1228
1229         * src/pic/device.c (dump_sfr): always emit symbols
1230         * src/pic/glue.c (pic14printPublics): fixed typo
1231
1232 2006-11-30 Raphael Neider <rneider AT web.de>
1233
1234         * src/pic/device.c (create_pic,ram_map): add memRange entries to PIC
1235           (pic14_getSharebankSize, pic14_getSharebankAddress): replaced with
1236           (pic14_hasSharebank,pic14_isShared,pic14_allRAMShared,
1237            pic14_getSharedStack): NEW, evaluate the memRange entries to locate
1238            a sharebank, use a non-shared bank for the stack if none available
1239         * src/pic/device.h (struct memRange): added linked list next field,
1240           added prototypes for above functions
1241         * src/pic/ralloc.c (initStack): handle shared and banked stacks,
1242           (typeRegWithIdx): accept fixed and unfixed stack registers
1243         * src/pic/pcode.c (pCodeInitRegisters): use new functions to create
1244           the stack, handle shared and banked stack (except for WSAVE),
1245           (insertBankSel): removed useless optimization (will never fire),
1246           (FixRegisterBanking): added optimization for devices with only one
1247           possibly aliased bank of memory, like 16f84
1248         * src/pic/glue.c (pic14_constructAbsMap): back to udata_ovr, as some
1249           devices have no SHAREBANK in the linker script
1250         * device/include/pic/pic14devices.txt: documented memmap
1251         * device/lib/pic/libdev/Makefile.in: removed --stack-loc again
1252
1253 2006-11-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1254
1255         * src/hc08/gen.c (transferRegReg, loadRegFromAop, forceStackedAop,
1256           storeRegToAop, freeAsmop, genPlusIncr, genPlus, genPointerGetSetOfs,
1257           genAnd, genOr, genXor, genLeftShiftLiteral, genRightShiftLiteral,
1258           genhc08Code): switched most of the D (debug) macros to DD (detailed
1259           debug) macros to better control clutter in the generated .asm file.
1260         * src/hc08/gen.c: (forceStackedAop, genUminus, genLeftShift,
1261           genRightShift): fixed bug with non-constant bit shift stored to
1262           a volatile result (SF Open Discussion forum thread #1616749).
1263           Single byte case is not yet optimized.
1264
1265 2006-11-28 Maarten Brock <sourceforge.brock AT dse.nl>
1266
1267         * device/include/asm/mcs51/features.h,
1268         * device/include/malloc.h,
1269         * device/include/stdio.h: changed keywords to double underscore variants,
1270           fixes bug 1590261
1271
1272 2006-11-27 Borut Razem <borut.razem AT siol.net>
1273
1274         * support/cpp2/cppexp.c, support/cpp2/hashtable.h,
1275           support/cpp2/Makefile.in, support/cpp2/cppfiles.c,
1276           support/cpp2/output.h, support/cpp2/cppinit.c,
1277           support/cpp2/cpplib.c, support/cpp2/cpplib.h,
1278           support/cpp2/Makefile.bcc, support/cpp2/cpphash.c,
1279           support/cpp2/cppdefault.c, support/cpp2/system.h,
1280           support/cpp2/cpphash.h, support/cpp2/cpplex.c,
1281           support/cpp2/cppdefault.h, support/cpp2/mbchar.c,
1282           support/cpp2/prefix.c, support/cpp2/except.h,
1283           support/cpp2/hwint.h, support/cpp2/cppmacro.c,
1284           support/cpp2/line-map.h, support/cpp2/sdcpp.dsp,
1285           support/cpp2/sdcc.h, support/cpp2/mkdeps.c,
1286           support/cpp2/version.c, support/cpp2/cppmain.c,
1287           support/cpp2/version.h, support/cpp2/hashtable.c,
1288           support/cpp2/cpperror.c:
1289           synchronized with GCC CPP release version 3.3.6,
1290           the latest where cppmain.c still exists.
1291         * support/cpp2/cpptrad.c, support/cpp2/sdcppmain.c,
1292           support/cpp2/sdcppinit.c: added
1293
1294 2006-11-27 Borut Razem <borut.razem AT siol.net>
1295
1296         * support/cpp2/cpplex.c:
1297           fixed _asm ... _endasm handling bug, introduce with GCC CPP
1298           synchronization
1299         * support/cpp2/cpplib.c: removed definitions of unused variables
1300
1301 2006-11-26 Borut Razem <borut.razem AT siol.net>
1302
1303         * support/cpp2/libiberty.h: commented out x*alloc() declarations
1304           since they are redefined by macros in support/cpp2/sdcc.h
1305         * support/cpp2/sdcc.h: x*alloc macro redefinition
1306
1307 2006-11-25 Borut Razem <borut.razem AT siol.net>
1308
1309         * support/cpp2/cppexp.c, support/cpp2/hashtable.h,
1310           support/cpp2/configure, support/cpp2/Makefile.in,
1311           support/cpp2/cppfiles.c, support/cpp2/output.h,
1312           support/cpp2/cppinit.c, support/cpp2/cpplib.c,
1313           support/cpp2/config.h, support/cpp2/cpplib.h,
1314           support/cpp2/Makefile.bcc, support/cpp2/cpphash.c,
1315           support/cpp2/cppdefault.c, support/cpp2/config.in,
1316           support/cpp2/system.h, support/cpp2/cpplex.c,
1317           support/cpp2/cpphash.h, support/cpp2/mbchar.c,
1318           support/cpp2/cppdefault.h, support/cpp2/prefix.c
1319           support/cpp2/hwint.h, support/cpp2/mbchar.h,
1320           support/cpp2/prefix.h, support/cpp2/cppmacro.c,
1321           support/cpp2/configure.in, support/cpp2/intl.h,
1322           support/cpp2/sdcpp.dsp, support/cpp2/acconfig.h,
1323           support/cpp2/sdcc.h, support/cpp2/mkdeps.c,
1324           support/cpp2/version.c, support/cpp2/cppmain.c,
1325           support/cpp2/ansidecl.h, support/cpp2/libiberty.h,
1326           support/cpp2/hashtable.c, support/cpp2/aclocal.m4,
1327           support/cpp2/cpperror.c,
1328           support/cpp2/libiberty/safe-ctype.c,
1329           support/cpp2/libiberty/safe-ctype.h,
1330           support/cpp2/libiberty/splay-tree.c,
1331           support/cpp2/libiberty/obstack.c,
1332           support/cpp2/libiberty/lbasename.c,
1333           support/cpp2/libiberty/splay-tree.h,
1334           support/cpp2/libiberty/obstack.h:
1335           synchronized with GCC CPP release version 3.2.3,
1336           the latest before integration of cpp into gcc
1337         * support/cpp2/except.h, support/cpp2/line-map.c,
1338           support/cpp2/line-map.h,
1339           support/cpp2/libiberty/hex.c,
1340           support/cpp2/libiberty/concat.c,
1341           support/cpp2/libiberty/filenames.h: added
1342         * support/cpp2/intl.c: deleted
1343
1344 2006-11-24 Borut Razem <borut.razem AT siol.net>
1345
1346         * src/SDCC.y: enabled compilation of empty source file
1347         * support/Util/SDCCerr.[ch]: added sdcc warning 190 -
1348           "ISO C forbids an empty source file"
1349         * device/lib/_startup.c, device/lib/printf_tiny.c: disable warning 190
1350           if all the code is ifdefed out.
1351
1352 2006-11-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1353
1354         * src/hc08/gen.c (genPcall): fix for bug #1601032
1355
1356 2006-11-23 Maarten Brock <sourceforge.brock AT dse.nl>
1357
1358         * device/include/mcs51/c8051f000.h, device/include/mcs51/C8051F000.h,
1359         * device/include/mcs51/c8051f018.h, device/include/mcs51/C8051F018.h,
1360         * device/include/mcs51/c8051f020.h, device/include/mcs51/C8051F020.h,
1361         * device/include/mcs51/c8051f040.h, device/include/mcs51/C8051F040.h,
1362         * device/include/mcs51/c8051f060.h, device/include/mcs51/C8051F060.h,
1363         * device/include/mcs51/c8051f120.h, device/include/mcs51/C8051F120.h,
1364         * device/include/mcs51/c8051f200.h, device/include/mcs51/C8051F200.h,
1365         * device/include/mcs51/c8051f300.h, device/include/mcs51/C8051F300.h,
1366         * device/include/mcs51/c8051f310.h, device/include/mcs51/C8051F310.h,
1367         * device/include/mcs51/c8051f320.h, device/include/mcs51/C8051F320.h,
1368         * device/include/mcs51/c8051f326.h, device/include/mcs51/C8051F326.h,
1369         * device/include/mcs51/c8051f330.h, device/include/mcs51/C8051F330.h,
1370         * device/include/mcs51/c8051f340.h, device/include/mcs51/C8051F340.h,
1371         * device/include/mcs51/c8051f350.h, device/include/mcs51/C8051F350.h,
1372         * device/include/mcs51/c8051f410.h, device/include/mcs51/C8051F410.h:
1373           Renamed to all upper case as per the standard set by SiLabs
1374
1375 2006-11-23 Maarten Brock <sourceforge.brock AT dse.nl>
1376
1377         * device/include/mcs51/C8051F520.h: new, added
1378         * device/include/mcs51/compiler.h: added link about predefined macros
1379
1380 2006-11-23 Raphael Neider <rneider AT web.de>
1381
1382         * src/regression/Makefile: add -L path to fresh library
1383         * src/regression/simulate: emphasize FAILED output
1384         * src/regression/create_stc: output _failures from gpsim
1385         * src/regression/compare4.c,
1386         * src/regression/rotate6.c: fixed char literals,
1387           all compile, all run =8-D
1388
1389         * src/pic/pcode.h: added isPCASMDIR macro
1390         * src/pic/gen.c (genAnd): fixed bit offset
1391         * src/pic/ralloc.c (allocNewDirReg,allocDirReg,allocRegByName,
1392           packBits): unified register numbering schemes,
1393           (newReg): do not insert stack registers into hash table,
1394           (initStack): unpinned pseudo stack, simplified,
1395           (typeRegWithIdx): fixed retrieval of stack registers,
1396         * src/pic/pcode.c (addpCodeComment,sameBank): added,
1397           (pCodeReplace): removed invalid assertion,
1398           (insertPCodeInstruction): fixed newly added labels,
1399           (insertBankSwitch,BankSelect,IsBankChange,DoBankSelect,
1400           FixRegisterBankingInFlow,compareBankFlow,FixBankFlow,
1401           DumpFlow): removed unsed (broken?) code,
1402           (insertBankSel): prevent STATUS from being BANKSELed,
1403           (FixRegisterBanking): rewritten from scratch, implemented generic
1404             optimizations (suppress BANKSELs to same register and to registers
1405             present in all banks),
1406           (AnalyzeBanking): update flow after BANKSELection
1407
1408         * src/pic/glue.c (pic14_constructAbsMap): emit pseudo stack in
1409             sharebank, let linker place it, mark STKxx symbols as emitted
1410
1411 2006-11-21 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1412
1413         * src/regression/arrays.c,
1414         * src/regression/bank1.c,
1415         * src/regression/bool2.c,
1416         * src/regression/compare7.c,
1417         * src/regression/compare8.c,
1418         * src/regression/compare9.c,
1419         * src/regression/compare10.c,
1420         * src/regression/configword.c,
1421         * src/regression/for.c,
1422         * src/regression/mult1.c,
1423         * src/regression/pointer1.c,
1424         * src/regression/rotate6.c,
1425         * src/regression/string1.c,
1426         * src/regression/struct1.c,
1427         * src/regression/Makefile: make PIC14 regression tests run again
1428           (3 fail, 6 won't compile)
1429
1430 2006-11-21 Raphael Neider <rneider AT web.de>
1431
1432         * device/include/pic16/pic18f4550.h,
1433         * device/include/pic16/pic18f4455.h,
1434         * device/lib/pic16/libdev/pic18f4550.c,
1435         * device/lib/pic16/libdev/pic18f4455.c: fixed #1578591 and #1595144
1436         * configure.in: removed superfluous closing bracket
1437
1438 2006-11-21 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1439
1440         * device/lib/expf.c: Fixed bug 1599523: result of expf(x) is
1441           always positive.
1442
1443 2006-11-21 Raphael Neider <rneider AT web.de>
1444
1445         * src/pic/device.{c,h}: added pic14_getPIC()
1446         * src/pic/gen.c (continueIfTrue,jumpIfTrue): added PIC code,
1447           (genAnd): added PIC code for one case, fixes #1597044
1448         * src/pic/pcode.c (BankSelect): Ohoh, added generic optimization for
1449           SFRs that are present in all banks (e.g., STATUS)
1450
1451 2006-11-20 Raphael Neider <rneider AT web.de>
1452
1453         * src/pic/pcode.c: changed inverted ops for DECFSZ/DECFSZW and
1454           INCFSZ/INCFSZW and declared them as changing Z bit,
1455           (insertPCodeInstruction): correctly invert the above instructions,
1456           fixes #1599333,
1457           (DoBankSelect): don't panic on po_immediates
1458
1459 2006-11-14 Maarten Brock <sourceforge.brock AT dse.nl>
1460
1461         * as/link/aslink.h,
1462         * as/link/mcs51/lkihx.c (newArea),
1463         * as/link/mcs51/lkrloc.c: renamed newArea() to ihxNewArea()
1464         * as/link/mcs51/lkihx.c (ihx): output reset vector as start address
1465
1466 2006-11-11 Raphael Neider <rneider AT web.de>
1467
1468         * src/pic/pcode.c (newpCodeOpBit): search SymbolTab for referenced
1469           bitfield symbols, fixes #1579535 (once more...).
1470
1471 2006-11-09 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1472
1473         * support/regression/generate-cases.py,
1474         * support/regression/fwk/include/testfwk.h,
1475         * support/regression/fwk/lib/testfwk.c: used code pointers,
1476           (about 50kByte less code generated for mcs51)
1477
1478 2006-11-06 Borut Razem <borut.razem AT siol.net>
1479
1480         * debugger/mcs51/acinclude.m4, debugger/mcs51/aclocal.m4,
1481           debugger/mcs51/configure: fixed failed check because the function
1482           rl_function_of_keyseq isn't in Readline 5.2. Thanks to Ilya Goldberg
1483           who submitted the patch for gpsim.
1484         * debugger/mcs51/configure.in: removed the result message
1485         * debugger/mcs51/Makefile.in: fixed the config.status warning
1486           "... seems to ignore the --datarootdir setting"
1487
1488 2006-11-03 Maarten Brock <sourceforge.brock AT dse.nl>
1489
1490         * device/include/mcs51/c8051f020.h,
1491         * device/include/mcs51/c8051f040.h,
1492         * device/include/mcs51/c8051f060.h,
1493         * device/include/mcs51/c8051f120.h: added PS0, fixed bug 1589279
1494         * src/z80/gen.c (gencjneshort),
1495         * src/z80/peeph.def: applied patch 1571373, thanks Philipp Krause
1496
1497 2006-10-31 Borut Razem <borut.razem AT siol.net>
1498
1499         * debugger/mcs51/acinclude.m4, debugger/mcs51/aclocal.m4,
1500           debugger/mcs51/configure: get readline version
1501
1502 2006-10-30 Borut Razem <borut.razem AT siol.net>
1503
1504         * debugger/mcs51/sdcdb.c: replaced hardcoded "/" with DIR_SEPARATOR_STRING
1505         * debugger/mcs51/acinclude.m4, debugger/mcs51/aclocal.m4,
1506           debugger/mcs51/configure: locate readline even when cross compiling
1507         * support/scripts/sdcc.nsi: include readline5.dll into the setup package
1508
1509 2006-10-29 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1510
1511         * device/include/mcs51/serial_IO.h: putchar() and getchar() using
1512           serial port.
1513
1514 2006-10-29 Maarten Brock <sourceforge.brock AT dse.nl>
1515
1516         * device/include/malloc.h,
1517         * device/lib/calloc.c,
1518         * device/lib/free.c,
1519         * device/lib/malloc.c,
1520         * device/lib/realloc.c: moved definition of struct into sources
1521         * support/regression/tests/malloc.c: use void* for init_dynamic_memory()
1522
1523 2006-10-29 Maarten Brock <sourceforge.brock AT dse.nl>
1524
1525         * as/asx8051.dsp: corrected output directories
1526         * as/link/hc08: new directory for hc08 linker
1527         * as/hc08/aslink.h,             as/link/aslink.h,
1528         * as/hc08/aslink.mak,           as/link/hc08/aslink.mak,
1529         * as/hc08/clean.mk,             as/link/hc08/clean.mk,
1530         * as/hc08/link_hc08.dsp,        as/link/hc08/link_hc08.dsp,
1531         * as/hc08/lkaomf51.c,           as/link/hc08/lkaomf51.c,
1532         * as/hc08/lkarea.c,             as/link/hc08/lkarea.c,
1533         * as/hc08/lkdata.c,             as/link/hc08/lkdata.c,
1534         * as/hc08/lkelf.c,              as/link/hc08/lkelf.c,
1535         * as/hc08/lkihx.c,              as/link/hc08/lkihx.c,
1536         * as/hc08/lklibr.c,             as/link/hc08/lklibr.c,
1537         * as/hc08/lkmain.c,             as/link/hc08/lkmain.c,
1538         * as/hc08/lkmem.c,              as/link/hc08/lkmem.c,
1539         * as/hc08/lkrloc.c,             as/link/hc08/lkrloc.c,
1540         * as/hc08/lks19.c,              as/link/hc08/lks19.c,
1541         * as/hc08/Makefile.aslink,      as/link/hc08/Makefile.aslink,
1542         * as/hc08/Makefile.bcc,         as/link/hc08/Makefile.bcc,
1543         * as/hc08/Makefile.in,          as/link/hc08/Makefile.in,
1544         * as/link/hc08/conf.mk,
1545         * configure,
1546         * configure.in,
1547         * Makefile.in,
1548         * sdcc.dsw: moved hc08 linker to as/link/hc08
1549         * as/hc08/lkeval.c,     as/link/mcs51/lkeval.c,     as/link/lkeval.c,
1550         * as/hc08/lkhead.c,     as/link/mcs51/lkhead.c,     as/link/lkhead.c,
1551         * as/hc08/lklex.c,      as/link/mcs51/lklex.c,      as/link/lklex.c,
1552         * as/hc08/lklist.c,     as/link/mcs51/lklist.c,     as/link/lklist.c,
1553         * as/hc08/lknoice.c,    as/link/mcs51/lknoice.c,    as/link/lknoice.c,
1554         * as/hc08/lksym.c,      as/link/mcs51/lksym.c,      as/link/lksym.c,
1555         * as/link/mcs51/aslink.dsp,
1556         * as/link/mcs51/Makefile.in: factored out the common files
1557         * as/hc08/lkstore.c: deleted, use the one already in as/link/
1558         * as/clean.mk: extra cleaning common files
1559         * as/link/mcs51/strcmpi.c,      as/strcmpi.c: moved
1560         * as/link/mcs51/strcmpi.h: deleted, moved protoype to aslink.h
1561         * as/mcs51/asm.h: include sdccconf.h or sdcc_vc.h
1562
1563 2006-10-29 Raphael Neider <rneider AT web.de>
1564
1565         * src/pic/ralloc.c (newReg): create aliases for registers with
1566           multiple names to fix #1579535 and #1584001,
1567           (regWithIdx,dirregWithName): resolve aliases on lookup
1568         * src/pic/pcode.c (DoBankSelect): die with error message on failing
1569           bankselect
1570         * device/lib/pic/libdev/Makefile.in: move pseudo stack down to 0x4f
1571           to prevent build errors on small devices
1572
1573 2006-10-28 Raphael Neider <rneider AT web.de>
1574
1575         * src/pic/gen.c (genFunction,genCall): drop "same code page"
1576           assumption within interrupt handlers, fixes #1584940
1577         * src/pic/glue.c (pic14_constructAbsMap): mark absolute symbols as
1578           "emitted" to avoid emitting them again in udata
1579
1580 2006-10-27 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1581
1582         * device/lib/_putchar.c, device/lib/_getchar.c, device/lib/inituart.c:
1583         Removed.
1584
1585 2006-10-26 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1586
1587         * device/lib/_putchar.c, device/lib/_getchar.c, device/lib/inituart.c:
1588         Initialize uart only if SM0 and SM1 are zero.  Also, use flag to turn
1589         on/off CR to CRLF conversion.
1590
1591 2006-10-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1592
1593         * doc/sdccman.lyx: updated IRQ section
1594
1595 2006-10-24 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1596
1597         * device/lib/serial_io.c: removed
1598         * device/lib/_putchar.c, device/lib/_getchar.c, device/lib/inituart.c
1599         replacements for serial_io.c
1600
1601 2006-10-24 Maarten Brock <sourceforge.brock AT dse.nl>
1602
1603         * src/z80/main.c (_process_pragma, _parseOptions): fixed bug 1583318
1604
1605 2006-10-24 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1606
1607         * device/lib/serial_io.c: Default putchar() and getchar() for
1608           mcs51 uses serial port.
1609
1610 2006-10-23 Maarten Brock <sourceforge.brock AT dse.nl>
1611
1612         * src/mcs51/gen.c (movc): improved check for 0 and 1, see RFE 1582704
1613
1614 2006-10-23 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1615
1616         * support/regression/ports/mcs51/support.c: smaller
1617         _sdcc_external_startup()
1618         * device/lib/mcs51/crtxclear.asm: don't check high byte of l_PSEG
1619
1620 2006-10-20 Maarten Brock <sourceforge.brock AT dse.nl>
1621
1622         * device/lib/gbz80/crt0.s,
1623         * device/lib/gbz80/crt0_rle.s,
1624         * device/lib/gbz80/div.s,
1625         * device/lib/gbz80/fstubs.s,
1626         * device/lib/gbz80/heap.s,
1627         * device/lib/gbz80/mul.s,
1628         * device/lib/gbz80/putchar.s,
1629         * device/lib/gbz80/stubs.s,
1630         * device/lib/z80/crt0.s,
1631         * device/lib/z80/crt0_rle.s,
1632         * device/lib/z80/div.s,
1633         * device/lib/z80/fstubs.s,
1634         * device/lib/z80/heap.s,
1635         * device/lib/z80/mul.s,
1636         * device/lib/z80/putchar.s,
1637         * device/lib/z80/stubs.s: reverted, I was mistaken
1638
1639 2006-10-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1640
1641         * src/mcs51/peeph.def: peephole 238.x added check for notvolatile
1642         * support/regression/ports/mcs51/support.c: removed race
1643         condition on TI in _putchar allowing to use serial port mode 0
1644
1645 2006-10-20 Borut Razem <borut.razem AT siol.net>
1646
1647         * debugger/mcs51/sdcdb.c: replaced isblank() with isspace()
1648
1649 2006-10-19 Maarten Brock <sourceforge.brock AT dse.nl>
1650
1651         * device/lib/gbz80/crt0.s,
1652         * device/lib/gbz80/crt0_rle.s,
1653         * device/lib/gbz80/div.s,
1654         * device/lib/gbz80/fstubs.s,
1655         * device/lib/gbz80/heap.s,
1656         * device/lib/gbz80/mul.s,
1657         * device/lib/gbz80/putchar.s,
1658         * device/lib/gbz80/stubs.s,
1659         * device/lib/z80/crt0.s,
1660         * device/lib/z80/crt0_rle.s,
1661         * device/lib/z80/div.s,
1662         * device/lib/z80/fstubs.s,
1663         * device/lib/z80/heap.s,
1664         * device/lib/z80/mul.s,
1665         * device/lib/z80/putchar.s,
1666         * device/lib/z80/stubs.s: removed all leading underscores from area names
1667
1668 2006-10-17 Maarten Brock <sourceforge.brock AT dse.nl>
1669
1670         * support/regression/ports/mcs51/support.c: use highest baudrate so the
1671           regression tests are not waiting in the simulator for simulated
1672           transmission of debug output
1673
1674 2006-10-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1675
1676         * device/lib/printf_large.c: slightly smaller
1677         * doc/sdccman.lyx: do not use spaces within html links
1678
1679 2006-10-16 Borut Razem <borut.razem AT siol.net>
1680
1681         * configure.in, configure, sdccconf_in.h, src/SDCCglobal,
1682           debugger/mcs51/Makefile.in, debugger/mcs51/sdcdb.[ch],
1683           debugger/mcs51/aclocal.m4, debugger/mcs51/acinclide.m4,
1684           debugger/mcs51/config.h.in, debugger/mcs51/configure.in,
1685           debugger/mcs51/configure:
1686           [ 1185668 ] add gnu readline support to sdcdb - enabled
1687
1688 2006-10-16 Raphael Neider <rneider AT web.de>
1689
1690         * src/pic/pcode.c (BankSelect): another fix on (partial) BANKSELs,
1691           fixes #1577882, removes close to all banking optimizations
1692
1693 2006-10-15 Maarten Brock <sourceforge.brock AT dse.nl>
1694
1695         * src/SDCCsymt.c (checkSClass): no error for uninitialised absolute
1696           variables in code memory
1697         * support/regression/tests/absolute.c: added test for this
1698
1699 2006-10-15 Raphael Neider <rneider AT web.de>
1700
1701         * src/pic/pcode.c (InsertBankSel): suppress BANKSELs for one bank
1702           devices,
1703           (BankSelect): emit BANKSEL before touching linker-placed regs,
1704           fixes #1570934
1705
1706 2006-10-10 Raphael Neider <rneider AT web.de>
1707
1708         * src/SDCCmain.c (optionsTable): accept --stack-size for PICs,
1709         * src/pic/device.c (pic14_getSharebankSize,pic14_getSharebankAddress),
1710         * src/pic/main.c (_pic14_parseOptions),
1711         * src/pic/main.h: mostly reverted to previous state, now use results
1712             from SDCCmain.c's argument parsing
1713
1714 2006-10-10 Borut Razem <borut.razem AT siol.net>
1715
1716         * debugger/mcs51/break.[ch], debugger/mcs51/cmd.c,
1717           debugger/mcs51/sdcdb.[ch], debugger/mcs51/simi.c:
1718           [ 1185668 ] add gnu readline support to sdcdb -
1719           prepared for READLINE, not enabled yet,
1720           thanks to <tal.bav AT gmail.com>
1721
1722 2006-10-10 Raphael Neider <rneider AT web.de>
1723
1724         * src/pic16/pcode.c (pic16_pCode2str): use isACCESS_BANK macro
1725         * src/pic16/devices.inc,
1726         * device/include/pic16 (pic18f[24]620.h),
1727         * device/include/pic18fregs.h,
1728         * device/lib/pic16/pics.all,
1729         * device/lib/pic16/libdev/pic18f[24]{620,525}.c): added support for
1730             18f2620, 18f4620, 18f2525, and 18f4525 devices, thanks to
1731             Gary Plumbridge and Anton Strobl
1732
1733 2006-10-10 Raphael Neider <rneider AT web.de>
1734
1735         * src/pic/main.c (_pic14_parseOptions): added --stack-loc=NUM and
1736           --stack-siz=NUM options to configure the argument passing stack
1737         * src/pic/main.h: added stackLocation and stackSize to pic14_options_t
1738         * src/pic/device.c (mapRegister): catch out-of-memory SIGSEGVs,
1739           (pic14_getSharebankSize): obey --stack-siz=NUM,
1740           (pic14_getSharebankAddress): obey --stack-loc=NUM
1741
1742 2006-10-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1743
1744         * doc/sdccman.lyx: added to the manual
1745         * doc/figures/ddd_example.png: added (neither pdflatex nor
1746         most browsers seem to like the .eps file)
1747
1748 2006-10-06 Bernhard Held <bernhard AT bernhardheld.de>
1749
1750         * src/SDCCglue.c (tempfileandname): changed un*x tmp search paths
1751         to /tmp and /var/tmp acc. LSB
1752         * src/SDCCast.c (addCast): Fixed bug 1571231: promote in case of
1753         RESULT_TYPE_IFX
1754         * support/regression/tests/onebyte.c: added test
1755
1756 2006-10-05 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1757
1758         * src/mcs51/gen.c: emitcode for "add a,0x%02x" requires only 8 bits.
1759
1760 2006-10-05 Borut Razem <borut.razem AT siol.net>
1761
1762         * partially fixed [ 1570701 ] peephole - not replacing code from multiline macros,
1763           thanks to dfulab:
1764           - sdcc.dsw: changed property eol-style to CRLF
1765           - support/scripts/resource.rc: replaced references to "afxres.h" with "winres.h"
1766
1767 2006-10-04 Raphael Neider <rneider AT web.de>
1768
1769         * device/include/pic/{pic16f84.h,pic16f84a.h},
1770         * device/lib/pic/libdev/{pic16f84.c,pic16f84a.c}: added PORT[AB]_bits
1771           from patch #1522504, thanks to Robas Teodor
1772
1773 2006-10-02 Maarten Brock <sourceforge.brock AT dse.nl>
1774
1775         * as/link/z80/lkarea.c: essentially reverted lnksect() to #4380 which
1776           fixes bug 1566015
1777
1778 2006-10-01 Maarten Brock <sourceforge.brock AT dse.nl>
1779
1780         * src/pic16/glue.c (pic16emitMaps),
1781         * src/pic/glue.c (pic14emitMaps): hopefully fixed bug 1568779
1782         * device/lib/gets.c: fixed bug 1568829,thanks Philipp Krause
1783         * device/lib/pic16/libc/string/memcpypgm2ram.c,
1784         * device/lib/pic16/libc/string/memcpyram2ram.c: fixed bug 1568836, thanks
1785           Philipp Krause
1786         * as/mcs51/asmain.c (asmbl, newdot): fixed problems with absolute areas
1787         * as/link/mcs51/lkmem.c (summary2): reverted, do do count abs segments
1788
1789 2006-09-30 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1790
1791         * support/librarian/sdcclib.c: Added option -l.
1792         * as/link/mcs51/lkmem.c: don't use absolute segments to compute memory
1793           usage totals.
1794         * device/lib/make51lib.bat: added.  Allows building mcs51 libraries easily
1795           using Windows command prompt.
1796
1797 2006-09-30 Maarten Brock <sourceforge.brock AT dse.nl>
1798
1799         * device/lib/libsdcc.lib: added module rand
1800         * src/ds390/ralloc.c (rematStr),
1801         * src/hc08/ralloc.c (rematStr),
1802         * src/mcs51/ralloc.c (rematStr),
1803         * src/z80/ralloc.c (rematStr): made output more consistent
1804         * src/mcs51/gen.c: cosmetic changes
1805
1806 2006-09-30 Maarten Brock <sourceforge.brock AT dse.nl>
1807
1808         * src/port.h: added mem.cabs_name to PORT
1809         * src/ds390/main.c,
1810         * src/hc08/main.c,
1811         * src/mcs51/main.c,
1812         * src/pic16/main.c,
1813         * src/pic/main.c,
1814         * src/xa51/main.c,
1815         * src/z80/main.c: added cabs_name initializers
1816         * src/SDCCglue.c (emitStaticSeg): allocate and initialize absolute
1817           constants
1818           (emitMaps): emit absolutes in code memory into cabs_name
1819         * src/SDCCmem.c,
1820         * src/SDCCmem.h: added memory map c_abs and defined CABS_NAME
1821         * src/ds390/gen.c (genCodePointerGet): fixed bug if left is a literal
1822         * support/regression/fwk/include/testfwk.h: added define for at
1823         * support/regression/tests/absolute.c: added, new
1824
1825 2006-09-29 Maarten Brock <sourceforge.brock AT dse.nl>
1826
1827         * src/mcs51/gen.c (genPlusIncr, genMinusDec, genAddrOf): small
1828           optimizations, see also patch 887161 by Stas Sergeev
1829         * src/mcs51/peeph.def(104, 207, 209, 212): disabled as they do not seem
1830           to be necessary anymore,
1831           (102, 103, 104, 127): renamed all occurances of bp to _bp
1832
1833 2006-09-27 Maarten Brock <sourceforge.brock AT dse.nl>
1834
1835         * device/include/mcs51/at89c51snd1c.h: fixed MSK_SREQ definition
1836           thanks Weston T. Schmidt for patch 1555221
1837         * src/mcs51/peeph.def: renamed rule 257 to 257.a, added 257.b
1838         * src/SDCCicode.c(geniCodeMultiply): small optimization
1839
1840 2006-09-26 Maarten Brock <sourceforge.brock AT dse.nl>
1841
1842         * device/include/stdlib.h: added rand prototypes
1843         * device/lib/rand.c: new, added
1844         * device/lib/Makefile.in: added rand.c
1845         * src/z80/peeph.def,
1846         * src/z80/peeph-gbz80.def,
1847         * src/z80/peeph-z80.def: updated conditonals, fixed bug 1565908
1848
1849 2006-09-20 Raphael Neider <rneider AT web.de>
1850
1851         * device/lib/pic16/libio/i2c/i2cnack.c (i2c_nack): fixed ACKDT bit
1852
1853 2006-09-19 Maarten Brock <sourceforge.brock AT dse.nl>
1854
1855         * as/link/aslink.h: cosmetic changes
1856         * as/link/mcs51/Makefile.in,
1857         * as/link/z80/Makefile.in: fixed build on CF where VPATH is used
1858
1859 2006-09-17 Maarten Brock <sourceforge.brock AT dse.nl>
1860
1861         * as/link/aslink.h,
1862         * as/link/mcs51/aslink.h,
1863         * as/link/z80/aslink.h: merged and moved to as/link/
1864         * as/link/lkstore.c,
1865         * as/link/mcs51/lkstore.c: moved to as/link/
1866         * as/link/clean.mk: remove *.o
1867         * as/link/mcs51/alloc.h: deleted
1868         * as/link/mcs51/lkarea.c: added lnksect prototype
1869         * as/link/mcs51/lkdata.c,
1870         * as/link/mcs51/lklex.c,
1871         * as/link/mcs51/lkmain.c: renamed as_getline to lk_getline
1872         * as/link/mcs51/lkmem.c,
1873         * as/link/mcs51/lknoice.c: removed include strcmpi.h
1874         * as/link/mcs51/lksym.c: include stdlib.h instead of malloc.h or alloc.h
1875         * as/link/mcs51/aslink.dsp,
1876         * as/link/mcs51/Makefile.aslink,
1877         * as/link/mcs51/Makefile.bcc,
1878         * as/link/mcs51/Makefile.in: updated for moved files
1879         * as/link/z80/lkarea.c,
1880         * as/link/z80/lkhead.c,
1881         * as/link/z80/lklex.c,
1882         * as/link/z80/lklibr.c,
1883         * as/link/z80/lklist.c,
1884         * as/link/z80/lkmain.c,
1885         * as/link/z80/lkrloc.c,
1886         * as/link/z80/lksym.c: synced with mcs51
1887         * as/link/z80/lkdata.c,
1888         * as/link/z80/lkeval.c,
1889         * as/link/z80/lkihx.c,
1890         * as/link/z80/lks19.c: cosmetic changes
1891         * as/link/z80/Makefile.in,
1892         * as/link/z80/linkgbz80.dsp,
1893         * as/link/z80/linkz80.dsp: updated for moved files
1894
1895 2006-09-16 Borut Razem <borut.razem AT siol.net>
1896
1897         * debugger/mcs51/sdcdb.c: partially fixed
1898           [ 1203664 ] sdcdb fails to open files w. two "." periods
1899         * debugger/mcs51/simi.c, debugger/mcs51/symtab.c,
1900           debugger/mcs51/symtab.h: fixed indenting
1901         * configure.in, configure: up to date with latest Maarten's changes
1902
1903 2006-09-15 Maarten Brock <sourceforge.brock AT dse.nl>
1904
1905         as/link/mcs51
1906         as/aslink.dsp,                  as/link/mcs51/aslink.dsp,
1907         as/link/mcs51/aslink.h,         as/mcs51/aslink.h,
1908         as/link/mcs51/aslink.mak,       as/mcs51/aslink.mak,
1909         as/link/mcs51/lkaomf51.c,       as/mcs51/lkaomf51.c,
1910         as/link/mcs51/lkarea.c,         as/mcs51/lkarea.c,
1911         as/link/mcs51/lkdata.c,         as/mcs51/lkdata.c,
1912         as/link/mcs51/lkeval.c,         as/mcs51/lkeval.c,
1913         as/link/mcs51/lkhead.c,         as/mcs51/lkhead.c,
1914         as/link/mcs51/lkihx.c,          as/mcs51/lkihx.c,
1915         as/link/mcs51/lklex.c,          as/mcs51/lklex.c,
1916         as/link/mcs51/lklibr.c,         as/mcs51/lklibr.c,
1917         as/link/mcs51/lklist.c,         as/mcs51/lklist.c,
1918         as/link/mcs51/lkmain.c,         as/mcs51/lkmain.c,
1919         as/link/mcs51/lkmem.c,          as/mcs51/lkmem.c,
1920         as/link/mcs51/lknoice.c,        as/mcs51/lknoice.c,
1921         as/link/mcs51/lkrloc.c,         as/mcs51/lkrloc.c,
1922         as/link/mcs51/lks19.c,          as/mcs51/lks19.c,
1923         as/link/mcs51/lkstore.c,        as/mcs51/lkstore.c,
1924         as/link/mcs51/lksym.c,          as/mcs51/lksym.c,
1925         as/link/mcs51/Makefile.aslink,  as/mcs51/Makefile.aslink,
1926         as/link/mcs51/alloc.h,
1927         as/link/mcs51/clean.mk,
1928         as/link/mcs51/conf.mk,
1929         as/link/mcs51/Makefile.bcc,
1930         as/link/mcs51/Makefile.in,
1931         as/link/mcs51/readme.390,
1932         as/link/mcs51/strcmpi.c,
1933         as/link/mcs51/strcmpi.h,
1934         as/mcs51/clean.mk,
1935         as/mcs51/Makefile.bcc,
1936         as/mcs51/Makefile.in,
1937         configure,
1938         Makefile.in,
1939         sdcc.dsw: moved mcs51 linker to as/link/mcs51
1940
1941 2006-09-14 Maarten Brock <sourceforge.brock AT dse.nl>
1942
1943         * as/link,
1944         * as/link/Makefile.in,
1945         * as/link/z80/linkgbz80.dsp,
1946         * as/link/z80/linkz80.dsp,
1947         * configure,
1948         * link,
1949         * link/clean.mk,
1950         * link/Makefile.in,
1951         * link/README,
1952         * link/z80,
1953         * link/z80/aslink.h,
1954         * link/z80/clean.mk,
1955         * link/z80/conf.mk,
1956         * link/z80/linkgbz80.dsp,
1957         * link/z80/linkz80.dsp,
1958         * link/z80/lkarea.c,
1959         * link/z80/lkdata.c,
1960         * link/z80/lkeval.c,
1961         * link/z80/lkgb.c,
1962         * link/z80/lkgg.c,
1963         * link/z80/lkhead.c,
1964         * link/z80/lkihx.c,
1965         * link/z80/lklex.c,
1966         * link/z80/lklibr.c,
1967         * link/z80/lklist.c,
1968         * link/z80/lkmain.c,
1969         * link/z80/lkrloc.c,
1970         * link/z80/lks19.c,
1971         * link/z80/lksym.c,
1972         * link/z80/Makefile.in,
1973         * Makefile.in,
1974         * sdcc.dsw: moved link/ to as/link/
1975
1976 2006-09-11 Maarten Brock <sourceforge.brock AT dse.nl>
1977
1978         * as/mcs51/i51mch.c (machine): fixed warning
1979
1980 2006-09-10 Maarten Brock <sourceforge.brock AT dse.nl>
1981
1982         * as/mcs51/i51mch.c (machine): S_DJNZ fixed bug 1554318
1983
1984 2006-09-09 Borut Razem <borut.razem AT siol.net>
1985
1986         * debugger/mcs51/sdcdb.c, debugger/mcs51/simi.c:
1987           sdcdb WIN32 native port
1988         * src/clean.mk: fixed
1989
1990 2006-09-08 Borut Razem <borut.razem AT siol.net>
1991
1992         * doc/sdccman.lyx: SDCDB and ucSim are available on Win32 platforms.
1993
1994 2006-09-08 Raphael Neider <rneider AT web.de>
1995
1996         * src/pic16/main.c (_pic16_linkEdit,pic16_linkCmd),
1997         * src/pic/main.c(_pic14_do_link, linkCmd): pass "-w" and "-r"
1998             to gplink to disable processor mismatch warning and to allow
1999             the use of devices with only aliased (shared) memory banks,
2000           (_pic16_genAssemblerPreamble): include pXXX.inc on --mplab-comp
2001
2002 2006-09-07 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2003
2004         * doc/sdccman.lyx: Some re-formating plus example on using
2005           #pragma preproc_asm +/-
2006
2007 2006-09-07 Borut Razem <borut.razem AT siol.net>
2008
2009         * support/scripts/sdcc.nsi: added SDCDB executables in a separate
2010           section
2011
2012 2006-09-06 Borut Razem <borut.razem AT siol.net>
2013
2014         * support/scripts/sdcc.nsi: fixed Error: unterminated string parsing
2015           line at sdcc.nsi:153
2016         * sdcc/debugger/mcs51/simi.c: argsToCmdLine() fixes
2017
2018 2006-09-05 Borut Razem <borut.razem AT siol.net>
2019
2020         * configure.in, configure: support for winsock2
2021         * debugger/mcs51/break.h, debugger/mcs51/cmd.c,
2022           debugger/mcs51/cmd.h, debugger/mcs51/sdcdb.c,
2023           debugger/mcs51/sdcdb.h, debugger/mcs51/simi.c,
2024           debugger/mcs51/simi.h, debugger/mcs51/symtab.c,
2025           debugger/mcs51/symtab.h: sdcdb WIN32 native port
2026
2027 2006-09-05 Maarten Brock <sourceforge.brock AT dse.nl>
2028
2029         * src/SDCCopt.c (cnvToFcall): fixed bug 1551947 by updating OP_USES
2030           and OP_DEFS
2031         * support/regression/tests/bug1551947.c: new, added
2032         * src/SDCCsymt.h: strings are char* not byte*
2033
2034 2006-09-05 Raphael Neider <rneider AT web.de>
2035
2036         * device/lib/pic16/libdev/pic18f4550.c,
2037           device/include/pic16/pic18f4550.h: added PORTD/TRISD
2038             declarations/definitions from patch #1520949
2039
2040 2006-09-05 Raphael Neider <rneider AT web.de>
2041
2042         * src/pic16/gen.c (genPackBits): fix assignment to 8-bit,
2043           byte-aligned bitfields, fixes #1539278
2044
2045 2006-09-05 Raphael Neider <rneider AT web.de>
2046
2047         * src/pic/gen.c (genReceive): skip unreferenced arguments,
2048           fixes #1544120
2049
2050 2006-09-04 Borut Razem <borut.razem AT siol.net>
2051
2052         * support/scripts/sdcc.nsi: move ucSim executables to a separate section
2053         * support/scripts/sdcc_cygwin_mingw32: don't disable ucsim,
2054           -mno-cygwin is a part of the compiler name
2055         * support/scripts/sdcc_mingw32: don't disable ucsim
2056
2057 2006-09-03 Borut Razem <borut.razem AT siol.net>
2058
2059         * sdcc.spec: corrected for 2.6.0. Thanks to Christer Weinigel.
2060         * device/lib/Makefile.in device/lib/clean.mk: small but essential corrections
2061
2062 2006-09-03 Raphael Neider <rneider AT web.de>
2063
2064         * src/pic/ralloc.c,
2065         * src/pic/pcode.c (InitReuseRegs): allocate registers with pseudo
2066           indices >= 0x1000 to disambiguate them from fixed regs __at(addr),
2067           fixes #1550049
2068
2069 2006-09-01 Borut Razem <borut.razem AT siol.net>
2070
2071         * sim/ucsim/cmd.src/cmdutil.cc: #include <sys/time.h> and <unistd.h>
2072           to make ppc-osx happy
2073
2074 2006-08-31 Borut Razem <borut.razem AT siol.net>
2075
2076         * sim/ucsim/cmd.src/newcmdposix.cc: #include <assert.h>
2077         * sim/ucsim/cmd.src/newcmd.cc: #include <ctype.h>
2078         * sim/ucsim/cmd.src/newcmd.cc: #include <ctype.h>
2079         * support/regression/ports/ds390/spec.mk,
2080           support/regression/ports/mcs51/spec.mk,
2081           support/regression/ports/xa51/spec.mk: introduced DEV_NULL variable.
2082           To run regression tests in mingw environment:
2083           make DEV_NULL=NUL CC=gcc
2084
2085 2006-08-30 Borut Razem <borut.razem AT siol.net>
2086
2087         * sim/ucsim/cmd.src/newcmdposix.cc, sim/ucsim/cmd.src/newcmdposixcl.h,
2088           sim/ucsim/cmd.src/newcmdwin32.cc, sim/ucsim/cmd.src/newcmdwin32cl.h,
2089           sim/ucsim/app.cc, sim/ucsim/appcl.h, sim/ucsim/configure,
2090           sim/ucsim/configure.in, sim/ucsim/ddconfig_in.h, sim/ucsim/error.cc,
2091           sim/ucsim/errorcl.h, sim/ucsim/option.cc, sim/ucsim/optioncl.h,
2092           sim/ucsim/utils.cc, sim/ucsim/utils.h, sim/ucsim/cmd.src/Makefile.in,
2093           sim/ucsim/avr.src/avr.cc, sim/ucsim/avr.src/avrcl.h,
2094           sim/ucsim/cmd.src/bp.cc, sim/ucsim/cmd.src/bpcl.h,
2095           sim/ucsim/cmd.src/cmdconf.cc, sim/ucsim/cmd.src/cmdgui.cc,
2096           sim/ucsim/cmd.src/cmdmem.cc, sim/ucsim/cmd.src/cmdset.cc,
2097           sim/ucsim/cmd.src/cmdsetcl.h, sim/ucsim/cmd.src/cmdstat.cc,
2098           sim/ucsim/cmd.src/cmduc.cc, sim/ucsim/cmd.src/cmduccl.h,
2099           sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/cmdutil.h,
2100           sim/ucsim/cmd.src/command.cc, sim/ucsim/cmd.src/commandcl.h,
2101           sim/ucsim/cmd.src/get.cc, sim/ucsim/cmd.src/getcl.h,
2102           sim/ucsim/cmd.src/info.cc, sim/ucsim/cmd.src/newcmd.cc,
2103           sim/ucsim/cmd.src/newcmdcl.h, sim/ucsim/cmd.src/set.cc,
2104           sim/ucsim/cmd.src/show.cc, sim/ucsim/cmd.src/timer.cc,
2105           sim/ucsim/hc08.src/hc08.cc, sim/ucsim/hc08.src/hc08cl.h,
2106           sim/ucsim/s51.src/Makefile.in, sim/ucsim/s51.src/interrupt.cc,
2107           sim/ucsim/s51.src/interruptcl.h, sim/ucsim/s51.src/pca.cc,
2108           sim/ucsim/s51.src/pcacl.h, sim/ucsim/s51.src/port.cc,
2109           sim/ucsim/s51.src/portcl.h, sim/ucsim/s51.src/serial.cc,
2110           sim/ucsim/s51.src/serialcl.h, sim/ucsim/s51.src/timer0.cc,
2111           sim/ucsim/s51.src/timer0cl.h, sim/ucsim/s51.src/timer1.cc,
2112           sim/ucsim/s51.src/timer1cl.h, sim/ucsim/s51.src/timer2.cc,
2113           sim/ucsim/s51.src/timer2cl.h, sim/ucsim/s51.src/uc390.cc,
2114           sim/ucsim/s51.src/uc390cl.h, sim/ucsim/s51.src/uc390hw.cc,
2115           sim/ucsim/s51.src/uc390hwcl.h, sim/ucsim/s51.src/uc51.cc,
2116           sim/ucsim/s51.src/uc51cl.h, sim/ucsim/s51.src/wdt.cc,
2117           sim/ucsim/s51.src/wdtcl.h, sim/ucsim/sim.src/hw.cc,
2118           sim/ucsim/sim.src/hwcl.h, sim/ucsim/sim.src/mem.cc,
2119           sim/ucsim/sim.src/memcl.h, sim/ucsim/sim.src/obsolete.cc,
2120           sim/ucsim/sim.src/obsolete.h, sim/ucsim/sim.src/sim.cc,
2121           sim/ucsim/sim.src/simcl.h, sim/ucsim/sim.src/stack.cc,
2122           sim/ucsim/sim.src/stackcl.h, sim/ucsim/sim.src/test_mem_speed.cc,
2123           sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
2124           sim/ucsim/xa.src/xa.cc, sim/ucsim/xa.src/xacl.h,
2125           sim/ucsim/z80.src/z80.cc, sim/ucsim/z80.src/z80cl.h:
2126           ucsim WIN32 native port
2127
2128 2006-08-30 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2129
2130         * doc/sdccman.lyx: added note on dynamic memory heap initialization
2131
2132 2006-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
2133
2134         * src/mcs51/gen.c (genAnd, genOr, genXor): fixed bug 1546986
2135         * src/ds390/gen.c (aopGetUsesAcc): handle AOP_DPTR2 and AOP_DPTRn too
2136
2137 2006-08-26 Maarten Brock <sourceforge.brock AT dse.nl>
2138
2139         * src/ds390/gen.c (genAnd, genOr, genXor): fixed bug 1546986
2140         * support/regression/tests/bug1546986.c: new, added
2141         * as/mcs51/.cvsignore,
2142         * debugger/mcs51/.cvsignore,
2143         * src/.cvsignore: deleted
2144
2145 2006-08-25 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2146
2147         * device/include/mcs51/P89c51RD2.h: fixed bug 1546936 (error in sbit
2148           definitions)
2149
2150 2006-08-20 Borut Razem <borut.razem AT siol.net>
2151
2152         * sim/ucsim/cmd.src/newcmd.cc, sim/ucsim/cmd.src/newcmdcl.h:
2153           removed cl_listen_console::match(), cl_console::match(),
2154           restructured cl_commander::proc_input()
2155
2156 2006-08-16 Borut Razem <borut.razem AT siol.net>
2157
2158         * sim/ucsim/cmd.src/newcmd.cc, sim/ucsim/cmd.src/newcmdcl.h,
2159           sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/cmdutil.h,
2160           sim/ucsim/sim.src/mem.cc, sim/ucsim/sim.src/uc.cc: code cleaning
2161
2162 2006-08-14 Borut Razem <borut.razem AT siol.net>
2163
2164         * support/regression/Makefile.in,
2165           support/regression/ports/pic14/gpsim.cmd,
2166           support/regression/ports/pic14/spec.mk,
2167           support/regression/ports/pic14/support.c:
2168           added pic14 regression test
2169
2170 2006-08-14 Maarten Brock <sourceforge.brock AT dse.nl>
2171
2172         * as/doc/asxhtm.html: documented changed ABS behaviour
2173         * as/doc/README: fixed some typos
2174
2175 2006-08-13 Maarten Brock <sourceforge.brock AT dse.nl>
2176
2177         * support/regression/tests/float_trans.c: disabled test if __STDC_IEC_559__
2178           not defined on host
2179
2180 2006-08-12 Borut Razem <borut.razem AT siol.net>
2181
2182         * support/regression/fwk/include/testfwk.h,
2183           support/regression/fwk/lib/testfwk.c,
2184           support/regression/generate-cases.py,
2185           support/regression/Makefile.in:
2186           regression test framework does not depend on function pointers and
2187           variable arguments
2188
2189 2006-08-09 Maarten Brock <sourceforge.brock AT dse.nl>
2190
2191         * device/include/stddef.h: c temporary hack to fix bug 1518273
2192
2193 2006-08-09 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2194
2195         * device/include/mcs51/cc2510fx.h: added
2196         * src/z80/z80.dsp, src/gbz80/gbz80.dsp: added support/Util/strcmpi.ch
2197           to projects.
2198
2199 2006-08-09 Maarten Brock <sourceforge.brock AT dse.nl>
2200
2201         * as/z80/assym.c (mlookup): ignore case when looking up mnemonics
2202         * as/z80/Makefile.in: added strcmpi.c
2203         * as/z80/z80adr.c: added upper case registers and lower case conditionals
2204         * support/Util/strcmpi.ch: added with intention to remove from mcs51/hc08
2205
2206 2006-08-08 Maarten Brock <sourceforge.brock AT dse.nl>
2207
2208         * device/lib/gbz80/asm_strings.s,
2209         * device/lib/gbz80/crt0_rle.s,
2210         * device/lib/gbz80/div.s,
2211         * device/lib/gbz80/mul.s,
2212         * device/lib/gbz80/shift.s,
2213         * device/lib/z80/asm_strings.s,
2214         * device/lib/z80/crt0_rle.s,
2215         * device/lib/z80/div.s,
2216         * device/lib/z80/mul.s,
2217         * device/lib/z80/shift.s: changed to all lower case menmonics except the
2218           flags which are all upper case
2219
2220 2006-08-07 Maarten Brock <sourceforge.brock AT dse.nl>
2221
2222         * as/z80/asm.h: made CASE_SENSITIVE 1
2223         * link/z80/aslink.h: made CASE_SENSITIVE 1
2224         * src/z80/gen.c (throughout): made all conditionals upper case
2225         * support/regression/tests/bug1503067.c: new
2226
2227 2006-08-07 Maarten Brock <sourceforge.brock AT dse.nl>
2228
2229         * src/z80/gen.c (aopPut): fixed bug !*ixy should be !*iyx,
2230           (shiftIntoPair): added case 2 for PAIR_IY,
2231           (setupToPreserveCarry): replaced parameters with iCode and check if
2232            PAIR_DE is in use to fix bug 1399290,
2233           (genPlus, genMinus): updated call to setupToPreserveCarry
2234         * support/regression/tests/bug1399290.c: new
2235
2236 2006-08-06 Maarten Brock <sourceforge.brock AT dse.nl>
2237
2238         * device/lib/Makefile.in (Z80SOURCES): enabled float support
2239         * sim/ucsim/z80.src/inst.cc (inst_rst): generate breakpoint on RST8,ACC==0
2240         * src/ds390/gen.c (shiftRLong),
2241         * src/hc08/gen.c (shiftLLong, shiftRLong): fixed bug 1533966
2242         * src/mcs51/gen.c (sameReg): changed to sameByte,
2243           (xch_a_aopGet): new,
2244           (shiftL2Left2Result, shiftR2Left2Result, shiftRLeftOrResult, shiftLLong,
2245            shiftRLong): fixed bug 1533966
2246         * src/z80/gen.c (shiftR2Left2Result, shiftL2Left2Result, genlshTwo,
2247           genLeftShiftLiteral, genrshTwo, genRightShiftLiteral): fixed bug 1533966
2248         * support/regression/Makefile.in: disabled z80, enabled ucz80
2249         * support/regression/tests/float_trans.c: enabled test for z80 and host
2250         * support/regression/tests/shifts2.c: new, for testing bug 1533966
2251
2252 2006-08-01 Borut Razem <borut.razem AT siol.net>
2253
2254         * src/mcs51/gen.c, src/dc390/gen.c: fixed warning:
2255           comparison is always false due to limited range of data type
2256           on PPC64 machine (openpower-linux1) where "char = unsigned char"
2257
2258 2006-08-01 Maarten Brock <sourceforge.brock AT dse.nl>
2259
2260         * sim/ucsim/hc08.src/hc08mac.h: removed faulty and unused add_u16_disp
2261         * sim/ucsim/hc08.src/hc08.cc: removed faulty and unused int8
2262         * sim/ucsim/z80.src/z80mac.h (add_u16_disp): use explicit signed char cast
2263         * sim/ucsim/z80.src/z80.cc: removed faulty and unused int8
2264
2265 2006-07-31 Borut Razem <borut.razem AT siol.net>
2266
2267         * sim/ucsim/configure, sim/ucsim/cmd.src/newcmdcl.h,
2268           sim/ucsim/cmd.src/newcmd.cc, sim/ucsim/cmd.src/cmdutil.cc,
2269           sim/ucsim/z80.src/Makefile.in, sim/ucsim/configure.in,
2270           sim/ucsim/hc08.src/Makefile.in, sim/ucsim/hc08.src/hc08.cc,
2271           sim/ucsim/ddconfig_in.h, sim/ucsim/s51.src/Makefile.in,
2272           sim/ucsim/s51.src/uc51cl.h, sim/ucsim/s51.src/serialcl.h,
2273           sim/ucsim/s51.src/uc51.cc, sim/ucsim/s51.src/serial.cc,
2274           sim/ucsim/app.cc, sim/ucsim/avr.src/Makefile.in:
2275           enable ucsim mingw compilation. Serial port is disabled,
2276           since it uses termios.h API, which is not available on native
2277           WIN32
2278
2279 2006-07-31 Borut Razem <borut.razem AT siol.net>
2280
2281         * Small Device C Compiler 2.6.0 released
2282         * support/scripts/sdcc.nsi: added FULL_DOC option
2283         * .version, doc/sdccman.lyx: changed sdcc version to 2.6.1
2284
2285 2006-07-28 Borut Razem <borut.razem AT siol.net>
2286
2287         * support/scripts/sdcc.nsi: remove $INSTDIR/include/asm/pic16/*.h
2288         * doc/INSTALL.txt: updated
2289
2290 2006-07-27 Borut Razem <borut.razem AT siol.net>
2291
2292         * device/lib/pic/Makefile.in, device/lib/pic/Makefile.subdir,
2293           device/lib/pic/libdev/Makefile.in: fixed bug
2294           [ 1438354 ] pic libsdcc: distclean doesn't work
2295         * device/lib/pic16/Makefile.in, device/lib/pic16/Makefile.subdir,
2296           device/lib/pic16/libio/Makefile.in: fixed bug
2297           [ 1438344 ] pic16 lib: clean doesn't work properly
2298         * doc/knownbugs.html removed [ 1438354 ] and [ 1438344 ] from the list
2299
2300 2006-07-26 Maarten Brock <sourceforge.brock AT dse.nl>
2301
2302         * device/lib/pic/libsdcc/fsdiv.c,
2303         * device/lib/pic/libsdcc/fsmul.c,
2304         * device/lib/pic16/libsdcc/float/fsdiv.c,
2305         * device/lib/pic16/libsdcc/float/fsmul.c,
2306         * device/lib/_fsdiv.c,
2307         * device/lib/_fsmul.c: bugfix, handle too large and too small numbers
2308         * support/regression/tests/bug1520966.c: added
2309         * doc/knownbugs.html: removed [ 1520966 ] from the list
2310
2311 2006-07-25 Borut Razem <borut.razem AT siol.net>
2312
2313         * configure.in, configure, sdccconf_in.h: fixed bug
2314           [ 1519095 ] regression test onebyte.c fails on ppc64 host
2315         * doc/knownbugs.html: removed [ 1519095 ] from the list
2316
2317 2006-07-25 Maarten Brock <sourceforge.brock AT dse.nl>
2318
2319         * doc/knownbugs.html: added, contains list of known bugs at release
2320         * device/include/mcs51/compiler.h: fixed SFR32 for SDCC
2321
2322 2006-07-23 Maarten Brock <sourceforge.brock AT dse.nl>
2323
2324         * device/include/mcs51/compiler.h: added SFRX for xdata based special
2325           function registers and corrected defaults with additional warning
2326         * device/lib/malloc.c: cosmetic changes
2327         * device/lib/realloc.c: bugfix for bug #1496907, Thanks Efim Monyak
2328         * src/ds390/ralloc.c (getRegBitNoSpil): reenabled,
2329           (fillGaps): and used it
2330
2331 2006-07-20 Raphael Neider <rneider AT web.de>
2332
2333         * src/pic/device.c (addMemRange,assignRegister): suppress verbose
2334           output unless SDCCPICDEBUG is set
2335         * device/lib/pic16/Makefile.rules (%.lib target): suppress verbose
2336           output if SILENT is set
2337
2338 2006-07-11 Borut Razem <borut.razem AT siol.net>
2339
2340         * doc/README.txt: updated
2341
2342 2006-07-10 Borut Razem <borut.razem AT siol.net>
2343
2344         * support/scripts/sdcc.nsi: added device/include/asm/pic/features.h and
2345           device/lib/src/pic/libm/*.c and device/lib/src/pic16/libsdcc/stack/*.S
2346           in WIN32 installation
2347         * .version, sdcc.spec, doc/sdccman.lyx: changed sdcc version to 2.6.0 -
2348           release candidate 1
2349
2350 2006-07-08 Maarten Brock <sourceforge.brock AT dse.nl>
2351
2352         * device/include/mcs51/XC866.h: added sbit definitions for Px_x, P1_x, P2_x
2353         * src/pic16/glue.c (initPointer): fixed bug 1496419 for pic16
2354
2355 2006-07-06 Maarten Brock <sourceforge.brock AT dse.nl>
2356
2357         * src/hc08/gen.c (genAddrOf): fixed bug when offset on stack is >127
2358
2359 2006-07-06 Borut Razem <borut.razem AT siol.net>
2360
2361         * support/regression/tests/bitfields.c:
2362           fixed bug [ 1518322 ] regression test bitfields fails on ppc hosts
2363         * support/regression/tests/constantRange.c:
2364           fixed bug [ 1518317 ] regression test constantRange fails on alpha host
2365
2366 2006-07-04 Borut Razem <borut.razem AT siol.net>
2367
2368         * src/configure.in, src/configure, src/Makefile.in, as/z80/Makefile.in,
2369           src/port.mk,
2370           src/avr/Makefile.in, src/ds390/Makefile.in, src/ds400/Makefile.in,
2371           src/hc08/Makefile.in, src/mcs51/Makefile.in, src/pic16/Makefile.in,
2372           src/pic/Makefile.in, src/xa51/Makefile.in, src/z80/Makefile.in:
2373           reverted changes from 2006-07-03
2374         * Makefile.common.in: added @CPPFLAGS@ to CPPFLAGS
2375         * support/regression/Makefile.in, support/regression/ports/host/spec.mk:
2376           added CPPFLAGS, used by the host port
2377
2378 2006-07-03 Bernhard Held <bernhard AT bernhardheld.de>
2379
2380         * support/regression/valdiag/tests/switch.c,
2381         * support/regression/valdiag/tests/constantRange.c: adapted to gcc 4
2382         * support/regression/tests/libmullong.c: fixed for host
2383         * support/regression/ports/host/spec.mk: disable all warnings for host,
2384         SDCC runs with --less-pedantic too
2385
2386 2006-07-03 Borut Razem <borut.razem AT siol.net>
2387
2388         * src/configure.in, src/configure, src/Makefile.in, as/z80/Makefile.in:
2389           defined CPPFLAGS
2390         * src/port.mk: defined CPPFLAGS, renamed to src/port.mk.in
2391         * src/avr/Makefile.in, src/ds390/Makefile.in, src/ds400/Makefile.in,
2392           src/hc08/Makefile.in, src/mcs51/Makefile.in, src/pic16/Makefile.in,
2393           src/pic/Makefile.in, src/xa51/Makefile.in, src/z80/Makefile.in:
2394           include ../port.mk
2395         * sim/ucsim/main_in.mk, sim/ucsim/avr.src/Makefile.in,
2396           sim/ucsim/gui.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
2397           sim/ucsim/s52.src/Makefile.in, sim/ucsim/sim.src/Makefile.in,
2398           sim/ucsim/xa.src/Makefile.in: ignore header files for dependencies
2399
2400 2006-07-02 Raphael Neider <rneider AT web.de>
2401
2402         * src/pic16/devices.inc,
2403         * device/include/pic16/pic18fregs.h,
2404         * device/include/pic16/pic18f4550.h,
2405         * device/lib/pic16/pics.all,
2406         * device/lib/pic16/libdev/pic18f4550.c: added support for 18f4550
2407
2408 2006-07-01 Bernhard Held <bernhard AT bernhardheld.de>
2409
2410         * as/hc08/lkaomf51.c (OutputName),
2411         * as/mcs51/lkaomf51.c (OutputName),
2412         * as/z80/asmain.c (asmbl),
2413         * src/ds390/main.c (asmLineNodeFromLineNode),
2414         * src/hc08/ralloc.c (hc08_assignRegisters),
2415         * src/mcs51/main.c (asmLineNodeFromLineNode),
2416         * src/xa51/ralloc.c (checkRegMask),
2417         * src/xa51/gen.c (emitcode),
2418         * src/z80/gen.c (_emit2),
2419         * src/SDCCast.c (searchLitOp),
2420         * src/SDCCglobl.h,
2421         * support/packihx/packihx.c,
2422         * support/Util/MySystem.c (split_command): fix gcc 4 warnings
2423         * src/ds390/gen.c (aopPutUsesAcc),
2424         * src/ds390/ralloc.c (getRegBitNoSpil): unused, therefore disabled
2425         * support/regression/tests/libmullong.c (mullong_wrapper),
2426         * src/SDCCsymt.c (powof2),
2427         * src/SDCCast.c,
2428         * src/SDCCicode.c: renamed TYPE_WORD by TYPE_TARGET_INT and so on
2429         * src/SDCCsymt.h: added TYPE_TARGET_*
2430         * src/SDCCutil.c (doubleFromFixed16x16, fixed16x16FromDouble),
2431         * src/SDCCutil.h (doubleFromFixed16x16, fixed16x16FromDouble): moved to
2432         SDCCast because 1) header problems 2) this is the right place
2433         * src/SDCCast.c (doubleFromFixed16x16, fixed16x16FromDouble): added
2434         * src/SDCCval.h (doubleFromFixed16x16, fixed16x16FromDouble): added
2435         prototype
2436
2437 2006-06-29 Bernhard Held <bernhard AT bernhardheld.de>
2438
2439         * src/SDCCicode.h: removed buggy semicolon in unused macro
2440         * src/SDCClrange.c (findPrevUseSym, rlivePoint): fixed bug #1486853,
2441         search for previous definiton of auto symbols too,
2442         (findPrevUse): fixed logic of emitWarnings
2443
2444 2006-06-26 Raphael Neider <rneider AT web.de>
2445
2446         * src/pic16/gen.c (genFunction, genEndFunction): also preserve
2447           PCLATH and PCLATU on interrupts, potentially fixes #1505141
2448
2449 2006-06-25 Raphael Neider <rneider AT web.de>
2450
2451         * device/lib/pic/libm: NEW, added math library functions
2452         * device/lib/pic/libsdcc: NEW; added float support functions
2453         * device/lib/pic/{Makefile.in,configure.in,configure}: added libm/
2454         * device/include/pic/{limits.h,errno.h,sdcc-lib.h,float.h,math.h}:
2455           NEW, added math related headers
2456         * device/include/asm/pic/features.h: NEW
2457         * src/pic/gen.c (emitpcode_real): emit warning on NULL pCodeOp,
2458           (popGet): allow larger offsets for AOP_PCODE,
2459           (genDataPointerSet): handle literals explicitly, more debug output,
2460           (genAssign): fixed for float using aopLiteral ;-)
2461         * src/pic/glue.c (pic14createInterruptVect): inserted pagesel before
2462           GOTO initialisation routine
2463         * src/pic/pcoderegs.c (pCodeRegMapLiveRangesInFlow): set wasUsed
2464           flag on registers, fixes #1469043 (local variables do not work)
2465         * src/pic/main.c (_pic14_do_link),
2466         * src/pic16/main.c (_pic16_linkEdit): use fullDstFileName if
2467           available
2468
2469 2006-06-25 Borut Razem <borut.razem AT siol.net>
2470
2471         * device/lib/pic16/libc/stdio/sprintf.c: return the number of
2472           characters printed (not including the trailing '\0' used to end
2473           output to strings). Problem detected in regression test bug-927659.c.
2474           NOTE: printf() family functions should return int instead
2475           unsigned int!
2476         * device/lib/pic16/libc/stdio/vfprintf.c: "%%" prints "%", unknown
2477           specifier are printed as themselves
2478         * sdcc/support/regression/tests/bug1057979.c: pic16 printf doesn't
2479           support flags, width and precision specifiers
2480
2481 2006-06-24 Borut Razem <borut.razem AT siol.net>
2482
2483         * sdcc/support/regression/tests/bitvars.c: added gbz80, pic16 and pic16
2484           to the list of sdcc tagrets not supporting bit type
2485         * sdcc/support/regression/tests/bug-905992.c.c: excluded regression
2486           testfor pic16 due to bug:
2487           [ 1511794 ] pic16: regression test bug-895992.c fails
2488
2489 2006-06-24 Maarten Brock <sourceforge.brock AT dse.nl>
2490
2491         * src/mcs51/gen.c (genCmp): optimization for RFE 1162453
2492         * src/SDCCglue.c (initPointer), fixed bug 1496419
2493         * support/regression/tests/bug1496419.c: new, added
2494
2495 2006-06-22 Borut Razem <borut.razem AT siol.net>
2496
2497         * support/regression/ports/pic16/support.c: use gpsim usart module from
2498           libgpsim_modules library
2499
2500 2006-06-21 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2501
2502         * device/include/mcs51/at89c51ed2.h: Fixed bug 1510144 changed
2503         IP0H to IPH0.
2504
2505 2006-06-19 Raphael Neider <rneider AT web.de>
2506
2507         * src/pic/glue.h,src/pic16/glue.h: added prototypes
2508         * src/pic/glue.c,src/pic16/glue.c (pic1x_stringInSet,
2509           pic1x_emitSymbolIfNew): NEW, check for a string in a set,
2510           (pic14printExterns,pic14printPublics,pic16printPublics,
2511           pic16_printExterns): use new functions to emit symbols
2512           (picglue,pic16glue): emit publics before emitting externs
2513         * src/pic/gen.c,src/pic16/gen.c (genFunction): remember the names of
2514           locally defined functions to avoid bug #1443651
2515         * support/regression/tests/bug-716242.c: removed pic16 workaround
2516         * support/regression/ports/pic16/spec.mk: ignore errors during build
2517
2518 2006-06-19 Raphael Neider <rneider AT web.de>
2519
2520         * src/pic/glue.h: added pic14aopLiteral prototype
2521         * src/pic/glue.c (pic14aopLiteral): return unsigned int
2522         * src/pic/gen.c: removed stdint.h dependency
2523           (aopGet): use Safe_strdup()
2524           (bitpatternFromVal): removed, replaced use with pic14aopLiteral
2525           (genDataPointerSet): use pic14aopLiteral()
2526         * src/pic16/glue.h, src/pic16/glue.c, src/pic16/gen.c: similar changes
2527           for pic16; thanks to Bernhard and Maarten
2528
2529 2006-06-18 Borut Razem <borut.razem AT siol.net>
2530
2531         * support/regression/tests/structflexarray.c: flexible array members
2532           not supported by gcc < 3
2533         * sim/ucsim/configure, sim/ucsim/configure.in: do not compile serio
2534           GUI tool by default
2535         * src/pic/gen.c: don't include [p]strdin.h on solaris
2536         * support/Util/pstdint.h: addad svn attributes
2537         * support/regression/tests/constantRange.c,
2538           support/regression/tests/rotate.c: include inttypes.h instead
2539           stdint.h on solaris, addad svn attributes
2540
2541 2006-06-18 Raphael Neider <rneider AT web.de>
2542
2543         * src/SDCCsymt.c (initCSupport): change return type of divschar to
2544           int for PIC16
2545         * src/pic16/genarith.c (genAddLit): sign-extend via standard routine
2546           (pic16_genMinusBits): simplified sign-extension
2547           (pic16_genUMult8XLit_8,pic16_genUMult8X8_8): renamed to
2548             pic16_genMult8XLit_n resp. pic16_genMult8X8_n, fixed and
2549             adjusted to correctly handle mixed-signed operands, disabled
2550             now unused multiplciation routines
2551         * src/pic16/gen.c (pic16_pushpCodeOp): fixed to handle literals
2552           (assignResultValue): added argument denoting the size of the result
2553             as returned by the function (fixes upcasts in assigning from
2554             function calls: char foo(); int i = foo();)
2555           (genCall,genPcall,genGenPointerGet,genReceive): pass size of
2556             function result to assignResultValue
2557           (genMult): disabled inlined multiplication code
2558           (genDiv): augmented to also handle the modulus operator, fixed to
2559             handle mixed-signed operands correctly
2560           (genMod): simply call genDiv, disabled unused code
2561           (genAssign): fixed missing (sign-)extension on result
2562         * src/pic16/main.c (_hasNativeMulFor): accept literals [-128..256) as
2563             valid char operands, allow signed operands for native code, added
2564             division and modulo operator handling
2565         * device/lib/pic16/libsdcc/char/divschar.c: divschar returns an int
2566
2567         As a consequence, onebyte.c (if split into two files) and muldiv.c
2568         pass regression tests.
2569
2570 2006-06-17 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2571
2572         * doc/Makefile.in: two runs of makeindex seem needed to get
2573         correct page references in the index of sdccman.pdf
2574         * doc/sdccman.lyx: mentioned cmon51, added links, small changes
2575
2576 2006-06-17 Borut Razem <borut.razem AT siol.net>
2577
2578         * sdcc/device/lib/Makefile.in: corrected PORTINCDIR path
2579
2580 2006-06-17 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2581
2582         * doc/sdccman.lyx: updated, added (porting source code, debugging),
2583         mentioned ec2drv and paulmon
2584
2585 2006-06-16 Maarten Brock <sourceforge.brock AT dse.nl>
2586
2587         * as/mcs51/lkarea.c (lnkarea2): clear new xdatamap, bugfix for two
2588           consecutive abs areas
2589           (find_empty_space, allocate_space): added map to handle codemap or
2590            xdatamap,
2591           (lnksect2): renamed rloc to locIndex, fixed bug 960060 by handling
2592            absolute idata and xdata
2593         * as/mcs51/lkmem.c (summary2): updated legend
2594
2595 2006-06-16 Raphael Neider <rneider AT web.de>
2596
2597         * src/pic16/gen.c (shiftR2Left2Result): fixed bug #1507127
2598
2599 2006-06-13 Maarten Brock <sourceforge.brock AT dse.nl>
2600
2601         * debugger/mcs51/cmd.c (cmdListFunctions): fixed bugs 1181163 and
2602           1208515
2603         * src/SDCClrange.c (findPrevUse): fixed bug 1294475
2604
2605 2006-06-13 Vangelis Rokas <vrokas AT users.sourceforge.net>
2606
2607         * src/port.h (struct PORT): added field gp_tags, to hold the tag
2608         value of generic pointers,
2609         * src/avr/main.c,
2610           src/ds390/main.c,
2611           src/hc08/main.c,
2612           src/izt/i186.c,
2613           src/izt/tlcs900h.c,
2614           src/mcs51/main.c,
2615           src/pic/main.c,
2616           src/pic16/main.c,
2617           src/xa51/main.c,
2618           src/z80/main.c: PORT structure, added elements for gp_tags field,
2619         * src/SDCCsymt.h: replaced hardwired values of GPTYPE_* macros with
2620         fields in the PORT structure of each port,
2621         * src/SDCCast.c (decorateType): allow processing of generic pointers
2622         for PIC16 port (FPTRSIZE equals GPTRSIZE), also set GPTYPE_NEAR for
2623         S_FIXED symbols
2624
2625 2006-06-12 Maarten Brock <sourceforge.brock AT dse.nl>
2626
2627         * link/z80/lkgb.c,
2628         * link/z80/lkgg.c,
2629         * src/pic16/gen.c,
2630         * src/pic16/main.c,
2631         * src/pic16/pcode.c,
2632         * src/pic/main.c,
2633         * src/pic/pcoderegs.c,
2634         * src/SDCCicode.c,
2635         * src/SDCCmain.c,
2636         * src/SDCCsymt.c: replaced all exit(-1) by exit(EXIT_FAILURE) to fix
2637           bug 1504689 on minGW
2638
2639 2006-06-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2640
2641         * device/lib/printf_tiny.c: fixed bug #1465675 (%x format specifier)
2642
2643 2006-06-12 Bernhard Held <bernhard AT bernhardheld.de>
2644
2645         * src/SDCCast.c (backPatchLabels): fixed bug #1504636
2646
2647 2006-06-11 Maarten Brock <sourceforge.brock AT dse.nl>
2648
2649         * device/lib/printf_large.c (OUTPUT_CHAR, _output_char): added and used
2650           for optimization
2651
2652 2006-06-11 Vangelis Rokas <vrokas AT users.sourceforge.net>
2653
2654         * src/pic16/gen.c (genCast): fixed bug with assignment of a pointer
2655         to a char variable. Fixed bug #1504211
2656         * device/include/pic16/adc.h,
2657         device/include/lib/pic16/libio/adc/adcopen.c: applied patch #1364387
2658         and fixed bug #1364390
2659
2660 2006-06-10 Borut Razem <borut.razem AT siol.net>
2661
2662         * CVSROOT: removed the CVS left-over
2663
2664 2006-06-10 Maarten Brock <sourceforge.brock AT dse.nl>
2665
2666         * as/hc08/asmain.c (asexit),
2667         * as/hc08/lkmain.c (lkexit),
2668         * as/mcs51/asmain.c (asexit),
2669         * as/mcs51/lkmain.c (lkexit),
2670         * src/SDCCglue.c (DEFSETFUNC),
2671         * src/SDCCmain.c (linkEdit, assemble),
2672         * support/librarian/sdcclib.c (AddRel),
2673           replaced unlink() by standard C remove()
2674         * src/SDCC.y: replaced removePostIncDecOps() by createRMW()
2675         * src/SDCCast.c (replaceAstWithTemporary, createRMW,
2676           gatherImplicitVariables): new, added to fix bug 608752,
2677           (createFunction): added gatherImplicitVariables()
2678         * src/SDCCast.h: added createRMW prototype
2679         * src/SDCCsymt.h (struct symbol): added infertype
2680         * support/regression/tests/bug608752.c: new, added
2681
2682 2006-06-10 Raphael Neider <rneider AT web.de>
2683
2684         * src/pic16/gen.c (pic16_aopOp): use WREG as destination even for
2685           multibyte dummy reads (fixes #1503234)
2686
2687 2006-06-10 Maarten Brock <sourceforge.brock AT dse.nl>
2688
2689         * device/include/mcs51/compiler.h: new, added header file to enable
2690           creating common sfr definition header files for different compilers
2691
2692 2006-06-05 Raphael Neider <rneider AT web.de>
2693
2694         * src/pic16/{pcode.h,genarith.c}:
2695           introduced pCodeOp combining any two pCodeOps (previously only
2696           two register operands could be combined), removed pcop2 from
2697           pCodepReg, replaced pCodeOpReg2 with pCodeOp2, fixes #1492366
2698         * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): added case for PO_TWO_OPS
2699         * src/pic16/gen.c (pic16_popGet2,pic16_popGet2p,pic16_popCombine2):
2700           rewritten to use new PO_TWO_OPS
2701         * src/pic16/main.c (_hasNativeMulFor): cover more cases natively,
2702         * src/pic16/pcode.c (pic16_newpCodeOpImmd): initialize rIdx field,
2703           (pic16_newpCodeOp): catch invalid attempts on PO_TWO_OPS,
2704           (pic16_newpCodeOp2): NEW, create combined pCodeOp,
2705           (pic16_get_op): embraced return arg to allow #define return(x),
2706             added new case for combined opcodes
2707           (pic16_get_op2): reduced to use pic16_get_op() on second pCodeOp,
2708           (pic16_pCode2str,pic16_getRegFrompCodeOp,
2709            pic16_getRegFromInstruction2): fixed/added handling of new pCodeOp
2710
2711 2006-06-04 Bernhard Held <bernhard AT bernhardheld.de>
2712
2713         * src/SDCCval.c (checkConstantRange): added
2714         * src/SDCCval.h: added checkConstantRange
2715         * support/Util/SDCCerr.c,
2716         * support/Util/SDCCerr.h: replaced unused W_IF_NEVER_TRUE and
2717         W_IF_ALWAYS_TRUE by W_COMP_RANGE and W_LIT_OVERFLOW
2718         * src/SDCC.y: moved early 'condition transformations' to SDCCast.c
2719         * src/SDCCast.c (decorateType): added checkConstantRange,
2720         added 'condition transformations' from SDCC.y so that now W_COMP_RANGE
2721         can be emitted with the correct always true/false warning,
2722         added optimization for double '!';
2723         result of decorateType() must be assigned back to the tree, because
2724         decorateType() can change the tree
2725         * src/SDCCicode.c (geniCodeLogic),
2726         (geniCodeAssign): replaced new checkConstantRange, added warnings,
2727         (checkConstantRange): removed, it was only a fragment which never
2728         emitted a warning
2729         * src/SDCCsymt.c (computeType): fixed promotion for
2730         "-1 < (unsigned bit) b"
2731         * src/pic/ralloc.c (packRegsForAssign),
2732         * src/pic16/ralloc.c (packRegsForAssign),
2733         * src/hc08/ralloc.c (packRegsForAssign),
2734         * src/z80/ralloc.c (packRegsForAssign): ported fix for bug #930931
2735         from mcs51
2736         * src/mcs51/ralloc.c (packRegsForAssign): removed outcommented source
2737         * support/regression/tests/constantRange.c: added
2738         * support/valdiag/tests/constantRange.c: added
2739         * support/valdiag/valdiag.py: added -DPORT_HOST=1
2740
2741 2006-06-02 Borut Razem <borut.razem AT siol.net>
2742
2743         * support/regression/ports/pic16/support.c: increase stack size
2744           to 255 bytes
2745         * support/regression/Makefile.in: sort tests by name so that the
2746           resutlts can be compared on different machines / platforms
2747
2748 2006-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
2749
2750         * device/lib/printf_large.c (output_digit): optimized further, Tnx Frieder
2751         * src/ds390/gen.c (emitLabel): new, added,
2752           (genDjnz): fixed stack overflow bug,
2753           (throughout): cosmetic changes to sync with mcs51/gen.c,
2754           replaced emitcode("", "%05d$:", lbl->key + 100) with emitLabel(lbl)
2755         * src/mcs51/gen.c (genEndFunction): small optimization,
2756           (throughout): cosmetic changes to sync with ds390/gen.c
2757
2758 2006-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
2759
2760         * device/lib/printf_large.c (output_digit, calculate_digit): optimized,
2761           (_print_format): fixed printing pointers
2762         * src/mcs51/gen.c (emitLabel, movb): new, added,
2763           (genAssign): small optimization,
2764           (genDjnz): fixed stack overflow bug,
2765           (throughout): replaced sprintf with SNPRINTF,
2766           replaced mcs51_regWithIdx with REG_WITH_INDEX,
2767           replaced emitcode("mov", "b,...") with MOVB(...),
2768           replaced emitcode("", "%05d$:", lbl->key + 100) with emitLabel(lbl),
2769           replaced D(emitcode("; genXXX", "")) with D(emitcode(";", "genXXX"))
2770         * src/mcs51/peeph.def: added rules 140 and 264
2771         * src/SDCCmem.c (allocLocal): store register declared locals in DSEG/OSEG
2772           so they may get optimized into registers
2773
2774 2006-05-30 Maarten Brock <sourceforge.brock AT dse.nl>
2775
2776         * src/SDCCmain.c (optionsTable, parseCmdLine): handle --use-stdout
2777           immediately when encountered,
2778           (printUsage): always use stderr even on windows
2779
2780 2006-05-30 Bernhard Held <bernhard AT bernhardheld.de>
2781
2782         * src/SDCCast.c (isLoopCountable): fixed bug #1478316
2783         (processParms): fixed bug #1247551
2784         * src/SDCCmain.c (printVersionInfo, printOptions, printUsage,
2785         parseCmdLine, main): print '--version' to stdout,
2786         print 'help' to stdout if --help is given,
2787         print 'help' to stderr and exit with EXIT_FAILURE if no or bad
2788         arguments are given; fixed --help
2789
2790 2006-05-27 Bernhard Held <bernhard AT bernhardheld.de>
2791
2792         * src/SDCCcse.c (findPointerSet): fixed bug #1493710
2793         * support/regression/tests/bug-1493710.c: added
2794
2795 2006-05-27 Borut Razem <borut.razem AT siol.net>
2796
2797         * support/regression/fwk/lib/testfwk.c: define array in _printn() as
2798           static instead auto
2799         * support/regression/ports/pic16/support.c: increase stack size
2800           from default 64 bytes to 128 bytes
2801         * support/regression/tests/staticinit.c,
2802           support/regression/tests/float.c: regression tests fully enabled
2803           for pic16 port by putting the initialized data arrays into the code
2804           section
2805         * support/regression/ports/pic16/spec.mk: don't link default libraries.
2806           This was changed by mistake in the previous version.
2807
2808 2006-05-28 Vangelis Rokas <vrokas AT users.sourceforge.net>
2809
2810         * src/pic16/gen.c (genFunction, genEndFunction): some
2811         beautifications, fixed bug with falsely restoring FSR2 in large
2812         stack model, thanks to Beau E. Cox for reporting the bug
2813
2814 2006-05-26 Maarten Brock <sourceforge.brock AT dse.nl>
2815
2816         * debugger/mcs51/break.c,
2817         * debugger/mcs51/cmd.c (throughout): removed unused variables and labels,
2818           use %p to print pointers, made address variables unsigned
2819         * debugger/mcs51/cmd.c (infoSymbols): added missing parameter to printf
2820         * debugger/mcs51/symtab.c (parseSymbol): must return something
2821         * src/mcs51/gen.c (aopForSym): small optimization,
2822            moved declarations mcs51_ptrRegReq and mcs51_nRegs to ralloc.h,
2823           (freeAsmop): added missing break,
2824           (aopPut): removed parameter bvolatile, determine it inside the function,
2825           (saveRegisters, unsaveRegisters): small optimization,
2826           (genIpush): removed pointless check,
2827           (throughout): replaced Safe_calloc, strcpy with Safe_strdup,
2828           replaced sprintf with SNPRINTF,
2829           replaced strcpy with strncpyz,
2830           updated aopPut calls,
2831           replaced D(emitcode("; genXXX", "")) with D(emitcode(";", "genXXX"))
2832         * src/mcs51/ralloc.h:  added declarations mcs51_ptrRegReq and mcs51_nRegs
2833
2834 2006-05-24 Borut Razem <borut.razem AT siol.net>
2835
2836         * support/regression/tests/bug-221100.c: fixed xdata problem caused by
2837           modification of test for the pic16 port, put the array to the code
2838           memory for pic16port; thanks to Maarten Brock and Frieder Ferlemann
2839
2840 2006-05-23 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2841
2842         * src/pic/gen.c: MSC 6 does not have <stdint.h>.  Use pstdint.h instead.
2843         * support/Util/pstdint.h: added
2844
2845 2006-05-22 Borut Razem <borut.razem AT siol.net>
2846
2847         * src/regression/Makefile: removed bool2.c test, added -q linker option
2848         * src/regression/add2.c, src/regression/add3.c, src/regression/bool1.c,
2849           src/regression/bool3.c, src/regression/nestfor.c, src/regression/ptrfunc.c,
2850           src/regression/compare.c, src/regression/or1.c, src/regression/compare2.c,
2851           src/regression/while.c, src/regression/compare3.c, src/regression/compare4.c,
2852           src/regression/compare5.c, src/regression/sub2.c, src/regression/rotate1.c,
2853           src/regression/rotate2.c, src/regression/rotate3.c, src/regression/rotate4.c,
2854           src/regression/switch1.c, src/regression/rotate5.c, src/regression/for.c,
2855           src/regression/add.c, src/regression/sub.c, src/regression/call1.c:
2856           define SUPPORT_BIT_TYPES 0, removed unused bit variables
2857
2858 2006-05-22 Raphael Neider <rneider AT web.de>
2859
2860         * src/pic16/gen.c (pic16_storeForReturn): fragile fix for
2861           bug #1492360 (problematic due to generic pointers, see code)
2862
2863 2006-05-22 Borut Razem <borut.razem AT siol.net>
2864
2865         * support/regression/ports/pic16/specs.mk: removed stack size linker
2866           directive
2867         * support/regression/tests/array.c,
2868           support/regression/tests/bitopcse.c,
2869           support/regression/tests/bug-908454.c,
2870           support/regression/tests/malloc.c: modified for pic16 regression test
2871         * support/regression/tests/bitfields.c:
2872           pic16 - excluded bitfileds of size > 8
2873         * support/regression/tests/bp.c: pic16 - reduced data size
2874         * support/regression/tests/bug-221100.c: pic16 - reduced data size
2875         * support/regression/tests/bug-460010.c:
2876           pic16 - used the absolute address the fits in memory
2877         * support/regression/tests/bug-716242.c:
2878           bug [ 1443651 ] pic 16: redefining symbol that cannot be redefined.
2879         * support/regression/tests/float.c:
2880           pic16 - excluded - data size too big
2881         * support/regression/tests/onebyte.c:
2882           pic16 - bug [ 1444425 ] onebyte.c regression tes fails on pic16
2883         * support/regression/tests/shifts.c:
2884           pic16 - function names probably have to differ in first X characters
2885           (gpasm limitation?)
2886         * support/regression/tests/staticinit.c:
2887           pic16 - excluded some tests due error: no target memory available for
2888           section ".idata"
2889
2890 2006-05-22 Borut Razem <borut.razem AT siol.net>
2891
2892         * support/Util/dbuf.c: fixed bug #1489008 fix dbuf_c_str(),
2893           second try. Thanks Stas Sergeev once more.
2894
2895 2006-05-21 Maarten Brock <sourceforge.brock AT dse.nl>
2896
2897         * src/hc08/gen.c (transferAopAop): aop forced to stack was not restored,
2898           (genLeftShift, genRightShift): fixed bug 1491627
2899         * src/hc08/peeph.def (rules 7, 8.x): added
2900         * support/regression/tests/shifts.c (ShiftLeftByParam,
2901           ShiftRightByParam, testShiftByParam): added to test variable shifting
2902
2903 2006-05-20 Raphael Neider <rneider AT web.de>
2904
2905         * src/pic/gen.c (bitpatternFromVal): fixed for 64-bit machines
2906         * src/pic16/ralloc.c (newReg): use correct name in hashtable,
2907           (allocReg): add only new registers to dynAllocRegs,
2908           (pic16_assignRegisters): do not reset dynrIdx, fixes bugs
2909             #1489055, #1445850, and probably #1483693
2910
2911 2006-05-19 Vangelis Rokas <vrokas AT users.sourceforge.net>
2912
2913         * src/pic16/glue.c (pic16_emitConfigRegs, pic16_emitIDRegs): fixed
2914         bug in for-loop that didn't emit the last of CONFIG and ID registers
2915
2916 2006-05-18 Maarten Brock <sourceforge.brock AT dse.nl>
2917
2918         * src/mcs51/gen.c (genCodePointerGet): inc dptr instead of loading acc
2919           with offset
2920         * src/mcs51/peeph.def (186.x): updated and reenabled to fix bugs
2921           1489016, 1434401 and 1490124
2922         * src/ds390/peeph.def (186.x, 227.x): updated and reenabled to fix bugs
2923           1489016, 1434401 and 1490124
2924
2925 2006-05-17 Borut Razem <borut.razem AT siol.net>
2926
2927         * support/Util/dbuf.c: fixed bug #1489008 fix dbuf_c_str(),
2928           thanks Stas Sergeev
2929
2930 2006-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
2931
2932         * device/include/mcs51/P89c51RD2.h,
2933         * device/include/mcs51/P89LPC901.h,
2934         * device/include/mcs51/P89LPC922.h,
2935         * device/include/mcs51/P89LPC932.h: added, thanks Omar Espinosa
2936
2937 2006-05-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
2938
2939         * device/lib/pic16/libsdcc/stack/{stack.S, Makefile.in}: add workaround
2940         to fix missing stack pragma in compiled binary object file,
2941
2942 2006-05-14 Bernhard Held <bernhard AT bernhardheld.de>
2943
2944         * support/packihx/configure.in,
2945         * support/packihx/configure: removed warning, autoconf >= 2.5x can
2946         determine sizeof basic types even while cross compiling
2947
2948 2006-05-13 Bernhard Held <bernhard AT bernhardheld.de>
2949
2950         * src/avr/gen.c (aopop),
2951         * src/ds390/gen.c (aopOp),
2952         * src/hc08/gen.c (aopOp),
2953         * src/mcs51/gen.c (aopop),
2954         * src/pic16/gen.c (pic16_aopOp),
2955         * src/pic/gen.c (aopOp),
2956         * src/z80/gen.c (aopop): fix for bug #1479882; use new, exclusive asmop
2957         if size of operand is smaller than spill location
2958
2959 2006-05-12 Borut Razem <borut.razem AT siol.net>
2960
2961         * *.dsw, *.dsp: changed property svn:eol-style to CRLF since they
2962           have to have CR/LF line endings even if they are checked out on *nix
2963           or on WIN32 in cygwin binmode
2964
2965 2006-05-12 Maarten Brock <sourceforge.brock AT dse.nl>
2966
2967         * doc/sdccman.lyx: documented numeric ranges, WEBDOC #1442369
2968         * device/include/ds80c390.h: added sfr16 definitions
2969         * src/ds390/gen.c,
2970         * src/ds390/gen.h,
2971         * src/ds390/main.c,
2972         * src/ds390/ralloc.c,
2973         * src/ds390/ralloc.h: changes all over the place to sync with mcs51
2974           fixing several bugs and adding sfr16/sfr32, reentrant bit params,
2975           bit returning functions
2976         * support/regression/tests/sfr16.c: enabled test on ds390
2977
2978 2006-05-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2979
2980         * src/hc08/gen.c (asmopToBool, genIfx): fix for bug #1429722
2981         * src/hc08/gen.c (storeRegToAop): fix for bug #1439894
2982
2983 2006-05-11 Maarten Brock <sourceforge.brock AT dse.nl>
2984
2985         * sim/ucsim/sim.src/memcl.h: added get_decoder() to cl_address_space
2986         * sim/ucsim/sim.src/mem.cc: implemented cl_address_space::get_decoder,
2987           (cl_address_space constructor): removed expensive initialization,
2988           (cl_address_space::get_cell): extended for late initialization,
2989           (cl_address_space::*): use late initialization,
2990           (cl_address_decoder::activate): removed expensive initialization,
2991           This reduced regression test running time by 25%
2992
2993 2006-05-11 Bernhard Held <bernhard AT bernhardheld.de>
2994
2995         * packihx/,
2996         * configure.in,
2997         * configure,
2998         * sdcc.dsw,
2999         * Makefile.bcc,
3000         * Makefile.in,
3001         * support/packihx/Makefile.in,
3002         * support/packihx/clean.mk,
3003         * support/packihx/Makefile.bcc,
3004         * support/packihx/PackIhx.dsp: moved packihx to support/packihx
3005
3006 2006-05-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3007
3008         * src/SDCCval.c (valNot): fix for regression test failure
3009           of not.c on big endian hosts
3010
3011 2006-05-10 Maarten Brock <sourceforge.brock AT dse.nl>
3012
3013         * device/inlcude/mcs51/msc1210.h: new, added, thanks Philippe Latu
3014
3015 2006-05-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3016
3017         * device/lib/mcs51/Makefile.in: changed string comparison operator
3018           to = for POSIX compliance; == is bash extension
3019
3020 2006-05-10 Maarten Brock <sourceforge.brock AT dse.nl>
3021
3022         * device/lib/hc08/_mulint.c: applied patch 1485428, thanks
3023           kosmonaut_pirx
3024
3025 2006-05-09 Vangelis Rokas <vrokas AT users.sourceforge.net>
3026
3027         * src/pic16/gen.c (pic16_freeAsmop): release any temp registers
3028         allocated by aopForSym thus fixing bug #1478657 about failed testfwk.c
3029         * src/pic16/main.c (_pic16_keywords): added 'sfr16' keyword,
3030         * src/pic16/ralloc.c (pic16_allocWithIdx): also a fix for bug exposed by
3031         bug report #1478657,
3032
3033 2006-05-05 Borut Razem <borut.razem AT siol.net>
3034
3035         * doc/Makefile.in: remove of WARNINGS and labels.pl immediately after
3036           making the html
3037
3038 2006-05-02 Borut Razem <borut.razem AT siol.net>
3039
3040         * doc/Makefile.in: removed *.ind dependency since there is no rule to
3041           create *.ind, which made make to fail if invoked with -j 2
3042
3043 2006-05-01 Maarten Brock <sourceforge.brock AT dse.nl>
3044
3045         * src/SDCCglue.c (emitRegularMap): partial fix for bug 1477149, thanks
3046           Hubert Sack for patch 1479782
3047
3048 2006-05-01 Vangelis Rokas <vrokas AT users.sourceforge.net>
3049
3050         * src/pic16/glue.c (pic16_printIvalStruct): fixed bug #1445929
3051
3052 2006-05-01 Raphael Neider <rneider AT web.de>
3053
3054         * src/pic/device.c (sanitise_processor_name): only remove p(ic) prefix,
3055           (create_pic): store only prefix-free device name,
3056           (init_pic): check for device names with "16" prefix,
3057           (list_valid_pics),
3058         * src/pic/device.h (struct PIC_device),
3059         * src/pic/main.c (_pic14_genAssemblerPreamble): adapted to single
3060             stored device name,
3061         * device/include/pic/pic12f{635,675,629,683}.h,
3062         * device/lib/pic/libdev/pic12f{635,675,629,683}.c: NEW device libraries
3063         * device/lib/pic/libdev/Makefile.in: allow pic12* devices,
3064         * device/include/pic/pic16f505.h,
3065         * device/lib/pic/libdev/pic16f505.c: removed
3066         * device/include/pic/pic14devices.txt: added support for pic12f
3067             devices, removed unsupported non 16-bit devices
3068             [above changes provided by patch from Zik Saleeba]
3069         * src/pic/*, src/pic16/*, device/include/pic16/*,
3070           device/lib/pic/**, device/lib/pic16/**: obfuscated email address
3071
3072 2006-05-01 Borut Razem <borut.razem AT siol.net>
3073
3074         * configure.in, configure, doc/Makefile.in:
3075           sync with nightly build makefile - latex, dvipdf and dvips
3076           not needed any more
3077
3078 2006-04-30 Bernhard Held <bernhard AT bernhardheld.de>
3079
3080         * support/scripts/sdcc.nsi: removed all Readmes and Makefiles
3081         in the library source
3082
3083 2006-04-30 Maarten Brock <sourceforge.brock AT dse.nl>
3084
3085         * support/regression/ports/hc08/spec.mk: fixed bug 1478892
3086
3087 2006-04-28 Raphael Neider <rneider AT web.de>
3088
3089         * src/pic16/pcode.c (pic16_newpCodeOpLit12),
3090         * src/pic16/gen.c (pic16_popGetLit12): NEW, create 12 bit literal,
3091           (pic16_loadFSR0): handle 12 bit literals correctly, fixes #1440527
3092         * src/pic16/pcode.h: added prototype for pic16_newpCodeOpLit12()
3093
3094 2006-04-28 Bernhard Held <bernhard AT bernhardheld.de>
3095
3096         * device/lib/pic/libdev/Makefile.in,
3097         * device/lib/hc08/Makefile.in,
3098         * device/lib/gbz80/Makefile.in,
3099         * device/lib/z80/Makefile.in,
3100         * device/lib/ds390/Makefile.in,
3101         * device/lib/ds400/Makefile.in: added srcdir to include search path,
3102         thanks to Borut for the bug report
3103         * configure.in,
3104         * configure: always create doc/Makefile independent from --enable-doc
3105         * Makefile.in: always install from directory doc independent from
3106         --enable-doc
3107         * device/lib/pic/Makefile.in: added libdev again, it was erroneously
3108         removed
3109         * device/lib/pic/libdev/Makefile.in: fixed VPATH build
3110         * doc/Makefile.in: install *.txt if present
3111         * device/include/Makefile.in (install): added installation of pic/*.inc
3112         and pic/*.txt files again, they were erroneously removed
3113
3114 2006-04-28 Raphael Neider <rneider AT web.de>
3115
3116         * src/pic/{gen.c,main.h,pcode.c},
3117         * src/pic16/{gen.c,pcode.c}: quietened compiler warnings
3118             concerning signedness with casts
3119
3120 2006-04-28 Raphael Neider <rneider AT web.de>
3121
3122         * src/pic/gen.c (genFunction): set global pic14_hasInterrupt on
3123             definition of an interrupt handler,
3124         * src/pic/glue.c (pic14_emitInterruptHandler): moved output of
3125             interrupt handler stuff from picglue() to separate routine,
3126           (picglue): enabled definition of intr handlers in files w/o main()
3127
3128 2006-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
3129
3130         * support/librarian/sdcclib.c: moved include <limits.h> up to enable
3131           compilation with MSVC 2005 Express Edition (VC8)
3132
3133 2006-04-26 Bernhard Held <bernhard AT bernhardheld.de>
3134
3135         * device/lib/Makefile: fixed build of gbz80 lib
3136
3137 2006-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
3138
3139         * support/regression/tests/bug-460010.c,
3140         * support/regression/tests/bug-524691.c,
3141         * support/regression/tests/bug-716242.c: removed conditional defines
3142           that are already in testfwk.h
3143
3144 2006-04-25 Maarten Brock <sourceforge.brock AT dse.nl>
3145
3146         * src/ds390/gen.c (AccAXRrl1, AccAXLrl1): changed to real rotate by 1,
3147           (AccAXRsh1): added, shift right by 1,
3148           (AccAXLsh, AccAXRsh, AccAXRshS): updated for AccAXRrl1, AccAXRsh1 and
3149            AccAXLrl1
3150         * support/regression/tests/rotate.c: use <stdint.h> and enabled ds390
3151
3152 2006-04-25 Bernhard Held <bernhard AT bernhardheld.de>
3153
3154         * src/SDCCast.c (decorateType): partial fix for RFE 1475769,
3155         remove cast to same type
3156         * src/SDCCast.c (decorateType): fix for RFE 1475742,
3157         optimize 'ifx (op == 0)' resp. 'ifx (op != 0)'
3158         * as/z80/Makefile,
3159         * link/z80/Makefile: removed, they have moved to
3160         Makefile.in files
3161         * configure,
3162         * configure.in: replaced duplicate message about ucsim by missing sdcpp
3163         * install-sh: fix bug #1204398 by setting umask 0022
3164         * device/lib/Makefile: separate build of z80 and gbz80 lib
3165
3166 2006-04-24 Bernhard Held <bernhard AT bernhardheld.de>
3167
3168         Enabled VPATH feature: changed nearly all Makefiles (149 files).
3169         See sdccman.lyx '2.4.10 VPATH feature' about how to use it.
3170
3171         One basic decision: e.g. src/clean.mk includes further files. In order
3172         to make this work there are two solutions:
3173         - rename another dozen clean.mk to clean_in.mk, add srcdir to them and
3174           run configure on them. This way they can use
3175           'include $(srcdir)/port-clean.mk'
3176         - always include clean.mk by the Makefile at the same level. To avoid
3177           that `make clean` tries to include and build Makefile.dep the
3178           MAKECMDGOALS are examined (see e.g. src/Makefile.in). This has been
3179           implemented, because now even `make uninstall` doesn't create
3180           Makefile.in. clean.mk could be eliminated by pasting it in
3181           Makefile.in.
3182
3183         * debugger/mcs51/Makefile.in: build own objects from library sources
3184         (SLIB, SDCC) in current directory
3185
3186         * configure, configure.in: renamed --disable-device-lib-build in
3187         --disable-device-lib; added --enable-doc, the required tools are
3188         searched by configure; added result message; the toolchain for the
3189         belonging ports are now only built, if the port is enabled.
3190
3191         * support/regression/*: all output is written in directory gen, because
3192         the fwk and ports directories don't livet in the build tree using vpath
3193
3194         * doc/sdccman.lyx: renamed --disable-device-lib-build to
3195         --disable-device-lib, added --enable-doc, added section VPATH
3196
3197         * sim/ucsim/configure.in,
3198         * sim/ucsim/configure.in: hc08 couldn't be disabled, now hc08 and
3199         z80 are enabled by default
3200
3201 2006-04-24 Raphael Neider <rneider AT web.de>
3202
3203         * src/pic/device.c (pic14_assignConfigWordValue): remember assignments
3204             to config word, "pic14_"-prefixed some extern functions
3205           (pic14_emitConfigWord): emit __config directive(s) if assignment to
3206             config word has been found
3207         * src/pic/device.h: added prototypes
3208         * src/pic/pcode.c: added "pic14_"-prefix where needed
3209         * src/pic/ralloc.c (IS_CONFIG_ADDRESS,pic14_assignRegisters): cosmetic
3210             fixup
3211         * src/pic/glue.c (pic14_constructAbsMap): handle assignments to config
3212             words,
3213           (pic14emitRegularMap): ignore config words,
3214           (pic14createInterruptVect): moved generating __config directives away
3215           (picglue): have __config directives emitted
3216
3217 2006-04-24 Borut Razem <borut.razem AT siol.net>
3218
3219         * doc/Makefile: sync with nightly build makefile
3220
3221 2006-04-24 Raphael Neider <rneider AT web.de>
3222
3223         * src/pic/pcoderegs.c (OptimizeRegUsage): do not optimize
3224             registers that have not been assigned proper liveranges,
3225             fixes #1469504 and #1474602,
3226           (pCodeRegOptimizeRegUsage): fixed typo in comment
3227
3228 2006-04-24 Borut Razem <borut.razem AT siol.net>
3229
3230         * device/examples/main8051.c: deleted - it was removed from CVS
3231           24.mar.2000 and after that modified 18.feb.2001, so it reappered
3232           after the transition to Subversion
3233         * src/SDCCalloc.h: deleted - it was removed  from CVS
3234           3.feb.2001 and after that modified 18.feb.2001, so it reappered
3235           after the transition to Subversion
3236         * sim/ucsim/cpu.gif, sim/ucsim/interrupt.gif, sim/ucsim/new.gif,
3237           sim/ucsim/serial1.gif, sim/ucsim/serial2.gif,
3238           sim/ucsim/term_cpuopt.gif, sim/ucsim/timers.gif, sim/ucsim/wins.gif,
3239           sim/ucsim/post.jpg, sim/ucsim/UCsim.jpg: corrected
3240
3241 2006-04-22 Maarten Brock <sourceforge.brock AT dse.nl>
3242
3243         * as/asx8051.dsp: added mcs51/strcmpi.h
3244         * as/hc08/as_hc08.dsp: added asm.h, m6808.h, strcmpi.h
3245         * as/hc08/aslink.h: updated lnksect prototype
3246         * as/hc08/asm.h,
3247         * as/mcs51/asm.h: added a_addr to struct area and s_org to struct sym
3248         * as/hc08/asmain.c,
3249         * as/mcs51/asmain.c (asmbl): init dot.s_org for S_ORG,
3250           (newdot): handle A_ABS
3251         * as/hc08/asout.c,
3252         * as/mcs51/asout.c (outarea): output address
3253         * as/hc08/lkaomf51.c,
3254         * as/mcs51/lkaomf51.c: disabled unused array UsageType
3255         * as/hc08/m08pst.c,
3256         * as/mcs51/i51pst.c,
3257         * as/z80/z80pst.c: "ABS" is not A_OVR
3258         * as/hc08/lkarea.c (newarea): read a_addr,
3259           (lnkarea): added codemap array, sort absolute areas to the front,
3260            combine all GSINITx/GSFINAL,
3261           (find_empty_space, allocate_space): new functions,
3262           (lnksect): return next address, handle absolute sections
3263         * as/mcs51/lkarea.c (newarea): read a_addr,
3264           lnksect2 prototype changed,
3265           (lnkarea2): define codemap unsigned, combine all GSINITx/GSFINAL,
3266           (find_empty_space, allocate_space): new, factored out of lnksect2,
3267           (lnksect2): return next address, handle absolute sections
3268         * as/hc08/lkhead.c,
3269         * as/mcs51/lkhead.c (newhead): head is absolute but not overlay
3270         * as/hc08/lklibr.c (addfile, fndsym),
3271         * as/mcs51/lklibr.c (addfile, buildlibraryindex, fndsym): prevent
3272           index out of range and detect both '\' and '/'
3273         * device/include/mcs51/c8051f200.h: added _XPAGE, removed bad comment
3274         * device/include/stdbool.h: removed SDCC_ds390 from check to pass
3275           regression tests (ds390 cannot return bool yet)
3276         * doc/sdccman.lyx: changed version number, document changed --no-peep,
3277           document critical interrupts on z80, document changed SDCC define
3278         * src/asm.c (_asxxxx_mapping): fixed .org directive,
3279           (_a390_mapping): added .org directive
3280         * src/hc08/gen.c (transferAopAop): made bytemask log to fix warning,
3281           (genMultOneByte): fixed warnings
3282         * src/hc08/hc08.dsp: lowered warning level to 2 to suppress pedantic
3283           ones
3284         * src/pic16/device.c: removed newReg prototype, removed BYTE_IN_LONG
3285         * src/pic16/gen.c (pic16_popGetLabel): made parameter key signed,
3286           (pic16_genLeftShiftLiteral, genRightShiftLiteral): fixed warnings
3287         * src/pic16/gen.h: changed prototype for pic16_popGetLabel
3288         * src/pic16/main.c: removed newReg prototype
3289         * src/pic16/pcode.c,
3290         * src/pic16/pcode.h (pic16_emitDB): changed parameter c to int to fix
3291           warnings
3292         * src/pic16/pic16.dsp: lowered warning level to 2 to suppress pedantic
3293           ones
3294         * src/pic16/ralloc.c
3295         * src/pic16/ralloc.h (newReg): changed type to int and size to unsigned
3296           to fix warnings
3297         * src/pic/pcode.c (allocInternalRegister): changed parameter optype
3298           from short to PIC_OPTYPE
3299         * src/pic/pic.dsp: lowered warning level to 2 to suppress pedantic ones
3300         * src/pic/ralloc.c (newReg, allocInternalRegister): changed parameter
3301           optype from short to PIC_OPTYPE
3302         * src/port.h: made int_size unsigned to fix warnings
3303         * src/SDCC.y: fixed warning on MSVC
3304         * src/SDCCicode.c (getArraySizePtr): return unsigned int
3305         * src/SDCCopt.c (convertToFcall): fixed warnings
3306         * src/SDCCsymt.h: removed double prototype for genSymName
3307         * src/xa51/ralloc.c (allocReg): made size unsigned int, type int and
3308           offset int to fix warnings
3309
3310 2006-04-22 Borut Razem <borut.razem AT siol.net>
3311
3312         * doc/sdccman.lyx, */Makefile, */Makefile.in:
3313           references to CVS replaced with Subversion
3314
3315 2006-04-21 Borut Razem <borut.razem AT siol.net>
3316
3317         * doc/sdccman.lyx, */Makefile, */Makefile.in:
3318           references to CVS replaced with Subversion
3319
3320 2006-04-19 Borut Razem <borut.razem AT siol.net>
3321
3322         * src/version.awk: adapted for svn
3323         * /asxxxx/asxhtml/*.gif: set property svn:mime-type to image/gif
3324           sim/ucsim/doc/*.gif: set property svn:mime-type to image/gif
3325           sim/ucsim/doc/*.jpg: set property svn:mime-type to image/jpeg
3326           /binutils-avr/etc/*.vi, *.jin: removed all properties
3327           support/scripts/sdcc.ico: set property svn:mime-type to image/x-icon
3328
3329 2006-04-19 Borut Razem <borut.razem AT siol.net>
3330
3331         * CVS to Subversion migration completed
3332
3333 2006-04-18 Borut Razem <borut.razem AT siol.net>
3334
3335         * support/scripts/sdcc.nsi: removed unexisting ${DEV_ROOT}\lib\pic\*.o,
3336           ${DEV_ROOT}\lib\src\pic\libdev\*.S, ${DEV_ROOT}\lib\src\pic\libdev\*.inc
3337
3338 2006-04-17 Borut Razem <borut.razem AT siol.net>
3339
3340         * device/include/Makefile.in: added pic/*.inc to the installation
3341
3342 2006-04-15 Bernhard Held <bernhard AT bernhardheld.de>
3343
3344         * support/regression/collate-results.py: fixed output in case of
3345         a valdiag error
3346         * support/regression/generate-cases.py: fixed splitting of pathnames
3347         with dots
3348         * as/hc08/lklibr.c (addfile),
3349         * as/mcs51/lklibr.c (addfile): fixed off-by-one bug
3350
3351 2006-04-11 Raphael Neider <rneider AT web.de>
3352
3353         * src/pic16/gen.c (getFreePtr, pic16_popRegFromString),
3354         * src/pic16/ralloc.c (pic16_allocregWithName): removed debug output
3355         * src/pic16/pcode.c (assignValnums): fixed #1460578
3356
3357 2006-04-11 Raphael Neider <rneider AT web.de>
3358
3359         * device/lib/pic/libdev/*.c,
3360         * device/include/pic/*.h: replaced sfr and data with __sfr and __data,
3361           fixes #1468739, enables compilation in --std-c99 mode
3362         * support/scripts/inc2h.pl: emit __sfr/__data instead of sfr/data
3363
3364 2006-04-11 Raphael Neider <rneider AT web.de>
3365
3366         * src/pic/device.c (find_device): removed debug output
3367           (list_valid_pics): enabled verbose listing of supported devices
3368         * device/include/stdbool.h: define bool as char for pic14/16 as well
3369
3370 2006-04-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3371
3372         * src/SDCC.y: allow using brackets here: "__interrupt (1) __using (1)"
3373
3374 2006-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
3375
3376         * .version: bumped version to 2.5.6
3377         * src/pic/ralloc.c (newReg): MSVC doesn't support __builtin_return_address
3378
3379 2006-04-06 Raphael Neider <rneider AT web.de>
3380
3381         * .version: bumped version to 2.5.6 (pic14 ABI changed)
3382         * src/SDCCmain.c: add -DSDCC_PROCESSOR=<id> for pic14 port
3383         * src/pic/glue.c (emitSymbolToFile,pic14_constructAbsMap,
3384           pic14emitRegularMap,pic14emitMaps): moved output for absolute symbols to
3385             pic14_constructAbsMap
3386           (pic14printPublics): declare absolute global symbols as global
3387           (pic14createInterruptVect),
3388         * src/pic/ralloc.c (IS_CONFIG_ADDRESS): support second config word,
3389           (newReg): assume new registers unused, use correct name in
3390             hashtable (reg->name instead of name), more debugLog output
3391         * src/pic/device.h (PIC_device): added fields for verbose output
3392         * src/pic/device.c: moved device definition to pic14devices.txt,
3393             added routines for runtime parsing of pic14devices.txt,
3394             added support for second config word
3395         * src/pic/main.c (_process_pragma): removed #pragma maxram,
3396           (_pic14_keywords): no longer accept "bit" and "sbit" keywords
3397           (_pic14_initPaths): add search paths with "pic" suffix (not "pic14")
3398           (_pic14_parseOptions): moved pCodeInitRegisters here
3399           (_pic14_do_link): add "pic$(ARCH).lib" to linker arguments
3400         * src/pic/pcode.c (AnalyzeBanking): bail out on unset processor,
3401           (pCodeInitRegisters): rewrapped comments, perpared new approach to
3402             handling the pseudo stack
3403         * device/lib/Makefile.in: ignore failures in objects-pic16,
3404         * device/lib/pic/{configure,configure.in,Makefile}: added libdev/
3405         * device/lib/pic/NEWS: document new dependency on picXXX.lib
3406         * device/lib/pic/Makefile.subdir,
3407         * device/lib/pic16/Makefile.subdir: improved clean rules
3408         * device/lib/pic/libdev/: NEW, pic14 device libraries
3409         * device/lib/pic/libsdcc/_gptr{get,put}{1,2,3,4}.S: use _X not X
3410         * device/lib/pic/libsdcc/macros.inc: use _X not X, declare default SFRs
3411         * device/include/Makefile.in: create subdir and install pic14 headers
3412         * device/include/pic/p16f_common.inc: removed unused declarations
3413         * device/include/pic/pic16*.h: added header files for 100+ 14 bit
3414             PICs from inc2h.pl v1.6,
3415             replaced BIT_AT macros with struct declarations
3416         * device/include/pic/pic14devices.txt: definition of supported devices,
3417             all above improvements contributed by Zik Saleeba, thanks
3418         * support/scripts/inc2h.pl: removed BIT_AT, replaced with structs
3419         * support/scripts/sdcc.nsi: also install pic14 device libraries and
3420             headers
3421
3422 2006-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
3423
3424         * device/include/mcs51/c8051f410.h: added interrupt numbers,
3425         * device/include/mcs51/c8051f200.h: old SiLabs mcu completes the list,
3426           thanks to Charles Olds
3427
3428 2006-04-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3429
3430         * debugger/mcs51/cmd.c (infoRegisters): show return address on stack
3431
3432 2006-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
3433
3434         * src/SDCCpeeph.c (labelIsReturnOnly): fixed bug 1464657
3435         * src/mcs51/gen.c (genJumpTab): fixed bug in medium model
3436         * support/regression/bug1464657.c: added, new test
3437
3438 2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
3439
3440         * src/SDCCmain.c (preProcess): implemented RFE 1449908, define SDCC as the
3441           version number
3442
3443 2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
3444
3445         * src/SDCCpeeph.c (initPeepHole): implemented RFE 1460196, when both
3446           --no-peep and --peep-file <file> are used don't use default rules but
3447           do use the <file>
3448
3449 2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
3450
3451         * src/mcs51/gen.c (genCall): fixed bug 1457608
3452
3453 2006-03-30 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3454
3455         * doc/sdccman.lyx: reverted to version 1.129 of december as my latest
3456         changes seem to cause (trigger?) problems with the build system.
3457
3458 2006-03-29 Maarten Brock <sourceforge.brock AT dse.nl>
3459
3460         * src/SDCCpeeph.c (operandsLiteral): new, added,
3461           (callFuncByName): inserted operandsLiteral
3462         * src/mcs51/peeph.def: reenabled 132.e, added extra check to 132.x
3463
3464 2006-03-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3465
3466         * doc/sdccman.lyx: added paragraph "Use of SDCC in Education"
3467         * src/mcs51/peeph.def: disabled rule 132.e fixing bug #1453093
3468
3469 2006-03-24 Maarten Brock <sourceforge.brock AT dse.nl>
3470
3471         * src/z80/gen.c (genFunction, genEndFunction): fixed bug 1160666,
3472           implemented patch 1120823 Thanks to Willy De la Court (normal
3473           interrupts need an interrupt number now if they are made critical),
3474           and enabled nesting of critical functions though not for gbz80
3475           (genCritical, genEndCritical): added functions
3476           (genZ80Code): added cases for CRITICAL and ENDCRITICAL
3477         * src/z80/mappings.i: added "ei" to all mappings
3478
3479 2006-03-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3480
3481         * sim/ucsim/cmd.src/newcmdcl.h: applied patch fixing GCC 4.1 build
3482         submitted by the Debian SDCC maintainer Aurelien Jarno:
3483         "Credits goes to Martin Michlmayr, who rebuilt the whole Debian
3484         archive with gcc 4.1 on mips and wrote the patch"
3485
3486 2006-03-16 Raphael Neider <rneider AT web.de>
3487
3488         * src/pic16/genarith.c (genAddLit): simplified and fixed case where
3489           the left operand is shorter than the result (c* = lit-c* + int),
3490           fixes bug #1450796
3491         * src/pic16/gen.c (genRightShift): check IS_SYMOP before accessing
3492           OP_SYMBOL
3493
3494 2006-03-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
3495
3496         * src/.version: increased version number to 2.5.5
3497         * src/SDCCmain.c (linkEdit): do not test for PIC16 target since, PIC16
3498         linking is done manually in pic16 port's _linkEdit,
3499         * src/SDCCsymt.c (compStructSize): for target PIC16 and shell variable
3500         PIC16_PACKED_BITFIELDS, compact bitfield structures as much as possible,
3501         * src/pic16/gen.c (aopForSym): when direct register name is WREG then
3502         allocate asmop as AOP_ACC,
3503         (aopForRemat): added parameter 'bool result' in function declaration,
3504         (pic16_aopGet): return AOP_ACC when accessing WREG,
3505         (pic16_popGetTempReg): minor modification,
3506         (pic16_popRegFromIdx): first try with 'pic16_regWithIdx' then with
3507         'pic16_allocWithIdx',
3508         (genPcall): removed ftype, usage of OP_SYM_TYPE asserted error when
3509         calling function in absolute addresses,
3510         (genAssign): take into account AOP_ACC asmop,
3511         * src/pic16/pcode.c (pic16_newpCodeOpReg): minor modifications,
3512         * src/pic16/pcoderegs.c: some debug functions and lines added,
3513         * src/pic16/ralloc.c (decodeRegType): added but commented out,
3514         * (pic16_typeRegWithIdx): search 'pic16_dynInternalRegs' for given
3515         register too,
3516         * (pic16_findFreeReg, pic16_findFreeRegNext): allocate new register via
3517         call to allocReg, not by manually allocating a new one,
3518         (pic16_assignRegisters): now before going through the register
3519         allocating functions mark all registers as free. This eliminates some
3520         side effects resulting from peephole parser done earlier in the backbone
3521
3522 2006-03-13 Maarten Brock <sourceforge.brock AT dse.nl>
3523
3524         * src/SDCCicode.c (geniCodeLogic),
3525         * src/SDCCast.c (decorateType): applied patch by Bernhard for rfe 1422617
3526
3527 2006-03-10 Maarten Brock <sourceforge.brock AT dse.nl>
3528
3529         * src/mcs51/gen.c (sameReg): new, checks if two aop regs are the same,
3530           (genSend): bugfix, do not allocate and free twice,
3531           (shiftRLong): handle partially overlapping aops
3532         * support/regression/tests/bitopcse.c: fixed warning redefined idata
3533
3534 2006-03-08 Borut Razem <borut.razem AT siol.net>
3535
3536         * support/regression/fwk/include/testfwk.h: added defines for xdata, idata
3537           for pic16
3538
3539 2006-03-08 Maarten Brock <sourceforge.brock AT dse.nl>
3540
3541         * support/regression/tests/bug1409955.c: new, added
3542         * src/mcs51/gen.h: changed asmop.freed:1 to asmop.allocated for tracking
3543         * src/mcs51/gen.c (newAsmop): set asmop.allocated to 1,
3544           (aopForSym, aopOp): increment asmop.allocated if reused,
3545           (freeAsmop): decrement asmop.allocated and check for zero instead of
3546           using asmop.freed,
3547           (freeForBranchAsmop): use asmop.allocated instead of asmop.freed,
3548           (genNot, genCpl, genUminus, genMinus, genMult, genDiv, genMod, genCmpGt,
3549            genCmpLt, genAndOp, genOrOp, genAnd, genOr, genXor, genRRC, genRLC,
3550            genGetHbit, genGetAbit, genGetByte, genGetWord, genSwap,
3551            genLeftShiftLiteral, genLeftShift, genRightShiftLiteral,
3552            genSignedRightShift, genRightShift, genDataPointerGet,
3553            genPagedPointerGet, genFarPointerGet, genCodePointerGet,
3554            genGenPointerGet, genDataPointerSet, genAssign, genCast): free asmop's
3555             in reverse order from allocation,
3556           (genPlus, genCmpEq): free asmop's in reverse order from allocation and
3557             added swappedLR to keep track
3558         * support/regression/fwk/include/testfwk.h: added defines for xdata, idata,
3559           pdata & code for GCC, z80, gbz80 & hc08
3560         * support/regression/tests/zeropad.c: moved defines to testfwk.h
3561
3562 2006-03-08 Raphael Neider <rneider AT web.de>
3563
3564         * src/pic16/main.c (_hasNativeMulFor): fixed bug #1444425
3565
3566 2006-03-07 Maarten Brock <sourceforge.brock AT dse.nl>
3567
3568         * device/include/mcs51/c8051f410.h: new SiLabs mcu
3569         * src/ds390/peeph.def: disabled 186.d and 227.a as fix for #1434401
3570         * support/regression/tests/array.c: added parenthesis, made arrays unsigned
3571
3572 2006-03-06 Borut Razem <borut.razem AT siol.net>
3573
3574         * support/regression/ports/pic16/spec.mk: link with libm18f.lib,
3575           made the linker quiet
3576
3577 2006-03-06 Vangelis Rokas <vrokas AT users.sourceforge.net>
3578
3579         * src/pic16/gen.c (genPcall): fixed bug #1443644
3580         * src/pic16/device.h (struct pic16_options_t): added 'int CATregs' flag
3581         which dumps before the function entry point a data byte which represents
3582         the number of the local variables used by the specified function, added
3583         'xinst' for initial support for Extended Instruction Support,
3584         * src/pic16/gen.c (aopForSym, pic16_aopGet): beautifications,
3585         (pic16_testStackOverflow): do not prefix GSTACK_TEST_NAME with
3586         port->fun_prefix anymore (may change later),
3587         (genFunction, genEndFunction): do not store/restore local registers for
3588         _main (this should take care the --main-return command line option in
3589         the future),
3590         (genOr): removed some legacy pic-port instructions,
3591         * src/pic16/genarith.c (genAddLit): re-enabled old code because
3592         performing operations with SFR's causes data to be written more than
3593         once to each SFR. Perhaps SFRs should be handled in special cases...
3594         * src/pic16/glue.c: macros BIG_ENDIAN and BYTE_IN_LONG are moved to
3595         pcode.h
3596         * src/pic16/main.c (_process_pragma): stack bound checking did not take
3597         into account for stack starting position,
3598         (struct OPTIONS pic16_optionsTable): added command line argument
3599         --extended or -y for Extended Instruction Support,
3600         * src/pic16/ralloc.c (pic16_decodeOp): added case for FUNCTION,
3601         (deassignLRs): *** perhaps the most important change, old 'for' code
3602         (commented out for reference), didn't account for some registers which
3603         were left marked 'not free' after a pointer operation. The change
3604         reduces register usage a lot in some cases
3605
3606 2006-03-04 Borut Razem <borut.razem AT siol.net>
3607
3608         * support/regression/ports/hc08/spec.mk: remove *.asm in traget
3609           _clean
3610         * support/regression/tests/bug-524697.c: decreased array size for
3611           mcs51 to fit into the internal RAM
3612         * support/regression/Makefile.in: a little bit more verbose
3613
3614 2006-03-03 Borut Razem <borut.razem AT siol.net>
3615
3616         * support/regression/fwk/lib/testfwk.c,
3617           support/regression/fwk/include/testfwk.h: introduced function
3618           _prints(), nonrecursive _printn(), call _initEmu() from main()
3619         * support/regression/ports/gbz80/support.asm,
3620           support/regression/ports/ucz80/support.asm,
3621           support/regression/ports/z80/support.asm,
3622           support/regression/ports/ds390/support.c,
3623           support/regression/ports/hc08/support.c,
3624           support/regression/ports/host/support.c,
3625           support/regression/ports/mcs51/support.c,
3626           support/regression/ports/xa51/support.c: added empty _initEmu()
3627           function
3628         * support/regression/ports/pic16/gpsim.cmd,
3629           support/regression/ports/pic16/spec.mk,
3630           support/regression/ports/pic16/support.c,
3631           support/regression/Makefile.in: added pic16 regression test
3632
3633 2006-03-01 Raphael Neider <rneider AT web.de>
3634
3635         * src/pic16/gen.c (genPcall,pic16_derefPtr,genGenPointerGet,
3636           genConstPointerGet): use safe way of generating MOVFF to cover
3637             literals as well as registers, fixes bug #1440527
3638         * src/pic16/glue.c (pic16_printIvalBitFields): prevent NULL pointer
3639             dereference
3640           (pic16_printIvalUnion,pic16_isUnion): NEW, handle initialized unions
3641             more correctly, fixes bug #1232186
3642           (pic16_printIval): use pic16_printIvalUnion() for initialized unions
3643         * src/pic16/main.c (_pic16_linkEdit): reorder linker arguments to make
3644             gplink guess the correct processor in more cases, applied patch
3645             from Till Riedel attached to and fixing bug #1436552
3646
3647 2006-02-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3648
3649         * support/regression/tests/array.c: added, contains check for #1434401
3650         * src/mcs51/peeph.def: disabled 186.d as temporary fix for #1434401
3651
3652 2006-02-16 Maarten Brock <sourceforge.brock AT dse.nl>
3653
3654         * device/include/mcs51/at89s8253.h: new, thanks to Krzysztof Polomka
3655         * device/include/mcs51/at89S8252.h: fixed, thanks to Krzysztof Polomka
3656         * device/include/mcs51/c8051f326.h,
3657         * device/include/mcs51/c8051f340.h: new SiLabs mcu's
3658         * device/include/mcs51/c8051f000.h,
3659         * device/include/mcs51/c8051f018.h,
3660         * device/include/mcs51/c8051f020.h: used () with __at, renamed IDLE,STOP to
3661           PCON_IDLE,PCON_STOP and added sfr16 definitions
3662
3663 2006-02-14 Maarten Brock <sourceforge.brock AT dse.nl>
3664
3665         * src/mcs51/gen.c (genPlus, genMinus, genMult, genGetAbit, genGetByte,
3666           genGetWord): fixed bug 1409955
3667
3668 2006-02-14 Maarten Brock <sourceforge.brock AT dse.nl>
3669
3670         * device/include/hc08/mc68hc908gp32.h,
3671         * device/include/hc08/mc68hc908jb8.h: removed AWUL, added PTA6 & PTA7
3672
3673 2006-02-13 Maarten Brock <sourceforge.brock AT dse.nl>
3674
3675         * src/SDCCast.c (constExprValue): return NULL if not a value
3676         * src/SDCCglue.c (printIvalArray): fixed bug 1225568
3677         * src/hc08/gen.c(genUnpackBits, genUnpackBitsImmed): fixed bug 1019480
3678         * support/regression/tests/bitfields.c: enabled signed bitfield for all
3679
3680 2006-02-13 Borut Razem <borut.razem AT siol.net>
3681
3682         * src/regression/ptrarg.c: added, fails due to bug #1430967
3683         * src/regression/Makefile: ptrarg.c added, ...
3684
3685 2006-02-12 Maarten Brock <sourceforge.brock AT dse.nl>
3686
3687         * src/z80/gen.c (genUnpackBits): fixed bug 1019480
3688         * support/regression/tests/bitfields.c: enabled signed bitfield for z80
3689
3690 2006-02-11 Borut Razem <borut.razem AT siol.net>
3691
3692         * src/SDCCmain.c: Added "sdcc: Calling linker..." if --verbose,
3693           print "Processor: xxx" message to stdout only if --verbose
3694
3695 2006-02-11 Maarten Brock <sourceforge.brock AT dse.nl>
3696
3697         * src/SDCCglue.c (printIvalStruct): fixed bug 1426356 union initializer
3698         * support/regression/tests/bug1426356.c: added
3699         * support/regression/tests/bitfields.c: removed 2 tests
3700
3701 2006-02-10 Maarten Brock <sourceforge.brock AT dse.nl>
3702
3703         * device/include/mcs51/at89c51snd1c.h: updated comments, see patch 1428901
3704         * device/include/mcs51/c8051f330.h,
3705         * device/include/mcs51/c8051f350.h: used () with __at, renamed IDLE,STOP to
3706           PCON_IDLE,PCON_STOP and added sfr16 definitions
3707         * device/lib/_divsint.c,
3708         * device/lib/_divuint.c,
3709         * device/lib/_divulong.c,
3710         * device/lib/_divulong.c: renamed a,b to x,y to avoid confusion, fixed
3711           register bank bug for small stackauto
3712
3713 2006-02-09 Maarten Brock <sourceforge.brock AT dse.nl>
3714
3715         * support/regression/fwk/lib/timeout.c: include <stdlib.h> for exit()
3716
3717 2006-02-08 Maarten Brock <sourceforge.brock AT dse.nl>
3718
3719         * support/regression/ports/mcs51-xstack-auto/spec.mk: forgot -I(...)/mcs51
3720         * all.dsp: corrected several bin paths
3721         * device/include/mcs51/c8051f120.h,
3722         * device/include/mcs51/c8051f300.h,
3723         * device/include/mcs51/c8051f310.h: used () with __at and renamed IDLE,STOP
3724           to PCON_IDLE,PCON_STOP
3725         * device/include/mcs51/c8051f320.h: see above, also added sfr16 definitions
3726         * device/lib/printf_large.c (output_float): fixed bug 1388703
3727         * support/regression/tests/bug1057979.c: added test for bug 1388703
3728
3729 2006-02-08 Raphael Neider <rneider AT web.de>
3730
3731         * src/pic/pcode.c (pciTRIS): fixed typo,
3732           (BuildFlow,LinkFlow_pCode): added (disabled) debug output,
3733           (LinkFlow): fixed handling of flows that end in a call,
3734           (ReuseReg): perform safety check earlier
3735         * src/pic/pcoderegs.c (pCodeRegMapLiveRangesInFlow): fixed
3736             to work with flows at the beginning of a pBlock,
3737             fixes #1426557 (Symbol not previously defined),
3738           (pic14_ReMapLiveRanges): NEW, destroy and rebuild register
3739             usage information
3740           (RemoveUnusedRegisters): update register usage info
3741         * src/pic/ralloc.c (newReg): prevent duplicate registers from being
3742             created, reuse existing ones instead
3743         * src/pic/gen.c (genPcall): fixed #1424719
3744
3745 2006-02-07 Bernhard Held <bernhard AT bernhardheld.de>
3746
3747         * link/z80/lkmain.c,
3748         * link/z80/lklex.c,
3749         * link/z80/lkdata.c,
3750         * link/z80/aslink.h: fixed build on current cygwin:
3751         replaced getline() by lk_getline()
3752
3753 2006-02-01 Borut Razem <borut.razem AT siol.net>
3754
3755         * src/regression/add.c, src/regression/add2.c, src/regression/add3.c,
3756           src/regression/add4.c, src/regression/and1.c, src/regression/and2.c,
3757           src/regression/arrays.c, src/regression/b.c, src/regression/bank1.c,
3758           src/regression/bool1.c, src/regression/bool2.c,
3759           src/regression/bool3.c, src/regression/call1.c,
3760           src/regression/compare.c, src/regression/compare10.c,
3761           src/regression/compare2.c, src/regression/compare3.c,
3762           src/regression/compare4.c, src/regression/compare5.c,
3763           src/regression/compare6.c, src/regression/compare7.c,
3764           src/regression/compare8.c, src/regression/compare9.c,
3765           src/regression/configword.c, src/regression/for.c,
3766           src/regression/inline.c, src/regression/mult1.c,
3767           src/regression/nestfor.c, src/regression/or1.c,
3768           src/regression/pointer1.c, src/regression/ptrfunc.c,
3769           src/regression/rotate1.c, src/regression/rotate2.c,
3770           src/regression/rotate3.c, src/regression/rotate4.c,
3771           src/regression/rotate5.c, src/regression/rotate6.c,
3772           src/regression/rotate7.c, src/regression/string1.c,
3773           src/regression/struct1.c, src/regression/sub.c,
3774           src/regression/sub2.c, src/regression/switch1.c,
3775           src/regression/while.c, src/regression/xor.c,
3776           src/regression/create_stc, src/regression/simulate,
3777           src/regression/rt.sh, src/regression/Makefile: reenabled Scott's PIC14
3778           regression tests
3779         * src/regression/gpsim_assert.h: added
3780
3781 2006-01-28 Bernhard Held <bernhard AT bernhardheld.de>
3782
3783         * src/ds390/gen.c (unsaveRegisters): fixed literal function pointer
3784         ((void (code *) (void)) 0) ();
3785         * as/hc08/aslex.c,
3786         * as/hc08/aslink.h,
3787         * as/hc08/asm.h,
3788         * as/hc08/asmain.c,
3789         * as/hc08/lkdata.c,
3790         * as/hc08/lklex.c,
3791         * as/hc08/lkmain.c,
3792         * as/mcs51/aslex.c,
3793         * as/mcs51/aslink.h,
3794         * as/mcs51/asm.h,
3795         * as/mcs51/asmain.c,
3796         * as/mcs51/lkdata.c,
3797         * as/mcs51/lklex.c,
3798         * as/mcs51/lkmain.c,
3799         * as/z80/aslex.c,
3800         * as/z80/asm.h,
3801         * as/z80/asmain.c: fixed build on current cygwin:
3802         replaced getline() by as_getline()
3803
3804 2006-01-27 Bernhard Held <bernhard AT bernhardheld.de>
3805
3806         * src/SDCC.y: fixed bug #716242, exchanged pointer and function
3807         declarator in the symbol chain
3808         * src/SDCCsymt.h,
3809         * src/SDCCsymt.c (processFuncPtrArgs): added, removes "(void)"
3810         parameter list for function pointers
3811         * src/SDCCast.c (decorateType): added call of processFuncPtrArgs()
3812         * support/regression/tests/bug-716242.c: added
3813
3814 2006-01-20 Bernhard Held <bernhard AT bernhardheld.de>
3815
3816         * src/SDCCicode.c (geniCodeAdd, geniCodeArray): use char for array
3817         offset if possible
3818         * src/SDCCast.c (getLeftResultType): 255 fits in char, not 256
3819
3820 2006-01-18 Bernhard Held <bernhard AT bernhardheld.de>
3821
3822         * src/SDCCast.c (backPatchLabels): fixed bug #1408066: made it
3823         inifinitely recurseable, added static
3824         * support/regression/tests/bug-1408066.c: added
3825
3826 2006-01-17 Bernhard Held <bernhard AT bernhardheld.de>
3827
3828         * src/SDCCicode.h,
3829         * src/SDCCicode.c (newiTempPreheaderLabel, newiTempLoopHeaderLabel):
3830         renamed, added possibility to create "postLoopLbl"-labels
3831         * src/SDCCBBlock.c (iCodeBreakDown): renamed newiTempPreheaderLabel to
3832         newiTempLoopHeaderLabel
3833         * src/SDCCloop.c (newInduction, newRegion, backEdges, insertIntoLoop,
3834         isNotInBlocks, addToExitsMarkDepth, createLoop, dominatedBy,
3835         addDefInExprs, assignmentsToSym, isOperandInvariant, pointerAssigned,
3836         hasNonPtrUse, loopInvariants, addressTaken, findInduction,
3837         findDefInRegion, mergeRegions, ifMerged, mergeInnerLoops): made static,
3838         (pinduction, pregion, hasIncomingDefs, findLoopEndSeq): disabled,
3839         (basicInduction): fixed bug #136564, made static,
3840         (loopInduction): changed parameter of basicInduction, made static,
3841         (addPostLoopBlock): added
3842         * src/SDCCloop.h: removed backEdges, pregion, pinduction,
3843         loopOptimizations, addressTaken, findDefInRegion, hasIncomingDefs,
3844         findLoopEndSeq
3845         * support/regression/tests/bug-136564.c: added
3846         * support/regression/ports/mcs51-xstack-auto/spec.mk: added
3847         --std-sdcc99 to LIBSDCCFLAGS
3848
3849 2006-01-16 Bernhard Held <bernhard AT bernhardheld.de>
3850
3851         * src/SDCCicode.c (geniCodeIfx): fix bug 1406131: always false
3852         while loop
3853         * support/regression/tests/bug-1406131.c: added
3854
3855 2005-12-31 Bernhard Held <bernhard AT bernhardheld.de>
3856
3857         * src/SDCCast.c (decorateType): fix promotion of unary minus
3858         * src/SDCCsymt.c (computeType): beautified
3859         * src/SDCCval.c (cheapestVal): beautified, old non-Ansi version removed,
3860         (valUnaryPM, valComplement): fix sign and promotion,
3861         (valNot): ANSI: result type is int (SDCC: unsigned char)
3862         * support/regression/tests/uminus.c: speedup by removing superflous
3863         test case 'int'
3864         * support/regression/tests/onebyte.c: added promotion and signedness
3865         tests for unary minus
3866         * support/regressions/tests/bug-477927.c: disable warning about
3867         uninitialized variables
3868         * support/regression/tests/not.c: added
3869
3870 2005-12-28 Bernhard Held <bernhard AT bernhardheld.de>
3871
3872         * device/lib/Makefile.in: added --std-sdcc99 to CFLAGS
3873         * src/mcs51/gen.c (gen51Code): show final register usage after
3874         fillGaps in asm with --i-code-in-asm
3875         * src/SDCClrange.c (sequenceiCode, setLiveFrom, setLiveTo,
3876         markLiveRanges, markAlive, findNextUseSym, findNextUse, unvisitBlocks,
3877         incUsed, rliveClear, adjustIChain): made static,
3878         (setFromRange): excluded because it's unused,
3879         (findPrevUseSym, markWholeLoop): added,
3880         (findPrevUse): rewritten; fixes bug 895992; now a complete search
3881         through all branches of predecessors enables sdcc to emit the warning
3882         W_LOCAL_NOINIT, marking of outermost loop was incomplete,
3883         (rlivePoint): made static, added parameter emitWarnings which is only
3884         true during the first run out of two,
3885         (findRecursiveSucc, findRecursivePred): removed,
3886         (computeLiveRanges): made static, added parameter emitWarnings,
3887         (dumpIcRlive): added for debugging only
3888         * src/SDCClrange.h: added boolean parameter to computeLiveRanges(),
3889         removed prototype of setFromRange()
3890         * src/SDCCopt.c (eBBlockFromiCode): added new parameter emitWarnings
3891         in call of computeLiveRanges()
3892         * support/regression/tests/bug-895992.c: added
3893         * support/regression/tests/bug-971834.c: added
3894         * support/valdiag/tests/bug-895992.c: added
3895         * support/valdiag/tests/bug-971834.c: added
3896
3897 2005-12-18 Raphael Neider <rneider AT web.de>
3898
3899         * src/pic16/gen.c: added IS_DIRECT macro for "direct" operands,
3900           (genUnpackBits): improved code for direct operands,
3901           (genPackBits): improved code for literal assignment to bitfields
3902             and for direct destination operands (no FSR indirection),
3903             prevented redundant AND, fixes #1362800,
3904           (AccLsh): added parameter to disable masking of the result
3905         * src/pic16/pcode.c (pic16_safepCodeUnlink): fixed to work with
3906           skip instructions with side-effects (like incfsz),
3907           (pic16_pCodeIsAlive): suppress verbose output unless pcode_verbose,
3908         * src/pic16/pcoderegs.c (RemoveRegsFromSet): removed annoying warning
3909         * device/lib/pic16/Makefile.common.in: added --asm=@GPASM@ to CC,
3910           fixes #1375263
3911
3912 2005-12-11 Bernhard Held <bernhard AT bernhardheld.de>
3913
3914         * src/SDCCicode.c (geniCodeAssign): fixed bug 11369874, don't use
3915         volatile variables as spill location
3916
3917 2005-12-10 Bernhard Held <bernhard AT bernhardheld.de>
3918
3919         * src/SDCCcse.c (findCheaperOp): fixed bug 1376320, copy signedness to
3920         replacing literals
3921         * support/regression/tests/bug-1376320.c: added
3922
3923 2005-12-08 Raphael Neider <rneider AT web.de>
3924
3925         * src/pic/device.c: renamed is_shared to pic14_is_shared
3926         * src/pic/gen.c (genIfx): re-enabled handling of sbits
3927         * src/pic/glue.c (emitSymbolToFile): added workaround for sbits,
3928           (is_valid_identifier): added for above workaround
3929
3930 2005-12-07 Maarten Brock <sourceforge.brock AT dse.nl>
3931
3932         * device/lib/Makefile.in: fixed to enable port-specific-objects
3933         * device/lib/ds390/i2c390.c (BitOutI2C): optimized by making bout unsigned
3934           char, thanks Hubert Sack
3935         * doc/sdccman.lyx: documented --xstack-loc,
3936           elaborated a bit more on interrupts and pitfalls,
3937           removed "setjmp/longjmp unsupported",
3938           documented some unsupported C99 features
3939         * src/SDCCmain.c (linkEdit): adapted default lib path for --stack-auto
3940         * src/SDCCpeeph.c (readRules): inserted patch 1367130 for finding missing
3941           if, thanks Hubert Sack
3942         * src/mcs51/gen.c (genEndFunction): enabled "pop psw" for regbank 0 isr
3943         * support/regression/Makefile.in: test-mcs51-stack-auto no longer needs to
3944           make make_library
3945         * support/regression/get_ticks.py: new, get cpu cycles and code size, so
3946           regression tests can report resource usage (rfe 700441)
3947         * support/regression/collate-results.py: report resource usage
3948         * support/regression/ports/ds390/spec.mk,
3949         * support/regression/ports/hc08/spec.mk,
3950         * support/regression/ports/mcs51/spec.mk,
3951         * support/regression/ports/ucz80/spec.mk: run sim output through get_ticks
3952         * support/regression/ports/ds390/uCsim.cmd,
3953         * support/regression/ports/hc08/uCsim.cmd,
3954         * support/regression/ports/mcs51/uCsim.cmd,
3955         * support/regression/ports/ucz80/uCsim.cmd: inserted "state" to report time
3956         * support/regression/ports/mcs51-stack-auto/spec.mk: no need to build the
3957           library, use the default one
3958         * support/regression/ports/mcs51-xstack-auto/spec.mk: inserted rules for
3959           building the library
3960
3961 2005-12-06 Maarten Brock <sourceforge.brock AT dse.nl>
3962
3963         * config.dsp: added dependency on .version and configure_vc.awk
3964         * device/include/setjmp.h: updated for --stack-auto and --xstack
3965         * device/include/mcs51/at89c51snd1c.h: corrected line endings
3966         * device/include/mcs51/XC866.h: added, thanks Llewellyn van Zyl
3967         * device/lib/_setjmp.c: updated for --stack-auto and --xstack
3968         * device/lib/libsdcc.lib: added _setjmp
3969         * src/SDCCast.c (createIvalCharPtr): fixed warnings,
3970           (decorateType): fixed bug 1372851,
3971           (optimizeGetHbit): fixed warning
3972         * src/SDCCglue.c (printIvalChar, printIvalArray): adapted for flexible
3973           array initialisation
3974         * support/regression/tests/bug1057979.c: added test for bug 1358192
3975         * support/regression/tests/setjmp.c: added, test for setjmp/longjmp
3976
3977 2005-12-03 Borut Razem <borut.razem AT siol.net>
3978
3979         * support/scripts/sdcc.nsi: added /SOLID option to "SetCompressor lzma"
3980           command since the NSIS was upgraded to version 2.11 on CF x86-linux2
3981
3982 2005-11-29 Bernhard Held <bernhard AT bernhardheld.de>
3983
3984         * src/SDCCast.c (createIvalStruct, createIvalArray, createIvalPtr,
3985         createIval): implement symbol independant "flexible array member",
3986         (createIvalCharPtr): implemented flexible array initialisation with a
3987         string
3988         * src/SDCCsymt.c (copyStruct): removed,
3989         (getSize): fixed misleading comment,
3990         (getAllocSize): removed, the additional allocation size is now in
3991         sym->flexArrayLength,
3992         (checkStructFlexArray): new, syntax checks for flexible array members,
3993         (compStructSize): added syntax checks for "flexible array members"
3994         (copyStruct): removed,
3995         (copyLinkChain): removed inefficient fix for bug 770487
3996         * src/SDCCglue.c (emitRegularMap): getAllocSize has been removed
3997         * src/SDCCsymt.h: added structdef.b_flexArrayMember and
3998         symbol->flexArrayLength
3999         * src/SDCCerr.c,
4000         * src/SDCCerr.h: added W_INVALID_FLEXARRAY, W_C89_NO_FLEXARRAY,
4001         E_FLEXARRAY_NOTATEND and E_FLEXARRAY_INEMPTYSTRCT
4002         * support/regression/tests/structflexarray.c: added
4003         * support/valdiag/tests/structflexiblearray.c: added
4004
4005 2005-11-29 Bernhard Held <bernhard AT bernhardheld.de>
4006
4007         * src/SDCCast.c (decorateType): fixed bug 1368489
4008         * support/Util/SDCCerr.c,
4009         * support/Util/SDCCerr.h: added warning W_CMP_SU_CHAR
4010
4011 2005-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4012
4013         * device/include/mcs51/at89c51snd1c.h: added file submitted by
4014           Weston T. Schmidt <schmidtw AT users.sourceforge.net>, patch #1368001
4015
4016 2005-11-27 Borut Razem <borut.razem AT siol.net>
4017
4018         * support/cpp2/cppinit.c, support/cpp2/cpplib.h, support/cpp2/mkdeps.c,
4019           support/cpp2/mkdeps.h: added command line option
4020           -obj-ext=<extension> to SDCPP to define object file externion, used
4021           for generation of make dependencies (-M)
4022         * src/SDCCmain.c: pass -obj-ext=<extension> to SDCPP
4023
4024 2005-11-26 Borut Razem <borut.razem AT siol.net>
4025
4026         * support/scripts/sdcc.nsi: added small-stack-auto libraries,
4027           added missing device/lib/mcs51/crt*.asm, pic and pic16 sources,
4028           added pic and pic16 libraries
4029
4030 2005-11-26 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4031
4032         * device/include/float.h: Corrected typo in prototype of __fsgt
4033
4034 2005-11-25 Borut Razem <borut.razem AT siol.net>
4035
4036         * sdcc/device/lib/Makefile.in, sdcc/device/lib/incl.mk:
4037           added creation of model-mcs51-stack-auto libraries
4038
4039 2005-11-24 Bernhard Held <bernhard AT bernhardheld.de>
4040
4041         * src/SDCCsymt.c (copyLinkChain): fixed bug 770487, copy structdef
4042         and fields-list too
4043         * src/SDCCast.c (createIvalArray): removed obsolete comment
4044
4045 2005-11-24 Borut Razem <borut.razem AT siol.net>
4046
4047         * sdcc/device/lib/Makefile.in: remove all unnecessary files, 2nd try...,
4048           added missing device/lib/mcs51/crt*.asm sources
4049
4050 2005-11-23 Bernhard Held <bernhard AT bernhardheld.de>
4051
4052         * src/SDCCast.c (createIvalCharPtr): fixed bug 1348271
4053
4054 2005-11-22 Maarten Brock <sourceforge.brock AT dse.nl>
4055
4056         * device/lib/_fs2schar.c,
4057         * device/lib/_fs2sint.c,
4058         * device/lib/_fs2slong.c: optimized inline asm
4059
4060 2005-11-21 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4061
4062         * device/lib/_fs2slong.c, device/lib/_fs2sint.c, device/lib/_fs2char.c:
4063           Better handling of floats between -1.0 and 0.0.
4064
4065 2005-11-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4066
4067         * src/mcs51/peeph.def: added missing "if"s as noted by Hubert Sack.
4068           (the missing "if"s prohibited removal of redundant labels)
4069
4070 2005-11-19 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4071
4072         * device/lib/_fs2slong.c, device/lib/_fs2sint.c, device/lib/_fs2char.c:
4073           Properly convert floats between -1.0 and 0.0 to long, int, and char
4074           types (max integer value of negative floats tends to zero).
4075         * device/lib/modff.c, device/lib/ceilf.c, device/lib/floorf.c:
4076           Removed changes made so to work properly with floats between
4077           -1.0 and 0.0, as the problem is fixed in _fs2slong.c, _fs2sint.c,
4078           and _fs2char.c
4079
4080 2005-11-18 Bernhard Held <bernhard AT bernhardheld.de>
4081
4082         * src/SDCCcse.c (ReplaceOpWithCheaperOp): minor fix for debugging only
4083         * src/mcs51/gen.c (genUnpackBits): better code and a fix,
4084         (genCast) cosmetic change
4085         * src/ds390/gen.c (genUnpackBits, ): ported from mcs51
4086         * src/ds390/ralloc.c (packRegsForAssign): ported fix for bitfields
4087         from mcs51
4088         * support/regression/tests/bitfields (testSignedBitfields): added
4089
4090 2005-11-18 Borut Razem <borut.razem AT siol.net>
4091
4092         * sdcc/device/lib/Makefile.in: remove all unnecessary files
4093         * device/lib/pic/Makefile.rules, device/lib/pic16/Makefile.subdir:
4094           introduced SILENT option to make building of pic16 libraries less
4095
4096 2005-11-18 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4097
4098         * device/lib/modff.c, device/lib/ceilf.c, device/lib/floorf.c:
4099           Now they work properly with floats between -1.0 and 0.0
4100         * device/lib/printf_large.c: Removed temporary patch for bug 1358192
4101
4102 2005-11-18 Maarten Brock <sourceforge.brock AT dse.nl>
4103
4104         * src/SDCCicode.c (printOperand): added missing else
4105
4106 2005-11-18 Bernhard Held <bernhard AT bernhardheld.de>
4107
4108         * src/SDCCsymt.c (computeType): fixed bug 1358192: added missing else,
4109         reformatted for better readability
4110         * src/mcs51/gen.c (genUnpackBits): initial, incomplete support for
4111         signed bitfields
4112
4113 2005-11-17 Borut Razem <borut.razem AT siol.net>
4114
4115         * device/lib/pic16/Makefile.rules, device/lib/pic16/Makefile.subdir:
4116           introduced SILENT option to make building of pic16 libraries less
4117           verbose - used for nightly snapshot build
4118         * doc/sdccman.lyx: documented that SDCDB and ucSim are currently not
4119           available on Win32 platforms.
4120         * sdcc/device/lib/Makefile.in: added library sources for mcs51, small,
4121           medium, large, pic and pic16
4122
4123 2005-11-16 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4124
4125         * device/lib/printf_large.c: Temporary patch for bug 1358192:
4126           printf("%f"...) sets fraction to zero.
4127
4128 2005-11-16 Raphael Neider <rneider AT web.de>
4129
4130         * src/pic/pcode.c (LinkFlow): handle empty flows correctly,
4131           fixes #1357221
4132         * src/pic/gen.c (genIfx): implemented for CARRY bit
4133         * src/pic16/gen.c (genAssign,genCast): fixed assigning/casting
4134           to generic pointers, fixes #1357332,
4135           (pic16_movLit2f): NEW,
4136           (pic16_storeForReturn,genDataPointerSet): use pic16_movLit2f
4137
4138 2005-11-14 Maarten Brock <sourceforge.brock AT dse.nl>
4139
4140         * src/SDCCmain.c (parseCmdLine): fixed bug 1356800, thanks rsudjian
4141
4142 2005-11-11 Raphael Neider <rneider AT web.de>
4143
4144         * src/pic/gen.c: handle FPOINTERS like POINTERS everywhere
4145         * src/pic16/gen.c (pic16_derefPtr): now works for non-pointers as well,
4146           compute pointer's type from operand,
4147           (genUnpackBits,genPackBits): handle FPOINTERS correctly, re-indented,
4148           improved single bit reads, fixes bug #1353379
4149
4150 2005-11-09 Borut Razem <borut.razem AT siol.net>
4151
4152         * support/scripts/sdcc.nsi: added lib/pic to the package
4153
4154 2005-11-08 Maarten Brock <sourceforge.brock AT dse.nl>
4155
4156         * src/SDCCval.c (valUnaryPM): fixed bug 1350699
4157
4158 2005-11-06 Maarten Brock <sourceforge.brock AT dse.nl>
4159
4160         * support/regression/tests/bug1348008.c: added
4161         * src/mcs51/gen.c (saveRBank, unsaveRBank): fixed bug 1348008
4162         * support/regression/tests/bug1337835.c: updated comment
4163
4164 2005-11-06 Borut Razem <borut.razem AT siol.net>
4165
4166         * sim/ucsim/error.cc, sim/ucsim/errorcl.h,
4167           sim/ucsim/sim.src/stack.cc, sim/ucsim/sim.src/stackcl.h,
4168           sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
4169           sim/ucsim/sim.src/mem.cc, sim/ucsim/sim.src/memcl.h,
4170           sim/ucsim/cmd.src/set.cc, sim/ucsim/cmd.src/show.cc:
4171           dynamic construction of cl_error_class and derivates - 2.nd try
4172
4173 2005-11-05 Borut Razem <borut.razem AT siol.net>
4174
4175         * sim/ucsim/sim.src/error.cc: fixed uninitialized class member variable
4176           bug, which caused Bus Errors on sparc solaris
4177
4178 2005-11-04 Borut Razem <borut.razem AT siol.net>
4179
4180         * sim/ucsim/error.cc, sim/ucsim/errorcl.h,
4181           sim/ucsim/sim.src/stack.cc, sim/ucsim/sim.src/stackcl.h,
4182           sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
4183           sim/ucsim/sim.src/mem.cc, sim/ucsim/sim.src/memcl.h,
4184           sim/ucsim/cmd.src/cmdconf.cc: dynamic construction of cl_error_class
4185           and derivates to resolve the initialization problem on OSX
4186
4187 2005-11-02 Borut Razem <borut.razem AT siol.net>
4188
4189         * sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/newcmd.cc:
4190           corrected typo - #include <winsock2.h>
4191
4192 2005-11-02 Maarten Brock <sourceforge.brock AT dse.nl>
4193
4194         * src/asm.c (printILine): always close tmpFile, thanks Beau E. Cox,
4195           (_asxxxx_mapping): added org directive for future enhancements
4196
4197 2005-11-01 Borut Razem <borut.razem AT siol.net>
4198
4199         * sim/ucsim/app.cc, sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/newcmd.cc:
4200           enabled sockets on WIN32
4201         * sim/ucsim/cmd.src/newcmd.cc: fixed bug with uninitialized variables
4202
4203 2005-10-31 Borut Razem <borut.razem AT siol.net>
4204
4205         * support/regression/generate-cases.py: escape backslashes in {testcase}:
4206           WIN32 backslash path delimiters should be escaped when used in C strings
4207         * support/regression/tests/bitfields.c: exclude failing assertions for
4208           __CYGWIN32__ and __MINGW32__ hosts
4209
4210 2005-10-30 Borut Razem <borut.razem AT siol.net>
4211
4212         * src/SDCCutil.c: corrected double comparison typo
4213
4214 2005-10-30 Maarten Brock <sourceforge.brock AT dse.nl>
4215
4216         * device/lib/medium/Makefile: added for new memory model medium
4217         * device/include/asm/mcs51/features.h: updated for medium/pdata
4218         * device/include/mcs51/c8051f120.h: added sfr16/sfr32 definitions,
4219           added Multiply & Accumulate sbit's and MAC0_PAGE define
4220         * device/include/mcs51/c8051f300.h: added sfr16 definitions
4221         * device/include/mcs51/c8051f310.h: added sfr16 definitions
4222         * device/lib/_mullong.c: update for medium model
4223         * device/lib/incl.mk: added medium model
4224         * doc/sdccman.lyx: documented medium model
4225         * src/SDCCast.c (isBitAndPow2): simplified using updated powof2
4226         * src/SDCCicode.c (geniCodeMultiply, geniCodeDivision): use updated powof2
4227         * src/SDCCmain.c (optionsTable, linkEdit): enabled medium model
4228         * src/SDCCmem.c (allocIntoSeg): set iaccess for pdata symbols,
4229           (allocParms): set SCLS and OCLS to pdata for medium model
4230         * src/SDCCsymt.c (processFuncArgs): use default_local_map and set iaccess
4231           for pdata,
4232           (powof2): return <0 if not power of 2
4233         * src/avr/gen.c (genBitWise): use updated powof2
4234         * src/mcs51/gen.c (genMinusDec): use acc if necessary,
4235           (shiftR2Left2Result): small optimization in setup, save acc when storing,
4236           (shiftLLeftOrResult): use B if necessary
4237         * src/mcs51/main.c (_mcs51_finaliseOptions, mcs51_port): added medium model
4238         * src/mcs51/peeph.def: renamed 226 to 226.b, added 226.a
4239         * src/pic/main.c (_pic14_do_link): made void parameter list explicit
4240         * support/regression/Makefile.in: added test-mcs51-medium
4241         * support/regression/ports/mcs51-medium/spec.mk: added to test medium model
4242
4243 2005-10-28 Bernhard Held <bernhard AT bernhardheld.de>
4244
4245         * src/SDCCsymt.c (compStructSize): make bitfields without (un)signed
4246         specifier unsigned
4247         * device/lib/time.c (mktime): fixed bug 1334315
4248
4249 2005-10-28 Raphael Neider <rneider AT web.de>
4250
4251         * device/include/pic/p16f_common.inc: added common declarations
4252         * src/pic/ralloc.c (initStack): moved regs *r to block start for Alpha
4253
4254 2005-10-27 Maarten Brock <sourceforge.brock AT dse.nl>
4255
4256         * src/mcs51/gen.c (getTempRegs): return 0 if not enough registers found,
4257           (aopPutUsesAcc): added to predict accumulator use,
4258           (assignResultValue): save acc if necessary,
4259           (genMinusDec): store result if indirectly addressed,
4260           (genDivOneByte):  save acc if necessary,
4261           (movLeft2Result): bugfix if left already in acc,
4262           (genAnd, genOr, genXor, shiftL2Left2Result, shiftR2Left2Result): pay more
4263             attention to accumulator use (esp. pdata),
4264           (genReceive): receive pdata correctly
4265         * src/SDCCicode.c (isOperandInPagedSpace): added to detect pdata operands
4266         * src/SDCCicode.h: added isOperandInPagedSpace prototype
4267
4268 2005-10-27 Raphael Neider <rneider AT web.de>
4269
4270         * doc/sdccman.lyx: corrected version (should be 2.5.4 not 2.5.5)
4271
4272 2005-10-27 Raphael Neider <rneider AT web.de>
4273
4274         * .version: changed version to 2.5.4
4275         * doc/sdccman.lyx: changed version to 2.5.4, added some remarks to PIC14
4276         * device/lib/pic/libsdcc/{_mulint.c,_mullong.c}: use unsigned literals,
4277           (_divschar.c,divuchar.c,_mulchar.c,_modschar.c,_moduchar): NEW,
4278             arithmetics support routines
4279         * device/lib/pic/Makefile.rules: have assembler sources preprocessed
4280         * device/lib/Makefile.in: also create installdir for pic
4281
4282         * src/SDCCopt.c (cnvToFcall): mark support routines `extern' for
4283           pic14 port as well
4284         * src/pic/device.c (dump_sfr): rewritten to delegate register
4285           placement to the linker (use `extern sym' rather than sym EQU addr),
4286           (validAddress): fixed to check last specified address
4287         * src/pic/gen.c (aopForSym): added code to deal with array (useless?),
4288           (popGetLit): truncate literal value to 8 bit,
4289           (popGet): moved assert to more appropriate place
4290           (popGetExternal): create pCode operand from and mark the according
4291             symbol as being `extern'
4292           (popGetAddr): added sanity check on immediate's offset, provide
4293             GPOINTER tag on demand
4294           (aopPut): fixed for immediates,
4295           (mov2w_op): move operand's address or contents to WREG (depending on
4296             operand type), safer variant of mov2w,
4297           (movwf,call_libraryfunc): NEW, handy abbreviations,
4298           (get_argument_pcop,get_return_val_pcop,pass_argument,
4299           get_returnvalue): interface for accessing function parameters and
4300             return values,
4301           (assignResultValuei,genRet): use new parameter/return value interface
4302           (pic14_getDataSize): back to old version handling generic pointers,
4303           (pic14_toBoolean,genNot,genCpl,genCmpEq,genOrOp): heavily rewritten,
4304             provided implementation and/or fixed old one,
4305           (genMultOneByte,genDivOneByte,genModOneByte): implemented as library
4306             calls, removed legacy 8051 reference code
4307           (AccLsh,AccRsh): rewritten and fixed to deal with signed operands
4308           (loadSignToC): NEW, move the operands sign bit to CARRY,
4309           (genGenericShift): NEW, replaces genLeftShift, genRightShift and
4310             genRightShiftSigned, accepts negative shift counts,
4311           (setup_fsr): load FSR and adjust IRP (indirect memory access),
4312           (emitPtrByteGet,emitPtrByteSet): rewritten, now works with
4313             generic pointers, __data pointers and __code pointers,
4314           (genUnpackBits,genPackBits): rewritten to work with generic pointers
4315             and signed bitfields, limit bitfields to 8 bit,
4316           (genDataPointerGet): fixed number of bytes read,
4317           (genGenPointerGet,genConstPointerGet): fixed bitfield access,
4318           (genPointerGet,genPointerSet): fixed handling of __code pointers,
4319             pointers to constant data are no longer assumed to point to __code
4320             space, removed invalid pointer types,
4321           (bitpatternFromVal): retrieve the PICs representation of an integer
4322             or float literal,
4323           (genDataPointerSet): fixed assigning to po_immediate operands,
4324           (genGenPointerSet): implemented as library call,
4325           (genIfx): fixed incorrect condition,
4326           (genAddrOf): limit generic pointers' addresses to 2 bytes,
4327             provide GPOINTER tag according to destination's storage class,
4328           (genCast): added code to handle casting to generic pointers, added
4329             sign-/zero extension of the result
4330           (aop_isLitLike,op_isLitLike): fixed handling of immediates
4331         * src/pic/gen.h: added macros to access IRP bit in STATUS register
4332         * src/pic/genarith.c (genAddLit): use min(result's,left's) size, sign
4333           extend the result
4334         * src/pic/glue.c (is_shared_address,is_shared): check whether a given
4335           address/register resides in the shared banks
4336           (emitSymbolToFile): improved to handle global and `pinned' symbols,
4337             put all variables into separate sections (have the linker arrange
4338             them)
4339           (picglue): put init code and interrupt handlers in separate sections
4340         * src/pic/main.c: added port specific options table, modified to PORT
4341           structure to make GPOINTERs 3 byte, added pic14_options
4342           (_pic14_do_link): private linking routine (update paths to libraries,
4343             add libsdcc.lib by default)
4344         * src/pic/main.h: declare pic14_options
4345         * src/pic/pcode.c: fixed instructions i/o relations,
4346           (RegCond): reverted to correct version,
4347           (newpCodeOpLit): truncate literals to 8 bit,
4348           (genericPrint): added debug output,
4349           (getRegFromInstruction): fixed for various operand types, simplified
4350           (BuildFlow): fixed broken handling of isntructions with labels
4351           (LinkFlow): start at last instruction in flow (skip trailing comments),
4352             pass the flow on to the next instruction after CALL
4353           (pCodeReplace): NEW, replace a pCode and move meta data to the new one
4354           (insertPCodeInstruction): fixed inserting after a skip instruction,
4355           (DoBankSelect): fixed for labeled instructions
4356           (OptimizepBlock): honor --nopeep switch
4357           (AnalyzeFlow,ReuseReg): prevent crash on source files with no function
4358         * src/pic/pcodepeep.c (pCodePeepMatchRule): prevent NULL pointer accesses
4359         * src/pic/pcoderegs.c (regIsLocal): NEW, check visibility of a register
4360           (pCodeOptime2pCodes): allow disabling this optimization via
4361             --no-pcode-opt due seldomly occuring bugs, fixed some conditions
4362             but is still buggy), started implementation of a dataflow based
4363             pCode optimization (CSE + dead code elimination)
4364           (pCodeRegMapLiveRangesInFlow): removed bogus inCond
4365         * src/pic/ralloc.c (initStack): renamed stack registers to STK%d, the new
4366           names are independant of the stack location and therefore portable across
4367           devices
4368
4369 2005-10-27 Maarten Brock <sourceforge.brock AT dse.nl>
4370
4371         * src/mcs51/ralloc.c (bitType): added to detect bit variables,
4372           (selectSpil): fixed bug 1337835 by not spilling bit variables
4373         * support/regression/tests/bug1337835.c: added test for this bug
4374         * src/mcs51/peeph.def: restart after rule 3.c,
4375           addded rules 263.x to optimize loading constants
4376
4377 2005-10-26 Raphael Neider <rneider AT web.de>
4378
4379         * src/SDCCsymt.c (compStructSize): allow signed bitfields for PIC ports
4380         * src/pic16/gen.c (genUnpackBits): support signed bitfields,
4381           (genAssign): emit warning when casting literals to generic pointer
4382             type, also applies when taking the address of a fixed variable,
4383           (genCast): improved casting to generic pointers
4384         * src/pic16/glue.c (pic16emitStaticSeg): fixed(?) handling of fixed
4385           extern variables, added verbose error message
4386         * device/include/pic16/{string.h,errno.h}: added #pragma library c
4387
4388 2005-10-26 Bernhard Held <bernhard AT bernhardheld.de>
4389
4390         * src/mcs51/gen.c (genMinus): fixed bug 1270906: reverse subtraction,
4391         carry must be complemented too
4392         * src/mcs51/peeph.def: addded rule 262 to remove double cpl c, which
4393         could be emitted by genMinus
4394         * src/SDCCval.c (constVal): fixed bug 1305065
4395
4396 2005-10-25 Bernhard Held <bernhard AT bernhardheld.de>
4397
4398         * src/SDCCast.c (addCast): added promotion for bit variables
4399         (decorateType): emit W_COMPLEMENT before the problem vanishes behind
4400         promotion casts + optimisation
4401         (optimizeGetWord): fix warning 'i' might be used uninitialized
4402         * src/mcs51/gen.c (genCpl): removed W_COMPLEMENT
4403         * src/ds390/gen.c (genCpl): removed W_COMPLEMENT
4404
4405 2005-10-24 Bernhard Held <bernhard AT bernhardheld.de>
4406
4407         * src/SDCCicode.c (ast2iCode): reverted to 1.224 because of regression:
4408         all chars are promoted to int; promotion should be handled in SDCCast.c
4409
4410 2005-10-15 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4411
4412         * device/lib/_strcmp.c: Fixed bug 1326457
4413
4414 2005-10-11 Raphael Neider <rneider AT web.de>
4415
4416         * device/lib/pic16/libio/i2c.ignore: added 1320, fixes broken builds
4417         * device/lib/pic16/libdev/pic18f1320.c: added 1320's device library
4418
4419 2005-10-05 Maarten Brock <sourceforge.brock AT dse.nl>
4420
4421         * src/SDCC.y (AT): fixed bug with sfr32 addresses when built with GCC
4422         * support/regression/tests/sfr16.c: added test for the sfr32 bug
4423
4424 2005-10-04 Raphael Neider <rneider AT web.de>
4425
4426         * device/include/pic16/pic18fregs.h, src/pic16/devices.inc,
4427           device/lib/pic16/pics.all: added pic18f1320
4428         * src/pic16/pcode.c (mnem2key): fixed prototype's argument mismatch
4429
4430 2005-09-30 Raphael Neider <rneider AT web.de>
4431
4432         * src/pic16/device.c (Pics16[]): moved device descriptions to devices.inc
4433         * src/pic16/devices.inc: NEW, provides device descriptions
4434         * src/pic16/gen.c (genInline): fixed handling of ';'-comments
4435
4436 2005-09-26 Maarten Brock <sourceforge.brock AT dse.nl>
4437
4438         * src/SDCCicode.c (operandOperation): added GETABIT, GETBYTE, GETWORD and
4439           GETHBIT
4440
4441 2005-09-25 Maarten Brock <sourceforge.brock AT dse.nl>
4442
4443         * doc/sdccman.lyx: updated Highest Order Bit documentation,
4444           documented Any Order Bit, Higher Order Byte and Higher Order Word
4445         * src/SDCC.y: added tokens GETABIT, GETBYTE, GETWORD
4446         * src/SDCCast.c (optimizeGetHbit): updated to also accept bool=expr&(1<<n),
4447           (optimizeGetAbit): new, to get any bit, not only the high bit,
4448           (optimizeGetByte): new, to get a byte from a (long) int: expr>>(8*n),
4449           (optimizeGetWord): new, to get a word from a long int: expr>>(8*n),
4450           (isConformingBody): also check GETABIT, GETBYTE, GETWORD,
4451           (decorateType): '&': also try GETABIT, GETBYTE, GETWORD optimization,
4452             RIGHT_OP: also try GETBYTE, GETWORD optimization,
4453             GETABIT, GETBYTE, GETWORD: decorate them,
4454           (isShiftRightLitVal, isBitAndPowOf2): new helper functions,
4455           (ast_print): added GETABIT, GETBYTE, GETWORD
4456         * src/SDCCcse.c (isSignedOp): added GETABIT, GETBYTE, GETWORD
4457         * src/SDCCicode.c (codeTable): added GETABIT, GETBYTE, GETWORD,
4458           (geniCodeBinary): new generic binary icode,
4459           (ast2iCode): added GETABIT, GETBYTE, GETWORD
4460         * src/port.h: updated comment for PORT.hasExtBitOp
4461         * src/mcs51/gen.c (genGetAbit): new, to get any single bit,
4462           (genGetByte): new, to get a single byte,
4463           (genGetWord): new, to get a word from a long,
4464           (gen51Code): added GETABIT, GETBYTE, GETWORD
4465         * src/mcs51/main.c (hasExtBitOp): added GETABIT, GETBYTE, GETWORD
4466
4467 2005-09-23 Raphael Neider <rneider AT web.de>
4468
4469         * configure.in, configure: have device/lib/pic configured
4470         * device/lib/Makefile.in: added model-pic14
4471         * device/lib/clean.mk: added pic/ to clean rule
4472         * device/lib/pic: added rudimentary pic14 library providing support
4473           functions for multiplication/division/generic pointer access
4474         * src/SDCCopt.c (convilong): mark support functions as extern
4475           for pic14 port as well
4476         * src/pic/gen.c (genMult): added assertions,
4477           (genpic14Code): emit warning on unhandled iCodes
4478         * src/pic/main.c (_hasNativeMulFor): return true only for 8x8 bit
4479         * src/pic/pcode.c (pCodeOpCopy),
4480         * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): fixed handling of various
4481           pCodeOpReg-subtypes (PO_{STATUS,INTCON,PCL,PCLATH,PCLATU,BSR,
4482           SFR_REGISTER}), made safe for future extensions
4483         * src/pic16/pcode.c (pic16_safepCodeUnlink): allow for removal of
4484           instructions even if preceeded by SKIP instructions (also remove
4485           them); removed unused code
4486         * src/pic16/pcode.h: added arg2 to pCodeOpLit to match pCodeOpLit2,
4487           prevents leaving parts of the structure uninitialized after copying
4488
4489 2005-09-22 Maarten Brock <sourceforge.brock AT dse.nl>
4490
4491         * src/mcs51/gen.c (genMinus): fix for undetected bug introduced 3 months
4492           ago by me
4493         * support/regression/tests/addsub.c: added test for the bug
4494
4495 2005-09-21 Raphael Neider <rneider AT web.de>
4496
4497         * device/include/pic16/pic18f1220.h,
4498           device/lib/pic16/libdev/pic18f1220.c: added ECCPAS sfr and bitfield
4499         * device/lib/pic16/Makefile.rules: added missing opening paren
4500         * src/pic16/gen.c (pic16_genNot,pic16_genCpl): removed as these
4501           are provided in genutils.c,
4502           (genUminusFloat,genUminus,genCmpEq): added asserts on different
4503           operand/result sizes,
4504           (genCmp): assert on NULL pointers first, then check deref'ed values
4505         * src/pic16/genutils.c (pic16_genCpl): fixed for different operand/
4506           result size
4507
4508 2005-09-18 Raphael Neider <rneider AT web.de>
4509
4510         * src/pic16/gen.c (genFarPointerGet,genFarPointerSet): removed
4511           as these are now unused,
4512           (genPointerGet,genPointerSet): handle FPOINTERs like POINTERs
4513         * src/pic16/pcode.c (pic16_symIsSpecial): assume REG_TMPs to be
4514           local, avoids uninitialized pointer dereference on r->name
4515         * src/pic16/ralloc.c (newReg): fixed indentation
4516
4517 2005-09-13 Maarten Brock <sourceforge.brock AT dse.nl>
4518
4519         * src/SDCCval.c (constVal): fixed bug 730366
4520         * support/Util/SDCCerr.c,
4521         * support/Util/SDCCerr.h: added warning W_INVALID_INT_CONST
4522
4523 2005-09-10 Maarten Brock <sourceforge.brock AT dse.nl>
4524
4525         * as/mcs51/lkmem.c (summary2): fixed report for absolute areas (bug 1210220)
4526
4527 2005-09-09 Maarten Brock <sourceforge.brock AT dse.nl>
4528
4529         * src/mcs51/peeph.def (241.x): fixed bug when comparing generic pointers
4530
4531 2005-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
4532
4533         * as/hc08/lkaomf51.c (OutputName): made name unsigned char,
4534           (hex2dec): made hex_digit unsigned char, removed ascii dependance
4535         * as/mcs51/lkaomf51.c (OutputName): made name unsigned char,
4536           (hex2dec): made hex_digit unsigned char, removed ascii dependance
4537         * as/mcs51/lkarea.c (lnkarea2): sort absolute areas to the front
4538         * packihx/packihx.c (hexDigit): made c unsigned char
4539         * as/mcs51/lklibr.c (fndsym),
4540         * link/z80/lkgb.c (gb),
4541         * link/z80/lklibr.c (fndsym),
4542         * link/z80/lkrloc.c (relr),
4543         * sim/ucsim/libltdl/ltdl.c (load_deplibs, try_dlopen),
4544         * src/SDCC.lex (checkCurrFile, process_pragma),
4545         * src/SDCCglue.c (spacesToUnderscores),
4546         * src/SDCCmain.c (setParseWithComma, processFile),
4547         * src/asm.c (tvsprintf, printCLine),
4548         * src/avr/gen.c (emitcode, aopPut),
4549         * src/ds390/gen.c (emitcode),
4550         * src/hc08/gen.c (emitcode, emitinline),
4551         * src/mcs51/gen.c (emitcode, genInline),
4552         * src/pic/pcodepeep.c (cvt_extract_destination, cvt_extract_status,
4553           tokenizeLineNode),
4554         * src/pic/ralloc.c (debugLog),
4555         * src/pic16/pcodepeep.c (cvt_extract_destination, cvt_extract_status,
4556           tokenizeLineNode),
4557         * src/pic16/ralloc.c (debugLog),
4558         * src/z80/main.c (_process_pragma):
4559            made all ctype.h function calls safe
4560         * src/SDCCopt.c: include math.h for fabs
4561         * src/SDCCpeeph.c: added macros ISCHARDIGIT, ISCHARSPACE and ISCHARALNUM
4562           and used them throughout the code to make ctype.h function calls safe
4563         * src/ds390/main.c (asmLineNodeFromLineNode),
4564         * src/mcs51/main.c (asmLineNodeFromLineNode): made p unsigned char*
4565         * src/pic/gen.c (DEBUGpic14_emitcode, pic14_emitcode): made lbp
4566            unsigned char*
4567         * src/pic/pcode.c (mnem2key): made mnem unsigned char*,
4568           (newpCodeAsmDir): made ctype.h function calls safe
4569         * src/pic16/gen.c (pic16_emitpcomment, DEBUGpic16_emitcode,
4570           pic16_emitcode):  made lbp unsigned char*
4571         * src/pic16/pcode.c (mnem2key): made mnem unsigned char*,
4572           (pic16_newpCodeAsmDir): made ctype.h function calls safe
4573         * src/xa51/gen.c (emitcode),
4574         * src/z80/gen.c (_emit2): made lbp unsigned char*
4575         * support/Util/MySystem.c (split_command): made cmd_line and p unsigned
4576            char*
4577
4578 2005-09-05 Raphael Neider <rneider AT web.de>
4579
4580         * src/pic16/ralloc.c (pic16_allocDirReg): use device specific
4581           access bank splitpoint
4582
4583 2005-09-05 Raphael Neider <rneider AT web.de>
4584
4585         * device/lib/pic16/libc/Makefile: added (missing) string to SUBDIRS
4586
4587 2005-09-03 Maarten Brock <sourceforge.brock AT dse.nl>
4588
4589         * .version: changed to version 2.5.3
4590         * doc/sdccman.lyx: changed version to 2.5.3,
4591           documented --codeseg and --constseg and pragma codeseg and constseg,
4592           documented bit parameters (reentrant) and bit returning
4593         * src/SDCCicode.c (geniCodeReceive): fixed (possible) bug generating
4594            currFunc->recvSize, but is this ok for all ports?
4595           (ast2iCode): result of ~ on unsigned char must be cast to int for
4596            bool to work
4597         * src/SDCCmem.c (allocGlobal, allocLocal): don't put bit returning
4598           function pointers in bit space
4599         * src/SDCCsymt.c (checkSClass): allow bit returning function pointers,
4600           (processFuncArgs): call port.reg_parm() with reentrancy info
4601         * src/port.h,
4602         * src/avr/main.c,
4603         * src/ds390/main.c,
4604         * src/hc08/main.c,
4605         * src/pic/main.c,
4606         * src/pic16/main.c,
4607         * src/xa51/main.c,
4608         * src/z80/main.c: port.reg_parm prototype extended with
4609           "bool reentrant" parameter
4610         * src/mcs51/main.c (_mcs51_regparm): use parameter reentrant instead of
4611           options.stackAuto for allocating bit register parameters
4612         * src/mcs51/gen.c (genNot): optimized complementing direct bit,
4613           (genSend): set BitBankUsed if it is,
4614           (selectRegBank): factored out of genCall for use in genPcall,
4615           (genCall): removed redundant dtype assignmen, use selectRegBank,
4616           (genPcall): handle returning in Carry properly, save in F0 if needed,
4617           (genReceive): handle bit register parameters
4618         * src/mcs51/ralloc.c (updateRegUsage): update BitBankUsed along the way,
4619           (mcs51_assignRegisters): enable bit registers for all reentrant
4620            functions and don't set BitBankUsed unconditionally
4621         * src/mcs51/peeph.def (177.d): fixed bug if %2==%3
4622         * support/regression/tests/bitvars.c: enable tests for SDCC_STACK_AUTO
4623         * support/regression/tests/funptrs.c: added tests for BOOL and for return
4624
4625 2005-08-27 Borut Razem <borut.razem AT siol.net>
4626
4627         * device/lib/Makefile.in: cp on sparc-solaris (SunOS) and on
4628         ppc-osx (Darwin) does not support -u option. It seems that it is
4629         supported only on Linux - GNU cp
4630
4631 2005-08-25 Borut Razem <borut.razem AT siol.net>
4632
4633         * sim/ucsim/gui.src/serio.src/Makefile.in,
4634           sim/ucsim/s51.src/Makefile.in, sim/ucsim/avr.src/Makefile.in,
4635           sim/ucsim/z80.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
4636           sim/ucsim/xa.src/Makefile.in: install -s changed to 2 steps:
4637           install and strip, since the strip at /usr/ccs/bin should be used
4638           on solaris
4639
4640 2005-08-24 Borut Razem <borut.razem AT siol.net>
4641
4642         * clean.mk, device/lib/clean.mk: find on sparc-solaris does not support -maxdepth option
4643
4644 2005-08-23 Bernhard Held <bernhard AT bernhardheld.de>
4645
4646         * src/SDCCopt.c (convertToFcall): fixed modulus with divisors 1 and
4647         ffffffffu
4648
4649 2005-08-23 Maarten Brock <sourceforge.brock AT dse.nl>
4650
4651         * as/mcs51/aslink.h: completed lkrloc.c prototypes
4652         * as/mcs51/lkmain.c (link_main): fixed warning
4653         * device/include/stdbool.h: ds390 has no advanced bit support yet
4654         * src/SDCC.y: use SPEC_SHORT and renamed _signed to b_signed
4655         * src/SDCCsymt.c: use SPEC_SHORT and renamed _signed to b_signed
4656         * src/SDCCsymt.h (struct specifier): renamed _xxx bitfields to b_xxx
4657           and updated their macros
4658         * src/SDCCval.c (constVal): updated comment for renamed b_long
4659
4660 2005-08-22 Maarten Brock <sourceforge.brock AT dse.nl>
4661
4662         * as/mcs51/asdata.c: changed ctype['['] to BINOP
4663         * as/mcs51/asexpr.c (expr): added case '[' for bit access in bdata,
4664           (term): abused bit 15 of s_addr to indicate bit-addressable bytes,
4665           (oprio): set priority for '['
4666         * as/mcs51/aslink.h: added define R_BIT, and prototypes for adb_bit
4667            and adb_24_bit
4668         * as/mcs51/asm.h: added defines R_BIT and S_BIT
4669         * as/mcs51/lkarea.c (lnksect2): use T for seg BIT_BANK and overlay it
4670         * as/mcs51/lkdata.c: changed ctype['['] to BINOP
4671         * as/mcs51/lkmain.c (Areas51): rel2 contains 12 (=C) areas now,
4672           added overlayable BIT_BANK area
4673         * as/mcs51/lkmem.c (summary): add BIT_BANK to BSEG_BYTES in the report,
4674           (summary2): explain 'T' in legenda
4675         * as/mcs51/lkrloc.c: replaced old K&R style,
4676           (relr): added R_BIT processing,
4677           (errmsg): added "Bit-addressable relocation error",
4678           (adb_bit): added for converting from byte- to bit-addressable space,
4679           (adb_24_bit): added for converting from byte- to bit-addressable space
4680         * device/include/stdbool.h: changed BOOL to __bit for mcs51 as it can be
4681            used in reentrant functions now even as return value
4682         * device/lib/_gptrput.c (_gptrput): removed obsolete code
4683         * src/SDCCast.c (resultTypePropagate): also propagate AND_OP and OR_OP,
4684           (decorateType): case '!', GETHBIT, AND_OP, OR_OP: result in bool or char
4685         * src/SDCCglobl.h: added indicator BitBankUsed
4686         * src/SDCCglue.c (glue): emit area BIT_BANK with byte 'bits' and equ's for
4687            the bit registers b0-b7
4688         * src/SDCCicode.c (operandFromSymbol): removed IS_BITVAR check,
4689           (geniCodeCast): fixed bug 1263853,
4690           (geniCodeLogicAndOr): put result in bool or char,
4691           (geniCodeReceive): added parameter func for accessing the return type,
4692           (geniCodeFunctionBody): pass func to geniCodeReceive
4693         * src/SDCCmain.c: added indicator BitBankUsed
4694         * src/SDCCmem.c (allocLocal): explicitly set sclass for V_BIT
4695         * src/SDCCsymt.c (newBoolLink): added for creating a bool/bit,
4696           (checkSClass): don't put automatic bool/bit on stack,
4697           (checkFunction): removed check on function cannot return bit
4698         * src/SDCCsymt.h: added newBoolLink prototype
4699         * src/mcs51/gen.c (rb1regs): added bit registers,
4700           (movc): created for assigning to carry,
4701           (pushReg, popReg): created for pushing registers,
4702           (sameRegs): check both AOP_REG and AOP_CRY types,
4703           (aopOp): handle bit registers,
4704           (aopPut): optimization no self-assign,
4705           (saveRegisters): push reg->base (bits) only once for bit registers,
4706            and use pushReg,
4707           (unsaveRegisters): pop reg->base only once and use popReg,
4708           (assignResultValue): added parameter func and return in carry for bits,
4709           (genIpush): optimization no reload in A if not changed,
4710           (genSend): bit parameters in reentrant functions are passed in bit
4711            registers by first assigning to bits in B, then save registers and
4712            copy B to bits,
4713           (genCall): handle returning in Carry properly, save it in F0 if needed,
4714           (genPcall): updated assignResultValue call, this is not safe yet for bit
4715            returning function !!!
4716           (genFunction): don't generate equ's for bit registers and use pushReg,
4717           (genEndFunction): take care of bit returning functions and use popReg,
4718           (genRet): return bit in Carry,
4719           (genIfx): optimize bit registers and other directly addressable bits,
4720           (genReceive): updated assignResultValue call
4721         * src/mcs51/main.c (_mcs51_reset_regparm): added regBitParmFlg,
4722           (_mcs51_regparm): allow passing of upto 8 bit parameters in bit
4723            registers when using stack-auto
4724         * src/mcs51/ralloc.c (_G): added allBitregs,
4725           (regs8051): added the bit registers,
4726           (createStackSpil): use macro IS_BIT,
4727           (getRegBit): added to allocate a bit register, else spill,
4728           (getRegBitNoSpil): added to allocate a bit register, else a gpr,
4729           (updateRegUsage): factored out to ease stepping while debugging,
4730           (serialRegAssign): use updateRegUsage, only spill bits if necessary,
4731            also allocate bit registers,
4732           (fillGaps): handle bit registers,
4733           (findAllBitregs): added to create bit vector with all bit registers,
4734           (mcs51_allBitregs): returns this bit vector,
4735           (mcs51_assignRegisters): when using stack-auto use bit registers for
4736            passing parameters and creating local variables
4737         * src/mcs51/ralloc.h: added B0_IDX..B7_IDX and prototype mcs51_allBitregs
4738
4739 2005-08-22 Borut Razem <borut.razem AT siol.net>
4740
4741         * device/lib/Makefile.in: replaced find option -or with -o
4742           to make it run on solaris
4743
4744 2005-08-22 Raphael Neider <rneider AT web.de>
4745
4746         * src/pic16/gen.c (pic16_loadFromReturn): added check for AOP_PCODE,
4747           fixes #1265442 (crash on Solaris)
4748
4749 2005-08-20 Borut Razem <borut.razem AT siol.net>
4750
4751         * configure, configure.in: added tests for libsocket and libnsl libraries,
4752           requred by sdcdb on sparc-solaris; generate support/regression/Makefile
4753           from support/regression/Makefile.in
4754         * support/regression/Makefile.in: added
4755         * device/lib/pic16/Makefile.common.in: force make to use bash shell
4756         * sim/ucsim/libtool: regenerated on sparc-solaris
4757         * sim/ucsim/avr.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
4758           sim/ucsim/s51.src/Makefile.in, sim/ucsim/xa.src/Makefile.in,
4759           sim/ucsim/z80.src/Makefile.in: removed GNU ld specific linker options
4760           -Wl,--start-group and -Wl,--end-group to enable ucsim compilation on
4761           sparc-solaris, which doesn't use GNU ld linker
4762         * device/lib/Makefile.in: cp on sparc-solaris (SunOS) does not support -u option
4763         * as/Makefile: find on sparc-solaris does not support -maxdepth option
4764
4765 2005-08-19 Maarten Brock <sourceforge.brock AT dse.nl>
4766
4767         * src/mcs51/peeph.def: updated comments
4768
4769 2005-08-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4770
4771         * device/lib/_gptrget.c,
4772         * device/lib/_gptrput.c: slightly shorter
4773         * doc/sdccman.lyx: incremented version
4774         * src/mcs51/peeph.def: moved peephole comments to the line of first
4775           change to better keep line correlation, reanimated 186.e
4776         * src/mcs51/peeph.def: renamed similar peepholes by using suffixes
4777
4778 2005-08-16 Slade Rich <slade_rich AT users.sourceforge.net>
4779
4780         * src/pic/pcode.c : Pasted ".line" assembly directives patch from
4781           David Saxton with quotes around file name.
4782
4783 2005-08-15 Borut Razem <borut.razem AT siol.net>
4784
4785         * support/regression/tests/bitfields.c, support/regression/tests/bitvars.c,
4786           support/regression/tests/bitwise.c, support/regression/tests/literalop.c,
4787           support/regression/tests/rotate.c, support/regression/tests/zeropad.c:
4788           make tests run on x86_64 platform
4789
4790 2005-08-13 Raphael Neider <rneider AT web.de>
4791
4792         * device/lib/pic16/Makefile.subdir: weakened clean-intermediate rule
4793           as it might be executed DURING a build (parallel make is wonderful)
4794
4795 2005-08-13 Raphael Neider <rneider AT web.de>
4796
4797         * device/lib/Makefile.in (port-specific-objects-pic16):
4798           revert to cp $(PORT)/bin/*.* $(PORTDIR)
4799         * device/lib/pic16/Makefile: added .PHONY targets, removed builddir
4800           dependency
4801         * device/lib/pic16/Makefile.rules: build subdirs before creating
4802           the library, removed builddir rule, create $(builddir) early in
4803           recurse rule, use empty recurse rule for leaf directories
4804         * device/lib/pic16/Makefile.subdir: added phony targets, ignore
4805           mkdir errors (race condition), removed duplicate suffix "hex"
4806           from clean rules
4807         * device/lib/pic16/libdev/Makefile: recursive make via + and $(MAKE)
4808         * device/lib/pic16/libio/Makefile: create sub-make's builddir early,
4809           prevents mkdir -p from aborting on Alpha
4810
4811 2005-08-12 Raphael Neider <rneider AT web.de>
4812
4813         * src/pic16/glue.c (pic16_print(G)PointerType): do not flush
4814           db-statements in order to allow for arrays of pointers in code
4815           sections to be placed without interspersed 0-padding, fixes
4816           bug #1256215
4817         * (emitStatistics): fixed division by zero for pic18f1220
4818         * src/pic16/pcode.c: buffer (up to) 12 DB directives to allow for
4819           unpadded writing of 8-bit, 16-bit, 24-bit and 32-bit values
4820         * (pic16_emitDS): respect DB_ITEMS_PER_LINE
4821         * (pic16_pCodeConstString): keep track of already emitted string
4822           literals to prevent "duplicate definitions of symbol _str_NR"
4823         * src/pic16/ralloc.c (pic16_allocRegByName): removed not so helpful
4824           debug message
4825         * device/lib/Makefile.in: ignore failing PIC16 library builds
4826         * device/lib/pic16/Makefile: do not build if gputils are missing
4827         * device/lib/pic16/Makefile.common.in: do not enforce MAKEFLAGS=-s
4828
4829 2005-08-10 Raphael Neider <rneider AT web.de>
4830
4831         * device/lib/Makefile.in: fixed copying pic16 libraries (broken by
4832           my last commit)
4833
4834 2005-08-10 Raphael Neider <rneider AT web.de>
4835
4836         * src/*.c, src/pic16/{gen.c,glue.c,main.c}: applied Vangelis
4837           Rokas' patch to add the new fixed point type "__fixed16x16"
4838         * device/lib/pic16/libsdcc/fixed16x16: added Vangelis' support
4839           functions for __fixed16x16 arithmetics
4840         * device/lib/pic16: reimplemented the build system to support
4841           a separate build directory, better handling of libio (create
4842           the library in a separate subdir for each architecture) and
4843           easier configuration (centralized in Makefile.common)
4844
4845 2005-08-07 Raphael Neider <rneider AT web.de>
4846
4847         * src/pic16/gen.c (genrshTwo): fixed sign extension
4848         * src/pic16/device.c: added pic18f2320, 4220 and 4320
4849         * device/include/pic16/pic18f2220.h: changed some bit definitions,
4850           added T0CONbits
4851         * device/include/pic16/pic18f4220.h: NEW, header for
4852           pic18f4220 and pic18f4320
4853         * device/include/pic16/pic18fregs.h: added new devices,
4854           embraced Nop(), ClrWdt(), Sleep() and Reset() with do {} while(0)
4855         * device/include/pic16/signal.h: resolved name clashes
4856           on bit definitions, added DEF_HANDLER2(sig1,sig2,handler)
4857           to also allow testing for interrupt enable bits, added
4858           comments on how to use the macros
4859         * device/lib/pic16/libdev/pic18f2220.c: added T0CONbits
4860         * device/lib/pic16/libdev/pic18f{2320,4220,4320}.c: NEW,
4861           register definitions for the devices
4862         * device/lib/pic16/pics.all: added new devices
4863         * device/lib/pic16/libc/stdlib/calloc.c: fixed zeroing
4864           allocated memory
4865         * device/lib/pic16/libc/stdlib/memfree: do not count
4866           the block header as free memory
4867         * device/lib/pic16/libc/stdlib/memmisc.c (_initHeap):
4868           simplified and added missing end-of-blocklist-marker
4869           (reported by Peter Onion, fixes #1252814)
4870         * (_mergeHeapBlock): fixed loop condition
4871         * device/lib/pic16/libc/stdlib/realloc.c: return NULL for
4872           len==0, restructured code
4873         * device/lib/pic16/libc/stdlib/{malloc,memfreemax}.c: cleaned
4874           up a bit, reduced bitfield accesses, prevent endless loops
4875           in case of heap corruption
4876         * device/lib/pic16/libc/stdlib/x_ftoa.c: disabled
4877           "unreferenced arguments/must return a value" warnings
4878         * device/lib/pic16/libio/usart/ubaud.c (usart_baud):
4879           replaced BAUDREG with SPBRG
4880         * device/lib/pic16/libsdcc/lregs/{lrrest.c,lrst.c},
4881           device/lib/pic16/debug/gstack/gstack.c: replaced
4882           _naked, _asm, _endasm with __naked, __asm, __endasm
4883
4884 2005-08-05 Raphael Neider <rneider AT web.de>
4885
4886         * src/pic16/gen.c (pic16_aopGet): fixed handling of offsets in
4887           AOP_PCODE operands, fixes multibyte union-bitfield-accesses
4888
4889 2005-08-05 Borut Razem <borut.razem AT siol.net>
4890
4891         * device/lib/Makefile.in: added missing ';'
4892         * configure: removed ^M characters
4893
4894 2005-08-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4895
4896         * device/include/mcs51/at89c51ed2.h, device/include/mcs51/p89v51rd2.h,
4897           device/include/mcs51/at89s53.h: changed to GNU Lesser General Public
4898           License
4899
4900 2005-08-04 Borut Razem <borut.razem AT siol.net>
4901
4902         * configure.in: pic16 libraries build 2nd try - enable running
4903           configure in device/lib/pic16
4904         * configure: regenerated from configure.in
4905         * device/lib/Makefile.in: create $(PORT)/bin directory
4906
4907 2005-08-03 Raphael Neider <rneider AT web.de>
4908
4909         * src/pic16/gen.c (pic16_derefPtr): NEW, single place
4910           to get/set values via pointers
4911         * (genUnpackBits,genPackBits): changed detection of
4912           ptr->bitfield vs. sym.bitfield, fixed access via generic
4913           pointers, removed dead (wrong) code for multibyte bitfields
4914         * (genNearPointerGet, genGenPointerGet): removed useless code,
4915           fixed bitfield detection, fixes #1250594
4916         * (genNearPointerSet): removed useless code
4917         * src/pic16/gen.h: renamed pic16_emitpcode to pic16_emitpcode_real
4918           and introduced macro pic16_emitpcode that conditionally emits
4919           the origin of the following pCode (useful for debugging SDCC)
4920         * src/pic16/pcode.c: changed (and disabled) some debug outputs
4921         * (createDefmap): fixed handling of LFSR for --optimize-df
4922
4923 2005-08-02 Borut Razem <borut.razem AT siol.net>
4924
4925         * device/lib/Makefile.in: pic16 libraries build enabled since
4926           gputils-0.13.2 are now localy installed at sourceforge's compile farm
4927
4928 2005-08-02 Raphael Neider <rneider AT web.de>
4929
4930         * src/pic16/gen.c (genPackBits): removed deprecated warning
4931         * (genGenPointerSet): fixed bitfield detection
4932
4933 2005-08-02 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4934
4935         * device/include/mcs51/msm8xc154s.h: Removed PT2 definition, now in 8052.h.
4936
4937 2005-07-31 Raphael Neider <rneider AT web.de>
4938
4939         * device/lib/pic16/libdev/pic18f458.c,
4940           device/include/pic16/pic18f458.h: added missing T0CONbits
4941
4942 2005-07-29 Maarten Brock <sourceforge.brock AT dse.nl>
4943
4944         * device/include/mcs51/msm8xc154s.h: added, thanks to Matthias Arndt
4945
4946 2005-07-28 Maarten Brock <sourceforge.brock AT dse.nl>
4947
4948         * src/mcs51/gen.c (operandsEqu): fixed bug 1246687
4949
4950 2005-07-23 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4951
4952         * device/include/mcs51/at89c51ed2.h: added.
4953
4954 2005-07-23 Raphael Neider <rneider AT web.de>
4955
4956         * src/pic/gen.h: added emitpcode macro for debugging
4957         * src/pic/gen.c (emitpcode): renamed to emitpcode_real
4958           and replace by macro adding debug information on demand
4959         * (genNot): fixed to C semantics (!0 = 1; !x = 0 iff x != 0)
4960         * (gencjne): tried to fix; replaced with correct (slower) code
4961         * (gen{Unp,P}ackBits): fixed single bit access
4962         * src/pic/pcode.c (AnalyzepCode): fixed DFPRINTF argument
4963         * src/pic/pcodepeep.c (pCodeSearchCondition): fixed finding
4964           previous instruction
4965         * src/pic/pcoderegs.c (regIsSpecial): NEW, check whether a
4966           register has to be handled with care (forbidding movement
4967           of assignments/uses, removing assignments completely, ...)
4968         * (pCodeOptime2pCodes): make use of regIsSpecial
4969         * added lots of debugging output (commented out)
4970         * src/pic/rallloc.c (deassignLRs): prevent operand registers
4971           from being reused as result UNLESS it is known to work
4972
4973 2005-07-23 Maarten Brock <sourceforge.brock AT dse.nl>
4974
4975         * support/Util/dbuf.h: include <stddef.h> for size_t
4976         * .version: changed to version 2.5.2
4977
4978 2005-07-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4979
4980         * src/SDCCloop.c (loopInvariants): fixed bug #1234048
4981
4982 2005-07-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4983
4984         * src/hc08/gen.c (genMinus): fixed bug #1241835,
4985           (genModOneByte): removed needless psha/pula
4986
4987 2005-07-22 Raphael Neider <rneider AT web.de>
4988
4989         * src/SDCCmain.c (linkEdit): initialized linkerScriptFileName,
4990           have PIC14 handled like PIC16, fixes broken pic14 linker calls
4991         * src/pic/gen.c (resolveIfx): do not "invent" labels
4992         * (genSkipc): changed to positive logic
4993         * (genSkipCond): removed as no longer needed
4994         * (pic14_mov2w_regOrLit,genCmp): NEW, replacement for buggy version,
4995           backport from PIC16
4996         * (genLeftShift): check operands are in different registers
4997         * src/pic/genarith.c (genPlus): replaced INCF with ADDLW as
4998           INCF does not update CARRY...
4999         * src/pic/main.c: fixed _linkCmd
5000         * src/pic/pcode.c (unlinkpCode): added inactive code
5001         * src/pic/ralloc.c (deassignLRs): keep arguments to shift operations
5002           alive (do not assign result and operand overlapping registers)
5003
5004 2005-07-22 Raphael Neider <rneider AT web.de>
5005
5006         * src/pic/device.c (dump_sfr): replaced register declaration with
5007           call to emitSymbolToFile() to avoid duplicate symbols
5008         * (assignRelocatableRegisters): do not declare external symbols
5009         * src/pic/ralloc.c (allocNewDirReg): fixed to get size of arrays
5010           right (take size of type, not etype)
5011         * (allocDirReg): fixed call to allocNewDirReg() to pass OP_SYM_TYPE
5012         * (writeUsedRegs): also dump dynDirectRegs (e.g. local variables)
5013         * (packRegsForAccUse): disabled assignment of WREG as
5014           the result reg to prevent occurence of just fixed #1235003,
5015           fixes #1242954
5016         * src/pic/glue.c (emitSymbolToFile): NEW, central place to declare
5017           symbols (avoids duplicate symbols in .asm file)
5018         * (pic14emitRegularMap): use emitSymbolToFile()
5019         * src/pic/gen.c (aopOp): fixed spillLocation handling
5020         * (gen{Unp,P}ackBits): fixed acquiring bit-operands
5021         * (genDataPointerSet): removed unneccessary variables/output
5022
5023 2005-07-22 Maarten Brock <sourceforge.brock AT dse.nl>
5024
5025         * as/mcs51/lkarea.c: enlarged codemap for banked memory
5026         * device/lib/mcs51/crtbank.asm: added # to 0x0F
5027
5028 2005-07-21 Raphael Neider <rneider AT web.de>
5029
5030         * src/pic/gen.c (aopOp): do not generate AOP_ACC operands as pic14
5031           architecture cannot handle them efficiently, fixes bug #1235003
5032         * src/pic16/device.c (pic16_dump_{u,i}section,pic16_dump_int_registers):
5033           check for empty sets before using them (fixes bug #1232190)
5034
5035 2005-07-19 Maarten Brock <sourceforge.brock AT dse.nl>
5036
5037         * as/mcs51/lkarea.c (lnkarea, lnkarea2): improved BSEG size calculation,
5038           (lnksect2): generate warnings for memory overlap
5039         * src/SDCC.lex (doPragma, process_pragma): added pragma's codeseg and
5040           constseg to set the name of these segments so you can instruct the linker
5041           to place them in banks
5042         * src/SDCCast.c (decorateType): use new macro IS_FUNCPTR()
5043         * src/SDCCglobl.h: added MODEL_HUGE to enum,
5044           added code_seg and const_seg to options
5045         * src/SDCCglue.c (emitMaps): use options.const_seg,
5046           (createInterruptVect): put interrupt vectors in segment HOME,
5047           (glue): put HOME before static segment and put the main glue in HOME,
5048           (glue): use options.code_seg
5049         * src/SDCCicode.c (geniCodeCall): use new macro IS_FUNCPTR()
5050         * src/SDCCmain.c: added option --codeseg and --constseg to set the name of
5051           these segments so you can instruct the linker to place them in banks
5052           (linkEdit): use code_loc for HOME segment which should be the first
5053           segment in code memory now
5054         * src/SDCCmem.c: fixed more stuff like bug 1238386
5055         * src/SDCCsymt.c (getSize): use generic pointer size for banked functions,
5056           (changePointer): don't change function pointers to code pointers for
5057           banked functions,
5058           (compareType): added exceptional check for banked function pointers
5059         * src/SDCCsymt.h: changed IFFUNC_ISBANKEDCALL, added IS_FUNCPTR
5060         * src/hc08/main.c (_hc08_genAssemblerPreamble): put HOME first, put CSEG
5061           after static in code memory
5062         * src/mcs51/gen.c: added aopLiteralLong prototype,
5063           (aopForSym): use getSize for functions,
5064           (genCall): generate banked calls over one trampoline __sdcc_banked_call
5065           in HOME with lsb of address in r0, msb in r1 and bank in r2, use
5066           -Wl-bBANKSEG=0xbbaaaa option to set the address (aaaa) and bank (bb) of
5067           the segment,
5068           (genPcall): use call for literal function pointers and generate banked
5069           calls over the one trampoline so there's only one place for the user to
5070           modify according to his/hers hardware,
5071           (genEndFunction): jump to __sdcc_banked_ret in HOME for banked functions,
5072           (genPlusIncr): moved check icount>4 beyond inc dptr optimization
5073         * src/mcs51/main.c: added keyword banked,
5074           (_mcs51_genExtraAreas): put HOME first followed by GSINIT, STATIC and CSEG
5075         * support/Util/SDCCerr.c,
5076         * support/Util/SDCCerr.h: added E_BANKED_WITH_CALLEESAVES, registers are
5077           needed for passing the bank and address to the trampoline
5078         * device/lib/mcs51/crtbank.asm: added for bankswitching
5079         * device/lib/mcs51/Makefile: added crtbank
5080
5081 2005-07-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5082
5083         * src/SDCCcse.c (algebraicOpts): fixed loss of volatility
5084           for fields at offset 0 of a struct or union as reported
5085           on 2005-07-07 in the developer mailing list.
5086
5087 2005-07-15 Maarten Brock <sourceforge.brock AT dse.nl>
5088
5089         * src/SDCCmem.c: fixed bug 1238386
5090
5091 2005-07-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5092
5093         * src/mcs51/peeph.def: added labelrefcounting for peepholes
5094           (patch #1144962), added peephole 300, enabled 259.x
5095         * doc/sdccman.lyx: removed screenshot and provided link instead
5096
5097 2005-07-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5098
5099         * doc/sdccman.lyx: added section about debugging with ddd
5100         * doc/figures/ddd_example.eps: screenshot of debugging session
5101
5102 2005-07-04 Raphael Neider <rneider AT web.de>
5103
5104         * src/pic/gen.c (genPointerGet): handle pointers to CONST values
5105           like CODE pointers, fixes #1115683
5106         * src/pic/pcode.c (DoBankSelect): forget LastRegIdx during function
5107           call, fixes bugs #1232211, #1228110,
5108           fixed wrong casts to pCodeFlow from pCodeInstructions
5109
5110 2005-07-04 Raphael Neider <rneider AT web.de>
5111
5112         * src/pic/gen.c (popGet): changed assert to allow for
5113           bit operands
5114         * (popGetAddr): changed signature to provide
5115           an additional index, patched all call sites
5116         * (genCmpEq): handle literal-like operands correctly
5117         * (genAddrOf): added sanity checks on __code/__data pointers
5118         * (genAssign): added handling of symbols from __code section
5119         * (gencjne): do not generate code for comparisons whose result
5120           is neither stored nor used, fixes bug #1171114
5121         * (AccLsh, AccRsh): operate on operand instead of WREG
5122         * (shift{Left,Right}_Left2ResultLit): NEW, size independant
5123           replacement for Shift{LR}{12}Left2Result; shift (byte/int/long)
5124           by known count
5125         * rewrote complete shift-by-literal logic, commented unused
5126           functions out
5127         * (genConstPointerGet): get multiple bytes (if result size > 1),
5128           fixed handling of non-immediate addresses
5129         * (genPointerGet): handle CODE pointers like CONST pointers
5130         * (genpic14Code): insert C-SRC lines as Cource-pCodes
5131         * ({aop,op}_isLitLike): NEW, single place to decide whether an
5132           operand is to be treated as a literal or not
5133         * (mov2w,genPcall,genCmpEq),
5134           src/pic/genarith.c: use aop_isLitLike() to decide between
5135           literal/register contents
5136         * (addSign): added missing offset
5137         * src/pic/gen.h: remove newline after FENTRY/FEXIT comments,
5138           only emit comment in debug-mode,
5139           use {aop,op}_isLitLike throughout the file
5140         * src/pic/glue.c: fix initializers for pointers (work in progress)
5141         * src/pic/pcode.c (get_op): honor index on _const symbols
5142         * ({reset,dump}pCodeStatistics): NEW, estimate code size
5143         * (dumppBlock): added pCode size estimation
5144         * src/pic/ralloc.c (deassignLRs,serialRegAssign,packRegisters):
5145           check for IS_SYMOP before OP_SYMBOL'ing
5146         * fixed indentation, compacted switch-statements
5147         * (allocReg): find free register and allocate it instead of
5148           allocating new registers all the time
5149         * (deassignLRs): prevent POINTER_GET's from being assigned the same
5150           registers as its operands (necessary only for multibyte GETs)
5151
5152 2005-07-01 Raphael Neider <rneider AT web.de>
5153
5154         * src/pic/gen.h: added prototypes emitpComment, popGetAddr and
5155           debugging .asm-output macros FENTRY + FEXIT
5156         * src/pic/gen.c (Safe_vsnprintf): NEW, is there a more generic
5157           way... I wonder...
5158         * (emitpComment): NEW, printf to pCode
5159         * (popGet): added assert on too large offsets, fixed PO_IMMEDIATE's
5160           offset handling
5161         * (popGetAddr): NEW, variant of popGet to access an immediates
5162           high(er) bytes instead of the n'th byte of memory they reference,
5163           replaced popGet with popGetAddr where neccessary
5164         * (genDataPointerGet): reactivated and fixed implementation
5165         * (genNearPointerGet): enabled call to genDataPointerGet, fixes array-
5166           accesses
5167         * (genDataPointerSet): fixed multibyte assignments
5168         * (genpic14Code): fixed --i-code-in-asm handling
5169         * src/pic/genarith.c: fixed PO_IMMEDIATE issue using popGetAddr,
5170         * (genPlus): fixed index-out-of-bounds error
5171         * src/pic/pcode.c (get_op): fixed PO_IMMEDIATE's index/offset handling
5172         * src/pic/ralloc.c: added debugging output macro FENTRY2
5173         * (spillThis): fixed indentation, enbraced for-body for clarity
5174         * (rematStr): commented out as now unused
5175         * (regTypeNum): commented out special spill case (overwrites
5176           arbitrary values)
5177         * fixes bugs #1229346, #1216476 (both arrays) and #1115667 (SIGSEGV)
5178
5179 2005-06-30 Maarten Brock <sourceforge.brock AT dse.nl>
5180
5181         * doc/sdccman.lyx: documented sfr16/sfr32,
5182           added example for using storage class with function pointers
5183         * src/mcs51/gen.c (genPlusIncr): optimized small offsets from dptr
5184
5185 2005-06-28 Maarten Brock <sourceforge.brock AT dse.nl>
5186
5187         * device/lib/_gptrget.c: also push/pop _PSBANK, added # to 0x03
5188         * device/lib/_itoa.c,
5189         * device/lib/_ltoa.c: optimized codesize
5190         * src/SDCCsymt.c (checkSClass): added sanity check for sfr at addresses,
5191           but don't know how to suppress the double warning.
5192         * src/mcs51/gen.c (genPlusIncr): fixed bug when incrementing volatile int's
5193         * support/Util/SDCCerr.c,
5194         * support/Util/SDCCerr.h: added warning W_SFR_ABSRANGE for sanity check
5195
5196 2005-06-27 Maarten Brock <sourceforge.brock AT dse.nl>
5197
5198         * as/mcs51/asexpr.c (expr): disabled warning "not in .flat24 mode",
5199           fixed old K&R prototypes
5200         * as/mcs51/asout.c (outrb): always output as if generating 24bit addresses
5201         * device/lib/_gptrget.c,
5202         * device/lib/_gptrgetc.c,
5203         * device/lib/_gptrput.c: changed versions for new memory indicator values,
5204           also new versions for small generic pointers and banked generic pointers
5205         * src/port.h: added const_name
5206         * src/SDCC.lex: added keywords sfr16, __sfr16, sfr32, __sfr32
5207         * src/SDCC.y: added tokens SFR16, SFR32 and their sfr_attributes
5208         * src/SDCCcse.c (findPrevIc): check all associative operators
5209         * src/SDCCglue.c (emitMaps): use CONST_NAME if defined
5210         * src/SDCCicode.h: added macro IS_ASSOCIATIVE
5211         * src/SDCCmem.c: updated comments,
5212           set far-space to 0 for pdata, results in optimized code
5213         * src/SDCCmem.h: added macro CONST_NAME
5214         * src/SDCCsymt.h: renumerated generic pointer types GPTYPE_... thereby
5215           moving the info into the highest bits, see also gptrget/gptrput
5216         * src/src.dsp: added sdcc.ico to project files
5217         * src/avr/gen.c (genCast): fixed bug 0x%d
5218         * src/avr/main.c (avr_port): added "CONST (CODE)" for const_name
5219         * src/ds390/gen.c (aopForRemat, adjustArithmeticResult): disconnected direct
5220           relation between ptr_type and DCL_TYPE,
5221           (genCast): fixed bug 0x%d
5222         * src/ds390/main.c (ds390_port, tininative_port, ds400_port): added "CONST
5223           (CODE)" for const_name
5224         * src/hc08/gen.c (genCast): fixed bug 0x%d
5225         * src/hc08/main.c (_hc08_genAssemblerPreamble): added .area ...const_name,
5226           (hc08_port): added "CONST (CODE)" for const_name
5227         * src/mcs51/gen.c (aopForSym): optimized pushing ACC,
5228           (aopForRemat, adjustArithmeticResult): disconnected direct relation
5229           between ptr_type and DCL_TYPE,
5230           (aopGetUsesAcc, aopGet, aopPut): changed first parameter from asmop* to
5231           operand* and took AOP() inside function so sfr-ness can be checked,
5232           (all over): repaired calls to aopGetUsesAcc, aopGet, aopPut to comply with
5233           new prototype,
5234           (genFunction, genEndFunction): optimized stack setup,
5235           (genMinus): optimized for literals with ending zeroes (in bytes),
5236           (genCast): fixed bug 0x%d
5237         * src/mcs51/main.c (_mcs51_keywords): added sfr16 and sfr32,
5238           (mcs51_port): added "CONST (CODE)" for const_name
5239         * src/mcs51/peeph.def: made rule 226 more generic
5240         * src/pic/main.c (pic_port): added "CONST (CODE)" for const_name
5241         * src/pic16/main.c (pic16_port): added "CONST (CODE)" for const_name
5242         * src/xa51/main.c (xa51_port): added "CONST (CODE)" for const_name
5243         * src/z80/main.c (z80_port): added NULL for const_name,
5244           (gbz80_port): added NULL for const_name
5245         * support/regression/tests/bug663539.c,
5246         * support/regression/tests/sfr16.c: new tests
5247
5248 2005-06-25 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5249
5250         * device/include/mcs51/p89v51rd2.h, device/include/mcs51/at89s53.h: added.
5251
5252 2005-06-24 Raphael Neider <rneider AT web.de>
5253
5254         * device/lib/pic16/libdev/pic18f[68][567]20.c:
5255           corrected typos...
5256         * device/include/pic16/signal.h: added USBIF
5257           and SIG_USB
5258
5259 2005-06-24 Raphael Neider <rneider AT web.de>
5260
5261         * device/lib/pic16/libdev/pic18f2455.c,
5262           device/include/pic16/pic18f2455.h: NEW
5263         * device/include/pic16/pic18fregs.h,
5264           device/lib/pic16/pics.all,
5265           src/pic16/device.c: added 18f2455
5266         * device/lib/pic16/libdev/pic18f[68][567]20.c,
5267           device/include/pic16/{pic18f[68][567].h,usart.h}:
5268           replaced MULTIPLE_USARTS define with more relaible
5269           compatibility sfrs (for USART access)
5270
5271 2005-06-20 Slade Rich <slade_rich AT users.sourceforge.net>
5272
5273         * src/pic/pcode.c : Fixed problem when a string constant contains a "\r\n"
5274           and the output asm file line is printed on two lines.
5275
5276 2005-06-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5277
5278         * sim/ucsim/hc08.src/inst.cc (inst_condbranch): fixed simulation of
5279           BGT, BLE, BHI, and BLS instructions
5280         * src/hc08/gen.c (outAcc, outBitC, outBitNV, genCmpLt, genCmpGt,
5281           genCmpEq): removed
5282         * src/hc08/gen.c (genCmpEQorNE, genCmp, branchopCmp, nameCmp,
5283           negatedCmp, exchangedCmp, genhc08Code): rewrite of comparison handling,
5284           fixes bug #1216342
5285         * src/hc08/peeph.def: added rules 2g - 2l for new conditional branches
5286
5287 2005-06-15 Raphael Neider <rneider AT web.de>
5288
5289         * src/pic16/NOTES: moved Vangelis from active developers to people to contact
5290         * device/include/pic16/{6520.h,8520.h}: fixed configuration bits
5291         * src/pic16/gen.c (): prevent iTemps from being considered to be in CODESPACE,
5292           fixes bug #1221120; for symbols in CODESPACE get number of bytes to read from
5293           OP_SYM_TYPE() instead of OP_SYM_ETYPE()
5294
5295 2005-06-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5296
5297         * device/include/mcs51/reg764.h: Changed PB0 to PBO as requested by
5298           Marcel Telka in bug #1215704
5299
5300 2005-06-02 Slade Rich <slade_rich AT users.sourceforge.net>
5301
5302         * src/pic/pcode.c : Changed pseudo stack size to 15 to allow WSAVE to be
5303           located in shared memory bank.
5304
5305 2005-05-31 Raphael Neider <rneider AT web.de>
5306
5307         * src/pic16/{gen.c,genarith.c}: replaced sign-extension
5308           "CLRF, BTFSC <signbit>, DECF/COMF" with side-effect-free
5309           "CLRF, BTFSC <signbit>, SETF"; fixes "long>>9"
5310
5311 2005-05-27 Maarten Brock <sourceforge.brock AT dse.nl>
5312
5313         * device/lib/_strncpy.c: fixed the fix
5314
5315 2005-05-26 Raphael Neider <rneider AT web.de>
5316
5317         * src/pic16/glue.c (pic16_printIvalChar): fixed _constant_ string
5318           initializers with \0, bug #1208187
5319         * src/pic/glue.c (printIvalChar): fixed (non- and constant) string
5320           intializers with \0, bug #1208187
5321
5322 2005-05-26 Raphael Neider <rneider AT web.de>
5323
5324         * src/pic16/glue.c (pic16_printIvalChar): fixed string
5325           initializers with \0, bug #1208187
5326         * src/pic16/main.c (_process_pragma): added sanity checks
5327           for stack position and size, emit warnings when appropriate
5328
5329 2005-05-26 Maarten Brock <sourceforge.brock AT dse.nl>
5330
5331         * device/lib/_strncpy.c: fixed not filling with \0
5332
5333 2005-05-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5334
5335         * src/SDCCast.c (funcOfType, funcOfTypeVarg, stringToSymbol,
5336           createFunction),
5337         * src/SDCC.y (external_definition, enumerator, parameter_declaration,
5338           compound_statement),
5339         * src/SDCCsymt.h,
5340         * src/SDCCsymt.c (addSymChain, processFuncArgs): fixed bug #1159134
5341
5342 2005-05-24 Raphael Neider <rneider AT web.de>
5343
5344         * src/pic16/glue.c (pic16_printGPointerType): fixed #1207796
5345
5346 2005-05-24 Raphael Neider <rneider AT web.de>
5347
5348         * device/include/pic16/pic18f{442,452,458}.h: fixed wrong
5349           TRISE definitions, closes bug #1162453
5350
5351 2005-05-22 Raphael Neider <rneider AT web.de>
5352
5353         * src/pic16/main.c (_process_pragma): check for missing
5354           arguments to pragmas code and udata
5355         * device/include/pic16/pic18f{2550,4331,4455,4520}.h:
5356           consistency fixes to match other headers (thanks to Jim Paris)
5357         * device/lib/pic16/libio/i2c.ignore: 18f4331 provides no I2C
5358
5359 2005-05-21 Maarten Brock <sourceforge.brock AT dse.nl>
5360
5361         * src/SDCCicode.c (isOperandEqual): fixed missing ;
5362
5363 2005-05-19 Maarten Brock <sourceforge.brock AT dse.nl>
5364
5365         * support/regression/tests/bug1198642.c: new test
5366         * src/SDCCicode.c (isOperandEqual): fixed bug 1198642
5367         * src/SDCCcse.c (findPrevIc): added comment, please have a look
5368         * support/scripts/resource.h,
5369         * support/scripts/resource.rc,
5370         * src/src.dsp: added sdcc.ico to project as icon for sdcc.exe
5371         * support/scripts/sdcc.ico: added 32x32 icon
5372
5373 2005-05-18 Raphael Neider <rneider AT web.de>
5374
5375         * device/lib/pic16/libdev/pic18f*.c,
5376         * device/include/pic16/pic18f*.h: updated "sfr" and "at X"
5377           keywords to "__sfr" and "__at (X)"
5378         * device/include/pic16/pic18fregs.h: added pic18f4520
5379         * src/pic16/pcode.c (pic16_pCode2str): fixed (?) bug
5380           #1203088 (MPLAB compatibility)
5381
5382 2005-05-17 Raphael Neider <rneider AT web.de>
5383
5384         * device/include/pic16/pic18f{2550,4331,4455,4520}.h: NEW
5385         * device/lib/pic16/libdev/pic18f{2550,4331,4455,4520}.c: NEW
5386         * device/lib/pic16/pics.all: added new devices
5387         * src/pic16/device.c: added support for pic18f4520
5388
5389 2005-05-16 Raphael Neider <rneider AT web.de>
5390         * src/pic16/gen.{c,h}: s/mov2f/pic16_mov2f made public
5391         * src/pic16/genarith.c (genAddLit): fixed bug 1202480
5392         * src/pic16/pcode.{c,h} (pic16_newpCodeOpBit_simple): NEW
5393           convenience function for bit access
5394
5395 2005-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
5396
5397         * device/lib/printf_large.c: fixed bug 1193299
5398         * support/regression/tests/bug1057979.c: added test %3.3s
5399
5400 2005-05-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5401
5402         * device/include/mcs51/8051.h,
5403         * device/include/mcs51/8052.h: made parseable with lint
5404         * device/include/mcs51/lint.h: added include file for (sp)lint
5405         * doc/sdccman.lyx: added doc about use of splint (syntax checking tool)
5406         * doc/cdbfileformat.lyx,
5407         * doc/test_suite_spec.lyx: hardcoded date to the date of last text change
5408
5409 2005-05-14 Raphael Neider <rneider AT web.de>
5410
5411         * device/lib/pic16/Makefile.common.in: add --optimize-df to OPT_FLAGS
5412         * device/lib/pic16/libc/stdlib/itoa.c (new)
5413         * device/lib/pic16/libc/stdlib/Makefile: have itoa.c built
5414         * device/lib/pic16/libio/Makefile: exclude subdir according to
5415           ${subdir}.ignore for certain PICs (lacking e.g. i2c)
5416         * device/lib/pic16/libio/i2c.ignore (new): pic18f1220 has no I2C support
5417         * src/pic16/gen.c (genFunction): prevent annoying warning
5418         * src/pic16/pcode.c: renamed stack_t to dynstack_t to prevent
5419           nameclashes on BeOS
5420         * support/cpp2/cppmain.c (cpp_output_string): new
5421         * support/cpp2/cpplib.c (_cpp_do__Pragma): fixed _Pragma(""),
5422           fixes bug 1116802
5423
5424 2005-05-13 Borut Razem <borut.razem AT siol.net>
5425
5426         * src/SDCCmain.c (linkEdit): fixed bug 1195202
5427
5428 2005-05-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5429
5430         * .version: changed to version 2.5.1; back to bleeding edge development
5431
5432 2005-05-11 Borut Razem <borut.razem AT siol.net>
5433
5434         * doc/sdccman.lyx doc/cdbfileformat.lyx doc/test_suite_spec.lyx:
5435           generate PDF version 1.3 documents
5436
5437 2005-05-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5438
5439         * .version: changed to version 2.5.0
5440
5441 2005-04-27 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5442
5443         * doc/sdccman.lyx: updated weblinks, index and smaller updates
5444
5445 2005-04-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5446
5447         * doc/sdccman.lyx: changed version 2.5.0, documented --std-c89,
5448         --std-sdcc89, --std-c99, --std-sdcc99, and the corresponding #pragmas, as
5449         well as many smaller updates.
5450         * .version: changed to version 2.5.0-pre1
5451
5452 2005-04-26 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5453
5454         * src/SDCCmain.c (setIncludePath): added port->target to SDCC_INCLUDE_NAME
5455
5456 2005-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
5457
5458         * support/regression/tests/bug1185672.c: added
5459         * src/mcs51/gen.c (aopGetUsesAcc, genCpl, genAnd, genOr, genXor): fixed
5460           bug 1185672
5461         * src/mcs51/gen.c (genCall): added comments, made it look safer
5462         * src/mcs51/gen.c (genEndFunction): simplified
5463
5464 2005-04-25 Maarten Brock <sourceforge.brock AT dse.nl>
5465
5466         * src/mcs51/ralloc.c (serialRegAssign): fixed bug 1189609
5467
5468 2005-04-14 Borut Razem <borut.razem AT siol.net>
5469
5470         * fixed bug 1045046 - SIGSEGV with really simple code?:
5471           src/pic/pcode.c (pCodeInitRegisters)- pseudo stack size increased to 16
5472           src/pic/ralloc.c (typeRegWithIdx) - error message on pseudo stack overflow
5473
5474 2005-04-14 Borut Razem <borut.razem AT siol.net>
5475
5476         * src/pic16/gen.c (genInline), src/pic16/main.c (_process_pragma),
5477           src/pic16/device.h: temporarily disabled experimental #inline pragma
5478           for 2.5.0 release
5479
5480 2005-04-14 Maarten Brock <sourceforge.brock AT dse.nl>
5481
5482         * device/include/z80/stdio.h,
5483         * device/include/z80/string.h: removed these highly incomplete files so
5484           SDCC can use the default ones in device/include/
5485
5486 2005-04-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5487
5488         * src/mcs51/gen.c (genEndFunction): removed unused variable to fix
5489         gcc warning.
5490         * device/lib/Makefile.in: default PORTINCDIR to the mcs51 subdir to
5491         fix sdcpp warnings.
5492
5493 2005-04-12 Maarten Brock <sourceforge.brock AT dse.nl>
5494
5495         * device/include/malloc.h: removed redundant __reentrant prototypes
5496         * device/lib/_mullong.c: added working xstack variant in asm (C version
5497           doesn't pass regression tests)
5498         * device/lib/bpx.c: used __data and made bpx char for mcs51
5499         * src/SDCCast.c (decorateType): removed unused GPTYPE_IDATA,
5500           (createFunction): fixed bug with xstackPtr
5501         * src/SDCCcse.c: corrected comments
5502         * src/SDCCopt.c (convertToFcall): fixed warning in MSVC,
5503           (killDeadCode, eBBlockFromiCode): removed unused code
5504         * src/SDCCsymt.h: removed unused GPTYPE_GPTR and GPTYPE_IDATA,
5505           corrected comments
5506         * src/mcs51/gen.c (aopForSym, aopPut, toBoolean, unsaveRegisters,
5507           assignResultValue, genCall, genFunction, genEndFunction, genAnd,
5508           genOr, genXor, genAddrOf): fixed several bugs concerning xstack
5509           (genModOneByte): fixed warning in MSVC
5510         * src/mcs51/main.c (): added comments
5511         * src/mcs51/peeph.def: changed 129 to 129.a, added 129.b, 129.c & 129.d
5512
5513 2005-04-12 Maarten Brock <sourceforge.brock AT dse.nl>
5514
5515         * src/SDCCmain.c (linkEdit): oops, changed one line too many
5516
5517 2005-04-11 Maarten Brock <sourceforge.brock AT dse.nl>
5518
5519         * src/SDCCmain.c (linkEdit): fixed bug with finding crt0.o for z80
5520
5521 2005-04-10 Vangelis Rokas <vrokas AT users.sourceforge.net>
5522
5523         * src/pic16/glue.c (printIvalChar): fixed bug when emitting
5524         characters arrays of larger size than the declared one.
5525
5526 2005-04-10 Borut Razem <borut.razem AT siol.net>
5527
5528         * src/pic/gen.c (genInline),
5529           src/pic/pcode.c (newpCodeAsmDir), (pCode2str),
5530           (genericPrint), (unlinkpCodeFromBranch), (compareLabel),
5531           (findNextInstruction), (findPrevInstruction),
5532           (findInstructionUsingLabel),
5533           src/pic/pcode.h: fixed bug #1164907 - Labels not being recognized
5534         * src/pic/pcode.c (findLabel): added missing '\n'
5535         * src/src.dsp: added SDCCdwarf2.c to the project
5536
5537 2005-04-09 Borut Razem <borut.razem AT siol.net>
5538
5539         * support/scripts/sdcc.nsi: added include/hc08/* h to NSIS setup
5540
5541 2005-04-08 Raphael Neider <rneider AT web.de>
5542
5543         * src/pic16/pcode.c: added helpers defmapInsertAfter (insert a new item
5544           into the chain after a given one) and mergeDefmapSymbols (combine
5545           defmap entries for each symbol per pcode)
5546         * (createDefmap): have defmap entries merged in the end
5547         * (defmapReplaceSymRef): split defmap entries covering two accesses to
5548           a symbol before replacing one access type's symbol, merge symbols in
5549           the end (replacement symbol might already have an entry)
5550         * (assignValnums): keep reference to written WREG intact
5551
5552 2005-04-08 Raphael Neider <rneider AT web.de>
5553
5554         * src/pic16/pcode.c (struct defmap_s): named anonymous union (for
5555           Alpha)
5556
5557 2005-04-08 Vangelis Rokas <vrokas AT users.sourceforge.net>
5558
5559         * src/pic16/pcode.c (pic16_get_op2): enlarged size of array b to 128
5560         bytes
5561
5562 2005-04-07 Raphael Neider <rneider AT web.de>
5563
5564         * device/include/pic16/usart.h: added compatibility defines for
5565           devices with more than one USART
5566         * device/include/pic16/pic18f[68][567]20.h: activated above defines
5567
5568 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
5569
5570         * device/lib/Makefile.in: updated for port specific include
5571
5572 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
5573
5574         * support/regression/ports/mcs51/spec.mk: added mcs51 include
5575
5576 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
5577
5578         * device/include/8051.h,
5579         * device/include/8052.h,
5580         * device/include/at89S8252.h,
5581         * device/include/at89c55.h,
5582         * device/include/at89x051.h,
5583         * device/include/at89x51.h,
5584         * device/include/at89x52.h,
5585         * device/include/mcs51reg.h,
5586         * device/include/reg51.h,
5587         * device/include/reg764.h,
5588         * device/include/regc515c.h,
5589         * device/include/sab80515.h: (re)moved these 12 files
5590         * device/include/mcs51/8051.h,
5591         * device/include/mcs51/8052.h,
5592         * device/include/mcs51/at89S8252.h,
5593         * device/include/mcs51/at89c55.h,
5594         * device/include/mcs51/at89x051.h,
5595         * device/include/mcs51/at89x51.h,
5596         * device/include/mcs51/at89x52.h,
5597         * device/include/mcs51/mcs51reg.h,
5598         * device/include/mcs51/reg51.h,
5599         * device/include/mcs51/reg764.h,
5600         * device/include/mcs51/regc515c.h,
5601         * device/include/mcs51/sab80515.h: and added them here
5602
5603 2005-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
5604
5605         * device/include/stdarg.h: changed SDCC specific keywords to double
5606           underlined form.
5607         * device/include/stdint.h: changed intptr_t and uintptr_t for others than
5608           mcs51 and ds390.
5609         * device/include/hc08/mc68hc908gp32.h,
5610         * device/include/hc08/mc68hc908jb8.h,
5611         * device/include/hc08/mc68hc908jkjl.h,
5612         * device/include/hc08/mc68hc908qy.h: fixed comments
5613         * device/include/mcs51/README: updated
5614         * device/include/mcs51/c8051f120.h: added PINRSF
5615         * device/lib/pic16/libc/stdlib/crc16.c: fixed comments
5616         * src/pic16/pcode.c: MSVC6 doesn't accept declaring new variables
5617           amidst code. Also inline is not supported.
5618
5619 2005-04-06 Raphael Neider <rneider AT web.de>
5620
5621         * src/pic16/pcode.c (pic16_pCodeReplace): also update pcflow->end
5622         * (createDefmap): fixed CALLs to depend on FSR1 and RETLW to restore
5623           callers stack/frame pointers
5624
5625 2005-04-06 Vangelis Rokas <vrokas AT users.sourceforge.net>
5626
5627         * device/include/pic16/usart.h: added, missing in previous commit,
5628         * device/include/pic16/adc.h: fixed typo,
5629         * device/lib/pic16/libc/utils/cvtdec.S: added missing in previous
5630         commit,
5631         * device/lib/pic16/libc/stdlib/g_ftoa.S: modified to include
5632         <p18fxxx.inc>
5633         * device/lib/pic16/libc/stdio/streams.c: leave stdin, stdout
5634         uninitialized because a bug appears with gplink
5635         * device/lib/pic16/{some makefiles}: moved $(CSTD) from CFLAGS to
5636         COMPILE_FLAGS and added CPPFLAGS with -nostdinc because sdcpp
5637         complains for unrecognised option
5638
5639 2005-04-05 Raphael Neider <rneider AT web.de>
5640
5641         * src/pic16/gen.c (pic16_popCopyReg): made copying work for extended
5642           structs as well (using memcpy)
5643         * (genFunction): fixed comparison, used pCodeOpLabel to reduce warning
5644           on ISRs (GOTO has no label)
5645         * src/pic16/device.h: added OF_OPTIMIZE_DF
5646         * src/pic16/main.c: added compiler switch --optimize-df to enable the
5647           new data flow analysis/optimization
5648         * src/pic16/pcode.c: added (prototypes for and implementation of)
5649           dataflow analysis functions, fixed pCodeInstructions' inCond and
5650           outCond values, made RCALL a branch instruction
5651         * (pic16_unlinkpCode): keep C line if possible
5652         * (pic16_pCodeUnlink): removed cast on left side of assignment, have
5653           C line moved if possible
5654         * (pic16_getRegFrompCodeOp): NEW, improved version of...
5655         * (pic16_getRegFromInstruction,pic16_getRegFromInstruction2): changed
5656           to use new pic16_getRegFrompCodeOp (works for more SFRs)
5657         * (pic16_BuildFlow): fixed skip instructions with label (did not start
5658           new flow)
5659         * (pic16_getJumptabpCode): NEW, needed in...
5660         * (LinkFlow): fixed handling of jumptables, calls and conditional
5661           branches
5662         * (pic16_InsertCommentAfter): NEW
5663         * (pic16_pCodeReplace): made verbose and flow preserving
5664         * (AnalyzeFlow): added call to data flow analysis
5665         * src/pic16/pcode.h: added defmaps to pCodeFlow struct
5666         * src/pic16/pcodeflow.h: added PCC_STATUS to mean all STATUS bits
5667         * src/pic16/ralloc.c (packRegsForAssign): added return 1 in the end
5668
5669 2005-04-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5670
5671         * src/SDCCast.c (decorateType): fixed bug #1105626
5672
5673 2005-04-02 Vangelis Rokas <vrokas AT users.sourceforge.net>
5674
5675         * device/include/asm/pic16/features.h,
5676         * pic18f*.h headers,
5677         * device/include/pic16/adc.h,
5678         * device/include/pic16/delay.h,
5679         * device/include/pic16/i2c.h,
5680         * device/include/pic16/malloc.h,
5681         * device/include/pic16/stdio.h,
5682         * device/include/pic16/stdlib.h,
5683         * device/include/pic16/string.h,
5684         * device/lib/pic16/libc/stdio/printf_tiny.c,
5685         * device/lib/pic16/libc/stdio/printf_small.c,
5686         * device/lib/pic16/libc/stdio/strmgpsim.c,
5687         * device/lib/pic16/libc/stdio/strmmssp.c,
5688         * device/lib/pic16/libc/stdio/strmusart.c,
5689         * device/lib/pic16/libc/stdio/vfprintf.c,
5690         * device/lib/pic16/libc/stdlib/ltoa.c,
5691         * device/lib/pic16/libc/stdlib/putchar.c,
5692         * device/lib/pic16/libc/stdlib/x_ftoa.c,
5693         * device/lib/pic16/libc/stdlib/memchrpgm.c,
5694         * device/lib/pic16/libc/stdlib/memchrram.c,
5695         * device/lib/pic16/libc/stdlib/memcpypgm2ram.c,
5696         * device/lib/pic16/libc/stdlib/memcpyram2ram.c,
5697         * device/lib/pic16/libio/adc/adcbusy.c,
5698         * device/lib/pic16/libio/adc/adcread.c,
5699         * device/lib/pic16/libio/adc/adcsetch.c,
5700         * device/lib/pic16/libio/usart/ubaud.c,
5701         * device/lib/pic16/libio/usart/ubusy.c,
5702         * device/lib/pic16/libio/usart/udrdy.c,
5703         * device/lib/pic16/libio/usart/uopen.c,
5704         * device/lib/pic16/libio/usart/uputc.c,
5705         * device/lib/pic16/libsdcc/gptr/gptrget1.c,
5706         * device/lib/pic16/libsdcc/gptr/gptrget2.c,
5707         * device/lib/pic16/libsdcc/gptr/gptrget3.c,
5708         * device/lib/pic16/libsdcc/gptr/gptrget4.c,
5709         * device/lib/pic16/libsdcc/gptr/gptrput1.c,
5710         * device/lib/pic16/libsdcc/gptr/gptrput2.c,
5711         * device/lib/pic16/libsdcc/gptr/gptrput3.c,
5712         * device/lib/pic16/libsdcc/gptr/gptrput4.c: modified all SDCC
5713         specific keywords to double underlined form,
5714         * device/lib/pic16/libc/Makefile.rules,
5715         * device/lib/pic16/libsdcc/Makefile.rules,
5716         * device/lib/pic16/libm/Makefile,
5717         * device/lib/pic16/libio/Makefile.rules: added CSTD macro in CFLAGS
5718         to compile with C standard set in Makefile.common
5719         * device/lib/pic16/libc/stdlib/Makefile: added new C sources
5720         rand.c and crc.c in compilation process,
5721         * device/lib/pic16/libsdcc/int/divuint.c,
5722         * device/lib/pic16/libsdcc/long/divulong.c: changed declaration of
5723         `c' from signed to unsigned,
5724         * device/lib/pic16/startup/crt0.c,
5725         * device/lib/pic16/startup/crt0i.c,
5726         * device/lib/pic16/startup/crt0iz.c: adopted to all SDCC specific
5727         keywords to double underlined form, bug fixes in _do_cinit function
5728         which prevented the correct initialization of the .idata segment,
5729         * src/pic16/pcoderegs.c (insideLRBlock): fixed a bug that caused the
5730         core to enter a infinite loop
5731         * device/lib/pic16/libc/stdlib/rand.c, crc.c: new files
5732
5733 2005-04-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5734
5735         * src/SDCCicode.c (getArraySizePtr): fixed bug #1122171
5736
5737 2005-04-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5738
5739         * device/include/Makefile.in: add support for hc08 subdirectory
5740         * device/include/hc08/: new subdirectory
5741         * device/include/hc08/mc68hc908jkjl.h: new header contributed by
5742         Lucas Loizaga, thanks!
5743         * device/include/hc08/mc68hc908qy.h,
5744         * device/include/hc08/mc68hc908gp32.h,
5745         * device/include/hc08/mc68hc908jb8.h: moved hc08 register defs to
5746         their own directory. Changed internal macro names to use the compiler
5747         reserved namespace. Changed SDCC specific keywords to double
5748         underlined form.
5749         * device/include/math.h,
5750         * device/include/malloc.h,
5751         * device/include/stdarg.h,
5752         * device/include/stdbool.h
5753         * device/include/string.h,
5754         * device/include/tinibios.h,
5755         * device/include/ds400rom.h,
5756         * device/include/8051.h,
5757         * device/include/8052.h,
5758         * device/include/80c51xa.h,
5759         * device/include/at89c55.h,
5760         * device/include/at89S8252.h,
5761         * device/include/at89x51.h,
5762         * device/include/at89x52.h,
5763         * device/include/ds80c390.h,
5764         * device/include/reg764.h,
5765         * device/include/regc515c.h,
5766         * device/include/sab80515.h,
5767         * device/include/mcs51/c8051f000.h,
5768         * device/include/mcs51/c8051f018.h,
5769         * device/include/mcs51/c8051f020.h,
5770         * device/include/mcs51/c8051f040.h,
5771         * device/include/mcs51/c8051f060.h,
5772         * device/include/mcs51/c8051f120.h,
5773         * device/include/mcs51/c8051f300.h,
5774         * device/include/mcs51/c8051f310.h,
5775         * device/include/mcs51/c8051f320.h,
5776         * device/include/mcs51/c8051f330.h,
5777         * device/include/mcs51/c8051f350.h,
5778         * device/include/z180.h: Changed SDCC specific keywords to double
5779         underlined form.
5780
5781 2005-03-31 Vangelis Rokas <vrokas AT users.sourceforge.net>
5782
5783         * src/pic16/device.c (Pics16[]): added devices 18F2550, 18F4331,
5784         18F4455,
5785         * (pic16_assignConfigWordValue): disable testing of configuration
5786         register value with config mask,
5787         * src/pic16/gen.c (pic16_testStackOverflow): prefix stack test
5788         function with port->fun_prefix,
5789         * (genFunction): when generating a naked interrupt function never
5790         create an absolute segment placed in interrupt vector address, place
5791         the actual interrupt function at IVA instead, when an interrupt
5792         function is generated with unspecified interrupt then do not create
5793         the absolute section,
5794         * (genGenPointerGet, genGenPointerSet, genPackBits): replace all
5795         code for generating a call to generic pointer get/put function with
5796         a call to function pic16_callGenericPointer(),
5797         * src/pic16/genutils.c (pic16_callGenericPointerRW): NEW, generates
5798         the call to the generic pointer get/put functions with prefixing the
5799         function name with port->fun_prefix,
5800         * src/pic16/glue.c (pic16glue): ifdef-out test of OF_LR_SUPPORT,
5801         * src/pic16/main.c (_process_pragma): prefix function with
5802         port->fun_prefix,
5803         * (_pic16_finaliseOptions): define macro __18Fxxxx macro when
5804         calling assembler, old 18Fxxxx macro is deprecated,
5805         * src/pic16/pcode.c (unlinkpCodeFromBranch): added PC_INLINE and
5806         PC_ASMDIR in while condition,
5807         * (findInstruction): add PC_ASMDIR in while condition,
5808         * (buildCallTree): prefix main with port->fun_prefix,
5809         * (pic16_pCode2str): fixed bug that didn't emit the memory access
5810         identifier for variable with banked access in instructions BTFSS,
5811         BTFSC, BCF, BSF, BTG
5812         * (AnalyzeFlow): moved call to OptimizepCode to pic16_AnalyzeBanking,
5813         * src/pic16/pcodepeep.c (pCodeOpCompare): increase size of b to 1024,
5814         * src/pic16/pcoderegs.c (pic16_pCodeRegoptimizeRegUsage): don't
5815         perform optimization when enviroment variable NO_REG_OPT is set,
5816         * (insideLRBlock): NEW, return 1 if register is inside an
5817         INF_LOCALREGS block,
5818         * (RemoveRegFromLRBlock): remove a register that is completely
5819         eliminated by register optimization, but it is still left in local
5820         register store/restore in/from stack block,
5821         * (Remove2pcodes): after removing register, check to see if it
5822         should be removed from local register store/restore in/from stack
5823         block,
5824         * src/pic16/ralloc.c (pic16_decodeOp): added decode for
5825         DUMMY_READ_VOLATILE,
5826
5827         * device/include/pic16/adc.h: minor prototype modifications and
5828         update,
5829         * device/include/pic16/malloc.h: added GPL notice various
5830         modifications,
5831         * device/include/pic16/stdint.h: NEW, standard header for ints
5832         * device/include/pic16/delay.h: NEW, header for delay functions,
5833         delay10tcy, delay100tcy, delay1ktcy, delay10ktcy, delay100ktcy,
5834         delay1mtcy,
5835         * device/include/pic16/signal.h: NEW, header providing helper macros
5836         for implementing signal handlers,
5837         * device/include/pic16/stdio.h: added prototypes for functions,
5838         printf, vprintf, sprintf, vsprintf, fprintf, vfprintf. Added
5839         prototypes for stdin and stdout, added macro PUTCHAR to
5840         automatically implement putchar function prototype,
5841         * device/include/pic16/usart.h: modified and updated USART library,
5842         * device/lib/pic16/libio/adc/,
5843         * device/lib/pic16/libio/i2c: some modifications to improve library
5844         performance,
5845         * device/lib/pic16/libc/stdio/: modifications for the new printf*
5846         family of functions,
5847         * device/lib/pic16/libc/stdlib/: various modifications in the malloc
5848         family of functions and other sources,
5849         * device/lib/pic16/libio/usart/: NEW, c sources for the usart module
5850         of the PIC18Fxx[28] devices,
5851         * device/lib/pic16/libc/delay/: NEW, c sources for the delay functions,
5852         * device/lib/pic16/libc/utils/: minor modifications in the .S sources,
5853         * device/lib/pic16/startup/{crt0i.c, crt0iz.c}: redesign of the
5854         _do_cinit function, because the previous failed when local variables
5855         where not placed in the same memory bank,
5856         * device/lib/pic16/libsdcc/char/: various modifications to improve
5857         library performance,
5858         * doc/sdccman.lyx: some reorganization of the PIC16 part, added many
5859         information on the new functions of the c library and more...
5860
5861 2005-03-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5862
5863         * src/SDCCBBlock.c (iCodeBreakDown): fixed bug #1170212
5864
5865 2005-03-26 Raphael Neider <rneider AT web.de>
5866
5867         * src/pic16/gen.c (genSkipc): fixed semantics (execute branch
5868           if condition == CARRY)
5869         * (genCmp): adapted to new genSkipc semantics
5870         * src/pic16/genutils.c (pic6_genCmp_special): removed side effect
5871           on rIfx (genCmp was broken)
5872
5873 2005-03-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5874
5875         * src/SDCCmain.c (setDefaultOptions, optionsTable[], parseCmdLine),
5876         * src/z80/main.c (_keywords[]),
5877         * src/SDCCglobal.h (struct options),
5878         * src/SDCC.y,
5879         * src/SDCC.lex (isTargetKeyword, doPragma, pragma_tbl[]): new pragmas
5880         to enable/disable SDCC and C99 extensions/keywords (std_c89, std_sdcc89,
5881         std_c99, std_sdcc99). Also, equivalent command line options (--std-c89,
5882         --std-sdcc89, --std-c99, --std-sdcc99). SDCC specific keywords are
5883         always available in leading double underscore form. The C99 support is
5884         mostly missing, but it's a start.
5885         * support/regression/tests/bug-227710.c: fixed nonconforming use of
5886         reserved identifier "__data".
5887
5888 2005-03-24 Maarten Brock <sourceforge.brock AT dse.nl>
5889
5890         * src/mcs51/peeph.def: fixed bug 1170013
5891
5892 2005-03-22 Maarten Brock <sourceforge.brock AT dse.nl>
5893
5894         * device/include/mcs51reg.h: fixed bug 842007
5895
5896 2005-03-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5897
5898         * src/SDCCcflow.c (dfNumCompare): committed the wrong version of this
5899         last time.
5900
5901 2005-03-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5902
5903         * src/port.h (struct PORT),
5904         * src/avr/ralloc.c (avr_assignRegisters),
5905         * src/avr/main.c,
5906         * src/ds390/ralloc.c (ds390_assignRegisters),
5907         * src/ds390/main.c,
5908         * src/hc08/ralloc.c (hc08_assignRegisters),
5909         * src/hc08/main.c,
5910         * src/mcs51/ralloc.c (mcs51_assignRegisters),
5911         * src/mcs51/main.c,
5912         * src/pic/ralloc.c (pic14_assignRegisters),
5913         * src/pic/main.c,
5914         * src/pic16/ralloc.c (pic16_assignRegisters),
5915         * src/pic16/main.c,
5916         * src/xa51/ralloc.c (xa51_assignRegisters),
5917         * src/xa51/main.c,
5918         * src/z80/ralloc.c (z80_assignRegisters),
5919         * src/z80/ralloc.h,
5920         * src/SDCCopt.c (eBBlockFromiCode, replaceRegEqv, killDeadCode),
5921         * src/SDCCcse.c (ifxOptimize, cseBBlock, cseAllBlocks),
5922         * src/SDCCcse.h,
5923         * src/SDCCdflow.c (computeDataFlow),
5924         * src/SDCCdflow.h,
5925         * src/SDCCloop.c (addDefInExprs, loopInvariants, loopOptimizations),
5926         * src/SDCCloop.h,
5927         * src/SDCCcflow.c (*),
5928         * src/SDCCcflow.h,
5929         * src/SDCCBBlock.c (iCodeBreakDown, dumpEbbsToFileExt, eBBWithEntryLabel),
5930         * src/SDCCBBlock.h (struct ebbIndex): new struct that keeps two copies
5931         of the eBBlock list, sorted by both bbnum and dfnum. (fixes bug with
5932         immedDom() returning wrong block; probably fixes bug #1160833)
5933
5934 2005-03-20 Borut Razem <borut.razem AT siol.net>
5935
5936         * support/scripts/inc2h.pl: WIN32 port
5937
5938 2005-03-19 Maarten Brock <sourceforge.brock AT dse.nl>
5939
5940         * device/lib/makefile.in: added abs.c and labs.c
5941
5942 2005-03-17 Maarten Brock <sourceforge.brock AT dse.nl>
5943
5944         * device/include/stdint.h: added
5945         * device/lib/abs.c: added
5946         * device/lib/labs.c: added
5947         * device/include/stdlib.h: added abs() and labs() prototypes
5948         * device/lib/libsdcc.lib: added abs and labs
5949         * device/include/float.h,
5950         * device/lib/_fsmul.c,
5951         * device/lib/printf_fast.c,
5952         * device/lib/printf_tiny.c: updated comments
5953
5954 2005-03-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5955
5956         * src/SDCCicode.c (geniCodeSwitch, geniCodeJumpTable): fixed
5957         bug #1164313
5958
5959 2005-03-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5960
5961         * src/SDCCcse.c (cseBBlock): retain assignment to self when volatile
5962         * src/SDCCast.c (isLoopCountable): fixed bug #1161985
5963
5964 2005-03-15 Maarten Brock <sourceforge.brock AT dse.nl>
5965
5966         * device/lib/printf_large.c: removed inline assembly for portability and
5967           readability. Use printf_fast if speed or size are more important.
5968         * src/pic16/gen.c: removed conditions around use of DEBUGpc
5969         * src/pic16/genutils.h: added define for DEBUGpc for MSVC
5970
5971 2005-03-15 Vangelis Rokas <vrokas AT users.sourceforge.net>
5972
5973         * src/pic16/genutils.c (pic16_genCmp_special): initialized offs to
5974         prevent compiler warning
5975
5976 2005-03-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
5977
5978         * device/lib/pic16/startup/crt0i.c (_cinit): local variables where
5979         moved to level 0 and declared as static. Also they are explicit
5980         placed in access bank. This was necessery because some times they
5981         might cross memory bank boundaries. crt0iz.c is *NOT* updated!!!
5982         * src/pic16/device.h: added flag OPTIMIZE_CMP to enable some compare
5983         optimizations. Currently only compare to unsigned char is implemented,
5984         * src/pic16/gen.c: added fReturnIdx array,
5985         * (struct resolvedIfx) is moved to gen.h and made public,
5986         * (struct _G): added sregsAlloc and sregsAllocSet fields,
5987         * (aopForSym): added an optimization to directly store in stack of
5988         the operand of a SEND iCode,
5989         * (pic16_aopOp): don't return return registers as strings (AOP_STR)
5990         but as registers instead (AOP_REG) using the fReturnIdx array,
5991         * (pic16_freeAsmop): remove the freed register from the
5992         _G.sregsAlloc field,
5993         * (pic16_aopGet): in case AOP_STR, the compare to 'a' is changed to
5994         a compare of 'WREG',
5995         * (pic16_popGetTempRegCond): changed function prototype, now
5996         function takes also a bitVector argument v which holds the current
5997         set of registers that are allocated for stack access by aopForSym,
5998         registers allocated in aopForSym for accessing stack symbols are not
5999         any more part of the functions usedRegs field,
6000         * (genCall): some times aopOp is called for a stack variable to be
6001         send, aopForSym might perform the push, if this is true make sure
6002         that genCall doesn't push the variable twice by testing _G.resDirect,
6003         * (genFunction): changed testing for unspecified interrupt number
6004         from 256 to INTNO_UNSPEC,
6005         * modified selection scheme of frame pointer generation. Previously
6006         if function did use local registers a frame pointer was generated,
6007         now a frame pointer is generated only if function has arguments
6008         (that need PLUSW2 register access), or has stack arguments, or the
6009         compiler is not instructed to omit the frame pointer,
6010         * (genEndFunction): before restoring local registers that were saved
6011         in the function preamble, also restore the registers that *might*
6012         have been allocated for stack access,
6013         * (genRet): removed some old comments,
6014         * (genCmp, the active (RN's) version): added a call to the
6015         pic16_genCmp_special function to perform the compare with a more
6016         robust and optimized way,
6017         * (genInline): a feature has been added in inline code generation,
6018         which allows a wildcard variable substitution when writing inline
6019         assembly. Code is incomplete and experimental therefore undocumented,
6020         * (genCast): changed order of aopOp for result and right to allow
6021         aopForSym to directly load the result if possible,
6022         * src/pic16/genutils.c (selectCompareOp, pic16_genCmp_special): NEW,
6023         perform an optimized compare on some selected special occasions,
6024         * src/pic16/genutils.h: declaration of resolvedIfx structure from gen.c,
6025         * src/pic16/glue.c (pic16createInterrupVect): make sure we never
6026         generate an IVT any more,
6027         * src/pic16/main.c (pic16_optionsTable): added command line option
6028         --optimize-cmp,
6029         * (_pic16_initPaths): when calling C preprocessor define pic18fXXXX
6030         macro too, when calling assembler define pic18fXXXX *and* __18Fxxxx
6031         macros,
6032         * src/pic16/NOTES: Raphael Neider added in list of active developers
6033         * src/pic16/pcode.c (OPT_TYPE_STR): added strings jumptable_begin and
6034         jumptable_end to prevent bug #,
6035         * (pic16_pciADDWFC, ADDFWC, COMF, CLRF): added some missing flags in
6036         inCond and outCond fields,
6037         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): add a fix for bug #,
6038         * src/pic16/ralloc.c (serialRegAssign): explicit set willCS to 0 to
6039         turn off register spilling,
6040         * (packRegsForOneUse): synced with other ports' versions although it
6041         is not used currently,
6042         * (pic16_packRegisters): added an optimization while reading
6043         structure bitfields, some registers may be saved (malloc code is
6044         decreased by 80 bytes)
6045
6046 2005-03-12 Vangelis Rokas <vrokas AT users.sourceforge.net>
6047
6048         * src/SDCCcse.c (cseBBlock): inside 'do operand lookup' loop test if
6049         left is a bitfield, if yes, then don't optimize assignment. Perhaps
6050         this can be optimized more?
6051
6052 2005-03-10 Raphael Neider <rneider AT web.de>
6053
6054         * src/pic16/gen.c (pic16_loadFSR0, genPackBits, genUnpackBits,
6055           genNearPointerGet): (hopefully) fixed access to bitfields via
6056           pointers (p->bitN = x; and x = p->bitN; failed)
6057
6058 2005-03-09 Paul Stoffregen <paul AT pjrc.com>
6059
6060         * device/lib/printf_fast.c: fix leading zero format, eg "%02d"
6061
6062 2005-03-09 Raphael Neider <rneider AT web.de>
6063
6064         * src/SDCCopt.c (killDeadCode): fixed bug #1156016
6065
6066 2005-03-06 Maarten Brock <sourceforge.brock AT dse.nl>
6067
6068         * src/SDCCicode.h: moved CRITICAL and ENDCRITICAL from SKIP_IC2 to SKIP_IC
6069         * src/mcs51/ralloc.c (willCauseSpill): added check for REG_BIT type,
6070           (regTypeNum): set REG_BIT type if necessary
6071         * src/mcs51/ralloc.h: added define REG_BIT, used to fix bug 1144613
6072         * support/regression/tests/critical.c: check bug 1144613
6073
6074 2005-03-02 Raphael Neider <rneider AT web.de>
6075
6076         * src/pic16/gen.c (genRightShiftLiteral): fixed bug #1154256
6077
6078 2005-02-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6079
6080         * src/avr/ralloc.c (serialRegAssign),
6081         * src/ds390/ralloc.c (serialRegAssign),
6082         * src/hc08/ralloc.c (serialRegAssign),
6083         * src/mcs51/ralloc.c (serialRegAssign),
6084         * src/pic/ralloc.c (serialRegAssign),
6085         * src/pic16/ralloc.c (serialRegAssign),
6086         * src/xa51/ralloc.c (serialRegAssign),
6087         * src/z80/ralloc.c (serialRegAssign): fixed bug #1105154
6088
6089 2005-02-22 Maarten Brock <sourceforge.brock AT dse.nl>
6090
6091         * src/SDCCast.c (decorateType): fixed bug 1124787
6092
6093 2005-02-20 Hubert Sack <sack AT digiplan.de>
6094         committed by Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6095
6096         * src/mcs51/peeph.def: added peepholes 3.h-k and 132.a-f from
6097         patch #1121755
6098
6099 2005-02-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6100
6101         * src/SDCCpeeph.def: new keyword "labelRefCountChange" which allows peepholes
6102         to keep the correct label reference count when adding/removing references
6103         to labels. A peephole file using this is appended to patch #1144962.
6104
6105 2005-02-14 Raphael Neider <rneider AT web.de>
6106
6107         * device/lib/pic16/libc/string/memccpy.c: changed 3rd argument to char
6108         * src/SDCC.lex (process_pragma): fixed to make disable_warning work for PIC16
6109         * src/pic16/gen.c (aopForSym, calls to pic16_aopOp): prevent unneccessary
6110           retrievals of result operand's value on assignment
6111
6112 2005-02-13 Vangelis Rokas <vrokas AT otenet.gr>
6113
6114         * device/include/pic16/string.h: modified prototype for memccpy()
6115         to memccpy(void *, void *, char, size_t)
6116         * src/pic16/gen.c (genFunction, genEndFunction): reenable if-case to
6117         check whether to omit frame pointer or not,
6118         * (genInline): convert all occurences of "\n" to LF in inline
6119         assembler blocks, this helps formatting the inline text,
6120         * (pic16_loadFSR0): modified prototype,
6121         * (genNearPointerGet, genNearPointerSet): reorganization of code,
6122         removed some 8051 legacy code,
6123         * (genPackBits): enabled handling bitfields exceeding one byte in size,
6124         * src/pic16/ralloc.c (pic16_assignRegisters): clear dynrIdx variable
6125         before allocating temporary registers in functions,
6126
6127 2005-02-11 Maarten Brock <sourceforge.brock AT dse.nl>
6128
6129         * support/regression/tests/bitvars.c: corrected the "fix"
6130
6131 2005-02-10 Maarten Brock <sourceforge.brock AT dse.nl>
6132
6133         * support/regression/tests/bitvars.c,
6134         * support/regression/tests/bitwise.c,
6135         * support/regression/tests/rotate.c: "fixed" problems on Alpha
6136
6137 2005-02-10 Raphael Neider <rneider AT web.de>
6138
6139         * src/pic16/pcode.c (assignToSameBank) : fixed cast to pointer of
6140           different size for Alpha
6141         * src/pic16/gen.c (genCmpEq) : improved compare with 0
6142
6143 2005-02-09 Raphael Neider <rneider AT web.de>
6144
6145         * src/SDCC.lex(doPragma) : save and restore warning options as well
6146           (also added new stack plus clone- and copyAndFreeSDCCERRG())
6147         * have #pragma less_pedantic set the errorlevel to WARNING
6148           (fixes #1117001)
6149         * (cloneOptimize) : fixed wrong malloc's size
6150         * support/Util/SDCCerr.[ch] : made SDCCERRG globally accessible to
6151           facilitate correct handling of #pragma (save|restore)
6152
6153 2005-02-09 Maarten Brock <sourceforge.brock AT dse.nl>
6154
6155         * src/mcs51/gen.c: removed non-standard C nameless struct/union
6156
6157 2005-02-04 Slade Rich <slade_rich AT users.sourceforge.net>
6158
6159         * src/pic/gen.c : Fix for bugs #1080519 & #1115662.
6160
6161 2005-02-03 Maarten Brock <sourceforge.brock AT dse.nl>
6162
6163         * device/include/mcs51/c8051f120.h: added declarations for sbit port 2,3&4
6164
6165 2005-02-02 Raphael Neider <rneider AT web.de>
6166
6167         * src/SDCCast.c (processParms): disabled W_NONRENT_ARGS for pic16 port
6168         * src/pic16/gen.c (aopForSym): reenabled special case for function pointers
6169         * (pic16_storeForReturn): fixed to allow returning function pointers
6170         * (genPackBits): improved accessing full bytes, implemented for GPOINTERs
6171         * device/include/pic16/{stddef.h,stdbool.h}: added
6172
6173 2005-02-02 Maarten Brock <sourceforge.brock AT dse.nl>
6174
6175         * device/include/mcs51/c8051f040.h: added define CPT2_PAGE
6176
6177 2005-02-01 Slade Rich <slade_rich AT users.sourceforge.net>
6178
6179         * src/pic16/pic16.dsp : Added file graph.c to make it compile under windows
6180         * src/pic16/Makefile.bcc : Do not use this file but added file graph.c as it
6181          appeared to be required
6182
6183 2005-01-31 Borut Razem <borut.razem AT siol.net>
6184
6185         * support/scripts/sdcc.nsi: added include/asm/ds390, include/asm/mcs51,
6186           include/mcs51 and include/z80 directories to the package
6187
6188 2005-01-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6189
6190         * src/hc08/gen.c (genFunction): fixed bug #1112752
6191
6192 2005-01-30 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6193
6194         * src/mcs51/peeph.def: adapted peephole 258.x to changed gen.c (genAnd)
6195
6196 2005-01-29 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6197
6198         * src/mcs51/gen.c (genAnd): accessing LSB/MSB by rotating acc
6199
6200 2005-01-29 Maarten Brock <sourceforge.brock AT dse.nl>
6201
6202         * device/include/Makefile.in: create/copy mcs51 and z80 include subdirs
6203
6204 2005-01-27 Maarten Brock <sourceforge.brock AT dse.nl>
6205
6206         * device/include/c8051fxxx.h: removed these 6 files
6207         * device/include/mcs51/c8051fxxx.h: added these 11 new files
6208
6209 2005-01-26 Raphael Neider <rneider AT web.de>
6210
6211         * src/pic16/gen.c (genAssign): fixed assignment from longs
6212           in codespace (were cut to three bytes)
6213         * (genDummyRead): implemented (except for CODESPACE...),
6214           fixed bug #1108575
6215         * src/pic16/glue.c (emitStatistics): beautified
6216         * device/lib/pic16/libm/Makefile: added include path
6217
6218 2005-01-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6219
6220         * src/z80/gen.c (aopPut): fixed bug #1103902
6221
6222 2005-01-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6223
6224         * device/lib/expf.c: fixed bug #1095792
6225
6226 2005-01-24 Vangelis Rokas <vrokas AT otenet.gr>
6227
6228         * device/lib/pic16/libm: added Math library sources
6229
6230 2005-01-24 Raphael Neider <rneider AT web.de>
6231
6232         * src/pic16/pcode.h: added second memory operand to pCodeOpReg
6233           to enable upcast to pCodeOpReg2 (there is no type tag to
6234           differenciate the two and pic16_popGet2p cast into PCOR2)
6235         * src/pic16/main.c (_process_pragma): fixed another malloc bug
6236           (sizeof(sectNames) changed to sizeof(sectName))
6237           Both patches fix segfaults under MinGW.
6238
6239 2005-01-23 Raphael Neider <rneider AT web.de>
6240
6241         * src/pic16/{device.c,pcode.c}: s/free/Safe_free/g for
6242           Safe_[mc]?alloc()'ed variables
6243         * src/pic16/gen.c (pic16_aopOp,pic16_popGet): added handling
6244           of (byte sized) temporaries (assign them to WREG for now)
6245         * src/pic16/main.c (_process_pragma): fixed nasty malloc bug
6246           (used sizeof(set *sectSyms) instead of sizeof(struct sectSym)),
6247           this might fix SIGSEGVs on MinGW...
6248         * src/SDCCopt.c (killDeadCode): restored original behaviour
6249           (volatile operands might get thrown away though)
6250
6251 2005-01-23 Vangelis Rokas <vrokas AT otenet.gr>
6252
6253         * src/pic16/gen.c: fixed bug #1106975,
6254         * src/pic16/gen.c: fixed possible bug #1102572, now during TOS
6255         pointer update, INTCON is saved, global interrupts are disabled and
6256         restored after updateing TOS.
6257         * src/SDCC.y, src/SDCC.lex, src/SDCCsymt.c, src/SDCCsymt.h:
6258         * added function attribute 'shadowregs' to take advantage of shadow
6259         registers,
6260         * added function attribute 'wparam' as an alternative to the wparam
6261         pragma,
6262         * support/Utils/SDCCerr.[ch]: added error E_SHADOWREGS_NO_ISR when
6263         user declares a non-ISR function as 'shadowregs',
6264         * doc/sdccman.lyx: updated to reflect recent changes of pic16 port
6265
6266 2005-01-22 Vangelis Rokas <vrokas AT otenet.gr>
6267
6268         * .version: bumped version number to 2.4.8
6269         * device/lib/pic16/pics.all: list of PIC18F devices supported by
6270         pic16 port,
6271         * device/lib/pic16/libio/i2c/: I2C module support library,
6272         * device/include/pic16/i2c.h: I2C support library header,
6273         * device/lib/pic16/libc/stdio/: standard IO support sources,
6274         * (printf_small.c): printf_small() source, supports float print,
6275         * (printf_tiny.c): printf_tiny() source, does not support floats,
6276         * device/lib/pic16/Makefile.common.in: added OPT_FLAGS macro to
6277         enable global optimizations for entire library source, other
6278         Makefiles in the source tree are also modified to reflect this,
6279         * device/lib/pic16/libc/stdlib/putchar.c (putchar): dummy putchar()
6280         function,
6281         * doc/sdccman.lyx: updated to reflect new changes,
6282         * src/pic16/gen.c (aopForSym): don't handle sym->iaccess in
6283         sym->onStack if-case,
6284         * src/pic16/main.c (_pic16_keywords): commented out keywords bit,
6285         sbit, idata, _idata, xdata, _xdata,
6286         * added pragma library, to link an external library, (see doc),
6287         * removed command line options, --pomit-config-words, --pomit-ivt,
6288         --pleave-reset-vector,
6289         * (pic16_finaliseOptions): when define macro SDCC_MODEL_{SMALL/LARGE}
6290         when calling assembler to reflect memory model used, also define
6291         macro STACK_MODEL_{SMALL/LARGE} when compiling and assembling to
6292         reflect stack model used,
6293         * src/pic16/ralloc.c (pic16_allocDirReg): when operand is allocated
6294         on stack return NULL,
6295
6296 2005-01-22 Daniel Winkler <post AT danielwinkler.de>
6297
6298         * src/SDCCopt.c (killDeadCode): do not throw iCodes away if one
6299           of the operands is volatile. Fixes #1020220
6300
6301 2005-01-22 Daniel Winkler <post AT danielwinkler.de>
6302
6303         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): reenabled optimization
6304         * (OptimizeRegUsage): make sure that there is really no other flow where
6305           the first pCode is used
6306
6307 2005-01-22 Raphael Neider <rneider AT web.de>
6308
6309         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): disabled optimization
6310           to fix #1106967 (pCode->seq are not set up correctly)
6311
6312 2005-01-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6313
6314         * src/SDCCglue.c (glue): make sure code area is declared before the
6315         static initialization area.
6316
6317 2005-01-21 Raphael Neider <rneider AT web.de>
6318
6319         * device/lib/Makefile.in: fixed test for pic16 install dir
6320         * device/lib/pic16/*/Makefile*: modified compile flags to enable
6321           optimizations
6322         * doc/sdccman.lyx: updated banksel optimization, removed --flr-support and
6323           added --optimize-goto compiler switch and pragma wparam documentation
6324         * src/pic16/pcode.c (pic16_OptimizeBanksel): removed statistics dump
6325         * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): fixed copying of WREG, PRODL
6326           and PRODH closing bug #1071770 (peephole optimizer)
6327
6328 2005-01-19 Raphael Neider <rneider AT web.de>
6329
6330         * src/SDCCglobl.h: ensure that PATH_MAX >= 2048 to guarantee
6331           cmdLine buffers (used when calling sdcpp...) are large enough
6332           (MAX_PATH=256 truncates arguments leading to system halts when
6333           used in MinGW...)
6334         * src/pic16/gen.c (pic16_sameRegs): relaxed size criterion
6335         * (genUminus): rewritten to for efficiency
6336         * (genNearPointer[GS]et): enforce reloading of FSR0 (was still
6337           used uninitialized in some cases)
6338         * (genCast): upcasting a 16bit int to a 24bit GPOINTER may not
6339           copy the third byte from the int -- now assumes 0x80 (data memory)
6340         * src/pic16/genarith.c (pic16_genPlus): fixed bug when swapping
6341           operands (genAddLit expects the iCode's operands to swapped as
6342           well), fixed leftover bytes (crashed for short left operands)
6343         * (pic16_genMinusDec): performance improvements, removed false
6344           PIC14 emitSKPNCs
6345         * (pic16_genMinus): fixed to cope with differently sized operands
6346         * src/pic16/glue.c (pic16_glue): added new banksel optimization
6347           for --obanksel > 1
6348         * src/pic16/pcode.c: implemented (first phase of) banksel optimization
6349         * src/pic16/graph.[ch]: implementation of directed graphs, used by
6350           new banksel optimization
6351         * src/pic16/pcoderegs.c (pCodeRegMapLiveRangesInFlow): prevented
6352           analysis for temporary registers (segfaults...)
6353         * src/pic16/peeph.def: added rule
6354
6355 2005-01-18 Vangelis Rokas <vrokas AT otenet.gr>
6356
6357         * device/lib/pic16/libc/stdlib/x_ftoa.c: it defines x_ftoa function
6358         which converts a float number to its ASCII representation
6359         * device/lib/pic16/libc/utils/cnvfrac.S,cnvint.S: support
6360         functions to convert the fractional and integer part of a float to ASCII,
6361         * device/lib/pic16/libc/stdlib/(calloc.c,free.c, malloc.c,
6362         realloc.c): added _MALLOC_SPEC to explicit place variables in data
6363         ram
6364         * device/include/asm/pic16/features.h: added _CODE, _DATA, _AUTOMEM,
6365         _STATMEM macros,
6366         * device/include/pic16/adc.h: added GPL info,
6367         * src/pic16/gen.c (genIfxpCOpJump): perform an genIfxJump but using
6368         a pCodeOp as tested operand,
6369         * (genNearPointerGet): optimized bit testing, does not use
6370         intermediate register for bit value, test directly instead with
6371         BTFSS, BTFSC, works only for single bits,
6372         * (genpic16Code): dump the name of the iCode in the asm,
6373         * src/pic16/ralloc.c (decodeOp): removed static declaration and
6374         renamed to pic16_decodeOp,
6375         * (serialRegAssign): do not allocate a temporary register for iCode
6376         sequences that test a single bit for 1/0
6377
6378 2005-01-12 Vangelis Rokas <vrokas AT otenet.gr>
6379
6380         * src/pic16/pcode.[ch]: introduced pic16_stackpnt_*,
6381         pic16_framepnt_*, pic16_stack_*, pic1_frame_* pointer variables to
6382         access stack and frame pointers. They are initially assigned to
6383         point at pic16_pc_fsr1[lh] and pic16_pc_fsr2[lh] variables and other
6384         accessing SFRs. Updated all occurences of modification of stack or
6385         frame pointer in gen.c and pcode.c,
6386         * src/pic16/ralloc.c (serialRegAssign): fixed two bugs with
6387         assigning of a literal value to pointers,
6388         * src/pic16/main.c (pic16_finiliseOptions): set pre-processor define
6389         flag STACK_MODEL_SMALL or STACK_MODEL_LARGE according to the model
6390         selected
6391
6392 2005-01-11 Vangelis Rokas <vrokas AT otenet.gr>
6393
6394         * doc/sdccman.lyx: update documentation about stack pragma, added
6395         some info for stack memory models
6396
6397 2005-01-08 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6398
6399         * src/pic16/gen.c (DEBUGpc): MSVC 6 does not support macro variable arguments
6400
6401 2005-01-08 Raphael Neider <rneider AT web.de>
6402
6403         * src/pic16/device.c (pic16_dump_usection): changed naming scheme for
6404           udata sections to fix bug #1097823
6405
6406 2005-01-05 Raphael Neider <rneider AT web.de>
6407
6408         * src/pic16/gen.c (genGenericShift): added handling of differently
6409           sized left operand and result
6410
6411 2005-01-04 Raphael Neider <rneider AT web.de>
6412
6413         * src/pic16/gen.c (genIfxJump): fixed inverted skips on CARRY
6414         * (genIfx): fixed (?) read from uninitialized SPIL_LOC (now assumes CARRY
6415           to hold the condition bit)
6416         * added new version of genCmp (old code available via #define)
6417         * added new version of genShiftLeft/genShiftRight in a generic
6418           way, now supports shifting by negative values
6419         * (genLeftShiftLiteral, genRightShiftLiteral): use absolute value of
6420           shiftCount (expected by genGenericShift)
6421         * src/pic16/genarith.c (genPlus): added code for adding CARRY+literal
6422         * src/pic16/pcode.c (pic16_OptimizeJumps): removed annoying statistics
6423           dump
6424         * (pic16_newpCodeOpLit): changed to cast to unsigned char (as e.g. -32766
6425           is an invalid literal too...)
6426
6427 2005-01-04 Vangelis Rokas <vrokas AT otenet.gr>
6428
6429         * src/pic16/gen.c (aopForSym, genEndFunction): applied some fixes
6430         from Raphael Neider,
6431         * src/pic16/pcode.c (pic16_newpCodeOpLit): removed casting to char
6432         for 8-bit literals. This fixes some literal operands which are sign
6433         extended to 16-bits ints when instruction needs only 8-bits.
6434
6435 2004-12-31 Paul Stoffregen <paul AT pjrc.com>
6436
6437         * device/lib/logf.c: added mcs51 assembly version
6438         * device/lib/expf.c: added mcs51 assembly version
6439         * device/lib/_logexpf.c: new shared asm code for expf and logf
6440         * device/include/math.h: add defines for assembly math library
6441         * device/lib/Makefile.in: build new _logexpf.c
6442         * device/lib/libfloat.lib: use new _logexpf.c
6443
6444 2004-12-29 Slade Rich <slade_rich AT users.sourceforge.net>
6445
6446         * src/pic/device.c
6447         * src/pic/pcode.c : adjusted internal stack and pre-allocated registers for
6448           device types which have less than 0x7f registers.
6449
6450 2004-12-29 Slade Rich <slade_rich AT users.sourceforge.net>
6451
6452         * src/pic/genarith.c : Fixed problem with subtraction where the result would not be updated when borrowing.
6453
6454 2004-12-28 Paul Stoffregen <paul AT pjrc.com>
6455
6456         * device/lib/printf_fast.c: only build on supported arch.
6457         * device/lib/printf_tiny.c: only build on supported arch.
6458         * device/lib/printf_fast_f.c: only build if asm float lib
6459         * device/lib/_fsget1arg.c: only build if asm float lib
6460         * device/lib/_fsget2args.c: only build if asm float lib
6461         * device/lib/_fsnormalize.c: only build if asm float lib
6462         * device/lib/_fsreturnval.c: only build if asm float lib
6463         * device/lib/_fsrshift.c: only build if asm float lib
6464         * device/lib/_fsswapargs.c: only build if asm float lib
6465         * device/include/stdio.h: don't provide print_fast,
6466           print_fast_f, print_tiny prototypes if --xstack used
6467
6468 2004-12-28 Maarten Brock <sourceforge.brock AT dse.nl>
6469
6470         * device/lib/sincosf.c (sincosf): don't invert bit/bool by ~
6471         * support/regression/ports/mcs51-stack-auto/spec.mk: added new _fs.. files
6472           to the SOURCES
6473
6474 2004-12-28 Paul Stoffregen <paul AT pjrc.com>
6475
6476         * device/lib/printf_fast_f.c: same as printf_fast, but
6477           with floating point enabled
6478         * device/lib/printf_fast.c: minor tweaks
6479         * device/include/stdio.h: add printf_fast_f
6480
6481 2004-12-27 Paul Stoffregen <paul AT pjrc.com>
6482
6483         * src/SDCCmain.c: make --float-reent default for mcs51
6484         * device/lib/_fsadd.c: added mcs51 assembly version
6485         * device/lib/_fssub.c: added mcs51 assembly version
6486         * device/lib/_fsmul.c: added mcs51 assembly version
6487         * device/lib/_fsdiv.c: added mcs51 assembly version
6488         * device/lib/_fseq.c: added mcs51 assembly version
6489         * device/lib/_fsneq.c: added mcs51 assembly version
6490         * device/lib/_fsgt.c: added mcs51 assembly version
6491         * device/lib/_fslt.c: added mcs51 assembly version
6492         * device/lib/_fscmp.c: shared code for fseq,fsgt,fslt,fsneq
6493         * device/lib/Makefile.in: add _fscmp to build
6494         * device/lib/libfloat.lib: add _fscmp to build
6495
6496 2004-12-27 Paul Stoffregen <paul AT pjrc.com>
6497
6498         * device/lib/_fs2slong.c: added mcs51 assembly version
6499         * device/lib/_fs2sint.c: added mcs51 assembly version
6500         * device/lib/_fs2schar.c: added mcs51 assembly version
6501         * device/lib/_fs2ulong.c: added mcs51 assembly version
6502         * device/lib/_fs2uint.c: added mcs51 assembly version
6503         * device/lib/_fs2uchar.c: added mcs51 assembly version
6504         * device/lib/_slong2fs.c: added mcs51 assembly version
6505         * device/lib/_sint2fs.c: added mcs51 assembly version
6506         * device/lib/_schar2fs.c: added mcs51 assembly version
6507         * device/lib/_ulong2fs.c: added mcs51 assembly version
6508         * device/lib/_uint2fs.c: added mcs51 assembly version
6509         * device/lib/_uchar2fs.c: added mcs51 assembly version
6510         * device/include/float.h: added #define to select asm vs c
6511
6512 2004-12-26 Paul Stoffregen <paul AT pjrc.com>
6513
6514         * device/lib/printf_fast.c: improvements to float output
6515         * device/include/float.h: add defines for assembly float library
6516         * device/lib/_fsget1arg.c: receive 1 float arg
6517         * device/lib/_fsget2args.c: receive 2 float args (reentrant)
6518         * device/lib/_fsnormalize.c: normalize a float
6519         * device/lib/_fsreturnval.c: return float, various helper routines
6520         * device/lib/_fsrshift.c: right shift a float's mantissa
6521         * device/lib/_fsswapargs.c: swap 2 floats
6522         * device/lib/Makefile.in: build these 6 new files for mcs51
6523         * device/lib/libfloat.lib: add these 6 files to the library
6524
6525 2004-12-26 Borut Razem <borut.razem AT siol.net>
6526
6527         * sim/ucsim/avr.src/arith_inst.cc: fixed bug #1088372- savr is not
6528           built by gcc 3.4.2
6529
6530 2004-12-25 Paul Stoffregen <paul AT pjrc.com>
6531
6532         * device/lib/printf_tiny.c: printf for mcs51 in only 267 bytes,
6533           and fully reentrant and register bank neutral.
6534         * device/lib/printf_fast.c: added float (not enabled by default),
6535           added compact/slower integer (also not enabled by default),
6536           improved size/speed of fast integer code, other minor changes
6537         * device/include/stdio.h, device/lib/Makefile.in,
6538           device/lib/libsdcc.lib: integrate printf_tiny into mcs51 build
6539
6540 2004-12-24 Maarten Brock <sourceforge.brock AT dse.nl>
6541
6542         * src/pic16/pcode.c: declaring variables other than at the start of a
6543           block is not supported in C by VC6.
6544
6545 2004-12-22 Vangelis Rokas <vrokas AT otenet.gr>
6546
6547         * applied a previous patch from Raphael Neider that wasn't included
6548         in the previous commits, which fixes infinite loops within jumptable
6549         improvements,
6550         * made some fixes that previous patches introduced
6551
6552 2004-12-21 Vangelis Rokas <vrokas AT otenet.gr>
6553
6554         * src/pic16/gen.c (pic16_aopGet): applied fix from Raphael Neider
6555         that fixes an issue with AOP_PCODE asmop's offset,
6556         * (pic16_popCopyReg): update instance field too,
6557         * (mov2w): modified to pic16_mov2w because it conflicts with mov2w
6558         function of pic port,
6559         * (genCmp, genAnd, genAssign),
6560         * src/pic16/genarith.c (genAddLit): some fixes from Raphael Neider,
6561
6562 2004-12-20 Vangelis Rokas <vrokas AT otenet.gr>
6563
6564         * src/SDCCast.c (gatherAutoInit): allow pic16 to emit static
6565         variables initial values to idata section,
6566         * src/SDCCicode.c (geniCodeCall): patch from ### to fix unreferenced
6567         variables in some functions. This utilizes parmBytes field of iCode
6568         structure to hold the offset of the variable in stack. (might be
6569         able to use the stack field too?)
6570         * applied patch from Raphael Neider # ### , # ###
6571         * src/pic16/glue.c (pic16emitRegularMap): fix to print static
6572         variable initial values in idata section,
6573         * src/pic16/ralloc.c (pic16_allocDirReg): don't allocate register
6574         for static variables with initial value
6575         * src/device/lib/pic16/libsdcc/float/ulong2fs.c (__ulong2fs):
6576         applied fix in while loop from Raphael Neider.
6577
6578 2004-12-19 Maarten Brock <sourceforge.brock AT dse.nl>
6579
6580         * src/ds390/gen.c (genCpl): fixed bit=~(char/bit) bugs, added warning
6581         * src/ds390/main.c (_ds390_regparm): don't pass bit params in registers
6582         * src/ds390/ralloc.c (serialRegAssign): spill bits
6583         * src/mcs51/gen.c (genCpl): fixed bit=~(char) bugs, added warning
6584         * support/Util/SDCCerr.c,
6585         * support/Util/SDCCerr.h: added warning W_COMPLEMENT for using bit=~(bit)
6586         * support/regression/tests/bitvars.c: added tests for bitwise complement(~)
6587         * support/regression/tests/bitwise.c: added test for bitwise complement(~)
6588
6589 2004-12-09 Maarten Brock <sourceforge.brock AT dse.nl>
6590
6591         * device/include/sdcc-lib.h: inserted LGPL, added includes
6592           asm/ds390/features.h and asm/mcs51/features.h
6593         * device/include/asm/default/features.h,
6594         * device/include/asm/gbz80/features.h,
6595         * device/include/asm/z80/features.h: added empty _AUTOMEM
6596           and _STATMEM
6597         * device/include/asm/ds390/features.h,
6598         * device/include/asm/mcs51/features.h: added files with defines for
6599           _AUTOMEM and _STATMEM indicating automatic and static storage class
6600         * device/lib/printf_large.c (_print_format): optimized & used _AUTOMEM
6601         * doc/sdccman.lyx: version 2.4.7, updated xstack documentation
6602         * src/SDCCicode.c (geniCodeCast),
6603         * src/SDCCsymt.c (compareType): allow cast of data-ptr to idata-ptr
6604         * src/SDCCloop.c (loopInduction): removed unused variable lr
6605         * src/SDCCopt.c (convilong, convertToFcall): moved "easy special case"
6606           to convertToFcall to include char modulo (RFE 1065037), added check
6607           if left operand is unsigned and use abs of literal value
6608         * src/SDCCpeeph.c (setFromConditionArgs): removed double quotes option
6609           as it doesn't work after conversion from peephole.def to peephole.rul
6610         * src/mcs51/gen.c (toBoolean): added check for size,
6611           (genModOneByte): optimized code for signed char modulo a literal
6612           power of 2 (thanks to Hubert Sack),
6613           (genRRC): removed unnecessary "clr c",
6614           (genRLC): replaced "add a,acc" with cheaper "rlc a"
6615         * src/mcs51/peeph.def: renamed 115 to 115.a, added rule 115.b: another
6616           jump optimization,
6617           swapped rules 256.c and 256.d,
6618           extended 256.d by using new multiple checks (thanks Erik),
6619           added rules 256.e and 256.f,
6620           updated rule 261.a and 261.b to new generated code
6621         * support/regression/tests/muldiv.c: added test div/mod by a power of 2
6622
6623 2004-12-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6624
6625         * src/SDCCloop.c (basicInduction, loopInduction): fixed several
6626           induction related bugs, including first part of bug #1074377
6627
6628 2004-12-05 Vangelis Rokas <vrokas AT otenet.gr>
6629
6630         * applied patch from bug-report #1076292,
6631         * applied patches for genAnd and Goto-optimizations for Raphael
6632         Neider,
6633         * src/SDCCicode.c (printOperand): fixed !REGA source to compile and
6634         dump a less iCode information,
6635         * src/pic16/device.h (pic16_options_t): added field debgen,
6636         * src/pic16/gen.h: added macros DUMP_FUNCTION_ENTRY,
6637         DUMP_FUNCTION_EXIT, FENTRY, FENTRY2,
6638         * src/pic16/gen.c (my_powof2): renamed to pic16_my_powof2 and made
6639         puclic,
6640         * (various functions): added macros FENTRY and FENTRY2 to functions,
6641         to emit function prologue,
6642         * (various functions): fixed indentation,
6643         * (genNearPointerGet): fixed loading of FSR0,
6644         * (genPackBits): applied patch from Raphael Neider to fix updating
6645         of FSR0 and touching only the modified bits,
6646         * src/pic16/genarith.c (various functions): added macros FENTRY to
6647         emit function prologue in comments,
6648         * src/pic16/pcode.h: added functions debugf2, debugf3,
6649         * src/pic16/ralloc.c: partial fix for packForPush caused
6650         segmentation fault,
6651
6652 2004-12-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6653
6654         * src/mcs51/peeph.def: added 261.a,b (16 bit rotate) by Stas Sergeev
6655           <stsp AT users.sourceforge.net> with reversed byte order
6656         * support/regression/tests/rotate.c: added (ds390 skips some tests)
6657
6658 2004-12-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6659
6660         * src/z80/gen.c (genLeftShift, genRightShift): fixed second part of
6661           bug #1074377
6662         * src/hc08/gen.c (genrshFour, shiftRLong, shiftLLong),
6663         * src/mcs51/gen.c (shiftLLong): Fixed some shifting bugs Frieder found
6664
6665 2004-12-02 Slade Rich <slade_rich AT users.sourceforge.net>
6666
6667         * src/pic/pcode.c : fixed a problem where banksel was not being inserted.
6668
6669 2004-12-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6670
6671         * src/SDCCpeeph.c (callFuncByName): support combined peephole rule
6672           conditions,
6673           (setFromConditionArgs): friendly operand parser for peephole rules,
6674           (operandBaseName, operandsNotRelated): new peephole condition
6675           "operandsNotRelated" -- similar to "operandsNotSame", but takes
6676           architecture specific register naming into account, handles n-way
6677           comparisons, and supports quoted literals
6678         * src/mcs51/peeph.def: restored rule 177.d with an extra condition
6679
6680 2004-12-02 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6681
6682         * src/mcs51/peeph.def: fixed bug #1076940
6683
6684 2004-12-02 Slade Rich <slade_rich AT users.sourceforge.net>
6685
6686         * device/include/pic/pic16f877.h : added an include file for the PIC16F877 device.
6687
6688 2004-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6689
6690         Adding support for replacing ljmps with sjmps in jumptables
6691         generated for switch statements. For now you need to set the
6692         environment variable SDCC_SJMP_JUMPTABLE to enable this.
6693         Now 4 algorithms for mcs51 jumptable generation are used:
6694         ljmp or sjmp jumptables for up to 16 cases, stack-pushing target
6695         addresses loaded pc-relative for up to 112 cases and stack-pushing
6696         target addresses loaded with offset from dptr for up to 256 cases.
6697
6698         * src/SDCCpeeph.c: added peephole conditional labelJTInRange
6699         * src/mcs51/main.c: adapted constants for switch table generation
6700         * src/mcs51/peeph.def: added 260.x for replacing ljmp with sjmp
6701
6702 2004-11-26 Maarten Brock <sourceforge.brock AT dse.nl>
6703
6704         * device/lib/printf_large.c (_print_format): fixed bug 1073386
6705         * support/regression/tests/bug1057979.c: added test for bug 1073386
6706
6707 2004-11-25 Vangelis Rokas <vrokas AT otenet.gr>
6708
6709         * src/pic16/pcode.c: fixed bug which may produce error in non-GNU
6710         compilers
6711
6712 2004-11-25 Vangelis Rokas <vrokas AT otenet.gr>
6713
6714         * src/pic16/device.h,
6715         * src/pic16/genarith.c,
6716         * src/pic16/glue.c,
6717         * src/pic16/main.c,
6718         * src/pic16/pcode.c: applied patches #1068154 and #1070213
6719
6720 2004-11-24 Vangelis Rokas <vrokas AT otenet.gr>
6721
6722         Large cummulative patch for pic16 port.
6723         * device/lib/pic16/gstack.h: NEW, user can specify its own handler
6724         to call when a stack overflow occurs,
6725         * (malloc.h): added CVS Id tag,
6726         * (pic18f{242,252,442,452}.h): added T0CONbits structure and
6727         variable,
6728         * added libc directory. The current version of LibC contains string
6729         functions, ctype functions and macros and some functions of the
6730         stdlib set (like malloc/free/atof/atoi etc...). All functions are to
6731         be extensively tested in the future. Standard disclaimer here.
6732         Library is not automatically build yet. But one can build it by
6733         invoking 'make' inside the libc directory.
6734         * added ADC library under libio. Preliminary version yet.
6735
6736         * src/pic16/gen.h: added emitTOGC macro, to toggle Carry flag,
6737         * src/pic16/gen.c (aopForRemat): asmop size is filled by
6738         aopForRemat() now and not by pic16_aopOp(),
6739         * (pic16_popGetTempReg): removed warning messgae when allocating
6740         temporary registers, its a buggy feature and will be removed,
6741         * (pic16_popGet): set register instance field in AOP_CRY,
6742         * (pic16_outBitC): fixed for results in size greater than 1,
6743         * (genUminusFloat): fixed for pic16, ported code from mcs51,
6744         * (pic16_storeForReturn): optimized return of 0,
6745         * (genCmp): experimental code for new genCmp which uses PIC18's
6746         special compare&skip instructions. Initial tests fail some times
6747         with variables grater than 1 byte in size, so new code is disabled,
6748         * (genUnpackBits, genPackBits): more optimizations in reading/writing,
6749         a single bit,
6750         * (genCast): began a fix to optimize the casting of a bit to another
6751         bit, now assigning a bitfield to another bitfield will fail, sorry,
6752         * src/pic16/main.c: disabled the use of lr-support feature,
6753         * src/pic16/pcode.h: renamed PCASMDIR to PCAD,
6754         * added some function prototypes, added function _debugf prototype,
6755         * src/pic16/pcode.c: (pic16_get_op): fixed emitting operands of register
6756         bits with offset (case PO_GPR_BIT),
6757         * (genericPrint): don't emit INFO pcode when --pcode-verbose not in
6758         command line,
6759         * (isBankInstruction): modified to return 0 for no banking instruction,
6760         and 1 for banking instruction,
6761         * (pic16_isPCinFlow): check for PCAD (assembler directives) too,
6762         caused stop processing pCodes after a inline assembly block,
6763         * (pic16_popCopyGPR2Bit): updated to match bitfields with offset,
6764         * src/pic16/pcoderegs.c: fixed a bug with eliminating some temporary
6765         registers when it shouldn't,
6766         * src/pic16/ralloc.c (allocReg): add preliminary support for
6767         supporting a limited set of temporary registers,
6768
6769 2004-11-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6770
6771         * src/hc08/gen.c (genAssign, genPointerGetSetOfs, genDataPointerGet,
6772           genDataPointerSet): ensure assignments always copy in MSB to LSB
6773           order,
6774           (loadRegFromAop): recognize CLRH optimization,
6775           (genFunction): optimize RECEIVE iCodes in reentrant functions
6776
6777 2004-11-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6778
6779         * src/SDCCmain.c (parseCmdLine, optionsTable[]): fixed bug with
6780           --out-fmt-s19 turning into --out-fmt-elf if s19 was already
6781           selected.
6782         * src/SDCCmain.c (linkEdit): don't define SSEG for HC08
6783         * src/hc08/main.c (_hc08_setDefaultOptions): default xdata to be
6784           contiguous with data
6785
6786 2004-11-19 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6787
6788         * device/lib/_gptrget.c (_gptrget),
6789         * device/lib/_gptrgetc.c (_gptrgetc),
6790         * device/lib/_gptrput.c (_gptrput): _naked allows to use ret
6791           instead of sjmp to ret
6792         * src/mcs51/peeph.def: added peepholes 3.d-g and 177.g,h provided
6793           by Hubert Sack <hsack2002 AT arcor.de> in RFE #1067986, thanks
6794
6795 2004-11-18 Maarten Brock <sourceforge.brock AT dse.nl>
6796
6797         * .version: bumped version to 2.4.7
6798         * device/lib/_gptrget.c (_gptrget): is now _naked
6799         * device/lib/_gptrgetc.c (_gptrgetc): is now _naked
6800         * device/lib/_gptrput.c (_gptrput): is now _naked
6801         * src/SDCCast.c (createBlock): removed ridiculous self-assignment,
6802           (createFunction): fixed xstack
6803         * src/SDCCglue.c (emitMaps): set allocation required for bit area
6804         * src/SDCCicode.c (geniCodeCast): don't change SPEC_OCLS for literal
6805           or bit either,
6806           (geniCodeCritical): store original interrupt state in an iTemp bit
6807           var unless stack-auto
6808         * src/SDCCicode.h: added CRITICAL and ENDCRITICAL to SKIP_IC2
6809         * src/SDCCmain.c (setIncludePath): added include/target to search path
6810         * src/SDCCmem.c (allocParms): store bit vars in bit space, not overlay
6811         * src/SDCCsymt.c (checkFunction): don't check regbank for isr's against
6812           prototype,
6813           (processFuncArgs): put bit vars in bit area
6814         * src/mcs51/gen.c (saveRegisters, unsaveRegisters, genXpush, saveRBank,
6815           unsaveRBank): fixed xstack,
6816           (genFunction): bugfix: replaced (global!) reentrant with fReentrant,
6817           (genFunction, genEndFunction): fixed xstack,
6818           (genAssign): optimization don't walk backwards through mem
6819         * src/mcs51/main.c (_mcs51_regparm): don't pass bit params in registers
6820         * src/mcs51/ralloc.c (createStackSpil): spill bits to bit area
6821         * support/regression/Makefile: also make library (for stack-auto) when
6822           making "all" and added "test-mcs51-xstack-auto"
6823         * support/regression/fwk/lib/testfwk.c: added T2_isr prototype for mcs51
6824         * support/regression/ports/mcs51/T2_isr.c: added this file as a stub
6825         * support/regression/ports/mcs51/fwk.lib: added to link T2_isr stub
6826         * support/regression/ports/mcs51/spec.mk: added rules for fwk.lib
6827         * support/regression/ports/mcs51-stack-auto/spec.mk: replaced
6828           make-library by MAKE_LIBRARY
6829         * support/regression/ports/mcs51-xstack-auto/spec.mk: file added to run
6830           regression tests for xstack
6831         * support/regression/tests/bitvars.c: test for bit vars (bug 938782)
6832         * support/regression/tests/critical.c: test for critical on mcs51
6833
6834 2004-11-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6835
6836         * support/regression/ports/ucz80/spec.mk: use include and lib files from
6837           built version of sdcc instead of installed version
6838
6839 2004-11-14 Maarten Brock <sourceforge.brock AT dse.nl>
6840
6841         * src/mcs51/gen.c (toBoolean): fixed bug 1065458
6842         * device/lib/Makefile.in: z80 uses printf_large.c, sprintf.c and
6843           vprintf.c now
6844         * device/lib/printf_large.c (calculate_digit): fixed bug 1057979
6845         * device/lib/z80/Makefile: don't use printf.c as it fails bug 1057979
6846           WARNING: remove device/lib/build/z80/printf.o by hand when
6847           updating from previous build!
6848         * device/lib/z80/printf.c: updated comment
6849         * support/regression/tests/bug1057979.c: test all ports now
6850         * support/regression/tests/bug1065458.c: file added
6851
6852 2004-11-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6853
6854         * src/z80/gen.c (genFunction, genEndFunction): avoided generating
6855           *_start and *_end symbols for static functions
6856
6857 2004-11-11 Maarten Brock <sourceforge.brock AT dse.nl>
6858
6859         * src/SDCCmain.c (linkEdit): don't suppress crt0 if --nostdlib is used
6860           and search crt0.o in all library paths,
6861           (setIncludePath): proper handling of --nostdinc,
6862           (setLibPath): proper handling of --nostdlib
6863         * support/regression/Makefile,
6864         * support/regression/ports/ds390/spec.mk,
6865         * support/regression/ports/gbz80/spec.mk,
6866         * support/regression/ports/hc08/spec.mk,
6867         * support/regression/ports/mcs51/spec.mk,
6868         * support/regression/ports/mcs51-large/spec.mk,
6869         * support/regression/ports/mcs51-stack-auto/spec.mk,
6870         * support/regression/ports/z80/spec.mk: use include and lib files from
6871           built version of sdcc instead of installed version
6872         * doc/sdccman.lyx: fixed typo in --nostdinc
6873
6874 2004-11-10 Slade Rich <slade_rich AT users.sourceforge.net>
6875
6876         * src/pic/pcode.c,
6877         * src/pic/device.c,
6878         * src/pic/ralloc.c,
6879         * src/pic/gen.c : added support to generate code for struct bit fields.
6880
6881 2004-11-06 Maarten Brock <sourceforge.brock AT dse.nl>
6882
6883         * as/xa51/xa_version.h,
6884         * device/include/errno.h,
6885         * device/include/regc515c.h,
6886         * device/lib/_itoa.c,
6887         * device/lib/_ltoa.c,
6888         * device/lib/ser_ir_cts_rts.c,
6889         * sim/ucsim/xa.src/glob.cc,
6890         * sim/ucsim/xa.src/inst_gen.cc,
6891         * sim/ucsim/xa.src/xa_bit.cc,
6892         * sim/ucsim/xa.src/xa_sfr.cc,
6893         * sim/ucsim/z80.src/inst_dd.cc,
6894         * sim/ucsim/z80.src/inst_fdcb.cc,
6895         * support/scripts/keil2sdcc.pl,
6896         * src/pic16/pic16.dsp,
6897         * src/pic16/pic16a.dsp: corrected cvs line endings
6898         * device/lib/printf_large.c: fixed bug 1057979
6899         * src/pic16/gen.c: fixed non-C standard code
6900         * src/SDCCmain.c: made --pack-iram default, added --no-pack-iram
6901         * src/SDCCglobl.h: changed pack_iram to no_pack_iram
6902         * support/regression/ports/mcs51/support.c: reload T1 asap
6903         * doc/sdccman.lyx: updated for options --pack-iram and --no-pack-iram,
6904           pdata use and clear idata startup behaviour
6905         * support/regression/tests/bug1057979.c: added
6906
6907 2004-11-04 Maarten Brock <sourceforge.brock AT dse.nl>
6908
6909         * device/examples/ds390/ow390/ad26.h,
6910         * device/examples/ds390/ow390/cnt1d.h,
6911         * device/examples/ds390/ow390/crcutil.c,
6912         * device/examples/ds390/ow390/ownet.h,
6913         * device/examples/ds390/ow390/owsesu.c,
6914         * device/examples/ds390/ow390/swt12.h,
6915         * device/examples/ds390/ow390/swtoper.c,
6916         * device/examples/ds390/ow390/temp10.h,
6917         * device/examples/ds390/ow390/thermodl.c,
6918         * device/examples/ds390/tinitalk/tinitalk.dsp,
6919         * device/examples/ds390/tinitalk/tinitalk.dsw,
6920         * device/examples/mcs51/clock/hw.h,
6921         * device/examples/mcs51/simple2/go.bat,
6922         * device/examples/serialcomm/windows/serial.h,
6923         * device/examples/xa51/dummy.c,
6924         * device/examples/xa51/hello.c,
6925         * device/include/80c51xa.h,
6926         * device/include/at89x051.h: corrected cvs line endings
6927
6928 2004-11-04 Vangelis Rokas <vrokas AT otenet.gr>
6929
6930         * src/pic16/main.c (options): added command line --gstack, to trace
6931         stack over/under flows,
6932         * added pragma 'wparam' to allow passing first byte of function
6933         parameters via WREG, syntax is #pragma wparam my_function[, func2...]
6934         * src/pic16/gen.c (pic16_testStackOverflow): function which emits a
6935         call to __gstack_test function and sets up the symbol as extern,
6936         * (pic16_pushpCodeOp, pic16_poppCodeOp, pushw, pushaop, popaopidx,
6937         * popaop): added call to pic16_testStackOverflow,
6938         * (wParamCmp, inWparamList): NEW, test existence of a symbol in
6939         wparamList list,
6940         * (genCall, genPcall): now all parameters are passed via stack
6941         except in functions that are pass to wparam pragma in which WREG is
6942         used too,
6943         * (genPcall): REENTRANT flag is checked to see if variable prototype
6944         contains reentrant keyword, don't call a non-reentrant function, via
6945         a reentrant function pointer or vice versa, functions are never
6946         passed via WREG,
6947         * (genJumpTab): applied patch from bug #1057478 by R.Neider and
6948         D.Winkler,
6949         * src/pic16/glue.c (pic16emitRegularMap): fixed bug which caused a
6950         SIGSEGV when accessing a NULL register stucture,
6951         * (pic16_printGPointerType): modified to handle UPPER modifier for
6952         function initializers, changed prototype of function to simpler one,
6953         * (pic16_printIvalFuncPtr): check to see if function is already
6954         added in externs list,
6955         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): fixed bug which
6956         optimized a move from W to SFR with a move to the same register
6957         later after a CALL,
6958         * device/lib/pic16/debug: NEW directory, contains debug features
6959         which are enabled when linking with libdebug.lib, currently command
6960         line option --gstack enables stack pointer tracing for over/under
6961         flow, corresponding sources are in debug/gstack
6962
6963 2004-10-30 Vangelis Rokas <vrokas AT otenet.gr>
6964
6965         * doc/sdccman.lyx: updated SDCC version,
6966         * (PIC16 port): update list of command line options,
6967         * src/pic16/device.h (structure pic16_options_t): added field gstack
6968         to enable stack overflow tracing on push/pops,
6969         * src/pic16/device.c (statistics structure): added statistics
6970         structure,
6971         * (pic16_dump_access, pic16_dump_usection, pic16_dump_gsection,
6972         pic16_dump_int_registers): increase statistics counters for each
6973         * variable which is encountered
6974         * (pic16_dump_usection): emit each .udata variable to its own udata
6975         section,
6976         * src/pic16/gen.c (assignResultValue, genCall, genPcall, genFunction):
6977         when macro USE_WREG_IN_FUNC_PARAMS is set to 0 pass all function
6978         parameters via stack, otherwise use old scheme,
6979         * src/pic16/glue.c (pic16_emitStatistics): dump statistics in
6980         assembler output file,
6981         * src/pic16/main.c: added command line options --gstack to enable
6982         push/pop tracing for stack overflow,
6983         * src/pic16/pcode.c (all pCodeInstruction records for PIC18F
6984         instructions): added size of each instruction,
6985         * (pic16_countInstruction): estimate size of instructions in
6986         the_pFile list, inline assembly blocks are not counted,
6987         * (pic16_FixRegisterBanking): trace previous register usage, when
6988         banksel optimizations is greater than 0, don't emit a redudant
6989         banksel directive,
6990
6991 2004-10-26 Slade Rich <slade_rich AT users.sourceforge.net>
6992
6993         * src/pic/ralloc.c : fixed inefficient code produced when compiling a complimented bit operation.
6994         * src/pic16/ralloc.c : applied same fix for pic16.
6995         * src/pic/gen.c : tidied it up a little.
6996
6997 2004-10-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6998
6999         * src/mcs51/peeph.def: disabled 259.a,b for removing redundant ret,
7000         thanks to Martin Helmling for reporting (mail on sdcc-devel 2004-10-25)
7001
7002 2004-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7003
7004         * src/SDCCast.c (reverseParms): fixed bug #1040577 (part 2)
7005
7006 2004-10-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7007
7008         * device/lib/ser_ir_cts_rts.c: integer promotion caused a call to the
7009         non-reentrant function __modsint in the interrupt function (thus
7010         corrupting math operations during serial I/O)
7011         * device/lib/ser_ir.c: as above, changed buffersize
7012         * src/mcs51/peeph.def: added 259.a,b for removing redundant ret,
7013         256.c,d for zeroing
7014         * doc/Makefile: added option -t for rsync
7015
7016 2004-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7017
7018         * src/SDCCast.h (struct ast),
7019         * src/SDCCast.c (reverseParms, copyAst): fixed bug #1040577 (part 1)
7020
7021 2004-10-20 Borut Razem <borut.razem AT siol.net>
7022
7023         * support/scripts/sdcc.nsi: added include/pic16/*.h to the setup
7024         package
7025
7026 2004-10-20 Vangelis Rokas <vrokas AT otenet.gr>
7027
7028         * device/lib/pic16/libsdcc/Makefile: added lregs directory in
7029         makefile targets,
7030         * device/lib/pic16/libsdcc/lregs/{Makefile,lrst.c,lrrest.c}: NEW
7031         support functions to replace long sequences of MOVFF's from access
7032         bank registers to stack and vice versa,
7033         * src/pic16/device.h: added new field opt_flags, where optimization
7034         flags can be set to enable certain features,
7035         * src/pic16/gen.c (pic16_emitpinfo): NEW to add PC_INFO pCode in
7036         * pBlock, (genFunction, genEndFunction): surroung loop for
7037         saving/loading used registers in stack with PC_INFO pCodes,
7038         INF_LREGS. Code in between can then be optimized by pCode optimizer
7039         to support function calls,
7040         * (genDataPointerSet): fixed bug which loaded float fields in
7041         structures with corrupt data,
7042         * src/pic16/genutils.c (debugf, _debugf): macro/function which emits
7043         in a standard way debug info on stderr. Feature used for developing
7044         and debugging only,
7045         * src/pic16/glue.c (pic16glue): reformatted, deleted some old and
7046         obsolete chunks of code,
7047         * if optimization flag OF_LR_SUPPORT was set, call pic16_OptimizeLocalRegs,
7048         * src/pic16/main.c (_pic16_parseOptions): added handler for --flr-support,
7049         * pic16/src/pcode.c (pic16_newpCodeInfo,
7050         * (pic16_newpCodeOpLocalRegs),
7051         * (pic16_convertLocalRegs2Support): NEW, to support new optimization
7052         feature,
7053         * (pic16_pCodeConstString): printing of the initial value of a
7054         symbol as a comment is inhibited since parsing was already done by
7055         copyStr and output is corrupt,
7056         * (pic16_pCode2str, genericPrint): handle PC_INFO pCode,
7057
7058 2004-10-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7059
7060         * src/mcs51/ralloc.c (packRegisters): fixed bug #1044601
7061
7062 2004-10-19 Maarten Brock <sourceforge.brock AT dse.nl>
7063
7064         * as/mcs51/lkarea.c: removed old K&R style,
7065           (lnksect): changed check on boundary error,
7066           (lnksect2): changed check on boundary error,
7067           (lnksect2): extend XSTK to end of page if size = 1
7068         * as/mcs51/lkmain.c: removed old K&R style,
7069           (Areas51): create l_IRAM symbol
7070         * as/mcs51/lkmem.c (summary2): added report on PSEG and XSTK
7071         * device/lib/Makefile.in: renamed model-mcs51-reentrant to
7072           model-mcs51-stack-auto, added model-mcs51-xstack-auto
7073         * device/lib/_mullong.c: added version to be compiled with xstack
7074         * device/lib/mcs51/crtclear.asm: clear only upto --iram-size
7075         * device/lib/mcs51/crtxclear.asm: clear pdata as well
7076         * device/lib/mcs51/crtxstack.asm: fixed comment
7077         * src/SDCCglue.c: maxInterrupts defaults to 0,
7078           (emitMaps): added pdata,
7079           (createInterruptVect): (re)moved default,
7080           (glue): added pdata,
7081           (glue): moved __start__xstack to XSTK with default size 1
7082         * src/SDCCmain.c (parseCmdLine): automatically set options.intlong_rent
7083           and options.float_rent when options.stackAuto is set,
7084           (linkEdit): only write XDATA_NAME if provided on command line
7085         * src/SDCCmem.h,
7086         * src/SDCCmem.c: added pdata
7087         * src/port.h: added pdata_name to PORT
7088         * src/mcs51/gen.c (toBoolean): fixed for Acc use of aopGet,
7089           (saveRegisters, unsaveRegisters): removed usage of B,
7090           (genMinus): fixed accumulator clash,
7091           (genJumpTab): added comment, this needs another look
7092         * src/mcs51/gen.c: added check for "B in use" paranoia,
7093           added pushB() and popB()
7094         * src/mcs51/peeph.def: restart after 177.c so 177.a can get a second
7095           chance
7096         * src/avr/main.c,
7097         * src/ds390/main.c,
7098         * src/hc08/main.c,
7099         * src/mcs51/main.c,
7100         * src/pic/main.c,
7101         * src/pic16/main.c,
7102         * src/xa51/main.c,
7103         * src/z80/main.c: (reset_regparms) made void parameter explicit and
7104           added PSEG (PAG,XDATA) or NULL to port specifier
7105         * src/ds390/main.c (_ds390_genIVT): moved implemented default in here
7106         * src/mcs51/main.c (_mcs51_genIVT): moved implemented default in here,
7107           (_mcs51_genInitStartup): removed __start__xstack equ,
7108           (mcs51_port): moved xstack from XSEG (XDATA) to XSTK (PAG,XDATA)
7109         * src/pic16/device.c (pic16_dump_usection, pic16_dump_isection),
7110         * src/z80/gen.c (_rleAppend): fixed warnings
7111         * support/regression/tests/zeropad.c: added pdata test
7112         * .version: bumped to 2.4.6
7113
7114 2004-10-17 Borut Razem <borut.razem AT siol.net>
7115
7116         * support/scripts/sdcc.nsi: cross compiling of WIN32 setup.exe on Linux
7117         as a part of nightly build
7118
7119 2004-10-16 Vangelis Rokas <vrokas AT otenet.gr>
7120
7121         * src/pic16/gen.c (struct _G): added field useWreg, is set to 1 when
7122         WREG holds the first byte function parameters,
7123         * (aopForSym): take special case for symbols which are in FARSPACE
7124         but in CODESPACE too,
7125         * (assignResultValue): modified to take into account _G.useWreg,
7126         * (genCall): don't use wreg for parameter passing when function is
7127         declared as reentrant, too, added optimization INCF to stack
7128         pointer when stack parameter count is 1,
7129         * (genFunction, genEndFunction): refurnished and fixed to not using
7130         wreg for passing parameters when function has varargs or is
7131         reentrant, fixed bug with symbol name compare for generating
7132         functions in absolute address,
7133         * (pic16_storeForReturn): refurnished,
7134         * (genCmp): began writing a new version of the function, not ready
7135         yet, therefore it is disabled,
7136         * (genAssign): do not read code memory when assigning a function to
7137         a pointer function,
7138         * src/pic16/glue.c (pic16emitStaticSeg): abSym->name is defined an
7139         array of characters, not pointer,
7140         * (pic16initialComments): in debug mode emit an .ident directive for
7141         the assembler,
7142         * (_process_pragma): emit a new warning type (internal to pic16)
7143         when setting stack to default length, emit a similar warning when
7144         placing a function at absolute address and address is not word aligned
7145         * (_pic16_parseOptions): added 'return TRUE' statement,
7146         * (_pic16_linkEdit): if compiling a source, then add the source's
7147         file object, first in the list of objects to link,
7148
7149 2004-10-13 Slade Rich <slade_rich AT users.sourceforge.net>
7150
7151         * src/pic/pcoderegs.c : increased count on regUsedinRange to prevent unnecessary warning.
7152         * src/pic/main.c : removed VC warning.
7153         * src/pic/gen.c : changed comment.
7154
7155 2004-10-12 Vangelis Rokas <vrokas AT otenet.gr>
7156
7157         * device/lib/pic16/libsdcc/gptr/gptrput[234].c: an external
7158         reference to a deprecated symbol _GPTRREG was causing failure to
7159         link. Thanks G. M. Gallant for the info.
7160
7161 2004-10-12 Slade Rich <slade_rich AT users.sourceforge.net>
7162
7163         * src/pic/pcode.c : Applied a code patch supplied by Paul Ashmore in
7164         comments for Bugs item #954788.
7165
7166 2004-10-10 Vangelis Rokas <vrokas AT otenet.gr>
7167
7168         * src/pic16/device.c (pic16_dump_gsection,
7169         * pic16_groupRegistersInSection): handle symbols declared to be in
7170         access bank differently,
7171         * src/pic16/gen.c (struct _G): added field resDirect,
7172         * (aopForSym): if symbol on stack and iCode is '=' and result exists,
7173         send values read from stack directly to result and don't allocate
7174         temporary values,
7175         * (pic16_sameRegs): fixed bug that allowed MOVFF to move between
7176         same registers,
7177         * (pic16_sameRegsOfs): NEW,
7178         * (freeAsmop): if _G.resDirect is set then do not mark registers as
7179         free because they were not allocated from temporary pool,
7180         * pic16_popRegFromString): workaround to fix a problem with
7181         allocating variables twice or never,
7182         * (genGenPointerGet): using PRODL instead of FSR0H,
7183         * (genGenPointerSet): using POSTDEC1 (that is a stack location)
7184         instead of FSR0H,
7185         * (genAssign): take advantage of the _G.resDirect flag,
7186         * (genCast): around line 11844, use mov2f instead of directly
7187         MOVFF'ing between operands to account for literal values,
7188         * src/pic16/genutils.c: some new debug functions for gpsim have been
7189         added,
7190         * src/pic16/glue.c (pic16_printIvalType): fixed bug that initialized
7191         float with integer part only,
7192         * src/pic16/main.c (_process_pragma): handle pragma udata access to
7193         place variables in access bank
7194         * device/lib/pic16/libsdcc/gptr/gptr*.c: using BRA instead of GOTO,
7195         updated sources to reflect recent changes in gen.c
7196
7197 2004-10-06 Vangelis Rokas <vrokas AT otenet.gr>
7198
7199         * device/lib/pic16/libsdcc/Makefile.rules: fixed bug concerning
7200         sources that searched for headers in installation path, now the
7201         device/include/pic16 is used,
7202         * src/pic16/glue.c (pic16glue),
7203         * src/pic16/pcode.c (pCode2str, genericPrint): don't print .file or
7204         .line directives if not in debug mode, this suppresses assembler's
7205         warnings for ignored directives
7206
7207 2004-10-05 Maarten Brock <sourceforge.brock AT dse.nl>
7208
7209         * src/port.h: made reset_regparms prototype void parameter explicit.
7210         * src/SDCCsymt.c (processFuncArgs): removed argument "func".
7211         * src/mcs51/ralloc.c (packRegisters): new fix for bugs 898889 & 979599.
7212         * doc/sdccman.lyx: documented warning disabling and how to use
7213           printf_large to make it print floats.
7214         * device/include/stdbool.h: NEW
7215         * device/lib/_atof.c,
7216         * device/lib/_divuint.c,
7217         * device/lib/_divulong.c,
7218         * device/lib/expf.c,
7219         * device/lib/printf_large.c,
7220         * device/lib/sincosf.c,
7221         * device/lib/sincoshf.c: used stdbool.h, all compile with stack-auto now
7222         * device/lib/Makefile.in: added target for model-mcs51-reentrant to build
7223           a completely reentrant lib.
7224
7225 2004-10-05 Vangelis Rokas <vrokas AT otenet.gr>
7226
7227         * device/lib/pic16/libsdcc/gptr/gptr*.c: added return statements
7228         * device/include/pic16/stdio.h: fixed bug with colon
7229
7230 2004-10-03 Vangelis Rokas <vrokas AT otenet.gr>
7231
7232         * device/include/pic16/stdio.h,
7233         * device/include/pic16/stdlib.h,
7234         * device/include/pic16/math.h: NEW
7235         * device/lib/pic16/libsdcc/gptr/*.c (gptrget*, gptrput*): functions
7236         declared as _naked to reduce overhead
7237         * device/lib/Makefile.in (target port-specific-objects-pic16):
7238         changed * to *.* so to ignore the CVS directory,
7239         * src/pic16/gen.c (pic16_freeAsmop): added code to store result of
7240         stacked variables back in stack,
7241         * (genEndFunction): fixed bug reported by G.M. Gallant with stack
7242         corruption
7243
7244 2004-10-01 Vangelis Rokas <vrokas AT otenet.gr>
7245
7246         * .version: bumped version number to 2.4.5
7247         * support/Util/SDCCerr.h: added warning W_POSSBUG2.
7248         * support/Util/SDCCerr.c (messages structure): added entry for
7249         W_POSSBUG2
7250
7251         Large cumulative patch for pic16 port and libraries.
7252         * device/include/pic16/sdcc-lib.h,
7253         * device/include/pic16/stdarg.h,
7254         * device/include/asm/pic16/features.h,
7255         * device/include/lib/pic16/libsdcc/gptr/{*.c, Makefile}: NEW,
7256         * device/include/pic16/float.h: changes reentrant keyword with
7257         _FS_REENTRANT, added prototype for __fsneq, included sdcc-lib.h
7258         * device/lib/pic16/libsdcc/Makefile: added target directory gptr,
7259         updated target build-libraries to include objects from gptr,
7260         * device/lib/pic16/libsdcc/{char,int,long}/*.c: added macro
7261         _IL_REENTRANT to all function headings, included sdcc-lib.h header,
7262         * device/lib/pic16/libsdcc/float/*.c: added macro _FS_REENTRANT to
7263         all function headings,
7264         * src/SDCCmain.c: added global parameter userIncDirsSet,
7265         * (parseCmdLine): when option -I is encountered add directory to
7266         userIncDirsSet too,
7267         * src/version.awk: added space between control and long,
7268         * src/pic16/NOTES: added some notes for the port,
7269         * src/pic16/gen.c: added prototype for mov2fp function,
7270         * (fReturnpic16[]): properly named return value registers,
7271         * (_G structure): added fields stackRegSet, fregsUsed, stack_lat,
7272         * (aopForSym): added code to handle symbols with onStack flag set,
7273         symbols onStack are allocated PTRSIZE bytes,
7274         * (aopFreeAsmop): handles special case where asmops are stack objects,
7275         * (aopGet, pic16_popGet): adde cod to handle new asmop AOP_STA,
7276         * (pic16_popGetTempReg, pic16_popGetTempRegCond, pic16_popReleaseTempReg):
7277         added argument lock to trace flaws in allocating temporary registers
7278         when developing port,
7279         * (pic16_popGetLit, pic16_popGetLit2): changed lit from unsigned to signed
7280         * (pic16_popRegFromString): reenabled allocating a direct register
7281         from string,
7282         * (assignResultValue): various beautifications,
7283         * fixed bug #1037717 (patch from R. Neider & D. Wrinkler) with mistaken
7284         referenced function argument,
7285         * (genIpush): reenabled to allow stacked arguments, handles only
7286         ic->parmPush iCodes,
7287         * (genCall, genPcall): major changes to allow for variable argument
7288         functions, fixed a bug with falsely restoring stack pointer after
7289         returning from call,
7290         * (genFunction): pending code for critical function,
7291         * (shiftR1Left2ResultSigned, shiftR1Left2Result, shiftL2Left2Result,
7292         * (shiftR2Left2Result, shiftLLong) applied patch #1032155 from R.Neider,
7293         * (genNearPointerGet): fixed bug with indirect reading, was always
7294         reading from INDF0
7295         * (genGenPointerGet, genGenPointerSet): rewrote to support generic
7296         pointers,
7297         * (genAddrOf): rewrote code to take address of a stacked function parameter
7298         * (genCast): fixed casting to generic pointer type,
7299         * src/pic16/gen.h: added AOP_STA,
7300         * (struct asmop): added field stk,
7301         * src/pic16/genarith.c (pic16_AopType): handle AOP_STA,
7302         * (pic16_genPlusIncr): changed emitSKPNZ to emitSKPNZ,
7303         * (pic16_genAddLit, pic16_genPlus): applied patch #1034042 by tecodev,
7304         * (pic16_genMinus): fixed bug #1035119 with patch submitted by tecodev,
7305         * src/pic16/genutils.c (pic16_genNot): removed symbol *tlbl,
7306         * src/pic16/glue.c (pic16_printGPPointerType): fixed to support new
7307         generic pointers,
7308         * src/pic16/main.c (_pic16_initPaths): ignores default SDCC include
7309         and library paths,
7310         * (pic16_port structure): generic pointer size is set to 3,
7311         * src/pic16/pcode.c (pic16_newpCodeOpLit): correctly print literal integer,
7312         * (insertBankSwitch): cast to (char *) to prevent 64bit CPUs'
7313         compiler warning,
7314         * src/pic16/ralloc.c (allocReg): prevent allocating register when
7315         operand is an iTemp,
7316
7317 2004-09-24 Martin Helmling <mh AT octo-soft.de>
7318
7319         * debugger/mcs51/cmd.c: set PC if a symbol at pc reg is set
7320         * debugger/mcs51/simi.c: addapt new syntax of s51
7321
7322 2004-09-23 Vangelis Rokas <vrokas AT otenet.gr>
7323
7324         * src/pic16/genutils.c (pic16_genNot): fixed bug #1032265,
7325         * src/pic16/pcode.c: commented out some calls to free() in order to
7326         fix bug #989576,
7327
7328 2004-09-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7329
7330         * src/SDCCicode.h,
7331         * src/SDCCicode.c (isiCodeInFunctionCall),
7332         * src/avr/ralloc.c (selectSpil),
7333         * src/pic/ralloc.c (selectSpil),
7334         * src/pic16/ralloc.c (selectSpil),
7335         * src/ds390/ralloc.c (selectSpil),
7336         * src/hc08/ralloc.c (selectSpil),
7337         * src/xa51/ralloc.c (selectSpil),
7338         * src/mcs51/ralloc.c (selectSpil): Don't use remainSpil to spill to the
7339         stack in the middle of a function call sequence (fixes bug #1020268)
7340         * src/SDCCicode.c (geniCodeJumpTable): fixed error in computing the
7341         costs associated with the minimum switch case.
7342
7343 2004-09-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7344
7345         * src/SDCC.lex: fixed bug #1030549
7346
7347 2004-09-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7348
7349         * src/SDCCcse.h (struct cseDef),
7350         * src/SDCCcse.c (cseBBlock, newCseDef, ifFromAddrTaken): purge CSEs
7351         over a function call if the CSE is derived from a symbol whose
7352         address has been taken (fixes bug #1029883)
7353         * support/regression/tests/bug-1029883: a new regression test for
7354         this bug
7355
7356 2004-09-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7357
7358         * src/hc08/gen.c (emitinline): fixed bug #1029778
7359         * src/SDCC.y (assignment_expr): fixed the grammer so that assignment
7360         to a cast object is no longer a syntax error ("fixes" bug #1030006,
7361         and starts toward RFE #905167)
7362
7363 2004-09-17 Vangelis Rokas <vrokas AT otenet.gr>
7364
7365         * src/pic16/gen.c (mov2f): New function to move an operand to
7366         another without considering if it is a literal or a register,
7367         * (pic16_sameRegs): don't check if they are both AOP_REG,
7368         * (AccRsh): removed andmask=0 lines,
7369         * (genLeftShift): duplicated to be improved in future versions,
7370         * src/pic16/main.c (_process_pragma): emit stack default size in hex,
7371         * src/pic16/pcode.c: added POC_INFSNZW, updated inverted_op fields
7372         in POC_INCFSZ, POC_INCFSZW, POC_INFSNZ,
7373         * (pic16initMnemonics): added initialization for POC_INFSNZW,
7374         * (insertBankSwitch): fixed inserting banksel directives algorithm
7375         for instructions that follow a skip instruction, this fixes a report
7376         for broken subtraction code generation,
7377         * src/pic16/ralloc.c (deassignLRs): do not free register if current
7378         iCode is a left op, just in case result and right share the same
7379         registers
7380
7381 2004-09-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7382
7383         * src/hc08/main.c,
7384         * src/hc08/gen.c (genJumpTable): more efficient jump table, supports
7385         preservation of HX
7386         * src/hc08/gen.c (pullRegs): fixed order of HX & XA pairs
7387         * src/mcs51/ralloc.c (packRegisters): removed the patch applied
7388         on 2004-09-12; it was buggy
7389
7390 2004-09-15 Bernhard Held <bernhard AT bernhardheld.de>
7391
7392         * src/SDCCsymt.h: removed RESULT_CHECK
7393         * src/SDCCast.c,
7394         * src/SDCCglue.c,
7395         * src/SDCCval.c,
7396         * src/pic/glue.c,
7397         * src/pic16/glue.c: replaced RESULT_CHECK with RESULT_TYPE_NONE
7398
7399 2004-09-15 Vangelis Rokas <vrokas AT otenet.gr>
7400
7401         * src/SDCCicode.c (piCode): applied patch from Raphael Neider,
7402         * src/pic16/device.c (pic16_assignConfigWordValues): wrong
7403         configuration values no more rejected by compiler, they are assigned
7404         to configuration registers with a warning message instead,
7405         * src/pic16/glue.c (pic16_emitConfigRegs): added +1 at top-limit of
7406         the for-loop so last conf register is emitted too,
7407         * (_pic16_initPaths): link library libsdcc.lib by default,
7408         * (_hasNativeMulFor): modified test for multiplication according to
7409         Raphael Neider's remarks. Integer multiplication is also done with
7410         support functions,
7411         * device/include/pic16/pic18fregs.h: corrected type error in while
7412         testing and including 18f6720 header file
7413
7414 2004-09-14 Vangelis Rokas <vrokas AT otenet.gr>
7415
7416         * src/pic16/device.h (pic16_options): removed field use_crt,
7417         * src/pic16/gen.c (genUnpackBits): added call to pic16_loadFSR0
7418         until an optimization to handle single bits is added,
7419         * (pic16_loadFSR0): moved before genUnpackBits,
7420         * (genAnd): some white lines removed,
7421         * src/pic16/main.c (_pic16_finaliseOptions): set omit_ivt and clear
7422         leave_reset flags in pic16_options when using crt modules,
7423
7424 2004-09-12 Maarten Brock <sourceforge.brock AT dse.nl>
7425
7426         * src/mcs51/ralloc.c (packRegisters): applied fix by Bernhard Held
7427           for bugs 898889 & 979599. Also used some safer print instructions.
7428
7429 2004-09-12 Vangelis Rokas <vrokas AT otenet.gr>
7430
7431         * src/pic16/device.h (pic16_options_t): added field use_crt,
7432         crt_name, no_crt,
7433         * src/pic16/genarith.c (pic16_genPlus): added an assert(0) line to
7434         catch a probable future bug,
7435         * src/pic16/gen.c: aopIdx function commented out,
7436         * (genAssign): commented out old code which used aopIdx,
7437         * src/pic16/glue.c (pic16glue): removed some legacy fragments of
7438         code, added if conditionals to take into account the --use-crt
7439         command line options,
7440         * src/pic16/main.c (pic16_optionsTable): added new command line
7441         options, --use-crt= and --no-crt,
7442         * (_pic16_linkEdit): now the proper crt object is added in the
7443         linker command line except than when --no-crt is specified,
7444         * src/pic16/pcode.c,
7445         * src/pic16/pcode.h: added some structures and functions for a new
7446         optimization scheme to compansate for instruction overhead between
7447         same iCodes, this scheme is currently under development and is not
7448         working in any way,
7449         * src/pic16/gen.c (genAnd): added patch provided by Aaron Collwell
7450         to && operator,
7451         * device/lib/pic16/startup/crt0i.c,
7452         * device/lib/pic16/startup/crt0iz.c: added global char variable
7453         __uflags to force the generation of an idata section
7454
7455 2004-09-12 Bernhard Held <bernhard AT bernhardheld.de>
7456
7457         * doc/Makefile,
7458         * doc/clean.mk: added support for easy creation of sdcc-doc.tar.bz2
7459         * doc/sdccman.lyx: updated sdcc version to 2.4.4
7460
7461 2004-09-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7462
7463         * doc/sdccman.lyx: fixed a problem with my new index entries (thanks
7464         Frieder) and clarified the default code optimization mode
7465
7466 2004-09-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7467
7468         * src/SDCC.lex (doPragma, process_pragma),
7469         * src/SDCCglobl.h (struct optimize): added pragmas "opt_code_speed",
7470         "opt_code_size", and "opt_code_balanced"
7471         * src/SDCCmain.c (optionsTable[], printOptions, scanOptionsTable):
7472         regrouped options by category, added support for category headers
7473         * src/SDCCmain.c (parseCmdLine): added options "--opt-code-speed"
7474         and "--opt-code-size"
7475         * doc/sdccman.lyx: documented these new options and pragmas
7476         * src/hc08/gen.c (AccLsh, AccRsh): take speed/size optimization
7477         preference into account
7478
7479 2004-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
7480
7481         * src/SDCCicode.c (geniCodePostInc, geniCodePreInc, geniCodePostDec,
7482           geniCodePreDec): Fixed bug 904237 by generating a warning
7483         * src/SDCCerr.h,
7484         * src/SDCCerr.c: added warning W_SIZEOF_VOID
7485
7486 2004-09-09 Slade Rich <slade_rich AT users.sourceforge.net>
7487
7488         * src/pic/device.c : When no max ram set validate full memory range.
7489         * src/pic/pcode.c,
7490         * src/pic/pcodepeep.c : Copy C code comments to optimised replacement code.
7491
7492 2004-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
7493
7494         * device/lib/_gptrget.c,
7495         * device/lib/_gptrput.c: updated comment
7496         * device/lib/calloc.c,
7497         * device/lib/free.c,
7498         * device/lib/malloc.c,
7499         * device/lib/realloc.c: added LGPL, made them reentrant-safe
7500         * src/SDCCcse.c (cseBBlock),
7501         * src/SDCCicode.c (printOperand, geniCodeArray),
7502         * src/SDCCicode.h (struct operand): fixed bug 868103
7503         * support/regression/tests/bug-868103.c: added
7504         * src/SDCCast.c (searchLitOp),
7505         * src/SDCCcse.h (struct cseDef),
7506         * src/SDCCglue.c (printIvalArray, spacesToUnderscores),
7507         * src/SDCCicode.h (struct operand),
7508         * src/SDCCsymt.h (struct sym_link),
7509         * src/avr/gen.c (hasInc),
7510         * src/ds390/gen.c (hasInc),
7511         * src/hc08/gen.c (genPlusIncr, hasInc),
7512         * src/mcs51/gen.c (hasInc),
7513         * src/pic16/glue.c (pic16_printIvalChar),
7514         * src/pic16/ralloc.c (regWithIdx),
7515         * src/xa51/gen.c (hasInc) : removed warnings
7516         * src/SDCCast.c (createBlock): added comment ???
7517         * src/hc08/ralloc.c: updated comments
7518
7519 2004-09-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7520
7521         * doc/sdccman.lyx: updated section on switch statements, added
7522         section about semaphore locking
7523         * doc/Makefile: added option -info for latex2html
7524         * device/lib/_gptrget.c,
7525         * device/lib/_gptrput.c: __XPAGE instead of P2 in outcommented code
7526
7527 2004-09-06 Slade Rich <slade_rich AT users.sourceforge.net>
7528
7529         * src/pic/device.h,
7530         * src/pic/device.c,
7531         * src/pic/port.c : Changed PIC14 code to not set bit RP1 when
7532          maxram is less than 0x100.
7533
7534 2004-09-06 Slade Rich <slade_rich AT users.sourceforge.net>
7535
7536         * Bug fixes for PIC14 - signed RSHIFT problem. Patch supplied by Allen(agschrum).
7537
7538 2004-09-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7539
7540         * src/port.h,
7541         * src/mcs51/main.c,
7542         * src/ds390/main.c,
7543         * src/z80/main.c,
7544         * src/hc08/main.c,
7545         * src/pic/main.c,
7546         * src/pic16/main.c,
7547         * src/avr/main.c,
7548         * src/xa51/main.c
7549         * src/SDCCicode.c (geniCodeJumpTable): Better logic to determine if a
7550         a jump table is the best form for a switch statement, including
7551         automatic insertion of missing cases to make the case range
7552         continuous. Developed in collaboration with Frieder Ferlemann.
7553
7554 2004-09-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7555
7556         * src/hc08/ralloc.c (canDefAccResult): multi-byte shift is unsafe for
7557         accumulator result if it needs sign extension
7558
7559 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
7560
7561         * src/hc08/ralloc.c (canUseAccOperand): fixed comparison bug
7562
7563 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
7564
7565         * device/lib/gbz80/printf.c,
7566         * device/lib/z80/printf.c: removed define for NULL
7567
7568 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
7569
7570         * as/xa51/xa_link.c,
7571         * device/examples/ds390/ow390/ad26.c,
7572         * device/examples/ds390/ow390/cnt1d.c,
7573         * device/examples/ds390/ow390/counter.c,
7574         * device/examples/ds390/ow390/ds2480.h,
7575         * device/examples/ds390/ow390/ds2480ut.c,
7576         * device/examples/ds390/ow390/findtype.c,
7577         * device/examples/ds390/ow390/gethumd.c,
7578         * device/examples/ds390/ow390/owllu.c,
7579         * device/examples/ds390/ow390/ownetu.c,
7580         * device/examples/ds390/ow390/swt12.c,
7581         * device/examples/ds390/ow390/swtloop.c,
7582         * device/examples/ds390/ow390/temp.c,
7583         * device/examples/ds390/ow390/temp10.c,
7584         * device/examples/ds390/ow390/thermo21.c,
7585         * device/examples/ds390/ow390/tinilnk.c,
7586         * device/examples/ds390/ow390/tstfind.c,
7587         * device/examples/serialcomm/windows/serial.cpp,
7588         * device/examples/serialcomm/windows/test_serialcomm.cpp,
7589         * device/include/reg51.h: fixed line endings for cvs
7590
7591 2004-09-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7592
7593         * src/hc08/ralloc.c (canDefAccResult, canUseAccOperand,
7594         packRegsForAccUse, packRegisters): new accumulator register
7595         packing algorithm
7596         * support/regression/ports/hc08/support.c (_putchar): suppress
7597         warning of unused variable
7598         * src/SDCCicode.c: added SWAP entry to codeTable
7599
7600 2004-09-01 Maarten Brock <sourceforge.brock AT dse.nl>
7601
7602         * device/lib/sprintf.c: forgot to add this file before previous commit
7603
7604 2004-09-01 Vangelis Rokas <vrokas AT otenet.gr>
7605
7606         * src/pic16/gen.c (genPackBits): added operand right in function
7607         parameters, load result directly if p_type is POINTER (that is
7608         called by genNearPointerSet)
7609         * (genUnPackBits): added operand left in function parameters,
7610         * (genNearPointerGet, genNearPointerSet): prevent the loading of
7611         FSR0 if accessing bitfields,
7612
7613 2004-08-31 Maarten Brock <sourceforge.brock AT dse.nl>
7614
7615         * device/include/stdio.h: added NULL, size_t, typedef pfn_outputchar,
7616           _print_format; updated printf, sprintf, vsprintf
7617         * device/include/asm/default/features.h: corrected comment/define
7618         * device/lib/Makefile.in: added sprintf.c
7619         * device/lib/libsdcc.lib: added sprintf module
7620         * device/lib/printf_large.c,
7621         * device/lib/vprintf.c,
7622         * device/lib/sprintf.c: totally refactored printf_large and vprintf
7623           into these 3 files
7624         * support/regression/Makefile: changed ALL_PORTS into a usefull default
7625         * support/regression/ports/mcs51-stack-auto/spec.mk: added sprintf
7626         * support/regression/tests/bug-927659.c: removed dummy putchar, enabled
7627           hc08 test
7628         * support/regression/tests/zeropad.c: define idata as data for hc08
7629
7630 2004-08-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7631
7632         * src/SDCCpeeph.c (labelIsReturnOnly): support hc08 rts opcode also
7633         * src/SDCCpeeph.c (buildLabelRefCountHash): assume function entry point
7634         labels are referenced at least once (even if a reference is not found)
7635         * src/hc08/gen.c (emitcode): set isComment flag for comments
7636         * src/hc08/peeph.def: added rules 5a..5f (optimize redundant immediate
7637         loads), rules 6a..6b (optimize jumps to return)
7638
7639 2004-08-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7640
7641         * device/lib/acosf.c (acosf),
7642         * device/lib/asinf.c (asinf),
7643         * device/lib/atanf.c (atanf),
7644         * device/lib/ceilf.c (ceilf),
7645         * device/lib/cosf.c (cosf),
7646         * device/lib/coshf.c (coshf),
7647         * device/lib/cotf.c (cotf),
7648         * device/lib/fabsf.c (fabsf),
7649         * device/lib/floorf.c (floorf),
7650         * device/lib/log10f.c (log10f),
7651         * device/lib/logf.c (logf),
7652         * device/lib/sinf.c (sinf),
7653         * device/lib/sinhf.c (sinhf),
7654         * device/lib/sqrtf.c (sqrtf),
7655         * device/lib/tanf.c (tanf),
7656         * device/lib/tanhf.c (tanhf),
7657         * device/include/math.h: defined _FLOAT_FUNC_REENTRANT macro and
7658         replaced all instances of "reentrant" in the library functions
7659         defined in math.h with this macro.
7660         * support/regression/tests/float_trans.c: reenabled test for hc08
7661
7662 2004-08-30 Bernhard Held <bernhard AT bernhardheld.de>
7663
7664         * device/lib/pic16/Makefile.common.in: added MODELFLAGS again, it was
7665         erroneously deleted
7666
7667 2004-08-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7668
7669         * src/hc08/gen.c (loadRegFromAop): better use of clra & clrx
7670         * src/hc08/gen.c (genAnd, genOr): fixed bug with conditional when
7671         multi-byte volatile operands are used
7672         * src/hc08/gen.c (shiftRLong): fixed bug with wrong rotate direction
7673         * src/hc08/main.c (_hc08_genAssemblerPreamble): moved the built-in
7674         initialization to area GSINIT0 so that it would always precede
7675         any static initializers in GSINIT
7676         * support/regression/tests/zeropad.c: fixed idata define for hc08
7677         * support/regression/tests/bug-927659.c,
7678         * support/regression/tests/float_trans.c: disabled tests for hc08
7679         pending missing library routines
7680         * .version: increased version number to 2.4.4 - hc08 port now passes
7681         regression tests
7682
7683
7684 2004-08-29 Bernhard Held <bernhard AT bernhardheld.de>
7685
7686         * device/lib/pic16/Makefile.common.in: added $(MM) to fix `make clean`
7687         * Makefile.common.in,
7688         * as/Makefile,
7689         * as/hc08/Makefile.in,
7690         * as/mcs51/Makefile.in,
7691         * as/z80/Makefile.in,
7692         * debugger/mcs51/Makefile.in,
7693         * device/include/Makefile.in,
7694         * device/lib/Makefile.in,
7695         * doc/Makefile,
7696         * link/Makefile,
7697         * link/z80/Makefile.in,
7698         * packihx/Makefile.in,
7699         * sim/ucsim/main_in.mk,
7700         * sim/ucsim/avr.src/Makefile.in,
7701         * sim/ucsim/doc/Makefile.in,
7702         * sim/ucsim/gui.src/serio.src/Makefile.in,
7703         * sim/ucsim/hc08.src/Makefile.in,
7704         * sim/ucsim/s51.src/Makefile.in,
7705         * sim/ucsim/xa.src/Makefile.in,
7706         * sim/ucsim/z80.src/Makefile.in,
7707         * src/Makefile.in,
7708         * support/cpp2/Makefile.in,
7709         * support/librarian/Makefile,
7710         * support/makebin/Makefile: added DESTDIR to the install path proposed
7711         by "Maciej 'Agaran' Pijanka" <agaran AT pld-linux.org>
7712         * doc/sdccman.lyx: added DESTDIR documentation
7713
7714 2004-08-29 Vangelis Rokas (vrokas AT otenet.gr>
7715
7716         * src/pic16/gen.c (genFunction, genEndFunction): fixed return
7717         instruction for interrupt handlers, use fast returns when returning
7718         from high priority interrupts
7719
7720 2004-08-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7721
7722         * src/hc08/gen.c (genAnd, genOr, transferAopAop, rmwWithAop): optimized
7723         code generation
7724         * src/hc08/gen.c (genrshFour, genCpl): fixed bugs
7725         * src/hc08/gen.c (genMultOneByte, genDivOneByte, genModOneByte): fixed
7726         bugs, ported much of Bernhard's code from mcs51
7727         * src/mcs51/gen.c (genSend),
7728         * src/hc08/gen.c (genSend): fixed bug with lost SEND iCodes if more
7729         than one when calling a reentrant function
7730         * device/lib/_mullong.c: defined an alternate struct layout for big
7731         endian ports (hc08)
7732
7733 2004-08-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7734
7735         * src/hc08/gen.c (shiftL2Left2Result): fix for bug-500536 regression
7736         test
7737
7738 2004-08-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7739
7740         * src/SDCCsymt.c (processFuncArgs): make sure parameter types
7741         are sane and complete before asking the port its prefered parameter
7742         passing method (fixes bug #1017633)
7743         * device/lib/hc08/_ret.c: added "data" storage class to _ret2
7744         and _ret3
7745
7746 2004-08-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7747
7748         * src/hc08/gen.c (genPackBitsImmed, genUnpackBitsImmed): fix offset
7749         problem in bitfields >= 8 bits.
7750
7751 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
7752
7753         * src/SDCCsymt.c: undid changes that were not meant to be committed
7754
7755 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
7756
7757         * support/regression/ports/hc08spec.mk: REENTRANT must be reentrant
7758
7759 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
7760
7761         * src/hc08/gen.c (genUminusFloat): fixed bug where only 3 bytes were
7762           copied and wrong bit got inverted
7763
7764 2004-08-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7765
7766         * src/hc08/gen.c (genPointerSet, genFarPointerSet): moved code from
7767         genFarPointerSet into genPointerSet; eliminated genFarPointerSet
7768         * src/hc08/gen.c (genPointerGet, genFarPointerGet): moved code from
7769         genFarPointerGet into genPointerGet; eliminated genFarPointerGet
7770         * src/hc08/gen.c (genPackBitsImmed): generate optimized code for
7771         assignments to bitfields at known addresses
7772         * src/hc08/gen.c (genUnpackBitsImmed): generate optimized code for
7773         reads from bitfields at known addresses
7774         * src/hc08/ralloc.c (packRegisters),
7775         * src/hc08/gen.c (genPointerGet, genUnpackBits, genUnpackBitsImmed,
7776         genhc08Code): optimize pointer get values used as conditionals
7777         * src/hc08/peeph.def: added rules 2e & 2f to optimize bit test
7778         and branch
7779
7780 2004-08-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7781
7782         * src/mcs51/gen.c (genPointerGet, genNearPointerGet, genPagedPointerGet,
7783         genFarPointerGet, genCodePointerGet, genGenPointerGet, genUnpackBits),
7784         * src/mcs51/ralloc.c (packRegisters): optimize pointer get values used
7785         as conditionals
7786
7787 2004-08-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7788
7789         * src/mcs51/peeph.def: peepholes 248.i-m for xdata bitfields
7790
7791 2004-08-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7792
7793         * src/mcs51/ralloc.c (packRegsForOneuse): fixed bug #1012650 and some
7794         related problems
7795
7796 2004-08-21 Bernhard Held <bernhard AT bernhardheld.de>
7797
7798         * sim/ucsim/cmd.src/Makefile.in: run lex only if $(PRJDIR)/devel exists
7799
7800 2004-08-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7801
7802         * src/z80/ralloc.c (packRegsForAssign): ported some bug fixes from the
7803         mcs51 port
7804
7805 2004-08-16 Slade Rich <slade_rich AT users.sourceforge.net>
7806
7807         * src/pic/gen.c: Restored fn genRet as previous fix was incorrect.
7808
7809 2004-08-14 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7810
7811         * src/mcs51/gen.c (genJumpTab): jumptables for more than 16 switch
7812         cases use more compact code.
7813
7814 2004-08-13 Slade Rich <slade_rich AT users.sourceforge.net>
7815
7816         * src/pic/gen.c: Fixed problem with fn returning a variable bigger than a char.
7817
7818 2004-08-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7819
7820         * src/SDCClrange.c (findPrevUse): fixed bug #1007371
7821
7822 2004-08-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7823
7824         * src/SDCCsymt.h,
7825         * src/SDCCsymt.c (changePointer, checkDecl, addSymChain): changed
7826         parameter of changePointer() from symbol* to sym_link*
7827         * src/SDCCast.c (decorateType): call changePointer() for CAST op
7828         * src/SDCCsymt.c (compareType): void* type is castable to other
7829         pointers, but not necesarily an exact match.
7830         * src/SDCCicode.c (geniCodeCast): allow void* casting here since it
7831         is no longer blindly treated as an exact match.
7832         * src/SDCCval.c (valCastLiteral): treat missing type as cast to void
7833
7834 2004-08-12 Slade Rich <slade_rich AT users.sourceforge.net>
7835
7836         * src/pic/glue.c: Added struct initialisation fn printIvalStruct.
7837
7838 2004-08-11 Slade Rich <slade_rich AT users.sourceforge.net>
7839
7840         * src/pic/gen.c,
7841         * src/pic/pcode.c,
7842         * src/pic/ralloc.h,
7843         * src/pic/ralloc.c: Printing rIdx on internal verbose debug.
7844
7845 2004-08-10 Slade Rich <slade_rich AT users.sourceforge.net>
7846
7847         * src/pic/device.c,
7848         * src/pic/device.h,
7849         * src/pic/device.c: Will no longer exit if #pragma maxram has not been defined.
7850
7851 2004-08-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7852
7853         * src/mcs51/gen.c (emitcode): fixed bug #992819
7854
7855 2004-08-05 Maarten Brock <sourceforge.brock AT dse.nl>
7856
7857         * src/pic/ralloc.c (deassignLR): allthough pic port is buggy already,
7858           there's no need to make it worse
7859
7860 2004-08-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7861
7862         * src/mcs51/ralloc.c (deassignLR),
7863         * src/ds390/ralloc.c (deassignLR),
7864         * src/hc08/ralloc.c (deassignLR),
7865         * src/z80/ralloc.c (deassignLR),
7866         * src/pic/ralloc.c (deassignLR),
7867         * src/pic16/ralloc.c (deassignLR),
7868         * src/avr/ralloc.c (deassignLR),
7869         * src/SDCClrange.c (findRecursiveSucc, findRecursivePred, findPrevUse,
7870         rlivePoint): fixed another part of bug #971834
7871
7872 2004-08-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7873
7874         * src/z80/main.c: enabled "critical" keyword
7875         * src/z80/mappings.i,
7876         * src/z80/gen.c (genFunction, genEndFunction): support for interrupt
7877         functions (fixes bug #979646)
7878         * doc/sdccman.lyx: added a subsection explaining z80 interrupt support
7879
7880 2004-08-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7881
7882         * src/mcs51/gen.c (genInline): Add \n for labels, not DOS/WIN dirs
7883           such as c:\mydir.
7884
7885 2004-08-03 Maarten Brock <sourceforge.brock AT dse.nl>
7886
7887         * src/SDCCloop.c (loopInvariants): fixed bug 983545, hope this
7888           doesn't disable too much optimizations
7889
7890 2004-08-02 Slade Rich <slade_rich AT users.sourceforge.net>
7891
7892         * src/pic/glue.c Disabled "WARNING: function 'main' undefined" when -S option is used.
7893
7894 2004-08-02 Maarten Brock <sourceforge.brock AT dse.nl>
7895
7896         * src/SDCClrange.c (rlivePoint): fixed bug 988568, thanks to anonymous
7897
7898 2004-08-02 Slade Rich <slade_rich AT users.sourceforge.net>
7899
7900         * src/pic/gen.c tidied up tabs
7901         * src/pic/genarith.c tidied up tabs and fixed bug with literal multiple where same register was used for hi and low byte
7902         * src/pic/main.c tidied up tabs
7903         * src/pic/pcode.c tidied up tabs and disabled verbose code generation
7904         * src/pic/pcoderegs.c tidied up tabs
7905         * src/pic/ralloc.c tidied up tabs
7906
7907 2004-07-30 Vangelis Rokas <vrokas AT otenet.gr>
7908
7909         * src/SDCCmem.c (allocGlobal): don't turn S_REGISTER storage class
7910         to S_FIXED for pic16 port and when symbol is not in level 0,
7911         allocate for S_REGISTER storage class and pic16 port, too,
7912         * src/pic16/device.h: prototype for checkSym,
7913         * src/pic16/device.c (pic16_dump_access, checkSym): NEW,
7914         * (pic16_assignConfigWordValue): test the value and the mask to
7915         validate that the value is suitable for the configuration word,
7916         * src/pic16/glue.c (pic16_printIvalFuncPtr): use 'externs' to
7917         collect extern declared symbols, don't emit symbol twice, check
7918         first if symbol is in publics set first,
7919         * src/pic16/main.c (_pic16_keywords[]): added keyword 'register',
7920         * added command line '--fstack' which enables an experimental
7921         feature for stack access, too buggy to be used yet...
7922         * src/pic16/ralloc.c (pic16_accessregWithName): NEW,
7923         * (pic16_allocDirReg): when register has storage class S_REGISTER
7924         allocate in pic16_dynAccessRegs,
7925         * device/include/pic16/pic18f????.h: modified configuration word
7926         naming convention, words started as CONFIG0H but should be CONFIG1H
7927
7928 2004-07-29 Maarten Brock <sourceforge.brock AT dse.nl>
7929
7930         * device/include/mcs51reg.h: fixed bug 970993
7931
7932 2004-07-27 Maarten Brock <sourceforge.brock AT dse.nl>
7933
7934         * added lib/calloc.c, lib/free.c, lib/realloc.c, include/stddef.h
7935         * updated lib/malloc.c, lib/libsdcc.lib, lib/Makefile.in, include/malloc.h
7936         * src/SDCC.lex (doPragma): added pragma disable_warning <nnn>
7937         * src/SDCCmain.c (parseCmdLine): added option --disable-warning <nnn>
7938         * src/ds390/gen.c (genPlusIncr): fixed bug when incrementing generic pointers
7939         * support/Util/SDCCerr.c (vwerror): suppress disabled warnings and output
7940           error/warning numbers,
7941           added function setWarningDisabled()
7942         * support/Util/SDCCerr.h: added setWarningDisabled() and MAX_ERROR_WARNING
7943         * support/regression/ports/mcs51-stack-auto/spec.mk: added dependencies
7944           _memcmp.c _memmove.c calloc.c realloc.c free.c
7945         * support/regression/tests/malloc.c: added tests for new functionality
7946         * support/regression/tests/zeropad.c: added tests for truncated initializers
7947           and initialized char arrays starting with '\x0'
7948         * src/mcs51/peeph.def: fixed regression, added peephole 177.f
7949
7950 2004-07-26 Bernhard Held <bernhard AT bernhardheld.de>
7951
7952         * support/valdiag/tests/overflow.c: fixed warning on (1 >> 40)
7953
7954 2004-07-26 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7955
7956         * doc/sdccman.lyx: updated example in section "Absolute Addressing"
7957         * src/mcs51/peeph.def: added contributed fix for "bug" #995347 as
7958         peephole 177.e. Thanks to anonymous
7959
7960 2004-07-25 Vangelis Rokas <vrokas AT otenet.gr>
7961
7962         * src/pic16/glue.c (pic16_printIvalFuncPtr): when an extern
7963         function isn't used in the source but referenced as a
7964         variable initializer then declare it as extern in .asm file
7965
7966 2004-07-24 Vangelis Rokas <vrokas AT otenet.gr>
7967
7968         * .version: increased version number to 2.4.3
7969
7970         Adding version extension according to ChangeLog CVS revision
7971         * src/Makefile.in (target all): added dependency 'version.h'
7972         * (rule version.h): added rule to create version.h from ChangeLog,
7973         * (rule dep): added dependency version.h,
7974         * src/version.awk: AWK script to create version.h
7975         * src/SDCCdwarf2.c (dwWriteModule),
7976         * src/SDCCglue.c (initialComments),
7977         * src/SDCCmain.c (printVersionInfo): modified to write after
7978         version string the version extension number,
7979         * src/SDCCutil.c: included "version.h"
7980         * (getBuildNumber): NEW, returns SDCC's ChangeLog minor revision
7981         number,
7982         * src/SDCCutil.h: added prototype for getBuildNumber
7983
7984         * src/SDCCmain.c (parseCmdLine): when sOpt is 'I' add rest in
7985         includeDirsSet, too,
7986         * src/SDCCsymt.c (checkSClass): don't emit error when a variable,
7987         const char [] is found in function prototype...
7988
7989         * src/pic16/genarith.c (pic16_genUMult8XLit_8): optimization to omit
7990         moving to WREG with source is already in WREG,
7991         * src/pic16/gen.h: added AOP_FSR0 and AOP_FSR2 in enum,
7992         * src/pic16/gen.c (getFreePtr): updated to look for FSR0 and FSR2,
7993         * (aopForSym): stack'ed symbols are partially supported, added
7994         if-clause to support symbols in FARSPACE,
7995         * (sameRegs): added test for AOP_ACC to see if registers are same,
7996         * (pic16_freeAsmop): added case for AOP_FSR0 and AOP_FSR2,
7997         * (pic16_aopGet): added case for AOP_FSR0 and AOP_FSR2,
7998         * (pic16_popRegFromString): will not allocate a new register if it
7999         doesn't find one by name, bug may have introduced...
8000         * (pic16_popGet): added case for AOP_FSR0 and AOP_FSR2,
8001         * (genIpush): revived to use pic16 port's stack,
8002         * (genAddrOf): added incomplete case for stack'ed operand,
8003         * (genCast): optimized a pair of MOVFW,MOVWF to MOVFF
8004         * src/pic16/genutils.c (pic16_genNot): almot new vesrion for NOT,
8005         can handle multibyte operands,
8006         * src/pic16/glue.c (pic16_printIval*): some debug info added,
8007         * (pic16initialComments): added message for MPLAB compatibility
8008         mode enabled,
8009         * src/pic16/main.h: prototype for pic16_mplab_comp,
8010         * src/pic16/main.c (pic16_optionsTable): new option --mplab-comp,
8011         which enabled MPLAB compatibility mode (i.e. no #LINE/#FILE, BANKED)
8012         * (_pic16_linkEdit): NEW, handles link stage, transferred here
8013         because of increased complexity of procedure,
8014         * (_process_pragma): stack pragma changed to format 'stack pos len',
8015         emit symbol '_stack_end' to conform with gplink,
8016         * src/pic16/pcode.c (pic16_newpCodeOpBit): using pic16_regWithName
8017         to search for register,
8018         * (pic16_get_op, pic16_get_op2): added case for PO_W, PO_WREG and
8019         PO_GPR_REGISTER,
8020         * (pic16_pCode2str): when in MPLAB compatibility mode, comment out
8021         #LINE directives and replace 'B' with 'BANKED' in instruction opcodes
8022         * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): added
8023         case for PO_GPR_REGISTER,
8024         * (pic16_AnalyzeBanking): removed the old message for inc2h.pl, past
8025         dies, the new era is ahead !...
8026         * src/pic16/ralloc.c: added hash reposits pic16_dynAllocRegNames and
8027         pic16_dynInternalRegs,
8028         * (pic16_allocregWithName, pic16_procregWithName, pic16_regWithname): NEW,
8029         * (pic16_allocDirReg): minor optimizations and bug fixes,
8030         * (pic16_allocWithIdx): when searching pic16_dynProcessorRegs use fixed,
8031
8032         * device/lib/pic16/startup/crt0*.c: extern definition of stack_end,
8033         load stack and frame pointer with address of 'stack_end' symbol
8034
8035 2004-07-23 Vangelis Rokas <vrokas AT otenet.gr>
8036
8037         * src/pic16/glue.c (pic16emitStaticSeg): fixed bug with files
8038         without source code but only variable initializers
8039
8040 2004-07-20 Vangelis Rokas <vrokas AT otenet.gr>
8041
8042         * src/pic16/glue.c (pic16emitRegularMap): unused functions marked as
8043         external are not declared as extern to reduce overhead while linking
8044
8045 2004-07-20 Maarten Brock <sourceforge.brock AT dse.nl>
8046
8047         * src/SDCCast.c (decorateType): removed buggy fix for bug #979599
8048
8049 2004-07-11 Maarten Brock <sourceforge.brock AT dse.nl>
8050
8051         * src/SDCCglue.c (printIvalArray): fixed bug #984229, thanks to Phuah
8052           Yee Keat for the patch
8053         * src/SDCCast.c (decorateType): fixed bug #979599
8054         * src/ds390/gen.h: removed local fReturnSizeDS390
8055         * src/ds390/gen.c: made fReturnSizeDS390 signed short to remove a warning
8056         * src/ds390/gen.c (genAnd, genOr, genXor),
8057         * src/mcs51/gen.c (genAnd, genOr, genXor): generate better optimized code
8058
8059 2004-07-04 Vangelis Rokas <vrokas AT otenet.gr>
8060
8061         * src/SDCCmain.c (linkEdit): modifications only for pic16 port,
8062         add relFilesSet to $3, manipulate $2 to handle linking of object
8063         files without source files in command line,
8064         * device/include/pic16 (all headers): added ID location macros,
8065         * src/pic16/device.c (struct PIC16_device Pics16[]): added field
8066         entries for ID location bytes,
8067         * (pic16_assignIdByteValue): NEW,
8068         * src/pic16/device.h: new structures idRegInfo_t and idBytesInfo_t,
8069         added field dumpcalltree to pic16_options_t,
8070         * src/pic16/gen.c (genCmp): fixed bug case so a temporary register
8071         is used instead of pic16_Gstack_base_addr, check if (ifx) before
8072         emitting rFalseIfx label after check_carry label,
8073         * src/pic16/glue.c (PIC16_IS_IDLOC_ADDRESS, PIC16_IS_HWREG_ADDRESS,
8074         pic16_emitDIRegs), NEW
8075         * (pic16glue): dump .calltree file when option --calltree found,
8076         * src/pic16/main.c (OPTION _pic16_optionsTable): new option --calltree
8077         * (_pic16_genAssemblerPreamble): emit ID locations after
8078         configuration registers,
8079         * (pic16_linkCmd): modifications of the link command,
8080         * src/pic16/pcode.c (pic16_pciMOVFF): PCC_REGISTER replaces PCC_REGISTER2
8081         * (pic16_pCodeInitRegisters): don't init stack registers,
8082         * (pic16_findPrevInstruction): fixed bug,
8083         * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): fixed
8084         bug with immediate registers,
8085         * (buildCallTree): traces stack push and pop,
8086         * (pct2): dump also stack usage for each function,
8087         * src/pic16/ralloc.c (dynrIdx): registers names start from 0x00
8088         * (pic16_allocDirReg): various modifications,
8089         * (pic16_typeRegWithIdx): when searching pic16_dynProcessorRegs set
8090         fixed to 1,
8091
8092 2004-07-02 Vangelis Rokas <vrokas AT otenet.gr>
8093
8094         * src/pic16/pcode.c: removed buggy double colon
8095
8096 2004-07-01 Borut Razem <borut.razem AT siol.net>
8097
8098         * support/scripts/sdcc.nsi: added include/pic16 to setup
8099
8100 2004-06-30 Vangelis Rokas <vrokas AT otenet.gr>
8101
8102         * device/lib/Makefile.in: fixed bug in target objects-pic16,
8103         * device/lib/pic16/Makefile: prefixed with dash (-) command under
8104         target 'clean',
8105         * doc/sdccman.lyx: changed version to 2.4.2 and added some port
8106         specific command line arguments. Also added sample lkr script
8107         for placing a variable at a specific memory bank.
8108         * src/pic16/device.c (pic16_dump_gsection): NEW, to dump variables
8109         at a specific memory bank,
8110         * (pic16_dump_isection): fixed bug which caused string literals to
8111         be omitted when dumping idata section,
8112         * (pic16_groupRegistersInSection): added code to handle registers
8113         in specific memory banks,
8114         * src/pic16/gen.c: labelOffset is prefixed with pic16_ and made
8115         public, all references are renamed too,
8116         * (pic16_aopGet): removed switch cases for AOP_R0,AOP_R1,AOP_DPTR,
8117         AOP_DPTR2,
8118         * (pic16_storeForReturn): added case to handle when dest is WREG,
8119         * src/pic16/genarith.c (pic16_pCodeOpSubType): NEW,
8120         * src/pic16/glue.c (pic16emitRegularMap): when adding a register in
8121         pic16_rel_udata, check to see if that register is marked as being
8122         a member of a specific memory bank,
8123         * (pic16_printIvalCharPtr): added code to add string literals either
8124         to code or the idata sections,
8125         * src/pic16/main.c (_process_pragma): added \n to WHITE constant,
8126         also accept the 'udata' pragma,
8127         * src/pic16/main.h: new structure types sectName and sectSym
8128         * src/pic16/pcode.c: added new pCodeInstruction entry for BANKSEL
8129         * (newpCodeOpBit): added PIC_OPTYPE subt in function prototype,
8130         * (pic16_findPrevInstruction): fixed, it returned nothing,
8131         * (insertBankSwitch): fixed to emit banksel/skip and skip/banksel
8132         instruction combinations,
8133         * (pic16_FixRegisterBanking): heavily reorganised,
8134         * (pic16_AnalyzeBanking): if generating banksel directives is
8135         disabled, then don't call FixRegisterBanking at all,
8136         * src/pic16/ralloc.c (bitEQUs, aliasEQUs, allDefsOutOfRange):
8137         completely removed,
8138         * (pic16_writeUsedRegisters): added call to pic16_dump_gsection
8139
8140 2004-06-29 Bernhard Held <bernhard AT bernhardheld.de>
8141
8142         * src/SDCCglue.c (printChar): fixed bug #973350, patch provided by
8143         Phuah Yee Keat <yk.phuah AT nestac.com>
8144
8145 2004-06-28 Vangelis Rokas <vrokas AT otenet.gr>
8146
8147         * src/pic16/glue.c (pic16createInterruptVect): function now emits
8148         correctly the IVT even if it is relocated to some other location
8149
8150 2004-06-28 Vangelis Rokas <vrokas AT otenet.gr>
8151
8152         * device/include/pic16/pic18fregs.h: added case for pic18f2220.h
8153         * device/include/pic16/pic18f2220.h: NEW,
8154         * device/lib/pic16/libdev/pic18f2220.c: NEW,
8155         * device/lib/pic16/libdev/Makefile: added 18f2220 in DEVS,
8156         * src/pic16/device.c (struct Pics16): added info for 18f2220,
8157         * src/pic16/device.h (struct pic16_options): added ivt_loc and
8158         nodefaultlibs, ivt_loc is the location of the interrupt vector
8159         table, and nodefaultlibs signs that default libraries should not be
8160         linked in link stage,
8161         * src/pic16/gen.c (genFunction): relocate interrupt vector functions
8162         according to --ivt-loc argument,
8163         * src/pic16/main.c (_process_pragma): emit '_stack' as public symbol
8164         when pragma stack is found,
8165
8166 2004-06-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8167
8168         * src/mcs51/peeph.def: added peepholes 182.d (return 0.0),
8169         256 (range check), 257 (do while), 258.a-f (bit banging
8170         f.e. on 3-wire SPI bus)
8171
8172 2004-06-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8173
8174         * src/SDCClrange.c (findNextUseSym): fixed a live range bug with
8175         variables used exclusively within a loop
8176
8177 2004-06-21 Bernhard Held <bernhard AT bernhardheld.de>
8178
8179         * src/mcs51/gen.c (genCpl): quick fix for bug #974835
8180
8181 2004-06-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8182
8183         * src/SDCClrange.c (computeClash): fixed bug #971834
8184
8185 2004-06-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8186
8187         * src/mcs51/gen.c (genCmp): fixed bug #975903
8188         * src/hc08/gen.c (operandsEqu),
8189         * src/ds390/gen.c (operandsEqu),
8190         * src/z80/gen.c (operandsEqu),
8191         * src/pic/gen.c (operandsEqu),
8192         * src/pic16/gen.c (operandsEqu),
8193         * src/mcs51/gen.c (operandsEqu): fixed bug #976283
8194         * src/SDCCmain.c (parseCmdLine): report --unknown-option only once
8195
8196 2004-06-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8197
8198         * src/SDCCcse.c (cseBBlock): fixed bug #966963
8199
8200 2004-06-12 Vangelis Rokas <vrokas AT otenet.gr>
8201
8202         * src/pic16/gen.c (genPointerGet): added E_INTERNAL_ERROR for
8203         default case in switch statement,
8204         * glue.c (pic16_initPointer): expr is initialised via decoarteType
8205         to eliminate problem with initialisation of pointers, but problem
8206         still exists,
8207         * (pic16_pointerTypeToGPByte): removed, no needed for pic16,
8208         * (emitStaticSegment): removed various lines emitting debug info,
8209         * src/pic16/pcode.c, src/pic16/pcode.h, src/pic16/ralloc.h:
8210         added processor registers for utilizing EEPROM,
8211         * src/pic16/pcode.c (pic16_emitDB): number of DBs emitted is not
8212         configurable and set 8
8213
8214 2004-06-08 Vangelis Rokas <vrokas AT otenet.gr>
8215
8216         * .version: increased version number to 2.4.2,
8217
8218         Cumulative patch for pic16 port
8219         * src/pic16/device.c: changed scheme to dump initial values for
8220         variables in idata segment, all print_idata* functions were removed,
8221         now the pic16_printIval* will be called,
8222         * src/pic16/glue.c: (pic16_initPointer, pic16_pointerTypeToGPByte,
8223         * _pic16_printPointerType, pic16_printPointerType,
8224         * pic16_printGPointerType, pic16_printIvalArray, pic16_printIvalStruct,
8225         * pic16_printIvalBitFields, pic16_printIvalFuncPtr, pic16_printIvalPtr:
8226         NEW, similar to the respective functions in SDCCglue.c,
8227         * src/pic16/pcode.c (pic16_emitDB, pic16_flushDB): reverted to old
8228         way, emitting hex bytes,
8229         * (pic16_emitDS): NEW, emits a string for pointer initialisation,
8230
8231 2004-06-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8232
8233         * src/avr/ralloc.c (serialRegAssign),
8234         * src/xa51/ralloc.c (serialRegAssign),
8235         * src/pic/ralloc.c (serialRegAssign),
8236         * src/pic16/ralloc.c (serialRegAssign),
8237         * src/hc08/ralloc.c (serialRegAssign),
8238         * src/z80/ralloc.c (serialRegAssign),
8239         * src/ds390/ralloc.c (serialRegAssign),
8240         * src/mcs51/ralloc.c (serialRegAssign): fixed bug #964479
8241
8242 2004-06-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8243
8244         * src/SDCCicode.c (geniCodeJumpTable): fixed bug #967601
8245         * src/SDCCpeeph.c (labelIsReturnOnly): fixed bug #966505
8246
8247 2004-06-07 Vangelis Rokas <vrokas AT otenet.gr>
8248
8249         Cumulative patch for pic16 port:
8250         * src/pic16/device.h (typedef PIC16_device) modified fields for
8251         defining microcontrollers,
8252         * src/pic16/device.c: added new info for all devices in Pics16 array,
8253         * src/pic16/gen.c (genPcall): fixed bug that caused the return label
8254         to be optimised out by the pCode optimiser,
8255         * src/pic16/glue.c (pic16emitRegularMap): treat implicit aggragates
8256         specially, bug reported by G.M. Gallant,
8257         * src/pic16/pcode.c (pic16_newpCodeLabelFORCE): NEW, marks a label
8258         as force'd so that cannot be optimised out by pCode optimiser,
8259         * src/pic16/pcode.c,
8260         * src/pic16/pcodepeeph.c,
8261         * src/pic16/pcoderegs.c: many modifications to re-enable peepholes,
8262         they are disabled by default, but can be enabled explicit with
8263         command argument --denable-peeps, for testing,
8264         * device/lib/pic16/startup/Makefile: added --no-peep,--pomit-config-words,
8265         --pomit-ivt in COMPILE_FLAGS
8266
8267 2004-06-06 Maarten Brock <sourceforge.brock AT dse.nl>
8268
8269         * src/pic16/pcode.c (pic16_emitDB): removed double semicolon which fails
8270           compilation on MSVC
8271
8272 2004-06-06 Maarten Brock <sourceforge.brock AT dse.nl>
8273
8274         * device/include/sab80515.h: added sfr P6, changed GPL to LGPL
8275
8276 2004-06-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8277
8278         device/include/sab80515.h: fixed bug #967492, DAPR is defined at adress
8279         0xd8, but the correct adress is 0xda. Thanks to anonymous for reporting
8280
8281 2004-06-06 Vangelis Rokas <vrokas AT otenet.gr>
8282
8283         * src/pic16/device.c (pic16_assignConfigWord): fixed bug that
8284         would only assign 0x300001 register.
8285
8286 2004-06-05 Vangelis Rokas <vrokas AT otenet.gr>
8287
8288         * device/lib/pic16/startup/Makefile: added $(MODELFLAGS)
8289         in COMPILE_FLAGS. Thanks to G. Gallant for report.
8290
8291 2004-06-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8292
8293         * doc/sdccman.lyx: minor changes, mentioned beta vendor support
8294         for ds80c400
8295         * src/mcs51/peeph.def: ran unexpand -a over peeph.def
8296         * src/mcs51/peeph.def: removed obsolete peephole 100.a,
8297         added peephole 254 (left shift), 255 (jump table)
8298
8299 2004-06-04 Vangelis Rokas <vrokas AT otenet.gr>
8300
8301         * device/lib/Makefile.in: removed comment line with model-pic16,
8302         * (target port-specific-objects-pic16): the libraries and objects
8303         are copied to the build directory form the device/lib/pic16/bin
8304         directory
8305
8306         Cumulative patch concerning pic16 port:
8307         * library directory has been re-organized,
8308         * added support for PIC18F1220,
8309         * added headers and library sources for chips 18f1220,18f6520,
8310         18f6620,18f6680,18f6720,18f8520,18f8620,18f8680,18f8720
8311
8312         * configuration registers setting has changed, now each supported
8313         device has a complete description of the registers it uses,
8314         * all initialisations are moved to idata sections, these section
8315         can be absolute or relocatable,
8316         * fixed initialisation of codespace variables,
8317         * fixed warning about PCLATU and gpsim,
8318         * src/pic16/gen.c (genCmp): now can handle partially iCodes with no ifx,
8319         * (genAssign): use table reads when assigning from variables in codespace,
8320         * src/pic16/glue.c (pic16emitStaticSeg): fixed to correctly initialise
8321         char/int variables placed in codespace,
8322         * (pic16_emitConfigRegs): NEW, emits a list with configuration
8323         registers set in .asm file, no need for --pomit-config-words anymore,
8324         * (pic16glue): some 8051 legacy segments are commented out
8325         (to be removed completely),
8326         * added support for alternative assembler and linker with --asm=
8327         and --link= command line arguments,
8328         * peepholes are disabled automatically in the port, no need to
8329         specify on command line,
8330         * port supports natively char/int/long multiplication, but converts
8331         all divisions to support functions,
8332         * main.c: pic16_linkCmd and pic16_asmCmd changed to force output
8333         to the file set in variable $2,
8334         * pcode.c (pic16_emitDB, pic16_flushDB): modified to print printable
8335         strings in ASCII format and not in hex,
8336         * ralloc.c (serialRegAssign): added a triplet of conditional calls
8337         to pic16_allocDirReg for IC_RESULT, IC_LEFT and IC_RIGHT so to
8338         allocate proper register if iCodes aren't temporary,
8339
8340 2004-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
8341
8342         * support/regression/tests/zeropad.c: added TEST_G macro for alpha
8343
8344 2004-06-02 Vangelis Rokas <vrokas AT otenet.gr>
8345
8346         * src/pic16/gen.c (genPcall): warning about gpsim and PCLATU
8347         is commented out
8348
8349 2004-06-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8350
8351         * src/hc08/gen.c (genPointerGetSetOfs): disabled optimization if
8352         computed address is reused
8353         * src/hc08/gen.c (genPackBits): fixed offsets in assignments to
8354         multi-byte bitfields
8355
8356 2004-06-01 Maarten Brock <sourceforge.brock AT dse.nl>
8357
8358         * src/z80/gen.c: (genArrayInit): must check for pointers too
8359
8360 2004-06-01 Maarten Brock <sourceforge.brock AT dse.nl>
8361
8362         * support/regression/tests/zeropad.c: never meant to commit the
8363           nestedstruct test: removed, added check for GCC version
8364
8365 2004-05-31 Maarten Brock <sourceforge.brock AT dse.nl>
8366
8367         * src/SDCCast.c (createIvalArray): fixed bug 770487 SIGSEGV
8368         * src/SDCCglue.c (emitRegularMap): fixed bug 770484 allocation problem
8369         * src/SDCCglue.c (initPointer, printIvalType, printIvalStruct,
8370           printIvalArray, printIvalFuncPtr, printIvalPtr, printIval): fixed
8371           bugs 928906 and 954082 half-empty initializers
8372         * src/SDCCsymt.h,
8373         * src/SDCCsymt.c (getAllocSize): added for above fix
8374         * src/z80/gen.c (genArrayInit): fixed bug 741044
8375         * support/regression/tests/zeropad.c: added tests
8376
8377 2004-05-30 Vangelis Rokas <vrokas AT otenet.gr>
8378
8379         * src/pic16/device.c (pic16_dump_section): corrected bug which
8380         caused some symbols of the libraries to be misplaced
8381
8382 2004-05-28 Vangelis Rokas <vrokas AT otenet.gr>
8383
8384         * src/pic16/glue.c,
8385         * src/pic16/ralloc.h,
8386         * src/pic16/ralloc.cc: prefixed IS_CONFIG_ADDRESS with PIC16_
8387         to fix conflict with pic port
8388
8389 2004-05-28 Vangelis Rokas <vrokas AT otenet.gr>
8390
8391         * src/pic16/glue.c (pic16emitStaticSeg): do not print as publics or
8392         externs configuration variables,
8393         * src/pic16/ralloc.h,
8394         * src/pic16/ralloc.cc: IS_CONFIG_ADDRESS is made public and added
8395         prototype in header, commented out some debug messages
8396
8397 2004-05-26 Vangelis Rokas <vrokas AT otenet.gr>
8398
8399         * src/pic16/glue.c,
8400         * src/pic16/main.c,
8401         * src/pic16/pcode.c: added gpasm directives #FILE/#LINE
8402         for gpasm COFF object generation. Thanks to D. Hawkins for
8403         his patch info
8404
8405 2004-05-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8406
8407         * src/ds390/main.c,
8408         * src/mcs51/main.c: fixed sort order of mnemonics (thanks to Maarten
8409         Brock for spotting this)
8410         * src/ds390/gen.c (genEndFunction),
8411         * src/mcs51/gen.c (genEndFunction): always save psw if function is an
8412         interrupt handler and critical. Disable push/pop optimizations when
8413         peephole optimizations disabled.
8414
8415 2004-05-25 Vangelis Rokas <vrokas AT otenet.gr>
8416
8417         Updated pic16 library sources and headers.
8418         * device/lib/pic16/pic18f*/ ,
8419         * device/include/pic16/*.h: modified to handle structured SFR
8420         definitions
8421
8422 2004-05-25 Vangelis Rokas <vrokas AT otenet.gr>
8423
8424         * src/port.h (PORT structure): added hook initPaths, now each
8425         port can declare its own default search paths,
8426         which can been seen with the --print-search-dirs option,
8427         see pic16 port for example,
8428         * src/SDCCmain.c (setBinPaths, setIncludePaths, setLibPath,
8429         setDataPaths): test to options.printSearchDirs is ifdef'ed out,
8430         * (doPrintSearchDirs): NEW, replaces in a central manner the
8431         printing of search dirs which was split in set*Paths functions,
8432         * (main): added call to port->initPaths and doPrintSearchDirs,
8433         * src/avr/main.c,
8434         * src/ds390/main.c,
8435         * src/hc08/main.c,
8436         * src/izt/i186.c,
8437         * src/izt/tlcs900h.c,
8438         * src/mcs51/main.c,
8439         * src/pic/main.c,
8440         * src/pic16/main.c: modified port structures to reflect addition of
8441         initPaths hook,
8442
8443         * src/pic16/device.c (regCompare): registers are finally sorted by name,
8444         * (pic16_dump_section): for registers in same address reserve memory once,
8445         * src/pic16/device.h (struct PIC16_device): changed variable gen_banksel
8446         to no_banksel,
8447         * src/pic16/genarith.c (pic16_genPlus): added code to handle cases where
8448         result is greater in size than right or left,
8449         * (pic16_genUMult8X8_8): there are some cases where the result can
8450         be 16 bits size, so handle these,
8451         * src/pic16/gen.c: changed some pic16_emitpcomment to DEBUGpic16_emitcode,
8452         * (pic16_outBitC): modified to emit pcodes,
8453         * (pic16_storeForReturn): using is_LitOp to see if operand is literal
8454         or not,
8455         * (genDivOneByte): implemented algorithm to divide 8-bits,
8456         * (genCmp): uncommented goto, but issues still exist,
8457         * (genAnd): fixed a bug with variables >8bits,
8458         * (genPackBits): optimization added that uses BCF/BSF to change a
8459         single bit,
8460         * (genAssign): fixed bug when assigning floating point literals,
8461         * src/pic16/glue.c (pic16glue): added assembler directive 'code' before
8462         __sdcc_gsinit_startup label,
8463         * src/pic16/main.c (_pic16_init): removed search directory
8464         initialisations,
8465         * (_pic16_initPaths): NEW, used to initialise search directories,
8466         * (_hasNativeMulFor): support functions for all except char/int
8467         multiplication, and char division,
8468         * (PIC16_port struct): modified entry for native mul support,
8469         * src/pic16/pcode.c (insertBankSwitch): modified to support the renamed
8470         no_banksel option,
8471         * (buildCallTree): call to register_usage is ifdef'ed out,
8472
8473 2004-05-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8474
8475         * device/include/string.h: applied Stas Sergeev's patch to make this
8476         header file compatible with the preprocessor -Wundef option
8477         * src/SDCCmain.c (main): abort compilation if preprocessor reports
8478         failure (fixes bug #941458)
8479
8480 2004-05-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8481
8482         * src/SDCCopt.c (killDeadCode): fixed bug #907733
8483         * support/Util/SDCCerr.c: reworded E_AUTO_ASSUMED diagnostic to clarify
8484         that the variable, not the function, should be static
8485         * src/SDCCval.c (valCastLiteral): fixed bit initialization from literal
8486         to be consistent with non-literal case
8487
8488 2004-05-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8489
8490         * src/SDCCast.c (isConformingBody): fixed bug #949967
8491         * src/SDCCopt.c (cnvToFcall, cnvToFloatCast, cnvFromFloatCast,
8492         convilong): fixed bug #952086
8493
8494 2004-05-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8495
8496         * src/SDCCmem.c (allocVariables): fixed bug #955321
8497
8498 2004-05-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8499
8500         * src/hc08/main.c (_hc08_genAssemblerEnd),
8501         * src/SDCCdwarf2.c (dwOpenFile, dwCloseFile, dwWriteFunction,
8502         dwWriteModule, dwWriteCLine, dwWriteALine, dwarf2FinalizeFile):
8503         completely eliminated the use of a temporary file
8504         * src/SDCCdwarf2.c (dwWriteAttr): fixed bug with location list offset
8505         when more than one file linked
8506         * src/SDCCloop.c (pointerAssigned): fixed bug #954163
8507
8508 2004-05-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8509
8510         * src/SDCCval.c (valForArray): applied Maarten Brock's patch #947682
8511         which fixes bug #543481
8512         * support/regression/tests/bug-751703.c: fixed comments left from a
8513         cut and paste error
8514         * src/SDCCdwarf2.c (dwCloseFile): don't explicitly close a temp file
8515         * src/SDCCdwarf2.c (dwTagFromType): added bitfield support
8516         * src/SDCCdwarf2.c (dwWriteSymbolInternal): handle extern within local
8517         scopes
8518         * src/SDCCdwarf2.c (dwWriteLineNumber): line number deltas are signed
8519         * src/SDCCmain.c (processFile, parseCmdLine): non-alphanumeric chars
8520         are now changed to underscores in moduleName
8521
8522 2004-05-15 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8523
8524         * as/mcs51/lkmem.c: better fix for bug #954173
8525
8526 2004-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
8527         committed by Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8528
8529         * device/include/c8051f020.h: newly added SiLabs (Cygnal) header file
8530         * device/include/c8051f000.h,
8531         * device/include/c8051f120.h,
8532         * device/include/c8051f300.h,
8533         * device/include/c8051f310.h,
8534         * device/include/c8051f320.h: updated (added _XPAGE, CAPN, CAPP,
8535         PWM16) and detab'ed
8536
8537 2004-05-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8538
8539         * doc/sdccman.lyx: mentioned sourceforge's delay between web frontend
8540         and mailing lists, doc'ed --no-peep-comments, removed reference
8541         to knoppix (newest version has no LyX/LaTeX), other minor changes
8542         * src/SDCCglue.c (glue): save 2 bytes stack space with
8543         option --main-return. The ljmp could probably be avoided too
8544
8545 2004-05-14 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8546
8547         * as/mcs51/lkmem.c, as/mcs51/lkaomf51: fixed bug 954173
8548
8549 2004-05-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8550
8551         * src/SDCCsymt.h: added IS_AUTO(symbol) test macro
8552         * src/SDCCopt.c (isLocalWithoutDef),
8553         * src/SDCCicode.c (operandFromSymbol): use the IS_AUTO test macro
8554         which adds a !IS_EXTERN codition. Fixes bugs #877426 and #751703.
8555         (credit to Maarten Brock for patch #949363, on which this is based)
8556         * support/regression/tests/bug-751703.c: some test cases of extern used
8557         within inner scopes.
8558
8559 2004-05-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8560
8561         * src/SDCCdwarf2.c (dwMatchTypes): structs must have matching
8562         SPEC_STRUCT
8563         * src/SDCCdwarf2.c (dwTagFromType): fix to handle recursive
8564         struct definitions
8565         * src/SDCCdwarf2.c (dwWriteModule, dwNewDebugSymbol, dwWriteEndFunction,
8566         dwWriteLabel): fix to create valid debugger symbols even when
8567         the module name has non-alphanumeric symbols in it
8568         * src/SDCCdwarf2.c (dwWriteSymbolInternal): better detection for
8569         when a variable's allocation has been optimized away
8570
8571
8572 2004-05-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8573
8574         * src/hc08/gen.c (hc08_emitDebuggerSymbol),
8575         * src/hc08/main.c,
8576         * src/mcs51/gen.c (mcs51_emitDebuggerSymbol),
8577         * src/mcs51/main.c,
8578         * src/ds390/gen.c (ds390_emitDebuggerSymbol),
8579         * src/ds390/main.c,
8580         * src/z80/gen.c (z80_emitDebuggerSymbol),
8581         * src/z80/main.c,
8582         * src/pic/gen.c (pic14_emitDebuggerSymbol),
8583         * src/pic/main.c,
8584         * src/pic16/gen.c (pic14_emitDebuggerSymbol),
8585         * src/pic16/main.c,
8586         * src/avr/gen.c (avr_emitDebuggerSymbol),
8587         * src/avr/main.c,
8588         * src/xa51/gen.c (xa51_emitDebuggerSymbol),
8589         * src/xa51/main.c,
8590         * src/SDCCdebug.c (emitDebuggerSymbol),
8591         * src/SDCCdebug.h,
8592         * src/port.h: added a debugger struct to the port struct. Added a
8593         callback for defining debugger symbols
8594
8595         * src/SDCCast.c (createLabel),
8596         * src/SDCC.y (labeled_statement): mark all compiler generated labels
8597         with isitmp = 1
8598         * src/SDCCicode.h,
8599         * src/SDCCicode.c (geniCodeFunctionBody): added a link from the FUNCTION
8600         iCode back to the ast for the function
8601
8602         * src/hc08/ralloc.c (hc08_assignRegisters),
8603         * src/hc08/ralloc.h: define a regs struct for the stack pointer. Removed
8604         unneeded fields from the regs struct.
8605         * src/hc08/gen.c (transferRegReg, genFunction, genEndFunction): use the
8606         pushReg() & pullReg() functions instead of emitcode()
8607
8608         * src/hc08/gen.c (genLabel, genhc08Code),
8609         * src/SDCCdebug.h: Added additional debugger hooks needed for DWARF
8610
8611         * src/cdbFile.c (cdbWriteLabel, cdbWriteScope): Added stubs for unneeded
8612         debugger hooks
8613
8614         * src/hc08/gen.c (genEndFunction, genhc08Code),
8615         * src/hc08/gen.h,
8616         * src/mcs51/gen.c (genEndFunction, gen51Code),
8617         * src/mcs51/gen.h,
8618         * src/ds390/gen.c (genEndFunction, gen390Code),
8619         * src/ds390/gen.h,
8620         * src/z80/gen.c (genEndFunction, genZ80Code),
8621         * src/z80/gen.h,
8622         * src/z80/z80.h,
8623         * src/pic/gen.c (genEndFunction, genpic14Code),
8624         * src/pic/gen.h,
8625         * src/pic16/gen.c (genEndFunction, genpic16Code),
8626         * src/pic16/gen.h,
8627         * src/avr/gen.c (genEndFunction, genAVRCode),
8628         * src/avr/gen.h,
8629         * src/xa51/gen.c (genEndFunction, genXA51Code),
8630         * src/xa51/gen.h,
8631         * src/cdbFile.c (cdbWriteFunction, cdbWriteEndFunction): moved cdb
8632         specific code to cdbFile.c and out of the backend code generators
8633
8634         * as/hc08/lkmain.c (main): removed OMF51 support from link-hc08
8635         * as/hc08/lkarea.c (lnkarea): areas with NOLOAD attribute default
8636         starting address is now 0
8637
8638         * as/hc08/asm.h,
8639         * as/hc08/m08pst.c,
8640         * as/hc08/asmain.c (asmbl): implemented the .sleb128 and .uleb128
8641         assembler directive for DWARF support
8642         * as/hc08/lkelf.c (elf): only increment address when rtflg[] set
8643
8644         * src/src.dsp,
8645         * src/Makefile.in,
8646         * src/SDCCdwarf2.c: preliminary DWARF (ver 2) debugger data generator
8647
8648 2004-05-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8649
8650         * src/hc08/gen.c (genJumpTab, emitcode, genhc08code): fixed stack error
8651         and inappropriate peephole optimization in jump tables
8652
8653 2004-04-30 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8654
8655         * as/hc08/m08pst.c,
8656         * src/SDCCglue.c: sdccopt works for the hc08 port now
8657
8658 2004-04-27 Bernhard Held <bernhard AT bernhardheld.de>
8659
8660         * src/SDCCicode.c (geniCodePreInc, geniCodePreDec): fixed bug #942130
8661
8662 2004-04-27 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8663
8664         * as/hc08/lkelf.c: sdccconf.h is not available in WIN32
8665
8666 2004-04-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8667
8668         * src/SDCCpeeph.c (replaceRule): support empty replacement peephole
8669         rules
8670         * src/SDCCmain.c,
8671         * src/SDCCglobl.h,
8672         * src/SDCCpeeph.c (getPeepLine): new option --no-peep-comments omits
8673         comments from the peephole optimizer replacement rules
8674         * src/SDCCmem.c (printAllocInfoSeg): give actual location of spilled
8675         symbols
8676         * src/SDCCcse.c (updateSpillLocation),
8677         * src/SDCCopt.c (killDeadCode, findReqv): better tracking of register
8678         equivalents
8679         * src/hc08/ralloc.c (regTypeNum): pseudo symbols must be in DATA only
8680         * src/hc08/main.c (_hc08_finaliseOptions): made pointers to stack
8681         objects far pointers
8682
8683 2004-04-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8684
8685         * src/SDCCsymt.h: a missing part of my last change
8686         * src/pic/ralloc.c (regTypeNum),
8687         * src/pic16/ralloc.c (regTypeNum): fixed statement/declaration order
8688
8689 2004-04-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8690
8691         * src/SDCCicode.h,
8692         * src/SDCCicode.c (aggrToPtrDclType),
8693         * src/SDCCptropt.h,
8694         * src/SDCCptropt.c (ptrBaseRematSym, ptrPseudoSymSafe,
8695         ptrPseudoSymConvert),
8696         * src/pic/ralloc.c (regTypeNum),
8697         * src/pic16/ralloc.c (regTypeNum),
8698         * src/hc08/ralloc.c (regTypeNum),
8699         * src/ds390/ralloc.c (regTypeNum),
8700         * src/mcs51/ralloc.c (regTypeNum): check for dependancy hazards before
8701         creating pseudo symbols (fixed bugs #777768, #930484, and #933966)
8702
8703 2004-04-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8704
8705         * link/z80/lkmain.c (afile),
8706         * as/hc08/lkmain.c (afile),
8707         * as/mcs51/lkmain.c (afile): fix suggested by Maarten Brock to
8708         prevent a pointer problem when a filename has no directory and
8709         no extension specified.
8710
8711 2004-04-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8712
8713         * link/z80/lkmain.c (afile): allow periods in directory names
8714         * link/z80/lkmain.c (afile),
8715         * as/mcs51/lkmain.c (afile),
8716         * as/hc08/lkmain.c (afile): allow linker script file to have an
8717         extension other than ".lnk"
8718         * link/z80/lklex.c (getfid),
8719         * link/z80/lkmain.c (parse),
8720         * as/mcs51/lklex.c (getfid),
8721         * as/mcs51/lkmain.c (parse),
8722         * as/hc08/lklex.c (getfid),
8723         * as/hc08/lkmain.c (parse): Support comments in the linker script
8724         file on lines by themselves and after filenames
8725
8726 2004-04-20 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8727
8728         * as/link_hc08.dsp: Added as/hc08/lkelf.c to project.
8729
8730 2004-04-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8731
8732         * src/z80/peeph-z80.def: removed some peephole rules that don't
8733         work with multibyte arithmetic (fixed bug #937126)
8734         * src/mcs51/peeph.def: fixed peephole rules 150-158 to apply only
8735         to registers and not global variables
8736         * src/SDCCicode.c (geniCodeAssign, ast2iCode, geniCodePostInc,
8737         geniCodePreInc, geniCodePostDec, geniCodePreDec,
8738         geniCodeLogicAndOr, geniCodeConditional): enforce strict lvalue
8739         checking for assignments not internally generated (fixed bug #931895)
8740         * src/SDCC.y (postfix_expr): ignore typedefs when looking for a
8741         structure member (fixed bug #930072)
8742
8743 2004-04-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8744
8745         * src/SDCCmain.c (linkEdit),
8746         * src/hc08/main.c (_hc08_parseOptions),
8747         * as/hc08/Makefile.in,
8748         * as/hc08/aslink.h,
8749         * as/hc08/asm.h,
8750         * as/hc08/m08pst.c,
8751         * as/hc08/lkrloc.c (relr, rele),
8752         * as/hc08/lkarea.c (lnkarea)
8753         * as/hc08/lkmain.c (afile, parse),
8754         * as/hc08/lkelf.c: support for ELF output
8755         * as/hc08/lks19.c (s19),
8756         * as/hc08/lkihx.c (ihx): ignore areas with the NOLOAD attribute
8757
8758 2004-04-17 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8759
8760         * as/mcs51/lkihx.c: Fixed bug #899105.
8761
8762 2004-04-16 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8763
8764         * doc/sdccman.lyx: Added instructons on how to convert MSVC .dsw and
8765         .dsp files from Unix to DOS.
8766
8767 2004-04-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8768
8769         * doc/sdccman.lyx: removed the ANSI-C noncompliance note regarding
8770         function pointers; we have been compliant for several months now.
8771         * src/mcs51/ralloc.c (serialRegAssign): enabled part of my 2004-04-13
8772         change that was accidently commented out
8773         * src/mcs51/gen.c (freeAsmop, getFreePtr, freeForBranchAsmop, genIfxJump,
8774         genCmpEq, jmpTrueOrFalse, genCmp, genAnd, genOr, genXor, genIfx): fixed
8775         bug #922319
8776
8777 2004-04-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8778
8779         * src/hc08/gen.c: output of all of the internal debugging information
8780         is now controlled by the D() macro; it is disabled by default
8781
8782 2004-04-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8783
8784         * src/mcs51/ralloc.c (serialRegAssign, fillGaps, allocThisReg): try
8785         harder to keep the same registers during a CAST iCode
8786         * src/SDCCopt.c (optimizeCastCast, eBBlockFromiCode): casts of char to
8787         long via int can be done in a single cast, if the signedness is
8788         correct.
8789         * support/regression/tests/bug-927659.c: fixed to avoid conflict with
8790         putchar() in tinibios.c in ds390's library
8791
8792 2004-04-12 Bernhard Held <bernhard AT bernhardheld.de>
8793
8794         * src/SDCCast.c (decorateType): fixed bug #898889,
8795         cast result of a literal complement too
8796         * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #930931,
8797         fixed check for bitfields
8798
8799 2004-04-11 Bernhard Held <bernhard AT bernhardheld.de>
8800
8801         * src/SDCCicode.c (geniCodeLogic): made it static,
8802         (geniCodeLogicAndOr): added in order to fix bug #905492,
8803         (ast2iCode): fixed bug #905492
8804         * support/regression/tests/bug-905492.c: added
8805         * src/SDCCast.c (decorateType): don't decorate/process parms twice,
8806         (processParms): fixed bug #927659: don't copy parms, this will clear
8807         decorated flag
8808         * support/regression/tests/bug-927659.c: added
8809
8810 2004-03-29 Bernhard Held <bernhard AT bernhardheld.de>
8811
8812         * src/SDCCast.c (addCast): don't cast float to char
8813         * device/lib/libsdcc.lib: added _memmove
8814
8815 2004-03-28 Bernhard Held <bernhard AT bernhardheld.de>
8816
8817         * device/lib/large/Makefile: fixed parallel execution by
8818         replacing `make` by `$(MAKE)`
8819
8820 2004-03-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8821
8822         * src/hc08/gen.c (genPointerGetSetOfs): correctly handle 1 byte array
8823         offsets (fixes bug #923936)
8824
8825 2004-03-26 Bernhard Held <bernhard AT bernhardheld.de>
8826
8827         * device/lib/small/Makefile: fixed parallel execution by
8828         replacing `make` by `$(MAKE)`
8829
8830 2004-03-23 Bernhard Held <bernhard AT bernhardheld.de>
8831
8832         * device/lib/vprintf.c (vsprintf): minor optimization, see bug #801101
8833
8834 2004-03-23  Scott Dattalo  <scott AT dattalo.com>
8835
8836         * src/pic/gen.c (genCpl): multi-byte complements were not working.
8837         * src/regression/Makefile: Regression test was not running.
8838
8839 2004-03-23 Bernhard Held <bernhard AT bernhardheld.de>
8840
8841         * src/SDCCast.c (resultTypePropagate, decorateType): avoid promotion to int for
8842         complement if possible
8843         * src/SDCCval.c (valComplement),
8844         * src/SDCCicode.c (operandOperation): fixed complement of literal
8845         * support/regression/tests/onebyte.c (testComplement): added
8846
8847 2004-03-22 Bernhard Held <bernhard AT bernhardheld.de>
8848
8849         * src/SDCCast.c (processParms): fixed bug #920866; decorateType() can
8850         return an optimized tree; actually replace actParm with the new tree
8851         * src/SDCCast.h: added some parantheses to remove side effects
8852         * support/regression/tests/bug-920866.c
8853
8854 2004-03-21  Scott Dattalo  <scott AT dattalo.com>
8855         * src/pic/gen.c, src/pic/gen.h, src/pic/genarith.c, src/pic/pcode.c:
8856         Bit operands were not being handled properly in the pic14 port.
8857         (now src/regression/add.c passes again).
8858
8859 2004-03-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8860
8861         * src/SDCC.y (labeled_statement): case and default no longer require
8862         a following statement (RFE #893037)
8863
8864 2004-03-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8865
8866         * src/mcs51/gen.c (pushSide, genSignedRightShift, genDjnz, geniPush):
8867         use MOVA macro to avoid "mov a,acc" when peephole optimizer is
8868         disabled (fixes bug #916294)
8869         * sim/ucsim/s51.src/mov.cc (inst_mov_a_addr): Throw an error on
8870         "mov a,acc"; patch provided by Lenny Story
8871         * device/include/mc68hc908gp32.h: header contibuted by Juan Gonzalez
8872
8873 2004-03-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8874
8875         * src/mcs51/gen.c (genFunction): optimize RECEIVE in reentrant
8876         functions
8877         * src/ds390/gen.c (genFunction, genEndFunction),
8878         * src/ds390/ralloc.c (ds390_assignRegisters),
8879         * src/mcs51/gen.c (genFunction, genEndFunction, mcs51_assignRegisters):
8880         * src/mcs51/ralloc.c (mcs51_assignRegisters): Skip optimizing registers
8881         pushed if there are parameters passed on the stack. Also, a cleaner
8882         way to decide if r0/r1 should be pushed/popped. (Together they fix
8883         bug #918693)
8884
8885 2004-03-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8886
8887         * doc/sdccman.lyx,
8888         * device/lib/mcs51/crtpagesfr.asm,
8889         * device/lib/mcs51/crtxinit.asm,
8890         * device/lib/mcs51/crtxstack.asm: Changed name of _PAGESFR to _XPAGE
8891         to avoid confusion with Si Lab's SFRPAGE register.
8892
8893 2004-03-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8894
8895         * src/SDCCglue.c (emitMaps): allow public sfr variables
8896         * src/SDCCglue.c (initialComments): include compiler build date
8897         with compiler version and put the timestamp of the generated
8898         assembly file on a serperate line to be less confusing.
8899         * src/port.h: added genInitStartup hook
8900         * src/avr/main.c,
8901         * src/ds390/main.c,
8902         * src/hc08/main.c,
8903         * src/pic/main.c,
8904         * src/pic16/main.c,
8905         * src/xa51/main.c,
8906         * src/z80/main.c: genInitStartup initialize as NULL (default to
8907         historical behaviour)
8908         * src/SDCCglue.c (glue): _sdcc_gsinit_startup is now port specific.
8909         * src/mcs51/main.c: (_mcs51_genInitStartup, _mcs51_genExtraAreas,
8910         _mcs51_genXINIT, _mcs51_genRAMCLEAR): link initialization code from the
8911         library instead of hard coding it into the compiler.
8912         * support/regression/ports/mcs51-stack-auto/spec.mk,
8913         * src/SDCCmain.c (linkEdit): added mcs51.lib to the link libraries
8914         * device/lib/mcs51/Makefile,
8915         * device/lib/small/Makefile,
8916         * device/lib/large/Makefile,
8917         * device/lib/mcs51/crtpagesfr.asm,
8918         * device/lib/mcs51/crtstart.asm,
8919         * device/lib/mcs51/crtxclear.asm,
8920         * device/lib/mcs51/crtxinit.asm,
8921         * device/lib/mcs51/crtclear.asm,
8922         * device/lib/mcs51/crtxstack.asm: move most of the mcs51 C runtime
8923         startup/initialization out of src/SDCCglue.c and src/mcs51/main.c
8924         and into user configurable files.
8925         * device/lib/clean.mk: clean mcs51 directory too
8926         * support/regression/tests/longlit.c: added static to T1 declaration
8927         * doc/sdccman.lyx: documented _PAGESFR sfr for customizing pdata
8928         accesses in the initialization code
8929
8930 2004-03-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8931
8932         * device/include/mc68hc908qy.h: corrected declarations of FLBPR and
8933         OSCTRIMVAL as noted in bug #916008
8934
8935 2004-03-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8936
8937         * src/SDCCloop.c (basicInduction): fixed bug with loop induction
8938         in loops with multiple exits (reported as incorrect registers
8939         used by Martin Helmling in Sdcc-user list)
8940
8941 2004-03-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8942
8943         * src/ds390/main.c (_ds390_genAssemblerPreamble): cosmetic change,
8944         made ds390 register extensions look less like error messages
8945
8946 2004-03-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8947
8948         * src/SDCCglue.c (printIvalPtr): fixed bug with pointer initializer
8949         reported by Adam Wozniak in Sdcc-user list
8950
8951 2004-03-10 Bernhard Held <bernhard AT bernhardheld.de>
8952
8953         * src/SDCCast.c (decorateType): fixed with bug and promotion in
8954         arithmetic optimizations, added debug output
8955
8956 2004-03-09 Bernhard Held <bernhard AT bernhardheld.de>
8957
8958         * device/lib/time.c (mktime): fixed bug reported by Bert Thomas
8959         * sdcc.spec: updated and split sdcc into 3 rpms
8960         * src/SDCCast.c (decorateType): &|^ don't need addCast(); addCast() is
8961         needed for literals of LEFT_OP and '+'
8962         * src/SDCCicode.c (geniCodeLogic): I must have been braindead when I
8963         introduced RESULT_TYPE_NOPROM
8964         (geniCodeMultiply): fixed logic for decision if mul is optimized to
8965         left shift
8966         * src/SDCCsymt.c (computeType): op is int; added RESULT_TYPE_OTHER;
8967         limited promotion to int only for '*'
8968         * src/SDCCsymt.h (computeType): op is int, removed RESULT_TYPE_NOPROM
8969
8970 2004-03-09 Hans Dorn <hjdorn AT users.sourceforge.net>
8971
8972         * src/pic16/gen.c (genSkip),
8973         (genc16bit2lit), (gencjneshort): commented out
8974         (is_LitOp): new helper function, checks operand type
8975         (genCmpEq): rewritten
8976
8977 2004-03-08 Bernhard Held <bernhard AT bernhardheld.de>
8978
8979         * support/regression/tests/bug-908454.c: added
8980
8981 2004-03-07 Bernhard Held <bernhard AT bernhardheld.de>
8982
8983         * src/SDCCast.c (addCast): fixed bug #908454 by promoting bits to char
8984         * src/SDCCicode.c (usualBinaryConversions): op needs int type
8985         (geniCodeCast): cosmetic, don't preserve bit storage class
8986         (geniCodeLeftShift): added promotion
8987         (geniCodeLogic): fixed regression
8988         * src/SDCCsymt.c (computeTypeOr): accept bits too
8989         (compareType): 2nd part of fix for bug #908454, needed for bitfields
8990
8991 2004-03-07  Borut Razem <borut.razem AT siol.net>
8992
8993         * support/Util/findme.c: alloca() replaced with malloc()/free() pair
8994
8995 2004-03-06 Vangelis Rokas <vrokas AT otenet.gr>
8996
8997         * src/pic16/ralloc.c (pic16_genPackRegisters): reverted to old
8998         version of pic16_genPackRegisters which does not check if ic is a
8999         CAST operator,
9000         * src/pic16/gen.c (ifxForOp): disabled new and untested code in
9001         function cause string1.c regression test fails
9002
9003 2004-03-06 Bernhard Held <bernhard AT bernhardheld.de>
9004
9005         * sim/ucsim/configure.in,
9006         * sim/ucsim/configure,
9007         * sim/ucsim/doc/Makefile.in: use docdir
9008         * src/SDCC.y: fixed sbit atrributes
9009         * src/SDCCast.c (getResultTypeFromType): added support for bitfields
9010         * src/SDCCast.c (decorateType): |^& need special promotion handling
9011         * src/SDCCast.h,
9012         * src/SDCCsymt.h: moved definition of RESULT_TYPE
9013         * src/SDCCsymt.h (computeType),
9014         * src/SDCCicode.c: computeType() needs op
9015         * src/SDCCsymt.c (checkTypeSanity),
9016         * doc/sddman.lyx: "plain" bitfields are unsigned
9017         * src/SDCCsymt.c (computeTypeOr): added
9018         * src/SDCCsymt.c (computeType): added support for bitfields, fixed
9019         |^& ops
9020         * src/SDCCval.c (val*): computeType() needs op
9021         * src/SDCCval.c (valCastLiteral): fixed casting of bitfields
9022         * support/regression/tests/onebyte.c: added tests for |^&
9023
9024 2004-03-06 Hans Dorn <hjdorn AT users.sourceforge.net>
9025
9026         * src/pic16/gen.c: (genpic16Code) use copy of printILine's output
9027         for writing icode into asm output.
9028
9029 2004-03-05 Vangelis Rokas <vrokas AT otenet.gr>
9030
9031         * src/pic16/device.c: added some debug lines enabled
9032         with macro DEBUG_CHECK,
9033         * src/pic16/genarith.c: more debug in genPlus,
9034         * (pic16_genUMult8XLit_16, pic16_genUMult8X8_16): removed,
9035         * (pic16_genUMult16X16_16, pic16_genUMult16XLit_16): NEW,
9036         * src/pic16/gen.c: added prototypes for pic16_genMult16X16_16,
9037         * (aopForSym): onStack symbols are re-placed in data memspace,
9038         and onStack flag is cleared,
9039         * (pic16_popGetTempReg, pic16_popReleaseTempReg): modified to
9040         copy temporary pcodeop,
9041         * (genPcall): added warning for not updating PCLATU,
9042         * (genFunction): removed test with IFFUNC_CALLEESAVES, its
9043         always true for pic16 port,
9044         * (genMultOneWord): NEW, supports integer multiplication,
9045         * (genMult): modified to call genMultOneWord,
9046         * (ifxForOp): added warning when return NULL,
9047         * src/pic16/glue.c (pic16emitRegularMap): symbol implicit
9048         flag is set before call to operandFromSymbol for implicit
9049         added structures,
9050         * src/pic16/main.c (_pic16_finaliseOptions): options.float_rent,
9051         options.intlong_rent are set by default,
9052         * (_hasNativeMulFor): modified to allow port generation of integer
9053         multiplication,
9054         * src/pic16/ralloc.c (pic16_allocDirReg): commented out line which
9055         set regtype to REG_SFR for all registers, restricting seting the
9056         accessBank flag for registers 0<= r < 0x80 and 0xf80<=r<=0xfff,
9057
9058 2004-03-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9059
9060         * src/mcs51/peephole.def: added 251.b and 253.x. 253.x are applied
9061         more than 500 times in the regression tests
9062
9063 2004-03-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9064
9065         * support/Util/SDCCerr.h,
9066         * support/Util/SDCCerr.c,
9067         * src/SDCC.y (struct_or_union_specifier, enum_specifier,
9068         enumerator_list),
9069         * src/SDCCsymt.c (addSymChain): show location of oriignal definition
9070         for symbol conflicts.
9071         * support/valdiags/tests/enum.c,
9072         * support/valdiags/tests/tentdecl.c,
9073         * support/valdiags/tests/struct.c: expect possible error messages
9074         referring to original symbol definitions.
9075         * src/SDCC.y (struct_or_union_specifier, struct_declarator),
9076         * src/SDCCsymt.h,
9077         * src/SDCCsymt.c (promoteAnonStructs): support anonymous struct/union
9078
9079 2004-03-03 Hans Dorn <hjdorn AT users.sourceforge.net>
9080
9081         * src/pic16/gen.c (gencjne): fixed for right=REG / left=LIT
9082
9083 2004-02-03 Vangelis Rokas <vrokas AT otenet.gr>
9084
9085         * src/pic16/ralloc.c (newReg): fixed bug #908929
9086
9087 2004-03-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9088
9089         * src/ds390/gen.c: added missing #include "main.h"
9090
9091 2004-03-02 Vangelis Rokas <vrokas AT otenet.gr>
9092
9093         * src/pic16/device.c (checkAddSym): NEW, adds a symbol to set while
9094         checking if symbol is already in set,
9095         * src/pic16/device.h: prototype for checkAddSym,
9096         * src/pic16/gen.c: (_G): added entry interruptvector,
9097         * (assignResultValue): removed some commented out lines,
9098         * (genFunction): check for ISR via sym->type, absolute section for
9099         interrupt code is created via a new pBlock, the goto instruction is
9100         placed now correctly at the interrupt vector position, changed all
9101         references from ivec to _G.interruptvector,
9102         * WREG,STATUS,BSR are not saved in stack upon an entry to interrupt
9103         is the interrupt is a high priority one, same for return from ISR,
9104         * src/pic16/glue.c: changed all calls of addSetHead for publics and
9105         externs to calls of checkAddSym,
9106         * src/pic16/pcode.c (pic16_pBlockConvert2*): emit warning when
9107         pic16_pcode_verbose flag is set,
9108         * src/pic16/pcode.h: extern to pic16_pcode_verbose,
9109         * src/pic16/pcoderegs.c: message about how many registers are saved
9110         will only be emitted if pic16_pcode_verbose flag is set,
9111
9112 2004-03-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9113
9114         * src/ds390/ralloc.h,
9115         * src/ds390/ralloc.c (ds390_regWithIdx),
9116         * src/ds390/gen.c (emitcode),
9117         * src/ds390/main.h,
9118         * src/ds390/main.c (instructionSize, ds390newAsmLineNode, updateOpRW,
9119         ds390opcodeCompare, asmLineNodeFromLineNode, getInstructionSize,
9120         ds390operandCompare, getRegsRead, getRegsWritten,
9121         initializeAsmLineNode): customized instruction size calculation for
9122         ds390, started basis for some register optimizations
9123         * src/ds390/gen.c (gen390Code, emitcode): associate iCodes with
9124         corresponding assembly output
9125         * src/ds390/gen.c (genFunction, genEndFunction): added case to handle
9126         missing push/pop of r0/r1. Optimized push/pops
9127
9128 2004-03-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9129
9130         * src/mcs51/main.c (instructionSize): fixed ACALL size
9131         * src/mcs51/main.c (updateOpRW): fixed bug with @dptr, @a+dptr operands
9132
9133 2004-03-01 Vangelis Rokas <vrokas AT otenet.gr>
9134
9135         * src/pic16/device.c (pic16_dump_section): fixed a bug that allowed
9136         the sorting of rlist with NULL elements
9137         * (print_idataType, print_idata): NEW to create idata sections
9138         * src/pic16/device.h: idataSymSet new variable
9139         * src/pic16/gen.c (genFunction): fixed some bugs in string
9140         comparing, improved the absolute section creation for ISRs,
9141         added FSR0L/FSR0H in registers that are saved in an ISR,
9142         * (genInline): fixed the processing of inline snippets,
9143         now they undergo no process by the peephole optimizer
9144         * src/pic16/glue.c (pic16emitRegularMap): symbols with initialiser
9145         are placed in idataSymSet,
9146         * (pic16emitStaticSeg): extern symbols are added in externs,
9147         * src/pic16/ralloc.c (pic16_allocDirReg): work around to reduce bank
9148         switching when aboslute variables are placed in access bank memory
9149         * (pic16_writeUsedRegs): added call to pic16_dump_idata,
9150         * (packRegsForSupport,packRegsForAccUse,packRegsForOneuse):
9151         commented out with #if,
9152         * (pic16_packRegisters): reintroduce the check for CAST because some
9153         symbols are not correctly handled,
9154         * src/pic16/pcode.h: changed the definition of pCodeAsmDir to hold a
9155         pCodeInstruction instead of pCode,
9156         * src/pic16/pcode.c (pic16_newpCodeAsmDir): modified for the new
9157         pCodeAsmDir definition,
9158         * (pic16_pCode2str, genericPrint): when an AsmDir pcode has a NULL
9159         directive, then the argument directive is emitted without the leading
9160         tab, hack for inline labels which must be in the first column,
9161         * (compareLabel,pic16_findNextInstruction),
9162         * (pic16_findPrevInstruction): added case for PO_ASMDIR,
9163         * (insertBankSwitch): modified for the new pCodeAsmDir,
9164
9165 2004-03-01 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
9166         patch applied by Vangelis Rokas <vrokas AT otenet.gr>
9167
9168         * src/pic16/gen.c (pic16_popGet): case PO_DIR, adds the offset to
9169         instance,
9170         * (pushSide): commented out with #if,
9171         * (assignResultValue): fixed some typos in saving
9172         registers,
9173         * (genPcall): FIXED and sync'ed with genCall,
9174         * (genDataPointerGet,genDataPointerSet): using offset not leoffset
9175         * (genNearPointerGet): fixed to handle some more cases,
9176         implementation scheme via table reads,
9177         * (genConstPointerGet): modified to access code memory correct,
9178         * (genCodePointerGet,genNearPointerSet,genGenPointerSet): modified
9179         and improved to handle some cases
9180         * glue.c (printIvalType,printIvalChar,emitStaticSeg): use "DB"
9181         instead of "RETLW" for init data
9182         * src/pic16/ralloc.c (pic16_allocDirReg): warning when a symbol is
9183         not IN_DIRSPACE, work around to reduce bank switching when aboslute
9184         variables are placed in access bank memory (<0x80 and >=0xf80),
9185         * src/pic16/pcode.c: added SFRs TBLPTR, TABLAT, added opcodes TBLRD,
9186         TBLRD_POSTINC,TBLRD_POSTDEC,TBLRD_PREINC,TBLWT,TBLWT_POSTINC,
9187         TBLWT_POSTDEC,TBLWT_PREINC
9188         * Fixed initialisation of BSR, set "alias" for SSAVE to "0"
9189         * (pic16_emitDB,pic16_flushDB): New functions to generate "DB"
9190         directives
9191         * (pic16_pCodeConstString): use "DB" instead of "RETLW"
9192         * src/pic16/pcode.h: added TBLRD*,TBLWT*, added pic16_emitDB,
9193         pic16_flushDB, made pic16_newpCodeAsmDir public, added TBLPTR, TABLAT
9194         * src/pic16/ralloc.h: added IDX_BSR,IDX_TBLPTR*,IDX_TABLAT
9195
9196 2004-02-29  Borut Razem <borut.razem AT siol.net>
9197
9198         * src/Makefile.in, src/SDCCutil.c, support/Util/findme.c,
9199         support/Util/findme.h, support/Util/system.h: enhance binary relative
9200         search for lib and include by using findProgramPath()
9201
9202 2004-02-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9203
9204         * src/SDCCpeeph.h,
9205         * src/SDCCpeeph.c (pcDistance),
9206         * src/port.h,
9207         * src/mcs51/ralloc.h,
9208         * src/mcs51/ralloc.c (mcs51_regWithIdx),
9209         * src/mcs51/main.h,
9210         * src/mcs51/main.c (instructionSize, asmLineNode, updateOpRW,
9211         mcs51opcodeCompare, asmLineNodeFromLineNode, getInstructionSize,
9212         mcs51operandCompare, getRegsRead, getRegsWritten): made instruction
9213         size calculation port specific, started basis for some register
9214         optimizations
9215         * src/mcs51/gen.c (genFunction, genEndFunction): added case to handle
9216         missing push/pop of r0/r1. Optimized push/pops
9217         * src/mcs51/ralloc.c (packregisters): fixed bug #727095
9218         * device/lib/_modsint.c (_modsint),
9219         * device/lib/_modslong.c (_modslong): fixed sign of result in non-asm
9220         and stack version so regression tests pass
9221
9222 2004-02-26 Bernhard Held <bernhard AT bernhardheld.de>
9223
9224         * src/Makefile.in (dep): include SLIBOBJS in dependency check
9225         * src/SDCCast.c (decorateType): catch another small optimization
9226         with '?' operator
9227         * src/SDCCsymt.c (computeType): added comments and cosmetic changes
9228         * src/SDCCval.c (valMult, valDiv, valMod, valPlus, valMinus, valShift):
9229         modified to finally use computeType() all over SDCC,
9230         see Feature Request #877103
9231         * src/SDCCval.h: cosmetic
9232         * src/SDCCicode.c (operandOperation): fixed EQ_OP bug, now same as in
9233         valCompare(); regression tested in muldiv.c
9234         * support/regression/tests/muldiv.c (testMod): mod sign follows
9235         dividend only
9236
9237 2004-02-23 Bernhard Held <bernhard AT bernhardheld.de>
9238
9239         * src/SDCCast.c (decorateType): fixed bug #902362
9240         * doc/INSTALL.txt: fixed install instructions for win32
9241
9242 2004-02-21 Bernhard Held <bernhard AT bernhardheld.de>
9243
9244         * device/include/Makefile.in (install): fixed by replacing spaces
9245         by tabs
9246         * doc/README.txt,
9247         * doc/INSTALL.txt: updated for release
9248         * doc/sdccman.lyx: added warning for --xstack being buggy
9249
9250 2004-02-20 Bernhard Held <bernhard AT bernhardheld.de>
9251
9252         * src/pic16/ralloc.c (packRegsForAccUse):  disabled functions with #if
9253         to eliminate build warnings.
9254         * src/pic16/gen.c (pic16_popGet): fixed for gcc 2.95.4
9255
9256 2004-02-20 Vangelis Rokas <vrokas AT otenet.gr>
9257            Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
9258
9259         * doc/sdccman.lyx: removed PIC16 from PIC16 Port Specific Options,
9260         removed -penable-stack, added comment for stack pragma, added
9261         warning for not initializing the stack/frame registers, removed
9262         comment at interrupts section
9263
9264         Stack is made permanent, there is no ability to disable stack usage.
9265         * src/pic16/device.h,
9266         * src/pic16/device.c: removed all references to USE_STACK macro,
9267         * src/pic16/device.c (pic16_dump_section): when no elements in
9268         rlist, free rlist before return,
9269         * (pic16_dump_int_registers): NEW, internal registers are a new set
9270         of general purpose registers reused by each function,
9271         * (checkAddReg): returns 1 if registers is added to set,
9272         * (pic16_groupRegistersInSection): when a registers is of type
9273         PO_GPR_TEMP add it in pic16_int_regs and not in pic16_rel_udata,
9274         * src/pic16/device.h: memRange and Assigned Memory are deleted,
9275         SRCASECMP macro is moved here from device.c
9276         * src/pic16/genarith.c (pic16_pCodeOpType): added cases for
9277         PO_PCLATU, PO_PRODL, PO_PRODH,
9278         * (pic16_pCodeOpType, genMinus,
9279         changed compares to "a" register, with AOP_ACC,
9280         * (pic16_genPlus): fixed some bugs and indented properly,
9281         * (pic16_addSign): changed size to size+offset in the MOVWF
9282         instruction,
9283         * (pic16_genUMult8XLit_8): NEW, uses processor MULLW instruction to
9284         multiply 8-bit operand by literal, result is 8-bit,
9285         * (pic16_genUMult8X8_8): NEW, uses processor MULWF instruction to
9286         multiply 2 8-bit operand, result is 8-bit,
9287         * (pic16_genMult8X8_8): modified to call genUMult8X*_8 functions and not
9288         genUMult8X*_16,
9289         * src/pic16/gen.c: changed accUse to contain WREG only,
9290         * (pic16_emitcomment): renamed to pic16_emitpcomment,
9291         * (aopForSym): allocated dir register when IN_DIRSPACE(space) is,
9292         true, do not use immediate addressing any more unless sym is a
9293         pointer in codespace,
9294         * (aopForRemat): do not use immediate addressing when symbol not in
9295         codespace and when symbol's address is requested,
9296         * (aopOp): for-loop in if(sym->accUse) is modified for the new
9297         accUse size (= 1),
9298         * (aopGet): added case for AOP_ACC and don't return "accumulator
9299         bug" but WREG instead,
9300         * (popGetTempReg): pushes contents of temporary register in stack,
9301         * (popReleaseTempReg): pops contents of temporary register from
9302         stack. Use popGetTempReg/popReleaseTempReg in aligned pairs,
9303         * (pic16_popGet): separated case AOP_ACC to return register WREG
9304         from processor registers, AOP_PCODE not checks if pcop is PO_DIR
9305         or PO_IMMEDIATE and initializes their instance/offset appropriately,
9306         * The whole issue with aopForSym,aopForRemat,popGet) is to minimize
9307         the use of immediate pointers to certain cases only.
9308
9309         * (pic16_pushpCodeOpReg, pic16_poppCodeOpReg): use pic16_popGet2p,
9310         * (pic16_loadFromReturn, pic16_storeForReturn: NEW,
9311         * (assignResultValue, genCall, genRet): modified to use the new
9312         function return value scheme with WREG,PRODL,PRODH,FSR0L and FSR0,
9313         genPcall is still broken,
9314         * (genFunction): added code to create 'A' type pBlocks when
9315         interrupt functions are generated, code not extensively tested yet,
9316         ISRs push WREG,STATUS,BSR,PRODL,PRODH,FSR0L,FSR0H registers on stack,
9317         * (genEndFunction): modified so ISRs pop stored registers from stack,
9318         * (genMultOneByte): cleanup,
9319         * (AccRsh): added flag andmask, to and result with appropriate mask,
9320         * (genUnpackBits,genPackBits): fixed and can handle bit fields,
9321         * (genDataPointerGet): fixed and reenabled its use,
9322         * (genNearDataPointerGet): bugs fixed,
9323         * (genDataPointerSet): bugs fixed,
9324         * src/pic16/genutils.c: added functions pic16_DumpValue,pic16_DumpAop,
9325         pic16_DumpSymbol, pic16_DumpOp,
9326         * src/pic16/genutils.h: function prototypes for the above functions,
9327         * src/pic16/glue.c: new flags initsfpnt, to initialize stack/frame
9328         pointers,
9329         * (pic16emitRegularMap): many many many improvements, but needs a
9330         major cleanup,
9331         * src/pic16/main.c: enable_stack in pic16_options is removed,
9332         * (_pic16_parseOptions): removed command line options -penable-stack,
9333         * (_process_pragma): emit stack symbol only when stack pragma is
9334         processed,
9335         * src/pic16/pcode.c: pic16_pc_fsr0 is removed, all operations are
9336         redirected to FSR0L/FSR0H pair,
9337         * (pic16_get_op, pic16_get_op2): modifications and improvements,
9338         * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): added
9339         cases PO_PRODL,PO_PRODH, pic16_getRegFromInstruction2 returns sane
9340         for immediates,
9341         * (insertBankSwitch): modified to handle cases like: (alfa + 1)
9342         * (dumpPicOptype): NEW,
9343         * src/pic16/pcode.h: added PO_PCLATU,PO_PRODL,PO_PRODH in enum,
9344         * src/pic16/pcoderegs.c (pCodeRegMapLiveRangesInFlow): fixed bug
9345         with movff instruction,
9346         * src/pic16/ralloc.c: renamed typeRegWithIdx to pic16_typeRegWithIdx,
9347         added pic16_int_regs, some packRegsFor* functions are commented out,
9348         because produce errors,
9349         * src/pic16/NOTES: minor modifications
9350
9351 2004-02-18  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9352
9353         * as/mcs51/aslink.h, as/mcs51/lkarea.c, as/mcs51/lkdata.c, as/mcs51/lkmain.c,
9354         as/mcs51/lkmem.c, src/SDCCglob.h, src/SDCCmain.c: added options --stack-size and
9355         --pack-iram.
9356         * doc/sdccman.lyx: described options --stack-size and --pack-iram.
9357         * as/mcs51/lkaomf51.c: fixed bug #895763
9358
9359 2004-02-17 Bernhard Held <bernhard AT bernhardheld.de>
9360
9361         * device/include/c8051f320.h: added. Contributed by Maarten Brock.
9362
9363 2004-02-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9364
9365         * doc/sdccman.lyx: added details about the HC08 storage classes and
9366         interrupts, fixed the register usage info for z80 & gbz80
9367
9368 2004-02-17 Vangelis Rokas <vrokas AT otenet.gr>
9369
9370         * doc/sdccman.lyx: added more pic16 port documentation
9371         * device/include/pic16/: added header pic18fregs.h
9372
9373 2004-02-16 Bernhard Held <bernhard AT bernhardheld.de>
9374
9375         * doc/sdccman.lyx: added Vangelis' contribution
9376
9377 2004-02-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9378
9379         * src/SDCClrange.c (rlivePoint): live range of SEND operand should
9380         extend to the next CALL or PCALL, not just to the next CALL.
9381
9382 2004-02-16 Vangelis Rokas <vrokas AT otenet.gr>
9383
9384         * src/pic16/gen.c (genInline): fixed bug #896482 with inline assembly
9385
9386 2004-02-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9387
9388         * src/mcs51/ralloc.c (packRegsForAssign, reassignAliasedSym): fixed
9389         bug #895752 and a better fix for bug #716790
9390
9391 2004-02-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9392
9393         * src/SDCCsymt.c (processFuncArgs): fixed bug #896796
9394
9395 2004-02-14 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9396
9397         * doc/sdccman.lyx: minor changes, minor changed
9398
9399 2004-02-13 Bernhard Held <bernhard AT bernhardheld.de>
9400
9401         * src/SDCCicode.c (usualBinaryConversions): removed pic16 from ports
9402         which can't handle SDCC_NEWONEBYTEOPS,
9403         (geniCodeMultiply): removed conversion from mult to shift for pic14
9404         and pic16
9405
9406 2004-02-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9407
9408         * src/hc08/gen.h,
9409         * src/hc08/gen.c (storeRegToAop, aopOp, aopAdrStr, accopWithAop,
9410         rmwWithAop): Ported my 2003-10-02 fix for bug #663539 to the hc08,
9411         thus fixing bug #895406
9412
9413 2004-02-11 Bernhard Held <bernhard AT bernhardheld.de>
9414
9415         * device/lib/_modsint.c,
9416         * device/lib/_modslong.c: sign follows divisor only
9417         * src/hc08/gen.c (genMultOneByte): if result size is 1,
9418         signs or signedness can be ignored
9419         * src/SDCCast.c (addCast): cosmetic - added lineno to CAST
9420         * src/SDCCast.c (resultTypePropagate): added even more ops: +, - and *,
9421         added optimization for IFX,
9422         (decorateType): Mult/Div/ModOneByte ops can handle all kind of signed
9423         arguments;
9424         reenabled optimization for IFX, which was removed on 2004-01-11
9425         * src/SDCCast.h: added return type IFX
9426         * src/SDCCicode.c: Mult/Div/ModOneByte ops can handle all kind of signed
9427         arguments with 8 or 16 bit results; pic14 and pic16 ports use old
9428         promotion behaviour; env. var. SDCC_NEWONEBYTEOPS selects the new,
9429         SDCC_OLDONEBYTEOPS selects the old behaviour
9430         * src/SDCCsymt.c (computeType): type2 can be NULL (for LEFT_OP);
9431         changed again and commented promotion rule
9432         * src/SDCCval.c (valDiv): promotion no longer necessary
9433         * src/ds390/gen.c (genMultOneByte) (genDivOneByte) (genModOneByte),
9434         * src/mcs51/gen.c (genMultOneByte) (genDivOneByte) (genModOneByte):
9435         rewritten
9436         * support/regression/tests/onebyte.c: added
9437
9438 2004-02-11 Vangelis Rokas <vrokas AT otenet.gr>
9439
9440         * gen.c (genInline): reverted to old code for assemnling inline
9441         code because of bug reported James Chadd
9442
9443 2004-02-10 Vangelis Rokas <vrokas AT otenet.gr>
9444
9445         * ralloc.h: missing declarations from previous patch,
9446         seems that patch for ralloc.h was never applied, fixed
9447
9448 2004-02-10 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
9449            patch committed by Vangelis Rokas <vrokas AT otenet.gr>
9450
9451         * pcode.c,
9452         * pcode.h,
9453         * ralloc.h: added FSR0L, FSR0H and other missing PIC16 SFR's for
9454         indirect addressing. Marked FSR0 as deprecated
9455         * gen.c (pointerCode): commented out, not needed now
9456         (pic16_popGet2p): new MOVFF helper function
9457         (genGenPointerGet),
9458         (genGenPointerSet): reimplemented with MOVFF and POSTINC0
9459         (shiftRLong): removed duplicate debugging info
9460
9461 2004-02-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9462
9463         * src/ds390/gen.c (genNearPointerGet),
9464         * src/mcs51/gen.c (genNearPointerGet): allow the genDataPointerGet()
9465         optimization with bits, but not bitfields.
9466         * src/ds390/ralloc.c (packRegisters),
9467         * src/mcs51/ralloc.c (packRegisters): fixed bug #884453 & #880832
9468
9469 2004-02-09 Bernhard Held <bernhard AT bernhardheld.de>
9470
9471         * src/SDCCcse.c (algebraicOpts): copy operands before modification
9472
9473 2004-02-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9474
9475         * src/SDCCsymt.h,
9476         * src/SDCCicode.c (operandFromSymbol),
9477         * src/mcs51/ralloc.c (verifyRegsAssigned, serialRegAssign),
9478         * src/ds390/ralloc.c (verifyRegsAssigned, serialRegAssign),
9479         * src/z80/ralloc.c (verifyRegsAssigned, serialRegAssign),
9480         * src/hc08/ralloc.c (verifyRegsAssigned, serialRegAssign),
9481         * src/pic/ralloc.c (verifyRegsAssigned, serialRegAssign),
9482         * src/pic16/ralloc.c (verifyRegsAssigned, serialRegAssign): fixed
9483         bug #892038
9484         * src/SDCCast.c (createIvalStruct, createIvalArray, gatherAutoInit),
9485         * src/SDCCglue.c (emitRegularMap, printIvalStruct, printIvalArray,
9486         printIvalCharPtr, printIvalPtr, printIval, emitStaticSeg, emitOverlay)
9487         * src/SDCCsymt.c (newSymbol),
9488         * src/SDCC.y (struct_or_union_specifier, enum_specifier,
9489         enumerator_list),
9490         * src/SDCCval.h,
9491         * src/SDCCval.c (newiList): fixed bug #885705
9492
9493 2004-02-08  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9494
9495         * doc/sdccman.lyx: added section 3.1.4: sdcclib.
9496         * as/mcs51/lkmem.c: report the size of the stack in .mem file.
9497
9498 2004-02-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9499
9500         * device/include/c8051f120.h,
9501         * device/include/c8051f300.h,
9502         * device/include/c8051f310.h: added/updated header files for Silicon
9503         Laboratories (formerly Cygnal) CPUs. Contributed by Maarten Brock.
9504         * doc/sdccman.lyx: minor changes, recommended diff -Naur and diff -u
9505         in new section Submitting patches
9506
9507 2004-02-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9508
9509         * src/mcs51/gen.c (genNearPointerGet, genPagedPointerGet,
9510         genFarPointerGet, genCodePointerGet, genGenPointerGet,
9511         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
9512         genGenPointerSet),
9513         * src/ds390/gen.c (genNearPointerGet, genPagedPointerGet,
9514         genFarPointerGet, genCodePointerGet, genGenPointerGet,
9515         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
9516         genGenPointerSet),
9517         * src/pic16/gen.c (genNearPointerGet, genPagedPointerGet,
9518         genFarPointerGet, genCodePointerGet, genGenPointerGet,
9519         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
9520         genGenPointerSet),
9521         * src/pic/gen.c (genNearPointerGet, genPagedPointerGet,
9522         genFarPointerGet, genCodePointerGet, genGenPointerGet,
9523         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
9524         genGenPointerSet): fixed bug #892400
9525         * src/pic16/gen.c (genSkipz, AccRol): disabled functions with #if 0
9526         to eliminate build warnings.
9527         * src/SDCCast.c (processParms),
9528         * src/SDCC.y (function_declarator2, declarator2_function_attributes):
9529         fixed bug 751859
9530         * support/valdiag/valdiag.py: added GCC to the list of defines active
9531         when compiling with gcc
9532
9533 2004-02-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9534
9535         * support/Util/SDCCerr.h,
9536         * support/Util/SDCCerr.c,
9537         * src/SDCCast.c (decorateType, sizeofOp): complain when sizeof is used
9538         with an incomplete type (fixed bug #883734)
9539         * src/SDCCicode.c (geniCodeCast): fixed bug #890510
9540
9541 2004-02-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9542
9543         * src/pic16/gen.c (genCmpEq, shiftRLong): fixed declarations
9544
9545 2004-02-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9546
9547         * src/SDCCast.c (decorateType),
9548         * src/SDCCicode.c (geniCodeParms, geniCodeCall): fixed bugs in my ANSI
9549         function pointer implementation
9550         * support/regression/tests/funptrs.c: added tests to verify both forms
9551         of function pointers work correctly. Added tests to verify parameters
9552         are passed in the correct order.
9553
9554 2004-02-06  Vangelis Rokas <vrokas AT otenet.gr>
9555
9556         * device.c (regCompare): registers are sorted by ascending
9557         address and increasing size,
9558         * main.c (_pic16_finaliseOptions): removed the declaration
9559         of compiler macro MCU. Now a macro of the format pic18fxxxx
9560         will be defined from the command line
9561
9562 2004-02-06  Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
9563             patch committed by Vangelis Rokas <vrokas AT otenet.gr>
9564
9565         * pcode.c (pic16initMnemonics): fixed typo in assignment to PCOP_RLNCF
9566         PCOP_RLCF was overwritten!
9567         * gen.c (genSkip): commented out calls to pic16_emitcode,
9568         * (genCmpEQ): fixed "long" compares, only high word did get compared,
9569         * (genlshTwo),
9570         * (genRRC): added debugging info,
9571         * (shiftL2Left2Result): Fixed bug, if offr > offl. Result got
9572         overwritten while shifting,
9573         * (shiftR2Left2Result): Fixed bug, if offr < offl. Result got
9574         overwritten while shifting,
9575         * (AccLsh),
9576         * (AccRsh),
9577         * (shiftLLeftOrResult),
9578         * (shiftRLeftOrResult),
9579         * (shiftRLong),
9580         * (shiftLLong): Implemented with pic16_emitpcode
9581         * (genlshFour): Replaced pic16_aopPut with pic16_emitpcode,
9582         * (genLeftShift): Fixed bug, operand for shift by variable always
9583         was "and"ed with 0x0f,
9584         * (genLeftShiftLiteral),
9585         * (genrshTwo),
9586         * (genRightShiftLiteral): added debugging info,
9587         * (genrshFour): added comment,
9588         * (genRightShift): determined signedness from operand "left"
9589         instead of "result"
9590
9591 2004-02-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9592
9593         * src/SDCCicode.c (geniCodeParms),
9594         * src/SDCCast.c (decorateType, processParms): support for ANSI-style
9595         function pointers, fixed function pointer bugs #861242 and #861896
9596
9597 2004-01-31 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9598
9599         * device/include/c8051f000.h,
9600         * device/include/c8051f120.h,
9601         * device/include/c8051f300.h: added header files for Silicon
9602         Laboratories (formerly Cygnal) CPUs. Contributed by Maarten Brock.
9603
9604 2004-01-31 Bernhard Held <bernhard AT bernhardheld.de>
9605
9606         * src/SDCCast.c (processParams): added new type flow and restructured
9607         (gatherAutoInit): added new type flow
9608         (addCast): cosmetic changes
9609         (getLeftResultType): added new type flow for array indices, patch
9610         provided by Stas, see FR #877103
9611         (decorateType): SDCC_NEWTYPEFLOW removed, new type flow is now standard;
9612         array index patch by Stas
9613         * src/SDCCast.h: added prototype getResultTypeFromType()
9614         * src/SDCCval.h,
9615         * src/SDCCval.c (resolveIvalSym) (resolveIvalSym),
9616         * src/pic/glue.c (pic14emitStaticSeg),
9617         * src/pic16/glue.c (pic16emitStaticSeg),
9618         * src/SDCCglue.c (emitRegularMap) (emitStaticSeg): added new type flow
9619         for initialization of symbols
9620         * src/SDCCicode.c (geniCodeArray): removed warning W_ARRAY_BOUND
9621         * support/Util/SDCCerr.h:
9622         * support/Util/SDCCerr.c: replaced W_ARRAY_BOUND by W_IDX_OUT_OF_BOUNDS
9623         * .version: bumped version number to 2.3.8
9624         * device/include/Makefile.in (install),
9625         * doc/Makefile (install): changed to 'rm `find ...`' construct to
9626         avoid warnings
9627
9628 2004-01-30 Bernhard Held <bernhard AT bernhardheld.de>
9629
9630         * support/regression/tests/libmullong.c: fixed for 64 bit hosts
9631         Slade Rich fixed an optimization bug
9632         * src/pic/pcodepeep.c,
9633         * src/pic/pcoderegs.c
9634         * doc/Makefile (install): added test for directory
9635
9636 2004-01-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9637
9638         * src/mcs51/ralloc.c (getRegPtr, getRegGpr),
9639         * src/ds390/ralloc.c (getRegPtr, getRegGpr),
9640         * src/pic/ralloc.c (getRegPtr, getRegGpr),
9641         * src/pic16/ralloc.c (getRegPtr, getRegGpr),
9642         * src/z80/ralloc.c (getRegGpr): fixed bug #883361
9643         * as/mcs51/asexpr.c (term),
9644         * as/hc08/asexpr.c (term): fixed bug #887146
9645
9646 2004-01-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9647
9648         * src/z80/gen.c (genMult): handle single byte result product
9649         * src/SDCCopt.c (killDeadCode): never convert ADDRESS_OF iCode to
9650         DUMMY_READ_VOLATILE (fixed bug #886367)
9651
9652 2004-01-27 Bernhard Held <bernhard AT bernhardheld.de>
9653
9654         * support/regression/tests/libmullong.c: fixed logic, on little endian
9655         hosts we ended without a mullong_wrapper()
9656
9657 2004-01-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9658
9659         * ChangeLog: changed "@" to " AT " in hopes of reducing spam and
9660         virus/worm forged address usage.
9661
9662 2004-01-27 Bernhard Held <bernhard AT bernhardheld.de>
9663
9664         Fixed promotion, it should be done on AST level:
9665         * src/SDCCast.c (addCast): added promotion to int
9666         (decorateType): updated call to upCast()
9667         * src/SDCCicode.c (geniCodeLeftShift): removed call to
9668         usualUnaryConversions()
9669
9670 2004-01-26  Michael Hope  <michaelh AT juju.net.nz>
9671
9672         * support/regression/tests/literalop.c (mulWrapper): Added a
9673         wrapper to remove integer overflow warnings.
9674
9675         * support/regression/tests/float_trans.c: Made work on host.
9676
9677         * support/regression/ports/ucz80/spec.mk (UCZ80): Made detect the
9678         location of sz80.
9679
9680         * support/regression/generate-cases.py (main): Changed from inline
9681         to a main method.
9682
9683         * doc/Makefile (install): Changed to depth first to get rid of
9684         missing directory install warning.
9685
9686         * as/Makefile (install-doc): Made work on Mac.
9687
9688 2004-01-25 Bernhard Held <bernhard AT bernhardheld.de>
9689
9690         * src/SDCCast.c: added an additional type flow in decorateType() of
9691         opposite direction, see feature request #860006; it's enabled at runtime
9692         by setting the environment variable SDCC_NEWTYPEFLOW
9693         * src/SDCCast.h: changed prototype of decorateType()
9694         * src/SDCCglue.c (emitRegularMap): updated call of decorateType()
9695         * src/SDCCicode.c (geniCodeDivision) (geniCodeModulus): promotion from
9696         'char' to 'int' can be omitted, if both operands are 'unsigned char';
9697         see feature request #877103
9698         * src/SDCCval.c: updated call of decorateType()
9699         (valBitwise): fixed bug #882876
9700         (valMinus): added promotion
9701         (valLogicAndOr): result is unsigned
9702         (cheapestVal) (constVal): literals from 0...255 are 'unsigned char' now
9703         * src/SDCCsymt.c (computeType),
9704         * src/mcs51/gen.c (genCmpGt) (genCmpLt): literal 'unsigned char'
9705         must not cause an unsigned operation
9706         * src/pic/glue (pic14emitRegularMap),
9707         * src/pic16/glue.c (pic16emitRegularMap): updated call of decorateType()
9708
9709 2004-01-23 Bernhard Held <bernhard AT bernhardheld.de>
9710
9711         * src/pic/pcode.c (PCodeID): commented out left over debug code
9712
9713 2004-01-20 Bernhard Held <bernhard AT bernhardheld.de>
9714
9715         * support/valdiag/tests/overflow.c: added shift tests
9716         * src/pic/device.c,
9717         * src/pic/gen.c,
9718         * src/pic/gen.h,
9719         * src/pic/glue.c,
9720         * src/pic/main.c,
9721         * src/pic/pcode.c,
9722         * src/pic/pcode.h,
9723         * src/pic/pcodepeep.c,
9724         * src/pic/pcoderegs.c,
9725         * src/pic/ralloc.c,
9726         * src/pic/ralloc.h: applied patch from Slade Rich;
9727         added support for multiple code pages and multiple RAM banks on the
9728         PIC 14 port. The ASM files now no longer simply assume all the
9729         code / RAM are in the same page / bank. This means the linker can
9730         safely allocate code/RAM of separate ASM files to different pages/banks.
9731         * doc/sdccman.lyx: added Slade's tips
9732         * src/mcs51/peeph.def: fixed bug #880768
9733
9734 2004-01-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9735
9736         * src/hc08/ralloc.c (rematStr): fixed bug #879282
9737         * src/SDCCast.c (decorateType): fixed bug #880197
9738
9739 2004-01-20  Michael Hope  <michaelh AT juju.net.nz>
9740
9741         * sim/ucsim/gui.src/serio.src/main.cc: Fixed unconditional use of
9742         getopt.h.
9743
9744         * debugger/mcs51/cmd.c (getValBasic): Changed strtof to strtod as
9745         strtof is not part of C89 and isn't included with Mac OS X.
9746
9747 2004-01-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9748
9749         * src/hc08/gen.c (genPlusIncr, genUminus, genMinusDec, genCmp,
9750         shiftL2Left2Result): fixed bug #879326
9751         (genAnd, genOr, genXor): fixed bug when result was of type AOP_CRY
9752         (genMultOneByte): fixed bug in signed vs unsigned multiplication
9753         * sim/ucsim/hc08.src/inst.cc (inst_clr): added missing effective
9754         address fetch for clr instruction
9755         * device/lib/hc08/_mulint.c: created optimized assembly version
9756         * src/SDCCdflow.c (computeDataFlow): fixed bug #878209
9757
9758 2004-01-19 Bernhard Held <bernhard AT bernhardheld.de>
9759
9760         * src/SDCCicode.c (geniCodeArray): applied patch from Stas Sergeev
9761         proposed in FR #877103
9762
9763 2004-01-18 Bernhard Held <bernhard AT bernhardheld.de>
9764
9765         * src/SDCCval.c (cheapestVal): added missing checks
9766         * src/SDCCicode.c (usualBinaryConversions): fixed condition
9767         * src/SDCCicode.c (geniCodeAdd): fixed part of bug #877103
9768
9769 2004-01-16 Klaus Flittner <klaus_flittner AT gmx.de>
9770
9771         * src/ds390/gen.c (aopOp3): fixed the assignment of different dptrs to
9772         equal operands
9773
9774 2004-01-16 Vangelis Rokas <vrokas AT otenet.gr>
9775
9776         * src/SDCCmain.c (linkEdit): variable $3 of the linker command is
9777         loaded with the linker search paths (-L arguments) and the libraries
9778         to be linked with the current source (-l arguments). Changes
9779         currently will affect only the pic16 port.
9780         * src/pic16/main.c (_pic16_finaliseOptions): add to the linker
9781         include path the port specific paths and port specific libraries,
9782         * gplink command now contains the $3 argument,
9783         * src/pic16/device.h,
9784         * src/pic16/device.c,: structure PIC_device is made public and
9785         renamed to PIC16_device, the same for variable Pics which is renamed
9786         to Pics16. Updated all references to them.
9787         * src/pic16/glue.c (pic16glue): corrected bug with code
9788         initialization which bypassed the variable initializations block.
9789
9790         * device/lib/pic16/Makefile.rules: removed --penable-stack from
9791         COMPILE_FLAGS and added the --nostdinc option
9792
9793 2004-01-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9794
9795         * device/include/mc68hc908jb8.h: Register defs for another member
9796         of the hc08 family. Contributed by Bjorn Bringert - thanks!
9797
9798 2004-01-14 Vangelis Rokas <vrokas AT otenet.gr>
9799
9800         Documenting changes from previous commits.
9801         * configure.in (version 1.56),
9802         * configure: initially I've added AC_CONFIG_SUBDIRS(device/lib/pic16)
9803         when generating output files to configure the pic16 library,
9804         but now I've commented it out, since gputils aren't installed in the
9805         SF compile farm, so library won't compile
9806
9807         * device/lib/Makefile.in (version 1.56): initially I've added in
9808         target 'all' the prerequestive 'model-pic16' so it compiled the
9809         pic16 library, but now I've commented it out for the same reasons
9810         above,
9811         * added targets 'model-pic16' and 'objects-pic16' to compile the
9812         library
9813         * added target 'port-specific-objects-pic16' to handle the
9814         generated libraries and copy them into the build/ directory
9815         * added target 'clean-intermediate-pic16' to clean intermediate
9816         files into pic16 directory
9817         * in target 'installdirs' added line to create directory pic16 in
9818         the installation path
9819
9820         * device/include/Makefile.in (version 1.11): in target 'install'
9821         added lines to copy all header files to installation path,
9822         * in target 'installdirs' added line create directory for pic16
9823         headers in the installation path
9824
9825 2004-01-13 Klaus Flittner <klaus_flittner AT gmx.de>
9826
9827         * src/ds390/gen.c (genCall): fixed a double use of acc and b after
9828          a function call
9829
9830 2004-01-13 Bernhard Held <bernhard AT bernhardheld.de>
9831
9832         * configure,
9833         * device/lib/configure.in,
9834         * device/lib/configure: fixed for autoconf 2.57
9835
9836 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9837
9838         * src/z80/main.c (_parseOptions): fixed the portmode= command line
9839         option so that it actually works. Made it specific to the z80, since
9840         the gbz80 doesn't have these kinds of I/O ports.
9841
9842 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9843
9844         * device/include/z180.h,
9845         * device/lib/_memcpy.c,
9846         * device/lib/_memmove.c,
9847         * device/lib/_mulint.c,
9848         * device/lib/ser_ir.c,
9849         * device/lib/ser_ir_cts_rts.c,
9850         * device/lib/_strcmp.c,
9851         * device/lib/_strtok.c: fixed pragmas to non-deprecated form
9852         * src/z80/main.c (_process_pragma): add support for pragmas bank and
9853         portmode; added deprecation warning for bank= and protmode= forms.
9854         Also, guard against buffer overflow.
9855         * src/z80/gen.c (aopGet): generate better code for sfr banked read
9856
9857 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9858
9859         * src/hc08/main.c (_hc08_genAssemblerPreamble): fixed bug #875487. Also
9860         changed interrupt vector table generation to only emit declared vectors.
9861         * device/include/Makefile.in: added missing backslash
9862         * device/lib/pic16/Makefile.rules: add $(MODELFLAGS) to $(CFLAGS)
9863
9864 2004-01-13 Vangelis Rokas <vrokas AT otenet.gr>
9865
9866         Mainly changes to support compilation of the device libraries
9867         * src/pic16/device.c: stack is allocated via symbol and not
9868         via literal number. The symbol is placed in the corresponding
9869         position of the data ram
9870         * (pic16_dump_section): relocatable and absolute uninitialized
9871         data are now emitted in sorted order to reduce section naming,
9872         * src/pic16/ralloc.c (newReg): fixed bug with SFR's that
9873         weren't marked as being in the access bank,
9874
9875 2004-01-13 Vangelis Rokas <vrokas AT otenet.gr>
9876
9877         Added portion of GNU PIC Library under the directory
9878         device/include/pic16 and device/lib/pic16. These files
9879         contain the declarations of SFRs for the PIC18Fxx2 devices.
9880         The directory is initialized via configure from toplevel.
9881
9882 2004-01-12 Klaus Flittner <klaus_flittner AT gmx.de>
9883
9884         * src/ds390/gen.c (operandsEqu): fixed a little typo, that prevented
9885         the spilllocations to be compared correctly
9886
9887 2004-01-12 Bernhard Held <bernhard AT bernhardheld.de>
9888
9889         * src/SDCCast.c (decorateType): fixed bug introduced today
9890
9891 2004-01-12  Borut Razem <borut.razem AT siol.net>
9892
9893         * src/SDCC.lex, support/Util/SDCCerr.h, support/Util/SDCCerr.c,
9894         doc/sdccman.lyx: upper case pragmas are deprecated
9895
9896 2004-01-12 Bernhard Held <bernhard AT bernhardheld.de>
9897
9898         * src/SDCCast.c (decorateType): replacing 'ul > 0' by  '!ul' results
9899         in simpler and even better code
9900
9901 2004-01-11 Bernhard Held <bernhard AT bernhardheld.de>
9902
9903         * src/SDCCicode.c (operandOperation): fixed bug #874819
9904         * src/SDCCast.c (decorateType): fixed
9905         char foo (unsigned long ul) { return ul > 0; }
9906
9907 2004-01-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9908
9909         * doc/sdccman.lyx: Moved and added some sections, small changes
9910         all over. Telling LaTeX to be less strict with word spacing
9911         to better keep the right margin. Changed some notes about
9912         maintainance of the ports in section 3.2.1 - is it OK like this?
9913
9914 2004-01-11 Vangelis Rokas <vrokas AT otenet.gr>
9915
9916         SDCC source changes:
9917         * src/SDCCopt.c (cntToFcall, cnvToFloatCast, cnvFromFloatCast,
9918         convilong): modified to inform the pic16 port that builtin functions
9919         are external
9920
9921         PIC16 PORT specific changes:
9922         * src/pic16/device.c pic16_dump_equates() added,
9923         processor registers declared internally by the port are emitted in
9924         the translation as equates,
9925         * src/pic16/gen.c: inline code is passed unprocessed to the
9926         translation,
9927         * (pic16_popGetLit2): fnuction modified to take second operand as
9928         pCodeOp pointer and not as literal,
9929         * (popRegFromIdx): prefixed with pic16_,
9930         * (pic16_popCombine2): modified to receive already allocated pCode
9931         operands,
9932         * (pic16_pushpCodeOpReg, pic16_poppCodeOpReg): added
9933         * (genFunction): initializes local stack frame and pushes on stack
9934         all the registers used by this function,
9935         * (genEndFunction): restores all registers from stack and restores
9936         stack frame,
9937         * src/pic16/glue.c (pic16emitRegularMap): various changes and
9938         improvements,
9939         * (pic16glue): changed the program startup sequence,
9940         * added new dbName code 'A' for functions placed in absolute section
9941         * src/pic16/main.c: added function attribute _naked,
9942         * added pragma 'code' to place a fnuction at an absolute address,
9943         * added command line arguments --debug-ralloc and --pcode-verbose,
9944         * (_pic16_finiliseOptions): options.all_callee_saves is set by default
9945         * src/pic16/pcode.c (pic16_pBlockConvert2Absolute) added,
9946         * (pic16_newpCodeOpLit2): modified to take the second operand as
9947         pCodeOp pointer,
9948         * (pic16_printpBlock): modified to emit each function in a separate
9949         section,
9950         * (pic16_get_op): modified to use the gpasm modifiers LOW,HIGH and
9951         UPPER for immediate operands,
9952         * src/pic16/pcodepeeph.c: added peephole support for the LFSR
9953         instruction,
9954         * src/pic16/peeph.def: all peepholes with movff are commented out,
9955         because there is a problem in the pcode peep optimizer,
9956         * src/pic16/ralloc.c: the register allocator can now reuse local
9957         function symbols for another function. This saves register usage.
9958         * src/pic16/ralloc.h: added flag isLocal in structure regs,
9959
9960         Added file src/pic16/NOTES with information about program writing on
9961         the current port version.
9962
9963 2004-01-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9964
9965         * src/mcs51/peephole.def: added peepholes 177.c,d (redundant moves)
9966         and peephole 252 (array access)
9967
9968 2004-01-09  Borut Razem <borut.razem AT siol.net>
9969
9970         * src/SDCCmain.c : fixed #872250: -l command line defined library
9971           files are scanned before standard library files
9972
9973 2004-01-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9974
9975         * src/SDCCast.c (decorateType): fixed bug #874046
9976
9977 2004-01-09  Borut Razem <borut.razem AT siol.net>
9978
9979         * support/scripts/sdcc.nsi: remove previous installation
9980
9981 2004-01-09 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9982
9983         * src/SDCCglue.c (createInterruptVect): don't append 7(5) padding
9984         bytes for last interrupt vector (mcs51)
9985         * sdcc.spec: fixed typo
9986
9987 2004-01-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9988
9989         * src/mcs51/gen.c (genFunction, genEndFunction, genReceive, getTempRegs,
9990         gen51Code): more efficient parameter receive for --model-large
9991         ("bug" #845294)
9992
9993 2004-01-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9994
9995         * src/ds390/main.c,
9996         * src/z80/main.c: added missed needLinkerScript flags (more than
9997         one port structure defined in these file)
9998         * src/ds390/gen.c (aopForSym, aopOp, operandsEqu, aopOp3): fixed
9999         bug #795325
10000
10001 2004-01-08 Vangelis Rokas <vrokas AT otenet.gr>
10002
10003         * src/SDCCmain.c: removed various references to DEFAULT_PORT
10004         * src/port.h: added flag needLinkerScript in port->linker
10005         structure to inform whether to create a .lnk file or not,
10006         * src/avr/main.c,
10007         * src/ds390/main.c,
10008         * src/hc08/main.c,
10009         * src/mcs51/main.c,
10010         * src/pic/main.c,
10011         * src/pic16/main.c,
10012         * src/xa51/main.c,
10013         * src/z80/main.c: changed appropriately to configure
10014         needLinkerScript flag
10015         * src/pic/gen.c,
10016         * src/pic16/gen.c (genAddrOf): fixed bug #863624
10017         * src/pic/glue.c: added variable udata_section_name to
10018         override default uninitialized data segment definition for
10019         devices only with SHAREBANK memory (reported from Erik Epetrich)
10020         * (pic14emitOverlay): modified to emit a commented overlay segment
10021         directive when no overlay data exist
10022         * (picglue): modified to emit uninitialized data segment
10023         according to udata_section_name
10024         * src/pic/main.c (_pic14_parseOptions): added command line
10025         options --udata-section-name=[name] to override default
10026         udata definition name
10027         * modified _linkCmd and _asmCmd to include compiler passed
10028         arguments via -W option
10029         * src/pic16/main.c: added $l in _asmCmd, changed extension for
10030         object file from '.rel' to '.o' in port->linker structure,
10031         changed size of fptr from 2 to 3 in port structure
10032
10033 2004-01-07  Borut Razem <borut.razem AT siol.net>
10034
10035         * support/scripts/sdcc.nsi: update PATH
10036         * support/scripts/sdcc.ico: craeted
10037
10038 2004-01-07 Bernhard Held <bernhard AT bernhardheld.de>
10039
10040         * device/include/Makefile.in: fix install
10041         * doc/Makefile: fix install
10042
10043 2004-01-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10044
10045         * src/SDCCsymt.c (processFuncArgs): fixed superflous allocation noted
10046         in bug #860505
10047         * src/SDCCmem.c (printAllocInfoSeg, printAllocInfo): minor changes to
10048         how the function variable allocation summary is displayed; also
10049         include information about variables allocated to the overlay
10050         segment
10051
10052 2004-01-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10053
10054         * as/mcs51/lkmain.c: Help about -Y option
10055         * as/mcs51/lkarea.c: Fixed gcc warnings
10056
10057 2004-01-06 Bernhard Held <bernhard AT bernhardheld.de>
10058
10059         * src/SDCCval.c (valShift): changed from 16 to 32 bit shift count,
10060         fixed warning
10061         * support/valdiag/tests/overflow.c: added
10062         * src/SDCCast.c (decorateType),
10063         * src/SDCCicode.c (geniCodeLeftShift): added promotion to int for
10064         LEFT_OP (left shift)
10065
10066 2004-01-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10067
10068         * as/mcs51/lkmain.c: stack must be after data when option -Y is not used
10069         (default behaviour).
10070
10071 2004-01-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10072
10073         A python script to validate compiler diagnostic messages. It can be
10074         used to verify that sdcc complains about bad c source code and
10075         gives a good location of the error.
10076         * support/valdiag/Makefile,
10077         * support/valdiag/valdiag.py,
10078         * support/valdiag/tests/*
10079
10080 2004-01-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10081
10082         * src/SDCC.y (enum_specifier, enumerator_list, opt_assign_expr),
10083         * src/SDCCsymt.c (newEnumType),
10084         * src/SDCCsymt.h
10085         * support/Util/SDCCerr.c,
10086         * support/Util/SDCCerr.h: fixed bug #871258 and some other unreported
10087         enum related bugs.
10088         * support/regression/tests/enum.c: added test for enum values that
10089         require at least 2 bytes of storage.
10090
10091 2004-01-06 Vangelis Rokas <vrokas AT otenet.gr>
10092
10093         * src/common.h: added ifndef/define/endif macros
10094         around the header file.
10095         Bug reported from Jesus Calvino-Fraga
10096
10097 2004-01-06 Bernhard Held <bernhard AT bernhardheld.de>
10098
10099         * sdcc.spec: updated
10100         * device/include/Makefile.in: don't install CVS directories
10101         * device/lib/Makefile.in: added removal of CVS directories after install
10102         * doc/Makefile: fixed install, added local_icons
10103         * sim/ucsim/gui.src/Makefile.in: fixed an old typo
10104         * src/mcs51/gen.c (genRightShift): fixed bug #870788
10105         * src/ds390/gen.c (genRightShift): fixed bug #870788
10106         * src/SDCCast.c (decorateType): fixed bug #870781
10107
10108 2004-01-06 Vangelis Rokas <vrokas AT otenet.gr>
10109
10110         PIC16 port related changes:
10111         * device.c: removed pic16_finalMapping and pic16_finalMappingSize,
10112         added variable stackPos,
10113
10114         * gen.c: genCall, assignResultValue: added support for
10115         pushing/retrieving function parameters to/from stack,
10116         genFunction,genEndFunction: setup stack frame for the
10117         generated function,
10118         genAddrOf: will be changed according to bug 863624
10119
10120         * added files genutils.c and genutils.h which contain gen*
10121         debugged and optimised functions extracted from gen.c
10122
10123         * glue.c: added variable 'externs' which holds extern symbols,
10124         pic16emitRegularMap: is modified to properly handle relocatable
10125          symbols under the new scheme,
10126         pic16createInterruptVect: is modified
10127         pic16printPublics: is modified to emit 'global' assembler directives,
10128         added pic16_printExterns to print extern symbols,
10129         pic16glue: initializes stack/frame pointer in the beginning of
10130         the assembly output. Temporary hack, will be corrected later,
10131         because gplink yet does not support stack and SDCC does not
10132         yet support a type of crt0.o object to create the final binary.
10133
10134         * Removed many lines that contain 8051 legacy code.
10135         * The code is finally placed under a 'code' directive.
10136         * Added port specific options.
10137
10138         * _process_pragma: simplified since now we do not need *special*
10139         include file to define SFR registers. But a separate header
10140         will be needed. This will be developed later.
10141         * _pic16_parseOptions: added, parses port specific options:
10142         --pgen-banksel, --obanksel=, --pomit-config-words, --pomit-ivt,
10143         --pleave-reset-vector, --penable-stack, --pstack-model, --debug-xtra
10144         --preplace-udata-with=
10145
10146         * _pic16_setDefaultOptions: modified to initialize section names,
10147         but hack is temporarly out of order since it needs improvement.
10148         * _pic16_genAssemblerPreamble: configuration words are emitted by
10149         their address instead of their name. This part is incomplete and
10150         supports only the 18Fxx2 devices. Other devices will emit an error
10151         during assembly since they do not contain the same set of config
10152         registers
10153         * _pic16_genIVT: is modified,
10154
10155         * pcode.c: added definitions for some hardware registers that are needed
10156         for stack support
10157         * added flag is2LitOp and variable pci_magic in pCodeInstruction.
10158         All PCI entries are updated. Now LFSR is supported.
10159         * Removed pic16_pciTRIS is mentioned by mdubuc in source
10160         * added pic16_newpCodeOpLit2 to support instructions with
10161         two literal arguments
10162         * pic16_pCode2str: corrected code that emits assembler instructions
10163         with two literal operands and those that have an access bit modifier
10164         * genericPrint: now PC_ASMDIR pCodes, can emit a label if it exists,
10165         this fixes a bug which caused some labels to be lost, when an
10166         assembler directive was added, i.e. banksel,
10167         * pic16_FixRegisterBanking: improved logic that causes the insertion
10168         of bank switching,
10169         * InlineFunction: functions that are called once, are not any more
10170         inlined. This can be a port option in the future,
10171
10172         * pcode.h: added pCodeOpLit2 and added variable label in pCodeAsmDir
10173
10174         * ralloc.c: added pic16_rel_udata and pic16_fix_udata variables which
10175         hold the corresponding uninitialized symbols,
10176         * pic16_allocProcessorRegister: registers have explicit marked the
10177         accessBank field,
10178         * pic16_allocInternalRegister: registers are explicit marked as
10179         not used,
10180         * pic16_writeUsedRegs: pic16_dynDirectBitRegs was missing from the
10181         processing list, so bit registers were lost,
10182         *
10183
10184         * ralloc.h: added field 'accessBank' and original symbol operand
10185         in register definition,
10186         * removed the field isMapped from register definition,
10187
10188         ** Several functions have been removed from various sources:
10189         BanksUsedFlow2,BanksUsedFlow,FixBankFlow,InstructionRegBank,
10190         pic16_addMemRange,pic16_isREGinBank,pic16_dump_map,pic16_dump_cblock
10191         isSFR,validAddress,mapRegister,assignRegister,pic16_assignFixedRegisters
10192         pic16_assignRelocatableRegisters
10193
10194         ** others have been introduced:
10195         pic16_areRegsSame,pic16_dump_section,checkAddReg,pic16_groupRegistersInSection
10196         pic16_popGetLit2,pic16_popCombine2,pushw,pushaop
10197
10198 2004-01-05 Vangelis Rokas <vrokas AT otenet.gr>
10199
10200         * support/scripts/inc2h.pl: changed definition of BIT_AT
10201         to emit 'sbit at' instead of 'bit at'. This was a request.
10202
10203         PIC16 port related preliminary changes:
10204         * gen.c: prefixed function popRegFromString with
10205         pic16_ and all references to it corrected
10206         * pcode.c: all pic16_pc_* hardware registers prefixed
10207         with underscore (_),
10208         pic16_popCopyGPR2Bit(): function sets register wasUsed=1
10209         * ralloc.c: newReg(): when register is REG_SFR then
10210         set address to rIdx,
10211         pic16_allocProcessorRegister(): marks register wasUsed=0
10212         pic16_writeUsedRegs(): added a call to assign processor
10213         registers via pic16_assignFixedRegisters
10214
10215 2004-01-04  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10216
10217         * as/mcs51/aslink.h, as/mcs51/lkarea.c, as/mcs51/lkdata.c,
10218         as/mcs51/lkmain.c, as/mcs51/lkmem.c: 8051 linker can now pack
10219         variables in unused register banks.  Also the SSEG is placed
10220         wherever there is enough space for it, and IDATA can be anywhere
10221         in internal RAM.  For now compile using -Wl-Y[stack_size].
10222         The mem file is different for this option as well, since it
10223         makes no sense of talking about DSEG lenght.
10224
10225 2004-01-02 Vangelis Rokas <vrokas AT otenet.gr>
10226
10227         * src/SDCClrange.c: fixed bug 869095 that caused segfault
10228         in certain cases, e.g. when ROM assignment, patch provided
10229         from Albert den Haan.
10230
10231 2004-01-01 Bernhard Held <bernhard AT bernhardheld.de>
10232
10233         Many signedness and type propagation fixes:
10234         * src/SDCCicode.c: made geniCodeCast() static
10235         replaced SPEC_ by IS_ (cosmetic)
10236         (operandOperation): fixed div and mod operation
10237         (usualBinaryConversions): added support for promotion of char
10238         (geniCodeMultiply): replaced (unsigned long) by (TYPE_UDWORD)
10239         (geniCodeDivision): replaced (unsigned long) by (TYPE_UDWORD)
10240         (geniCodeAdd): an array index will stay unsigned, even if promoted
10241         from char to int
10242         (geniCodeArray): ditto
10243         * src/SDCCicode.h: made geniCodeCast() static: removed prototype
10244         * src/SDCCsymt.c (computeType): added more support for char;
10245         promotion of char is selectable by promoteCharToInt, fixed signedness
10246         for all cases
10247         (powof2): replaced (unsigned long) by (TYPE_UDWORD)
10248         * src/SDCCsymt.h (powof2): replaced (unsigned long) by (TYPE_UDWORD)
10249         * src/SDCCval (val*): replaced signedness calculation by
10250         computeType()
10251         rearranged if-branches (cosmetic)
10252         (valShift): added warning W_SHIFT_CHANGED
10253         (valCompare): fixed problem with different types
10254         * src/hc08/rallo.c (leastUsedLR): fixed gcc 3.3 warning
10255         * support/regression/tests/literalop.c: added many cases
10256         * support/regression/tests/ast_constant_folding.c: changed finally to
10257         'unsigned int'
10258         * .version: new year, new version: 2.3.7
10259         * src/SDCCmain.c (main): applied patch #866468
10260         * debugger/mcs51/sdcdb.c (parseCmdLine): added -k for ucsim, patch
10261         provided by Scott Bronson
10262         * doc/sdccman.lyx: updated documentation for sdcdb
10263         updated and added chapter tips
10264
10265 2004-01-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10266
10267         * src/SDCCsymt.h: missing from yesterday's commits
10268
10269 2003-12-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10270
10271         * src/SDCC.y (struct_or_union_specifier),
10272         * support/Util/SDCCerr.c,
10273         * support/Util/SDCCerr.h: verify that struct & union tags are used
10274         as declared.
10275
10276 2003-12-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10277
10278         * src/SDCCglobl.h: missing from yesterday's commits
10279
10280 2003-12-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10281
10282         * src/SDCC.y (external_definition, type_specifier2, sfr_reg_bit,
10283         sft_attributes, struct_declaration, parameter_declaration,
10284         type_name, start_block, declaration_list),
10285         * src/SDCC.lex (check_type): support redefinition of typedef names
10286
10287 2003-12-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10288
10289         * src/mcs51/gen.c (genPlus): added special handling for 256 byte
10290         aligned xdata arrays. Erik helped me with the if clause.
10291
10292 2003-12-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10293
10294         * device/lib/ds390/tinibios.c (CpuSpeed): suppress unreachable code
10295         warning
10296
10297 2003-12-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10298
10299         * src/SDCCast.h,
10300         * src/SDCCast.c (newAst_),
10301         * src/SDCCicode.h,
10302         * src/SDCCicode.c (ast2iCode, newiCode),
10303         * src/SDCCglobl.h,
10304         * src/SDCC.y (logical_and_expr, logical_or_expr, conditional_expr,
10305         expr, statement, expression_statement, selection_statement,
10306         iteration_statement, expr_opt, jump_statement): foundation for tracking
10307         sequence points
10308         * src/SDCCopt.c (killDeadCode): fixed bug #861580 (needs the sequence
10309         point code too)
10310
10311 2003-12-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10312
10313         * support/Util/SDCCerr.c,
10314         * src/SDCCast.h,
10315         * src/SDCCast.c (createCase, createDefault, decorateType),
10316         * src/SDCClabel.c (labelUnreach),
10317         * src/SDCC.y (labeled_statement, jump_statement): More improvements
10318         to error messages.
10319         * support/Util/SDCCerr.c (werrorfl): fixed a non-standard declaration
10320         (with thanks to Stas Sergeev)
10321         * device/include/time.h,
10322         * device/lib/time.c (CheckTime): suppress unreachable code warning
10323
10324 2003-12-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10325
10326         * src/SDCCast.c (createIvalCharPtr),
10327         * src/SDCCglue.c (printChar): fixed bug #862241 (an error in my fix for
10328         bug #753752)
10329         * support/regression/tests/nullstring.c: tests for these two bugs
10330
10331 2003-12-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10332
10333         * support/Util/SDCCerr.h,
10334         * support/Util/SDCCerr.c (E_NOT_ALLOWED),
10335         * src/SDCC.y (struct_declaration, struct_or_union_specifier): complain
10336         about storage class and 'at' used inside struct or union
10337         * src/SDCCBBlock.c (iCodeFromeBBlock),
10338         * src/SDCCcse.c (ifxOptimize),
10339         * src/SDCCglue.c (emitRegularMap, initPointer, printIvalStruct,
10340         printIvalArray, printiValFuncPtr, printIvalCharPtr, printIvalPtr,
10341         printIval, emitStaticSeg, emitOverlay),
10342         * src/SDCClabel.c (deleteIfx),
10343         * src/SDCCopt.c (replaceRegEqv, eBBlockFromiCode),
10344         * src/SDCCast.c (resolveSymbols, createIvalStruct, createIvalArray,
10345         gatherAutoInit, processParms),
10346         * support/Util/SDCCerr.h,
10347         * support/Util/SDCCerr.c (werrorfl): Support for better error location
10348         reporting for post-parse errors.
10349
10350 2003-12-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10351
10352         * src/SDCCval.c (valPlus, valMinus, valShift): fixed some problems with
10353         implicit casts via union; they don't work on big endian systems
10354         (possible fix for bug #861138)
10355
10356 2003-12-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10357
10358         (committed by Erik Petrich <epetrich AT ivorytower.norman.ok.us> on Frieder's behalf)
10359         * src/mcs51/main.c: fixed the fix for bug #737001
10360
10361 2003-12-15  Borut Razem <borut.razem AT siol.net>
10362
10363         * support/scripts/sdcc.nsi: updated for NSIS 2.0 beta 4
10364
10365 2003-12-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10366
10367         * support/makebin/makebin.c: put output in binary mode
10368
10369 2003-12-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10370
10371         * src/mcs51/main.c: fixed bug #737001 for the mcs51. SDCC clears
10372         xdata and data memory on startup. Set the environment variable
10373         SDCC_NOGENRAMCLEAR to disable this.
10374         * src/mcs51/peephole.def,
10375         * src/ds390/peephole.def: using the atomic test and clear instruction jbc
10376         (allows non-interrupt and interrupt code to safely compete for a resource
10377         without the non-interrupt code having to disable interrupts)
10378
10379 2003-12-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10380
10381         * src/SDCCicode.c (geniCodeAdd),
10382         * src/SDCCast.c (decorateType): fixed bug #857753 (need to be careful
10383         with valFromType if type might be a pointer and host is big endian).
10384         * src/SDCCast.c (decorateType): unary plus compatible with all arithmetic
10385         types, not just integer types.
10386         * src/SDCCsymt.c (addSymChain): clarified error message when symbol is
10387         multiply defined with mismatching "at" address.
10388
10389 2003-12-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10390
10391         * src/ds390/main.c (PORT tininative_port): fixed bug #858416
10392         * src/SDCCglue.c (printChar, printIvalChar, emitStaticSeg),
10393         * src/SDCCast.c (createIvalCharPtr, stringToSymbol): handle strings
10394         with embedded nulls (fixed bug #753752)
10395
10396 2003-12-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10397
10398         * src/mcs51/main.c(_mcs51_genRAMCLEAR): using r0 instead of r1/r2.
10399         Apparently this did not see much testing (endless loop)
10400
10401 2003-12-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10402
10403         * src/z80/ralloc.c: set DISABLE_PACK_HL = 1 as a temporary fix to bug #855165
10404
10405 2003-12-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10406
10407         * src/SDCCdebug.c (outputDebugSymbols, outputDebugStackSymbols, dumpSymInfo):
10408         gracefully handle NULL memmap pointers
10409
10410 2003-12-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10411
10412         * src/SDCCopt.c (killDeadCode): change iCode type to DUMMY_READ_VOLATILE
10413         instead of deleting the iCode when an operand is volatile
10414         * src/z80/gen.c (genDummyRead),
10415         * src/mcs51/gen.c (genDummyRead),
10416         * src/ds390/gen.c (genDummyRead),
10417         * src/hc08/gen.c (genDummyRead): handle operands in IC_LEFT and/or IC_RIGHT,
10418         not just IC_RIGHT
10419         * src/SDCCicode.c (geniCodeCall): fixed bug #851607
10420         * src/SDCC.y: fixed bug #850420
10421
10422 2003-12-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10423
10424         Applied z80 i/o port patch from Peter Townson and fixed some operators
10425         to better handle operands in A register.
10426         * device/include/z180.h
10427         * src/SDCC.y
10428         * src/SDCCglue.c
10429         * src/z80/gen.c
10430         * src/z80/gen.h
10431         * src/z80/main.c
10432         * src/z80/peeph-z80.def
10433         * src/z80/peeph.def
10434         * src/z80/z80.h
10435
10436 2003-12-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10437
10438         * src/SDCCsymt.c (addSymChain, compareTypeExact): fixed bug #838241 again
10439
10440 2003-12-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10441
10442         * device/lib/hc08/_mullong.c: Removed extra #endif
10443
10444 2003-12-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10445
10446         * sim/ucsim/hc08.src/inst.cc,
10447         * sim/ucsim/hc08.src/hc08mac.h: fixed some problems with CC flag bits and
10448         carries from x to h
10449         * src/hc08/gen.c (aopAdrStr): fixed problem with 16 bit immediate
10450         * src/hc08/gen.c (XAccRsh): fixed problem with right shift
10451         * device/include/stdarg.h: fixed varargs for hc08
10452         * device/lib/Makefile.in,
10453         * device/lib/hc08/Makefile,
10454         * device/lib/hc08/_mulint.c,
10455         * device/lib/hc08/_mullong.c: fixed some endian problems
10456
10457 2003-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10458
10459         * sdcc/src/mcs51/gen.c (genMultOneByte): help peephole 105
10460         * sdcc/src/mcs51/peeph.def: added peephole 186.e array access in code space
10461         * device/lib/_gptrget.c,
10462         * device/lib/_gptrput.c: P2 not used any more (related to #850747, #785979)
10463
10464 2003-11-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10465
10466         * src/SDCClrange.c (findNextUseSym, rlivePoint): fixed bug #849795
10467         * src/SDCCast.c (astErrors): fixed bug #846007
10468         * src/SDCCsymt.c (checkFunction): fixed follow-up bug on bug #846007
10469
10470 2003-11-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10471
10472         * src/SDCCast.c (decorateType): disabled a transformation I added in
10473         revision 1.188 (access to fields of a structure at an absolute address);
10474         it breaks with bitfields, extern declarations, and gcse analysis.
10475         * src/SDCCopt.c (isLocalWithoutDef): if ADDRESS_OF applied to a symbol, it
10476         could be assigned through a pointer, so don't complain.
10477         * src/SDCCast.c (astErrors),
10478         * src/SDCCast.h,
10479         * src/SDCCglue.c (emitRegularMap): fixed bug #847813
10480
10481 2003-11-26 Vangelis Rokas <vrokas AT otenet.gr>
10482
10483         * src/pic16/main.c (_pic16_genIVT): fixed interrupt vector table
10484         * src/pic16/main.c (_pic16_genAssemblerPreamble): re-enabled the
10485         output of __config directives, since gpasm now supports them
10486         * src/pic16/main.c (_pic16_finaliseOptions): define MCU
10487         pre-processor macro, i.e. -DMCU=p18f452
10488         * src/pic16/ralloc.c: renamed packRegisters to pic16_packRegisters,
10489         and modified to handle 'cast' icode similarly to '=' icode
10490         * src/pic16/device.h (typedef struct PIC_device): added field
10491         'extMIface' to indicate that chip has external memory interface
10492         * src/pic16/device.c: added chips 18F248, 18F258, 18F448, 18F458,
10493         18F6520, 18F6620, 18F6680, 18F6720, 18F8520, 18F8620, 18F8680,
10494         18F8720
10495
10496 2003-11-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10497
10498         * src/SDCC.y (pointer): fixed bug #846006
10499         * support/Util/SDCCerr.c: made W_PTR_TYPE_INVALID message clearer
10500         * src/SDCCast.c (decorateType): fixed bug #846009
10501         * src/ds390/peeph.def,
10502         * src/ds390/gen.c (genAnd, genOr),
10503         * src/mcs51/peeph.def,
10504         * src/mcs51/gen.c (genAnd, genOr): fixed bug #846777
10505
10506 2003-11-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10507
10508         Fixed several common-sub-expression bugs (#772861, #768380, & #755323)
10509         * src/SDCCdflow.c
10510         * src/SDCCcse.c
10511         * src/SDCCcse.h
10512         * src/SDCCBBlock.h
10513         * src/SDCCBBlock.c
10514
10515 2003-11-23 Klaus Flittner <klaus_flittner AT gmx.de>
10516
10517         fixed bug #845089
10518         * src/SDCCbitv.h,
10519         * src/SDCCbitv.c: added function to free a bitvector
10520         * src/SDCClrange.h,
10521         * src/SDCClrange.c: added function to recompute the liveranges
10522         * src/avr/ralloc.c,
10523         * src/ds390/ralloc.c,
10524         * src/hc08/ralloc.c,
10525         * src/mcs51/ralloc.c,
10526         * src/pic/ralloc.c,
10527         * src/pic16/ralloc.c,
10528         * src/xa51/ralloc.c,
10529         * src/z80/ralloc.c: recompute the liveranges after register packing
10530
10531 2003-11-21 Klaus Flittner <klaus_flittner AT gmx.de>
10532
10533         * src/SDCCloop.c (newInduction): fixed bug #845630
10534
10535 2003-11-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10536
10537         * src/SDCCsymt.c (compareTypesExact): disabled debugging output
10538         inadvertantly left behind from my 2003-11-12 change
10539
10540 2003-11-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10541
10542         Updated headers I neglected to commit yesterday.
10543         * src/SDCClrange.h,
10544         * src/SDCCicode.h
10545
10546 2003-11-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10547
10548         * src/SDCCcse.c (algebraicOpts): fixed bug #773153
10549         * src/SDCClrange.c (rlivePoint): need to mark IC_RESULT used if POINTER_SET op
10550         * src/SDCCopt.c (eBBlockFromiCode),
10551         * src/SDCClrange.c (hashiCodeKeys, sequenceiCode, computeLiveRanges): seperated
10552         the creation of the key hash table from the sequencing so it can be used
10553         earlier (for some GCSE bug fixes still pending)
10554
10555 2003-11-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10556
10557         * src/mcs51/gen.c (genPlus): generate shortcut for adding 0xab00
10558         * support/regression/tests/addsub.c: testing genPlus shortcut
10559
10560 2003-11-15  Borut Razem <borut.razem AT siol.net>
10561
10562         * src/SDCCmain.c: fixed bug #841645: -MM command line option passed to sdcpp
10563
10564 2003-11-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10565
10566         * src/SDCCcse.c (cseBBlock): fixed bug #527779
10567         * src/SDCCcse.c (deleteGetPointers): rewrote so that the set
10568         ordering is immaterial.
10569         * src/SDCCdflow.c (mergeInExprs): fixed bug #587536
10570
10571 2003-11-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10572
10573         * src/SDCCicode.c (geniCodeAddressOf): fixed part of bug #840381
10574         * src/SDCCopt.c (replaceRegEqv, isLocalWithoutDef): fixed other part
10575         (SIGSEV) of bug #840381
10576         * src/SDCCmain.c (linkEdit, assemble): fixed bug #841606 (don't
10577         unlink new file before rename if new and old filenames are the same)
10578
10579 2003-11-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10580
10581         * src/mcs51/main.c: started fixing bug #737001 (SDCC not clearing
10582         uninitialized variables) for the mcs51. Set environment variable
10583         SDCC_GENRAMCLEAR to test.
10584         xdata initialization slightly shorter
10585
10586 2003-11-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10587
10588         * src/SDCCsymt.h,
10589         * src/SDCCsymt.c (addSymTypeChain, compareTypesExact): fixed bugs
10590         #838241 & 780691 (basicly the same bug)
10591         * src/SDCCBBlock.c (iCode2eBBlock): fixed bug #840148
10592         * src/SDCCBBlock.c (iCodeFromeBBlock): fixed bug #840162
10593
10594 2003-11-11 Bernhard Held <bernhard AT bernhardheld.de>
10595
10596         * src/SDCCmain.c (linkEdit): "fix" #834252
10597
10598 2003-11-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10599
10600         * src/SDCCast.c (removePostIncDecOps, removePreIncDecOps),
10601         * src/SDCCast.h,
10602         * src/SDCC.y: fixed bug #819403
10603
10604 2003-11-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10605
10606         * support/regression/fwk/lib/testfwk.c: printn is recursive and thus needs
10607         the reentrant attribute.
10608         * src/hc08/gen.c (genPackBits): added missing stack readjustment
10609         * sim/ucsim/hc08.src/inst.cc (inst_mov): fixed bugs with mov instruction
10610         simulation
10611         * src/SDCCast.c (decorateType): fixed bug with storage class not being
10612         updated during pointer dereference; f.e. ~(((char *)1)*) was being
10613         erroneously reduced to a literal.
10614         * src/hc08/ralloc.c (packRegisters, rematStr),
10615         * src/hc08/gen.c (aopForRemat): allow literals to be rematerialized in
10616         some cases
10617
10618 2003-11-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10619
10620         * src/mcs51/main.c: fixed bug #838385. Thanks to Josef Pavlik for finding and fixing
10621         * doc/sdccman.lyx: changed from 'article' to 'book'
10622         * doc/Makefile: readded test_suite_spec and cdbfileformat
10623
10624 2003-11-08 Bernhard Held <bernhard AT bernhardheld.de>
10625
10626         * device/include/stdlib.h: include malloc.h to comply with ANSI
10627         * support/regression/tests/malloc.c: include stdlib.h instead of malloc.h
10628
10629 2003-11-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10630
10631         * doc/Makefile: sdccman.pdf should build with correct references (more info in commit msg)
10632         * doc/clean.mk: also remove *.out files
10633         * doc/sdccman.lyx: some additions, larger top/bottom margins
10634
10635 2003-11-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10636
10637         * src/SDCC.y: fixed bug #837365
10638         * support/regression/tests/bitopcse.c
10639         * src/hc08/gen.c (genPointerGet): Don't assume pointer operand is
10640         a symbol (might be valop instead)
10641         * device/lib/Makefile.in: added errno.c to HC08SOURCES
10642         * device/lib/clean.mk: added hc08 to the cleaning list
10643
10644 2003-11-04  Borut Razem <borut.razem AT siol.net>
10645
10646         * configure, configure.in, sdcc_vc_in.h, sdcconf_in.h: reverted changes,
10647           made 2003-11-04
10648         * support/Util/NewAlloc.c, as/hc08/lklibr.c, as/mcs51/lklibr.c,
10649           as/z80/aslist.c, as/z80/assym.c: removed inclusion of nonstandard malloc.h;
10650           malloc is declared in standard stdlib.h
10651
10652 2003-11-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10653
10654         * device/lib/hc08/Makefile: need to clean .rel not .o files
10655         * src/hc08/gen.c (genDjnz): can't use djnz with extended addressing mode
10656
10657 2003-11-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10658
10659         * src/port.h,
10660         * src/hc08/main.c,
10661         * src/mcs51/main.c,
10662         * src/ds390/main.c,
10663         * src/z80/main.c,
10664         * src/avr/main.c,
10665         * src/pic/main.c,
10666         * src/pic16/main.c,
10667         * src/xa51/main.c: added hasExtBitOp & oclsExpense functions to ports
10668         * src/SDCCicode.c: changed several IS_FARSPACE tests to isOclsExpensive
10669         tests (which uses the port's oclsExpense function)
10670         * src/SDCC.y,
10671         * src/SDCCast.c,
10672         * src/SDCCicode.c,
10673         * src/hc08/gen.c,
10674         * src/ds390/gen.c,
10675         * src/mcs51/gen.c: added support for the SWAP iCode (RFE #834167)
10676
10677 2003-11-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10678
10679         * src/SDCCcse.c (ifxOptimize),
10680         * src/SDCClabel.c (labelIfx, deleteIfx): When the condition to
10681         an IFX iCode is volatile, convert to DUMMY_READ_VOLATILE instead
10682         deleting the IFX iCode.
10683         * src/hc08/ralloc.c: reduced unneeded slocs
10684         * src/hc08/gen.c: fixed bug in asmopToBoolean
10685
10686 2003-11-04  Borut Razem <borut.razem AT siol.net>
10687
10688         * configure, configure.in, sdcc_vc_in.h, sdcconf_in.h,
10689           support/Util/NewAlloc.c, as/hc08/lklibr.c, as/mcs51/lklibr.c,
10690           as/z80/aslist.c, as/z80/assym.c: decision to include malloc.h
10691           transferred to configure
10692
10693 2003-11-03 Bernhard Held <bernhard AT bernhardheld.de>
10694
10695         Use headers defined in the C[++] standards:
10696         * sim/ucsim/gui.src/serio.src/fileio.cc
10697         * sim/ucsim/gui.src/serio.src/frontend.cc
10698         * sim/ucsim/gui.src/serio.src/main.cc
10699         * sim/ucsim/gui.src/serio.src/posix_signal.cc
10700         * support/Util/NewAlloc.c
10701         * as/hc08/lklibr.c
10702         * as/mcs51/lklibr.c
10703         * as/z80/aslist.c
10704         * as/z80/assym.c
10705
10706 2003-11-03  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10707
10708         * Added MSVC projects for hc08 assembler and linker:
10709         all.dsp, config.dsp, sdcc.dsw, /as/hc08/as_hc08.dsp,
10710         /as/hc08/link_hc08.dsp
10711
10712 2003-11-03 Martin Helmling <Martin.Helmling AT octo-soft.de>
10713
10714         * debugger/mcs51/cmd.c: allows filename starting with digit(+ some debug)
10715
10716 2003-11-02 Bernhard Held <bernhard AT bernhardheld.de>
10717
10718         * src/SDCCmain.c (linkEdit): "fixed" again bug #833605
10719
10720 2003-11-01 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10721
10722         * src/mcs51/main.c: xdata initialization is 13 bytes shorter now
10723
10724 2003-10-31  Borut Razem <borut.razem AT siol.net>
10725
10726         * support/cpp2/cpplib.h,
10727           support/cpp2/cpplib.c,
10728           support/cpp2/cpplex.c,
10729           support/cpp2/cppinit.c: introduced #pragma preproc_asm [ + | - ]
10730           to switch _asm block preprocessing on / off. Default is
10731           #pragma preproc_asm +
10732
10733 2003-10-31  Borut Razem <borut.razem AT siol.net>
10734
10735         * support/cpp2/cpplex.c: Fixed _WIN32 problem with CR-CR-LF sequences
10736           when outputting comment blocks (when executed with -C option) and
10737           _asm (SDCPP specific) blocks
10738
10739 2003-10-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10740
10741         * as/hc08/lkrloc.c (relr): Fixed ihx output, fixed lastAreaIndex warning
10742
10743 2003-10-31 Klaus Flittner <klaus_flittner AT gmx.de>
10744
10745         * src/SDCCcse.c (updateSpillLocation): fixed bug #808027
10746
10747 2003-10-31 Bernhard Held <bernhard AT bernhardheld.de>
10748
10749         * src/SDCCmain.c (linkEdit): "fixed" bug #833605
10750         * src/SDCCast.c (decorateType): fixed bug #832664
10751
10752 2003-10-31  Borut Razem <borut.razem AT siol.net>
10753
10754         * support/cpp2/cpplex.c: fixed for SDCPP:
10755           comments(when executed with -C option) and _asm blocks
10756           were included even if they where in skipped #if block.
10757           Applied solution from GCC cpp 3.3.2
10758
10759 2003-10-31  Borut Razem <borut.razem AT siol.net>
10760
10761         * src/SDCC.lex: sdcc now understands both formats:
10762           '# <line_number> <file_name>' and
10763           '#line <line_number> <file_name>'
10764         * support/cpp2/cppmain.c: sdcpp now generates the standard
10765           '# <line_number> <file_name>' instead of former
10766           '#line <line_number> <file_name>'
10767
10768 2003-10-30  Borut Razem <borut.razem AT siol.net>
10769
10770         * support/cpp2/cpphash.h,
10771         * support/cpp2/cpplib.h
10772         * support/cpp2/cpplex.c,
10773         * support/cpp2/cppmain.c,
10774         * support/cpp2/cppinit.c: fixed bug #828015 - Syntax variation for _asm character constants
10775
10776 2003-10-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10777
10778         Fixed a number of problems revealed by bug #827883.
10779         * src/SDCCloop.c (loopInvariants): Spill location of the
10780         result operand should be recomputed if extracted from
10781         a loop. Also, don't extract assignments of an iTemp
10782         from a literal.
10783         * src/SDCCast.c (isConformingBody): loop reversal should
10784         not occur if the control variable is involved with a
10785         relational operator.
10786
10787 2003-10-28 Bernhard Held <bernhard AT bernhardheld.de>
10788
10789         * .version: bumped to 2.3.6 to reflect the big improvements
10790         made by Erik and Klaus. Thanks!
10791
10792 2003-10-28 Klaus Flittner <klaus_flittner AT gmx.de>
10793
10794         Replaced the livrange code.
10795         * src/SDCClrange.c: added new LR code
10796         * src/SDCCloop.c,
10797         * src/SDCCBBlock.h: removed remainig parts from old LR code
10798         * src/ds390/ralloc.c,
10799         * src/ds390/gen.c: minor fixes to make it work with new code
10800
10801 2003-10-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10802
10803         * as/hc08/asm.h,
10804         * as/hc08/lkrloc.c,
10805         * src/hc08/gen.c,
10806         * src/hc08/ralloc.c: Fix various warnings related to the hc08
10807         * src/SDCCicode.c (geniCodePreInc, geniCodePreDec): Fixed bug #829717
10808         (tweaked fix for bug #818696)
10809
10810 2003-10-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10811
10812         * src/z80/ralloc.c (joinPushes): Fixed bug #828742
10813
10814 2003-10-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10815
10816         * src/SDCCmain.c,
10817         * sdccconf_in.h: Fixed bug #828387 (--disable-hc08-port didn't work)
10818         * src/mcs51/gen.c (gencjneshort),
10819         * src/ds390/gen.c (gencjneshort): Made comparison with AOP_IMMD operand
10820         more efficient (per Scott Bronson's suggestion)
10821
10822 2003-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10823
10824         Extended the semantics of the critical keyword to include
10825         individual statements. See RFE #827755 and #799831
10826         * src/SDCC.y
10827         * src/SDCCicode.c
10828         * src/SDCCopt.c
10829         * src/SDCCast.c
10830         * support/Util/SDCCerr.c
10831         * support/Util/SDCCerr.h
10832         * src/mcs51/gen.c
10833         * src/ds390/gen.c
10834         * src/hc08/gen.c
10835
10836 2003-10-19  Borut Razem <borut.razem AT siol.net>
10837
10838         * src/SDCC.lex: fixed bug #825944 - defined yytext_ptr to make it compile with flex 2.5.31
10839
10840 2003-10-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10841
10842         * src/SDCCicode.c (geniCodePreInc, geniCodePreDec, ast2iCode):
10843         Fixed bug #818696
10844         * src/SDCCast.c (ast_print): Fixed --dumptree so that preincrement
10845         and predecrement operand is displayed
10846
10847 2003-10-13 Bernhard Held <bernhard AT bernhardheld.de>
10848
10849         * src/SDCCval.c (valMinus): fixed bug #826041
10850
10851 2003-10-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10852
10853         Some hc08 related updates that I missed earlier
10854         * sim/ucsim/stypes.h
10855         * support/regression/ports/hc08/spec.mk
10856
10857 2003-10-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10858
10859         New target "hc08" for the Motorola 68hc08 family of micros
10860
10861         * configure
10862         * configure.in
10863         * Makefile
10864         * src/hc08/*
10865         * src/SDCCmain.c
10866         * src/port.h
10867         * sim/ucsim/hc08.src/*
10868         * sim/ucsim/configure.in
10869         * src/ucsim/configure
10870         * sim/ucsim/packages_in.mk
10871         * as/hc08/*
10872         * as/Makefile
10873         * device/include/mc68hc908qy.h
10874         * device/lib/hc08/*
10875         * device/lib/Makefile.in
10876         * support/regression/ports/hc08/*
10877         * support/regression/Makefile
10878
10879 2003-10-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10880
10881         * src/z80/gen.c: fixed bug revealed by ast_constant_folding.c
10882         regression test
10883         * src/ds390/gen.c (genCast): fixed bug #821957
10884
10885 2003-10-13 Bernhard Held <bernhard AT bernhardheld.de>
10886
10887         * device/lib/logf.c: "fixed" overlay bug
10888         * support/regression/ports/host/spec.mk: added m library
10889         * support/regression/ports/mcs51-stack-auto/spec.mk: added float funcs
10890         * support/regression/tests/float_trans: added (for Eric)
10891
10892 2003-10-12 Bernhard Held <bernhard AT bernhardheld.de>
10893
10894         * src/mcs51/gen.c (genCpl): fixed bug
10895         http://sf.net/mailarchive/message.php?msg_id=6263915
10896
10897 2003-10-10 Bernhard Held <bernhard AT bernhardheld.de>
10898
10899         * src/SDCCast.c (decorateType): added extended constant folding
10900         * src/SDCCsymt.c (computeType): cleanup
10901         * src/SDCCval.c (valShift): minor optimization
10902         * support/regression/tests/ast_constant_folding.c: added
10903
10904 2003-10-09  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10905
10906         * src/SDCCmain.c: removed some unintended changes
10907
10908 2003-10-09  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10909
10910         * src/SDCCmain.c (setParseWithComma): fixed bug #816685
10911         * src/z80/gen.c: fixed part of bug #817589
10912         * src/SDCCsymt.c (checkFunction): fixed bug #817895
10913
10914 2003-10-08 Bernhard Held <bernhard AT bernhardheld.de>
10915
10916         Replaced cast (void **) with (void *) to avoid gcc 3 warning:
10917         * src/SDCCcflow.c
10918         * src/SDCCcse.c
10919         * src/SDCCdflow.c
10920         * src/SDCClabel.c
10921         * src/SDCClrange.c
10922         * src/SDCCmem.c
10923         * src/SDCCopt.c
10924         * src/SDCCpeeph.c
10925         * src/SDCCset.c
10926         * src/avr/ralloc.c
10927         * src/ds390/ralloc.c
10928         * src/izt/ralloc.c
10929         * src/mcs51/ralloc.c
10930         * src/pic/ralloc.c
10931         * src/pic16/ralloc.c
10932         * src/xa51/ralloc.c
10933         * src/z80/ralloc.c
10934         * src/z80/gen.c: removed unused label "release:"
10935
10936 2003-10-06  Borut Razem <borut.razem AT siol.net>
10937
10938         * src/SDCC.lex: removed definition of unused variables
10939           save_optimize and save_options
10940
10941 2003-10-06 Bernhard Held <bernhard AT bernhardheld.de>
10942
10943         * clean.mk: removed '=' in "-maxdepth=1"
10944         * src/SDCCloop.c: replace LRKLAUS with SDCC_LRKLAUS
10945         * src/SDCClrange.c: replace LRKLAUS with SDCC_LRKLAUS
10946
10947 2003-10-06  Borut Razem <borut.razem AT siol.net>
10948
10949         * src/SDCC.lex, src/SDCC.lex: use dbuf for "_asm" definitions;
10950           my_unput() replaced by unput()
10951
10952 2003-10-05 Bernhard Held <bernhard AT bernhardheld.de>
10953
10954         * src/SDCCloop.c (assignmentsToSym, loopInduction): cast argument of
10955         setToNull() to (void *) to avoid gcc3.x's warning: "dereferencing
10956         type-punned pointer will break strict-aliasing rules"
10957         Old LR behaviour is again default; Klaus' LR can be choosen by
10958         defining the environment variable LRKLAUS
10959         * src/SDCCBBlock.h
10960         * src/SDCCloop.c
10961         * src/SDCClrange.c
10962         * src/ds390/ralloc.c (spillThis): applied Klaus' patch
10963         * clean.mk: fixed removal of files in bin/CVS/
10964         * device/lib/clean.mk: fixed removal of directories small and large
10965         * support/Util/SDCCerr.c: changed W_INT_OVL to ERROR_LEVEL_PEDANTIC
10966         * src/SDCCicode.c,
10967         * src/SDCCval.c: removed superflous test for pedantic
10968
10969 2003-10-05  Borut Razem <borut.razem AT siol.net>
10970
10971         * src/SDCC.lex, support/Util/SDCCerr.c, sdcc/support/Util/SDCCerr.h:
10972           Fixed bug #816692: introduced new ERROR_LEVEL_PEDANTIC warning
10973           message "unmatched #pragma SAVE and #pragma RESTORE"
10974
10975 2003-10-04  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10976
10977         * doc/sdccman.lyx: various additions and updates (interrupts, inline
10978           assembly, critical functions, atomic, nojtbound)
10979
10980 2003-10-04 Bernhard Held <bernhard AT bernhardheld.de>
10981
10982         Applied liferange patch from Klaus Flittner <klaus_flittner AT gmx.de>
10983         * src/SDCCBBlock.h
10984         * src/SDCCloop.c
10985         * src/SDCCloop.h
10986         * src/SDCClrange.c
10987
10988 2003-10-03  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10989
10990         * src/z80/gen.h,
10991         * src/z80/gen.c (aopOp, aopGet, aopPut, genDummyRead),
10992         * src/mcs51/gen.h
10993         * src/mcs51/gen.c (aopOp, aopGet, aopPut, genDummyRead),
10994         * src/ds390/gen.h
10995         * src/ds390/gen.c (aopOp, aopGet, aopPut, genDummyRead),
10996         * src/SDCCicode.c (ast2iCode, geniCodeDummyRead): Fixed bug #663539
10997         * src/SDCCopt.c (killDeadCode): Fixed bugs #663539 & #816705
10998
10999 2003-10-02  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11000
11001         * src/z80/gen.c (genRet): fixed bug #524753
11002         * src/z80/gen.c (genCast): fixed internal error on cast from
11003         pointer to long
11004         * src/z80/gen.c (_saveRegsForCall, emitCall): adapted Johan's
11005         fix for bug #477835 to the z80
11006         * src/z80/gen.c (genZ80code, _vemit2, _emit2): added support
11007         for tracking iCodes in the peephole optimizer for z80
11008
11009 2003-10-01  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11010
11011         * src/SDCCicode.c (geniCodeJumpTable, geniCodeSwitch): fixed
11012         the other part of bug #814548
11013         * src/SDCCpeeph.c (labelInRange): fixed bug #814558
11014
11015 2003-09-30  Bernhard Held <bernhard AT bernhardheld.de>
11016
11017         * src/SDCCcse.c: fixed part of bug #814548
11018
11019 2003-09-28  Borut Razem <borut.razem AT siol.net>
11020
11021         * src/asm.c: rewrite of printILine() to use temporary file instead
11022           a pipe
11023         * src/xa51/main.c: commented out declaration of int rewinds
11024
11025 2003-09-27  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11026
11027         * src/SDCCicode.c (geniCodeJumpTable): Fixed bug #813206
11028
11029 2003-09-26  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11030
11031         * src/SDCCdflow.c (computeDataFlow): Fixed bug #810746
11032         * src/asm.c (printILine): Fixed bug #811015
11033
11034 2003-09-22  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11035
11036         *link/z80/lklibr.c, as/mcs51/lklibr.c: Improved memory allocation and
11037         freeing.
11038
11039 2003-09-21  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11040
11041         * src/z80/gen.c (setupToPreserveCarry): Fixed bug #796955
11042         * src/z80/gen.c (setupPair, genMovePairPair): Fixed setupPair
11043         to correctly handle general case of AOP_PAIRPTR
11044         * src/z80/gen.c (aopGet, aopPut): Generalized AOP_PAIRPTR handling
11045
11046 2003-09-21  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11047
11048         * src/mcs51/ralloc.c (fillGaps),
11049         * src/ds390/ralloc.c (fillGaps): fixed bug #810093 (yet another
11050         register positioning bug)
11051
11052 2003-09-21  Bernhard Held <bernhard AT bernhardheld.de>
11053
11054         * device/lib/_fsdiv.c: replaced (1<<31) by (1ul<<31)
11055
11056 2003-09-19  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11057
11058         * src/mcs51/gen.c (loadDptrFromOperand, genFarPointerGet,
11059         genCodePointerGet, genGenPointerGet, genFarPointerSet,
11060         genGenPointerSet): handle AOP_DPTR correctly when loading dptr
11061         (ralloc doesn't intentionally do this now, but perhaps later)
11062         * src/mcs51/ralloc.c (serialRegAssign, fillGaps),
11063         * src/ds390/ralloc.c (serialRegAssign, fillGaps): fixed some
11064         register positioning bugs (Fixed bug #762602 and #795325)
11065         * src/SDCCicode.c (geniCodeDerefPtr): Track output class correctly
11066         (Fixed bug #808779)
11067         * src/z80/gen.c: increased _vemit2's buffer[] to handle long
11068         lines that --i-code-in-asm generates
11069
11070 2003-09-18  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11071
11072         *link/z80/lklibr.c, as/mcs51/lklibr.c: Fixed Linux segfaults when
11073         trying to fclose a FILE* that was already closed.
11074
11075 2003-09-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11076
11077         * src/SDCCsymt.c (structElemType): fixed bug #808291 (members
11078         of const struct should be treated as if const themselves)
11079
11080 2003-09-18  Bernhard Held <bernhard AT bernhardheld.de>
11081
11082         * src/SDCCval.c (valPlus, valMinus): fixed bug #808337
11083
11084 2003-07-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11085
11086         * support/librarian/sdcclib.c: Generate correct offsets for libraries with
11087         Unix (/n) and DOS (/r/n) line terminations.
11088
11089 2003-09-17  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11090
11091         * src/SDCCopt.c (cnvFromFloatCast, cnvToFloatCast): fixed
11092         bug #613775
11093
11094 2003-09-16  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11095
11096         * src/mcs51/gen.c (genFunction, genEndFunction),
11097         * src/ds390/gen.c (genFunction, genEndFunction): Moved save
11098         and restore of EA so that stack offsets to parameters are
11099         correct when using both critical and reentrant/stack-auto.
11100         * src/z80/gen.c (aopOp): removed erroneous assertion about sloc
11101         size (can be triggered in error if sloc is shared between
11102         different sized objects)
11103         * device/include/float.h: fixed macros to explicitly use
11104         unsigned long where needed
11105
11106 2003-09-15  Bernhard Held <bernhard AT bernhardheld.de>
11107
11108         Feature req. 799831: added code to allow nesting of critical functions
11109         * src/mcs51/gen.c (genFunction, genEndFunction)
11110         * src/ds390/gen.c (genFunction, genEndFunction)
11111
11112 2003-09-14  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11113
11114         * src/SDCCsymt.c (sclsFromPtr),
11115         * src/SDCCsymt.h,
11116         * src/SDCCast.c (decorateType): fixed bug #462971. Also, better
11117         support for standard C idiom of memory mapped variables; for
11118         example, *((xdata int*)0x1234) = 1 is now internally equivalent
11119         to xdata int at 0x1234 tempvar = 1.
11120         * sim/ucsim/z80.src/inst_xd.cc: fixed bug #805483 with patch
11121         provided by Akiya ISHIDA
11122
11123 2003-09-13  Bernhard Held <bernhard AT bernhardheld.de>
11124
11125         * src/SDCCval.c (cheapestVal): reenabled to reduce int to char
11126         * src/SDCCval.c (constVal): added reduction from int to char
11127         * src/SDCCval.c (valMult, valDiv): fixed sign handling
11128         * src/SDCCval.c (valShift): fixed after change of cheapestVal()
11129         * src/SDCCval.c (valCompare): fixed EQ_OP and NE_OP; they have
11130         to ignore the sign
11131         * support/regression/tests/shifts.c: fixed
11132
11133 2003-09-13  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11134
11135         * src/z80/gen.c (genXor): Fixed bug #805445
11136
11137 2003-09-12  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11138
11139         Fixed bug #621531 (const & volatile confusion in the type chain).
11140         DCL_PTR_CONST, DCL_PTR_VOLATILE, & IS_PTR_CONST now exclusively
11141         refer to the const or volatile state of the pointer itself.
11142
11143         * src/SDCCast.c
11144         * src/SDCCglue.c
11145         * src/SDCCicode.c
11146         * src/SDCCsymt.c
11147         * src/SDCCval.c
11148         * src/SDCC.y
11149         * src/SDCCsymt.h
11150         * src/pic/gen.c
11151         * src/pic/ralloc.c
11152         * src/pic16/gen.c
11153         * src/pic16/ralloc.c
11154         * support/regression/tests/const.c
11155
11156 2003-09-10  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11157
11158         When checking for duplicated modules, use absolute paths
11159         instead of relative paths.  Files changed:
11160
11161         * as/mcs51/lklib.c
11162         * link/z80/lklib.c
11163
11164 2003-09-09  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11165
11166         * src/SDCCicode.c (geniCodeLogic): fixed bug #797572
11167
11168 2003-09-07  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11169
11170         * device/include/string.h: added size_t typedef, changed
11171         prototypes to use size_t, eliminated separate reentrant and
11172         non-reentrant declarations, added _memmove declaration
11173         * device/lib/_memcpy.c: changed to use size_t instead of int,
11174         changed /4 to >>2 to avoid division library call
11175         * device/lib/_memcmp.c,
11176         * device/lib/_memset.c,
11177         * device/lib/_strncat.c,
11178         * device/lib/_strncpy.c,
11179         * device/lib/_strncmp.c: changed to use size_t instead of int
11180         * device/lib/_memmove.c: new file (fixed bug #772294)
11181         * device/lib/Makefile.in: added _memmove.c
11182         * device/lib/z80/asm_strings.s: fixed bug #772290
11183         * support/regression/tests/bitfields.c: attempt to fix host assertion
11184         failure on amd64-unknown-linux2.2
11185
11186 2003-09-06  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11187
11188         * src/z80/gen.c (aopPut, spillPairReg): fixed bug #800998
11189         * src/z80/gen.c (genFunction, genEndFunction): fixed "bug" #774700
11190         * as/z80/asmain.c (main): fixed bug #801766
11191
11192 2003-09-06  Bernhard Held <bernhard AT bernhardheld.de>
11193
11194         * src/SDCCicode.c (ast2iCode): fixed differences in iCode with different
11195         compilers
11196
11197 2003-09-05  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11198
11199         * src/SDCCast.c (isConformingBody): fixed loop reversal bug
11200         reported in bug #800609
11201
11202 2003-09-04  Vangelis Rokas <vrokas AT otenet.gr>
11203
11204         * Top header beautifications in src/pic16 directory:
11205           device.c, device.h, gen.c, gen.h, genarith.c, glue.c, pcode.c,
11206           pcodeflow.c, pcodeflow.h, pcode.h, pcodepeep.c, pcoderegs.c,
11207           pcoderegs.h, ralloc.c, ralloc.h
11208         * main.c: added top header and GPL license notice
11209         * pcode.c: fixed the if-conditional warning
11210
11211 2003-09-04  Bernhard Held <bernhard AT bernhardheld.de>
11212
11213         * device/lib/_mullong.c: replaced int by short for gcc
11214
11215 2003-08-31  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11216
11217         * src/SDCCpeeph.c (notVolatile, notVolatileVariable): handle IFX
11218         and JUMPTABLE iCodes properly now (worked by accident before)
11219         * src/mcs51/gen.c (leftRightUseAcc),
11220         * src/ds390/gen.c (leftRightUseAcc): handle IFX and JUMPTABLE
11221         iCode properly now. Use getSize instead of nRegs since a & b
11222         aren't part of the nRegs tally.
11223
11224 2003-08-31  Vangelis Rokas <vrokas AT otenet.gr>
11225
11226         * src/pic16/main.c: corrected offsets of interrupt vectors in _pic16_genIVT()
11227         * src/pic16/pcode.c: fix to disable inserting BANKSEL directive
11228           before instructions that use the _STATUS register
11229
11230 2003-08-31  Bernhard Held <bernhard AT bernhardheld.de>
11231
11232         * src/mcs51/gen.c (freeAsmop): fixed off by one in stack offset (AOP_STK)
11233         * src/mcs51/gen.c (genNearPointerSet): added missing opcode for
11234         fetching of the pointer
11235         * src/mcs51/gen.c (genNearPointerGet): added reuse of PREG,
11236         copied from genNearPointerSet()
11237         * src/mcs51/gen.c (genNearPointerGet): don't pop r0/r1, if RESULTONSTACK
11238         * src/mcs51/gen.c: changed order of freeAsmop(left/right/result)-calls.
11239         If they pop r0/r1 they must be called in the opposite order than aopOp().
11240         * device/lib/_mullong.c: fixed for "--model-large --int-long-reent"
11241         (resp. --stack-auto), prepared for --xstack
11242
11243 2003-08-28  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11244
11245         * doc/sdccman.lyx: reverted tables to those in cvs 1.64
11246
11247 2003-08-28  Bernhard Held <bernhard AT bernhardheld.de>
11248
11249         * device/lib/_startup.c: quick & dirty fix for ds390/ds400;
11250         these ports have their own __sdcc_external_start()
11251
11252 2003-08-26  Bernhard Held <bernhard AT bernhardheld.de>
11253
11254         pic patch provided by Slade Rich <slade_rich AT yahoo.com>
11255         * src/pic/glue.c (pic14printPublics): fixed bug introduced when symbol
11256         type for bits was changed. It resulted in bit variables becoming
11257         global, which is not permitted in PIC 14 assembly output.
11258
11259 2003-08-23  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11260
11261         * doc/sdccman.lyx: various additions and updates. Rearranged sections
11262
11263 2003-08-22  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11264
11265         Z80 and MCS51 linkers complaint if a public symbol is defined
11266         in more than one library module:
11267
11268         * as/mcs51/lklib.c
11269         * link/z80/lklib.c
11270         * as/mcs51/Makefile.in
11271
11272 2003-08-22  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11273
11274         A few small changes that speed up the peephole optimizer.
11275
11276         * src/SDCCpeeph.c
11277
11278 2003-08-22  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11279
11280         Try to make the peephole optimizer smarter by maintaining
11281         an association between the assembly source code and the
11282         iCodes that originated them. Put this information to use
11283         with a new peephole rule condition "notVolatile" so that
11284         the rules can be aggressive yet still safe.
11285
11286         * src/SDCCpeeph.c
11287         * src/SDCCpeeph.h
11288         * src/mcs51/gen.c
11289         * src/mcs51/peeph.def
11290
11291 2003-08-20  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11292
11293         Fixed bug #741761
11294
11295         * src/mcs51/gen.c (aopForSym, leftRightUseAcc),
11296         * src/ds390/gen.c (aopForSym, leftRightUseAcc): preserve A and B
11297         if the left or right operand symbols have the accuse flag set.
11298
11299 2003-08-20  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11300
11301         Changed the type of the result of the ! (NOT) operator to char;
11302         previously it returned the same type as the source. This allows
11303         us to eliminate all the genFloatNot functions (all of its target
11304         implementations were very buggy) since !float can use the same
11305         code as !long now.
11306
11307         * src/SDCCicode.c (ast2iCode): ! returns char
11308         * src/mcs51/gen.c (genNot, genNotFloat),
11309         * src/ds390/gen.c (genNot, genNotFloat),
11310         * src/z80/gen.c (genNot, genNotFloat),
11311         * src/pic/gen.c (genNot, genNotFloat),
11312         * src/pic16/gen.c (genNot, genNotFloat): eliminated genNotFloat
11313
11314 2003-08-19  Bernhard Held <bernhard AT bernhardheld.de>
11315
11316         pic patch provided by Slade Rich <slade_rich AT yahoo.com>
11317         1. Interrupt would not compile properly. Ensure PCLATH register is saved
11318            during interrupts. Ensure WSAVE is located at a shared bank address.
11319         2. Fixed page selection in some places
11320         3. Fixed BTFSS/C to where necessary use registers directly and not simply
11321            the registers name strings.
11322         4. Fixed "signed / unsigned compare" compiler warnings.
11323         5. The PIC port manages its own allocation of the general purpose
11324            registers, but makes no attempt to reuse them. As a result when
11325            compiling it soon runs out of general purpose registers. Some
11326            additional code was added to the files pcode.c and device.c to walk
11327            through the function call tree and rename the registers so that they
11328            get reused.
11329
11330         * src/pic/device.c
11331         * src/pic/gen.c
11332         * src/pic/glue.c
11333         * src/pic/pcode.c
11334         * src/pic/pcode.h
11335         * src/pic/ralloc.c
11336         * src/pic/ralloc.h
11337         * src/pic/genarith.c: Fixed problems with PIC 14 port in functions
11338         genPlus() & genMinus() when the result is the same as left or right
11339
11340 2003-08-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11341
11342         * src/z80/gen.c (isUnsplitable, fetchPairLong): fixed bug #770454
11343
11344 2003-08-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11345
11346         Made bitfield a distinct type from bit so that bitfields
11347         convert as per ANSI C and bits retain their traditional
11348         boolean style behaviour. Implemented bitfield support in
11349         the z80 port.
11350
11351         * src/SDCCsymt.h,
11352         * src/SDCCsymt.c,
11353         * src/SDCCast.c,
11354         * src/cdbFile.c,
11355         * src/mcs51/gen.c,
11356         * src/ds390/gen.c: bit v bitfield split
11357         * src/z80/gen.c: New support for bitfields
11358         * support/regression/tests/bitfields.c: reenabled z80,
11359         added more tests
11360
11361 2003-08-17  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11362
11363         Rules 246.x, 247.x relate to bitfields, the others speed up
11364         access to xdata mapped I/O devices.
11365
11366         * src/mcs51/peeph.def: added 26 peepholes 246.x - 248.x, 180.x
11367
11368 2003-08-16  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11369
11370         Cleaned up genPackBits and genUnpackBits and added two helper
11371         functions, emitPtrByteGet & emitPtrByteSet. Added optimizations
11372         for literal assignments in genPackBits (thanks to Frieder for
11373         reminding me).
11374
11375         * src/mcs51/gen.c
11376         * src/ds390/gen.c
11377
11378 2003-08-16  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11379
11380         Fixed bug #748310 (pointer to function type mishandled when the
11381         function name is omitted). Also fixed a SIGSEGV when a function
11382         attribute (reentrant, etc) is used on a non-function or on a
11383         function but misplaced before the parameter list.
11384
11385         * src/SDCC.y (abstract_declarator, abstract_declaractor2): fixed
11386         bug #748310
11387         * src/SDCC.y (declarator2_function_attributes): avoided SIGSEGV
11388         * support/Util/SDCCerr.h,
11389         * support/Util/SDCCerr.c: Added func attr misuse error msg
11390
11391 2003-08-13  Bernhard Held <bernhard AT bernhardheld.de>
11392
11393         Fixed bug #787649 by anonymous
11394         * src/SDCCglue.c (emitRegularMap): added emission of sloc for func ptr
11395         * src/ds390/gen.c (aopForSym): fixed func ptr in sloc
11396
11397 2003-08-14  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11398
11399         Fixed numerous bitfield problems.
11400
11401         * src/SDCC.y: More bitfield related error checking
11402         * src/SDCCsymt.h,
11403         * src/SDCCsymt.c (compStructSize): fixed bitfield offset calc
11404         * support/Util/SDCCerr.h,
11405         * support/Util/SDCCerr.c: Added & edited some bitfield err msgs
11406         * src/mcs51/gen.c (genPackBits, genUnpackBits): fixed mask bugs
11407         * src/ds390/gen.c (genPackBits, genUnpackBits): fixed mask bugs
11408         * support/regression/tests/bitfields.c: tests added
11409
11410 2003-08-13  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11411
11412         Made the constant following the "interrupt" keyword optional. If
11413         omitted, the function will not automatically be given an entry
11414         in the interrupt vector table (similar to #pragma NOIV, but
11415         less syntacticly kludgy). The interrupt number is also now
11416         range checked. Also fixed a bug in the high order bit example
11417         in the manual.
11418
11419         * src/SDCC.y
11420         * src/SDCCmem.c
11421         * src/SDCCglue.c
11422         * src/SDCCsymt.h
11423         * support/Util/SDCCerr.c
11424         * support/Util/SDCCerr.h
11425         * doc/sdccman.lyx
11426
11427 2003-08-13  Bernhard Held <bernhard AT bernhardheld.de>
11428
11429         * src/SDCCcse.c (algebraicOpts): fix bug converting op from value to type
11430         * src/SDCCicode.c (operandOperation): rewritten some ops
11431         (*, ==, unary_minus) to fix possible overflows and to accord with ANSI
11432         * src/SDCCsymt.c (computeType): literals are handled the same way as any
11433         other type
11434         * src/SDCCval.c (cheapestVal): removed, it doesn't accord with ANSI (can
11435         be re-activated by defining REDUCE_LITERALS)
11436         * src/SDCCval.c (constVal): fixed; hex and octal constants can be
11437         unsigned, but are signed by default
11438         * src/SDCCval.c (constVal): rearranged
11439         * src/SDCCval.c (valMod): preliminary fix
11440         * src/SDCCval.c (valCastLiteral): use TYPE_* types
11441         * support/regression/literalop.c: added, work in progress
11442
11443 2003-08-12  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11444
11445         Generate warnings for useless declarations like "char data;"
11446         that don't do what new users expect.
11447
11448         * src/SDCC.y
11449         * support/Util/SDCCerr.h
11450         * support/Util/SDCCerr.c
11451
11452 2003-08-09  Bernhard Held <bernhard AT bernhardheld.de>
11453
11454         * src/SDCCval.c (valMult): fix overflow detection of negative int
11455
11456 2003-08-07  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11457
11458         * src/z80/ralloc.c (joinPushes): made compatible with new signedness
11459
11460         Changes to support big endian targets:
11461
11462         * src/ports.h
11463         * src/SDCCglue.c
11464         * src/avr/main.c
11465         * src/ds390/main.c
11466         * src/izt/i186.c
11467         * src/mcs51/main.c
11468         * src/pic/main.c
11469         * src/pic16/main.c
11470         * src/xa51/main.c
11471         * src/z80/main.c
11472
11473 2003-08-06  Bernhard Held <bernhard AT bernhardheld.de>
11474
11475         * src/SDCCval.c (cheapestVal): changed behaviour to the same as constVal()
11476         * device/lib/time.c: fixed warning "integer overflow in expression"
11477
11478 2003-08-05  Bernhard Held <bernhard AT bernhardheld.de>
11479
11480         * src/SDCCval.c (cheapestVal, valueFromLit): use TYPE_* types
11481         * src/SDCCval.c (constVal): changed default to signed; hex and octal
11482         constants are unsigned; added recognition of "u" flag for unsigned
11483         * src/SDCCval.c (valMult): fixed signdness, added warning for overflow
11484         * src/SDCCval.c (valDiv, valMod): fixed signdness
11485         * src/SDCCicode.c (operandOperation): fixed critical typo; fixed
11486         signedness of modulo, left and right shift
11487         * support/Util/SDCCerr.c: added warning "integer overflow in expression"
11488         * support/Util/SDCCerr.h: added warning W_INT_OVL
11489         * src/SDCCast.c (decorateType): fixed gcc3.3 warning
11490         * src/SDCCast.c (ast_print): improved output of constants
11491
11492 2003-08-04  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11493
11494         Fixed some warnings when building with MSVC:
11495
11496         * as/mcs51/asdata.c
11497         * as/z80/asdata.c
11498         * as/mcs51/asm.h
11499         * as/z80/asm.h
11500         * link/z80/aslink.h
11501         * link/z80/lkdata.c
11502         * link/z80/lkeval.c
11503         * link/z80/lkgb.c
11504         * link/z80/lkihx.c
11505         * link/z80/lks19.c
11506         * link/z80/lksym.c
11507         * support/cpp2/cpplib.c
11508         * src/ds390/gen.c
11509         * src/mcs51/gen.c
11510
11511 2003-08-03  Bernhard Held <bernhard AT bernhardheld.de>
11512
11513         * src/SDCCast.c (constExprTree): fix bug #781827 by Carl Worth <cworth AT isi.edu>
11514
11515 2003-08-01  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11516
11517         * support/librarian/clean.mk: Do not remove Makefile.
11518         * support/librarian/Makefile: added.
11519
11520 2003-08-01  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11521
11522         Added librarian to MSVC build:
11523         * all.dsp
11524         * sdcc.dsw
11525         * support/librarian/librarian.dsp
11526
11527         'configure' not needed for librarian, removed:
11528         * support/librarian/configure
11529         * support/librarian/configure.in
11530         * support/librarian/config_in.h
11531         * support/librarian/Makefile.in
11532
11533         Hopefully these ones built the librarian and the rest of sdcc properly:
11534         * Makefile
11535         * Makefile.common.in
11536
11537         Messed up 'configure', so revert to previous version:
11538         * configure
11539         * configure.in
11540
11541 2003-07-31  Bernhard Held <bernhard AT bernhardheld.de>
11542
11543         * src/SDCCicode.c (operandOperation): 3. fix, this time for Alpha; ULONG has 64 bits
11544         there, while the mantissa of a double is "only" 53 bits wide.
11545
11546 2003-07-31  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11547
11548         Adding sdcclib to the build.  MSVC project coming soon.
11549         Files added/changed:
11550
11551         * support/librarian/clean.mk
11552         * support/librarian/configure
11553         * support/librarian/configure.in
11554         * support/librarian/config_in.h
11555         * support/librarian/Makefile.bcc
11556         * support/librarian/Makefile.in
11557         * support/librarian/sdcclib.c
11558         * Makefile.bcc
11559         * Makefile
11560         * Makefile.common.in
11561         * configure
11562         * configure.in
11563
11564 2003-07-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11565
11566         Linker now complaints if linked modules have conflicting options, for
11567         example, one compiled using --model-large and another one compiled with
11568         --model-small.  The following files were modified:
11569
11570         * as/mcs51/asdata.c
11571         * as/mcs51/aslink.h
11572         * as/mcs51/asm.h
11573         * as/mcs51/asmain.c
11574         * as/mcs51/asout.c
11575         * as/mcs51/i51pst.c
11576         * as/mcs51/lkdata.c
11577         * as/mcs51/lklibr.c
11578         * as/mcs51/lkmain.c
11579         * as/z80/asdata.c
11580         * as/z80/asm.h
11581         * as/z80/asmain.c
11582         * as/z80/asout.c
11583         * as/z80/z80pst.c
11584         * link/z80/aslink.h
11585         * link/z80/lkdata.c
11586         * link/z80/lklibr.c
11587         * link/z80/lkmain.c
11588         * src/SDCCglue.c
11589
11590 2003-07-28  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11591
11592         *link/z80/aslink.h, link/z80/lklibr.c, as/mcs51/aslink.h,
11593         as/mcs51/lklibr.c: Generate a warning when a library is not found.
11594
11595 2003-07-28  Bernhard Held <bernhard AT bernhardheld.de>
11596
11597         * src/z80/mappings.i: fix _mul[us][int,long] entries
11598
11599 2003-07-26  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11600
11601         *src/SDCCmain.c: do not search for crt0.o when using --nostdlib
11602
11603 2003-07-24  Bernhard Held <bernhard AT bernhardheld.de>
11604
11605         * src/SDCCicode.c (operandOperation): really fixed problem with bitops
11606         * support/regression/tests/bitopcse.c: added
11607         fixed warning:
11608         * src/avr/gen.c:
11609         * src/pic/gen.c:
11610         * src/pic16/gen.c:
11611         * src/z80/gen.c:
11612         * src/xa51/gen.c:
11613
11614 2003-07-24  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11615
11616         added support for new library format to z80, gbz80 linkers:
11617         *link/z80/aslink.h
11618         *link/z80/lklex.c
11619         *link/z80/lklib.c
11620         *link/z80/lklist.c
11621
11622 2003-07-24  Bernhard Held <bernhard AT bernhardheld.de>
11623
11624         * src/SDCCicode.c (operandOperation): fixed problem with bitops and 0xffffffff;
11625         after {double d = 0xffffffff; long l = d;} l will be 0x80000000 (LONG_MIN)
11626
11627 2003-07-23  Bernhard Held <bernhard AT bernhardheld.de>
11628
11629         added DUMMY_READ_VOLATILE:
11630         * src/SDCC.y:
11631         * src/avr/gen.c:
11632         * src/xa51/gen.c:
11633         * src/z80/gen.c:
11634         * src/pic/gen.c:
11635         * src/pic16/gen.c:
11636         * src/mcs51/gen.c:
11637         * src/ds390/gen.c:
11638         * src/SDCCcse.c (algebraicOpts): many improvements
11639         * src/SDCCcse.h: removed algebraicOpts()
11640         * src/SDCCicode.c (picDummyRead): added
11641
11642 2003-07-23  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11643
11644         * as/mcs51/lkmem.c: Changed message "Insufficient DRAM memory" to
11645         "Insufficient space in data memory".
11646
11647 2003-07-20  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11648
11649         * src/mcs51/gen.c: fixed bug #771358
11650         * src/z80/gen.c: fixed bug #759087
11651
11652 2003-07-20  Bernhard Held <bernhard AT bernhardheld.de>
11653
11654         * src/pic16/glue.c: minor cleanup by Vangelis
11655
11656 2003-07-19  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11657
11658         * device/include/regc515c.h: fixed #758477
11659         * device/lib/_gptrget.c: saving some cycles in generic pointer get
11660         * device/lib/_gptrput.c: saved a few bytes
11661         * my tab spacing is 8, yours too?)
11662         * device/lib/_ser.c: process RX bytes earlier than TX bytes
11663         * device/lib/serial.c: process RX bytes earlier than TX bytes
11664         * src/mcs51/gen.c(genGenPointerGet/Set): removed writing of type after postincrement
11665
11666 2003-07-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11667
11668         * src/z80/gen.c: fixed some right shift bugs (#772726 among them)
11669
11670 2003-07-17  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11671
11672     * link/z80/lklibr.c: fixed bug when there is a '.' in a library path.
11673
11674 2003-07-17  Bernhard Held <bernhard AT bernhardheld.de>
11675
11676         * device/lib/Makefile.in: bad fix, reverted to 1.43
11677
11678 2003-07-16  Bernhard Held <bernhard AT bernhardheld.de>
11679
11680         * device/lib/Makefile.in: added missing z80 object files
11681
11682 2003-07-14  Bernhard Held <bernhard AT bernhardheld.de>
11683
11684         * src/SDCCcse.c (algebraicOpts): CSE fun with &|^ and 0x00/0xff literals
11685         pic16 progress by Vangelis:
11686         * src/SDCCglobl.h:
11687         * src/SDCCmain.c:
11688         * src/pic/Makefile:
11689         * src/pic:
11690         * pic/Makefile:
11691         * pic16/device.c:
11692         * pic16/device.h:
11693         * pic16/gen.c:
11694         * pic16/gen.h:
11695         * pic16/genarith.c:
11696         * pic16/glue.c:
11697         * pic16/main.c:
11698         * pic16/pcode.c:
11699         * pic16/pcode.h:
11700         * pic16/pcodepeep.c:
11701         * pic16/peeph.def:
11702
11703 2003-07-13  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11704
11705     * src/SDCCmain.c, src/SDCCglobl.h: added option --no-std-crt0
11706
11707 2003-07-12  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11708
11709     * sdcc.dsw, all.dsp, link/z80/linkgbz80.dsp, as/z80/as-gbz80.dsp:
11710     added gbz80 build to MSVC project.
11711     * src/SDCCmain.c, src/SDCCglue.c, src/z80/main.c, src/z80/z80.dsp,
11712     link/z80/aslink.h, linkz80.dsp: cleaned up z80 and gbz80 asm files
11713     from 8051 stuff and setup so it links using a .lnk file.
11714
11715 2003-07-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11716
11717     * support/librarian/sdcclib.c: sdcc librarian.
11718     * as/mcs51/aslink.h, as/mcs51/lklib.c: Support for libraries created
11719     with sdcclib.
11720
11721 2003-07-03  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11722
11723     * as/mcs51/lkmain.c: properly handle extensions in function afile.
11724
11725 2003-07-02  Borut Razem <borut.razem AT siol.net>
11726
11727         * src/port.h, src/SDCCmain.c, src/pic/glue.h, src/pic/main.c,
11728         src/pic16/glue.h, sdcc/src/pic16/main.c, src/izt/i186.c,
11729         src/izt/tlcs900h.c, src/avr/main.c, src/ds390/main.c, src/mcs51/main.c,
11730         src/xa51/main.c, src/z80/main.c:
11731         virtualization of glue() function: each port has it's own glue function,
11732         which is accessed by do_glue function pointer in PORT.general structure
11733
11734 2003-07-01 Kevin Vigor <kevin AT vigor.nu>
11735
11736         * DS800C400 fun, improved ROM interface and tinibios.
11737
11738 2003-06-27 Kevin Vigor <kevin AT vigor.nu>
11739
11740         * More support for DS80C400. Now includes beginning of interface to ROM.
11741
11742 2003-06-25  Bernhard Held <bernhard AT bernhardheld.de>
11743
11744         * src/mcs51/gen.c (gencjneshort): fixed bug #760345
11745
11746 2003-06-20  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11747
11748         * as/mcs51/lkaomf51.c: Make sure the size of the last procedure is correct.
11749
11750 2003-06-19  Borut Razem <borut.razem AT siol.net>
11751
11752         * src/z80/main.c: fixed Z80 port again: missing -k library paths in linker command line
11753
11754 2003-06-19  Borut Razem <borut.razem AT siol.net>
11755
11756         * src/SDCCutil.h, src/SDCCutil.c, src/SDCCglobl.h, src/SDCCmain.c, src/z80/main.c:
11757         fixed Z80 port - crt0.o: cannot open.
11758
11759 2003-06-19  Bernhard Held <bernhard AT bernhardheld.de>
11760
11761         * support/Util/MySystem.c (merge_command): revert bad fix
11762
11763 2003-06-18  Borut Razem <borut.razem AT siol.net>
11764
11765         * src/SDCC.lex, src/SDCCmain.c: fixed some warnings, introduced with changes made 15.06.1003
11766
11767 2003-06-18  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11768
11769         * src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx:
11770         option --use-stdout sends errors to stdout instead of stderr.
11771
11772 2003-06-18  Bernhard Held <bernhard AT bernhardheld.de>
11773
11774         * support/Util/MySystem.c (merge_command): quick fix for Linux segfault with \"cmd\" arg
11775
11776 2003-06-15  Borut Razem <borut.razem AT siol.net>
11777
11778         * support/cpp2/sdcc.h: HAVE_DOS_BASED_FILE_SYSTEM defined for _WIN32
11779         * src/SDCC.lex: cloneXxx and copyAndFreeXxx functions for options and optimize stack handling
11780         * src/SDCCglobl.h, src/SDCCmain.c, src/ds390/main.c, src/mcs51/main.c, src/z80/main.c:
11781         fixed width array of pointers replaced with sets;
11782         multiple include and lib paths ared transferred to preprocessor and linker
11783         * src/SDCCset.c, src/SDCCset.h: added function setFromSetNonRev() and mergeSets()
11784         * src/SDCCsymt.c: reimplemented function inCalleeSaveList() by using sets instead
11785         fixed width array of pointers
11786         * src/SDCCutil.c, src/SDCCutil.h: added functions fputStrSet(), appendStrSet(), joinStrSet();
11787         removed functions addToList(), join(), joinn(), pathCharsEquivalent(), pathCharTransform(),
11788         fixupPath(), getPathDifference()
11789         * src/ds390/gen.c, src/mcs51/gen.c: reimplemented function  inExcludeList() by using sets instead
11790         fixed width array of pointers
11791
11792 2003-06-11  Bernhard Held <bernhard AT bernhardheld.de>
11793
11794         * src/pic16/ralloc.c: fix warnings
11795         * src/pic16/pcode.c: fix warning
11796
11797 2003-06-10  Scott Dattalo  <scott AT dattalo.com>
11798
11799          Scott D. for Vangelis Rokas (vrokas AT otenet.gr). I (scott) don't
11800         know all the details, but essentially this set of changes enable
11801         the pic16 port to generate movff instructions and generate assembler
11802         directives,
11803         * src/SDCCmain.c:
11804         * src/pic16/gen.c:
11805         * src/pic16/glue.c:
11806         * src/pic16/pcode.c:
11807         * src/pic16/device.c:
11808         * src/pic16/main.c:
11809         * src/pic16/pcode.h:
11810         * src/pic16/pcoderegs.c:
11811         * src/pic16/ralloc.c:
11812         * src/pic16/ralloc.h:
11813
11814 2003-06-08  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11815
11816         * support/Util/SDCCerr.c, src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx:
11817         added option --vc, so sdcc errors and warnings are compatible with
11818         Microsoft Visual Studio.
11819
11820 2003-06-07  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11821
11822         * device/lib/_atof.c, device/lib/Makefile.in, device/include/stdlib.h,
11823           device/lib/libfloat.lib: added atof function.
11824
11825 2003-06-04  Bernhard Held <bernhard AT bernhardheld.de>
11826
11827         * doc/sdccman.lyx: updated to Lyx 1.3
11828         * doc/cdbfileformat.lyx: updated to Lyx 1.3
11829         * doc/test_suite_spec.lyx: updated to Lyx 1.3
11830         * doc/Makefile: added fix for the \tabularnewline problem, thanks to Jesus
11831
11832 2003-06-03  Bernhard Held <bernhard AT bernhardheld.de>
11833
11834         * src/SDCCpeeph.c: separate peepRules2pCode() for pic16 by "Vangelis Rokas" <vrokas AT otenet.gr>
11835
11836 2003-06-02  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11837
11838         * doc/sdccman.lyx: cvs revision keywords, passing pdf information in latex preamble,
11839           additions to the "related tools/documentation" section
11840
11841 2003-06-02  Bernhard Held <bernhard AT bernhardheld.de>
11842
11843         * src/SDCCglue.c (tempfileandname): added check for missing TMP/TEMP/TMPDIR variable
11844
11845 2003-05-29  Bernhard Held <bernhard AT bernhardheld.de>
11846
11847         * src/pic/device.c: added 16F819, patch by "David I. Lehn" <dlehn AT vt.edu>
11848         * src/SDCCcse.c (algebraicOpts): fixed "c * 1"
11849
11850 2003-05-28  Bernhard Held <bernhard AT bernhardheld.de>
11851
11852         * doc/sdccman.lyx: fix double dash and other minor things
11853         * doc/Makefile: fix double dash
11854
11855 2003-05-28  Karl Bongers(patches from Martin Helmling)
11856         * debugger/mcs51/sdcdb.c,cmd.c,break.c and .h files. Martin adds
11857           condition and ignore commands.
11858
11859 2003-05-28  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11860
11861         * doc/sdccman.lyx: Changes all over, index improved, smaller margins. The manual
11862           is in parts still quite out of date, I did changes as far as I felt makes sense
11863           for a non-native english speaker.
11864           Please feel free to add to the manual or to correct my changes.
11865         * doc/Makefile: undid touching the date of intermediate tex files.
11866
11867 2003-05-26  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11868
11869         * doc/sdccman.lyx: Manual has an index now
11870
11871 2003-05-25  Bernhard Held <bernhard AT bernhardheld.de>
11872
11873         Finalize muluint/mulsint and mululong/mulslong merging:
11874         * device/lib/_mulint.c
11875         * device/lib/_mullong.c
11876         * device/lib/gbz80/mul.s
11877         * device/lib/gbz80/stubs.s
11878         * device/lib/z80/mul.s
11879         * device/lib/z80/stubs.s
11880         * src/SDCCsymt.c (initCSupport)
11881
11882 2003-05-25  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11883
11884         * as/mcs51/lkaomf51.c: Address space 'z' was missing.
11885         * src/avr/avr.dsp, src/ds390/ds390.dsp, src/mcs51/mcs51.dsp,
11886           src/pic/pic.dsp, src/pic16/pic16.dsp, src/xa51/xa51.dsp,
11887           src/x80/z80.dsp: peep.rul is bigger now, so /Zm1000 is used
11888           instead of /Zm500.
11889
11890 2003-05-25  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11891
11892         * src/mcs51/peeph.def: added rules 244.x, 245.x. Although they pass
11893           the regression tests I'm not brave enough to enable 245.b, 245.c
11894         * doc/sdccman.lyx: added latex preamble for hyperref package.
11895           Using pdflatex this will give you a hyperlinked pdf file with
11896           bookmarks. (prepend '%' before /usepackage if this breaks something)
11897
11898 2003-05-24  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11899
11900          * doc/sdccman.lyx: updated information about .adb files (fixed bug 742649)
11901
11902 2003-05-22  Bernhard Held <bernhard AT bernhardheld.de>
11903
11904         * src/pic16/pcode.c (pic16_get_op_from_instruction): fixed a gcc 3.x warning
11905
11906 2003-05-21    <johan AT balder>
11907
11908         * src/SDCCglue.c (printIval): fixed bug #739934
11909
11910 2003-05-19  Bernhard Held <bernhard AT bernhardheld.de>
11911
11912         Applied patch from bug 737905 (renamed yylineo to mylineno):
11913         * src/altlex.c
11914         * src/SDCCast.c
11915         * src/SDCglobl.h
11916         * src/SDCC.lex
11917         * src/SDCCsymt.c
11918         * src/SDCCval.c
11919         * src/pic16/pcode.c: Cleaned warnings
11920         * src/pic16/pcodeflow.c: Cleaned warnings
11921         * src/pic16/pcoderegs.c: Cleaned warnings
11922
11923 2003-05-19  Scott Dattalo  <scott AT dattalo.com>
11924
11925         * src/pic16/pcode.c: Cleaned warnings
11926         * src/pic16/pcodepeep.c: Cleaned warnings
11927         * src/pic16/ralloc.c: Cleaned warnings
11928
11929 2003-05-19  Bernhard Held <bernhard AT bernhardheld.de>
11930
11931         * doc/sdccman.lyx: fixed bug 739745
11932         * src/pic16/pcode.c (pic16_get_op): fixed warning on alpha
11933
11934 2003-05-18  Bernhard Held <bernhard AT bernhardheld.de>
11935
11936         * src/port.h: removed DEFAULT_PORT, it's not yet pic16 ;-)
11937         it can be defined with CFLAGS when running configure
11938         * src/SDCCmain.c: fixed compiling + linking with object files
11939
11940 2003-05-18  Vangelis Rokas (vrokas AT otenet.gr)
11941
11942         * configure.in: configure for pic16 port,
11943             added --disable-pic16-port
11944         * sdccconf_in.h: added macro OPT_DISABLE_PIC16
11945         * src/SDCCmain.c: linkOptions is changed to set *,
11946             added if/endif conditional macros to remove options help
11947             messages from optionsTable when a port is not configured, added
11948             support for the PIc16 port in the ports table, when executing
11949             the compiler with no port specified on command line, a default
11950             port is selected with the new macro DEFAULT_PORT which is
11951             defined in port.h, in setDefaultOptions() linkOptions is removed
11952             from initialization assignment, since now it is a set,
11953             parseCmdLine uses setParseWithComma for linkOptions, in
11954             linkEdit() linkOptions are accessed with new function indexSet()
11955             which returns the i'th item of a set variable. See SDCCset.c, in
11956             linkEdit() when calling buildCmdLine(), added linkOptions as
11957             last argument. Now users can pass arguments to gplink via the
11958             -Wl option, main() uses pic16glue() to glue up pic16 programs
11959         * src/SDCCpeeph.c: various changes to support pic16
11960         * src/SDCCset.c: added function  void *indexSet(set *, int)  to
11961             return the i'th item of the set
11962         * src/SDCCset.h: added function prototype for indexSet()
11963         * src/SDCCsymt.c: in checkSClass(), added support for PIC16
11964         * src/clean.mk: added pic16 in CLEANALLPORTS variable
11965         * src/port.h: added TARGET_ID_PIC16,TARGET_IS_PIC16 macro,
11966             added macro DEFAULT_PORT
11967         * src/pic/main.c: corrected arguments of gplnk in _linkCmd
11968         * src/pic16/gen.c: bug fix in genCpl(), now the correct code is
11969             generated
11970         * src/pic16/glue.c: commented out some error producing lines
11971         * src/pic16/main.c: __config directives are commented out to stop
11972             gpasm complaining and test the linkage with gplink, _linkCmd and
11973             _asmCmd changed to be more gplink and gpasm friendly
11974         * src/pic16/peeph.def: peep rule 3 is commented out, since it
11975             produced an error when parsed, peep rule 12 is added to utilize
11976             movff, but it is commented out since the pCode does not support
11977             yet a command with 2 address arguments
11978
11979 2003-05-18    <johan AT balder>
11980
11981         * src/ds390/gen.c (genArrayInit): removed obsolete and buggy ARRAYINIT
11982         * src/ds390/main.c (genArrayInit): removed obsolete and buggy ARRAYINIT
11983 2003-05-17  Karl Bongers(apply patches from Martin Helmling)
11984
11985         * debugger/mcs51/sdcdb.c,cmd.c,break.c and .h files.
11986   Added feature to script commands from file.
11987
11988 2003-05-14  Bernhard Held <bernhard AT bernhardheld.de>
11989
11990         * device/lib/_strtok.c: fixed bug #734355 by Lenny Story and Tim Woodall
11991         * src/SDCCutil.c: include ctype.h for win32
11992
11993 2003-05-13  Bernhard Held <bernhard AT bernhardheld.de>
11994
11995         * src/pic16/*: removed CR from many files, reported by Vangelis Rokas
11996
11997 2003-05-12  Karl Bongers(apply development patches from Martin Helmling)
11998
11999         * debugger/mcs51/sdcdb.c,simi.c,cmd.c,break.c and .h files.
12000   Fixed so you can set breakpoints prior to run, run does not stop
12001   on entry now.  Add tbreak.  Other enhancements and fixes for use
12002   with ddd.
12003
12004 2003-05-12  Borut Razem <borut.razem AT siol.net>
12005
12006         * src/SDCCmain.c: fixed the problem with searching the DATADIR as the last resort on *nix
12007
12008 2003-05-11  Borut Razem <borut.razem AT siol.net>
12009
12010         * src/SDCCutil.c: WIN32 version of getBinPath() calls GetModuleFileName() to determine
12011         the path of bin directory, so that PATH is the only env. variable, which has to be set
12012         in case of standard installation.
12013         * src/ds390/ds390.dsp: increased value of /Zm option to 1000
12014         * src/pic/main.c: add quotes to file name parameters for gplink and gpasm
12015         * src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx: added --print-search-dirs command line option
12016
12017 2003-05-04  Bernhard Held <bernhard AT bernhardheld.de>
12018
12019         * src/SDCCmain.c (linkEdit): fixed buffer overflow for gbz80
12020         * support/regression/Makefile: inter-port-clean is no longer nesessary, the
12021         temp files are in the port dir; clean the gen/test directory when
12022         generating new test.c
12023         * support/regression/ports/host/spec.mk: defined OBJEXT for target clean
12024         * support/regression/tests/vaargs.c: fixed gcc 3.3 warning
12025         * support/regression/tests/zeropad.c: added
12026
12027 2003-05-09    <johan AT balder>
12028
12029         * src/SDCCglue.c: fixed bug #597940
12030
12031 2003-05-05  Karl Bongers(apply patches from Martin Helmling)
12032
12033         * debugger/mcs51/sdcdb.c,simi.c,cmd.c,symtab.c and .h files.
12034   cache sfr, optimize next,step, fix off by one sourceline,
12035   support ddd list function.
12036         * sim/ucsim/cmd.src/newcmd.cc - small fix for sdcdb use.
12037
12038 2003-05-04  Bernhard Held <bernhard AT bernhardheld.de>
12039
12040         * support/regression/HTMLgen.py: added compare_s2f()
12041         * support/regression/Makefile: redo 1.27
12042         * support/regression/generate-cases.py: redo 1.5
12043
12044 2003-04-30  Bernhard Held <bernhard AT bernhardheld.de>
12045
12046         * support/regression/tests/float.c: workaround 33 bit hex constant
12047         * support/regression/tests/simplefloat.c: fix division for host
12048
12049 2003-04-29  Scott Dattalo  <scott AT dattalo.com>
12050
12051         * src/pic/pcoderegs.c Applied patch from Jim Hawkridge <jim AT jimhawkridge.uk.eu.org>
12052         that tame's the PIC's over-aggressive optimizer.
12053
12054 2003-04-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12055
12056          * src.dsw, link/z80/aslink.h, link/z80/linkz80.dsp: z80 linker
12057          support for MSVC.
12058
12059 2003-04-29  Kevin Vigor <kevin AT vigor.nu>
12060
12061         Initial support for DS80C400. "Hello world" runs on TINIm400
12062         (with polled I/O).
12063
12064 2003-04-28  Karl Bongers(apply patches for Martin Helmling)
12065
12066          * debugger/mcs51/sdcdb.c,simi.c,cmd.c,symtab.c and .h files.
12067          * Some notes on ddd usage added in debugger/README
12068          Martin Helmling adding more features and fixes for ddd GUI debugger.
12069          Code added for nexti, stepi, up, down, and other adjustments.
12070
12071 2003-04-28  Scott Dattalo  <scott AT DATTALO.COM>
12072
12073         * src/pic/pCodepeep.c non-wildcard asmops are now handled
12074         * src/pic/peeph.def Added two rules to optimize carry manipulation
12075         * src/pic/* removed debug printfs
12076
12077 2003-04-28  Bernhard Held <bernhard AT bernhardheld.de>
12078
12079         * debugger/mcs51/cmd.c: added header newalloc.h
12080
12081 2003-04-26  Bernhard Held <bernhard AT bernhardheld.de>
12082
12083         * as/Makefile: new EXEEXT
12084         * as/z80/Makefile: remove trailing slash of BUILDIR
12085         * as/z80/clean.mk: new EXEEXT
12086         * Makefile.common.in: add to CFLAGS (and others), don't replace it
12087         * support/cpp2/Makefile.in: new EXEEXT
12088         * src/pic/glue.c (pic14emitRegularMap): fixed warning
12089
12090 2003-04-24  Bernhard Held <bernhard AT bernhardheld.de>
12091
12092         Cygwin's gcc always appends .exe: 'gcc -o a a.c' creates a.exe;
12093         EXEEXT was introduced to fix all related problems with targets
12094         "clean", "install" and "uninstall"; a couple of further flaws
12095         especially with "clean" have been fixed too
12096         * as/mcs51/Makefile.in
12097         * as/mcs51/clean.mk
12098         * as/z80/Makefile
12099         * Makefile
12100         * clean.mk
12101         * debugger/mcs51/Makefile.in
12102         * debugger/mcs51/clean.mk
12103         * link/z80/Makefile
12104         * link/z80/Makefile.in
12105         * link/z80/clean.mk
12106         * link/Makefile
12107         * packihx/Makefile.in
12108         * packihx/clean.mk
12109         * sim/ucsim/Makefile
12110         * sim/ucsim/clean.mk
12111         * sim/ucsim/avr.src/Makefile.in
12112         * sim/ucsim/avr.src/clean.mk
12113         * sim/ucsim/s51.src/Makefile.in
12114         * sim/ucsim/s51.src/clean.mk
12115         * sim/ucsim/xa.src/Makefile.in
12116         * sim/ucsim/xa.src/clean.mk
12117         * sim/ucsim/z80.src/Makefile.in
12118         * sim/ucsim/z80.src/clean.mk
12119         * sim/ucsim/main_in.mk
12120         * sim/ucsim/packages_in.mk
12121         * sim/ucsim/gui.src/Makefile.in
12122         * sim/ucsim/gui.src/serio.src/Makefile.in
12123         * sim/ucsim/gui.src/serio.src/clean.mk
12124         * src/Makefile.in
12125         * src/clean.mk
12126         * support/cpp2/Makefile.in
12127         * support/cpp2/clean.mk
12128         * support/makebin/Makefile
12129         * support/makebin/clean.mk
12130         * support/scripts/sdcc_mingw32: --program-suffix no longer needed
12131         * doc/sdccman.lyx: --program-suffix no longer needed
12132
12133 2003-04-23  Karl Bongers(apply patches for Martin Helmling)
12134
12135          * debugger/mcs51/sdcdb.c,simi.c,cmd.c,..
12136          Martin Helmling added support for ddd GUI debugger.
12137          Code added to display assembly, set variables, and other commands
12138          to interface to ddd.
12139
12140 2003-04-23  Bernhard Held <bernhard AT bernhardheld.de>
12141
12142         * as/Makefile: fix target clean
12143         * as/clean.mk: fix target clean
12144         * as/z80/clean.mk: fix target clean
12145
12146 2003-04-22  Bernhard Held <bernhard AT bernhardheld.de>
12147
12148         * Makefile.common.in: added  AT EXEEXT AT
12149         * configure.in: removed all mingw32 stuff
12150         * configure: rebuilt from configure.in
12151         * doc/sdccman.lyx: updated section "installation"
12152         * support/scripts/sdcc_mingw32: adapted to configure
12153         * support/scripts/sdcc_cygwin_mingw32: added
12154
12155 2003-04-22  Scott Dattalo  <scott AT dattalo.com>
12156
12157         * src/pic Added object file support for the PIC port
12158         * src/pic Applied patch from Craig Franklin (this started the object file support)
12159         * src/regression Updated the PIC regression tests for object files
12160
12161 2003-04-20  Borut Razem <borut.razem AT siol.net>
12162
12163         * sdcc/as/mcs51/lklex.c: make getfid() more robust and fixed gcc warning:
12164           lklex.c: In function `getfid':
12165           lklex.c:203: warning: array subscript has type `char'
12166         * src/SDCCglobl.h: small change in stack handling macros, to avoid crash when compiled
12167           with MSVC with global optimization enabled (probably an cl compiler bug ;-)
12168         * support/Util/SDCCerr.c, support/Util/SDCCerr.h: added function fatal(), called from
12169           stack handling macros
12170
12171 2003-04-19  Borut Razem <borut.razem AT siol.net>
12172
12173         * "handling space characters in file path" task:
12174         * src/SDCCmacro.c: fixed bug in handlig quote at the end of line
12175         * support/Util/BuildCmd.c: define par as NULL if parameter value is invalid
12176         * support/Util/MySystem.h: make it self-sufficient
12177         * src/avr/main.c, src/ds390/main.c, src/mcs51/main.c, src/pic/main.c, src/xa51/main.c,
12178           src/z80/main.c, sdcc/as/mcs51/lklex.c:
12179           handling space characters in file path
12180         * src/SDCCmain.c: introduced setDataPaths() function, {datadir} macro
12181           (it will be used by assemblers, which have their own includes, e.g. gpasm)
12182         * support/Util/MySystem.c: handling space characters in executable's path
12183
12184 2003-04-19  Bernhard Held <bernhard AT bernhardheld.de>
12185
12186         * as/z80/Makefile: fix permanent rebuild of z80
12187         * sim/ucsim/gui.src/Makefile.in: target "install" builds the same packages as target "all"
12188         * support/regression/tests/bitfields.c: added Johan's bitfields.c
12189
12190 2003-04-18      Kevin Vigor <kevin AT vigor.nu>
12191
12192         * src/SDCCopt.c: add special case optimization to replace modulo by
12193           a power of two with a bitwise AND.
12194
12195 2003-04-18    <johan AT balder>
12196
12197         * src/mcs51/gen.c (getFreePtr): fixed bug #635354
12198
12199 2003-04-17    <johan AT balder>
12200
12201         * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #716790 and removes lot's of redundant register usage around function calls
12202         * src/mcs51/ralloc.c (packRegisters): fixed bug #720667
12203
12204 2003-04-13  Borut Razem <borut.razem AT siol.net>
12205
12206         * doc/sdccman.lyx: updated info about #pragma SAVE/RESTORE nesting
12207         * configure.in, configure: fixed problems on cygwin/WinCVS environmet with ports.* line endings;
12208           fixed mingw problem in adl_NORMALIZE_PATH
12209
12210 2003-04-12  Borut Razem <borut.razem AT siol.net>
12211
12212         * fixed "#pragma SAVE/RESTORE can not be nested":
12213         * src/SDCC.lex: reworked pragma handling functions
12214         * sdcc/src/SDCCglobl.h: reworked stack handling macros
12215         * support/Util/SDCCerr.c, support/Util/SDCCerr.h: added E_STACK_VIOLATION error
12216
12217 2003-04-12  Bernhard Held <bernhard AT bernhardheld.de>
12218
12219         * src/SDCCutil.c (pathEquivalent): defined but not used
12220         * debugger/mcs51/sdcdb.c: replace SDCC_LIB_DIR
12221         * configure.in: remove sdcc_datadir, sdcc_lib_dir and sdcc_include_dir
12222         * configure: rebuilt from configure.in
12223         * sdccconf_in.h: remove SDCC_LIB_DIR and SDCC_INCLUDE_DIR
12224         * sdcc_vc_in.h: remove SDCC_LIB_DIR and SDCC_INCLUDE_DIR
12225         * device/include/Makefile.in: replace sdcc_datadir
12226         * device/lib/Makefile.in: replace sdcc_datadir
12227         * Makefile.common.in: add LDFLAGS from configure
12228         * packihx/Makefile.in: use LDFLAGS
12229         * src/Makefile.in: use LDFLAGS
12230         * support/cpp2/Makefile.in: add LDFLAGS from configure
12231         * support/makebin/Makefile: use LDFLAGS
12232         * .version: bumped version number to 2.3.5
12233
12234 2003-04-12  Borut Razem <borut.razem AT siol.net>
12235
12236         * completed "different paths" task:
12237         * src/SDCCmacro.c: fixed bug in handling quotes
12238         * src/SDCCutil.c, src/SDCCutil.c: rewritten getPrefixFromBinPath()
12239         * src/SDCCmain.c: _discoverPaths() replaced with setBinPaths(), setIncludePath() and setLibPath()
12240
12241 2003-04-12  Bernhard Held <bernhard AT bernhardheld.de>
12242
12243         * src/pic/pcoderegs.c (Remove1pcode): fix warning on alpha
12244
12245 2003-04-11 kevin Vigor <kevin AT vigor.nu>
12246
12247         * ds390/gen.c ds390/peeph.def: fix bug 706781
12248
12249 2003-04-11  Borut Razem <borut.razem AT siol.net>
12250
12251         * support/Util/dbuf.c, support/Util/dbuf.h: update to version 1.1.1 - re-added C++ stuff to make it still more portable
12252
12253 2003-04-10  Scott Dattalo  <scott AT dattalo.com>
12254
12255         * src/pic/* Applied the pointer-to-function patch from Steve Tell.
12256         * src/pic/* Fixed several pointer bugs. (PIC port broke when the ruonly bit was
12257          set - this bit used to not be set...).
12258         * src/pic/gen.c Fixed buf 609268 ==> x = (x+1) & 0xf; generated
12259           bad code in PIC Port
12260         * src/regression/and2.c added to test bug 609268
12261         * src/regression/Makefile added and2.c to regression test
12262
12263
12264 2003-04-08    <johan AT CP255758-A>
12265
12266         * src/mcs51/gen.c (gen51Code): display reg usage in --icode-in-asm
12267         * src/mcs51/ralloc.c (serialRegAssign): update the registers in use and save some slocs
12268         * src/SDCCicode.h: added riu to show the register usage in --icode-in-asm
12269
12270 2003-04-07  Bernhard Held <bernhard AT bernhardheld.de>
12271
12272         * configure.in: fully support prefix, exec_prefix, datadir, docdir;
12273         fix bug #487815
12274         * support/cpp2/Makefile.in: fix bug #487815
12275         * configure: rebuilt from configure.in
12276         * Makefile.common.in: docdir changed, new path suffixes
12277         * sdccconf_in.h: new RETSIGTYPE, and other PATHs
12278         * sdcc_vc_in.h: reflect changes from sdccconf.h
12279         * src/SDCCglobl.h: remove *SEPARATOR_CHARS, they are now in sdccconf.h
12280         * src/SDCCutil.h: remove BINDIR hack
12281         * doc/sdccman.lyx: update new path hierarchy
12282
12283 2003-04-06    Paul Stoffregen <paul AT pjrc.com>
12284
12285         * src/SDCCpeeph.c: added okToRemoveSLOC test
12286
12287 2003-04-06    Paul Stoffregen <paul AT pjrc.com>
12288
12289         * device/lib/printf_fast.c: added leading zero format ("%06d", etc)
12290
12291 2003-04-06    Paul Stoffregen <paul AT pjrc.com>
12292
12293         * src/SDCCpeeph.c: added labelIsReturnOnly test
12294         * src/mcs51/peeph.def: Peephole 244: replace ljmp to ret with ret
12295
12296 2003-04-05    <johan AT balder>
12297
12298         * src/SDCCcse.c (cseAllBlocks): fixed bug #460088
12299         * src/SDCCloop.c (DEFSETFUNC): fixed bug #460088
12300         * src/SDCCopt.c (eBBlockFromiCode): fixed bug #460088
12301         * src/SDCCast.c: fixed a warning
12302         * src/SDCCast.h: fixed a warning
12303         * src/SDCCicode.c (operandFromAst): fixed a warning
12304
12305 2003-04-04    <johan AT balder>
12306
12307         * src/SDCCloop.c (DEFSETFUNC): undid the fix for bug #519584
12308         * src/SDCCast.c (decorateType): fixed bug #715076
12309         * src/SDCC.y: fixed bug #702907
12310
12311 2003-04-03    <johan AT balder>
12312
12313         * device/lib/_mulint.c (_muluint): new #pragma LESS_PEDANTIC
12314         * src/SDCCopt.c (eBBlockFromiCode): new #pragma LESS_PEDANTIC
12315         * src/SDCCglobl.h (PRAGMA_LESSPEDANTIC): new #pragma LESS_PEDANTIC
12316         * src/SDCC.lex (doPragma): new #pragma LESS_PEDANTIC
12317         * src/SDCCmain.c (parseCmdLine): new #pragma LESS_PEDANTIC
12318
12319 2003-04-03  Bernhard Held <bernhard AT bernhardheld.de>
12320
12321         * _decdptr.c: fix return values
12322         * _gptrget.c: fix return values
12323         * _gptrgetc.c: fix return values
12324         * _gptrput.c: fix return values
12325         * _mulint.c: fix return values
12326         * as/z80/Makefile: fix 'make -j' problem
12327
12328 2003-04-02  Bernhard Held <bernhard AT bernhardheld.de>
12329
12330         * Makefile.common.in: unused PORT, SCC and SAS removed, fixed docdir
12331         * configure.in: big cleanup, updated to autoconf 2.5x
12332         * configure: rebuilt from configure.in
12333         * sdccconf_in.h: new RETSIGTYPE, and other PATHs
12334         * sdcc_vc_in.h: reflect changes from sdccconf.h
12335         * doc/Makefile: fixed a flaw in "make install"
12336
12337 2003-04-02    <johan AT balder>
12338
12339         * src/ds390/gen.c (genCmp): no comments
12340         * src/mcs51/gen.c (genCmp): no comments
12341         * src/SDCCopt.c (eBBlockFromiCode): detect missing return values
12342         * src/SDCCast.c (ast_print): fixed the function type in --dumptree
12343
12344 2003-04-01  Bernhard Held <bernhard AT bernhardheld.de>
12345
12346         * support/regression/generate-cases.py: place generated file in given sub directory
12347         * support/regression/ports/host/spec.mk: prevent removal of testfwk.o
12348         * support/regression/Makefile: improvements for 'make -j';
12349         side effect: it's simpler and faster now
12350
12351 2003-03-31  Borut Razem <borut.razem AT siol.net>
12352
12353         * src/z80/main.c: link-{port} and as-{port} defined without path
12354         * src/src.dsp: support/Util/MySystem.h and src/SDCCutil.h added to project
12355
12356 2003-03-31  Bernhard Held <bernhard AT bernhardheld.de>
12357
12358         * Makefile, src/Makefile.in: add dependencies, so that 'make -j' works
12359
12360 2003-03-30  Borut Razem <borut.razem AT siol.net>
12361
12362         * support/Util/BuildCmd.c, support/Util/BuildCmd.h: rewrite buildCmdLine(),
12363           changed type of list parameter to set
12364         * src/ds390/main.c: changed type of parameter asmOptions to set in _tininative_do_assemble()
12365         * src/port.h: changed type of do_assemble() parameter to set
12366         * src/SDCCmain.c: type of asmOptions changed to set, introduced setParseWithComma(),
12367           sdcpp defined without path, removed variable VersionString, introduced set binPathSet,
12368           definition of "cppoutfilename" macro with NULL value in preProcess()
12369         * src/SDCCglobl.h: included "SDCCset.h", added declaration of setParseWithComma()
12370         * src/SDCCglue.c: removed variable VersionString, inroduced spacesToUnderscores()
12371         * support/Util/MySystem.c, support/Util/MySystem.h: rewrite, char *ExePathList[]
12372           replaced with set *binPathSet
12373         * shash_add() deallocates the item, if allready exsists, before adding the new one
12374         * src/SDCCmacro.c: handling macros with empty or NULL values in _evalMacros()
12375
12376 2003-03-30  Scott Dattalo  <scott AT dattalo.com>
12377
12378         * src/pic/gen.c: Commit patch from Steve Tell <tell AT telltronics.org> that fixes
12379           a nested for loop bug in the PIC port
12380         * src/regression/nestfor.c: new regression test file Steve wrote to test nested
12381           for loops
12382
12383 2003-03-29  Bernhard Held <bernhard AT bernhardheld.de>
12384
12385         * support/Util/dbuf.h: remove C++ stuff to make it portable
12386
12387 2003-03-28  Borut Razem <borut.razem AT siol.net>
12388
12389         * src/SDCC.lex: Fix for bug #711240: dynamic buffer handling of C
12390           literal strings in stringLiteral()
12391         * support/Util/dbuf.c, support/Util/dbuf.h: added: dynamic buffer handling
12392         * src/Makefile.bcc, src/Makefile.in, src/src.dsp: added support/Util/dbuf.c
12393           to the project
12394
12395 2003-03-27  Paul Stoffregen <paul AT pjrc.com>
12396
12397         * src/SDCCpeeph.c (pcDistance): accurate byte distance for mcs51
12398
12399 2003-03-26    <johan AT balder>
12400
12401         * src/mcs51/gen.c (saveRegisters): catched symbol abuse
12402         * src/ds390/gen.c (saveRegisters): catched symbol abuse
12403         * src/SDCCast.c (decorateType): fixed " -v < 3"
12404
12405 2003-03-23  Bernhard Held <bernhard AT bernhardheld.de>
12406
12407         * doc/cdbfile.html: removed, replaced by cdbfileformat.lyx
12408         Added Lenny Story's debug infrastructure changes:
12409         * src/Makefile.in:  added new files cdbFile.c and SDCCdebug.c
12410         * src/Makefile.bcc: added new files cdbFile.c and SDCCdebug.c
12411         * src/cdbFile.c: added
12412         * src/SDCCdebug.c: added
12413         * src/SDCCdebug.h: added
12414         * src/SDCCast.c (createFunction)
12415         * src/SDCCglue.c (emitRegularMap, emitStaticSeg, emitOverlay, glue)
12416         * src/SDCCmain.c (parseCmdLine, main)
12417         * src/SDCCmem.c (redoStackOffsets)
12418         * src/SDCCsymt.c (cdbStructBlock, cdbTypeInfo, cdbSymbol, cdbStruct, cdbStructBlock)
12419         * src/SDCCsymt.h
12420         * src/common.h
12421         * src/avr/gen.c (genAVRCode)
12422         * src/ds390/gen.c (gen390Code)
12423         * src/mcs51/gen.c (gen51Code)
12424         * src/pic/gen.c (genpic14Code)
12425         * src/pic/glue.c (pic14emitRegularMap, pic14emitStaticSeg, pic14emitOverlay, picglue)
12426         * src/xa51/gen.c (genXA51Code)
12427         * src/SDCCast.c: fixed "void foo(void){char c; -c < 0;}"
12428
12429 2003-03-22  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12430
12431         * src/mcs51/gen.c (genCodePointerGet): quicker code for bug #700797
12432         * src/mcs51/peeph.def: added rules 177, 241.x to 243, touched 181, 182.x, 193.x
12433
12434 2003-03-22    <johan AT balder>
12435
12436         * src/SDCCicode.c (geniCodeDerefPtr): fixed bug #698231
12437
12438 2003-03-21  Bernhard Held <bernhard AT bernhardheld.de>
12439
12440         * support/scripts/sdcc_mingw32: adapted to configure from autoconf 2.54
12441         * doc/cdbfileformat.lyx: added, written by Lenny Story
12442         * doc/Makefile: added cdbfileformat.lyx
12443         * doc/clean.mk: added cdbfileformat.lyx
12444
12445 2003-03-20  Bernhard Held <bernhard AT bernhardheld.de>
12446
12447         * src/mcs51/peeph.def: fix bug #705773
12448
12449 2003-03-20    <johan AT balder>
12450
12451         An sfr/sbit can have an "at #" AND an initializer
12452         * src/SDCCsymt.c (checkSClass):
12453         * src/SDCCmem.c (allocGlobal):
12454         * src/SDCCmem.c (allocLocal):
12455         * src/SDCCast.c (createBlock):
12456
12457 2003-03-17  Bernhard Held <bernhard AT bernhardheld.de>
12458
12459         * src/ds390/peeph.def: fix bug #704878: added rule 213.b suggested by Jan Rejlek
12460
12461 2003-03-16    <johan AT balder>
12462
12463         Undid the hackup of const and volatile, the problem is much bigger
12464         * src/SDCC.y:1.65
12465         * src/SDCCast.c:1.171
12466         * src/SDCCglue.c:1.138
12467         * src/SDCCicode.c:1.146
12468         * src/SDCCsymt.c:1.150
12469         * src/SDCCval.c:1.65
12470
12471 2003-03-15  Bernhard Held <bernhard AT bernhardheld.de>
12472
12473         * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #703541
12474         * src/ds390/gen.c (genAddrOf): fixed bug #704087
12475
12476 2003-03-13    <johan AT balder>
12477
12478         Hackup const and volatile modifiers in type chains a bit:
12479         * src/SDCC.y:1.63
12480         * src/SDCCast.c:1.169
12481         * src/SDCCglue.c:1.136
12482         * src/SDCCicode.c:1.143
12483         * src/SDCCsymt.c1.146
12484         * src/SDCCsymt.h1.59
12485         * src/SDCCval.c:1.63
12486
12487 2003-03-12    <johan AT balder>
12488
12489         * src/SDCCBBlock.h: more LRH debugging junk
12490         * src/SDCCcflow.h: more LRH debugging junk
12491         * src/SDCCloop.c: more LRH debugging junk
12492         * src/SDCC.y (struct_declaration): fixed bug #697590
12493         * src/SDCCsymt.[hc] (cloneSpec): NEVER EVER use this again
12494         * src/ds390/gen.c (aopForRemat): fixed bug #700031
12495         * src/SDCCglue.c (emitStaticSeg): fixed bug #700797
12496
12497 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
12498         * src/SDCCpeeph.c: quit being lazy and made proper fix (peephole
12499         test function names must now match exactly).
12500         * src/SDCCcse.c: added special case in findCheaperOp to allow
12501         extending a short integer. Makes less awful code for bug 700121 test case.
12502
12503 2003-03-11  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12504
12505         * as/mcs51/lkmain.c: Added ASlink-Warning to messages
12506         * as/mcs51/lkaomf51.c: Fixed bug when linking asmblink example
12507
12508 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
12509
12510         * src/SDCCpeeph.c: fix so that operandsNotEqualX functions are
12511         actually called (operandsNotEqual() was called for all
12512         operandsNotEqualX tests).
12513
12514 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
12515
12516         * src/SDCCcse.c: fix findCheaperOp to prevent replacing int types
12517         with shorter literals. Fixes bug 700121.
12518
12519 2003-03-11    <johan AT balder>
12520
12521         * src/SDCCsymt.c (compareType): a (void *) can be assigned to any pointer
12522
12523 2003-03-11  Bernhard Held <bernhard AT bernhardheld.de>
12524
12525         * src/SDCCloop.c (mergeRegions): an evil beast is dead
12526         * src/SDCCmain.c (preProcess): minor cleanup: eliminate preOutName
12527
12528 2003-03-10  Borut Razem <borut.razem AT siol.net>
12529
12530         * src/SDCCmain.c: pipe preprocessor's output
12531         * support/Util/MySystem.c, support/Util/MySystem.h: added my_popen()
12532         * sdcc_vc_in.h: define pclose as _pclose for WIN32
12533         * src/SDCCglue.c, src/SDCCglue.h: added set pipeSet, added function closePipes,
12534         which closes all pipes in pipeSet set
12535         * src/SDCCset.c: free deleted item in function deleteSetItem()
12536         * src/src.dsp, src/z80/z80.dsp: files support/Util/BuildCmd.c and support/Util/MySystem.c
12537         moved from z80 to src subproject
12538         * .version: increased version number to 2.3.4
12539
12540 2003-03-10  Bernhard Held <bernhard AT bernhardheld.de>
12541
12542         * support/regression/ports/mcs51/spec.mk: increase timeout for CF's sparc to 30s
12543         * support/regression/ports/ds390/spec.mk: increase timeout for CF's sparc to 25s
12544         * support/regression/ports/xa51/spec.mk: fix typo
12545
12546 2003-03-09  Bernhard Held <bernhard AT bernhardheld.de>
12547
12548         * src/SDCCglobl.h: PATH_MAX is already defined in mingw32 headers
12549
12550 2003-03-09  Borut Razem <borut.razem AT siol.net>
12551
12552         * src/SDCCmain.c: pipe preprocessor's output
12553         * support/Util/MySystem.c, support/Util/MySystem.h: added my_popen()
12554         * sdcc_vc_in.h: define pclose as _pclose for WIN32
12555         * src/SDCCglue.c, src/SDCCglue.h: added set pipeSet, added function closePipes,
12556         which closes all pipes in pipeSet set
12557         * src/SDCCset.c: free deleted item in function deleteSetItem()
12558         * src/src.dsp, src/z80/z80.dsp: files support/Util/BuildCmd.c and support/Util/MySystem.c
12559         moved from z80 to src subproject
12560
12561 2003-03-09  Borut Razem <borut.razem AT siol.net>
12562
12563         * src/SDCCglue.c: re-implemented tempfilename() and tempfile(): using mkstemp() if available
12564         * src/SDCCsymt.h: fixed MSVC and BORLANDC compilation (included SDCCglobl.h instead srccconf.h)
12565         * sdcc_vc_in.h: explicitly undefined HAVE_MKSTEMP which is not available on BORLANDC and MSVC
12566         * src/SDCCset.h: removed inclusion of sdccconf.h or sdcc_vc.h
12567         * src/SDCCglobl.h: unification of WIN32 native definitions
12568
12569 2003-03-09  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12570
12571         * src/mcs51/gen.c: applied in-/dec patch mentioned on sdcc-devel 2003-03-01
12572
12573 2003-03-08  Bernhard Held <bernhard AT bernhardheld.de>
12574
12575         * src/configure.in:   check for endianess (even while cross-compiling)
12576         * src/configure:      check for endianess (even while cross-compiling)
12577         * src/configure_in.h: check for endianess (even while cross-compiling)
12578         * src/avr/gen.c:        remove old endianess stuff
12579         * src/mcs51/gen.c:      remove old endianess stuff
12580         * src/ds390/gen.c:      remove old endianess stuff
12581         * src/pic/gen.c:        remove old endianess stuff
12582         * src/pic/genarith.c:   remove old endianess stuff
12583         * src/pic/glue.c:       fix endianess check
12584         * src/pic16/gen.c:      remove old endianess stuff
12585         * src/pic16/genarith.c: remove old endianess stuff
12586         * src/pic16/glue.c:     fix endianess check
12587         * src/xa51/gen.c:       remove old endianess stuff
12588         * src/z80/gen.c:        fix endianess check
12589         * src/SDCCglue.c:       fix endianess check
12590         * src/ds390/peeph.def: fix bug 700036
12591
12592 2003-03-08  Bernhard Held <bernhard AT bernhardheld.de>
12593
12594         * src/SDCCsymt.h: use appropriate data-types on host for SDCC's int and long
12595         * src/configure: find appropriate data-types on host for SDCC's int and long
12596         * src/configure.in: find appropriate data-types on host for SDCC's int and long
12597         * src/sdccconf_in.h: find appropriate data-types on host for SDCC's int and long
12598         * src/xa51/gen.c: use %d, not %ld for 4 byte variables
12599
12600 2003-03-07    <johan AT balder>
12601
12602         Just a big NOOP:
12603                 some minor cleanups before the big shot
12604                 OP_DEFS and OP_USES now use Kevin's protection
12605                 new option --nolabelopt
12606
12607         * src/SDCCBBlock.c:
12608         * src/SDCCast.c,:
12609         * src/SDCCcflow.c:
12610         * src/SDCCcse.c:
12611         * src/SDCCicode.c:
12612         * src/SDCCicode.h:
12613         * src/SDCClabel.c:
12614         * src/SDCCloop.c:
12615         * src/SDCCmain.c:
12616         * src/ds390/ralloc.c:
12617         * src/mcs51/ralloc.c:
12618         * src/pic/ralloc.c:
12619         * src/xa51/ralloc.c:
12620         * src/z80/ralloc.c:
12621
12622 2003-03-06  Bernhard Held <bernhard AT bernhardheld.de>
12623
12624         * src/pic/pcode.c (get_op): fix 64 bit warnings
12625         * src/pic/pcode.c (pCode2str): fix 64 bit warnings
12626         * src/SDCChasht.c (newHashTable): fix 64 bit warnings
12627         * src/SDCCsymt.c (checkTypeSanity): fix 64 bit warnings
12628         * support/regression/tests/malloc.c: fix 64 bit warnings
12629
12630 2003-03-04  Bernhard Held <bernhard AT bernhardheld.de>
12631
12632         * src/mcs51/gen.c (genMinus): fixed bug 696436
12633
12634 2003-03-02  Borut Razem <borut.razem AT siol.net>
12635
12636         * src/SDCCmain.c: added BORLANDC, corrected MSVC in printVersionInfo()
12637
12638 2003-02-26  Bernhard Held <bernhard AT bernhardheld.de>
12639
12640         * configure.in: test for mkstemp
12641         * sdccconf_in.h: add HAVE_MKSTEMP
12642
12643 2003-02-24  Bernhard Held <bernhard AT bernhardheld.de>
12644
12645         * device/include/ctype.h: removed warning while using --stack-auto
12646         * device/include/malloc.h: removed warning while using --stack-auto
12647         * device/include/string.h: removed warning while using --stack-auto
12648
12649 2003-02-23  Borut Razem <borut.razem AT siol.net>
12650
12651         * src/asm.h: corrected assertion in function printILine(): _pipe() was not executed on MSVC,
12652         because NDEBUG is defined (see man assert)
12653         * sdcc_vc_in.h: vsnprintf is defined as _vsnprintf on MSVC
12654
12655 2003-02-23  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12656
12657         * src/mcs51/gen.c (genUminusFloat): avoided dptr in-/decrement for xdata variables
12658         * src/mcs51/peeph.def: added rule suggested by Gernot Fink, white space/comment changes
12659
12660 2003-02-18  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12661
12662         * src/SDCCpeeph.c: added peephole conditions testing for same arguments
12663         * src/mcs51/peeph.def: added rules 238a-d which remove redundant moves
12664
12665 2003-02-18    <johan AT balder>
12666
12667         * as/mcs51/asmain.c (asmbl): module can start with a digit
12668         * as/z80/asmain.c (asmbl): module can start with a digit
12669
12670 2003-02-16  Bernhard Held <bernhard AT bernhardheld.de>
12671
12672         * sim/ucsim/mkecho: inserted #!/bin/sh for Cygwin, so that it's executable
12673         * src/asm.c: fix pipe() for Mingw32
12674
12675 2003-02-15  Bernhard Held <bernhard AT bernhardheld.de>
12676
12677         * src/SDCCglue.h: make tmpfileNameSet available for preOutName
12678         * src/SDCCmain.c (preProcess): make sure, that preOutName will be deleted;
12679         make -V work again; --c1mode reads now from stdin
12680         * doc/sdccman.lyx: added --c1mode
12681         * support/Util/SDCCerr.c: new messages for c1 mode
12682         * support/Util/SDCCerr.h: new messages for c1 mode
12683         * src/SDCC.lex (checkCurrFile): test if fullSrcFileName is NULL for c1mode
12684
12685 2003-02-15    <johan AT balder>
12686
12687         * src/asm.c: new options: --no-c-code-in-asm and --i-code-in-asm
12688
12689 2003-02-14  Bernhard Held <bernhard AT bernhardheld.de>
12690
12691         * doc/sdccman.lyx: Environment variables, -o and other minor things
12692
12693 2003-02-14    <johan AT balder>
12694
12695         * src/xa51/main.c: before anyone really tries to use it :)
12696
12697         * Install doc's in share/sdcc/doc
12698         * removed some obsolete files
12699         * Do a proper make distclean and uninstall
12700         M Makefile.common.in
12701         R sdccbuild.sh
12702         M as/Makefile
12703         M device/include/Makefile.in
12704         M device/lib/Makefile.in
12705         M doc/sdccman.lyx
12706         M link/Makefile
12707         M sim/ucsim/doc/Makefile.in
12708         M src/clean.mk
12709         R src/avr/peeph.rul
12710         R src/xa51/peeph.rul
12711         M support/cpp2/Makefile.in
12712         M support/makebin/Makefile
12713
12714
12715 2003-02-13  Bernhard Held <bernhard AT bernhardheld.de>
12716
12717         * support/regression/ports/host/spec.mk: use cc as host compiler for max osx
12718
12719 2003-02-10  Borut Razem <borut.razem AT siol.net>
12720
12721         * doc/bccinst.txt, packihx/packihx.c, sdcc_vc_in.h, src/SDCCset.h,
12722         support/cpp2/config.in: Borland C++ build doesn't depend on Cygwin configure
12723         * Bcc.ini, Makefile.bcc, as/mcs51/Makefile.bcc,
12724         device/examples/ds390/tinitalk/Makefile.bcc, packihx/Makefile.bcc,
12725         support/cpp2/Makefile.bcc, src/Makefile.bcc, src/avr/Makefile.bcc,
12726         src/ds390/Makefile.bcc, src/izt/Makefile.bcc, src/mcs51/Makefile.bcc,
12727         src/pic/Makefile.bcc, src/pic16/Makefile.bcc, src/xa15/Makefile.bcc,
12728         src/z80/Makefile.bcc: Borland Makefile cleanup
12729         * as/z80/Makefile.bcc: Added Borland Makefile
12730         * support/cpp2/borland.h: Removed
12731
12732 2003-02-10  Bernhard Held <bernhard AT bernhardheld.de>
12733
12734         * doc/sdccman.lyx: new pragma NOIV by "Johannes Stezenbach" <js AT convergence.de>
12735         * src/SDCC.lex: new pragma NOIV
12736         * src/SDCCglobl.h: new pragma NOIV
12737         * src/SDCCmem.c: new pragma NOIV
12738
12739 2003-02-09  Bernhard Held <bernhard AT bernhardheld.de>
12740
12741         * src/SDCCmain.c: signal handling is switched off by SDCC_LEAVE_SIGNALS
12742
12743 2003-02-09  Bernhard Held <bernhard AT bernhardheld.de>
12744
12745         * src/SDCCmain.c: signal handling is switched off by --debug
12746         * doc/Makefile: small fix for install; use clean.mk again
12747         * doc/clean.mk: clean *.pdf and *.html too
12748
12749 2003-02-08  Bernhard Held <bernhard AT bernhardheld.de>
12750
12751         * device/lib/_mulint.c: small fix for large/ds390 --int-long-reent resp. --stack-auto
12752         * device/lib/printfl.c: fix a ds390 bug by making it portable
12753         * src/SDCCsymt.c (initCSupport): fix compile warning on Cygwin
12754         * src/SDCCopt.c (cnvToFloatCast): fix compile warning on Cygwin
12755         * src/SDCCopt.c (cnvFromFloatCast): fix compile warning on Cygwin
12756         * debugger/mcs51/cmd.c: converted multi-line string literals
12757         * sim/ucsim/globals.cc: converted multi-line string literals
12758         * src/SDCCmain.c: introduced signal handler to remove temp files
12759         * doc/Makefile: small tweaks, implement clean
12760         * doc: removed generated files
12761
12762 2003-02-05  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12763
12764         * as/mcs51/aslink.h, as/mcs51/lkihx.c, as/mcs51/lkrloc.c:  Applied
12765         patch from Jan Rejlek <jr AT apex-lib.cz> to fix Bug 677692: "Extended
12766         Address Record is not correctly generated for DS390."
12767
12768 2003-02-02  Borut Razem <borut.razem AT siol.net>
12769
12770         * Makefile.bcc: removed non existing cpp project and non compilable izt project from makefile
12771         * as/mcs51/asm.h: fixed compilation with Borland C
12772         * support/cpp2/Makefile.bcc: added rule to generate auto-host.h
12773         * support/cpp2/auto-host_vc_in.h: fixed compilation with Borland C
12774         * src/mcs51/mcs51a.dsp: corrected misspelled project name from msc51a to mcs51a
12775         * src/avr/Makefile.bcc, src/ds390/Makefile.bcc, src/izt/Makefile.bcc,
12776         src/mcs51/Makefile.bcc, src/pic16/Makefile.bcc, src/xa51/Makefile.bcc,
12777         src/z80/Makefile.bcc: delete $(LIB) only if exist
12778         * src/Makefile.bcc, src/pic/Makefile.bcc:  fixed compilation with Borland C
12779
12780 2003-02-02  Bernhard Held <bernhard AT bernhardheld.de>
12781
12782         * device/include/malloc.h: introduced NULL
12783         * device/include/string.h: introduced NULL
12784         * device/include/stdlib.h: introduced NULL
12785         * device/lib/_memcpy.c: removed NULL
12786         * device/lib/_strcat.c: removed NULL
12787         * device/lib/_strchr.c: removed NULL
12788         * device/lib/_strcmp.c: removed NULL
12789         * device/lib/_strcpy.c: removed NULL
12790         * device/lib/_strcspn.c: removed NULL
12791         * device/lib/_strlen.c: removed NULL
12792         * device/lib/_strncat.c: removed NULL
12793         * device/lib/_strncmp.c: removed NULL
12794         * device/lib/_strncpy.c: removed NULL
12795         * device/lib/_strpbrk.c: removed NULL
12796         * device/lib/_strrchr.c: removed NULL
12797         * device/lib/_strspn.c: removed NULL
12798         * device/lib/_strstr.c: removed NULL
12799         * device/lib/_strtok.c: removed NULL
12800         * device/lib/malloc.c: removed NULL, include own header
12801
12802 2003-02-02    <johan AT balder>
12803
12804         * 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
12805         * support/regression/fwk/lib/testfwk.c: div and mod isn't broken anymore
12806         * regressions ds390/spec.mk and mcs51/spec.mk (timeout): my good old balder isn't fast enough for some tests
12807         * src/z80/gen.c (genZ80Code): added c-lines in asm comments
12808         * as/z80/asm.h (NINPUT): increased for long c-comments in regression tests
12809         * src/z80/gen.c (genRightShiftLiteral): fixed the (char)(-3)>>8 (I think)
12810
12811 2003-02-01  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12812
12813         * src/SDCCmain.c: Fixed bug 678574: "ds390: ASlink-Error-Stack overlaps
12814         area 'DATA'"
12815
12816 2003-02-01    <johan AT balder>
12817
12818         * src/SDCCval.c (valBitwise): fixed Karl's "2 | (1<<8)"
12819
12820 2003-01-31    <johan AT CP255758-A>
12821
12822         * src/ds390/main.c (_ds390_genAssemblerPreamble): applied Jan Rejlek's >64K startup patch
12823
12824 2003-01-30    <johan AT balder>
12825
12826         * src/SDCCBBlock.c: automatic bug detection
12827         * src/SDCCicode.c: automatic bug detection
12828
12829 2003-01-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12830
12831         * src/SDCCglobl.h:   now --xram-size 0 works
12832         * src/SDCCmain.c:    now --xram-size 0 works
12833
12834 2003-01-29    <johan AT balder>
12835
12836         * src/almosteverything: changed OP_DEFS and OP_USES from macros to functions to catch symbol abuse (a hot topic in the bug list :)
12837
12838 2003-01-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12839
12840         * as/mcs51/aslink.h: Added options --xram-size and --code-size
12841         * as/mcs51/lkdata.c: Added options --xram-size and --code-size
12842         * as/mcs51/lkmain.c: Added options --xram-size and --code-size
12843         * as/mcs51/lkmem.c:  Added options --xram-size and --code-size
12844         * src/SDCCglobl.h:   Added options --xram-size and --code-size
12845         * src/SDCCmain.c:    Added options --xram-size and --code-size
12846
12847 2003-01-28  Bernhard Held <bernhard AT bernhardheld.de>
12848
12849         * src/ds390/gen.c: fix deps by replacing <common.h> with "common.h"
12850         * src/SDCC.lex: rename P_OVERLAY to P_OVERLAY_ for cross-gcc 3.2 MINGW32
12851
12852 2003-01-27    <johan AT balder>
12853
12854         * src/SDCC.y: fixed bug #613764
12855
12856 2003-01-26    <johan AT balder>
12857
12858         * src/SDCClrange.c:  fixed Bernhard's "char * code ptr = &c"
12859         * src/SDCCsymt.h: fixed bug #673374
12860         * src/SDCCglue.c: fixed bug #661910
12861         * src/SDCCast.c: fixed bug #458099 and 673374
12862
12863 2003-01-26  Bernhard Held <bernhard AT bernhardheld.de>
12864
12865         * as/mcs51/strcmpi.c: added, provides Aurelien Jarno's as_strcmpi(); strcmpi() is not ANSI
12866         * as/mcs51/strcmpi.h: added
12867         * as/mcs51/asm.h: remove ugly "#define strcmpi strcmp"
12868         * as/mcs51/aslink.h: remove ugly "#define strcmpi strcmp"
12869         * as/mcs51/asmain.c: strcmpi -> as_strcmpi
12870         * as/mcs51/assym.c: strcmpi -> as_strcmpi
12871         * as/mcs51/lkmem.c: strcmpi -> as_strcmpi
12872         * as/mcs51/lknoice.c: strcmpi -> as_strcmpi
12873         * as/mcs51/lksym.c: strcmpi -> as_strcmpi
12874         * as/mcs51/Makefile.aslink: new module strcmpi
12875         * as/mcs51/Makefile.asx8051: new module strcmpi
12876         * as/mcs51/Makefil.bcc: new module strcmpi
12877         * as/mcs51/Makefile.in: new module strcmpi
12878         * sim/ucsim/s51.src/uc390.cc (get_mem_size): make RAM big enough for tinibios
12879
12880 2003-01-26    <johan AT balder>
12881
12882         * src/SDCCglue.c: reverted back to 1.124
12883         * src/SDCCast.c: reverted back to 1.156
12884         * src/mcs51/gen.c (aopGet): applied Frieder's efficiency patch
12885
12886 2003-01-25    <johan AT balder>
12887
12888         * src/SDCCglue.c: A better fix for bug #661910
12889         * src/SDCCast.c: A better fix for bug #661910
12890         * src/SDCCglue.c (emitRegularMap): That was a little too efficient
12891
12892 2003-01-24  Bernhard Held <bernhard AT bernhardheld.de>
12893
12894         * src/Makefile.in: remove spawn.o
12895         * src/SDCCmain.c: remove spawn.h
12896         * src/SDCCmain.c (printVersionInfo): report MINGW32 instead of UNIX
12897         * src/spawn.c: removed
12898         * src/spawn.h: removed
12899         * support/regression/ports/ds390/spec.mk: link with -r
12900
12901 2003-01-24    <johan AT CP255758-A>
12902
12903         * src/ds390/gen.c (aopOp): fixed bug #667458
12904         * src/SDCCglue.c (emitRegularMap): fixed bug #458099 again
12905         * src/SDCCast.c (createIvalCharPtr): fixed bug #661910
12906         (createIvalCharPtr): an ival doesn't always have a storage class anymore
12907
12908 2003-01-24  Bernhard Held <bernhard AT bernhardheld.de>
12909
12910         * src/mcs51/peeph.def: better assembler identation by Frieder
12911         * src/mcs51/gen.c: better assembler identation by Frieder
12912
12913 2003-01-22  Bernhard Held <bernhard AT bernhardheld.de>
12914
12915         * as/z80/string.h: removed for gcc 3.2
12916         * support/makebin/makebin.c: #include <string.h> for gcc 3.2
12917         * src/pic/pcode.c (get_op_from_instruction): fix concatenation of string literals with __FUNCTION__ for gcc 3.2
12918
12919 2003-01-19  Bernhard Held <bernhard AT bernhardheld.de>
12920
12921         * src/SDCCmain.c (linkEdit): rename mem and map files even in case of failure
12922         * src/SDCCpeeph.c (replaceRule): fix bug #663503
12923         * support/regression/Makefile: separate temp files for ports
12924         * support/regression/generate-cases.py: separate temp files for ports
12925         * src/mcs51/peeph.def: Frieder: removed 237 (obsolete by 236g and 105); added 237 a/b
12926         * src/ds390/peeph.def: Frieder: removed 237 (obsolete by 236g and 105); added 237 a/b
12927
12928 2003-01-19  Bernhard Held <bernhard AT bernhardheld.de>
12929
12930         * moved tinitalk to device/examples/ds390
12931
12932 2003-01-14  Bernhard Held <bernhard AT bernhardheld.de>
12933
12934         * as/mcs51/lkmem.c: rflag is for DS390
12935         * src/SDCCglobl.h: removed out_name and options stackOnData, genericPtr
12936         * src/SDCCmain.c (optionsTable, setDefaultOptions): removed --stack-after-data and --generic
12937                          (linkEdit): move mem- and map-files the same way as ihx-files
12938         * src/z80/main.c (_setDefaultOptions): removed --generic
12939         * src/SDCCmain.c (_processC1Arg, parseCmdLine, main): --c1mode works again
12940         * src/SDCCglue.c (createInterruptVect, glue): --c1mode works again
12941         * src/pic/glue.c (picglue): --c1mode works again
12942         * src/pic16/glue.c (pic16glue): --c1mode works again
12943         * src/asm.c (printCLine): fix #660034
12944
12945 2003-01-13  Bernhard Held <bernhard AT bernhardheld.de>
12946
12947         * src/ds390/peeph.def: fix #123; add 14 rules by Fiorenzo D. Ramaglia <fd.ramaglia AT tin.it>, 1 by Frieder
12948         * src/mcs51/peeph.def: fix #123; add 14 rules by Fiorenzo, 1 by Frieder
12949         * src/mcs51/gen.c (genFunction): emit r0 instead of ar0 by Fiorenzo
12950         * as/mcs51/lkmem (summary): better fix for sp problem
12951         * src/SDCCglue.c (glue): __start_stack - 1, saves 1 byte!
12952         * src/ds390/main.c (_ds390_finaliseOptions, _tininative_finaliseOptions): stack_loc = 0x400008
12953         * support/regression/ports/*/spec.mk: moving testfwk-object to port dir allow parallel execution of regression tests
12954                                               remove --stack-after-data
12955
12956 2003-01-12  Bernhard Held <bernhard AT bernhardheld.de>
12957
12958         * src/SDCCmain.c (main): port->finaliseOptions() moved for z80 linking
12959         * src/SDCCutil.c (join): ugly bug: missing '\0'
12960         * as/mcs51/lkmem.c (summary): sp on address 7 is safe
12961
12962 2003-01-11  Bernhard Held <bernhard AT bernhardheld.de>
12963
12964         * src/SDCCmain.c (assemble, linkEdit): preparations for -o
12965         * src/port.h: typo
12966         * src/pic/main.c (_asmCmd): gpasm supports -o
12967         * src/z80/main.c: more general macros
12968         * device/lib/Makefile.in: remove intermediate files
12969
12970 2003-01-11  Bernhard Held <bernhard AT bernhardheld.de>
12971
12972         * .version: Bumped version number to 2.3.3
12973         * src/SDCCBBlock.c: new option -o
12974         * src/SDCCglobl.h: new option -o
12975         * src/SDCCglue.c: new option -o
12976         * src/SDCCmain.c: new option -o
12977         * src/asm.c: new option -o
12978         * src/ds390/main.c: new option -o
12979         * src/pic/glue.c: new option -o
12980         * src/pic/pcode.c: new option -o
12981         * src/pic/ralloc.c: new option -o
12982         * src/pic16/glue.c: new option -o
12983         * src/pic16/pcode.c: new option -o
12984         * src/pic16/ralloc.c: new option -o
12985         * src/z80/main.c: new option -o
12986         * device/lib/Makefile.in: use -o
12987         * support/regression/ports/ds390/spec.mk: use -o
12988         * support/regression/ports/gbz80/spec.mk: use -o
12989         * support/regression/ports/mcs51/spec.mk: use -o
12990         * support/regression/ports/mcs51-stack-auto/spec.mk: use -o
12991         * support/regression/ports/z80/spec.mk: use -o
12992         * support/regression/ports/ucz80/spec.mk: use -o
12993         * support/regression/ports/xa51/spec.mk: use -o
12994         * support/regression/fwk/lib/timeout.c: fix usage string
12995
12996 2003-01-09  Bernhard Held <bernhard AT bernhardheld.de>
12997         * src/mcs51/gen.c (genPlus): replaced "mov b,acc" by "mov b,a" Fiorenzo D. Ramaglia <fd.ramaglia AT tin.it>
12998
12999 2003-01-07    <johan AT balder>
13000
13001         * src/SDCCast.c (decorateType): fixed bug #600035
13002
13003 2003-01-07  Bernhard Held <bernhard AT bernhardheld.de>
13004         * as/mcs51/lkmem.c: added several l-modifiers to printf to remove warnings
13005         * as/mcs51/lkaomf51.c: #include <ctype.h> to remove warnings
13006         * src/pic/main.c (_hasNativeMulFor): outcommented unused variables to remove warnings
13007         * src/pic/pcode.c: outcommented unused variable to remove warnings
13008         * src/pic/ralloc.c: outcommented unused variable to remove warnings
13009
13010 2003-01-06    <karl AT turbobit.com>
13011         * sim/ucsim/cmd.src/command.cc: fixed so "break xram r 0x7654" works again in
13012    regression tests.
13013
13014 2003-01-06    <johan AT balder>
13015
13016         * src/SDCCicode.c: fixed array add
13017
13018 2002-01-05  Bernhard Held <bernhard AT bernhardheld.de>
13019         * src/SDCCmacro.c: MAX_STRING_LENGTH increased to 2048; was too small for regression tests
13020         * support/regression/ports/host/support.c: #include <stdarg.h> for gcc 3.2
13021
13022 2003-01-04    <johan AT balder>
13023
13024         * src/SDCCval.c (getNelements): fixed the initialized array of structures
13025
13026 2002-12-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13027         * as/mcs51/Makefile.bcc: fixed typo lkomf51.o -> lkaomf51.o
13028
13029 2002-12-28  Bernhard Held <bernhard AT bernhardheld.de>
13030         * src/mcs51/peeph.def: added rules 234 and 235 from Frieder Ferlemann <frieder.ferlemann AT web.de>
13031         * support/regression/tests/bug-524697.c: fit mem usage into 8032
13032
13033 2002-12-28  Bernhard Held <bernhard AT bernhardheld.de>
13034         * src/mcs51/gen.c (aopGetUsesAcc): inserted missing "return FALSE"
13035
13036 2002-12-27  Bernhard Held <bernhard AT bernhardheld.de>
13037         * as/mcs51/Makefile.in: fixed typo lkomf51.o -> lkaomf51.o
13038
13039 2002-12-26  Bernhard Held <bernhard AT bernhardheld.de>
13040         * src/mcs51/main.c: removed {bindir}{sep} from aslink
13041
13042 2002-12-10  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13043
13044     * in /sdcc/as/mcs51/ changed these files in order to create an
13045     aomf51 file: aslink.h, lkdta.c, lklex.c, lklibr.c, lklist.c,
13046     lkmain.c.  Also added: lkmem.c and lkaomf51.c.  Changed the
13047     following files to include the previous two files: aslink.dsp,
13048     Makefile.aslink, Makefile.bcc, and Makefile.in.
13049
13050     * Changed /sdcc/src/SDCCmain.c so it creates files with extension
13051     .adb instead of .cdb
13052
13053 2002-11-09  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13054
13055         * /sdcc/as/mcs51/lklist.c: Now reports memory usage using the
13056         value from option --iram-size.
13057
13058 2002-09-20  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13059
13060         * /sdcc/as/mcs51/lklist.c: added boundary check before using
13061         dram[] array.
13062
13063 2002-09-18    <wiml AT hhhh.org>
13064
13065         * SDCClrange.h: exposed setFromRange() and setToRange()
13066         * mcs51/ralloc.c: fixed over-eager packRegsForSupport() and
13067           packRegsForAccUse() (bug 542397)
13068         * mcs51/gen.c: MOVA() is now a function to avoid calling aopGet()
13069           multiple times and emitting the fetch operations more than once
13070           added aopGetUsesAcc() function to allow binary operators to
13071           fetch their operands in the correct order; made genMinus() emit
13072           compact code for X = LITERAL - Y
13073
13074 2002-09-00  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13075         * /sdcc/as/mcs51/lklist.c: Fixed incorrect number of parameters to
13076         sprintf() in line 1267.
13077
13078 2002-09-08  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13079         * /sdcc/src/SDCCglue.c: Generate areas REG_BANK_[0-3] only for 8051
13080         like ports.
13081
13082 2002-09-04  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13083         Changes to aslink (All the changes are marked with 'JCF'):
13084
13085         * /sdcc/as/mcs51/aslink.h: External definition of sflag and
13086         summary().
13087
13088         * /sdcc/as/mcs51/lkarea.c: Computes the size of area BSEG_BYTES from
13089         area BSEG.  Also moves, if possible, the DATA area down into the internal
13090         ram so more space is available.
13091
13092         * /sdcc/as/mcs51/lkdata.c: Definition of memory summary output flag
13093         sflag.
13094
13095         * /sdcc/as/mcs51/lklist.c: For the BSEG area report the size in bits,
13096         not bytes.  Function summary() which creates a memory usage summary
13097         file with extension .mem.  Reports of overlaping stack and small stack
13098         size.  If the space for the stack is less than 16 bytes aslink trows a
13099         warning.
13100
13101         * /sdcc/as/mcs51/lkmain.c: Creation of some of the default areas for
13102         the 8051.  Option 'y' for memory summary output file.
13103
13104         Changes to sdcc (All the changes are marked with 'JCF'):
13105
13106         * /sdcc/src/SDCCglobl.h: External definition of RegBankUsed[4].
13107
13108         * /sdcc/src/SDCCglue.c:  If a register bank is used, creates an
13109         overlaying area for it (uses RegBankUsed[4]).
13110
13111         * /sdcc/src/SDCCmain.c: Definition RegBankUsed[4]; marks register
13112         bank zero as used by default.  By default aslink locates the stack
13113         (equivalent to --stack-after-data).  Pass option 'y' to aslink for
13114         the creation of the .mem file.  Delegates the allocation of data area
13115         to aslink (it is not longer 0x30 by default).  If --stack-loc passes
13116         the begining of the stack area to aslink.
13117
13118         * /sdcc/src/SDCCmem.c:  If a register bank is used, marks it so
13119         glue() in SDCCglue.c creates an area for it.
13120
13121 2002-09-03  Borut Razem <borut.razem AT siol.net>
13122         * sdcc/src/SDCCglue.c, sdcc/src/SDCCglue.h, sdcc/src/SDCCmain.c,
13123         sdcc/src/pic/glue.c:
13124         introduced atexit() handler for teporay files removal in case of
13125         errors, assertions, ...
13126
13127 2002-08-29  Borut Razem <borut.razem AT siol.net>
13128         * sdcc/support/cpp2/auto-host_vc_in.h:
13129         re-definition of O_BINARY and other O_XXX as _O_BINARY and _O_XXX, so the problem
13130         with the returned value from read() in sdcc/support/cpp2/cppfiles.c is solved for MSC.
13131         Maybe there is a similar problem with BORLANDC? It should be checked!
13132
13133         * sdcc/src/ds390/ralloc.c, sdcc/src/mcs51/ralloc.c, sdcc/src/z80/ralloc.c:
13134         corrected improper use of assert: the assignment to clr variable was done inside the assert.
13135         In case that NDEBUG was defined, the assert macro was substituted with no-op, so the assignment
13136         was not executed, and the compiler (cl) launched a warning:
13137         ralloc.c(1442) : warning C4700: local variable 'clr' used without having been initialized
13138
13139 2002-08-28  Bernhard Held <bernhard AT bernhardheld.de>
13140         * src/SDCCglue.c (printIvalArray): iterative calculation of array length
13141
13142 2002-08-28  Jesus Calvino-Fraga and Borut Razem <borut.razem AT siol.net>
13143         * sdcc/sdcc.dsw: added sdcpp, sdcppa, yacc, conf projects
13144
13145         * sdcc/src/src.dsp, sdcc/src/avr/avr.dsp, sdcc/src/ds390/ds390.dsp,
13146           sdcc/src/mcs51/mcs51.dsp, sdcc/src/pic/pic.dsp, sdcc/src/z80/z80.dsp,
13147           sdcc/src/xa51/xa51.dsp, sdcc/src/avr/avra.dsp,
13148           sdcc/src/ds390/ds390a.dsp, sdcc/src/mcs51/mcs51a.dsp,
13149           sdcc/src/pic/pica.dsp, sdcc/src/z80/z80a.dsp,
13150           sdcc/src/xa51/xa51a.dsp, sdcc/as/as_z80.dsp,
13151           sdcc/as/aslink.dsp, sdcc/as/asx8051.dsp, sdcc/packihx/packihx.dsp:
13152         - added Release configuration in VS projects
13153         - review of compiler an linker options
13154         - VC .exe files are generated in bin_vc directory, not to interfere
13155           with binaries generated from other projects (cygwin, mingw, bcc ...)
13156
13157         * sdcc/src/yacc.dsp: added
13158
13159         * sdcc/config.dsp, sdcc/configure_vc.awk, sdcc/sdcc_vc_in.h:
13160         added - genarate sdcc_vc.h using sdcc_vc_in.h as template
13161         and insert the version number definitions from .version
13162
13163         * sdcc/support/cpp2/sdcpp.dsp: added - VC project for sdcpp
13164
13165         * sdcc/support/cpp2/sdcppa.dsp, sdcc/support/cpp2/auto-host_vc_in.h:
13166         added - genarate auto-host.h using auto-host_vc_in.h as template
13167
13168         * sdcc/sdcc_vc.h,
13169         removed from CVS, generated automatically
13170
13171 2002-08-25  Bernhard Held <bernhard AT bernhardheld.de>
13172         * support/scripts/inc2h.pl: use gputils or gpasm (from Nathan Hurst)
13173
13174 2002-08-11  Borut Razem <borut.razem AT siol.net>
13175         * support/Util/NewAlloc.c: removed unneeded #include "sdccconf.h" (suggested by Jesus Calvino-Fraga)
13176
13177 2002-08-10  Borut Razem <borut.razem AT siol.net>
13178         * src/SDCCmain.c (main):
13179         file preOutName was unlinked before closed. This seems to be OK on UNIX and cygwin
13180         platforms, but it doesn't work with Visual Studio: the opened file can not be removed.
13181         The consequence was that some temporary files were not removed.
13182
13183         * src/SDCCglue.c:
13184         unification of code in functions tempfilename() and tempfile():
13185         function tempnam() is defined in Visual Studio 6.0 and .NET
13186
13187         * sdcc/sdcc.dsw: removed project sdcpp, added project xa51a
13188
13189         * sdcc/src/src.dsp, sdcc/src/avr/avr.dsp, sdcc/src/ds390/ds390.dsp,
13190           sdcc/src/mcs51/mcs51.dsp, sdcc/src/pic/pic.dsp, sdcc/src/z80/z80.dsp:
13191         - removed compiler command line option /WX: Treats all warnings as errors
13192         - update a list of source files, included into the project
13193
13194         * sdcc/src/avr/avra.dsp, sdcc/src/ds390/ds390a.dsp, sdcc/src/mcs51/mcs51a.dsp,
13195           sdcc/src/pic/pica.dsp, sdcc/src/z80/z80a.dsp:
13196         changed project type to Generic Project so that can be correcly converted to VS.NET project
13197
13198         * sdcc/as/mcs51/asm.h: definition of PATH_MAX for MSC
13199
13200         * sdcc/src/SDCCast.c: solved MSC error in function decorateType()
13201
13202         * sdcc/src/SDCC.y: added missing ending ';' to rules to get rid of bison warnings
13203
13204         * dcc/src/ds390/ralloc.c, sdcc/src/mcs51/ralloc.c:
13205         added return 0 statements after assert() to make compiler happy
13206
13207         * sdcc/src/xa51/peeph.rul, sdcc/src/xa51/peeph.def, sdcc/src/z80/ralloc.c:
13208         added newline in the def file to keep MSC compiler satisfied
13209
13210         * sdcc/src/z80/gen.c:
13211         - function strcasecmp() is not defined in MSC (and probably also in BORLANDC),
13212           so it is replaced with STRCASECMP, which is defined as stricmp in case of MSC and BORLANDC
13213         - solved MSC error in function aopDump()
13214
13215         * sdcc_vc.h: define PREFIX as "\\sdcc"
13216
13217 2002-07-18  Bernhard Held <bernhard AT bernhardheld.de>
13218         * src/SDCCast.c (decorateType): fixed access to array of structures http://sourceforge.net/mailarchive/forum.php?thread_id=902690&forum_id=4107
13219
13220 2002-06-22  Scott Dattalo <scott AT dattalo.com>
13221         * src/pic/*: Numerous bug fixes. Flow analysis has been enhanced.
13222         - Rewrote the register banking algorithm.
13223         - Added pCode live-range analysis to registers (for now, only non-used and
13224         singly-used registers optimized away)
13225
13226         * src/pic/pcoderegs.[ch]: Added new files for pCode live-range analysis
13227
13228         * 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.
13229
13230 2002-05-10  Scott Dattalo <scott AT dattalo.com>
13231         * src/pic/*: Added support for multiplication. Fixed many,many bugs.
13232
13233 2002-04-22  Michael Hope  <michaelh AT vroom>
13234
13235         * device/lib/z80/printf.c: Changed emitter to volatile to work around a pcall bug.
13236
13237         * configure.in (DD_COPT): Added include support required for gbdk.
13238
13239         * .version: Bumped version number just to increase it.
13240
13241         * src/SDCCmain.c: Added -nostdinc to the default options.
13242
13243 2002-04-15  Michael Hope  <michaelh AT vroom>
13244
13245         * device/lib/z80/printf.c (sprintf): Added.
13246
13247         * src/z80/ralloc.c (packRegisters): Disabled pack HL use for GB as it's broken.
13248
13249         * src/z80/peeph.def: Added transpose redundent load rule.
13250
13251         * src/z80/main.c: Added force callee saves for jaune.
13252
13253         * src/port.h: Removed the i186 and tlcs-900h ports as they weren't being being developed.
13254
13255         * src/SDCCmain.c: Pulled the options definition out so that you can add port specific options without changing the main file.
13256
13257 2002-03-28  Johan Knol  <johan AT balder>
13258
13259         * src/SDCCval.c: fixed bug #532436
13260
13261 2002-03-14  Scott Dattalo <scott AT dattalo.com>
13262         * /src/port.h:
13263         Added "char *Processor" field to the port structure.
13264
13265         * /src/SDCCmain.c:
13266         Added -p option. Allows port dependent processor to be specified.
13267
13268         * all ports:
13269         Initialized the new field char *Processor field to NULL in all ports
13270
13271         * /src/pic/*:
13272         Compiler generated registers for interrupt context saving
13273         were not getting allocated.
13274
13275 2002-03-16  Sandeep Dutta  <sandeep AT ddi.com>
13276
13277         * /src/SDCCast.c:
13278         Fixed left shift. Will promote the left side of a left shift
13279         if a) left shifting more than size of operand or b) when assigned
13280         to something size > size of left side
13281
13282 2002-03-14  Scott Dattalo <scott AT dattalo.com>
13283         * src/pic/*
13284         tons of changes. Register allocation has been
13285         rewritten. Added customization for the various PICs. Flow
13286         analysis is restructured. ...
13287
13288         * src/pic/device.h:
13289         Added
13290
13291         * src/pic/device.c:
13292         Added. device.c is a PIC port hack to accomodate variations
13293         in PIC devices.
13294
13295 2002-03-13  Michael Hope  <michaelh AT vroom>
13296
13297         * src/z80/gen.c (genGenPointerGet): Fixed a bug where a pointer in HL is dereferenced into HL but HL is not spilled.  Yeah.
13298
13299 2002-03-04  johanknol  <johanknol AT manik>
13300
13301         * /src/SDCCval.c: fixed
13302
13303         const unsigned char arr[][2] = { { 0, 1 } };
13304         t18.c:1: error: Initializer element is not constant
13305
13306 2002-03-04  bela  <bela AT manik>
13307
13308         * /device/include/mcs51reg.h:
13309         ds89c420 register definition update
13310
13311 2002-03-03    <johan AT FRIJA>
13312
13313         * support/Util/SDCCerr.c: did something, but don't no why anymore
13314
13315         * support/regression/tests/bug-524691.c: made it a little less shy
13316
13317         * src/SDCCast.c (decorateType): fixed bug #524697
13318
13319         * src/SDCCast.c: made some lineno improvements
13320
13321         * src/SDCCval.c (getNelements): changed warning to error
13322
13323         * src/SDCCglue.c (printIvalArray): changed warning to error
13324
13325         * src/SDCCicode.c: fixed a warning for mingw
13326
13327         * src/SDCCast.c (decorateType): fixed the << promotion for ops
13328
13329         * src/SDCCicode.c (geniCodeDivision): divide is shift only for unsigned (bug #524685)
13330
13331 2002-03-02  Sandeep Dutta  <sandeep AT ddi.com>
13332
13333         * src/ds390/peeph.def:
13334         Added some more peephole rules
13335
13336         * src/ds390/gen.c: Various fixes & enhancements
13337
13338         * src/SDCClrange.c, src/SDCClrange.h:
13339         functions "alldefsoutofrange" and "notusedinblock" moved to SDCClrange.c
13340
13341         * src/ds390/ralloc.c:
13342         various fixes & enhancements (ds390) specific
13343
13344         * src/avr/ralloc.c, src/mcs51/ralloc.c, src/pic/ralloc.c, src/xa51/ralloc.c, src/z80/ralloc.c:
13345         Functions "allDefsOutOfRange" & "notUsedinBlock" moved to SDCClrange.c
13346         from rallocs.
13347
13348         * sdcc/src/SDCCcse.c: Better fix for bug # 514308
13349
13350 2002-03-02    <johan AT FRIJA>
13351
13352         * src/SDCCast.c (decorateType): fixed bug #524708
13353
13354         * src/SDCCval.c (floatFromVal): fixed the literal void (whatever that may be)
13355
13356         * src/SDCCicode.c (geniCodePtrPtrSubtract): fixed bug #524691
13357
13358 2002-03-01  Michael Hope  <michaelh AT vroom>
13359
13360         * src/SDCCsymt.c (initCSupport): Removed managling of support function names.
13361
13362         * src/z80/ralloc.c (packRegsForIYUse): Fixed fp bug where four byte operands were packed into IY.
13363
13364 2002-03-01    <johan AT FRIJA>
13365
13366         * src/SDCCglue.c (printIvalPtr): fixed bug #524211
13367
13368         * src/SDCCast.c (decorateType): fixed bug #524209
13369
13370         * src/SDCCval.c (valNot): fixed bug #524195
13371
13372 2002-02-26    <johan AT balder>
13373
13374         * src/xa51/gen.c: fixed a warning
13375
13376         * src/SDCCglue.c (printIvalFuncPtr): fixed bug #522534
13377
13378         * src/SDCCast.c (decorateType): fixed bug #522534
13379
13380 2002-02-23    <johan AT balder>
13381
13382         * src/SDCCdflow.c (computeDataFlow): fixed bug #460088
13383
13384 2002-02-22    <johan AT balder>
13385
13386         * src/SDCCast.c: fixed bug #514865
13387
13388         * src/SDCCy.c ("SDCC.y"): fixed bug #516625
13389
13390 2002-02-21  Sandeep Dutta  <sandeep AT ddi.com>
13391
13392         * sdcc/src/SDCCloop.c:
13393         Previous fix was not good. basic blocks that have "break" or "return" are
13394         not really partof a loop , but live ranges used in these blocks should
13395         be live thru the entire loop, so set partOfLoop but don't add them to
13396         loop region
13397
13398 2002-02-21    <johan AT FRIJA>
13399
13400         * src/SDCCcse.c: fixed bug #514308
13401
13402 2002-02-20  Sandeep Dutta  <sandeep AT ddi.com>
13403
13404         * src/SDCCloop.c:
13405         Fixed BUG #519583. If a conditional block ended in a return/break
13406         statement inside a loop, it was not being considered part of the loop.
13407
13408         * src/SDCCcflow.c: Removed fix (Fixed in SDCCloop.c)
13409
13410 2002-02-10  Karl Bongers <karl AT turbobit.com>
13411
13412         * debugger/*:
13413         Fixed up SDCDB debugger somewhat.  Updated debugger/README
13414         with lots of comments and notes.
13415
13416         * device/examples/test2.c:
13417         Fix bug, "red" variable not being initialized(compiler complained).
13418
13419         * device/examples/Makefile, examples/test3.c:
13420         Add Makefile in device/examples folder, compiles test3.c
13421         for use as a multiple module SDCDB test case.
13422
13423         * sim/ucsim/cmd.src/cmdset.cc:
13424         Took out debug printfs in ucsim "next" command.
13425
13426         * sim/ucsim/xa.src:
13427         Karl and Johan start ucsim XA support.  Most dissassembly working,
13428         about 75% emulation done(plenty of work remaining).
13429
13430         * sim/ucsim/z80.src:
13431         Add Z80 support to ucsim, add test-ucz80 regression test,
13432         notice ucsim/z80 emulation fails on examples/test3.c/itoa code.
13433         Notice z80 compiler fails on examples/test3.c/crc code.
13434
13435 2002-01-30  Sandeep Dutta  <sandeep AT ddi.com>
13436
13437         * src/mcs51/gen.c, src/mcs51/main.c, src/mcs51/ralloc.c:
13438         Added support for --parms-in-bank1
13439
13440         * src/ds390/peeph.def:
13441         added a few more peephole optimzations
13442
13443         * src/ds390/main.c:
13444         1) added __builtin_inp & __builtin_outp used to read in data of given length
13445            from a memory mapped port
13446         2) added __builtin_memcmp
13447         3) added __builtin_swapw swap bytes of a short
13448
13449         * src/ds390/gen.c, src/ds390/gen.h, src/ds390/ralloc.c:
13450         1) handle multiple send & receives from register bank1
13451         2) ralloc can now allocate DPTR1 to some liveRanges
13452
13453         * src/SDCCsymt.c, src/SDCCsymt.h:
13454         changes to handle multiple sends & receives
13455
13456         * src/SDCCptropt.h:
13457         added some pointer arithmetic optimization
13458
13459         * src/SDCCptropt.c:
13460         added some pointer arithmetic optimizations but not stable yet so not
13461         called from anywhere (will get this working shortly)
13462
13463         * src/SDCCopt.c: fixed for multiple sends & receives
13464
13465         * src/SDCCmain.c:
13466         1) added options --parms-in-bank1 (ds390/mcs51) & --protect-sp-update
13467         2) preprocessing done AFTER port->finalizeoptions . This allows ports to
13468            set preprocessor defines (depending on options)
13469
13470         * src/SDCCicode.c, src/SDCCicode.h:
13471         changes made to handle multiple sends & receives
13472
13473         * src/SDCCglobl.h:
13474         Added options --protect-sp-update (ds390) and --parms-in-bank1 (ds390/mcs51)
13475
13476         * src/SDCCcse.c, src/SDCCcse.h:
13477         added function findbackward def (to be used in upcoming optimization)
13478
13479         * src/SDCCcflow.c, src/SDCCcflow.h:
13480         added function returnAtEnd - to determine if a basic block terminates with
13481         a RETURN iCode
13482
13483         * src/SDCCast.c, src/SDCCast.h:
13484         added option parms-in-bank1
13485
13486         * device/lib/_divsint.c, device/lib/_divslong.c, device/lib/_divuint.c
13487         * device/lib/_divulong.c, device/lib/_modsint.c, device/lib/_modslong.c
13488         * device/lib/_modulong.c, device/lib/_mulint.c, device/lib/_mullong.c:
13489         adjusted for --parms-in-bank1 option
13490
13491         * device/include/string.h:
13492         donot redefine "reentrant" keyword
13493
13494         * device/include/ds80c390.h: Added some more SFRs
13495
13496 2002-01-28  Bernhard Held  <bernhard AT bernhardheld.de>
13497
13498         * sim/ucsim: Merged branch ucsim-034-pre3 to main trunk; new version 0.4
13499
13500 2002-01-26  Bernhard Held  <bernhard AT bernhardheld.de>
13501
13502         * src/SDCCast.c (funcOfType): fix usage of double --float-reent
13503
13504 2002-01-22  Bernhard Held  <bernhard AT bernhardheld.de>
13505
13506         * support/regression/fwk/lib/testfwk.c (main): Removed workaround for bug #505387
13507
13508 2002-01-18  Paul Stoffregen  <paul AT pjrc.com>
13509
13510         * Added --xram-movc option
13511
13512 2002-01-13  Bernhard Held  <bernhard AT bernhardheld.de>
13513
13514         * support/regression/Makefile: don't include test-mcs51-stack-auto in target all
13515
13516 2002-01-11  Johan Knol
13517
13518         * Added math lib of Jesus Calvino-Fraga
13519
13520 2002-01-08  Bernhard Held  <bernhard AT bernhardheld.de>
13521
13522         * src/SDCCmain.c (processFile): fix processing of ../../src.c
13523         * support/regression/Makefile: new target test-mcs51-stack-auto
13524         * support/regression/ports/mcs51-stack-auto/spec.mk: added
13525
13526 2002-01-04  Bernhard Held  <bernhard AT bernhardheld.de>
13527
13528         * src/SDCCglue.h: printIvalCharPtr(), not printIvalChar()
13529
13530 2002-01-04  Bernhard Held  <bernhard AT bernhardheld.de>
13531
13532         * support/regression/ports/mcs51/support.c: correct setup of timer / UART
13533
13534 2002-01-03  Bernhard Held  <bernhard AT bernhardheld.de>
13535
13536         * src/SDCCsymt.c (processFuncArgs): fix #498307 by Johan
13537
13538         * src/SDCCglue.h: add definition for printIvalChar()
13539
13540 2002-01-02  Bernhard Held  <bernhard AT bernhardheld.de>
13541
13542         * src/SDCCast.c: fix #498138 by Johan
13543
13544         * src/SDCCglue.c: fix #498138 by Johan
13545
13546 2002-01-02  Bernhard Held  <bernhard AT bernhardheld.de>
13547
13548         * support/regression/Makefile: fix clean
13549
13550         * support/regression/ports/ds390/support.c: fix transmission of last character
13551
13552 2001-12-29  Sandeep Dutta  <sandeep AT ddi.com>
13553
13554         * /sdcc/src/ds390/gen.c:
13555         a) improved computing address of stack variable
13556         b) took out some #if 0 code
13557         c) improved parmBytes adjustment
13558         d) improved genPlusIncr & genMinusIncr
13559         e) genCmp could generate bad code (when left assigned to DPTR)
13560         f) Fixed bug in hasInc
13561
13562         * /sdcc/src/ds390/ralloc.c:
13563         a) packRegsForSupport could mess up live information (Fixed)
13564         b) packRegsDPTRuse could be incorrect for left & right shift
13565
13566         * /sdcc/src/mcs51/ralloc.c:
13567         packRegsForSupport could mess up the live information (Fixed)
13568
13569         * /sdcc/src/mcs51/gen.c: Fixed a bug in hasInc
13570
13571         * /sdcc/src/SDCCast.c:
13572         can reverse a loop even if function call is present as long
13573         as the loop control variable is local & is not passed as parameter
13574
13575 2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>
13576
13577         * /sdcc/ChangeLog: *** empty log message ***
13578
13579         * /sdcc/src/ds390/gen.c, /sdcc/src/ds390/main.c:
13580         More builtin function additions for TININative
13581
13582         * /sdcc/src/ds390/ralloc.c:
13583         Had broken the regression testsuite
13584
13585         * /sdcc/src/SDCCast.c: Fixed a bug in dumptree
13586
13587         * /sdcc/src/SDCCsymt.c, /sdcc/src/SDCCsymt.h:
13588         Added funcattr hasStackParms will be set for reentrant functions when there
13589         are paramteres on the stack, this helps in minimizing frame pointer generation
13590         typeFromStr can handle function pointers now
13591
13592         * /sdcc/doc/builtins.txt, /sdcc/doc/TININative.txt:
13593         *** empty log message ***
13594
13595 2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>
13596
13597         * /src/ds390/gen.c, /src/ds390/main.c:
13598         More builtin function additions for TININative
13599
13600         * /src/ds390/ralloc.c:
13601         Had broken the regression testsuite
13602
13603         * /src/SDCCast.c: Fixed a bug in dumptree
13604
13605         * /src/SDCCsymt.c, /src/SDCCsymt.h:
13606         Added funcattr hasStackParms will be set for reentrant functions when there
13607         are paramteres on the stack, this helps in minimizing frame pointer generation
13608         typeFromStr can handle function pointers now
13609
13610         * /doc/builtins.txt, /doc/TININative.txt:
13611         *** empty log message ***
13612
13613
13614 2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>
13615
13616         * /src/ds390/gen.c, /src/ds390/main.c, /src/ds390/peeph.def, /src/ds390/ralloc.c:
13617         ALPHA version for -mTININative
13618
13619         * /src/izt/i186.c, /src/izt/tlcs900h.c, /src/mcs51/main.c, /src/pic/main.c, /src/z80/main.c, /src/avr/main.c:
13620         updated to reflect changes in the port structure
13621
13622         * /src/port.h:
13623         added function do_assemble (similar to do_link) if non-null this function
13624         will be called to do assembly (-mTININative) requires a multi command
13625         assembly
13626         added function genAssemblerEnd will be called to generate assembler Epilogue
13627
13628         * /src/SDCCsymt.c:
13629         added _JavaNative to debug info printing
13630
13631         * /src/SDCCmain.c: added option --tini-libid
13632         added port->do_assemble function (-mTININative) has a multi command assemble
13633
13634         * /src/SDCCglue.c: Disabled "constExpr" check
13635         added port->genAssemblerEnd function
13636
13637         * /src/SDCCglobl.h: Added option --tini-libid value
13638
13639         * /src/SDCCast.h:
13640         tookout optimizeCompare from the header (has no external references)
13641
13642         * /src/SDCCast.c: made one more function "static"
13643
13644 2001-12-23  Michael Hope  <michaelh AT juju.net.nz>
13645
13646         * src/z80/mappings.i: Added z80asm support.
13647
13648         * src/z80/main.c: Added z80asm support on --asm=z80asm
13649
13650         * src/z80/gen.c: Fixed asm portability issues.
13651
13652         * src/asm.c (tvsprintf): Removed old code, added 'N' for function name.  For extern support.
13653
13654         * src/SDCCglue.c (printExterns): Added global/extern split.
13655
13656 2001-12-17  Bernhard Held  <bernhard AT bernhardheld.de>
13657
13658         * support/regression/Makefile: added test for mcs51 model large
13659
13660         * support/regression/ports/mcs51-large/spec.mk: added test for mcs51 model large
13661
13662         * support/regression/ports/gbz80/spec.mk: added -mgbz80
13663
13664 2001-12-05  Michael Hope  <michaelh AT juju.net.nz>
13665
13666         * src/diff.1 (Index): Many, many optmisiations.  Dhrystone up to 201.
13667
13668 1904-01-06  Michael Hope  <michaelh AT juju.net.nz>
13669
13670         * src/z80/ralloc.c (packRegsForIYUse): Fixed the case where an operand is in direct space.
13671
13672         * src/z80/gen.c (makeFreePairId): Optimised IY load by using a spare pair.
13673
13674 2001-12-02  Bernhard Held  <bernhard AT bernhardheld.de>
13675
13676         * src/mcs51/gen.c (genFunction): avoid excess "inc sp"
13677
13678         * support/regression/tests/simplefloat.c: Port to mcs51.
13679
13680 2001-11-25  Michael Hope  <michaelh AT juju.net.nz>
13681         * support/regression/tests/bug-485362.c: Added.
13682
13683         * support/regression/tests/simplefloat.c (testDivNearOne): Added.
13684
13685         * src/z80/gen.c (aopOp): Fixed case where left and result are in the same spill loc and they have different sizes.
13686
13687         * src/z80/peeph.def: Added rules for optimising two byte compares on the same thing, and to optimise two ptr assign.
13688
13689         * src/z80/gen.c (aopDump): Added a dump function.
13690
13691 2001-11-25  Bernhard Held  <bernhard AT bernhardheld.de>
13692         * sim/ucsim/s51.src/glob.cc: DS390 SFRs and bits added.
13693
13694         * sim/ucsim/s51.src/port.cc: Port 4 and 5 added.
13695
13696         * sim/ucsim/s51.src/regs51.h: DS390 SFRs added.
13697
13698         * sim/ucsim/s51.src/uc390.cc: Some details improved, CKRDY works for tinibios.
13699
13700         * sim/ucsim/s51.src/uc390cl.h: Work in progress.
13701
13702         * sim/ucsim/sim.src/uccl.h: 6 ports for DS390.
13703
13704         * support/regression/fwk/lib/testfwk.c: Run with tinibios.
13705
13706         * support/regression/ports/mcs51/spec.mk: Fine tuninig.
13707
13708         * support/regression/ports/ds390/support.c: Use tinibios.
13709
13710         * support/regression/ports/ds390/spec.mk: Fine tuning, use tinibios.
13711
13712 2001-11-23  Michael Hope  <michaelh AT juju.net.nz>support/regression/tests/bug-460010.c
13713
13714         * src/z80/ralloc.c (packRegsForHLUse3): Changed to not pack into HL if anything is in direct space.
13715         (packRegsForHLUse3): Added packing support for send, cast, and return value from a call.
13716
13717         * src/z80/peeph.def: Added rules for optimising pushes of part of a pair.
13718
13719         * src/z80/gen.c (emitCall): Changed the stack fixup to not use HL.
13720
13721 2001-11-18  Michael Hope  <michaelh AT juju.net.nz>
13722
13723         * src/z80/gen.c (genCmp): Fixed compare on unsigned.
13724
13725         * src/z80/ralloc.c (packRegsForHLUse3): Created and optimised.
13726         (packRegsForIYUse): Created and optimised.
13727
13728 2001-11-07  Michael Hope  <michaelh AT juju.net.nz>
13729
13730         * support/regression/tests/float.c (testFloatAdd): Fixed up warning.
13731 2001-11-18  Bernhard Held  <bernhard AT bernhardheld.de>
13732
13733         * sdcc/support/regression/tests/bug-460010.c: fix seg violation on host
13734
13735         * sdcc/support/regression/tests/muldiv.c: fix output on mcs51
13736
13737         * sdcc/support/regression/tests/stacks.c: fix DSEG overflow on mcs51
13738
13739 2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>
13740
13741         * sdcc/sim/device/lib/_gptrget.c: mem region 5 (idata) added
13742
13743         * sdcc/sim/device/lib/_gptrput.c: mem region 5 (idata) added
13744
13745 2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>
13746
13747         * sdcc/sim/ucsim/globals.cc: New: IXRAM.
13748
13749         * sdcc/sim/ucsim/stypes.h: New: IXRAM.
13750
13751         * sdcc/sim/ucsim/s51.src/uc390.cc: New: IXRAM.
13752
13753 2001-11-07  Michael Hope  <michaelh AT juju.net.nz>
13754
13755         * src/z80/ralloc.c (packRegsForHLUse): Banned IFXs from being packed into HL.
13756         (packRegsForHLUse): Added rule to pack address of/pointer get for itemps into HL for the Z80.
13757         (packRegsForAccUse2): Added rule to pack hbit IFXs into A.
13758
13759         * src/z80/main.c (_setDefaultOptions): Made float code re-entrant by default.
13760
13761         * src/z80/gen.c (aopGetLitWordLong): Added word support for floats.
13762         (genNotFloat): Added.
13763         (genUminusFloat): Added.
13764
13765         * device/lib/z80/Makefile: Added floating pt stubs.
13766
13767         * device/lib/Makefile.in (Z80SOURCES): Added floating pt support.
13768
13769         * src/z80/gen.c (genIpush): Fixed up a push of one byte when left is in a pair.
13770
13771         * device/lib/_fsadd.c (__fsadd): Fixed up return where the numbers are hugely different.
13772
13773 2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>
13774
13775         * sdcc/sim/ucsim/s51.src/glob.cc: Minor fix.
13776
13777         * sdcc/sim/ucsim/s51.src/regs51.h: Minor fix.
13778
13779         * sdcc/support/regression/Makefile: Add port ds390.
13780
13781         * sdcc/support/regression/ports/mcs51/spec.mk: Minor change.
13782
13783         * sdcc/support/regression/ports/z80/spec.mk: Minor change.
13784
13785         * sdcc/support/regression/ports/ds390/spec.mk: Added.
13786
13787         * sdcc/support/regression/ports/ds390/support.c: Added.
13788
13789         * sdcc/support/regression/ports/ds390/uCsim.cmd: Added.
13790
13791         * sdcc/support/regression/ports/mcs51/timeout.c: Cut.
13792
13793         * sdcc/support/regression/fwk/lib/timeout.c: Paste.
13794
13795 2001-11-04  Michael Hope  <michaelh AT juju.net.nz>
13796
13797         * device/include/malloc.h: Added z80 and gbz80 support.
13798
13799         * device/lib/gbz80/heap.s: Added.
13800
13801         * device/lib/z80/heap.s: Added.
13802
13803         * device/lib/malloc.c: Added z80 and gbz80 support.
13804
13805         * support/regression/tests/malloc.c (testMalloc): Added.
13806
13807         * src/SDCCmain.c (parseCmdLine): Added support for -Wp.
13808
13809         * support/regression/tests/bug-478094.c: Added.
13810
13811         * src/z80/gen.c (commitPair): Fixed silly gbz80/z80 commit to static bug.
13812
13813 2001-11-04  Bernhard Held  <bernhard AT bernhardheld.de>
13814
13815         * sdcc/sim/ucsim/s51.src/uc390cl.h: Improvement for ds390 to run regression tests
13816
13817         * sdcc/sim/ucsim/s51.src/uc390.h: Improvement for ds390 to run regression tests
13818
13819         * sdcc/sim/ucsim/s51.src/regs51.h: Improvement for ds390 to run regression tests
13820
13821         * sdcc/sim/ucsim/s51.src/glob.cc: Improvement for ds390 to run regression tests
13822
13823         * sdcc/support/regression/tests/bug-460010.c: Small change for ds390
13824
13825 2001-11-04  Michael Hope  <michaelh AT juju.net.nz>
13826
13827         * src/z80/peeph-gbz80.def: Removed a bad sub optimisation.
13828
13829 2001-11-03  Michael Hope  <michaelh AT juju.net.nz>
13830
13831         * support/regression/tests/bug-477927.c: Added.
13832
13833         * src/z80/peeph.def: Added minor rules.
13834
13835         * src/z80/gen.c (genPlusIncr): Added an extra plusinc rule.
13836
13837         * src/z80/peeph.def: Added jump optimisation modification.
13838
13839 2001-11-01  Michael Hope  <michaelh AT juju.net.nz>
13840
13841         * src/SDCCmain.c (linkEdit): Added runtime path detection to the mcs51 port.
13842
13843 2001-10-30  Michael Hope  <michaelh AT juju.net.nz>
13844
13845         * support/regression/tests/funptrs.c: Added.
13846
13847 2001-10-29  Michael Hope  <michaelh AT juju.net.nz>
13848
13849         * src/z80/ralloc.c (packRegsForHLUse): Fixed up bad spill due to pushing one byte via HL.
13850
13851 2001-10-28  Michael Hope  <michaelh AT juju.net.nz>
13852
13853         * src/z80/gen.c (genArrayInit): Made it work for on stack arrays.
13854
13855         * src/z80/main.c (gbz80_port =): Added rle support to the gbz80 port.
13856
13857         * src/z80/gen.c (genMinus): Fixed for where the result is one byte.
13858         (movLeft2ResultLong): Created.
13859
13860         * src/z80/ralloc.c (packRegsForHLUse): Added a couple of simple cases for the GB.
13861         (joinPushes): Added.  Joins two char pushes into a word push.
13862
13863 2001-10-27  Michael Hope  <michaelh AT juju.net.nz>
13864
13865         * support/cpp2/Makefile.in (install): Added creation of dest dir.
13866
13867         * support/makebin/Makefile (install): Added creation of dest dir.
13868
13869 2001-10-24 Karl Bongers <karl AT turbobit.com>
13870
13871         * configure.in, configure, Makefile, support/cpp: Removed cpp folder, since we have new cpp2 preprocessor code.
13872
13873 2001-10-21  Michael Hope  <michaelh AT juju.net.nz>
13874
13875         * src/z80/ralloc.c: Turned off faulty pack for one use.
13876
13877         * src/z80/peeph-gbz80.def: Removed redundent restart options.
13878
13879         * src/z80/gen.c (genMult): Added native mul for constants on the z80 and gbz80.
13880
13881 2001-10-21  Bernhard Held  <bernhard AT bernhardheld.de>
13882
13883         * support/regression/Makefile: Improved clean
13884
13885         * support/regression/ports/gbz80/spec.mk: Added clean
13886
13887         * support/regression/ports/host/spec.mk: Added clean
13888
13889         * support/regression/ports/z80/spec.mk: Added clean
13890
13891         * support/regression/ports/mcs51/spec.mk: Added clean, little improvements
13892
13893         * support/regression/ports/mcs51/timeout.c: little improvements
13894
13895 2001-10-17  Michael Hope  <michaelh AT juju.net.nz>
13896
13897         * device/lib/malloc.c (MEMHEADER): Fixed against new pedantic pointers.
13898
13899         * support/regression/fwk/include/testfwk.h: Fixed up to use function pts correctly.
13900
13901         * support/regression/generate-cases.py: Fixed up to use function pts correctly.
13902
13903 2001-10-16  Bernhard Held  <bernhard AT bernhardheld.de>
13904
13905         * support/regression/port/mcs51/spec.mk: add timeout for uCsim
13906
13907         * support/regression/port/mcs51/timeout.c: add timeout for uCsim
13908
13909 2001-10-13  Michael Hope  <michaelh AT juju.net.nz>
13910         * src/z80/gen.c (emitCall): Fixed up missing spill of HL when used to assign the result value.
13911
13912         * src/z80/ralloc.c: Turned off pack for one use as it's quite broken.
13913
13914         * src/SDCCmain.c (linkEdit): Added support for passing a legacy command line through the processor.
13915
13916         * src/mcs51/main.c (_linkCmd): Added bin path to command.
13917
13918         * src/SDCCmain.c (initValues): Added support for when it it called just to link.
13919
13920         * as/mcs51/lklibr.c (libfil;): Turned off 'library file' message.
13921
13922         * src/SDCCval.c (constVal): Fixed usage of 'L' modifier problems on ppc.
13923
13924         * support/regression/tests/longor.c: Added.
13925
13926 2001-10-11  Bernhard Held  <bernhard AT bernhardheld.de>
13927
13928         * as/mcs51/asdata.c: replaced FILENAME_MAX with PATH_MAX
13929
13930         * as/mcs51/aslink.h: define PATH_MAX
13931
13932         * as/mcs51/asm.h: define PATH_MAX
13933
13934         * as/mcs51/asmain.c: replaced FILENAME_MAX with PATH_MAX
13935
13936         * as/mcs51/asnoice.c: replaced FILENAME_MAX with PATH_MAX
13937
13938         * as/mcs51/lklex.c: replaced FILENAME_MAX with PATH_MAX
13939
13940         * as/mcs51/lkmain.c: replaced FILENAME_MAX with PATH_MAX
13941
13942         * src/SDCCglobl.h: define PATH_MAX
13943
13944         * src/SDCCmacro.c: replaced FILENAME_MAX with PATH_MAX
13945
13946         * src/SDCCmain.c: replaced FILENAME_MAX with PATH_MAX
13947
13948 2001-10-11  Michael Hope  <michaelh AT juju.net.nz>
13949
13950         * src/z80/gen.c (gencjneshort): Fixed
13951
13952         * src/z80/ralloc.c (packRegsForHLUse): Added pack into HL for cast then ipush.
13953
13954 2001-10-09  Michael Hope  <michaelh AT juju.net.nz>
13955
13956         * support/regression/tests/bug-469671.c: Added.
13957
13958         * src/z80/gen.c (shiftIntoPair): Fixed up warning.
13959
13960 2001-10-08  Michael Hope  <michaelh AT juju.net.nz>
13961
13962         * src/SDCCmain.c: Added --fommit-frame-pointer option and implemented in the z80 port.
13963
13964         * src/z80/gen.c (genPlus): Fixed to work with extended stack.  Also fixed genMinus, genCmp.  genUMinus is still left.
13965
13966 2001-10-08  Bernhar Held  <bernhard AT bernhardheld.de>
13967
13968         * src/SDCCmain.c (preProcess): added define SDCC_NOOVERLAY
13969
13970         * src/device/lib/_mulint.c  : removed hint: nooverlay bug
13971
13972         * src/device/lib/_mullong.c : removed hint: nooverlay bug
13973
13974         * src/device/lib/_divuint.c : removed hint: nooverlay bug
13975
13976         * src/device/lib/_divulong.c: removed hint: nooverlay bug
13977
13978         * src/device/lib/_moduint.c : removed hint: nooverlay bug
13979
13980         * src/device/lib/_modulong.c: removed hint: nooverlay bug
13981
13982 2001-10-07  Michael Hope  <michaelh AT juju.net.nz>
13983
13984         * 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.
13985
13986         * support/Util/NewAlloc.c (freeTrace): Changed free for the gc case to not free at all.  Fixes runtime segfault.
13987
13988         * support/regression/tests/scott-compare3.c (c_abcd): Fixed up casts.
13989
13990 2001-10-07    <johan AT FRIJA>
13991
13992         * device/lib/gets.c (gets): fixed the return value.
13993
13994 2001-10-06  Michael Hope  <michaelh AT juju.net.nz>
13995         * src/SDCCmain.c (WRITE_SEG_LOC): Fixed up to use Safe_strdup.
13996
13997         * 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.
13998
13999         * 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.
14000
14001         * src/z80/gen.c (genZ80Code): Added de-allocation via trace support.
14002
14003         * src/pic/gen.c: Removed Safe_strdup.
14004
14005         * configure.in: Added option to enable libgc support.
14006
14007         * src/SDCCbitv.c (bitVectnBitsOn): Optimised.
14008         (bitVectUnion): Optimised.
14009         (bitVectIntersect): Optimised.
14010         (bitVectBitsInCommon): Optimised.
14011         (bitVectCplAnd): Optimised.
14012
14013         * support/makebin/makebin.c (usage): Removed getopt as mingw32 doesn't have it.  Sigh.
14014
14015 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
14016
14017         * src/SDCCmain.c: distinguish between assembler debug and plain options
14018
14019         * src/avr/main.c:   remove standard assembler options
14020
14021         * src/ds390/main.c: remove standard assembler options
14022
14023         * src/mcs51/main.c: remove standard assembler options
14024
14025         * src/port.h: removed "PENDING" comment
14026
14027 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
14028
14029         * src/device/lib/_mulint.c  : new, with assember functions
14030
14031         * src/device/lib/_mullong.c : new, with assember functions
14032
14033         * src/device/lib/_divuint.c : with assember functions
14034
14035         * src/device/lib/_divsint.c : with assember functions
14036
14037         * src/device/lib/_divulong.c: with assember functions
14038
14039         * src/device/lib/_divslong.c: with assember functions
14040
14041         * src/device/lib/_moduint.c : with assember functions
14042
14043         * src/device/lib/_modsint.c : with assember functions
14044
14045         * src/device/lib/_modulong.c: with assember functions
14046
14047         * src/device/lib/_modslong.c: with assember functions
14048
14049         * src/device/lib/libint.lib:  replaced _muluint.c  and _mulsint.c  by _mulint.c
14050
14051         * src/device/lib/liblong.lib: replaced _mululong.c and _mulslong.c by _mullong.c
14052
14053         * src/device/lib/Makefile.in: replaced _muluint.c  and _mulsint.c  by _mulint.c
14054                                       replaced _mululong.c and _mulslong.c by _mullong.c
14055
14056 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
14057
14058         * src/SDCCsymt.c: sequence of specifiers in pintTypeChain() corrected
14059
14060 2001-10-01 Bernhard Held <bernhard AT bernhardheld.de>
14061
14062         * src/SDCCglue.c: test, if win32api is available for MINGW
14063
14064 2001-10-01 Bernhard Held <bernhard AT bernhardheld.de>
14065
14066         * src/SDCCsymt.c: no more _modifier in printTypeChain()
14067         * support/regression/tests/driverstruct.c: REENTRANT for mcs51
14068         * support/regression/ports/gbz80/spec.mk: removed GENERIC
14069         * support/regression/ports/host/spec.mk: removed GENERIC
14070         * support/regression/ports/mcs51/spec.mk: removed GENERIC
14071         * support/regression/ports/z80/spec.mk: removed GENERIC
14072
14073 2001-10-01  Michael Hope  <michaelh AT juju.net.nz>
14074
14075         * support/regression/fwk/lib/testfwk.c (__printf): Removed GENERIC.
14076
14077         * support/regression/tests/bug-467035.c: Created.
14078
14079 2001-10-01    <johan AT FRIJA>
14080
14081         * src/SDCC.y: fixed bug #466586 part 1
14082
14083 2001-10-01  Johan Knol <johan.knol AT iduna.nl>
14084
14085         * SDCCicode.c: z80 has no generic pointers
14086         * removed -s from strip in all Makefile(.in)'s. It is not needed, but Solaris chocks on it.
14087
14088 2001-09-30  Michael Hope  <michaelh AT juju.net.nz>
14089
14090         * sim/ucsim/cmd.src/Makefile.in ($(PRJDIR)/libcmd.a): Changed all ar references to $(AR) for Solaris.
14091
14092 2001-09-29  Michael Hope  <michaelh AT juju.net.nz>
14093
14094         * Makefile (sdcc-libs): Added makebin to the list of standard targets.
14095
14096         * support/regression/ports/z80/spec.mk: Updated to use env for sdcc bin dir for automatic regression.
14097
14098 2001-09-25  Michael Hope  <michaelh AT juju.net.nz>
14099
14100         * configure.in: Fixed up so that ucsim is only configured once.
14101
14102         * support/cpp2/configure.in: Fixed to use the program transform to append the .exe for the win32 build.
14103
14104         * src/SDCCutil.c (getPrefixFromBinPath): Fixed up to work with win32 in all of its glory.
14105         (getPathDifference): As above.
14106
14107         * src/SDCCmain.c (preProcess): Changed to use a temporary file in a proper temp directory.  Fixed case where pre-processing only.
14108
14109         * src/SDCCglue.c (tempfilename): Added function for pre-processor.
14110
14111 2001-09-23  Michael Hope  <michaelh AT juju.net.nz>
14112         * .version: Updated to 2.3.1
14113
14114         * src/z80/main.c (z80_port =): Added macro based linker and assembler command line support.
14115         Added copyright header.
14116
14117         * src/SDCCmain.c: Shifted various functions into SDCCutil.c
14118         (assemble): Added support for macro based assembler commands.
14119         (linkEdit): Added support for macro based linker commands.
14120         (preProcess): Changed the pre-processor to use macros.
14121         (_setPaths): Added functionality to autodetect the include, lib and bin dir paths.
14122         (_discoverPaths): Added support for overriding the install directory using the SDCCDIR env variable.
14123
14124         * device/lib/z80/crt0.s: Added module name for debugging.
14125
14126 2001-09-20  Michael Hope  <michaelh AT juju.net.nz>
14127
14128         * src/SDCCmain.c (printVersionInfo): Added the build date to the version info.
14129
14130         * src/SDCChasht.c (hTabDeleteByKey): Fixed delete as it would delete the last item from a bucket even if it wasn't the real one.
14131
14132         * src/SDCCglue.c: Moved gc_strdup to SDCCutil.c
14133
14134         * src/Makefile.in: Added SDCCmacro and SDCCutil
14135
14136 2001-09-19  Michael Hope  <michaelh AT juju.net.nz>
14137
14138         * src/SDCCmain.c (printVersionInfo): Added the build date to the version info.
14139
14140 2001-09-16    <johan AT FRIJA>
14141
14142         * 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.
14143
14144 2001-09-15    <johan AT FRIJA>
14145
14146         * src/mcs51/ralloc.c: (findAssignToSym): fixed bug #460662 part 1
14147         * src/ds390/ralloc.c (findAssignToSym): fixed bug #460662 part 1
14148
14149 2001-09-11    <johan AT FRIJA>
14150
14151         * src/SDCCval.c (valDiv Mod Minus Plus Shift): keep litteral expressions as small as possible (bug #460010)
14152
14153 2001-09-10  Michael Hope  <michaelh AT juju.net.nz>
14154
14155         * support/regression/tests/bug-460444.c: Added test case.
14156
14157         * src/z80/gen.c (genOr): bug 460444: if (a ^ lit) was broken for &, |, and ^.
14158         (genCast): Added justification for all of the asserts.
14159
14160 2001-09-10  Bernhard Held <bernhard AT bernhardheld.de>
14161
14162         * support/regression/support.c: _xdata replaced by xdata
14163
14164         * support/regression/spec.mk: removed _generic
14165
14166 2001-09-09  Michael Hope  <michaelh AT juju.net.nz>
14167
14168         * src/pic/ralloc.c (debugLogRegType): Removed some old types to get it to compile.
14169
14170         * src/z80/gen.c (shiftR2Left2Result): Improved the case when v = v >> n for small values of n to use less code space and time.
14171         (genrshTwo): Fixed v = v >> n where v is a negative int and n is > 8: bug 460010.
14172
14173         * src/z80/peeph.def: Added a rule to optimise shift then compare.
14174
14175         * support/regression/tests/bug-460000.c (testShiftByParam): Added test case.
14176
14177         * support/regression/tests/bug-460010.c: Added test case.
14178
14179         * support/regression/Makefile (test-host): Removed a silly 'clean' target when testing against gcc.
14180
14181 2001-09-09  Bernhard Held <bernhard AT bernhardheld.de>
14182
14183         * support/regression/Makefile: inter-port-clean adjusted for mcs51
14184
14185         * support/regression/testfwk.c: removed workaround for bug #436344
14186
14187         * support/regression/tests/bp.c: use less memory with mcs51
14188
14189         * support/regression/tests/bug-441448.c: use less memory
14190
14191         * support/regression/tests/ports/mcs51/spec.mk: cleanup, use --stack-after-data
14192
14193         * support/regression/collate-results.py: typo
14194
14195 2001-09-08  Michael Hope  <michaelh AT juju.net.nz>
14196
14197         * support/regression/tests/fetchoverlap.c: Added new test case.
14198
14199         * support/regression/tests/bp.c: Added new test case.
14200
14201         * support/regression/tests/bug-448984.c: Added new test case.
14202
14203         * support/regression/tests/pow2shifts.c: Added new test case.
14204
14205         * src/z80/gen.c: Turned off the noise it normally generates for the release.
14206         (genlshTwo): Fixed right shift for count > 8.
14207
14208         * src/z80/ralloc.c: Disabled most of the ACC packing rules as they weren't getting hit and weren't at all safe.
14209
14210 2001-09-08    <johan AT FRIJA>
14211
14212         * src/SDCCicode.c (geniCodeCall): a CPOINTER can be used as a function
14213
14214 2001-09-07    <johan AT FRIJA>
14215
14216         * src/SDCCicode.c (newiCodeCondition): fixed bug #456235 (1.77)
14217
14218         * src/SDCCglue.c (emitRegularMap): only delete a symbol when it is a symbol
14219
14220 2001-09-06    <johan AT FRIJA>
14221
14222         * src/SDCC.y: this could be a fix for bug #458744 (1.37)
14223         * bernhard noted me at this: "() equals to (void)" (1.38)
14224
14225 2001-09-05    <johan AT FRIJA>
14226
14227         * src/SDCCglue.c (emitRegularMap): a fix for bug #458099/2
14228
14229 2001-09-04    <johan AT FRIJA>
14230
14231         * src/SDCCsymt.c (checkSClass): a fix for bug #458099/1
14232
14233
14234 2001-09-04  Paul Stoffregen  <paul AT pjrc.com>
14235
14236         * pragma noinduction broke memcpy on mcs51 large model.  Moved it inside z80 optimization
14237
14238 2001-09-03  Michael Hope  <michaelh AT juju.net.nz>
14239
14240         * link/z80/aslink.h: Fixed path for PATH_MAX
14241
14242 2001-09-02  Michael Hope  <michaelh AT juju.net.nz>
14243
14244         * src/z80/gen.c (fetchLitPair): Changed so that it properly caches direct space references.
14245
14246         * support/regression/tests/addsub.c: Added cases to cover all the +, - combinations.
14247
14248         * support/regression/tests/uminus.c: Added a test for the unary minus operator.
14249
14250         * 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.
14251
14252 2001-09-01  Michael Hope  <michaelh AT juju.net.nz>
14253
14254         * src/z80/gen.c: Fixed up generator to pass the regresion tests, specifically fixing loads for longs, genCmp, and turned on the map file.
14255         (genCmp): Fixed up genCmp for the GB with longs.
14256
14257         * device/lib/gbz80/Makefile: Fixed up all the libraries to pass the regression tests.
14258
14259         * support/regression/ports/host/spec.mk: Updated to compile with the new type specifiers.
14260
14261         * device/lib/Makefile.in (Z80SOURCES): Removed old _mululong, _mulslong, and unneeded _mulint.
14262
14263         * device/lib/_mullong.c (_mulslong): Changed to actually return a value :)
14264
14265 2001-08-30  Paul Stoffregen  <paul AT pjrc.com>
14266
14267         * added peepholes 223 to 231 to mcs51 port.  These improve code when using large model.
14268
14269 2001-08-30  Michael Hope  <michaelh AT juju.net.nz>
14270
14271         * 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.
14272
14273         * src/z80/gen.c (genPlus): Changed bad long add for gb to a fall through.
14274
14275 2001-08-29  Michael Hope  <michaelh AT juju.net.nz>
14276
14277         * link/z80/aslink.h: Fixed long file name support.  Is now based off PATH_MAX instead of a constant.
14278
14279         * src/z80/gen.c: Fixed add and sub for the case where left or right are in static space.
14280
14281 2001-08-30 Bernhard Held   <bernhard AT bernhardheld.de>
14282
14283   * sim/ucsim/configure:    little improvement of Cygwin-detection
14284   * sim/ucsim/configure.in: little improvement of Cygwin-detection
14285   * sim/ucsim/cmd.src/newcmdcl.h: include <sys/types.h> to define fd_set automated build
14286   * support/regression/tests/bug-221100.c: small changes for mcs51
14287   * support/regression/tests/bug-221168.c: small changes for mcs51
14288   * support/regression/tests/bug-227710.c: small changes for mcs51
14289   * support/regression/tests/staticinit.c: small changes for mcs51
14290   * as/mcs51/aslink.h: accept everything as symbol name in rel-files, bug fix ID 452601
14291   * as/mcs51/lklex.c:  accept everything as symbol name in rel-files, bug fix ID 452601
14292   * as/mcs51/lksym.c:  accept everything as symbol name in rel-files, bug fix ID 452601
14293
14294 $Revision$