* src/pic16/genutils.c (pic16_genCmp_special): initialized offs to
[fw/sdcc] / ChangeLog
1 2005-03-15 Vangelis Rokas <vrokas AT users.sourceforge.net>
2
3         * src/pic16/genutils.c (pic16_genCmp_special): initialized offs to
4         prevent compiler warning
5
6 2005-03-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
7
8         * device/lib/pic16/startup/crt0i.c (_cinit): local variables where
9         moved to level 0 and declared as static. Also they are explicit
10         placed in access bank. This was necessery because some times they
11         might cross memory bank boundaries. crt0iz.c is *NOT* updated!!!
12         * src/pic16/device.h: added flag OPTIMIZE_CMP to enable some compare
13         optimizations. Currently only compare to unsigned char is implemented,
14         * src/pic16/gen.c: added fReturnIdx array,
15         * (struct resolvedIfx) is moved to gen.h and made public,
16         * (struct _G): added sregsAlloc and sregsAllocSet fields,
17         * (aopForSym): added an optimization to directly store in stack of
18         the operand of a SEND iCode,
19         * (pic16_aopOp): don't return return registers as strings (AOP_STR)
20         but as registers instead (AOP_REG) using the fReturnIdx array,
21         * (pic16_freeAsmop): remove the freed register from the
22         _G.sregsAlloc field,
23         * (pic16_aopGet): in case AOP_STR, the compare to 'a' is changed to
24         a compare of 'WREG',
25         * (pic16_popGetTempRegCond): changed function prototype, now
26         function takes also a bitVector argument v which holds the current
27         set of registers that are allocated for stack access by aopForSym,
28         registers allocated in aopForSym for accessing stack symbols are not
29         any more part of the functions usedRegs field,
30         * (genCall): some times aopOp is called for a stack variable to be
31         send, aopForSym might perform the push, if this is true make sure
32         that genCall doesn't push the variable twice by testing _G.resDirect,
33         * (genFunction): changed testing for unspecified interrupt number
34         from 256 to INTNO_UNSPEC,
35         * modified selection scheme of frame pointer generation. Previously
36         if function did use local registers a frame pointer was generated,
37         now a frame pointer is generated only if function has arguments
38         (that need PLUSW2 register access), or has stack arguments, or the
39         compiler is not instructed to omit the frame pointer,
40         * (genEndFunction): before restoring local registers that were saved
41         in the function preamble, also restore the registers that *might*
42         have been allocated for stack access,
43         * (genRet): removed some old comments,
44         * (genCmp, the active (RN's) version): added a call to the
45         pic16_genCmp_special function to perform the compare with a more
46         robust and optimized way,
47         * (genInline): a feature has been added in inline code generation,
48         which allows a wildcard variable substitution when writing inline
49         assembly. Code is incomplete and experimental therefore undocumented,
50         * (genCast): changed order of aopOp for result and right to allow
51         aopForSym to directly load the result if possible,
52         * src/pic16/genutils.c (selectCompareOp, pic16_genCmp_special): NEW,
53         perform an optimized compare on some selected special occasions,
54         * src/pic16/genutils.h: declaration of resolvedIfx structure from gen.c,
55         * src/pic16/glue.c (pic16createInterrupVect): make sure we never
56         generate an IVT any more,
57         * src/pic16/main.c (pic16_optionsTable): added command line option
58         --optimize-cmp,
59         * (_pic16_initPaths): when calling C preprocessor define pic18fXXXX
60         macro too, when calling assembler define pic18fXXXX *and* __18Fxxxx
61         macros,
62         * src/pic16/NOTES: Raphael Neider added in list of active developers
63         * src/pic16/pcode.c (OPT_TYPE_STR): added strings jumptable_begin and
64         jumptable_end to prevent bug #,
65         * (pic16_pciADDWFC, ADDFWC, COMF, CLRF): added some missing flags in
66         inCond and outCond fields,
67         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): add a fix for bug #,
68         * src/pic16/ralloc.c (serialRegAssign): explicit set willCS to 0 to
69         turn off register spilling,
70         * (packRegsForOneUse): synced with other ports' versions although it
71         is not used currently,
72         * (pic16_packRegisters): added an optimization while reading
73         structure bitfields, some registers may be saved (malloc code is
74         decreased by 80 bytes)
75
76 2005-03-12 Vangelis Rokas <vrokas AT users.sourceforge.net>
77
78         * src/SDCCcse.c (cseBBlock): inside 'do operand lookup' loop test if
79         left is a bitfield, if yes, then don't optimize assignment. Perhaps
80         this can be optimized more?
81
82 2005-03-10 Raphael Neider <rneider AT web.de>
83
84         * src/pic16/gen.c (pic16_loadFSR0, genPackBits, genUnpackBits,
85           genNearPointerGet): (hopefully) fixed access to bitfields via
86           pointers (p->bitN = x; and x = p->bitN; failed)
87         
88 2005-03-09 Paul Stoffregen <paul AT pjrc.com>
89
90         * device/lib/printf_fast.c: fix leading zero format, eg "%02d"
91
92 2005-03-09 Raphael Neider <rneider AT web.de>
93
94         * src/SDCCopt.c (killDeadCode): fixed bug #1156016
95
96 2005-03-06 Maarten Brock <sourceforge.brock AT dse.nl>
97
98         * src/SDCCicode.h: moved CRITICAL and ENDCRITICAL from SKIP_IC2 to SKIP_IC
99         * src/mcs51/ralloc.c (willCauseSpill): added check for REG_BIT type,
100           (regTypeNum): set REG_BIT type if necessary
101         * src/mcs51/ralloc.h: added define REG_BIT, used to fix bug 1144613
102         * support/regression/tests/critical.c: check bug 1144613
103
104 2005-03-02 Raphael Neider <rneider AT web.de>
105
106         * src/pic16/gen.c (genRightShiftLiteral): fixed bug #1154256
107
108 2005-02-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
109
110         * src/avr/ralloc.c (serialRegAssign),
111         * src/ds390/ralloc.c (serialRegAssign),
112         * src/hc08/ralloc.c (serialRegAssign),
113         * src/mcs51/ralloc.c (serialRegAssign),
114         * src/pic/ralloc.c (serialRegAssign),
115         * src/pic16/ralloc.c (serialRegAssign),
116         * src/xa51/ralloc.c (serialRegAssign),
117         * src/z80/ralloc.c (serialRegAssign): fixed bug #1105154
118
119 2005-02-22 Maarten Brock <sourceforge.brock AT dse.nl>
120
121         * src/SDCCast.c (decorateType): fixed bug 1124787
122
123 2005-02-20 Hubert Sack <sack AT digiplan.de>
124         committed by Frieder Ferlemann <Frieder.Ferlemann AT web.de>
125
126         * src/mcs51/peeph.def: added peepholes 3.h-k and 132.a-f from
127         patch #1121755
128
129 2005-02-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
130
131         * src/SDCCpeeph.def: new keyword "labelRefCountChange" which allows peepholes
132         to keep the correct label reference count when adding/removing references
133         to labels. A peephole file using this is appended to patch #1144962.
134
135 2005-02-14 Raphael Neider <rneider AT web.de>
136
137         * device/lib/pic16/libc/string/memccpy.c: changed 3rd argument to char
138         * src/SDCC.lex (process_pragma): fixed to make disable_warning work for PIC16
139         * src/pic16/gen.c (aopForSym, calls to pic16_aopOp): prevent unneccessary
140           retrievals of result operand's value on assignment
141
142 2005-02-13 Vangelis Rokas <vrokas AT otenet.gr>
143
144         * device/include/pic16/string.h: modified prototype for memccpy()
145         to memccpy(void *, void *, char, size_t)
146         * src/pic16/gen.c (genFunction, genEndFunction): reenable if-case to
147         check whether to omit frame pointer or not,
148         * (genInline): convert all occurences of "\n" to LF in inline
149         assembler blocks, this helps formatting the inline text,
150         * (pic16_loadFSR0): modified prototype,
151         * (genNearPointerGet, genNearPointerSet): reorganization of code,
152         removed some 8051 legacy code,
153         * (genPackBits): enabled handling bitfields exceeding one byte in size,
154         * src/pic16/ralloc.c (pic16_assignRegisters): clear dynrIdx variable
155         before allocating temporary registers in functions,
156
157 2005-02-11 Maarten Brock <sourceforge.brock AT dse.nl>
158
159         * support/regression/tests/bitvars.c: corrected the "fix"
160
161 2005-02-10 Maarten Brock <sourceforge.brock AT dse.nl>
162
163         * support/regression/tests/bitvars.c,
164         * support/regression/tests/bitwise.c,
165         * support/regression/tests/rotate.c: "fixed" problems on Alpha
166
167 2005-02-10 Raphael Neider <rneider AT web.de>
168
169         * src/pic16/pcode.c (assignToSameBank) : fixed cast to pointer of
170           different size for Alpha
171         * src/pic16/gen.c (genCmpEq) : improved compare with 0
172
173 2005-02-09 Raphael Neider <rneider AT web.de>
174
175         * src/SDCC.lex(doPragma) : save and restore warning options as well
176           (also added new stack plus clone- and copyAndFreeSDCCERRG())
177         * have #pragma less_pedantic set the errorlevel to WARNING
178           (fixes #1117001)
179         * (cloneOptimize) : fixed wrong malloc's size
180         * support/Util/SDCCerr.[ch] : made SDCCERRG globally accessible to
181           facilitate correct handling of #pragma (save|restore)
182
183 2005-02-09 Maarten Brock <sourceforge.brock AT dse.nl>
184
185         * src/mcs51/gen.c: removed non-standard C nameless struct/union
186
187 2005-02-04 Slade Rich <slade_rich AT users.sourceforge.net>
188
189         * src/pic/gen.c : Fix for bugs #1080519 & #1115662.
190
191 2005-02-03 Maarten Brock <sourceforge.brock AT dse.nl>
192
193         * device/include/mcs51/c8051f120.h: added declarations for sbit port 2,3&4
194
195 2005-02-02 Raphael Neider <rneider AT web.de>
196
197         * src/SDCCast.c (processParms): disabled W_NONRENT_ARGS for pic16 port
198         * src/pic16/gen.c (aopForSym): reenabled special case for function pointers
199         * (pic16_storeForReturn): fixed to allow returning function pointers
200         * (genPackBits): improved accessing full bytes, implemented for GPOINTERs
201         * device/include/pic16/{stddef.h,stdbool.h}: added
202
203 2005-02-02 Maarten Brock <sourceforge.brock AT dse.nl>
204
205         * device/include/mcs51/c8051f040.h: added define CPT2_PAGE
206
207 2005-02-01 Slade Rich <slade_rich AT users.sourceforge.net>
208
209         * src/pic16/pic16.dsp : Added file graph.c to make it compile under windows
210         * src/pic16/Makefile.bcc : Do not use this file but added file graph.c as it
211          appeared to be required
212
213 2005-01-31 Borut Razem <borut.razem AT siol.net>
214
215         * support/scripts/sdcc.nsi: added include/asm/ds390, include/asm/mcs51,
216           include/mcs51 and include/z80 directories to the package
217
218 2005-01-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
219
220         * src/hc08/gen.c (genFunction): fixed bug #1112752
221
222 2005-01-30 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
223
224         * src/mcs51/peeph.def: adapted peephole 258.x to changed gen.c (genAnd)
225
226 2005-01-29 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
227
228         * src/mcs51/gen.c (genAnd): accessing LSB/MSB by rotating acc
229
230 2005-01-29 Maarten Brock <sourceforge.brock AT dse.nl>
231
232         * device/include/Makefile.in: create/copy mcs51 and z80 include subdirs
233
234 2005-01-27 Maarten Brock <sourceforge.brock AT dse.nl>
235
236         * device/include/c8051fxxx.h: removed these 6 files
237         * device/include/mcs51/c8051fxxx.h: added these 11 new files
238
239 2005-01-26 Raphael Neider <rneider AT web.de>
240
241         * src/pic16/gen.c (genAssign): fixed assignment from longs
242           in codespace (were cut to three bytes)
243         * (genDummyRead): implemented (except for CODESPACE...),
244           fixed bug #1108575
245         * src/pic16/glue.c (emitStatistics): beautified
246         * device/lib/pic16/libm/Makefile: added include path
247
248 2005-01-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
249
250         * src/z80/gen.c (aopPut): fixed bug #1103902
251
252 2005-01-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
253
254         * device/lib/expf.c: fixed bug #1095792
255
256 2005-01-24 Vangelis Rokas <vrokas AT otenet.gr>
257
258         * device/lib/pic16/libm: added Math library sources
259
260 2005-01-24 Raphael Neider <rneider AT web.de>
261
262         * src/pic16/pcode.h: added second memory operand to pCodeOpReg
263           to enable upcast to pCodeOpReg2 (there is no type tag to
264           differenciate the two and pic16_popGet2p cast into PCOR2)
265         * src/pic16/main.c (_process_pragma): fixed another malloc bug
266           (sizeof(sectNames) changed to sizeof(sectName))
267           Both patches fix segfaults under MinGW.
268
269 2005-01-23 Raphael Neider <rneider AT web.de>
270
271         * src/pic16/{device.c,pcode.c}: s/free/Safe_free/g for
272           Safe_[mc]?alloc()'ed variables
273         * src/pic16/gen.c (pic16_aopOp,pic16_popGet): added handling
274           of (byte sized) temporaries (assign them to WREG for now)
275         * src/pic16/main.c (_process_pragma): fixed nasty malloc bug
276           (used sizeof(set *sectSyms) instead of sizeof(struct sectSym)),
277           this might fix SIGSEGVs on MinGW...
278         * src/SDCCopt.c (killDeadCode): restored original behaviour
279           (volatile operands might get thrown away though)
280
281 2005-01-23 Vangelis Rokas <vrokas AT otenet.gr>
282
283         * src/pic16/gen.c: fixed bug #1106975,
284         * src/pic16/gen.c: fixed possible bug #1102572, now during TOS
285         pointer update, INTCON is saved, global interrupts are disabled and
286         restored after updateing TOS.
287         * src/SDCC.y, src/SDCC.lex, src/SDCCsymt.c, src/SDCCsymt.h:
288         * added function attribute 'shadowregs' to take advantage of shadow
289         registers,
290         * added function attribute 'wparam' as an alternative to the wparam
291         pragma,
292         * support/Utils/SDCCerr.[ch]: added error E_SHADOWREGS_NO_ISR when
293         user declares a non-ISR function as 'shadowregs',
294         * doc/sdccman.lyx: updated to reflect recent changes of pic16 port
295
296 2005-01-22 Vangelis Rokas <vrokas AT otenet.gr>
297
298         * .version: bumped version number to 2.4.8
299         * device/lib/pic16/pics.all: list of PIC18F devices supported by
300         pic16 port,
301         * device/lib/pic16/libio/i2c/: I2C module support library,
302         * device/include/pic16/i2c.h: I2C support library header,
303         * device/lib/pic16/libc/stdio/: standard IO support sources,
304         * (printf_small.c): printf_small() source, supports float print,
305         * (printf_tiny.c): printf_tiny() source, does not support floats,
306         * device/lib/pic16/Makefile.common.in: added OPT_FLAGS macro to
307         enable global optimizations for entire library source, other
308         Makefiles in the source tree are also modified to reflect this,
309         * device/lib/pic16/libc/stdlib/putchar.c (putchar): dummy putchar()
310         function,
311         * doc/sdccman.lyx: updated to reflect new changes,
312         * src/pic16/gen.c (aopForSym): don't handle sym->iaccess in
313         sym->onStack if-case,
314         * src/pic16/main.c (_pic16_keywords): commented out keywords bit,
315         sbit, idata, _idata, xdata, _xdata,
316         * added pragma library, to link an external library, (see doc),
317         * removed command line options, --pomit-config-words, --pomit-ivt,
318         --pleave-reset-vector,
319         * (pic16_finaliseOptions): when define macro SDCC_MODEL_{SMALL/LARGE}
320         when calling assembler to reflect memory model used, also define
321         macro STACK_MODEL_{SMALL/LARGE} when compiling and assembling to
322         reflect stack model used,
323         * src/pic16/ralloc.c (pic16_allocDirReg): when operand is allocated
324         on stack return NULL,
325
326 2005-01-22 Daniel Winkler <post AT danielwinkler.de>
327
328         * src/SDCCopt.c (killDeadCode): do not throw iCodes away if one
329           of the operands is volatile. Fixes #1020220
330
331 2005-01-22 Daniel Winkler <post AT danielwinkler.de>
332
333         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): reenabled optimization
334         * (OptimizeRegUsage): make sure that there is really no other flow where
335           the first pCode is used
336
337 2005-01-22 Raphael Neider <rneider AT web.de>
338
339         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): disabled optimization
340           to fix #1106967 (pCode->seq are not set up correctly)
341
342 2005-01-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
343
344         * src/SDCCglue.c (glue): make sure code area is declared before the
345         static initialization area.
346
347 2005-01-21 Raphael Neider <rneider AT web.de>
348
349         * device/lib/Makefile.in: fixed test for pic16 install dir
350         * device/lib/pic16/*/Makefile*: modified compile flags to enable
351           optimizations
352         * doc/sdccman.lyx: updated banksel optimization, removed --flr-support and
353           added --optimize-goto compiler switch and pragma wparam documentation
354         * src/pic16/pcode.c (pic16_OptimizeBanksel): removed statistics dump
355         * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): fixed copying of WREG, PRODL
356           and PRODH closing bug #1071770 (peephole optimizer)
357
358 2005-01-19 Raphael Neider <rneider AT web.de>
359
360         * src/SDCCglobl.h: ensure that PATH_MAX >= 2048 to guarantee
361           cmdLine buffers (used when calling sdcpp...) are large enough
362           (MAX_PATH=256 truncates arguments leading to system halts when
363           used in MinGW...)
364         * src/pic16/gen.c (pic16_sameRegs): relaxed size criterion
365         * (genUminus): rewritten to for efficiency
366         * (genNearPointer[GS]et): enforce reloading of FSR0 (was still
367           used uninitialized in some cases)
368         * (genCast): upcasting a 16bit int to a 24bit GPOINTER may not
369           copy the third byte from the int -- now assumes 0x80 (data memory)
370         * src/pic16/genarith.c (pic16_genPlus): fixed bug when swapping
371           operands (genAddLit expects the iCode's operands to swapped as
372           well), fixed leftover bytes (crashed for short left operands)
373         * (pic16_genMinusDec): performance improvements, removed false
374           PIC14 emitSKPNCs
375         * (pic16_genMinus): fixed to cope with differently sized operands
376         * src/pic16/glue.c (pic16_glue): added new banksel optimization
377           for --obanksel > 1
378         * src/pic16/pcode.c: implemented (first phase of) banksel optimization
379         * src/pic16/graph.[ch]: implementation of directed graphs, used by
380           new banksel optimization
381         * src/pic16/pcoderegs.c (pCodeRegMapLiveRangesInFlow): prevented
382           analysis for temporary registers (segfaults...)
383         * src/pic16/peeph.def: added rule
384
385 2005-01-18 Vangelis Rokas <vrokas AT otenet.gr>
386
387         * device/lib/pic16/libc/stdlib/x_ftoa.c: it defines x_ftoa function
388         which converts a float number to its ASCII representation
389         * device/lib/pic16/libc/utils/cnvfrac.S,cnvint.S: support
390         functions to convert the fractional and integer part of a float to ASCII,
391         * device/lib/pic16/libc/stdlib/(calloc.c,free.c, malloc.c,
392         realloc.c): added _MALLOC_SPEC to explicit place variables in data
393         ram
394         * device/include/asm/pic16/features.h: added _CODE, _DATA, _AUTOMEM,
395         _STATMEM macros,
396         * device/include/pic16/adc.h: added GPL info,
397         * src/pic16/gen.c (genIfxpCOpJump): perform an genIfxJump but using
398         a pCodeOp as tested operand,
399         * (genNearPointerGet): optimized bit testing, does not use
400         intermediate register for bit value, test directly instead with
401         BTFSS, BTFSC, works only for single bits,
402         * (genpic16Code): dump the name of the iCode in the asm,
403         * src/pic16/ralloc.c (decodeOp): removed static declaration and
404         renamed to pic16_decodeOp,
405         * (serialRegAssign): do not allocate a temporary register for iCode
406         sequences that test a single bit for 1/0
407
408 2005-01-12 Vangelis Rokas <vrokas AT otenet.gr>
409
410         * src/pic16/pcode.[ch]: introduced pic16_stackpnt_*,
411         pic16_framepnt_*, pic16_stack_*, pic1_frame_* pointer variables to
412         access stack and frame pointers. They are initially assigned to
413         point at pic16_pc_fsr1[lh] and pic16_pc_fsr2[lh] variables and other
414         accessing SFRs. Updated all occurences of modification of stack or
415         frame pointer in gen.c and pcode.c,
416         * src/pic16/ralloc.c (serialRegAssign): fixed two bugs with
417         assigning of a literal value to pointers,
418         * src/pic16/main.c (pic16_finiliseOptions): set pre-processor define
419         flag STACK_MODEL_SMALL or STACK_MODEL_LARGE according to the model
420         selected
421
422 2005-01-11 Vangelis Rokas <vrokas AT otenet.gr>
423
424         * doc/sdccman.lyx: update documentation about stack pragma, added
425         some info for stack memory models
426
427 2005-01-08 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
428
429         * src/pic16/gen.c (DEBUGpc): MSVC 6 does not support macro variable arguments
430
431 2005-01-08 Raphael Neider <rneider AT web.de>
432
433         * src/pic16/device.c (pic16_dump_usection): changed naming scheme for
434           udata sections to fix bug #1097823
435
436 2005-01-05 Raphael Neider <rneider AT web.de>
437
438         * src/pic16/gen.c (genGenericShift): added handling of differently
439           sized left operand and result
440
441 2005-01-04 Raphael Neider <rneider AT web.de>
442
443         * src/pic16/gen.c (genIfxJump): fixed inverted skips on CARRY
444         * (genIfx): fixed (?) read from uninitialized SPIL_LOC (now assumes CARRY
445           to hold the condition bit)
446         * added new version of genCmp (old code available via #define)
447         * added new version of genShiftLeft/genShiftRight in a generic
448           way, now supports shifting by negative values
449         * (genLeftShiftLiteral, genRightShiftLiteral): use absolute value of
450           shiftCount (expected by genGenericShift)
451         * src/pic16/genarith.c (genPlus): added code for adding CARRY+literal
452         * src/pic16/pcode.c (pic16_OptimizeJumps): removed annoying statistics
453           dump
454         * (pic16_newpCodeOpLit): changed to cast to unsigned char (as e.g. -32766
455           is an invalid literal too...)
456
457 2005-01-04 Vangelis Rokas <vrokas AT otenet.gr>
458
459         * src/pic16/gen.c (aopForSym, genEndFunction): applied some fixes
460         from Raphael Neider,
461         * src/pic16/pcode.c (pic16_newpCodeOpLit): removed casting to char
462         for 8-bit literals. This fixes some literal operands which are sign
463         extended to 16-bits ints when instruction needs only 8-bits.
464
465 2004-12-31 Paul Stoffregen <paul AT pjrc.com>
466
467         * device/lib/logf.c: added mcs51 assembly version
468         * device/lib/expf.c: added mcs51 assembly version
469         * device/lib/_logexpf.c: new shared asm code for expf and logf
470         * device/include/math.h: add defines for assembly math library
471         * device/lib/Makefile.in: build new _logexpf.c
472         * device/lib/libfloat.lib: use new _logexpf.c
473
474 2004-12-29 Slade Rich <slade_rich AT users.sourceforge.net>
475
476         * src/pic/device.c
477         * src/pic/pcode.c : adjusted internal stack and pre-allocated registers for
478           device types which have less than 0x7f registers.
479
480 2004-12-29 Slade Rich <slade_rich AT users.sourceforge.net>
481
482         * src/pic/genarith.c : Fixed problem with subtraction where the result would not be updated when borrowing.
483
484 2004-12-28 Paul Stoffregen <paul AT pjrc.com>
485
486         * device/lib/printf_fast.c: only build on supported arch.
487         * device/lib/printf_tiny.c: only build on supported arch.
488         * device/lib/printf_fast_f.c: only build if asm float lib
489         * device/lib/_fsget1arg.c: only build if asm float lib
490         * device/lib/_fsget2args.c: only build if asm float lib
491         * device/lib/_fsnormalize.c: only build if asm float lib
492         * device/lib/_fsreturnval.c: only build if asm float lib
493         * device/lib/_fsrshift.c: only build if asm float lib
494         * device/lib/_fsswapargs.c: only build if asm float lib
495         * device/include/stdio.h: don't provide print_fast,
496           print_fast_f, print_tiny prototypes if --xstack used
497
498 2004-12-28 Maarten Brock <sourceforge.brock AT dse.nl>
499
500         * device/lib/sincosf.c (sincosf): don't invert bit/bool by ~
501         * support/regression/ports/mcs51-stack-auto/spec.mk: added new _fs.. files
502           to the SOURCES
503
504 2004-12-28 Paul Stoffregen <paul AT pjrc.com>
505
506         * device/lib/printf_fast_f.c: same as printf_fast, but
507           with floating point enabled
508         * device/lib/printf_fast.c: minor tweaks
509         * device/include/stdio.h: add printf_fast_f
510
511 2004-12-27 Paul Stoffregen <paul AT pjrc.com>
512
513         * src/SDCCmain.c: make --float-reent default for mcs51
514         * device/lib/_fsadd.c: added mcs51 assembly version
515         * device/lib/_fssub.c: added mcs51 assembly version
516         * device/lib/_fsmul.c: added mcs51 assembly version
517         * device/lib/_fsdiv.c: added mcs51 assembly version
518         * device/lib/_fseq.c: added mcs51 assembly version
519         * device/lib/_fsneq.c: added mcs51 assembly version
520         * device/lib/_fsgt.c: added mcs51 assembly version
521         * device/lib/_fslt.c: added mcs51 assembly version
522         * device/lib/_fscmp.c: shared code for fseq,fsgt,fslt,fsneq
523         * device/lib/Makefile.in: add _fscmp to build
524         * device/lib/libfloat.lib: add _fscmp to build
525
526 2004-12-27 Paul Stoffregen <paul AT pjrc.com>
527
528         * device/lib/_fs2slong.c: added mcs51 assembly version
529         * device/lib/_fs2sint.c: added mcs51 assembly version
530         * device/lib/_fs2schar.c: added mcs51 assembly version
531         * device/lib/_fs2ulong.c: added mcs51 assembly version
532         * device/lib/_fs2uint.c: added mcs51 assembly version
533         * device/lib/_fs2uchar.c: added mcs51 assembly version
534         * device/lib/_slong2fs.c: added mcs51 assembly version
535         * device/lib/_sint2fs.c: added mcs51 assembly version
536         * device/lib/_schar2fs.c: added mcs51 assembly version
537         * device/lib/_ulong2fs.c: added mcs51 assembly version
538         * device/lib/_uint2fs.c: added mcs51 assembly version
539         * device/lib/_uchar2fs.c: added mcs51 assembly version
540         * device/include/float.h: added #define to select asm vs c
541
542 2004-12-26 Paul Stoffregen <paul AT pjrc.com>
543
544         * device/lib/printf_fast.c: improvements to float output
545         * device/include/float.h: add defines for assembly float library
546         * device/lib/_fsget1arg.c: receive 1 float arg
547         * device/lib/_fsget2args.c: receive 2 float args (reentrant)
548         * device/lib/_fsnormalize.c: normalize a float
549         * device/lib/_fsreturnval.c: return float, various helper routines
550         * device/lib/_fsrshift.c: right shift a float's mantissa
551         * device/lib/_fsswapargs.c: swap 2 floats
552         * device/lib/Makefile.in: build these 6 new files for mcs51
553         * device/lib/libfloat.lib: add these 6 files to the library
554
555 2004-12-26 Borut Razem <borut.razem AT siol.net>
556
557         * sim/ucsim/avr.src/arith_inst.cc: fixed bug #1088372- savr is not
558           built by gcc 3.4.2
559
560 2004-12-25 Paul Stoffregen <paul AT pjrc.com>
561
562         * device/lib/printf_tiny.c: printf for mcs51 in only 267 bytes,
563           and fully reentrant and register bank neutral.
564         * device/lib/printf_fast.c: added float (not enabled by default),
565           added compact/slower integer (also not enabled by default),
566           improved size/speed of fast integer code, other minor changes
567         * device/include/stdio.h, device/lib/Makefile.in,
568           device/lib/libsdcc.lib: integrate printf_tiny into mcs51 build
569
570 2004-12-24 Maarten Brock <sourceforge.brock AT dse.nl>
571
572         * src/pic16/pcode.c: declaring variables other than at the start of a
573           block is not supported in C by VC6.
574
575 2004-12-22 Vangelis Rokas <vrokas AT otenet.gr>
576
577         * applied a previous patch from Raphael Neider that wasn't included
578         in the previous commits, which fixes infinite loops within jumptable
579         improvements,
580         * made some fixes that previous patches introduced
581
582 2004-12-21 Vangelis Rokas <vrokas AT otenet.gr>
583
584         * src/pic16/gen.c (pic16_aopGet): applied fix from Raphael Neider
585         that fixes an issue with AOP_PCODE asmop's offset,
586         * (pic16_popCopyReg): update instance field too,
587         * (mov2w): modified to pic16_mov2w because it conflicts with mov2w
588         function of pic port,
589         * (genCmp, genAnd, genAssign),
590         * src/pic16/genarith.c (genAddLit): some fixes from Raphael Neider,
591
592 2004-12-20 Vangelis Rokas <vrokas AT otenet.gr>
593
594         * src/SDCCast.c (gatherAutoInit): allow pic16 to emit static
595         variables initial values to idata section,
596         * src/SDCCicode.c (geniCodeCall): patch from ### to fix unreferenced
597         variables in some functions. This utilizes parmBytes field of iCode
598         structure to hold the offset of the variable in stack. (might be
599         able to use the stack field too?)
600         * applied patch from Raphael Neider # ### , # ###
601         * src/pic16/glue.c (pic16emitRegularMap): fix to print static
602         variable initial values in idata section,
603         * src/pic16/ralloc.c (pic16_allocDirReg): don't allocate register
604         for static variables with initial value
605         * src/device/lib/pic16/libsdcc/float/ulong2fs.c (__ulong2fs):
606         applied fix in while loop from Raphael Neider.
607
608 2004-12-19 Maarten Brock <sourceforge.brock AT dse.nl>
609
610         * src/ds390/gen.c (genCpl): fixed bit=~(char/bit) bugs, added warning
611         * src/ds390/main.c (_ds390_regparm): don't pass bit params in registers
612         * src/ds390/ralloc.c (serialRegAssign): spill bits
613         * src/mcs51/gen.c (genCpl): fixed bit=~(char) bugs, added warning
614         * support/Util/SDCCerr.c,
615         * support/Util/SDCCerr.h: added warning W_COMPLEMENT for using bit=~(bit)
616         * support/regression/tests/bitvars.c: added tests for bitwise complement(~)
617         * support/regression/tests/bitwise.c: added test for bitwise complement(~)
618
619 2004-12-09 Maarten Brock <sourceforge.brock AT dse.nl>
620
621         * device/include/sdcc-lib.h: inserted LGPL, added includes
622           asm/ds390/features.h and asm/mcs51/features.h
623         * device/include/asm/default/features.h,
624         * device/include/asm/gbz80/features.h,
625         * device/include/asm/z80/features.h: added empty _AUTOMEM
626           and _STATMEM
627         * device/include/asm/ds390/features.h,
628         * device/include/asm/mcs51/features.h: added files with defines for
629           _AUTOMEM and _STATMEM indicating automatic and static storage class
630         * device/lib/printf_large.c (_print_format): optimized & used _AUTOMEM
631         * doc/sdccman.lyx: version 2.4.7, updated xstack documentation
632         * src/SDCCicode.c (geniCodeCast),
633         * src/SDCCsymt.c (compareType): allow cast of data-ptr to idata-ptr
634         * src/SDCCloop.c (loopInduction): removed unused variable lr
635         * src/SDCCopt.c (convilong, convertToFcall): moved "easy special case"
636           to convertToFcall to include char modulo (RFE 1065037), added check
637           if left operand is unsigned and use abs of literal value
638         * src/SDCCpeeph.c (setFromConditionArgs): removed double quotes option
639           as it doesn't work after conversion from peephole.def to peephole.rul
640         * src/mcs51/gen.c (toBoolean): added check for size,
641           (genModOneByte): optimized code for signed char modulo a literal
642           power of 2 (thanks to Hubert Sack),
643           (genRRC): removed unnecessary "clr c",
644           (genRLC): replaced "add a,acc" with cheaper "rlc a"
645         * src/mcs51/peeph.def: renamed 115 to 115.a, added rule 115.b: another
646           jump optimization,
647           swapped rules 256.c and 256.d,
648           extended 256.d by using new multiple checks (thanks Erik),
649           added rules 256.e and 256.f,
650           updated rule 261.a and 261.b to new generated code
651         * support/regression/tests/muldiv.c: added test div/mod by a power of 2
652
653 2004-12-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
654
655         * src/SDCCloop.c (basicInduction, loopInduction): fixed several
656           induction related bugs, including first part of bug #1074377
657
658 2004-12-05 Vangelis Rokas <vrokas AT otenet.gr>
659
660         * applied patch from bug-report #1076292,
661         * applied patches for genAnd and Goto-optimizations for Raphael
662         Neider,
663         * src/SDCCicode.c (printOperand): fixed !REGA source to compile and
664         dump a less iCode information,
665         * src/pic16/device.h (pic16_options_t): added field debgen,
666         * src/pic16/gen.h: added macros DUMP_FUNCTION_ENTRY,
667         DUMP_FUNCTION_EXIT, FENTRY, FENTRY2,
668         * src/pic16/gen.c (my_powof2): renamed to pic16_my_powof2 and made
669         puclic,
670         * (various functions): added macros FENTRY and FENTRY2 to functions,
671         to emit function prologue,
672         * (various functions): fixed indentation,
673         * (genNearPointerGet): fixed loading of FSR0,
674         * (genPackBits): applied patch from Raphael Neider to fix updating
675         of FSR0 and touching only the modified bits,
676         * src/pic16/genarith.c (various functions): added macros FENTRY to
677         emit function prologue in comments,
678         * src/pic16/pcode.h: added functions debugf2, debugf3,
679         * src/pic16/ralloc.c: partial fix for packForPush caused
680         segmentation fault,
681
682 2004-12-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
683
684         * src/mcs51/peeph.def: added 261.a,b (16 bit rotate) by Stas Sergeev
685           <stsp AT users.sourceforge.net> with reversed byte order
686         * support/regression/tests/rotate.c: added (ds390 skips some tests)
687
688 2004-12-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
689
690         * src/z80/gen.c (genLeftShift, genRightShift): fixed second part of
691           bug #1074377
692         * src/hc08/gen.c (genrshFour, shiftRLong, shiftLLong),
693         * src/mcs51/gen.c (shiftLLong): Fixed some shifting bugs Frieder found
694
695 2004-12-02 Slade Rich <slade_rich AT users.sourceforge.net>
696
697         * src/pic/pcode.c : fixed a problem where banksel was not being inserted.
698
699 2004-12-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
700
701         * src/SDCCpeeph.c (callFuncByName): support combined peephole rule
702           conditions,
703           (setFromConditionArgs): friendly operand parser for peephole rules,
704           (operandBaseName, operandsNotRelated): new peephole condition
705           "operandsNotRelated" -- similar to "operandsNotSame", but takes
706           architecture specific register naming into account, handles n-way
707           comparisons, and supports quoted literals
708         * src/mcs51/peeph.def: restored rule 177.d with an extra condition
709
710 2004-12-02 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
711
712         * src/mcs51/peeph.def: fixed bug #1076940
713
714 2004-12-02 Slade Rich <slade_rich AT users.sourceforge.net>
715
716         * device/include/pic/pic16f877.h : added an include file for the PIC16F877 device.
717
718 2004-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
719
720         Adding support for replacing ljmps with sjmps in jumptables
721         generated for switch statements. For now you need to set the
722         environment variable SDCC_SJMP_JUMPTABLE to enable this.
723         Now 4 algorithms for mcs51 jumptable generation are used:
724         ljmp or sjmp jumptables for up to 16 cases, stack-pushing target
725         addresses loaded pc-relative for up to 112 cases and stack-pushing
726         target addresses loaded with offset from dptr for up to 256 cases.
727
728         * src/SDCCpeeph.c: added peephole conditional labelJTInRange
729         * src/mcs51/main.c: adapted constants for switch table generation
730         * src/mcs51/peeph.def: added 260.x for replacing ljmp with sjmp
731
732 2004-11-26 Maarten Brock <sourceforge.brock AT dse.nl>
733
734         * device/lib/printf_large.c (_print_format): fixed bug 1073386
735         * support/regression/tests/bug1057979.c: added test for bug 1073386
736
737 2004-11-25 Vangelis Rokas <vrokas AT otenet.gr>
738
739         * src/pic16/pcode.c: fixed bug which may produce error in non-GNU
740         compilers
741
742 2004-11-25 Vangelis Rokas <vrokas AT otenet.gr>
743
744         * src/pic16/device.h,
745         * src/pic16/genarith.c,
746         * src/pic16/glue.c,
747         * src/pic16/main.c,
748         * src/pic16/pcode.c: applied patches #1068154 and #1070213
749
750 2004-11-24 Vangelis Rokas <vrokas AT otenet.gr>
751
752         Large cummulative patch for pic16 port.
753         * device/lib/pic16/gstack.h: NEW, user can specify its own handler
754         to call when a stack overflow occurs,
755         * (malloc.h): added CVS Id tag,
756         * (pic18f{242,252,442,452}.h): added T0CONbits structure and
757         variable,
758         * added libc directory. The current version of LibC contains string
759         functions, ctype functions and macros and some functions of the
760         stdlib set (like malloc/free/atof/atoi etc...). All functions are to
761         be extensively tested in the future. Standard disclaimer here.
762         Library is not automatically build yet. But one can build it by
763         invoking 'make' inside the libc directory.
764         * added ADC library under libio. Preliminary version yet.
765
766         * src/pic16/gen.h: added emitTOGC macro, to toggle Carry flag,
767         * src/pic16/gen.c (aopForRemat): asmop size is filled by
768         aopForRemat() now and not by pic16_aopOp(),
769         * (pic16_popGetTempReg): removed warning messgae when allocating
770         temporary registers, its a buggy feature and will be removed,
771         * (pic16_popGet): set register instance field in AOP_CRY,
772         * (pic16_outBitC): fixed for results in size greater than 1,
773         * (genUminusFloat): fixed for pic16, ported code from mcs51,
774         * (pic16_storeForReturn): optimized return of 0,
775         * (genCmp): experimental code for new genCmp which uses PIC18's
776         special compare&skip instructions. Initial tests fail some times
777         with variables grater than 1 byte in size, so new code is disabled,
778         * (genUnpackBits, genPackBits): more optimizations in reading/writing,
779         a single bit,
780         * (genCast): began a fix to optimize the casting of a bit to another
781         bit, now assigning a bitfield to another bitfield will fail, sorry,
782         * src/pic16/main.c: disabled the use of lr-support feature,
783         * src/pic16/pcode.h: renamed PCASMDIR to PCAD,
784         * added some function prototypes, added function _debugf prototype,
785         * src/pic16/pcode.c: (pic16_get_op): fixed emitting operands of register
786         bits with offset (case PO_GPR_BIT),
787         * (genericPrint): don't emit INFO pcode when --pcode-verbose not in
788         command line,
789         * (isBankInstruction): modified to return 0 for no banking instruction,
790         and 1 for banking instruction,
791         * (pic16_isPCinFlow): check for PCAD (assembler directives) too,
792         caused stop processing pCodes after a inline assembly block,
793         * (pic16_popCopyGPR2Bit): updated to match bitfields with offset,
794         * src/pic16/pcoderegs.c: fixed a bug with eliminating some temporary
795         registers when it shouldn't,
796         * src/pic16/ralloc.c (allocReg): add preliminary support for
797         supporting a limited set of temporary registers,
798
799 2004-11-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
800
801         * src/hc08/gen.c (genAssign, genPointerGetSetOfs, genDataPointerGet,
802           genDataPointerSet): ensure assignments always copy in MSB to LSB
803           order,
804           (loadRegFromAop): recognize CLRH optimization,
805           (genFunction): optimize RECEIVE iCodes in reentrant functions
806
807 2004-11-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
808
809         * src/SDCCmain.c (parseCmdLine, optionsTable[]): fixed bug with
810           --out-fmt-s19 turning into --out-fmt-elf if s19 was already
811           selected.
812         * src/SDCCmain.c (linkEdit): don't define SSEG for HC08
813         * src/hc08/main.c (_hc08_setDefaultOptions): default xdata to be
814           contiguous with data
815
816 2004-11-19 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
817
818         * device/lib/_gptrget.c (_gptrget),
819         * device/lib/_gptrgetc.c (_gptrgetc),
820         * device/lib/_gptrput.c (_gptrput): _naked allows to use ret
821           instead of sjmp to ret
822         * src/mcs51/peeph.def: added peepholes 3.d-g and 177.g,h provided
823           by Hubert Sack <hsack2002 AT arcor.de> in RFE #1067986, thanks
824
825 2004-11-18 Maarten Brock <sourceforge.brock AT dse.nl>
826
827         * .version: bumped version to 2.4.7
828         * device/lib/_gptrget.c (_gptrget): is now _naked
829         * device/lib/_gptrgetc.c (_gptrgetc): is now _naked
830         * device/lib/_gptrput.c (_gptrput): is now _naked
831         * src/SDCCast.c (createBlock): removed ridiculous self-assignment,
832           (createFunction): fixed xstack
833         * src/SDCCglue.c (emitMaps): set allocation required for bit area
834         * src/SDCCicode.c (geniCodeCast): don't change SPEC_OCLS for literal
835           or bit either,
836           (geniCodeCritical): store original interrupt state in an iTemp bit
837           var unless stack-auto
838         * src/SDCCicode.h: added CRITICAL and ENDCRITICAL to SKIP_IC2
839         * src/SDCCmain.c (setIncludePath): added include/target to search path
840         * src/SDCCmem.c (allocParms): store bit vars in bit space, not overlay
841         * src/SDCCsymt.c (checkFunction): don't check regbank for isr's against
842           prototype,
843           (processFuncArgs): put bit vars in bit area
844         * src/mcs51/gen.c (saveRegisters, unsaveRegisters, genXpush, saveRBank,
845           unsaveRBank): fixed xstack,
846           (genFunction): bugfix: replaced (global!) reentrant with fReentrant,
847           (genFunction, genEndFunction): fixed xstack,
848           (genAssign): optimization don't walk backwards through mem
849         * src/mcs51/main.c (_mcs51_regparm): don't pass bit params in registers
850         * src/mcs51/ralloc.c (createStackSpil): spill bits to bit area
851         * support/regression/Makefile: also make library (for stack-auto) when
852           making "all" and added "test-mcs51-xstack-auto"
853         * support/regression/fwk/lib/testfwk.c: added T2_isr prototype for mcs51
854         * support/regression/ports/mcs51/T2_isr.c: added this file as a stub
855         * support/regression/ports/mcs51/fwk.lib: added to link T2_isr stub
856         * support/regression/ports/mcs51/spec.mk: added rules for fwk.lib
857         * support/regression/ports/mcs51-stack-auto/spec.mk: replaced
858           make-library by MAKE_LIBRARY
859         * support/regression/ports/mcs51-xstack-auto/spec.mk: file added to run
860           regression tests for xstack
861         * support/regression/tests/bitvars.c: test for bit vars (bug 938782)
862         * support/regression/tests/critical.c: test for critical on mcs51
863
864 2004-11-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
865
866         * support/regression/ports/ucz80/spec.mk: use include and lib files from
867           built version of sdcc instead of installed version
868
869 2004-11-14 Maarten Brock <sourceforge.brock AT dse.nl>
870
871         * src/mcs51/gen.c (toBoolean): fixed bug 1065458
872         * device/lib/Makefile.in: z80 uses printf_large.c, sprintf.c and
873           vprintf.c now
874         * device/lib/printf_large.c (calculate_digit): fixed bug 1057979
875         * device/lib/z80/Makefile: don't use printf.c as it fails bug 1057979
876           WARNING: remove device/lib/build/z80/printf.o by hand when
877           updating from previous build!
878         * device/lib/z80/printf.c: updated comment
879         * support/regression/tests/bug1057979.c: test all ports now
880         * support/regression/tests/bug1065458.c: file added
881
882 2004-11-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
883
884         * src/z80/gen.c (genFunction, genEndFunction): avoided generating
885           *_start and *_end symbols for static functions
886
887 2004-11-11 Maarten Brock <sourceforge.brock AT dse.nl>
888
889         * src/SDCCmain.c (linkEdit): don't suppress crt0 if --nostdlib is used
890           and search crt0.o in all library paths,
891           (setIncludePath): proper handling of --nostdinc,
892           (setLibPath): proper handling of --nostdlib
893         * support/regression/Makefile,
894         * support/regression/ports/ds390/spec.mk,
895         * support/regression/ports/gbz80/spec.mk,
896         * support/regression/ports/hc08/spec.mk,
897         * support/regression/ports/mcs51/spec.mk,
898         * support/regression/ports/mcs51-large/spec.mk,
899         * support/regression/ports/mcs51-stack-auto/spec.mk,
900         * support/regression/ports/z80/spec.mk: use include and lib files from
901           built version of sdcc instead of installed version
902         * doc/sdccman.lyx: fixed typo in --nostdinc
903
904 2004-11-10 Slade Rich <slade_rich AT users.sourceforge.net>
905
906         * src/pic/pcode.c,
907         * src/pic/device.c,
908         * src/pic/ralloc.c,
909         * src/pic/gen.c : added support to generate code for struct bit fields.
910
911 2004-11-06 Maarten Brock <sourceforge.brock AT dse.nl>
912
913         * as/xa51/xa_version.h,
914         * device/include/errno.h,
915         * device/include/regc515c.h,
916         * device/lib/_itoa.c,
917         * device/lib/_ltoa.c,
918         * device/lib/ser_ir_cts_rts.c,
919         * sim/ucsim/xa.src/glob.cc,
920         * sim/ucsim/xa.src/inst_gen.cc,
921         * sim/ucsim/xa.src/xa_bit.cc,
922         * sim/ucsim/xa.src/xa_sfr.cc,
923         * sim/ucsim/z80.src/inst_dd.cc,
924         * sim/ucsim/z80.src/inst_fdcb.cc,
925         * support/scripts/keil2sdcc.pl,
926         * src/pic16/pic16.dsp,
927         * src/pic16/pic16a.dsp: corrected cvs line endings
928         * device/lib/printf_large.c: fixed bug 1057979
929         * src/pic16/gen.c: fixed non-C standard code
930         * src/SDCCmain.c: made --pack-iram default, added --no-pack-iram
931         * src/SDCCglobl.h: changed pack_iram to no_pack_iram
932         * support/regression/ports/mcs51/support.c: reload T1 asap
933         * doc/sdccman.lyx: updated for options --pack-iram and --no-pack-iram,
934           pdata use and clear idata startup behaviour
935         * support/regression/tests/bug1057979.c: added
936
937 2004-11-04 Maarten Brock <sourceforge.brock AT dse.nl>
938
939         * device/examples/ds390/ow390/ad26.h,
940         * device/examples/ds390/ow390/cnt1d.h,
941         * device/examples/ds390/ow390/crcutil.c,
942         * device/examples/ds390/ow390/ownet.h,
943         * device/examples/ds390/ow390/owsesu.c,
944         * device/examples/ds390/ow390/swt12.h,
945         * device/examples/ds390/ow390/swtoper.c,
946         * device/examples/ds390/ow390/temp10.h,
947         * device/examples/ds390/ow390/thermodl.c,
948         * device/examples/ds390/tinitalk/tinitalk.dsp,
949         * device/examples/ds390/tinitalk/tinitalk.dsw,
950         * device/examples/mcs51/clock/hw.h,
951         * device/examples/mcs51/simple2/go.bat,
952         * device/examples/serialcomm/windows/serial.h,
953         * device/examples/xa51/dummy.c,
954         * device/examples/xa51/hello.c,
955         * device/include/80c51xa.h,
956         * device/include/at89x051.h: corrected cvs line endings
957
958 2004-11-04 Vangelis Rokas <vrokas AT otenet.gr>
959
960         * src/pic16/main.c (options): added command line --gstack, to trace
961         stack over/under flows,
962         * added pragma 'wparam' to allow passing first byte of function
963         parameters via WREG, syntax is #pragma wparam my_function[, func2...]
964         * src/pic16/gen.c (pic16_testStackOverflow): function which emits a
965         call to __gstack_test function and sets up the symbol as extern,
966         * (pic16_pushpCodeOp, pic16_poppCodeOp, pushw, pushaop, popaopidx,
967         * popaop): added call to pic16_testStackOverflow,
968         * (wParamCmp, inWparamList): NEW, test existence of a symbol in
969         wparamList list,
970         * (genCall, genPcall): now all parameters are passed via stack
971         except in functions that are pass to wparam pragma in which WREG is
972         used too,
973         * (genPcall): REENTRANT flag is checked to see if variable prototype
974         contains reentrant keyword, don't call a non-reentrant function, via
975         a reentrant function pointer or vice versa, functions are never
976         passed via WREG,
977         * (genJumpTab): applied patch from bug #1057478 by R.Neider and
978         D.Winkler,
979         * src/pic16/glue.c (pic16emitRegularMap): fixed bug which caused a
980         SIGSEGV when accessing a NULL register stucture,
981         * (pic16_printGPointerType): modified to handle UPPER modifier for
982         function initializers, changed prototype of function to simpler one,
983         * (pic16_printIvalFuncPtr): check to see if function is already
984         added in externs list,
985         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): fixed bug which
986         optimized a move from W to SFR with a move to the same register
987         later after a CALL,
988         * device/lib/pic16/debug: NEW directory, contains debug features
989         which are enabled when linking with libdebug.lib, currently command
990         line option --gstack enables stack pointer tracing for over/under
991         flow, corresponding sources are in debug/gstack
992
993 2004-10-30 Vangelis Rokas <vrokas AT otenet.gr>
994
995         * doc/sdccman.lyx: updated SDCC version,
996         * (PIC16 port): update list of command line options,
997         * src/pic16/device.h (structure pic16_options_t): added field gstack
998         to enable stack overflow tracing on push/pops,
999         * src/pic16/device.c (statistics structure): added statistics
1000         structure,
1001         * (pic16_dump_access, pic16_dump_usection, pic16_dump_gsection,
1002         pic16_dump_int_registers): increase statistics counters for each
1003         * variable which is encountered
1004         * (pic16_dump_usection): emit each .udata variable to its own udata
1005         section,
1006         * src/pic16/gen.c (assignResultValue, genCall, genPcall, genFunction):
1007         when macro USE_WREG_IN_FUNC_PARAMS is set to 0 pass all function
1008         parameters via stack, otherwise use old scheme,
1009         * src/pic16/glue.c (pic16_emitStatistics): dump statistics in
1010         assembler output file,
1011         * src/pic16/main.c: added command line options --gstack to enable
1012         push/pop tracing for stack overflow,
1013         * src/pic16/pcode.c (all pCodeInstruction records for PIC18F
1014         instructions): added size of each instruction,
1015         * (pic16_countInstruction): estimate size of instructions in
1016         the_pFile list, inline assembly blocks are not counted,
1017         * (pic16_FixRegisterBanking): trace previous register usage, when
1018         banksel optimizations is greater than 0, don't emit a redudant
1019         banksel directive,
1020
1021 2004-10-26 Slade Rich <slade_rich AT users.sourceforge.net>
1022
1023         * src/pic/ralloc.c : fixed inefficient code produced when compiling a complimented bit operation.
1024         * src/pic16/ralloc.c : applied same fix for pic16.
1025         * src/pic/gen.c : tidied it up a little.
1026
1027 2004-10-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1028
1029         * src/mcs51/peeph.def: disabled 259.a,b for removing redundant ret,
1030         thanks to Martin Helmling for reporting (mail on sdcc-devel 2004-10-25)
1031
1032 2004-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1033
1034         * src/SDCCast.c (reverseParms): fixed bug #1040577 (part 2)
1035
1036 2004-10-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1037
1038         * device/lib/ser_ir_cts_rts.c: integer promotion caused a call to the
1039         non-reentrant function __modsint in the interrupt function (thus
1040         corrupting math operations during serial I/O)
1041         * device/lib/ser_ir.c: as above, changed buffersize
1042         * src/mcs51/peeph.def: added 259.a,b for removing redundant ret,
1043         256.c,d for zeroing
1044         * doc/Makefile: added option -t for rsync
1045
1046 2004-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1047
1048         * src/SDCCast.h (struct ast),
1049         * src/SDCCast.c (reverseParms, copyAst): fixed bug #1040577 (part 1)
1050
1051 2004-10-20 Borut Razem <borut.razem AT siol.net>
1052
1053         * support/scripts/sdcc.nsi: added include/pic16/*.h to the setup
1054         package
1055
1056 2004-10-20 Vangelis Rokas <vrokas AT otenet.gr>
1057
1058         * device/lib/pic16/libsdcc/Makefile: added lregs directory in
1059         makefile targets,
1060         * device/lib/pic16/libsdcc/lregs/{Makefile,lrst.c,lrrest.c}: NEW
1061         support functions to replace long sequences of MOVFF's from access
1062         bank registers to stack and vice versa,
1063         * src/pic16/device.h: added new field opt_flags, where optimization
1064         flags can be set to enable certain features,
1065         * src/pic16/gen.c (pic16_emitpinfo): NEW to add PC_INFO pCode in
1066         * pBlock, (genFunction, genEndFunction): surroung loop for
1067         saving/loading used registers in stack with PC_INFO pCodes,
1068         INF_LREGS. Code in between can then be optimized by pCode optimizer
1069         to support function calls,
1070         * (genDataPointerSet): fixed bug which loaded float fields in
1071         structures with corrupt data,
1072         * src/pic16/genutils.c (debugf, _debugf): macro/function which emits
1073         in a standard way debug info on stderr. Feature used for developing
1074         and debugging only,
1075         * src/pic16/glue.c (pic16glue): reformatted, deleted some old and
1076         obsolete chunks of code,
1077         * if optimization flag OF_LR_SUPPORT was set, call pic16_OptimizeLocalRegs,
1078         * src/pic16/main.c (_pic16_parseOptions): added handler for --flr-support,
1079         * pic16/src/pcode.c (pic16_newpCodeInfo,
1080         * (pic16_newpCodeOpLocalRegs),
1081         * (pic16_convertLocalRegs2Support): NEW, to support new optimization
1082         feature,
1083         * (pic16_pCodeConstString): printing of the initial value of a
1084         symbol as a comment is inhibited since parsing was already done by
1085         copyStr and output is corrupt,
1086         * (pic16_pCode2str, genericPrint): handle PC_INFO pCode,
1087
1088 2004-10-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1089
1090         * src/mcs51/ralloc.c (packRegisters): fixed bug #1044601
1091
1092 2004-10-19 Maarten Brock <sourceforge.brock AT dse.nl>
1093
1094         * as/mcs51/lkarea.c: removed old K&R style,
1095           (lnksect): changed check on boundary error,
1096           (lnksect2): changed check on boundary error,
1097           (lnksect2): extend XSTK to end of page if size = 1
1098         * as/mcs51/lkmain.c: removed old K&R style,
1099           (Areas51): create l_IRAM symbol
1100         * as/mcs51/lkmem.c (summary2): added report on PSEG and XSTK
1101         * device/lib/Makefile.in: renamed model-mcs51-reentrant to
1102           model-mcs51-stack-auto, added model-mcs51-xstack-auto
1103         * device/lib/_mullong.c: added version to be compiled with xstack
1104         * device/lib/mcs51/crtclear.asm: clear only upto --iram-size
1105         * device/lib/mcs51/crtxclear.asm: clear pdata as well
1106         * device/lib/mcs51/crtxstack.asm: fixed comment
1107         * src/SDCCglue.c: maxInterrupts defaults to 0,
1108           (emitMaps): added pdata,
1109           (createInterruptVect): (re)moved default,
1110           (glue): added pdata,
1111           (glue): moved __start__xstack to XSTK with default size 1
1112         * src/SDCCmain.c (parseCmdLine): automatically set options.intlong_rent
1113           and options.float_rent when options.stackAuto is set,
1114           (linkEdit): only write XDATA_NAME if provided on command line
1115         * src/SDCCmem.h,
1116         * src/SDCCmem.c: added pdata
1117         * src/port.h: added pdata_name to PORT
1118         * src/mcs51/gen.c (toBoolean): fixed for Acc use of aopGet,
1119           (saveRegisters, unsaveRegisters): removed usage of B,
1120           (genMinus): fixed accumulator clash,
1121           (genJumpTab): added comment, this needs another look
1122         * src/mcs51/gen.c: added check for "B in use" paranoia,
1123           added pushB() and popB()
1124         * src/mcs51/peeph.def: restart after 177.c so 177.a can get a second
1125           chance
1126         * src/avr/main.c,
1127         * src/ds390/main.c,
1128         * src/hc08/main.c,
1129         * src/mcs51/main.c,
1130         * src/pic/main.c,
1131         * src/pic16/main.c,
1132         * src/xa51/main.c,
1133         * src/z80/main.c: (reset_regparms) made void parameter explicit and
1134           added PSEG (PAG,XDATA) or NULL to port specifier
1135         * src/ds390/main.c (_ds390_genIVT): moved implemented default in here
1136         * src/mcs51/main.c (_mcs51_genIVT): moved implemented default in here,
1137           (_mcs51_genInitStartup): removed __start__xstack equ,
1138           (mcs51_port): moved xstack from XSEG (XDATA) to XSTK (PAG,XDATA)
1139         * src/pic16/device.c (pic16_dump_usection, pic16_dump_isection),
1140         * src/z80/gen.c (_rleAppend): fixed warnings
1141         * support/regression/tests/zeropad.c: added pdata test
1142         * .version: bumped to 2.4.6
1143
1144 2004-10-17 Borut Razem <borut.razem AT siol.net>
1145
1146         * support/scripts/sdcc.nsi: cross compiling of WIN32 setup.exe on Linux
1147         as a part of nightly build
1148
1149 2004-10-16 Vangelis Rokas <vrokas AT otenet.gr>
1150
1151         * src/pic16/gen.c (struct _G): added field useWreg, is set to 1 when
1152         WREG holds the first byte function parameters,
1153         * (aopForSym): take special case for symbols which are in FARSPACE
1154         but in CODESPACE too,
1155         * (assignResultValue): modified to take into account _G.useWreg,
1156         * (genCall): don't use wreg for parameter passing when function is
1157         declared as reentrant, too, added optimization INCF to stack
1158         pointer when stack parameter count is 1,
1159         * (genFunction, genEndFunction): refurnished and fixed to not using
1160         wreg for passing parameters when function has varargs or is
1161         reentrant, fixed bug with symbol name compare for generating
1162         functions in absolute address,
1163         * (pic16_storeForReturn): refurnished,
1164         * (genCmp): began writing a new version of the function, not ready
1165         yet, therefore it is disabled,
1166         * (genAssign): do not read code memory when assigning a function to
1167         a pointer function,
1168         * src/pic16/glue.c (pic16emitStaticSeg): abSym->name is defined an
1169         array of characters, not pointer,
1170         * (pic16initialComments): in debug mode emit an .ident directive for
1171         the assembler,
1172         * (_process_pragma): emit a new warning type (internal to pic16)
1173         when setting stack to default length, emit a similar warning when
1174         placing a function at absolute address and address is not word aligned
1175         * (_pic16_parseOptions): added 'return TRUE' statement,
1176         * (_pic16_linkEdit): if compiling a source, then add the source's
1177         file object, first in the list of objects to link,
1178
1179 2004-10-13 Slade Rich <slade_rich AT users.sourceforge.net>
1180
1181         * src/pic/pcoderegs.c : increased count on regUsedinRange to prevent unnecessary warning.
1182         * src/pic/main.c : removed VC warning.
1183         * src/pic/gen.c : changed comment.
1184
1185 2004-10-12 Vangelis Rokas <vrokas AT otenet.gr>
1186
1187         * device/lib/pic16/libsdcc/gptr/gptrput[234].c: an external
1188         reference to a deprecated symbol _GPTRREG was causing failure to
1189         link. Thanks G. M. Gallant for the info.
1190
1191 2004-10-12 Slade Rich <slade_rich AT users.sourceforge.net>
1192
1193         * src/pic/pcode.c : Applied a code patch supplied by Paul Ashmore in
1194         comments for Bugs item #954788.
1195
1196 2004-10-10 Vangelis Rokas <vrokas AT otenet.gr>
1197
1198         * src/pic16/device.c (pic16_dump_gsection,
1199         * pic16_groupRegistersInSection): handle symbols declared to be in
1200         access bank differently,
1201         * src/pic16/gen.c (struct _G): added field resDirect,
1202         * (aopForSym): if symbol on stack and iCode is '=' and result exists,
1203         send values read from stack directly to result and don't allocate
1204         temporary values,
1205         * (pic16_sameRegs): fixed bug that allowed MOVFF to move between
1206         same registers,
1207         * (pic16_sameRegsOfs): NEW,
1208         * (freeAsmop): if _G.resDirect is set then do not mark registers as
1209         free because they were not allocated from temporary pool,
1210         * pic16_popRegFromString): workaround to fix a problem with
1211         allocating variables twice or never,
1212         * (genGenPointerGet): using PRODL instead of FSR0H,
1213         * (genGenPointerSet): using POSTDEC1 (that is a stack location)
1214         instead of FSR0H,
1215         * (genAssign): take advantage of the _G.resDirect flag,
1216         * (genCast): around line 11844, use mov2f instead of directly
1217         MOVFF'ing between operands to account for literal values,
1218         * src/pic16/genutils.c: some new debug functions for gpsim have been
1219         added,
1220         * src/pic16/glue.c (pic16_printIvalType): fixed bug that initialized
1221         float with integer part only,
1222         * src/pic16/main.c (_process_pragma): handle pragma udata access to
1223         place variables in access bank
1224         * device/lib/pic16/libsdcc/gptr/gptr*.c: using BRA instead of GOTO,
1225         updated sources to reflect recent changes in gen.c
1226
1227 2004-10-06 Vangelis Rokas <vrokas AT otenet.gr>
1228
1229         * device/lib/pic16/libsdcc/Makefile.rules: fixed bug concerning
1230         sources that searched for headers in installation path, now the
1231         device/include/pic16 is used,
1232         * src/pic16/glue.c (pic16glue),
1233         * src/pic16/pcode.c (pCode2str, genericPrint): don't print .file or
1234         .line directives if not in debug mode, this suppresses assembler's
1235         warnings for ignored directives
1236
1237 2004-10-05 Maarten Brock <sourceforge.brock AT dse.nl>
1238
1239         * src/port.h: made reset_regparms prototype void parameter explicit.
1240         * src/SDCCsymt.c (processFuncArgs): removed argument "func".
1241         * src/mcs51/ralloc.c (packRegisters): new fix for bugs 898889 & 979599.
1242         * doc/sdccman.lyx: documented warning disabling and how to use
1243           printf_large to make it print floats.
1244         * device/include/stdbool.h: NEW
1245         * device/lib/_atof.c,
1246         * device/lib/_divuint.c,
1247         * device/lib/_divulong.c,
1248         * device/lib/expf.c,
1249         * device/lib/printf_large.c,
1250         * device/lib/sincosf.c,
1251         * device/lib/sincoshf.c: used stdbool.h, all compile with stack-auto now
1252         * device/lib/Makefile.in: added target for model-mcs51-reentrant to build
1253           a completely reentrant lib.
1254
1255 2004-10-05 Vangelis Rokas <vrokas AT otenet.gr>
1256
1257         * device/lib/pic16/libsdcc/gptr/gptr*.c: added return statements
1258         * device/include/pic16/stdio.h: fixed bug with colon
1259
1260 2004-10-03 Vangelis Rokas <vrokas AT otenet.gr>
1261
1262         * device/include/pic16/stdio.h,
1263         * device/include/pic16/stdlib.h,
1264         * device/include/pic16/math.h: NEW
1265         * device/lib/pic16/libsdcc/gptr/*.c (gptrget*, gptrput*): functions
1266         declared as _naked to reduce overhead
1267         * device/lib/Makefile.in (target port-specific-objects-pic16):
1268         changed * to *.* so to ignore the CVS directory,
1269         * src/pic16/gen.c (pic16_freeAsmop): added code to store result of
1270         stacked variables back in stack,
1271         * (genEndFunction): fixed bug reported by G.M. Gallant with stack
1272         corruption
1273
1274 2004-10-01 Vangelis Rokas <vrokas AT otenet.gr>
1275
1276         * .version: bumped version number to 2.4.5
1277         * support/Util/SDCCerr.h: added warning W_POSSBUG2.
1278         * support/Util/SDCCerr.c (messages structure): added entry for
1279         W_POSSBUG2
1280
1281         Large cumulative patch for pic16 port and libraries.
1282         * device/include/pic16/sdcc-lib.h,
1283         * device/include/pic16/stdarg.h,
1284         * device/include/asm/pic16/features.h,
1285         * device/include/lib/pic16/libsdcc/gptr/{*.c, Makefile}: NEW,
1286         * device/include/pic16/float.h: changes reentrant keyword with
1287         _FS_REENTRANT, added prototype for __fsneq, included sdcc-lib.h
1288         * device/lib/pic16/libsdcc/Makefile: added target directory gptr,
1289         updated target build-libraries to include objects from gptr,
1290         * device/lib/pic16/libsdcc/{char,int,long}/*.c: added macro
1291         _IL_REENTRANT to all function headings, included sdcc-lib.h header,
1292         * device/lib/pic16/libsdcc/float/*.c: added macro _FS_REENTRANT to
1293         all function headings,
1294         * src/SDCCmain.c: added global parameter userIncDirsSet,
1295         * (parseCmdLine): when option -I is encountered add directory to
1296         userIncDirsSet too,
1297         * src/version.awk: added space between control and long,
1298         * src/pic16/NOTES: added some notes for the port,
1299         * src/pic16/gen.c: added prototype for mov2fp function,
1300         * (fReturnpic16[]): properly named return value registers,
1301         * (_G structure): added fields stackRegSet, fregsUsed, stack_lat,
1302         * (aopForSym): added code to handle symbols with onStack flag set,
1303         symbols onStack are allocated PTRSIZE bytes,
1304         * (aopFreeAsmop): handles special case where asmops are stack objects,
1305         * (aopGet, pic16_popGet): adde cod to handle new asmop AOP_STA,
1306         * (pic16_popGetTempReg, pic16_popGetTempRegCond, pic16_popReleaseTempReg):
1307         added argument lock to trace flaws in allocating temporary registers
1308         when developing port,
1309         * (pic16_popGetLit, pic16_popGetLit2): changed lit from unsigned to signed
1310         * (pic16_popRegFromString): reenabled allocating a direct register
1311         from string,
1312         * (assignResultValue): various beautifications,
1313         * fixed bug #1037717 (patch from R. Neider & D. Wrinkler) with mistaken
1314         referenced function argument,
1315         * (genIpush): reenabled to allow stacked arguments, handles only
1316         ic->parmPush iCodes,
1317         * (genCall, genPcall): major changes to allow for variable argument
1318         functions, fixed a bug with falsely restoring stack pointer after
1319         returning from call,
1320         * (genFunction): pending code for critical function,
1321         * (shiftR1Left2ResultSigned, shiftR1Left2Result, shiftL2Left2Result,
1322         * (shiftR2Left2Result, shiftLLong) applied patch #1032155 from R.Neider,
1323         * (genNearPointerGet): fixed bug with indirect reading, was always
1324         reading from INDF0
1325         * (genGenPointerGet, genGenPointerSet): rewrote to support generic
1326         pointers,
1327         * (genAddrOf): rewrote code to take address of a stacked function parameter
1328         * (genCast): fixed casting to generic pointer type,
1329         * src/pic16/gen.h: added AOP_STA,
1330         * (struct asmop): added field stk,
1331         * src/pic16/genarith.c (pic16_AopType): handle AOP_STA,
1332         * (pic16_genPlusIncr): changed emitSKPNZ to emitSKPNZ,
1333         * (pic16_genAddLit, pic16_genPlus): applied patch #1034042 by tecodev,
1334         * (pic16_genMinus): fixed bug #1035119 with patch submitted by tecodev,
1335         * src/pic16/genutils.c (pic16_genNot): removed symbol *tlbl,
1336         * src/pic16/glue.c (pic16_printGPPointerType): fixed to support new
1337         generic pointers,
1338         * src/pic16/main.c (_pic16_initPaths): ignores default SDCC include
1339         and library paths,
1340         * (pic16_port structure): generic pointer size is set to 3,
1341         * src/pic16/pcode.c (pic16_newpCodeOpLit): correctly print literal integer,
1342         * (insertBankSwitch): cast to (char *) to prevent 64bit CPUs'
1343         compiler warning,
1344         * src/pic16/ralloc.c (allocReg): prevent allocating register when
1345         operand is an iTemp,
1346
1347 2004-09-24 Martin Helmling <mh AT octo-soft.de>
1348
1349         * debugger/mcs51/cmd.c: set PC if a symbol at pc reg is set
1350         * debugger/mcs51/simi.c: addapt new syntax of s51
1351
1352 2004-09-23 Vangelis Rokas <vrokas AT otenet.gr>
1353
1354         * src/pic16/genutils.c (pic16_genNot): fixed bug #1032265,
1355         * src/pic16/pcode.c: commented out some calls to free() in order to
1356         fix bug #989576,
1357
1358 2004-09-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1359
1360         * src/SDCCicode.h,
1361         * src/SDCCicode.c (isiCodeInFunctionCall),
1362         * src/avr/ralloc.c (selectSpil),
1363         * src/pic/ralloc.c (selectSpil),
1364         * src/pic16/ralloc.c (selectSpil),
1365         * src/ds390/ralloc.c (selectSpil),
1366         * src/hc08/ralloc.c (selectSpil),
1367         * src/xa51/ralloc.c (selectSpil),
1368         * src/mcs51/ralloc.c (selectSpil): Don't use remainSpil to spill to the
1369         stack in the middle of a function call sequence (fixes bug #1020268)
1370         * src/SDCCicode.c (geniCodeJumpTable): fixed error in computing the
1371         costs associated with the minimum switch case.
1372
1373 2004-09-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1374
1375         * src/SDCC.lex: fixed bug #1030549
1376
1377 2004-09-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1378
1379         * src/SDCCcse.h (struct cseDef),
1380         * src/SDCCcse.c (cseBBlock, newCseDef, ifFromAddrTaken): purge CSEs
1381         over a function call if the CSE is derived from a symbol whose
1382         address has been taken (fixes bug #1029883)
1383         * support/regression/tests/bug-1029883: a new regression test for
1384         this bug
1385
1386 2004-09-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1387
1388         * src/hc08/gen.c (emitinline): fixed bug #1029778
1389         * src/SDCC.y (assignment_expr): fixed the grammer so that assignment
1390         to a cast object is no longer a syntax error ("fixes" bug #1030006,
1391         and starts toward RFE #905167)
1392
1393 2004-09-17 Vangelis Rokas <vrokas AT otenet.gr>
1394
1395         * src/pic16/gen.c (mov2f): New function to move an operand to
1396         another without considering if it is a literal or a register,
1397         * (pic16_sameRegs): don't check if they are both AOP_REG,
1398         * (AccRsh): removed andmask=0 lines,
1399         * (genLeftShift): duplicated to be improved in future versions,
1400         * src/pic16/main.c (_process_pragma): emit stack default size in hex,
1401         * src/pic16/pcode.c: added POC_INFSNZW, updated inverted_op fields
1402         in POC_INCFSZ, POC_INCFSZW, POC_INFSNZ,
1403         * (pic16initMnemonics): added initialization for POC_INFSNZW,
1404         * (insertBankSwitch): fixed inserting banksel directives algorithm
1405         for instructions that follow a skip instruction, this fixes a report
1406         for broken subtraction code generation,
1407         * src/pic16/ralloc.c (deassignLRs): do not free register if current
1408         iCode is a left op, just in case result and right share the same
1409         registers
1410
1411 2004-09-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1412
1413         * src/hc08/main.c,
1414         * src/hc08/gen.c (genJumpTable): more efficient jump table, supports
1415         preservation of HX
1416         * src/hc08/gen.c (pullRegs): fixed order of HX & XA pairs
1417         * src/mcs51/ralloc.c (packRegisters): removed the patch applied
1418         on 2004-09-12; it was buggy
1419
1420 2004-09-15 Bernhard Held <bernhard AT bernhardheld.de>
1421
1422         * src/SDCCsymt.h: removed RESULT_CHECK
1423         * src/SDCCast.c,
1424         * src/SDCCglue.c,
1425         * src/SDCCval.c,
1426         * src/pic/glue.c,
1427         * src/pic16/glue.c: replaced RESULT_CHECK with RESULT_TYPE_NONE
1428
1429 2004-09-15 Vangelis Rokas <vrokas AT otenet.gr>
1430
1431         * src/SDCCicode.c (piCode): applied patch from Raphael Neider,
1432         * src/pic16/device.c (pic16_assignConfigWordValues): wrong
1433         configuration values no more rejected by compiler, they are assigned
1434         to configuration registers with a warning message instead,
1435         * src/pic16/glue.c (pic16_emitConfigRegs): added +1 at top-limit of
1436         the for-loop so last conf register is emitted too,
1437         * (_pic16_initPaths): link library libsdcc.lib by default,
1438         * (_hasNativeMulFor): modified test for multiplication according to
1439         Raphael Neider's remarks. Integer multiplication is also done with
1440         support functions,
1441         * device/include/pic16/pic18fregs.h: corrected type error in while
1442         testing and including 18f6720 header file
1443
1444 2004-09-14 Vangelis Rokas <vrokas AT otenet.gr>
1445
1446         * src/pic16/device.h (pic16_options): removed field use_crt,
1447         * src/pic16/gen.c (genUnpackBits): added call to pic16_loadFSR0
1448         until an optimization to handle single bits is added,
1449         * (pic16_loadFSR0): moved before genUnpackBits,
1450         * (genAnd): some white lines removed,
1451         * src/pic16/main.c (_pic16_finaliseOptions): set omit_ivt and clear
1452         leave_reset flags in pic16_options when using crt modules,
1453
1454 2004-09-12 Maarten Brock <sourceforge.brock AT dse.nl>
1455
1456         * src/mcs51/ralloc.c (packRegisters): applied fix by Bernhard Held
1457           for bugs 898889 & 979599. Also used some safer print instructions.
1458
1459 2004-09-12 Vangelis Rokas <vrokas AT otenet.gr>
1460
1461         * src/pic16/device.h (pic16_options_t): added field use_crt,
1462         crt_name, no_crt,
1463         * src/pic16/genarith.c (pic16_genPlus): added an assert(0) line to
1464         catch a probable future bug,
1465         * src/pic16/gen.c: aopIdx function commented out,
1466         * (genAssign): commented out old code which used aopIdx,
1467         * src/pic16/glue.c (pic16glue): removed some legacy fragments of
1468         code, added if conditionals to take into account the --use-crt
1469         command line options,
1470         * src/pic16/main.c (pic16_optionsTable): added new command line
1471         options, --use-crt= and --no-crt,
1472         * (_pic16_linkEdit): now the proper crt object is added in the
1473         linker command line except than when --no-crt is specified,
1474         * src/pic16/pcode.c,
1475         * src/pic16/pcode.h: added some structures and functions for a new
1476         optimization scheme to compansate for instruction overhead between
1477         same iCodes, this scheme is currently under development and is not
1478         working in any way,
1479         * src/pic16/gen.c (genAnd): added patch provided by Aaron Collwell
1480         to && operator,
1481         * device/lib/pic16/startup/crt0i.c,
1482         * device/lib/pic16/startup/crt0iz.c: added global char variable
1483         __uflags to force the generation of an idata section
1484
1485 2004-09-12 Bernhard Held <bernhard AT bernhardheld.de>
1486
1487         * doc/Makefile,
1488         * doc/clean.mk: added support for easy creation of sdcc-doc.tar.bz2
1489         * doc/sdccman.lyx: updated sdcc version to 2.4.4
1490
1491 2004-09-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1492
1493         * doc/sdccman.lyx: fixed a problem with my new index entries (thanks
1494         Frieder) and clarified the default code optimization mode
1495
1496 2004-09-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1497
1498         * src/SDCC.lex (doPragma, process_pragma),
1499         * src/SDCCglobl.h (struct optimize): added pragmas "opt_code_speed",
1500         "opt_code_size", and "opt_code_balanced"
1501         * src/SDCCmain.c (optionsTable[], printOptions, scanOptionsTable):
1502         regrouped options by category, added support for category headers
1503         * src/SDCCmain.c (parseCmdLine): added options "--opt-code-speed"
1504         and "--opt-code-size"
1505         * doc/sdccman.lyx: documented these new options and pragmas
1506         * src/hc08/gen.c (AccLsh, AccRsh): take speed/size optimization
1507         preference into account
1508
1509 2004-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
1510
1511         * src/SDCCicode.c (geniCodePostInc, geniCodePreInc, geniCodePostDec,
1512           geniCodePreDec): Fixed bug 904237 by generating a warning
1513         * src/SDCCerr.h,
1514         * src/SDCCerr.c: added warning W_SIZEOF_VOID
1515
1516 2004-09-09 Slade Rich <slade_rich AT users.sourceforge.net>
1517
1518         * src/pic/device.c : When no max ram set validate full memory range.
1519         * src/pic/pcode.c,
1520         * src/pic/pcodepeep.c : Copy C code comments to optimised replacement code.
1521
1522 2004-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
1523
1524         * device/lib/_gptrget.c,
1525         * device/lib/_gptrput.c: updated comment
1526         * device/lib/calloc.c,
1527         * device/lib/free.c,
1528         * device/lib/malloc.c,
1529         * device/lib/realloc.c: added LGPL, made them reentrant-safe
1530         * src/SDCCcse.c (cseBBlock),
1531         * src/SDCCicode.c (printOperand, geniCodeArray),
1532         * src/SDCCicode.h (struct operand): fixed bug 868103
1533         * support/regression/tests/bug-868103.c: added
1534         * src/SDCCast.c (searchLitOp),
1535         * src/SDCCcse.h (struct cseDef),
1536         * src/SDCCglue.c (printIvalArray, spacesToUnderscores),
1537         * src/SDCCicode.h (struct operand),
1538         * src/SDCCsymt.h (struct sym_link),
1539         * src/avr/gen.c (hasInc),
1540         * src/ds390/gen.c (hasInc),
1541         * src/hc08/gen.c (genPlusIncr, hasInc),
1542         * src/mcs51/gen.c (hasInc),
1543         * src/pic16/glue.c (pic16_printIvalChar),
1544         * src/pic16/ralloc.c (regWithIdx),
1545         * src/xa51/gen.c (hasInc) : removed warnings
1546         * src/SDCCast.c (createBlock): added comment ???
1547         * src/hc08/ralloc.c: updated comments
1548
1549 2004-09-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1550
1551         * doc/sdccman.lyx: updated section on switch statements, added
1552         section about semaphore locking
1553         * doc/Makefile: added option -info for latex2html
1554         * device/lib/_gptrget.c,
1555         * device/lib/_gptrput.c: __XPAGE instead of P2 in outcommented code
1556
1557 2004-09-06 Slade Rich <slade_rich AT users.sourceforge.net>
1558
1559         * src/pic/device.h,
1560         * src/pic/device.c,
1561         * src/pic/port.c : Changed PIC14 code to not set bit RP1 when
1562          maxram is less than 0x100.
1563
1564 2004-09-06 Slade Rich <slade_rich AT users.sourceforge.net>
1565
1566         * Bug fixes for PIC14 - signed RSHIFT problem. Patch supplied by Allen(agschrum).
1567
1568 2004-09-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1569
1570         * src/port.h,
1571         * src/mcs51/main.c,
1572         * src/ds390/main.c,
1573         * src/z80/main.c,
1574         * src/hc08/main.c,
1575         * src/pic/main.c,
1576         * src/pic16/main.c,
1577         * src/avr/main.c,
1578         * src/xa51/main.c
1579         * src/SDCCicode.c (geniCodeJumpTable): Better logic to determine if a
1580         a jump table is the best form for a switch statement, including
1581         automatic insertion of missing cases to make the case range
1582         continuous. Developed in collaboration with Frieder Ferlemann.
1583
1584 2004-09-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1585
1586         * src/hc08/ralloc.c (canDefAccResult): multi-byte shift is unsafe for
1587         accumulator result if it needs sign extension
1588
1589 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
1590
1591         * src/hc08/ralloc.c (canUseAccOperand): fixed comparison bug
1592
1593 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
1594
1595         * device/lib/gbz80/printf.c,
1596         * device/lib/z80/printf.c: removed define for NULL
1597
1598 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
1599
1600         * as/xa51/xa_link.c,
1601         * device/examples/ds390/ow390/ad26.c,
1602         * device/examples/ds390/ow390/cnt1d.c,
1603         * device/examples/ds390/ow390/counter.c,
1604         * device/examples/ds390/ow390/ds2480.h,
1605         * device/examples/ds390/ow390/ds2480ut.c,
1606         * device/examples/ds390/ow390/findtype.c,
1607         * device/examples/ds390/ow390/gethumd.c,
1608         * device/examples/ds390/ow390/owllu.c,
1609         * device/examples/ds390/ow390/ownetu.c,
1610         * device/examples/ds390/ow390/swt12.c,
1611         * device/examples/ds390/ow390/swtloop.c,
1612         * device/examples/ds390/ow390/temp.c,
1613         * device/examples/ds390/ow390/temp10.c,
1614         * device/examples/ds390/ow390/thermo21.c,
1615         * device/examples/ds390/ow390/tinilnk.c,
1616         * device/examples/ds390/ow390/tstfind.c,
1617         * device/examples/serialcomm/windows/serial.cpp,
1618         * device/examples/serialcomm/windows/test_serialcomm.cpp,
1619         * device/include/reg51.h: fixed line endings for cvs
1620
1621 2004-09-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1622
1623         * src/hc08/ralloc.c (canDefAccResult, canUseAccOperand,
1624         packRegsForAccUse, packRegisters): new accumulator register
1625         packing algorithm
1626         * support/regression/ports/hc08/support.c (_putchar): suppress
1627         warning of unused variable
1628         * src/SDCCicode.c: added SWAP entry to codeTable
1629
1630 2004-09-01 Maarten Brock <sourceforge.brock AT dse.nl>
1631
1632         * device/lib/sprintf.c: forgot to add this file before previous commit
1633
1634 2004-09-01 Vangelis Rokas <vrokas AT otenet.gr>
1635
1636         * src/pic16/gen.c (genPackBits): added operand right in function
1637         parameters, load result directly if p_type is POINTER (that is
1638         called by genNearPointerSet)
1639         * (genUnPackBits): added operand left in function parameters,
1640         * (genNearPointerGet, genNearPointerSet): prevent the loading of
1641         FSR0 if accessing bitfields,
1642
1643 2004-08-31 Maarten Brock <sourceforge.brock AT dse.nl>
1644
1645         * device/include/stdio.h: added NULL, size_t, typedef pfn_outputchar,
1646           _print_format; updated printf, sprintf, vsprintf
1647         * device/include/asm/default/features.h: corrected comment/define
1648         * device/lib/Makefile.in: added sprintf.c
1649         * device/lib/libsdcc.lib: added sprintf module
1650         * device/lib/printf_large.c,
1651         * device/lib/vprintf.c,
1652         * device/lib/sprintf.c: totally refactored printf_large and vprintf
1653           into these 3 files
1654         * support/regression/Makefile: changed ALL_PORTS into a usefull default
1655         * support/regression/ports/mcs51-stack-auto/spec.mk: added sprintf
1656         * support/regression/tests/bug-927659.c: removed dummy putchar, enabled
1657           hc08 test
1658         * support/regression/tests/zeropad.c: define idata as data for hc08
1659
1660 2004-08-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1661
1662         * src/SDCCpeeph.c (labelIsReturnOnly): support hc08 rts opcode also
1663         * src/SDCCpeeph.c (buildLabelRefCountHash): assume function entry point
1664         labels are referenced at least once (even if a reference is not found)
1665         * src/hc08/gen.c (emitcode): set isComment flag for comments
1666         * src/hc08/peeph.def: added rules 5a..5f (optimize redundant immediate
1667         loads), rules 6a..6b (optimize jumps to return)
1668
1669 2004-08-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1670
1671         * device/lib/acosf.c (acosf),
1672         * device/lib/asinf.c (asinf),
1673         * device/lib/atanf.c (atanf),
1674         * device/lib/ceilf.c (ceilf),
1675         * device/lib/cosf.c (cosf),
1676         * device/lib/coshf.c (coshf),
1677         * device/lib/cotf.c (cotf),
1678         * device/lib/fabsf.c (fabsf),
1679         * device/lib/floorf.c (floorf),
1680         * device/lib/log10f.c (log10f),
1681         * device/lib/logf.c (logf),
1682         * device/lib/sinf.c (sinf),
1683         * device/lib/sinhf.c (sinhf),
1684         * device/lib/sqrtf.c (sqrtf),
1685         * device/lib/tanf.c (tanf),
1686         * device/lib/tanhf.c (tanhf),
1687         * device/include/math.h: defined _FLOAT_FUNC_REENTRANT macro and
1688         replaced all instances of "reentrant" in the library functions
1689         defined in math.h with this macro.
1690         * support/regression/tests/float_trans.c: reenabled test for hc08
1691
1692 2004-08-30 Bernhard Held <bernhard AT bernhardheld.de>
1693
1694         * device/lib/pic16/Makefile.common.in: added MODELFLAGS again, it was
1695         erroneously deleted
1696
1697 2004-08-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1698
1699         * src/hc08/gen.c (loadRegFromAop): better use of clra & clrx
1700         * src/hc08/gen.c (genAnd, genOr): fixed bug with conditional when
1701         multi-byte volatile operands are used
1702         * src/hc08/gen.c (shiftRLong): fixed bug with wrong rotate direction
1703         * src/hc08/main.c (_hc08_genAssemblerPreamble): moved the built-in
1704         initialization to area GSINIT0 so that it would always precede
1705         any static initializers in GSINIT
1706         * support/regression/tests/zeropad.c: fixed idata define for hc08
1707         * support/regression/tests/bug-927659.c,
1708         * support/regression/tests/float_trans.c: disabled tests for hc08
1709         pending missing library routines
1710         * .version: increased version number to 2.4.4 - hc08 port now passes
1711         regression tests
1712
1713
1714 2004-08-29 Bernhard Held <bernhard AT bernhardheld.de>
1715
1716         * device/lib/pic16/Makefile.common.in: added $(MM) to fix `make clean`
1717         * Makefile.common.in,
1718         * as/Makefile,
1719         * as/hc08/Makefile.in,
1720         * as/mcs51/Makefile.in,
1721         * as/z80/Makefile.in,
1722         * debugger/mcs51/Makefile.in,
1723         * device/include/Makefile.in,
1724         * device/lib/Makefile.in,
1725         * doc/Makefile,
1726         * link/Makefile,
1727         * link/z80/Makefile.in,
1728         * packihx/Makefile.in,
1729         * sim/ucsim/main_in.mk,
1730         * sim/ucsim/avr.src/Makefile.in,
1731         * sim/ucsim/doc/Makefile.in,
1732         * sim/ucsim/gui.src/serio.src/Makefile.in,
1733         * sim/ucsim/hc08.src/Makefile.in,
1734         * sim/ucsim/s51.src/Makefile.in,
1735         * sim/ucsim/xa.src/Makefile.in,
1736         * sim/ucsim/z80.src/Makefile.in,
1737         * src/Makefile.in,
1738         * support/cpp2/Makefile.in,
1739         * support/librarian/Makefile,
1740         * support/makebin/Makefile: added DESTDIR to the install path proposed
1741         by "Maciej 'Agaran' Pijanka" <agaran AT pld-linux.org>
1742         * doc/sdccman.lyx: added DESTDIR documentation
1743
1744 2004-08-29 Vangelis Rokas (vrokas AT otenet.gr>
1745
1746         * src/pic16/gen.c (genFunction, genEndFunction): fixed return
1747         instruction for interrupt handlers, use fast returns when returning
1748         from high priority interrupts
1749
1750 2004-08-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1751
1752         * src/hc08/gen.c (genAnd, genOr, transferAopAop, rmwWithAop): optimized
1753         code generation
1754         * src/hc08/gen.c (genrshFour, genCpl): fixed bugs
1755         * src/hc08/gen.c (genMultOneByte, genDivOneByte, genModOneByte): fixed
1756         bugs, ported much of Bernhard's code from mcs51
1757         * src/mcs51/gen.c (genSend),
1758         * src/hc08/gen.c (genSend): fixed bug with lost SEND iCodes if more
1759         than one when calling a reentrant function
1760         * device/lib/_mullong.c: defined an alternate struct layout for big
1761         endian ports (hc08)
1762
1763 2004-08-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1764
1765         * src/hc08/gen.c (shiftL2Left2Result): fix for bug-500536 regression
1766         test
1767
1768 2004-08-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1769
1770         * src/SDCCsymt.c (processFuncArgs): make sure parameter types
1771         are sane and complete before asking the port its prefered parameter
1772         passing method (fixes bug #1017633)
1773         * device/lib/hc08/_ret.c: added "data" storage class to _ret2
1774         and _ret3
1775
1776 2004-08-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1777
1778         * src/hc08/gen.c (genPackBitsImmed, genUnpackBitsImmed): fix offset
1779         problem in bitfields >= 8 bits.
1780
1781 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
1782
1783         * src/SDCCsymt.c: undid changes that were not meant to be committed
1784
1785 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
1786
1787         * support/regression/ports/hc08spec.mk: REENTRANT must be reentrant
1788
1789 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
1790
1791         * src/hc08/gen.c (genUminusFloat): fixed bug where only 3 bytes were
1792           copied and wrong bit got inverted
1793
1794 2004-08-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1795
1796         * src/hc08/gen.c (genPointerSet, genFarPointerSet): moved code from
1797         genFarPointerSet into genPointerSet; eliminated genFarPointerSet
1798         * src/hc08/gen.c (genPointerGet, genFarPointerGet): moved code from
1799         genFarPointerGet into genPointerGet; eliminated genFarPointerGet
1800         * src/hc08/gen.c (genPackBitsImmed): generate optimized code for
1801         assignments to bitfields at known addresses
1802         * src/hc08/gen.c (genUnpackBitsImmed): generate optimized code for
1803         reads from bitfields at known addresses
1804         * src/hc08/ralloc.c (packRegisters),
1805         * src/hc08/gen.c (genPointerGet, genUnpackBits, genUnpackBitsImmed,
1806         genhc08Code): optimize pointer get values used as conditionals
1807         * src/hc08/peeph.def: added rules 2e & 2f to optimize bit test
1808         and branch
1809
1810 2004-08-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1811
1812         * src/mcs51/gen.c (genPointerGet, genNearPointerGet, genPagedPointerGet,
1813         genFarPointerGet, genCodePointerGet, genGenPointerGet, genUnpackBits),
1814         * src/mcs51/ralloc.c (packRegisters): optimize pointer get values used
1815         as conditionals
1816
1817 2004-08-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1818
1819         * src/mcs51/peeph.def: peepholes 248.i-m for xdata bitfields
1820
1821 2004-08-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1822
1823         * src/mcs51/ralloc.c (packRegsForOneuse): fixed bug #1012650 and some
1824         related problems
1825
1826 2004-08-21 Bernhard Held <bernhard AT bernhardheld.de>
1827
1828         * sim/ucsim/cmd.src/Makefile.in: run lex only if $(PRJDIR)/devel exists
1829
1830 2004-08-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1831
1832         * src/z80/ralloc.c (packRegsForAssign): ported some bug fixes from the
1833         mcs51 port
1834
1835 2004-08-16 Slade Rich <slade_rich AT users.sourceforge.net>
1836
1837         * src/pic/gen.c: Restored fn genRet as previous fix was incorrect.
1838
1839 2004-08-14 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1840
1841         * src/mcs51/gen.c (genJumpTab): jumptables for more than 16 switch
1842         cases use more compact code.
1843
1844 2004-08-13 Slade Rich <slade_rich AT users.sourceforge.net>
1845
1846         * src/pic/gen.c: Fixed problem with fn returning a variable bigger than a char.
1847
1848 2004-08-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1849
1850         * src/SDCClrange.c (findPrevUse): fixed bug #1007371
1851
1852 2004-08-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1853
1854         * src/SDCCsymt.h,
1855         * src/SDCCsymt.c (changePointer, checkDecl, addSymChain): changed
1856         parameter of changePointer() from symbol* to sym_link*
1857         * src/SDCCast.c (decorateType): call changePointer() for CAST op
1858         * src/SDCCsymt.c (compareType): void* type is castable to other
1859         pointers, but not necesarily an exact match.
1860         * src/SDCCicode.c (geniCodeCast): allow void* casting here since it
1861         is no longer blindly treated as an exact match.
1862         * src/SDCCval.c (valCastLiteral): treat missing type as cast to void
1863
1864 2004-08-12 Slade Rich <slade_rich AT users.sourceforge.net>
1865
1866         * src/pic/glue.c: Added struct initialisation fn printIvalStruct.
1867
1868 2004-08-11 Slade Rich <slade_rich AT users.sourceforge.net>
1869
1870         * src/pic/gen.c,
1871         * src/pic/pcode.c,
1872         * src/pic/ralloc.h,
1873         * src/pic/ralloc.c: Printing rIdx on internal verbose debug.
1874
1875 2004-08-10 Slade Rich <slade_rich AT users.sourceforge.net>
1876
1877         * src/pic/device.c,
1878         * src/pic/device.h,
1879         * src/pic/device.c: Will no longer exit if #pragma maxram has not been defined.
1880
1881 2004-08-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1882
1883         * src/mcs51/gen.c (emitcode): fixed bug #992819
1884
1885 2004-08-05 Maarten Brock <sourceforge.brock AT dse.nl>
1886
1887         * src/pic/ralloc.c (deassignLR): allthough pic port is buggy already,
1888           there's no need to make it worse
1889
1890 2004-08-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1891
1892         * src/mcs51/ralloc.c (deassignLR),
1893         * src/ds390/ralloc.c (deassignLR),
1894         * src/hc08/ralloc.c (deassignLR),
1895         * src/z80/ralloc.c (deassignLR),
1896         * src/pic/ralloc.c (deassignLR),
1897         * src/pic16/ralloc.c (deassignLR),
1898         * src/avr/ralloc.c (deassignLR),
1899         * src/SDCClrange.c (findRecursiveSucc, findRecursivePred, findPrevUse,
1900         rlivePoint): fixed another part of bug #971834
1901
1902 2004-08-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1903
1904         * src/z80/main.c: enabled "critical" keyword
1905         * src/z80/mappings.i,
1906         * src/z80/gen.c (genFunction, genEndFunction): support for interrupt
1907         functions (fixes bug #979646)
1908         * doc/sdccman.lyx: added a subsection explaining z80 interrupt support
1909
1910 2004-08-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
1911
1912         * src/mcs51/gen.c (genInline): Add \n for labels, not DOS/WIN dirs
1913           such as c:\mydir.
1914
1915 2004-08-03 Maarten Brock <sourceforge.brock AT dse.nl>
1916
1917         * src/SDCCloop.c (loopInvariants): fixed bug 983545, hope this
1918           doesn't disable too much optimizations
1919
1920 2004-08-02 Slade Rich <slade_rich AT users.sourceforge.net>
1921
1922         * src/pic/glue.c Disabled "WARNING: function 'main' undefined" when -S option is used.
1923
1924 2004-08-02 Maarten Brock <sourceforge.brock AT dse.nl>
1925
1926         * src/SDCClrange.c (rlivePoint): fixed bug 988568, thanks to anonymous
1927
1928 2004-08-02 Slade Rich <slade_rich AT users.sourceforge.net>
1929
1930         * src/pic/gen.c tidied up tabs
1931         * src/pic/genarith.c tidied up tabs and fixed bug with literal multiple where same register was used for hi and low byte
1932         * src/pic/main.c tidied up tabs
1933         * src/pic/pcode.c tidied up tabs and disabled verbose code generation
1934         * src/pic/pcoderegs.c tidied up tabs
1935         * src/pic/ralloc.c tidied up tabs
1936
1937 2004-07-30 Vangelis Rokas <vrokas AT otenet.gr>
1938
1939         * src/SDCCmem.c (allocGlobal): don't turn S_REGISTER storage class
1940         to S_FIXED for pic16 port and when symbol is not in level 0,
1941         allocate for S_REGISTER storage class and pic16 port, too,
1942         * src/pic16/device.h: prototype for checkSym,
1943         * src/pic16/device.c (pic16_dump_access, checkSym): NEW,
1944         * (pic16_assignConfigWordValue): test the value and the mask to
1945         validate that the value is suitable for the configuration word,
1946         * src/pic16/glue.c (pic16_printIvalFuncPtr): use 'externs' to
1947         collect extern declared symbols, don't emit symbol twice, check
1948         first if symbol is in publics set first,
1949         * src/pic16/main.c (_pic16_keywords[]): added keyword 'register',
1950         * added command line '--fstack' which enables an experimental
1951         feature for stack access, too buggy to be used yet...
1952         * src/pic16/ralloc.c (pic16_accessregWithName): NEW,
1953         * (pic16_allocDirReg): when register has storage class S_REGISTER
1954         allocate in pic16_dynAccessRegs,
1955         * device/include/pic16/pic18f????.h: modified configuration word
1956         naming convention, words started as CONFIG0H but should be CONFIG1H
1957
1958 2004-07-29 Maarten Brock <sourceforge.brock AT dse.nl>
1959
1960         * device/include/mcs51reg.h: fixed bug 970993
1961
1962 2004-07-27 Maarten Brock <sourceforge.brock AT dse.nl>
1963
1964         * added lib/calloc.c, lib/free.c, lib/realloc.c, include/stddef.h
1965         * updated lib/malloc.c, lib/libsdcc.lib, lib/Makefile.in, include/malloc.h
1966         * src/SDCC.lex (doPragma): added pragma disable_warning <nnn>
1967         * src/SDCCmain.c (parseCmdLine): added option --disable-warning <nnn>
1968         * src/ds390/gen.c (genPlusIncr): fixed bug when incrementing generic pointers
1969         * support/Util/SDCCerr.c (vwerror): suppress disabled warnings and output
1970           error/warning numbers,
1971           added function setWarningDisabled()
1972         * support/Util/SDCCerr.h: added setWarningDisabled() and MAX_ERROR_WARNING
1973         * support/regression/ports/mcs51-stack-auto/spec.mk: added dependencies
1974           _memcmp.c _memmove.c calloc.c realloc.c free.c
1975         * support/regression/tests/malloc.c: added tests for new functionality
1976         * support/regression/tests/zeropad.c: added tests for truncated initializers
1977           and initialized char arrays starting with '\x0'
1978         * src/mcs51/peeph.def: fixed regression, added peephole 177.f
1979
1980 2004-07-26 Bernhard Held <bernhard AT bernhardheld.de>
1981
1982         * support/valdiag/tests/overflow.c: fixed warning on (1 >> 40)
1983
1984 2004-07-26 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1985
1986         * doc/sdccman.lyx: updated example in section "Absolute Addressing"
1987         * src/mcs51/peeph.def: added contributed fix for "bug" #995347 as
1988         peephole 177.e. Thanks to anonymous
1989
1990 2004-07-25 Vangelis Rokas <vrokas AT otenet.gr>
1991
1992         * src/pic16/glue.c (pic16_printIvalFuncPtr): when an extern
1993         function isn't used in the source but referenced as a
1994         variable initializer then declare it as extern in .asm file
1995
1996 2004-07-24 Vangelis Rokas <vrokas AT otenet.gr>
1997
1998         * .version: increased version number to 2.4.3
1999
2000         Adding version extension according to ChangeLog CVS revision
2001         * src/Makefile.in (target all): added dependency 'version.h'
2002         * (rule version.h): added rule to create version.h from ChangeLog,
2003         * (rule dep): added dependency version.h,
2004         * src/version.awk: AWK script to create version.h
2005         * src/SDCCdwarf2.c (dwWriteModule),
2006         * src/SDCCglue.c (initialComments),
2007         * src/SDCCmain.c (printVersionInfo): modified to write after
2008         version string the version extension number,
2009         * src/SDCCutil.c: included "version.h"
2010         * (getBuildNumber): NEW, returns SDCC's ChangeLog minor revision
2011         number,
2012         * src/SDCCutil.h: added prototype for getBuildNumber
2013
2014         * src/SDCCmain.c (parseCmdLine): when sOpt is 'I' add rest in
2015         includeDirsSet, too,
2016         * src/SDCCsymt.c (checkSClass): don't emit error when a variable,
2017         const char [] is found in function prototype...
2018
2019         * src/pic16/genarith.c (pic16_genUMult8XLit_8): optimization to omit
2020         moving to WREG with source is already in WREG,
2021         * src/pic16/gen.h: added AOP_FSR0 and AOP_FSR2 in enum,
2022         * src/pic16/gen.c (getFreePtr): updated to look for FSR0 and FSR2,
2023         * (aopForSym): stack'ed symbols are partially supported, added
2024         if-clause to support symbols in FARSPACE,
2025         * (sameRegs): added test for AOP_ACC to see if registers are same,
2026         * (pic16_freeAsmop): added case for AOP_FSR0 and AOP_FSR2,
2027         * (pic16_aopGet): added case for AOP_FSR0 and AOP_FSR2,
2028         * (pic16_popRegFromString): will not allocate a new register if it
2029         doesn't find one by name, bug may have introduced...
2030         * (pic16_popGet): added case for AOP_FSR0 and AOP_FSR2,
2031         * (genIpush): revived to use pic16 port's stack,
2032         * (genAddrOf): added incomplete case for stack'ed operand,
2033         * (genCast): optimized a pair of MOVFW,MOVWF to MOVFF
2034         * src/pic16/genutils.c (pic16_genNot): almot new vesrion for NOT,
2035         can handle multibyte operands,
2036         * src/pic16/glue.c (pic16_printIval*): some debug info added,
2037         * (pic16initialComments): added message for MPLAB compatibility
2038         mode enabled,
2039         * src/pic16/main.h: prototype for pic16_mplab_comp,
2040         * src/pic16/main.c (pic16_optionsTable): new option --mplab-comp,
2041         which enabled MPLAB compatibility mode (i.e. no #LINE/#FILE, BANKED)
2042         * (_pic16_linkEdit): NEW, handles link stage, transferred here
2043         because of increased complexity of procedure,
2044         * (_process_pragma): stack pragma changed to format 'stack pos len',
2045         emit symbol '_stack_end' to conform with gplink,
2046         * src/pic16/pcode.c (pic16_newpCodeOpBit): using pic16_regWithName
2047         to search for register,
2048         * (pic16_get_op, pic16_get_op2): added case for PO_W, PO_WREG and
2049         PO_GPR_REGISTER,
2050         * (pic16_pCode2str): when in MPLAB compatibility mode, comment out
2051         #LINE directives and replace 'B' with 'BANKED' in instruction opcodes
2052         * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): added
2053         case for PO_GPR_REGISTER,
2054         * (pic16_AnalyzeBanking): removed the old message for inc2h.pl, past
2055         dies, the new era is ahead !...
2056         * src/pic16/ralloc.c: added hash reposits pic16_dynAllocRegNames and
2057         pic16_dynInternalRegs,
2058         * (pic16_allocregWithName, pic16_procregWithName, pic16_regWithname): NEW,
2059         * (pic16_allocDirReg): minor optimizations and bug fixes,
2060         * (pic16_allocWithIdx): when searching pic16_dynProcessorRegs use fixed,
2061
2062         * device/lib/pic16/startup/crt0*.c: extern definition of stack_end,
2063         load stack and frame pointer with address of 'stack_end' symbol
2064
2065 2004-07-23 Vangelis Rokas <vrokas AT otenet.gr>
2066
2067         * src/pic16/glue.c (pic16emitStaticSeg): fixed bug with files
2068         without source code but only variable initializers
2069
2070 2004-07-20 Vangelis Rokas <vrokas AT otenet.gr>
2071
2072         * src/pic16/glue.c (pic16emitRegularMap): unused functions marked as
2073         external are not declared as extern to reduce overhead while linking
2074
2075 2004-07-20 Maarten Brock <sourceforge.brock AT dse.nl>
2076
2077         * src/SDCCast.c (decorateType): removed buggy fix for bug #979599
2078
2079 2004-07-11 Maarten Brock <sourceforge.brock AT dse.nl>
2080
2081         * src/SDCCglue.c (printIvalArray): fixed bug #984229, thanks to Phuah
2082           Yee Keat for the patch
2083         * src/SDCCast.c (decorateType): fixed bug #979599
2084         * src/ds390/gen.h: removed local fReturnSizeDS390
2085         * src/ds390/gen.c: made fReturnSizeDS390 signed short to remove a warning
2086         * src/ds390/gen.c (genAnd, genOr, genXor),
2087         * src/mcs51/gen.c (genAnd, genOr, genXor): generate better optimized code
2088
2089 2004-07-04 Vangelis Rokas <vrokas AT otenet.gr>
2090
2091         * src/SDCCmain.c (linkEdit): modifications only for pic16 port,
2092         add relFilesSet to $3, manipulate $2 to handle linking of object
2093         files without source files in command line,
2094         * device/include/pic16 (all headers): added ID location macros,
2095         * src/pic16/device.c (struct PIC16_device Pics16[]): added field
2096         entries for ID location bytes,
2097         * (pic16_assignIdByteValue): NEW,
2098         * src/pic16/device.h: new structures idRegInfo_t and idBytesInfo_t,
2099         added field dumpcalltree to pic16_options_t,
2100         * src/pic16/gen.c (genCmp): fixed bug case so a temporary register
2101         is used instead of pic16_Gstack_base_addr, check if (ifx) before
2102         emitting rFalseIfx label after check_carry label,
2103         * src/pic16/glue.c (PIC16_IS_IDLOC_ADDRESS, PIC16_IS_HWREG_ADDRESS,
2104         pic16_emitDIRegs), NEW
2105         * (pic16glue): dump .calltree file when option --calltree found,
2106         * src/pic16/main.c (OPTION _pic16_optionsTable): new option --calltree
2107         * (_pic16_genAssemblerPreamble): emit ID locations after
2108         configuration registers,
2109         * (pic16_linkCmd): modifications of the link command,
2110         * src/pic16/pcode.c (pic16_pciMOVFF): PCC_REGISTER replaces PCC_REGISTER2
2111         * (pic16_pCodeInitRegisters): don't init stack registers,
2112         * (pic16_findPrevInstruction): fixed bug,
2113         * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): fixed
2114         bug with immediate registers,
2115         * (buildCallTree): traces stack push and pop,
2116         * (pct2): dump also stack usage for each function,
2117         * src/pic16/ralloc.c (dynrIdx): registers names start from 0x00
2118         * (pic16_allocDirReg): various modifications,
2119         * (pic16_typeRegWithIdx): when searching pic16_dynProcessorRegs set
2120         fixed to 1,
2121
2122 2004-07-02 Vangelis Rokas <vrokas AT otenet.gr>
2123
2124         * src/pic16/pcode.c: removed buggy double colon
2125
2126 2004-07-01 Borut Razem <borut.razem AT siol.net>
2127
2128         * support/scripts/sdcc.nsi: added include/pic16 to setup
2129
2130 2004-06-30 Vangelis Rokas <vrokas AT otenet.gr>
2131
2132         * device/lib/Makefile.in: fixed bug in target objects-pic16,
2133         * device/lib/pic16/Makefile: prefixed with dash (-) command under
2134         target 'clean',
2135         * doc/sdccman.lyx: changed version to 2.4.2 and added some port
2136         specific command line arguments. Also added sample lkr script
2137         for placing a variable at a specific memory bank.
2138         * src/pic16/device.c (pic16_dump_gsection): NEW, to dump variables
2139         at a specific memory bank,
2140         * (pic16_dump_isection): fixed bug which caused string literals to
2141         be omitted when dumping idata section,
2142         * (pic16_groupRegistersInSection): added code to handle registers
2143         in specific memory banks,
2144         * src/pic16/gen.c: labelOffset is prefixed with pic16_ and made
2145         public, all references are renamed too,
2146         * (pic16_aopGet): removed switch cases for AOP_R0,AOP_R1,AOP_DPTR,
2147         AOP_DPTR2,
2148         * (pic16_storeForReturn): added case to handle when dest is WREG,
2149         * src/pic16/genarith.c (pic16_pCodeOpSubType): NEW,
2150         * src/pic16/glue.c (pic16emitRegularMap): when adding a register in
2151         pic16_rel_udata, check to see if that register is marked as being
2152         a member of a specific memory bank,
2153         * (pic16_printIvalCharPtr): added code to add string literals either
2154         to code or the idata sections,
2155         * src/pic16/main.c (_process_pragma): added \n to WHITE constant,
2156         also accept the 'udata' pragma,
2157         * src/pic16/main.h: new structure types sectName and sectSym
2158         * src/pic16/pcode.c: added new pCodeInstruction entry for BANKSEL
2159         * (newpCodeOpBit): added PIC_OPTYPE subt in function prototype,
2160         * (pic16_findPrevInstruction): fixed, it returned nothing,
2161         * (insertBankSwitch): fixed to emit banksel/skip and skip/banksel
2162         instruction combinations,
2163         * (pic16_FixRegisterBanking): heavily reorganised,
2164         * (pic16_AnalyzeBanking): if generating banksel directives is
2165         disabled, then don't call FixRegisterBanking at all,
2166         * src/pic16/ralloc.c (bitEQUs, aliasEQUs, allDefsOutOfRange):
2167         completely removed,
2168         * (pic16_writeUsedRegisters): added call to pic16_dump_gsection
2169
2170 2004-06-29 Bernhard Held <bernhard AT bernhardheld.de>
2171
2172         * src/SDCCglue.c (printChar): fixed bug #973350, patch provided by
2173         Phuah Yee Keat <yk.phuah AT nestac.com>
2174
2175 2004-06-28 Vangelis Rokas <vrokas AT otenet.gr>
2176
2177         * src/pic16/glue.c (pic16createInterruptVect): function now emits
2178         correctly the IVT even if it is relocated to some other location
2179
2180 2004-06-28 Vangelis Rokas <vrokas AT otenet.gr>
2181
2182         * device/include/pic16/pic18fregs.h: added case for pic18f2220.h
2183         * device/include/pic16/pic18f2220.h: NEW,
2184         * device/lib/pic16/libdev/pic18f2220.c: NEW,
2185         * device/lib/pic16/libdev/Makefile: added 18f2220 in DEVS,
2186         * src/pic16/device.c (struct Pics16): added info for 18f2220,
2187         * src/pic16/device.h (struct pic16_options): added ivt_loc and
2188         nodefaultlibs, ivt_loc is the location of the interrupt vector
2189         table, and nodefaultlibs signs that default libraries should not be
2190         linked in link stage,
2191         * src/pic16/gen.c (genFunction): relocate interrupt vector functions
2192         according to --ivt-loc argument,
2193         * src/pic16/main.c (_process_pragma): emit '_stack' as public symbol
2194         when pragma stack is found,
2195
2196 2004-06-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2197
2198         * src/mcs51/peeph.def: added peepholes 182.d (return 0.0),
2199         256 (range check), 257 (do while), 258.a-f (bit banging
2200         f.e. on 3-wire SPI bus)
2201
2202 2004-06-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2203
2204         * src/SDCClrange.c (findNextUseSym): fixed a live range bug with
2205         variables used exclusively within a loop
2206
2207 2004-06-21 Bernhard Held <bernhard AT bernhardheld.de>
2208
2209         * src/mcs51/gen.c (genCpl): quick fix for bug #974835
2210
2211 2004-06-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2212
2213         * src/SDCClrange.c (computeClash): fixed bug #971834
2214
2215 2004-06-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2216
2217         * src/mcs51/gen.c (genCmp): fixed bug #975903
2218         * src/hc08/gen.c (operandsEqu),
2219         * src/ds390/gen.c (operandsEqu),
2220         * src/z80/gen.c (operandsEqu),
2221         * src/pic/gen.c (operandsEqu),
2222         * src/pic16/gen.c (operandsEqu),
2223         * src/mcs51/gen.c (operandsEqu): fixed bug #976283
2224         * src/SDCCmain.c (parseCmdLine): report --unknown-option only once
2225
2226 2004-06-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2227
2228         * src/SDCCcse.c (cseBBlock): fixed bug #966963
2229
2230 2004-06-12 Vangelis Rokas <vrokas AT otenet.gr>
2231
2232         * src/pic16/gen.c (genPointerGet): added E_INTERNAL_ERROR for
2233         default case in switch statement,
2234         * glue.c (pic16_initPointer): expr is initialised via decoarteType
2235         to eliminate problem with initialisation of pointers, but problem
2236         still exists,
2237         * (pic16_pointerTypeToGPByte): removed, no needed for pic16,
2238         * (emitStaticSegment): removed various lines emitting debug info,
2239         * src/pic16/pcode.c, src/pic16/pcode.h, src/pic16/ralloc.h:
2240         added processor registers for utilizing EEPROM,
2241         * src/pic16/pcode.c (pic16_emitDB): number of DBs emitted is not
2242         configurable and set 8
2243
2244 2004-06-08 Vangelis Rokas <vrokas AT otenet.gr>
2245
2246         * .version: increased version number to 2.4.2,
2247
2248         Cumulative patch for pic16 port
2249         * src/pic16/device.c: changed scheme to dump initial values for
2250         variables in idata segment, all print_idata* functions were removed,
2251         now the pic16_printIval* will be called,
2252         * src/pic16/glue.c: (pic16_initPointer, pic16_pointerTypeToGPByte,
2253         * _pic16_printPointerType, pic16_printPointerType,
2254         * pic16_printGPointerType, pic16_printIvalArray, pic16_printIvalStruct,
2255         * pic16_printIvalBitFields, pic16_printIvalFuncPtr, pic16_printIvalPtr:
2256         NEW, similar to the respective functions in SDCCglue.c,
2257         * src/pic16/pcode.c (pic16_emitDB, pic16_flushDB): reverted to old
2258         way, emitting hex bytes,
2259         * (pic16_emitDS): NEW, emits a string for pointer initialisation,
2260
2261 2004-06-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2262
2263         * src/avr/ralloc.c (serialRegAssign),
2264         * src/xa51/ralloc.c (serialRegAssign),
2265         * src/pic/ralloc.c (serialRegAssign),
2266         * src/pic16/ralloc.c (serialRegAssign),
2267         * src/hc08/ralloc.c (serialRegAssign),
2268         * src/z80/ralloc.c (serialRegAssign),
2269         * src/ds390/ralloc.c (serialRegAssign),
2270         * src/mcs51/ralloc.c (serialRegAssign): fixed bug #964479
2271
2272 2004-06-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2273
2274         * src/SDCCicode.c (geniCodeJumpTable): fixed bug #967601
2275         * src/SDCCpeeph.c (labelIsReturnOnly): fixed bug #966505
2276
2277 2004-06-07 Vangelis Rokas <vrokas AT otenet.gr>
2278
2279         Cumulative patch for pic16 port:
2280         * src/pic16/device.h (typedef PIC16_device) modified fields for
2281         defining microcontrollers,
2282         * src/pic16/device.c: added new info for all devices in Pics16 array,
2283         * src/pic16/gen.c (genPcall): fixed bug that caused the return label
2284         to be optimised out by the pCode optimiser,
2285         * src/pic16/glue.c (pic16emitRegularMap): treat implicit aggragates
2286         specially, bug reported by G.M. Gallant,
2287         * src/pic16/pcode.c (pic16_newpCodeLabelFORCE): NEW, marks a label
2288         as force'd so that cannot be optimised out by pCode optimiser,
2289         * src/pic16/pcode.c,
2290         * src/pic16/pcodepeeph.c,
2291         * src/pic16/pcoderegs.c: many modifications to re-enable peepholes,
2292         they are disabled by default, but can be enabled explicit with
2293         command argument --denable-peeps, for testing,
2294         * device/lib/pic16/startup/Makefile: added --no-peep,--pomit-config-words,
2295         --pomit-ivt in COMPILE_FLAGS
2296
2297 2004-06-06 Maarten Brock <sourceforge.brock AT dse.nl>
2298
2299         * src/pic16/pcode.c (pic16_emitDB): removed double semicolon which fails
2300           compilation on MSVC
2301
2302 2004-06-06 Maarten Brock <sourceforge.brock AT dse.nl>
2303
2304         * device/include/sab80515.h: added sfr P6, changed GPL to LGPL
2305
2306 2004-06-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2307
2308         device/include/sab80515.h: fixed bug #967492, DAPR is defined at adress
2309         0xd8, but the correct adress is 0xda. Thanks to anonymous for reporting
2310
2311 2004-06-06 Vangelis Rokas <vrokas AT otenet.gr>
2312
2313         * src/pic16/device.c (pic16_assignConfigWord): fixed bug that
2314         would only assign 0x300001 register.
2315
2316 2004-06-05 Vangelis Rokas <vrokas AT otenet.gr>
2317
2318         * device/lib/pic16/startup/Makefile: added $(MODELFLAGS)
2319         in COMPILE_FLAGS. Thanks to G. Gallant for report.
2320
2321 2004-06-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2322
2323         * doc/sdccman.lyx: minor changes, mentioned beta vendor support
2324         for ds80c400
2325         * src/mcs51/peeph.def: ran unexpand -a over peeph.def
2326         * src/mcs51/peeph.def: removed obsolete peephole 100.a,
2327         added peephole 254 (left shift), 255 (jump table)
2328
2329 2004-06-04 Vangelis Rokas <vrokas AT otenet.gr>
2330
2331         * device/lib/Makefile.in: removed comment line with model-pic16,
2332         * (target port-specific-objects-pic16): the libraries and objects
2333         are copied to the build directory form the device/lib/pic16/bin
2334         directory
2335
2336         Cumulative patch concerning pic16 port:
2337         * library directory has been re-organized,
2338         * added support for PIC18F1220,
2339         * added headers and library sources for chips 18f1220,18f6520,
2340         18f6620,18f6680,18f6720,18f8520,18f8620,18f8680,18f8720
2341
2342         * configuration registers setting has changed, now each supported
2343         device has a complete description of the registers it uses,
2344         * all initialisations are moved to idata sections, these section
2345         can be absolute or relocatable,
2346         * fixed initialisation of codespace variables,
2347         * fixed warning about PCLATU and gpsim,
2348         * src/pic16/gen.c (genCmp): now can handle partially iCodes with no ifx,
2349         * (genAssign): use table reads when assigning from variables in codespace,
2350         * src/pic16/glue.c (pic16emitStaticSeg): fixed to correctly initialise
2351         char/int variables placed in codespace,
2352         * (pic16_emitConfigRegs): NEW, emits a list with configuration
2353         registers set in .asm file, no need for --pomit-config-words anymore,
2354         * (pic16glue): some 8051 legacy segments are commented out
2355         (to be removed completely),
2356         * added support for alternative assembler and linker with --asm=
2357         and --link= command line arguments,
2358         * peepholes are disabled automatically in the port, no need to
2359         specify on command line,
2360         * port supports natively char/int/long multiplication, but converts
2361         all divisions to support functions,
2362         * main.c: pic16_linkCmd and pic16_asmCmd changed to force output
2363         to the file set in variable $2,
2364         * pcode.c (pic16_emitDB, pic16_flushDB): modified to print printable
2365         strings in ASCII format and not in hex,
2366         * ralloc.c (serialRegAssign): added a triplet of conditional calls
2367         to pic16_allocDirReg for IC_RESULT, IC_LEFT and IC_RIGHT so to
2368         allocate proper register if iCodes aren't temporary,
2369
2370 2004-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
2371
2372         * support/regression/tests/zeropad.c: added TEST_G macro for alpha
2373
2374 2004-06-02 Vangelis Rokas <vrokas AT otenet.gr>
2375
2376         * src/pic16/gen.c (genPcall): warning about gpsim and PCLATU
2377         is commented out
2378
2379 2004-06-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2380
2381         * src/hc08/gen.c (genPointerGetSetOfs): disabled optimization if
2382         computed address is reused
2383         * src/hc08/gen.c (genPackBits): fixed offsets in assignments to
2384         multi-byte bitfields
2385
2386 2004-06-01 Maarten Brock <sourceforge.brock AT dse.nl>
2387
2388         * src/z80/gen.c: (genArrayInit): must check for pointers too
2389
2390 2004-06-01 Maarten Brock <sourceforge.brock AT dse.nl>
2391
2392         * support/regression/tests/zeropad.c: never meant to commit the
2393           nestedstruct test: removed, added check for GCC version
2394
2395 2004-05-31 Maarten Brock <sourceforge.brock AT dse.nl>
2396
2397         * src/SDCCast.c (createIvalArray): fixed bug 770487 SIGSEGV
2398         * src/SDCCglue.c (emitRegularMap): fixed bug 770484 allocation problem
2399         * src/SDCCglue.c (initPointer, printIvalType, printIvalStruct,
2400           printIvalArray, printIvalFuncPtr, printIvalPtr, printIval): fixed
2401           bugs 928906 and 954082 half-empty initializers
2402         * src/SDCCsymt.h,
2403         * src/SDCCsymt.c (getAllocSize): added for above fix
2404         * src/z80/gen.c (genArrayInit): fixed bug 741044
2405         * support/regression/tests/zeropad.c: added tests
2406
2407 2004-05-30 Vangelis Rokas <vrokas AT otenet.gr>
2408
2409         * src/pic16/device.c (pic16_dump_section): corrected bug which
2410         caused some symbols of the libraries to be misplaced
2411
2412 2004-05-28 Vangelis Rokas <vrokas AT otenet.gr>
2413
2414         * src/pic16/glue.c,
2415         * src/pic16/ralloc.h,
2416         * src/pic16/ralloc.cc: prefixed IS_CONFIG_ADDRESS with PIC16_
2417         to fix conflict with pic port
2418
2419 2004-05-28 Vangelis Rokas <vrokas AT otenet.gr>
2420
2421         * src/pic16/glue.c (pic16emitStaticSeg): do not print as publics or
2422         externs configuration variables,
2423         * src/pic16/ralloc.h,
2424         * src/pic16/ralloc.cc: IS_CONFIG_ADDRESS is made public and added
2425         prototype in header, commented out some debug messages
2426
2427 2004-05-26 Vangelis Rokas <vrokas AT otenet.gr>
2428
2429         * src/pic16/glue.c,
2430         * src/pic16/main.c,
2431         * src/pic16/pcode.c: added gpasm directives #FILE/#LINE
2432         for gpasm COFF object generation. Thanks to D. Hawkins for
2433         his patch info
2434
2435 2004-05-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2436
2437         * src/ds390/main.c,
2438         * src/mcs51/main.c: fixed sort order of mnemonics (thanks to Maarten
2439         Brock for spotting this)
2440         * src/ds390/gen.c (genEndFunction),
2441         * src/mcs51/gen.c (genEndFunction): always save psw if function is an
2442         interrupt handler and critical. Disable push/pop optimizations when
2443         peephole optimizations disabled.
2444
2445 2004-05-25 Vangelis Rokas <vrokas AT otenet.gr>
2446
2447         Updated pic16 library sources and headers.
2448         * device/lib/pic16/pic18f*/ ,
2449         * device/include/pic16/*.h: modified to handle structured SFR
2450         definitions
2451
2452 2004-05-25 Vangelis Rokas <vrokas AT otenet.gr>
2453
2454         * src/port.h (PORT structure): added hook initPaths, now each
2455         port can declare its own default search paths,
2456         which can been seen with the --print-search-dirs option,
2457         see pic16 port for example,
2458         * src/SDCCmain.c (setBinPaths, setIncludePaths, setLibPath,
2459         setDataPaths): test to options.printSearchDirs is ifdef'ed out,
2460         * (doPrintSearchDirs): NEW, replaces in a central manner the
2461         printing of search dirs which was split in set*Paths functions,
2462         * (main): added call to port->initPaths and doPrintSearchDirs,
2463         * src/avr/main.c,
2464         * src/ds390/main.c,
2465         * src/hc08/main.c,
2466         * src/izt/i186.c,
2467         * src/izt/tlcs900h.c,
2468         * src/mcs51/main.c,
2469         * src/pic/main.c,
2470         * src/pic16/main.c: modified port structures to reflect addition of
2471         initPaths hook,
2472
2473         * src/pic16/device.c (regCompare): registers are finally sorted by name,
2474         * (pic16_dump_section): for registers in same address reserve memory once,
2475         * src/pic16/device.h (struct PIC16_device): changed variable gen_banksel
2476         to no_banksel,
2477         * src/pic16/genarith.c (pic16_genPlus): added code to handle cases where
2478         result is greater in size than right or left,
2479         * (pic16_genUMult8X8_8): there are some cases where the result can
2480         be 16 bits size, so handle these,
2481         * src/pic16/gen.c: changed some pic16_emitpcomment to DEBUGpic16_emitcode,
2482         * (pic16_outBitC): modified to emit pcodes,
2483         * (pic16_storeForReturn): using is_LitOp to see if operand is literal
2484         or not,
2485         * (genDivOneByte): implemented algorithm to divide 8-bits,
2486         * (genCmp): uncommented goto, but issues still exist,
2487         * (genAnd): fixed a bug with variables >8bits,
2488         * (genPackBits): optimization added that uses BCF/BSF to change a
2489         single bit,
2490         * (genAssign): fixed bug when assigning floating point literals,
2491         * src/pic16/glue.c (pic16glue): added assembler directive 'code' before
2492         __sdcc_gsinit_startup label,
2493         * src/pic16/main.c (_pic16_init): removed search directory
2494         initialisations,
2495         * (_pic16_initPaths): NEW, used to initialise search directories,
2496         * (_hasNativeMulFor): support functions for all except char/int
2497         multiplication, and char division,
2498         * (PIC16_port struct): modified entry for native mul support,
2499         * src/pic16/pcode.c (insertBankSwitch): modified to support the renamed
2500         no_banksel option,
2501         * (buildCallTree): call to register_usage is ifdef'ed out,
2502
2503 2004-05-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2504
2505         * device/include/string.h: applied Stas Sergeev's patch to make this
2506         header file compatible with the preprocessor -Wundef option
2507         * src/SDCCmain.c (main): abort compilation if preprocessor reports
2508         failure (fixes bug #941458)
2509
2510 2004-05-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2511
2512         * src/SDCCopt.c (killDeadCode): fixed bug #907733
2513         * support/Util/SDCCerr.c: reworded E_AUTO_ASSUMED diagnostic to clarify
2514         that the variable, not the function, should be static
2515         * src/SDCCval.c (valCastLiteral): fixed bit initialization from literal
2516         to be consistent with non-literal case
2517
2518 2004-05-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2519
2520         * src/SDCCast.c (isConformingBody): fixed bug #949967
2521         * src/SDCCopt.c (cnvToFcall, cnvToFloatCast, cnvFromFloatCast,
2522         convilong): fixed bug #952086
2523
2524 2004-05-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2525
2526         * src/SDCCmem.c (allocVariables): fixed bug #955321
2527
2528 2004-05-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2529
2530         * src/hc08/main.c (_hc08_genAssemblerEnd),
2531         * src/SDCCdwarf2.c (dwOpenFile, dwCloseFile, dwWriteFunction,
2532         dwWriteModule, dwWriteCLine, dwWriteALine, dwarf2FinalizeFile):
2533         completely eliminated the use of a temporary file
2534         * src/SDCCdwarf2.c (dwWriteAttr): fixed bug with location list offset
2535         when more than one file linked
2536         * src/SDCCloop.c (pointerAssigned): fixed bug #954163
2537
2538 2004-05-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2539
2540         * src/SDCCval.c (valForArray): applied Maarten Brock's patch #947682
2541         which fixes bug #543481
2542         * support/regression/tests/bug-751703.c: fixed comments left from a
2543         cut and paste error
2544         * src/SDCCdwarf2.c (dwCloseFile): don't explicitly close a temp file
2545         * src/SDCCdwarf2.c (dwTagFromType): added bitfield support
2546         * src/SDCCdwarf2.c (dwWriteSymbolInternal): handle extern within local
2547         scopes
2548         * src/SDCCdwarf2.c (dwWriteLineNumber): line number deltas are signed
2549         * src/SDCCmain.c (processFile, parseCmdLine): non-alphanumeric chars
2550         are now changed to underscores in moduleName
2551
2552 2004-05-15 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2553
2554         * as/mcs51/lkmem.c: better fix for bug #954173
2555
2556 2004-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
2557         committed by Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2558
2559         * device/include/c8051f020.h: newly added SiLabs (Cygnal) header file
2560         * device/include/c8051f000.h,
2561         * device/include/c8051f120.h,
2562         * device/include/c8051f300.h,
2563         * device/include/c8051f310.h,
2564         * device/include/c8051f320.h: updated (added _XPAGE, CAPN, CAPP,
2565         PWM16) and detab'ed
2566
2567 2004-05-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2568
2569         * doc/sdccman.lyx: mentioned sourceforge's delay between web frontend
2570         and mailing lists, doc'ed --no-peep-comments, removed reference
2571         to knoppix (newest version has no LyX/LaTeX), other minor changes
2572         * src/SDCCglue.c (glue): save 2 bytes stack space with
2573         option --main-return. The ljmp could probably be avoided too
2574
2575 2004-05-14 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2576
2577         * as/mcs51/lkmem.c, as/mcs51/lkaomf51: fixed bug 954173
2578
2579 2004-05-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2580
2581         * src/SDCCsymt.h: added IS_AUTO(symbol) test macro
2582         * src/SDCCopt.c (isLocalWithoutDef),
2583         * src/SDCCicode.c (operandFromSymbol): use the IS_AUTO test macro
2584         which adds a !IS_EXTERN codition. Fixes bugs #877426 and #751703.
2585         (credit to Maarten Brock for patch #949363, on which this is based)
2586         * support/regression/tests/bug-751703.c: some test cases of extern used
2587         within inner scopes.
2588
2589 2004-05-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2590
2591         * src/SDCCdwarf2.c (dwMatchTypes): structs must have matching
2592         SPEC_STRUCT
2593         * src/SDCCdwarf2.c (dwTagFromType): fix to handle recursive
2594         struct definitions
2595         * src/SDCCdwarf2.c (dwWriteModule, dwNewDebugSymbol, dwWriteEndFunction,
2596         dwWriteLabel): fix to create valid debugger symbols even when
2597         the module name has non-alphanumeric symbols in it
2598         * src/SDCCdwarf2.c (dwWriteSymbolInternal): better detection for
2599         when a variable's allocation has been optimized away
2600
2601
2602 2004-05-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2603
2604         * src/hc08/gen.c (hc08_emitDebuggerSymbol),
2605         * src/hc08/main.c,
2606         * src/mcs51/gen.c (mcs51_emitDebuggerSymbol),
2607         * src/mcs51/main.c,
2608         * src/ds390/gen.c (ds390_emitDebuggerSymbol),
2609         * src/ds390/main.c,
2610         * src/z80/gen.c (z80_emitDebuggerSymbol),
2611         * src/z80/main.c,
2612         * src/pic/gen.c (pic14_emitDebuggerSymbol),
2613         * src/pic/main.c,
2614         * src/pic16/gen.c (pic14_emitDebuggerSymbol),
2615         * src/pic16/main.c,
2616         * src/avr/gen.c (avr_emitDebuggerSymbol),
2617         * src/avr/main.c,
2618         * src/xa51/gen.c (xa51_emitDebuggerSymbol),
2619         * src/xa51/main.c,
2620         * src/SDCCdebug.c (emitDebuggerSymbol),
2621         * src/SDCCdebug.h,
2622         * src/port.h: added a debugger struct to the port struct. Added a
2623         callback for defining debugger symbols
2624
2625         * src/SDCCast.c (createLabel),
2626         * src/SDCC.y (labeled_statement): mark all compiler generated labels
2627         with isitmp = 1
2628         * src/SDCCicode.h,
2629         * src/SDCCicode.c (geniCodeFunctionBody): added a link from the FUNCTION
2630         iCode back to the ast for the function
2631
2632         * src/hc08/ralloc.c (hc08_assignRegisters),
2633         * src/hc08/ralloc.h: define a regs struct for the stack pointer. Removed
2634         unneeded fields from the regs struct.
2635         * src/hc08/gen.c (transferRegReg, genFunction, genEndFunction): use the
2636         pushReg() & pullReg() functions instead of emitcode()
2637
2638         * src/hc08/gen.c (genLabel, genhc08Code),
2639         * src/SDCCdebug.h: Added additional debugger hooks needed for DWARF
2640
2641         * src/cdbFile.c (cdbWriteLabel, cdbWriteScope): Added stubs for unneeded
2642         debugger hooks
2643
2644         * src/hc08/gen.c (genEndFunction, genhc08Code),
2645         * src/hc08/gen.h,
2646         * src/mcs51/gen.c (genEndFunction, gen51Code),
2647         * src/mcs51/gen.h,
2648         * src/ds390/gen.c (genEndFunction, gen390Code),
2649         * src/ds390/gen.h,
2650         * src/z80/gen.c (genEndFunction, genZ80Code),
2651         * src/z80/gen.h,
2652         * src/z80/z80.h,
2653         * src/pic/gen.c (genEndFunction, genpic14Code),
2654         * src/pic/gen.h,
2655         * src/pic16/gen.c (genEndFunction, genpic16Code),
2656         * src/pic16/gen.h,
2657         * src/avr/gen.c (genEndFunction, genAVRCode),
2658         * src/avr/gen.h,
2659         * src/xa51/gen.c (genEndFunction, genXA51Code),
2660         * src/xa51/gen.h,
2661         * src/cdbFile.c (cdbWriteFunction, cdbWriteEndFunction): moved cdb
2662         specific code to cdbFile.c and out of the backend code generators
2663
2664         * as/hc08/lkmain.c (main): removed OMF51 support from link-hc08
2665         * as/hc08/lkarea.c (lnkarea): areas with NOLOAD attribute default
2666         starting address is now 0
2667
2668         * as/hc08/asm.h,
2669         * as/hc08/m08pst.c,
2670         * as/hc08/asmain.c (asmbl): implemented the .sleb128 and .uleb128
2671         assembler directive for DWARF support
2672         * as/hc08/lkelf.c (elf): only increment address when rtflg[] set
2673
2674         * src/src.dsp,
2675         * src/Makefile.in,
2676         * src/SDCCdwarf2.c: preliminary DWARF (ver 2) debugger data generator
2677
2678 2004-05-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2679
2680         * src/hc08/gen.c (genJumpTab, emitcode, genhc08code): fixed stack error
2681         and inappropriate peephole optimization in jump tables
2682
2683 2004-04-30 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2684
2685         * as/hc08/m08pst.c,
2686         * src/SDCCglue.c: sdccopt works for the hc08 port now
2687
2688 2004-04-27 Bernhard Held <bernhard AT bernhardheld.de>
2689
2690         * src/SDCCicode.c (geniCodePreInc, geniCodePreDec): fixed bug #942130
2691
2692 2004-04-27 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2693
2694         * as/hc08/lkelf.c: sdccconf.h is not available in WIN32
2695
2696 2004-04-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2697
2698         * src/SDCCpeeph.c (replaceRule): support empty replacement peephole
2699         rules
2700         * src/SDCCmain.c,
2701         * src/SDCCglobl.h,
2702         * src/SDCCpeeph.c (getPeepLine): new option --no-peep-comments omits
2703         comments from the peephole optimizer replacement rules
2704         * src/SDCCmem.c (printAllocInfoSeg): give actual location of spilled
2705         symbols
2706         * src/SDCCcse.c (updateSpillLocation),
2707         * src/SDCCopt.c (killDeadCode, findReqv): better tracking of register
2708         equivalents
2709         * src/hc08/ralloc.c (regTypeNum): pseudo symbols must be in DATA only
2710         * src/hc08/main.c (_hc08_finaliseOptions): made pointers to stack
2711         objects far pointers
2712
2713 2004-04-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2714
2715         * src/SDCCsymt.h: a missing part of my last change
2716         * src/pic/ralloc.c (regTypeNum),
2717         * src/pic16/ralloc.c (regTypeNum): fixed statement/declaration order
2718
2719 2004-04-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2720
2721         * src/SDCCicode.h,
2722         * src/SDCCicode.c (aggrToPtrDclType),
2723         * src/SDCCptropt.h,
2724         * src/SDCCptropt.c (ptrBaseRematSym, ptrPseudoSymSafe,
2725         ptrPseudoSymConvert),
2726         * src/pic/ralloc.c (regTypeNum),
2727         * src/pic16/ralloc.c (regTypeNum),
2728         * src/hc08/ralloc.c (regTypeNum),
2729         * src/ds390/ralloc.c (regTypeNum),
2730         * src/mcs51/ralloc.c (regTypeNum): check for dependancy hazards before
2731         creating pseudo symbols (fixed bugs #777768, #930484, and #933966)
2732
2733 2004-04-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2734
2735         * link/z80/lkmain.c (afile),
2736         * as/hc08/lkmain.c (afile),
2737         * as/mcs51/lkmain.c (afile): fix suggested by Maarten Brock to
2738         prevent a pointer problem when a filename has no directory and
2739         no extension specified.
2740
2741 2004-04-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2742
2743         * link/z80/lkmain.c (afile): allow periods in directory names
2744         * link/z80/lkmain.c (afile),
2745         * as/mcs51/lkmain.c (afile),
2746         * as/hc08/lkmain.c (afile): allow linker script file to have an
2747         extension other than ".lnk"
2748         * link/z80/lklex.c (getfid),
2749         * link/z80/lkmain.c (parse),
2750         * as/mcs51/lklex.c (getfid),
2751         * as/mcs51/lkmain.c (parse),
2752         * as/hc08/lklex.c (getfid),
2753         * as/hc08/lkmain.c (parse): Support comments in the linker script
2754         file on lines by themselves and after filenames
2755
2756 2004-04-20 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2757
2758         * as/link_hc08.dsp: Added as/hc08/lkelf.c to project.
2759
2760 2004-04-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2761
2762         * src/z80/peeph-z80.def: removed some peephole rules that don't
2763         work with multibyte arithmetic (fixed bug #937126)
2764         * src/mcs51/peeph.def: fixed peephole rules 150-158 to apply only
2765         to registers and not global variables
2766         * src/SDCCicode.c (geniCodeAssign, ast2iCode, geniCodePostInc,
2767         geniCodePreInc, geniCodePostDec, geniCodePreDec,
2768         geniCodeLogicAndOr, geniCodeConditional): enforce strict lvalue
2769         checking for assignments not internally generated (fixed bug #931895)
2770         * src/SDCC.y (postfix_expr): ignore typedefs when looking for a
2771         structure member (fixed bug #930072)
2772
2773 2004-04-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2774
2775         * src/SDCCmain.c (linkEdit),
2776         * src/hc08/main.c (_hc08_parseOptions),
2777         * as/hc08/Makefile.in,
2778         * as/hc08/aslink.h,
2779         * as/hc08/asm.h,
2780         * as/hc08/m08pst.c,
2781         * as/hc08/lkrloc.c (relr, rele),
2782         * as/hc08/lkarea.c (lnkarea)
2783         * as/hc08/lkmain.c (afile, parse),
2784         * as/hc08/lkelf.c: support for ELF output
2785         * as/hc08/lks19.c (s19),
2786         * as/hc08/lkihx.c (ihx): ignore areas with the NOLOAD attribute
2787
2788 2004-04-17 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2789
2790         * as/mcs51/lkihx.c: Fixed bug #899105.
2791
2792 2004-04-16 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2793
2794         * doc/sdccman.lyx: Added instructons on how to convert MSVC .dsw and
2795         .dsp files from Unix to DOS.
2796
2797 2004-04-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2798
2799         * doc/sdccman.lyx: removed the ANSI-C noncompliance note regarding
2800         function pointers; we have been compliant for several months now.
2801         * src/mcs51/ralloc.c (serialRegAssign): enabled part of my 2004-04-13
2802         change that was accidently commented out
2803         * src/mcs51/gen.c (freeAsmop, getFreePtr, freeForBranchAsmop, genIfxJump,
2804         genCmpEq, jmpTrueOrFalse, genCmp, genAnd, genOr, genXor, genIfx): fixed
2805         bug #922319
2806
2807 2004-04-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2808
2809         * src/hc08/gen.c: output of all of the internal debugging information
2810         is now controlled by the D() macro; it is disabled by default
2811
2812 2004-04-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2813
2814         * src/mcs51/ralloc.c (serialRegAssign, fillGaps, allocThisReg): try
2815         harder to keep the same registers during a CAST iCode
2816         * src/SDCCopt.c (optimizeCastCast, eBBlockFromiCode): casts of char to
2817         long via int can be done in a single cast, if the signedness is
2818         correct.
2819         * support/regression/tests/bug-927659.c: fixed to avoid conflict with
2820         putchar() in tinibios.c in ds390's library
2821
2822 2004-04-12 Bernhard Held <bernhard AT bernhardheld.de>
2823
2824         * src/SDCCast.c (decorateType): fixed bug #898889,
2825         cast result of a literal complement too
2826         * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #930931,
2827         fixed check for bitfields
2828
2829 2004-04-11 Bernhard Held <bernhard AT bernhardheld.de>
2830
2831         * src/SDCCicode.c (geniCodeLogic): made it static,
2832         (geniCodeLogicAndOr): added in order to fix bug #905492,
2833         (ast2iCode): fixed bug #905492
2834         * support/regression/tests/bug-905492.c: added
2835         * src/SDCCast.c (decorateType): don't decorate/process parms twice,
2836         (processParms): fixed bug #927659: don't copy parms, this will clear
2837         decorated flag
2838         * support/regression/tests/bug-927659.c: added
2839
2840 2004-03-29 Bernhard Held <bernhard AT bernhardheld.de>
2841
2842         * src/SDCCast.c (addCast): don't cast float to char
2843         * device/lib/libsdcc.lib: added _memmove
2844
2845 2004-03-28 Bernhard Held <bernhard AT bernhardheld.de>
2846
2847         * device/lib/large/Makefile: fixed parallel execution by
2848         replacing `make` by `$(MAKE)`
2849
2850 2004-03-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2851
2852         * src/hc08/gen.c (genPointerGetSetOfs): correctly handle 1 byte array
2853         offsets (fixes bug #923936)
2854
2855 2004-03-26 Bernhard Held <bernhard AT bernhardheld.de>
2856
2857         * device/lib/small/Makefile: fixed parallel execution by
2858         replacing `make` by `$(MAKE)`
2859
2860 2004-03-23 Bernhard Held <bernhard AT bernhardheld.de>
2861
2862         * device/lib/vprintf.c (vsprintf): minor optimization, see bug #801101
2863
2864 2004-03-23  Scott Dattalo  <scott AT dattalo.com>
2865
2866         * src/pic/gen.c (genCpl): multi-byte complements were not working.
2867         * src/regression/Makefile: Regression test was not running.
2868
2869 2004-03-23 Bernhard Held <bernhard AT bernhardheld.de>
2870
2871         * src/SDCCast.c (resultTypePropagate, decorateType): avoid promotion to int for
2872         complement if possible
2873         * src/SDCCval.c (valComplement),
2874         * src/SDCCicode.c (operandOperation): fixed complement of literal
2875         * support/regression/tests/onebyte.c (testComplement): added
2876
2877 2004-03-22 Bernhard Held <bernhard AT bernhardheld.de>
2878
2879         * src/SDCCast.c (processParms): fixed bug #920866; decorateType() can
2880         return an optimized tree; actually replace actParm with the new tree
2881         * src/SDCCast.h: added some parantheses to remove side effects
2882         * support/regression/tests/bug-920866.c
2883
2884 2004-03-21  Scott Dattalo  <scott AT dattalo.com>
2885         * src/pic/gen.c, src/pic/gen.h, src/pic/genarith.c, src/pic/pcode.c:
2886         Bit operands were not being handled properly in the pic14 port.
2887         (now src/regression/add.c passes again).
2888
2889 2004-03-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2890
2891         * src/SDCC.y (labeled_statement): case and default no longer require
2892         a following statement (RFE #893037)
2893
2894 2004-03-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2895
2896         * src/mcs51/gen.c (pushSide, genSignedRightShift, genDjnz, geniPush):
2897         use MOVA macro to avoid "mov a,acc" when peephole optimizer is
2898         disabled (fixes bug #916294)
2899         * sim/ucsim/s51.src/mov.cc (inst_mov_a_addr): Throw an error on
2900         "mov a,acc"; patch provided by Lenny Story
2901         * device/include/mc68hc908gp32.h: header contibuted by Juan Gonzalez
2902
2903 2004-03-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2904
2905         * src/mcs51/gen.c (genFunction): optimize RECEIVE in reentrant
2906         functions
2907         * src/ds390/gen.c (genFunction, genEndFunction),
2908         * src/ds390/ralloc.c (ds390_assignRegisters),
2909         * src/mcs51/gen.c (genFunction, genEndFunction, mcs51_assignRegisters):
2910         * src/mcs51/ralloc.c (mcs51_assignRegisters): Skip optimizing registers
2911         pushed if there are parameters passed on the stack. Also, a cleaner
2912         way to decide if r0/r1 should be pushed/popped. (Together they fix
2913         bug #918693)
2914
2915 2004-03-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2916
2917         * doc/sdccman.lyx,
2918         * device/lib/mcs51/crtpagesfr.asm,
2919         * device/lib/mcs51/crtxinit.asm,
2920         * device/lib/mcs51/crtxstack.asm: Changed name of _PAGESFR to _XPAGE
2921         to avoid confusion with Si Lab's SFRPAGE register.
2922
2923 2004-03-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2924
2925         * src/SDCCglue.c (emitMaps): allow public sfr variables
2926         * src/SDCCglue.c (initialComments): include compiler build date
2927         with compiler version and put the timestamp of the generated
2928         assembly file on a serperate line to be less confusing.
2929         * src/port.h: added genInitStartup hook
2930         * src/avr/main.c,
2931         * src/ds390/main.c,
2932         * src/hc08/main.c,
2933         * src/pic/main.c,
2934         * src/pic16/main.c,
2935         * src/xa51/main.c,
2936         * src/z80/main.c: genInitStartup initialize as NULL (default to
2937         historical behaviour)
2938         * src/SDCCglue.c (glue): _sdcc_gsinit_startup is now port specific.
2939         * src/mcs51/main.c: (_mcs51_genInitStartup, _mcs51_genExtraAreas,
2940         _mcs51_genXINIT, _mcs51_genRAMCLEAR): link initialization code from the
2941         library instead of hard coding it into the compiler.
2942         * support/regression/ports/mcs51-stack-auto/spec.mk,
2943         * src/SDCCmain.c (linkEdit): added mcs51.lib to the link libraries
2944         * device/lib/mcs51/Makefile,
2945         * device/lib/small/Makefile,
2946         * device/lib/large/Makefile,
2947         * device/lib/mcs51/crtpagesfr.asm,
2948         * device/lib/mcs51/crtstart.asm,
2949         * device/lib/mcs51/crtxclear.asm,
2950         * device/lib/mcs51/crtxinit.asm,
2951         * device/lib/mcs51/crtclear.asm,
2952         * device/lib/mcs51/crtxstack.asm: move most of the mcs51 C runtime
2953         startup/initialization out of src/SDCCglue.c and src/mcs51/main.c
2954         and into user configurable files.
2955         * device/lib/clean.mk: clean mcs51 directory too
2956         * support/regression/tests/longlit.c: added static to T1 declaration
2957         * doc/sdccman.lyx: documented _PAGESFR sfr for customizing pdata
2958         accesses in the initialization code
2959
2960 2004-03-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2961
2962         * device/include/mc68hc908qy.h: corrected declarations of FLBPR and
2963         OSCTRIMVAL as noted in bug #916008
2964
2965 2004-03-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2966
2967         * src/SDCCloop.c (basicInduction): fixed bug with loop induction
2968         in loops with multiple exits (reported as incorrect registers
2969         used by Martin Helmling in Sdcc-user list)
2970
2971 2004-03-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2972
2973         * src/ds390/main.c (_ds390_genAssemblerPreamble): cosmetic change,
2974         made ds390 register extensions look less like error messages
2975
2976 2004-03-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2977
2978         * src/SDCCglue.c (printIvalPtr): fixed bug with pointer initializer
2979         reported by Adam Wozniak in Sdcc-user list
2980
2981 2004-03-10 Bernhard Held <bernhard AT bernhardheld.de>
2982
2983         * src/SDCCast.c (decorateType): fixed with bug and promotion in
2984         arithmetic optimizations, added debug output
2985
2986 2004-03-09 Bernhard Held <bernhard AT bernhardheld.de>
2987
2988         * device/lib/time.c (mktime): fixed bug reported by Bert Thomas
2989         * sdcc.spec: updated and split sdcc into 3 rpms
2990         * src/SDCCast.c (decorateType): &|^ don't need addCast(); addCast() is
2991         needed for literals of LEFT_OP and '+'
2992         * src/SDCCicode.c (geniCodeLogic): I must have been braindead when I
2993         introduced RESULT_TYPE_NOPROM
2994         (geniCodeMultiply): fixed logic for decision if mul is optimized to
2995         left shift
2996         * src/SDCCsymt.c (computeType): op is int; added RESULT_TYPE_OTHER;
2997         limited promotion to int only for '*'
2998         * src/SDCCsymt.h (computeType): op is int, removed RESULT_TYPE_NOPROM
2999
3000 2004-03-09 Hans Dorn <hjdorn AT users.sourceforge.net>
3001
3002         * src/pic16/gen.c (genSkip),
3003         (genc16bit2lit), (gencjneshort): commented out
3004         (is_LitOp): new helper function, checks operand type
3005         (genCmpEq): rewritten
3006
3007 2004-03-08 Bernhard Held <bernhard AT bernhardheld.de>
3008
3009         * support/regression/tests/bug-908454.c: added
3010
3011 2004-03-07 Bernhard Held <bernhard AT bernhardheld.de>
3012
3013         * src/SDCCast.c (addCast): fixed bug #908454 by promoting bits to char
3014         * src/SDCCicode.c (usualBinaryConversions): op needs int type
3015         (geniCodeCast): cosmetic, don't preserve bit storage class
3016         (geniCodeLeftShift): added promotion
3017         (geniCodeLogic): fixed regression
3018         * src/SDCCsymt.c (computeTypeOr): accept bits too
3019         (compareType): 2nd part of fix for bug #908454, needed for bitfields
3020
3021 2004-03-07  Borut Razem <borut.razem AT siol.net>
3022
3023         * support/Util/findme.c: alloca() replaced with malloc()/free() pair
3024
3025 2004-03-06 Vangelis Rokas <vrokas AT otenet.gr>
3026
3027         * src/pic16/ralloc.c (pic16_genPackRegisters): reverted to old
3028         version of pic16_genPackRegisters which does not check if ic is a
3029         CAST operator,
3030         * src/pic16/gen.c (ifxForOp): disabled new and untested code in
3031         function cause string1.c regression test fails
3032
3033 2004-03-06 Bernhard Held <bernhard AT bernhardheld.de>
3034
3035         * sim/ucsim/configure.in,
3036         * sim/ucsim/configure,
3037         * sim/ucsim/doc/Makefile.in: use docdir
3038         * src/SDCC.y: fixed sbit atrributes
3039         * src/SDCCast.c (getResultTypeFromType): added support for bitfields
3040         * src/SDCCast.c (decorateType): |^& need special promotion handling
3041         * src/SDCCast.h,
3042         * src/SDCCsymt.h: moved definition of RESULT_TYPE
3043         * src/SDCCsymt.h (computeType),
3044         * src/SDCCicode.c: computeType() needs op
3045         * src/SDCCsymt.c (checkTypeSanity),
3046         * doc/sddman.lyx: "plain" bitfields are unsigned
3047         * src/SDCCsymt.c (computeTypeOr): added
3048         * src/SDCCsymt.c (computeType): added support for bitfields, fixed
3049         |^& ops
3050         * src/SDCCval.c (val*): computeType() needs op
3051         * src/SDCCval.c (valCastLiteral): fixed casting of bitfields
3052         * support/regression/tests/onebyte.c: added tests for |^&
3053
3054 2004-03-06 Hans Dorn <hjdorn AT users.sourceforge.net>
3055
3056         * src/pic16/gen.c: (genpic16Code) use copy of printILine's output
3057         for writing icode into asm output.
3058
3059 2004-03-05 Vangelis Rokas <vrokas AT otenet.gr>
3060
3061         * src/pic16/device.c: added some debug lines enabled
3062         with macro DEBUG_CHECK,
3063         * src/pic16/genarith.c: more debug in genPlus,
3064         * (pic16_genUMult8XLit_16, pic16_genUMult8X8_16): removed,
3065         * (pic16_genUMult16X16_16, pic16_genUMult16XLit_16): NEW,
3066         * src/pic16/gen.c: added prototypes for pic16_genMult16X16_16,
3067         * (aopForSym): onStack symbols are re-placed in data memspace,
3068         and onStack flag is cleared,
3069         * (pic16_popGetTempReg, pic16_popReleaseTempReg): modified to
3070         copy temporary pcodeop,
3071         * (genPcall): added warning for not updating PCLATU,
3072         * (genFunction): removed test with IFFUNC_CALLEESAVES, its
3073         always true for pic16 port,
3074         * (genMultOneWord): NEW, supports integer multiplication,
3075         * (genMult): modified to call genMultOneWord,
3076         * (ifxForOp): added warning when return NULL,
3077         * src/pic16/glue.c (pic16emitRegularMap): symbol implicit
3078         flag is set before call to operandFromSymbol for implicit
3079         added structures,
3080         * src/pic16/main.c (_pic16_finaliseOptions): options.float_rent,
3081         options.intlong_rent are set by default,
3082         * (_hasNativeMulFor): modified to allow port generation of integer
3083         multiplication,
3084         * src/pic16/ralloc.c (pic16_allocDirReg): commented out line which
3085         set regtype to REG_SFR for all registers, restricting seting the
3086         accessBank flag for registers 0<= r < 0x80 and 0xf80<=r<=0xfff,
3087
3088 2004-03-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3089
3090         * src/mcs51/peephole.def: added 251.b and 253.x. 253.x are applied
3091         more than 500 times in the regression tests
3092
3093 2004-03-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3094
3095         * support/Util/SDCCerr.h,
3096         * support/Util/SDCCerr.c,
3097         * src/SDCC.y (struct_or_union_specifier, enum_specifier,
3098         enumerator_list),
3099         * src/SDCCsymt.c (addSymChain): show location of oriignal definition
3100         for symbol conflicts.
3101         * support/valdiags/tests/enum.c,
3102         * support/valdiags/tests/tentdecl.c,
3103         * support/valdiags/tests/struct.c: expect possible error messages
3104         referring to original symbol definitions.
3105         * src/SDCC.y (struct_or_union_specifier, struct_declarator),
3106         * src/SDCCsymt.h,
3107         * src/SDCCsymt.c (promoteAnonStructs): support anonymous struct/union
3108
3109 2004-03-03 Hans Dorn <hjdorn AT users.sourceforge.net>
3110
3111         * src/pic16/gen.c (gencjne): fixed for right=REG / left=LIT
3112
3113 2004-02-03 Vangelis Rokas <vrokas AT otenet.gr>
3114
3115         * src/pic16/ralloc.c (newReg): fixed bug #908929
3116
3117 2004-03-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3118
3119         * src/ds390/gen.c: added missing #include "main.h"
3120
3121 2004-03-02 Vangelis Rokas <vrokas AT otenet.gr>
3122
3123         * src/pic16/device.c (checkAddSym): NEW, adds a symbol to set while
3124         checking if symbol is already in set,
3125         * src/pic16/device.h: prototype for checkAddSym,
3126         * src/pic16/gen.c: (_G): added entry interruptvector,
3127         * (assignResultValue): removed some commented out lines,
3128         * (genFunction): check for ISR via sym->type, absolute section for
3129         interrupt code is created via a new pBlock, the goto instruction is
3130         placed now correctly at the interrupt vector position, changed all
3131         references from ivec to _G.interruptvector,
3132         * WREG,STATUS,BSR are not saved in stack upon an entry to interrupt
3133         is the interrupt is a high priority one, same for return from ISR,
3134         * src/pic16/glue.c: changed all calls of addSetHead for publics and
3135         externs to calls of checkAddSym,
3136         * src/pic16/pcode.c (pic16_pBlockConvert2*): emit warning when
3137         pic16_pcode_verbose flag is set,
3138         * src/pic16/pcode.h: extern to pic16_pcode_verbose,
3139         * src/pic16/pcoderegs.c: message about how many registers are saved
3140         will only be emitted if pic16_pcode_verbose flag is set,
3141
3142 2004-03-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3143
3144         * src/ds390/ralloc.h,
3145         * src/ds390/ralloc.c (ds390_regWithIdx),
3146         * src/ds390/gen.c (emitcode),
3147         * src/ds390/main.h,
3148         * src/ds390/main.c (instructionSize, ds390newAsmLineNode, updateOpRW,
3149         ds390opcodeCompare, asmLineNodeFromLineNode, getInstructionSize,
3150         ds390operandCompare, getRegsRead, getRegsWritten,
3151         initializeAsmLineNode): customized instruction size calculation for
3152         ds390, started basis for some register optimizations
3153         * src/ds390/gen.c (gen390Code, emitcode): associate iCodes with
3154         corresponding assembly output
3155         * src/ds390/gen.c (genFunction, genEndFunction): added case to handle
3156         missing push/pop of r0/r1. Optimized push/pops
3157
3158 2004-03-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3159
3160         * src/mcs51/main.c (instructionSize): fixed ACALL size
3161         * src/mcs51/main.c (updateOpRW): fixed bug with @dptr, @a+dptr operands
3162
3163 2004-03-01 Vangelis Rokas <vrokas AT otenet.gr>
3164
3165         * src/pic16/device.c (pic16_dump_section): fixed a bug that allowed
3166         the sorting of rlist with NULL elements
3167         * (print_idataType, print_idata): NEW to create idata sections
3168         * src/pic16/device.h: idataSymSet new variable
3169         * src/pic16/gen.c (genFunction): fixed some bugs in string
3170         comparing, improved the absolute section creation for ISRs,
3171         added FSR0L/FSR0H in registers that are saved in an ISR,
3172         * (genInline): fixed the processing of inline snippets,
3173         now they undergo no process by the peephole optimizer
3174         * src/pic16/glue.c (pic16emitRegularMap): symbols with initialiser
3175         are placed in idataSymSet,
3176         * (pic16emitStaticSeg): extern symbols are added in externs,
3177         * src/pic16/ralloc.c (pic16_allocDirReg): work around to reduce bank
3178         switching when aboslute variables are placed in access bank memory
3179         * (pic16_writeUsedRegs): added call to pic16_dump_idata,
3180         * (packRegsForSupport,packRegsForAccUse,packRegsForOneuse):
3181         commented out with #if,
3182         * (pic16_packRegisters): reintroduce the check for CAST because some
3183         symbols are not correctly handled,
3184         * src/pic16/pcode.h: changed the definition of pCodeAsmDir to hold a
3185         pCodeInstruction instead of pCode,
3186         * src/pic16/pcode.c (pic16_newpCodeAsmDir): modified for the new
3187         pCodeAsmDir definition,
3188         * (pic16_pCode2str, genericPrint): when an AsmDir pcode has a NULL
3189         directive, then the argument directive is emitted without the leading
3190         tab, hack for inline labels which must be in the first column,
3191         * (compareLabel,pic16_findNextInstruction),
3192         * (pic16_findPrevInstruction): added case for PO_ASMDIR,
3193         * (insertBankSwitch): modified for the new pCodeAsmDir,
3194
3195 2004-03-01 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
3196         patch applied by Vangelis Rokas <vrokas AT otenet.gr>
3197
3198         * src/pic16/gen.c (pic16_popGet): case PO_DIR, adds the offset to
3199         instance,
3200         * (pushSide): commented out with #if,
3201         * (assignResultValue): fixed some typos in saving
3202         registers,
3203         * (genPcall): FIXED and sync'ed with genCall,
3204         * (genDataPointerGet,genDataPointerSet): using offset not leoffset
3205         * (genNearPointerGet): fixed to handle some more cases,
3206         implementation scheme via table reads,
3207         * (genConstPointerGet): modified to access code memory correct,
3208         * (genCodePointerGet,genNearPointerSet,genGenPointerSet): modified
3209         and improved to handle some cases
3210         * glue.c (printIvalType,printIvalChar,emitStaticSeg): use "DB"
3211         instead of "RETLW" for init data
3212         * src/pic16/ralloc.c (pic16_allocDirReg): warning when a symbol is
3213         not IN_DIRSPACE, work around to reduce bank switching when aboslute
3214         variables are placed in access bank memory (<0x80 and >=0xf80),
3215         * src/pic16/pcode.c: added SFRs TBLPTR, TABLAT, added opcodes TBLRD,
3216         TBLRD_POSTINC,TBLRD_POSTDEC,TBLRD_PREINC,TBLWT,TBLWT_POSTINC,
3217         TBLWT_POSTDEC,TBLWT_PREINC
3218         * Fixed initialisation of BSR, set "alias" for SSAVE to "0"
3219         * (pic16_emitDB,pic16_flushDB): New functions to generate "DB"
3220         directives
3221         * (pic16_pCodeConstString): use "DB" instead of "RETLW"
3222         * src/pic16/pcode.h: added TBLRD*,TBLWT*, added pic16_emitDB,
3223         pic16_flushDB, made pic16_newpCodeAsmDir public, added TBLPTR, TABLAT
3224         * src/pic16/ralloc.h: added IDX_BSR,IDX_TBLPTR*,IDX_TABLAT
3225
3226 2004-02-29  Borut Razem <borut.razem AT siol.net>
3227
3228         * src/Makefile.in, src/SDCCutil.c, support/Util/findme.c,
3229         support/Util/findme.h, support/Util/system.h: enhance binary relative
3230         search for lib and include by using findProgramPath()
3231
3232 2004-02-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3233
3234         * src/SDCCpeeph.h,
3235         * src/SDCCpeeph.c (pcDistance),
3236         * src/port.h,
3237         * src/mcs51/ralloc.h,
3238         * src/mcs51/ralloc.c (mcs51_regWithIdx),
3239         * src/mcs51/main.h,
3240         * src/mcs51/main.c (instructionSize, asmLineNode, updateOpRW,
3241         mcs51opcodeCompare, asmLineNodeFromLineNode, getInstructionSize,
3242         mcs51operandCompare, getRegsRead, getRegsWritten): made instruction
3243         size calculation port specific, started basis for some register
3244         optimizations
3245         * src/mcs51/gen.c (genFunction, genEndFunction): added case to handle
3246         missing push/pop of r0/r1. Optimized push/pops
3247         * src/mcs51/ralloc.c (packregisters): fixed bug #727095
3248         * device/lib/_modsint.c (_modsint),
3249         * device/lib/_modslong.c (_modslong): fixed sign of result in non-asm
3250         and stack version so regression tests pass
3251
3252 2004-02-26 Bernhard Held <bernhard AT bernhardheld.de>
3253
3254         * src/Makefile.in (dep): include SLIBOBJS in dependency check
3255         * src/SDCCast.c (decorateType): catch another small optimization
3256         with '?' operator
3257         * src/SDCCsymt.c (computeType): added comments and cosmetic changes
3258         * src/SDCCval.c (valMult, valDiv, valMod, valPlus, valMinus, valShift):
3259         modified to finally use computeType() all over SDCC,
3260         see Feature Request #877103
3261         * src/SDCCval.h: cosmetic
3262         * src/SDCCicode.c (operandOperation): fixed EQ_OP bug, now same as in
3263         valCompare(); regression tested in muldiv.c
3264         * support/regression/tests/muldiv.c (testMod): mod sign follows
3265         dividend only
3266
3267 2004-02-23 Bernhard Held <bernhard AT bernhardheld.de>
3268
3269         * src/SDCCast.c (decorateType): fixed bug #902362
3270         * doc/INSTALL.txt: fixed install instructions for win32
3271
3272 2004-02-21 Bernhard Held <bernhard AT bernhardheld.de>
3273
3274         * device/include/Makefile.in (install): fixed by replacing spaces
3275         by tabs
3276         * doc/README.txt,
3277         * doc/INSTALL.txt: updated for release
3278         * doc/sdccman.lyx: added warning for --xstack being buggy
3279
3280 2004-02-20 Bernhard Held <bernhard AT bernhardheld.de>
3281
3282         * src/pic16/ralloc.c (packRegsForAccUse):  disabled functions with #if
3283         to eliminate build warnings.
3284         * src/pic16/gen.c (pic16_popGet): fixed for gcc 2.95.4
3285
3286 2004-02-20 Vangelis Rokas <vrokas AT otenet.gr>
3287            Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
3288
3289         * doc/sdccman.lyx: removed PIC16 from PIC16 Port Specific Options,
3290         removed -penable-stack, added comment for stack pragma, added
3291         warning for not initializing the stack/frame registers, removed
3292         comment at interrupts section
3293
3294         Stack is made permanent, there is no ability to disable stack usage.
3295         * src/pic16/device.h,
3296         * src/pic16/device.c: removed all references to USE_STACK macro,
3297         * src/pic16/device.c (pic16_dump_section): when no elements in
3298         rlist, free rlist before return,
3299         * (pic16_dump_int_registers): NEW, internal registers are a new set
3300         of general purpose registers reused by each function,
3301         * (checkAddReg): returns 1 if registers is added to set,
3302         * (pic16_groupRegistersInSection): when a registers is of type
3303         PO_GPR_TEMP add it in pic16_int_regs and not in pic16_rel_udata,
3304         * src/pic16/device.h: memRange and Assigned Memory are deleted,
3305         SRCASECMP macro is moved here from device.c
3306         * src/pic16/genarith.c (pic16_pCodeOpType): added cases for
3307         PO_PCLATU, PO_PRODL, PO_PRODH,
3308         * (pic16_pCodeOpType, genMinus,
3309         changed compares to "a" register, with AOP_ACC,
3310         * (pic16_genPlus): fixed some bugs and indented properly,
3311         * (pic16_addSign): changed size to size+offset in the MOVWF
3312         instruction,
3313         * (pic16_genUMult8XLit_8): NEW, uses processor MULLW instruction to
3314         multiply 8-bit operand by literal, result is 8-bit,
3315         * (pic16_genUMult8X8_8): NEW, uses processor MULWF instruction to
3316         multiply 2 8-bit operand, result is 8-bit,
3317         * (pic16_genMult8X8_8): modified to call genUMult8X*_8 functions and not
3318         genUMult8X*_16,
3319         * src/pic16/gen.c: changed accUse to contain WREG only,
3320         * (pic16_emitcomment): renamed to pic16_emitpcomment,
3321         * (aopForSym): allocated dir register when IN_DIRSPACE(space) is,
3322         true, do not use immediate addressing any more unless sym is a
3323         pointer in codespace,
3324         * (aopForRemat): do not use immediate addressing when symbol not in
3325         codespace and when symbol's address is requested,
3326         * (aopOp): for-loop in if(sym->accUse) is modified for the new
3327         accUse size (= 1),
3328         * (aopGet): added case for AOP_ACC and don't return "accumulator
3329         bug" but WREG instead,
3330         * (popGetTempReg): pushes contents of temporary register in stack,
3331         * (popReleaseTempReg): pops contents of temporary register from
3332         stack. Use popGetTempReg/popReleaseTempReg in aligned pairs,
3333         * (pic16_popGet): separated case AOP_ACC to return register WREG
3334         from processor registers, AOP_PCODE not checks if pcop is PO_DIR
3335         or PO_IMMEDIATE and initializes their instance/offset appropriately,
3336         * The whole issue with aopForSym,aopForRemat,popGet) is to minimize
3337         the use of immediate pointers to certain cases only.
3338
3339         * (pic16_pushpCodeOpReg, pic16_poppCodeOpReg): use pic16_popGet2p,
3340         * (pic16_loadFromReturn, pic16_storeForReturn: NEW,
3341         * (assignResultValue, genCall, genRet): modified to use the new
3342         function return value scheme with WREG,PRODL,PRODH,FSR0L and FSR0,
3343         genPcall is still broken,
3344         * (genFunction): added code to create 'A' type pBlocks when
3345         interrupt functions are generated, code not extensively tested yet,
3346         ISRs push WREG,STATUS,BSR,PRODL,PRODH,FSR0L,FSR0H registers on stack,
3347         * (genEndFunction): modified so ISRs pop stored registers from stack,
3348         * (genMultOneByte): cleanup,
3349         * (AccRsh): added flag andmask, to and result with appropriate mask,
3350         * (genUnpackBits,genPackBits): fixed and can handle bit fields,
3351         * (genDataPointerGet): fixed and reenabled its use,
3352         * (genNearDataPointerGet): bugs fixed,
3353         * (genDataPointerSet): bugs fixed,
3354         * src/pic16/genutils.c: added functions pic16_DumpValue,pic16_DumpAop,
3355         pic16_DumpSymbol, pic16_DumpOp,
3356         * src/pic16/genutils.h: function prototypes for the above functions,
3357         * src/pic16/glue.c: new flags initsfpnt, to initialize stack/frame
3358         pointers,
3359         * (pic16emitRegularMap): many many many improvements, but needs a
3360         major cleanup,
3361         * src/pic16/main.c: enable_stack in pic16_options is removed,
3362         * (_pic16_parseOptions): removed command line options -penable-stack,
3363         * (_process_pragma): emit stack symbol only when stack pragma is
3364         processed,
3365         * src/pic16/pcode.c: pic16_pc_fsr0 is removed, all operations are
3366         redirected to FSR0L/FSR0H pair,
3367         * (pic16_get_op, pic16_get_op2): modifications and improvements,
3368         * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): added
3369         cases PO_PRODL,PO_PRODH, pic16_getRegFromInstruction2 returns sane
3370         for immediates,
3371         * (insertBankSwitch): modified to handle cases like: (alfa + 1)
3372         * (dumpPicOptype): NEW,
3373         * src/pic16/pcode.h: added PO_PCLATU,PO_PRODL,PO_PRODH in enum,
3374         * src/pic16/pcoderegs.c (pCodeRegMapLiveRangesInFlow): fixed bug
3375         with movff instruction,
3376         * src/pic16/ralloc.c: renamed typeRegWithIdx to pic16_typeRegWithIdx,
3377         added pic16_int_regs, some packRegsFor* functions are commented out,
3378         because produce errors,
3379         * src/pic16/NOTES: minor modifications
3380
3381 2004-02-18  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3382
3383         * as/mcs51/aslink.h, as/mcs51/lkarea.c, as/mcs51/lkdata.c, as/mcs51/lkmain.c,
3384         as/mcs51/lkmem.c, src/SDCCglob.h, src/SDCCmain.c: added options --stack-size and
3385         --pack-iram.
3386         * doc/sdccman.lyx: described options --stack-size and --pack-iram.
3387         * as/mcs51/lkaomf51.c: fixed bug #895763
3388
3389 2004-02-17 Bernhard Held <bernhard AT bernhardheld.de>
3390
3391         * device/include/c8051f320.h: added. Contributed by Maarten Brock.
3392
3393 2004-02-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3394
3395         * doc/sdccman.lyx: added details about the HC08 storage classes and
3396         interrupts, fixed the register usage info for z80 & gbz80
3397
3398 2004-02-17 Vangelis Rokas <vrokas AT otenet.gr>
3399
3400         * doc/sdccman.lyx: added more pic16 port documentation
3401         * device/include/pic16/: added header pic18fregs.h
3402
3403 2004-02-16 Bernhard Held <bernhard AT bernhardheld.de>
3404
3405         * doc/sdccman.lyx: added Vangelis' contribution
3406
3407 2004-02-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3408
3409         * src/SDCClrange.c (rlivePoint): live range of SEND operand should
3410         extend to the next CALL or PCALL, not just to the next CALL.
3411
3412 2004-02-16 Vangelis Rokas <vrokas AT otenet.gr>
3413
3414         * src/pic16/gen.c (genInline): fixed bug #896482 with inline assembly
3415
3416 2004-02-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3417
3418         * src/mcs51/ralloc.c (packRegsForAssign, reassignAliasedSym): fixed
3419         bug #895752 and a better fix for bug #716790
3420
3421 2004-02-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3422
3423         * src/SDCCsymt.c (processFuncArgs): fixed bug #896796
3424
3425 2004-02-14 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3426
3427         * doc/sdccman.lyx: minor changes, minor changed
3428
3429 2004-02-13 Bernhard Held <bernhard AT bernhardheld.de>
3430
3431         * src/SDCCicode.c (usualBinaryConversions): removed pic16 from ports
3432         which can't handle SDCC_NEWONEBYTEOPS,
3433         (geniCodeMultiply): removed conversion from mult to shift for pic14
3434         and pic16
3435
3436 2004-02-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3437
3438         * src/hc08/gen.h,
3439         * src/hc08/gen.c (storeRegToAop, aopOp, aopAdrStr, accopWithAop,
3440         rmwWithAop): Ported my 2003-10-02 fix for bug #663539 to the hc08,
3441         thus fixing bug #895406
3442
3443 2004-02-11 Bernhard Held <bernhard AT bernhardheld.de>
3444
3445         * device/lib/_modsint.c,
3446         * device/lib/_modslong.c: sign follows divisor only
3447         * src/hc08/gen.c (genMultOneByte): if result size is 1,
3448         signs or signedness can be ignored
3449         * src/SDCCast.c (addCast): cosmetic - added lineno to CAST
3450         * src/SDCCast.c (resultTypePropagate): added even more ops: +, - and *,
3451         added optimization for IFX,
3452         (decorateType): Mult/Div/ModOneByte ops can handle all kind of signed
3453         arguments;
3454         reenabled optimization for IFX, which was removed on 2004-01-11
3455         * src/SDCCast.h: added return type IFX
3456         * src/SDCCicode.c: Mult/Div/ModOneByte ops can handle all kind of signed
3457         arguments with 8 or 16 bit results; pic14 and pic16 ports use old
3458         promotion behaviour; env. var. SDCC_NEWONEBYTEOPS selects the new,
3459         SDCC_OLDONEBYTEOPS selects the old behaviour
3460         * src/SDCCsymt.c (computeType): type2 can be NULL (for LEFT_OP);
3461         changed again and commented promotion rule
3462         * src/SDCCval.c (valDiv): promotion no longer necessary
3463         * src/ds390/gen.c (genMultOneByte) (genDivOneByte) (genModOneByte),
3464         * src/mcs51/gen.c (genMultOneByte) (genDivOneByte) (genModOneByte):
3465         rewritten
3466         * support/regression/tests/onebyte.c: added
3467
3468 2004-02-11 Vangelis Rokas <vrokas AT otenet.gr>
3469
3470         * gen.c (genInline): reverted to old code for assemnling inline
3471         code because of bug reported James Chadd
3472
3473 2004-02-10 Vangelis Rokas <vrokas AT otenet.gr>
3474
3475         * ralloc.h: missing declarations from previous patch,
3476         seems that patch for ralloc.h was never applied, fixed
3477
3478 2004-02-10 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
3479            patch committed by Vangelis Rokas <vrokas AT otenet.gr>
3480
3481         * pcode.c,
3482         * pcode.h,
3483         * ralloc.h: added FSR0L, FSR0H and other missing PIC16 SFR's for
3484         indirect addressing. Marked FSR0 as deprecated
3485         * gen.c (pointerCode): commented out, not needed now
3486         (pic16_popGet2p): new MOVFF helper function
3487         (genGenPointerGet),
3488         (genGenPointerSet): reimplemented with MOVFF and POSTINC0
3489         (shiftRLong): removed duplicate debugging info
3490
3491 2004-02-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3492
3493         * src/ds390/gen.c (genNearPointerGet),
3494         * src/mcs51/gen.c (genNearPointerGet): allow the genDataPointerGet()
3495         optimization with bits, but not bitfields.
3496         * src/ds390/ralloc.c (packRegisters),
3497         * src/mcs51/ralloc.c (packRegisters): fixed bug #884453 & #880832
3498
3499 2004-02-09 Bernhard Held <bernhard AT bernhardheld.de>
3500
3501         * src/SDCCcse.c (algebraicOpts): copy operands before modification
3502
3503 2004-02-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3504
3505         * src/SDCCsymt.h,
3506         * src/SDCCicode.c (operandFromSymbol),
3507         * src/mcs51/ralloc.c (verifyRegsAssigned, serialRegAssign),
3508         * src/ds390/ralloc.c (verifyRegsAssigned, serialRegAssign),
3509         * src/z80/ralloc.c (verifyRegsAssigned, serialRegAssign),
3510         * src/hc08/ralloc.c (verifyRegsAssigned, serialRegAssign),
3511         * src/pic/ralloc.c (verifyRegsAssigned, serialRegAssign),
3512         * src/pic16/ralloc.c (verifyRegsAssigned, serialRegAssign): fixed
3513         bug #892038
3514         * src/SDCCast.c (createIvalStruct, createIvalArray, gatherAutoInit),
3515         * src/SDCCglue.c (emitRegularMap, printIvalStruct, printIvalArray,
3516         printIvalCharPtr, printIvalPtr, printIval, emitStaticSeg, emitOverlay)
3517         * src/SDCCsymt.c (newSymbol),
3518         * src/SDCC.y (struct_or_union_specifier, enum_specifier,
3519         enumerator_list),
3520         * src/SDCCval.h,
3521         * src/SDCCval.c (newiList): fixed bug #885705
3522
3523 2004-02-08  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3524
3525         * doc/sdccman.lyx: added section 3.1.4: sdcclib.
3526         * as/mcs51/lkmem.c: report the size of the stack in .mem file.
3527
3528 2004-02-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3529
3530         * device/include/c8051f120.h,
3531         * device/include/c8051f300.h,
3532         * device/include/c8051f310.h: added/updated header files for Silicon
3533         Laboratories (formerly Cygnal) CPUs. Contributed by Maarten Brock.
3534         * doc/sdccman.lyx: minor changes, recommended diff -Naur and diff -u
3535         in new section Submitting patches
3536
3537 2004-02-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3538
3539         * src/mcs51/gen.c (genNearPointerGet, genPagedPointerGet,
3540         genFarPointerGet, genCodePointerGet, genGenPointerGet,
3541         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
3542         genGenPointerSet),
3543         * src/ds390/gen.c (genNearPointerGet, genPagedPointerGet,
3544         genFarPointerGet, genCodePointerGet, genGenPointerGet,
3545         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
3546         genGenPointerSet),
3547         * src/pic16/gen.c (genNearPointerGet, genPagedPointerGet,
3548         genFarPointerGet, genCodePointerGet, genGenPointerGet,
3549         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
3550         genGenPointerSet),
3551         * src/pic/gen.c (genNearPointerGet, genPagedPointerGet,
3552         genFarPointerGet, genCodePointerGet, genGenPointerGet,
3553         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
3554         genGenPointerSet): fixed bug #892400
3555         * src/pic16/gen.c (genSkipz, AccRol): disabled functions with #if 0
3556         to eliminate build warnings.
3557         * src/SDCCast.c (processParms),
3558         * src/SDCC.y (function_declarator2, declarator2_function_attributes):
3559         fixed bug 751859
3560         * support/valdiag/valdiag.py: added GCC to the list of defines active
3561         when compiling with gcc
3562
3563 2004-02-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3564
3565         * support/Util/SDCCerr.h,
3566         * support/Util/SDCCerr.c,
3567         * src/SDCCast.c (decorateType, sizeofOp): complain when sizeof is used
3568         with an incomplete type (fixed bug #883734)
3569         * src/SDCCicode.c (geniCodeCast): fixed bug #890510
3570
3571 2004-02-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3572
3573         * src/pic16/gen.c (genCmpEq, shiftRLong): fixed declarations
3574
3575 2004-02-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3576
3577         * src/SDCCast.c (decorateType),
3578         * src/SDCCicode.c (geniCodeParms, geniCodeCall): fixed bugs in my ANSI
3579         function pointer implementation
3580         * support/regression/tests/funptrs.c: added tests to verify both forms
3581         of function pointers work correctly. Added tests to verify parameters
3582         are passed in the correct order.
3583
3584 2004-02-06  Vangelis Rokas <vrokas AT otenet.gr>
3585
3586         * device.c (regCompare): registers are sorted by ascending
3587         address and increasing size,
3588         * main.c (_pic16_finaliseOptions): removed the declaration
3589         of compiler macro MCU. Now a macro of the format pic18fxxxx
3590         will be defined from the command line
3591
3592 2004-02-06  Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
3593             patch committed by Vangelis Rokas <vrokas AT otenet.gr>
3594
3595         * pcode.c (pic16initMnemonics): fixed typo in assignment to PCOP_RLNCF
3596         PCOP_RLCF was overwritten!
3597         * gen.c (genSkip): commented out calls to pic16_emitcode,
3598         * (genCmpEQ): fixed "long" compares, only high word did get compared,
3599         * (genlshTwo),
3600         * (genRRC): added debugging info,
3601         * (shiftL2Left2Result): Fixed bug, if offr > offl. Result got
3602         overwritten while shifting,
3603         * (shiftR2Left2Result): Fixed bug, if offr < offl. Result got
3604         overwritten while shifting,
3605         * (AccLsh),
3606         * (AccRsh),
3607         * (shiftLLeftOrResult),
3608         * (shiftRLeftOrResult),
3609         * (shiftRLong),
3610         * (shiftLLong): Implemented with pic16_emitpcode
3611         * (genlshFour): Replaced pic16_aopPut with pic16_emitpcode,
3612         * (genLeftShift): Fixed bug, operand for shift by variable always
3613         was "and"ed with 0x0f,
3614         * (genLeftShiftLiteral),
3615         * (genrshTwo),
3616         * (genRightShiftLiteral): added debugging info,
3617         * (genrshFour): added comment,
3618         * (genRightShift): determined signedness from operand "left"
3619         instead of "result"
3620
3621 2004-02-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3622
3623         * src/SDCCicode.c (geniCodeParms),
3624         * src/SDCCast.c (decorateType, processParms): support for ANSI-style
3625         function pointers, fixed function pointer bugs #861242 and #861896
3626
3627 2004-01-31 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3628
3629         * device/include/c8051f000.h,
3630         * device/include/c8051f120.h,
3631         * device/include/c8051f300.h: added header files for Silicon
3632         Laboratories (formerly Cygnal) CPUs. Contributed by Maarten Brock.
3633
3634 2004-01-31 Bernhard Held <bernhard AT bernhardheld.de>
3635
3636         * src/SDCCast.c (processParams): added new type flow and restructured
3637         (gatherAutoInit): added new type flow
3638         (addCast): cosmetic changes
3639         (getLeftResultType): added new type flow for array indices, patch
3640         provided by Stas, see FR #877103
3641         (decorateType): SDCC_NEWTYPEFLOW removed, new type flow is now standard;
3642         array index patch by Stas
3643         * src/SDCCast.h: added prototype getResultTypeFromType()
3644         * src/SDCCval.h,
3645         * src/SDCCval.c (resolveIvalSym) (resolveIvalSym),
3646         * src/pic/glue.c (pic14emitStaticSeg),
3647         * src/pic16/glue.c (pic16emitStaticSeg),
3648         * src/SDCCglue.c (emitRegularMap) (emitStaticSeg): added new type flow
3649         for initialization of symbols
3650         * src/SDCCicode.c (geniCodeArray): removed warning W_ARRAY_BOUND
3651         * support/Util/SDCCerr.h:
3652         * support/Util/SDCCerr.c: replaced W_ARRAY_BOUND by W_IDX_OUT_OF_BOUNDS
3653         * .version: bumped version number to 2.3.8
3654         * device/include/Makefile.in (install),
3655         * doc/Makefile (install): changed to 'rm `find ...`' construct to
3656         avoid warnings
3657
3658 2004-01-30 Bernhard Held <bernhard AT bernhardheld.de>
3659
3660         * support/regression/tests/libmullong.c: fixed for 64 bit hosts
3661         Slade Rich fixed an optimization bug
3662         * src/pic/pcodepeep.c,
3663         * src/pic/pcoderegs.c
3664         * doc/Makefile (install): added test for directory
3665
3666 2004-01-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3667
3668         * src/mcs51/ralloc.c (getRegPtr, getRegGpr),
3669         * src/ds390/ralloc.c (getRegPtr, getRegGpr),
3670         * src/pic/ralloc.c (getRegPtr, getRegGpr),
3671         * src/pic16/ralloc.c (getRegPtr, getRegGpr),
3672         * src/z80/ralloc.c (getRegGpr): fixed bug #883361
3673         * as/mcs51/asexpr.c (term),
3674         * as/hc08/asexpr.c (term): fixed bug #887146
3675
3676 2004-01-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3677
3678         * src/z80/gen.c (genMult): handle single byte result product
3679         * src/SDCCopt.c (killDeadCode): never convert ADDRESS_OF iCode to
3680         DUMMY_READ_VOLATILE (fixed bug #886367)
3681
3682 2004-01-27 Bernhard Held <bernhard AT bernhardheld.de>
3683
3684         * support/regression/tests/libmullong.c: fixed logic, on little endian
3685         hosts we ended without a mullong_wrapper()
3686
3687 2004-01-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3688
3689         * ChangeLog: changed "@" to " AT " in hopes of reducing spam and
3690         virus/worm forged address usage.
3691
3692 2004-01-27 Bernhard Held <bernhard AT bernhardheld.de>
3693
3694         Fixed promotion, it should be done on AST level:
3695         * src/SDCCast.c (addCast): added promotion to int
3696         (decorateType): updated call to upCast()
3697         * src/SDCCicode.c (geniCodeLeftShift): removed call to
3698         usualUnaryConversions()
3699
3700 2004-01-26  Michael Hope  <michaelh AT juju.net.nz>
3701
3702         * support/regression/tests/literalop.c (mulWrapper): Added a
3703         wrapper to remove integer overflow warnings.
3704
3705         * support/regression/tests/float_trans.c: Made work on host.
3706
3707         * support/regression/ports/ucz80/spec.mk (UCZ80): Made detect the
3708         location of sz80.
3709
3710         * support/regression/generate-cases.py (main): Changed from inline
3711         to a main method.
3712
3713         * doc/Makefile (install): Changed to depth first to get rid of
3714         missing directory install warning.
3715
3716         * as/Makefile (install-doc): Made work on Mac.
3717
3718 2004-01-25 Bernhard Held <bernhard AT bernhardheld.de>
3719
3720         * src/SDCCast.c: added an additional type flow in decorateType() of
3721         opposite direction, see feature request #860006; it's enabled at runtime
3722         by setting the environment variable SDCC_NEWTYPEFLOW
3723         * src/SDCCast.h: changed prototype of decorateType()
3724         * src/SDCCglue.c (emitRegularMap): updated call of decorateType()
3725         * src/SDCCicode.c (geniCodeDivision) (geniCodeModulus): promotion from
3726         'char' to 'int' can be omitted, if both operands are 'unsigned char';
3727         see feature request #877103
3728         * src/SDCCval.c: updated call of decorateType()
3729         (valBitwise): fixed bug #882876
3730         (valMinus): added promotion
3731         (valLogicAndOr): result is unsigned
3732         (cheapestVal) (constVal): literals from 0...255 are 'unsigned char' now
3733         * src/SDCCsymt.c (computeType),
3734         * src/mcs51/gen.c (genCmpGt) (genCmpLt): literal 'unsigned char'
3735         must not cause an unsigned operation
3736         * src/pic/glue (pic14emitRegularMap),
3737         * src/pic16/glue.c (pic16emitRegularMap): updated call of decorateType()
3738
3739 2004-01-23 Bernhard Held <bernhard AT bernhardheld.de>
3740
3741         * src/pic/pcode.c (PCodeID): commented out left over debug code
3742
3743 2004-01-20 Bernhard Held <bernhard AT bernhardheld.de>
3744
3745         * support/valdiag/tests/overflow.c: added shift tests
3746         * src/pic/device.c,
3747         * src/pic/gen.c,
3748         * src/pic/gen.h,
3749         * src/pic/glue.c,
3750         * src/pic/main.c,
3751         * src/pic/pcode.c,
3752         * src/pic/pcode.h,
3753         * src/pic/pcodepeep.c,
3754         * src/pic/pcoderegs.c,
3755         * src/pic/ralloc.c,
3756         * src/pic/ralloc.h: applied patch from Slade Rich;
3757         added support for multiple code pages and multiple RAM banks on the
3758         PIC 14 port. The ASM files now no longer simply assume all the
3759         code / RAM are in the same page / bank. This means the linker can
3760         safely allocate code/RAM of separate ASM files to different pages/banks.
3761         * doc/sdccman.lyx: added Slade's tips
3762         * src/mcs51/peeph.def: fixed bug #880768
3763
3764 2004-01-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3765
3766         * src/hc08/ralloc.c (rematStr): fixed bug #879282
3767         * src/SDCCast.c (decorateType): fixed bug #880197
3768
3769 2004-01-20  Michael Hope  <michaelh AT juju.net.nz>
3770
3771         * sim/ucsim/gui.src/serio.src/main.cc: Fixed unconditional use of
3772         getopt.h.
3773
3774         * debugger/mcs51/cmd.c (getValBasic): Changed strtof to strtod as
3775         strtof is not part of C89 and isn't included with Mac OS X.
3776
3777 2004-01-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3778
3779         * src/hc08/gen.c (genPlusIncr, genUminus, genMinusDec, genCmp,
3780         shiftL2Left2Result): fixed bug #879326
3781         (genAnd, genOr, genXor): fixed bug when result was of type AOP_CRY
3782         (genMultOneByte): fixed bug in signed vs unsigned multiplication
3783         * sim/ucsim/hc08.src/inst.cc (inst_clr): added missing effective
3784         address fetch for clr instruction
3785         * device/lib/hc08/_mulint.c: created optimized assembly version
3786         * src/SDCCdflow.c (computeDataFlow): fixed bug #878209
3787
3788 2004-01-19 Bernhard Held <bernhard AT bernhardheld.de>
3789
3790         * src/SDCCicode.c (geniCodeArray): applied patch from Stas Sergeev
3791         proposed in FR #877103
3792
3793 2004-01-18 Bernhard Held <bernhard AT bernhardheld.de>
3794
3795         * src/SDCCval.c (cheapestVal): added missing checks
3796         * src/SDCCicode.c (usualBinaryConversions): fixed condition
3797         * src/SDCCicode.c (geniCodeAdd): fixed part of bug #877103
3798
3799 2004-01-16 Klaus Flittner <klaus_flittner AT gmx.de>
3800
3801         * src/ds390/gen.c (aopOp3): fixed the assignment of different dptrs to
3802         equal operands
3803
3804 2004-01-16 Vangelis Rokas <vrokas AT otenet.gr>
3805
3806         * src/SDCCmain.c (linkEdit): variable $3 of the linker command is
3807         loaded with the linker search paths (-L arguments) and the libraries
3808         to be linked with the current source (-l arguments). Changes
3809         currently will affect only the pic16 port.
3810         * src/pic16/main.c (_pic16_finaliseOptions): add to the linker
3811         include path the port specific paths and port specific libraries,
3812         * gplink command now contains the $3 argument,
3813         * src/pic16/device.h,
3814         * src/pic16/device.c,: structure PIC_device is made public and
3815         renamed to PIC16_device, the same for variable Pics which is renamed
3816         to Pics16. Updated all references to them.
3817         * src/pic16/glue.c (pic16glue): corrected bug with code
3818         initialization which bypassed the variable initializations block.
3819
3820         * device/lib/pic16/Makefile.rules: removed --penable-stack from
3821         COMPILE_FLAGS and added the --nostdinc option
3822
3823 2004-01-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3824
3825         * device/include/mc68hc908jb8.h: Register defs for another member
3826         of the hc08 family. Contributed by Bjorn Bringert - thanks!
3827
3828 2004-01-14 Vangelis Rokas <vrokas AT otenet.gr>
3829
3830         Documenting changes from previous commits.
3831         * configure.in (version 1.56),
3832         * configure: initially I've added AC_CONFIG_SUBDIRS(device/lib/pic16)
3833         when generating output files to configure the pic16 library,
3834         but now I've commented it out, since gputils aren't installed in the
3835         SF compile farm, so library won't compile
3836
3837         * device/lib/Makefile.in (version 1.56): initially I've added in
3838         target 'all' the prerequestive 'model-pic16' so it compiled the
3839         pic16 library, but now I've commented it out for the same reasons
3840         above,
3841         * added targets 'model-pic16' and 'objects-pic16' to compile the
3842         library
3843         * added target 'port-specific-objects-pic16' to handle the
3844         generated libraries and copy them into the build/ directory
3845         * added target 'clean-intermediate-pic16' to clean intermediate
3846         files into pic16 directory
3847         * in target 'installdirs' added line to create directory pic16 in
3848         the installation path
3849
3850         * device/include/Makefile.in (version 1.11): in target 'install'
3851         added lines to copy all header files to installation path,
3852         * in target 'installdirs' added line create directory for pic16
3853         headers in the installation path
3854
3855 2004-01-13 Klaus Flittner <klaus_flittner AT gmx.de>
3856
3857         * src/ds390/gen.c (genCall): fixed a double use of acc and b after
3858          a function call
3859
3860 2004-01-13 Bernhard Held <bernhard AT bernhardheld.de>
3861
3862         * configure,
3863         * device/lib/configure.in,
3864         * device/lib/configure: fixed for autoconf 2.57
3865
3866 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3867
3868         * src/z80/main.c (_parseOptions): fixed the portmode= command line
3869         option so that it actually works. Made it specific to the z80, since
3870         the gbz80 doesn't have these kinds of I/O ports.
3871
3872 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3873
3874         * device/include/z180.h,
3875         * device/lib/_memcpy.c,
3876         * device/lib/_memmove.c,
3877         * device/lib/_mulint.c,
3878         * device/lib/ser_ir.c,
3879         * device/lib/ser_ir_cts_rts.c,
3880         * device/lib/_strcmp.c,
3881         * device/lib/_strtok.c: fixed pragmas to non-deprecated form
3882         * src/z80/main.c (_process_pragma): add support for pragmas bank and
3883         portmode; added deprecation warning for bank= and protmode= forms.
3884         Also, guard against buffer overflow.
3885         * src/z80/gen.c (aopGet): generate better code for sfr banked read
3886
3887 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3888
3889         * src/hc08/main.c (_hc08_genAssemblerPreamble): fixed bug #875487. Also
3890         changed interrupt vector table generation to only emit declared vectors.
3891         * device/include/Makefile.in: added missing backslash
3892         * device/lib/pic16/Makefile.rules: add $(MODELFLAGS) to $(CFLAGS)
3893
3894 2004-01-13 Vangelis Rokas <vrokas AT otenet.gr>
3895
3896         Mainly changes to support compilation of the device libraries
3897         * src/pic16/device.c: stack is allocated via symbol and not
3898         via literal number. The symbol is placed in the corresponding
3899         position of the data ram
3900         * (pic16_dump_section): relocatable and absolute uninitialized
3901         data are now emitted in sorted order to reduce section naming,
3902         * src/pic16/ralloc.c (newReg): fixed bug with SFR's that
3903         weren't marked as being in the access bank,
3904
3905 2004-01-13 Vangelis Rokas <vrokas AT otenet.gr>
3906
3907         Added portion of GNU PIC Library under the directory
3908         device/include/pic16 and device/lib/pic16. These files
3909         contain the declarations of SFRs for the PIC18Fxx2 devices.
3910         The directory is initialized via configure from toplevel.
3911
3912 2004-01-12 Klaus Flittner <klaus_flittner AT gmx.de>
3913
3914         * src/ds390/gen.c (operandsEqu): fixed a little typo, that prevented
3915         the spilllocations to be compared correctly
3916
3917 2004-01-12 Bernhard Held <bernhard AT bernhardheld.de>
3918
3919         * src/SDCCast.c (decorateType): fixed bug introduced today
3920
3921 2004-01-12  Borut Razem <borut.razem AT siol.net>
3922
3923         * src/SDCC.lex, support/Util/SDCCerr.h, support/Util/SDCCerr.c,
3924         doc/sdccman.lyx: upper case pragmas are deprecated
3925
3926 2004-01-12 Bernhard Held <bernhard AT bernhardheld.de>
3927
3928         * src/SDCCast.c (decorateType): replacing 'ul > 0' by  '!ul' results
3929         in simpler and even better code
3930
3931 2004-01-11 Bernhard Held <bernhard AT bernhardheld.de>
3932
3933         * src/SDCCicode.c (operandOperation): fixed bug #874819
3934         * src/SDCCast.c (decorateType): fixed
3935         char foo (unsigned long ul) { return ul > 0; }
3936
3937 2004-01-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3938
3939         * doc/sdccman.lyx: Moved and added some sections, small changes
3940         all over. Telling LaTeX to be less strict with word spacing
3941         to better keep the right margin. Changed some notes about
3942         maintainance of the ports in section 3.2.1 - is it OK like this?
3943
3944 2004-01-11 Vangelis Rokas <vrokas AT otenet.gr>
3945
3946         SDCC source changes:
3947         * src/SDCCopt.c (cntToFcall, cnvToFloatCast, cnvFromFloatCast,
3948         convilong): modified to inform the pic16 port that builtin functions
3949         are external
3950
3951         PIC16 PORT specific changes:
3952         * src/pic16/device.c pic16_dump_equates() added,
3953         processor registers declared internally by the port are emitted in
3954         the translation as equates,
3955         * src/pic16/gen.c: inline code is passed unprocessed to the
3956         translation,
3957         * (pic16_popGetLit2): fnuction modified to take second operand as
3958         pCodeOp pointer and not as literal,
3959         * (popRegFromIdx): prefixed with pic16_,
3960         * (pic16_popCombine2): modified to receive already allocated pCode
3961         operands,
3962         * (pic16_pushpCodeOpReg, pic16_poppCodeOpReg): added
3963         * (genFunction): initializes local stack frame and pushes on stack
3964         all the registers used by this function,
3965         * (genEndFunction): restores all registers from stack and restores
3966         stack frame,
3967         * src/pic16/glue.c (pic16emitRegularMap): various changes and
3968         improvements,
3969         * (pic16glue): changed the program startup sequence,
3970         * added new dbName code 'A' for functions placed in absolute section
3971         * src/pic16/main.c: added function attribute _naked,
3972         * added pragma 'code' to place a fnuction at an absolute address,
3973         * added command line arguments --debug-ralloc and --pcode-verbose,
3974         * (_pic16_finiliseOptions): options.all_callee_saves is set by default
3975         * src/pic16/pcode.c (pic16_pBlockConvert2Absolute) added,
3976         * (pic16_newpCodeOpLit2): modified to take the second operand as
3977         pCodeOp pointer,
3978         * (pic16_printpBlock): modified to emit each function in a separate
3979         section,
3980         * (pic16_get_op): modified to use the gpasm modifiers LOW,HIGH and
3981         UPPER for immediate operands,
3982         * src/pic16/pcodepeeph.c: added peephole support for the LFSR
3983         instruction,
3984         * src/pic16/peeph.def: all peepholes with movff are commented out,
3985         because there is a problem in the pcode peep optimizer,
3986         * src/pic16/ralloc.c: the register allocator can now reuse local
3987         function symbols for another function. This saves register usage.
3988         * src/pic16/ralloc.h: added flag isLocal in structure regs,
3989
3990         Added file src/pic16/NOTES with information about program writing on
3991         the current port version.
3992
3993 2004-01-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3994
3995         * src/mcs51/peephole.def: added peepholes 177.c,d (redundant moves)
3996         and peephole 252 (array access)
3997
3998 2004-01-09  Borut Razem <borut.razem AT siol.net>
3999
4000         * src/SDCCmain.c : fixed #872250: -l command line defined library
4001           files are scanned before standard library files
4002
4003 2004-01-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4004
4005         * src/SDCCast.c (decorateType): fixed bug #874046
4006
4007 2004-01-09  Borut Razem <borut.razem AT siol.net>
4008
4009         * support/scripts/sdcc.nsi: remove previous installation
4010
4011 2004-01-09 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4012
4013         * src/SDCCglue.c (createInterruptVect): don't append 7(5) padding
4014         bytes for last interrupt vector (mcs51)
4015         * sdcc.spec: fixed typo
4016
4017 2004-01-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4018
4019         * src/mcs51/gen.c (genFunction, genEndFunction, genReceive, getTempRegs,
4020         gen51Code): more efficient parameter receive for --model-large
4021         ("bug" #845294)
4022
4023 2004-01-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4024
4025         * src/ds390/main.c,
4026         * src/z80/main.c: added missed needLinkerScript flags (more than
4027         one port structure defined in these file)
4028         * src/ds390/gen.c (aopForSym, aopOp, operandsEqu, aopOp3): fixed
4029         bug #795325
4030
4031 2004-01-08 Vangelis Rokas <vrokas AT otenet.gr>
4032
4033         * src/SDCCmain.c: removed various references to DEFAULT_PORT
4034         * src/port.h: added flag needLinkerScript in port->linker
4035         structure to inform whether to create a .lnk file or not,
4036         * src/avr/main.c,
4037         * src/ds390/main.c,
4038         * src/hc08/main.c,
4039         * src/mcs51/main.c,
4040         * src/pic/main.c,
4041         * src/pic16/main.c,
4042         * src/xa51/main.c,
4043         * src/z80/main.c: changed appropriately to configure
4044         needLinkerScript flag
4045         * src/pic/gen.c,
4046         * src/pic16/gen.c (genAddrOf): fixed bug #863624
4047         * src/pic/glue.c: added variable udata_section_name to
4048         override default uninitialized data segment definition for
4049         devices only with SHAREBANK memory (reported from Erik Epetrich)
4050         * (pic14emitOverlay): modified to emit a commented overlay segment
4051         directive when no overlay data exist
4052         * (picglue): modified to emit uninitialized data segment
4053         according to udata_section_name
4054         * src/pic/main.c (_pic14_parseOptions): added command line
4055         options --udata-section-name=[name] to override default
4056         udata definition name
4057         * modified _linkCmd and _asmCmd to include compiler passed
4058         arguments via -W option
4059         * src/pic16/main.c: added $l in _asmCmd, changed extension for
4060         object file from '.rel' to '.o' in port->linker structure,
4061         changed size of fptr from 2 to 3 in port structure
4062
4063 2004-01-07  Borut Razem <borut.razem AT siol.net>
4064
4065         * support/scripts/sdcc.nsi: update PATH
4066         * support/scripts/sdcc.ico: craeted
4067
4068 2004-01-07 Bernhard Held <bernhard AT bernhardheld.de>
4069
4070         * device/include/Makefile.in: fix install
4071         * doc/Makefile: fix install
4072
4073 2004-01-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4074
4075         * src/SDCCsymt.c (processFuncArgs): fixed superflous allocation noted
4076         in bug #860505
4077         * src/SDCCmem.c (printAllocInfoSeg, printAllocInfo): minor changes to
4078         how the function variable allocation summary is displayed; also
4079         include information about variables allocated to the overlay
4080         segment
4081
4082 2004-01-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4083
4084         * as/mcs51/lkmain.c: Help about -Y option
4085         * as/mcs51/lkarea.c: Fixed gcc warnings
4086
4087 2004-01-06 Bernhard Held <bernhard AT bernhardheld.de>
4088
4089         * src/SDCCval.c (valShift): changed from 16 to 32 bit shift count,
4090         fixed warning
4091         * support/valdiag/tests/overflow.c: added
4092         * src/SDCCast.c (decorateType),
4093         * src/SDCCicode.c (geniCodeLeftShift): added promotion to int for
4094         LEFT_OP (left shift)
4095
4096 2004-01-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4097
4098         * as/mcs51/lkmain.c: stack must be after data when option -Y is not used
4099         (default behaviour).
4100
4101 2004-01-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4102
4103         A python script to validate compiler diagnostic messages. It can be
4104         used to verify that sdcc complains about bad c source code and
4105         gives a good location of the error.
4106         * support/valdiag/Makefile,
4107         * support/valdiag/valdiag.py,
4108         * support/valdiag/tests/*
4109
4110 2004-01-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4111
4112         * src/SDCC.y (enum_specifier, enumerator_list, opt_assign_expr),
4113         * src/SDCCsymt.c (newEnumType),
4114         * src/SDCCsymt.h
4115         * support/Util/SDCCerr.c,
4116         * support/Util/SDCCerr.h: fixed bug #871258 and some other unreported
4117         enum related bugs.
4118         * support/regression/tests/enum.c: added test for enum values that
4119         require at least 2 bytes of storage.
4120
4121 2004-01-06 Vangelis Rokas <vrokas AT otenet.gr>
4122
4123         * src/common.h: added ifndef/define/endif macros
4124         around the header file.
4125         Bug reported from Jesus Calvino-Fraga
4126
4127 2004-01-06 Bernhard Held <bernhard AT bernhardheld.de>
4128
4129         * sdcc.spec: updated
4130         * device/include/Makefile.in: don't install CVS directories
4131         * device/lib/Makefile.in: added removal of CVS directories after install
4132         * doc/Makefile: fixed install, added local_icons
4133         * sim/ucsim/gui.src/Makefile.in: fixed an old typo
4134         * src/mcs51/gen.c (genRightShift): fixed bug #870788
4135         * src/ds390/gen.c (genRightShift): fixed bug #870788
4136         * src/SDCCast.c (decorateType): fixed bug #870781
4137
4138 2004-01-06 Vangelis Rokas <vrokas AT otenet.gr>
4139
4140         PIC16 port related changes:
4141         * device.c: removed pic16_finalMapping and pic16_finalMappingSize,
4142         added variable stackPos,
4143
4144         * gen.c: genCall, assignResultValue: added support for
4145         pushing/retrieving function parameters to/from stack,
4146         genFunction,genEndFunction: setup stack frame for the
4147         generated function,
4148         genAddrOf: will be changed according to bug 863624
4149
4150         * added files genutils.c and genutils.h which contain gen*
4151         debugged and optimised functions extracted from gen.c
4152
4153         * glue.c: added variable 'externs' which holds extern symbols,
4154         pic16emitRegularMap: is modified to properly handle relocatable
4155          symbols under the new scheme,
4156         pic16createInterruptVect: is modified
4157         pic16printPublics: is modified to emit 'global' assembler directives,
4158         added pic16_printExterns to print extern symbols,
4159         pic16glue: initializes stack/frame pointer in the beginning of
4160         the assembly output. Temporary hack, will be corrected later,
4161         because gplink yet does not support stack and SDCC does not
4162         yet support a type of crt0.o object to create the final binary.
4163
4164         * Removed many lines that contain 8051 legacy code.
4165         * The code is finally placed under a 'code' directive.
4166         * Added port specific options.
4167
4168         * _process_pragma: simplified since now we do not need *special*
4169         include file to define SFR registers. But a separate header
4170         will be needed. This will be developed later.
4171         * _pic16_parseOptions: added, parses port specific options:
4172         --pgen-banksel, --obanksel=, --pomit-config-words, --pomit-ivt,
4173         --pleave-reset-vector, --penable-stack, --pstack-model, --debug-xtra
4174         --preplace-udata-with=
4175
4176         * _pic16_setDefaultOptions: modified to initialize section names,
4177         but hack is temporarly out of order since it needs improvement.
4178         * _pic16_genAssemblerPreamble: configuration words are emitted by
4179         their address instead of their name. This part is incomplete and
4180         supports only the 18Fxx2 devices. Other devices will emit an error
4181         during assembly since they do not contain the same set of config
4182         registers
4183         * _pic16_genIVT: is modified,
4184
4185         * pcode.c: added definitions for some hardware registers that are needed
4186         for stack support
4187         * added flag is2LitOp and variable pci_magic in pCodeInstruction.
4188         All PCI entries are updated. Now LFSR is supported.
4189         * Removed pic16_pciTRIS is mentioned by mdubuc in source
4190         * added pic16_newpCodeOpLit2 to support instructions with
4191         two literal arguments
4192         * pic16_pCode2str: corrected code that emits assembler instructions
4193         with two literal operands and those that have an access bit modifier
4194         * genericPrint: now PC_ASMDIR pCodes, can emit a label if it exists,
4195         this fixes a bug which caused some labels to be lost, when an
4196         assembler directive was added, i.e. banksel,
4197         * pic16_FixRegisterBanking: improved logic that causes the insertion
4198         of bank switching,
4199         * InlineFunction: functions that are called once, are not any more
4200         inlined. This can be a port option in the future,
4201
4202         * pcode.h: added pCodeOpLit2 and added variable label in pCodeAsmDir
4203
4204         * ralloc.c: added pic16_rel_udata and pic16_fix_udata variables which
4205         hold the corresponding uninitialized symbols,
4206         * pic16_allocProcessorRegister: registers have explicit marked the
4207         accessBank field,
4208         * pic16_allocInternalRegister: registers are explicit marked as
4209         not used,
4210         * pic16_writeUsedRegs: pic16_dynDirectBitRegs was missing from the
4211         processing list, so bit registers were lost,
4212         *
4213
4214         * ralloc.h: added field 'accessBank' and original symbol operand
4215         in register definition,
4216         * removed the field isMapped from register definition,
4217
4218         ** Several functions have been removed from various sources:
4219         BanksUsedFlow2,BanksUsedFlow,FixBankFlow,InstructionRegBank,
4220         pic16_addMemRange,pic16_isREGinBank,pic16_dump_map,pic16_dump_cblock
4221         isSFR,validAddress,mapRegister,assignRegister,pic16_assignFixedRegisters
4222         pic16_assignRelocatableRegisters
4223
4224         ** others have been introduced:
4225         pic16_areRegsSame,pic16_dump_section,checkAddReg,pic16_groupRegistersInSection
4226         pic16_popGetLit2,pic16_popCombine2,pushw,pushaop
4227
4228 2004-01-05 Vangelis Rokas <vrokas AT otenet.gr>
4229
4230         * support/scripts/inc2h.pl: changed definition of BIT_AT
4231         to emit 'sbit at' instead of 'bit at'. This was a request.
4232
4233         PIC16 port related preliminary changes:
4234         * gen.c: prefixed function popRegFromString with
4235         pic16_ and all references to it corrected
4236         * pcode.c: all pic16_pc_* hardware registers prefixed
4237         with underscore (_),
4238         pic16_popCopyGPR2Bit(): function sets register wasUsed=1
4239         * ralloc.c: newReg(): when register is REG_SFR then
4240         set address to rIdx,
4241         pic16_allocProcessorRegister(): marks register wasUsed=0
4242         pic16_writeUsedRegs(): added a call to assign processor
4243         registers via pic16_assignFixedRegisters
4244
4245 2004-01-04  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4246
4247         * as/mcs51/aslink.h, as/mcs51/lkarea.c, as/mcs51/lkdata.c,
4248         as/mcs51/lkmain.c, as/mcs51/lkmem.c: 8051 linker can now pack
4249         variables in unused register banks.  Also the SSEG is placed
4250         wherever there is enough space for it, and IDATA can be anywhere
4251         in internal RAM.  For now compile using -Wl-Y[stack_size].
4252         The mem file is different for this option as well, since it
4253         makes no sense of talking about DSEG lenght.
4254
4255 2004-01-02 Vangelis Rokas <vrokas AT otenet.gr>
4256
4257         * src/SDCClrange.c: fixed bug 869095 that caused segfault
4258         in certain cases, e.g. when ROM assignment, patch provided
4259         from Albert den Haan.
4260
4261 2004-01-01 Bernhard Held <bernhard AT bernhardheld.de>
4262
4263         Many signedness and type propagation fixes:
4264         * src/SDCCicode.c: made geniCodeCast() static
4265         replaced SPEC_ by IS_ (cosmetic)
4266         (operandOperation): fixed div and mod operation
4267         (usualBinaryConversions): added support for promotion of char
4268         (geniCodeMultiply): replaced (unsigned long) by (TYPE_UDWORD)
4269         (geniCodeDivision): replaced (unsigned long) by (TYPE_UDWORD)
4270         (geniCodeAdd): an array index will stay unsigned, even if promoted
4271         from char to int
4272         (geniCodeArray): ditto
4273         * src/SDCCicode.h: made geniCodeCast() static: removed prototype
4274         * src/SDCCsymt.c (computeType): added more support for char;
4275         promotion of char is selectable by promoteCharToInt, fixed signedness
4276         for all cases
4277         (powof2): replaced (unsigned long) by (TYPE_UDWORD)
4278         * src/SDCCsymt.h (powof2): replaced (unsigned long) by (TYPE_UDWORD)
4279         * src/SDCCval (val*): replaced signedness calculation by
4280         computeType()
4281         rearranged if-branches (cosmetic)
4282         (valShift): added warning W_SHIFT_CHANGED
4283         (valCompare): fixed problem with different types
4284         * src/hc08/rallo.c (leastUsedLR): fixed gcc 3.3 warning
4285         * support/regression/tests/literalop.c: added many cases
4286         * support/regression/tests/ast_constant_folding.c: changed finally to
4287         'unsigned int'
4288         * .version: new year, new version: 2.3.7
4289         * src/SDCCmain.c (main): applied patch #866468
4290         * debugger/mcs51/sdcdb.c (parseCmdLine): added -k for ucsim, patch
4291         provided by Scott Bronson
4292         * doc/sdccman.lyx: updated documentation for sdcdb
4293         updated and added chapter tips
4294
4295 2004-01-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4296
4297         * src/SDCCsymt.h: missing from yesterday's commits
4298
4299 2003-12-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4300
4301         * src/SDCC.y (struct_or_union_specifier),
4302         * support/Util/SDCCerr.c,
4303         * support/Util/SDCCerr.h: verify that struct & union tags are used
4304         as declared.
4305
4306 2003-12-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4307
4308         * src/SDCCglobl.h: missing from yesterday's commits
4309
4310 2003-12-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4311
4312         * src/SDCC.y (external_definition, type_specifier2, sfr_reg_bit,
4313         sft_attributes, struct_declaration, parameter_declaration,
4314         type_name, start_block, declaration_list),
4315         * src/SDCC.lex (check_type): support redefinition of typedef names
4316
4317 2003-12-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4318
4319         * src/mcs51/gen.c (genPlus): added special handling for 256 byte
4320         aligned xdata arrays. Erik helped me with the if clause.
4321
4322 2003-12-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4323
4324         * device/lib/ds390/tinibios.c (CpuSpeed): suppress unreachable code
4325         warning
4326
4327 2003-12-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4328
4329         * src/SDCCast.h,
4330         * src/SDCCast.c (newAst_),
4331         * src/SDCCicode.h,
4332         * src/SDCCicode.c (ast2iCode, newiCode),
4333         * src/SDCCglobl.h,
4334         * src/SDCC.y (logical_and_expr, logical_or_expr, conditional_expr,
4335         expr, statement, expression_statement, selection_statement,
4336         iteration_statement, expr_opt, jump_statement): foundation for tracking
4337         sequence points
4338         * src/SDCCopt.c (killDeadCode): fixed bug #861580 (needs the sequence
4339         point code too)
4340
4341 2003-12-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4342
4343         * support/Util/SDCCerr.c,
4344         * src/SDCCast.h,
4345         * src/SDCCast.c (createCase, createDefault, decorateType),
4346         * src/SDCClabel.c (labelUnreach),
4347         * src/SDCC.y (labeled_statement, jump_statement): More improvements
4348         to error messages.
4349         * support/Util/SDCCerr.c (werrorfl): fixed a non-standard declaration
4350         (with thanks to Stas Sergeev)
4351         * device/include/time.h,
4352         * device/lib/time.c (CheckTime): suppress unreachable code warning
4353
4354 2003-12-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4355
4356         * src/SDCCast.c (createIvalCharPtr),
4357         * src/SDCCglue.c (printChar): fixed bug #862241 (an error in my fix for
4358         bug #753752)
4359         * support/regression/tests/nullstring.c: tests for these two bugs
4360
4361 2003-12-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4362
4363         * support/Util/SDCCerr.h,
4364         * support/Util/SDCCerr.c (E_NOT_ALLOWED),
4365         * src/SDCC.y (struct_declaration, struct_or_union_specifier): complain
4366         about storage class and 'at' used inside struct or union
4367         * src/SDCCBBlock.c (iCodeFromeBBlock),
4368         * src/SDCCcse.c (ifxOptimize),
4369         * src/SDCCglue.c (emitRegularMap, initPointer, printIvalStruct,
4370         printIvalArray, printiValFuncPtr, printIvalCharPtr, printIvalPtr,
4371         printIval, emitStaticSeg, emitOverlay),
4372         * src/SDCClabel.c (deleteIfx),
4373         * src/SDCCopt.c (replaceRegEqv, eBBlockFromiCode),
4374         * src/SDCCast.c (resolveSymbols, createIvalStruct, createIvalArray,
4375         gatherAutoInit, processParms),
4376         * support/Util/SDCCerr.h,
4377         * support/Util/SDCCerr.c (werrorfl): Support for better error location
4378         reporting for post-parse errors.
4379
4380 2003-12-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4381
4382         * src/SDCCval.c (valPlus, valMinus, valShift): fixed some problems with
4383         implicit casts via union; they don't work on big endian systems
4384         (possible fix for bug #861138)
4385
4386 2003-12-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4387
4388         (committed by Erik Petrich <epetrich AT ivorytower.norman.ok.us> on Frieder's behalf)
4389         * src/mcs51/main.c: fixed the fix for bug #737001
4390
4391 2003-12-15  Borut Razem <borut.razem AT siol.net>
4392
4393         * support/scripts/sdcc.nsi: updated for NSIS 2.0 beta 4
4394
4395 2003-12-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4396
4397         * support/makebin/makebin.c: put output in binary mode
4398
4399 2003-12-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4400
4401         * src/mcs51/main.c: fixed bug #737001 for the mcs51. SDCC clears
4402         xdata and data memory on startup. Set the environment variable
4403         SDCC_NOGENRAMCLEAR to disable this.
4404         * src/mcs51/peephole.def,
4405         * src/ds390/peephole.def: using the atomic test and clear instruction jbc
4406         (allows non-interrupt and interrupt code to safely compete for a resource
4407         without the non-interrupt code having to disable interrupts)
4408
4409 2003-12-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4410
4411         * src/SDCCicode.c (geniCodeAdd),
4412         * src/SDCCast.c (decorateType): fixed bug #857753 (need to be careful
4413         with valFromType if type might be a pointer and host is big endian).
4414         * src/SDCCast.c (decorateType): unary plus compatible with all arithmetic
4415         types, not just integer types.
4416         * src/SDCCsymt.c (addSymChain): clarified error message when symbol is
4417         multiply defined with mismatching "at" address.
4418
4419 2003-12-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4420
4421         * src/ds390/main.c (PORT tininative_port): fixed bug #858416
4422         * src/SDCCglue.c (printChar, printIvalChar, emitStaticSeg),
4423         * src/SDCCast.c (createIvalCharPtr, stringToSymbol): handle strings
4424         with embedded nulls (fixed bug #753752)
4425
4426 2003-12-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4427
4428         * src/mcs51/main.c(_mcs51_genRAMCLEAR): using r0 instead of r1/r2.
4429         Apparently this did not see much testing (endless loop)
4430
4431 2003-12-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4432
4433         * src/z80/ralloc.c: set DISABLE_PACK_HL = 1 as a temporary fix to bug #855165
4434
4435 2003-12-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4436
4437         * src/SDCCdebug.c (outputDebugSymbols, outputDebugStackSymbols, dumpSymInfo):
4438         gracefully handle NULL memmap pointers
4439
4440 2003-12-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4441
4442         * src/SDCCopt.c (killDeadCode): change iCode type to DUMMY_READ_VOLATILE
4443         instead of deleting the iCode when an operand is volatile
4444         * src/z80/gen.c (genDummyRead),
4445         * src/mcs51/gen.c (genDummyRead),
4446         * src/ds390/gen.c (genDummyRead),
4447         * src/hc08/gen.c (genDummyRead): handle operands in IC_LEFT and/or IC_RIGHT,
4448         not just IC_RIGHT
4449         * src/SDCCicode.c (geniCodeCall): fixed bug #851607
4450         * src/SDCC.y: fixed bug #850420
4451
4452 2003-12-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4453
4454         Applied z80 i/o port patch from Peter Townson and fixed some operators
4455         to better handle operands in A register.
4456         * device/include/z180.h
4457         * src/SDCC.y
4458         * src/SDCCglue.c
4459         * src/z80/gen.c
4460         * src/z80/gen.h
4461         * src/z80/main.c
4462         * src/z80/peeph-z80.def
4463         * src/z80/peeph.def
4464         * src/z80/z80.h
4465
4466 2003-12-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4467
4468         * src/SDCCsymt.c (addSymChain, compareTypeExact): fixed bug #838241 again
4469
4470 2003-12-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4471
4472         * device/lib/hc08/_mullong.c: Removed extra #endif
4473
4474 2003-12-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4475
4476         * sim/ucsim/hc08.src/inst.cc,
4477         * sim/ucsim/hc08.src/hc08mac.h: fixed some problems with CC flag bits and
4478         carries from x to h
4479         * src/hc08/gen.c (aopAdrStr): fixed problem with 16 bit immediate
4480         * src/hc08/gen.c (XAccRsh): fixed problem with right shift
4481         * device/include/stdarg.h: fixed varargs for hc08
4482         * device/lib/Makefile.in,
4483         * device/lib/hc08/Makefile,
4484         * device/lib/hc08/_mulint.c,
4485         * device/lib/hc08/_mullong.c: fixed some endian problems
4486
4487 2003-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4488
4489         * sdcc/src/mcs51/gen.c (genMultOneByte): help peephole 105
4490         * sdcc/src/mcs51/peeph.def: added peephole 186.e array access in code space
4491         * device/lib/_gptrget.c,
4492         * device/lib/_gptrput.c: P2 not used any more (related to #850747, #785979)
4493
4494 2003-11-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4495
4496         * src/SDCClrange.c (findNextUseSym, rlivePoint): fixed bug #849795
4497         * src/SDCCast.c (astErrors): fixed bug #846007
4498         * src/SDCCsymt.c (checkFunction): fixed follow-up bug on bug #846007
4499
4500 2003-11-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4501
4502         * src/SDCCast.c (decorateType): disabled a transformation I added in
4503         revision 1.188 (access to fields of a structure at an absolute address);
4504         it breaks with bitfields, extern declarations, and gcse analysis.
4505         * src/SDCCopt.c (isLocalWithoutDef): if ADDRESS_OF applied to a symbol, it
4506         could be assigned through a pointer, so don't complain.
4507         * src/SDCCast.c (astErrors),
4508         * src/SDCCast.h,
4509         * src/SDCCglue.c (emitRegularMap): fixed bug #847813
4510
4511 2003-11-26 Vangelis Rokas <vrokas AT otenet.gr>
4512
4513         * src/pic16/main.c (_pic16_genIVT): fixed interrupt vector table
4514         * src/pic16/main.c (_pic16_genAssemblerPreamble): re-enabled the
4515         output of __config directives, since gpasm now supports them
4516         * src/pic16/main.c (_pic16_finaliseOptions): define MCU
4517         pre-processor macro, i.e. -DMCU=p18f452
4518         * src/pic16/ralloc.c: renamed packRegisters to pic16_packRegisters,
4519         and modified to handle 'cast' icode similarly to '=' icode
4520         * src/pic16/device.h (typedef struct PIC_device): added field
4521         'extMIface' to indicate that chip has external memory interface
4522         * src/pic16/device.c: added chips 18F248, 18F258, 18F448, 18F458,
4523         18F6520, 18F6620, 18F6680, 18F6720, 18F8520, 18F8620, 18F8680,
4524         18F8720
4525
4526 2003-11-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4527
4528         * src/SDCC.y (pointer): fixed bug #846006
4529         * support/Util/SDCCerr.c: made W_PTR_TYPE_INVALID message clearer
4530         * src/SDCCast.c (decorateType): fixed bug #846009
4531         * src/ds390/peeph.def,
4532         * src/ds390/gen.c (genAnd, genOr),
4533         * src/mcs51/peeph.def,
4534         * src/mcs51/gen.c (genAnd, genOr): fixed bug #846777
4535
4536 2003-11-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4537
4538         Fixed several common-sub-expression bugs (#772861, #768380, & #755323)
4539         * src/SDCCdflow.c
4540         * src/SDCCcse.c
4541         * src/SDCCcse.h
4542         * src/SDCCBBlock.h
4543         * src/SDCCBBlock.c
4544
4545 2003-11-23 Klaus Flittner <klaus_flittner AT gmx.de>
4546
4547         fixed bug #845089
4548         * src/SDCCbitv.h,
4549         * src/SDCCbitv.c: added function to free a bitvector
4550         * src/SDCClrange.h,
4551         * src/SDCClrange.c: added function to recompute the liveranges
4552         * src/avr/ralloc.c,
4553         * src/ds390/ralloc.c,
4554         * src/hc08/ralloc.c,
4555         * src/mcs51/ralloc.c,
4556         * src/pic/ralloc.c,
4557         * src/pic16/ralloc.c,
4558         * src/xa51/ralloc.c,
4559         * src/z80/ralloc.c: recompute the liveranges after register packing
4560
4561 2003-11-21 Klaus Flittner <klaus_flittner AT gmx.de>
4562
4563         * src/SDCCloop.c (newInduction): fixed bug #845630
4564
4565 2003-11-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4566
4567         * src/SDCCsymt.c (compareTypesExact): disabled debugging output
4568         inadvertantly left behind from my 2003-11-12 change
4569
4570 2003-11-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4571
4572         Updated headers I neglected to commit yesterday.
4573         * src/SDCClrange.h,
4574         * src/SDCCicode.h
4575
4576 2003-11-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4577
4578         * src/SDCCcse.c (algebraicOpts): fixed bug #773153
4579         * src/SDCClrange.c (rlivePoint): need to mark IC_RESULT used if POINTER_SET op
4580         * src/SDCCopt.c (eBBlockFromiCode),
4581         * src/SDCClrange.c (hashiCodeKeys, sequenceiCode, computeLiveRanges): seperated
4582         the creation of the key hash table from the sequencing so it can be used
4583         earlier (for some GCSE bug fixes still pending)
4584
4585 2003-11-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4586
4587         * src/mcs51/gen.c (genPlus): generate shortcut for adding 0xab00
4588         * support/regression/tests/addsub.c: testing genPlus shortcut
4589
4590 2003-11-15  Borut Razem <borut.razem AT siol.net>
4591
4592         * src/SDCCmain.c: fixed bug #841645: -MM command line option passed to sdcpp
4593
4594 2003-11-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4595
4596         * src/SDCCcse.c (cseBBlock): fixed bug #527779
4597         * src/SDCCcse.c (deleteGetPointers): rewrote so that the set
4598         ordering is immaterial.
4599         * src/SDCCdflow.c (mergeInExprs): fixed bug #587536
4600
4601 2003-11-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4602
4603         * src/SDCCicode.c (geniCodeAddressOf): fixed part of bug #840381
4604         * src/SDCCopt.c (replaceRegEqv, isLocalWithoutDef): fixed other part
4605         (SIGSEV) of bug #840381
4606         * src/SDCCmain.c (linkEdit, assemble): fixed bug #841606 (don't
4607         unlink new file before rename if new and old filenames are the same)
4608
4609 2003-11-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4610
4611         * src/mcs51/main.c: started fixing bug #737001 (SDCC not clearing
4612         uninitialized variables) for the mcs51. Set environment variable
4613         SDCC_GENRAMCLEAR to test.
4614         xdata initialization slightly shorter
4615
4616 2003-11-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4617
4618         * src/SDCCsymt.h,
4619         * src/SDCCsymt.c (addSymTypeChain, compareTypesExact): fixed bugs
4620         #838241 & 780691 (basicly the same bug)
4621         * src/SDCCBBlock.c (iCode2eBBlock): fixed bug #840148
4622         * src/SDCCBBlock.c (iCodeFromeBBlock): fixed bug #840162
4623
4624 2003-11-11 Bernhard Held <bernhard AT bernhardheld.de>
4625
4626         * src/SDCCmain.c (linkEdit): "fix" #834252
4627
4628 2003-11-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4629
4630         * src/SDCCast.c (removePostIncDecOps, removePreIncDecOps),
4631         * src/SDCCast.h,
4632         * src/SDCC.y: fixed bug #819403
4633
4634 2003-11-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4635
4636         * support/regression/fwk/lib/testfwk.c: printn is recursive and thus needs
4637         the reentrant attribute.
4638         * src/hc08/gen.c (genPackBits): added missing stack readjustment
4639         * sim/ucsim/hc08.src/inst.cc (inst_mov): fixed bugs with mov instruction
4640         simulation
4641         * src/SDCCast.c (decorateType): fixed bug with storage class not being
4642         updated during pointer dereference; f.e. ~(((char *)1)*) was being
4643         erroneously reduced to a literal.
4644         * src/hc08/ralloc.c (packRegisters, rematStr),
4645         * src/hc08/gen.c (aopForRemat): allow literals to be rematerialized in
4646         some cases
4647
4648 2003-11-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4649
4650         * src/mcs51/main.c: fixed bug #838385. Thanks to Josef Pavlik for finding and fixing
4651         * doc/sdccman.lyx: changed from 'article' to 'book'
4652         * doc/Makefile: readded test_suite_spec and cdbfileformat
4653
4654 2003-11-08 Bernhard Held <bernhard AT bernhardheld.de>
4655
4656         * device/include/stdlib.h: include malloc.h to comply with ANSI
4657         * support/regression/tests/malloc.c: include stdlib.h instead of malloc.h
4658
4659 2003-11-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4660
4661         * doc/Makefile: sdccman.pdf should build with correct references (more info in commit msg)
4662         * doc/clean.mk: also remove *.out files
4663         * doc/sdccman.lyx: some additions, larger top/bottom margins
4664
4665 2003-11-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4666
4667         * src/SDCC.y: fixed bug #837365
4668         * support/regression/tests/bitopcse.c
4669         * src/hc08/gen.c (genPointerGet): Don't assume pointer operand is
4670         a symbol (might be valop instead)
4671         * device/lib/Makefile.in: added errno.c to HC08SOURCES
4672         * device/lib/clean.mk: added hc08 to the cleaning list
4673
4674 2003-11-04  Borut Razem <borut.razem AT siol.net>
4675
4676         * configure, configure.in, sdcc_vc_in.h, sdcconf_in.h: reverted changes,
4677           made 2003-11-04
4678         * support/Util/NewAlloc.c, as/hc08/lklibr.c, as/mcs51/lklibr.c,
4679           as/z80/aslist.c, as/z80/assym.c: removed inclusion of nonstandard malloc.h;
4680           malloc is declared in standard stdlib.h
4681
4682 2003-11-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4683
4684         * device/lib/hc08/Makefile: need to clean .rel not .o files
4685         * src/hc08/gen.c (genDjnz): can't use djnz with extended addressing mode
4686
4687 2003-11-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4688
4689         * src/port.h,
4690         * src/hc08/main.c,
4691         * src/mcs51/main.c,
4692         * src/ds390/main.c,
4693         * src/z80/main.c,
4694         * src/avr/main.c,
4695         * src/pic/main.c,
4696         * src/pic16/main.c,
4697         * src/xa51/main.c: added hasExtBitOp & oclsExpense functions to ports
4698         * src/SDCCicode.c: changed several IS_FARSPACE tests to isOclsExpensive
4699         tests (which uses the port's oclsExpense function)
4700         * src/SDCC.y,
4701         * src/SDCCast.c,
4702         * src/SDCCicode.c,
4703         * src/hc08/gen.c,
4704         * src/ds390/gen.c,
4705         * src/mcs51/gen.c: added support for the SWAP iCode (RFE #834167)
4706
4707 2003-11-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4708
4709         * src/SDCCcse.c (ifxOptimize),
4710         * src/SDCClabel.c (labelIfx, deleteIfx): When the condition to
4711         an IFX iCode is volatile, convert to DUMMY_READ_VOLATILE instead
4712         deleting the IFX iCode.
4713         * src/hc08/ralloc.c: reduced unneeded slocs
4714         * src/hc08/gen.c: fixed bug in asmopToBoolean
4715
4716 2003-11-04  Borut Razem <borut.razem AT siol.net>
4717
4718         * configure, configure.in, sdcc_vc_in.h, sdcconf_in.h,
4719           support/Util/NewAlloc.c, as/hc08/lklibr.c, as/mcs51/lklibr.c,
4720           as/z80/aslist.c, as/z80/assym.c: decision to include malloc.h
4721           transferred to configure
4722
4723 2003-11-03 Bernhard Held <bernhard AT bernhardheld.de>
4724
4725         Use headers defined in the C[++] standards:
4726         * sim/ucsim/gui.src/serio.src/fileio.cc
4727         * sim/ucsim/gui.src/serio.src/frontend.cc
4728         * sim/ucsim/gui.src/serio.src/main.cc
4729         * sim/ucsim/gui.src/serio.src/posix_signal.cc
4730         * support/Util/NewAlloc.c
4731         * as/hc08/lklibr.c
4732         * as/mcs51/lklibr.c
4733         * as/z80/aslist.c
4734         * as/z80/assym.c
4735
4736 2003-11-03  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4737
4738         * Added MSVC projects for hc08 assembler and linker:
4739         all.dsp, config.dsp, sdcc.dsw, /as/hc08/as_hc08.dsp,
4740         /as/hc08/link_hc08.dsp
4741
4742 2003-11-03 Martin Helmling <Martin.Helmling AT octo-soft.de>
4743
4744         * debugger/mcs51/cmd.c: allows filename starting with digit(+ some debug)
4745
4746 2003-11-02 Bernhard Held <bernhard AT bernhardheld.de>
4747
4748         * src/SDCCmain.c (linkEdit): "fixed" again bug #833605
4749
4750 2003-11-01 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4751
4752         * src/mcs51/main.c: xdata initialization is 13 bytes shorter now
4753
4754 2003-10-31  Borut Razem <borut.razem AT siol.net>
4755
4756         * support/cpp2/cpplib.h,
4757           support/cpp2/cpplib.c,
4758           support/cpp2/cpplex.c,
4759           support/cpp2/cppinit.c: introduced #pragma preproc_asm [ + | - ]
4760           to switch _asm block preprocessing on / off. Default is
4761           #pragma preproc_asm +
4762
4763 2003-10-31  Borut Razem <borut.razem AT siol.net>
4764
4765         * support/cpp2/cpplex.c: Fixed _WIN32 problem with CR-CR-LF sequences
4766           when outputting comment blocks (when executed with -C option) and
4767           _asm (SDCPP specific) blocks
4768
4769 2003-10-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4770
4771         * as/hc08/lkrloc.c (relr): Fixed ihx output, fixed lastAreaIndex warning
4772
4773 2003-10-31 Klaus Flittner <klaus_flittner AT gmx.de>
4774
4775         * src/SDCCcse.c (updateSpillLocation): fixed bug #808027
4776
4777 2003-10-31 Bernhard Held <bernhard AT bernhardheld.de>
4778
4779         * src/SDCCmain.c (linkEdit): "fixed" bug #833605
4780         * src/SDCCast.c (decorateType): fixed bug #832664
4781
4782 2003-10-31  Borut Razem <borut.razem AT siol.net>
4783
4784         * support\cpp2\cpplex.c: fixed for SDCPP:
4785           comments(when executed with -C option) and _asm blocks
4786           were included even if they where in skipped #if block.
4787           Applied solution from GCC cpp 3.3.2
4788
4789 2003-10-31  Borut Razem <borut.razem AT siol.net>
4790
4791         * src/SDCC.lex: sdcc now understands both formats:
4792           '# <line_number> <file_name>' and
4793           '#line <line_number> <file_name>'
4794         * support/cpp2/cppmain.c: sdcpp now generates the standard
4795           '# <line_number> <file_name>' instead of former
4796           '#line <line_number> <file_name>'
4797
4798 2003-10-30  Borut Razem <borut.razem AT siol.net>
4799
4800         * support/cpp2/cpphash.h,
4801         * support/cpp2/cpplib.h
4802         * support/cpp2/cpplex.c,
4803         * support/cpp2/cppmain.c,
4804         * support/cpp2/cppinit.c: fixed bug #828015 - Syntax variation for _asm character constants
4805
4806 2003-10-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4807
4808         Fixed a number of problems revealed by bug #827883.
4809         * src/SDCCloop.c (loopInvariants): Spill location of the
4810         result operand should be recomputed if extracted from
4811         a loop. Also, don't extract assignments of an iTemp
4812         from a literal.
4813         * src/SDCCast.c (isConformingBody): loop reversal should
4814         not occur if the control variable is involved with a
4815         relational operator.
4816
4817 2003-10-28 Bernhard Held <bernhard AT bernhardheld.de>
4818
4819         * .version: bumped to 2.3.6 to reflect the big improvements
4820         made by Erik and Klaus. Thanks!
4821
4822 2003-10-28 Klaus Flittner <klaus_flittner AT gmx.de>
4823
4824         Replaced the livrange code.
4825         * src/SDCClrange.c: added new LR code
4826         * src/SDCCloop.c,
4827         * src/SDCCBBlock.h: removed remainig parts from old LR code
4828         * src/ds390/ralloc.c,
4829         * src/ds390/gen.c: minor fixes to make it work with new code
4830
4831 2003-10-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4832
4833         * as/hc08/asm.h,
4834         * as/hc08/lkrloc.c,
4835         * src/hc08/gen.c,
4836         * src/hc08/ralloc.c: Fix various warnings related to the hc08
4837         * src/SDCCicode.c (geniCodePreInc, geniCodePreDec): Fixed bug #829717
4838         (tweaked fix for bug #818696)
4839
4840 2003-10-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4841
4842         * src/z80/ralloc.c (joinPushes): Fixed bug #828742
4843
4844 2003-10-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4845
4846         * src/SDCCmain.c,
4847         * sdccconf_in.h: Fixed bug #828387 (--disable-hc08-port didn't work)
4848         * src/mcs51/gen.c (gencjneshort),
4849         * src/ds390/gen.c (gencjneshort): Made comparison with AOP_IMMD operand
4850         more efficient (per Scott Bronson's suggestion)
4851
4852 2003-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4853
4854         Extended the semantics of the critical keyword to include
4855         individual statements. See RFE #827755 and #799831
4856         * src/SDCC.y
4857         * src/SDCCicode.c
4858         * src/SDCCopt.c
4859         * src/SDCCast.c
4860         * support/Util/SDCCerr.c
4861         * support/Util/SDCCerr.h
4862         * src/mcs51/gen.c
4863         * src/ds390/gen.c
4864         * src/hc08/gen.c
4865
4866 2003-10-19  Borut Razem <borut.razem AT siol.net>
4867
4868         * src/SDCC.lex: fixed bug #825944 - defined yytext_ptr to make it compile with flex 2.5.31
4869
4870 2003-10-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4871
4872         * src/SDCCicode.c (geniCodePreInc, geniCodePreDec, ast2iCode):
4873         Fixed bug #818696
4874         * src/SDCCast.c (ast_print): Fixed --dumptree so that preincrement
4875         and predecrement operand is displayed
4876
4877 2003-10-13 Bernhard Held <bernhard AT bernhardheld.de>
4878
4879         * src/SDCCval.c (valMinus): fixed bug #826041
4880
4881 2003-10-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4882
4883         Some hc08 related updates that I missed earlier
4884         * sim/ucsim/stypes.h
4885         * support/regression/ports/hc08/spec.mk
4886
4887 2003-10-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4888
4889         New target "hc08" for the Motorola 68hc08 family of micros
4890
4891         * configure
4892         * configure.in
4893         * Makefile
4894         * src/hc08/*
4895         * src/SDCCmain.c
4896         * src/port.h
4897         * sim/ucsim/hc08.src/*
4898         * sim/ucsim/configure.in
4899         * src/ucsim/configure
4900         * sim/ucsim/packages_in.mk
4901         * as/hc08/*
4902         * as/Makefile
4903         * device/include/mc68hc908qy.h
4904         * device/lib/hc08/*
4905         * device/lib/Makefile.in
4906         * support/regression/ports/hc08/*
4907         * support/regression/Makefile
4908
4909 2003-10-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4910
4911         * src/z80/gen.c: fixed bug revealed by ast_constant_folding.c
4912         regression test
4913         * src/ds390/gen.c (genCast): fixed bug #821957
4914
4915 2003-10-13 Bernhard Held <bernhard AT bernhardheld.de>
4916
4917         * device/lib/logf.c: "fixed" overlay bug
4918         * support/regression/ports/host/spec.mk: added m library
4919         * support/regression/ports/mcs51-stack-auto/spec.mk: added float funcs
4920         * support/regression/tests/float_trans: added (for Eric)
4921
4922 2003-10-12 Bernhard Held <bernhard AT bernhardheld.de>
4923
4924         * src/mcs51/gen.c (genCpl): fixed bug
4925         http://sf.net/mailarchive/message.php?msg_id=6263915
4926
4927 2003-10-10 Bernhard Held <bernhard AT bernhardheld.de>
4928
4929         * src/SDCCast.c (decorateType): added extended constant folding
4930         * src/SDCCsymt.c (computeType): cleanup
4931         * src/SDCCval.c (valShift): minor optimization
4932         * support/regression/tests/ast_constant_folding.c: added
4933
4934 2003-10-09  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4935
4936         * src/SDCCmain.c: removed some unintended changes
4937
4938 2003-10-09  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4939
4940         * src/SDCCmain.c (setParseWithComma): fixed bug #816685
4941         * src/z80/gen.c: fixed part of bug #817589
4942         * src/SDCCsymt.c (checkFunction): fixed bug #817895
4943
4944 2003-10-08 Bernhard Held <bernhard AT bernhardheld.de>
4945
4946         Replaced cast (void **) with (void *) to avoid gcc 3 warning:
4947         * src/SDCCcflow.c
4948         * src/SDCCcse.c
4949         * src/SDCCdflow.c
4950         * src/SDCClabel.c
4951         * src/SDCClrange.c
4952         * src/SDCCmem.c
4953         * src/SDCCopt.c
4954         * src/SDCCpeeph.c
4955         * src/SDCCset.c
4956         * src/avr/ralloc.c
4957         * src/ds390/ralloc.c
4958         * src/izt/ralloc.c
4959         * src/mcs51/ralloc.c
4960         * src/pic/ralloc.c
4961         * src/pic16/ralloc.c
4962         * src/xa51/ralloc.c
4963         * src/z80/ralloc.c
4964         * src/z80/gen.c: removed unused label "release:"
4965
4966 2003-10-06  Borut Razem <borut.razem AT siol.net>
4967
4968         * src/SDCC.lex: removed definition of unused variables
4969           save_optimize and save_options
4970
4971 2003-10-06 Bernhard Held <bernhard AT bernhardheld.de>
4972
4973         * clean.mk: removed '=' in "-maxdepth=1"
4974         * src/SDCCloop.c: replace LRKLAUS with SDCC_LRKLAUS
4975         * src/SDCClrange.c: replace LRKLAUS with SDCC_LRKLAUS
4976
4977 2003-10-06  Borut Razem <borut.razem AT siol.net>
4978
4979         * src/SDCC.lex, src/SDCC.lex: use dbuf for "_asm" definitions;
4980           my_unput() replaced by unput()
4981
4982 2003-10-05 Bernhard Held <bernhard AT bernhardheld.de>
4983
4984         * src/SDCCloop.c (assignmentsToSym, loopInduction): cast argument of
4985         setToNull() to (void *) to avoid gcc3.x's warning: "dereferencing
4986         type-punned pointer will break strict-aliasing rules"
4987         Old LR behaviour is again default; Klaus' LR can be choosen by
4988         defining the environment variable LRKLAUS
4989         * src/SDCCBBlock.h
4990         * src/SDCCloop.c
4991         * src/SDCClrange.c
4992         * src/ds390/ralloc.c (spillThis): applied Klaus' patch
4993         * clean.mk: fixed removal of files in bin/CVS/
4994         * device/lib/clean.mk: fixed removal of directories small and large
4995         * support/Util/SDCCerr.c: changed W_INT_OVL to ERROR_LEVEL_PEDANTIC
4996         * src/SDCCicode.c,
4997         * src/SDCCval.c: removed superflous test for pedantic
4998
4999 2003-10-05  Borut Razem <borut.razem AT siol.net>
5000
5001         * src/SDCC.lex, support/Util/SDCCerr.c, sdcc/support/Util/SDCCerr.h:
5002           Fixed bug #816692: introduced new ERROR_LEVEL_PEDANTIC warning
5003           message "unmatched #pragma SAVE and #pragma RESTORE"
5004
5005 2003-10-04  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5006
5007         * doc/sdccman.lyx: various additions and updates (interrupts, inline
5008           assembly, critical functions, atomic, nojtbound)
5009
5010 2003-10-04 Bernhard Held <bernhard AT bernhardheld.de>
5011
5012         Applied liferange patch from Klaus Flittner <klaus_flittner AT gmx.de>
5013         * src/SDCCBBlock.h
5014         * src/SDCCloop.c
5015         * src/SDCCloop.h
5016         * src/SDCClrange.c
5017
5018 2003-10-03  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5019
5020         * src/z80/gen.h,
5021         * src/z80/gen.c (aopOp, aopGet, aopPut, genDummyRead),
5022         * src/mcs51/gen.h
5023         * src/mcs51/gen.c (aopOp, aopGet, aopPut, genDummyRead),
5024         * src/ds390/gen.h
5025         * src/ds390/gen.c (aopOp, aopGet, aopPut, genDummyRead),
5026         * src/SDCCicode.c (ast2iCode, geniCodeDummyRead): Fixed bug #663539
5027         * src/SDCCopt.c (killDeadCode): Fixed bugs #663539 & #816705
5028
5029 2003-10-02  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5030
5031         * src/z80/gen.c (genRet): fixed bug #524753
5032         * src/z80/gen.c (genCast): fixed internal error on cast from
5033         pointer to long
5034         * src/z80/gen.c (_saveRegsForCall, emitCall): adapted Johan's
5035         fix for bug #477835 to the z80
5036         * src/z80/gen.c (genZ80code, _vemit2, _emit2): added support
5037         for tracking iCodes in the peephole optimizer for z80
5038
5039 2003-10-01  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5040
5041         * src/SDCCicode.c (geniCodeJumpTable, geniCodeSwitch): fixed
5042         the other part of bug #814548
5043         * src/SDCCpeeph.c (labelInRange): fixed bug #814558
5044
5045 2003-09-30  Bernhard Held <bernhard AT bernhardheld.de>
5046
5047         * src/SDCCcse.c: fixed part of bug #814548
5048
5049 2003-09-28  Borut Razem <borut.razem AT siol.net>
5050
5051         * src/asm.c: rewrite of printILine() to use temporary file instead
5052           a pipe
5053         * src/xa51/main.c: commented out declaration of int rewinds
5054
5055 2003-09-27  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5056
5057         * src/SDCCicode.c (geniCodeJumpTable): Fixed bug #813206
5058
5059 2003-09-26  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5060
5061         * src/SDCCdflow.c (computeDataFlow): Fixed bug #810746
5062         * src/asm.c (printILine): Fixed bug #811015
5063
5064 2003-09-22  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5065
5066         *link/z80/lklibr.c, as/mcs51/lklibr.c: Improved memory allocation and
5067         freeing.
5068
5069 2003-09-21  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5070
5071         * src/z80/gen.c (setupToPreserveCarry): Fixed bug #796955
5072         * src/z80/gen.c (setupPair, genMovePairPair): Fixed setupPair
5073         to correctly handle general case of AOP_PAIRPTR
5074         * src/z80/gen.c (aopGet, aopPut): Generalized AOP_PAIRPTR handling
5075
5076 2003-09-21  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5077
5078         * src/mcs51/ralloc.c (fillGaps),
5079         * src/ds390/ralloc.c (fillGaps): fixed bug #810093 (yet another
5080         register positioning bug)
5081
5082 2003-09-21  Bernhard Held <bernhard AT bernhardheld.de>
5083
5084         * device/lib/_fsdiv.c: replaced (1<<31) by (1ul<<31)
5085
5086 2003-09-19  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5087
5088         * src/mcs51/gen.c (loadDptrFromOperand, genFarPointerGet,
5089         genCodePointerGet, genGenPointerGet, genFarPointerSet,
5090         genGenPointerSet): handle AOP_DPTR correctly when loading dptr
5091         (ralloc doesn't intentionally do this now, but perhaps later)
5092         * src/mcs51/ralloc.c (serialRegAssign, fillGaps),
5093         * src/ds390/ralloc.c (serialRegAssign, fillGaps): fixed some
5094         register positioning bugs (Fixed bug #762602 and #795325)
5095         * src/SDCCicode.c (geniCodeDerefPtr): Track output class correctly
5096         (Fixed bug #808779)
5097         * src/z80/gen.c: increased _vemit2's buffer[] to handle long
5098         lines that --i-code-in-asm generates
5099
5100 2003-09-18  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5101
5102         *link/z80/lklibr.c, as/mcs51/lklibr.c: Fixed Linux segfaults when
5103         trying to fclose a FILE* that was already closed.
5104
5105 2003-09-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5106
5107         * src/SDCCsymt.c (structElemType): fixed bug #808291 (members
5108         of const struct should be treated as if const themselves)
5109
5110 2003-09-18  Bernhard Held <bernhard AT bernhardheld.de>
5111
5112         * src/SDCCval.c (valPlus, valMinus): fixed bug #808337
5113
5114 2003-07-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5115
5116         * support/librarian/sdcclib.c: Generate correct offsets for libraries with
5117         Unix (/n) and DOS (/r/n) line terminations.
5118
5119 2003-09-17  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5120
5121         * src/SDCCopt.c (cnvFromFloatCast, cnvToFloatCast): fixed
5122         bug #613775
5123
5124 2003-09-16  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5125
5126         * src/mcs51/gen.c (genFunction, genEndFunction),
5127         * src/ds390/gen.c (genFunction, genEndFunction): Moved save
5128         and restore of EA so that stack offsets to parameters are
5129         correct when using both critical and reentrant/stack-auto.
5130         * src/z80/gen.c (aopOp): removed erroneous assertion about sloc
5131         size (can be triggered in error if sloc is shared between
5132         different sized objects)
5133         * device/include/float.h: fixed macros to explicitly use
5134         unsigned long where needed
5135
5136 2003-09-15  Bernhard Held <bernhard AT bernhardheld.de>
5137
5138         Feature req. 799831: added code to allow nesting of critical functions
5139         * src/mcs51/gen.c (genFunction, genEndFunction)
5140         * src/ds390/gen.c (genFunction, genEndFunction)
5141
5142 2003-09-14  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5143
5144         * src/SDCCsymt.c (sclsFromPtr),
5145         * src/SDCCsymt.h,
5146         * src/SDCCast.c (decorateType): fixed bug #462971. Also, better
5147         support for standard C idiom of memory mapped variables; for
5148         example, *((xdata int*)0x1234) = 1 is now internally equivalent
5149         to xdata int at 0x1234 tempvar = 1.
5150         * sim/ucsim/z80.src/inst_xd.cc: fixed bug #805483 with patch
5151         provided by Akiya ISHIDA
5152
5153 2003-09-13  Bernhard Held <bernhard AT bernhardheld.de>
5154
5155         * src/SDCCval.c (cheapestVal): reenabled to reduce int to char
5156         * src/SDCCval.c (constVal): added reduction from int to char
5157         * src/SDCCval.c (valMult, valDiv): fixed sign handling
5158         * src/SDCCval.c (valShift): fixed after change of cheapestVal()
5159         * src/SDCCval.c (valCompare): fixed EQ_OP and NE_OP; they have
5160         to ignore the sign
5161         * support/regression/tests/shifts.c: fixed
5162
5163 2003-09-13  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5164
5165         * src/z80/gen.c (genXor): Fixed bug #805445
5166
5167 2003-09-12  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5168
5169         Fixed bug #621531 (const & volatile confusion in the type chain).
5170         DCL_PTR_CONST, DCL_PTR_VOLATILE, & IS_PTR_CONST now exclusively
5171         refer to the const or volatile state of the pointer itself.
5172
5173         * src/SDCCast.c
5174         * src/SDCCglue.c
5175         * src/SDCCicode.c
5176         * src/SDCCsymt.c
5177         * src/SDCCval.c
5178         * src/SDCC.y
5179         * src/SDCCsymt.h
5180         * src/pic/gen.c
5181         * src/pic/ralloc.c
5182         * src/pic16/gen.c
5183         * src/pic16/ralloc.c
5184         * support/regression/tests/const.c
5185
5186 2003-09-10  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5187
5188         When checking for duplicated modules, use absolute paths
5189         instead of relative paths.  Files changed:
5190
5191         * as/mcs51/lklib.c
5192         * link/z80/lklib.c
5193
5194 2003-09-09  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5195
5196         * src/SDCCicode.c (geniCodeLogic): fixed bug #797572
5197
5198 2003-09-07  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5199
5200         * device/include/string.h: added size_t typedef, changed
5201         prototypes to use size_t, eliminated separate reentrant and
5202         non-reentrant declarations, added _memmove declaration
5203         * device/lib/_memcpy.c: changed to use size_t instead of int,
5204         changed /4 to >>2 to avoid division library call
5205         * device/lib/_memcmp.c,
5206         * device/lib/_memset.c,
5207         * device/lib/_strncat.c,
5208         * device/lib/_strncpy.c,
5209         * device/lib/_strncmp.c: changed to use size_t instead of int
5210         * device/lib/_memmove.c: new file (fixed bug #772294)
5211         * device/lib/Makefile.in: added _memmove.c
5212         * device/lib/z80/asm_strings.s: fixed bug #772290
5213         * support/regression/tests/bitfields.c: attempt to fix host assertion
5214         failure on amd64-unknown-linux2.2
5215
5216 2003-09-06  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5217
5218         * src/z80/gen.c (aopPut, spillPairReg): fixed bug #800998
5219         * src/z80/gen.c (genFunction, genEndFunction): fixed "bug" #774700
5220         * as/z80/asmain.c (main): fixed bug #801766
5221
5222 2003-09-06  Bernhard Held <bernhard AT bernhardheld.de>
5223
5224         * src/SDCCicode.c (ast2iCode): fixed differences in iCode with different
5225         compilers
5226
5227 2003-09-05  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5228
5229         * src/SDCCast.c (isConformingBody): fixed loop reversal bug
5230         reported in bug #800609
5231
5232 2003-09-04  Vangelis Rokas <vrokas AT otenet.gr>
5233
5234         * Top header beautifications in src/pic16 directory:
5235           device.c, device.h, gen.c, gen.h, genarith.c, glue.c, pcode.c,
5236           pcodeflow.c, pcodeflow.h, pcode.h, pcodepeep.c, pcoderegs.c,
5237           pcoderegs.h, ralloc.c, ralloc.h
5238         * main.c: added top header and GPL license notice
5239         * pcode.c: fixed the if-conditional warning
5240
5241 2003-09-04  Bernhard Held <bernhard AT bernhardheld.de>
5242
5243         * device/lib/_mullong.c: replaced int by short for gcc
5244
5245 2003-08-31  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5246
5247         * src/SDCCpeeph.c (notVolatile, notVolatileVariable): handle IFX
5248         and JUMPTABLE iCodes properly now (worked by accident before)
5249         * src/mcs51/gen.c (leftRightUseAcc),
5250         * src/ds390/gen.c (leftRightUseAcc): handle IFX and JUMPTABLE
5251         iCode properly now. Use getSize instead of nRegs since a & b
5252         aren't part of the nRegs tally.
5253
5254 2003-08-31  Vangelis Rokas <vrokas AT otenet.gr>
5255
5256         * src/pic16/main.c: corrected offsets of interrupt vectors in _pic16_genIVT()
5257         * src/pic16/pcode.c: fix to disable inserting BANKSEL directive
5258           before instructions that use the _STATUS register
5259
5260 2003-08-31  Bernhard Held <bernhard AT bernhardheld.de>
5261
5262         * src/mcs51/gen.c (freeAsmop): fixed off by one in stack offset (AOP_STK)
5263         * src/mcs51/gen.c (genNearPointerSet): added missing opcode for
5264         fetching of the pointer
5265         * src/mcs51/gen.c (genNearPointerGet): added reuse of PREG,
5266         copied from genNearPointerSet()
5267         * src/mcs51/gen.c (genNearPointerGet): don't pop r0/r1, if RESULTONSTACK
5268         * src/mcs51/gen.c: changed order of freeAsmop(left/right/result)-calls.
5269         If they pop r0/r1 they must be called in the opposite order than aopOp().
5270         * device/lib/_mullong.c: fixed for "--model-large --int-long-reent"
5271         (resp. --stack-auto), prepared for --xstack
5272
5273 2003-08-28  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5274
5275         * doc/sdccman.lyx: reverted tables to those in cvs 1.64
5276
5277 2003-08-28  Bernhard Held <bernhard AT bernhardheld.de>
5278
5279         * device/lib/_startup.c: quick & dirty fix for ds390/ds400;
5280         these ports have their own __sdcc_external_start()
5281
5282 2003-08-26  Bernhard Held <bernhard AT bernhardheld.de>
5283
5284         pic patch provided by Slade Rich <slade_rich AT yahoo.com>
5285         * src/pic/glue.c (pic14printPublics): fixed bug introduced when symbol
5286         type for bits was changed. It resulted in bit variables becoming
5287         global, which is not permitted in PIC 14 assembly output.
5288
5289 2003-08-23  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5290
5291         * doc/sdccman.lyx: various additions and updates. Rearranged sections
5292
5293 2003-08-22  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5294
5295         Z80 and MCS51 linkers complaint if a public symbol is defined
5296         in more than one library module:
5297
5298         * as/mcs51/lklib.c
5299         * link/z80/lklib.c
5300         * as/mcs51/Makefile.in
5301
5302 2003-08-22  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5303
5304         A few small changes that speed up the peephole optimizer.
5305
5306         * src/SDCCpeeph.c
5307
5308 2003-08-22  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5309
5310         Try to make the peephole optimizer smarter by maintaining
5311         an association between the assembly source code and the
5312         iCodes that originated them. Put this information to use
5313         with a new peephole rule condition "notVolatile" so that
5314         the rules can be aggressive yet still safe.
5315
5316         * src/SDCCpeeph.c
5317         * src/SDCCpeeph.h
5318         * src/mcs51/gen.c
5319         * src/mcs51/peeph.def
5320
5321 2003-08-20  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5322
5323         Fixed bug #741761
5324
5325         * src/mcs51/gen.c (aopForSym, leftRightUseAcc),
5326         * src/ds390/gen.c (aopForSym, leftRightUseAcc): preserve A and B
5327         if the left or right operand symbols have the accuse flag set.
5328
5329 2003-08-20  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5330
5331         Changed the type of the result of the ! (NOT) operator to char;
5332         previously it returned the same type as the source. This allows
5333         us to eliminate all the genFloatNot functions (all of its target
5334         implementations were very buggy) since !float can use the same
5335         code as !long now.
5336
5337         * src/SDCCicode.c (ast2iCode): ! returns char
5338         * src/mcs51/gen.c (genNot, genNotFloat),
5339         * src/ds390/gen.c (genNot, genNotFloat),
5340         * src/z80/gen.c (genNot, genNotFloat),
5341         * src/pic/gen.c (genNot, genNotFloat),
5342         * src/pic16/gen.c (genNot, genNotFloat): eliminated genNotFloat
5343
5344 2003-08-19  Bernhard Held <bernhard AT bernhardheld.de>
5345
5346         pic patch provided by Slade Rich <slade_rich AT yahoo.com>
5347         1. Interrupt would not compile properly. Ensure PCLATH register is saved
5348            during interrupts. Ensure WSAVE is located at a shared bank address.
5349         2. Fixed page selection in some places
5350         3. Fixed BTFSS/C to where necessary use registers directly and not simply
5351            the registers name strings.
5352         4. Fixed "signed / unsigned compare" compiler warnings.
5353         5. The PIC port manages its own allocation of the general purpose
5354            registers, but makes no attempt to reuse them. As a result when
5355            compiling it soon runs out of general purpose registers. Some
5356            additional code was added to the files pcode.c and device.c to walk
5357            through the function call tree and rename the registers so that they
5358            get reused.
5359
5360         * src/pic/device.c
5361         * src/pic/gen.c
5362         * src/pic/glue.c
5363         * src/pic/pcode.c
5364         * src/pic/pcode.h
5365         * src/pic/ralloc.c
5366         * src/pic/ralloc.h
5367         * src/pic/genarith.c: Fixed problems with PIC 14 port in functions
5368         genPlus() & genMinus() when the result is the same as left or right
5369
5370 2003-08-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5371
5372         * src/z80/gen.c (isUnsplitable, fetchPairLong): fixed bug #770454
5373
5374 2003-08-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5375
5376         Made bitfield a distinct type from bit so that bitfields
5377         convert as per ANSI C and bits retain their traditional
5378         boolean style behaviour. Implemented bitfield support in
5379         the z80 port.
5380
5381         * src/SDCCsymt.h,
5382         * src/SDCCsymt.c,
5383         * src/SDCCast.c,
5384         * src/cdbFile.c,
5385         * src/mcs51/gen.c,
5386         * src/ds390/gen.c: bit v bitfield split
5387         * src/z80/gen.c: New support for bitfields
5388         * support/regression/tests/bitfields.c: reenabled z80,
5389         added more tests
5390
5391 2003-08-17  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5392
5393         Rules 246.x, 247.x relate to bitfields, the others speed up
5394         access to xdata mapped I/O devices.
5395
5396         * src/mcs51/peeph.def: added 26 peepholes 246.x - 248.x, 180.x
5397
5398 2003-08-16  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5399
5400         Cleaned up genPackBits and genUnpackBits and added two helper
5401         functions, emitPtrByteGet & emitPtrByteSet. Added optimizations
5402         for literal assignments in genPackBits (thanks to Frieder for
5403         reminding me).
5404
5405         * src/mcs51/gen.c
5406         * src/ds390/gen.c
5407
5408 2003-08-16  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5409
5410         Fixed bug #748310 (pointer to function type mishandled when the
5411         function name is omitted). Also fixed a SIGSEGV when a function
5412         attribute (reentrant, etc) is used on a non-function or on a
5413         function but misplaced before the parameter list.
5414
5415         * src/SDCC.y (abstract_declarator, abstract_declaractor2): fixed
5416         bug #748310
5417         * src/SDCC.y (declarator2_function_attributes): avoided SIGSEGV
5418         * support/Util/SDCCerr.h,
5419         * support/Util/SDCCerr.c: Added func attr misuse error msg
5420
5421 2003-08-13  Bernhard Held <bernhard AT bernhardheld.de>
5422
5423         Fixed bug #787649 by anonymous
5424         * src/SDCCglue.c (emitRegularMap): added emission of sloc for func ptr
5425         * src/ds390/gen.c (aopForSym): fixed func ptr in sloc
5426
5427 2003-08-14  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5428
5429         Fixed numerous bitfield problems.
5430
5431         * src/SDCC.y: More bitfield related error checking
5432         * src/SDCCsymt.h,
5433         * src/SDCCsymt.c (compStructSize): fixed bitfield offset calc
5434         * support/Util/SDCCerr.h,
5435         * support/Util/SDCCerr.c: Added & edited some bitfield err msgs
5436         * src/mcs51/gen.c (genPackBits, genUnpackBits): fixed mask bugs
5437         * src/ds390/gen.c (genPackBits, genUnpackBits): fixed mask bugs
5438         * support/regression/tests/bitfields.c: tests added
5439
5440 2003-08-13  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5441
5442         Made the constant following the "interrupt" keyword optional. If
5443         omitted, the function will not automatically be given an entry
5444         in the interrupt vector table (similar to #pragma NOIV, but
5445         less syntacticly kludgy). The interrupt number is also now
5446         range checked. Also fixed a bug in the high order bit example
5447         in the manual.
5448
5449         * src/SDCC.y
5450         * src/SDCCmem.c
5451         * src/SDCCglue.c
5452         * src/SDCCsymt.h
5453         * support/Util/SDCCerr.c
5454         * support/Util/SDCCerr.h
5455         * doc/sdccman.lyx
5456
5457 2003-08-13  Bernhard Held <bernhard AT bernhardheld.de>
5458
5459         * src/SDCCcse.c (algebraicOpts): fix bug converting op from value to type
5460         * src/SDCCicode.c (operandOperation): rewritten some ops
5461         (*, ==, unary_minus) to fix possible overflows and to accord with ANSI
5462         * src/SDCCsymt.c (computeType): literals are handled the same way as any
5463         other type
5464         * src/SDCCval.c (cheapestVal): removed, it doesn't accord with ANSI (can
5465         be re-activated by defining REDUCE_LITERALS)
5466         * src/SDCCval.c (constVal): fixed; hex and octal constants can be
5467         unsigned, but are signed by default
5468         * src/SDCCval.c (constVal): rearranged
5469         * src/SDCCval.c (valMod): preliminary fix
5470         * src/SDCCval.c (valCastLiteral): use TYPE_* types
5471         * support/regression/literalop.c: added, work in progress
5472
5473 2003-08-12  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5474
5475         Generate warnings for useless declarations like "char data;"
5476         that don't do what new users expect.
5477
5478         * src/SDCC.y
5479         * support/Util/SDCCerr.h
5480         * support/Util/SDCCerr.c
5481
5482 2003-08-09  Bernhard Held <bernhard AT bernhardheld.de>
5483
5484         * src/SDCCval.c (valMult): fix overflow detection of negative int
5485
5486 2003-08-07  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5487
5488         * src/z80/ralloc.c (joinPushes): made compatible with new signedness
5489
5490         Changes to support big endian targets:
5491
5492         * src/ports.h
5493         * src/SDCCglue.c
5494         * src/avr/main.c
5495         * src/ds390/main.c
5496         * src/izt/i186.c
5497         * src/mcs51/main.c
5498         * src/pic/main.c
5499         * src/pic16/main.c
5500         * src/xa51/main.c
5501         * src/z80/main.c
5502
5503 2003-08-06  Bernhard Held <bernhard AT bernhardheld.de>
5504
5505         * src/SDCCval.c (cheapestVal): changed behaviour to the same as constVal()
5506         * device/lib/time.c: fixed warning "integer overflow in expression"
5507
5508 2003-08-05  Bernhard Held <bernhard AT bernhardheld.de>
5509
5510         * src/SDCCval.c (cheapestVal, valueFromLit): use TYPE_* types
5511         * src/SDCCval.c (constVal): changed default to signed; hex and octal
5512         constants are unsigned; added recognition of "u" flag for unsigned
5513         * src/SDCCval.c (valMult): fixed signdness, added warning for overflow
5514         * src/SDCCval.c (valDiv, valMod): fixed signdness
5515         * src/SDCCicode.c (operandOperation): fixed critical typo; fixed
5516         signedness of modulo, left and right shift
5517         * support/Util/SDCCerr.c: added warning "integer overflow in expression"
5518         * support/Util/SDCCerr.h: added warning W_INT_OVL
5519         * src/SDCCast.c (decorateType): fixed gcc3.3 warning
5520         * src/SDCCast.c (ast_print): improved output of constants
5521
5522 2003-08-04  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5523
5524         Fixed some warnings when building with MSVC:
5525
5526         * as\mcs51\asdata.c
5527         * as\z80\asdata.c
5528         * as\mcs51\asm.h
5529         * as\z80\asm.h
5530         * link\z80\aslink.h
5531         * link\z80\lkdata.c
5532         * link\z80\lkeval.c
5533         * link\z80\lkgb.c
5534         * link\z80\lkihx.c
5535         * link\z80\lks19.c
5536         * link\z80\lksym.c
5537         * support\cpp2\cpplib.c
5538         * src\ds390\gen.c
5539         * src\mcs51\gen.c
5540
5541 2003-08-03  Bernhard Held <bernhard AT bernhardheld.de>
5542
5543         * src/SDCCast.c (constExprTree): fix bug #781827 by Carl Worth <cworth AT isi.edu>
5544
5545 2003-08-01  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5546
5547         * support\librarian\clean.mk: Do not remove Makefile.
5548         * support\librarian\Makefile: added.
5549
5550 2003-08-01  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5551
5552         Added librarian to MSVC build:
5553         * all.dsp
5554         * sdcc.dsw
5555         * support\librarian\librarian.dsp
5556
5557         'configure' not needed for librarian, removed:
5558         * support\librarian\configure
5559         * support\librarian\configure.in
5560         * support\librarian\config_in.h
5561         * support\librarian\Makefile.in
5562
5563         Hopefully these ones built the librarian and the rest of sdcc properly:
5564         * Makefile
5565         * Makefile.common.in
5566
5567         Messed up 'configure', so revert to previous version:
5568         * configure
5569         * configure.in
5570
5571 2003-07-31  Bernhard Held <bernhard AT bernhardheld.de>
5572
5573         * src/SDCCicode.c (operandOperation): 3. fix, this time for Alpha; ULONG has 64 bits
5574         there, while the mantissa of a double is "only" 53 bits wide.
5575
5576 2003-07-31  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5577
5578         Adding sdcclib to the build.  MSVC project coming soon.
5579         Files added/changed:
5580
5581         * support\librarian\clean.mk
5582         * support\librarian\configure
5583         * support\librarian\configure.in
5584         * support\librarian\config_in.h
5585         * support\librarian\Makefile.bcc
5586         * support\librarian\Makefile.in
5587         * support\librarian\sdcclib.c
5588         * Makefile.bcc
5589         * Makefile
5590         * Makefile.common.in
5591         * configure
5592         * configure.in
5593
5594 2003-07-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5595
5596         Linker now complaints if linked modules have conflicting options, for
5597         example, one compiled using --model-large and another one compiled with
5598         --model-small.  The following files were modified:
5599
5600         * as\mcs51\asdata.c
5601         * as\mcs51\aslink.h
5602         * as\mcs51\asm.h
5603         * as\mcs51\asmain.c
5604         * as\mcs51\asout.c
5605         * as\mcs51\i51pst.c
5606         * as\mcs51\lkdata.c
5607         * as\mcs51\lklibr.c
5608         * as\mcs51\lkmain.c
5609         * as\z80\asdata.c
5610         * as\z80\asm.h
5611         * as\z80\asmain.c
5612         * as\z80\asout.c
5613         * as\z80\z80pst.c
5614         * link\z80\aslink.h
5615         * link\z80\lkdata.c
5616         * link\z80\lklibr.c
5617         * link\z80\lkmain.c
5618         * src\SDCCglue.c
5619
5620 2003-07-28  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5621
5622         *link/z80/aslink.h, link/z80/lklibr.c, as/mcs51/aslink.h,
5623         as/mcs51/lklibr.c: Generate a warning when a library is not found.
5624
5625 2003-07-28  Bernhard Held <bernhard AT bernhardheld.de>
5626
5627         * src/z80/mappings.i: fix _mul[us][int,long] entries
5628
5629 2003-07-26  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5630
5631         *src/SDCCmain.c: do not search for crt0.o when using --nostdlib
5632
5633 2003-07-24  Bernhard Held <bernhard AT bernhardheld.de>
5634
5635         * src/SDCCicode.c (operandOperation): really fixed problem with bitops
5636         * support/regression/tests/bitopcse.c: added
5637         fixed warning:
5638         * src/avr/gen.c:
5639         * src/pic/gen.c:
5640         * src/pic16/gen.c:
5641         * src/z80/gen.c:
5642         * src/xa51/gen.c:
5643
5644 2003-07-24  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5645
5646         added support for new library format to z80, gbz80 linkers:
5647         *link/z80/aslink.h
5648         *link/z80/lklex.c
5649         *link/z80/lklib.c
5650         *link/z80/lklist.c
5651
5652 2003-07-24  Bernhard Held <bernhard AT bernhardheld.de>
5653
5654         * src/SDCCicode.c (operandOperation): fixed problem with bitops and 0xffffffff;
5655         after {double d = 0xffffffff; long l = d;} l will be 0x80000000 (LONG_MIN)
5656
5657 2003-07-23  Bernhard Held <bernhard AT bernhardheld.de>
5658
5659         added DUMMY_READ_VOLATILE:
5660         * src/SDCC.y:
5661         * src/avr/gen.c:
5662         * src/xa51/gen.c:
5663         * src/z80/gen.c:
5664         * src/pic/gen.c:
5665         * src/pic16/gen.c:
5666         * src/mcs51/gen.c:
5667         * src/ds390/gen.c:
5668         * src/SDCCcse.c (algebraicOpts): many improvements
5669         * src/SDCCcse.h: removed algebraicOpts()
5670         * src/SDCCicode.c (picDummyRead): added
5671
5672 2003-07-23  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5673
5674         * as/mcs51/lkmem.c: Changed message "Insufficient DRAM memory" to
5675         "Insufficient space in data memory".
5676
5677 2003-07-20  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5678
5679         * src/mcs51/gen.c: fixed bug #771358
5680         * src/z80/gen.c: fixed bug #759087
5681
5682 2003-07-20  Bernhard Held <bernhard AT bernhardheld.de>
5683
5684         * src/pic16/glue.c: minor cleanup by Vangelis
5685
5686 2003-07-19  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5687
5688         * device/include/regc515c.h: fixed #758477
5689         * device/lib/_gptrget.c: saving some cycles in generic pointer get
5690         * device/lib/_gptrput.c: saved a few bytes
5691         * my tab spacing is 8, yours too?)
5692         * device/lib/_ser.c: process RX bytes earlier than TX bytes
5693         * device/lib/serial.c: process RX bytes earlier than TX bytes
5694         * src/mcs51/gen.c(genGenPointerGet/Set): removed writing of type after postincrement
5695
5696 2003-07-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5697
5698         * src/z80/gen.c: fixed some right shift bugs (#772726 among them)
5699
5700 2003-07-17  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5701
5702     * link/z80/lklibr.c: fixed bug when there is a '.' in a library path.
5703
5704 2003-07-17  Bernhard Held <bernhard AT bernhardheld.de>
5705
5706         * device/lib/Makefile.in: bad fix, reverted to 1.43
5707
5708 2003-07-16  Bernhard Held <bernhard AT bernhardheld.de>
5709
5710         * device/lib/Makefile.in: added missing z80 object files
5711
5712 2003-07-14  Bernhard Held <bernhard AT bernhardheld.de>
5713
5714         * src/SDCCcse.c (algebraicOpts): CSE fun with &|^ and 0x00/0xff literals
5715         pic16 progress by Vangelis:
5716         * src/SDCCglobl.h:
5717         * src/SDCCmain.c:
5718         * src/pic/Makefile:
5719         * src/pic:
5720         * pic/Makefile:
5721         * pic16/device.c:
5722         * pic16/device.h:
5723         * pic16/gen.c:
5724         * pic16/gen.h:
5725         * pic16/genarith.c:
5726         * pic16/glue.c:
5727         * pic16/main.c:
5728         * pic16/pcode.c:
5729         * pic16/pcode.h:
5730         * pic16/pcodepeep.c:
5731         * pic16/peeph.def:
5732
5733 2003-07-13  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5734
5735     * src/SDCCmain.c, src/SDCCglobl.h: added option --no-std-crt0
5736
5737 2003-07-12  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5738
5739     * sdcc.dsw, all.dsp, link/z80/linkgbz80.dsp, as/z80/as-gbz80.dsp:
5740     added gbz80 build to MSVC project.
5741     * src/SDCCmain.c, src/SDCCglue.c, src/z80/main.c, src/z80/z80.dsp,
5742     link/z80/aslink.h, linkz80.dsp: cleaned up z80 and gbz80 asm files
5743     from 8051 stuff and setup so it links using a .lnk file.
5744
5745 2003-07-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5746
5747     * support/librarian/sdcclib.c: sdcc librarian.
5748     * as/mcs51/aslink.h, as/mcs51/lklib.c: Support for libraries created
5749     with sdcclib.
5750
5751 2003-07-03  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5752
5753     * as/mcs51/lkmain.c: properly handle extensions in function afile.
5754
5755 2003-07-02  Borut Razem <borut.razem AT siol.net>
5756
5757         * src/port.h, src/SDCCmain.c, src/pic/glue.h, src/pic/main.c,
5758         src/pic16/glue.h, sdcc/src/pic16/main.c, src/izt/i186.c,
5759         src/izt/tlcs900h.c, src/avr/main.c, src/ds390/main.c, src/mcs51/main.c,
5760         src/xa51/main.c, src/z80/main.c:
5761         virtualization of glue() function: each port has it's own glue function,
5762         which is accessed by do_glue function pointer in PORT.general structure
5763
5764 2003-07-01 Kevin Vigor <kevin AT vigor.nu>
5765
5766         * DS800C400 fun, improved ROM interface and tinibios.
5767
5768 2003-06-27 Kevin Vigor <kevin AT vigor.nu>
5769
5770         * More support for DS80C400. Now includes beginning of interface to ROM.
5771
5772 2003-06-25  Bernhard Held <bernhard AT bernhardheld.de>
5773
5774         * src/mcs51/gen.c (gencjneshort): fixed bug #760345
5775
5776 2003-06-20  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5777
5778         * as/mcs51/lkaomf51.c: Make sure the size of the last procedure is correct.
5779
5780 2003-06-19  Borut Razem <borut.razem AT siol.net>
5781
5782         * src/z80/main.c: fixed Z80 port again: missing -k library paths in linker command line
5783
5784 2003-06-19  Borut Razem <borut.razem AT siol.net>
5785
5786         * src/SDCCutil.h, src/SDCCutil.c, src/SDCCglobl.h, src/SDCCmain.c, src/z80/main.c:
5787         fixed Z80 port - crt0.o: cannot open.
5788
5789 2003-06-19  Bernhard Held <bernhard AT bernhardheld.de>
5790
5791         * support/Util/MySystem.c (merge_command): revert bad fix
5792
5793 2003-06-18  Borut Razem <borut.razem AT siol.net>
5794
5795         * src/SDCC.lex, src/SDCCmain.c: fixed some warnings, introduced with changes made 15.06.1003
5796
5797 2003-06-18  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5798
5799         * src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx:
5800         option --use-stdout sends errors to stdout instead of stderr.
5801
5802 2003-06-18  Bernhard Held <bernhard AT bernhardheld.de>
5803
5804         * support/Util/MySystem.c (merge_command): quick fix for Linux segfault with \"cmd\" arg
5805
5806 2003-06-15  Borut Razem <borut.razem AT siol.net>
5807
5808         * support/cpp2/sdcc.h: HAVE_DOS_BASED_FILE_SYSTEM defined for _WIN32
5809         * src/SDCC.lex: cloneXxx and copyAndFreeXxx functions for options and optimize stack handling
5810         * src/SDCCglobl.h, src/SDCCmain.c, src/ds390/main.c, src/mcs51/main.c, src/z80/main.c:
5811         fixed width array of pointers replaced with sets;
5812         multiple include and lib paths ared transferred to preprocessor and linker
5813         * src/SDCCset.c, src/SDCCset.h: added function setFromSetNonRev() and mergeSets()
5814         * src/SDCCsymt.c: reimplemented function inCalleeSaveList() by using sets instead
5815         fixed width array of pointers
5816         * src/SDCCutil.c, src/SDCCutil.h: added functions fputStrSet(), appendStrSet(), joinStrSet();
5817         removed functions addToList(), join(), joinn(), pathCharsEquivalent(), pathCharTransform(),
5818         fixupPath(), getPathDifference()
5819         * src/ds390/gen.c, src/mcs51/gen.c: reimplemented function  inExcludeList() by using sets instead
5820         fixed width array of pointers
5821
5822 2003-06-11  Bernhard Held <bernhard AT bernhardheld.de>
5823
5824         * src/pic16/ralloc.c: fix warnings
5825         * src/pic16/pcode.c: fix warning
5826
5827 2003-06-10  Scott Dattalo  <scott AT dattalo.com>
5828
5829          Scott D. for Vangelis Rokas (vrokas AT otenet.gr). I (scott) don't
5830         know all the details, but essentially this set of changes enable
5831         the pic16 port to generate movff instructions and generate assembler
5832         directives,
5833         * src/SDCCmain.c:
5834         * src/pic16/gen.c:
5835         * src/pic16/glue.c:
5836         * src/pic16/pcode.c:
5837         * src/pic16/device.c:
5838         * src/pic16/main.c:
5839         * src/pic16/pcode.h:
5840         * src/pic16/pcoderegs.c:
5841         * src/pic16/ralloc.c:
5842         * src/pic16/ralloc.h:
5843
5844 2003-06-08  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5845
5846         * support/Util/SDCCerr.c, src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx:
5847         added option --vc, so sdcc errors and warnings are compatible with
5848         Microsoft Visual Studio.
5849
5850 2003-06-07  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5851
5852         * device/lib/_atof.c, device/lib/Makefile.in, device/include/stdlib.h,
5853           device/lib/libfloat.lib: added atof function.
5854
5855 2003-06-04  Bernhard Held <bernhard AT bernhardheld.de>
5856
5857         * doc/sdccman.lyx: updated to Lyx 1.3
5858         * doc/cdbfileformat.lyx: updated to Lyx 1.3
5859         * doc/test_suite_spec.lyx: updated to Lyx 1.3
5860         * doc/Makefile: added fix for the \tabularnewline problem, thanks to Jesus
5861
5862 2003-06-03  Bernhard Held <bernhard AT bernhardheld.de>
5863
5864         * src/SDCCpeeph.c: separate peepRules2pCode() for pic16 by "Vangelis Rokas" <vrokas AT otenet.gr>
5865
5866 2003-06-02  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5867
5868         * doc/sdccman.lyx: cvs revision keywords, passing pdf information in latex preamble,
5869           additions to the "related tools/documentation" section
5870
5871 2003-06-02  Bernhard Held <bernhard AT bernhardheld.de>
5872
5873         * src/SDCCglue.c (tempfileandname): added check for missing TMP/TEMP/TMPDIR variable
5874
5875 2003-05-29  Bernhard Held <bernhard AT bernhardheld.de>
5876
5877         * src/pic/device.c: added 16F819, patch by "David I. Lehn" <dlehn AT vt.edu>
5878         * src/SDCCcse.c (algebraicOpts): fixed "c * 1"
5879
5880 2003-05-28  Bernhard Held <bernhard AT bernhardheld.de>
5881
5882         * doc/sdccman.lyx: fix double dash and other minor things
5883         * doc/Makefile: fix double dash
5884
5885 2003-05-28  Karl Bongers(patches from Martin Helmling)
5886         * debugger/mcs51/sdcdb.c,cmd.c,break.c and .h files. Martin adds
5887           condition and ignore commands.
5888
5889 2003-05-28  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5890
5891         * doc/sdccman.lyx: Changes all over, index improved, smaller margins. The manual
5892           is in parts still quite out of date, I did changes as far as I felt makes sense
5893           for a non-native english speaker.
5894           Please feel free to add to the manual or to correct my changes.
5895         * doc/Makefile: undid touching the date of intermediate tex files.
5896
5897 2003-05-26  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5898
5899         * doc/sdccman.lyx: Manual has an index now
5900
5901 2003-05-25  Bernhard Held <bernhard AT bernhardheld.de>
5902
5903         Finalize muluint/mulsint and mululong/mulslong merging:
5904         * device/lib/_mulint.c
5905         * device/lib/_mullong.c
5906         * device/lib/gbz80/mul.s
5907         * device/lib/gbz80/stubs.s
5908         * device/lib/z80/mul.s
5909         * device/lib/z80/stubs.s
5910         * src/SDCCsymt.c (initCSupport)
5911
5912 2003-05-25  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5913
5914         * as/mcs51/lkaomf51.c: Address space 'z' was missing.
5915         * src/avr/avr.dsp, src/ds390/ds390.dsp, src/mcs51/mcs51.dsp,
5916           src/pic/pic.dsp, src/pic16/pic16.dsp, src/xa51/xa51.dsp,
5917           src/x80/z80.dsp: peep.rul is bigger now, so /Zm1000 is used
5918           instead of /Zm500.
5919
5920 2003-05-25  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5921
5922         * src/mcs51/peeph.def: added rules 244.x, 245.x. Although they pass
5923           the regression tests I'm not brave enough to enable 245.b, 245.c
5924         * doc/sdccman.lyx: added latex preamble for hyperref package.
5925           Using pdflatex this will give you a hyperlinked pdf file with
5926           bookmarks. (prepend '%' before /usepackage if this breaks something)
5927
5928 2003-05-24  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5929
5930          * doc/sdccman.lyx: updated information about .adb files (fixed bug 742649)
5931
5932 2003-05-22  Bernhard Held <bernhard AT bernhardheld.de>
5933
5934         * src/pic16/pcode.c (pic16_get_op_from_instruction): fixed a gcc 3.x warning
5935
5936 2003-05-21    <johan AT balder>
5937
5938         * src/SDCCglue.c (printIval): fixed bug #739934
5939
5940 2003-05-19  Bernhard Held <bernhard AT bernhardheld.de>
5941
5942         Applied patch from bug 737905 (renamed yylineo to mylineno):
5943         * src/altlex.c
5944         * src/SDCCast.c
5945         * src/SDCglobl.h
5946         * src/SDCC.lex
5947         * src/SDCCsymt.c
5948         * src/SDCCval.c
5949         * src/pic16/pcode.c: Cleaned warnings
5950         * src/pic16/pcodeflow.c: Cleaned warnings
5951         * src/pic16/pcoderegs.c: Cleaned warnings
5952
5953 2003-05-19  Scott Dattalo  <scott AT dattalo.com>
5954
5955         * src/pic16/pcode.c: Cleaned warnings
5956         * src/pic16/pcodepeep.c: Cleaned warnings
5957         * src/pic16/ralloc.c: Cleaned warnings
5958
5959 2003-05-19  Bernhard Held <bernhard AT bernhardheld.de>
5960
5961         * doc/sdccman.lyx: fixed bug 739745
5962         * src/pic16/pcode.c (pic16_get_op): fixed warning on alpha
5963
5964 2003-05-18  Bernhard Held <bernhard AT bernhardheld.de>
5965
5966         * src/port.h: removed DEFAULT_PORT, it's not yet pic16 ;-)
5967         it can be defined with CFLAGS when running configure
5968         * src/SDCCmain.c: fixed compiling + linking with object files
5969
5970 2003-05-18  Vangelis Rokas (vrokas AT otenet.gr)
5971
5972         * configure.in: configure for pic16 port,
5973             added --disable-pic16-port
5974         * sdccconf_in.h: added macro OPT_DISABLE_PIC16
5975         * src/SDCCmain.c: linkOptions is changed to set *,
5976             added if/endif conditional macros to remove options help
5977             messages from optionsTable when a port is not configured, added
5978             support for the PIc16 port in the ports table, when executing
5979             the compiler with no port specified on command line, a default
5980             port is selected with the new macro DEFAULT_PORT which is
5981             defined in port.h, in setDefaultOptions() linkOptions is removed
5982             from initialization assignment, since now it is a set,
5983             parseCmdLine uses setParseWithComma for linkOptions, in
5984             linkEdit() linkOptions are accessed with new function indexSet()
5985             which returns the i'th item of a set variable. See SDCCset.c, in
5986             linkEdit() when calling buildCmdLine(), added linkOptions as
5987             last argument. Now users can pass arguments to gplink via the
5988             -Wl option, main() uses pic16glue() to glue up pic16 programs
5989         * src/SDCCpeeph.c: various changes to support pic16
5990         * src/SDCCset.c: added function  void *indexSet(set *, int)  to
5991             return the i'th item of the set
5992         * src/SDCCset.h: added function prototype for indexSet()
5993         * src/SDCCsymt.c: in checkSClass(), added support for PIC16
5994         * src/clean.mk: added pic16 in CLEANALLPORTS variable
5995         * src/port.h: added TARGET_ID_PIC16,TARGET_IS_PIC16 macro,
5996             added macro DEFAULT_PORT
5997         * src/pic/main.c: corrected arguments of gplnk in _linkCmd
5998         * src/pic16/gen.c: bug fix in genCpl(), now the correct code is
5999             generated
6000         * src/pic16/glue.c: commented out some error producing lines
6001         * src/pic16/main.c: __config directives are commented out to stop
6002             gpasm complaining and test the linkage with gplink, _linkCmd and
6003             _asmCmd changed to be more gplink and gpasm friendly
6004         * src/pic16/peeph.def: peep rule 3 is commented out, since it
6005             produced an error when parsed, peep rule 12 is added to utilize
6006             movff, but it is commented out since the pCode does not support
6007             yet a command with 2 address arguments
6008
6009 2003-05-18    <johan AT balder>
6010
6011         * src/ds390/gen.c (genArrayInit): removed obsolete and buggy ARRAYINIT
6012         * src/ds390/main.c (genArrayInit): removed obsolete and buggy ARRAYINIT
6013 2003-05-17  Karl Bongers(apply patches from Martin Helmling)
6014
6015         * debugger/mcs51/sdcdb.c,cmd.c,break.c and .h files.
6016   Added feature to script commands from file.
6017
6018 2003-05-14  Bernhard Held <bernhard AT bernhardheld.de>
6019
6020         * device/lib/_strtok.c: fixed bug #734355 by Lenny Story and Tim Woodall
6021         * src/SDCCutil.c: include ctype.h for win32
6022
6023 2003-05-13  Bernhard Held <bernhard AT bernhardheld.de>
6024
6025         * src/pic16/*: removed CR from many files, reported by Vangelis Rokas
6026
6027 2003-05-12  Karl Bongers(apply development patches from Martin Helmling)
6028
6029         * debugger/mcs51/sdcdb.c,simi.c,cmd.c,break.c and .h files.
6030   Fixed so you can set breakpoints prior to run, run does not stop
6031   on entry now.  Add tbreak.  Other enhancements and fixes for use
6032   with ddd.
6033
6034 2003-05-12  Borut Razem <borut.razem AT siol.net>
6035
6036         * src/SDCCmain.c: fixed the problem with searching the DATADIR as the last resort on *nix
6037
6038 2003-05-11  Borut Razem <borut.razem AT siol.net>
6039
6040         * src/SDCCutil.c: WIN32 version of getBinPath() calls GetModuleFileName() to determine
6041         the path of bin directory, so that PATH is the only env. variable, which has to be set
6042         in case of standard installation.
6043         * src/ds390/ds390.dsp: increased value of /Zm option to 1000
6044         * src/pic/main.c: add quotes to file name parameters for gplink and gpasm
6045         * src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx: added --print-search-dirs command line option
6046
6047 2003-05-04  Bernhard Held <bernhard AT bernhardheld.de>
6048
6049         * src/SDCCmain.c (linkEdit): fixed buffer overflow for gbz80
6050         * support/regression/Makefile: inter-port-clean is no longer nesessary, the
6051         temp files are in the port dir; clean the gen/test directory when
6052         generating new test.c
6053         * support/regression/ports/host/spec.mk: defined OBJEXT for target clean
6054         * support/regression/tests/vaargs.c: fixed gcc 3.3 warning
6055         * support/regression/tests/zeropad.c: added
6056
6057 2003-05-09    <johan AT balder>
6058
6059         * src/SDCCglue.c: fixed bug #597940
6060
6061 2003-05-05  Karl Bongers(apply patches from Martin Helmling)
6062
6063         * debugger/mcs51/sdcdb.c,simi.c,cmd.c,symtab.c and .h files.
6064   cache sfr, optimize next,step, fix off by one sourceline,
6065   support ddd list function.
6066         * sim/ucsim/cmd.src/newcmd.cc - small fix for sdcdb use.
6067
6068 2003-05-04  Bernhard Held <bernhard AT bernhardheld.de>
6069
6070         * support/regression/HTMLgen.py: added compare_s2f()
6071         * support/regression/Makefile: redo 1.27
6072         * support/regression/generate-cases.py: redo 1.5
6073
6074 2003-04-30  Bernhard Held <bernhard AT bernhardheld.de>
6075
6076         * support/regression/tests/float.c: workaround 33 bit hex constant
6077         * support/regression/tests/simplefloat.c: fix division for host
6078
6079 2003-04-29  Scott Dattalo  <scott AT dattalo.com>
6080
6081         * src/pic/pcoderegs.c Applied patch from Jim Hawkridge <jim AT jimhawkridge.uk.eu.org>
6082         that tame's the PIC's over-aggressive optimizer.
6083
6084 2003-04-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6085
6086          * src.dsw, link/z80/aslink.h, link/z80/linkz80.dsp: z80 linker
6087          support for MSVC.
6088
6089 2003-04-29  Kevin Vigor <kevin AT vigor.nu>
6090
6091         Initial support for DS80C400. "Hello world" runs on TINIm400
6092         (with polled I/O).
6093
6094 2003-04-28  Karl Bongers(apply patches for Martin Helmling)
6095
6096          * debugger/mcs51/sdcdb.c,simi.c,cmd.c,symtab.c and .h files.
6097          * Some notes on ddd usage added in debugger/README
6098          Martin Helmling adding more features and fixes for ddd GUI debugger.
6099          Code added for nexti, stepi, up, down, and other adjustments.
6100
6101 2003-04-28  Scott Dattalo  <scott AT DATTALO.COM>
6102
6103         * src/pic/pCodepeep.c non-wildcard asmops are now handled
6104         * src/pic/peeph.def Added two rules to optimize carry manipulation
6105         * src/pic/* removed debug printfs
6106
6107 2003-04-28  Bernhard Held <bernhard AT bernhardheld.de>
6108
6109         * debugger/mcs51/cmd.c: added header newalloc.h
6110
6111 2003-04-26  Bernhard Held <bernhard AT bernhardheld.de>
6112
6113         * as/Makefile: new EXEEXT
6114         * as/z80/Makefile: remove trailing slash of BUILDIR
6115         * as/z80/clean.mk: new EXEEXT
6116         * Makefile.common.in: add to CFLAGS (and others), don't replace it
6117         * support/cpp2/Makefile.in: new EXEEXT
6118         * src/pic/glue.c (pic14emitRegularMap): fixed warning
6119
6120 2003-04-24  Bernhard Held <bernhard AT bernhardheld.de>
6121
6122         Cygwin's gcc always appends .exe: 'gcc -o a a.c' creates a.exe;
6123         EXEEXT was introduced to fix all related problems with targets
6124         "clean", "install" and "uninstall"; a couple of further flaws
6125         especially with "clean" have been fixed too
6126         * as/mcs51/Makefile.in
6127         * as/mcs51/clean.mk
6128         * as/z80/Makefile
6129         * Makefile
6130         * clean.mk
6131         * debugger/mcs51/Makefile.in
6132         * debugger/mcs51/clean.mk
6133         * link/z80/Makefile
6134         * link/z80/Makefile.in
6135         * link/z80/clean.mk
6136         * link/Makefile
6137         * packihx/Makefile.in
6138         * packihx/clean.mk
6139         * sim/ucsim/Makefile
6140         * sim/ucsim/clean.mk
6141         * sim/ucsim/avr.src/Makefile.in
6142         * sim/ucsim/avr.src/clean.mk
6143         * sim/ucsim/s51.src/Makefile.in
6144         * sim/ucsim/s51.src/clean.mk
6145         * sim/ucsim/xa.src/Makefile.in
6146         * sim/ucsim/xa.src/clean.mk
6147         * sim/ucsim/z80.src/Makefile.in
6148         * sim/ucsim/z80.src/clean.mk
6149         * sim/ucsim/main_in.mk
6150         * sim/ucsim/packages_in.mk
6151         * sim/ucsim/gui.src/Makefile.in
6152         * sim/ucsim/gui.src/serio.src/Makefile.in
6153         * sim/ucsim/gui.src/serio.src/clean.mk
6154         * src/Makefile.in
6155         * src/clean.mk
6156         * support/cpp2/Makefile.in
6157         * support/cpp2/clean.mk
6158         * support/makebin/Makefile
6159         * support/makebin/clean.mk
6160         * support/scripts/sdcc_mingw32: --program-suffix no longer needed
6161         * doc/sdccman.lyx: --program-suffix no longer needed
6162
6163 2003-04-23  Karl Bongers(apply patches for Martin Helmling)
6164
6165          * debugger/mcs51/sdcdb.c,simi.c,cmd.c,..
6166          Martin Helmling added support for ddd GUI debugger.
6167          Code added to display assembly, set variables, and other commands
6168          to interface to ddd.
6169
6170 2003-04-23  Bernhard Held <bernhard AT bernhardheld.de>
6171
6172         * as/Makefile: fix target clean
6173         * as/clean.mk: fix target clean
6174         * as/z80/clean.mk: fix target clean
6175
6176 2003-04-22  Bernhard Held <bernhard AT bernhardheld.de>
6177
6178         * Makefile.common.in: added  AT EXEEXT AT
6179         * configure.in: removed all mingw32 stuff
6180         * configure: rebuilt from configure.in
6181         * doc/sdccman.lyx: updated section "installation"
6182         * support/scripts/sdcc_mingw32: adapted to configure
6183         * support/scripts/sdcc_cygwin_mingw32: added
6184
6185 2003-04-22  Scott Dattalo  <scott AT dattalo.com>
6186
6187         * src/pic Added object file support for the PIC port
6188         * src/pic Applied patch from Craig Franklin (this started the object file support)
6189         * src/regression Updated the PIC regression tests for object files
6190
6191 2003-04-20  Borut Razem <borut.razem AT siol.net>
6192
6193         * sdcc/as/mcs51/lklex.c: make getfid() more robust and fixed gcc warning:
6194           lklex.c: In function `getfid':
6195           lklex.c:203: warning: array subscript has type `char'
6196         * src/SDCCglobl.h: small change in stack handling macros, to avoid crash when compiled
6197           with MSVC with global optimization enabled (probably an cl compiler bug ;-)
6198         * support/Util/SDCCerr.c, support/Util/SDCCerr.h: added function fatal(), called from
6199           stack handling macros
6200
6201 2003-04-19  Borut Razem <borut.razem AT siol.net>
6202
6203         * "handling space characters in file path" task:
6204         * src/SDCCmacro.c: fixed bug in handlig quote at the end of line
6205         * support/Util/BuildCmd.c: define par as NULL if parameter value is invalid
6206         * support/Util/MySystem.h: make it self-sufficient
6207         * src/avr/main.c, src/ds390/main.c, src/mcs51/main.c, src/pic/main.c, src/xa51/main.c,
6208           src/z80/main.c, sdcc/as/mcs51/lklex.c:
6209           handling space characters in file path
6210         * src/SDCCmain.c: introduced setDataPaths() function, {datadir} macro
6211           (it will be used by assemblers, which have their own includes, e.g. gpasm)
6212         * support/Util/MySystem.c: handling space characters in executable's path
6213
6214 2003-04-19  Bernhard Held <bernhard AT bernhardheld.de>
6215
6216         * as/z80/Makefile: fix permanent rebuild of z80
6217         * sim/ucsim/gui.src/Makefile.in: target "install" builds the same packages as target "all"
6218         * support/regression/tests/bitfields.c: added Johan's bitfields.c
6219
6220 2003-04-18      Kevin Vigor <kevin AT vigor.nu>
6221
6222         * src/SDCCopt.c: add special case optimization to replace modulo by
6223           a power of two with a bitwise AND.
6224
6225 2003-04-18    <johan AT balder>
6226
6227         * src/mcs51/gen.c (getFreePtr): fixed bug #635354
6228
6229 2003-04-17    <johan AT balder>
6230
6231         * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #716790 and removes lot's of redundant register usage around function calls
6232         * src/mcs51/ralloc.c (packRegisters): fixed bug #720667
6233
6234 2003-04-13  Borut Razem <borut.razem AT siol.net>
6235
6236         * doc/sdccman.lyx: updated info about #pragma SAVE/RESTORE nesting
6237         * configure.in, configure: fixed problems on cygwin/WinCVS environmet with ports.* line endings;
6238           fixed mingw problem in adl_NORMALIZE_PATH
6239
6240 2003-04-12  Borut Razem <borut.razem AT siol.net>
6241
6242         * fixed "#pragma SAVE/RESTORE can not be nested":
6243         * src/SDCC.lex: reworked pragma handling functions
6244         * sdcc/src/SDCCglobl.h: reworked stack handling macros
6245         * support/Util/SDCCerr.c, support/Util/SDCCerr.h: added E_STACK_VIOLATION error
6246
6247 2003-04-12  Bernhard Held <bernhard AT bernhardheld.de>
6248
6249         * src/SDCCutil.c (pathEquivalent): defined but not used
6250         * debugger/mcs51/sdcdb.c: replace SDCC_LIB_DIR
6251         * configure.in: remove sdcc_datadir, sdcc_lib_dir and sdcc_include_dir
6252         * configure: rebuilt from configure.in
6253         * sdccconf_in.h: remove SDCC_LIB_DIR and SDCC_INCLUDE_DIR
6254         * sdcc_vc_in.h: remove SDCC_LIB_DIR and SDCC_INCLUDE_DIR
6255         * device/include/Makefile.in: replace sdcc_datadir
6256         * device/lib/Makefile.in: replace sdcc_datadir
6257         * Makefile.common.in: add LDFLAGS from configure
6258         * packihx/Makefile.in: use LDFLAGS
6259         * src/Makefile.in: use LDFLAGS
6260         * support/cpp2/Makefile.in: add LDFLAGS from configure
6261         * support/makebin/Makefile: use LDFLAGS
6262         * .version: bumped version number to 2.3.5
6263
6264 2003-04-12  Borut Razem <borut.razem AT siol.net>
6265
6266         * completed "different paths" task:
6267         * src/SDCCmacro.c: fixed bug in handling quotes
6268         * src/SDCCutil.c, src/SDCCutil.c: rewritten getPrefixFromBinPath()
6269         * src/SDCCmain.c: _discoverPaths() replaced with setBinPaths(), setIncludePath() and setLibPath()
6270
6271 2003-04-12  Bernhard Held <bernhard AT bernhardheld.de>
6272
6273         * src/pic/pcoderegs.c (Remove1pcode): fix warning on alpha
6274
6275 2003-04-11 kevin Vigor <kevin AT vigor.nu>
6276
6277         * ds390/gen.c ds390/peeph.def: fix bug 706781
6278
6279 2003-04-11  Borut Razem <borut.razem AT siol.net>
6280
6281         * support/Util/dbuf.c, support/Util/dbuf.h: update to version 1.1.1 - re-added C++ stuff to make it still more portable
6282
6283 2003-04-10  Scott Dattalo  <scott AT dattalo.com>
6284
6285         * src/pic/* Applied the pointer-to-function patch from Steve Tell.
6286         * src/pic/* Fixed several pointer bugs. (PIC port broke when the ruonly bit was
6287          set - this bit used to not be set...).
6288         * src/pic/gen.c Fixed buf 609268 ==> x = (x+1) & 0xf; generated
6289           bad code in PIC Port
6290         * src/regression/and2.c added to test bug 609268
6291         * src/regression/Makefile added and2.c to regression test
6292
6293
6294 2003-04-08    <johan AT CP255758-A>
6295
6296         * src/mcs51/gen.c (gen51Code): display reg usage in --icode-in-asm
6297         * src/mcs51/ralloc.c (serialRegAssign): update the registers in use and save some slocs
6298         * src/SDCCicode.h: added riu to show the register usage in --icode-in-asm
6299
6300 2003-04-07  Bernhard Held <bernhard AT bernhardheld.de>
6301
6302         * configure.in: fully support prefix, exec_prefix, datadir, docdir;
6303         fix bug #487815
6304         * support/cpp2/Makefile.in: fix bug #487815
6305         * configure: rebuilt from configure.in
6306         * Makefile.common.in: docdir changed, new path suffixes
6307         * sdccconf_in.h: new RETSIGTYPE, and other PATHs
6308         * sdcc_vc_in.h: reflect changes from sdccconf.h
6309         * src/SDCCglobl.h: remove *SEPARATOR_CHARS, they are now in sdccconf.h
6310         * src/SDCCutil.h: remove BINDIR hack
6311         * doc/sdccman.lyx: update new path hierarchy
6312
6313 2003-04-06    Paul Stoffregen <paul AT pjrc.com>
6314
6315         * src/SDCCpeeph.c: added okToRemoveSLOC test
6316
6317 2003-04-06    Paul Stoffregen <paul AT pjrc.com>
6318
6319         * device/lib/printf_fast.c: added leading zero format ("%06d", etc)
6320
6321 2003-04-06    Paul Stoffregen <paul AT pjrc.com>
6322
6323         * src/SDCCpeeph.c: added labelIsReturnOnly test
6324         * src/mcs51/peeph.def: Peephole 244: replace ljmp to ret with ret
6325
6326 2003-04-05    <johan AT balder>
6327
6328         * src/SDCCcse.c (cseAllBlocks): fixed bug #460088
6329         * src/SDCCloop.c (DEFSETFUNC): fixed bug #460088
6330         * src/SDCCopt.c (eBBlockFromiCode): fixed bug #460088
6331         * src/SDCCast.c: fixed a warning
6332         * src/SDCCast.h: fixed a warning
6333         * src/SDCCicode.c (operandFromAst): fixed a warning
6334
6335 2003-04-04    <johan AT balder>
6336
6337         * src/SDCCloop.c (DEFSETFUNC): undid the fix for bug #519584
6338         * src/SDCCast.c (decorateType): fixed bug #715076
6339         * src/SDCC.y: fixed bug #702907
6340
6341 2003-04-03    <johan AT balder>
6342
6343         * device/lib/_mulint.c (_muluint): new #pragma LESS_PEDANTIC
6344         * src/SDCCopt.c (eBBlockFromiCode): new #pragma LESS_PEDANTIC
6345         * src/SDCCglobl.h (PRAGMA_LESSPEDANTIC): new #pragma LESS_PEDANTIC
6346         * src/SDCC.lex (doPragma): new #pragma LESS_PEDANTIC
6347         * src/SDCCmain.c (parseCmdLine): new #pragma LESS_PEDANTIC
6348
6349 2003-04-03  Bernhard Held <bernhard AT bernhardheld.de>
6350
6351         * _decdptr.c: fix return values
6352         * _gptrget.c: fix return values
6353         * _gptrgetc.c: fix return values
6354         * _gptrput.c: fix return values
6355         * _mulint.c: fix return values
6356         * as/z80/Makefile: fix 'make -j' problem
6357
6358 2003-04-02  Bernhard Held <bernhard AT bernhardheld.de>
6359
6360         * Makefile.common.in: unused PORT, SCC and SAS removed, fixed docdir
6361         * configure.in: big cleanup, updated to autoconf 2.5x
6362         * configure: rebuilt from configure.in
6363         * sdccconf_in.h: new RETSIGTYPE, and other PATHs
6364         * sdcc_vc_in.h: reflect changes from sdccconf.h
6365         * doc/Makefile: fixed a flaw in "make install"
6366
6367 2003-04-02    <johan AT balder>
6368
6369         * src/ds390/gen.c (genCmp): no comments
6370         * src/mcs51/gen.c (genCmp): no comments
6371         * src/SDCCopt.c (eBBlockFromiCode): detect missing return values
6372         * src/SDCCast.c (ast_print): fixed the function type in --dumptree
6373
6374 2003-04-01  Bernhard Held <bernhard AT bernhardheld.de>
6375
6376         * support/regression/generate-cases.py: place generated file in given sub directory
6377         * support/regression/ports/host/spec.mk: prevent removal of testfwk.o
6378         * support/regression/Makefile: improvements for 'make -j';
6379         side effect: it's simpler and faster now
6380
6381 2003-03-31  Borut Razem <borut.razem AT siol.net>
6382
6383         * src/z80/main.c: link-{port} and as-{port} defined without path
6384         * src/src.dsp: support/Util/MySystem.h and src/SDCCutil.h added to project
6385
6386 2003-03-31  Bernhard Held <bernhard AT bernhardheld.de>
6387
6388         * Makefile, src/Makefile.in: add dependencies, so that 'make -j' works
6389
6390 2003-03-30  Borut Razem <borut.razem AT siol.net>
6391
6392         * support/Util/BuildCmd.c, support/Util/BuildCmd.h: rewrite buildCmdLine(),
6393           changed type of list parameter to set
6394         * src/ds390/main.c: changed type of parameter asmOptions to set in _tininative_do_assemble()
6395         * src/port.h: changed type of do_assemble() parameter to set
6396         * src/SDCCmain.c: type of asmOptions changed to set, introduced setParseWithComma(),
6397           sdcpp defined without path, removed variable VersionString, introduced set binPathSet,
6398           definition of "cppoutfilename" macro with NULL value in preProcess()
6399         * src/SDCCglobl.h: included "SDCCset.h", added declaration of setParseWithComma()
6400         * src/SDCCglue.c: removed variable VersionString, inroduced spacesToUnderscores()
6401         * support/Util/MySystem.c, support/Util/MySystem.h: rewrite, char *ExePathList[]
6402           replaced with set *binPathSet
6403         * shash_add() deallocates the item, if allready exsists, before adding the new one
6404         * src/SDCCmacro.c: handling macros with empty or NULL values in _evalMacros()
6405
6406 2003-03-30  Scott Dattalo  <scott AT dattalo.com>
6407
6408         * src/pic/gen.c: Commit patch from Steve Tell <tell AT telltronics.org> that fixes
6409           a nested for loop bug in the PIC port
6410         * src/regression/nestfor.c: new regression test file Steve wrote to test nested
6411           for loops
6412
6413 2003-03-29  Bernhard Held <bernhard AT bernhardheld.de>
6414
6415         * support/Util/dbuf.h: remove C++ stuff to make it portable
6416
6417 2003-03-28  Borut Razem <borut.razem AT siol.net>
6418
6419         * src/SDCC.lex: Fix for bug #711240: dynamic buffer handling of C
6420           literal strings in stringLiteral()
6421         * support/Util/dbuf.c, support/Util/dbuf.h: added: dynamic buffer handling
6422         * src/Makefile.bcc, src/Makefile.in, src\src.dsp: added support/Util/dbuf.c
6423           to the project
6424
6425 2003-03-27  Paul Stoffregen <paul AT pjrc.com>
6426
6427         * src/SDCCpeeph.c (pcDistance): accurate byte distance for mcs51
6428
6429 2003-03-26    <johan AT balder>
6430
6431         * src/mcs51/gen.c (saveRegisters): catched symbol abuse
6432         * src/ds390/gen.c (saveRegisters): catched symbol abuse
6433         * src/SDCCast.c (decorateType): fixed " -v < 3"
6434
6435 2003-03-23  Bernhard Held <bernhard AT bernhardheld.de>
6436
6437         * doc/cdbfile.html: removed, replaced by cdbfileformat.lyx
6438         Added Lenny Story's debug infrastructure changes:
6439         * src/Makefile.in:  added new files cdbFile.c and SDCCdebug.c
6440         * src/Makefile.bcc: added new files cdbFile.c and SDCCdebug.c
6441         * src/cdbFile.c: added
6442         * src/SDCCdebug.c: added
6443         * src/SDCCdebug.h: added
6444         * src/SDCCast.c (createFunction)
6445         * src/SDCCglue.c (emitRegularMap, emitStaticSeg, emitOverlay, glue)
6446         * src/SDCCmain.c (parseCmdLine, main)
6447         * src/SDCCmem.c (redoStackOffsets)
6448         * src/SDCCsymt.c (cdbStructBlock, cdbTypeInfo, cdbSymbol, cdbStruct, cdbStructBlock)
6449         * src/SDCCsymt.h
6450         * src/common.h
6451         * src/avr/gen.c (genAVRCode)
6452         * src/ds390/gen.c (gen390Code)
6453         * src/mcs51/gen.c (gen51Code)
6454         * src/pic/gen.c (genpic14Code)
6455         * src/pic/glue.c (pic14emitRegularMap, pic14emitStaticSeg, pic14emitOverlay, picglue)
6456         * src/xa51/gen.c (genXA51Code)
6457         * src/SDCCast.c: fixed "void foo(void){char c; -c < 0;}"
6458
6459 2003-03-22  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6460
6461         * src/mcs51/gen.c (genCodePointerGet): quicker code for bug #700797
6462         * src/mcs51/peeph.def: added rules 177, 241.x to 243, touched 181, 182.x, 193.x
6463
6464 2003-03-22    <johan AT balder>
6465
6466         * src/SDCCicode.c (geniCodeDerefPtr): fixed bug #698231
6467
6468 2003-03-21  Bernhard Held <bernhard AT bernhardheld.de>
6469
6470         * support/scripts/sdcc_mingw32: adapted to configure from autoconf 2.54
6471         * doc/cdbfileformat.lyx: added, written by Lenny Story
6472         * doc/Makefile: added cdbfileformat.lyx
6473         * doc/clean.mk: added cdbfileformat.lyx
6474
6475 2003-03-20  Bernhard Held <bernhard AT bernhardheld.de>
6476
6477         * src/mcs51/peeph.def: fix bug #705773
6478
6479 2003-03-20    <johan AT balder>
6480
6481         An sfr/sbit can have an "at #" AND an initializer
6482         * src/SDCCsymt.c (checkSClass):
6483         * src/SDCCmem.c (allocGlobal):
6484         * src/SDCCmem.c (allocLocal):
6485         * src/SDCCast.c (createBlock):
6486
6487 2003-03-17  Bernhard Held <bernhard AT bernhardheld.de>
6488
6489         * src/ds390/peeph.def: fix bug #704878: added rule 213.b suggested by Jan Rejlek
6490
6491 2003-03-16    <johan AT balder>
6492
6493         Undid the hackup of const and volatile, the problem is much bigger
6494         * src/SDCC.y:1.65
6495         * src/SDCCast.c:1.171
6496         * src/SDCCglue.c:1.138
6497         * src/SDCCicode.c:1.146
6498         * src/SDCCsymt.c:1.150
6499         * src/SDCCval.c:1.65
6500
6501 2003-03-15  Bernhard Held <bernhard AT bernhardheld.de>
6502
6503         * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #703541
6504         * src/ds390/gen.c (genAddrOf): fixed bug #704087
6505
6506 2003-03-13    <johan AT balder>
6507
6508         Hackup const and volatile modifiers in type chains a bit:
6509         * src/SDCC.y:1.63
6510         * src/SDCCast.c:1.169
6511         * src/SDCCglue.c:1.136
6512         * src/SDCCicode.c:1.143
6513         * src/SDCCsymt.c1.146
6514         * src/SDCCsymt.h1.59
6515         * src/SDCCval.c:1.63
6516
6517 2003-03-12    <johan AT balder>
6518
6519         * src/SDCCBBlock.h: more LRH debugging junk
6520         * src/SDCCcflow.h: more LRH debugging junk
6521         * src/SDCCloop.c: more LRH debugging junk
6522         * src/SDCC.y (struct_declaration): fixed bug #697590
6523         * src/SDCCsymt.[hc] (cloneSpec): NEVER EVER use this again
6524         * src/ds390/gen.c (aopForRemat): fixed bug #700031
6525         * src/SDCCglue.c (emitStaticSeg): fixed bug #700797
6526
6527 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
6528         * src/SDCCpeeph.c: quit being lazy and made proper fix (peephole
6529         test function names must now match exactly).
6530         * src/SDCCcse.c: added special case in findCheaperOp to allow
6531         extending a short integer. Makes less awful code for bug 700121 test case.
6532
6533 2003-03-11  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6534
6535         * as/mcs51/lkmain.c: Added ASlink-Warning to messages
6536         * as/mcs51/lkaomf51.c: Fixed bug when linking asmblink example
6537
6538 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
6539
6540         * src/SDCCpeeph.c: fix so that operandsNotEqualX functions are
6541         actually called (operandsNotEqual() was called for all
6542         operandsNotEqualX tests).
6543
6544 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
6545
6546         * src/SDCCcse.c: fix findCheaperOp to prevent replacing int types
6547         with shorter literals. Fixes bug 700121.
6548
6549 2003-03-11    <johan AT balder>
6550
6551         * src/SDCCsymt.c (compareType): a (void *) can be assigned to any pointer
6552
6553 2003-03-11  Bernhard Held <bernhard AT bernhardheld.de>
6554
6555         * src/SDCCloop.c (mergeRegions): an evil beast is dead
6556         * src/SDCCmain.c (preProcess): minor cleanup: eliminate preOutName
6557
6558 2003-03-10  Borut Razem <borut.razem AT siol.net>
6559
6560         * src/SDCCmain.c: pipe preprocessor's output
6561         * support/Util/MySystem.c, support/Util/MySystem.h: added my_popen()
6562         * sdcc_vc_in.h: define pclose as _pclose for WIN32
6563         * src/SDCCglue.c, src/SDCCglue.h: added set pipeSet, added function closePipes,
6564         which closes all pipes in pipeSet set
6565         * src/SDCCset.c: free deleted item in function deleteSetItem()
6566         * src/src.dsp, src/z80/z80.dsp: files support/Util/BuildCmd.c and support/Util/MySystem.c
6567         moved from z80 to src subproject
6568         * .version: increased version number to 2.3.4
6569
6570 2003-03-10  Bernhard Held <bernhard AT bernhardheld.de>
6571
6572         * support/regression/ports/mcs51/spec.mk: increase timeout for CF's sparc to 30s
6573         * support/regression/ports/ds390/spec.mk: increase timeout for CF's sparc to 25s
6574         * support/regression/ports/xa51/spec.mk: fix typo
6575
6576 2003-03-09  Bernhard Held <bernhard AT bernhardheld.de>
6577
6578         * src/SDCCglobl.h: PATH_MAX is already defined in mingw32 headers
6579
6580 2003-03-09  Borut Razem <borut.razem AT siol.net>
6581
6582         * src/SDCCmain.c: pipe preprocessor's output
6583         * support/Util/MySystem.c, support/Util/MySystem.h: added my_popen()
6584         * sdcc_vc_in.h: define pclose as _pclose for WIN32
6585         * src/SDCCglue.c, src/SDCCglue.h: added set pipeSet, added function closePipes,
6586         which closes all pipes in pipeSet set
6587         * src/SDCCset.c: free deleted item in function deleteSetItem()
6588         * src/src.dsp, src/z80/z80.dsp: files support/Util/BuildCmd.c and support/Util/MySystem.c
6589         moved from z80 to src subproject
6590
6591 2003-03-09  Borut Razem <borut.razem AT siol.net>
6592
6593         * src/SDCCglue.c: re-implemented tempfilename() and tempfile(): using mkstemp() if available
6594         * src/SDCCsymt.h: fixed MSVC and BORLANDC compilation (included SDCCglobl.h instead srccconf.h)
6595         * sdcc_vc_in.h: explicitly undefined HAVE_MKSTEMP which is not available on BORLANDC and MSVC
6596         * src/SDCCset.h: removed inclusion of sdccconf.h or sdcc_vc.h
6597         * src/SDCCglobl.h: unification of WIN32 native definitions
6598
6599 2003-03-09  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6600
6601         * src/mcs51/gen.c: applied in-/dec patch mentioned on sdcc-devel 2003-03-01
6602
6603 2003-03-08  Bernhard Held <bernhard AT bernhardheld.de>
6604
6605         * src/configure.in:   check for endianess (even while cross-compiling)
6606         * src/configure:      check for endianess (even while cross-compiling)
6607         * src/configure_in.h: check for endianess (even while cross-compiling)
6608         * src/avr/gen.c:        remove old endianess stuff
6609         * src/mcs51/gen.c:      remove old endianess stuff
6610         * src/ds390/gen.c:      remove old endianess stuff
6611         * src/pic/gen.c:        remove old endianess stuff
6612         * src/pic/genarith.c:   remove old endianess stuff
6613         * src/pic/glue.c:       fix endianess check
6614         * src/pic16/gen.c:      remove old endianess stuff
6615         * src/pic16/genarith.c: remove old endianess stuff
6616         * src/pic16/glue.c:     fix endianess check
6617         * src/xa51/gen.c:       remove old endianess stuff
6618         * src/z80/gen.c:        fix endianess check
6619         * src/SDCCglue.c:       fix endianess check
6620         * src/ds390/peeph.def: fix bug 700036
6621
6622 2003-03-08  Bernhard Held <bernhard AT bernhardheld.de>
6623
6624         * src/SDCCsymt.h: use appropriate data-types on host for SDCC's int and long
6625         * src/configure: find appropriate data-types on host for SDCC's int and long
6626         * src/configure.in: find appropriate data-types on host for SDCC's int and long
6627         * src/sdccconf_in.h: find appropriate data-types on host for SDCC's int and long
6628         * src/xa51/gen.c: use %d, not %ld for 4 byte variables
6629
6630 2003-03-07    <johan AT balder>
6631
6632         Just a big NOOP:
6633                 some minor cleanups before the big shot
6634                 OP_DEFS and OP_USES now use Kevin's protection
6635                 new option --nolabelopt
6636
6637         * src/SDCCBBlock.c:
6638         * src/SDCCast.c,:
6639         * src/SDCCcflow.c:
6640         * src/SDCCcse.c:
6641         * src/SDCCicode.c:
6642         * src/SDCCicode.h:
6643         * src/SDCClabel.c:
6644         * src/SDCCloop.c:
6645         * src/SDCCmain.c:
6646         * src/ds390/ralloc.c:
6647         * src/mcs51/ralloc.c:
6648         * src/pic/ralloc.c:
6649         * src/xa51/ralloc.c:
6650         * src/z80/ralloc.c:
6651
6652 2003-03-06  Bernhard Held <bernhard AT bernhardheld.de>
6653
6654         * src/pic/pcode.c (get_op): fix 64 bit warnings
6655         * src/pic/pcode.c (pCode2str): fix 64 bit warnings
6656         * src/SDCChasht.c (newHashTable): fix 64 bit warnings
6657         * src/SDCCsymt.c (checkTypeSanity): fix 64 bit warnings
6658         * support/regression/tests/malloc.c: fix 64 bit warnings
6659
6660 2003-03-04  Bernhard Held <bernhard AT bernhardheld.de>
6661
6662         * src/mcs51/gen.c (genMinus): fixed bug 696436
6663
6664 2003-03-02  Borut Razem <borut.razem AT siol.net>
6665
6666         * src/SDCCmain.c: added BORLANDC, corrected MSVC in printVersionInfo()
6667
6668 2003-02-26  Bernhard Held <bernhard AT bernhardheld.de>
6669
6670         * configure.in: test for mkstemp
6671         * sdccconf_in.h: add HAVE_MKSTEMP
6672
6673 2003-02-24  Bernhard Held <bernhard AT bernhardheld.de>
6674
6675         * device/include/ctype.h: removed warning while using --stack-auto
6676         * device/include/malloc.h: removed warning while using --stack-auto
6677         * device/include/string.h: removed warning while using --stack-auto
6678
6679 2003-02-23  Borut Razem <borut.razem AT siol.net>
6680
6681         * src/asm.h: corrected assertion in function printILine(): _pipe() was not executed on MSVC,
6682         because NDEBUG is defined (see man assert)
6683         * sdcc_vc_in.h: vsnprintf is defined as _vsnprintf on MSVC
6684
6685 2003-02-23  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6686
6687         * src/mcs51/gen.c (genUminusFloat): avoided dptr in-/decrement for xdata variables
6688         * src/mcs51/peeph.def: added rule suggested by Gernot Fink, white space/comment changes
6689
6690 2003-02-18  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6691
6692         * src/SDCCpeeph.c: added peephole conditions testing for same arguments
6693         * src/mcs51/peeph.def: added rules 238a-d which remove redundant moves
6694
6695 2003-02-18    <johan AT balder>
6696
6697         * as/mcs51/asmain.c (asmbl): module can start with a digit
6698         * as/z80/asmain.c (asmbl): module can start with a digit
6699
6700 2003-02-16  Bernhard Held <bernhard AT bernhardheld.de>
6701
6702         * sim/ucsim/mkecho: inserted #!/bin/sh for Cygwin, so that it's executable
6703         * src/asm.c: fix pipe() for Mingw32
6704
6705 2003-02-15  Bernhard Held <bernhard AT bernhardheld.de>
6706
6707         * src/SDCCglue.h: make tmpfileNameSet available for preOutName
6708         * src/SDCCmain.c (preProcess): make sure, that preOutName will be deleted;
6709         make -V work again; --c1mode reads now from stdin
6710         * doc/sdccman.lyx: added --c1mode
6711         * support/Util/SDCCerr.c: new messages for c1 mode
6712         * support/Util/SDCCerr.h: new messages for c1 mode
6713         * src/SDCC.lex (checkCurrFile): test if fullSrcFileName is NULL for c1mode
6714
6715 2003-02-15    <johan AT balder>
6716
6717         * src/asm.c: new options: --no-c-code-in-asm and --i-code-in-asm
6718
6719 2003-02-14  Bernhard Held <bernhard AT bernhardheld.de>
6720
6721         * doc/sdccman.lyx: Environment variables, -o and other minor things
6722
6723 2003-02-14    <johan AT balder>
6724
6725         * src/xa51/main.c: before anyone really tries to use it :)
6726
6727         * Install doc's in share/sdcc/doc
6728         * removed some obsolete files
6729         * Do a proper make distclean and uninstall
6730         M Makefile.common.in
6731         R sdccbuild.sh
6732         M as/Makefile
6733         M device/include/Makefile.in
6734         M device/lib/Makefile.in
6735         M doc/sdccman.lyx
6736         M link/Makefile
6737         M sim/ucsim/doc/Makefile.in
6738         M src/clean.mk
6739         R src/avr/peeph.rul
6740         R src/xa51/peeph.rul
6741         M support/cpp2/Makefile.in
6742         M support/makebin/Makefile
6743
6744
6745 2003-02-13  Bernhard Held <bernhard AT bernhardheld.de>
6746
6747         * support/regression/ports/host/spec.mk: use cc as host compiler for max osx
6748
6749 2003-02-10  Borut Razem <borut.razem AT siol.net>
6750
6751         * doc/bccinst.txt, packihx/packihx.c, sdcc_vc_in.h, src/SDCCset.h,
6752         support/cpp2/config.in: Borland C++ build doesn't depend on Cygwin configure
6753         * Bcc.ini, Makefile.bcc, as/mcs51/Makefile.bcc,
6754         device/examples/ds390/tinitalk/Makefile.bcc, packihx/Makefile.bcc,
6755         support/cpp2/Makefile.bcc, src/Makefile.bcc, src/avr/Makefile.bcc,
6756         src/ds390/Makefile.bcc, src/izt/Makefile.bcc, src/mcs51/Makefile.bcc,
6757         src/pic/Makefile.bcc, src/pic16/Makefile.bcc, src/xa15/Makefile.bcc,
6758         src/z80/Makefile.bcc: Borland Makefile cleanup
6759         * as/z80/Makefile.bcc: Added Borland Makefile
6760         * support/cpp2/borland.h: Removed
6761
6762 2003-02-10  Bernhard Held <bernhard AT bernhardheld.de>
6763
6764         * doc/sdccman.lyx: new pragma NOIV by "Johannes Stezenbach" <js AT convergence.de>
6765         * src/SDCC.lex: new pragma NOIV
6766         * src/SDCCglobl.h: new pragma NOIV
6767         * src/SDCCmem.c: new pragma NOIV
6768
6769 2003-02-09  Bernhard Held <bernhard AT bernhardheld.de>
6770
6771         * src/SDCCmain.c: signal handling is switched off by SDCC_LEAVE_SIGNALS
6772
6773 2003-02-09  Bernhard Held <bernhard AT bernhardheld.de>
6774
6775         * src/SDCCmain.c: signal handling is switched off by --debug
6776         * doc/Makefile: small fix for install; use clean.mk again
6777         * doc/clean.mk: clean *.pdf and *.html too
6778
6779 2003-02-08  Bernhard Held <bernhard AT bernhardheld.de>
6780
6781         * device/lib/_mulint.c: small fix for large/ds390 --int-long-reent resp. --stack-auto
6782         * device/lib/printfl.c: fix a ds390 bug by making it portable
6783         * src/SDCCsymt.c (initCSupport): fix compile warning on Cygwin
6784         * src/SDCCopt.c (cnvToFloatCast): fix compile warning on Cygwin
6785         * src/SDCCopt.c (cnvFromFloatCast): fix compile warning on Cygwin
6786         * debugger/mcs51/cmd.c: converted multi-line string literals
6787         * sim/ucsim/globals.cc: converted multi-line string literals
6788         * src/SDCCmain.c: introduced signal handler to remove temp files
6789         * doc/Makefile: small tweaks, implement clean
6790         * doc: removed generated files
6791
6792 2003-02-05  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6793
6794         * as/mcs51/aslink.h, as/mcs51/lkihx.c, as/mcs51/lkrloc.c:  Applied
6795         patch from Jan Rejlek <jr AT apex-lib.cz> to fix Bug 677692: "Extended
6796         Address Record is not correctly generated for DS390."
6797
6798 2003-02-02  Borut Razem <borut.razem AT siol.net>
6799
6800         * Makefile.bcc: removed non existing cpp project and non compilable izt project from makefile
6801         * as/mcs51/asm.h: fixed compilation with Borland C
6802         * support/cpp2/Makefile.bcc: added rule to generate auto-host.h
6803         * support/cpp2/auto-host_vc_in.h: fixed compilation with Borland C
6804         * src/mcs51/mcs51a.dsp: corrected misspelled project name from msc51a to mcs51a
6805         * src/avr/Makefile.bcc, src/ds390/Makefile.bcc, src/izt/Makefile.bcc,
6806         src/mcs51/Makefile.bcc, src/pic16/Makefile.bcc, src/xa51/Makefile.bcc,
6807         src/z80/Makefile.bcc: delete $(LIB) only if exist
6808         * src/Makefile.bcc, src/pic/Makefile.bcc:  fixed compilation with Borland C
6809
6810 2003-02-02  Bernhard Held <bernhard AT bernhardheld.de>
6811
6812         * device/include/malloc.h: introduced NULL
6813         * device/include/string.h: introduced NULL
6814         * device/include/stdlib.h: introduced NULL
6815         * device/lib/_memcpy.c: removed NULL
6816         * device/lib/_strcat.c: removed NULL
6817         * device/lib/_strchr.c: removed NULL
6818         * device/lib/_strcmp.c: removed NULL
6819         * device/lib/_strcpy.c: removed NULL
6820         * device/lib/_strcspn.c: removed NULL
6821         * device/lib/_strlen.c: removed NULL
6822         * device/lib/_strncat.c: removed NULL
6823         * device/lib/_strncmp.c: removed NULL
6824         * device/lib/_strncpy.c: removed NULL
6825         * device/lib/_strpbrk.c: removed NULL
6826         * device/lib/_strrchr.c: removed NULL
6827         * device/lib/_strspn.c: removed NULL
6828         * device/lib/_strstr.c: removed NULL
6829         * device/lib/_strtok.c: removed NULL
6830         * device/lib/malloc.c: removed NULL, include own header
6831
6832 2003-02-02    <johan AT balder>
6833
6834         * 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
6835         * support/regression/fwk/lib/testfwk.c: div and mod isn't broken anymore
6836         * regressions ds390/spec.mk and mcs51/spec.mk (timeout): my good old balder isn't fast enough for some tests
6837         * src/z80/gen.c (genZ80Code): added c-lines in asm comments
6838         * as/z80/asm.h (NINPUT): increased for long c-comments in regression tests
6839         * src/z80/gen.c (genRightShiftLiteral): fixed the (char)(-3)>>8 (I think)
6840
6841 2003-02-01  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6842
6843         * src/SDCCmain.c: Fixed bug 678574: "ds390: ASlink-Error-Stack overlaps
6844         area 'DATA'"
6845
6846 2003-02-01    <johan AT balder>
6847
6848         * src/SDCCval.c (valBitwise): fixed Karl's "2 | (1<<8)"
6849
6850 2003-01-31    <johan AT CP255758-A>
6851
6852         * src/ds390/main.c (_ds390_genAssemblerPreamble): applied Jan Rejlek's >64K startup patch
6853
6854 2003-01-30    <johan AT balder>
6855
6856         * src/SDCCBBlock.c: automatic bug detection
6857         * src/SDCCicode.c: automatic bug detection
6858
6859 2003-01-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6860
6861         * src/SDCCglobl.h:   now --xram-size 0 works
6862         * src/SDCCmain.c:    now --xram-size 0 works
6863
6864 2003-01-29    <johan AT balder>
6865
6866         * src/almosteverything: changed OP_DEFS and OP_USES from macros to functions to catch symbol abuse (a hot topic in the bug list :)
6867
6868 2003-01-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6869
6870         * as/mcs51/aslink.h: Added options --xram-size and --code-size
6871         * as/mcs51/lkdata.c: Added options --xram-size and --code-size
6872         * as/mcs51/lkmain.c: Added options --xram-size and --code-size
6873         * as/mcs51/lkmem.c:  Added options --xram-size and --code-size
6874         * src/SDCCglobl.h:   Added options --xram-size and --code-size
6875         * src/SDCCmain.c:    Added options --xram-size and --code-size
6876
6877 2003-01-28  Bernhard Held <bernhard AT bernhardheld.de>
6878
6879         * src/ds390/gen.c: fix deps by replacing <common.h> with "common.h"
6880         * src/SDCC.lex: rename P_OVERLAY to P_OVERLAY_ for cross-gcc 3.2 MINGW32
6881
6882 2003-01-27    <johan AT balder>
6883
6884         * src/SDCC.y: fixed bug #613764
6885
6886 2003-01-26    <johan AT balder>
6887
6888         * src/SDCClrange.c:  fixed Bernhard's "char * code ptr = &c"
6889         * src/SDCCsymt.h: fixed bug #673374
6890         * src/SDCCglue.c: fixed bug #661910
6891         * src/SDCCast.c: fixed bug #458099 and 673374
6892
6893 2003-01-26  Bernhard Held <bernhard AT bernhardheld.de>
6894
6895         * as/mcs51/strcmpi.c: added, provides Aurelien Jarno's as_strcmpi(); strcmpi() is not ANSI
6896         * as/mcs51/strcmpi.h: added
6897         * as/mcs51/asm.h: remove ugly "#define strcmpi strcmp"
6898         * as/mcs51/aslink.h: remove ugly "#define strcmpi strcmp"
6899         * as/mcs51/asmain.c: strcmpi -> as_strcmpi
6900         * as/mcs51/assym.c: strcmpi -> as_strcmpi
6901         * as/mcs51/lkmem.c: strcmpi -> as_strcmpi
6902         * as/mcs51/lknoice.c: strcmpi -> as_strcmpi
6903         * as/mcs51/lksym.c: strcmpi -> as_strcmpi
6904         * as/mcs51/Makefile.aslink: new module strcmpi
6905         * as/mcs51/Makefile.asx8051: new module strcmpi
6906         * as/mcs51/Makefil.bcc: new module strcmpi
6907         * as/mcs51/Makefile.in: new module strcmpi
6908         * sim/ucsim/s51.src/uc390.cc (get_mem_size): make RAM big enough for tinibios
6909
6910 2003-01-26    <johan AT balder>
6911
6912         * src/SDCCglue.c: reverted back to 1.124
6913         * src/SDCCast.c: reverted back to 1.156
6914         * src/mcs51/gen.c (aopGet): applied Frieder's efficiency patch
6915
6916 2003-01-25    <johan AT balder>
6917
6918         * src/SDCCglue.c: A better fix for bug #661910
6919         * src/SDCCast.c: A better fix for bug #661910
6920         * src/SDCCglue.c (emitRegularMap): That was a little too efficient
6921
6922 2003-01-24  Bernhard Held <bernhard AT bernhardheld.de>
6923
6924         * src/Makefile.in: remove spawn.o
6925         * src/SDCCmain.c: remove spawn.h
6926         * src/SDCCmain.c (printVersionInfo): report MINGW32 instead of UNIX
6927         * src/spawn.c: removed
6928         * src/spawn.h: removed
6929         * support/regression/ports/ds390/spec.mk: link with -r
6930
6931 2003-01-24    <johan AT CP255758-A>
6932
6933         * src/ds390/gen.c (aopOp): fixed bug #667458
6934         * src/SDCCglue.c (emitRegularMap): fixed bug #458099 again
6935         * src/SDCCast.c (createIvalCharPtr): fixed bug #661910
6936         (createIvalCharPtr): an ival doesn't always have a storage class anymore
6937
6938 2003-01-24  Bernhard Held <bernhard AT bernhardheld.de>
6939
6940         * src/mcs51/peeph.def: better assembler identation by Frieder
6941         * src/mcs51/gen.c: better assembler identation by Frieder
6942
6943 2003-01-22  Bernhard Held <bernhard AT bernhardheld.de>
6944
6945         * as/z80/string.h: removed for gcc 3.2
6946         * support/makebin/makebin.c: #include <string.h> for gcc 3.2
6947         * src/pic/pcode.c (get_op_from_instruction): fix concatenation of string literals with __FUNCTION__ for gcc 3.2
6948
6949 2003-01-19  Bernhard Held <bernhard AT bernhardheld.de>
6950
6951         * src/SDCCmain.c (linkEdit): rename mem and map files even in case of failure
6952         * src/SDCCpeeph.c (replaceRule): fix bug #663503
6953         * support/regression/Makefile: separate temp files for ports
6954         * support/regression/generate-cases.py: separate temp files for ports
6955         * src/mcs51/peeph.def: Frieder: removed 237 (obsolete by 236g and 105); added 237 a/b
6956         * src/ds390/peeph.def: Frieder: removed 237 (obsolete by 236g and 105); added 237 a/b
6957
6958 2003-01-19  Bernhard Held <bernhard AT bernhardheld.de>
6959
6960         * moved tinitalk to device/examples/ds390
6961
6962 2003-01-14  Bernhard Held <bernhard AT bernhardheld.de>
6963
6964         * as/mcs51/lkmem.c: rflag is for DS390
6965         * src/SDCCglobl.h: removed out_name and options stackOnData, genericPtr
6966         * src/SDCCmain.c (optionsTable, setDefaultOptions): removed --stack-after-data and --generic
6967                          (linkEdit): move mem- and map-files the same way as ihx-files
6968         * src/z80/main.c (_setDefaultOptions): removed --generic
6969         * src/SDCCmain.c (_processC1Arg, parseCmdLine, main): --c1mode works again
6970         * src/SDCCglue.c (createInterruptVect, glue): --c1mode works again
6971         * src/pic/glue.c (picglue): --c1mode works again
6972         * src/pic16/glue.c (pic16glue): --c1mode works again
6973         * src/asm.c (printCLine): fix #660034
6974
6975 2003-01-13  Bernhard Held <bernhard AT bernhardheld.de>
6976
6977         * src/ds390/peeph.def: fix #123; add 14 rules by Fiorenzo D. Ramaglia <fd.ramaglia AT tin.it>, 1 by Frieder
6978         * src/mcs51/peeph.def: fix #123; add 14 rules by Fiorenzo, 1 by Frieder
6979         * src/mcs51/gen.c (genFunction): emit r0 instead of ar0 by Fiorenzo
6980         * as/mcs51/lkmem (summary): better fix for sp problem
6981         * src/SDCCglue.c (glue): __start_stack - 1, saves 1 byte!
6982         * src/ds390/main.c (_ds390_finaliseOptions, _tininative_finaliseOptions): stack_loc = 0x400008
6983         * support/regression/ports/*/spec.mk: moving testfwk-object to port dir allow parallel execution of regression tests
6984                                               remove --stack-after-data
6985
6986 2003-01-12  Bernhard Held <bernhard AT bernhardheld.de>
6987
6988         * src/SDCCmain.c (main): port->finaliseOptions() moved for z80 linking
6989         * src/SDCCutil.c (join): ugly bug: missing '\0'
6990         * as/mcs51/lkmem.c (summary): sp on address 7 is safe
6991
6992 2003-01-11  Bernhard Held <bernhard AT bernhardheld.de>
6993
6994         * src/SDCCmain.c (assemble, linkEdit): preparations for -o
6995         * src/port.h: typo
6996         * src/pic/main.c (_asmCmd): gpasm supports -o
6997         * src/z80/main.c: more general macros
6998         * device/lib/Makefile.in: remove intermediate files
6999
7000 2003-01-11  Bernhard Held <bernhard AT bernhardheld.de>
7001
7002         * .version: Bumped version number to 2.3.3
7003         * src/SDCCBBlock.c: new option -o
7004         * src/SDCCglobl.h: new option -o
7005         * src/SDCCglue.c: new option -o
7006         * src/SDCCmain.c: new option -o
7007         * src/asm.c: new option -o
7008         * src/ds390/main.c: new option -o
7009         * src/pic/glue.c: new option -o
7010         * src/pic/pcode.c: new option -o
7011         * src/pic/ralloc.c: new option -o
7012         * src/pic16/glue.c: new option -o
7013         * src/pic16/pcode.c: new option -o
7014         * src/pic16/ralloc.c: new option -o
7015         * src/z80/main.c: new option -o
7016         * device/lib/Makefile.in: use -o
7017         * support/regression/ports/ds390/spec.mk: use -o
7018         * support/regression/ports/gbz80/spec.mk: use -o
7019         * support/regression/ports/mcs51/spec.mk: use -o
7020         * support/regression/ports/mcs51-stack-auto/spec.mk: use -o
7021         * support/regression/ports/z80/spec.mk: use -o
7022         * support/regression/ports/ucz80/spec.mk: use -o
7023         * support/regression/ports/xa51/spec.mk: use -o
7024         * support/regression/fwk/lib/timeout.c: fix usage string
7025
7026 2003-01-09  Bernhard Held <bernhard AT bernhardheld.de>
7027         * src/mcs51/gen.c (genPlus): replaced "mov b,acc" by "mov b,a" Fiorenzo D. Ramaglia <fd.ramaglia AT tin.it>
7028
7029 2003-01-07    <johan AT balder>
7030
7031         * src/SDCCast.c (decorateType): fixed bug #600035
7032
7033 2003-01-07  Bernhard Held <bernhard AT bernhardheld.de>
7034         * as/mcs51/lkmem.c: added several l-modifiers to printf to remove warnings
7035         * as/mcs51/lkaomf51.c: #include <ctype.h> to remove warnings
7036         * src/pic/main.c (_hasNativeMulFor): outcommented unused variables to remove warnings
7037         * src/pic/pcode.c: outcommented unused variable to remove warnings
7038         * src/pic/ralloc.c: outcommented unused variable to remove warnings
7039
7040 2003-01-06    <karl AT turbobit.com>
7041         * sim/ucsim/cmd.src/command.cc: fixed so "break xram r 0x7654" works again in
7042    regression tests.
7043
7044 2003-01-06    <johan AT balder>
7045
7046         * src/SDCCicode.c: fixed array add
7047
7048 2002-01-05  Bernhard Held <bernhard AT bernhardheld.de>
7049         * src/SDCCmacro.c: MAX_STRING_LENGTH increased to 2048; was too small for regression tests
7050         * support/regression/ports/host/support.c: #include <stdarg.h> for gcc 3.2
7051
7052 2003-01-04    <johan AT balder>
7053
7054         * src/SDCCval.c (getNelements): fixed the initialized array of structures
7055
7056 2002-12-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7057         * as/mcs51/Makefile.bcc: fixed typo lkomf51.o -> lkaomf51.o
7058
7059 2002-12-28  Bernhard Held <bernhard AT bernhardheld.de>
7060         * src/mcs51/peeph.def: added rules 234 and 235 from Frieder Ferlemann <frieder.ferlemann AT web.de>
7061         * support/regression/tests/bug-524697.c: fit mem usage into 8032
7062
7063 2002-12-28  Bernhard Held <bernhard AT bernhardheld.de>
7064         * src/mcs51/gen.c (aopGetUsesAcc): inserted missing "return FALSE"
7065
7066 2002-12-27  Bernhard Held <bernhard AT bernhardheld.de>
7067         * as/mcs51/Makefile.in: fixed typo lkomf51.o -> lkaomf51.o
7068
7069 2002-12-26  Bernhard Held <bernhard AT bernhardheld.de>
7070         * src/mcs51/main.c: removed {bindir}{sep} from aslink
7071
7072 2002-12-10  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7073
7074     * in \sdcc\as\mcs51\ changed these files in order to create an
7075     aomf51 file: aslink.h, lkdta.c, lklex.c, lklibr.c, lklist.c,
7076     lkmain.c.  Also added: lkmem.c and lkaomf51.c.  Changed the
7077     following files to include the previous two files: aslink.dsp,
7078     Makefile.aslink, Makefile.bcc, and Makefile.in.
7079
7080     * Changed \sdcc\src\SDCCmain.c so it creates files with extension
7081     .adb instead of .cdb
7082
7083 2002-11-09  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7084
7085         * \sdcc\as\mcs51\lklist.c: Now reports memory usage using the
7086         value from option --iram-size.
7087
7088 2002-09-20  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7089
7090         * \sdcc\as\mcs51\lklist.c: added boundary check before using
7091         dram[] array.
7092
7093 2002-09-18    <wiml AT hhhh.org>
7094
7095         * SDCClrange.h: exposed setFromRange() and setToRange()
7096         * mcs51/ralloc.c: fixed over-eager packRegsForSupport() and
7097           packRegsForAccUse() (bug 542397)
7098         * mcs51/gen.c: MOVA() is now a function to avoid calling aopGet()
7099           multiple times and emitting the fetch operations more than once
7100           added aopGetUsesAcc() function to allow binary operators to
7101           fetch their operands in the correct order; made genMinus() emit
7102           compact code for X = LITERAL - Y
7103
7104 2002-09-00  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7105         * \sdcc\as\mcs51\lklist.c: Fixed incorrect number of parameters to
7106         sprintf() in line 1267.
7107
7108 2002-09-08  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7109         * \sdcc\src\SDCCglue.c: Generate areas REG_BANK_[0-3] only for 8051
7110         like ports.
7111
7112 2002-09-04  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7113         Changes to aslink (All the changes are marked with 'JCF'):
7114
7115         * \sdcc\as\mcs51\aslink.h: External definition of sflag and
7116         summary().
7117
7118         * \sdcc\as\mcs51\lkarea.c: Computes the size of area BSEG_BYTES from
7119         area BSEG.  Also moves, if possible, the DATA area down into the internal
7120         ram so more space is available.
7121
7122         * \sdcc\as\mcs51\lkdata.c: Definition of memory summary output flag
7123         sflag.
7124
7125         * \sdcc\as\mcs51\lklist.c: For the BSEG area report the size in bits,
7126         not bytes.  Function summary() which creates a memory usage summary
7127         file with extension .mem.  Reports of overlaping stack and small stack
7128         size.  If the space for the stack is less than 16 bytes aslink trows a
7129         warning.
7130
7131         * \sdcc\as\mcs51\lkmain.c: Creation of some of the default areas for
7132         the 8051.  Option 'y' for memory summary output file.
7133
7134         Changes to sdcc (All the changes are marked with 'JCF'):
7135
7136         * \sdcc\src\SDCCglobl.h: External definition of RegBankUsed[4].
7137
7138         * \sdcc\src\SDCCglue.c:  If a register bank is used, creates an
7139         overlaying area for it (uses RegBankUsed[4]).
7140
7141         * \sdcc\src\SDCCmain.c: Definition RegBankUsed[4]; marks register
7142         bank zero as used by default.  By default aslink locates the stack
7143         (equivalent to --stack-after-data).  Pass option 'y' to aslink for
7144         the creation of the .mem file.  Delegates the allocation of data area
7145         to aslink (it is not longer 0x30 by default).  If --stack-loc passes
7146         the begining of the stack area to aslink.
7147
7148         * \sdcc\src\SDCCmem.c:  If a register bank is used, marks it so
7149         glue() in SDCCglue.c creates an area for it.
7150
7151 2002-09-03  Borut Razem <borut.razem AT siol.net>
7152         * sdcc/src/SDCCglue.c, sdcc/src/SDCCglue.h, sdcc/src/SDCCmain.c,
7153         sdcc/src/pic/glue.c:
7154         introduced atexit() handler for teporay files removal in case of
7155         errors, assertions, ...
7156
7157 2002-08-29  Borut Razem <borut.razem AT siol.net>
7158         * sdcc/support/cpp2/auto-host_vc_in.h:
7159         re-definition of O_BINARY and other O_XXX as _O_BINARY and _O_XXX, so the problem
7160         with the returned value from read() in sdcc/support/cpp2/cppfiles.c is solved for MSC.
7161         Maybe there is a similar problem with BORLANDC? It should be checked!
7162
7163         * sdcc/src/ds390/ralloc.c, sdcc/src/mcs51/ralloc.c, sdcc/src/z80/ralloc.c:
7164         corrected improper use of assert: the assignment to clr variable was done inside the assert.
7165         In case that NDEBUG was defined, the assert macro was substituted with no-op, so the assignment
7166         was not executed, and the compiler (cl) launched a warning:
7167         ralloc.c(1442) : warning C4700: local variable 'clr' used without having been initialized
7168
7169 2002-08-28  Bernhard Held <bernhard AT bernhardheld.de>
7170         * src/SDCCglue.c (printIvalArray): iterative calculation of array length
7171
7172 2002-08-28  Jesus Calvino-Fraga and Borut Razem <borut.razem AT siol.net>
7173         * sdcc/sdcc.dsw: added sdcpp, sdcppa, yacc, conf projects
7174
7175         * sdcc/src/src.dsp, sdcc/src/avr/avr.dsp, sdcc/src/ds390/ds390.dsp,
7176           sdcc/src/mcs51/mcs51.dsp, sdcc/src/pic/pic.dsp, sdcc/src/z80/z80.dsp,
7177           sdcc/src/xa51/xa51.dsp, sdcc/src/avr/avra.dsp,
7178           sdcc/src/ds390/ds390a.dsp, sdcc/src/mcs51/mcs51a.dsp,
7179           sdcc/src/pic/pica.dsp, sdcc/src/z80/z80a.dsp,
7180           sdcc/src/xa51/xa51a.dsp, sdcc/as/as_z80.dsp,
7181           sdcc/as/aslink.dsp, sdcc/as/asx8051.dsp, sdcc/packihx/packihx.dsp:
7182         - added Release configuration in VS projects
7183         - review of compiler an linker options
7184         - VC .exe files are generated in bin_vc directory, not to interfere
7185           with binaries generated from other projects (cygwin, mingw, bcc ...)
7186
7187         * sdcc/src/yacc.dsp: added
7188
7189         * sdcc/config.dsp, sdcc/configure_vc.awk, sdcc/sdcc_vc_in.h:
7190         added - genarate sdcc_vc.h using sdcc_vc_in.h as template
7191         and insert the version number definitions from .version
7192
7193         * sdcc/support/cpp2/sdcpp.dsp: added - VC project for sdcpp
7194
7195         * sdcc/support/cpp2/sdcppa.dsp, sdcc/support/cpp2/auto-host_vc_in.h:
7196         added - genarate auto-host.h using auto-host_vc_in.h as template
7197
7198         * sdcc/sdcc_vc.h,
7199         removed from CVS, generated automatically
7200
7201 2002-08-25  Bernhard Held <bernhard AT bernhardheld.de>
7202         * support/scripts/inc2h.pl: use gputils or gpasm (from Nathan Hurst)
7203
7204 2002-08-11  Borut Razem <borut.razem AT siol.net>
7205         * support/Util/NewAlloc.c: removed unneeded #include "sdccconf.h" (suggested by Jesus Calvino-Fraga)
7206
7207 2002-08-10  Borut Razem <borut.razem AT siol.net>
7208         * src/SDCCmain.c (main):
7209         file preOutName was unlinked before closed. This seems to be OK on UNIX and cygwin
7210         platforms, but it doesn't work with Visual Studio: the opened file can not be removed.
7211         The consequence was that some temporary files were not removed.
7212
7213         * src/SDCCglue.c:
7214         unification of code in functions tempfilename() and tempfile():
7215         function tempnam() is defined in Visual Studio 6.0 and .NET
7216
7217         * sdcc/sdcc.dsw: removed project sdcpp, added project xa51a
7218
7219         * sdcc/src/src.dsp, sdcc/src/avr/avr.dsp, sdcc/src/ds390/ds390.dsp,
7220           sdcc/src/mcs51/mcs51.dsp, sdcc/src/pic/pic.dsp, sdcc/src/z80/z80.dsp:
7221         - removed compiler command line option /WX: Treats all warnings as errors
7222         - update a list of source files, included into the project
7223
7224         * sdcc/src/avr/avra.dsp, sdcc/src/ds390/ds390a.dsp, sdcc/src/mcs51/mcs51a.dsp,
7225           sdcc/src/pic/pica.dsp, sdcc/src/z80/z80a.dsp:
7226         changed project type to Generic Project so that can be correcly converted to VS.NET project
7227
7228         * sdcc/as/mcs51/asm.h: definition of PATH_MAX for MSC
7229
7230         * sdcc/src/SDCCast.c: solved MSC error in function decorateType()
7231
7232         * sdcc/src/SDCC.y: added missing ending ';' to rules to get rid of bison warnings
7233
7234         * dcc/src/ds390/ralloc.c, sdcc/src/mcs51/ralloc.c:
7235         added return 0 statements after assert() to make compiler happy
7236
7237         * sdcc/src/xa51/peeph.rul, sdcc/src/xa51/peeph.def, sdcc/src/z80/ralloc.c:
7238         added newline in the def file to keep MSC compiler satisfied
7239
7240         * sdcc/src/z80/gen.c:
7241         - function strcasecmp() is not defined in MSC (and probably also in BORLANDC),
7242           so it is replaced with STRCASECMP, which is defined as stricmp in case of MSC and BORLANDC
7243         - solved MSC error in function aopDump()
7244
7245         * sdcc_vc.h: define PREFIX as "\\sdcc"
7246
7247 2002-07-18  Bernhard Held <bernhard AT bernhardheld.de>
7248         * src/SDCCast.c (decorateType): fixed access to array of structures http://sourceforge.net/mailarchive/forum.php?thread_id=902690&forum_id=4107
7249
7250 2002-06-22  Scott Dattalo <scott AT dattalo.com>
7251         * src/pic/*: Numerous bug fixes. Flow analysis has been enhanced.
7252         - Rewrote the register banking algorithm.
7253         - Added pCode live-range analysis to registers (for now, only non-used and
7254         singly-used registers optimized away)
7255
7256         * src/pic/pcoderegs.[ch]: Added new files for pCode live-range analysis
7257
7258         * 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.
7259
7260 2002-05-10  Scott Dattalo <scott AT dattalo.com>
7261         * src/pic/*: Added support for multiplication. Fixed many,many bugs.
7262
7263 2002-04-22  Michael Hope  <michaelh AT vroom>
7264
7265         * device/lib/z80/printf.c: Changed emitter to volatile to work around a pcall bug.
7266
7267         * configure.in (DD_COPT): Added include support required for gbdk.
7268
7269         * .version: Bumped version number just to increase it.
7270
7271         * src/SDCCmain.c: Added -nostdinc to the default options.
7272
7273 2002-04-15  Michael Hope  <michaelh AT vroom>
7274
7275         * device/lib/z80/printf.c (sprintf): Added.
7276
7277         * src/z80/ralloc.c (packRegisters): Disabled pack HL use for GB as it's broken.
7278
7279         * src/z80/peeph.def: Added transpose redundent load rule.
7280
7281         * src/z80/main.c: Added force callee saves for jaune.
7282
7283         * src/port.h: Removed the i186 and tlcs-900h ports as they weren't being being developed.
7284
7285         * src/SDCCmain.c: Pulled the options definition out so that you can add port specific options without changing the main file.
7286
7287 2002-03-28  Johan Knol  <johan AT balder>
7288
7289         * src/SDCCval.c: fixed bug #532436
7290
7291 2002-03-14  Scott Dattalo <scott AT dattalo.com>
7292         * /src/port.h:
7293         Added "char *Processor" field to the port structure.
7294
7295         * /src/SDCCmain.c:
7296         Added -p option. Allows port dependent processor to be specified.
7297
7298         * all ports:
7299         Initialized the new field char *Processor field to NULL in all ports
7300
7301         * /src/pic/*:
7302         Compiler generated registers for interrupt context saving
7303         were not getting allocated.
7304
7305 2002-03-16  Sandeep Dutta  <sandeep AT ddi.com>
7306
7307         * /src/SDCCast.c:
7308         Fixed left shift. Will promote the left side of a left shift
7309         if a) left shifting more than size of operand or b) when assigned
7310         to something size > size of left side
7311
7312 2002-03-14  Scott Dattalo <scott AT dattalo.com>
7313         * src/pic/*
7314         tons of changes. Register allocation has been
7315         rewritten. Added customization for the various PICs. Flow
7316         analysis is restructured. ...
7317
7318         * src/pic/device.h:
7319         Added
7320
7321         * src/pic/device.c:
7322         Added. device.c is a PIC port hack to accomodate variations
7323         in PIC devices.
7324
7325 2002-03-13  Michael Hope  <michaelh AT vroom>
7326
7327         * src/z80/gen.c (genGenPointerGet): Fixed a bug where a pointer in HL is dereferenced into HL but HL is not spilled.  Yeah.
7328
7329 2002-03-04  johanknol  <johanknol AT manik>
7330
7331         * /src/SDCCval.c: fixed
7332
7333         const unsigned char arr[][2] = { { 0, 1 } };
7334         t18.c:1: error: Initializer element is not constant
7335
7336 2002-03-04  bela  <bela AT manik>
7337
7338         * /device/include/mcs51reg.h:
7339         ds89c420 register definition update
7340
7341 2002-03-03    <johan AT FRIJA>
7342
7343         * support/Util/SDCCerr.c: did something, but don't no why anymore
7344
7345         * support/regression/tests/bug-524691.c: made it a little less shy
7346
7347         * src/SDCCast.c (decorateType): fixed bug #524697
7348
7349         * src/SDCCast.c: made some lineno improvements
7350
7351         * src/SDCCval.c (getNelements): changed warning to error
7352
7353         * src/SDCCglue.c (printIvalArray): changed warning to error
7354
7355         * src/SDCCicode.c: fixed a warning for mingw
7356
7357         * src/SDCCast.c (decorateType): fixed the << promotion for ops
7358
7359         * src/SDCCicode.c (geniCodeDivision): divide is shift only for unsigned (bug #524685)
7360
7361 2002-03-02  Sandeep Dutta  <sandeep AT ddi.com>
7362
7363         * src/ds390/peeph.def:
7364         Added some more peephole rules
7365
7366         * src/ds390/gen.c: Various fixes & enhancements
7367
7368         * src/SDCClrange.c, src/SDCClrange.h:
7369         functions "alldefsoutofrange" and "notusedinblock" moved to SDCClrange.c
7370
7371         * src/ds390/ralloc.c:
7372         various fixes & enhancements (ds390) specific
7373
7374         * src/avr/ralloc.c, src/mcs51/ralloc.c, src/pic/ralloc.c, src/xa51/ralloc.c, src/z80/ralloc.c:
7375         Functions "allDefsOutOfRange" & "notUsedinBlock" moved to SDCClrange.c
7376         from rallocs.
7377
7378         * sdcc/src/SDCCcse.c: Better fix for bug # 514308
7379
7380 2002-03-02    <johan AT FRIJA>
7381
7382         * src/SDCCast.c (decorateType): fixed bug #524708
7383
7384         * src/SDCCval.c (floatFromVal): fixed the literal void (whatever that may be)
7385
7386         * src/SDCCicode.c (geniCodePtrPtrSubtract): fixed bug #524691
7387
7388 2002-03-01  Michael Hope  <michaelh AT vroom>
7389
7390         * src/SDCCsymt.c (initCSupport): Removed managling of support function names.
7391
7392         * src/z80/ralloc.c (packRegsForIYUse): Fixed fp bug where four byte operands were packed into IY.
7393
7394 2002-03-01    <johan AT FRIJA>
7395
7396         * src/SDCCglue.c (printIvalPtr): fixed bug #524211
7397
7398         * src/SDCCast.c (decorateType): fixed bug #524209
7399
7400         * src/SDCCval.c (valNot): fixed bug #524195
7401
7402 2002-02-26    <johan AT balder>
7403
7404         * src/xa51/gen.c: fixed a warning
7405
7406         * src/SDCCglue.c (printIvalFuncPtr): fixed bug #522534
7407
7408         * src/SDCCast.c (decorateType): fixed bug #522534
7409
7410 2002-02-23    <johan AT balder>
7411
7412         * src/SDCCdflow.c (computeDataFlow): fixed bug #460088
7413
7414 2002-02-22    <johan AT balder>
7415
7416         * src/SDCCast.c: fixed bug #514865
7417
7418         * src/SDCCy.c ("SDCC.y"): fixed bug #516625
7419
7420 2002-02-21  Sandeep Dutta  <sandeep AT ddi.com>
7421
7422         * sdcc/src/SDCCloop.c:
7423         Previous fix was not good. basic blocks that have "break" or "return" are
7424         not really partof a loop , but live ranges used in these blocks should
7425         be live thru the entire loop, so set partOfLoop but don't add them to
7426         loop region
7427
7428 2002-02-21    <johan AT FRIJA>
7429
7430         * src/SDCCcse.c: fixed bug #514308
7431
7432 2002-02-20  Sandeep Dutta  <sandeep AT ddi.com>
7433
7434         * src/SDCCloop.c:
7435         Fixed BUG #519583. If a conditional block ended in a return/break
7436         statement inside a loop, it was not being considered part of the loop.
7437
7438         * src/SDCCcflow.c: Removed fix (Fixed in SDCCloop.c)
7439
7440 2002-02-10  Karl Bongers <karl AT turbobit.com>
7441
7442         * debugger/*:
7443         Fixed up SDCDB debugger somewhat.  Updated debugger/README
7444         with lots of comments and notes.
7445
7446         * device/examples/test2.c:
7447         Fix bug, "red" variable not being initialized(compiler complained).
7448
7449         * device/examples/Makefile, examples/test3.c:
7450         Add Makefile in device/examples folder, compiles test3.c
7451         for use as a multiple module SDCDB test case.
7452
7453         * sim/ucsim/cmd.src/cmdset.cc:
7454         Took out debug printfs in ucsim "next" command.
7455
7456         * sim/ucsim/xa.src:
7457         Karl and Johan start ucsim XA support.  Most dissassembly working,
7458         about 75% emulation done(plenty of work remaining).
7459
7460         * sim/ucsim/z80.src:
7461         Add Z80 support to ucsim, add test-ucz80 regression test,
7462         notice ucsim/z80 emulation fails on examples/test3.c/itoa code.
7463         Notice z80 compiler fails on examples/test3.c/crc code.
7464
7465 2002-01-30  Sandeep Dutta  <sandeep AT ddi.com>
7466
7467         * src/mcs51/gen.c, src/mcs51/main.c, src/mcs51/ralloc.c:
7468         Added support for --parms-in-bank1
7469
7470         * src/ds390/peeph.def:
7471         added a few more peephole optimzations
7472
7473         * src/ds390/main.c:
7474         1) added __builtin_inp & __builtin_outp used to read in data of given length
7475            from a memory mapped port
7476         2) added __builtin_memcmp
7477         3) added __builtin_swapw swap bytes of a short
7478
7479         * src/ds390/gen.c, src/ds390/gen.h, src/ds390/ralloc.c:
7480         1) handle multiple send & receives from register bank1
7481         2) ralloc can now allocate DPTR1 to some liveRanges
7482
7483         * src/SDCCsymt.c, src/SDCCsymt.h:
7484         changes to handle multiple sends & receives
7485
7486         * src/SDCCptropt.h:
7487         added some pointer arithmetic optimization
7488
7489         * src/SDCCptropt.c:
7490         added some pointer arithmetic optimizations but not stable yet so not
7491         called from anywhere (will get this working shortly)
7492
7493         * src/SDCCopt.c: fixed for multiple sends & receives
7494
7495         * src/SDCCmain.c:
7496         1) added options --parms-in-bank1 (ds390/mcs51) & --protect-sp-update
7497         2) preprocessing done AFTER port->finalizeoptions . This allows ports to
7498            set preprocessor defines (depending on options)
7499
7500         * src/SDCCicode.c, src/SDCCicode.h:
7501         changes made to handle multiple sends & receives
7502
7503         * src/SDCCglobl.h:
7504         Added options --protect-sp-update (ds390) and --parms-in-bank1 (ds390/mcs51)
7505
7506         * src/SDCCcse.c, src/SDCCcse.h:
7507         added function findbackward def (to be used in upcoming optimization)
7508
7509         * src/SDCCcflow.c, src/SDCCcflow.h:
7510         added function returnAtEnd - to determine if a basic block terminates with
7511         a RETURN iCode
7512
7513         * src/SDCCast.c, src/SDCCast.h:
7514         added option parms-in-bank1
7515
7516         * device/lib/_divsint.c, device/lib/_divslong.c, device/lib/_divuint.c
7517         * device/lib/_divulong.c, device/lib/_modsint.c, device/lib/_modslong.c
7518         * device/lib/_modulong.c, device/lib/_mulint.c, device/lib/_mullong.c:
7519         adjusted for --parms-in-bank1 option
7520
7521         * device/include/string.h:
7522         donot redefine "reentrant" keyword
7523
7524         * device/include/ds80c390.h: Added some more SFRs
7525
7526 2002-01-28  Bernhard Held  <bernhard AT bernhardheld.de>
7527
7528         * sim/ucsim: Merged branch ucsim-034-pre3 to main trunk; new version 0.4
7529
7530 2002-01-26  Bernhard Held  <bernhard AT bernhardheld.de>
7531
7532         * src/SDCCast.c (funcOfType): fix usage of double --float-reent
7533
7534 2002-01-22  Bernhard Held  <bernhard AT bernhardheld.de>
7535
7536         * support/regression/fwk/lib/testfwk.c (main): Removed workaround for bug #505387
7537
7538 2002-01-18  Paul Stoffregen  <paul AT pjrc.com>
7539
7540         * Added --xram-movc option
7541
7542 2002-01-13  Bernhard Held  <bernhard AT bernhardheld.de>
7543
7544         * support/regression/Makefile: don't include test-mcs51-stack-auto in target all
7545
7546 2002-01-11  Johan Knol
7547
7548         * Added math lib of Jesus Calvino-Fraga
7549
7550 2002-01-08  Bernhard Held  <bernhard AT bernhardheld.de>
7551
7552         * src/SDCCmain.c (processFile): fix processing of ../../src.c
7553         * support/regression/Makefile: new target test-mcs51-stack-auto
7554         * support/regression/ports/mcs51-stack-auto/spec.mk: added
7555
7556 2002-01-04  Bernhard Held  <bernhard AT bernhardheld.de>
7557
7558         * src/SDCCglue.h: printIvalCharPtr(), not printIvalChar()
7559
7560 2002-01-04  Bernhard Held  <bernhard AT bernhardheld.de>
7561
7562         * support/regression/ports/mcs51/support.c: correct setup of timer / UART
7563
7564 2002-01-03  Bernhard Held  <bernhard AT bernhardheld.de>
7565
7566         * src/SDCCsymt.c (processFuncArgs): fix #498307 by Johan
7567
7568         * src/SDCCglue.h: add definition for printIvalChar()
7569
7570 2002-01-02  Bernhard Held  <bernhard AT bernhardheld.de>
7571
7572         * src/SDCCast.c: fix #498138 by Johan
7573
7574         * src/SDCCglue.c: fix #498138 by Johan
7575
7576 2002-01-02  Bernhard Held  <bernhard AT bernhardheld.de>
7577
7578         * support/regression/Makefile: fix clean
7579
7580         * support/regression/ports/ds390/support.c: fix transmission of last character
7581
7582 2001-12-29  Sandeep Dutta  <sandeep AT ddi.com>
7583
7584         * /sdcc/src/ds390/gen.c:
7585         a) improved computing address of stack variable
7586         b) took out some #if 0 code
7587         c) improved parmBytes adjustment
7588         d) improved genPlusIncr & genMinusIncr
7589         e) genCmp could generate bad code (when left assigned to DPTR)
7590         f) Fixed bug in hasInc
7591
7592         * /sdcc/src/ds390/ralloc.c:
7593         a) packRegsForSupport could mess up live information (Fixed)
7594         b) packRegsDPTRuse could be incorrect for left & right shift
7595
7596         * /sdcc/src/mcs51/ralloc.c:
7597         packRegsForSupport could mess up the live information (Fixed)
7598
7599         * /sdcc/src/mcs51/gen.c: Fixed a bug in hasInc
7600
7601         * /sdcc/src/SDCCast.c:
7602         can reverse a loop even if function call is present as long
7603         as the loop control variable is local & is not passed as parameter
7604
7605 2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>
7606
7607         * /sdcc/ChangeLog: *** empty log message ***
7608
7609         * /sdcc/src/ds390/gen.c, /sdcc/src/ds390/main.c:
7610         More builtin function additions for TININative
7611
7612         * /sdcc/src/ds390/ralloc.c:
7613         Had broken the regression testsuite
7614
7615         * /sdcc/src/SDCCast.c: Fixed a bug in dumptree
7616
7617         * /sdcc/src/SDCCsymt.c, /sdcc/src/SDCCsymt.h:
7618         Added funcattr hasStackParms will be set for reentrant functions when there
7619         are paramteres on the stack, this helps in minimizing frame pointer generation
7620         typeFromStr can handle function pointers now
7621
7622         * /sdcc/doc/builtins.txt, /sdcc/doc/TININative.txt:
7623         *** empty log message ***
7624
7625 2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>
7626
7627         * /src/ds390/gen.c, /src/ds390/main.c:
7628         More builtin function additions for TININative
7629
7630         * /src/ds390/ralloc.c:
7631         Had broken the regression testsuite
7632
7633         * /src/SDCCast.c: Fixed a bug in dumptree
7634
7635         * /src/SDCCsymt.c, /src/SDCCsymt.h:
7636         Added funcattr hasStackParms will be set for reentrant functions when there
7637         are paramteres on the stack, this helps in minimizing frame pointer generation
7638         typeFromStr can handle function pointers now
7639
7640         * /doc/builtins.txt, /doc/TININative.txt:
7641         *** empty log message ***
7642
7643
7644 2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>
7645
7646         * /src/ds390/gen.c, /src/ds390/main.c, /src/ds390/peeph.def, /src/ds390/ralloc.c:
7647         ALPHA version for -mTININative
7648
7649         * /src/izt/i186.c, /src/izt/tlcs900h.c, /src/mcs51/main.c, /src/pic/main.c, /src/z80/main.c, /src/avr/main.c:
7650         updated to reflect changes in the port structure
7651
7652         * /src/port.h:
7653         added function do_assemble (similar to do_link) if non-null this function
7654         will be called to do assembly (-mTININative) requires a multi command
7655         assembly
7656         added function genAssemblerEnd will be called to generate assembler Epilogue
7657
7658         * /src/SDCCsymt.c:
7659         added _JavaNative to debug info printing
7660
7661         * /src/SDCCmain.c: added option --tini-libid
7662         added port->do_assemble function (-mTININative) has a multi command assemble
7663
7664         * /src/SDCCglue.c: Disabled "constExpr" check
7665         added port->genAssemblerEnd function
7666
7667         * /src/SDCCglobl.h: Added option --tini-libid value
7668
7669         * /src/SDCCast.h:
7670         tookout optimizeCompare from the header (has no external references)
7671
7672         * /src/SDCCast.c: made one more function "static"
7673
7674 2001-12-23  Michael Hope  <michaelh AT juju.net.nz>
7675
7676         * src/z80/mappings.i: Added z80asm support.
7677
7678         * src/z80/main.c: Added z80asm support on --asm=z80asm
7679
7680         * src/z80/gen.c: Fixed asm portability issues.
7681
7682         * src/asm.c (tvsprintf): Removed old code, added 'N' for function name.  For extern support.
7683
7684         * src/SDCCglue.c (printExterns): Added global/extern split.
7685
7686 2001-12-17  Bernhard Held  <bernhard AT bernhardheld.de>
7687
7688         * support/regression/Makefile: added test for mcs51 model large
7689
7690         * support/regression/ports/mcs51-large/spec.mk: added test for mcs51 model large
7691
7692         * support/regression/ports/gbz80/spec.mk: added -mgbz80
7693
7694 2001-12-05  Michael Hope  <michaelh AT juju.net.nz>
7695
7696         * src/diff.1 (Index): Many, many optmisiations.  Dhrystone up to 201.
7697
7698 1904-01-06  Michael Hope  <michaelh AT juju.net.nz>
7699
7700         * src/z80/ralloc.c (packRegsForIYUse): Fixed the case where an operand is in direct space.
7701
7702         * src/z80/gen.c (makeFreePairId): Optimised IY load by using a spare pair.
7703
7704 2001-12-02  Bernhard Held  <bernhard AT bernhardheld.de>
7705
7706         * src/mcs51/gen.c (genFunction): avoid excess "inc sp"
7707
7708         * support/regression/tests/simplefloat.c: Port to mcs51.
7709
7710 2001-11-25  Michael Hope  <michaelh AT juju.net.nz>
7711         * support/regression/tests/bug-485362.c: Added.
7712
7713         * support/regression/tests/simplefloat.c (testDivNearOne): Added.
7714
7715         * src/z80/gen.c (aopOp): Fixed case where left and result are in the same spill loc and they have different sizes.
7716
7717         * src/z80/peeph.def: Added rules for optimising two byte compares on the same thing, and to optimise two ptr assign.
7718
7719         * src/z80/gen.c (aopDump): Added a dump function.
7720
7721 2001-11-25  Bernhard Held  <bernhard AT bernhardheld.de>
7722         * sim/ucsim/s51.src/glob.cc: DS390 SFRs and bits added.
7723
7724         * sim/ucsim/s51.src/port.cc: Port 4 and 5 added.
7725
7726         * sim/ucsim/s51.src/regs51.h: DS390 SFRs added.
7727
7728         * sim/ucsim/s51.src/uc390.cc: Some details improved, CKRDY works for tinibios.
7729
7730         * sim/ucsim/s51.src/uc390cl.h: Work in progress.
7731
7732         * sim/ucsim/sim.src/uccl.h: 6 ports for DS390.
7733
7734         * support/regression/fwk/lib/testfwk.c: Run with tinibios.
7735
7736         * support/regression/ports/mcs51/spec.mk: Fine tuninig.
7737
7738         * support/regression/ports/ds390/support.c: Use tinibios.
7739
7740         * support/regression/ports/ds390/spec.mk: Fine tuning, use tinibios.
7741
7742 2001-11-23  Michael Hope  <michaelh AT juju.net.nz>support/regression/tests/bug-460010.c
7743
7744         * src/z80/ralloc.c (packRegsForHLUse3): Changed to not pack into HL if anything is in direct space.
7745         (packRegsForHLUse3): Added packing support for send, cast, and return value from a call.
7746
7747         * src/z80/peeph.def: Added rules for optimising pushes of part of a pair.
7748
7749         * src/z80/gen.c (emitCall): Changed the stack fixup to not use HL.
7750
7751 2001-11-18  Michael Hope  <michaelh AT juju.net.nz>
7752
7753         * src/z80/gen.c (genCmp): Fixed compare on unsigned.
7754
7755         * src/z80/ralloc.c (packRegsForHLUse3): Created and optimised.
7756         (packRegsForIYUse): Created and optimised.
7757
7758 2001-11-07  Michael Hope  <michaelh AT juju.net.nz>
7759
7760         * support/regression/tests/float.c (testFloatAdd): Fixed up warning.
7761 2001-11-18  Bernhard Held  <bernhard AT bernhardheld.de>
7762
7763         * sdcc/support/regression/tests/bug-460010.c: fix seg violation on host
7764
7765         * sdcc/support/regression/tests/muldiv.c: fix output on mcs51
7766
7767         * sdcc/support/regression/tests/stacks.c: fix DSEG overflow on mcs51
7768
7769 2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>
7770
7771         * sdcc/sim/device/lib/_gptrget.c: mem region 5 (idata) added
7772
7773         * sdcc/sim/device/lib/_gptrput.c: mem region 5 (idata) added
7774
7775 2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>
7776
7777         * sdcc/sim/ucsim/globals.cc: New: IXRAM.
7778
7779         * sdcc/sim/ucsim/stypes.h: New: IXRAM.
7780
7781         * sdcc/sim/ucsim/s51.src/uc390.cc: New: IXRAM.
7782
7783 2001-11-07  Michael Hope  <michaelh AT juju.net.nz>
7784
7785         * src/z80/ralloc.c (packRegsForHLUse): Banned IFXs from being packed into HL.
7786         (packRegsForHLUse): Added rule to pack address of/pointer get for itemps into HL for the Z80.
7787         (packRegsForAccUse2): Added rule to pack hbit IFXs into A.
7788
7789         * src/z80/main.c (_setDefaultOptions): Made float code re-entrant by default.
7790
7791         * src/z80/gen.c (aopGetLitWordLong): Added word support for floats.
7792         (genNotFloat): Added.
7793         (genUminusFloat): Added.
7794
7795         * device/lib/z80/Makefile: Added floating pt stubs.
7796
7797         * device/lib/Makefile.in (Z80SOURCES): Added floating pt support.
7798
7799         * src/z80/gen.c (genIpush): Fixed up a push of one byte when left is in a pair.
7800
7801         * device/lib/_fsadd.c (__fsadd): Fixed up return where the numbers are hugely different.
7802
7803 2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>
7804
7805         * sdcc/sim/ucsim/s51.src/glob.cc: Minor fix.
7806
7807         * sdcc/sim/ucsim/s51.src/regs51.h: Minor fix.
7808
7809         * sdcc/support/regression/Makefile: Add port ds390.
7810
7811         * sdcc/support/regression/ports/mcs51/spec.mk: Minor change.
7812
7813         * sdcc/support/regression/ports/z80/spec.mk: Minor change.
7814
7815         * sdcc/support/regression/ports/ds390/spec.mk: Added.
7816
7817         * sdcc/support/regression/ports/ds390/support.c: Added.
7818
7819         * sdcc/support/regression/ports/ds390/uCsim.cmd: Added.
7820
7821         * sdcc/support/regression/ports/mcs51/timeout.c: Cut.
7822
7823         * sdcc/support/regression/fwk/lib/timeout.c: Paste.
7824
7825 2001-11-04  Michael Hope  <michaelh AT juju.net.nz>
7826
7827         * device/include/malloc.h: Added z80 and gbz80 support.
7828
7829         * device/lib/gbz80/heap.s: Added.
7830
7831         * device/lib/z80/heap.s: Added.
7832
7833         * device/lib/malloc.c: Added z80 and gbz80 support.
7834
7835         * support/regression/tests/malloc.c (testMalloc): Added.
7836
7837         * src/SDCCmain.c (parseCmdLine): Added support for -Wp.
7838
7839         * support/regression/tests/bug-478094.c: Added.
7840
7841         * src/z80/gen.c (commitPair): Fixed silly gbz80/z80 commit to static bug.
7842
7843 2001-11-04  Bernhard Held  <bernhard AT bernhardheld.de>
7844
7845         * sdcc/sim/ucsim/s51.src/uc390cl.h: Improvement for ds390 to run regression tests
7846
7847         * sdcc/sim/ucsim/s51.src/uc390.h: Improvement for ds390 to run regression tests
7848
7849         * sdcc/sim/ucsim/s51.src/regs51.h: Improvement for ds390 to run regression tests
7850
7851         * sdcc/sim/ucsim/s51.src/glob.cc: Improvement for ds390 to run regression tests
7852
7853         * sdcc/support/regression/tests/bug-460010.c: Small change for ds390
7854
7855 2001-11-04  Michael Hope  <michaelh AT juju.net.nz>
7856
7857         * src/z80/peeph-gbz80.def: Removed a bad sub optimisation.
7858
7859 2001-11-03  Michael Hope  <michaelh AT juju.net.nz>
7860
7861         * support/regression/tests/bug-477927.c: Added.
7862
7863         * src/z80/peeph.def: Added minor rules.
7864
7865         * src/z80/gen.c (genPlusIncr): Added an extra plusinc rule.
7866
7867         * src/z80/peeph.def: Added jump optimisation modification.
7868
7869 2001-11-01  Michael Hope  <michaelh AT juju.net.nz>
7870
7871         * src/SDCCmain.c (linkEdit): Added runtime path detection to the mcs51 port.
7872
7873 2001-10-30  Michael Hope  <michaelh AT juju.net.nz>
7874
7875         * support/regression/tests/funptrs.c: Added.
7876
7877 2001-10-29  Michael Hope  <michaelh AT juju.net.nz>
7878
7879         * src/z80/ralloc.c (packRegsForHLUse): Fixed up bad spill due to pushing one byte via HL.
7880
7881 2001-10-28  Michael Hope  <michaelh AT juju.net.nz>
7882
7883         * src/z80/gen.c (genArrayInit): Made it work for on stack arrays.
7884
7885         * src/z80/main.c (gbz80_port =): Added rle support to the gbz80 port.
7886
7887         * src/z80/gen.c (genMinus): Fixed for where the result is one byte.
7888         (movLeft2ResultLong): Created.
7889
7890         * src/z80/ralloc.c (packRegsForHLUse): Added a couple of simple cases for the GB.
7891         (joinPushes): Added.  Joins two char pushes into a word push.
7892
7893 2001-10-27  Michael Hope  <michaelh AT juju.net.nz>
7894
7895         * support/cpp2/Makefile.in (install): Added creation of dest dir.
7896
7897         * support/makebin/Makefile (install): Added creation of dest dir.
7898
7899 2001-10-24 Karl Bongers <karl AT turbobit.com>
7900
7901         * configure.in, configure, Makefile, support/cpp: Removed cpp folder, since we have new cpp2 preprocessor code.
7902
7903 2001-10-21  Michael Hope  <michaelh AT juju.net.nz>
7904
7905         * src/z80/ralloc.c: Turned off faulty pack for one use.
7906
7907         * src/z80/peeph-gbz80.def: Removed redundent restart options.
7908
7909         * src/z80/gen.c (genMult): Added native mul for constants on the z80 and gbz80.
7910
7911 2001-10-21  Bernhard Held  <bernhard AT bernhardheld.de>
7912
7913         * support/regression/Makefile: Improved clean
7914
7915         * support/regression/ports/gbz80/spec.mk: Added clean
7916
7917         * support/regression/ports/host/spec.mk: Added clean
7918
7919         * support/regression/ports/z80/spec.mk: Added clean
7920
7921         * support/regression/ports/mcs51/spec.mk: Added clean, little improvements
7922
7923         * support/regression/ports/mcs51/timeout.c: little improvements
7924
7925 2001-10-17  Michael Hope  <michaelh AT juju.net.nz>
7926
7927         * device/lib/malloc.c (MEMHEADER): Fixed against new pedantic pointers.
7928
7929         * support/regression/fwk/include/testfwk.h: Fixed up to use function pts correctly.
7930
7931         * support/regression/generate-cases.py: Fixed up to use function pts correctly.
7932
7933 2001-10-16  Bernhard Held  <bernhard AT bernhardheld.de>
7934
7935         * support/regression/port/mcs51/spec.mk: add timeout for uCsim
7936
7937         * support/regression/port/mcs51/timeout.c: add timeout for uCsim
7938
7939 2001-10-13  Michael Hope  <michaelh AT juju.net.nz>
7940         * src/z80/gen.c (emitCall): Fixed up missing spill of HL when used to assign the result value.
7941
7942         * src/z80/ralloc.c: Turned off pack for one use as it's quite broken.
7943
7944         * src/SDCCmain.c (linkEdit): Added support for passing a legacy command line through the processor.
7945
7946         * src/mcs51/main.c (_linkCmd): Added bin path to command.
7947
7948         * src/SDCCmain.c (initValues): Added support for when it it called just to link.
7949
7950         * as/mcs51/lklibr.c (libfil;): Turned off 'library file' message.
7951
7952         * src/SDCCval.c (constVal): Fixed usage of 'L' modifier problems on ppc.
7953
7954         * support/regression/tests/longor.c: Added.
7955
7956 2001-10-11  Bernhard Held  <bernhard AT bernhardheld.de>
7957
7958         * as/mcs51/asdata.c: replaced FILENAME_MAX with PATH_MAX
7959
7960         * as/mcs51/aslink.h: define PATH_MAX
7961
7962         * as/mcs51/asm.h: define PATH_MAX
7963
7964         * as/mcs51/asmain.c: replaced FILENAME_MAX with PATH_MAX
7965
7966         * as/mcs51/asnoice.c: replaced FILENAME_MAX with PATH_MAX
7967
7968         * as/mcs51/lklex.c: replaced FILENAME_MAX with PATH_MAX
7969
7970         * as/mcs51/lkmain.c: replaced FILENAME_MAX with PATH_MAX
7971
7972         * src/SDCCglobl.h: define PATH_MAX
7973
7974         * src/SDCCmacro.c: replaced FILENAME_MAX with PATH_MAX
7975
7976         * src/SDCCmain.c: replaced FILENAME_MAX with PATH_MAX
7977
7978 2001-10-11  Michael Hope  <michaelh AT juju.net.nz>
7979
7980         * src/z80/gen.c (gencjneshort): Fixed
7981
7982         * src/z80/ralloc.c (packRegsForHLUse): Added pack into HL for cast then ipush.
7983
7984 2001-10-09  Michael Hope  <michaelh AT juju.net.nz>
7985
7986         * support/regression/tests/bug-469671.c: Added.
7987
7988         * src/z80/gen.c (shiftIntoPair): Fixed up warning.
7989
7990 2001-10-08  Michael Hope  <michaelh AT juju.net.nz>
7991
7992         * src/SDCCmain.c: Added --fommit-frame-pointer option and implemented in the z80 port.
7993
7994         * src/z80/gen.c (genPlus): Fixed to work with extended stack.  Also fixed genMinus, genCmp.  genUMinus is still left.
7995
7996 2001-10-08  Bernhar Held  <bernhard AT bernhardheld.de>
7997
7998         * src/SDCCmain.c (preProcess): added define SDCC_NOOVERLAY
7999
8000         * src/device/lib/_mulint.c  : removed hint: nooverlay bug
8001
8002         * src/device/lib/_mullong.c : removed hint: nooverlay bug
8003
8004         * src/device/lib/_divuint.c : removed hint: nooverlay bug
8005
8006         * src/device/lib/_divulong.c: removed hint: nooverlay bug
8007
8008         * src/device/lib/_moduint.c : removed hint: nooverlay bug
8009
8010         * src/device/lib/_modulong.c: removed hint: nooverlay bug
8011
8012 2001-10-07  Michael Hope  <michaelh AT juju.net.nz>
8013
8014         * 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.
8015
8016         * support/Util/NewAlloc.c (freeTrace): Changed free for the gc case to not free at all.  Fixes runtime segfault.
8017
8018         * support/regression/tests/scott-compare3.c (c_abcd): Fixed up casts.
8019
8020 2001-10-07    <johan AT FRIJA>
8021
8022         * device/lib/gets.c (gets): fixed the return value.
8023
8024 2001-10-06  Michael Hope  <michaelh AT juju.net.nz>
8025         * src/SDCCmain.c (WRITE_SEG_LOC): Fixed up to use Safe_strdup.
8026
8027         * 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.
8028
8029         * 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.
8030
8031         * src/z80/gen.c (genZ80Code): Added de-allocation via trace support.
8032
8033         * src/pic/gen.c: Removed Safe_strdup.
8034
8035         * configure.in: Added option to enable libgc support.
8036
8037         * src/SDCCbitv.c (bitVectnBitsOn): Optimised.
8038         (bitVectUnion): Optimised.
8039         (bitVectIntersect): Optimised.
8040         (bitVectBitsInCommon): Optimised.
8041         (bitVectCplAnd): Optimised.
8042
8043         * support/makebin/makebin.c (usage): Removed getopt as mingw32 doesn't have it.  Sigh.
8044
8045 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
8046
8047         * src/SDCCmain.c: distinguish between assembler debug and plain options
8048
8049         * src/avr/main.c:   remove standard assembler options
8050
8051         * src/ds390/main.c: remove standard assembler options
8052
8053         * src/mcs51/main.c: remove standard assembler options
8054
8055         * src/port.h: removed "PENDING" comment
8056
8057 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
8058
8059         * src/device/lib/_mulint.c  : new, with assember functions
8060
8061         * src/device/lib/_mullong.c : new, with assember functions
8062
8063         * src/device/lib/_divuint.c : with assember functions
8064
8065         * src/device/lib/_divsint.c : with assember functions
8066
8067         * src/device/lib/_divulong.c: with assember functions
8068
8069         * src/device/lib/_divslong.c: with assember functions
8070
8071         * src/device/lib/_moduint.c : with assember functions
8072
8073         * src/device/lib/_modsint.c : with assember functions
8074
8075         * src/device/lib/_modulong.c: with assember functions
8076
8077         * src/device/lib/_modslong.c: with assember functions
8078
8079         * src/device/lib/libint.lib:  replaced _muluint.c  and _mulsint.c  by _mulint.c
8080
8081         * src/device/lib/liblong.lib: replaced _mululong.c and _mulslong.c by _mullong.c
8082
8083         * src/device/lib/Makefile.in: replaced _muluint.c  and _mulsint.c  by _mulint.c
8084                                       replaced _mululong.c and _mulslong.c by _mullong.c
8085
8086 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
8087
8088         * src/SDCCsymt.c: sequence of specifiers in pintTypeChain() corrected
8089
8090 2001-10-01 Bernhard Held <bernhard AT bernhardheld.de>
8091
8092         * src/SDCCglue.c: test, if win32api is available for MINGW
8093
8094 2001-10-01 Bernhard Held <bernhard AT bernhardheld.de>
8095
8096         * src/SDCCsymt.c: no more _modifier in printTypeChain()
8097         * support/regression/tests/driverstruct.c: REENTRANT for mcs51
8098         * support/regression/ports/gbz80/spec.mk: removed GENERIC
8099         * support/regression/ports/host/spec.mk: removed GENERIC
8100         * support/regression/ports/mcs51/spec.mk: removed GENERIC
8101         * support/regression/ports/z80/spec.mk: removed GENERIC
8102
8103 2001-10-01  Michael Hope  <michaelh AT juju.net.nz>
8104
8105         * support/regression/fwk/lib/testfwk.c (__printf): Removed GENERIC.
8106
8107         * support/regression/tests/bug-467035.c: Created.
8108
8109 2001-10-01    <johan AT FRIJA>
8110
8111         * src/SDCC.y: fixed bug #466586 part 1
8112
8113 2001-10-01  Johan Knol <johan.knol AT iduna.nl>
8114
8115         * SDCCicode.c: z80 has no generic pointers
8116         * removed -s from strip in all Makefile(.in)'s. It is not needed, but Solaris chocks on it.
8117
8118 2001-09-30  Michael Hope  <michaelh AT juju.net.nz>
8119
8120         * sim/ucsim/cmd.src/Makefile.in ($(PRJDIR)/libcmd.a): Changed all ar references to $(AR) for Solaris.
8121
8122 2001-09-29  Michael Hope  <michaelh AT juju.net.nz>
8123
8124         * Makefile (sdcc-libs): Added makebin to the list of standard targets.
8125
8126         * support/regression/ports/z80/spec.mk: Updated to use env for sdcc bin dir for automatic regression.
8127
8128 2001-09-25  Michael Hope  <michaelh AT juju.net.nz>
8129
8130         * configure.in: Fixed up so that ucsim is only configured once.
8131
8132         * support/cpp2/configure.in: Fixed to use the program transform to append the .exe for the win32 build.
8133
8134         * src/SDCCutil.c (getPrefixFromBinPath): Fixed up to work with win32 in all of its glory.
8135         (getPathDifference): As above.
8136
8137         * src/SDCCmain.c (preProcess): Changed to use a temporary file in a proper temp directory.  Fixed case where pre-processing only.
8138
8139         * src/SDCCglue.c (tempfilename): Added function for pre-processor.
8140
8141 2001-09-23  Michael Hope  <michaelh AT juju.net.nz>
8142         * .version: Updated to 2.3.1
8143
8144         * src/z80/main.c (z80_port =): Added macro based linker and assembler command line support.
8145         Added copyright header.
8146
8147         * src/SDCCmain.c: Shifted various functions into SDCCutil.c
8148         (assemble): Added support for macro based assembler commands.
8149         (linkEdit): Added support for macro based linker commands.
8150         (preProcess): Changed the pre-processor to use macros.
8151         (_setPaths): Added functionality to autodetect the include, lib and bin dir paths.
8152         (_discoverPaths): Added support for overriding the install directory using the SDCCDIR env variable.
8153
8154         * device/lib/z80/crt0.s: Added module name for debugging.
8155
8156 2001-09-20  Michael Hope  <michaelh AT juju.net.nz>
8157
8158         * src/SDCCmain.c (printVersionInfo): Added the build date to the version info.
8159
8160         * src/SDCChasht.c (hTabDeleteByKey): Fixed delete as it would delete the last item from a bucket even if it wasn't the real one.
8161
8162         * src/SDCCglue.c: Moved gc_strdup to SDCCutil.c
8163
8164         * src/Makefile.in: Added SDCCmacro and SDCCutil
8165
8166 2001-09-19  Michael Hope  <michaelh AT juju.net.nz>
8167
8168         * src/SDCCmain.c (printVersionInfo): Added the build date to the version info.
8169
8170 2001-09-16    <johan AT FRIJA>
8171
8172         * 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.
8173
8174 2001-09-15    <johan AT FRIJA>
8175
8176         * src/mcs51/ralloc.c: (findAssignToSym): fixed bug #460662 part 1
8177         * src/ds390/ralloc.c (findAssignToSym): fixed bug #460662 part 1
8178
8179 2001-09-11    <johan AT FRIJA>
8180
8181         * src/SDCCval.c (valDiv Mod Minus Plus Shift): keep litteral expressions as small as possible (bug #460010)
8182
8183 2001-09-10  Michael Hope  <michaelh AT juju.net.nz>
8184
8185         * support/regression/tests/bug-460444.c: Added test case.
8186
8187         * src/z80/gen.c (genOr): bug 460444: if (a ^ lit) was broken for &, |, and ^.
8188         (genCast): Added justification for all of the asserts.
8189
8190 2001-09-10  Bernhard Held <bernhard AT bernhardheld.de>
8191
8192         * support/regression/support.c: _xdata replaced by xdata
8193
8194         * support/regression/spec.mk: removed _generic
8195
8196 2001-09-09  Michael Hope  <michaelh AT juju.net.nz>
8197
8198         * src/pic/ralloc.c (debugLogRegType): Removed some old types to get it to compile.
8199
8200         * src/z80/gen.c (shiftR2Left2Result): Improved the case when v = v >> n for small values of n to use less code space and time.
8201         (genrshTwo): Fixed v = v >> n where v is a negative int and n is > 8: bug 460010.
8202
8203         * src/z80/peeph.def: Added a rule to optimise shift then compare.
8204
8205         * support/regression/tests/bug-460000.c (testShiftByParam): Added test case.
8206
8207         * support/regression/tests/bug-460010.c: Added test case.
8208
8209         * support/regression/Makefile (test-host): Removed a silly 'clean' target when testing against gcc.
8210
8211 2001-09-09  Bernhard Held <bernhard AT bernhardheld.de>
8212
8213         * support/regression/Makefile: inter-port-clean adjusted for mcs51
8214
8215         * support/regression/testfwk.c: removed workaround for bug #436344
8216
8217         * support/regression/tests/bp.c: use less memory with mcs51
8218
8219         * support/regression/tests/bug-441448.c: use less memory
8220
8221         * support/regression/tests/ports/mcs51/spec.mk: cleanup, use --stack-after-data
8222
8223         * support/regression/collate-results.py: typo
8224
8225 2001-09-08  Michael Hope  <michaelh AT juju.net.nz>
8226
8227         * support/regression/tests/fetchoverlap.c: Added new test case.
8228
8229         * support/regression/tests/bp.c: Added new test case.
8230
8231         * support/regression/tests/bug-448984.c: Added new test case.
8232
8233         * support/regression/tests/pow2shifts.c: Added new test case.
8234
8235         * src/z80/gen.c: Turned off the noise it normally generates for the release.
8236         (genlshTwo): Fixed right shift for count > 8.
8237
8238         * src/z80/ralloc.c: Disabled most of the ACC packing rules as they weren't getting hit and weren't at all safe.
8239
8240 2001-09-08    <johan AT FRIJA>
8241
8242         * src/SDCCicode.c (geniCodeCall): a CPOINTER can be used as a function
8243
8244 2001-09-07    <johan AT FRIJA>
8245
8246         * src/SDCCicode.c (newiCodeCondition): fixed bug #456235 (1.77)
8247
8248         * src/SDCCglue.c (emitRegularMap): only delete a symbol when it is a symbol
8249
8250 2001-09-06    <johan AT FRIJA>
8251
8252         * src/SDCC.y: this could be a fix for bug #458744 (1.37)
8253         * bernhard noted me at this: "() equals to (void)" (1.38)
8254
8255 2001-09-05    <johan AT FRIJA>
8256
8257         * src/SDCCglue.c (emitRegularMap): a fix for bug #458099/2
8258
8259 2001-09-04    <johan AT FRIJA>
8260
8261         * src/SDCCsymt.c (checkSClass): a fix for bug #458099/1
8262
8263
8264 2001-09-04  Paul Stoffregen  <paul AT pjrc.com>
8265
8266         * pragma noinduction broke memcpy on mcs51 large model.  Moved it inside z80 optimization
8267
8268 2001-09-03  Michael Hope  <michaelh AT juju.net.nz>
8269
8270         * link/z80/aslink.h: Fixed path for PATH_MAX
8271
8272 2001-09-02  Michael Hope  <michaelh AT juju.net.nz>
8273
8274         * src/z80/gen.c (fetchLitPair): Changed so that it properly caches direct space references.
8275
8276         * support/regression/tests/addsub.c: Added cases to cover all the +, - combinations.
8277
8278         * support/regression/tests/uminus.c: Added a test for the unary minus operator.
8279
8280         * 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.
8281
8282 2001-09-01  Michael Hope  <michaelh AT juju.net.nz>
8283
8284         * src/z80/gen.c: Fixed up generator to pass the regresion tests, specifically fixing loads for longs, genCmp, and turned on the map file.
8285         (genCmp): Fixed up genCmp for the GB with longs.
8286
8287         * device/lib/gbz80/Makefile: Fixed up all the libraries to pass the regression tests.
8288
8289         * support/regression/ports/host/spec.mk: Updated to compile with the new type specifiers.
8290
8291         * device/lib/Makefile.in (Z80SOURCES): Removed old _mululong, _mulslong, and unneeded _mulint.
8292
8293         * device/lib/_mullong.c (_mulslong): Changed to actually return a value :)
8294
8295 2001-08-30  Paul Stoffregen  <paul AT pjrc.com>
8296
8297         * added peepholes 223 to 231 to mcs51 port.  These improve code when using large model.
8298
8299 2001-08-30  Michael Hope  <michaelh AT juju.net.nz>
8300
8301         * 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.
8302
8303         * src/z80/gen.c (genPlus): Changed bad long add for gb to a fall through.
8304
8305 2001-08-29  Michael Hope  <michaelh AT juju.net.nz>
8306
8307         * link/z80/aslink.h: Fixed long file name support.  Is now based off PATH_MAX instead of a constant.
8308
8309         * src/z80/gen.c: Fixed add and sub for the case where left or right are in static space.
8310
8311 2001-08-30 Bernhard Held   <bernhard AT bernhardheld.de>
8312
8313   * sim/ucsim/configure:    little improvement of Cygwin-detection
8314   * sim/ucsim/configure.in: little improvement of Cygwin-detection
8315   * sim/ucsim/cmd.src/newcmdcl.h: include <sys/types.h> to define fd_set automated build
8316   * support/regression/tests/bug-221100.c: small changes for mcs51
8317   * support/regression/tests/bug-221168.c: small changes for mcs51
8318   * support/regression/tests/bug-227710.c: small changes for mcs51
8319   * support/regression/tests/staticinit.c: small changes for mcs51
8320   * as/mcs51/aslink.h: accept everything as symbol name in rel-files, bug fix ID 452601
8321   * as/mcs51/lklex.c:  accept everything as symbol name in rel-files, bug fix ID 452601
8322   * as/mcs51/lksym.c:  accept everything as symbol name in rel-files, bug fix ID 452601
8323
8324 $Revision$