5049340a6ff4ba9e1cd77b25ba4d28c7eb5e6dba
[fw/sdcc] / ChangeLog
1 2005-08-02 Borut Razem <borut.razem AT siol.net>
2
3         * device/lib/Makefile.in: pic16 libraries build enabled since
4           gputils-0.13.2 are now localy installed at sourceforge's compile farm
5
6 2005-08-02 Raphael Neider <rneider AT web.de>
7
8         * src/pic16/gen.c (genPackBits): removed deprecated warning
9         * (genGenPointerSet): fixed bitfield detection
10
11 2005-08-02 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12
13         * device/include/mcs51/msm8xc154s.h: Removed PT2 definition, now in 8052.h.
14
15 2005-07-31 Raphael Neider <rneider AT web.de>
16
17         * device/lib/pic16/libdev/pic18f458.c,
18           device/include/pic16/pic18f458.h: added missing T0CONbits
19
20 2005-07-29 Maarten Brock <sourceforge.brock AT dse.nl>
21
22         * device/include/mcs51/msm8xc154s.h: added, thanks to Matthias Arndt
23
24 2005-07-28 Maarten Brock <sourceforge.brock AT dse.nl>
25
26         * src/mcs51/gen.c (operandsEqu): fixed bug 1246687
27
28 2005-07-23 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
29
30         * device/include/mcs51/at89c51ed2.h: added.
31
32 2005-07-23 Raphael Neider <rneider AT web.de>
33
34         * src/pic/gen.h: added emitpcode macro for debugging
35         * src/pic/gen.c (emitpcode): renamed to emitpcode_real
36           and replace by macro adding debug information on demand
37         * (genNot): fixed to C semantics (!0 = 1; !x = 0 iff x != 0)
38         * (gencjne): tried to fix; replaced with correct (slower) code
39         * (gen{Unp,P}ackBits): fixed single bit access
40         * src/pic/pcode.c (AnalyzepCode): fixed DFPRINTF argument
41         * src/pic/pcodepeep.c (pCodeSearchCondition): fixed finding
42           previous instruction
43         * src/pic/pcoderegs.c (regIsSpecial): NEW, check whether a
44           register has to be handled with care (forbidding movement
45           of assignments/uses, removing assignments completely, ...)
46         * (pCodeOptime2pCodes): make use of regIsSpecial
47         * added lots of debugging output (commented out)
48         * src/pic/rallloc.c (deassignLRs): prevent operand registers
49           from being reused as result UNLESS it is known to work
50
51 2005-07-23 Maarten Brock <sourceforge.brock AT dse.nl>
52
53         * support/Util/dbuf.h: include <stddef.h> for size_t
54         * .version: changed to version 2.5.2
55
56 2005-07-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
57
58         * src/SDCCloop.c (loopInvariants): fixed bug #1234048
59
60 2005-07-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
61
62         * src/hc08/gen.c (genMinus): fixed bug #1241835,
63           (genModOneByte): removed needless psha/pula
64
65 2005-07-22 Raphael Neider <rneider AT web.de>
66
67         * src/SDCCmain.c (linkEdit): initialized linkerScriptFileName,
68           have PIC14 handled like PIC16, fixes broken pic14 linker calls
69         * src/pic/gen.c (resolveIfx): do not "invent" labels
70         * (genSkipc): changed to positive logic
71         * (genSkipCond): removed as no longer needed
72         * (pic14_mov2w_regOrLit,genCmp): NEW, replacement for buggy version,
73           backport from PIC16
74         * (genLeftShift): check operands are in different registers
75         * src/pic/genarith.c (genPlus): replaced INCF with ADDLW as
76           INCF does not update CARRY...
77         * src/pic/main.c: fixed _linkCmd
78         * src/pic/pcode.c (unlinkpCode): added inactive code
79         * src/pic/ralloc.c (deassignLRs): keep arguments to shift operations
80           alive (do not assign result and operand overlapping registers)
81
82 2005-07-22 Raphael Neider <rneider AT web.de>
83
84         * src/pic/device.c (dump_sfr): replaced register declaration with
85           call to emitSymbolToFile() to avoid duplicate symbols
86         * (assignRelocatableRegisters): do not declare external symbols
87         * src/pic/ralloc.c (allocNewDirReg): fixed to get size of arrays
88           right (take size of type, not etype)
89         * (allocDirReg): fixed call to allocNewDirReg() to pass OP_SYM_TYPE
90         * (writeUsedRegs): also dump dynDirectRegs (e.g. local variables)
91         * (packRegsForAccUse): disabled assignment of WREG as
92           the result reg to prevent occurence of just fixed #1235003,
93           fixes #1242954
94         * src/pic/glue.c (emitSymbolToFile): NEW, central place to declare
95           symbols (avoids duplicate symbols in .asm file)
96         * (pic14emitRegularMap): use emitSymbolToFile()
97         * src/pic/gen.c (aopOp): fixed spillLocation handling
98         * (gen{Unp,P}ackBits): fixed acquiring bit-operands
99         * (genDataPointerSet): removed unneccessary variables/output
100
101 2005-07-22 Maarten Brock <sourceforge.brock AT dse.nl>
102
103         * as/mcs51/lkarea.c: enlarged codemap for banked memory
104         * device/lib/mcs51/crtbank.asm: added # to 0x0F
105
106 2005-07-21 Raphael Neider <rneider AT web.de>
107
108         * src/pic/gen.c (aopOp): do not generate AOP_ACC operands as pic14
109           architecture cannot handle them efficiently, fixes bug #1235003
110         * src/pic16/device.c (pic16_dump_{u,i}section,pic16_dump_int_registers):
111           check for empty sets before using them (fixes bug #1232190)
112
113 2005-07-19 Maarten Brock <sourceforge.brock AT dse.nl>
114
115         * as/mcs51/lkarea.c (lnkarea, lnkarea2): improved BSEG size calculation,
116           (lnksect2): generate warnings for memory overlap
117         * src/SDCC.lex (doPragma, process_pragma): added pragma's codeseg and
118           constseg to set the name of these segments so you can instruct the linker
119           to place them in banks
120         * src/SDCCast.c (decorateType): use new macro IS_FUNCPTR()
121         * src/SDCCglobl.h: added MODEL_HUGE to enum,
122           added code_seg and const_seg to options
123         * src/SDCCglue.c (emitMaps): use options.const_seg,
124           (createInterruptVect): put interrupt vectors in segment HOME,
125           (glue): put HOME before static segment and put the main glue in HOME,
126           (glue): use options.code_seg
127         * src/SDCCicode.c (geniCodeCall): use new macro IS_FUNCPTR()
128         * src/SDCCmain.c: added option --codeseg and --constseg to set the name of
129           these segments so you can instruct the linker to place them in banks
130           (linkEdit): use code_loc for HOME segment which should be the first
131           segment in code memory now
132         * src/SDCCmem.c: fixed more stuff like bug 1238386
133         * src/SDCCsymt.c (getSize): use generic pointer size for banked functions,
134           (changePointer): don't change function pointers to code pointers for
135           banked functions,
136           (compareType): added exceptional check for banked function pointers
137         * src/SDCCsymt.h: changed IFFUNC_ISBANKEDCALL, added IS_FUNCPTR
138         * src/hc08/main.c (_hc08_genAssemblerPreamble): put HOME first, put CSEG
139           after static in code memory
140         * src/mcs51/gen.c: added aopLiteralLong prototype,
141           (aopForSym): use getSize for functions,
142           (genCall): generate banked calls over one trampoline __sdcc_banked_call
143           in HOME with lsb of address in r0, msb in r1 and bank in r2, use
144           -Wl-bBANKSEG=0xbbaaaa option to set the address (aaaa) and bank (bb) of
145           the segment,
146           (genPcall): use call for literal function pointers and generate banked
147           calls over the one trampoline so there's only one place for the user to
148           modify according to his/hers hardware,
149           (genEndFunction): jump to __sdcc_banked_ret in HOME for banked functions,
150           (genPlusIncr): moved check icount>4 beyond inc dptr optimization
151         * src/mcs51/main.c: added keyword banked,
152           (_mcs51_genExtraAreas): put HOME first followed by GSINIT, STATIC and CSEG
153         * support/Util/SDCCerr.c,
154         * support/Util/SDCCerr.h: added E_BANKED_WITH_CALLEESAVES, registers are
155           needed for passing the bank and address to the trampoline
156         * device/lib/mcs51/crtbank.asm: added for bankswitching
157         * device/lib/mcs51/Makefile: added crtbank
158
159 2005-07-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
160
161         * src/SDCCcse.c (algebraicOpts): fixed loss of volatility
162           for fields at offset 0 of a struct or union as reported
163           on 2005-07-07 in the developer mailing list.
164
165 2005-07-15 Maarten Brock <sourceforge.brock AT dse.nl>
166
167         * src/SDCCmem.c: fixed bug 1238386
168
169 2005-07-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
170
171         * src/mcs51/peeph.def: added labelrefcounting for peepholes
172           (patch #1144962), added peephole 300, enabled 259.x
173         * doc/sdccman.lyx: removed screenshot and provided link instead
174
175 2005-07-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
176
177         * doc/sdccman.lyx: added section about debugging with ddd
178         * doc/figures/ddd_example.eps: screenshot of debugging session
179
180 2005-07-04 Raphael Neider <rneider AT web.de>
181
182         * src/pic/gen.c (genPointerGet): handle pointers to CONST values
183           like CODE pointers, fixes #1115683
184         * src/pic/pcode.c (DoBankSelect): forget LastRegIdx during function
185           call, fixes bugs #1232211, #1228110,
186           fixed wrong casts to pCodeFlow from pCodeInstructions
187
188 2005-07-04 Raphael Neider <rneider AT web.de>
189
190         * src/pic/gen.c (popGet): changed assert to allow for
191           bit operands
192         * (popGetAddr): changed signature to provide
193           an additional index, patched all call sites
194         * (genCmpEq): handle literal-like operands correctly
195         * (genAddrOf): added sanity checks on __code/__data pointers
196         * (genAssign): added handling of symbols from __code section
197         * (gencjne): do not generate code for comparisons whose result
198           is neither stored nor used, fixes bug #1171114
199         * (AccLsh, AccRsh): operate on operand instead of WREG
200         * (shift{Left,Right}_Left2ResultLit): NEW, size independant
201           replacement for Shift{LR}{12}Left2Result; shift (byte/int/long)
202           by known count
203         * rewrote complete shift-by-literal logic, commented unused
204           functions out
205         * (genConstPointerGet): get multiple bytes (if result size > 1),
206           fixed handling of non-immediate addresses
207         * (genPointerGet): handle CODE pointers like CONST pointers
208         * (genpic14Code): insert C-SRC lines as Cource-pCodes
209         * ({aop,op}_isLitLike): NEW, single place to decide whether an
210           operand is to be treated as a literal or not
211         * (mov2w,genPcall,genCmpEq),
212           src/pic/genarith.c: use aop_isLitLike() to decide between
213           literal/register contents
214         * (addSign): added missing offset
215         * src/pic/gen.h: remove newline after FENTRY/FEXIT comments,
216           only emit comment in debug-mode,
217           use {aop,op}_isLitLike throughout the file
218         * src/pic/glue.c: fix initializers for pointers (work in progress)
219         * src/pic/pcode.c (get_op): honor index on _const symbols
220         * ({reset,dump}pCodeStatistics): NEW, estimate code size
221         * (dumppBlock): added pCode size estimation
222         * src/pic/ralloc.c (deassignLRs,serialRegAssign,packRegisters):
223           check for IS_SYMOP before OP_SYMBOL'ing
224         * fixed indentation, compacted switch-statements
225         * (allocReg): find free register and allocate it instead of
226           allocating new registers all the time
227         * (deassignLRs): prevent POINTER_GET's from being assigned the same
228           registers as its operands (necessary only for multibyte GETs)
229
230 2005-07-01 Raphael Neider <rneider AT web.de>
231
232         * src/pic/gen.h: added prototypes emitpComment, popGetAddr and
233           debugging .asm-output macros FENTRY + FEXIT
234         * src/pic/gen.c (Safe_vsnprintf): NEW, is there a more generic
235           way... I wonder...
236         * (emitpComment): NEW, printf to pCode
237         * (popGet): added assert on too large offsets, fixed PO_IMMEDIATE's
238           offset handling
239         * (popGetAddr): NEW, variant of popGet to access an immediates
240           high(er) bytes instead of the n'th byte of memory they reference,
241           replaced popGet with popGetAddr where neccessary
242         * (genDataPointerGet): reactivated and fixed implementation
243         * (genNearPointerGet): enabled call to genDataPointerGet, fixes array-
244           accesses
245         * (genDataPointerSet): fixed multibyte assignments
246         * (genpic14Code): fixed --i-code-in-asm handling
247         * src/pic/genarith.c: fixed PO_IMMEDIATE issue using popGetAddr,
248         * (genPlus): fixed index-out-of-bounds error
249         * src/pic/pcode.c (get_op): fixed PO_IMMEDIATE's index/offset handling
250         * src/pic/ralloc.c: added debugging output macro FENTRY2
251         * (spillThis): fixed indentation, enbraced for-body for clarity
252         * (rematStr): commented out as now unused
253         * (regTypeNum): commented out special spill case (overwrites
254           arbitrary values)
255         * fixes bugs #1229346, #1216476 (both arrays) and #1115667 (SIGSEGV)
256
257 2005-06-30 Maarten Brock <sourceforge.brock AT dse.nl>
258
259         * doc/sdccman.lyx: documented sfr16/sfr32,
260           added example for using storage class with function pointers
261         * src/mcs51/gen.c (genPlusIncr): optimized small offsets from dptr
262
263 2005-06-28 Maarten Brock <sourceforge.brock AT dse.nl>
264
265         * device/lib/_gptrget.c: also push/pop _PSBANK, added # to 0x03
266         * device/lib/_itoa.c,
267         * device/lib/_ltoa.c: optimized codesize
268         * src/SDCCsymt.c (checkSClass): added sanity check for sfr at addresses,
269           but don't know how to suppress the double warning.
270         * src/mcs51/gen.c (genPlusIncr): fixed bug when incrementing volatile int's
271         * support/Util/SDCCerr.c,
272         * support/Util/SDCCerr.h: added warning W_SFR_ABSRANGE for sanity check
273
274 2005-06-27 Maarten Brock <sourceforge.brock AT dse.nl>
275
276         * as/mcs51/asexpr.c (expr): disabled warning "not in .flat24 mode",
277           fixed old K&R prototypes
278         * as/mcs51/asout.c (outrb): always output as if generating 24bit addresses
279         * device/lib/_gptrget.c,
280         * device/lib/_gptrgetc.c,
281         * device/lib/_gptrput.c: changed versions for new memory indicator values,
282           also new versions for small generic pointers and banked generic pointers
283         * src/port.h: added const_name
284         * src/SDCC.lex: added keywords sfr16, __sfr16, sfr32, __sfr32
285         * src/SDCC.y: added tokens SFR16, SFR32 and their sfr_attributes
286         * src/SDCCcse.c (findPrevIc): check all associative operators
287         * src/SDCCglue.c (emitMaps): use CONST_NAME if defined
288         * src/SDCCicode.h: added macro IS_ASSOCIATIVE
289         * src/SDCCmem.c: updated comments,
290           set far-space to 0 for pdata, results in optimized code
291         * src/SDCCmem.h: added macro CONST_NAME
292         * src/SDCCsymt.h: renumerated generic pointer types GPTYPE_... thereby
293           moving the info into the highest bits, see also gptrget/gptrput
294         * src/src.dsp: added sdcc.ico to project files
295         * src/avr/gen.c (genCast): fixed bug 0x%d
296         * src/avr/main.c (avr_port): added "CONST (CODE)" for const_name
297         * src/ds390/gen.c (aopForRemat, adjustArithmeticResult): disconnected direct
298           relation between ptr_type and DCL_TYPE,
299           (genCast): fixed bug 0x%d
300         * src/ds390/main.c (ds390_port, tininative_port, ds400_port): added "CONST
301           (CODE)" for const_name
302         * src/hc08/gen.c (genCast): fixed bug 0x%d
303         * src/hc08/main.c (_hc08_genAssemblerPreamble): added .area ...const_name,
304           (hc08_port): added "CONST (CODE)" for const_name
305         * src/mcs51/gen.c (aopForSym): optimized pushing ACC,
306           (aopForRemat, adjustArithmeticResult): disconnected direct relation
307           between ptr_type and DCL_TYPE,
308           (aopGetUsesAcc, aopGet, aopPut): changed first parameter from asmop* to
309           operand* and took AOP() inside function so sfr-ness can be checked,
310           (all over): repaired calls to aopGetUsesAcc, aopGet, aopPut to comply with
311           new prototype,
312           (genFunction, genEndFunction): optimized stack setup,
313           (genMinus): optimized for literals with ending zeroes (in bytes),
314           (genCast): fixed bug 0x%d
315         * src/mcs51/main.c (_mcs51_keywords): added sfr16 and sfr32,
316           (mcs51_port): added "CONST (CODE)" for const_name
317         * src/mcs51/peeph.def: made rule 226 more generic
318         * src/pic/main.c (pic_port): added "CONST (CODE)" for const_name
319         * src/pic16/main.c (pic16_port): added "CONST (CODE)" for const_name
320         * src/xa51/main.c (xa51_port): added "CONST (CODE)" for const_name
321         * src/z80/main.c (z80_port): added NULL for const_name,
322           (gbz80_port): added NULL for const_name
323         * support/regression/tests/bug663539.c,
324         * support/regression/tests/sfr16.c: new tests
325
326 2005-06-25 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
327
328         * device/include/mcs51/p89v51rd2.h, device/include/mcs51/at89s53.h: added.
329
330 2005-06-24 Raphael Neider <rneider AT web.de>
331
332         * device/lib/pic16/libdev/pic18f[68][567]20.c:
333           corrected typos...
334         * device/include/pic16/signal.h: added USBIF
335           and SIG_USB
336
337 2005-06-24 Raphael Neider <rneider AT web.de>
338
339         * device/lib/pic16/libdev/pic18f2455.c,
340           device/include/pic16/pic18f2455.h: NEW
341         * device/include/pic16/pic18fregs.h,
342           device/lib/pic16/pics.all,
343           src/pic16/device.c: added 18f2455
344         * device/lib/pic16/libdev/pic18f[68][567]20.c,
345           device/include/pic16/{pic18f[68][567].h,usart.h}:
346           replaced MULTIPLE_USARTS define with more relaible
347           compatibility sfrs (for USART access)
348
349 2005-06-20 Slade Rich <slade_rich AT users.sourceforge.net>
350
351         * src/pic/pcode.c : Fixed problem when a string constant contains a "\r\n"
352           and the output asm file line is printed on two lines.
353
354 2005-06-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
355
356         * sim/ucsim/hc08.src/inst.cc (inst_condbranch): fixed simulation of
357           BGT, BLE, BHI, and BLS instructions
358         * src/hc08/gen.c (outAcc, outBitC, outBitNV, genCmpLt, genCmpGt,
359           genCmpEq): removed
360         * src/hc08/gen.c (genCmpEQorNE, genCmp, branchopCmp, nameCmp,
361           negatedCmp, exchangedCmp, genhc08Code): rewrite of comparison handling,
362           fixes bug #1216342
363         * src/hc08/peeph.def: added rules 2g - 2l for new conditional branches
364
365 2005-06-15 Raphael Neider <rneider AT web.de>
366
367         * src/pic16/NOTES: moved Vangelis from active developers to people to contact
368         * device/include/pic16/{6520.h,8520.h}: fixed configuration bits
369         * src/pic16/gen.c (): prevent iTemps from being considered to be in CODESPACE,
370           fixes bug #1221120; for symbols in CODESPACE get number of bytes to read from
371           OP_SYM_TYPE() instead of OP_SYM_ETYPE()
372
373 2005-06-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
374
375         * device/include/mcs51/reg764.h: Changed PB0 to PBO as requested by
376           Marcel Telka in bug #1215704
377
378 2005-06-02 Slade Rich <slade_rich AT users.sourceforge.net>
379
380         * src/pic/pcode.c : Changed pseudo stack size to 15 to allow WSAVE to be
381           located in shared memory bank.
382
383 2005-05-31 Raphael Neider <rneider AT web.de>
384
385         * src/pic16/{gen.c,genarith.c}: replaced sign-extension
386           "CLRF, BTFSC <signbit>, DECF/COMF" with side-effect-free
387           "CLRF, BTFSC <signbit>, SETF"; fixes "long>>9"
388
389 2005-05-27 Maarten Brock <sourceforge.brock AT dse.nl>
390
391         * device/lib/_strncpy.c: fixed the fix
392
393 2005-05-26 Raphael Neider <rneider AT web.de>
394
395         * src/pic16/glue.c (pic16_printIvalChar): fixed _constant_ string
396           initializers with \0, bug #1208187
397         * src/pic/glue.c (printIvalChar): fixed (non- and constant) string
398           intializers with \0, bug #1208187
399
400 2005-05-26 Raphael Neider <rneider AT web.de>
401
402         * src/pic16/glue.c (pic16_printIvalChar): fixed string
403           initializers with \0, bug #1208187
404         * src/pic16/main.c (_process_pragma): added sanity checks
405           for stack position and size, emit warnings when appropriate
406
407 2005-05-26 Maarten Brock <sourceforge.brock AT dse.nl>
408
409         * device/lib/_strncpy.c: fixed not filling with \0
410
411 2005-05-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
412
413         * src/SDCCast.c (funcOfType, funcOfTypeVarg, stringToSymbol,
414           createFunction),
415         * src/SDCC.y (external_definition, enumerator, parameter_declaration,
416           compound_statement),
417         * src/SDCCsymt.h,
418         * src/SDCCsymt.c (addSymChain, processFuncArgs): fixed bug #1159134
419
420 2005-05-24 Raphael Neider <rneider AT web.de>
421
422         * src/pic16/glue.c (pic16_printGPointerType): fixed #1207796
423
424 2005-05-24 Raphael Neider <rneider AT web.de>
425
426         * device/include/pic16/pic18f{442,452,458}.h: fixed wrong
427           TRISE definitions, closes bug #1162453
428
429 2005-05-22 Raphael Neider <rneider AT web.de>
430
431         * src/pic16/main.c (_process_pragma): check for missing
432           arguments to pragmas code and udata
433         * device/include/pic16/pic18f{2550,4331,4455,4520}.h:
434           consistency fixes to match other headers (thanks to Jim Paris)
435         * device/lib/pic16/libio/i2c.ignore: 18f4331 provides no I2C
436
437 2005-05-21 Maarten Brock <sourceforge.brock AT dse.nl>
438
439         * src/SDCCicode.c (isOperandEqual): fixed missing ;
440
441 2005-05-19 Maarten Brock <sourceforge.brock AT dse.nl>
442
443         * support/regression/tests/bug1198642.c: new test
444         * src/SDCCicode.c (isOperandEqual): fixed bug 1198642
445         * src/SDCCcse.c (findPrevIc): added comment, please have a look
446         * support/scripts/resource.h,
447         * support/scripts/resource.rc,
448         * src/src.dsp: added sdcc.ico to project as icon for sdcc.exe
449         * support/scripts/sdcc.ico: added 32x32 icon
450
451 2005-05-18 Raphael Neider <rneider AT web.de>
452
453         * device/lib/pic16/libdev/pic18f*.c,
454         * device/include/pic16/pic18f*.h: updated "sfr" and "at X"
455           keywords to "__sfr" and "__at (X)"
456         * device/include/pic16/pic18fregs.h: added pic18f4520
457         * src/pic16/pcode.c (pic16_pCode2str): fixed (?) bug
458           #1203088 (MPLAB compatibility)
459
460 2005-05-17 Raphael Neider <rneider AT web.de>
461
462         * device/include/pic16/pic18f{2550,4331,4455,4520}.h: NEW
463         * device/lib/pic16/libdev/pic18f{2550,4331,4455,4520}.c: NEW
464         * device/lib/pic16/pics.all: added new devices
465         * src/pic16/device.c: added support for pic18f4520
466
467 2005-05-16 Raphael Neider <rneider AT web.de>
468         * src/pic16/gen.{c,h}: s/mov2f/pic16_mov2f made public
469         * src/pic16/genarith.c (genAddLit): fixed bug 1202480
470         * src/pic16/pcode.{c,h} (pic16_newpCodeOpBit_simple): NEW
471           convenience function for bit access
472
473 2005-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
474
475         * device/lib/printf_large.c: fixed bug 1193299
476         * support/regression/tests/bug1057979.c: added test %3.3s
477
478 2005-05-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
479
480         * device/include/mcs51/8051.h,
481         * device/include/mcs51/8052.h: made parseable with lint
482         * device/include/mcs51/lint.h: added include file for (sp)lint
483         * doc/sdccman.lyx: added doc about use of splint (syntax checking tool)
484         * doc/cdbfileformat.lyx,
485         * doc/test_suite_spec.lyx: hardcoded date to the date of last text change
486
487 2005-05-14 Raphael Neider <rneider AT web.de>
488
489         * device/lib/pic16/Makefile.common.in: add --optimize-df to OPT_FLAGS
490         * device/lib/pic16/libc/stdlib/itoa.c (new)
491         * device/lib/pic16/libc/stdlib/Makefile: have itoa.c built
492         * device/lib/pic16/libio/Makefile: exclude subdir according to
493           ${subdir}.ignore for certain PICs (lacking e.g. i2c)
494         * device/lib/pic16/libio/i2c.ignore (new): pic18f1220 has no I2C support
495         * src/pic16/gen.c (genFunction): prevent annoying warning
496         * src/pic16/pcode.c: renamed stack_t to dynstack_t to prevent
497           nameclashes on BeOS
498         * support/cpp2/cppmain.c (cpp_output_string): new
499         * support/cpp2/cpplib.c (_cpp_do__Pragma): fixed _Pragma(""),
500           fixes bug 1116802
501
502 2005-05-13 Borut Razem <borut.razem AT siol.net>
503
504         * src/SDCCmain.c (linkEdit): fixed bug 1195202
505
506 2005-05-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
507
508         * .version: changed to version 2.5.1; back to bleeding edge development
509
510 2005-05-11 Borut Razem <borut.razem AT siol.net>
511
512         * doc/sdccman.lyx doc/cdbfileformat.lyx doc/test_suite_spec.lyx:
513           generate PDF version 1.3 documents
514
515 2005-05-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
516
517         * .version: changed to version 2.5.0
518
519 2005-04-27 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
520
521         * doc/sdccman.lyx: updated weblinks, index and smaller updates
522
523 2005-04-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
524
525         * doc/sdccman.lyx: changed version 2.5.0, documented --std-c89,
526         --std-sdcc89, --std-c99, --std-sdcc99, and the corresponding #pragmas, as
527         well as many smaller updates.
528         * .version: changed to version 2.5.0-pre1
529
530 2005-04-26 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
531
532         * src/SDCCmain.c (setIncludePath): added port->target to SDCC_INCLUDE_NAME
533
534 2005-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
535
536         * support/regression/tests/bug1185672.c: added
537         * src/mcs51/gen.c (aopGetUsesAcc, genCpl, genAnd, genOr, genXor): fixed
538           bug 1185672
539         * src/mcs51/gen.c (genCall): added comments, made it look safer
540         * src/mcs51/gen.c (genEndFunction): simplified
541
542 2005-04-25 Maarten Brock <sourceforge.brock AT dse.nl>
543
544         * src/mcs51/ralloc.c (serialRegAssign): fixed bug 1189609
545
546 2005-04-14 Borut Razem <borut.razem AT siol.net>
547
548         * fixed bug 1045046 - SIGSEGV with really simple code?:
549           src/pic/pcode.c (pCodeInitRegisters)- pseudo stack size increased to 16
550           src/pic/ralloc.c (typeRegWithIdx) - error message on pseudo stack overflow
551
552 2005-04-14 Borut Razem <borut.razem AT siol.net>
553
554         * src/pic16/gen.c (genInline), src/pic16/main.c (_process_pragma),
555           src/pic16/device.h: temporarily disabled experimental #inline pragma
556           for 2.5.0 release
557
558 2005-04-14 Maarten Brock <sourceforge.brock AT dse.nl>
559
560         * device/include/z80/stdio.h,
561         * device/include/z80/string.h: removed these highly incomplete files so
562           SDCC can use the default ones in device/include/
563
564 2005-04-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
565
566         * src/mcs51/gen.c (genEndFunction): removed unused variable to fix
567         gcc warning.
568         * device/lib/Makefile.in: default PORTINCDIR to the mcs51 subdir to
569         fix sdcpp warnings.
570
571 2005-04-12 Maarten Brock <sourceforge.brock AT dse.nl>
572
573         * device/include/malloc.h: removed redundant __reentrant prototypes
574         * device/lib/_mullong.c: added working xstack variant in asm (C version
575           doesn't pass regression tests)
576         * device/lib/bpx.c: used __data and made bpx char for mcs51
577         * src/SDCCast.c (decorateType): removed unused GPTYPE_IDATA,
578           (createFunction): fixed bug with xstackPtr
579         * src/SDCCcse.c: corrected comments
580         * src/SDCCopt.c (convertToFcall): fixed warning in MSVC,
581           (killDeadCode, eBBlockFromiCode): removed unused code
582         * src/SDCCsymt.h: removed unused GPTYPE_GPTR and GPTYPE_IDATA,
583           corrected comments
584         * src/mcs51/gen.c (aopForSym, aopPut, toBoolean, unsaveRegisters,
585           assignResultValue, genCall, genFunction, genEndFunction, genAnd,
586           genOr, genXor, genAddrOf): fixed several bugs concerning xstack
587           (genModOneByte): fixed warning in MSVC
588         * src/mcs51/main.c (): added comments
589         * src/mcs51/peeph.def: changed 129 to 129.a, added 129.b, 129.c & 129.d
590
591 2005-04-12 Maarten Brock <sourceforge.brock AT dse.nl>
592
593         * src/SDCCmain.c (linkEdit): oops, changed one line too many
594
595 2005-04-11 Maarten Brock <sourceforge.brock AT dse.nl>
596
597         * src/SDCCmain.c (linkEdit): fixed bug with finding crt0.o for z80
598
599 2005-04-10 Vangelis Rokas <vrokas AT users.sourceforge.net>
600
601         * src/pic16/glue.c (printIvalChar): fixed bug when emitting
602         characters arrays of larger size than the declared one.
603
604 2005-04-10 Borut Razem <borut.razem AT siol.net>
605
606         * src/pic/gen.c (genInline),
607           src/pic/pcode.c (newpCodeAsmDir), (pCode2str),
608           (genericPrint), (unlinkpCodeFromBranch), (compareLabel),
609           (findNextInstruction), (findPrevInstruction),
610           (findInstructionUsingLabel),
611           src/pic/pcode.h: fixed bug #1164907 - Labels not being recognized
612         * src/pic/pcode.c (findLabel): added missing '\n'
613         * src/src.dsp: added SDCCdwarf2.c to the project
614
615 2005-04-09 Borut Razem <borut.razem AT siol.net>
616
617         * support/scripts/sdcc.nsi: added include/hc08/* h to NSIS setup
618
619 2005-04-08 Raphael Neider <rneider AT web.de>
620
621         * src/pic16/pcode.c: added helpers defmapInsertAfter (insert a new item
622           into the chain after a given one) and mergeDefmapSymbols (combine
623           defmap entries for each symbol per pcode)
624         * (createDefmap): have defmap entries merged in the end
625         * (defmapReplaceSymRef): split defmap entries covering two accesses to
626           a symbol before replacing one access type's symbol, merge symbols in
627           the end (replacement symbol might already have an entry)
628         * (assignValnums): keep reference to written WREG intact
629
630 2005-04-08 Raphael Neider <rneider AT web.de>
631
632         * src/pic16/pcode.c (struct defmap_s): named anonymous union (for
633           Alpha)
634
635 2005-04-08 Vangelis Rokas <vrokas AT users.sourceforge.net>
636
637         * src/pic16/pcode.c (pic16_get_op2): enlarged size of array b to 128
638         bytes
639
640 2005-04-07 Raphael Neider <rneider AT web.de>
641
642         * device/include/pic16/usart.h: added compatibility defines for
643           devices with more than one USART
644         * device/include/pic16/pic18f[68][567]20.h: activated above defines
645
646 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
647
648         * device/lib/Makefile.in: updated for port specific include
649
650 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
651
652         * support/regression/ports/mcs51/spec.mk: added mcs51 include
653
654 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
655
656         * device/include/8051.h,
657         * device/include/8052.h,
658         * device/include/at89S8252.h,
659         * device/include/at89c55.h,
660         * device/include/at89x051.h,
661         * device/include/at89x51.h,
662         * device/include/at89x52.h,
663         * device/include/mcs51reg.h,
664         * device/include/reg51.h,
665         * device/include/reg764.h,
666         * device/include/regc515c.h,
667         * device/include/sab80515.h: (re)moved these 12 files
668         * device/include/mcs51/8051.h,
669         * device/include/mcs51/8052.h,
670         * device/include/mcs51/at89S8252.h,
671         * device/include/mcs51/at89c55.h,
672         * device/include/mcs51/at89x051.h,
673         * device/include/mcs51/at89x51.h,
674         * device/include/mcs51/at89x52.h,
675         * device/include/mcs51/mcs51reg.h,
676         * device/include/mcs51/reg51.h,
677         * device/include/mcs51/reg764.h,
678         * device/include/mcs51/regc515c.h,
679         * device/include/mcs51/sab80515.h: and added them here
680
681 2005-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
682
683         * device/include/stdarg.h: changed SDCC specific keywords to double
684           underlined form.
685         * device/include/stdint.h: changed intptr_t and uintptr_t for others than
686           mcs51 and ds390.
687         * device/include/hc08/mc68hc908gp32.h,
688         * device/include/hc08/mc68hc908jb8.h,
689         * device/include/hc08/mc68hc908jkjl.h,
690         * device/include/hc08/mc68hc908qy.h: fixed comments
691         * device/include/mcs51/README: updated
692         * device/include/mcs51/c8051f120.h: added PINRSF
693         * device/lib/pic16/libc/stdlib/crc16.c: fixed comments
694         * src/pic16/pcode.c: MSVC6 doesn't accept declaring new variables
695           amidst code. Also inline is not supported.
696
697 2005-04-06 Raphael Neider <rneider AT web.de>
698
699         * src/pic16/pcode.c (pic16_pCodeReplace): also update pcflow->end
700         * (createDefmap): fixed CALLs to depend on FSR1 and RETLW to restore
701           callers stack/frame pointers
702
703 2005-04-06 Vangelis Rokas <vrokas AT users.sourceforge.net>
704
705         * device/include/pic16/usart.h: added, missing in previous commit,
706         * device/include/pic16/adc.h: fixed typo,
707         * device/lib/pic16/libc/utils/cvtdec.S: added missing in previous
708         commit,
709         * device/lib/pic16/libc/stdlib/g_ftoa.S: modified to include
710         <p18fxxx.inc>
711         * device/lib/pic16/libc/stdio/streams.c: leave stdin, stdout
712         uninitialized because a bug appears with gplink
713         * device/lib/pic16/{some makefiles}: moved $(CSTD) from CFLAGS to
714         COMPILE_FLAGS and added CPPFLAGS with -nostdinc because sdcpp
715         complains for unrecognised option
716
717 2005-04-05 Raphael Neider <rneider AT web.de>
718
719         * src/pic16/gen.c (pic16_popCopyReg): made copying work for extended
720           structs as well (using memcpy)
721         * (genFunction): fixed comparison, used pCodeOpLabel to reduce warning
722           on ISRs (GOTO has no label)
723         * src/pic16/device.h: added OF_OPTIMIZE_DF
724         * src/pic16/main.c: added compiler switch --optimize-df to enable the
725           new data flow analysis/optimization
726         * src/pic16/pcode.c: added (prototypes for and implementation of)
727           dataflow analysis functions, fixed pCodeInstructions' inCond and
728           outCond values, made RCALL a branch instruction
729         * (pic16_unlinkpCode): keep C line if possible
730         * (pic16_pCodeUnlink): removed cast on left side of assignment, have
731           C line moved if possible
732         * (pic16_getRegFrompCodeOp): NEW, improved version of...
733         * (pic16_getRegFromInstruction,pic16_getRegFromInstruction2): changed
734           to use new pic16_getRegFrompCodeOp (works for more SFRs)
735         * (pic16_BuildFlow): fixed skip instructions with label (did not start
736           new flow)
737         * (pic16_getJumptabpCode): NEW, needed in...
738         * (LinkFlow): fixed handling of jumptables, calls and conditional
739           branches
740         * (pic16_InsertCommentAfter): NEW
741         * (pic16_pCodeReplace): made verbose and flow preserving
742         * (AnalyzeFlow): added call to data flow analysis
743         * src/pic16/pcode.h: added defmaps to pCodeFlow struct
744         * src/pic16/pcodeflow.h: added PCC_STATUS to mean all STATUS bits
745         * src/pic16/ralloc.c (packRegsForAssign): added return 1 in the end
746
747 2005-04-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
748
749         * src/SDCCast.c (decorateType): fixed bug #1105626
750
751 2005-04-02 Vangelis Rokas <vrokas AT users.sourceforge.net>
752
753         * device/include/asm/pic16/features.h,
754         * pic18f*.h headers,
755         * device/include/pic16/adc.h,
756         * device/include/pic16/delay.h,
757         * device/include/pic16/i2c.h,
758         * device/include/pic16/malloc.h,
759         * device/include/pic16/stdio.h,
760         * device/include/pic16/stdlib.h,
761         * device/include/pic16/string.h,
762         * device/lib/pic16/libc/stdio/printf_tiny.c,
763         * device/lib/pic16/libc/stdio/printf_small.c,
764         * device/lib/pic16/libc/stdio/strmgpsim.c,
765         * device/lib/pic16/libc/stdio/strmmssp.c,
766         * device/lib/pic16/libc/stdio/strmusart.c,
767         * device/lib/pic16/libc/stdio/vfprintf.c,
768         * device/lib/pic16/libc/stdlib/ltoa.c,
769         * device/lib/pic16/libc/stdlib/putchar.c,
770         * device/lib/pic16/libc/stdlib/x_ftoa.c,
771         * device/lib/pic16/libc/stdlib/memchrpgm.c,
772         * device/lib/pic16/libc/stdlib/memchrram.c,
773         * device/lib/pic16/libc/stdlib/memcpypgm2ram.c,
774         * device/lib/pic16/libc/stdlib/memcpyram2ram.c,
775         * device/lib/pic16/libio/adc/adcbusy.c,
776         * device/lib/pic16/libio/adc/adcread.c,
777         * device/lib/pic16/libio/adc/adcsetch.c,
778         * device/lib/pic16/libio/usart/ubaud.c,
779         * device/lib/pic16/libio/usart/ubusy.c,
780         * device/lib/pic16/libio/usart/udrdy.c,
781         * device/lib/pic16/libio/usart/uopen.c,
782         * device/lib/pic16/libio/usart/uputc.c,
783         * device/lib/pic16/libsdcc/gptr/gptrget1.c,
784         * device/lib/pic16/libsdcc/gptr/gptrget2.c,
785         * device/lib/pic16/libsdcc/gptr/gptrget3.c,
786         * device/lib/pic16/libsdcc/gptr/gptrget4.c,
787         * device/lib/pic16/libsdcc/gptr/gptrput1.c,
788         * device/lib/pic16/libsdcc/gptr/gptrput2.c,
789         * device/lib/pic16/libsdcc/gptr/gptrput3.c,
790         * device/lib/pic16/libsdcc/gptr/gptrput4.c: modified all SDCC
791         specific keywords to double underlined form,
792         * device/lib/pic16/libc/Makefile.rules,
793         * device/lib/pic16/libsdcc/Makefile.rules,
794         * device/lib/pic16/libm/Makefile,
795         * device/lib/pic16/libio/Makefile.rules: added CSTD macro in CFLAGS
796         to compile with C standard set in Makefile.common
797         * device/lib/pic16/libc/stdlib/Makefile: added new C sources
798         rand.c and crc.c in compilation process,
799         * device/lib/pic16/libsdcc/int/divuint.c,
800         * device/lib/pic16/libsdcc/long/divulong.c: changed declaration of
801         `c' from signed to unsigned,
802         * device/lib/pic16/startup/crt0.c,
803         * device/lib/pic16/startup/crt0i.c,
804         * device/lib/pic16/startup/crt0iz.c: adopted to all SDCC specific
805         keywords to double underlined form, bug fixes in _do_cinit function
806         which prevented the correct initialization of the .idata segment,
807         * src/pic16/pcoderegs.c (insideLRBlock): fixed a bug that caused the
808         core to enter a infinite loop
809         * device/lib/pic16/libc/stdlib/rand.c, crc.c: new files
810
811 2005-04-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
812
813         * src/SDCCicode.c (getArraySizePtr): fixed bug #1122171
814
815 2005-04-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
816
817         * device/include/Makefile.in: add support for hc08 subdirectory
818         * device/include/hc08/: new subdirectory
819         * device/include/hc08/mc68hc908jkjl.h: new header contributed by
820         Lucas Loizaga, thanks!
821         * device/include/hc08/mc68hc908qy.h,
822         * device/include/hc08/mc68hc908gp32.h,
823         * device/include/hc08/mc68hc908jb8.h: moved hc08 register defs to
824         their own directory. Changed internal macro names to use the compiler
825         reserved namespace. Changed SDCC specific keywords to double
826         underlined form.
827         * device/include/math.h,
828         * device/include/malloc.h,
829         * device/include/stdarg.h,
830         * device/include/stdbool.h
831         * device/include/string.h,
832         * device/include/tinibios.h,
833         * device/include/ds400rom.h,
834         * device/include/8051.h,
835         * device/include/8052.h,
836         * device/include/80c51xa.h,
837         * device/include/at89c55.h,
838         * device/include/at89S8252.h,
839         * device/include/at89x51.h,
840         * device/include/at89x52.h,
841         * device/include/ds80c390.h,
842         * device/include/reg764.h,
843         * device/include/regc515c.h,
844         * device/include/sab80515.h,
845         * device/include/mcs51/c8051f000.h,
846         * device/include/mcs51/c8051f018.h,
847         * device/include/mcs51/c8051f020.h,
848         * device/include/mcs51/c8051f040.h,
849         * device/include/mcs51/c8051f060.h,
850         * device/include/mcs51/c8051f120.h,
851         * device/include/mcs51/c8051f300.h,
852         * device/include/mcs51/c8051f310.h,
853         * device/include/mcs51/c8051f320.h,
854         * device/include/mcs51/c8051f330.h,
855         * device/include/mcs51/c8051f350.h,
856         * device/include/z180.h: Changed SDCC specific keywords to double
857         underlined form.
858
859 2005-03-31 Vangelis Rokas <vrokas AT users.sourceforge.net>
860
861         * src/pic16/device.c (Pics16[]): added devices 18F2550, 18F4331,
862         18F4455,
863         * (pic16_assignConfigWordValue): disable testing of configuration
864         register value with config mask,
865         * src/pic16/gen.c (pic16_testStackOverflow): prefix stack test
866         function with port->fun_prefix,
867         * (genFunction): when generating a naked interrupt function never
868         create an absolute segment placed in interrupt vector address, place
869         the actual interrupt function at IVA instead, when an interrupt
870         function is generated with unspecified interrupt then do not create
871         the absolute section,
872         * (genGenPointerGet, genGenPointerSet, genPackBits): replace all
873         code for generating a call to generic pointer get/put function with
874         a call to function pic16_callGenericPointer(),
875         * src/pic16/genutils.c (pic16_callGenericPointerRW): NEW, generates
876         the call to the generic pointer get/put functions with prefixing the
877         function name with port->fun_prefix,
878         * src/pic16/glue.c (pic16glue): ifdef-out test of OF_LR_SUPPORT,
879         * src/pic16/main.c (_process_pragma): prefix function with
880         port->fun_prefix,
881         * (_pic16_finaliseOptions): define macro __18Fxxxx macro when
882         calling assembler, old 18Fxxxx macro is deprecated,
883         * src/pic16/pcode.c (unlinkpCodeFromBranch): added PC_INLINE and
884         PC_ASMDIR in while condition,
885         * (findInstruction): add PC_ASMDIR in while condition,
886         * (buildCallTree): prefix main with port->fun_prefix,
887         * (pic16_pCode2str): fixed bug that didn't emit the memory access
888         identifier for variable with banked access in instructions BTFSS,
889         BTFSC, BCF, BSF, BTG
890         * (AnalyzeFlow): moved call to OptimizepCode to pic16_AnalyzeBanking,
891         * src/pic16/pcodepeep.c (pCodeOpCompare): increase size of b to 1024,
892         * src/pic16/pcoderegs.c (pic16_pCodeRegoptimizeRegUsage): don't
893         perform optimization when enviroment variable NO_REG_OPT is set,
894         * (insideLRBlock): NEW, return 1 if register is inside an
895         INF_LOCALREGS block,
896         * (RemoveRegFromLRBlock): remove a register that is completely
897         eliminated by register optimization, but it is still left in local
898         register store/restore in/from stack block,
899         * (Remove2pcodes): after removing register, check to see if it
900         should be removed from local register store/restore in/from stack
901         block,
902         * src/pic16/ralloc.c (pic16_decodeOp): added decode for
903         DUMMY_READ_VOLATILE,
904
905         * device/include/pic16/adc.h: minor prototype modifications and
906         update,
907         * device/include/pic16/malloc.h: added GPL notice various
908         modifications,
909         * device/include/pic16/stdint.h: NEW, standard header for ints
910         * device/include/pic16/delay.h: NEW, header for delay functions,
911         delay10tcy, delay100tcy, delay1ktcy, delay10ktcy, delay100ktcy,
912         delay1mtcy,
913         * device/include/pic16/signal.h: NEW, header providing helper macros
914         for implementing signal handlers,
915         * device/include/pic16/stdio.h: added prototypes for functions,
916         printf, vprintf, sprintf, vsprintf, fprintf, vfprintf. Added
917         prototypes for stdin and stdout, added macro PUTCHAR to
918         automatically implement putchar function prototype,
919         * device/include/pic16/usart.h: modified and updated USART library,
920         * device/lib/pic16/libio/adc/,
921         * device/lib/pic16/libio/i2c: some modifications to improve library
922         performance,
923         * device/lib/pic16/libc/stdio/: modifications for the new printf*
924         family of functions,
925         * device/lib/pic16/libc/stdlib/: various modifications in the malloc
926         family of functions and other sources,
927         * device/lib/pic16/libio/usart/: NEW, c sources for the usart module
928         of the PIC18Fxx[28] devices,
929         * device/lib/pic16/libc/delay/: NEW, c sources for the delay functions,
930         * device/lib/pic16/libc/utils/: minor modifications in the .S sources,
931         * device/lib/pic16/startup/{crt0i.c, crt0iz.c}: redesign of the
932         _do_cinit function, because the previous failed when local variables
933         where not placed in the same memory bank,
934         * device/lib/pic16/libsdcc/char/: various modifications to improve
935         library performance,
936         * doc/sdccman.lyx: some reorganization of the PIC16 part, added many
937         information on the new functions of the c library and more...
938
939 2005-03-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
940
941         * src/SDCCBBlock.c (iCodeBreakDown): fixed bug #1170212
942
943 2005-03-26 Raphael Neider <rneider AT web.de>
944
945         * src/pic16/gen.c (genSkipc): fixed semantics (execute branch
946           if condition == CARRY)
947         * (genCmp): adapted to new genSkipc semantics
948         * src/pic16/genutils.c (pic6_genCmp_special): removed side effect
949           on rIfx (genCmp was broken)
950
951 2005-03-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
952
953         * src/SDCCmain.c (setDefaultOptions, optionsTable[], parseCmdLine),
954         * src/z80/main.c (_keywords[]),
955         * src/SDCCglobal.h (struct options),
956         * src/SDCC.y,
957         * src/SDCC.lex (isTargetKeyword, doPragma, pragma_tbl[]): new pragmas
958         to enable/disable SDCC and C99 extensions/keywords (std_c89, std_sdcc89,
959         std_c99, std_sdcc99). Also, equivalent command line options (--std-c89,
960         --std-sdcc89, --std-c99, --std-sdcc99). SDCC specific keywords are
961         always available in leading double underscore form. The C99 support is
962         mostly missing, but it's a start.
963         * support/regression/tests/bug-227710.c: fixed nonconforming use of
964         reserved identifier "__data".
965
966 2005-03-24 Maarten Brock <sourceforge.brock AT dse.nl>
967
968         * src/mcs51/peeph.def: fixed bug 1170013
969
970 2005-03-22 Maarten Brock <sourceforge.brock AT dse.nl>
971
972         * device/include/mcs51reg.h: fixed bug 842007
973
974 2005-03-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
975
976         * src/SDCCcflow.c (dfNumCompare): committed the wrong version of this
977         last time.
978
979 2005-03-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
980
981         * src/port.h (struct PORT),
982         * src/avr/ralloc.c (avr_assignRegisters),
983         * src/avr/main.c,
984         * src/ds390/ralloc.c (ds390_assignRegisters),
985         * src/ds390/main.c,
986         * src/hc08/ralloc.c (hc08_assignRegisters),
987         * src/hc08/main.c,
988         * src/mcs51/ralloc.c (mcs51_assignRegisters),
989         * src/mcs51/main.c,
990         * src/pic/ralloc.c (pic14_assignRegisters),
991         * src/pic/main.c,
992         * src/pic16/ralloc.c (pic16_assignRegisters),
993         * src/pic16/main.c,
994         * src/xa51/ralloc.c (xa51_assignRegisters),
995         * src/xa51/main.c,
996         * src/z80/ralloc.c (z80_assignRegisters),
997         * src/z80/ralloc.h,
998         * src/SDCCopt.c (eBBlockFromiCode, replaceRegEqv, killDeadCode),
999         * src/SDCCcse.c (ifxOptimize, cseBBlock, cseAllBlocks),
1000         * src/SDCCcse.h,
1001         * src/SDCCdflow.c (computeDataFlow),
1002         * src/SDCCdflow.h,
1003         * src/SDCCloop.c (addDefInExprs, loopInvariants, loopOptimizations),
1004         * src/SDCCloop.h,
1005         * src/SDCCcflow.c (*),
1006         * src/SDCCcflow.h,
1007         * src/SDCCBBlock.c (iCodeBreakDown, dumpEbbsToFileExt, eBBWithEntryLabel),
1008         * src/SDCCBBlock.h (struct ebbIndex): new struct that keeps two copies
1009         of the eBBlock list, sorted by both bbnum and dfnum. (fixes bug with
1010         immedDom() returning wrong block; probably fixes bug #1160833)
1011
1012 2005-03-20 Borut Razem <borut.razem AT siol.net>
1013
1014         * support/scripts/inc2h.pl: WIN32 port
1015
1016 2005-03-19 Maarten Brock <sourceforge.brock AT dse.nl>
1017
1018         * device/lib/makefile.in: added abs.c and labs.c
1019
1020 2005-03-17 Maarten Brock <sourceforge.brock AT dse.nl>
1021
1022         * device/include/stdint.h: added
1023         * device/lib/abs.c: added
1024         * device/lib/labs.c: added
1025         * device/include/stdlib.h: added abs() and labs() prototypes
1026         * device/lib/libsdcc.lib: added abs and labs
1027         * device/include/float.h,
1028         * device/lib/_fsmul.c,
1029         * device/lib/printf_fast.c,
1030         * device/lib/printf_tiny.c: updated comments
1031
1032 2005-03-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1033
1034         * src/SDCCicode.c (geniCodeSwitch, geniCodeJumpTable): fixed
1035         bug #1164313
1036
1037 2005-03-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1038
1039         * src/SDCCcse.c (cseBBlock): retain assignment to self when volatile
1040         * src/SDCCast.c (isLoopCountable): fixed bug #1161985
1041
1042 2005-03-15 Maarten Brock <sourceforge.brock AT dse.nl>
1043
1044         * device/lib/printf_large.c: removed inline assembly for portability and
1045           readability. Use printf_fast if speed or size are more important.
1046         * src/pic16/gen.c: removed conditions around use of DEBUGpc
1047         * src/pic16/genutils.h: added define for DEBUGpc for MSVC
1048
1049 2005-03-15 Vangelis Rokas <vrokas AT users.sourceforge.net>
1050
1051         * src/pic16/genutils.c (pic16_genCmp_special): initialized offs to
1052         prevent compiler warning
1053
1054 2005-03-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
1055
1056         * device/lib/pic16/startup/crt0i.c (_cinit): local variables where
1057         moved to level 0 and declared as static. Also they are explicit
1058         placed in access bank. This was necessery because some times they
1059         might cross memory bank boundaries. crt0iz.c is *NOT* updated!!!
1060         * src/pic16/device.h: added flag OPTIMIZE_CMP to enable some compare
1061         optimizations. Currently only compare to unsigned char is implemented,
1062         * src/pic16/gen.c: added fReturnIdx array,
1063         * (struct resolvedIfx) is moved to gen.h and made public,
1064         * (struct _G): added sregsAlloc and sregsAllocSet fields,
1065         * (aopForSym): added an optimization to directly store in stack of
1066         the operand of a SEND iCode,
1067         * (pic16_aopOp): don't return return registers as strings (AOP_STR)
1068         but as registers instead (AOP_REG) using the fReturnIdx array,
1069         * (pic16_freeAsmop): remove the freed register from the
1070         _G.sregsAlloc field,
1071         * (pic16_aopGet): in case AOP_STR, the compare to 'a' is changed to
1072         a compare of 'WREG',
1073         * (pic16_popGetTempRegCond): changed function prototype, now
1074         function takes also a bitVector argument v which holds the current
1075         set of registers that are allocated for stack access by aopForSym,
1076         registers allocated in aopForSym for accessing stack symbols are not
1077         any more part of the functions usedRegs field,
1078         * (genCall): some times aopOp is called for a stack variable to be
1079         send, aopForSym might perform the push, if this is true make sure
1080         that genCall doesn't push the variable twice by testing _G.resDirect,
1081         * (genFunction): changed testing for unspecified interrupt number
1082         from 256 to INTNO_UNSPEC,
1083         * modified selection scheme of frame pointer generation. Previously
1084         if function did use local registers a frame pointer was generated,
1085         now a frame pointer is generated only if function has arguments
1086         (that need PLUSW2 register access), or has stack arguments, or the
1087         compiler is not instructed to omit the frame pointer,
1088         * (genEndFunction): before restoring local registers that were saved
1089         in the function preamble, also restore the registers that *might*
1090         have been allocated for stack access,
1091         * (genRet): removed some old comments,
1092         * (genCmp, the active (RN's) version): added a call to the
1093         pic16_genCmp_special function to perform the compare with a more
1094         robust and optimized way,
1095         * (genInline): a feature has been added in inline code generation,
1096         which allows a wildcard variable substitution when writing inline
1097         assembly. Code is incomplete and experimental therefore undocumented,
1098         * (genCast): changed order of aopOp for result and right to allow
1099         aopForSym to directly load the result if possible,
1100         * src/pic16/genutils.c (selectCompareOp, pic16_genCmp_special): NEW,
1101         perform an optimized compare on some selected special occasions,
1102         * src/pic16/genutils.h: declaration of resolvedIfx structure from gen.c,
1103         * src/pic16/glue.c (pic16createInterrupVect): make sure we never
1104         generate an IVT any more,
1105         * src/pic16/main.c (pic16_optionsTable): added command line option
1106         --optimize-cmp,
1107         * (_pic16_initPaths): when calling C preprocessor define pic18fXXXX
1108         macro too, when calling assembler define pic18fXXXX *and* __18Fxxxx
1109         macros,
1110         * src/pic16/NOTES: Raphael Neider added in list of active developers
1111         * src/pic16/pcode.c (OPT_TYPE_STR): added strings jumptable_begin and
1112         jumptable_end to prevent bug #,
1113         * (pic16_pciADDWFC, ADDFWC, COMF, CLRF): added some missing flags in
1114         inCond and outCond fields,
1115         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): add a fix for bug #,
1116         * src/pic16/ralloc.c (serialRegAssign): explicit set willCS to 0 to
1117         turn off register spilling,
1118         * (packRegsForOneUse): synced with other ports' versions although it
1119         is not used currently,
1120         * (pic16_packRegisters): added an optimization while reading
1121         structure bitfields, some registers may be saved (malloc code is
1122         decreased by 80 bytes)
1123
1124 2005-03-12 Vangelis Rokas <vrokas AT users.sourceforge.net>
1125
1126         * src/SDCCcse.c (cseBBlock): inside 'do operand lookup' loop test if
1127         left is a bitfield, if yes, then don't optimize assignment. Perhaps
1128         this can be optimized more?
1129
1130 2005-03-10 Raphael Neider <rneider AT web.de>
1131
1132         * src/pic16/gen.c (pic16_loadFSR0, genPackBits, genUnpackBits,
1133           genNearPointerGet): (hopefully) fixed access to bitfields via
1134           pointers (p->bitN = x; and x = p->bitN; failed)
1135
1136 2005-03-09 Paul Stoffregen <paul AT pjrc.com>
1137
1138         * device/lib/printf_fast.c: fix leading zero format, eg "%02d"
1139
1140 2005-03-09 Raphael Neider <rneider AT web.de>
1141
1142         * src/SDCCopt.c (killDeadCode): fixed bug #1156016
1143
1144 2005-03-06 Maarten Brock <sourceforge.brock AT dse.nl>
1145
1146         * src/SDCCicode.h: moved CRITICAL and ENDCRITICAL from SKIP_IC2 to SKIP_IC
1147         * src/mcs51/ralloc.c (willCauseSpill): added check for REG_BIT type,
1148           (regTypeNum): set REG_BIT type if necessary
1149         * src/mcs51/ralloc.h: added define REG_BIT, used to fix bug 1144613
1150         * support/regression/tests/critical.c: check bug 1144613
1151
1152 2005-03-02 Raphael Neider <rneider AT web.de>
1153
1154         * src/pic16/gen.c (genRightShiftLiteral): fixed bug #1154256
1155
1156 2005-02-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1157
1158         * src/avr/ralloc.c (serialRegAssign),
1159         * src/ds390/ralloc.c (serialRegAssign),
1160         * src/hc08/ralloc.c (serialRegAssign),
1161         * src/mcs51/ralloc.c (serialRegAssign),
1162         * src/pic/ralloc.c (serialRegAssign),
1163         * src/pic16/ralloc.c (serialRegAssign),
1164         * src/xa51/ralloc.c (serialRegAssign),
1165         * src/z80/ralloc.c (serialRegAssign): fixed bug #1105154
1166
1167 2005-02-22 Maarten Brock <sourceforge.brock AT dse.nl>
1168
1169         * src/SDCCast.c (decorateType): fixed bug 1124787
1170
1171 2005-02-20 Hubert Sack <sack AT digiplan.de>
1172         committed by Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1173
1174         * src/mcs51/peeph.def: added peepholes 3.h-k and 132.a-f from
1175         patch #1121755
1176
1177 2005-02-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1178
1179         * src/SDCCpeeph.def: new keyword "labelRefCountChange" which allows peepholes
1180         to keep the correct label reference count when adding/removing references
1181         to labels. A peephole file using this is appended to patch #1144962.
1182
1183 2005-02-14 Raphael Neider <rneider AT web.de>
1184
1185         * device/lib/pic16/libc/string/memccpy.c: changed 3rd argument to char
1186         * src/SDCC.lex (process_pragma): fixed to make disable_warning work for PIC16
1187         * src/pic16/gen.c (aopForSym, calls to pic16_aopOp): prevent unneccessary
1188           retrievals of result operand's value on assignment
1189
1190 2005-02-13 Vangelis Rokas <vrokas AT otenet.gr>
1191
1192         * device/include/pic16/string.h: modified prototype for memccpy()
1193         to memccpy(void *, void *, char, size_t)
1194         * src/pic16/gen.c (genFunction, genEndFunction): reenable if-case to
1195         check whether to omit frame pointer or not,
1196         * (genInline): convert all occurences of "\n" to LF in inline
1197         assembler blocks, this helps formatting the inline text,
1198         * (pic16_loadFSR0): modified prototype,
1199         * (genNearPointerGet, genNearPointerSet): reorganization of code,
1200         removed some 8051 legacy code,
1201         * (genPackBits): enabled handling bitfields exceeding one byte in size,
1202         * src/pic16/ralloc.c (pic16_assignRegisters): clear dynrIdx variable
1203         before allocating temporary registers in functions,
1204
1205 2005-02-11 Maarten Brock <sourceforge.brock AT dse.nl>
1206
1207         * support/regression/tests/bitvars.c: corrected the "fix"
1208
1209 2005-02-10 Maarten Brock <sourceforge.brock AT dse.nl>
1210
1211         * support/regression/tests/bitvars.c,
1212         * support/regression/tests/bitwise.c,
1213         * support/regression/tests/rotate.c: "fixed" problems on Alpha
1214
1215 2005-02-10 Raphael Neider <rneider AT web.de>
1216
1217         * src/pic16/pcode.c (assignToSameBank) : fixed cast to pointer of
1218           different size for Alpha
1219         * src/pic16/gen.c (genCmpEq) : improved compare with 0
1220
1221 2005-02-09 Raphael Neider <rneider AT web.de>
1222
1223         * src/SDCC.lex(doPragma) : save and restore warning options as well
1224           (also added new stack plus clone- and copyAndFreeSDCCERRG())
1225         * have #pragma less_pedantic set the errorlevel to WARNING
1226           (fixes #1117001)
1227         * (cloneOptimize) : fixed wrong malloc's size
1228         * support/Util/SDCCerr.[ch] : made SDCCERRG globally accessible to
1229           facilitate correct handling of #pragma (save|restore)
1230
1231 2005-02-09 Maarten Brock <sourceforge.brock AT dse.nl>
1232
1233         * src/mcs51/gen.c: removed non-standard C nameless struct/union
1234
1235 2005-02-04 Slade Rich <slade_rich AT users.sourceforge.net>
1236
1237         * src/pic/gen.c : Fix for bugs #1080519 & #1115662.
1238
1239 2005-02-03 Maarten Brock <sourceforge.brock AT dse.nl>
1240
1241         * device/include/mcs51/c8051f120.h: added declarations for sbit port 2,3&4
1242
1243 2005-02-02 Raphael Neider <rneider AT web.de>
1244
1245         * src/SDCCast.c (processParms): disabled W_NONRENT_ARGS for pic16 port
1246         * src/pic16/gen.c (aopForSym): reenabled special case for function pointers
1247         * (pic16_storeForReturn): fixed to allow returning function pointers
1248         * (genPackBits): improved accessing full bytes, implemented for GPOINTERs
1249         * device/include/pic16/{stddef.h,stdbool.h}: added
1250
1251 2005-02-02 Maarten Brock <sourceforge.brock AT dse.nl>
1252
1253         * device/include/mcs51/c8051f040.h: added define CPT2_PAGE
1254
1255 2005-02-01 Slade Rich <slade_rich AT users.sourceforge.net>
1256
1257         * src/pic16/pic16.dsp : Added file graph.c to make it compile under windows
1258         * src/pic16/Makefile.bcc : Do not use this file but added file graph.c as it
1259          appeared to be required
1260
1261 2005-01-31 Borut Razem <borut.razem AT siol.net>
1262
1263         * support/scripts/sdcc.nsi: added include/asm/ds390, include/asm/mcs51,
1264           include/mcs51 and include/z80 directories to the package
1265
1266 2005-01-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1267
1268         * src/hc08/gen.c (genFunction): fixed bug #1112752
1269
1270 2005-01-30 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1271
1272         * src/mcs51/peeph.def: adapted peephole 258.x to changed gen.c (genAnd)
1273
1274 2005-01-29 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1275
1276         * src/mcs51/gen.c (genAnd): accessing LSB/MSB by rotating acc
1277
1278 2005-01-29 Maarten Brock <sourceforge.brock AT dse.nl>
1279
1280         * device/include/Makefile.in: create/copy mcs51 and z80 include subdirs
1281
1282 2005-01-27 Maarten Brock <sourceforge.brock AT dse.nl>
1283
1284         * device/include/c8051fxxx.h: removed these 6 files
1285         * device/include/mcs51/c8051fxxx.h: added these 11 new files
1286
1287 2005-01-26 Raphael Neider <rneider AT web.de>
1288
1289         * src/pic16/gen.c (genAssign): fixed assignment from longs
1290           in codespace (were cut to three bytes)
1291         * (genDummyRead): implemented (except for CODESPACE...),
1292           fixed bug #1108575
1293         * src/pic16/glue.c (emitStatistics): beautified
1294         * device/lib/pic16/libm/Makefile: added include path
1295
1296 2005-01-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1297
1298         * src/z80/gen.c (aopPut): fixed bug #1103902
1299
1300 2005-01-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1301
1302         * device/lib/expf.c: fixed bug #1095792
1303
1304 2005-01-24 Vangelis Rokas <vrokas AT otenet.gr>
1305
1306         * device/lib/pic16/libm: added Math library sources
1307
1308 2005-01-24 Raphael Neider <rneider AT web.de>
1309
1310         * src/pic16/pcode.h: added second memory operand to pCodeOpReg
1311           to enable upcast to pCodeOpReg2 (there is no type tag to
1312           differenciate the two and pic16_popGet2p cast into PCOR2)
1313         * src/pic16/main.c (_process_pragma): fixed another malloc bug
1314           (sizeof(sectNames) changed to sizeof(sectName))
1315           Both patches fix segfaults under MinGW.
1316
1317 2005-01-23 Raphael Neider <rneider AT web.de>
1318
1319         * src/pic16/{device.c,pcode.c}: s/free/Safe_free/g for
1320           Safe_[mc]?alloc()'ed variables
1321         * src/pic16/gen.c (pic16_aopOp,pic16_popGet): added handling
1322           of (byte sized) temporaries (assign them to WREG for now)
1323         * src/pic16/main.c (_process_pragma): fixed nasty malloc bug
1324           (used sizeof(set *sectSyms) instead of sizeof(struct sectSym)),
1325           this might fix SIGSEGVs on MinGW...
1326         * src/SDCCopt.c (killDeadCode): restored original behaviour
1327           (volatile operands might get thrown away though)
1328
1329 2005-01-23 Vangelis Rokas <vrokas AT otenet.gr>
1330
1331         * src/pic16/gen.c: fixed bug #1106975,
1332         * src/pic16/gen.c: fixed possible bug #1102572, now during TOS
1333         pointer update, INTCON is saved, global interrupts are disabled and
1334         restored after updateing TOS.
1335         * src/SDCC.y, src/SDCC.lex, src/SDCCsymt.c, src/SDCCsymt.h:
1336         * added function attribute 'shadowregs' to take advantage of shadow
1337         registers,
1338         * added function attribute 'wparam' as an alternative to the wparam
1339         pragma,
1340         * support/Utils/SDCCerr.[ch]: added error E_SHADOWREGS_NO_ISR when
1341         user declares a non-ISR function as 'shadowregs',
1342         * doc/sdccman.lyx: updated to reflect recent changes of pic16 port
1343
1344 2005-01-22 Vangelis Rokas <vrokas AT otenet.gr>
1345
1346         * .version: bumped version number to 2.4.8
1347         * device/lib/pic16/pics.all: list of PIC18F devices supported by
1348         pic16 port,
1349         * device/lib/pic16/libio/i2c/: I2C module support library,
1350         * device/include/pic16/i2c.h: I2C support library header,
1351         * device/lib/pic16/libc/stdio/: standard IO support sources,
1352         * (printf_small.c): printf_small() source, supports float print,
1353         * (printf_tiny.c): printf_tiny() source, does not support floats,
1354         * device/lib/pic16/Makefile.common.in: added OPT_FLAGS macro to
1355         enable global optimizations for entire library source, other
1356         Makefiles in the source tree are also modified to reflect this,
1357         * device/lib/pic16/libc/stdlib/putchar.c (putchar): dummy putchar()
1358         function,
1359         * doc/sdccman.lyx: updated to reflect new changes,
1360         * src/pic16/gen.c (aopForSym): don't handle sym->iaccess in
1361         sym->onStack if-case,
1362         * src/pic16/main.c (_pic16_keywords): commented out keywords bit,
1363         sbit, idata, _idata, xdata, _xdata,
1364         * added pragma library, to link an external library, (see doc),
1365         * removed command line options, --pomit-config-words, --pomit-ivt,
1366         --pleave-reset-vector,
1367         * (pic16_finaliseOptions): when define macro SDCC_MODEL_{SMALL/LARGE}
1368         when calling assembler to reflect memory model used, also define
1369         macro STACK_MODEL_{SMALL/LARGE} when compiling and assembling to
1370         reflect stack model used,
1371         * src/pic16/ralloc.c (pic16_allocDirReg): when operand is allocated
1372         on stack return NULL,
1373
1374 2005-01-22 Daniel Winkler <post AT danielwinkler.de>
1375
1376         * src/SDCCopt.c (killDeadCode): do not throw iCodes away if one
1377           of the operands is volatile. Fixes #1020220
1378
1379 2005-01-22 Daniel Winkler <post AT danielwinkler.de>
1380
1381         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): reenabled optimization
1382         * (OptimizeRegUsage): make sure that there is really no other flow where
1383           the first pCode is used
1384
1385 2005-01-22 Raphael Neider <rneider AT web.de>
1386
1387         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): disabled optimization
1388           to fix #1106967 (pCode->seq are not set up correctly)
1389
1390 2005-01-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1391
1392         * src/SDCCglue.c (glue): make sure code area is declared before the
1393         static initialization area.
1394
1395 2005-01-21 Raphael Neider <rneider AT web.de>
1396
1397         * device/lib/Makefile.in: fixed test for pic16 install dir
1398         * device/lib/pic16/*/Makefile*: modified compile flags to enable
1399           optimizations
1400         * doc/sdccman.lyx: updated banksel optimization, removed --flr-support and
1401           added --optimize-goto compiler switch and pragma wparam documentation
1402         * src/pic16/pcode.c (pic16_OptimizeBanksel): removed statistics dump
1403         * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): fixed copying of WREG, PRODL
1404           and PRODH closing bug #1071770 (peephole optimizer)
1405
1406 2005-01-19 Raphael Neider <rneider AT web.de>
1407
1408         * src/SDCCglobl.h: ensure that PATH_MAX >= 2048 to guarantee
1409           cmdLine buffers (used when calling sdcpp...) are large enough
1410           (MAX_PATH=256 truncates arguments leading to system halts when
1411           used in MinGW...)
1412         * src/pic16/gen.c (pic16_sameRegs): relaxed size criterion
1413         * (genUminus): rewritten to for efficiency
1414         * (genNearPointer[GS]et): enforce reloading of FSR0 (was still
1415           used uninitialized in some cases)
1416         * (genCast): upcasting a 16bit int to a 24bit GPOINTER may not
1417           copy the third byte from the int -- now assumes 0x80 (data memory)
1418         * src/pic16/genarith.c (pic16_genPlus): fixed bug when swapping
1419           operands (genAddLit expects the iCode's operands to swapped as
1420           well), fixed leftover bytes (crashed for short left operands)
1421         * (pic16_genMinusDec): performance improvements, removed false
1422           PIC14 emitSKPNCs
1423         * (pic16_genMinus): fixed to cope with differently sized operands
1424         * src/pic16/glue.c (pic16_glue): added new banksel optimization
1425           for --obanksel > 1
1426         * src/pic16/pcode.c: implemented (first phase of) banksel optimization
1427         * src/pic16/graph.[ch]: implementation of directed graphs, used by
1428           new banksel optimization
1429         * src/pic16/pcoderegs.c (pCodeRegMapLiveRangesInFlow): prevented
1430           analysis for temporary registers (segfaults...)
1431         * src/pic16/peeph.def: added rule
1432
1433 2005-01-18 Vangelis Rokas <vrokas AT otenet.gr>
1434
1435         * device/lib/pic16/libc/stdlib/x_ftoa.c: it defines x_ftoa function
1436         which converts a float number to its ASCII representation
1437         * device/lib/pic16/libc/utils/cnvfrac.S,cnvint.S: support
1438         functions to convert the fractional and integer part of a float to ASCII,
1439         * device/lib/pic16/libc/stdlib/(calloc.c,free.c, malloc.c,
1440         realloc.c): added _MALLOC_SPEC to explicit place variables in data
1441         ram
1442         * device/include/asm/pic16/features.h: added _CODE, _DATA, _AUTOMEM,
1443         _STATMEM macros,
1444         * device/include/pic16/adc.h: added GPL info,
1445         * src/pic16/gen.c (genIfxpCOpJump): perform an genIfxJump but using
1446         a pCodeOp as tested operand,
1447         * (genNearPointerGet): optimized bit testing, does not use
1448         intermediate register for bit value, test directly instead with
1449         BTFSS, BTFSC, works only for single bits,
1450         * (genpic16Code): dump the name of the iCode in the asm,
1451         * src/pic16/ralloc.c (decodeOp): removed static declaration and
1452         renamed to pic16_decodeOp,
1453         * (serialRegAssign): do not allocate a temporary register for iCode
1454         sequences that test a single bit for 1/0
1455
1456 2005-01-12 Vangelis Rokas <vrokas AT otenet.gr>
1457
1458         * src/pic16/pcode.[ch]: introduced pic16_stackpnt_*,
1459         pic16_framepnt_*, pic16_stack_*, pic1_frame_* pointer variables to
1460         access stack and frame pointers. They are initially assigned to
1461         point at pic16_pc_fsr1[lh] and pic16_pc_fsr2[lh] variables and other
1462         accessing SFRs. Updated all occurences of modification of stack or
1463         frame pointer in gen.c and pcode.c,
1464         * src/pic16/ralloc.c (serialRegAssign): fixed two bugs with
1465         assigning of a literal value to pointers,
1466         * src/pic16/main.c (pic16_finiliseOptions): set pre-processor define
1467         flag STACK_MODEL_SMALL or STACK_MODEL_LARGE according to the model
1468         selected
1469
1470 2005-01-11 Vangelis Rokas <vrokas AT otenet.gr>
1471
1472         * doc/sdccman.lyx: update documentation about stack pragma, added
1473         some info for stack memory models
1474
1475 2005-01-08 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
1476
1477         * src/pic16/gen.c (DEBUGpc): MSVC 6 does not support macro variable arguments
1478
1479 2005-01-08 Raphael Neider <rneider AT web.de>
1480
1481         * src/pic16/device.c (pic16_dump_usection): changed naming scheme for
1482           udata sections to fix bug #1097823
1483
1484 2005-01-05 Raphael Neider <rneider AT web.de>
1485
1486         * src/pic16/gen.c (genGenericShift): added handling of differently
1487           sized left operand and result
1488
1489 2005-01-04 Raphael Neider <rneider AT web.de>
1490
1491         * src/pic16/gen.c (genIfxJump): fixed inverted skips on CARRY
1492         * (genIfx): fixed (?) read from uninitialized SPIL_LOC (now assumes CARRY
1493           to hold the condition bit)
1494         * added new version of genCmp (old code available via #define)
1495         * added new version of genShiftLeft/genShiftRight in a generic
1496           way, now supports shifting by negative values
1497         * (genLeftShiftLiteral, genRightShiftLiteral): use absolute value of
1498           shiftCount (expected by genGenericShift)
1499         * src/pic16/genarith.c (genPlus): added code for adding CARRY+literal
1500         * src/pic16/pcode.c (pic16_OptimizeJumps): removed annoying statistics
1501           dump
1502         * (pic16_newpCodeOpLit): changed to cast to unsigned char (as e.g. -32766
1503           is an invalid literal too...)
1504
1505 2005-01-04 Vangelis Rokas <vrokas AT otenet.gr>
1506
1507         * src/pic16/gen.c (aopForSym, genEndFunction): applied some fixes
1508         from Raphael Neider,
1509         * src/pic16/pcode.c (pic16_newpCodeOpLit): removed casting to char
1510         for 8-bit literals. This fixes some literal operands which are sign
1511         extended to 16-bits ints when instruction needs only 8-bits.
1512
1513 2004-12-31 Paul Stoffregen <paul AT pjrc.com>
1514
1515         * device/lib/logf.c: added mcs51 assembly version
1516         * device/lib/expf.c: added mcs51 assembly version
1517         * device/lib/_logexpf.c: new shared asm code for expf and logf
1518         * device/include/math.h: add defines for assembly math library
1519         * device/lib/Makefile.in: build new _logexpf.c
1520         * device/lib/libfloat.lib: use new _logexpf.c
1521
1522 2004-12-29 Slade Rich <slade_rich AT users.sourceforge.net>
1523
1524         * src/pic/device.c
1525         * src/pic/pcode.c : adjusted internal stack and pre-allocated registers for
1526           device types which have less than 0x7f registers.
1527
1528 2004-12-29 Slade Rich <slade_rich AT users.sourceforge.net>
1529
1530         * src/pic/genarith.c : Fixed problem with subtraction where the result would not be updated when borrowing.
1531
1532 2004-12-28 Paul Stoffregen <paul AT pjrc.com>
1533
1534         * device/lib/printf_fast.c: only build on supported arch.
1535         * device/lib/printf_tiny.c: only build on supported arch.
1536         * device/lib/printf_fast_f.c: only build if asm float lib
1537         * device/lib/_fsget1arg.c: only build if asm float lib
1538         * device/lib/_fsget2args.c: only build if asm float lib
1539         * device/lib/_fsnormalize.c: only build if asm float lib
1540         * device/lib/_fsreturnval.c: only build if asm float lib
1541         * device/lib/_fsrshift.c: only build if asm float lib
1542         * device/lib/_fsswapargs.c: only build if asm float lib
1543         * device/include/stdio.h: don't provide print_fast,
1544           print_fast_f, print_tiny prototypes if --xstack used
1545
1546 2004-12-28 Maarten Brock <sourceforge.brock AT dse.nl>
1547
1548         * device/lib/sincosf.c (sincosf): don't invert bit/bool by ~
1549         * support/regression/ports/mcs51-stack-auto/spec.mk: added new _fs.. files
1550           to the SOURCES
1551
1552 2004-12-28 Paul Stoffregen <paul AT pjrc.com>
1553
1554         * device/lib/printf_fast_f.c: same as printf_fast, but
1555           with floating point enabled
1556         * device/lib/printf_fast.c: minor tweaks
1557         * device/include/stdio.h: add printf_fast_f
1558
1559 2004-12-27 Paul Stoffregen <paul AT pjrc.com>
1560
1561         * src/SDCCmain.c: make --float-reent default for mcs51
1562         * device/lib/_fsadd.c: added mcs51 assembly version
1563         * device/lib/_fssub.c: added mcs51 assembly version
1564         * device/lib/_fsmul.c: added mcs51 assembly version
1565         * device/lib/_fsdiv.c: added mcs51 assembly version
1566         * device/lib/_fseq.c: added mcs51 assembly version
1567         * device/lib/_fsneq.c: added mcs51 assembly version
1568         * device/lib/_fsgt.c: added mcs51 assembly version
1569         * device/lib/_fslt.c: added mcs51 assembly version
1570         * device/lib/_fscmp.c: shared code for fseq,fsgt,fslt,fsneq
1571         * device/lib/Makefile.in: add _fscmp to build
1572         * device/lib/libfloat.lib: add _fscmp to build
1573
1574 2004-12-27 Paul Stoffregen <paul AT pjrc.com>
1575
1576         * device/lib/_fs2slong.c: added mcs51 assembly version
1577         * device/lib/_fs2sint.c: added mcs51 assembly version
1578         * device/lib/_fs2schar.c: added mcs51 assembly version
1579         * device/lib/_fs2ulong.c: added mcs51 assembly version
1580         * device/lib/_fs2uint.c: added mcs51 assembly version
1581         * device/lib/_fs2uchar.c: added mcs51 assembly version
1582         * device/lib/_slong2fs.c: added mcs51 assembly version
1583         * device/lib/_sint2fs.c: added mcs51 assembly version
1584         * device/lib/_schar2fs.c: added mcs51 assembly version
1585         * device/lib/_ulong2fs.c: added mcs51 assembly version
1586         * device/lib/_uint2fs.c: added mcs51 assembly version
1587         * device/lib/_uchar2fs.c: added mcs51 assembly version
1588         * device/include/float.h: added #define to select asm vs c
1589
1590 2004-12-26 Paul Stoffregen <paul AT pjrc.com>
1591
1592         * device/lib/printf_fast.c: improvements to float output
1593         * device/include/float.h: add defines for assembly float library
1594         * device/lib/_fsget1arg.c: receive 1 float arg
1595         * device/lib/_fsget2args.c: receive 2 float args (reentrant)
1596         * device/lib/_fsnormalize.c: normalize a float
1597         * device/lib/_fsreturnval.c: return float, various helper routines
1598         * device/lib/_fsrshift.c: right shift a float's mantissa
1599         * device/lib/_fsswapargs.c: swap 2 floats
1600         * device/lib/Makefile.in: build these 6 new files for mcs51
1601         * device/lib/libfloat.lib: add these 6 files to the library
1602
1603 2004-12-26 Borut Razem <borut.razem AT siol.net>
1604
1605         * sim/ucsim/avr.src/arith_inst.cc: fixed bug #1088372- savr is not
1606           built by gcc 3.4.2
1607
1608 2004-12-25 Paul Stoffregen <paul AT pjrc.com>
1609
1610         * device/lib/printf_tiny.c: printf for mcs51 in only 267 bytes,
1611           and fully reentrant and register bank neutral.
1612         * device/lib/printf_fast.c: added float (not enabled by default),
1613           added compact/slower integer (also not enabled by default),
1614           improved size/speed of fast integer code, other minor changes
1615         * device/include/stdio.h, device/lib/Makefile.in,
1616           device/lib/libsdcc.lib: integrate printf_tiny into mcs51 build
1617
1618 2004-12-24 Maarten Brock <sourceforge.brock AT dse.nl>
1619
1620         * src/pic16/pcode.c: declaring variables other than at the start of a
1621           block is not supported in C by VC6.
1622
1623 2004-12-22 Vangelis Rokas <vrokas AT otenet.gr>
1624
1625         * applied a previous patch from Raphael Neider that wasn't included
1626         in the previous commits, which fixes infinite loops within jumptable
1627         improvements,
1628         * made some fixes that previous patches introduced
1629
1630 2004-12-21 Vangelis Rokas <vrokas AT otenet.gr>
1631
1632         * src/pic16/gen.c (pic16_aopGet): applied fix from Raphael Neider
1633         that fixes an issue with AOP_PCODE asmop's offset,
1634         * (pic16_popCopyReg): update instance field too,
1635         * (mov2w): modified to pic16_mov2w because it conflicts with mov2w
1636         function of pic port,
1637         * (genCmp, genAnd, genAssign),
1638         * src/pic16/genarith.c (genAddLit): some fixes from Raphael Neider,
1639
1640 2004-12-20 Vangelis Rokas <vrokas AT otenet.gr>
1641
1642         * src/SDCCast.c (gatherAutoInit): allow pic16 to emit static
1643         variables initial values to idata section,
1644         * src/SDCCicode.c (geniCodeCall): patch from ### to fix unreferenced
1645         variables in some functions. This utilizes parmBytes field of iCode
1646         structure to hold the offset of the variable in stack. (might be
1647         able to use the stack field too?)
1648         * applied patch from Raphael Neider # ### , # ###
1649         * src/pic16/glue.c (pic16emitRegularMap): fix to print static
1650         variable initial values in idata section,
1651         * src/pic16/ralloc.c (pic16_allocDirReg): don't allocate register
1652         for static variables with initial value
1653         * src/device/lib/pic16/libsdcc/float/ulong2fs.c (__ulong2fs):
1654         applied fix in while loop from Raphael Neider.
1655
1656 2004-12-19 Maarten Brock <sourceforge.brock AT dse.nl>
1657
1658         * src/ds390/gen.c (genCpl): fixed bit=~(char/bit) bugs, added warning
1659         * src/ds390/main.c (_ds390_regparm): don't pass bit params in registers
1660         * src/ds390/ralloc.c (serialRegAssign): spill bits
1661         * src/mcs51/gen.c (genCpl): fixed bit=~(char) bugs, added warning
1662         * support/Util/SDCCerr.c,
1663         * support/Util/SDCCerr.h: added warning W_COMPLEMENT for using bit=~(bit)
1664         * support/regression/tests/bitvars.c: added tests for bitwise complement(~)
1665         * support/regression/tests/bitwise.c: added test for bitwise complement(~)
1666
1667 2004-12-09 Maarten Brock <sourceforge.brock AT dse.nl>
1668
1669         * device/include/sdcc-lib.h: inserted LGPL, added includes
1670           asm/ds390/features.h and asm/mcs51/features.h
1671         * device/include/asm/default/features.h,
1672         * device/include/asm/gbz80/features.h,
1673         * device/include/asm/z80/features.h: added empty _AUTOMEM
1674           and _STATMEM
1675         * device/include/asm/ds390/features.h,
1676         * device/include/asm/mcs51/features.h: added files with defines for
1677           _AUTOMEM and _STATMEM indicating automatic and static storage class
1678         * device/lib/printf_large.c (_print_format): optimized & used _AUTOMEM
1679         * doc/sdccman.lyx: version 2.4.7, updated xstack documentation
1680         * src/SDCCicode.c (geniCodeCast),
1681         * src/SDCCsymt.c (compareType): allow cast of data-ptr to idata-ptr
1682         * src/SDCCloop.c (loopInduction): removed unused variable lr
1683         * src/SDCCopt.c (convilong, convertToFcall): moved "easy special case"
1684           to convertToFcall to include char modulo (RFE 1065037), added check
1685           if left operand is unsigned and use abs of literal value
1686         * src/SDCCpeeph.c (setFromConditionArgs): removed double quotes option
1687           as it doesn't work after conversion from peephole.def to peephole.rul
1688         * src/mcs51/gen.c (toBoolean): added check for size,
1689           (genModOneByte): optimized code for signed char modulo a literal
1690           power of 2 (thanks to Hubert Sack),
1691           (genRRC): removed unnecessary "clr c",
1692           (genRLC): replaced "add a,acc" with cheaper "rlc a"
1693         * src/mcs51/peeph.def: renamed 115 to 115.a, added rule 115.b: another
1694           jump optimization,
1695           swapped rules 256.c and 256.d,
1696           extended 256.d by using new multiple checks (thanks Erik),
1697           added rules 256.e and 256.f,
1698           updated rule 261.a and 261.b to new generated code
1699         * support/regression/tests/muldiv.c: added test div/mod by a power of 2
1700
1701 2004-12-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1702
1703         * src/SDCCloop.c (basicInduction, loopInduction): fixed several
1704           induction related bugs, including first part of bug #1074377
1705
1706 2004-12-05 Vangelis Rokas <vrokas AT otenet.gr>
1707
1708         * applied patch from bug-report #1076292,
1709         * applied patches for genAnd and Goto-optimizations for Raphael
1710         Neider,
1711         * src/SDCCicode.c (printOperand): fixed !REGA source to compile and
1712         dump a less iCode information,
1713         * src/pic16/device.h (pic16_options_t): added field debgen,
1714         * src/pic16/gen.h: added macros DUMP_FUNCTION_ENTRY,
1715         DUMP_FUNCTION_EXIT, FENTRY, FENTRY2,
1716         * src/pic16/gen.c (my_powof2): renamed to pic16_my_powof2 and made
1717         puclic,
1718         * (various functions): added macros FENTRY and FENTRY2 to functions,
1719         to emit function prologue,
1720         * (various functions): fixed indentation,
1721         * (genNearPointerGet): fixed loading of FSR0,
1722         * (genPackBits): applied patch from Raphael Neider to fix updating
1723         of FSR0 and touching only the modified bits,
1724         * src/pic16/genarith.c (various functions): added macros FENTRY to
1725         emit function prologue in comments,
1726         * src/pic16/pcode.h: added functions debugf2, debugf3,
1727         * src/pic16/ralloc.c: partial fix for packForPush caused
1728         segmentation fault,
1729
1730 2004-12-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1731
1732         * src/mcs51/peeph.def: added 261.a,b (16 bit rotate) by Stas Sergeev
1733           <stsp AT users.sourceforge.net> with reversed byte order
1734         * support/regression/tests/rotate.c: added (ds390 skips some tests)
1735
1736 2004-12-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1737
1738         * src/z80/gen.c (genLeftShift, genRightShift): fixed second part of
1739           bug #1074377
1740         * src/hc08/gen.c (genrshFour, shiftRLong, shiftLLong),
1741         * src/mcs51/gen.c (shiftLLong): Fixed some shifting bugs Frieder found
1742
1743 2004-12-02 Slade Rich <slade_rich AT users.sourceforge.net>
1744
1745         * src/pic/pcode.c : fixed a problem where banksel was not being inserted.
1746
1747 2004-12-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1748
1749         * src/SDCCpeeph.c (callFuncByName): support combined peephole rule
1750           conditions,
1751           (setFromConditionArgs): friendly operand parser for peephole rules,
1752           (operandBaseName, operandsNotRelated): new peephole condition
1753           "operandsNotRelated" -- similar to "operandsNotSame", but takes
1754           architecture specific register naming into account, handles n-way
1755           comparisons, and supports quoted literals
1756         * src/mcs51/peeph.def: restored rule 177.d with an extra condition
1757
1758 2004-12-02 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1759
1760         * src/mcs51/peeph.def: fixed bug #1076940
1761
1762 2004-12-02 Slade Rich <slade_rich AT users.sourceforge.net>
1763
1764         * device/include/pic/pic16f877.h : added an include file for the PIC16F877 device.
1765
1766 2004-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1767
1768         Adding support for replacing ljmps with sjmps in jumptables
1769         generated for switch statements. For now you need to set the
1770         environment variable SDCC_SJMP_JUMPTABLE to enable this.
1771         Now 4 algorithms for mcs51 jumptable generation are used:
1772         ljmp or sjmp jumptables for up to 16 cases, stack-pushing target
1773         addresses loaded pc-relative for up to 112 cases and stack-pushing
1774         target addresses loaded with offset from dptr for up to 256 cases.
1775
1776         * src/SDCCpeeph.c: added peephole conditional labelJTInRange
1777         * src/mcs51/main.c: adapted constants for switch table generation
1778         * src/mcs51/peeph.def: added 260.x for replacing ljmp with sjmp
1779
1780 2004-11-26 Maarten Brock <sourceforge.brock AT dse.nl>
1781
1782         * device/lib/printf_large.c (_print_format): fixed bug 1073386
1783         * support/regression/tests/bug1057979.c: added test for bug 1073386
1784
1785 2004-11-25 Vangelis Rokas <vrokas AT otenet.gr>
1786
1787         * src/pic16/pcode.c: fixed bug which may produce error in non-GNU
1788         compilers
1789
1790 2004-11-25 Vangelis Rokas <vrokas AT otenet.gr>
1791
1792         * src/pic16/device.h,
1793         * src/pic16/genarith.c,
1794         * src/pic16/glue.c,
1795         * src/pic16/main.c,
1796         * src/pic16/pcode.c: applied patches #1068154 and #1070213
1797
1798 2004-11-24 Vangelis Rokas <vrokas AT otenet.gr>
1799
1800         Large cummulative patch for pic16 port.
1801         * device/lib/pic16/gstack.h: NEW, user can specify its own handler
1802         to call when a stack overflow occurs,
1803         * (malloc.h): added CVS Id tag,
1804         * (pic18f{242,252,442,452}.h): added T0CONbits structure and
1805         variable,
1806         * added libc directory. The current version of LibC contains string
1807         functions, ctype functions and macros and some functions of the
1808         stdlib set (like malloc/free/atof/atoi etc...). All functions are to
1809         be extensively tested in the future. Standard disclaimer here.
1810         Library is not automatically build yet. But one can build it by
1811         invoking 'make' inside the libc directory.
1812         * added ADC library under libio. Preliminary version yet.
1813
1814         * src/pic16/gen.h: added emitTOGC macro, to toggle Carry flag,
1815         * src/pic16/gen.c (aopForRemat): asmop size is filled by
1816         aopForRemat() now and not by pic16_aopOp(),
1817         * (pic16_popGetTempReg): removed warning messgae when allocating
1818         temporary registers, its a buggy feature and will be removed,
1819         * (pic16_popGet): set register instance field in AOP_CRY,
1820         * (pic16_outBitC): fixed for results in size greater than 1,
1821         * (genUminusFloat): fixed for pic16, ported code from mcs51,
1822         * (pic16_storeForReturn): optimized return of 0,
1823         * (genCmp): experimental code for new genCmp which uses PIC18's
1824         special compare&skip instructions. Initial tests fail some times
1825         with variables grater than 1 byte in size, so new code is disabled,
1826         * (genUnpackBits, genPackBits): more optimizations in reading/writing,
1827         a single bit,
1828         * (genCast): began a fix to optimize the casting of a bit to another
1829         bit, now assigning a bitfield to another bitfield will fail, sorry,
1830         * src/pic16/main.c: disabled the use of lr-support feature,
1831         * src/pic16/pcode.h: renamed PCASMDIR to PCAD,
1832         * added some function prototypes, added function _debugf prototype,
1833         * src/pic16/pcode.c: (pic16_get_op): fixed emitting operands of register
1834         bits with offset (case PO_GPR_BIT),
1835         * (genericPrint): don't emit INFO pcode when --pcode-verbose not in
1836         command line,
1837         * (isBankInstruction): modified to return 0 for no banking instruction,
1838         and 1 for banking instruction,
1839         * (pic16_isPCinFlow): check for PCAD (assembler directives) too,
1840         caused stop processing pCodes after a inline assembly block,
1841         * (pic16_popCopyGPR2Bit): updated to match bitfields with offset,
1842         * src/pic16/pcoderegs.c: fixed a bug with eliminating some temporary
1843         registers when it shouldn't,
1844         * src/pic16/ralloc.c (allocReg): add preliminary support for
1845         supporting a limited set of temporary registers,
1846
1847 2004-11-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1848
1849         * src/hc08/gen.c (genAssign, genPointerGetSetOfs, genDataPointerGet,
1850           genDataPointerSet): ensure assignments always copy in MSB to LSB
1851           order,
1852           (loadRegFromAop): recognize CLRH optimization,
1853           (genFunction): optimize RECEIVE iCodes in reentrant functions
1854
1855 2004-11-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1856
1857         * src/SDCCmain.c (parseCmdLine, optionsTable[]): fixed bug with
1858           --out-fmt-s19 turning into --out-fmt-elf if s19 was already
1859           selected.
1860         * src/SDCCmain.c (linkEdit): don't define SSEG for HC08
1861         * src/hc08/main.c (_hc08_setDefaultOptions): default xdata to be
1862           contiguous with data
1863
1864 2004-11-19 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1865
1866         * device/lib/_gptrget.c (_gptrget),
1867         * device/lib/_gptrgetc.c (_gptrgetc),
1868         * device/lib/_gptrput.c (_gptrput): _naked allows to use ret
1869           instead of sjmp to ret
1870         * src/mcs51/peeph.def: added peepholes 3.d-g and 177.g,h provided
1871           by Hubert Sack <hsack2002 AT arcor.de> in RFE #1067986, thanks
1872
1873 2004-11-18 Maarten Brock <sourceforge.brock AT dse.nl>
1874
1875         * .version: bumped version to 2.4.7
1876         * device/lib/_gptrget.c (_gptrget): is now _naked
1877         * device/lib/_gptrgetc.c (_gptrgetc): is now _naked
1878         * device/lib/_gptrput.c (_gptrput): is now _naked
1879         * src/SDCCast.c (createBlock): removed ridiculous self-assignment,
1880           (createFunction): fixed xstack
1881         * src/SDCCglue.c (emitMaps): set allocation required for bit area
1882         * src/SDCCicode.c (geniCodeCast): don't change SPEC_OCLS for literal
1883           or bit either,
1884           (geniCodeCritical): store original interrupt state in an iTemp bit
1885           var unless stack-auto
1886         * src/SDCCicode.h: added CRITICAL and ENDCRITICAL to SKIP_IC2
1887         * src/SDCCmain.c (setIncludePath): added include/target to search path
1888         * src/SDCCmem.c (allocParms): store bit vars in bit space, not overlay
1889         * src/SDCCsymt.c (checkFunction): don't check regbank for isr's against
1890           prototype,
1891           (processFuncArgs): put bit vars in bit area
1892         * src/mcs51/gen.c (saveRegisters, unsaveRegisters, genXpush, saveRBank,
1893           unsaveRBank): fixed xstack,
1894           (genFunction): bugfix: replaced (global!) reentrant with fReentrant,
1895           (genFunction, genEndFunction): fixed xstack,
1896           (genAssign): optimization don't walk backwards through mem
1897         * src/mcs51/main.c (_mcs51_regparm): don't pass bit params in registers
1898         * src/mcs51/ralloc.c (createStackSpil): spill bits to bit area
1899         * support/regression/Makefile: also make library (for stack-auto) when
1900           making "all" and added "test-mcs51-xstack-auto"
1901         * support/regression/fwk/lib/testfwk.c: added T2_isr prototype for mcs51
1902         * support/regression/ports/mcs51/T2_isr.c: added this file as a stub
1903         * support/regression/ports/mcs51/fwk.lib: added to link T2_isr stub
1904         * support/regression/ports/mcs51/spec.mk: added rules for fwk.lib
1905         * support/regression/ports/mcs51-stack-auto/spec.mk: replaced
1906           make-library by MAKE_LIBRARY
1907         * support/regression/ports/mcs51-xstack-auto/spec.mk: file added to run
1908           regression tests for xstack
1909         * support/regression/tests/bitvars.c: test for bit vars (bug 938782)
1910         * support/regression/tests/critical.c: test for critical on mcs51
1911
1912 2004-11-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1913
1914         * support/regression/ports/ucz80/spec.mk: use include and lib files from
1915           built version of sdcc instead of installed version
1916
1917 2004-11-14 Maarten Brock <sourceforge.brock AT dse.nl>
1918
1919         * src/mcs51/gen.c (toBoolean): fixed bug 1065458
1920         * device/lib/Makefile.in: z80 uses printf_large.c, sprintf.c and
1921           vprintf.c now
1922         * device/lib/printf_large.c (calculate_digit): fixed bug 1057979
1923         * device/lib/z80/Makefile: don't use printf.c as it fails bug 1057979
1924           WARNING: remove device/lib/build/z80/printf.o by hand when
1925           updating from previous build!
1926         * device/lib/z80/printf.c: updated comment
1927         * support/regression/tests/bug1057979.c: test all ports now
1928         * support/regression/tests/bug1065458.c: file added
1929
1930 2004-11-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1931
1932         * src/z80/gen.c (genFunction, genEndFunction): avoided generating
1933           *_start and *_end symbols for static functions
1934
1935 2004-11-11 Maarten Brock <sourceforge.brock AT dse.nl>
1936
1937         * src/SDCCmain.c (linkEdit): don't suppress crt0 if --nostdlib is used
1938           and search crt0.o in all library paths,
1939           (setIncludePath): proper handling of --nostdinc,
1940           (setLibPath): proper handling of --nostdlib
1941         * support/regression/Makefile,
1942         * support/regression/ports/ds390/spec.mk,
1943         * support/regression/ports/gbz80/spec.mk,
1944         * support/regression/ports/hc08/spec.mk,
1945         * support/regression/ports/mcs51/spec.mk,
1946         * support/regression/ports/mcs51-large/spec.mk,
1947         * support/regression/ports/mcs51-stack-auto/spec.mk,
1948         * support/regression/ports/z80/spec.mk: use include and lib files from
1949           built version of sdcc instead of installed version
1950         * doc/sdccman.lyx: fixed typo in --nostdinc
1951
1952 2004-11-10 Slade Rich <slade_rich AT users.sourceforge.net>
1953
1954         * src/pic/pcode.c,
1955         * src/pic/device.c,
1956         * src/pic/ralloc.c,
1957         * src/pic/gen.c : added support to generate code for struct bit fields.
1958
1959 2004-11-06 Maarten Brock <sourceforge.brock AT dse.nl>
1960
1961         * as/xa51/xa_version.h,
1962         * device/include/errno.h,
1963         * device/include/regc515c.h,
1964         * device/lib/_itoa.c,
1965         * device/lib/_ltoa.c,
1966         * device/lib/ser_ir_cts_rts.c,
1967         * sim/ucsim/xa.src/glob.cc,
1968         * sim/ucsim/xa.src/inst_gen.cc,
1969         * sim/ucsim/xa.src/xa_bit.cc,
1970         * sim/ucsim/xa.src/xa_sfr.cc,
1971         * sim/ucsim/z80.src/inst_dd.cc,
1972         * sim/ucsim/z80.src/inst_fdcb.cc,
1973         * support/scripts/keil2sdcc.pl,
1974         * src/pic16/pic16.dsp,
1975         * src/pic16/pic16a.dsp: corrected cvs line endings
1976         * device/lib/printf_large.c: fixed bug 1057979
1977         * src/pic16/gen.c: fixed non-C standard code
1978         * src/SDCCmain.c: made --pack-iram default, added --no-pack-iram
1979         * src/SDCCglobl.h: changed pack_iram to no_pack_iram
1980         * support/regression/ports/mcs51/support.c: reload T1 asap
1981         * doc/sdccman.lyx: updated for options --pack-iram and --no-pack-iram,
1982           pdata use and clear idata startup behaviour
1983         * support/regression/tests/bug1057979.c: added
1984
1985 2004-11-04 Maarten Brock <sourceforge.brock AT dse.nl>
1986
1987         * device/examples/ds390/ow390/ad26.h,
1988         * device/examples/ds390/ow390/cnt1d.h,
1989         * device/examples/ds390/ow390/crcutil.c,
1990         * device/examples/ds390/ow390/ownet.h,
1991         * device/examples/ds390/ow390/owsesu.c,
1992         * device/examples/ds390/ow390/swt12.h,
1993         * device/examples/ds390/ow390/swtoper.c,
1994         * device/examples/ds390/ow390/temp10.h,
1995         * device/examples/ds390/ow390/thermodl.c,
1996         * device/examples/ds390/tinitalk/tinitalk.dsp,
1997         * device/examples/ds390/tinitalk/tinitalk.dsw,
1998         * device/examples/mcs51/clock/hw.h,
1999         * device/examples/mcs51/simple2/go.bat,
2000         * device/examples/serialcomm/windows/serial.h,
2001         * device/examples/xa51/dummy.c,
2002         * device/examples/xa51/hello.c,
2003         * device/include/80c51xa.h,
2004         * device/include/at89x051.h: corrected cvs line endings
2005
2006 2004-11-04 Vangelis Rokas <vrokas AT otenet.gr>
2007
2008         * src/pic16/main.c (options): added command line --gstack, to trace
2009         stack over/under flows,
2010         * added pragma 'wparam' to allow passing first byte of function
2011         parameters via WREG, syntax is #pragma wparam my_function[, func2...]
2012         * src/pic16/gen.c (pic16_testStackOverflow): function which emits a
2013         call to __gstack_test function and sets up the symbol as extern,
2014         * (pic16_pushpCodeOp, pic16_poppCodeOp, pushw, pushaop, popaopidx,
2015         * popaop): added call to pic16_testStackOverflow,
2016         * (wParamCmp, inWparamList): NEW, test existence of a symbol in
2017         wparamList list,
2018         * (genCall, genPcall): now all parameters are passed via stack
2019         except in functions that are pass to wparam pragma in which WREG is
2020         used too,
2021         * (genPcall): REENTRANT flag is checked to see if variable prototype
2022         contains reentrant keyword, don't call a non-reentrant function, via
2023         a reentrant function pointer or vice versa, functions are never
2024         passed via WREG,
2025         * (genJumpTab): applied patch from bug #1057478 by R.Neider and
2026         D.Winkler,
2027         * src/pic16/glue.c (pic16emitRegularMap): fixed bug which caused a
2028         SIGSEGV when accessing a NULL register stucture,
2029         * (pic16_printGPointerType): modified to handle UPPER modifier for
2030         function initializers, changed prototype of function to simpler one,
2031         * (pic16_printIvalFuncPtr): check to see if function is already
2032         added in externs list,
2033         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): fixed bug which
2034         optimized a move from W to SFR with a move to the same register
2035         later after a CALL,
2036         * device/lib/pic16/debug: NEW directory, contains debug features
2037         which are enabled when linking with libdebug.lib, currently command
2038         line option --gstack enables stack pointer tracing for over/under
2039         flow, corresponding sources are in debug/gstack
2040
2041 2004-10-30 Vangelis Rokas <vrokas AT otenet.gr>
2042
2043         * doc/sdccman.lyx: updated SDCC version,
2044         * (PIC16 port): update list of command line options,
2045         * src/pic16/device.h (structure pic16_options_t): added field gstack
2046         to enable stack overflow tracing on push/pops,
2047         * src/pic16/device.c (statistics structure): added statistics
2048         structure,
2049         * (pic16_dump_access, pic16_dump_usection, pic16_dump_gsection,
2050         pic16_dump_int_registers): increase statistics counters for each
2051         * variable which is encountered
2052         * (pic16_dump_usection): emit each .udata variable to its own udata
2053         section,
2054         * src/pic16/gen.c (assignResultValue, genCall, genPcall, genFunction):
2055         when macro USE_WREG_IN_FUNC_PARAMS is set to 0 pass all function
2056         parameters via stack, otherwise use old scheme,
2057         * src/pic16/glue.c (pic16_emitStatistics): dump statistics in
2058         assembler output file,
2059         * src/pic16/main.c: added command line options --gstack to enable
2060         push/pop tracing for stack overflow,
2061         * src/pic16/pcode.c (all pCodeInstruction records for PIC18F
2062         instructions): added size of each instruction,
2063         * (pic16_countInstruction): estimate size of instructions in
2064         the_pFile list, inline assembly blocks are not counted,
2065         * (pic16_FixRegisterBanking): trace previous register usage, when
2066         banksel optimizations is greater than 0, don't emit a redudant
2067         banksel directive,
2068
2069 2004-10-26 Slade Rich <slade_rich AT users.sourceforge.net>
2070
2071         * src/pic/ralloc.c : fixed inefficient code produced when compiling a complimented bit operation.
2072         * src/pic16/ralloc.c : applied same fix for pic16.
2073         * src/pic/gen.c : tidied it up a little.
2074
2075 2004-10-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2076
2077         * src/mcs51/peeph.def: disabled 259.a,b for removing redundant ret,
2078         thanks to Martin Helmling for reporting (mail on sdcc-devel 2004-10-25)
2079
2080 2004-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2081
2082         * src/SDCCast.c (reverseParms): fixed bug #1040577 (part 2)
2083
2084 2004-10-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2085
2086         * device/lib/ser_ir_cts_rts.c: integer promotion caused a call to the
2087         non-reentrant function __modsint in the interrupt function (thus
2088         corrupting math operations during serial I/O)
2089         * device/lib/ser_ir.c: as above, changed buffersize
2090         * src/mcs51/peeph.def: added 259.a,b for removing redundant ret,
2091         256.c,d for zeroing
2092         * doc/Makefile: added option -t for rsync
2093
2094 2004-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2095
2096         * src/SDCCast.h (struct ast),
2097         * src/SDCCast.c (reverseParms, copyAst): fixed bug #1040577 (part 1)
2098
2099 2004-10-20 Borut Razem <borut.razem AT siol.net>
2100
2101         * support/scripts/sdcc.nsi: added include/pic16/*.h to the setup
2102         package
2103
2104 2004-10-20 Vangelis Rokas <vrokas AT otenet.gr>
2105
2106         * device/lib/pic16/libsdcc/Makefile: added lregs directory in
2107         makefile targets,
2108         * device/lib/pic16/libsdcc/lregs/{Makefile,lrst.c,lrrest.c}: NEW
2109         support functions to replace long sequences of MOVFF's from access
2110         bank registers to stack and vice versa,
2111         * src/pic16/device.h: added new field opt_flags, where optimization
2112         flags can be set to enable certain features,
2113         * src/pic16/gen.c (pic16_emitpinfo): NEW to add PC_INFO pCode in
2114         * pBlock, (genFunction, genEndFunction): surroung loop for
2115         saving/loading used registers in stack with PC_INFO pCodes,
2116         INF_LREGS. Code in between can then be optimized by pCode optimizer
2117         to support function calls,
2118         * (genDataPointerSet): fixed bug which loaded float fields in
2119         structures with corrupt data,
2120         * src/pic16/genutils.c (debugf, _debugf): macro/function which emits
2121         in a standard way debug info on stderr. Feature used for developing
2122         and debugging only,
2123         * src/pic16/glue.c (pic16glue): reformatted, deleted some old and
2124         obsolete chunks of code,
2125         * if optimization flag OF_LR_SUPPORT was set, call pic16_OptimizeLocalRegs,
2126         * src/pic16/main.c (_pic16_parseOptions): added handler for --flr-support,
2127         * pic16/src/pcode.c (pic16_newpCodeInfo,
2128         * (pic16_newpCodeOpLocalRegs),
2129         * (pic16_convertLocalRegs2Support): NEW, to support new optimization
2130         feature,
2131         * (pic16_pCodeConstString): printing of the initial value of a
2132         symbol as a comment is inhibited since parsing was already done by
2133         copyStr and output is corrupt,
2134         * (pic16_pCode2str, genericPrint): handle PC_INFO pCode,
2135
2136 2004-10-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2137
2138         * src/mcs51/ralloc.c (packRegisters): fixed bug #1044601
2139
2140 2004-10-19 Maarten Brock <sourceforge.brock AT dse.nl>
2141
2142         * as/mcs51/lkarea.c: removed old K&R style,
2143           (lnksect): changed check on boundary error,
2144           (lnksect2): changed check on boundary error,
2145           (lnksect2): extend XSTK to end of page if size = 1
2146         * as/mcs51/lkmain.c: removed old K&R style,
2147           (Areas51): create l_IRAM symbol
2148         * as/mcs51/lkmem.c (summary2): added report on PSEG and XSTK
2149         * device/lib/Makefile.in: renamed model-mcs51-reentrant to
2150           model-mcs51-stack-auto, added model-mcs51-xstack-auto
2151         * device/lib/_mullong.c: added version to be compiled with xstack
2152         * device/lib/mcs51/crtclear.asm: clear only upto --iram-size
2153         * device/lib/mcs51/crtxclear.asm: clear pdata as well
2154         * device/lib/mcs51/crtxstack.asm: fixed comment
2155         * src/SDCCglue.c: maxInterrupts defaults to 0,
2156           (emitMaps): added pdata,
2157           (createInterruptVect): (re)moved default,
2158           (glue): added pdata,
2159           (glue): moved __start__xstack to XSTK with default size 1
2160         * src/SDCCmain.c (parseCmdLine): automatically set options.intlong_rent
2161           and options.float_rent when options.stackAuto is set,
2162           (linkEdit): only write XDATA_NAME if provided on command line
2163         * src/SDCCmem.h,
2164         * src/SDCCmem.c: added pdata
2165         * src/port.h: added pdata_name to PORT
2166         * src/mcs51/gen.c (toBoolean): fixed for Acc use of aopGet,
2167           (saveRegisters, unsaveRegisters): removed usage of B,
2168           (genMinus): fixed accumulator clash,
2169           (genJumpTab): added comment, this needs another look
2170         * src/mcs51/gen.c: added check for "B in use" paranoia,
2171           added pushB() and popB()
2172         * src/mcs51/peeph.def: restart after 177.c so 177.a can get a second
2173           chance
2174         * src/avr/main.c,
2175         * src/ds390/main.c,
2176         * src/hc08/main.c,
2177         * src/mcs51/main.c,
2178         * src/pic/main.c,
2179         * src/pic16/main.c,
2180         * src/xa51/main.c,
2181         * src/z80/main.c: (reset_regparms) made void parameter explicit and
2182           added PSEG (PAG,XDATA) or NULL to port specifier
2183         * src/ds390/main.c (_ds390_genIVT): moved implemented default in here
2184         * src/mcs51/main.c (_mcs51_genIVT): moved implemented default in here,
2185           (_mcs51_genInitStartup): removed __start__xstack equ,
2186           (mcs51_port): moved xstack from XSEG (XDATA) to XSTK (PAG,XDATA)
2187         * src/pic16/device.c (pic16_dump_usection, pic16_dump_isection),
2188         * src/z80/gen.c (_rleAppend): fixed warnings
2189         * support/regression/tests/zeropad.c: added pdata test
2190         * .version: bumped to 2.4.6
2191
2192 2004-10-17 Borut Razem <borut.razem AT siol.net>
2193
2194         * support/scripts/sdcc.nsi: cross compiling of WIN32 setup.exe on Linux
2195         as a part of nightly build
2196
2197 2004-10-16 Vangelis Rokas <vrokas AT otenet.gr>
2198
2199         * src/pic16/gen.c (struct _G): added field useWreg, is set to 1 when
2200         WREG holds the first byte function parameters,
2201         * (aopForSym): take special case for symbols which are in FARSPACE
2202         but in CODESPACE too,
2203         * (assignResultValue): modified to take into account _G.useWreg,
2204         * (genCall): don't use wreg for parameter passing when function is
2205         declared as reentrant, too, added optimization INCF to stack
2206         pointer when stack parameter count is 1,
2207         * (genFunction, genEndFunction): refurnished and fixed to not using
2208         wreg for passing parameters when function has varargs or is
2209         reentrant, fixed bug with symbol name compare for generating
2210         functions in absolute address,
2211         * (pic16_storeForReturn): refurnished,
2212         * (genCmp): began writing a new version of the function, not ready
2213         yet, therefore it is disabled,
2214         * (genAssign): do not read code memory when assigning a function to
2215         a pointer function,
2216         * src/pic16/glue.c (pic16emitStaticSeg): abSym->name is defined an
2217         array of characters, not pointer,
2218         * (pic16initialComments): in debug mode emit an .ident directive for
2219         the assembler,
2220         * (_process_pragma): emit a new warning type (internal to pic16)
2221         when setting stack to default length, emit a similar warning when
2222         placing a function at absolute address and address is not word aligned
2223         * (_pic16_parseOptions): added 'return TRUE' statement,
2224         * (_pic16_linkEdit): if compiling a source, then add the source's
2225         file object, first in the list of objects to link,
2226
2227 2004-10-13 Slade Rich <slade_rich AT users.sourceforge.net>
2228
2229         * src/pic/pcoderegs.c : increased count on regUsedinRange to prevent unnecessary warning.
2230         * src/pic/main.c : removed VC warning.
2231         * src/pic/gen.c : changed comment.
2232
2233 2004-10-12 Vangelis Rokas <vrokas AT otenet.gr>
2234
2235         * device/lib/pic16/libsdcc/gptr/gptrput[234].c: an external
2236         reference to a deprecated symbol _GPTRREG was causing failure to
2237         link. Thanks G. M. Gallant for the info.
2238
2239 2004-10-12 Slade Rich <slade_rich AT users.sourceforge.net>
2240
2241         * src/pic/pcode.c : Applied a code patch supplied by Paul Ashmore in
2242         comments for Bugs item #954788.
2243
2244 2004-10-10 Vangelis Rokas <vrokas AT otenet.gr>
2245
2246         * src/pic16/device.c (pic16_dump_gsection,
2247         * pic16_groupRegistersInSection): handle symbols declared to be in
2248         access bank differently,
2249         * src/pic16/gen.c (struct _G): added field resDirect,
2250         * (aopForSym): if symbol on stack and iCode is '=' and result exists,
2251         send values read from stack directly to result and don't allocate
2252         temporary values,
2253         * (pic16_sameRegs): fixed bug that allowed MOVFF to move between
2254         same registers,
2255         * (pic16_sameRegsOfs): NEW,
2256         * (freeAsmop): if _G.resDirect is set then do not mark registers as
2257         free because they were not allocated from temporary pool,
2258         * pic16_popRegFromString): workaround to fix a problem with
2259         allocating variables twice or never,
2260         * (genGenPointerGet): using PRODL instead of FSR0H,
2261         * (genGenPointerSet): using POSTDEC1 (that is a stack location)
2262         instead of FSR0H,
2263         * (genAssign): take advantage of the _G.resDirect flag,
2264         * (genCast): around line 11844, use mov2f instead of directly
2265         MOVFF'ing between operands to account for literal values,
2266         * src/pic16/genutils.c: some new debug functions for gpsim have been
2267         added,
2268         * src/pic16/glue.c (pic16_printIvalType): fixed bug that initialized
2269         float with integer part only,
2270         * src/pic16/main.c (_process_pragma): handle pragma udata access to
2271         place variables in access bank
2272         * device/lib/pic16/libsdcc/gptr/gptr*.c: using BRA instead of GOTO,
2273         updated sources to reflect recent changes in gen.c
2274
2275 2004-10-06 Vangelis Rokas <vrokas AT otenet.gr>
2276
2277         * device/lib/pic16/libsdcc/Makefile.rules: fixed bug concerning
2278         sources that searched for headers in installation path, now the
2279         device/include/pic16 is used,
2280         * src/pic16/glue.c (pic16glue),
2281         * src/pic16/pcode.c (pCode2str, genericPrint): don't print .file or
2282         .line directives if not in debug mode, this suppresses assembler's
2283         warnings for ignored directives
2284
2285 2004-10-05 Maarten Brock <sourceforge.brock AT dse.nl>
2286
2287         * src/port.h: made reset_regparms prototype void parameter explicit.
2288         * src/SDCCsymt.c (processFuncArgs): removed argument "func".
2289         * src/mcs51/ralloc.c (packRegisters): new fix for bugs 898889 & 979599.
2290         * doc/sdccman.lyx: documented warning disabling and how to use
2291           printf_large to make it print floats.
2292         * device/include/stdbool.h: NEW
2293         * device/lib/_atof.c,
2294         * device/lib/_divuint.c,
2295         * device/lib/_divulong.c,
2296         * device/lib/expf.c,
2297         * device/lib/printf_large.c,
2298         * device/lib/sincosf.c,
2299         * device/lib/sincoshf.c: used stdbool.h, all compile with stack-auto now
2300         * device/lib/Makefile.in: added target for model-mcs51-reentrant to build
2301           a completely reentrant lib.
2302
2303 2004-10-05 Vangelis Rokas <vrokas AT otenet.gr>
2304
2305         * device/lib/pic16/libsdcc/gptr/gptr*.c: added return statements
2306         * device/include/pic16/stdio.h: fixed bug with colon
2307
2308 2004-10-03 Vangelis Rokas <vrokas AT otenet.gr>
2309
2310         * device/include/pic16/stdio.h,
2311         * device/include/pic16/stdlib.h,
2312         * device/include/pic16/math.h: NEW
2313         * device/lib/pic16/libsdcc/gptr/*.c (gptrget*, gptrput*): functions
2314         declared as _naked to reduce overhead
2315         * device/lib/Makefile.in (target port-specific-objects-pic16):
2316         changed * to *.* so to ignore the CVS directory,
2317         * src/pic16/gen.c (pic16_freeAsmop): added code to store result of
2318         stacked variables back in stack,
2319         * (genEndFunction): fixed bug reported by G.M. Gallant with stack
2320         corruption
2321
2322 2004-10-01 Vangelis Rokas <vrokas AT otenet.gr>
2323
2324         * .version: bumped version number to 2.4.5
2325         * support/Util/SDCCerr.h: added warning W_POSSBUG2.
2326         * support/Util/SDCCerr.c (messages structure): added entry for
2327         W_POSSBUG2
2328
2329         Large cumulative patch for pic16 port and libraries.
2330         * device/include/pic16/sdcc-lib.h,
2331         * device/include/pic16/stdarg.h,
2332         * device/include/asm/pic16/features.h,
2333         * device/include/lib/pic16/libsdcc/gptr/{*.c, Makefile}: NEW,
2334         * device/include/pic16/float.h: changes reentrant keyword with
2335         _FS_REENTRANT, added prototype for __fsneq, included sdcc-lib.h
2336         * device/lib/pic16/libsdcc/Makefile: added target directory gptr,
2337         updated target build-libraries to include objects from gptr,
2338         * device/lib/pic16/libsdcc/{char,int,long}/*.c: added macro
2339         _IL_REENTRANT to all function headings, included sdcc-lib.h header,
2340         * device/lib/pic16/libsdcc/float/*.c: added macro _FS_REENTRANT to
2341         all function headings,
2342         * src/SDCCmain.c: added global parameter userIncDirsSet,
2343         * (parseCmdLine): when option -I is encountered add directory to
2344         userIncDirsSet too,
2345         * src/version.awk: added space between control and long,
2346         * src/pic16/NOTES: added some notes for the port,
2347         * src/pic16/gen.c: added prototype for mov2fp function,
2348         * (fReturnpic16[]): properly named return value registers,
2349         * (_G structure): added fields stackRegSet, fregsUsed, stack_lat,
2350         * (aopForSym): added code to handle symbols with onStack flag set,
2351         symbols onStack are allocated PTRSIZE bytes,
2352         * (aopFreeAsmop): handles special case where asmops are stack objects,
2353         * (aopGet, pic16_popGet): adde cod to handle new asmop AOP_STA,
2354         * (pic16_popGetTempReg, pic16_popGetTempRegCond, pic16_popReleaseTempReg):
2355         added argument lock to trace flaws in allocating temporary registers
2356         when developing port,
2357         * (pic16_popGetLit, pic16_popGetLit2): changed lit from unsigned to signed
2358         * (pic16_popRegFromString): reenabled allocating a direct register
2359         from string,
2360         * (assignResultValue): various beautifications,
2361         * fixed bug #1037717 (patch from R. Neider & D. Wrinkler) with mistaken
2362         referenced function argument,
2363         * (genIpush): reenabled to allow stacked arguments, handles only
2364         ic->parmPush iCodes,
2365         * (genCall, genPcall): major changes to allow for variable argument
2366         functions, fixed a bug with falsely restoring stack pointer after
2367         returning from call,
2368         * (genFunction): pending code for critical function,
2369         * (shiftR1Left2ResultSigned, shiftR1Left2Result, shiftL2Left2Result,
2370         * (shiftR2Left2Result, shiftLLong) applied patch #1032155 from R.Neider,
2371         * (genNearPointerGet): fixed bug with indirect reading, was always
2372         reading from INDF0
2373         * (genGenPointerGet, genGenPointerSet): rewrote to support generic
2374         pointers,
2375         * (genAddrOf): rewrote code to take address of a stacked function parameter
2376         * (genCast): fixed casting to generic pointer type,
2377         * src/pic16/gen.h: added AOP_STA,
2378         * (struct asmop): added field stk,
2379         * src/pic16/genarith.c (pic16_AopType): handle AOP_STA,
2380         * (pic16_genPlusIncr): changed emitSKPNZ to emitSKPNZ,
2381         * (pic16_genAddLit, pic16_genPlus): applied patch #1034042 by tecodev,
2382         * (pic16_genMinus): fixed bug #1035119 with patch submitted by tecodev,
2383         * src/pic16/genutils.c (pic16_genNot): removed symbol *tlbl,
2384         * src/pic16/glue.c (pic16_printGPPointerType): fixed to support new
2385         generic pointers,
2386         * src/pic16/main.c (_pic16_initPaths): ignores default SDCC include
2387         and library paths,
2388         * (pic16_port structure): generic pointer size is set to 3,
2389         * src/pic16/pcode.c (pic16_newpCodeOpLit): correctly print literal integer,
2390         * (insertBankSwitch): cast to (char *) to prevent 64bit CPUs'
2391         compiler warning,
2392         * src/pic16/ralloc.c (allocReg): prevent allocating register when
2393         operand is an iTemp,
2394
2395 2004-09-24 Martin Helmling <mh AT octo-soft.de>
2396
2397         * debugger/mcs51/cmd.c: set PC if a symbol at pc reg is set
2398         * debugger/mcs51/simi.c: addapt new syntax of s51
2399
2400 2004-09-23 Vangelis Rokas <vrokas AT otenet.gr>
2401
2402         * src/pic16/genutils.c (pic16_genNot): fixed bug #1032265,
2403         * src/pic16/pcode.c: commented out some calls to free() in order to
2404         fix bug #989576,
2405
2406 2004-09-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2407
2408         * src/SDCCicode.h,
2409         * src/SDCCicode.c (isiCodeInFunctionCall),
2410         * src/avr/ralloc.c (selectSpil),
2411         * src/pic/ralloc.c (selectSpil),
2412         * src/pic16/ralloc.c (selectSpil),
2413         * src/ds390/ralloc.c (selectSpil),
2414         * src/hc08/ralloc.c (selectSpil),
2415         * src/xa51/ralloc.c (selectSpil),
2416         * src/mcs51/ralloc.c (selectSpil): Don't use remainSpil to spill to the
2417         stack in the middle of a function call sequence (fixes bug #1020268)
2418         * src/SDCCicode.c (geniCodeJumpTable): fixed error in computing the
2419         costs associated with the minimum switch case.
2420
2421 2004-09-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2422
2423         * src/SDCC.lex: fixed bug #1030549
2424
2425 2004-09-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2426
2427         * src/SDCCcse.h (struct cseDef),
2428         * src/SDCCcse.c (cseBBlock, newCseDef, ifFromAddrTaken): purge CSEs
2429         over a function call if the CSE is derived from a symbol whose
2430         address has been taken (fixes bug #1029883)
2431         * support/regression/tests/bug-1029883: a new regression test for
2432         this bug
2433
2434 2004-09-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2435
2436         * src/hc08/gen.c (emitinline): fixed bug #1029778
2437         * src/SDCC.y (assignment_expr): fixed the grammer so that assignment
2438         to a cast object is no longer a syntax error ("fixes" bug #1030006,
2439         and starts toward RFE #905167)
2440
2441 2004-09-17 Vangelis Rokas <vrokas AT otenet.gr>
2442
2443         * src/pic16/gen.c (mov2f): New function to move an operand to
2444         another without considering if it is a literal or a register,
2445         * (pic16_sameRegs): don't check if they are both AOP_REG,
2446         * (AccRsh): removed andmask=0 lines,
2447         * (genLeftShift): duplicated to be improved in future versions,
2448         * src/pic16/main.c (_process_pragma): emit stack default size in hex,
2449         * src/pic16/pcode.c: added POC_INFSNZW, updated inverted_op fields
2450         in POC_INCFSZ, POC_INCFSZW, POC_INFSNZ,
2451         * (pic16initMnemonics): added initialization for POC_INFSNZW,
2452         * (insertBankSwitch): fixed inserting banksel directives algorithm
2453         for instructions that follow a skip instruction, this fixes a report
2454         for broken subtraction code generation,
2455         * src/pic16/ralloc.c (deassignLRs): do not free register if current
2456         iCode is a left op, just in case result and right share the same
2457         registers
2458
2459 2004-09-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2460
2461         * src/hc08/main.c,
2462         * src/hc08/gen.c (genJumpTable): more efficient jump table, supports
2463         preservation of HX
2464         * src/hc08/gen.c (pullRegs): fixed order of HX & XA pairs
2465         * src/mcs51/ralloc.c (packRegisters): removed the patch applied
2466         on 2004-09-12; it was buggy
2467
2468 2004-09-15 Bernhard Held <bernhard AT bernhardheld.de>
2469
2470         * src/SDCCsymt.h: removed RESULT_CHECK
2471         * src/SDCCast.c,
2472         * src/SDCCglue.c,
2473         * src/SDCCval.c,
2474         * src/pic/glue.c,
2475         * src/pic16/glue.c: replaced RESULT_CHECK with RESULT_TYPE_NONE
2476
2477 2004-09-15 Vangelis Rokas <vrokas AT otenet.gr>
2478
2479         * src/SDCCicode.c (piCode): applied patch from Raphael Neider,
2480         * src/pic16/device.c (pic16_assignConfigWordValues): wrong
2481         configuration values no more rejected by compiler, they are assigned
2482         to configuration registers with a warning message instead,
2483         * src/pic16/glue.c (pic16_emitConfigRegs): added +1 at top-limit of
2484         the for-loop so last conf register is emitted too,
2485         * (_pic16_initPaths): link library libsdcc.lib by default,
2486         * (_hasNativeMulFor): modified test for multiplication according to
2487         Raphael Neider's remarks. Integer multiplication is also done with
2488         support functions,
2489         * device/include/pic16/pic18fregs.h: corrected type error in while
2490         testing and including 18f6720 header file
2491
2492 2004-09-14 Vangelis Rokas <vrokas AT otenet.gr>
2493
2494         * src/pic16/device.h (pic16_options): removed field use_crt,
2495         * src/pic16/gen.c (genUnpackBits): added call to pic16_loadFSR0
2496         until an optimization to handle single bits is added,
2497         * (pic16_loadFSR0): moved before genUnpackBits,
2498         * (genAnd): some white lines removed,
2499         * src/pic16/main.c (_pic16_finaliseOptions): set omit_ivt and clear
2500         leave_reset flags in pic16_options when using crt modules,
2501
2502 2004-09-12 Maarten Brock <sourceforge.brock AT dse.nl>
2503
2504         * src/mcs51/ralloc.c (packRegisters): applied fix by Bernhard Held
2505           for bugs 898889 & 979599. Also used some safer print instructions.
2506
2507 2004-09-12 Vangelis Rokas <vrokas AT otenet.gr>
2508
2509         * src/pic16/device.h (pic16_options_t): added field use_crt,
2510         crt_name, no_crt,
2511         * src/pic16/genarith.c (pic16_genPlus): added an assert(0) line to
2512         catch a probable future bug,
2513         * src/pic16/gen.c: aopIdx function commented out,
2514         * (genAssign): commented out old code which used aopIdx,
2515         * src/pic16/glue.c (pic16glue): removed some legacy fragments of
2516         code, added if conditionals to take into account the --use-crt
2517         command line options,
2518         * src/pic16/main.c (pic16_optionsTable): added new command line
2519         options, --use-crt= and --no-crt,
2520         * (_pic16_linkEdit): now the proper crt object is added in the
2521         linker command line except than when --no-crt is specified,
2522         * src/pic16/pcode.c,
2523         * src/pic16/pcode.h: added some structures and functions for a new
2524         optimization scheme to compansate for instruction overhead between
2525         same iCodes, this scheme is currently under development and is not
2526         working in any way,
2527         * src/pic16/gen.c (genAnd): added patch provided by Aaron Collwell
2528         to && operator,
2529         * device/lib/pic16/startup/crt0i.c,
2530         * device/lib/pic16/startup/crt0iz.c: added global char variable
2531         __uflags to force the generation of an idata section
2532
2533 2004-09-12 Bernhard Held <bernhard AT bernhardheld.de>
2534
2535         * doc/Makefile,
2536         * doc/clean.mk: added support for easy creation of sdcc-doc.tar.bz2
2537         * doc/sdccman.lyx: updated sdcc version to 2.4.4
2538
2539 2004-09-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2540
2541         * doc/sdccman.lyx: fixed a problem with my new index entries (thanks
2542         Frieder) and clarified the default code optimization mode
2543
2544 2004-09-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2545
2546         * src/SDCC.lex (doPragma, process_pragma),
2547         * src/SDCCglobl.h (struct optimize): added pragmas "opt_code_speed",
2548         "opt_code_size", and "opt_code_balanced"
2549         * src/SDCCmain.c (optionsTable[], printOptions, scanOptionsTable):
2550         regrouped options by category, added support for category headers
2551         * src/SDCCmain.c (parseCmdLine): added options "--opt-code-speed"
2552         and "--opt-code-size"
2553         * doc/sdccman.lyx: documented these new options and pragmas
2554         * src/hc08/gen.c (AccLsh, AccRsh): take speed/size optimization
2555         preference into account
2556
2557 2004-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
2558
2559         * src/SDCCicode.c (geniCodePostInc, geniCodePreInc, geniCodePostDec,
2560           geniCodePreDec): Fixed bug 904237 by generating a warning
2561         * src/SDCCerr.h,
2562         * src/SDCCerr.c: added warning W_SIZEOF_VOID
2563
2564 2004-09-09 Slade Rich <slade_rich AT users.sourceforge.net>
2565
2566         * src/pic/device.c : When no max ram set validate full memory range.
2567         * src/pic/pcode.c,
2568         * src/pic/pcodepeep.c : Copy C code comments to optimised replacement code.
2569
2570 2004-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
2571
2572         * device/lib/_gptrget.c,
2573         * device/lib/_gptrput.c: updated comment
2574         * device/lib/calloc.c,
2575         * device/lib/free.c,
2576         * device/lib/malloc.c,
2577         * device/lib/realloc.c: added LGPL, made them reentrant-safe
2578         * src/SDCCcse.c (cseBBlock),
2579         * src/SDCCicode.c (printOperand, geniCodeArray),
2580         * src/SDCCicode.h (struct operand): fixed bug 868103
2581         * support/regression/tests/bug-868103.c: added
2582         * src/SDCCast.c (searchLitOp),
2583         * src/SDCCcse.h (struct cseDef),
2584         * src/SDCCglue.c (printIvalArray, spacesToUnderscores),
2585         * src/SDCCicode.h (struct operand),
2586         * src/SDCCsymt.h (struct sym_link),
2587         * src/avr/gen.c (hasInc),
2588         * src/ds390/gen.c (hasInc),
2589         * src/hc08/gen.c (genPlusIncr, hasInc),
2590         * src/mcs51/gen.c (hasInc),
2591         * src/pic16/glue.c (pic16_printIvalChar),
2592         * src/pic16/ralloc.c (regWithIdx),
2593         * src/xa51/gen.c (hasInc) : removed warnings
2594         * src/SDCCast.c (createBlock): added comment ???
2595         * src/hc08/ralloc.c: updated comments
2596
2597 2004-09-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2598
2599         * doc/sdccman.lyx: updated section on switch statements, added
2600         section about semaphore locking
2601         * doc/Makefile: added option -info for latex2html
2602         * device/lib/_gptrget.c,
2603         * device/lib/_gptrput.c: __XPAGE instead of P2 in outcommented code
2604
2605 2004-09-06 Slade Rich <slade_rich AT users.sourceforge.net>
2606
2607         * src/pic/device.h,
2608         * src/pic/device.c,
2609         * src/pic/port.c : Changed PIC14 code to not set bit RP1 when
2610          maxram is less than 0x100.
2611
2612 2004-09-06 Slade Rich <slade_rich AT users.sourceforge.net>
2613
2614         * Bug fixes for PIC14 - signed RSHIFT problem. Patch supplied by Allen(agschrum).
2615
2616 2004-09-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2617
2618         * src/port.h,
2619         * src/mcs51/main.c,
2620         * src/ds390/main.c,
2621         * src/z80/main.c,
2622         * src/hc08/main.c,
2623         * src/pic/main.c,
2624         * src/pic16/main.c,
2625         * src/avr/main.c,
2626         * src/xa51/main.c
2627         * src/SDCCicode.c (geniCodeJumpTable): Better logic to determine if a
2628         a jump table is the best form for a switch statement, including
2629         automatic insertion of missing cases to make the case range
2630         continuous. Developed in collaboration with Frieder Ferlemann.
2631
2632 2004-09-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2633
2634         * src/hc08/ralloc.c (canDefAccResult): multi-byte shift is unsafe for
2635         accumulator result if it needs sign extension
2636
2637 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
2638
2639         * src/hc08/ralloc.c (canUseAccOperand): fixed comparison bug
2640
2641 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
2642
2643         * device/lib/gbz80/printf.c,
2644         * device/lib/z80/printf.c: removed define for NULL
2645
2646 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
2647
2648         * as/xa51/xa_link.c,
2649         * device/examples/ds390/ow390/ad26.c,
2650         * device/examples/ds390/ow390/cnt1d.c,
2651         * device/examples/ds390/ow390/counter.c,
2652         * device/examples/ds390/ow390/ds2480.h,
2653         * device/examples/ds390/ow390/ds2480ut.c,
2654         * device/examples/ds390/ow390/findtype.c,
2655         * device/examples/ds390/ow390/gethumd.c,
2656         * device/examples/ds390/ow390/owllu.c,
2657         * device/examples/ds390/ow390/ownetu.c,
2658         * device/examples/ds390/ow390/swt12.c,
2659         * device/examples/ds390/ow390/swtloop.c,
2660         * device/examples/ds390/ow390/temp.c,
2661         * device/examples/ds390/ow390/temp10.c,
2662         * device/examples/ds390/ow390/thermo21.c,
2663         * device/examples/ds390/ow390/tinilnk.c,
2664         * device/examples/ds390/ow390/tstfind.c,
2665         * device/examples/serialcomm/windows/serial.cpp,
2666         * device/examples/serialcomm/windows/test_serialcomm.cpp,
2667         * device/include/reg51.h: fixed line endings for cvs
2668
2669 2004-09-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2670
2671         * src/hc08/ralloc.c (canDefAccResult, canUseAccOperand,
2672         packRegsForAccUse, packRegisters): new accumulator register
2673         packing algorithm
2674         * support/regression/ports/hc08/support.c (_putchar): suppress
2675         warning of unused variable
2676         * src/SDCCicode.c: added SWAP entry to codeTable
2677
2678 2004-09-01 Maarten Brock <sourceforge.brock AT dse.nl>
2679
2680         * device/lib/sprintf.c: forgot to add this file before previous commit
2681
2682 2004-09-01 Vangelis Rokas <vrokas AT otenet.gr>
2683
2684         * src/pic16/gen.c (genPackBits): added operand right in function
2685         parameters, load result directly if p_type is POINTER (that is
2686         called by genNearPointerSet)
2687         * (genUnPackBits): added operand left in function parameters,
2688         * (genNearPointerGet, genNearPointerSet): prevent the loading of
2689         FSR0 if accessing bitfields,
2690
2691 2004-08-31 Maarten Brock <sourceforge.brock AT dse.nl>
2692
2693         * device/include/stdio.h: added NULL, size_t, typedef pfn_outputchar,
2694           _print_format; updated printf, sprintf, vsprintf
2695         * device/include/asm/default/features.h: corrected comment/define
2696         * device/lib/Makefile.in: added sprintf.c
2697         * device/lib/libsdcc.lib: added sprintf module
2698         * device/lib/printf_large.c,
2699         * device/lib/vprintf.c,
2700         * device/lib/sprintf.c: totally refactored printf_large and vprintf
2701           into these 3 files
2702         * support/regression/Makefile: changed ALL_PORTS into a usefull default
2703         * support/regression/ports/mcs51-stack-auto/spec.mk: added sprintf
2704         * support/regression/tests/bug-927659.c: removed dummy putchar, enabled
2705           hc08 test
2706         * support/regression/tests/zeropad.c: define idata as data for hc08
2707
2708 2004-08-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2709
2710         * src/SDCCpeeph.c (labelIsReturnOnly): support hc08 rts opcode also
2711         * src/SDCCpeeph.c (buildLabelRefCountHash): assume function entry point
2712         labels are referenced at least once (even if a reference is not found)
2713         * src/hc08/gen.c (emitcode): set isComment flag for comments
2714         * src/hc08/peeph.def: added rules 5a..5f (optimize redundant immediate
2715         loads), rules 6a..6b (optimize jumps to return)
2716
2717 2004-08-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2718
2719         * device/lib/acosf.c (acosf),
2720         * device/lib/asinf.c (asinf),
2721         * device/lib/atanf.c (atanf),
2722         * device/lib/ceilf.c (ceilf),
2723         * device/lib/cosf.c (cosf),
2724         * device/lib/coshf.c (coshf),
2725         * device/lib/cotf.c (cotf),
2726         * device/lib/fabsf.c (fabsf),
2727         * device/lib/floorf.c (floorf),
2728         * device/lib/log10f.c (log10f),
2729         * device/lib/logf.c (logf),
2730         * device/lib/sinf.c (sinf),
2731         * device/lib/sinhf.c (sinhf),
2732         * device/lib/sqrtf.c (sqrtf),
2733         * device/lib/tanf.c (tanf),
2734         * device/lib/tanhf.c (tanhf),
2735         * device/include/math.h: defined _FLOAT_FUNC_REENTRANT macro and
2736         replaced all instances of "reentrant" in the library functions
2737         defined in math.h with this macro.
2738         * support/regression/tests/float_trans.c: reenabled test for hc08
2739
2740 2004-08-30 Bernhard Held <bernhard AT bernhardheld.de>
2741
2742         * device/lib/pic16/Makefile.common.in: added MODELFLAGS again, it was
2743         erroneously deleted
2744
2745 2004-08-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2746
2747         * src/hc08/gen.c (loadRegFromAop): better use of clra & clrx
2748         * src/hc08/gen.c (genAnd, genOr): fixed bug with conditional when
2749         multi-byte volatile operands are used
2750         * src/hc08/gen.c (shiftRLong): fixed bug with wrong rotate direction
2751         * src/hc08/main.c (_hc08_genAssemblerPreamble): moved the built-in
2752         initialization to area GSINIT0 so that it would always precede
2753         any static initializers in GSINIT
2754         * support/regression/tests/zeropad.c: fixed idata define for hc08
2755         * support/regression/tests/bug-927659.c,
2756         * support/regression/tests/float_trans.c: disabled tests for hc08
2757         pending missing library routines
2758         * .version: increased version number to 2.4.4 - hc08 port now passes
2759         regression tests
2760
2761
2762 2004-08-29 Bernhard Held <bernhard AT bernhardheld.de>
2763
2764         * device/lib/pic16/Makefile.common.in: added $(MM) to fix `make clean`
2765         * Makefile.common.in,
2766         * as/Makefile,
2767         * as/hc08/Makefile.in,
2768         * as/mcs51/Makefile.in,
2769         * as/z80/Makefile.in,
2770         * debugger/mcs51/Makefile.in,
2771         * device/include/Makefile.in,
2772         * device/lib/Makefile.in,
2773         * doc/Makefile,
2774         * link/Makefile,
2775         * link/z80/Makefile.in,
2776         * packihx/Makefile.in,
2777         * sim/ucsim/main_in.mk,
2778         * sim/ucsim/avr.src/Makefile.in,
2779         * sim/ucsim/doc/Makefile.in,
2780         * sim/ucsim/gui.src/serio.src/Makefile.in,
2781         * sim/ucsim/hc08.src/Makefile.in,
2782         * sim/ucsim/s51.src/Makefile.in,
2783         * sim/ucsim/xa.src/Makefile.in,
2784         * sim/ucsim/z80.src/Makefile.in,
2785         * src/Makefile.in,
2786         * support/cpp2/Makefile.in,
2787         * support/librarian/Makefile,
2788         * support/makebin/Makefile: added DESTDIR to the install path proposed
2789         by "Maciej 'Agaran' Pijanka" <agaran AT pld-linux.org>
2790         * doc/sdccman.lyx: added DESTDIR documentation
2791
2792 2004-08-29 Vangelis Rokas (vrokas AT otenet.gr>
2793
2794         * src/pic16/gen.c (genFunction, genEndFunction): fixed return
2795         instruction for interrupt handlers, use fast returns when returning
2796         from high priority interrupts
2797
2798 2004-08-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2799
2800         * src/hc08/gen.c (genAnd, genOr, transferAopAop, rmwWithAop): optimized
2801         code generation
2802         * src/hc08/gen.c (genrshFour, genCpl): fixed bugs
2803         * src/hc08/gen.c (genMultOneByte, genDivOneByte, genModOneByte): fixed
2804         bugs, ported much of Bernhard's code from mcs51
2805         * src/mcs51/gen.c (genSend),
2806         * src/hc08/gen.c (genSend): fixed bug with lost SEND iCodes if more
2807         than one when calling a reentrant function
2808         * device/lib/_mullong.c: defined an alternate struct layout for big
2809         endian ports (hc08)
2810
2811 2004-08-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2812
2813         * src/hc08/gen.c (shiftL2Left2Result): fix for bug-500536 regression
2814         test
2815
2816 2004-08-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2817
2818         * src/SDCCsymt.c (processFuncArgs): make sure parameter types
2819         are sane and complete before asking the port its prefered parameter
2820         passing method (fixes bug #1017633)
2821         * device/lib/hc08/_ret.c: added "data" storage class to _ret2
2822         and _ret3
2823
2824 2004-08-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2825
2826         * src/hc08/gen.c (genPackBitsImmed, genUnpackBitsImmed): fix offset
2827         problem in bitfields >= 8 bits.
2828
2829 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
2830
2831         * src/SDCCsymt.c: undid changes that were not meant to be committed
2832
2833 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
2834
2835         * support/regression/ports/hc08spec.mk: REENTRANT must be reentrant
2836
2837 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
2838
2839         * src/hc08/gen.c (genUminusFloat): fixed bug where only 3 bytes were
2840           copied and wrong bit got inverted
2841
2842 2004-08-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2843
2844         * src/hc08/gen.c (genPointerSet, genFarPointerSet): moved code from
2845         genFarPointerSet into genPointerSet; eliminated genFarPointerSet
2846         * src/hc08/gen.c (genPointerGet, genFarPointerGet): moved code from
2847         genFarPointerGet into genPointerGet; eliminated genFarPointerGet
2848         * src/hc08/gen.c (genPackBitsImmed): generate optimized code for
2849         assignments to bitfields at known addresses
2850         * src/hc08/gen.c (genUnpackBitsImmed): generate optimized code for
2851         reads from bitfields at known addresses
2852         * src/hc08/ralloc.c (packRegisters),
2853         * src/hc08/gen.c (genPointerGet, genUnpackBits, genUnpackBitsImmed,
2854         genhc08Code): optimize pointer get values used as conditionals
2855         * src/hc08/peeph.def: added rules 2e & 2f to optimize bit test
2856         and branch
2857
2858 2004-08-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2859
2860         * src/mcs51/gen.c (genPointerGet, genNearPointerGet, genPagedPointerGet,
2861         genFarPointerGet, genCodePointerGet, genGenPointerGet, genUnpackBits),
2862         * src/mcs51/ralloc.c (packRegisters): optimize pointer get values used
2863         as conditionals
2864
2865 2004-08-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2866
2867         * src/mcs51/peeph.def: peepholes 248.i-m for xdata bitfields
2868
2869 2004-08-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2870
2871         * src/mcs51/ralloc.c (packRegsForOneuse): fixed bug #1012650 and some
2872         related problems
2873
2874 2004-08-21 Bernhard Held <bernhard AT bernhardheld.de>
2875
2876         * sim/ucsim/cmd.src/Makefile.in: run lex only if $(PRJDIR)/devel exists
2877
2878 2004-08-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2879
2880         * src/z80/ralloc.c (packRegsForAssign): ported some bug fixes from the
2881         mcs51 port
2882
2883 2004-08-16 Slade Rich <slade_rich AT users.sourceforge.net>
2884
2885         * src/pic/gen.c: Restored fn genRet as previous fix was incorrect.
2886
2887 2004-08-14 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2888
2889         * src/mcs51/gen.c (genJumpTab): jumptables for more than 16 switch
2890         cases use more compact code.
2891
2892 2004-08-13 Slade Rich <slade_rich AT users.sourceforge.net>
2893
2894         * src/pic/gen.c: Fixed problem with fn returning a variable bigger than a char.
2895
2896 2004-08-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2897
2898         * src/SDCClrange.c (findPrevUse): fixed bug #1007371
2899
2900 2004-08-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2901
2902         * src/SDCCsymt.h,
2903         * src/SDCCsymt.c (changePointer, checkDecl, addSymChain): changed
2904         parameter of changePointer() from symbol* to sym_link*
2905         * src/SDCCast.c (decorateType): call changePointer() for CAST op
2906         * src/SDCCsymt.c (compareType): void* type is castable to other
2907         pointers, but not necesarily an exact match.
2908         * src/SDCCicode.c (geniCodeCast): allow void* casting here since it
2909         is no longer blindly treated as an exact match.
2910         * src/SDCCval.c (valCastLiteral): treat missing type as cast to void
2911
2912 2004-08-12 Slade Rich <slade_rich AT users.sourceforge.net>
2913
2914         * src/pic/glue.c: Added struct initialisation fn printIvalStruct.
2915
2916 2004-08-11 Slade Rich <slade_rich AT users.sourceforge.net>
2917
2918         * src/pic/gen.c,
2919         * src/pic/pcode.c,
2920         * src/pic/ralloc.h,
2921         * src/pic/ralloc.c: Printing rIdx on internal verbose debug.
2922
2923 2004-08-10 Slade Rich <slade_rich AT users.sourceforge.net>
2924
2925         * src/pic/device.c,
2926         * src/pic/device.h,
2927         * src/pic/device.c: Will no longer exit if #pragma maxram has not been defined.
2928
2929 2004-08-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2930
2931         * src/mcs51/gen.c (emitcode): fixed bug #992819
2932
2933 2004-08-05 Maarten Brock <sourceforge.brock AT dse.nl>
2934
2935         * src/pic/ralloc.c (deassignLR): allthough pic port is buggy already,
2936           there's no need to make it worse
2937
2938 2004-08-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2939
2940         * src/mcs51/ralloc.c (deassignLR),
2941         * src/ds390/ralloc.c (deassignLR),
2942         * src/hc08/ralloc.c (deassignLR),
2943         * src/z80/ralloc.c (deassignLR),
2944         * src/pic/ralloc.c (deassignLR),
2945         * src/pic16/ralloc.c (deassignLR),
2946         * src/avr/ralloc.c (deassignLR),
2947         * src/SDCClrange.c (findRecursiveSucc, findRecursivePred, findPrevUse,
2948         rlivePoint): fixed another part of bug #971834
2949
2950 2004-08-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2951
2952         * src/z80/main.c: enabled "critical" keyword
2953         * src/z80/mappings.i,
2954         * src/z80/gen.c (genFunction, genEndFunction): support for interrupt
2955         functions (fixes bug #979646)
2956         * doc/sdccman.lyx: added a subsection explaining z80 interrupt support
2957
2958 2004-08-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2959
2960         * src/mcs51/gen.c (genInline): Add \n for labels, not DOS/WIN dirs
2961           such as c:\mydir.
2962
2963 2004-08-03 Maarten Brock <sourceforge.brock AT dse.nl>
2964
2965         * src/SDCCloop.c (loopInvariants): fixed bug 983545, hope this
2966           doesn't disable too much optimizations
2967
2968 2004-08-02 Slade Rich <slade_rich AT users.sourceforge.net>
2969
2970         * src/pic/glue.c Disabled "WARNING: function 'main' undefined" when -S option is used.
2971
2972 2004-08-02 Maarten Brock <sourceforge.brock AT dse.nl>
2973
2974         * src/SDCClrange.c (rlivePoint): fixed bug 988568, thanks to anonymous
2975
2976 2004-08-02 Slade Rich <slade_rich AT users.sourceforge.net>
2977
2978         * src/pic/gen.c tidied up tabs
2979         * src/pic/genarith.c tidied up tabs and fixed bug with literal multiple where same register was used for hi and low byte
2980         * src/pic/main.c tidied up tabs
2981         * src/pic/pcode.c tidied up tabs and disabled verbose code generation
2982         * src/pic/pcoderegs.c tidied up tabs
2983         * src/pic/ralloc.c tidied up tabs
2984
2985 2004-07-30 Vangelis Rokas <vrokas AT otenet.gr>
2986
2987         * src/SDCCmem.c (allocGlobal): don't turn S_REGISTER storage class
2988         to S_FIXED for pic16 port and when symbol is not in level 0,
2989         allocate for S_REGISTER storage class and pic16 port, too,
2990         * src/pic16/device.h: prototype for checkSym,
2991         * src/pic16/device.c (pic16_dump_access, checkSym): NEW,
2992         * (pic16_assignConfigWordValue): test the value and the mask to
2993         validate that the value is suitable for the configuration word,
2994         * src/pic16/glue.c (pic16_printIvalFuncPtr): use 'externs' to
2995         collect extern declared symbols, don't emit symbol twice, check
2996         first if symbol is in publics set first,
2997         * src/pic16/main.c (_pic16_keywords[]): added keyword 'register',
2998         * added command line '--fstack' which enables an experimental
2999         feature for stack access, too buggy to be used yet...
3000         * src/pic16/ralloc.c (pic16_accessregWithName): NEW,
3001         * (pic16_allocDirReg): when register has storage class S_REGISTER
3002         allocate in pic16_dynAccessRegs,
3003         * device/include/pic16/pic18f????.h: modified configuration word
3004         naming convention, words started as CONFIG0H but should be CONFIG1H
3005
3006 2004-07-29 Maarten Brock <sourceforge.brock AT dse.nl>
3007
3008         * device/include/mcs51reg.h: fixed bug 970993
3009
3010 2004-07-27 Maarten Brock <sourceforge.brock AT dse.nl>
3011
3012         * added lib/calloc.c, lib/free.c, lib/realloc.c, include/stddef.h
3013         * updated lib/malloc.c, lib/libsdcc.lib, lib/Makefile.in, include/malloc.h
3014         * src/SDCC.lex (doPragma): added pragma disable_warning <nnn>
3015         * src/SDCCmain.c (parseCmdLine): added option --disable-warning <nnn>
3016         * src/ds390/gen.c (genPlusIncr): fixed bug when incrementing generic pointers
3017         * support/Util/SDCCerr.c (vwerror): suppress disabled warnings and output
3018           error/warning numbers,
3019           added function setWarningDisabled()
3020         * support/Util/SDCCerr.h: added setWarningDisabled() and MAX_ERROR_WARNING
3021         * support/regression/ports/mcs51-stack-auto/spec.mk: added dependencies
3022           _memcmp.c _memmove.c calloc.c realloc.c free.c
3023         * support/regression/tests/malloc.c: added tests for new functionality
3024         * support/regression/tests/zeropad.c: added tests for truncated initializers
3025           and initialized char arrays starting with '\x0'
3026         * src/mcs51/peeph.def: fixed regression, added peephole 177.f
3027
3028 2004-07-26 Bernhard Held <bernhard AT bernhardheld.de>
3029
3030         * support/valdiag/tests/overflow.c: fixed warning on (1 >> 40)
3031
3032 2004-07-26 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3033
3034         * doc/sdccman.lyx: updated example in section "Absolute Addressing"
3035         * src/mcs51/peeph.def: added contributed fix for "bug" #995347 as
3036         peephole 177.e. Thanks to anonymous
3037
3038 2004-07-25 Vangelis Rokas <vrokas AT otenet.gr>
3039
3040         * src/pic16/glue.c (pic16_printIvalFuncPtr): when an extern
3041         function isn't used in the source but referenced as a
3042         variable initializer then declare it as extern in .asm file
3043
3044 2004-07-24 Vangelis Rokas <vrokas AT otenet.gr>
3045
3046         * .version: increased version number to 2.4.3
3047
3048         Adding version extension according to ChangeLog CVS revision
3049         * src/Makefile.in (target all): added dependency 'version.h'
3050         * (rule version.h): added rule to create version.h from ChangeLog,
3051         * (rule dep): added dependency version.h,
3052         * src/version.awk: AWK script to create version.h
3053         * src/SDCCdwarf2.c (dwWriteModule),
3054         * src/SDCCglue.c (initialComments),
3055         * src/SDCCmain.c (printVersionInfo): modified to write after
3056         version string the version extension number,
3057         * src/SDCCutil.c: included "version.h"
3058         * (getBuildNumber): NEW, returns SDCC's ChangeLog minor revision
3059         number,
3060         * src/SDCCutil.h: added prototype for getBuildNumber
3061
3062         * src/SDCCmain.c (parseCmdLine): when sOpt is 'I' add rest in
3063         includeDirsSet, too,
3064         * src/SDCCsymt.c (checkSClass): don't emit error when a variable,
3065         const char [] is found in function prototype...
3066
3067         * src/pic16/genarith.c (pic16_genUMult8XLit_8): optimization to omit
3068         moving to WREG with source is already in WREG,
3069         * src/pic16/gen.h: added AOP_FSR0 and AOP_FSR2 in enum,
3070         * src/pic16/gen.c (getFreePtr): updated to look for FSR0 and FSR2,
3071         * (aopForSym): stack'ed symbols are partially supported, added
3072         if-clause to support symbols in FARSPACE,
3073         * (sameRegs): added test for AOP_ACC to see if registers are same,
3074         * (pic16_freeAsmop): added case for AOP_FSR0 and AOP_FSR2,
3075         * (pic16_aopGet): added case for AOP_FSR0 and AOP_FSR2,
3076         * (pic16_popRegFromString): will not allocate a new register if it
3077         doesn't find one by name, bug may have introduced...
3078         * (pic16_popGet): added case for AOP_FSR0 and AOP_FSR2,
3079         * (genIpush): revived to use pic16 port's stack,
3080         * (genAddrOf): added incomplete case for stack'ed operand,
3081         * (genCast): optimized a pair of MOVFW,MOVWF to MOVFF
3082         * src/pic16/genutils.c (pic16_genNot): almot new vesrion for NOT,
3083         can handle multibyte operands,
3084         * src/pic16/glue.c (pic16_printIval*): some debug info added,
3085         * (pic16initialComments): added message for MPLAB compatibility
3086         mode enabled,
3087         * src/pic16/main.h: prototype for pic16_mplab_comp,
3088         * src/pic16/main.c (pic16_optionsTable): new option --mplab-comp,
3089         which enabled MPLAB compatibility mode (i.e. no #LINE/#FILE, BANKED)
3090         * (_pic16_linkEdit): NEW, handles link stage, transferred here
3091         because of increased complexity of procedure,
3092         * (_process_pragma): stack pragma changed to format 'stack pos len',
3093         emit symbol '_stack_end' to conform with gplink,
3094         * src/pic16/pcode.c (pic16_newpCodeOpBit): using pic16_regWithName
3095         to search for register,
3096         * (pic16_get_op, pic16_get_op2): added case for PO_W, PO_WREG and
3097         PO_GPR_REGISTER,
3098         * (pic16_pCode2str): when in MPLAB compatibility mode, comment out
3099         #LINE directives and replace 'B' with 'BANKED' in instruction opcodes
3100         * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): added
3101         case for PO_GPR_REGISTER,
3102         * (pic16_AnalyzeBanking): removed the old message for inc2h.pl, past
3103         dies, the new era is ahead !...
3104         * src/pic16/ralloc.c: added hash reposits pic16_dynAllocRegNames and
3105         pic16_dynInternalRegs,
3106         * (pic16_allocregWithName, pic16_procregWithName, pic16_regWithname): NEW,
3107         * (pic16_allocDirReg): minor optimizations and bug fixes,
3108         * (pic16_allocWithIdx): when searching pic16_dynProcessorRegs use fixed,
3109
3110         * device/lib/pic16/startup/crt0*.c: extern definition of stack_end,
3111         load stack and frame pointer with address of 'stack_end' symbol
3112
3113 2004-07-23 Vangelis Rokas <vrokas AT otenet.gr>
3114
3115         * src/pic16/glue.c (pic16emitStaticSeg): fixed bug with files
3116         without source code but only variable initializers
3117
3118 2004-07-20 Vangelis Rokas <vrokas AT otenet.gr>
3119
3120         * src/pic16/glue.c (pic16emitRegularMap): unused functions marked as
3121         external are not declared as extern to reduce overhead while linking
3122
3123 2004-07-20 Maarten Brock <sourceforge.brock AT dse.nl>
3124
3125         * src/SDCCast.c (decorateType): removed buggy fix for bug #979599
3126
3127 2004-07-11 Maarten Brock <sourceforge.brock AT dse.nl>
3128
3129         * src/SDCCglue.c (printIvalArray): fixed bug #984229, thanks to Phuah
3130           Yee Keat for the patch
3131         * src/SDCCast.c (decorateType): fixed bug #979599
3132         * src/ds390/gen.h: removed local fReturnSizeDS390
3133         * src/ds390/gen.c: made fReturnSizeDS390 signed short to remove a warning
3134         * src/ds390/gen.c (genAnd, genOr, genXor),
3135         * src/mcs51/gen.c (genAnd, genOr, genXor): generate better optimized code
3136
3137 2004-07-04 Vangelis Rokas <vrokas AT otenet.gr>
3138
3139         * src/SDCCmain.c (linkEdit): modifications only for pic16 port,
3140         add relFilesSet to $3, manipulate $2 to handle linking of object
3141         files without source files in command line,
3142         * device/include/pic16 (all headers): added ID location macros,
3143         * src/pic16/device.c (struct PIC16_device Pics16[]): added field
3144         entries for ID location bytes,
3145         * (pic16_assignIdByteValue): NEW,
3146         * src/pic16/device.h: new structures idRegInfo_t and idBytesInfo_t,
3147         added field dumpcalltree to pic16_options_t,
3148         * src/pic16/gen.c (genCmp): fixed bug case so a temporary register
3149         is used instead of pic16_Gstack_base_addr, check if (ifx) before
3150         emitting rFalseIfx label after check_carry label,
3151         * src/pic16/glue.c (PIC16_IS_IDLOC_ADDRESS, PIC16_IS_HWREG_ADDRESS,
3152         pic16_emitDIRegs), NEW
3153         * (pic16glue): dump .calltree file when option --calltree found,
3154         * src/pic16/main.c (OPTION _pic16_optionsTable): new option --calltree
3155         * (_pic16_genAssemblerPreamble): emit ID locations after
3156         configuration registers,
3157         * (pic16_linkCmd): modifications of the link command,
3158         * src/pic16/pcode.c (pic16_pciMOVFF): PCC_REGISTER replaces PCC_REGISTER2
3159         * (pic16_pCodeInitRegisters): don't init stack registers,
3160         * (pic16_findPrevInstruction): fixed bug,
3161         * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): fixed
3162         bug with immediate registers,
3163         * (buildCallTree): traces stack push and pop,
3164         * (pct2): dump also stack usage for each function,
3165         * src/pic16/ralloc.c (dynrIdx): registers names start from 0x00
3166         * (pic16_allocDirReg): various modifications,
3167         * (pic16_typeRegWithIdx): when searching pic16_dynProcessorRegs set
3168         fixed to 1,
3169
3170 2004-07-02 Vangelis Rokas <vrokas AT otenet.gr>
3171
3172         * src/pic16/pcode.c: removed buggy double colon
3173
3174 2004-07-01 Borut Razem <borut.razem AT siol.net>
3175
3176         * support/scripts/sdcc.nsi: added include/pic16 to setup
3177
3178 2004-06-30 Vangelis Rokas <vrokas AT otenet.gr>
3179
3180         * device/lib/Makefile.in: fixed bug in target objects-pic16,
3181         * device/lib/pic16/Makefile: prefixed with dash (-) command under
3182         target 'clean',
3183         * doc/sdccman.lyx: changed version to 2.4.2 and added some port
3184         specific command line arguments. Also added sample lkr script
3185         for placing a variable at a specific memory bank.
3186         * src/pic16/device.c (pic16_dump_gsection): NEW, to dump variables
3187         at a specific memory bank,
3188         * (pic16_dump_isection): fixed bug which caused string literals to
3189         be omitted when dumping idata section,
3190         * (pic16_groupRegistersInSection): added code to handle registers
3191         in specific memory banks,
3192         * src/pic16/gen.c: labelOffset is prefixed with pic16_ and made
3193         public, all references are renamed too,
3194         * (pic16_aopGet): removed switch cases for AOP_R0,AOP_R1,AOP_DPTR,
3195         AOP_DPTR2,
3196         * (pic16_storeForReturn): added case to handle when dest is WREG,
3197         * src/pic16/genarith.c (pic16_pCodeOpSubType): NEW,
3198         * src/pic16/glue.c (pic16emitRegularMap): when adding a register in
3199         pic16_rel_udata, check to see if that register is marked as being
3200         a member of a specific memory bank,
3201         * (pic16_printIvalCharPtr): added code to add string literals either
3202         to code or the idata sections,
3203         * src/pic16/main.c (_process_pragma): added \n to WHITE constant,
3204         also accept the 'udata' pragma,
3205         * src/pic16/main.h: new structure types sectName and sectSym
3206         * src/pic16/pcode.c: added new pCodeInstruction entry for BANKSEL
3207         * (newpCodeOpBit): added PIC_OPTYPE subt in function prototype,
3208         * (pic16_findPrevInstruction): fixed, it returned nothing,
3209         * (insertBankSwitch): fixed to emit banksel/skip and skip/banksel
3210         instruction combinations,
3211         * (pic16_FixRegisterBanking): heavily reorganised,
3212         * (pic16_AnalyzeBanking): if generating banksel directives is
3213         disabled, then don't call FixRegisterBanking at all,
3214         * src/pic16/ralloc.c (bitEQUs, aliasEQUs, allDefsOutOfRange):
3215         completely removed,
3216         * (pic16_writeUsedRegisters): added call to pic16_dump_gsection
3217
3218 2004-06-29 Bernhard Held <bernhard AT bernhardheld.de>
3219
3220         * src/SDCCglue.c (printChar): fixed bug #973350, patch provided by
3221         Phuah Yee Keat <yk.phuah AT nestac.com>
3222
3223 2004-06-28 Vangelis Rokas <vrokas AT otenet.gr>
3224
3225         * src/pic16/glue.c (pic16createInterruptVect): function now emits
3226         correctly the IVT even if it is relocated to some other location
3227
3228 2004-06-28 Vangelis Rokas <vrokas AT otenet.gr>
3229
3230         * device/include/pic16/pic18fregs.h: added case for pic18f2220.h
3231         * device/include/pic16/pic18f2220.h: NEW,
3232         * device/lib/pic16/libdev/pic18f2220.c: NEW,
3233         * device/lib/pic16/libdev/Makefile: added 18f2220 in DEVS,
3234         * src/pic16/device.c (struct Pics16): added info for 18f2220,
3235         * src/pic16/device.h (struct pic16_options): added ivt_loc and
3236         nodefaultlibs, ivt_loc is the location of the interrupt vector
3237         table, and nodefaultlibs signs that default libraries should not be
3238         linked in link stage,
3239         * src/pic16/gen.c (genFunction): relocate interrupt vector functions
3240         according to --ivt-loc argument,
3241         * src/pic16/main.c (_process_pragma): emit '_stack' as public symbol
3242         when pragma stack is found,
3243
3244 2004-06-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3245
3246         * src/mcs51/peeph.def: added peepholes 182.d (return 0.0),
3247         256 (range check), 257 (do while), 258.a-f (bit banging
3248         f.e. on 3-wire SPI bus)
3249
3250 2004-06-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3251
3252         * src/SDCClrange.c (findNextUseSym): fixed a live range bug with
3253         variables used exclusively within a loop
3254
3255 2004-06-21 Bernhard Held <bernhard AT bernhardheld.de>
3256
3257         * src/mcs51/gen.c (genCpl): quick fix for bug #974835
3258
3259 2004-06-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3260
3261         * src/SDCClrange.c (computeClash): fixed bug #971834
3262
3263 2004-06-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3264
3265         * src/mcs51/gen.c (genCmp): fixed bug #975903
3266         * src/hc08/gen.c (operandsEqu),
3267         * src/ds390/gen.c (operandsEqu),
3268         * src/z80/gen.c (operandsEqu),
3269         * src/pic/gen.c (operandsEqu),
3270         * src/pic16/gen.c (operandsEqu),
3271         * src/mcs51/gen.c (operandsEqu): fixed bug #976283
3272         * src/SDCCmain.c (parseCmdLine): report --unknown-option only once
3273
3274 2004-06-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3275
3276         * src/SDCCcse.c (cseBBlock): fixed bug #966963
3277
3278 2004-06-12 Vangelis Rokas <vrokas AT otenet.gr>
3279
3280         * src/pic16/gen.c (genPointerGet): added E_INTERNAL_ERROR for
3281         default case in switch statement,
3282         * glue.c (pic16_initPointer): expr is initialised via decoarteType
3283         to eliminate problem with initialisation of pointers, but problem
3284         still exists,
3285         * (pic16_pointerTypeToGPByte): removed, no needed for pic16,
3286         * (emitStaticSegment): removed various lines emitting debug info,
3287         * src/pic16/pcode.c, src/pic16/pcode.h, src/pic16/ralloc.h:
3288         added processor registers for utilizing EEPROM,
3289         * src/pic16/pcode.c (pic16_emitDB): number of DBs emitted is not
3290         configurable and set 8
3291
3292 2004-06-08 Vangelis Rokas <vrokas AT otenet.gr>
3293
3294         * .version: increased version number to 2.4.2,
3295
3296         Cumulative patch for pic16 port
3297         * src/pic16/device.c: changed scheme to dump initial values for
3298         variables in idata segment, all print_idata* functions were removed,
3299         now the pic16_printIval* will be called,
3300         * src/pic16/glue.c: (pic16_initPointer, pic16_pointerTypeToGPByte,
3301         * _pic16_printPointerType, pic16_printPointerType,
3302         * pic16_printGPointerType, pic16_printIvalArray, pic16_printIvalStruct,
3303         * pic16_printIvalBitFields, pic16_printIvalFuncPtr, pic16_printIvalPtr:
3304         NEW, similar to the respective functions in SDCCglue.c,
3305         * src/pic16/pcode.c (pic16_emitDB, pic16_flushDB): reverted to old
3306         way, emitting hex bytes,
3307         * (pic16_emitDS): NEW, emits a string for pointer initialisation,
3308
3309 2004-06-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3310
3311         * src/avr/ralloc.c (serialRegAssign),
3312         * src/xa51/ralloc.c (serialRegAssign),
3313         * src/pic/ralloc.c (serialRegAssign),
3314         * src/pic16/ralloc.c (serialRegAssign),
3315         * src/hc08/ralloc.c (serialRegAssign),
3316         * src/z80/ralloc.c (serialRegAssign),
3317         * src/ds390/ralloc.c (serialRegAssign),
3318         * src/mcs51/ralloc.c (serialRegAssign): fixed bug #964479
3319
3320 2004-06-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3321
3322         * src/SDCCicode.c (geniCodeJumpTable): fixed bug #967601
3323         * src/SDCCpeeph.c (labelIsReturnOnly): fixed bug #966505
3324
3325 2004-06-07 Vangelis Rokas <vrokas AT otenet.gr>
3326
3327         Cumulative patch for pic16 port:
3328         * src/pic16/device.h (typedef PIC16_device) modified fields for
3329         defining microcontrollers,
3330         * src/pic16/device.c: added new info for all devices in Pics16 array,
3331         * src/pic16/gen.c (genPcall): fixed bug that caused the return label
3332         to be optimised out by the pCode optimiser,
3333         * src/pic16/glue.c (pic16emitRegularMap): treat implicit aggragates
3334         specially, bug reported by G.M. Gallant,
3335         * src/pic16/pcode.c (pic16_newpCodeLabelFORCE): NEW, marks a label
3336         as force'd so that cannot be optimised out by pCode optimiser,
3337         * src/pic16/pcode.c,
3338         * src/pic16/pcodepeeph.c,
3339         * src/pic16/pcoderegs.c: many modifications to re-enable peepholes,
3340         they are disabled by default, but can be enabled explicit with
3341         command argument --denable-peeps, for testing,
3342         * device/lib/pic16/startup/Makefile: added --no-peep,--pomit-config-words,
3343         --pomit-ivt in COMPILE_FLAGS
3344
3345 2004-06-06 Maarten Brock <sourceforge.brock AT dse.nl>
3346
3347         * src/pic16/pcode.c (pic16_emitDB): removed double semicolon which fails
3348           compilation on MSVC
3349
3350 2004-06-06 Maarten Brock <sourceforge.brock AT dse.nl>
3351
3352         * device/include/sab80515.h: added sfr P6, changed GPL to LGPL
3353
3354 2004-06-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3355
3356         device/include/sab80515.h: fixed bug #967492, DAPR is defined at adress
3357         0xd8, but the correct adress is 0xda. Thanks to anonymous for reporting
3358
3359 2004-06-06 Vangelis Rokas <vrokas AT otenet.gr>
3360
3361         * src/pic16/device.c (pic16_assignConfigWord): fixed bug that
3362         would only assign 0x300001 register.
3363
3364 2004-06-05 Vangelis Rokas <vrokas AT otenet.gr>
3365
3366         * device/lib/pic16/startup/Makefile: added $(MODELFLAGS)
3367         in COMPILE_FLAGS. Thanks to G. Gallant for report.
3368
3369 2004-06-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3370
3371         * doc/sdccman.lyx: minor changes, mentioned beta vendor support
3372         for ds80c400
3373         * src/mcs51/peeph.def: ran unexpand -a over peeph.def
3374         * src/mcs51/peeph.def: removed obsolete peephole 100.a,
3375         added peephole 254 (left shift), 255 (jump table)
3376
3377 2004-06-04 Vangelis Rokas <vrokas AT otenet.gr>
3378
3379         * device/lib/Makefile.in: removed comment line with model-pic16,
3380         * (target port-specific-objects-pic16): the libraries and objects
3381         are copied to the build directory form the device/lib/pic16/bin
3382         directory
3383
3384         Cumulative patch concerning pic16 port:
3385         * library directory has been re-organized,
3386         * added support for PIC18F1220,
3387         * added headers and library sources for chips 18f1220,18f6520,
3388         18f6620,18f6680,18f6720,18f8520,18f8620,18f8680,18f8720
3389
3390         * configuration registers setting has changed, now each supported
3391         device has a complete description of the registers it uses,
3392         * all initialisations are moved to idata sections, these section
3393         can be absolute or relocatable,
3394         * fixed initialisation of codespace variables,
3395         * fixed warning about PCLATU and gpsim,
3396         * src/pic16/gen.c (genCmp): now can handle partially iCodes with no ifx,
3397         * (genAssign): use table reads when assigning from variables in codespace,
3398         * src/pic16/glue.c (pic16emitStaticSeg): fixed to correctly initialise
3399         char/int variables placed in codespace,
3400         * (pic16_emitConfigRegs): NEW, emits a list with configuration
3401         registers set in .asm file, no need for --pomit-config-words anymore,
3402         * (pic16glue): some 8051 legacy segments are commented out
3403         (to be removed completely),
3404         * added support for alternative assembler and linker with --asm=
3405         and --link= command line arguments,
3406         * peepholes are disabled automatically in the port, no need to
3407         specify on command line,
3408         * port supports natively char/int/long multiplication, but converts
3409         all divisions to support functions,
3410         * main.c: pic16_linkCmd and pic16_asmCmd changed to force output
3411         to the file set in variable $2,
3412         * pcode.c (pic16_emitDB, pic16_flushDB): modified to print printable
3413         strings in ASCII format and not in hex,
3414         * ralloc.c (serialRegAssign): added a triplet of conditional calls
3415         to pic16_allocDirReg for IC_RESULT, IC_LEFT and IC_RIGHT so to
3416         allocate proper register if iCodes aren't temporary,
3417
3418 2004-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
3419
3420         * support/regression/tests/zeropad.c: added TEST_G macro for alpha
3421
3422 2004-06-02 Vangelis Rokas <vrokas AT otenet.gr>
3423
3424         * src/pic16/gen.c (genPcall): warning about gpsim and PCLATU
3425         is commented out
3426
3427 2004-06-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3428
3429         * src/hc08/gen.c (genPointerGetSetOfs): disabled optimization if
3430         computed address is reused
3431         * src/hc08/gen.c (genPackBits): fixed offsets in assignments to
3432         multi-byte bitfields
3433
3434 2004-06-01 Maarten Brock <sourceforge.brock AT dse.nl>
3435
3436         * src/z80/gen.c: (genArrayInit): must check for pointers too
3437
3438 2004-06-01 Maarten Brock <sourceforge.brock AT dse.nl>
3439
3440         * support/regression/tests/zeropad.c: never meant to commit the
3441           nestedstruct test: removed, added check for GCC version
3442
3443 2004-05-31 Maarten Brock <sourceforge.brock AT dse.nl>
3444
3445         * src/SDCCast.c (createIvalArray): fixed bug 770487 SIGSEGV
3446         * src/SDCCglue.c (emitRegularMap): fixed bug 770484 allocation problem
3447         * src/SDCCglue.c (initPointer, printIvalType, printIvalStruct,
3448           printIvalArray, printIvalFuncPtr, printIvalPtr, printIval): fixed
3449           bugs 928906 and 954082 half-empty initializers
3450         * src/SDCCsymt.h,
3451         * src/SDCCsymt.c (getAllocSize): added for above fix
3452         * src/z80/gen.c (genArrayInit): fixed bug 741044
3453         * support/regression/tests/zeropad.c: added tests
3454
3455 2004-05-30 Vangelis Rokas <vrokas AT otenet.gr>
3456
3457         * src/pic16/device.c (pic16_dump_section): corrected bug which
3458         caused some symbols of the libraries to be misplaced
3459
3460 2004-05-28 Vangelis Rokas <vrokas AT otenet.gr>
3461
3462         * src/pic16/glue.c,
3463         * src/pic16/ralloc.h,
3464         * src/pic16/ralloc.cc: prefixed IS_CONFIG_ADDRESS with PIC16_
3465         to fix conflict with pic port
3466
3467 2004-05-28 Vangelis Rokas <vrokas AT otenet.gr>
3468
3469         * src/pic16/glue.c (pic16emitStaticSeg): do not print as publics or
3470         externs configuration variables,
3471         * src/pic16/ralloc.h,
3472         * src/pic16/ralloc.cc: IS_CONFIG_ADDRESS is made public and added
3473         prototype in header, commented out some debug messages
3474
3475 2004-05-26 Vangelis Rokas <vrokas AT otenet.gr>
3476
3477         * src/pic16/glue.c,
3478         * src/pic16/main.c,
3479         * src/pic16/pcode.c: added gpasm directives #FILE/#LINE
3480         for gpasm COFF object generation. Thanks to D. Hawkins for
3481         his patch info
3482
3483 2004-05-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3484
3485         * src/ds390/main.c,
3486         * src/mcs51/main.c: fixed sort order of mnemonics (thanks to Maarten
3487         Brock for spotting this)
3488         * src/ds390/gen.c (genEndFunction),
3489         * src/mcs51/gen.c (genEndFunction): always save psw if function is an
3490         interrupt handler and critical. Disable push/pop optimizations when
3491         peephole optimizations disabled.
3492
3493 2004-05-25 Vangelis Rokas <vrokas AT otenet.gr>
3494
3495         Updated pic16 library sources and headers.
3496         * device/lib/pic16/pic18f*/ ,
3497         * device/include/pic16/*.h: modified to handle structured SFR
3498         definitions
3499
3500 2004-05-25 Vangelis Rokas <vrokas AT otenet.gr>
3501
3502         * src/port.h (PORT structure): added hook initPaths, now each
3503         port can declare its own default search paths,
3504         which can been seen with the --print-search-dirs option,
3505         see pic16 port for example,
3506         * src/SDCCmain.c (setBinPaths, setIncludePaths, setLibPath,
3507         setDataPaths): test to options.printSearchDirs is ifdef'ed out,
3508         * (doPrintSearchDirs): NEW, replaces in a central manner the
3509         printing of search dirs which was split in set*Paths functions,
3510         * (main): added call to port->initPaths and doPrintSearchDirs,
3511         * src/avr/main.c,
3512         * src/ds390/main.c,
3513         * src/hc08/main.c,
3514         * src/izt/i186.c,
3515         * src/izt/tlcs900h.c,
3516         * src/mcs51/main.c,
3517         * src/pic/main.c,
3518         * src/pic16/main.c: modified port structures to reflect addition of
3519         initPaths hook,
3520
3521         * src/pic16/device.c (regCompare): registers are finally sorted by name,
3522         * (pic16_dump_section): for registers in same address reserve memory once,
3523         * src/pic16/device.h (struct PIC16_device): changed variable gen_banksel
3524         to no_banksel,
3525         * src/pic16/genarith.c (pic16_genPlus): added code to handle cases where
3526         result is greater in size than right or left,
3527         * (pic16_genUMult8X8_8): there are some cases where the result can
3528         be 16 bits size, so handle these,
3529         * src/pic16/gen.c: changed some pic16_emitpcomment to DEBUGpic16_emitcode,
3530         * (pic16_outBitC): modified to emit pcodes,
3531         * (pic16_storeForReturn): using is_LitOp to see if operand is literal
3532         or not,
3533         * (genDivOneByte): implemented algorithm to divide 8-bits,
3534         * (genCmp): uncommented goto, but issues still exist,
3535         * (genAnd): fixed a bug with variables >8bits,
3536         * (genPackBits): optimization added that uses BCF/BSF to change a
3537         single bit,
3538         * (genAssign): fixed bug when assigning floating point literals,
3539         * src/pic16/glue.c (pic16glue): added assembler directive 'code' before
3540         __sdcc_gsinit_startup label,
3541         * src/pic16/main.c (_pic16_init): removed search directory
3542         initialisations,
3543         * (_pic16_initPaths): NEW, used to initialise search directories,
3544         * (_hasNativeMulFor): support functions for all except char/int
3545         multiplication, and char division,
3546         * (PIC16_port struct): modified entry for native mul support,
3547         * src/pic16/pcode.c (insertBankSwitch): modified to support the renamed
3548         no_banksel option,
3549         * (buildCallTree): call to register_usage is ifdef'ed out,
3550
3551 2004-05-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3552
3553         * device/include/string.h: applied Stas Sergeev's patch to make this
3554         header file compatible with the preprocessor -Wundef option
3555         * src/SDCCmain.c (main): abort compilation if preprocessor reports
3556         failure (fixes bug #941458)
3557
3558 2004-05-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3559
3560         * src/SDCCopt.c (killDeadCode): fixed bug #907733
3561         * support/Util/SDCCerr.c: reworded E_AUTO_ASSUMED diagnostic to clarify
3562         that the variable, not the function, should be static
3563         * src/SDCCval.c (valCastLiteral): fixed bit initialization from literal
3564         to be consistent with non-literal case
3565
3566 2004-05-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3567
3568         * src/SDCCast.c (isConformingBody): fixed bug #949967
3569         * src/SDCCopt.c (cnvToFcall, cnvToFloatCast, cnvFromFloatCast,
3570         convilong): fixed bug #952086
3571
3572 2004-05-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3573
3574         * src/SDCCmem.c (allocVariables): fixed bug #955321
3575
3576 2004-05-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3577
3578         * src/hc08/main.c (_hc08_genAssemblerEnd),
3579         * src/SDCCdwarf2.c (dwOpenFile, dwCloseFile, dwWriteFunction,
3580         dwWriteModule, dwWriteCLine, dwWriteALine, dwarf2FinalizeFile):
3581         completely eliminated the use of a temporary file
3582         * src/SDCCdwarf2.c (dwWriteAttr): fixed bug with location list offset
3583         when more than one file linked
3584         * src/SDCCloop.c (pointerAssigned): fixed bug #954163
3585
3586 2004-05-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3587
3588         * src/SDCCval.c (valForArray): applied Maarten Brock's patch #947682
3589         which fixes bug #543481
3590         * support/regression/tests/bug-751703.c: fixed comments left from a
3591         cut and paste error
3592         * src/SDCCdwarf2.c (dwCloseFile): don't explicitly close a temp file
3593         * src/SDCCdwarf2.c (dwTagFromType): added bitfield support
3594         * src/SDCCdwarf2.c (dwWriteSymbolInternal): handle extern within local
3595         scopes
3596         * src/SDCCdwarf2.c (dwWriteLineNumber): line number deltas are signed
3597         * src/SDCCmain.c (processFile, parseCmdLine): non-alphanumeric chars
3598         are now changed to underscores in moduleName
3599
3600 2004-05-15 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3601
3602         * as/mcs51/lkmem.c: better fix for bug #954173
3603
3604 2004-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
3605         committed by Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3606
3607         * device/include/c8051f020.h: newly added SiLabs (Cygnal) header file
3608         * device/include/c8051f000.h,
3609         * device/include/c8051f120.h,
3610         * device/include/c8051f300.h,
3611         * device/include/c8051f310.h,
3612         * device/include/c8051f320.h: updated (added _XPAGE, CAPN, CAPP,
3613         PWM16) and detab'ed
3614
3615 2004-05-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3616
3617         * doc/sdccman.lyx: mentioned sourceforge's delay between web frontend
3618         and mailing lists, doc'ed --no-peep-comments, removed reference
3619         to knoppix (newest version has no LyX/LaTeX), other minor changes
3620         * src/SDCCglue.c (glue): save 2 bytes stack space with
3621         option --main-return. The ljmp could probably be avoided too
3622
3623 2004-05-14 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3624
3625         * as/mcs51/lkmem.c, as/mcs51/lkaomf51: fixed bug 954173
3626
3627 2004-05-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3628
3629         * src/SDCCsymt.h: added IS_AUTO(symbol) test macro
3630         * src/SDCCopt.c (isLocalWithoutDef),
3631         * src/SDCCicode.c (operandFromSymbol): use the IS_AUTO test macro
3632         which adds a !IS_EXTERN codition. Fixes bugs #877426 and #751703.
3633         (credit to Maarten Brock for patch #949363, on which this is based)
3634         * support/regression/tests/bug-751703.c: some test cases of extern used
3635         within inner scopes.
3636
3637 2004-05-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3638
3639         * src/SDCCdwarf2.c (dwMatchTypes): structs must have matching
3640         SPEC_STRUCT
3641         * src/SDCCdwarf2.c (dwTagFromType): fix to handle recursive
3642         struct definitions
3643         * src/SDCCdwarf2.c (dwWriteModule, dwNewDebugSymbol, dwWriteEndFunction,
3644         dwWriteLabel): fix to create valid debugger symbols even when
3645         the module name has non-alphanumeric symbols in it
3646         * src/SDCCdwarf2.c (dwWriteSymbolInternal): better detection for
3647         when a variable's allocation has been optimized away
3648
3649
3650 2004-05-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3651
3652         * src/hc08/gen.c (hc08_emitDebuggerSymbol),
3653         * src/hc08/main.c,
3654         * src/mcs51/gen.c (mcs51_emitDebuggerSymbol),
3655         * src/mcs51/main.c,
3656         * src/ds390/gen.c (ds390_emitDebuggerSymbol),
3657         * src/ds390/main.c,
3658         * src/z80/gen.c (z80_emitDebuggerSymbol),
3659         * src/z80/main.c,
3660         * src/pic/gen.c (pic14_emitDebuggerSymbol),
3661         * src/pic/main.c,
3662         * src/pic16/gen.c (pic14_emitDebuggerSymbol),
3663         * src/pic16/main.c,
3664         * src/avr/gen.c (avr_emitDebuggerSymbol),
3665         * src/avr/main.c,
3666         * src/xa51/gen.c (xa51_emitDebuggerSymbol),
3667         * src/xa51/main.c,
3668         * src/SDCCdebug.c (emitDebuggerSymbol),
3669         * src/SDCCdebug.h,
3670         * src/port.h: added a debugger struct to the port struct. Added a
3671         callback for defining debugger symbols
3672
3673         * src/SDCCast.c (createLabel),
3674         * src/SDCC.y (labeled_statement): mark all compiler generated labels
3675         with isitmp = 1
3676         * src/SDCCicode.h,
3677         * src/SDCCicode.c (geniCodeFunctionBody): added a link from the FUNCTION
3678         iCode back to the ast for the function
3679
3680         * src/hc08/ralloc.c (hc08_assignRegisters),
3681         * src/hc08/ralloc.h: define a regs struct for the stack pointer. Removed
3682         unneeded fields from the regs struct.
3683         * src/hc08/gen.c (transferRegReg, genFunction, genEndFunction): use the
3684         pushReg() & pullReg() functions instead of emitcode()
3685
3686         * src/hc08/gen.c (genLabel, genhc08Code),
3687         * src/SDCCdebug.h: Added additional debugger hooks needed for DWARF
3688
3689         * src/cdbFile.c (cdbWriteLabel, cdbWriteScope): Added stubs for unneeded
3690         debugger hooks
3691
3692         * src/hc08/gen.c (genEndFunction, genhc08Code),
3693         * src/hc08/gen.h,
3694         * src/mcs51/gen.c (genEndFunction, gen51Code),
3695         * src/mcs51/gen.h,
3696         * src/ds390/gen.c (genEndFunction, gen390Code),
3697         * src/ds390/gen.h,
3698         * src/z80/gen.c (genEndFunction, genZ80Code),
3699         * src/z80/gen.h,
3700         * src/z80/z80.h,
3701         * src/pic/gen.c (genEndFunction, genpic14Code),
3702         * src/pic/gen.h,
3703         * src/pic16/gen.c (genEndFunction, genpic16Code),
3704         * src/pic16/gen.h,
3705         * src/avr/gen.c (genEndFunction, genAVRCode),
3706         * src/avr/gen.h,
3707         * src/xa51/gen.c (genEndFunction, genXA51Code),
3708         * src/xa51/gen.h,
3709         * src/cdbFile.c (cdbWriteFunction, cdbWriteEndFunction): moved cdb
3710         specific code to cdbFile.c and out of the backend code generators
3711
3712         * as/hc08/lkmain.c (main): removed OMF51 support from link-hc08
3713         * as/hc08/lkarea.c (lnkarea): areas with NOLOAD attribute default
3714         starting address is now 0
3715
3716         * as/hc08/asm.h,
3717         * as/hc08/m08pst.c,
3718         * as/hc08/asmain.c (asmbl): implemented the .sleb128 and .uleb128
3719         assembler directive for DWARF support
3720         * as/hc08/lkelf.c (elf): only increment address when rtflg[] set
3721
3722         * src/src.dsp,
3723         * src/Makefile.in,
3724         * src/SDCCdwarf2.c: preliminary DWARF (ver 2) debugger data generator
3725
3726 2004-05-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3727
3728         * src/hc08/gen.c (genJumpTab, emitcode, genhc08code): fixed stack error
3729         and inappropriate peephole optimization in jump tables
3730
3731 2004-04-30 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3732
3733         * as/hc08/m08pst.c,
3734         * src/SDCCglue.c: sdccopt works for the hc08 port now
3735
3736 2004-04-27 Bernhard Held <bernhard AT bernhardheld.de>
3737
3738         * src/SDCCicode.c (geniCodePreInc, geniCodePreDec): fixed bug #942130
3739
3740 2004-04-27 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3741
3742         * as/hc08/lkelf.c: sdccconf.h is not available in WIN32
3743
3744 2004-04-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3745
3746         * src/SDCCpeeph.c (replaceRule): support empty replacement peephole
3747         rules
3748         * src/SDCCmain.c,
3749         * src/SDCCglobl.h,
3750         * src/SDCCpeeph.c (getPeepLine): new option --no-peep-comments omits
3751         comments from the peephole optimizer replacement rules
3752         * src/SDCCmem.c (printAllocInfoSeg): give actual location of spilled
3753         symbols
3754         * src/SDCCcse.c (updateSpillLocation),
3755         * src/SDCCopt.c (killDeadCode, findReqv): better tracking of register
3756         equivalents
3757         * src/hc08/ralloc.c (regTypeNum): pseudo symbols must be in DATA only
3758         * src/hc08/main.c (_hc08_finaliseOptions): made pointers to stack
3759         objects far pointers
3760
3761 2004-04-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3762
3763         * src/SDCCsymt.h: a missing part of my last change
3764         * src/pic/ralloc.c (regTypeNum),
3765         * src/pic16/ralloc.c (regTypeNum): fixed statement/declaration order
3766
3767 2004-04-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3768
3769         * src/SDCCicode.h,
3770         * src/SDCCicode.c (aggrToPtrDclType),
3771         * src/SDCCptropt.h,
3772         * src/SDCCptropt.c (ptrBaseRematSym, ptrPseudoSymSafe,
3773         ptrPseudoSymConvert),
3774         * src/pic/ralloc.c (regTypeNum),
3775         * src/pic16/ralloc.c (regTypeNum),
3776         * src/hc08/ralloc.c (regTypeNum),
3777         * src/ds390/ralloc.c (regTypeNum),
3778         * src/mcs51/ralloc.c (regTypeNum): check for dependancy hazards before
3779         creating pseudo symbols (fixed bugs #777768, #930484, and #933966)
3780
3781 2004-04-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3782
3783         * link/z80/lkmain.c (afile),
3784         * as/hc08/lkmain.c (afile),
3785         * as/mcs51/lkmain.c (afile): fix suggested by Maarten Brock to
3786         prevent a pointer problem when a filename has no directory and
3787         no extension specified.
3788
3789 2004-04-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3790
3791         * link/z80/lkmain.c (afile): allow periods in directory names
3792         * link/z80/lkmain.c (afile),
3793         * as/mcs51/lkmain.c (afile),
3794         * as/hc08/lkmain.c (afile): allow linker script file to have an
3795         extension other than ".lnk"
3796         * link/z80/lklex.c (getfid),
3797         * link/z80/lkmain.c (parse),
3798         * as/mcs51/lklex.c (getfid),
3799         * as/mcs51/lkmain.c (parse),
3800         * as/hc08/lklex.c (getfid),
3801         * as/hc08/lkmain.c (parse): Support comments in the linker script
3802         file on lines by themselves and after filenames
3803
3804 2004-04-20 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3805
3806         * as/link_hc08.dsp: Added as/hc08/lkelf.c to project.
3807
3808 2004-04-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3809
3810         * src/z80/peeph-z80.def: removed some peephole rules that don't
3811         work with multibyte arithmetic (fixed bug #937126)
3812         * src/mcs51/peeph.def: fixed peephole rules 150-158 to apply only
3813         to registers and not global variables
3814         * src/SDCCicode.c (geniCodeAssign, ast2iCode, geniCodePostInc,
3815         geniCodePreInc, geniCodePostDec, geniCodePreDec,
3816         geniCodeLogicAndOr, geniCodeConditional): enforce strict lvalue
3817         checking for assignments not internally generated (fixed bug #931895)
3818         * src/SDCC.y (postfix_expr): ignore typedefs when looking for a
3819         structure member (fixed bug #930072)
3820
3821 2004-04-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3822
3823         * src/SDCCmain.c (linkEdit),
3824         * src/hc08/main.c (_hc08_parseOptions),
3825         * as/hc08/Makefile.in,
3826         * as/hc08/aslink.h,
3827         * as/hc08/asm.h,
3828         * as/hc08/m08pst.c,
3829         * as/hc08/lkrloc.c (relr, rele),
3830         * as/hc08/lkarea.c (lnkarea)
3831         * as/hc08/lkmain.c (afile, parse),
3832         * as/hc08/lkelf.c: support for ELF output
3833         * as/hc08/lks19.c (s19),
3834         * as/hc08/lkihx.c (ihx): ignore areas with the NOLOAD attribute
3835
3836 2004-04-17 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3837
3838         * as/mcs51/lkihx.c: Fixed bug #899105.
3839
3840 2004-04-16 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3841
3842         * doc/sdccman.lyx: Added instructons on how to convert MSVC .dsw and
3843         .dsp files from Unix to DOS.
3844
3845 2004-04-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3846
3847         * doc/sdccman.lyx: removed the ANSI-C noncompliance note regarding
3848         function pointers; we have been compliant for several months now.
3849         * src/mcs51/ralloc.c (serialRegAssign): enabled part of my 2004-04-13
3850         change that was accidently commented out
3851         * src/mcs51/gen.c (freeAsmop, getFreePtr, freeForBranchAsmop, genIfxJump,
3852         genCmpEq, jmpTrueOrFalse, genCmp, genAnd, genOr, genXor, genIfx): fixed
3853         bug #922319
3854
3855 2004-04-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3856
3857         * src/hc08/gen.c: output of all of the internal debugging information
3858         is now controlled by the D() macro; it is disabled by default
3859
3860 2004-04-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3861
3862         * src/mcs51/ralloc.c (serialRegAssign, fillGaps, allocThisReg): try
3863         harder to keep the same registers during a CAST iCode
3864         * src/SDCCopt.c (optimizeCastCast, eBBlockFromiCode): casts of char to
3865         long via int can be done in a single cast, if the signedness is
3866         correct.
3867         * support/regression/tests/bug-927659.c: fixed to avoid conflict with
3868         putchar() in tinibios.c in ds390's library
3869
3870 2004-04-12 Bernhard Held <bernhard AT bernhardheld.de>
3871
3872         * src/SDCCast.c (decorateType): fixed bug #898889,
3873         cast result of a literal complement too
3874         * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #930931,
3875         fixed check for bitfields
3876
3877 2004-04-11 Bernhard Held <bernhard AT bernhardheld.de>
3878
3879         * src/SDCCicode.c (geniCodeLogic): made it static,
3880         (geniCodeLogicAndOr): added in order to fix bug #905492,
3881         (ast2iCode): fixed bug #905492
3882         * support/regression/tests/bug-905492.c: added
3883         * src/SDCCast.c (decorateType): don't decorate/process parms twice,
3884         (processParms): fixed bug #927659: don't copy parms, this will clear
3885         decorated flag
3886         * support/regression/tests/bug-927659.c: added
3887
3888 2004-03-29 Bernhard Held <bernhard AT bernhardheld.de>
3889
3890         * src/SDCCast.c (addCast): don't cast float to char
3891         * device/lib/libsdcc.lib: added _memmove
3892
3893 2004-03-28 Bernhard Held <bernhard AT bernhardheld.de>
3894
3895         * device/lib/large/Makefile: fixed parallel execution by
3896         replacing `make` by `$(MAKE)`
3897
3898 2004-03-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3899
3900         * src/hc08/gen.c (genPointerGetSetOfs): correctly handle 1 byte array
3901         offsets (fixes bug #923936)
3902
3903 2004-03-26 Bernhard Held <bernhard AT bernhardheld.de>
3904
3905         * device/lib/small/Makefile: fixed parallel execution by
3906         replacing `make` by `$(MAKE)`
3907
3908 2004-03-23 Bernhard Held <bernhard AT bernhardheld.de>
3909
3910         * device/lib/vprintf.c (vsprintf): minor optimization, see bug #801101
3911
3912 2004-03-23  Scott Dattalo  <scott AT dattalo.com>
3913
3914         * src/pic/gen.c (genCpl): multi-byte complements were not working.
3915         * src/regression/Makefile: Regression test was not running.
3916
3917 2004-03-23 Bernhard Held <bernhard AT bernhardheld.de>
3918
3919         * src/SDCCast.c (resultTypePropagate, decorateType): avoid promotion to int for
3920         complement if possible
3921         * src/SDCCval.c (valComplement),
3922         * src/SDCCicode.c (operandOperation): fixed complement of literal
3923         * support/regression/tests/onebyte.c (testComplement): added
3924
3925 2004-03-22 Bernhard Held <bernhard AT bernhardheld.de>
3926
3927         * src/SDCCast.c (processParms): fixed bug #920866; decorateType() can
3928         return an optimized tree; actually replace actParm with the new tree
3929         * src/SDCCast.h: added some parantheses to remove side effects
3930         * support/regression/tests/bug-920866.c
3931
3932 2004-03-21  Scott Dattalo  <scott AT dattalo.com>
3933         * src/pic/gen.c, src/pic/gen.h, src/pic/genarith.c, src/pic/pcode.c:
3934         Bit operands were not being handled properly in the pic14 port.
3935         (now src/regression/add.c passes again).
3936
3937 2004-03-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3938
3939         * src/SDCC.y (labeled_statement): case and default no longer require
3940         a following statement (RFE #893037)
3941
3942 2004-03-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3943
3944         * src/mcs51/gen.c (pushSide, genSignedRightShift, genDjnz, geniPush):
3945         use MOVA macro to avoid "mov a,acc" when peephole optimizer is
3946         disabled (fixes bug #916294)
3947         * sim/ucsim/s51.src/mov.cc (inst_mov_a_addr): Throw an error on
3948         "mov a,acc"; patch provided by Lenny Story
3949         * device/include/mc68hc908gp32.h: header contibuted by Juan Gonzalez
3950
3951 2004-03-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3952
3953         * src/mcs51/gen.c (genFunction): optimize RECEIVE in reentrant
3954         functions
3955         * src/ds390/gen.c (genFunction, genEndFunction),
3956         * src/ds390/ralloc.c (ds390_assignRegisters),
3957         * src/mcs51/gen.c (genFunction, genEndFunction, mcs51_assignRegisters):
3958         * src/mcs51/ralloc.c (mcs51_assignRegisters): Skip optimizing registers
3959         pushed if there are parameters passed on the stack. Also, a cleaner
3960         way to decide if r0/r1 should be pushed/popped. (Together they fix
3961         bug #918693)
3962
3963 2004-03-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3964
3965         * doc/sdccman.lyx,
3966         * device/lib/mcs51/crtpagesfr.asm,
3967         * device/lib/mcs51/crtxinit.asm,
3968         * device/lib/mcs51/crtxstack.asm: Changed name of _PAGESFR to _XPAGE
3969         to avoid confusion with Si Lab's SFRPAGE register.
3970
3971 2004-03-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3972
3973         * src/SDCCglue.c (emitMaps): allow public sfr variables
3974         * src/SDCCglue.c (initialComments): include compiler build date
3975         with compiler version and put the timestamp of the generated
3976         assembly file on a serperate line to be less confusing.
3977         * src/port.h: added genInitStartup hook
3978         * src/avr/main.c,
3979         * src/ds390/main.c,
3980         * src/hc08/main.c,
3981         * src/pic/main.c,
3982         * src/pic16/main.c,
3983         * src/xa51/main.c,
3984         * src/z80/main.c: genInitStartup initialize as NULL (default to
3985         historical behaviour)
3986         * src/SDCCglue.c (glue): _sdcc_gsinit_startup is now port specific.
3987         * src/mcs51/main.c: (_mcs51_genInitStartup, _mcs51_genExtraAreas,
3988         _mcs51_genXINIT, _mcs51_genRAMCLEAR): link initialization code from the
3989         library instead of hard coding it into the compiler.
3990         * support/regression/ports/mcs51-stack-auto/spec.mk,
3991         * src/SDCCmain.c (linkEdit): added mcs51.lib to the link libraries
3992         * device/lib/mcs51/Makefile,
3993         * device/lib/small/Makefile,
3994         * device/lib/large/Makefile,
3995         * device/lib/mcs51/crtpagesfr.asm,
3996         * device/lib/mcs51/crtstart.asm,
3997         * device/lib/mcs51/crtxclear.asm,
3998         * device/lib/mcs51/crtxinit.asm,
3999         * device/lib/mcs51/crtclear.asm,
4000         * device/lib/mcs51/crtxstack.asm: move most of the mcs51 C runtime
4001         startup/initialization out of src/SDCCglue.c and src/mcs51/main.c
4002         and into user configurable files.
4003         * device/lib/clean.mk: clean mcs51 directory too
4004         * support/regression/tests/longlit.c: added static to T1 declaration
4005         * doc/sdccman.lyx: documented _PAGESFR sfr for customizing pdata
4006         accesses in the initialization code
4007
4008 2004-03-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4009
4010         * device/include/mc68hc908qy.h: corrected declarations of FLBPR and
4011         OSCTRIMVAL as noted in bug #916008
4012
4013 2004-03-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4014
4015         * src/SDCCloop.c (basicInduction): fixed bug with loop induction
4016         in loops with multiple exits (reported as incorrect registers
4017         used by Martin Helmling in Sdcc-user list)
4018
4019 2004-03-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4020
4021         * src/ds390/main.c (_ds390_genAssemblerPreamble): cosmetic change,
4022         made ds390 register extensions look less like error messages
4023
4024 2004-03-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4025
4026         * src/SDCCglue.c (printIvalPtr): fixed bug with pointer initializer
4027         reported by Adam Wozniak in Sdcc-user list
4028
4029 2004-03-10 Bernhard Held <bernhard AT bernhardheld.de>
4030
4031         * src/SDCCast.c (decorateType): fixed with bug and promotion in
4032         arithmetic optimizations, added debug output
4033
4034 2004-03-09 Bernhard Held <bernhard AT bernhardheld.de>
4035
4036         * device/lib/time.c (mktime): fixed bug reported by Bert Thomas
4037         * sdcc.spec: updated and split sdcc into 3 rpms
4038         * src/SDCCast.c (decorateType): &|^ don't need addCast(); addCast() is
4039         needed for literals of LEFT_OP and '+'
4040         * src/SDCCicode.c (geniCodeLogic): I must have been braindead when I
4041         introduced RESULT_TYPE_NOPROM
4042         (geniCodeMultiply): fixed logic for decision if mul is optimized to
4043         left shift
4044         * src/SDCCsymt.c (computeType): op is int; added RESULT_TYPE_OTHER;
4045         limited promotion to int only for '*'
4046         * src/SDCCsymt.h (computeType): op is int, removed RESULT_TYPE_NOPROM
4047
4048 2004-03-09 Hans Dorn <hjdorn AT users.sourceforge.net>
4049
4050         * src/pic16/gen.c (genSkip),
4051         (genc16bit2lit), (gencjneshort): commented out
4052         (is_LitOp): new helper function, checks operand type
4053         (genCmpEq): rewritten
4054
4055 2004-03-08 Bernhard Held <bernhard AT bernhardheld.de>
4056
4057         * support/regression/tests/bug-908454.c: added
4058
4059 2004-03-07 Bernhard Held <bernhard AT bernhardheld.de>
4060
4061         * src/SDCCast.c (addCast): fixed bug #908454 by promoting bits to char
4062         * src/SDCCicode.c (usualBinaryConversions): op needs int type
4063         (geniCodeCast): cosmetic, don't preserve bit storage class
4064         (geniCodeLeftShift): added promotion
4065         (geniCodeLogic): fixed regression
4066         * src/SDCCsymt.c (computeTypeOr): accept bits too
4067         (compareType): 2nd part of fix for bug #908454, needed for bitfields
4068
4069 2004-03-07  Borut Razem <borut.razem AT siol.net>
4070
4071         * support/Util/findme.c: alloca() replaced with malloc()/free() pair
4072
4073 2004-03-06 Vangelis Rokas <vrokas AT otenet.gr>
4074
4075         * src/pic16/ralloc.c (pic16_genPackRegisters): reverted to old
4076         version of pic16_genPackRegisters which does not check if ic is a
4077         CAST operator,
4078         * src/pic16/gen.c (ifxForOp): disabled new and untested code in
4079         function cause string1.c regression test fails
4080
4081 2004-03-06 Bernhard Held <bernhard AT bernhardheld.de>
4082
4083         * sim/ucsim/configure.in,
4084         * sim/ucsim/configure,
4085         * sim/ucsim/doc/Makefile.in: use docdir
4086         * src/SDCC.y: fixed sbit atrributes
4087         * src/SDCCast.c (getResultTypeFromType): added support for bitfields
4088         * src/SDCCast.c (decorateType): |^& need special promotion handling
4089         * src/SDCCast.h,
4090         * src/SDCCsymt.h: moved definition of RESULT_TYPE
4091         * src/SDCCsymt.h (computeType),
4092         * src/SDCCicode.c: computeType() needs op
4093         * src/SDCCsymt.c (checkTypeSanity),
4094         * doc/sddman.lyx: "plain" bitfields are unsigned
4095         * src/SDCCsymt.c (computeTypeOr): added
4096         * src/SDCCsymt.c (computeType): added support for bitfields, fixed
4097         |^& ops
4098         * src/SDCCval.c (val*): computeType() needs op
4099         * src/SDCCval.c (valCastLiteral): fixed casting of bitfields
4100         * support/regression/tests/onebyte.c: added tests for |^&
4101
4102 2004-03-06 Hans Dorn <hjdorn AT users.sourceforge.net>
4103
4104         * src/pic16/gen.c: (genpic16Code) use copy of printILine's output
4105         for writing icode into asm output.
4106
4107 2004-03-05 Vangelis Rokas <vrokas AT otenet.gr>
4108
4109         * src/pic16/device.c: added some debug lines enabled
4110         with macro DEBUG_CHECK,
4111         * src/pic16/genarith.c: more debug in genPlus,
4112         * (pic16_genUMult8XLit_16, pic16_genUMult8X8_16): removed,
4113         * (pic16_genUMult16X16_16, pic16_genUMult16XLit_16): NEW,
4114         * src/pic16/gen.c: added prototypes for pic16_genMult16X16_16,
4115         * (aopForSym): onStack symbols are re-placed in data memspace,
4116         and onStack flag is cleared,
4117         * (pic16_popGetTempReg, pic16_popReleaseTempReg): modified to
4118         copy temporary pcodeop,
4119         * (genPcall): added warning for not updating PCLATU,
4120         * (genFunction): removed test with IFFUNC_CALLEESAVES, its
4121         always true for pic16 port,
4122         * (genMultOneWord): NEW, supports integer multiplication,
4123         * (genMult): modified to call genMultOneWord,
4124         * (ifxForOp): added warning when return NULL,
4125         * src/pic16/glue.c (pic16emitRegularMap): symbol implicit
4126         flag is set before call to operandFromSymbol for implicit
4127         added structures,
4128         * src/pic16/main.c (_pic16_finaliseOptions): options.float_rent,
4129         options.intlong_rent are set by default,
4130         * (_hasNativeMulFor): modified to allow port generation of integer
4131         multiplication,
4132         * src/pic16/ralloc.c (pic16_allocDirReg): commented out line which
4133         set regtype to REG_SFR for all registers, restricting seting the
4134         accessBank flag for registers 0<= r < 0x80 and 0xf80<=r<=0xfff,
4135
4136 2004-03-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4137
4138         * src/mcs51/peephole.def: added 251.b and 253.x. 253.x are applied
4139         more than 500 times in the regression tests
4140
4141 2004-03-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4142
4143         * support/Util/SDCCerr.h,
4144         * support/Util/SDCCerr.c,
4145         * src/SDCC.y (struct_or_union_specifier, enum_specifier,
4146         enumerator_list),
4147         * src/SDCCsymt.c (addSymChain): show location of oriignal definition
4148         for symbol conflicts.
4149         * support/valdiags/tests/enum.c,
4150         * support/valdiags/tests/tentdecl.c,
4151         * support/valdiags/tests/struct.c: expect possible error messages
4152         referring to original symbol definitions.
4153         * src/SDCC.y (struct_or_union_specifier, struct_declarator),
4154         * src/SDCCsymt.h,
4155         * src/SDCCsymt.c (promoteAnonStructs): support anonymous struct/union
4156
4157 2004-03-03 Hans Dorn <hjdorn AT users.sourceforge.net>
4158
4159         * src/pic16/gen.c (gencjne): fixed for right=REG / left=LIT
4160
4161 2004-02-03 Vangelis Rokas <vrokas AT otenet.gr>
4162
4163         * src/pic16/ralloc.c (newReg): fixed bug #908929
4164
4165 2004-03-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4166
4167         * src/ds390/gen.c: added missing #include "main.h"
4168
4169 2004-03-02 Vangelis Rokas <vrokas AT otenet.gr>
4170
4171         * src/pic16/device.c (checkAddSym): NEW, adds a symbol to set while
4172         checking if symbol is already in set,
4173         * src/pic16/device.h: prototype for checkAddSym,
4174         * src/pic16/gen.c: (_G): added entry interruptvector,
4175         * (assignResultValue): removed some commented out lines,
4176         * (genFunction): check for ISR via sym->type, absolute section for
4177         interrupt code is created via a new pBlock, the goto instruction is
4178         placed now correctly at the interrupt vector position, changed all
4179         references from ivec to _G.interruptvector,
4180         * WREG,STATUS,BSR are not saved in stack upon an entry to interrupt
4181         is the interrupt is a high priority one, same for return from ISR,
4182         * src/pic16/glue.c: changed all calls of addSetHead for publics and
4183         externs to calls of checkAddSym,
4184         * src/pic16/pcode.c (pic16_pBlockConvert2*): emit warning when
4185         pic16_pcode_verbose flag is set,
4186         * src/pic16/pcode.h: extern to pic16_pcode_verbose,
4187         * src/pic16/pcoderegs.c: message about how many registers are saved
4188         will only be emitted if pic16_pcode_verbose flag is set,
4189
4190 2004-03-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4191
4192         * src/ds390/ralloc.h,
4193         * src/ds390/ralloc.c (ds390_regWithIdx),
4194         * src/ds390/gen.c (emitcode),
4195         * src/ds390/main.h,
4196         * src/ds390/main.c (instructionSize, ds390newAsmLineNode, updateOpRW,
4197         ds390opcodeCompare, asmLineNodeFromLineNode, getInstructionSize,
4198         ds390operandCompare, getRegsRead, getRegsWritten,
4199         initializeAsmLineNode): customized instruction size calculation for
4200         ds390, started basis for some register optimizations
4201         * src/ds390/gen.c (gen390Code, emitcode): associate iCodes with
4202         corresponding assembly output
4203         * src/ds390/gen.c (genFunction, genEndFunction): added case to handle
4204         missing push/pop of r0/r1. Optimized push/pops
4205
4206 2004-03-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4207
4208         * src/mcs51/main.c (instructionSize): fixed ACALL size
4209         * src/mcs51/main.c (updateOpRW): fixed bug with @dptr, @a+dptr operands
4210
4211 2004-03-01 Vangelis Rokas <vrokas AT otenet.gr>
4212
4213         * src/pic16/device.c (pic16_dump_section): fixed a bug that allowed
4214         the sorting of rlist with NULL elements
4215         * (print_idataType, print_idata): NEW to create idata sections
4216         * src/pic16/device.h: idataSymSet new variable
4217         * src/pic16/gen.c (genFunction): fixed some bugs in string
4218         comparing, improved the absolute section creation for ISRs,
4219         added FSR0L/FSR0H in registers that are saved in an ISR,
4220         * (genInline): fixed the processing of inline snippets,
4221         now they undergo no process by the peephole optimizer
4222         * src/pic16/glue.c (pic16emitRegularMap): symbols with initialiser
4223         are placed in idataSymSet,
4224         * (pic16emitStaticSeg): extern symbols are added in externs,
4225         * src/pic16/ralloc.c (pic16_allocDirReg): work around to reduce bank
4226         switching when aboslute variables are placed in access bank memory
4227         * (pic16_writeUsedRegs): added call to pic16_dump_idata,
4228         * (packRegsForSupport,packRegsForAccUse,packRegsForOneuse):
4229         commented out with #if,
4230         * (pic16_packRegisters): reintroduce the check for CAST because some
4231         symbols are not correctly handled,
4232         * src/pic16/pcode.h: changed the definition of pCodeAsmDir to hold a
4233         pCodeInstruction instead of pCode,
4234         * src/pic16/pcode.c (pic16_newpCodeAsmDir): modified for the new
4235         pCodeAsmDir definition,
4236         * (pic16_pCode2str, genericPrint): when an AsmDir pcode has a NULL
4237         directive, then the argument directive is emitted without the leading
4238         tab, hack for inline labels which must be in the first column,
4239         * (compareLabel,pic16_findNextInstruction),
4240         * (pic16_findPrevInstruction): added case for PO_ASMDIR,
4241         * (insertBankSwitch): modified for the new pCodeAsmDir,
4242
4243 2004-03-01 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
4244         patch applied by Vangelis Rokas <vrokas AT otenet.gr>
4245
4246         * src/pic16/gen.c (pic16_popGet): case PO_DIR, adds the offset to
4247         instance,
4248         * (pushSide): commented out with #if,
4249         * (assignResultValue): fixed some typos in saving
4250         registers,
4251         * (genPcall): FIXED and sync'ed with genCall,
4252         * (genDataPointerGet,genDataPointerSet): using offset not leoffset
4253         * (genNearPointerGet): fixed to handle some more cases,
4254         implementation scheme via table reads,
4255         * (genConstPointerGet): modified to access code memory correct,
4256         * (genCodePointerGet,genNearPointerSet,genGenPointerSet): modified
4257         and improved to handle some cases
4258         * glue.c (printIvalType,printIvalChar,emitStaticSeg): use "DB"
4259         instead of "RETLW" for init data
4260         * src/pic16/ralloc.c (pic16_allocDirReg): warning when a symbol is
4261         not IN_DIRSPACE, work around to reduce bank switching when aboslute
4262         variables are placed in access bank memory (<0x80 and >=0xf80),
4263         * src/pic16/pcode.c: added SFRs TBLPTR, TABLAT, added opcodes TBLRD,
4264         TBLRD_POSTINC,TBLRD_POSTDEC,TBLRD_PREINC,TBLWT,TBLWT_POSTINC,
4265         TBLWT_POSTDEC,TBLWT_PREINC
4266         * Fixed initialisation of BSR, set "alias" for SSAVE to "0"
4267         * (pic16_emitDB,pic16_flushDB): New functions to generate "DB"
4268         directives
4269         * (pic16_pCodeConstString): use "DB" instead of "RETLW"
4270         * src/pic16/pcode.h: added TBLRD*,TBLWT*, added pic16_emitDB,
4271         pic16_flushDB, made pic16_newpCodeAsmDir public, added TBLPTR, TABLAT
4272         * src/pic16/ralloc.h: added IDX_BSR,IDX_TBLPTR*,IDX_TABLAT
4273
4274 2004-02-29  Borut Razem <borut.razem AT siol.net>
4275
4276         * src/Makefile.in, src/SDCCutil.c, support/Util/findme.c,
4277         support/Util/findme.h, support/Util/system.h: enhance binary relative
4278         search for lib and include by using findProgramPath()
4279
4280 2004-02-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4281
4282         * src/SDCCpeeph.h,
4283         * src/SDCCpeeph.c (pcDistance),
4284         * src/port.h,
4285         * src/mcs51/ralloc.h,
4286         * src/mcs51/ralloc.c (mcs51_regWithIdx),
4287         * src/mcs51/main.h,
4288         * src/mcs51/main.c (instructionSize, asmLineNode, updateOpRW,
4289         mcs51opcodeCompare, asmLineNodeFromLineNode, getInstructionSize,
4290         mcs51operandCompare, getRegsRead, getRegsWritten): made instruction
4291         size calculation port specific, started basis for some register
4292         optimizations
4293         * src/mcs51/gen.c (genFunction, genEndFunction): added case to handle
4294         missing push/pop of r0/r1. Optimized push/pops
4295         * src/mcs51/ralloc.c (packregisters): fixed bug #727095
4296         * device/lib/_modsint.c (_modsint),
4297         * device/lib/_modslong.c (_modslong): fixed sign of result in non-asm
4298         and stack version so regression tests pass
4299
4300 2004-02-26 Bernhard Held <bernhard AT bernhardheld.de>
4301
4302         * src/Makefile.in (dep): include SLIBOBJS in dependency check
4303         * src/SDCCast.c (decorateType): catch another small optimization
4304         with '?' operator
4305         * src/SDCCsymt.c (computeType): added comments and cosmetic changes
4306         * src/SDCCval.c (valMult, valDiv, valMod, valPlus, valMinus, valShift):
4307         modified to finally use computeType() all over SDCC,
4308         see Feature Request #877103
4309         * src/SDCCval.h: cosmetic
4310         * src/SDCCicode.c (operandOperation): fixed EQ_OP bug, now same as in
4311         valCompare(); regression tested in muldiv.c
4312         * support/regression/tests/muldiv.c (testMod): mod sign follows
4313         dividend only
4314
4315 2004-02-23 Bernhard Held <bernhard AT bernhardheld.de>
4316
4317         * src/SDCCast.c (decorateType): fixed bug #902362
4318         * doc/INSTALL.txt: fixed install instructions for win32
4319
4320 2004-02-21 Bernhard Held <bernhard AT bernhardheld.de>
4321
4322         * device/include/Makefile.in (install): fixed by replacing spaces
4323         by tabs
4324         * doc/README.txt,
4325         * doc/INSTALL.txt: updated for release
4326         * doc/sdccman.lyx: added warning for --xstack being buggy
4327
4328 2004-02-20 Bernhard Held <bernhard AT bernhardheld.de>
4329
4330         * src/pic16/ralloc.c (packRegsForAccUse):  disabled functions with #if
4331         to eliminate build warnings.
4332         * src/pic16/gen.c (pic16_popGet): fixed for gcc 2.95.4
4333
4334 2004-02-20 Vangelis Rokas <vrokas AT otenet.gr>
4335            Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
4336
4337         * doc/sdccman.lyx: removed PIC16 from PIC16 Port Specific Options,
4338         removed -penable-stack, added comment for stack pragma, added
4339         warning for not initializing the stack/frame registers, removed
4340         comment at interrupts section
4341
4342         Stack is made permanent, there is no ability to disable stack usage.
4343         * src/pic16/device.h,
4344         * src/pic16/device.c: removed all references to USE_STACK macro,
4345         * src/pic16/device.c (pic16_dump_section): when no elements in
4346         rlist, free rlist before return,
4347         * (pic16_dump_int_registers): NEW, internal registers are a new set
4348         of general purpose registers reused by each function,
4349         * (checkAddReg): returns 1 if registers is added to set,
4350         * (pic16_groupRegistersInSection): when a registers is of type
4351         PO_GPR_TEMP add it in pic16_int_regs and not in pic16_rel_udata,
4352         * src/pic16/device.h: memRange and Assigned Memory are deleted,
4353         SRCASECMP macro is moved here from device.c
4354         * src/pic16/genarith.c (pic16_pCodeOpType): added cases for
4355         PO_PCLATU, PO_PRODL, PO_PRODH,
4356         * (pic16_pCodeOpType, genMinus,
4357         changed compares to "a" register, with AOP_ACC,
4358         * (pic16_genPlus): fixed some bugs and indented properly,
4359         * (pic16_addSign): changed size to size+offset in the MOVWF
4360         instruction,
4361         * (pic16_genUMult8XLit_8): NEW, uses processor MULLW instruction to
4362         multiply 8-bit operand by literal, result is 8-bit,
4363         * (pic16_genUMult8X8_8): NEW, uses processor MULWF instruction to
4364         multiply 2 8-bit operand, result is 8-bit,
4365         * (pic16_genMult8X8_8): modified to call genUMult8X*_8 functions and not
4366         genUMult8X*_16,
4367         * src/pic16/gen.c: changed accUse to contain WREG only,
4368         * (pic16_emitcomment): renamed to pic16_emitpcomment,
4369         * (aopForSym): allocated dir register when IN_DIRSPACE(space) is,
4370         true, do not use immediate addressing any more unless sym is a
4371         pointer in codespace,
4372         * (aopForRemat): do not use immediate addressing when symbol not in
4373         codespace and when symbol's address is requested,
4374         * (aopOp): for-loop in if(sym->accUse) is modified for the new
4375         accUse size (= 1),
4376         * (aopGet): added case for AOP_ACC and don't return "accumulator
4377         bug" but WREG instead,
4378         * (popGetTempReg): pushes contents of temporary register in stack,
4379         * (popReleaseTempReg): pops contents of temporary register from
4380         stack. Use popGetTempReg/popReleaseTempReg in aligned pairs,
4381         * (pic16_popGet): separated case AOP_ACC to return register WREG
4382         from processor registers, AOP_PCODE not checks if pcop is PO_DIR
4383         or PO_IMMEDIATE and initializes their instance/offset appropriately,
4384         * The whole issue with aopForSym,aopForRemat,popGet) is to minimize
4385         the use of immediate pointers to certain cases only.
4386
4387         * (pic16_pushpCodeOpReg, pic16_poppCodeOpReg): use pic16_popGet2p,
4388         * (pic16_loadFromReturn, pic16_storeForReturn: NEW,
4389         * (assignResultValue, genCall, genRet): modified to use the new
4390         function return value scheme with WREG,PRODL,PRODH,FSR0L and FSR0,
4391         genPcall is still broken,
4392         * (genFunction): added code to create 'A' type pBlocks when
4393         interrupt functions are generated, code not extensively tested yet,
4394         ISRs push WREG,STATUS,BSR,PRODL,PRODH,FSR0L,FSR0H registers on stack,
4395         * (genEndFunction): modified so ISRs pop stored registers from stack,
4396         * (genMultOneByte): cleanup,
4397         * (AccRsh): added flag andmask, to and result with appropriate mask,
4398         * (genUnpackBits,genPackBits): fixed and can handle bit fields,
4399         * (genDataPointerGet): fixed and reenabled its use,
4400         * (genNearDataPointerGet): bugs fixed,
4401         * (genDataPointerSet): bugs fixed,
4402         * src/pic16/genutils.c: added functions pic16_DumpValue,pic16_DumpAop,
4403         pic16_DumpSymbol, pic16_DumpOp,
4404         * src/pic16/genutils.h: function prototypes for the above functions,
4405         * src/pic16/glue.c: new flags initsfpnt, to initialize stack/frame
4406         pointers,
4407         * (pic16emitRegularMap): many many many improvements, but needs a
4408         major cleanup,
4409         * src/pic16/main.c: enable_stack in pic16_options is removed,
4410         * (_pic16_parseOptions): removed command line options -penable-stack,
4411         * (_process_pragma): emit stack symbol only when stack pragma is
4412         processed,
4413         * src/pic16/pcode.c: pic16_pc_fsr0 is removed, all operations are
4414         redirected to FSR0L/FSR0H pair,
4415         * (pic16_get_op, pic16_get_op2): modifications and improvements,
4416         * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): added
4417         cases PO_PRODL,PO_PRODH, pic16_getRegFromInstruction2 returns sane
4418         for immediates,
4419         * (insertBankSwitch): modified to handle cases like: (alfa + 1)
4420         * (dumpPicOptype): NEW,
4421         * src/pic16/pcode.h: added PO_PCLATU,PO_PRODL,PO_PRODH in enum,
4422         * src/pic16/pcoderegs.c (pCodeRegMapLiveRangesInFlow): fixed bug
4423         with movff instruction,
4424         * src/pic16/ralloc.c: renamed typeRegWithIdx to pic16_typeRegWithIdx,
4425         added pic16_int_regs, some packRegsFor* functions are commented out,
4426         because produce errors,
4427         * src/pic16/NOTES: minor modifications
4428
4429 2004-02-18  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4430
4431         * as/mcs51/aslink.h, as/mcs51/lkarea.c, as/mcs51/lkdata.c, as/mcs51/lkmain.c,
4432         as/mcs51/lkmem.c, src/SDCCglob.h, src/SDCCmain.c: added options --stack-size and
4433         --pack-iram.
4434         * doc/sdccman.lyx: described options --stack-size and --pack-iram.
4435         * as/mcs51/lkaomf51.c: fixed bug #895763
4436
4437 2004-02-17 Bernhard Held <bernhard AT bernhardheld.de>
4438
4439         * device/include/c8051f320.h: added. Contributed by Maarten Brock.
4440
4441 2004-02-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4442
4443         * doc/sdccman.lyx: added details about the HC08 storage classes and
4444         interrupts, fixed the register usage info for z80 & gbz80
4445
4446 2004-02-17 Vangelis Rokas <vrokas AT otenet.gr>
4447
4448         * doc/sdccman.lyx: added more pic16 port documentation
4449         * device/include/pic16/: added header pic18fregs.h
4450
4451 2004-02-16 Bernhard Held <bernhard AT bernhardheld.de>
4452
4453         * doc/sdccman.lyx: added Vangelis' contribution
4454
4455 2004-02-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4456
4457         * src/SDCClrange.c (rlivePoint): live range of SEND operand should
4458         extend to the next CALL or PCALL, not just to the next CALL.
4459
4460 2004-02-16 Vangelis Rokas <vrokas AT otenet.gr>
4461
4462         * src/pic16/gen.c (genInline): fixed bug #896482 with inline assembly
4463
4464 2004-02-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4465
4466         * src/mcs51/ralloc.c (packRegsForAssign, reassignAliasedSym): fixed
4467         bug #895752 and a better fix for bug #716790
4468
4469 2004-02-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4470
4471         * src/SDCCsymt.c (processFuncArgs): fixed bug #896796
4472
4473 2004-02-14 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4474
4475         * doc/sdccman.lyx: minor changes, minor changed
4476
4477 2004-02-13 Bernhard Held <bernhard AT bernhardheld.de>
4478
4479         * src/SDCCicode.c (usualBinaryConversions): removed pic16 from ports
4480         which can't handle SDCC_NEWONEBYTEOPS,
4481         (geniCodeMultiply): removed conversion from mult to shift for pic14
4482         and pic16
4483
4484 2004-02-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4485
4486         * src/hc08/gen.h,
4487         * src/hc08/gen.c (storeRegToAop, aopOp, aopAdrStr, accopWithAop,
4488         rmwWithAop): Ported my 2003-10-02 fix for bug #663539 to the hc08,
4489         thus fixing bug #895406
4490
4491 2004-02-11 Bernhard Held <bernhard AT bernhardheld.de>
4492
4493         * device/lib/_modsint.c,
4494         * device/lib/_modslong.c: sign follows divisor only
4495         * src/hc08/gen.c (genMultOneByte): if result size is 1,
4496         signs or signedness can be ignored
4497         * src/SDCCast.c (addCast): cosmetic - added lineno to CAST
4498         * src/SDCCast.c (resultTypePropagate): added even more ops: +, - and *,
4499         added optimization for IFX,
4500         (decorateType): Mult/Div/ModOneByte ops can handle all kind of signed
4501         arguments;
4502         reenabled optimization for IFX, which was removed on 2004-01-11
4503         * src/SDCCast.h: added return type IFX
4504         * src/SDCCicode.c: Mult/Div/ModOneByte ops can handle all kind of signed
4505         arguments with 8 or 16 bit results; pic14 and pic16 ports use old
4506         promotion behaviour; env. var. SDCC_NEWONEBYTEOPS selects the new,
4507         SDCC_OLDONEBYTEOPS selects the old behaviour
4508         * src/SDCCsymt.c (computeType): type2 can be NULL (for LEFT_OP);
4509         changed again and commented promotion rule
4510         * src/SDCCval.c (valDiv): promotion no longer necessary
4511         * src/ds390/gen.c (genMultOneByte) (genDivOneByte) (genModOneByte),
4512         * src/mcs51/gen.c (genMultOneByte) (genDivOneByte) (genModOneByte):
4513         rewritten
4514         * support/regression/tests/onebyte.c: added
4515
4516 2004-02-11 Vangelis Rokas <vrokas AT otenet.gr>
4517
4518         * gen.c (genInline): reverted to old code for assemnling inline
4519         code because of bug reported James Chadd
4520
4521 2004-02-10 Vangelis Rokas <vrokas AT otenet.gr>
4522
4523         * ralloc.h: missing declarations from previous patch,
4524         seems that patch for ralloc.h was never applied, fixed
4525
4526 2004-02-10 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
4527            patch committed by Vangelis Rokas <vrokas AT otenet.gr>
4528
4529         * pcode.c,
4530         * pcode.h,
4531         * ralloc.h: added FSR0L, FSR0H and other missing PIC16 SFR's for
4532         indirect addressing. Marked FSR0 as deprecated
4533         * gen.c (pointerCode): commented out, not needed now
4534         (pic16_popGet2p): new MOVFF helper function
4535         (genGenPointerGet),
4536         (genGenPointerSet): reimplemented with MOVFF and POSTINC0
4537         (shiftRLong): removed duplicate debugging info
4538
4539 2004-02-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4540
4541         * src/ds390/gen.c (genNearPointerGet),
4542         * src/mcs51/gen.c (genNearPointerGet): allow the genDataPointerGet()
4543         optimization with bits, but not bitfields.
4544         * src/ds390/ralloc.c (packRegisters),
4545         * src/mcs51/ralloc.c (packRegisters): fixed bug #884453 & #880832
4546
4547 2004-02-09 Bernhard Held <bernhard AT bernhardheld.de>
4548
4549         * src/SDCCcse.c (algebraicOpts): copy operands before modification
4550
4551 2004-02-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4552
4553         * src/SDCCsymt.h,
4554         * src/SDCCicode.c (operandFromSymbol),
4555         * src/mcs51/ralloc.c (verifyRegsAssigned, serialRegAssign),
4556         * src/ds390/ralloc.c (verifyRegsAssigned, serialRegAssign),
4557         * src/z80/ralloc.c (verifyRegsAssigned, serialRegAssign),
4558         * src/hc08/ralloc.c (verifyRegsAssigned, serialRegAssign),
4559         * src/pic/ralloc.c (verifyRegsAssigned, serialRegAssign),
4560         * src/pic16/ralloc.c (verifyRegsAssigned, serialRegAssign): fixed
4561         bug #892038
4562         * src/SDCCast.c (createIvalStruct, createIvalArray, gatherAutoInit),
4563         * src/SDCCglue.c (emitRegularMap, printIvalStruct, printIvalArray,
4564         printIvalCharPtr, printIvalPtr, printIval, emitStaticSeg, emitOverlay)
4565         * src/SDCCsymt.c (newSymbol),
4566         * src/SDCC.y (struct_or_union_specifier, enum_specifier,
4567         enumerator_list),
4568         * src/SDCCval.h,
4569         * src/SDCCval.c (newiList): fixed bug #885705
4570
4571 2004-02-08  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4572
4573         * doc/sdccman.lyx: added section 3.1.4: sdcclib.
4574         * as/mcs51/lkmem.c: report the size of the stack in .mem file.
4575
4576 2004-02-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4577
4578         * device/include/c8051f120.h,
4579         * device/include/c8051f300.h,
4580         * device/include/c8051f310.h: added/updated header files for Silicon
4581         Laboratories (formerly Cygnal) CPUs. Contributed by Maarten Brock.
4582         * doc/sdccman.lyx: minor changes, recommended diff -Naur and diff -u
4583         in new section Submitting patches
4584
4585 2004-02-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4586
4587         * src/mcs51/gen.c (genNearPointerGet, genPagedPointerGet,
4588         genFarPointerGet, genCodePointerGet, genGenPointerGet,
4589         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
4590         genGenPointerSet),
4591         * src/ds390/gen.c (genNearPointerGet, genPagedPointerGet,
4592         genFarPointerGet, genCodePointerGet, genGenPointerGet,
4593         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
4594         genGenPointerSet),
4595         * src/pic16/gen.c (genNearPointerGet, genPagedPointerGet,
4596         genFarPointerGet, genCodePointerGet, genGenPointerGet,
4597         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
4598         genGenPointerSet),
4599         * src/pic/gen.c (genNearPointerGet, genPagedPointerGet,
4600         genFarPointerGet, genCodePointerGet, genGenPointerGet,
4601         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
4602         genGenPointerSet): fixed bug #892400
4603         * src/pic16/gen.c (genSkipz, AccRol): disabled functions with #if 0
4604         to eliminate build warnings.
4605         * src/SDCCast.c (processParms),
4606         * src/SDCC.y (function_declarator2, declarator2_function_attributes):
4607         fixed bug 751859
4608         * support/valdiag/valdiag.py: added GCC to the list of defines active
4609         when compiling with gcc
4610
4611 2004-02-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4612
4613         * support/Util/SDCCerr.h,
4614         * support/Util/SDCCerr.c,
4615         * src/SDCCast.c (decorateType, sizeofOp): complain when sizeof is used
4616         with an incomplete type (fixed bug #883734)
4617         * src/SDCCicode.c (geniCodeCast): fixed bug #890510
4618
4619 2004-02-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4620
4621         * src/pic16/gen.c (genCmpEq, shiftRLong): fixed declarations
4622
4623 2004-02-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4624
4625         * src/SDCCast.c (decorateType),
4626         * src/SDCCicode.c (geniCodeParms, geniCodeCall): fixed bugs in my ANSI
4627         function pointer implementation
4628         * support/regression/tests/funptrs.c: added tests to verify both forms
4629         of function pointers work correctly. Added tests to verify parameters
4630         are passed in the correct order.
4631
4632 2004-02-06  Vangelis Rokas <vrokas AT otenet.gr>
4633
4634         * device.c (regCompare): registers are sorted by ascending
4635         address and increasing size,
4636         * main.c (_pic16_finaliseOptions): removed the declaration
4637         of compiler macro MCU. Now a macro of the format pic18fxxxx
4638         will be defined from the command line
4639
4640 2004-02-06  Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
4641             patch committed by Vangelis Rokas <vrokas AT otenet.gr>
4642
4643         * pcode.c (pic16initMnemonics): fixed typo in assignment to PCOP_RLNCF
4644         PCOP_RLCF was overwritten!
4645         * gen.c (genSkip): commented out calls to pic16_emitcode,
4646         * (genCmpEQ): fixed "long" compares, only high word did get compared,
4647         * (genlshTwo),
4648         * (genRRC): added debugging info,
4649         * (shiftL2Left2Result): Fixed bug, if offr > offl. Result got
4650         overwritten while shifting,
4651         * (shiftR2Left2Result): Fixed bug, if offr < offl. Result got
4652         overwritten while shifting,
4653         * (AccLsh),
4654         * (AccRsh),
4655         * (shiftLLeftOrResult),
4656         * (shiftRLeftOrResult),
4657         * (shiftRLong),
4658         * (shiftLLong): Implemented with pic16_emitpcode
4659         * (genlshFour): Replaced pic16_aopPut with pic16_emitpcode,
4660         * (genLeftShift): Fixed bug, operand for shift by variable always
4661         was "and"ed with 0x0f,
4662         * (genLeftShiftLiteral),
4663         * (genrshTwo),
4664         * (genRightShiftLiteral): added debugging info,
4665         * (genrshFour): added comment,
4666         * (genRightShift): determined signedness from operand "left"
4667         instead of "result"
4668
4669 2004-02-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4670
4671         * src/SDCCicode.c (geniCodeParms),
4672         * src/SDCCast.c (decorateType, processParms): support for ANSI-style
4673         function pointers, fixed function pointer bugs #861242 and #861896
4674
4675 2004-01-31 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4676
4677         * device/include/c8051f000.h,
4678         * device/include/c8051f120.h,
4679         * device/include/c8051f300.h: added header files for Silicon
4680         Laboratories (formerly Cygnal) CPUs. Contributed by Maarten Brock.
4681
4682 2004-01-31 Bernhard Held <bernhard AT bernhardheld.de>
4683
4684         * src/SDCCast.c (processParams): added new type flow and restructured
4685         (gatherAutoInit): added new type flow
4686         (addCast): cosmetic changes
4687         (getLeftResultType): added new type flow for array indices, patch
4688         provided by Stas, see FR #877103
4689         (decorateType): SDCC_NEWTYPEFLOW removed, new type flow is now standard;
4690         array index patch by Stas
4691         * src/SDCCast.h: added prototype getResultTypeFromType()
4692         * src/SDCCval.h,
4693         * src/SDCCval.c (resolveIvalSym) (resolveIvalSym),
4694         * src/pic/glue.c (pic14emitStaticSeg),
4695         * src/pic16/glue.c (pic16emitStaticSeg),
4696         * src/SDCCglue.c (emitRegularMap) (emitStaticSeg): added new type flow
4697         for initialization of symbols
4698         * src/SDCCicode.c (geniCodeArray): removed warning W_ARRAY_BOUND
4699         * support/Util/SDCCerr.h:
4700         * support/Util/SDCCerr.c: replaced W_ARRAY_BOUND by W_IDX_OUT_OF_BOUNDS
4701         * .version: bumped version number to 2.3.8
4702         * device/include/Makefile.in (install),
4703         * doc/Makefile (install): changed to 'rm `find ...`' construct to
4704         avoid warnings
4705
4706 2004-01-30 Bernhard Held <bernhard AT bernhardheld.de>
4707
4708         * support/regression/tests/libmullong.c: fixed for 64 bit hosts
4709         Slade Rich fixed an optimization bug
4710         * src/pic/pcodepeep.c,
4711         * src/pic/pcoderegs.c
4712         * doc/Makefile (install): added test for directory
4713
4714 2004-01-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4715
4716         * src/mcs51/ralloc.c (getRegPtr, getRegGpr),
4717         * src/ds390/ralloc.c (getRegPtr, getRegGpr),
4718         * src/pic/ralloc.c (getRegPtr, getRegGpr),
4719         * src/pic16/ralloc.c (getRegPtr, getRegGpr),
4720         * src/z80/ralloc.c (getRegGpr): fixed bug #883361
4721         * as/mcs51/asexpr.c (term),
4722         * as/hc08/asexpr.c (term): fixed bug #887146
4723
4724 2004-01-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4725
4726         * src/z80/gen.c (genMult): handle single byte result product
4727         * src/SDCCopt.c (killDeadCode): never convert ADDRESS_OF iCode to
4728         DUMMY_READ_VOLATILE (fixed bug #886367)
4729
4730 2004-01-27 Bernhard Held <bernhard AT bernhardheld.de>
4731
4732         * support/regression/tests/libmullong.c: fixed logic, on little endian
4733         hosts we ended without a mullong_wrapper()
4734
4735 2004-01-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4736
4737         * ChangeLog: changed "@" to " AT " in hopes of reducing spam and
4738         virus/worm forged address usage.
4739
4740 2004-01-27 Bernhard Held <bernhard AT bernhardheld.de>
4741
4742         Fixed promotion, it should be done on AST level:
4743         * src/SDCCast.c (addCast): added promotion to int
4744         (decorateType): updated call to upCast()
4745         * src/SDCCicode.c (geniCodeLeftShift): removed call to
4746         usualUnaryConversions()
4747
4748 2004-01-26  Michael Hope  <michaelh AT juju.net.nz>
4749
4750         * support/regression/tests/literalop.c (mulWrapper): Added a
4751         wrapper to remove integer overflow warnings.
4752
4753         * support/regression/tests/float_trans.c: Made work on host.
4754
4755         * support/regression/ports/ucz80/spec.mk (UCZ80): Made detect the
4756         location of sz80.
4757
4758         * support/regression/generate-cases.py (main): Changed from inline
4759         to a main method.
4760
4761         * doc/Makefile (install): Changed to depth first to get rid of
4762         missing directory install warning.
4763
4764         * as/Makefile (install-doc): Made work on Mac.
4765
4766 2004-01-25 Bernhard Held <bernhard AT bernhardheld.de>
4767
4768         * src/SDCCast.c: added an additional type flow in decorateType() of
4769         opposite direction, see feature request #860006; it's enabled at runtime
4770         by setting the environment variable SDCC_NEWTYPEFLOW
4771         * src/SDCCast.h: changed prototype of decorateType()
4772         * src/SDCCglue.c (emitRegularMap): updated call of decorateType()
4773         * src/SDCCicode.c (geniCodeDivision) (geniCodeModulus): promotion from
4774         'char' to 'int' can be omitted, if both operands are 'unsigned char';
4775         see feature request #877103
4776         * src/SDCCval.c: updated call of decorateType()
4777         (valBitwise): fixed bug #882876
4778         (valMinus): added promotion
4779         (valLogicAndOr): result is unsigned
4780         (cheapestVal) (constVal): literals from 0...255 are 'unsigned char' now
4781         * src/SDCCsymt.c (computeType),
4782         * src/mcs51/gen.c (genCmpGt) (genCmpLt): literal 'unsigned char'
4783         must not cause an unsigned operation
4784         * src/pic/glue (pic14emitRegularMap),
4785         * src/pic16/glue.c (pic16emitRegularMap): updated call of decorateType()
4786
4787 2004-01-23 Bernhard Held <bernhard AT bernhardheld.de>
4788
4789         * src/pic/pcode.c (PCodeID): commented out left over debug code
4790
4791 2004-01-20 Bernhard Held <bernhard AT bernhardheld.de>
4792
4793         * support/valdiag/tests/overflow.c: added shift tests
4794         * src/pic/device.c,
4795         * src/pic/gen.c,
4796         * src/pic/gen.h,
4797         * src/pic/glue.c,
4798         * src/pic/main.c,
4799         * src/pic/pcode.c,
4800         * src/pic/pcode.h,
4801         * src/pic/pcodepeep.c,
4802         * src/pic/pcoderegs.c,
4803         * src/pic/ralloc.c,
4804         * src/pic/ralloc.h: applied patch from Slade Rich;
4805         added support for multiple code pages and multiple RAM banks on the
4806         PIC 14 port. The ASM files now no longer simply assume all the
4807         code / RAM are in the same page / bank. This means the linker can
4808         safely allocate code/RAM of separate ASM files to different pages/banks.
4809         * doc/sdccman.lyx: added Slade's tips
4810         * src/mcs51/peeph.def: fixed bug #880768
4811
4812 2004-01-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4813
4814         * src/hc08/ralloc.c (rematStr): fixed bug #879282
4815         * src/SDCCast.c (decorateType): fixed bug #880197
4816
4817 2004-01-20  Michael Hope  <michaelh AT juju.net.nz>
4818
4819         * sim/ucsim/gui.src/serio.src/main.cc: Fixed unconditional use of
4820         getopt.h.
4821
4822         * debugger/mcs51/cmd.c (getValBasic): Changed strtof to strtod as
4823         strtof is not part of C89 and isn't included with Mac OS X.
4824
4825 2004-01-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4826
4827         * src/hc08/gen.c (genPlusIncr, genUminus, genMinusDec, genCmp,
4828         shiftL2Left2Result): fixed bug #879326
4829         (genAnd, genOr, genXor): fixed bug when result was of type AOP_CRY
4830         (genMultOneByte): fixed bug in signed vs unsigned multiplication
4831         * sim/ucsim/hc08.src/inst.cc (inst_clr): added missing effective
4832         address fetch for clr instruction
4833         * device/lib/hc08/_mulint.c: created optimized assembly version
4834         * src/SDCCdflow.c (computeDataFlow): fixed bug #878209
4835
4836 2004-01-19 Bernhard Held <bernhard AT bernhardheld.de>
4837
4838         * src/SDCCicode.c (geniCodeArray): applied patch from Stas Sergeev
4839         proposed in FR #877103
4840
4841 2004-01-18 Bernhard Held <bernhard AT bernhardheld.de>
4842
4843         * src/SDCCval.c (cheapestVal): added missing checks
4844         * src/SDCCicode.c (usualBinaryConversions): fixed condition
4845         * src/SDCCicode.c (geniCodeAdd): fixed part of bug #877103
4846
4847 2004-01-16 Klaus Flittner <klaus_flittner AT gmx.de>
4848
4849         * src/ds390/gen.c (aopOp3): fixed the assignment of different dptrs to
4850         equal operands
4851
4852 2004-01-16 Vangelis Rokas <vrokas AT otenet.gr>
4853
4854         * src/SDCCmain.c (linkEdit): variable $3 of the linker command is
4855         loaded with the linker search paths (-L arguments) and the libraries
4856         to be linked with the current source (-l arguments). Changes
4857         currently will affect only the pic16 port.
4858         * src/pic16/main.c (_pic16_finaliseOptions): add to the linker
4859         include path the port specific paths and port specific libraries,
4860         * gplink command now contains the $3 argument,
4861         * src/pic16/device.h,
4862         * src/pic16/device.c,: structure PIC_device is made public and
4863         renamed to PIC16_device, the same for variable Pics which is renamed
4864         to Pics16. Updated all references to them.
4865         * src/pic16/glue.c (pic16glue): corrected bug with code
4866         initialization which bypassed the variable initializations block.
4867
4868         * device/lib/pic16/Makefile.rules: removed --penable-stack from
4869         COMPILE_FLAGS and added the --nostdinc option
4870
4871 2004-01-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4872
4873         * device/include/mc68hc908jb8.h: Register defs for another member
4874         of the hc08 family. Contributed by Bjorn Bringert - thanks!
4875
4876 2004-01-14 Vangelis Rokas <vrokas AT otenet.gr>
4877
4878         Documenting changes from previous commits.
4879         * configure.in (version 1.56),
4880         * configure: initially I've added AC_CONFIG_SUBDIRS(device/lib/pic16)
4881         when generating output files to configure the pic16 library,
4882         but now I've commented it out, since gputils aren't installed in the
4883         SF compile farm, so library won't compile
4884
4885         * device/lib/Makefile.in (version 1.56): initially I've added in
4886         target 'all' the prerequestive 'model-pic16' so it compiled the
4887         pic16 library, but now I've commented it out for the same reasons
4888         above,
4889         * added targets 'model-pic16' and 'objects-pic16' to compile the
4890         library
4891         * added target 'port-specific-objects-pic16' to handle the
4892         generated libraries and copy them into the build/ directory
4893         * added target 'clean-intermediate-pic16' to clean intermediate
4894         files into pic16 directory
4895         * in target 'installdirs' added line to create directory pic16 in
4896         the installation path
4897
4898         * device/include/Makefile.in (version 1.11): in target 'install'
4899         added lines to copy all header files to installation path,
4900         * in target 'installdirs' added line create directory for pic16
4901         headers in the installation path
4902
4903 2004-01-13 Klaus Flittner <klaus_flittner AT gmx.de>
4904
4905         * src/ds390/gen.c (genCall): fixed a double use of acc and b after
4906          a function call
4907
4908 2004-01-13 Bernhard Held <bernhard AT bernhardheld.de>
4909
4910         * configure,
4911         * device/lib/configure.in,
4912         * device/lib/configure: fixed for autoconf 2.57
4913
4914 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4915
4916         * src/z80/main.c (_parseOptions): fixed the portmode= command line
4917         option so that it actually works. Made it specific to the z80, since
4918         the gbz80 doesn't have these kinds of I/O ports.
4919
4920 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4921
4922         * device/include/z180.h,
4923         * device/lib/_memcpy.c,
4924         * device/lib/_memmove.c,
4925         * device/lib/_mulint.c,
4926         * device/lib/ser_ir.c,
4927         * device/lib/ser_ir_cts_rts.c,
4928         * device/lib/_strcmp.c,
4929         * device/lib/_strtok.c: fixed pragmas to non-deprecated form
4930         * src/z80/main.c (_process_pragma): add support for pragmas bank and
4931         portmode; added deprecation warning for bank= and protmode= forms.
4932         Also, guard against buffer overflow.
4933         * src/z80/gen.c (aopGet): generate better code for sfr banked read
4934
4935 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4936
4937         * src/hc08/main.c (_hc08_genAssemblerPreamble): fixed bug #875487. Also
4938         changed interrupt vector table generation to only emit declared vectors.
4939         * device/include/Makefile.in: added missing backslash
4940         * device/lib/pic16/Makefile.rules: add $(MODELFLAGS) to $(CFLAGS)
4941
4942 2004-01-13 Vangelis Rokas <vrokas AT otenet.gr>
4943
4944         Mainly changes to support compilation of the device libraries
4945         * src/pic16/device.c: stack is allocated via symbol and not
4946         via literal number. The symbol is placed in the corresponding
4947         position of the data ram
4948         * (pic16_dump_section): relocatable and absolute uninitialized
4949         data are now emitted in sorted order to reduce section naming,
4950         * src/pic16/ralloc.c (newReg): fixed bug with SFR's that
4951         weren't marked as being in the access bank,
4952
4953 2004-01-13 Vangelis Rokas <vrokas AT otenet.gr>
4954
4955         Added portion of GNU PIC Library under the directory
4956         device/include/pic16 and device/lib/pic16. These files
4957         contain the declarations of SFRs for the PIC18Fxx2 devices.
4958         The directory is initialized via configure from toplevel.
4959
4960 2004-01-12 Klaus Flittner <klaus_flittner AT gmx.de>
4961
4962         * src/ds390/gen.c (operandsEqu): fixed a little typo, that prevented
4963         the spilllocations to be compared correctly
4964
4965 2004-01-12 Bernhard Held <bernhard AT bernhardheld.de>
4966
4967         * src/SDCCast.c (decorateType): fixed bug introduced today
4968
4969 2004-01-12  Borut Razem <borut.razem AT siol.net>
4970
4971         * src/SDCC.lex, support/Util/SDCCerr.h, support/Util/SDCCerr.c,
4972         doc/sdccman.lyx: upper case pragmas are deprecated
4973
4974 2004-01-12 Bernhard Held <bernhard AT bernhardheld.de>
4975
4976         * src/SDCCast.c (decorateType): replacing 'ul > 0' by  '!ul' results
4977         in simpler and even better code
4978
4979 2004-01-11 Bernhard Held <bernhard AT bernhardheld.de>
4980
4981         * src/SDCCicode.c (operandOperation): fixed bug #874819
4982         * src/SDCCast.c (decorateType): fixed
4983         char foo (unsigned long ul) { return ul > 0; }
4984
4985 2004-01-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4986
4987         * doc/sdccman.lyx: Moved and added some sections, small changes
4988         all over. Telling LaTeX to be less strict with word spacing
4989         to better keep the right margin. Changed some notes about
4990         maintainance of the ports in section 3.2.1 - is it OK like this?
4991
4992 2004-01-11 Vangelis Rokas <vrokas AT otenet.gr>
4993
4994         SDCC source changes:
4995         * src/SDCCopt.c (cntToFcall, cnvToFloatCast, cnvFromFloatCast,
4996         convilong): modified to inform the pic16 port that builtin functions
4997         are external
4998
4999         PIC16 PORT specific changes:
5000         * src/pic16/device.c pic16_dump_equates() added,
5001         processor registers declared internally by the port are emitted in
5002         the translation as equates,
5003         * src/pic16/gen.c: inline code is passed unprocessed to the
5004         translation,
5005         * (pic16_popGetLit2): fnuction modified to take second operand as
5006         pCodeOp pointer and not as literal,
5007         * (popRegFromIdx): prefixed with pic16_,
5008         * (pic16_popCombine2): modified to receive already allocated pCode
5009         operands,
5010         * (pic16_pushpCodeOpReg, pic16_poppCodeOpReg): added
5011         * (genFunction): initializes local stack frame and pushes on stack
5012         all the registers used by this function,
5013         * (genEndFunction): restores all registers from stack and restores
5014         stack frame,
5015         * src/pic16/glue.c (pic16emitRegularMap): various changes and
5016         improvements,
5017         * (pic16glue): changed the program startup sequence,
5018         * added new dbName code 'A' for functions placed in absolute section
5019         * src/pic16/main.c: added function attribute _naked,
5020         * added pragma 'code' to place a fnuction at an absolute address,
5021         * added command line arguments --debug-ralloc and --pcode-verbose,
5022         * (_pic16_finiliseOptions): options.all_callee_saves is set by default
5023         * src/pic16/pcode.c (pic16_pBlockConvert2Absolute) added,
5024         * (pic16_newpCodeOpLit2): modified to take the second operand as
5025         pCodeOp pointer,
5026         * (pic16_printpBlock): modified to emit each function in a separate
5027         section,
5028         * (pic16_get_op): modified to use the gpasm modifiers LOW,HIGH and
5029         UPPER for immediate operands,
5030         * src/pic16/pcodepeeph.c: added peephole support for the LFSR
5031         instruction,
5032         * src/pic16/peeph.def: all peepholes with movff are commented out,
5033         because there is a problem in the pcode peep optimizer,
5034         * src/pic16/ralloc.c: the register allocator can now reuse local
5035         function symbols for another function. This saves register usage.
5036         * src/pic16/ralloc.h: added flag isLocal in structure regs,
5037
5038         Added file src/pic16/NOTES with information about program writing on
5039         the current port version.
5040
5041 2004-01-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5042
5043         * src/mcs51/peephole.def: added peepholes 177.c,d (redundant moves)
5044         and peephole 252 (array access)
5045
5046 2004-01-09  Borut Razem <borut.razem AT siol.net>
5047
5048         * src/SDCCmain.c : fixed #872250: -l command line defined library
5049           files are scanned before standard library files
5050
5051 2004-01-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5052
5053         * src/SDCCast.c (decorateType): fixed bug #874046
5054
5055 2004-01-09  Borut Razem <borut.razem AT siol.net>
5056
5057         * support/scripts/sdcc.nsi: remove previous installation
5058
5059 2004-01-09 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5060
5061         * src/SDCCglue.c (createInterruptVect): don't append 7(5) padding
5062         bytes for last interrupt vector (mcs51)
5063         * sdcc.spec: fixed typo
5064
5065 2004-01-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5066
5067         * src/mcs51/gen.c (genFunction, genEndFunction, genReceive, getTempRegs,
5068         gen51Code): more efficient parameter receive for --model-large
5069         ("bug" #845294)
5070
5071 2004-01-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5072
5073         * src/ds390/main.c,
5074         * src/z80/main.c: added missed needLinkerScript flags (more than
5075         one port structure defined in these file)
5076         * src/ds390/gen.c (aopForSym, aopOp, operandsEqu, aopOp3): fixed
5077         bug #795325
5078
5079 2004-01-08 Vangelis Rokas <vrokas AT otenet.gr>
5080
5081         * src/SDCCmain.c: removed various references to DEFAULT_PORT
5082         * src/port.h: added flag needLinkerScript in port->linker
5083         structure to inform whether to create a .lnk file or not,
5084         * src/avr/main.c,
5085         * src/ds390/main.c,
5086         * src/hc08/main.c,
5087         * src/mcs51/main.c,
5088         * src/pic/main.c,
5089         * src/pic16/main.c,
5090         * src/xa51/main.c,
5091         * src/z80/main.c: changed appropriately to configure
5092         needLinkerScript flag
5093         * src/pic/gen.c,
5094         * src/pic16/gen.c (genAddrOf): fixed bug #863624
5095         * src/pic/glue.c: added variable udata_section_name to
5096         override default uninitialized data segment definition for
5097         devices only with SHAREBANK memory (reported from Erik Epetrich)
5098         * (pic14emitOverlay): modified to emit a commented overlay segment
5099         directive when no overlay data exist
5100         * (picglue): modified to emit uninitialized data segment
5101         according to udata_section_name
5102         * src/pic/main.c (_pic14_parseOptions): added command line
5103         options --udata-section-name=[name] to override default
5104         udata definition name
5105         * modified _linkCmd and _asmCmd to include compiler passed
5106         arguments via -W option
5107         * src/pic16/main.c: added $l in _asmCmd, changed extension for
5108         object file from '.rel' to '.o' in port->linker structure,
5109         changed size of fptr from 2 to 3 in port structure
5110
5111 2004-01-07  Borut Razem <borut.razem AT siol.net>
5112
5113         * support/scripts/sdcc.nsi: update PATH
5114         * support/scripts/sdcc.ico: craeted
5115
5116 2004-01-07 Bernhard Held <bernhard AT bernhardheld.de>
5117
5118         * device/include/Makefile.in: fix install
5119         * doc/Makefile: fix install
5120
5121 2004-01-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5122
5123         * src/SDCCsymt.c (processFuncArgs): fixed superflous allocation noted
5124         in bug #860505
5125         * src/SDCCmem.c (printAllocInfoSeg, printAllocInfo): minor changes to
5126         how the function variable allocation summary is displayed; also
5127         include information about variables allocated to the overlay
5128         segment
5129
5130 2004-01-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5131
5132         * as/mcs51/lkmain.c: Help about -Y option
5133         * as/mcs51/lkarea.c: Fixed gcc warnings
5134
5135 2004-01-06 Bernhard Held <bernhard AT bernhardheld.de>
5136
5137         * src/SDCCval.c (valShift): changed from 16 to 32 bit shift count,
5138         fixed warning
5139         * support/valdiag/tests/overflow.c: added
5140         * src/SDCCast.c (decorateType),
5141         * src/SDCCicode.c (geniCodeLeftShift): added promotion to int for
5142         LEFT_OP (left shift)
5143
5144 2004-01-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5145
5146         * as/mcs51/lkmain.c: stack must be after data when option -Y is not used
5147         (default behaviour).
5148
5149 2004-01-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5150
5151         A python script to validate compiler diagnostic messages. It can be
5152         used to verify that sdcc complains about bad c source code and
5153         gives a good location of the error.
5154         * support/valdiag/Makefile,
5155         * support/valdiag/valdiag.py,
5156         * support/valdiag/tests/*
5157
5158 2004-01-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5159
5160         * src/SDCC.y (enum_specifier, enumerator_list, opt_assign_expr),
5161         * src/SDCCsymt.c (newEnumType),
5162         * src/SDCCsymt.h
5163         * support/Util/SDCCerr.c,
5164         * support/Util/SDCCerr.h: fixed bug #871258 and some other unreported
5165         enum related bugs.
5166         * support/regression/tests/enum.c: added test for enum values that
5167         require at least 2 bytes of storage.
5168
5169 2004-01-06 Vangelis Rokas <vrokas AT otenet.gr>
5170
5171         * src/common.h: added ifndef/define/endif macros
5172         around the header file.
5173         Bug reported from Jesus Calvino-Fraga
5174
5175 2004-01-06 Bernhard Held <bernhard AT bernhardheld.de>
5176
5177         * sdcc.spec: updated
5178         * device/include/Makefile.in: don't install CVS directories
5179         * device/lib/Makefile.in: added removal of CVS directories after install
5180         * doc/Makefile: fixed install, added local_icons
5181         * sim/ucsim/gui.src/Makefile.in: fixed an old typo
5182         * src/mcs51/gen.c (genRightShift): fixed bug #870788
5183         * src/ds390/gen.c (genRightShift): fixed bug #870788
5184         * src/SDCCast.c (decorateType): fixed bug #870781
5185
5186 2004-01-06 Vangelis Rokas <vrokas AT otenet.gr>
5187
5188         PIC16 port related changes:
5189         * device.c: removed pic16_finalMapping and pic16_finalMappingSize,
5190         added variable stackPos,
5191
5192         * gen.c: genCall, assignResultValue: added support for
5193         pushing/retrieving function parameters to/from stack,
5194         genFunction,genEndFunction: setup stack frame for the
5195         generated function,
5196         genAddrOf: will be changed according to bug 863624
5197
5198         * added files genutils.c and genutils.h which contain gen*
5199         debugged and optimised functions extracted from gen.c
5200
5201         * glue.c: added variable 'externs' which holds extern symbols,
5202         pic16emitRegularMap: is modified to properly handle relocatable
5203          symbols under the new scheme,
5204         pic16createInterruptVect: is modified
5205         pic16printPublics: is modified to emit 'global' assembler directives,
5206         added pic16_printExterns to print extern symbols,
5207         pic16glue: initializes stack/frame pointer in the beginning of
5208         the assembly output. Temporary hack, will be corrected later,
5209         because gplink yet does not support stack and SDCC does not
5210         yet support a type of crt0.o object to create the final binary.
5211
5212         * Removed many lines that contain 8051 legacy code.
5213         * The code is finally placed under a 'code' directive.
5214         * Added port specific options.
5215
5216         * _process_pragma: simplified since now we do not need *special*
5217         include file to define SFR registers. But a separate header
5218         will be needed. This will be developed later.
5219         * _pic16_parseOptions: added, parses port specific options:
5220         --pgen-banksel, --obanksel=, --pomit-config-words, --pomit-ivt,
5221         --pleave-reset-vector, --penable-stack, --pstack-model, --debug-xtra
5222         --preplace-udata-with=
5223
5224         * _pic16_setDefaultOptions: modified to initialize section names,
5225         but hack is temporarly out of order since it needs improvement.
5226         * _pic16_genAssemblerPreamble: configuration words are emitted by
5227         their address instead of their name. This part is incomplete and
5228         supports only the 18Fxx2 devices. Other devices will emit an error
5229         during assembly since they do not contain the same set of config
5230         registers
5231         * _pic16_genIVT: is modified,
5232
5233         * pcode.c: added definitions for some hardware registers that are needed
5234         for stack support
5235         * added flag is2LitOp and variable pci_magic in pCodeInstruction.
5236         All PCI entries are updated. Now LFSR is supported.
5237         * Removed pic16_pciTRIS is mentioned by mdubuc in source
5238         * added pic16_newpCodeOpLit2 to support instructions with
5239         two literal arguments
5240         * pic16_pCode2str: corrected code that emits assembler instructions
5241         with two literal operands and those that have an access bit modifier
5242         * genericPrint: now PC_ASMDIR pCodes, can emit a label if it exists,
5243         this fixes a bug which caused some labels to be lost, when an
5244         assembler directive was added, i.e. banksel,
5245         * pic16_FixRegisterBanking: improved logic that causes the insertion
5246         of bank switching,
5247         * InlineFunction: functions that are called once, are not any more
5248         inlined. This can be a port option in the future,
5249
5250         * pcode.h: added pCodeOpLit2 and added variable label in pCodeAsmDir
5251
5252         * ralloc.c: added pic16_rel_udata and pic16_fix_udata variables which
5253         hold the corresponding uninitialized symbols,
5254         * pic16_allocProcessorRegister: registers have explicit marked the
5255         accessBank field,
5256         * pic16_allocInternalRegister: registers are explicit marked as
5257         not used,
5258         * pic16_writeUsedRegs: pic16_dynDirectBitRegs was missing from the
5259         processing list, so bit registers were lost,
5260         *
5261
5262         * ralloc.h: added field 'accessBank' and original symbol operand
5263         in register definition,
5264         * removed the field isMapped from register definition,
5265
5266         ** Several functions have been removed from various sources:
5267         BanksUsedFlow2,BanksUsedFlow,FixBankFlow,InstructionRegBank,
5268         pic16_addMemRange,pic16_isREGinBank,pic16_dump_map,pic16_dump_cblock
5269         isSFR,validAddress,mapRegister,assignRegister,pic16_assignFixedRegisters
5270         pic16_assignRelocatableRegisters
5271
5272         ** others have been introduced:
5273         pic16_areRegsSame,pic16_dump_section,checkAddReg,pic16_groupRegistersInSection
5274         pic16_popGetLit2,pic16_popCombine2,pushw,pushaop
5275
5276 2004-01-05 Vangelis Rokas <vrokas AT otenet.gr>
5277
5278         * support/scripts/inc2h.pl: changed definition of BIT_AT
5279         to emit 'sbit at' instead of 'bit at'. This was a request.
5280
5281         PIC16 port related preliminary changes:
5282         * gen.c: prefixed function popRegFromString with
5283         pic16_ and all references to it corrected
5284         * pcode.c: all pic16_pc_* hardware registers prefixed
5285         with underscore (_),
5286         pic16_popCopyGPR2Bit(): function sets register wasUsed=1
5287         * ralloc.c: newReg(): when register is REG_SFR then
5288         set address to rIdx,
5289         pic16_allocProcessorRegister(): marks register wasUsed=0
5290         pic16_writeUsedRegs(): added a call to assign processor
5291         registers via pic16_assignFixedRegisters
5292
5293 2004-01-04  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5294
5295         * as/mcs51/aslink.h, as/mcs51/lkarea.c, as/mcs51/lkdata.c,
5296         as/mcs51/lkmain.c, as/mcs51/lkmem.c: 8051 linker can now pack
5297         variables in unused register banks.  Also the SSEG is placed
5298         wherever there is enough space for it, and IDATA can be anywhere
5299         in internal RAM.  For now compile using -Wl-Y[stack_size].
5300         The mem file is different for this option as well, since it
5301         makes no sense of talking about DSEG lenght.
5302
5303 2004-01-02 Vangelis Rokas <vrokas AT otenet.gr>
5304
5305         * src/SDCClrange.c: fixed bug 869095 that caused segfault
5306         in certain cases, e.g. when ROM assignment, patch provided
5307         from Albert den Haan.
5308
5309 2004-01-01 Bernhard Held <bernhard AT bernhardheld.de>
5310
5311         Many signedness and type propagation fixes:
5312         * src/SDCCicode.c: made geniCodeCast() static
5313         replaced SPEC_ by IS_ (cosmetic)
5314         (operandOperation): fixed div and mod operation
5315         (usualBinaryConversions): added support for promotion of char
5316         (geniCodeMultiply): replaced (unsigned long) by (TYPE_UDWORD)
5317         (geniCodeDivision): replaced (unsigned long) by (TYPE_UDWORD)
5318         (geniCodeAdd): an array index will stay unsigned, even if promoted
5319         from char to int
5320         (geniCodeArray): ditto
5321         * src/SDCCicode.h: made geniCodeCast() static: removed prototype
5322         * src/SDCCsymt.c (computeType): added more support for char;
5323         promotion of char is selectable by promoteCharToInt, fixed signedness
5324         for all cases
5325         (powof2): replaced (unsigned long) by (TYPE_UDWORD)
5326         * src/SDCCsymt.h (powof2): replaced (unsigned long) by (TYPE_UDWORD)
5327         * src/SDCCval (val*): replaced signedness calculation by
5328         computeType()
5329         rearranged if-branches (cosmetic)
5330         (valShift): added warning W_SHIFT_CHANGED
5331         (valCompare): fixed problem with different types
5332         * src/hc08/rallo.c (leastUsedLR): fixed gcc 3.3 warning
5333         * support/regression/tests/literalop.c: added many cases
5334         * support/regression/tests/ast_constant_folding.c: changed finally to
5335         'unsigned int'
5336         * .version: new year, new version: 2.3.7
5337         * src/SDCCmain.c (main): applied patch #866468
5338         * debugger/mcs51/sdcdb.c (parseCmdLine): added -k for ucsim, patch
5339         provided by Scott Bronson
5340         * doc/sdccman.lyx: updated documentation for sdcdb
5341         updated and added chapter tips
5342
5343 2004-01-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5344
5345         * src/SDCCsymt.h: missing from yesterday's commits
5346
5347 2003-12-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5348
5349         * src/SDCC.y (struct_or_union_specifier),
5350         * support/Util/SDCCerr.c,
5351         * support/Util/SDCCerr.h: verify that struct & union tags are used
5352         as declared.
5353
5354 2003-12-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5355
5356         * src/SDCCglobl.h: missing from yesterday's commits
5357
5358 2003-12-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5359
5360         * src/SDCC.y (external_definition, type_specifier2, sfr_reg_bit,
5361         sft_attributes, struct_declaration, parameter_declaration,
5362         type_name, start_block, declaration_list),
5363         * src/SDCC.lex (check_type): support redefinition of typedef names
5364
5365 2003-12-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5366
5367         * src/mcs51/gen.c (genPlus): added special handling for 256 byte
5368         aligned xdata arrays. Erik helped me with the if clause.
5369
5370 2003-12-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5371
5372         * device/lib/ds390/tinibios.c (CpuSpeed): suppress unreachable code
5373         warning
5374
5375 2003-12-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5376
5377         * src/SDCCast.h,
5378         * src/SDCCast.c (newAst_),
5379         * src/SDCCicode.h,
5380         * src/SDCCicode.c (ast2iCode, newiCode),
5381         * src/SDCCglobl.h,
5382         * src/SDCC.y (logical_and_expr, logical_or_expr, conditional_expr,
5383         expr, statement, expression_statement, selection_statement,
5384         iteration_statement, expr_opt, jump_statement): foundation for tracking
5385         sequence points
5386         * src/SDCCopt.c (killDeadCode): fixed bug #861580 (needs the sequence
5387         point code too)
5388
5389 2003-12-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5390
5391         * support/Util/SDCCerr.c,
5392         * src/SDCCast.h,
5393         * src/SDCCast.c (createCase, createDefault, decorateType),
5394         * src/SDCClabel.c (labelUnreach),
5395         * src/SDCC.y (labeled_statement, jump_statement): More improvements
5396         to error messages.
5397         * support/Util/SDCCerr.c (werrorfl): fixed a non-standard declaration
5398         (with thanks to Stas Sergeev)
5399         * device/include/time.h,
5400         * device/lib/time.c (CheckTime): suppress unreachable code warning
5401
5402 2003-12-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5403
5404         * src/SDCCast.c (createIvalCharPtr),
5405         * src/SDCCglue.c (printChar): fixed bug #862241 (an error in my fix for
5406         bug #753752)
5407         * support/regression/tests/nullstring.c: tests for these two bugs
5408
5409 2003-12-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5410
5411         * support/Util/SDCCerr.h,
5412         * support/Util/SDCCerr.c (E_NOT_ALLOWED),
5413         * src/SDCC.y (struct_declaration, struct_or_union_specifier): complain
5414         about storage class and 'at' used inside struct or union
5415         * src/SDCCBBlock.c (iCodeFromeBBlock),
5416         * src/SDCCcse.c (ifxOptimize),
5417         * src/SDCCglue.c (emitRegularMap, initPointer, printIvalStruct,
5418         printIvalArray, printiValFuncPtr, printIvalCharPtr, printIvalPtr,
5419         printIval, emitStaticSeg, emitOverlay),
5420         * src/SDCClabel.c (deleteIfx),
5421         * src/SDCCopt.c (replaceRegEqv, eBBlockFromiCode),
5422         * src/SDCCast.c (resolveSymbols, createIvalStruct, createIvalArray,
5423         gatherAutoInit, processParms),
5424         * support/Util/SDCCerr.h,
5425         * support/Util/SDCCerr.c (werrorfl): Support for better error location
5426         reporting for post-parse errors.
5427
5428 2003-12-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5429
5430         * src/SDCCval.c (valPlus, valMinus, valShift): fixed some problems with
5431         implicit casts via union; they don't work on big endian systems
5432         (possible fix for bug #861138)
5433
5434 2003-12-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5435
5436         (committed by Erik Petrich <epetrich AT ivorytower.norman.ok.us> on Frieder's behalf)
5437         * src/mcs51/main.c: fixed the fix for bug #737001
5438
5439 2003-12-15  Borut Razem <borut.razem AT siol.net>
5440
5441         * support/scripts/sdcc.nsi: updated for NSIS 2.0 beta 4
5442
5443 2003-12-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5444
5445         * support/makebin/makebin.c: put output in binary mode
5446
5447 2003-12-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5448
5449         * src/mcs51/main.c: fixed bug #737001 for the mcs51. SDCC clears
5450         xdata and data memory on startup. Set the environment variable
5451         SDCC_NOGENRAMCLEAR to disable this.
5452         * src/mcs51/peephole.def,
5453         * src/ds390/peephole.def: using the atomic test and clear instruction jbc
5454         (allows non-interrupt and interrupt code to safely compete for a resource
5455         without the non-interrupt code having to disable interrupts)
5456
5457 2003-12-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5458
5459         * src/SDCCicode.c (geniCodeAdd),
5460         * src/SDCCast.c (decorateType): fixed bug #857753 (need to be careful
5461         with valFromType if type might be a pointer and host is big endian).
5462         * src/SDCCast.c (decorateType): unary plus compatible with all arithmetic
5463         types, not just integer types.
5464         * src/SDCCsymt.c (addSymChain): clarified error message when symbol is
5465         multiply defined with mismatching "at" address.
5466
5467 2003-12-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5468
5469         * src/ds390/main.c (PORT tininative_port): fixed bug #858416
5470         * src/SDCCglue.c (printChar, printIvalChar, emitStaticSeg),
5471         * src/SDCCast.c (createIvalCharPtr, stringToSymbol): handle strings
5472         with embedded nulls (fixed bug #753752)
5473
5474 2003-12-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5475
5476         * src/mcs51/main.c(_mcs51_genRAMCLEAR): using r0 instead of r1/r2.
5477         Apparently this did not see much testing (endless loop)
5478
5479 2003-12-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5480
5481         * src/z80/ralloc.c: set DISABLE_PACK_HL = 1 as a temporary fix to bug #855165
5482
5483 2003-12-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5484
5485         * src/SDCCdebug.c (outputDebugSymbols, outputDebugStackSymbols, dumpSymInfo):
5486         gracefully handle NULL memmap pointers
5487
5488 2003-12-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5489
5490         * src/SDCCopt.c (killDeadCode): change iCode type to DUMMY_READ_VOLATILE
5491         instead of deleting the iCode when an operand is volatile
5492         * src/z80/gen.c (genDummyRead),
5493         * src/mcs51/gen.c (genDummyRead),
5494         * src/ds390/gen.c (genDummyRead),
5495         * src/hc08/gen.c (genDummyRead): handle operands in IC_LEFT and/or IC_RIGHT,
5496         not just IC_RIGHT
5497         * src/SDCCicode.c (geniCodeCall): fixed bug #851607
5498         * src/SDCC.y: fixed bug #850420
5499
5500 2003-12-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5501
5502         Applied z80 i/o port patch from Peter Townson and fixed some operators
5503         to better handle operands in A register.
5504         * device/include/z180.h
5505         * src/SDCC.y
5506         * src/SDCCglue.c
5507         * src/z80/gen.c
5508         * src/z80/gen.h
5509         * src/z80/main.c
5510         * src/z80/peeph-z80.def
5511         * src/z80/peeph.def
5512         * src/z80/z80.h
5513
5514 2003-12-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5515
5516         * src/SDCCsymt.c (addSymChain, compareTypeExact): fixed bug #838241 again
5517
5518 2003-12-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5519
5520         * device/lib/hc08/_mullong.c: Removed extra #endif
5521
5522 2003-12-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5523
5524         * sim/ucsim/hc08.src/inst.cc,
5525         * sim/ucsim/hc08.src/hc08mac.h: fixed some problems with CC flag bits and
5526         carries from x to h
5527         * src/hc08/gen.c (aopAdrStr): fixed problem with 16 bit immediate
5528         * src/hc08/gen.c (XAccRsh): fixed problem with right shift
5529         * device/include/stdarg.h: fixed varargs for hc08
5530         * device/lib/Makefile.in,
5531         * device/lib/hc08/Makefile,
5532         * device/lib/hc08/_mulint.c,
5533         * device/lib/hc08/_mullong.c: fixed some endian problems
5534
5535 2003-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5536
5537         * sdcc/src/mcs51/gen.c (genMultOneByte): help peephole 105
5538         * sdcc/src/mcs51/peeph.def: added peephole 186.e array access in code space
5539         * device/lib/_gptrget.c,
5540         * device/lib/_gptrput.c: P2 not used any more (related to #850747, #785979)
5541
5542 2003-11-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5543
5544         * src/SDCClrange.c (findNextUseSym, rlivePoint): fixed bug #849795
5545         * src/SDCCast.c (astErrors): fixed bug #846007
5546         * src/SDCCsymt.c (checkFunction): fixed follow-up bug on bug #846007
5547
5548 2003-11-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5549
5550         * src/SDCCast.c (decorateType): disabled a transformation I added in
5551         revision 1.188 (access to fields of a structure at an absolute address);
5552         it breaks with bitfields, extern declarations, and gcse analysis.
5553         * src/SDCCopt.c (isLocalWithoutDef): if ADDRESS_OF applied to a symbol, it
5554         could be assigned through a pointer, so don't complain.
5555         * src/SDCCast.c (astErrors),
5556         * src/SDCCast.h,
5557         * src/SDCCglue.c (emitRegularMap): fixed bug #847813
5558
5559 2003-11-26 Vangelis Rokas <vrokas AT otenet.gr>
5560
5561         * src/pic16/main.c (_pic16_genIVT): fixed interrupt vector table
5562         * src/pic16/main.c (_pic16_genAssemblerPreamble): re-enabled the
5563         output of __config directives, since gpasm now supports them
5564         * src/pic16/main.c (_pic16_finaliseOptions): define MCU
5565         pre-processor macro, i.e. -DMCU=p18f452
5566         * src/pic16/ralloc.c: renamed packRegisters to pic16_packRegisters,
5567         and modified to handle 'cast' icode similarly to '=' icode
5568         * src/pic16/device.h (typedef struct PIC_device): added field
5569         'extMIface' to indicate that chip has external memory interface
5570         * src/pic16/device.c: added chips 18F248, 18F258, 18F448, 18F458,
5571         18F6520, 18F6620, 18F6680, 18F6720, 18F8520, 18F8620, 18F8680,
5572         18F8720
5573
5574 2003-11-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5575
5576         * src/SDCC.y (pointer): fixed bug #846006
5577         * support/Util/SDCCerr.c: made W_PTR_TYPE_INVALID message clearer
5578         * src/SDCCast.c (decorateType): fixed bug #846009
5579         * src/ds390/peeph.def,
5580         * src/ds390/gen.c (genAnd, genOr),
5581         * src/mcs51/peeph.def,
5582         * src/mcs51/gen.c (genAnd, genOr): fixed bug #846777
5583
5584 2003-11-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5585
5586         Fixed several common-sub-expression bugs (#772861, #768380, & #755323)
5587         * src/SDCCdflow.c
5588         * src/SDCCcse.c
5589         * src/SDCCcse.h
5590         * src/SDCCBBlock.h
5591         * src/SDCCBBlock.c
5592
5593 2003-11-23 Klaus Flittner <klaus_flittner AT gmx.de>
5594
5595         fixed bug #845089
5596         * src/SDCCbitv.h,
5597         * src/SDCCbitv.c: added function to free a bitvector
5598         * src/SDCClrange.h,
5599         * src/SDCClrange.c: added function to recompute the liveranges
5600         * src/avr/ralloc.c,
5601         * src/ds390/ralloc.c,
5602         * src/hc08/ralloc.c,
5603         * src/mcs51/ralloc.c,
5604         * src/pic/ralloc.c,
5605         * src/pic16/ralloc.c,
5606         * src/xa51/ralloc.c,
5607         * src/z80/ralloc.c: recompute the liveranges after register packing
5608
5609 2003-11-21 Klaus Flittner <klaus_flittner AT gmx.de>
5610
5611         * src/SDCCloop.c (newInduction): fixed bug #845630
5612
5613 2003-11-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5614
5615         * src/SDCCsymt.c (compareTypesExact): disabled debugging output
5616         inadvertantly left behind from my 2003-11-12 change
5617
5618 2003-11-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5619
5620         Updated headers I neglected to commit yesterday.
5621         * src/SDCClrange.h,
5622         * src/SDCCicode.h
5623
5624 2003-11-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5625
5626         * src/SDCCcse.c (algebraicOpts): fixed bug #773153
5627         * src/SDCClrange.c (rlivePoint): need to mark IC_RESULT used if POINTER_SET op
5628         * src/SDCCopt.c (eBBlockFromiCode),
5629         * src/SDCClrange.c (hashiCodeKeys, sequenceiCode, computeLiveRanges): seperated
5630         the creation of the key hash table from the sequencing so it can be used
5631         earlier (for some GCSE bug fixes still pending)
5632
5633 2003-11-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5634
5635         * src/mcs51/gen.c (genPlus): generate shortcut for adding 0xab00
5636         * support/regression/tests/addsub.c: testing genPlus shortcut
5637
5638 2003-11-15  Borut Razem <borut.razem AT siol.net>
5639
5640         * src/SDCCmain.c: fixed bug #841645: -MM command line option passed to sdcpp
5641
5642 2003-11-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5643
5644         * src/SDCCcse.c (cseBBlock): fixed bug #527779
5645         * src/SDCCcse.c (deleteGetPointers): rewrote so that the set
5646         ordering is immaterial.
5647         * src/SDCCdflow.c (mergeInExprs): fixed bug #587536
5648
5649 2003-11-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5650
5651         * src/SDCCicode.c (geniCodeAddressOf): fixed part of bug #840381
5652         * src/SDCCopt.c (replaceRegEqv, isLocalWithoutDef): fixed other part
5653         (SIGSEV) of bug #840381
5654         * src/SDCCmain.c (linkEdit, assemble): fixed bug #841606 (don't
5655         unlink new file before rename if new and old filenames are the same)
5656
5657 2003-11-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5658
5659         * src/mcs51/main.c: started fixing bug #737001 (SDCC not clearing
5660         uninitialized variables) for the mcs51. Set environment variable
5661         SDCC_GENRAMCLEAR to test.
5662         xdata initialization slightly shorter
5663
5664 2003-11-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5665
5666         * src/SDCCsymt.h,
5667         * src/SDCCsymt.c (addSymTypeChain, compareTypesExact): fixed bugs
5668         #838241 & 780691 (basicly the same bug)
5669         * src/SDCCBBlock.c (iCode2eBBlock): fixed bug #840148
5670         * src/SDCCBBlock.c (iCodeFromeBBlock): fixed bug #840162
5671
5672 2003-11-11 Bernhard Held <bernhard AT bernhardheld.de>
5673
5674         * src/SDCCmain.c (linkEdit): "fix" #834252
5675
5676 2003-11-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5677
5678         * src/SDCCast.c (removePostIncDecOps, removePreIncDecOps),
5679         * src/SDCCast.h,
5680         * src/SDCC.y: fixed bug #819403
5681
5682 2003-11-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5683
5684         * support/regression/fwk/lib/testfwk.c: printn is recursive and thus needs
5685         the reentrant attribute.
5686         * src/hc08/gen.c (genPackBits): added missing stack readjustment
5687         * sim/ucsim/hc08.src/inst.cc (inst_mov): fixed bugs with mov instruction
5688         simulation
5689         * src/SDCCast.c (decorateType): fixed bug with storage class not being
5690         updated during pointer dereference; f.e. ~(((char *)1)*) was being
5691         erroneously reduced to a literal.
5692         * src/hc08/ralloc.c (packRegisters, rematStr),
5693         * src/hc08/gen.c (aopForRemat): allow literals to be rematerialized in
5694         some cases
5695
5696 2003-11-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5697
5698         * src/mcs51/main.c: fixed bug #838385. Thanks to Josef Pavlik for finding and fixing
5699         * doc/sdccman.lyx: changed from 'article' to 'book'
5700         * doc/Makefile: readded test_suite_spec and cdbfileformat
5701
5702 2003-11-08 Bernhard Held <bernhard AT bernhardheld.de>
5703
5704         * device/include/stdlib.h: include malloc.h to comply with ANSI
5705         * support/regression/tests/malloc.c: include stdlib.h instead of malloc.h
5706
5707 2003-11-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5708
5709         * doc/Makefile: sdccman.pdf should build with correct references (more info in commit msg)
5710         * doc/clean.mk: also remove *.out files
5711         * doc/sdccman.lyx: some additions, larger top/bottom margins
5712
5713 2003-11-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5714
5715         * src/SDCC.y: fixed bug #837365
5716         * support/regression/tests/bitopcse.c
5717         * src/hc08/gen.c (genPointerGet): Don't assume pointer operand is
5718         a symbol (might be valop instead)
5719         * device/lib/Makefile.in: added errno.c to HC08SOURCES
5720         * device/lib/clean.mk: added hc08 to the cleaning list
5721
5722 2003-11-04  Borut Razem <borut.razem AT siol.net>
5723
5724         * configure, configure.in, sdcc_vc_in.h, sdcconf_in.h: reverted changes,
5725           made 2003-11-04
5726         * support/Util/NewAlloc.c, as/hc08/lklibr.c, as/mcs51/lklibr.c,
5727           as/z80/aslist.c, as/z80/assym.c: removed inclusion of nonstandard malloc.h;
5728           malloc is declared in standard stdlib.h
5729
5730 2003-11-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5731
5732         * device/lib/hc08/Makefile: need to clean .rel not .o files
5733         * src/hc08/gen.c (genDjnz): can't use djnz with extended addressing mode
5734
5735 2003-11-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5736
5737         * src/port.h,
5738         * src/hc08/main.c,
5739         * src/mcs51/main.c,
5740         * src/ds390/main.c,
5741         * src/z80/main.c,
5742         * src/avr/main.c,
5743         * src/pic/main.c,
5744         * src/pic16/main.c,
5745         * src/xa51/main.c: added hasExtBitOp & oclsExpense functions to ports
5746         * src/SDCCicode.c: changed several IS_FARSPACE tests to isOclsExpensive
5747         tests (which uses the port's oclsExpense function)
5748         * src/SDCC.y,
5749         * src/SDCCast.c,
5750         * src/SDCCicode.c,
5751         * src/hc08/gen.c,
5752         * src/ds390/gen.c,
5753         * src/mcs51/gen.c: added support for the SWAP iCode (RFE #834167)
5754
5755 2003-11-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5756
5757         * src/SDCCcse.c (ifxOptimize),
5758         * src/SDCClabel.c (labelIfx, deleteIfx): When the condition to
5759         an IFX iCode is volatile, convert to DUMMY_READ_VOLATILE instead
5760         deleting the IFX iCode.
5761         * src/hc08/ralloc.c: reduced unneeded slocs
5762         * src/hc08/gen.c: fixed bug in asmopToBoolean
5763
5764 2003-11-04  Borut Razem <borut.razem AT siol.net>
5765
5766         * configure, configure.in, sdcc_vc_in.h, sdcconf_in.h,
5767           support/Util/NewAlloc.c, as/hc08/lklibr.c, as/mcs51/lklibr.c,
5768           as/z80/aslist.c, as/z80/assym.c: decision to include malloc.h
5769           transferred to configure
5770
5771 2003-11-03 Bernhard Held <bernhard AT bernhardheld.de>
5772
5773         Use headers defined in the C[++] standards:
5774         * sim/ucsim/gui.src/serio.src/fileio.cc
5775         * sim/ucsim/gui.src/serio.src/frontend.cc
5776         * sim/ucsim/gui.src/serio.src/main.cc
5777         * sim/ucsim/gui.src/serio.src/posix_signal.cc
5778         * support/Util/NewAlloc.c
5779         * as/hc08/lklibr.c
5780         * as/mcs51/lklibr.c
5781         * as/z80/aslist.c
5782         * as/z80/assym.c
5783
5784 2003-11-03  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5785
5786         * Added MSVC projects for hc08 assembler and linker:
5787         all.dsp, config.dsp, sdcc.dsw, /as/hc08/as_hc08.dsp,
5788         /as/hc08/link_hc08.dsp
5789
5790 2003-11-03 Martin Helmling <Martin.Helmling AT octo-soft.de>
5791
5792         * debugger/mcs51/cmd.c: allows filename starting with digit(+ some debug)
5793
5794 2003-11-02 Bernhard Held <bernhard AT bernhardheld.de>
5795
5796         * src/SDCCmain.c (linkEdit): "fixed" again bug #833605
5797
5798 2003-11-01 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5799
5800         * src/mcs51/main.c: xdata initialization is 13 bytes shorter now
5801
5802 2003-10-31  Borut Razem <borut.razem AT siol.net>
5803
5804         * support/cpp2/cpplib.h,
5805           support/cpp2/cpplib.c,
5806           support/cpp2/cpplex.c,
5807           support/cpp2/cppinit.c: introduced #pragma preproc_asm [ + | - ]
5808           to switch _asm block preprocessing on / off. Default is
5809           #pragma preproc_asm +
5810
5811 2003-10-31  Borut Razem <borut.razem AT siol.net>
5812
5813         * support/cpp2/cpplex.c: Fixed _WIN32 problem with CR-CR-LF sequences
5814           when outputting comment blocks (when executed with -C option) and
5815           _asm (SDCPP specific) blocks
5816
5817 2003-10-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5818
5819         * as/hc08/lkrloc.c (relr): Fixed ihx output, fixed lastAreaIndex warning
5820
5821 2003-10-31 Klaus Flittner <klaus_flittner AT gmx.de>
5822
5823         * src/SDCCcse.c (updateSpillLocation): fixed bug #808027
5824
5825 2003-10-31 Bernhard Held <bernhard AT bernhardheld.de>
5826
5827         * src/SDCCmain.c (linkEdit): "fixed" bug #833605
5828         * src/SDCCast.c (decorateType): fixed bug #832664
5829
5830 2003-10-31  Borut Razem <borut.razem AT siol.net>
5831
5832         * support\cpp2\cpplex.c: fixed for SDCPP:
5833           comments(when executed with -C option) and _asm blocks
5834           were included even if they where in skipped #if block.
5835           Applied solution from GCC cpp 3.3.2
5836
5837 2003-10-31  Borut Razem <borut.razem AT siol.net>
5838
5839         * src/SDCC.lex: sdcc now understands both formats:
5840           '# <line_number> <file_name>' and
5841           '#line <line_number> <file_name>'
5842         * support/cpp2/cppmain.c: sdcpp now generates the standard
5843           '# <line_number> <file_name>' instead of former
5844           '#line <line_number> <file_name>'
5845
5846 2003-10-30  Borut Razem <borut.razem AT siol.net>
5847
5848         * support/cpp2/cpphash.h,
5849         * support/cpp2/cpplib.h
5850         * support/cpp2/cpplex.c,
5851         * support/cpp2/cppmain.c,
5852         * support/cpp2/cppinit.c: fixed bug #828015 - Syntax variation for _asm character constants
5853
5854 2003-10-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5855
5856         Fixed a number of problems revealed by bug #827883.
5857         * src/SDCCloop.c (loopInvariants): Spill location of the
5858         result operand should be recomputed if extracted from
5859         a loop. Also, don't extract assignments of an iTemp
5860         from a literal.
5861         * src/SDCCast.c (isConformingBody): loop reversal should
5862         not occur if the control variable is involved with a
5863         relational operator.
5864
5865 2003-10-28 Bernhard Held <bernhard AT bernhardheld.de>
5866
5867         * .version: bumped to 2.3.6 to reflect the big improvements
5868         made by Erik and Klaus. Thanks!
5869
5870 2003-10-28 Klaus Flittner <klaus_flittner AT gmx.de>
5871
5872         Replaced the livrange code.
5873         * src/SDCClrange.c: added new LR code
5874         * src/SDCCloop.c,
5875         * src/SDCCBBlock.h: removed remainig parts from old LR code
5876         * src/ds390/ralloc.c,
5877         * src/ds390/gen.c: minor fixes to make it work with new code
5878
5879 2003-10-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5880
5881         * as/hc08/asm.h,
5882         * as/hc08/lkrloc.c,
5883         * src/hc08/gen.c,
5884         * src/hc08/ralloc.c: Fix various warnings related to the hc08
5885         * src/SDCCicode.c (geniCodePreInc, geniCodePreDec): Fixed bug #829717
5886         (tweaked fix for bug #818696)
5887
5888 2003-10-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5889
5890         * src/z80/ralloc.c (joinPushes): Fixed bug #828742
5891
5892 2003-10-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5893
5894         * src/SDCCmain.c,
5895         * sdccconf_in.h: Fixed bug #828387 (--disable-hc08-port didn't work)
5896         * src/mcs51/gen.c (gencjneshort),
5897         * src/ds390/gen.c (gencjneshort): Made comparison with AOP_IMMD operand
5898         more efficient (per Scott Bronson's suggestion)
5899
5900 2003-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5901
5902         Extended the semantics of the critical keyword to include
5903         individual statements. See RFE #827755 and #799831
5904         * src/SDCC.y
5905         * src/SDCCicode.c
5906         * src/SDCCopt.c
5907         * src/SDCCast.c
5908         * support/Util/SDCCerr.c
5909         * support/Util/SDCCerr.h
5910         * src/mcs51/gen.c
5911         * src/ds390/gen.c
5912         * src/hc08/gen.c
5913
5914 2003-10-19  Borut Razem <borut.razem AT siol.net>
5915
5916         * src/SDCC.lex: fixed bug #825944 - defined yytext_ptr to make it compile with flex 2.5.31
5917
5918 2003-10-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5919
5920         * src/SDCCicode.c (geniCodePreInc, geniCodePreDec, ast2iCode):
5921         Fixed bug #818696
5922         * src/SDCCast.c (ast_print): Fixed --dumptree so that preincrement
5923         and predecrement operand is displayed
5924
5925 2003-10-13 Bernhard Held <bernhard AT bernhardheld.de>
5926
5927         * src/SDCCval.c (valMinus): fixed bug #826041
5928
5929 2003-10-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5930
5931         Some hc08 related updates that I missed earlier
5932         * sim/ucsim/stypes.h
5933         * support/regression/ports/hc08/spec.mk
5934
5935 2003-10-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5936
5937         New target "hc08" for the Motorola 68hc08 family of micros
5938
5939         * configure
5940         * configure.in
5941         * Makefile
5942         * src/hc08/*
5943         * src/SDCCmain.c
5944         * src/port.h
5945         * sim/ucsim/hc08.src/*
5946         * sim/ucsim/configure.in
5947         * src/ucsim/configure
5948         * sim/ucsim/packages_in.mk
5949         * as/hc08/*
5950         * as/Makefile
5951         * device/include/mc68hc908qy.h
5952         * device/lib/hc08/*
5953         * device/lib/Makefile.in
5954         * support/regression/ports/hc08/*
5955         * support/regression/Makefile
5956
5957 2003-10-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5958
5959         * src/z80/gen.c: fixed bug revealed by ast_constant_folding.c
5960         regression test
5961         * src/ds390/gen.c (genCast): fixed bug #821957
5962
5963 2003-10-13 Bernhard Held <bernhard AT bernhardheld.de>
5964
5965         * device/lib/logf.c: "fixed" overlay bug
5966         * support/regression/ports/host/spec.mk: added m library
5967         * support/regression/ports/mcs51-stack-auto/spec.mk: added float funcs
5968         * support/regression/tests/float_trans: added (for Eric)
5969
5970 2003-10-12 Bernhard Held <bernhard AT bernhardheld.de>
5971
5972         * src/mcs51/gen.c (genCpl): fixed bug
5973         http://sf.net/mailarchive/message.php?msg_id=6263915
5974
5975 2003-10-10 Bernhard Held <bernhard AT bernhardheld.de>
5976
5977         * src/SDCCast.c (decorateType): added extended constant folding
5978         * src/SDCCsymt.c (computeType): cleanup
5979         * src/SDCCval.c (valShift): minor optimization
5980         * support/regression/tests/ast_constant_folding.c: added
5981
5982 2003-10-09  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5983
5984         * src/SDCCmain.c: removed some unintended changes
5985
5986 2003-10-09  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5987
5988         * src/SDCCmain.c (setParseWithComma): fixed bug #816685
5989         * src/z80/gen.c: fixed part of bug #817589
5990         * src/SDCCsymt.c (checkFunction): fixed bug #817895
5991
5992 2003-10-08 Bernhard Held <bernhard AT bernhardheld.de>
5993
5994         Replaced cast (void **) with (void *) to avoid gcc 3 warning:
5995         * src/SDCCcflow.c
5996         * src/SDCCcse.c
5997         * src/SDCCdflow.c
5998         * src/SDCClabel.c
5999         * src/SDCClrange.c
6000         * src/SDCCmem.c
6001         * src/SDCCopt.c
6002         * src/SDCCpeeph.c
6003         * src/SDCCset.c
6004         * src/avr/ralloc.c
6005         * src/ds390/ralloc.c
6006         * src/izt/ralloc.c
6007         * src/mcs51/ralloc.c
6008         * src/pic/ralloc.c
6009         * src/pic16/ralloc.c
6010         * src/xa51/ralloc.c
6011         * src/z80/ralloc.c
6012         * src/z80/gen.c: removed unused label "release:"
6013
6014 2003-10-06  Borut Razem <borut.razem AT siol.net>
6015
6016         * src/SDCC.lex: removed definition of unused variables
6017           save_optimize and save_options
6018
6019 2003-10-06 Bernhard Held <bernhard AT bernhardheld.de>
6020
6021         * clean.mk: removed '=' in "-maxdepth=1"
6022         * src/SDCCloop.c: replace LRKLAUS with SDCC_LRKLAUS
6023         * src/SDCClrange.c: replace LRKLAUS with SDCC_LRKLAUS
6024
6025 2003-10-06  Borut Razem <borut.razem AT siol.net>
6026
6027         * src/SDCC.lex, src/SDCC.lex: use dbuf for "_asm" definitions;
6028           my_unput() replaced by unput()
6029
6030 2003-10-05 Bernhard Held <bernhard AT bernhardheld.de>
6031
6032         * src/SDCCloop.c (assignmentsToSym, loopInduction): cast argument of
6033         setToNull() to (void *) to avoid gcc3.x's warning: "dereferencing
6034         type-punned pointer will break strict-aliasing rules"
6035         Old LR behaviour is again default; Klaus' LR can be choosen by
6036         defining the environment variable LRKLAUS
6037         * src/SDCCBBlock.h
6038         * src/SDCCloop.c
6039         * src/SDCClrange.c
6040         * src/ds390/ralloc.c (spillThis): applied Klaus' patch
6041         * clean.mk: fixed removal of files in bin/CVS/
6042         * device/lib/clean.mk: fixed removal of directories small and large
6043         * support/Util/SDCCerr.c: changed W_INT_OVL to ERROR_LEVEL_PEDANTIC
6044         * src/SDCCicode.c,
6045         * src/SDCCval.c: removed superflous test for pedantic
6046
6047 2003-10-05  Borut Razem <borut.razem AT siol.net>
6048
6049         * src/SDCC.lex, support/Util/SDCCerr.c, sdcc/support/Util/SDCCerr.h:
6050           Fixed bug #816692: introduced new ERROR_LEVEL_PEDANTIC warning
6051           message "unmatched #pragma SAVE and #pragma RESTORE"
6052
6053 2003-10-04  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6054
6055         * doc/sdccman.lyx: various additions and updates (interrupts, inline
6056           assembly, critical functions, atomic, nojtbound)
6057
6058 2003-10-04 Bernhard Held <bernhard AT bernhardheld.de>
6059
6060         Applied liferange patch from Klaus Flittner <klaus_flittner AT gmx.de>
6061         * src/SDCCBBlock.h
6062         * src/SDCCloop.c
6063         * src/SDCCloop.h
6064         * src/SDCClrange.c
6065
6066 2003-10-03  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6067
6068         * src/z80/gen.h,
6069         * src/z80/gen.c (aopOp, aopGet, aopPut, genDummyRead),
6070         * src/mcs51/gen.h
6071         * src/mcs51/gen.c (aopOp, aopGet, aopPut, genDummyRead),
6072         * src/ds390/gen.h
6073         * src/ds390/gen.c (aopOp, aopGet, aopPut, genDummyRead),
6074         * src/SDCCicode.c (ast2iCode, geniCodeDummyRead): Fixed bug #663539
6075         * src/SDCCopt.c (killDeadCode): Fixed bugs #663539 & #816705
6076
6077 2003-10-02  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6078
6079         * src/z80/gen.c (genRet): fixed bug #524753
6080         * src/z80/gen.c (genCast): fixed internal error on cast from
6081         pointer to long
6082         * src/z80/gen.c (_saveRegsForCall, emitCall): adapted Johan's
6083         fix for bug #477835 to the z80
6084         * src/z80/gen.c (genZ80code, _vemit2, _emit2): added support
6085         for tracking iCodes in the peephole optimizer for z80
6086
6087 2003-10-01  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6088
6089         * src/SDCCicode.c (geniCodeJumpTable, geniCodeSwitch): fixed
6090         the other part of bug #814548
6091         * src/SDCCpeeph.c (labelInRange): fixed bug #814558
6092
6093 2003-09-30  Bernhard Held <bernhard AT bernhardheld.de>
6094
6095         * src/SDCCcse.c: fixed part of bug #814548
6096
6097 2003-09-28  Borut Razem <borut.razem AT siol.net>
6098
6099         * src/asm.c: rewrite of printILine() to use temporary file instead
6100           a pipe
6101         * src/xa51/main.c: commented out declaration of int rewinds
6102
6103 2003-09-27  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6104
6105         * src/SDCCicode.c (geniCodeJumpTable): Fixed bug #813206
6106
6107 2003-09-26  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6108
6109         * src/SDCCdflow.c (computeDataFlow): Fixed bug #810746
6110         * src/asm.c (printILine): Fixed bug #811015
6111
6112 2003-09-22  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6113
6114         *link/z80/lklibr.c, as/mcs51/lklibr.c: Improved memory allocation and
6115         freeing.
6116
6117 2003-09-21  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6118
6119         * src/z80/gen.c (setupToPreserveCarry): Fixed bug #796955
6120         * src/z80/gen.c (setupPair, genMovePairPair): Fixed setupPair
6121         to correctly handle general case of AOP_PAIRPTR
6122         * src/z80/gen.c (aopGet, aopPut): Generalized AOP_PAIRPTR handling
6123
6124 2003-09-21  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6125
6126         * src/mcs51/ralloc.c (fillGaps),
6127         * src/ds390/ralloc.c (fillGaps): fixed bug #810093 (yet another
6128         register positioning bug)
6129
6130 2003-09-21  Bernhard Held <bernhard AT bernhardheld.de>
6131
6132         * device/lib/_fsdiv.c: replaced (1<<31) by (1ul<<31)
6133
6134 2003-09-19  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6135
6136         * src/mcs51/gen.c (loadDptrFromOperand, genFarPointerGet,
6137         genCodePointerGet, genGenPointerGet, genFarPointerSet,
6138         genGenPointerSet): handle AOP_DPTR correctly when loading dptr
6139         (ralloc doesn't intentionally do this now, but perhaps later)
6140         * src/mcs51/ralloc.c (serialRegAssign, fillGaps),
6141         * src/ds390/ralloc.c (serialRegAssign, fillGaps): fixed some
6142         register positioning bugs (Fixed bug #762602 and #795325)
6143         * src/SDCCicode.c (geniCodeDerefPtr): Track output class correctly
6144         (Fixed bug #808779)
6145         * src/z80/gen.c: increased _vemit2's buffer[] to handle long
6146         lines that --i-code-in-asm generates
6147
6148 2003-09-18  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6149
6150         *link/z80/lklibr.c, as/mcs51/lklibr.c: Fixed Linux segfaults when
6151         trying to fclose a FILE* that was already closed.
6152
6153 2003-09-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6154
6155         * src/SDCCsymt.c (structElemType): fixed bug #808291 (members
6156         of const struct should be treated as if const themselves)
6157
6158 2003-09-18  Bernhard Held <bernhard AT bernhardheld.de>
6159
6160         * src/SDCCval.c (valPlus, valMinus): fixed bug #808337
6161
6162 2003-07-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6163
6164         * support/librarian/sdcclib.c: Generate correct offsets for libraries with
6165         Unix (/n) and DOS (/r/n) line terminations.
6166
6167 2003-09-17  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6168
6169         * src/SDCCopt.c (cnvFromFloatCast, cnvToFloatCast): fixed
6170         bug #613775
6171
6172 2003-09-16  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6173
6174         * src/mcs51/gen.c (genFunction, genEndFunction),
6175         * src/ds390/gen.c (genFunction, genEndFunction): Moved save
6176         and restore of EA so that stack offsets to parameters are
6177         correct when using both critical and reentrant/stack-auto.
6178         * src/z80/gen.c (aopOp): removed erroneous assertion about sloc
6179         size (can be triggered in error if sloc is shared between
6180         different sized objects)
6181         * device/include/float.h: fixed macros to explicitly use
6182         unsigned long where needed
6183
6184 2003-09-15  Bernhard Held <bernhard AT bernhardheld.de>
6185
6186         Feature req. 799831: added code to allow nesting of critical functions
6187         * src/mcs51/gen.c (genFunction, genEndFunction)
6188         * src/ds390/gen.c (genFunction, genEndFunction)
6189
6190 2003-09-14  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6191
6192         * src/SDCCsymt.c (sclsFromPtr),
6193         * src/SDCCsymt.h,
6194         * src/SDCCast.c (decorateType): fixed bug #462971. Also, better
6195         support for standard C idiom of memory mapped variables; for
6196         example, *((xdata int*)0x1234) = 1 is now internally equivalent
6197         to xdata int at 0x1234 tempvar = 1.
6198         * sim/ucsim/z80.src/inst_xd.cc: fixed bug #805483 with patch
6199         provided by Akiya ISHIDA
6200
6201 2003-09-13  Bernhard Held <bernhard AT bernhardheld.de>
6202
6203         * src/SDCCval.c (cheapestVal): reenabled to reduce int to char
6204         * src/SDCCval.c (constVal): added reduction from int to char
6205         * src/SDCCval.c (valMult, valDiv): fixed sign handling
6206         * src/SDCCval.c (valShift): fixed after change of cheapestVal()
6207         * src/SDCCval.c (valCompare): fixed EQ_OP and NE_OP; they have
6208         to ignore the sign
6209         * support/regression/tests/shifts.c: fixed
6210
6211 2003-09-13  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6212
6213         * src/z80/gen.c (genXor): Fixed bug #805445
6214
6215 2003-09-12  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6216
6217         Fixed bug #621531 (const & volatile confusion in the type chain).
6218         DCL_PTR_CONST, DCL_PTR_VOLATILE, & IS_PTR_CONST now exclusively
6219         refer to the const or volatile state of the pointer itself.
6220
6221         * src/SDCCast.c
6222         * src/SDCCglue.c
6223         * src/SDCCicode.c
6224         * src/SDCCsymt.c
6225         * src/SDCCval.c
6226         * src/SDCC.y
6227         * src/SDCCsymt.h
6228         * src/pic/gen.c
6229         * src/pic/ralloc.c
6230         * src/pic16/gen.c
6231         * src/pic16/ralloc.c
6232         * support/regression/tests/const.c
6233
6234 2003-09-10  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6235
6236         When checking for duplicated modules, use absolute paths
6237         instead of relative paths.  Files changed:
6238
6239         * as/mcs51/lklib.c
6240         * link/z80/lklib.c
6241
6242 2003-09-09  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6243
6244         * src/SDCCicode.c (geniCodeLogic): fixed bug #797572
6245
6246 2003-09-07  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6247
6248         * device/include/string.h: added size_t typedef, changed
6249         prototypes to use size_t, eliminated separate reentrant and
6250         non-reentrant declarations, added _memmove declaration
6251         * device/lib/_memcpy.c: changed to use size_t instead of int,
6252         changed /4 to >>2 to avoid division library call
6253         * device/lib/_memcmp.c,
6254         * device/lib/_memset.c,
6255         * device/lib/_strncat.c,
6256         * device/lib/_strncpy.c,
6257         * device/lib/_strncmp.c: changed to use size_t instead of int
6258         * device/lib/_memmove.c: new file (fixed bug #772294)
6259         * device/lib/Makefile.in: added _memmove.c
6260         * device/lib/z80/asm_strings.s: fixed bug #772290
6261         * support/regression/tests/bitfields.c: attempt to fix host assertion
6262         failure on amd64-unknown-linux2.2
6263
6264 2003-09-06  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6265
6266         * src/z80/gen.c (aopPut, spillPairReg): fixed bug #800998
6267         * src/z80/gen.c (genFunction, genEndFunction): fixed "bug" #774700
6268         * as/z80/asmain.c (main): fixed bug #801766
6269
6270 2003-09-06  Bernhard Held <bernhard AT bernhardheld.de>
6271
6272         * src/SDCCicode.c (ast2iCode): fixed differences in iCode with different
6273         compilers
6274
6275 2003-09-05  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6276
6277         * src/SDCCast.c (isConformingBody): fixed loop reversal bug
6278         reported in bug #800609
6279
6280 2003-09-04  Vangelis Rokas <vrokas AT otenet.gr>
6281
6282         * Top header beautifications in src/pic16 directory:
6283           device.c, device.h, gen.c, gen.h, genarith.c, glue.c, pcode.c,
6284           pcodeflow.c, pcodeflow.h, pcode.h, pcodepeep.c, pcoderegs.c,
6285           pcoderegs.h, ralloc.c, ralloc.h
6286         * main.c: added top header and GPL license notice
6287         * pcode.c: fixed the if-conditional warning
6288
6289 2003-09-04  Bernhard Held <bernhard AT bernhardheld.de>
6290
6291         * device/lib/_mullong.c: replaced int by short for gcc
6292
6293 2003-08-31  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6294
6295         * src/SDCCpeeph.c (notVolatile, notVolatileVariable): handle IFX
6296         and JUMPTABLE iCodes properly now (worked by accident before)
6297         * src/mcs51/gen.c (leftRightUseAcc),
6298         * src/ds390/gen.c (leftRightUseAcc): handle IFX and JUMPTABLE
6299         iCode properly now. Use getSize instead of nRegs since a & b
6300         aren't part of the nRegs tally.
6301
6302 2003-08-31  Vangelis Rokas <vrokas AT otenet.gr>
6303
6304         * src/pic16/main.c: corrected offsets of interrupt vectors in _pic16_genIVT()
6305         * src/pic16/pcode.c: fix to disable inserting BANKSEL directive
6306           before instructions that use the _STATUS register
6307
6308 2003-08-31  Bernhard Held <bernhard AT bernhardheld.de>
6309
6310         * src/mcs51/gen.c (freeAsmop): fixed off by one in stack offset (AOP_STK)
6311         * src/mcs51/gen.c (genNearPointerSet): added missing opcode for
6312         fetching of the pointer
6313         * src/mcs51/gen.c (genNearPointerGet): added reuse of PREG,
6314         copied from genNearPointerSet()
6315         * src/mcs51/gen.c (genNearPointerGet): don't pop r0/r1, if RESULTONSTACK
6316         * src/mcs51/gen.c: changed order of freeAsmop(left/right/result)-calls.
6317         If they pop r0/r1 they must be called in the opposite order than aopOp().
6318         * device/lib/_mullong.c: fixed for "--model-large --int-long-reent"
6319         (resp. --stack-auto), prepared for --xstack
6320
6321 2003-08-28  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6322
6323         * doc/sdccman.lyx: reverted tables to those in cvs 1.64
6324
6325 2003-08-28  Bernhard Held <bernhard AT bernhardheld.de>
6326
6327         * device/lib/_startup.c: quick & dirty fix for ds390/ds400;
6328         these ports have their own __sdcc_external_start()
6329
6330 2003-08-26  Bernhard Held <bernhard AT bernhardheld.de>
6331
6332         pic patch provided by Slade Rich <slade_rich AT yahoo.com>
6333         * src/pic/glue.c (pic14printPublics): fixed bug introduced when symbol
6334         type for bits was changed. It resulted in bit variables becoming
6335         global, which is not permitted in PIC 14 assembly output.
6336
6337 2003-08-23  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6338
6339         * doc/sdccman.lyx: various additions and updates. Rearranged sections
6340
6341 2003-08-22  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6342
6343         Z80 and MCS51 linkers complaint if a public symbol is defined
6344         in more than one library module:
6345
6346         * as/mcs51/lklib.c
6347         * link/z80/lklib.c
6348         * as/mcs51/Makefile.in
6349
6350 2003-08-22  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6351
6352         A few small changes that speed up the peephole optimizer.
6353
6354         * src/SDCCpeeph.c
6355
6356 2003-08-22  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6357
6358         Try to make the peephole optimizer smarter by maintaining
6359         an association between the assembly source code and the
6360         iCodes that originated them. Put this information to use
6361         with a new peephole rule condition "notVolatile" so that
6362         the rules can be aggressive yet still safe.
6363
6364         * src/SDCCpeeph.c
6365         * src/SDCCpeeph.h
6366         * src/mcs51/gen.c
6367         * src/mcs51/peeph.def
6368
6369 2003-08-20  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6370
6371         Fixed bug #741761
6372
6373         * src/mcs51/gen.c (aopForSym, leftRightUseAcc),
6374         * src/ds390/gen.c (aopForSym, leftRightUseAcc): preserve A and B
6375         if the left or right operand symbols have the accuse flag set.
6376
6377 2003-08-20  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6378
6379         Changed the type of the result of the ! (NOT) operator to char;
6380         previously it returned the same type as the source. This allows
6381         us to eliminate all the genFloatNot functions (all of its target
6382         implementations were very buggy) since !float can use the same
6383         code as !long now.
6384
6385         * src/SDCCicode.c (ast2iCode): ! returns char
6386         * src/mcs51/gen.c (genNot, genNotFloat),
6387         * src/ds390/gen.c (genNot, genNotFloat),
6388         * src/z80/gen.c (genNot, genNotFloat),
6389         * src/pic/gen.c (genNot, genNotFloat),
6390         * src/pic16/gen.c (genNot, genNotFloat): eliminated genNotFloat
6391
6392 2003-08-19  Bernhard Held <bernhard AT bernhardheld.de>
6393
6394         pic patch provided by Slade Rich <slade_rich AT yahoo.com>
6395         1. Interrupt would not compile properly. Ensure PCLATH register is saved
6396            during interrupts. Ensure WSAVE is located at a shared bank address.
6397         2. Fixed page selection in some places
6398         3. Fixed BTFSS/C to where necessary use registers directly and not simply
6399            the registers name strings.
6400         4. Fixed "signed / unsigned compare" compiler warnings.
6401         5. The PIC port manages its own allocation of the general purpose
6402            registers, but makes no attempt to reuse them. As a result when
6403            compiling it soon runs out of general purpose registers. Some
6404            additional code was added to the files pcode.c and device.c to walk
6405            through the function call tree and rename the registers so that they
6406            get reused.
6407
6408         * src/pic/device.c
6409         * src/pic/gen.c
6410         * src/pic/glue.c
6411         * src/pic/pcode.c
6412         * src/pic/pcode.h
6413         * src/pic/ralloc.c
6414         * src/pic/ralloc.h
6415         * src/pic/genarith.c: Fixed problems with PIC 14 port in functions
6416         genPlus() & genMinus() when the result is the same as left or right
6417
6418 2003-08-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6419
6420         * src/z80/gen.c (isUnsplitable, fetchPairLong): fixed bug #770454
6421
6422 2003-08-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6423
6424         Made bitfield a distinct type from bit so that bitfields
6425         convert as per ANSI C and bits retain their traditional
6426         boolean style behaviour. Implemented bitfield support in
6427         the z80 port.
6428
6429         * src/SDCCsymt.h,
6430         * src/SDCCsymt.c,
6431         * src/SDCCast.c,
6432         * src/cdbFile.c,
6433         * src/mcs51/gen.c,
6434         * src/ds390/gen.c: bit v bitfield split
6435         * src/z80/gen.c: New support for bitfields
6436         * support/regression/tests/bitfields.c: reenabled z80,
6437         added more tests
6438
6439 2003-08-17  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6440
6441         Rules 246.x, 247.x relate to bitfields, the others speed up
6442         access to xdata mapped I/O devices.
6443
6444         * src/mcs51/peeph.def: added 26 peepholes 246.x - 248.x, 180.x
6445
6446 2003-08-16  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6447
6448         Cleaned up genPackBits and genUnpackBits and added two helper
6449         functions, emitPtrByteGet & emitPtrByteSet. Added optimizations
6450         for literal assignments in genPackBits (thanks to Frieder for
6451         reminding me).
6452
6453         * src/mcs51/gen.c
6454         * src/ds390/gen.c
6455
6456 2003-08-16  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6457
6458         Fixed bug #748310 (pointer to function type mishandled when the
6459         function name is omitted). Also fixed a SIGSEGV when a function
6460         attribute (reentrant, etc) is used on a non-function or on a
6461         function but misplaced before the parameter list.
6462
6463         * src/SDCC.y (abstract_declarator, abstract_declaractor2): fixed
6464         bug #748310
6465         * src/SDCC.y (declarator2_function_attributes): avoided SIGSEGV
6466         * support/Util/SDCCerr.h,
6467         * support/Util/SDCCerr.c: Added func attr misuse error msg
6468
6469 2003-08-13  Bernhard Held <bernhard AT bernhardheld.de>
6470
6471         Fixed bug #787649 by anonymous
6472         * src/SDCCglue.c (emitRegularMap): added emission of sloc for func ptr
6473         * src/ds390/gen.c (aopForSym): fixed func ptr in sloc
6474
6475 2003-08-14  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6476
6477         Fixed numerous bitfield problems.
6478
6479         * src/SDCC.y: More bitfield related error checking
6480         * src/SDCCsymt.h,
6481         * src/SDCCsymt.c (compStructSize): fixed bitfield offset calc
6482         * support/Util/SDCCerr.h,
6483         * support/Util/SDCCerr.c: Added & edited some bitfield err msgs
6484         * src/mcs51/gen.c (genPackBits, genUnpackBits): fixed mask bugs
6485         * src/ds390/gen.c (genPackBits, genUnpackBits): fixed mask bugs
6486         * support/regression/tests/bitfields.c: tests added
6487
6488 2003-08-13  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6489
6490         Made the constant following the "interrupt" keyword optional. If
6491         omitted, the function will not automatically be given an entry
6492         in the interrupt vector table (similar to #pragma NOIV, but
6493         less syntacticly kludgy). The interrupt number is also now
6494         range checked. Also fixed a bug in the high order bit example
6495         in the manual.
6496
6497         * src/SDCC.y
6498         * src/SDCCmem.c
6499         * src/SDCCglue.c
6500         * src/SDCCsymt.h
6501         * support/Util/SDCCerr.c
6502         * support/Util/SDCCerr.h
6503         * doc/sdccman.lyx
6504
6505 2003-08-13  Bernhard Held <bernhard AT bernhardheld.de>
6506
6507         * src/SDCCcse.c (algebraicOpts): fix bug converting op from value to type
6508         * src/SDCCicode.c (operandOperation): rewritten some ops
6509         (*, ==, unary_minus) to fix possible overflows and to accord with ANSI
6510         * src/SDCCsymt.c (computeType): literals are handled the same way as any
6511         other type
6512         * src/SDCCval.c (cheapestVal): removed, it doesn't accord with ANSI (can
6513         be re-activated by defining REDUCE_LITERALS)
6514         * src/SDCCval.c (constVal): fixed; hex and octal constants can be
6515         unsigned, but are signed by default
6516         * src/SDCCval.c (constVal): rearranged
6517         * src/SDCCval.c (valMod): preliminary fix
6518         * src/SDCCval.c (valCastLiteral): use TYPE_* types
6519         * support/regression/literalop.c: added, work in progress
6520
6521 2003-08-12  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6522
6523         Generate warnings for useless declarations like "char data;"
6524         that don't do what new users expect.
6525
6526         * src/SDCC.y
6527         * support/Util/SDCCerr.h
6528         * support/Util/SDCCerr.c
6529
6530 2003-08-09  Bernhard Held <bernhard AT bernhardheld.de>
6531
6532         * src/SDCCval.c (valMult): fix overflow detection of negative int
6533
6534 2003-08-07  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6535
6536         * src/z80/ralloc.c (joinPushes): made compatible with new signedness
6537
6538         Changes to support big endian targets:
6539
6540         * src/ports.h
6541         * src/SDCCglue.c
6542         * src/avr/main.c
6543         * src/ds390/main.c
6544         * src/izt/i186.c
6545         * src/mcs51/main.c
6546         * src/pic/main.c
6547         * src/pic16/main.c
6548         * src/xa51/main.c
6549         * src/z80/main.c
6550
6551 2003-08-06  Bernhard Held <bernhard AT bernhardheld.de>
6552
6553         * src/SDCCval.c (cheapestVal): changed behaviour to the same as constVal()
6554         * device/lib/time.c: fixed warning "integer overflow in expression"
6555
6556 2003-08-05  Bernhard Held <bernhard AT bernhardheld.de>
6557
6558         * src/SDCCval.c (cheapestVal, valueFromLit): use TYPE_* types
6559         * src/SDCCval.c (constVal): changed default to signed; hex and octal
6560         constants are unsigned; added recognition of "u" flag for unsigned
6561         * src/SDCCval.c (valMult): fixed signdness, added warning for overflow
6562         * src/SDCCval.c (valDiv, valMod): fixed signdness
6563         * src/SDCCicode.c (operandOperation): fixed critical typo; fixed
6564         signedness of modulo, left and right shift
6565         * support/Util/SDCCerr.c: added warning "integer overflow in expression"
6566         * support/Util/SDCCerr.h: added warning W_INT_OVL
6567         * src/SDCCast.c (decorateType): fixed gcc3.3 warning
6568         * src/SDCCast.c (ast_print): improved output of constants
6569
6570 2003-08-04  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6571
6572         Fixed some warnings when building with MSVC:
6573
6574         * as\mcs51\asdata.c
6575         * as\z80\asdata.c
6576         * as\mcs51\asm.h
6577         * as\z80\asm.h
6578         * link\z80\aslink.h
6579         * link\z80\lkdata.c
6580         * link\z80\lkeval.c
6581         * link\z80\lkgb.c
6582         * link\z80\lkihx.c
6583         * link\z80\lks19.c
6584         * link\z80\lksym.c
6585         * support\cpp2\cpplib.c
6586         * src\ds390\gen.c
6587         * src\mcs51\gen.c
6588
6589 2003-08-03  Bernhard Held <bernhard AT bernhardheld.de>
6590
6591         * src/SDCCast.c (constExprTree): fix bug #781827 by Carl Worth <cworth AT isi.edu>
6592
6593 2003-08-01  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6594
6595         * support\librarian\clean.mk: Do not remove Makefile.
6596         * support\librarian\Makefile: added.
6597
6598 2003-08-01  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6599
6600         Added librarian to MSVC build:
6601         * all.dsp
6602         * sdcc.dsw
6603         * support\librarian\librarian.dsp
6604
6605         'configure' not needed for librarian, removed:
6606         * support\librarian\configure
6607         * support\librarian\configure.in
6608         * support\librarian\config_in.h
6609         * support\librarian\Makefile.in
6610
6611         Hopefully these ones built the librarian and the rest of sdcc properly:
6612         * Makefile
6613         * Makefile.common.in
6614
6615         Messed up 'configure', so revert to previous version:
6616         * configure
6617         * configure.in
6618
6619 2003-07-31  Bernhard Held <bernhard AT bernhardheld.de>
6620
6621         * src/SDCCicode.c (operandOperation): 3. fix, this time for Alpha; ULONG has 64 bits
6622         there, while the mantissa of a double is "only" 53 bits wide.
6623
6624 2003-07-31  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6625
6626         Adding sdcclib to the build.  MSVC project coming soon.
6627         Files added/changed:
6628
6629         * support\librarian\clean.mk
6630         * support\librarian\configure
6631         * support\librarian\configure.in
6632         * support\librarian\config_in.h
6633         * support\librarian\Makefile.bcc
6634         * support\librarian\Makefile.in
6635         * support\librarian\sdcclib.c
6636         * Makefile.bcc
6637         * Makefile
6638         * Makefile.common.in
6639         * configure
6640         * configure.in
6641
6642 2003-07-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6643
6644         Linker now complaints if linked modules have conflicting options, for
6645         example, one compiled using --model-large and another one compiled with
6646         --model-small.  The following files were modified:
6647
6648         * as\mcs51\asdata.c
6649         * as\mcs51\aslink.h
6650         * as\mcs51\asm.h
6651         * as\mcs51\asmain.c
6652         * as\mcs51\asout.c
6653         * as\mcs51\i51pst.c
6654         * as\mcs51\lkdata.c
6655         * as\mcs51\lklibr.c
6656         * as\mcs51\lkmain.c
6657         * as\z80\asdata.c
6658         * as\z80\asm.h
6659         * as\z80\asmain.c
6660         * as\z80\asout.c
6661         * as\z80\z80pst.c
6662         * link\z80\aslink.h
6663         * link\z80\lkdata.c
6664         * link\z80\lklibr.c
6665         * link\z80\lkmain.c
6666         * src\SDCCglue.c
6667
6668 2003-07-28  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6669
6670         *link/z80/aslink.h, link/z80/lklibr.c, as/mcs51/aslink.h,
6671         as/mcs51/lklibr.c: Generate a warning when a library is not found.
6672
6673 2003-07-28  Bernhard Held <bernhard AT bernhardheld.de>
6674
6675         * src/z80/mappings.i: fix _mul[us][int,long] entries
6676
6677 2003-07-26  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6678
6679         *src/SDCCmain.c: do not search for crt0.o when using --nostdlib
6680
6681 2003-07-24  Bernhard Held <bernhard AT bernhardheld.de>
6682
6683         * src/SDCCicode.c (operandOperation): really fixed problem with bitops
6684         * support/regression/tests/bitopcse.c: added
6685         fixed warning:
6686         * src/avr/gen.c:
6687         * src/pic/gen.c:
6688         * src/pic16/gen.c:
6689         * src/z80/gen.c:
6690         * src/xa51/gen.c:
6691
6692 2003-07-24  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6693
6694         added support for new library format to z80, gbz80 linkers:
6695         *link/z80/aslink.h
6696         *link/z80/lklex.c
6697         *link/z80/lklib.c
6698         *link/z80/lklist.c
6699
6700 2003-07-24  Bernhard Held <bernhard AT bernhardheld.de>
6701
6702         * src/SDCCicode.c (operandOperation): fixed problem with bitops and 0xffffffff;
6703         after {double d = 0xffffffff; long l = d;} l will be 0x80000000 (LONG_MIN)
6704
6705 2003-07-23  Bernhard Held <bernhard AT bernhardheld.de>
6706
6707         added DUMMY_READ_VOLATILE:
6708         * src/SDCC.y:
6709         * src/avr/gen.c:
6710         * src/xa51/gen.c:
6711         * src/z80/gen.c:
6712         * src/pic/gen.c:
6713         * src/pic16/gen.c:
6714         * src/mcs51/gen.c:
6715         * src/ds390/gen.c:
6716         * src/SDCCcse.c (algebraicOpts): many improvements
6717         * src/SDCCcse.h: removed algebraicOpts()
6718         * src/SDCCicode.c (picDummyRead): added
6719
6720 2003-07-23  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6721
6722         * as/mcs51/lkmem.c: Changed message "Insufficient DRAM memory" to
6723         "Insufficient space in data memory".
6724
6725 2003-07-20  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6726
6727         * src/mcs51/gen.c: fixed bug #771358
6728         * src/z80/gen.c: fixed bug #759087
6729
6730 2003-07-20  Bernhard Held <bernhard AT bernhardheld.de>
6731
6732         * src/pic16/glue.c: minor cleanup by Vangelis
6733
6734 2003-07-19  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6735
6736         * device/include/regc515c.h: fixed #758477
6737         * device/lib/_gptrget.c: saving some cycles in generic pointer get
6738         * device/lib/_gptrput.c: saved a few bytes
6739         * my tab spacing is 8, yours too?)
6740         * device/lib/_ser.c: process RX bytes earlier than TX bytes
6741         * device/lib/serial.c: process RX bytes earlier than TX bytes
6742         * src/mcs51/gen.c(genGenPointerGet/Set): removed writing of type after postincrement
6743
6744 2003-07-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6745
6746         * src/z80/gen.c: fixed some right shift bugs (#772726 among them)
6747
6748 2003-07-17  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6749
6750     * link/z80/lklibr.c: fixed bug when there is a '.' in a library path.
6751
6752 2003-07-17  Bernhard Held <bernhard AT bernhardheld.de>
6753
6754         * device/lib/Makefile.in: bad fix, reverted to 1.43
6755
6756 2003-07-16  Bernhard Held <bernhard AT bernhardheld.de>
6757
6758         * device/lib/Makefile.in: added missing z80 object files
6759
6760 2003-07-14  Bernhard Held <bernhard AT bernhardheld.de>
6761
6762         * src/SDCCcse.c (algebraicOpts): CSE fun with &|^ and 0x00/0xff literals
6763         pic16 progress by Vangelis:
6764         * src/SDCCglobl.h:
6765         * src/SDCCmain.c:
6766         * src/pic/Makefile:
6767         * src/pic:
6768         * pic/Makefile:
6769         * pic16/device.c:
6770         * pic16/device.h:
6771         * pic16/gen.c:
6772         * pic16/gen.h:
6773         * pic16/genarith.c:
6774         * pic16/glue.c:
6775         * pic16/main.c:
6776         * pic16/pcode.c:
6777         * pic16/pcode.h:
6778         * pic16/pcodepeep.c:
6779         * pic16/peeph.def:
6780
6781 2003-07-13  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6782
6783     * src/SDCCmain.c, src/SDCCglobl.h: added option --no-std-crt0
6784
6785 2003-07-12  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6786
6787     * sdcc.dsw, all.dsp, link/z80/linkgbz80.dsp, as/z80/as-gbz80.dsp:
6788     added gbz80 build to MSVC project.
6789     * src/SDCCmain.c, src/SDCCglue.c, src/z80/main.c, src/z80/z80.dsp,
6790     link/z80/aslink.h, linkz80.dsp: cleaned up z80 and gbz80 asm files
6791     from 8051 stuff and setup so it links using a .lnk file.
6792
6793 2003-07-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6794
6795     * support/librarian/sdcclib.c: sdcc librarian.
6796     * as/mcs51/aslink.h, as/mcs51/lklib.c: Support for libraries created
6797     with sdcclib.
6798
6799 2003-07-03  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6800
6801     * as/mcs51/lkmain.c: properly handle extensions in function afile.
6802
6803 2003-07-02  Borut Razem <borut.razem AT siol.net>
6804
6805         * src/port.h, src/SDCCmain.c, src/pic/glue.h, src/pic/main.c,
6806         src/pic16/glue.h, sdcc/src/pic16/main.c, src/izt/i186.c,
6807         src/izt/tlcs900h.c, src/avr/main.c, src/ds390/main.c, src/mcs51/main.c,
6808         src/xa51/main.c, src/z80/main.c:
6809         virtualization of glue() function: each port has it's own glue function,
6810         which is accessed by do_glue function pointer in PORT.general structure
6811
6812 2003-07-01 Kevin Vigor <kevin AT vigor.nu>
6813
6814         * DS800C400 fun, improved ROM interface and tinibios.
6815
6816 2003-06-27 Kevin Vigor <kevin AT vigor.nu>
6817
6818         * More support for DS80C400. Now includes beginning of interface to ROM.
6819
6820 2003-06-25  Bernhard Held <bernhard AT bernhardheld.de>
6821
6822         * src/mcs51/gen.c (gencjneshort): fixed bug #760345
6823
6824 2003-06-20  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6825
6826         * as/mcs51/lkaomf51.c: Make sure the size of the last procedure is correct.
6827
6828 2003-06-19  Borut Razem <borut.razem AT siol.net>
6829
6830         * src/z80/main.c: fixed Z80 port again: missing -k library paths in linker command line
6831
6832 2003-06-19  Borut Razem <borut.razem AT siol.net>
6833
6834         * src/SDCCutil.h, src/SDCCutil.c, src/SDCCglobl.h, src/SDCCmain.c, src/z80/main.c:
6835         fixed Z80 port - crt0.o: cannot open.
6836
6837 2003-06-19  Bernhard Held <bernhard AT bernhardheld.de>
6838
6839         * support/Util/MySystem.c (merge_command): revert bad fix
6840
6841 2003-06-18  Borut Razem <borut.razem AT siol.net>
6842
6843         * src/SDCC.lex, src/SDCCmain.c: fixed some warnings, introduced with changes made 15.06.1003
6844
6845 2003-06-18  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6846
6847         * src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx:
6848         option --use-stdout sends errors to stdout instead of stderr.
6849
6850 2003-06-18  Bernhard Held <bernhard AT bernhardheld.de>
6851
6852         * support/Util/MySystem.c (merge_command): quick fix for Linux segfault with \"cmd\" arg
6853
6854 2003-06-15  Borut Razem <borut.razem AT siol.net>
6855
6856         * support/cpp2/sdcc.h: HAVE_DOS_BASED_FILE_SYSTEM defined for _WIN32
6857         * src/SDCC.lex: cloneXxx and copyAndFreeXxx functions for options and optimize stack handling
6858         * src/SDCCglobl.h, src/SDCCmain.c, src/ds390/main.c, src/mcs51/main.c, src/z80/main.c:
6859         fixed width array of pointers replaced with sets;
6860         multiple include and lib paths ared transferred to preprocessor and linker
6861         * src/SDCCset.c, src/SDCCset.h: added function setFromSetNonRev() and mergeSets()
6862         * src/SDCCsymt.c: reimplemented function inCalleeSaveList() by using sets instead
6863         fixed width array of pointers
6864         * src/SDCCutil.c, src/SDCCutil.h: added functions fputStrSet(), appendStrSet(), joinStrSet();
6865         removed functions addToList(), join(), joinn(), pathCharsEquivalent(), pathCharTransform(),
6866         fixupPath(), getPathDifference()
6867         * src/ds390/gen.c, src/mcs51/gen.c: reimplemented function  inExcludeList() by using sets instead
6868         fixed width array of pointers
6869
6870 2003-06-11  Bernhard Held <bernhard AT bernhardheld.de>
6871
6872         * src/pic16/ralloc.c: fix warnings
6873         * src/pic16/pcode.c: fix warning
6874
6875 2003-06-10  Scott Dattalo  <scott AT dattalo.com>
6876
6877          Scott D. for Vangelis Rokas (vrokas AT otenet.gr). I (scott) don't
6878         know all the details, but essentially this set of changes enable
6879         the pic16 port to generate movff instructions and generate assembler
6880         directives,
6881         * src/SDCCmain.c:
6882         * src/pic16/gen.c:
6883         * src/pic16/glue.c:
6884         * src/pic16/pcode.c:
6885         * src/pic16/device.c:
6886         * src/pic16/main.c:
6887         * src/pic16/pcode.h:
6888         * src/pic16/pcoderegs.c:
6889         * src/pic16/ralloc.c:
6890         * src/pic16/ralloc.h:
6891
6892 2003-06-08  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6893
6894         * support/Util/SDCCerr.c, src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx:
6895         added option --vc, so sdcc errors and warnings are compatible with
6896         Microsoft Visual Studio.
6897
6898 2003-06-07  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6899
6900         * device/lib/_atof.c, device/lib/Makefile.in, device/include/stdlib.h,
6901           device/lib/libfloat.lib: added atof function.
6902
6903 2003-06-04  Bernhard Held <bernhard AT bernhardheld.de>
6904
6905         * doc/sdccman.lyx: updated to Lyx 1.3
6906         * doc/cdbfileformat.lyx: updated to Lyx 1.3
6907         * doc/test_suite_spec.lyx: updated to Lyx 1.3
6908         * doc/Makefile: added fix for the \tabularnewline problem, thanks to Jesus
6909
6910 2003-06-03  Bernhard Held <bernhard AT bernhardheld.de>
6911
6912         * src/SDCCpeeph.c: separate peepRules2pCode() for pic16 by "Vangelis Rokas" <vrokas AT otenet.gr>
6913
6914 2003-06-02  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6915
6916         * doc/sdccman.lyx: cvs revision keywords, passing pdf information in latex preamble,
6917           additions to the "related tools/documentation" section
6918
6919 2003-06-02  Bernhard Held <bernhard AT bernhardheld.de>
6920
6921         * src/SDCCglue.c (tempfileandname): added check for missing TMP/TEMP/TMPDIR variable
6922
6923 2003-05-29  Bernhard Held <bernhard AT bernhardheld.de>
6924
6925         * src/pic/device.c: added 16F819, patch by "David I. Lehn" <dlehn AT vt.edu>
6926         * src/SDCCcse.c (algebraicOpts): fixed "c * 1"
6927
6928 2003-05-28  Bernhard Held <bernhard AT bernhardheld.de>
6929
6930         * doc/sdccman.lyx: fix double dash and other minor things
6931         * doc/Makefile: fix double dash
6932
6933 2003-05-28  Karl Bongers(patches from Martin Helmling)
6934         * debugger/mcs51/sdcdb.c,cmd.c,break.c and .h files. Martin adds
6935           condition and ignore commands.
6936
6937 2003-05-28  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6938
6939         * doc/sdccman.lyx: Changes all over, index improved, smaller margins. The manual
6940           is in parts still quite out of date, I did changes as far as I felt makes sense
6941           for a non-native english speaker.
6942           Please feel free to add to the manual or to correct my changes.
6943         * doc/Makefile: undid touching the date of intermediate tex files.
6944
6945 2003-05-26  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6946
6947         * doc/sdccman.lyx: Manual has an index now
6948
6949 2003-05-25  Bernhard Held <bernhard AT bernhardheld.de>
6950
6951         Finalize muluint/mulsint and mululong/mulslong merging:
6952         * device/lib/_mulint.c
6953         * device/lib/_mullong.c
6954         * device/lib/gbz80/mul.s
6955         * device/lib/gbz80/stubs.s
6956         * device/lib/z80/mul.s
6957         * device/lib/z80/stubs.s
6958         * src/SDCCsymt.c (initCSupport)
6959
6960 2003-05-25  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6961
6962         * as/mcs51/lkaomf51.c: Address space 'z' was missing.
6963         * src/avr/avr.dsp, src/ds390/ds390.dsp, src/mcs51/mcs51.dsp,
6964           src/pic/pic.dsp, src/pic16/pic16.dsp, src/xa51/xa51.dsp,
6965           src/x80/z80.dsp: peep.rul is bigger now, so /Zm1000 is used
6966           instead of /Zm500.
6967
6968 2003-05-25  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6969
6970         * src/mcs51/peeph.def: added rules 244.x, 245.x. Although they pass
6971           the regression tests I'm not brave enough to enable 245.b, 245.c
6972         * doc/sdccman.lyx: added latex preamble for hyperref package.
6973           Using pdflatex this will give you a hyperlinked pdf file with
6974           bookmarks. (prepend '%' before /usepackage if this breaks something)
6975
6976 2003-05-24  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6977
6978          * doc/sdccman.lyx: updated information about .adb files (fixed bug 742649)
6979
6980 2003-05-22  Bernhard Held <bernhard AT bernhardheld.de>
6981
6982         * src/pic16/pcode.c (pic16_get_op_from_instruction): fixed a gcc 3.x warning
6983
6984 2003-05-21    <johan AT balder>
6985
6986         * src/SDCCglue.c (printIval): fixed bug #739934
6987
6988 2003-05-19  Bernhard Held <bernhard AT bernhardheld.de>
6989
6990         Applied patch from bug 737905 (renamed yylineo to mylineno):
6991         * src/altlex.c
6992         * src/SDCCast.c
6993         * src/SDCglobl.h
6994         * src/SDCC.lex
6995         * src/SDCCsymt.c
6996         * src/SDCCval.c
6997         * src/pic16/pcode.c: Cleaned warnings
6998         * src/pic16/pcodeflow.c: Cleaned warnings
6999         * src/pic16/pcoderegs.c: Cleaned warnings
7000
7001 2003-05-19  Scott Dattalo  <scott AT dattalo.com>
7002
7003         * src/pic16/pcode.c: Cleaned warnings
7004         * src/pic16/pcodepeep.c: Cleaned warnings
7005         * src/pic16/ralloc.c: Cleaned warnings
7006
7007 2003-05-19  Bernhard Held <bernhard AT bernhardheld.de>
7008
7009         * doc/sdccman.lyx: fixed bug 739745
7010         * src/pic16/pcode.c (pic16_get_op): fixed warning on alpha
7011
7012 2003-05-18  Bernhard Held <bernhard AT bernhardheld.de>
7013
7014         * src/port.h: removed DEFAULT_PORT, it's not yet pic16 ;-)
7015         it can be defined with CFLAGS when running configure
7016         * src/SDCCmain.c: fixed compiling + linking with object files
7017
7018 2003-05-18  Vangelis Rokas (vrokas AT otenet.gr)
7019
7020         * configure.in: configure for pic16 port,
7021             added --disable-pic16-port
7022         * sdccconf_in.h: added macro OPT_DISABLE_PIC16
7023         * src/SDCCmain.c: linkOptions is changed to set *,
7024             added if/endif conditional macros to remove options help
7025             messages from optionsTable when a port is not configured, added
7026             support for the PIc16 port in the ports table, when executing
7027             the compiler with no port specified on command line, a default
7028             port is selected with the new macro DEFAULT_PORT which is
7029             defined in port.h, in setDefaultOptions() linkOptions is removed
7030             from initialization assignment, since now it is a set,
7031             parseCmdLine uses setParseWithComma for linkOptions, in
7032             linkEdit() linkOptions are accessed with new function indexSet()
7033             which returns the i'th item of a set variable. See SDCCset.c, in
7034             linkEdit() when calling buildCmdLine(), added linkOptions as
7035             last argument. Now users can pass arguments to gplink via the
7036             -Wl option, main() uses pic16glue() to glue up pic16 programs
7037         * src/SDCCpeeph.c: various changes to support pic16
7038         * src/SDCCset.c: added function  void *indexSet(set *, int)  to
7039             return the i'th item of the set
7040         * src/SDCCset.h: added function prototype for indexSet()
7041         * src/SDCCsymt.c: in checkSClass(), added support for PIC16
7042         * src/clean.mk: added pic16 in CLEANALLPORTS variable
7043         * src/port.h: added TARGET_ID_PIC16,TARGET_IS_PIC16 macro,
7044             added macro DEFAULT_PORT
7045         * src/pic/main.c: corrected arguments of gplnk in _linkCmd
7046         * src/pic16/gen.c: bug fix in genCpl(), now the correct code is
7047             generated
7048         * src/pic16/glue.c: commented out some error producing lines
7049         * src/pic16/main.c: __config directives are commented out to stop
7050             gpasm complaining and test the linkage with gplink, _linkCmd and
7051             _asmCmd changed to be more gplink and gpasm friendly
7052         * src/pic16/peeph.def: peep rule 3 is commented out, since it
7053             produced an error when parsed, peep rule 12 is added to utilize
7054             movff, but it is commented out since the pCode does not support
7055             yet a command with 2 address arguments
7056
7057 2003-05-18    <johan AT balder>
7058
7059         * src/ds390/gen.c (genArrayInit): removed obsolete and buggy ARRAYINIT
7060         * src/ds390/main.c (genArrayInit): removed obsolete and buggy ARRAYINIT
7061 2003-05-17  Karl Bongers(apply patches from Martin Helmling)
7062
7063         * debugger/mcs51/sdcdb.c,cmd.c,break.c and .h files.
7064   Added feature to script commands from file.
7065
7066 2003-05-14  Bernhard Held <bernhard AT bernhardheld.de>
7067
7068         * device/lib/_strtok.c: fixed bug #734355 by Lenny Story and Tim Woodall
7069         * src/SDCCutil.c: include ctype.h for win32
7070
7071 2003-05-13  Bernhard Held <bernhard AT bernhardheld.de>
7072
7073         * src/pic16/*: removed CR from many files, reported by Vangelis Rokas
7074
7075 2003-05-12  Karl Bongers(apply development patches from Martin Helmling)
7076
7077         * debugger/mcs51/sdcdb.c,simi.c,cmd.c,break.c and .h files.
7078   Fixed so you can set breakpoints prior to run, run does not stop
7079   on entry now.  Add tbreak.  Other enhancements and fixes for use
7080   with ddd.
7081
7082 2003-05-12  Borut Razem <borut.razem AT siol.net>
7083
7084         * src/SDCCmain.c: fixed the problem with searching the DATADIR as the last resort on *nix
7085
7086 2003-05-11  Borut Razem <borut.razem AT siol.net>
7087
7088         * src/SDCCutil.c: WIN32 version of getBinPath() calls GetModuleFileName() to determine
7089         the path of bin directory, so that PATH is the only env. variable, which has to be set
7090         in case of standard installation.
7091         * src/ds390/ds390.dsp: increased value of /Zm option to 1000
7092         * src/pic/main.c: add quotes to file name parameters for gplink and gpasm
7093         * src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx: added --print-search-dirs command line option
7094
7095 2003-05-04  Bernhard Held <bernhard AT bernhardheld.de>
7096
7097         * src/SDCCmain.c (linkEdit): fixed buffer overflow for gbz80
7098         * support/regression/Makefile: inter-port-clean is no longer nesessary, the
7099         temp files are in the port dir; clean the gen/test directory when
7100         generating new test.c
7101         * support/regression/ports/host/spec.mk: defined OBJEXT for target clean
7102         * support/regression/tests/vaargs.c: fixed gcc 3.3 warning
7103         * support/regression/tests/zeropad.c: added
7104
7105 2003-05-09    <johan AT balder>
7106
7107         * src/SDCCglue.c: fixed bug #597940
7108
7109 2003-05-05  Karl Bongers(apply patches from Martin Helmling)
7110
7111         * debugger/mcs51/sdcdb.c,simi.c,cmd.c,symtab.c and .h files.
7112   cache sfr, optimize next,step, fix off by one sourceline,
7113   support ddd list function.
7114         * sim/ucsim/cmd.src/newcmd.cc - small fix for sdcdb use.
7115
7116 2003-05-04  Bernhard Held <bernhard AT bernhardheld.de>
7117
7118         * support/regression/HTMLgen.py: added compare_s2f()
7119         * support/regression/Makefile: redo 1.27
7120         * support/regression/generate-cases.py: redo 1.5
7121
7122 2003-04-30  Bernhard Held <bernhard AT bernhardheld.de>
7123
7124         * support/regression/tests/float.c: workaround 33 bit hex constant
7125         * support/regression/tests/simplefloat.c: fix division for host
7126
7127 2003-04-29  Scott Dattalo  <scott AT dattalo.com>
7128
7129         * src/pic/pcoderegs.c Applied patch from Jim Hawkridge <jim AT jimhawkridge.uk.eu.org>
7130         that tame's the PIC's over-aggressive optimizer.
7131
7132 2003-04-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7133
7134          * src.dsw, link/z80/aslink.h, link/z80/linkz80.dsp: z80 linker
7135          support for MSVC.
7136
7137 2003-04-29  Kevin Vigor <kevin AT vigor.nu>
7138
7139         Initial support for DS80C400. "Hello world" runs on TINIm400
7140         (with polled I/O).
7141
7142 2003-04-28  Karl Bongers(apply patches for Martin Helmling)
7143
7144          * debugger/mcs51/sdcdb.c,simi.c,cmd.c,symtab.c and .h files.
7145          * Some notes on ddd usage added in debugger/README
7146          Martin Helmling adding more features and fixes for ddd GUI debugger.
7147          Code added for nexti, stepi, up, down, and other adjustments.
7148
7149 2003-04-28  Scott Dattalo  <scott AT DATTALO.COM>
7150
7151         * src/pic/pCodepeep.c non-wildcard asmops are now handled
7152         * src/pic/peeph.def Added two rules to optimize carry manipulation
7153         * src/pic/* removed debug printfs
7154
7155 2003-04-28  Bernhard Held <bernhard AT bernhardheld.de>
7156
7157         * debugger/mcs51/cmd.c: added header newalloc.h
7158
7159 2003-04-26  Bernhard Held <bernhard AT bernhardheld.de>
7160
7161         * as/Makefile: new EXEEXT
7162         * as/z80/Makefile: remove trailing slash of BUILDIR
7163         * as/z80/clean.mk: new EXEEXT
7164         * Makefile.common.in: add to CFLAGS (and others), don't replace it
7165         * support/cpp2/Makefile.in: new EXEEXT
7166         * src/pic/glue.c (pic14emitRegularMap): fixed warning
7167
7168 2003-04-24  Bernhard Held <bernhard AT bernhardheld.de>
7169
7170         Cygwin's gcc always appends .exe: 'gcc -o a a.c' creates a.exe;
7171         EXEEXT was introduced to fix all related problems with targets
7172         "clean", "install" and "uninstall"; a couple of further flaws
7173         especially with "clean" have been fixed too
7174         * as/mcs51/Makefile.in
7175         * as/mcs51/clean.mk
7176         * as/z80/Makefile
7177         * Makefile
7178         * clean.mk
7179         * debugger/mcs51/Makefile.in
7180         * debugger/mcs51/clean.mk
7181         * link/z80/Makefile
7182         * link/z80/Makefile.in
7183         * link/z80/clean.mk
7184         * link/Makefile
7185         * packihx/Makefile.in
7186         * packihx/clean.mk
7187         * sim/ucsim/Makefile
7188         * sim/ucsim/clean.mk
7189         * sim/ucsim/avr.src/Makefile.in
7190         * sim/ucsim/avr.src/clean.mk
7191         * sim/ucsim/s51.src/Makefile.in
7192         * sim/ucsim/s51.src/clean.mk
7193         * sim/ucsim/xa.src/Makefile.in
7194         * sim/ucsim/xa.src/clean.mk
7195         * sim/ucsim/z80.src/Makefile.in
7196         * sim/ucsim/z80.src/clean.mk
7197         * sim/ucsim/main_in.mk
7198         * sim/ucsim/packages_in.mk
7199         * sim/ucsim/gui.src/Makefile.in
7200         * sim/ucsim/gui.src/serio.src/Makefile.in
7201         * sim/ucsim/gui.src/serio.src/clean.mk
7202         * src/Makefile.in
7203         * src/clean.mk
7204         * support/cpp2/Makefile.in
7205         * support/cpp2/clean.mk
7206         * support/makebin/Makefile
7207         * support/makebin/clean.mk
7208         * support/scripts/sdcc_mingw32: --program-suffix no longer needed
7209         * doc/sdccman.lyx: --program-suffix no longer needed
7210
7211 2003-04-23  Karl Bongers(apply patches for Martin Helmling)
7212
7213          * debugger/mcs51/sdcdb.c,simi.c,cmd.c,..
7214          Martin Helmling added support for ddd GUI debugger.
7215          Code added to display assembly, set variables, and other commands
7216          to interface to ddd.
7217
7218 2003-04-23  Bernhard Held <bernhard AT bernhardheld.de>
7219
7220         * as/Makefile: fix target clean
7221         * as/clean.mk: fix target clean
7222         * as/z80/clean.mk: fix target clean
7223
7224 2003-04-22  Bernhard Held <bernhard AT bernhardheld.de>
7225
7226         * Makefile.common.in: added  AT EXEEXT AT
7227         * configure.in: removed all mingw32 stuff
7228         * configure: rebuilt from configure.in
7229         * doc/sdccman.lyx: updated section "installation"
7230         * support/scripts/sdcc_mingw32: adapted to configure
7231         * support/scripts/sdcc_cygwin_mingw32: added
7232
7233 2003-04-22  Scott Dattalo  <scott AT dattalo.com>
7234
7235         * src/pic Added object file support for the PIC port
7236         * src/pic Applied patch from Craig Franklin (this started the object file support)
7237         * src/regression Updated the PIC regression tests for object files
7238
7239 2003-04-20  Borut Razem <borut.razem AT siol.net>
7240
7241         * sdcc/as/mcs51/lklex.c: make getfid() more robust and fixed gcc warning:
7242           lklex.c: In function `getfid':
7243           lklex.c:203: warning: array subscript has type `char'
7244         * src/SDCCglobl.h: small change in stack handling macros, to avoid crash when compiled
7245           with MSVC with global optimization enabled (probably an cl compiler bug ;-)
7246         * support/Util/SDCCerr.c, support/Util/SDCCerr.h: added function fatal(), called from
7247           stack handling macros
7248
7249 2003-04-19  Borut Razem <borut.razem AT siol.net>
7250
7251         * "handling space characters in file path" task:
7252         * src/SDCCmacro.c: fixed bug in handlig quote at the end of line
7253         * support/Util/BuildCmd.c: define par as NULL if parameter value is invalid
7254         * support/Util/MySystem.h: make it self-sufficient
7255         * src/avr/main.c, src/ds390/main.c, src/mcs51/main.c, src/pic/main.c, src/xa51/main.c,
7256           src/z80/main.c, sdcc/as/mcs51/lklex.c:
7257           handling space characters in file path
7258         * src/SDCCmain.c: introduced setDataPaths() function, {datadir} macro
7259           (it will be used by assemblers, which have their own includes, e.g. gpasm)
7260         * support/Util/MySystem.c: handling space characters in executable's path
7261
7262 2003-04-19  Bernhard Held <bernhard AT bernhardheld.de>
7263
7264         * as/z80/Makefile: fix permanent rebuild of z80
7265         * sim/ucsim/gui.src/Makefile.in: target "install" builds the same packages as target "all"
7266         * support/regression/tests/bitfields.c: added Johan's bitfields.c
7267
7268 2003-04-18      Kevin Vigor <kevin AT vigor.nu>
7269
7270         * src/SDCCopt.c: add special case optimization to replace modulo by
7271           a power of two with a bitwise AND.
7272
7273 2003-04-18    <johan AT balder>
7274
7275         * src/mcs51/gen.c (getFreePtr): fixed bug #635354
7276
7277 2003-04-17    <johan AT balder>
7278
7279         * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #716790 and removes lot's of redundant register usage around function calls
7280         * src/mcs51/ralloc.c (packRegisters): fixed bug #720667
7281
7282 2003-04-13  Borut Razem <borut.razem AT siol.net>
7283
7284         * doc/sdccman.lyx: updated info about #pragma SAVE/RESTORE nesting
7285         * configure.in, configure: fixed problems on cygwin/WinCVS environmet with ports.* line endings;
7286           fixed mingw problem in adl_NORMALIZE_PATH
7287
7288 2003-04-12  Borut Razem <borut.razem AT siol.net>
7289
7290         * fixed "#pragma SAVE/RESTORE can not be nested":
7291         * src/SDCC.lex: reworked pragma handling functions
7292         * sdcc/src/SDCCglobl.h: reworked stack handling macros
7293         * support/Util/SDCCerr.c, support/Util/SDCCerr.h: added E_STACK_VIOLATION error
7294
7295 2003-04-12  Bernhard Held <bernhard AT bernhardheld.de>
7296
7297         * src/SDCCutil.c (pathEquivalent): defined but not used
7298         * debugger/mcs51/sdcdb.c: replace SDCC_LIB_DIR
7299         * configure.in: remove sdcc_datadir, sdcc_lib_dir and sdcc_include_dir
7300         * configure: rebuilt from configure.in
7301         * sdccconf_in.h: remove SDCC_LIB_DIR and SDCC_INCLUDE_DIR
7302         * sdcc_vc_in.h: remove SDCC_LIB_DIR and SDCC_INCLUDE_DIR
7303         * device/include/Makefile.in: replace sdcc_datadir
7304         * device/lib/Makefile.in: replace sdcc_datadir
7305         * Makefile.common.in: add LDFLAGS from configure
7306         * packihx/Makefile.in: use LDFLAGS
7307         * src/Makefile.in: use LDFLAGS
7308         * support/cpp2/Makefile.in: add LDFLAGS from configure
7309         * support/makebin/Makefile: use LDFLAGS
7310         * .version: bumped version number to 2.3.5
7311
7312 2003-04-12  Borut Razem <borut.razem AT siol.net>
7313
7314         * completed "different paths" task:
7315         * src/SDCCmacro.c: fixed bug in handling quotes
7316         * src/SDCCutil.c, src/SDCCutil.c: rewritten getPrefixFromBinPath()
7317         * src/SDCCmain.c: _discoverPaths() replaced with setBinPaths(), setIncludePath() and setLibPath()
7318
7319 2003-04-12  Bernhard Held <bernhard AT bernhardheld.de>
7320
7321         * src/pic/pcoderegs.c (Remove1pcode): fix warning on alpha
7322
7323 2003-04-11 kevin Vigor <kevin AT vigor.nu>
7324
7325         * ds390/gen.c ds390/peeph.def: fix bug 706781
7326
7327 2003-04-11  Borut Razem <borut.razem AT siol.net>
7328
7329         * support/Util/dbuf.c, support/Util/dbuf.h: update to version 1.1.1 - re-added C++ stuff to make it still more portable
7330
7331 2003-04-10  Scott Dattalo  <scott AT dattalo.com>
7332
7333         * src/pic/* Applied the pointer-to-function patch from Steve Tell.
7334         * src/pic/* Fixed several pointer bugs. (PIC port broke when the ruonly bit was
7335          set - this bit used to not be set...).
7336         * src/pic/gen.c Fixed buf 609268 ==> x = (x+1) & 0xf; generated
7337           bad code in PIC Port
7338         * src/regression/and2.c added to test bug 609268
7339         * src/regression/Makefile added and2.c to regression test
7340
7341
7342 2003-04-08    <johan AT CP255758-A>
7343
7344         * src/mcs51/gen.c (gen51Code): display reg usage in --icode-in-asm
7345         * src/mcs51/ralloc.c (serialRegAssign): update the registers in use and save some slocs
7346         * src/SDCCicode.h: added riu to show the register usage in --icode-in-asm
7347
7348 2003-04-07  Bernhard Held <bernhard AT bernhardheld.de>
7349
7350         * configure.in: fully support prefix, exec_prefix, datadir, docdir;
7351         fix bug #487815
7352         * support/cpp2/Makefile.in: fix bug #487815
7353         * configure: rebuilt from configure.in
7354         * Makefile.common.in: docdir changed, new path suffixes
7355         * sdccconf_in.h: new RETSIGTYPE, and other PATHs
7356         * sdcc_vc_in.h: reflect changes from sdccconf.h
7357         * src/SDCCglobl.h: remove *SEPARATOR_CHARS, they are now in sdccconf.h
7358         * src/SDCCutil.h: remove BINDIR hack
7359         * doc/sdccman.lyx: update new path hierarchy
7360
7361 2003-04-06    Paul Stoffregen <paul AT pjrc.com>
7362
7363         * src/SDCCpeeph.c: added okToRemoveSLOC test
7364
7365 2003-04-06    Paul Stoffregen <paul AT pjrc.com>
7366
7367         * device/lib/printf_fast.c: added leading zero format ("%06d", etc)
7368
7369 2003-04-06    Paul Stoffregen <paul AT pjrc.com>
7370
7371         * src/SDCCpeeph.c: added labelIsReturnOnly test
7372         * src/mcs51/peeph.def: Peephole 244: replace ljmp to ret with ret
7373
7374 2003-04-05    <johan AT balder>
7375
7376         * src/SDCCcse.c (cseAllBlocks): fixed bug #460088
7377         * src/SDCCloop.c (DEFSETFUNC): fixed bug #460088
7378         * src/SDCCopt.c (eBBlockFromiCode): fixed bug #460088
7379         * src/SDCCast.c: fixed a warning
7380         * src/SDCCast.h: fixed a warning
7381         * src/SDCCicode.c (operandFromAst): fixed a warning
7382
7383 2003-04-04    <johan AT balder>
7384
7385         * src/SDCCloop.c (DEFSETFUNC): undid the fix for bug #519584
7386         * src/SDCCast.c (decorateType): fixed bug #715076
7387         * src/SDCC.y: fixed bug #702907
7388
7389 2003-04-03    <johan AT balder>
7390
7391         * device/lib/_mulint.c (_muluint): new #pragma LESS_PEDANTIC
7392         * src/SDCCopt.c (eBBlockFromiCode): new #pragma LESS_PEDANTIC
7393         * src/SDCCglobl.h (PRAGMA_LESSPEDANTIC): new #pragma LESS_PEDANTIC
7394         * src/SDCC.lex (doPragma): new #pragma LESS_PEDANTIC
7395         * src/SDCCmain.c (parseCmdLine): new #pragma LESS_PEDANTIC
7396
7397 2003-04-03  Bernhard Held <bernhard AT bernhardheld.de>
7398
7399         * _decdptr.c: fix return values
7400         * _gptrget.c: fix return values
7401         * _gptrgetc.c: fix return values
7402         * _gptrput.c: fix return values
7403         * _mulint.c: fix return values
7404         * as/z80/Makefile: fix 'make -j' problem
7405
7406 2003-04-02  Bernhard Held <bernhard AT bernhardheld.de>
7407
7408         * Makefile.common.in: unused PORT, SCC and SAS removed, fixed docdir
7409         * configure.in: big cleanup, updated to autoconf 2.5x
7410         * configure: rebuilt from configure.in
7411         * sdccconf_in.h: new RETSIGTYPE, and other PATHs
7412         * sdcc_vc_in.h: reflect changes from sdccconf.h
7413         * doc/Makefile: fixed a flaw in "make install"
7414
7415 2003-04-02    <johan AT balder>
7416
7417         * src/ds390/gen.c (genCmp): no comments
7418         * src/mcs51/gen.c (genCmp): no comments
7419         * src/SDCCopt.c (eBBlockFromiCode): detect missing return values
7420         * src/SDCCast.c (ast_print): fixed the function type in --dumptree
7421
7422 2003-04-01  Bernhard Held <bernhard AT bernhardheld.de>
7423
7424         * support/regression/generate-cases.py: place generated file in given sub directory
7425         * support/regression/ports/host/spec.mk: prevent removal of testfwk.o
7426         * support/regression/Makefile: improvements for 'make -j';
7427         side effect: it's simpler and faster now
7428
7429 2003-03-31  Borut Razem <borut.razem AT siol.net>
7430
7431         * src/z80/main.c: link-{port} and as-{port} defined without path
7432         * src/src.dsp: support/Util/MySystem.h and src/SDCCutil.h added to project
7433
7434 2003-03-31  Bernhard Held <bernhard AT bernhardheld.de>
7435
7436         * Makefile, src/Makefile.in: add dependencies, so that 'make -j' works
7437
7438 2003-03-30  Borut Razem <borut.razem AT siol.net>
7439
7440         * support/Util/BuildCmd.c, support/Util/BuildCmd.h: rewrite buildCmdLine(),
7441           changed type of list parameter to set
7442         * src/ds390/main.c: changed type of parameter asmOptions to set in _tininative_do_assemble()
7443         * src/port.h: changed type of do_assemble() parameter to set
7444         * src/SDCCmain.c: type of asmOptions changed to set, introduced setParseWithComma(),
7445           sdcpp defined without path, removed variable VersionString, introduced set binPathSet,
7446           definition of "cppoutfilename" macro with NULL value in preProcess()
7447         * src/SDCCglobl.h: included "SDCCset.h", added declaration of setParseWithComma()
7448         * src/SDCCglue.c: removed variable VersionString, inroduced spacesToUnderscores()
7449         * support/Util/MySystem.c, support/Util/MySystem.h: rewrite, char *ExePathList[]
7450           replaced with set *binPathSet
7451         * shash_add() deallocates the item, if allready exsists, before adding the new one
7452         * src/SDCCmacro.c: handling macros with empty or NULL values in _evalMacros()
7453
7454 2003-03-30  Scott Dattalo  <scott AT dattalo.com>
7455
7456         * src/pic/gen.c: Commit patch from Steve Tell <tell AT telltronics.org> that fixes
7457           a nested for loop bug in the PIC port
7458         * src/regression/nestfor.c: new regression test file Steve wrote to test nested
7459           for loops
7460
7461 2003-03-29  Bernhard Held <bernhard AT bernhardheld.de>
7462
7463         * support/Util/dbuf.h: remove C++ stuff to make it portable
7464
7465 2003-03-28  Borut Razem <borut.razem AT siol.net>
7466
7467         * src/SDCC.lex: Fix for bug #711240: dynamic buffer handling of C
7468           literal strings in stringLiteral()
7469         * support/Util/dbuf.c, support/Util/dbuf.h: added: dynamic buffer handling
7470         * src/Makefile.bcc, src/Makefile.in, src\src.dsp: added support/Util/dbuf.c
7471           to the project
7472
7473 2003-03-27  Paul Stoffregen <paul AT pjrc.com>
7474
7475         * src/SDCCpeeph.c (pcDistance): accurate byte distance for mcs51
7476
7477 2003-03-26    <johan AT balder>
7478
7479         * src/mcs51/gen.c (saveRegisters): catched symbol abuse
7480         * src/ds390/gen.c (saveRegisters): catched symbol abuse
7481         * src/SDCCast.c (decorateType): fixed " -v < 3"
7482
7483 2003-03-23  Bernhard Held <bernhard AT bernhardheld.de>
7484
7485         * doc/cdbfile.html: removed, replaced by cdbfileformat.lyx
7486         Added Lenny Story's debug infrastructure changes:
7487         * src/Makefile.in:  added new files cdbFile.c and SDCCdebug.c
7488         * src/Makefile.bcc: added new files cdbFile.c and SDCCdebug.c
7489         * src/cdbFile.c: added
7490         * src/SDCCdebug.c: added
7491         * src/SDCCdebug.h: added
7492         * src/SDCCast.c (createFunction)
7493         * src/SDCCglue.c (emitRegularMap, emitStaticSeg, emitOverlay, glue)
7494         * src/SDCCmain.c (parseCmdLine, main)
7495         * src/SDCCmem.c (redoStackOffsets)
7496         * src/SDCCsymt.c (cdbStructBlock, cdbTypeInfo, cdbSymbol, cdbStruct, cdbStructBlock)
7497         * src/SDCCsymt.h
7498         * src/common.h
7499         * src/avr/gen.c (genAVRCode)
7500         * src/ds390/gen.c (gen390Code)
7501         * src/mcs51/gen.c (gen51Code)
7502         * src/pic/gen.c (genpic14Code)
7503         * src/pic/glue.c (pic14emitRegularMap, pic14emitStaticSeg, pic14emitOverlay, picglue)
7504         * src/xa51/gen.c (genXA51Code)
7505         * src/SDCCast.c: fixed "void foo(void){char c; -c < 0;}"
7506
7507 2003-03-22  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7508
7509         * src/mcs51/gen.c (genCodePointerGet): quicker code for bug #700797
7510         * src/mcs51/peeph.def: added rules 177, 241.x to 243, touched 181, 182.x, 193.x
7511
7512 2003-03-22    <johan AT balder>
7513
7514         * src/SDCCicode.c (geniCodeDerefPtr): fixed bug #698231
7515
7516 2003-03-21  Bernhard Held <bernhard AT bernhardheld.de>
7517
7518         * support/scripts/sdcc_mingw32: adapted to configure from autoconf 2.54
7519         * doc/cdbfileformat.lyx: added, written by Lenny Story
7520         * doc/Makefile: added cdbfileformat.lyx
7521         * doc/clean.mk: added cdbfileformat.lyx
7522
7523 2003-03-20  Bernhard Held <bernhard AT bernhardheld.de>
7524
7525         * src/mcs51/peeph.def: fix bug #705773
7526
7527 2003-03-20    <johan AT balder>
7528
7529         An sfr/sbit can have an "at #" AND an initializer
7530         * src/SDCCsymt.c (checkSClass):
7531         * src/SDCCmem.c (allocGlobal):
7532         * src/SDCCmem.c (allocLocal):
7533         * src/SDCCast.c (createBlock):
7534
7535 2003-03-17  Bernhard Held <bernhard AT bernhardheld.de>
7536
7537         * src/ds390/peeph.def: fix bug #704878: added rule 213.b suggested by Jan Rejlek
7538
7539 2003-03-16    <johan AT balder>
7540
7541         Undid the hackup of const and volatile, the problem is much bigger
7542         * src/SDCC.y:1.65
7543         * src/SDCCast.c:1.171
7544         * src/SDCCglue.c:1.138
7545         * src/SDCCicode.c:1.146
7546         * src/SDCCsymt.c:1.150
7547         * src/SDCCval.c:1.65
7548
7549 2003-03-15  Bernhard Held <bernhard AT bernhardheld.de>
7550
7551         * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #703541
7552         * src/ds390/gen.c (genAddrOf): fixed bug #704087
7553
7554 2003-03-13    <johan AT balder>
7555
7556         Hackup const and volatile modifiers in type chains a bit:
7557         * src/SDCC.y:1.63
7558         * src/SDCCast.c:1.169
7559         * src/SDCCglue.c:1.136
7560         * src/SDCCicode.c:1.143
7561         * src/SDCCsymt.c1.146
7562         * src/SDCCsymt.h1.59
7563         * src/SDCCval.c:1.63
7564
7565 2003-03-12    <johan AT balder>
7566
7567         * src/SDCCBBlock.h: more LRH debugging junk
7568         * src/SDCCcflow.h: more LRH debugging junk
7569         * src/SDCCloop.c: more LRH debugging junk
7570         * src/SDCC.y (struct_declaration): fixed bug #697590
7571         * src/SDCCsymt.[hc] (cloneSpec): NEVER EVER use this again
7572         * src/ds390/gen.c (aopForRemat): fixed bug #700031
7573         * src/SDCCglue.c (emitStaticSeg): fixed bug #700797
7574
7575 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
7576         * src/SDCCpeeph.c: quit being lazy and made proper fix (peephole
7577         test function names must now match exactly).
7578         * src/SDCCcse.c: added special case in findCheaperOp to allow
7579         extending a short integer. Makes less awful code for bug 700121 test case.
7580
7581 2003-03-11  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7582
7583         * as/mcs51/lkmain.c: Added ASlink-Warning to messages
7584         * as/mcs51/lkaomf51.c: Fixed bug when linking asmblink example
7585
7586 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
7587
7588         * src/SDCCpeeph.c: fix so that operandsNotEqualX functions are
7589         actually called (operandsNotEqual() was called for all
7590         operandsNotEqualX tests).
7591
7592 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
7593
7594         * src/SDCCcse.c: fix findCheaperOp to prevent replacing int types
7595         with shorter literals. Fixes bug 700121.
7596
7597 2003-03-11    <johan AT balder>
7598
7599         * src/SDCCsymt.c (compareType): a (void *) can be assigned to any pointer
7600
7601 2003-03-11  Bernhard Held <bernhard AT bernhardheld.de>
7602
7603         * src/SDCCloop.c (mergeRegions): an evil beast is dead
7604         * src/SDCCmain.c (preProcess): minor cleanup: eliminate preOutName
7605
7606 2003-03-10  Borut Razem <borut.razem AT siol.net>
7607
7608         * src/SDCCmain.c: pipe preprocessor's output
7609         * support/Util/MySystem.c, support/Util/MySystem.h: added my_popen()
7610         * sdcc_vc_in.h: define pclose as _pclose for WIN32
7611         * src/SDCCglue.c, src/SDCCglue.h: added set pipeSet, added function closePipes,
7612         which closes all pipes in pipeSet set
7613         * src/SDCCset.c: free deleted item in function deleteSetItem()
7614         * src/src.dsp, src/z80/z80.dsp: files support/Util/BuildCmd.c and support/Util/MySystem.c
7615         moved from z80 to src subproject
7616         * .version: increased version number to 2.3.4
7617
7618 2003-03-10  Bernhard Held <bernhard AT bernhardheld.de>
7619
7620         * support/regression/ports/mcs51/spec.mk: increase timeout for CF's sparc to 30s
7621         * support/regression/ports/ds390/spec.mk: increase timeout for CF's sparc to 25s
7622         * support/regression/ports/xa51/spec.mk: fix typo
7623
7624 2003-03-09  Bernhard Held <bernhard AT bernhardheld.de>
7625
7626         * src/SDCCglobl.h: PATH_MAX is already defined in mingw32 headers
7627
7628 2003-03-09  Borut Razem <borut.razem AT siol.net>
7629
7630         * src/SDCCmain.c: pipe preprocessor's output
7631         * support/Util/MySystem.c, support/Util/MySystem.h: added my_popen()
7632         * sdcc_vc_in.h: define pclose as _pclose for WIN32
7633         * src/SDCCglue.c, src/SDCCglue.h: added set pipeSet, added function closePipes,
7634         which closes all pipes in pipeSet set
7635         * src/SDCCset.c: free deleted item in function deleteSetItem()
7636         * src/src.dsp, src/z80/z80.dsp: files support/Util/BuildCmd.c and support/Util/MySystem.c
7637         moved from z80 to src subproject
7638
7639 2003-03-09  Borut Razem <borut.razem AT siol.net>
7640
7641         * src/SDCCglue.c: re-implemented tempfilename() and tempfile(): using mkstemp() if available
7642         * src/SDCCsymt.h: fixed MSVC and BORLANDC compilation (included SDCCglobl.h instead srccconf.h)
7643         * sdcc_vc_in.h: explicitly undefined HAVE_MKSTEMP which is not available on BORLANDC and MSVC
7644         * src/SDCCset.h: removed inclusion of sdccconf.h or sdcc_vc.h
7645         * src/SDCCglobl.h: unification of WIN32 native definitions
7646
7647 2003-03-09  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7648
7649         * src/mcs51/gen.c: applied in-/dec patch mentioned on sdcc-devel 2003-03-01
7650
7651 2003-03-08  Bernhard Held <bernhard AT bernhardheld.de>
7652
7653         * src/configure.in:   check for endianess (even while cross-compiling)
7654         * src/configure:      check for endianess (even while cross-compiling)
7655         * src/configure_in.h: check for endianess (even while cross-compiling)
7656         * src/avr/gen.c:        remove old endianess stuff
7657         * src/mcs51/gen.c:      remove old endianess stuff
7658         * src/ds390/gen.c:      remove old endianess stuff
7659         * src/pic/gen.c:        remove old endianess stuff
7660         * src/pic/genarith.c:   remove old endianess stuff
7661         * src/pic/glue.c:       fix endianess check
7662         * src/pic16/gen.c:      remove old endianess stuff
7663         * src/pic16/genarith.c: remove old endianess stuff
7664         * src/pic16/glue.c:     fix endianess check
7665         * src/xa51/gen.c:       remove old endianess stuff
7666         * src/z80/gen.c:        fix endianess check
7667         * src/SDCCglue.c:       fix endianess check
7668         * src/ds390/peeph.def: fix bug 700036
7669
7670 2003-03-08  Bernhard Held <bernhard AT bernhardheld.de>
7671
7672         * src/SDCCsymt.h: use appropriate data-types on host for SDCC's int and long
7673         * src/configure: find appropriate data-types on host for SDCC's int and long
7674         * src/configure.in: find appropriate data-types on host for SDCC's int and long
7675         * src/sdccconf_in.h: find appropriate data-types on host for SDCC's int and long
7676         * src/xa51/gen.c: use %d, not %ld for 4 byte variables
7677
7678 2003-03-07    <johan AT balder>
7679
7680         Just a big NOOP:
7681                 some minor cleanups before the big shot
7682                 OP_DEFS and OP_USES now use Kevin's protection
7683                 new option --nolabelopt
7684
7685         * src/SDCCBBlock.c:
7686         * src/SDCCast.c,:
7687         * src/SDCCcflow.c:
7688         * src/SDCCcse.c:
7689         * src/SDCCicode.c:
7690         * src/SDCCicode.h:
7691         * src/SDCClabel.c:
7692         * src/SDCCloop.c:
7693         * src/SDCCmain.c:
7694         * src/ds390/ralloc.c:
7695         * src/mcs51/ralloc.c:
7696         * src/pic/ralloc.c:
7697         * src/xa51/ralloc.c:
7698         * src/z80/ralloc.c:
7699
7700 2003-03-06  Bernhard Held <bernhard AT bernhardheld.de>
7701
7702         * src/pic/pcode.c (get_op): fix 64 bit warnings
7703         * src/pic/pcode.c (pCode2str): fix 64 bit warnings
7704         * src/SDCChasht.c (newHashTable): fix 64 bit warnings
7705         * src/SDCCsymt.c (checkTypeSanity): fix 64 bit warnings
7706         * support/regression/tests/malloc.c: fix 64 bit warnings
7707
7708 2003-03-04  Bernhard Held <bernhard AT bernhardheld.de>
7709
7710         * src/mcs51/gen.c (genMinus): fixed bug 696436
7711
7712 2003-03-02  Borut Razem <borut.razem AT siol.net>
7713
7714         * src/SDCCmain.c: added BORLANDC, corrected MSVC in printVersionInfo()
7715
7716 2003-02-26  Bernhard Held <bernhard AT bernhardheld.de>
7717
7718         * configure.in: test for mkstemp
7719         * sdccconf_in.h: add HAVE_MKSTEMP
7720
7721 2003-02-24  Bernhard Held <bernhard AT bernhardheld.de>
7722
7723         * device/include/ctype.h: removed warning while using --stack-auto
7724         * device/include/malloc.h: removed warning while using --stack-auto
7725         * device/include/string.h: removed warning while using --stack-auto
7726
7727 2003-02-23  Borut Razem <borut.razem AT siol.net>
7728
7729         * src/asm.h: corrected assertion in function printILine(): _pipe() was not executed on MSVC,
7730         because NDEBUG is defined (see man assert)
7731         * sdcc_vc_in.h: vsnprintf is defined as _vsnprintf on MSVC
7732
7733 2003-02-23  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7734
7735         * src/mcs51/gen.c (genUminusFloat): avoided dptr in-/decrement for xdata variables
7736         * src/mcs51/peeph.def: added rule suggested by Gernot Fink, white space/comment changes
7737
7738 2003-02-18  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7739
7740         * src/SDCCpeeph.c: added peephole conditions testing for same arguments
7741         * src/mcs51/peeph.def: added rules 238a-d which remove redundant moves
7742
7743 2003-02-18    <johan AT balder>
7744
7745         * as/mcs51/asmain.c (asmbl): module can start with a digit
7746         * as/z80/asmain.c (asmbl): module can start with a digit
7747
7748 2003-02-16  Bernhard Held <bernhard AT bernhardheld.de>
7749
7750         * sim/ucsim/mkecho: inserted #!/bin/sh for Cygwin, so that it's executable
7751         * src/asm.c: fix pipe() for Mingw32
7752
7753 2003-02-15  Bernhard Held <bernhard AT bernhardheld.de>
7754
7755         * src/SDCCglue.h: make tmpfileNameSet available for preOutName
7756         * src/SDCCmain.c (preProcess): make sure, that preOutName will be deleted;
7757         make -V work again; --c1mode reads now from stdin
7758         * doc/sdccman.lyx: added --c1mode
7759         * support/Util/SDCCerr.c: new messages for c1 mode
7760         * support/Util/SDCCerr.h: new messages for c1 mode
7761         * src/SDCC.lex (checkCurrFile): test if fullSrcFileName is NULL for c1mode
7762
7763 2003-02-15    <johan AT balder>
7764
7765         * src/asm.c: new options: --no-c-code-in-asm and --i-code-in-asm
7766
7767 2003-02-14  Bernhard Held <bernhard AT bernhardheld.de>
7768
7769         * doc/sdccman.lyx: Environment variables, -o and other minor things
7770
7771 2003-02-14    <johan AT balder>
7772
7773         * src/xa51/main.c: before anyone really tries to use it :)
7774
7775         * Install doc's in share/sdcc/doc
7776         * removed some obsolete files
7777         * Do a proper make distclean and uninstall
7778         M Makefile.common.in
7779         R sdccbuild.sh
7780         M as/Makefile
7781         M device/include/Makefile.in
7782         M device/lib/Makefile.in
7783         M doc/sdccman.lyx
7784         M link/Makefile
7785         M sim/ucsim/doc/Makefile.in
7786         M src/clean.mk
7787         R src/avr/peeph.rul
7788         R src/xa51/peeph.rul
7789         M support/cpp2/Makefile.in
7790         M support/makebin/Makefile
7791
7792
7793 2003-02-13  Bernhard Held <bernhard AT bernhardheld.de>
7794
7795         * support/regression/ports/host/spec.mk: use cc as host compiler for max osx
7796
7797 2003-02-10  Borut Razem <borut.razem AT siol.net>
7798
7799         * doc/bccinst.txt, packihx/packihx.c, sdcc_vc_in.h, src/SDCCset.h,
7800         support/cpp2/config.in: Borland C++ build doesn't depend on Cygwin configure
7801         * Bcc.ini, Makefile.bcc, as/mcs51/Makefile.bcc,
7802         device/examples/ds390/tinitalk/Makefile.bcc, packihx/Makefile.bcc,
7803         support/cpp2/Makefile.bcc, src/Makefile.bcc, src/avr/Makefile.bcc,
7804         src/ds390/Makefile.bcc, src/izt/Makefile.bcc, src/mcs51/Makefile.bcc,
7805         src/pic/Makefile.bcc, src/pic16/Makefile.bcc, src/xa15/Makefile.bcc,
7806         src/z80/Makefile.bcc: Borland Makefile cleanup
7807         * as/z80/Makefile.bcc: Added Borland Makefile
7808         * support/cpp2/borland.h: Removed
7809
7810 2003-02-10  Bernhard Held <bernhard AT bernhardheld.de>
7811
7812         * doc/sdccman.lyx: new pragma NOIV by "Johannes Stezenbach" <js AT convergence.de>
7813         * src/SDCC.lex: new pragma NOIV
7814         * src/SDCCglobl.h: new pragma NOIV
7815         * src/SDCCmem.c: new pragma NOIV
7816
7817 2003-02-09  Bernhard Held <bernhard AT bernhardheld.de>
7818
7819         * src/SDCCmain.c: signal handling is switched off by SDCC_LEAVE_SIGNALS
7820
7821 2003-02-09  Bernhard Held <bernhard AT bernhardheld.de>
7822
7823         * src/SDCCmain.c: signal handling is switched off by --debug
7824         * doc/Makefile: small fix for install; use clean.mk again
7825         * doc/clean.mk: clean *.pdf and *.html too
7826
7827 2003-02-08  Bernhard Held <bernhard AT bernhardheld.de>
7828
7829         * device/lib/_mulint.c: small fix for large/ds390 --int-long-reent resp. --stack-auto
7830         * device/lib/printfl.c: fix a ds390 bug by making it portable
7831         * src/SDCCsymt.c (initCSupport): fix compile warning on Cygwin
7832         * src/SDCCopt.c (cnvToFloatCast): fix compile warning on Cygwin
7833         * src/SDCCopt.c (cnvFromFloatCast): fix compile warning on Cygwin
7834         * debugger/mcs51/cmd.c: converted multi-line string literals
7835         * sim/ucsim/globals.cc: converted multi-line string literals
7836         * src/SDCCmain.c: introduced signal handler to remove temp files
7837         * doc/Makefile: small tweaks, implement clean
7838         * doc: removed generated files
7839
7840 2003-02-05  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7841
7842         * as/mcs51/aslink.h, as/mcs51/lkihx.c, as/mcs51/lkrloc.c:  Applied
7843         patch from Jan Rejlek <jr AT apex-lib.cz> to fix Bug 677692: "Extended
7844         Address Record is not correctly generated for DS390."
7845
7846 2003-02-02  Borut Razem <borut.razem AT siol.net>
7847
7848         * Makefile.bcc: removed non existing cpp project and non compilable izt project from makefile
7849         * as/mcs51/asm.h: fixed compilation with Borland C
7850         * support/cpp2/Makefile.bcc: added rule to generate auto-host.h
7851         * support/cpp2/auto-host_vc_in.h: fixed compilation with Borland C
7852         * src/mcs51/mcs51a.dsp: corrected misspelled project name from msc51a to mcs51a
7853         * src/avr/Makefile.bcc, src/ds390/Makefile.bcc, src/izt/Makefile.bcc,
7854         src/mcs51/Makefile.bcc, src/pic16/Makefile.bcc, src/xa51/Makefile.bcc,
7855         src/z80/Makefile.bcc: delete $(LIB) only if exist
7856         * src/Makefile.bcc, src/pic/Makefile.bcc:  fixed compilation with Borland C
7857
7858 2003-02-02  Bernhard Held <bernhard AT bernhardheld.de>
7859
7860         * device/include/malloc.h: introduced NULL
7861         * device/include/string.h: introduced NULL
7862         * device/include/stdlib.h: introduced NULL
7863         * device/lib/_memcpy.c: removed NULL
7864         * device/lib/_strcat.c: removed NULL
7865         * device/lib/_strchr.c: removed NULL
7866         * device/lib/_strcmp.c: removed NULL
7867         * device/lib/_strcpy.c: removed NULL
7868         * device/lib/_strcspn.c: removed NULL
7869         * device/lib/_strlen.c: removed NULL
7870         * device/lib/_strncat.c: removed NULL
7871         * device/lib/_strncmp.c: removed NULL
7872         * device/lib/_strncpy.c: removed NULL
7873         * device/lib/_strpbrk.c: removed NULL
7874         * device/lib/_strrchr.c: removed NULL
7875         * device/lib/_strspn.c: removed NULL
7876         * device/lib/_strstr.c: removed NULL
7877         * device/lib/_strtok.c: removed NULL
7878         * device/lib/malloc.c: removed NULL, include own header
7879
7880 2003-02-02    <johan AT balder>
7881
7882         * 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
7883         * support/regression/fwk/lib/testfwk.c: div and mod isn't broken anymore
7884         * regressions ds390/spec.mk and mcs51/spec.mk (timeout): my good old balder isn't fast enough for some tests
7885         * src/z80/gen.c (genZ80Code): added c-lines in asm comments
7886         * as/z80/asm.h (NINPUT): increased for long c-comments in regression tests
7887         * src/z80/gen.c (genRightShiftLiteral): fixed the (char)(-3)>>8 (I think)
7888
7889 2003-02-01  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7890
7891         * src/SDCCmain.c: Fixed bug 678574: "ds390: ASlink-Error-Stack overlaps
7892         area 'DATA'"
7893
7894 2003-02-01    <johan AT balder>
7895
7896         * src/SDCCval.c (valBitwise): fixed Karl's "2 | (1<<8)"
7897
7898 2003-01-31    <johan AT CP255758-A>
7899
7900         * src/ds390/main.c (_ds390_genAssemblerPreamble): applied Jan Rejlek's >64K startup patch
7901
7902 2003-01-30    <johan AT balder>
7903
7904         * src/SDCCBBlock.c: automatic bug detection
7905         * src/SDCCicode.c: automatic bug detection
7906
7907 2003-01-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7908
7909         * src/SDCCglobl.h:   now --xram-size 0 works
7910         * src/SDCCmain.c:    now --xram-size 0 works
7911
7912 2003-01-29    <johan AT balder>
7913
7914         * src/almosteverything: changed OP_DEFS and OP_USES from macros to functions to catch symbol abuse (a hot topic in the bug list :)
7915
7916 2003-01-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7917
7918         * as/mcs51/aslink.h: Added options --xram-size and --code-size
7919         * as/mcs51/lkdata.c: Added options --xram-size and --code-size
7920         * as/mcs51/lkmain.c: Added options --xram-size and --code-size
7921         * as/mcs51/lkmem.c:  Added options --xram-size and --code-size
7922         * src/SDCCglobl.h:   Added options --xram-size and --code-size
7923         * src/SDCCmain.c:    Added options --xram-size and --code-size
7924
7925 2003-01-28  Bernhard Held <bernhard AT bernhardheld.de>
7926
7927         * src/ds390/gen.c: fix deps by replacing <common.h> with "common.h"
7928         * src/SDCC.lex: rename P_OVERLAY to P_OVERLAY_ for cross-gcc 3.2 MINGW32
7929
7930 2003-01-27    <johan AT balder>
7931
7932         * src/SDCC.y: fixed bug #613764
7933
7934 2003-01-26    <johan AT balder>
7935
7936         * src/SDCClrange.c:  fixed Bernhard's "char * code ptr = &c"
7937         * src/SDCCsymt.h: fixed bug #673374
7938         * src/SDCCglue.c: fixed bug #661910
7939         * src/SDCCast.c: fixed bug #458099 and 673374
7940
7941 2003-01-26  Bernhard Held <bernhard AT bernhardheld.de>
7942
7943         * as/mcs51/strcmpi.c: added, provides Aurelien Jarno's as_strcmpi(); strcmpi() is not ANSI
7944         * as/mcs51/strcmpi.h: added
7945         * as/mcs51/asm.h: remove ugly "#define strcmpi strcmp"
7946         * as/mcs51/aslink.h: remove ugly "#define strcmpi strcmp"
7947         * as/mcs51/asmain.c: strcmpi -> as_strcmpi
7948         * as/mcs51/assym.c: strcmpi -> as_strcmpi
7949         * as/mcs51/lkmem.c: strcmpi -> as_strcmpi
7950         * as/mcs51/lknoice.c: strcmpi -> as_strcmpi
7951         * as/mcs51/lksym.c: strcmpi -> as_strcmpi
7952         * as/mcs51/Makefile.aslink: new module strcmpi
7953         * as/mcs51/Makefile.asx8051: new module strcmpi
7954         * as/mcs51/Makefil.bcc: new module strcmpi
7955         * as/mcs51/Makefile.in: new module strcmpi
7956         * sim/ucsim/s51.src/uc390.cc (get_mem_size): make RAM big enough for tinibios
7957
7958 2003-01-26    <johan AT balder>
7959
7960         * src/SDCCglue.c: reverted back to 1.124
7961         * src/SDCCast.c: reverted back to 1.156
7962         * src/mcs51/gen.c (aopGet): applied Frieder's efficiency patch
7963
7964 2003-01-25    <johan AT balder>
7965
7966         * src/SDCCglue.c: A better fix for bug #661910
7967         * src/SDCCast.c: A better fix for bug #661910
7968         * src/SDCCglue.c (emitRegularMap): That was a little too efficient
7969
7970 2003-01-24  Bernhard Held <bernhard AT bernhardheld.de>
7971
7972         * src/Makefile.in: remove spawn.o
7973         * src/SDCCmain.c: remove spawn.h
7974         * src/SDCCmain.c (printVersionInfo): report MINGW32 instead of UNIX
7975         * src/spawn.c: removed
7976         * src/spawn.h: removed
7977         * support/regression/ports/ds390/spec.mk: link with -r
7978
7979 2003-01-24    <johan AT CP255758-A>
7980
7981         * src/ds390/gen.c (aopOp): fixed bug #667458
7982         * src/SDCCglue.c (emitRegularMap): fixed bug #458099 again
7983         * src/SDCCast.c (createIvalCharPtr): fixed bug #661910
7984         (createIvalCharPtr): an ival doesn't always have a storage class anymore
7985
7986 2003-01-24  Bernhard Held <bernhard AT bernhardheld.de>
7987
7988         * src/mcs51/peeph.def: better assembler identation by Frieder
7989         * src/mcs51/gen.c: better assembler identation by Frieder
7990
7991 2003-01-22  Bernhard Held <bernhard AT bernhardheld.de>
7992
7993         * as/z80/string.h: removed for gcc 3.2
7994         * support/makebin/makebin.c: #include <string.h> for gcc 3.2
7995         * src/pic/pcode.c (get_op_from_instruction): fix concatenation of string literals with __FUNCTION__ for gcc 3.2
7996
7997 2003-01-19  Bernhard Held <bernhard AT bernhardheld.de>
7998
7999         * src/SDCCmain.c (linkEdit): rename mem and map files even in case of failure
8000         * src/SDCCpeeph.c (replaceRule): fix bug #663503
8001         * support/regression/Makefile: separate temp files for ports
8002         * support/regression/generate-cases.py: separate temp files for ports
8003         * src/mcs51/peeph.def: Frieder: removed 237 (obsolete by 236g and 105); added 237 a/b
8004         * src/ds390/peeph.def: Frieder: removed 237 (obsolete by 236g and 105); added 237 a/b
8005
8006 2003-01-19  Bernhard Held <bernhard AT bernhardheld.de>
8007
8008         * moved tinitalk to device/examples/ds390
8009
8010 2003-01-14  Bernhard Held <bernhard AT bernhardheld.de>
8011
8012         * as/mcs51/lkmem.c: rflag is for DS390
8013         * src/SDCCglobl.h: removed out_name and options stackOnData, genericPtr
8014         * src/SDCCmain.c (optionsTable, setDefaultOptions): removed --stack-after-data and --generic
8015                          (linkEdit): move mem- and map-files the same way as ihx-files
8016         * src/z80/main.c (_setDefaultOptions): removed --generic
8017         * src/SDCCmain.c (_processC1Arg, parseCmdLine, main): --c1mode works again
8018         * src/SDCCglue.c (createInterruptVect, glue): --c1mode works again
8019         * src/pic/glue.c (picglue): --c1mode works again
8020         * src/pic16/glue.c (pic16glue): --c1mode works again
8021         * src/asm.c (printCLine): fix #660034
8022
8023 2003-01-13  Bernhard Held <bernhard AT bernhardheld.de>
8024
8025         * src/ds390/peeph.def: fix #123; add 14 rules by Fiorenzo D. Ramaglia <fd.ramaglia AT tin.it>, 1 by Frieder
8026         * src/mcs51/peeph.def: fix #123; add 14 rules by Fiorenzo, 1 by Frieder
8027         * src/mcs51/gen.c (genFunction): emit r0 instead of ar0 by Fiorenzo
8028         * as/mcs51/lkmem (summary): better fix for sp problem
8029         * src/SDCCglue.c (glue): __start_stack - 1, saves 1 byte!
8030         * src/ds390/main.c (_ds390_finaliseOptions, _tininative_finaliseOptions): stack_loc = 0x400008
8031         * support/regression/ports/*/spec.mk: moving testfwk-object to port dir allow parallel execution of regression tests
8032                                               remove --stack-after-data
8033
8034 2003-01-12  Bernhard Held <bernhard AT bernhardheld.de>
8035
8036         * src/SDCCmain.c (main): port->finaliseOptions() moved for z80 linking
8037         * src/SDCCutil.c (join): ugly bug: missing '\0'
8038         * as/mcs51/lkmem.c (summary): sp on address 7 is safe
8039
8040 2003-01-11  Bernhard Held <bernhard AT bernhardheld.de>
8041
8042         * src/SDCCmain.c (assemble, linkEdit): preparations for -o
8043         * src/port.h: typo
8044         * src/pic/main.c (_asmCmd): gpasm supports -o
8045         * src/z80/main.c: more general macros
8046         * device/lib/Makefile.in: remove intermediate files
8047
8048 2003-01-11  Bernhard Held <bernhard AT bernhardheld.de>
8049
8050         * .version: Bumped version number to 2.3.3
8051         * src/SDCCBBlock.c: new option -o
8052         * src/SDCCglobl.h: new option -o
8053         * src/SDCCglue.c: new option -o
8054         * src/SDCCmain.c: new option -o
8055         * src/asm.c: new option -o
8056         * src/ds390/main.c: new option -o
8057         * src/pic/glue.c: new option -o
8058         * src/pic/pcode.c: new option -o
8059         * src/pic/ralloc.c: new option -o
8060         * src/pic16/glue.c: new option -o
8061         * src/pic16/pcode.c: new option -o
8062         * src/pic16/ralloc.c: new option -o
8063         * src/z80/main.c: new option -o
8064         * device/lib/Makefile.in: use -o
8065         * support/regression/ports/ds390/spec.mk: use -o
8066         * support/regression/ports/gbz80/spec.mk: use -o
8067         * support/regression/ports/mcs51/spec.mk: use -o
8068         * support/regression/ports/mcs51-stack-auto/spec.mk: use -o
8069         * support/regression/ports/z80/spec.mk: use -o
8070         * support/regression/ports/ucz80/spec.mk: use -o
8071         * support/regression/ports/xa51/spec.mk: use -o
8072         * support/regression/fwk/lib/timeout.c: fix usage string
8073
8074 2003-01-09  Bernhard Held <bernhard AT bernhardheld.de>
8075         * src/mcs51/gen.c (genPlus): replaced "mov b,acc" by "mov b,a" Fiorenzo D. Ramaglia <fd.ramaglia AT tin.it>
8076
8077 2003-01-07    <johan AT balder>
8078
8079         * src/SDCCast.c (decorateType): fixed bug #600035
8080
8081 2003-01-07  Bernhard Held <bernhard AT bernhardheld.de>
8082         * as/mcs51/lkmem.c: added several l-modifiers to printf to remove warnings
8083         * as/mcs51/lkaomf51.c: #include <ctype.h> to remove warnings
8084         * src/pic/main.c (_hasNativeMulFor): outcommented unused variables to remove warnings
8085         * src/pic/pcode.c: outcommented unused variable to remove warnings
8086         * src/pic/ralloc.c: outcommented unused variable to remove warnings
8087
8088 2003-01-06    <karl AT turbobit.com>
8089         * sim/ucsim/cmd.src/command.cc: fixed so "break xram r 0x7654" works again in
8090    regression tests.
8091
8092 2003-01-06    <johan AT balder>
8093
8094         * src/SDCCicode.c: fixed array add
8095
8096 2002-01-05  Bernhard Held <bernhard AT bernhardheld.de>
8097         * src/SDCCmacro.c: MAX_STRING_LENGTH increased to 2048; was too small for regression tests
8098         * support/regression/ports/host/support.c: #include <stdarg.h> for gcc 3.2
8099
8100 2003-01-04    <johan AT balder>
8101
8102         * src/SDCCval.c (getNelements): fixed the initialized array of structures
8103
8104 2002-12-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8105         * as/mcs51/Makefile.bcc: fixed typo lkomf51.o -> lkaomf51.o
8106
8107 2002-12-28  Bernhard Held <bernhard AT bernhardheld.de>
8108         * src/mcs51/peeph.def: added rules 234 and 235 from Frieder Ferlemann <frieder.ferlemann AT web.de>
8109         * support/regression/tests/bug-524697.c: fit mem usage into 8032
8110
8111 2002-12-28  Bernhard Held <bernhard AT bernhardheld.de>
8112         * src/mcs51/gen.c (aopGetUsesAcc): inserted missing "return FALSE"
8113
8114 2002-12-27  Bernhard Held <bernhard AT bernhardheld.de>
8115         * as/mcs51/Makefile.in: fixed typo lkomf51.o -> lkaomf51.o
8116
8117 2002-12-26  Bernhard Held <bernhard AT bernhardheld.de>
8118         * src/mcs51/main.c: removed {bindir}{sep} from aslink
8119
8120 2002-12-10  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8121
8122     * in \sdcc\as\mcs51\ changed these files in order to create an
8123     aomf51 file: aslink.h, lkdta.c, lklex.c, lklibr.c, lklist.c,
8124     lkmain.c.  Also added: lkmem.c and lkaomf51.c.  Changed the
8125     following files to include the previous two files: aslink.dsp,
8126     Makefile.aslink, Makefile.bcc, and Makefile.in.
8127
8128     * Changed \sdcc\src\SDCCmain.c so it creates files with extension
8129     .adb instead of .cdb
8130
8131 2002-11-09  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8132
8133         * \sdcc\as\mcs51\lklist.c: Now reports memory usage using the
8134         value from option --iram-size.
8135
8136 2002-09-20  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8137
8138         * \sdcc\as\mcs51\lklist.c: added boundary check before using
8139         dram[] array.
8140
8141 2002-09-18    <wiml AT hhhh.org>
8142
8143         * SDCClrange.h: exposed setFromRange() and setToRange()
8144         * mcs51/ralloc.c: fixed over-eager packRegsForSupport() and
8145           packRegsForAccUse() (bug 542397)
8146         * mcs51/gen.c: MOVA() is now a function to avoid calling aopGet()
8147           multiple times and emitting the fetch operations more than once
8148           added aopGetUsesAcc() function to allow binary operators to
8149           fetch their operands in the correct order; made genMinus() emit
8150           compact code for X = LITERAL - Y
8151
8152 2002-09-00  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8153         * \sdcc\as\mcs51\lklist.c: Fixed incorrect number of parameters to
8154         sprintf() in line 1267.
8155
8156 2002-09-08  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8157         * \sdcc\src\SDCCglue.c: Generate areas REG_BANK_[0-3] only for 8051
8158         like ports.
8159
8160 2002-09-04  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8161         Changes to aslink (All the changes are marked with 'JCF'):
8162
8163         * \sdcc\as\mcs51\aslink.h: External definition of sflag and
8164         summary().
8165
8166         * \sdcc\as\mcs51\lkarea.c: Computes the size of area BSEG_BYTES from
8167         area BSEG.  Also moves, if possible, the DATA area down into the internal
8168         ram so more space is available.
8169
8170         * \sdcc\as\mcs51\lkdata.c: Definition of memory summary output flag
8171         sflag.
8172
8173         * \sdcc\as\mcs51\lklist.c: For the BSEG area report the size in bits,
8174         not bytes.  Function summary() which creates a memory usage summary
8175         file with extension .mem.  Reports of overlaping stack and small stack
8176         size.  If the space for the stack is less than 16 bytes aslink trows a
8177         warning.
8178
8179         * \sdcc\as\mcs51\lkmain.c: Creation of some of the default areas for
8180         the 8051.  Option 'y' for memory summary output file.
8181
8182         Changes to sdcc (All the changes are marked with 'JCF'):
8183
8184         * \sdcc\src\SDCCglobl.h: External definition of RegBankUsed[4].
8185
8186         * \sdcc\src\SDCCglue.c:  If a register bank is used, creates an
8187         overlaying area for it (uses RegBankUsed[4]).
8188
8189         * \sdcc\src\SDCCmain.c: Definition RegBankUsed[4]; marks register
8190         bank zero as used by default.  By default aslink locates the stack
8191         (equivalent to --stack-after-data).  Pass option 'y' to aslink for
8192         the creation of the .mem file.  Delegates the allocation of data area
8193         to aslink (it is not longer 0x30 by default).  If --stack-loc passes
8194         the begining of the stack area to aslink.
8195
8196         * \sdcc\src\SDCCmem.c:  If a register bank is used, marks it so
8197         glue() in SDCCglue.c creates an area for it.
8198
8199 2002-09-03  Borut Razem <borut.razem AT siol.net>
8200         * sdcc/src/SDCCglue.c, sdcc/src/SDCCglue.h, sdcc/src/SDCCmain.c,
8201         sdcc/src/pic/glue.c:
8202         introduced atexit() handler for teporay files removal in case of
8203         errors, assertions, ...
8204
8205 2002-08-29  Borut Razem <borut.razem AT siol.net>
8206         * sdcc/support/cpp2/auto-host_vc_in.h:
8207         re-definition of O_BINARY and other O_XXX as _O_BINARY and _O_XXX, so the problem
8208         with the returned value from read() in sdcc/support/cpp2/cppfiles.c is solved for MSC.
8209         Maybe there is a similar problem with BORLANDC? It should be checked!
8210
8211         * sdcc/src/ds390/ralloc.c, sdcc/src/mcs51/ralloc.c, sdcc/src/z80/ralloc.c:
8212         corrected improper use of assert: the assignment to clr variable was done inside the assert.
8213         In case that NDEBUG was defined, the assert macro was substituted with no-op, so the assignment
8214         was not executed, and the compiler (cl) launched a warning:
8215         ralloc.c(1442) : warning C4700: local variable 'clr' used without having been initialized
8216
8217 2002-08-28  Bernhard Held <bernhard AT bernhardheld.de>
8218         * src/SDCCglue.c (printIvalArray): iterative calculation of array length
8219
8220 2002-08-28  Jesus Calvino-Fraga and Borut Razem <borut.razem AT siol.net>
8221         * sdcc/sdcc.dsw: added sdcpp, sdcppa, yacc, conf projects
8222
8223         * sdcc/src/src.dsp, sdcc/src/avr/avr.dsp, sdcc/src/ds390/ds390.dsp,
8224           sdcc/src/mcs51/mcs51.dsp, sdcc/src/pic/pic.dsp, sdcc/src/z80/z80.dsp,
8225           sdcc/src/xa51/xa51.dsp, sdcc/src/avr/avra.dsp,
8226           sdcc/src/ds390/ds390a.dsp, sdcc/src/mcs51/mcs51a.dsp,
8227           sdcc/src/pic/pica.dsp, sdcc/src/z80/z80a.dsp,
8228           sdcc/src/xa51/xa51a.dsp, sdcc/as/as_z80.dsp,
8229           sdcc/as/aslink.dsp, sdcc/as/asx8051.dsp, sdcc/packihx/packihx.dsp:
8230         - added Release configuration in VS projects
8231         - review of compiler an linker options
8232         - VC .exe files are generated in bin_vc directory, not to interfere
8233           with binaries generated from other projects (cygwin, mingw, bcc ...)
8234
8235         * sdcc/src/yacc.dsp: added
8236
8237         * sdcc/config.dsp, sdcc/configure_vc.awk, sdcc/sdcc_vc_in.h:
8238         added - genarate sdcc_vc.h using sdcc_vc_in.h as template
8239         and insert the version number definitions from .version
8240
8241         * sdcc/support/cpp2/sdcpp.dsp: added - VC project for sdcpp
8242
8243         * sdcc/support/cpp2/sdcppa.dsp, sdcc/support/cpp2/auto-host_vc_in.h:
8244         added - genarate auto-host.h using auto-host_vc_in.h as template
8245
8246         * sdcc/sdcc_vc.h,
8247         removed from CVS, generated automatically
8248
8249 2002-08-25  Bernhard Held <bernhard AT bernhardheld.de>
8250         * support/scripts/inc2h.pl: use gputils or gpasm (from Nathan Hurst)
8251
8252 2002-08-11  Borut Razem <borut.razem AT siol.net>
8253         * support/Util/NewAlloc.c: removed unneeded #include "sdccconf.h" (suggested by Jesus Calvino-Fraga)
8254
8255 2002-08-10  Borut Razem <borut.razem AT siol.net>
8256         * src/SDCCmain.c (main):
8257         file preOutName was unlinked before closed. This seems to be OK on UNIX and cygwin
8258         platforms, but it doesn't work with Visual Studio: the opened file can not be removed.
8259         The consequence was that some temporary files were not removed.
8260
8261         * src/SDCCglue.c:
8262         unification of code in functions tempfilename() and tempfile():
8263         function tempnam() is defined in Visual Studio 6.0 and .NET
8264
8265         * sdcc/sdcc.dsw: removed project sdcpp, added project xa51a
8266
8267         * sdcc/src/src.dsp, sdcc/src/avr/avr.dsp, sdcc/src/ds390/ds390.dsp,
8268           sdcc/src/mcs51/mcs51.dsp, sdcc/src/pic/pic.dsp, sdcc/src/z80/z80.dsp:
8269         - removed compiler command line option /WX: Treats all warnings as errors
8270         - update a list of source files, included into the project
8271
8272         * sdcc/src/avr/avra.dsp, sdcc/src/ds390/ds390a.dsp, sdcc/src/mcs51/mcs51a.dsp,
8273           sdcc/src/pic/pica.dsp, sdcc/src/z80/z80a.dsp:
8274         changed project type to Generic Project so that can be correcly converted to VS.NET project
8275
8276         * sdcc/as/mcs51/asm.h: definition of PATH_MAX for MSC
8277
8278         * sdcc/src/SDCCast.c: solved MSC error in function decorateType()
8279
8280         * sdcc/src/SDCC.y: added missing ending ';' to rules to get rid of bison warnings
8281
8282         * dcc/src/ds390/ralloc.c, sdcc/src/mcs51/ralloc.c:
8283         added return 0 statements after assert() to make compiler happy
8284
8285         * sdcc/src/xa51/peeph.rul, sdcc/src/xa51/peeph.def, sdcc/src/z80/ralloc.c:
8286         added newline in the def file to keep MSC compiler satisfied
8287
8288         * sdcc/src/z80/gen.c:
8289         - function strcasecmp() is not defined in MSC (and probably also in BORLANDC),
8290           so it is replaced with STRCASECMP, which is defined as stricmp in case of MSC and BORLANDC
8291         - solved MSC error in function aopDump()
8292
8293         * sdcc_vc.h: define PREFIX as "\\sdcc"
8294
8295 2002-07-18  Bernhard Held <bernhard AT bernhardheld.de>
8296         * src/SDCCast.c (decorateType): fixed access to array of structures http://sourceforge.net/mailarchive/forum.php?thread_id=902690&forum_id=4107
8297
8298 2002-06-22  Scott Dattalo <scott AT dattalo.com>
8299         * src/pic/*: Numerous bug fixes. Flow analysis has been enhanced.
8300         - Rewrote the register banking algorithm.
8301         - Added pCode live-range analysis to registers (for now, only non-used and
8302         singly-used registers optimized away)
8303
8304         * src/pic/pcoderegs.[ch]: Added new files for pCode live-range analysis
8305
8306         * 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.
8307
8308 2002-05-10  Scott Dattalo <scott AT dattalo.com>
8309         * src/pic/*: Added support for multiplication. Fixed many,many bugs.
8310
8311 2002-04-22  Michael Hope  <michaelh AT vroom>
8312
8313         * device/lib/z80/printf.c: Changed emitter to volatile to work around a pcall bug.
8314
8315         * configure.in (DD_COPT): Added include support required for gbdk.
8316
8317         * .version: Bumped version number just to increase it.
8318
8319         * src/SDCCmain.c: Added -nostdinc to the default options.
8320
8321 2002-04-15  Michael Hope  <michaelh AT vroom>
8322
8323         * device/lib/z80/printf.c (sprintf): Added.
8324
8325         * src/z80/ralloc.c (packRegisters): Disabled pack HL use for GB as it's broken.
8326
8327         * src/z80/peeph.def: Added transpose redundent load rule.
8328
8329         * src/z80/main.c: Added force callee saves for jaune.
8330
8331         * src/port.h: Removed the i186 and tlcs-900h ports as they weren't being being developed.
8332
8333         * src/SDCCmain.c: Pulled the options definition out so that you can add port specific options without changing the main file.
8334
8335 2002-03-28  Johan Knol  <johan AT balder>
8336
8337         * src/SDCCval.c: fixed bug #532436
8338
8339 2002-03-14  Scott Dattalo <scott AT dattalo.com>
8340         * /src/port.h:
8341         Added "char *Processor" field to the port structure.
8342
8343         * /src/SDCCmain.c:
8344         Added -p option. Allows port dependent processor to be specified.
8345
8346         * all ports:
8347         Initialized the new field char *Processor field to NULL in all ports
8348
8349         * /src/pic/*:
8350         Compiler generated registers for interrupt context saving
8351         were not getting allocated.
8352
8353 2002-03-16  Sandeep Dutta  <sandeep AT ddi.com>
8354
8355         * /src/SDCCast.c:
8356         Fixed left shift. Will promote the left side of a left shift
8357         if a) left shifting more than size of operand or b) when assigned
8358         to something size > size of left side
8359
8360 2002-03-14  Scott Dattalo <scott AT dattalo.com>
8361         * src/pic/*
8362         tons of changes. Register allocation has been
8363         rewritten. Added customization for the various PICs. Flow
8364         analysis is restructured. ...
8365
8366         * src/pic/device.h:
8367         Added
8368
8369         * src/pic/device.c:
8370         Added. device.c is a PIC port hack to accomodate variations
8371         in PIC devices.
8372
8373 2002-03-13  Michael Hope  <michaelh AT vroom>
8374
8375         * src/z80/gen.c (genGenPointerGet): Fixed a bug where a pointer in HL is dereferenced into HL but HL is not spilled.  Yeah.
8376
8377 2002-03-04  johanknol  <johanknol AT manik>
8378
8379         * /src/SDCCval.c: fixed
8380
8381         const unsigned char arr[][2] = { { 0, 1 } };
8382         t18.c:1: error: Initializer element is not constant
8383
8384 2002-03-04  bela  <bela AT manik>
8385
8386         * /device/include/mcs51reg.h:
8387         ds89c420 register definition update
8388
8389 2002-03-03    <johan AT FRIJA>
8390
8391         * support/Util/SDCCerr.c: did something, but don't no why anymore
8392
8393         * support/regression/tests/bug-524691.c: made it a little less shy
8394
8395         * src/SDCCast.c (decorateType): fixed bug #524697
8396
8397         * src/SDCCast.c: made some lineno improvements
8398
8399         * src/SDCCval.c (getNelements): changed warning to error
8400
8401         * src/SDCCglue.c (printIvalArray): changed warning to error
8402
8403         * src/SDCCicode.c: fixed a warning for mingw
8404
8405         * src/SDCCast.c (decorateType): fixed the << promotion for ops
8406
8407         * src/SDCCicode.c (geniCodeDivision): divide is shift only for unsigned (bug #524685)
8408
8409 2002-03-02  Sandeep Dutta  <sandeep AT ddi.com>
8410
8411         * src/ds390/peeph.def:
8412         Added some more peephole rules
8413
8414         * src/ds390/gen.c: Various fixes & enhancements
8415
8416         * src/SDCClrange.c, src/SDCClrange.h:
8417         functions "alldefsoutofrange" and "notusedinblock" moved to SDCClrange.c
8418
8419         * src/ds390/ralloc.c:
8420         various fixes & enhancements (ds390) specific
8421
8422         * src/avr/ralloc.c, src/mcs51/ralloc.c, src/pic/ralloc.c, src/xa51/ralloc.c, src/z80/ralloc.c:
8423         Functions "allDefsOutOfRange" & "notUsedinBlock" moved to SDCClrange.c
8424         from rallocs.
8425
8426         * sdcc/src/SDCCcse.c: Better fix for bug # 514308
8427
8428 2002-03-02    <johan AT FRIJA>
8429
8430         * src/SDCCast.c (decorateType): fixed bug #524708
8431
8432         * src/SDCCval.c (floatFromVal): fixed the literal void (whatever that may be)
8433
8434         * src/SDCCicode.c (geniCodePtrPtrSubtract): fixed bug #524691
8435
8436 2002-03-01  Michael Hope  <michaelh AT vroom>
8437
8438         * src/SDCCsymt.c (initCSupport): Removed managling of support function names.
8439
8440         * src/z80/ralloc.c (packRegsForIYUse): Fixed fp bug where four byte operands were packed into IY.
8441
8442 2002-03-01    <johan AT FRIJA>
8443
8444         * src/SDCCglue.c (printIvalPtr): fixed bug #524211
8445
8446         * src/SDCCast.c (decorateType): fixed bug #524209
8447
8448         * src/SDCCval.c (valNot): fixed bug #524195
8449
8450 2002-02-26    <johan AT balder>
8451
8452         * src/xa51/gen.c: fixed a warning
8453
8454         * src/SDCCglue.c (printIvalFuncPtr): fixed bug #522534
8455
8456         * src/SDCCast.c (decorateType): fixed bug #522534
8457
8458 2002-02-23    <johan AT balder>
8459
8460         * src/SDCCdflow.c (computeDataFlow): fixed bug #460088
8461
8462 2002-02-22    <johan AT balder>
8463
8464         * src/SDCCast.c: fixed bug #514865
8465
8466         * src/SDCCy.c ("SDCC.y"): fixed bug #516625
8467
8468 2002-02-21  Sandeep Dutta  <sandeep AT ddi.com>
8469
8470         * sdcc/src/SDCCloop.c:
8471         Previous fix was not good. basic blocks that have "break" or "return" are
8472         not really partof a loop , but live ranges used in these blocks should
8473         be live thru the entire loop, so set partOfLoop but don't add them to
8474         loop region
8475
8476 2002-02-21    <johan AT FRIJA>
8477
8478         * src/SDCCcse.c: fixed bug #514308
8479
8480 2002-02-20  Sandeep Dutta  <sandeep AT ddi.com>
8481
8482         * src/SDCCloop.c:
8483         Fixed BUG #519583. If a conditional block ended in a return/break
8484         statement inside a loop, it was not being considered part of the loop.
8485
8486         * src/SDCCcflow.c: Removed fix (Fixed in SDCCloop.c)
8487
8488 2002-02-10  Karl Bongers <karl AT turbobit.com>
8489
8490         * debugger/*:
8491         Fixed up SDCDB debugger somewhat.  Updated debugger/README
8492         with lots of comments and notes.
8493
8494         * device/examples/test2.c:
8495         Fix bug, "red" variable not being initialized(compiler complained).
8496
8497         * device/examples/Makefile, examples/test3.c:
8498         Add Makefile in device/examples folder, compiles test3.c
8499         for use as a multiple module SDCDB test case.
8500
8501         * sim/ucsim/cmd.src/cmdset.cc:
8502         Took out debug printfs in ucsim "next" command.
8503
8504         * sim/ucsim/xa.src:
8505         Karl and Johan start ucsim XA support.  Most dissassembly working,
8506         about 75% emulation done(plenty of work remaining).
8507
8508         * sim/ucsim/z80.src:
8509         Add Z80 support to ucsim, add test-ucz80 regression test,
8510         notice ucsim/z80 emulation fails on examples/test3.c/itoa code.
8511         Notice z80 compiler fails on examples/test3.c/crc code.
8512
8513 2002-01-30  Sandeep Dutta  <sandeep AT ddi.com>
8514
8515         * src/mcs51/gen.c, src/mcs51/main.c, src/mcs51/ralloc.c:
8516         Added support for --parms-in-bank1
8517
8518         * src/ds390/peeph.def:
8519         added a few more peephole optimzations
8520
8521         * src/ds390/main.c:
8522         1) added __builtin_inp & __builtin_outp used to read in data of given length
8523            from a memory mapped port
8524         2) added __builtin_memcmp
8525         3) added __builtin_swapw swap bytes of a short
8526
8527         * src/ds390/gen.c, src/ds390/gen.h, src/ds390/ralloc.c:
8528         1) handle multiple send & receives from register bank1
8529         2) ralloc can now allocate DPTR1 to some liveRanges
8530
8531         * src/SDCCsymt.c, src/SDCCsymt.h:
8532         changes to handle multiple sends & receives
8533
8534         * src/SDCCptropt.h:
8535         added some pointer arithmetic optimization
8536
8537         * src/SDCCptropt.c:
8538         added some pointer arithmetic optimizations but not stable yet so not
8539         called from anywhere (will get this working shortly)
8540
8541         * src/SDCCopt.c: fixed for multiple sends & receives
8542
8543         * src/SDCCmain.c:
8544         1) added options --parms-in-bank1 (ds390/mcs51) & --protect-sp-update
8545         2) preprocessing done AFTER port->finalizeoptions . This allows ports to
8546            set preprocessor defines (depending on options)
8547
8548         * src/SDCCicode.c, src/SDCCicode.h:
8549         changes made to handle multiple sends & receives
8550
8551         * src/SDCCglobl.h:
8552         Added options --protect-sp-update (ds390) and --parms-in-bank1 (ds390/mcs51)
8553
8554         * src/SDCCcse.c, src/SDCCcse.h:
8555         added function findbackward def (to be used in upcoming optimization)
8556
8557         * src/SDCCcflow.c, src/SDCCcflow.h:
8558         added function returnAtEnd - to determine if a basic block terminates with
8559         a RETURN iCode
8560
8561         * src/SDCCast.c, src/SDCCast.h:
8562         added option parms-in-bank1
8563
8564         * device/lib/_divsint.c, device/lib/_divslong.c, device/lib/_divuint.c
8565         * device/lib/_divulong.c, device/lib/_modsint.c, device/lib/_modslong.c
8566         * device/lib/_modulong.c, device/lib/_mulint.c, device/lib/_mullong.c:
8567         adjusted for --parms-in-bank1 option
8568
8569         * device/include/string.h:
8570         donot redefine "reentrant" keyword
8571
8572         * device/include/ds80c390.h: Added some more SFRs
8573
8574 2002-01-28  Bernhard Held  <bernhard AT bernhardheld.de>
8575
8576         * sim/ucsim: Merged branch ucsim-034-pre3 to main trunk; new version 0.4
8577
8578 2002-01-26  Bernhard Held  <bernhard AT bernhardheld.de>
8579
8580         * src/SDCCast.c (funcOfType): fix usage of double --float-reent
8581
8582 2002-01-22  Bernhard Held  <bernhard AT bernhardheld.de>
8583
8584         * support/regression/fwk/lib/testfwk.c (main): Removed workaround for bug #505387
8585
8586 2002-01-18  Paul Stoffregen  <paul AT pjrc.com>
8587
8588         * Added --xram-movc option
8589
8590 2002-01-13  Bernhard Held  <bernhard AT bernhardheld.de>
8591
8592         * support/regression/Makefile: don't include test-mcs51-stack-auto in target all
8593
8594 2002-01-11  Johan Knol
8595
8596         * Added math lib of Jesus Calvino-Fraga
8597
8598 2002-01-08  Bernhard Held  <bernhard AT bernhardheld.de>
8599
8600         * src/SDCCmain.c (processFile): fix processing of ../../src.c
8601         * support/regression/Makefile: new target test-mcs51-stack-auto
8602         * support/regression/ports/mcs51-stack-auto/spec.mk: added
8603
8604 2002-01-04  Bernhard Held  <bernhard AT bernhardheld.de>
8605
8606         * src/SDCCglue.h: printIvalCharPtr(), not printIvalChar()
8607
8608 2002-01-04  Bernhard Held  <bernhard AT bernhardheld.de>
8609
8610         * support/regression/ports/mcs51/support.c: correct setup of timer / UART
8611
8612 2002-01-03  Bernhard Held  <bernhard AT bernhardheld.de>
8613
8614         * src/SDCCsymt.c (processFuncArgs): fix #498307 by Johan
8615
8616         * src/SDCCglue.h: add definition for printIvalChar()
8617
8618 2002-01-02  Bernhard Held  <bernhard AT bernhardheld.de>
8619
8620         * src/SDCCast.c: fix #498138 by Johan
8621
8622         * src/SDCCglue.c: fix #498138 by Johan
8623
8624 2002-01-02  Bernhard Held  <bernhard AT bernhardheld.de>
8625
8626         * support/regression/Makefile: fix clean
8627
8628         * support/regression/ports/ds390/support.c: fix transmission of last character
8629
8630 2001-12-29  Sandeep Dutta  <sandeep AT ddi.com>
8631
8632         * /sdcc/src/ds390/gen.c:
8633         a) improved computing address of stack variable
8634         b) took out some #if 0 code
8635         c) improved parmBytes adjustment
8636         d) improved genPlusIncr & genMinusIncr
8637         e) genCmp could generate bad code (when left assigned to DPTR)
8638         f) Fixed bug in hasInc
8639
8640         * /sdcc/src/ds390/ralloc.c:
8641         a) packRegsForSupport could mess up live information (Fixed)
8642         b) packRegsDPTRuse could be incorrect for left & right shift
8643
8644         * /sdcc/src/mcs51/ralloc.c:
8645         packRegsForSupport could mess up the live information (Fixed)
8646
8647         * /sdcc/src/mcs51/gen.c: Fixed a bug in hasInc
8648
8649         * /sdcc/src/SDCCast.c:
8650         can reverse a loop even if function call is present as long
8651         as the loop control variable is local & is not passed as parameter
8652
8653 2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>
8654
8655         * /sdcc/ChangeLog: *** empty log message ***
8656
8657         * /sdcc/src/ds390/gen.c, /sdcc/src/ds390/main.c:
8658         More builtin function additions for TININative
8659
8660         * /sdcc/src/ds390/ralloc.c:
8661         Had broken the regression testsuite
8662
8663         * /sdcc/src/SDCCast.c: Fixed a bug in dumptree
8664
8665         * /sdcc/src/SDCCsymt.c, /sdcc/src/SDCCsymt.h:
8666         Added funcattr hasStackParms will be set for reentrant functions when there
8667         are paramteres on the stack, this helps in minimizing frame pointer generation
8668         typeFromStr can handle function pointers now
8669
8670         * /sdcc/doc/builtins.txt, /sdcc/doc/TININative.txt:
8671         *** empty log message ***
8672
8673 2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>
8674
8675         * /src/ds390/gen.c, /src/ds390/main.c:
8676         More builtin function additions for TININative
8677
8678         * /src/ds390/ralloc.c:
8679         Had broken the regression testsuite
8680
8681         * /src/SDCCast.c: Fixed a bug in dumptree
8682
8683         * /src/SDCCsymt.c, /src/SDCCsymt.h:
8684         Added funcattr hasStackParms will be set for reentrant functions when there
8685         are paramteres on the stack, this helps in minimizing frame pointer generation
8686         typeFromStr can handle function pointers now
8687
8688         * /doc/builtins.txt, /doc/TININative.txt:
8689         *** empty log message ***
8690
8691
8692 2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>
8693
8694         * /src/ds390/gen.c, /src/ds390/main.c, /src/ds390/peeph.def, /src/ds390/ralloc.c:
8695         ALPHA version for -mTININative
8696
8697         * /src/izt/i186.c, /src/izt/tlcs900h.c, /src/mcs51/main.c, /src/pic/main.c, /src/z80/main.c, /src/avr/main.c:
8698         updated to reflect changes in the port structure
8699
8700         * /src/port.h:
8701         added function do_assemble (similar to do_link) if non-null this function
8702         will be called to do assembly (-mTININative) requires a multi command
8703         assembly
8704         added function genAssemblerEnd will be called to generate assembler Epilogue
8705
8706         * /src/SDCCsymt.c:
8707         added _JavaNative to debug info printing
8708
8709         * /src/SDCCmain.c: added option --tini-libid
8710         added port->do_assemble function (-mTININative) has a multi command assemble
8711
8712         * /src/SDCCglue.c: Disabled "constExpr" check
8713         added port->genAssemblerEnd function
8714
8715         * /src/SDCCglobl.h: Added option --tini-libid value
8716
8717         * /src/SDCCast.h:
8718         tookout optimizeCompare from the header (has no external references)
8719
8720         * /src/SDCCast.c: made one more function "static"
8721
8722 2001-12-23  Michael Hope  <michaelh AT juju.net.nz>
8723
8724         * src/z80/mappings.i: Added z80asm support.
8725
8726         * src/z80/main.c: Added z80asm support on --asm=z80asm
8727
8728         * src/z80/gen.c: Fixed asm portability issues.
8729
8730         * src/asm.c (tvsprintf): Removed old code, added 'N' for function name.  For extern support.
8731
8732         * src/SDCCglue.c (printExterns): Added global/extern split.
8733
8734 2001-12-17  Bernhard Held  <bernhard AT bernhardheld.de>
8735
8736         * support/regression/Makefile: added test for mcs51 model large
8737
8738         * support/regression/ports/mcs51-large/spec.mk: added test for mcs51 model large
8739
8740         * support/regression/ports/gbz80/spec.mk: added -mgbz80
8741
8742 2001-12-05  Michael Hope  <michaelh AT juju.net.nz>
8743
8744         * src/diff.1 (Index): Many, many optmisiations.  Dhrystone up to 201.
8745
8746 1904-01-06  Michael Hope  <michaelh AT juju.net.nz>
8747
8748         * src/z80/ralloc.c (packRegsForIYUse): Fixed the case where an operand is in direct space.
8749
8750         * src/z80/gen.c (makeFreePairId): Optimised IY load by using a spare pair.
8751
8752 2001-12-02  Bernhard Held  <bernhard AT bernhardheld.de>
8753
8754         * src/mcs51/gen.c (genFunction): avoid excess "inc sp"
8755
8756         * support/regression/tests/simplefloat.c: Port to mcs51.
8757
8758 2001-11-25  Michael Hope  <michaelh AT juju.net.nz>
8759         * support/regression/tests/bug-485362.c: Added.
8760
8761         * support/regression/tests/simplefloat.c (testDivNearOne): Added.
8762
8763         * src/z80/gen.c (aopOp): Fixed case where left and result are in the same spill loc and they have different sizes.
8764
8765         * src/z80/peeph.def: Added rules for optimising two byte compares on the same thing, and to optimise two ptr assign.
8766
8767         * src/z80/gen.c (aopDump): Added a dump function.
8768
8769 2001-11-25  Bernhard Held  <bernhard AT bernhardheld.de>
8770         * sim/ucsim/s51.src/glob.cc: DS390 SFRs and bits added.
8771
8772         * sim/ucsim/s51.src/port.cc: Port 4 and 5 added.
8773
8774         * sim/ucsim/s51.src/regs51.h: DS390 SFRs added.
8775
8776         * sim/ucsim/s51.src/uc390.cc: Some details improved, CKRDY works for tinibios.
8777
8778         * sim/ucsim/s51.src/uc390cl.h: Work in progress.
8779
8780         * sim/ucsim/sim.src/uccl.h: 6 ports for DS390.
8781
8782         * support/regression/fwk/lib/testfwk.c: Run with tinibios.
8783
8784         * support/regression/ports/mcs51/spec.mk: Fine tuninig.
8785
8786         * support/regression/ports/ds390/support.c: Use tinibios.
8787
8788         * support/regression/ports/ds390/spec.mk: Fine tuning, use tinibios.
8789
8790 2001-11-23  Michael Hope  <michaelh AT juju.net.nz>support/regression/tests/bug-460010.c
8791
8792         * src/z80/ralloc.c (packRegsForHLUse3): Changed to not pack into HL if anything is in direct space.
8793         (packRegsForHLUse3): Added packing support for send, cast, and return value from a call.
8794
8795         * src/z80/peeph.def: Added rules for optimising pushes of part of a pair.
8796
8797         * src/z80/gen.c (emitCall): Changed the stack fixup to not use HL.
8798
8799 2001-11-18  Michael Hope  <michaelh AT juju.net.nz>
8800
8801         * src/z80/gen.c (genCmp): Fixed compare on unsigned.
8802
8803         * src/z80/ralloc.c (packRegsForHLUse3): Created and optimised.
8804         (packRegsForIYUse): Created and optimised.
8805
8806 2001-11-07  Michael Hope  <michaelh AT juju.net.nz>
8807
8808         * support/regression/tests/float.c (testFloatAdd): Fixed up warning.
8809 2001-11-18  Bernhard Held  <bernhard AT bernhardheld.de>
8810
8811         * sdcc/support/regression/tests/bug-460010.c: fix seg violation on host
8812
8813         * sdcc/support/regression/tests/muldiv.c: fix output on mcs51
8814
8815         * sdcc/support/regression/tests/stacks.c: fix DSEG overflow on mcs51
8816
8817 2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>
8818
8819         * sdcc/sim/device/lib/_gptrget.c: mem region 5 (idata) added
8820
8821         * sdcc/sim/device/lib/_gptrput.c: mem region 5 (idata) added
8822
8823 2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>
8824
8825         * sdcc/sim/ucsim/globals.cc: New: IXRAM.
8826
8827         * sdcc/sim/ucsim/stypes.h: New: IXRAM.
8828
8829         * sdcc/sim/ucsim/s51.src/uc390.cc: New: IXRAM.
8830
8831 2001-11-07  Michael Hope  <michaelh AT juju.net.nz>
8832
8833         * src/z80/ralloc.c (packRegsForHLUse): Banned IFXs from being packed into HL.
8834         (packRegsForHLUse): Added rule to pack address of/pointer get for itemps into HL for the Z80.
8835         (packRegsForAccUse2): Added rule to pack hbit IFXs into A.
8836
8837         * src/z80/main.c (_setDefaultOptions): Made float code re-entrant by default.
8838
8839         * src/z80/gen.c (aopGetLitWordLong): Added word support for floats.
8840         (genNotFloat): Added.
8841         (genUminusFloat): Added.
8842
8843         * device/lib/z80/Makefile: Added floating pt stubs.
8844
8845         * device/lib/Makefile.in (Z80SOURCES): Added floating pt support.
8846
8847         * src/z80/gen.c (genIpush): Fixed up a push of one byte when left is in a pair.
8848
8849         * device/lib/_fsadd.c (__fsadd): Fixed up return where the numbers are hugely different.
8850
8851 2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>
8852
8853         * sdcc/sim/ucsim/s51.src/glob.cc: Minor fix.
8854
8855         * sdcc/sim/ucsim/s51.src/regs51.h: Minor fix.
8856
8857         * sdcc/support/regression/Makefile: Add port ds390.
8858
8859         * sdcc/support/regression/ports/mcs51/spec.mk: Minor change.
8860
8861         * sdcc/support/regression/ports/z80/spec.mk: Minor change.
8862
8863         * sdcc/support/regression/ports/ds390/spec.mk: Added.
8864
8865         * sdcc/support/regression/ports/ds390/support.c: Added.
8866
8867         * sdcc/support/regression/ports/ds390/uCsim.cmd: Added.
8868
8869         * sdcc/support/regression/ports/mcs51/timeout.c: Cut.
8870
8871         * sdcc/support/regression/fwk/lib/timeout.c: Paste.
8872
8873 2001-11-04  Michael Hope  <michaelh AT juju.net.nz>
8874
8875         * device/include/malloc.h: Added z80 and gbz80 support.
8876
8877         * device/lib/gbz80/heap.s: Added.
8878
8879         * device/lib/z80/heap.s: Added.
8880
8881         * device/lib/malloc.c: Added z80 and gbz80 support.
8882
8883         * support/regression/tests/malloc.c (testMalloc): Added.
8884
8885         * src/SDCCmain.c (parseCmdLine): Added support for -Wp.
8886
8887         * support/regression/tests/bug-478094.c: Added.
8888
8889         * src/z80/gen.c (commitPair): Fixed silly gbz80/z80 commit to static bug.
8890
8891 2001-11-04  Bernhard Held  <bernhard AT bernhardheld.de>
8892
8893         * sdcc/sim/ucsim/s51.src/uc390cl.h: Improvement for ds390 to run regression tests
8894
8895         * sdcc/sim/ucsim/s51.src/uc390.h: Improvement for ds390 to run regression tests
8896
8897         * sdcc/sim/ucsim/s51.src/regs51.h: Improvement for ds390 to run regression tests
8898
8899         * sdcc/sim/ucsim/s51.src/glob.cc: Improvement for ds390 to run regression tests
8900
8901         * sdcc/support/regression/tests/bug-460010.c: Small change for ds390
8902
8903 2001-11-04  Michael Hope  <michaelh AT juju.net.nz>
8904
8905         * src/z80/peeph-gbz80.def: Removed a bad sub optimisation.
8906
8907 2001-11-03  Michael Hope  <michaelh AT juju.net.nz>
8908
8909         * support/regression/tests/bug-477927.c: Added.
8910
8911         * src/z80/peeph.def: Added minor rules.
8912
8913         * src/z80/gen.c (genPlusIncr): Added an extra plusinc rule.
8914
8915         * src/z80/peeph.def: Added jump optimisation modification.
8916
8917 2001-11-01  Michael Hope  <michaelh AT juju.net.nz>
8918
8919         * src/SDCCmain.c (linkEdit): Added runtime path detection to the mcs51 port.
8920
8921 2001-10-30  Michael Hope  <michaelh AT juju.net.nz>
8922
8923         * support/regression/tests/funptrs.c: Added.
8924
8925 2001-10-29  Michael Hope  <michaelh AT juju.net.nz>
8926
8927         * src/z80/ralloc.c (packRegsForHLUse): Fixed up bad spill due to pushing one byte via HL.
8928
8929 2001-10-28  Michael Hope  <michaelh AT juju.net.nz>
8930
8931         * src/z80/gen.c (genArrayInit): Made it work for on stack arrays.
8932
8933         * src/z80/main.c (gbz80_port =): Added rle support to the gbz80 port.
8934
8935         * src/z80/gen.c (genMinus): Fixed for where the result is one byte.
8936         (movLeft2ResultLong): Created.
8937
8938         * src/z80/ralloc.c (packRegsForHLUse): Added a couple of simple cases for the GB.
8939         (joinPushes): Added.  Joins two char pushes into a word push.
8940
8941 2001-10-27  Michael Hope  <michaelh AT juju.net.nz>
8942
8943         * support/cpp2/Makefile.in (install): Added creation of dest dir.
8944
8945         * support/makebin/Makefile (install): Added creation of dest dir.
8946
8947 2001-10-24 Karl Bongers <karl AT turbobit.com>
8948
8949         * configure.in, configure, Makefile, support/cpp: Removed cpp folder, since we have new cpp2 preprocessor code.
8950
8951 2001-10-21  Michael Hope  <michaelh AT juju.net.nz>
8952
8953         * src/z80/ralloc.c: Turned off faulty pack for one use.
8954
8955         * src/z80/peeph-gbz80.def: Removed redundent restart options.
8956
8957         * src/z80/gen.c (genMult): Added native mul for constants on the z80 and gbz80.
8958
8959 2001-10-21  Bernhard Held  <bernhard AT bernhardheld.de>
8960
8961         * support/regression/Makefile: Improved clean
8962
8963         * support/regression/ports/gbz80/spec.mk: Added clean
8964
8965         * support/regression/ports/host/spec.mk: Added clean
8966
8967         * support/regression/ports/z80/spec.mk: Added clean
8968
8969         * support/regression/ports/mcs51/spec.mk: Added clean, little improvements
8970
8971         * support/regression/ports/mcs51/timeout.c: little improvements
8972
8973 2001-10-17  Michael Hope  <michaelh AT juju.net.nz>
8974
8975         * device/lib/malloc.c (MEMHEADER): Fixed against new pedantic pointers.
8976
8977         * support/regression/fwk/include/testfwk.h: Fixed up to use function pts correctly.
8978
8979         * support/regression/generate-cases.py: Fixed up to use function pts correctly.
8980
8981 2001-10-16  Bernhard Held  <bernhard AT bernhardheld.de>
8982
8983         * support/regression/port/mcs51/spec.mk: add timeout for uCsim
8984
8985         * support/regression/port/mcs51/timeout.c: add timeout for uCsim
8986
8987 2001-10-13  Michael Hope  <michaelh AT juju.net.nz>
8988         * src/z80/gen.c (emitCall): Fixed up missing spill of HL when used to assign the result value.
8989
8990         * src/z80/ralloc.c: Turned off pack for one use as it's quite broken.
8991
8992         * src/SDCCmain.c (linkEdit): Added support for passing a legacy command line through the processor.
8993
8994         * src/mcs51/main.c (_linkCmd): Added bin path to command.
8995
8996         * src/SDCCmain.c (initValues): Added support for when it it called just to link.
8997
8998         * as/mcs51/lklibr.c (libfil;): Turned off 'library file' message.
8999
9000         * src/SDCCval.c (constVal): Fixed usage of 'L' modifier problems on ppc.
9001
9002         * support/regression/tests/longor.c: Added.
9003
9004 2001-10-11  Bernhard Held  <bernhard AT bernhardheld.de>
9005
9006         * as/mcs51/asdata.c: replaced FILENAME_MAX with PATH_MAX
9007
9008         * as/mcs51/aslink.h: define PATH_MAX
9009
9010         * as/mcs51/asm.h: define PATH_MAX
9011
9012         * as/mcs51/asmain.c: replaced FILENAME_MAX with PATH_MAX
9013
9014         * as/mcs51/asnoice.c: replaced FILENAME_MAX with PATH_MAX
9015
9016         * as/mcs51/lklex.c: replaced FILENAME_MAX with PATH_MAX
9017
9018         * as/mcs51/lkmain.c: replaced FILENAME_MAX with PATH_MAX
9019
9020         * src/SDCCglobl.h: define PATH_MAX
9021
9022         * src/SDCCmacro.c: replaced FILENAME_MAX with PATH_MAX
9023
9024         * src/SDCCmain.c: replaced FILENAME_MAX with PATH_MAX
9025
9026 2001-10-11  Michael Hope  <michaelh AT juju.net.nz>
9027
9028         * src/z80/gen.c (gencjneshort): Fixed
9029
9030         * src/z80/ralloc.c (packRegsForHLUse): Added pack into HL for cast then ipush.
9031
9032 2001-10-09  Michael Hope  <michaelh AT juju.net.nz>
9033
9034         * support/regression/tests/bug-469671.c: Added.
9035
9036         * src/z80/gen.c (shiftIntoPair): Fixed up warning.
9037
9038 2001-10-08  Michael Hope  <michaelh AT juju.net.nz>
9039
9040         * src/SDCCmain.c: Added --fommit-frame-pointer option and implemented in the z80 port.
9041
9042         * src/z80/gen.c (genPlus): Fixed to work with extended stack.  Also fixed genMinus, genCmp.  genUMinus is still left.
9043
9044 2001-10-08  Bernhar Held  <bernhard AT bernhardheld.de>
9045
9046         * src/SDCCmain.c (preProcess): added define SDCC_NOOVERLAY
9047
9048         * src/device/lib/_mulint.c  : removed hint: nooverlay bug
9049
9050         * src/device/lib/_mullong.c : removed hint: nooverlay bug
9051
9052         * src/device/lib/_divuint.c : removed hint: nooverlay bug
9053
9054         * src/device/lib/_divulong.c: removed hint: nooverlay bug
9055
9056         * src/device/lib/_moduint.c : removed hint: nooverlay bug
9057
9058         * src/device/lib/_modulong.c: removed hint: nooverlay bug
9059
9060 2001-10-07  Michael Hope  <michaelh AT juju.net.nz>
9061
9062         * 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.
9063
9064         * support/Util/NewAlloc.c (freeTrace): Changed free for the gc case to not free at all.  Fixes runtime segfault.
9065
9066         * support/regression/tests/scott-compare3.c (c_abcd): Fixed up casts.
9067
9068 2001-10-07    <johan AT FRIJA>
9069
9070         * device/lib/gets.c (gets): fixed the return value.
9071
9072 2001-10-06  Michael Hope  <michaelh AT juju.net.nz>
9073         * src/SDCCmain.c (WRITE_SEG_LOC): Fixed up to use Safe_strdup.
9074
9075         * 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.
9076
9077         * 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.
9078
9079         * src/z80/gen.c (genZ80Code): Added de-allocation via trace support.
9080
9081         * src/pic/gen.c: Removed Safe_strdup.
9082
9083         * configure.in: Added option to enable libgc support.
9084
9085         * src/SDCCbitv.c (bitVectnBitsOn): Optimised.
9086         (bitVectUnion): Optimised.
9087         (bitVectIntersect): Optimised.
9088         (bitVectBitsInCommon): Optimised.
9089         (bitVectCplAnd): Optimised.
9090
9091         * support/makebin/makebin.c (usage): Removed getopt as mingw32 doesn't have it.  Sigh.
9092
9093 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
9094
9095         * src/SDCCmain.c: distinguish between assembler debug and plain options
9096
9097         * src/avr/main.c:   remove standard assembler options
9098
9099         * src/ds390/main.c: remove standard assembler options
9100
9101         * src/mcs51/main.c: remove standard assembler options
9102
9103         * src/port.h: removed "PENDING" comment
9104
9105 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
9106
9107         * src/device/lib/_mulint.c  : new, with assember functions
9108
9109         * src/device/lib/_mullong.c : new, with assember functions
9110
9111         * src/device/lib/_divuint.c : with assember functions
9112
9113         * src/device/lib/_divsint.c : with assember functions
9114
9115         * src/device/lib/_divulong.c: with assember functions
9116
9117         * src/device/lib/_divslong.c: with assember functions
9118
9119         * src/device/lib/_moduint.c : with assember functions
9120
9121         * src/device/lib/_modsint.c : with assember functions
9122
9123         * src/device/lib/_modulong.c: with assember functions
9124
9125         * src/device/lib/_modslong.c: with assember functions
9126
9127         * src/device/lib/libint.lib:  replaced _muluint.c  and _mulsint.c  by _mulint.c
9128
9129         * src/device/lib/liblong.lib: replaced _mululong.c and _mulslong.c by _mullong.c
9130
9131         * src/device/lib/Makefile.in: replaced _muluint.c  and _mulsint.c  by _mulint.c
9132                                       replaced _mululong.c and _mulslong.c by _mullong.c
9133
9134 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
9135
9136         * src/SDCCsymt.c: sequence of specifiers in pintTypeChain() corrected
9137
9138 2001-10-01 Bernhard Held <bernhard AT bernhardheld.de>
9139
9140         * src/SDCCglue.c: test, if win32api is available for MINGW
9141
9142 2001-10-01 Bernhard Held <bernhard AT bernhardheld.de>
9143
9144         * src/SDCCsymt.c: no more _modifier in printTypeChain()
9145         * support/regression/tests/driverstruct.c: REENTRANT for mcs51
9146         * support/regression/ports/gbz80/spec.mk: removed GENERIC
9147         * support/regression/ports/host/spec.mk: removed GENERIC
9148         * support/regression/ports/mcs51/spec.mk: removed GENERIC
9149         * support/regression/ports/z80/spec.mk: removed GENERIC
9150
9151 2001-10-01  Michael Hope  <michaelh AT juju.net.nz>
9152
9153         * support/regression/fwk/lib/testfwk.c (__printf): Removed GENERIC.
9154
9155         * support/regression/tests/bug-467035.c: Created.
9156
9157 2001-10-01    <johan AT FRIJA>
9158
9159         * src/SDCC.y: fixed bug #466586 part 1
9160
9161 2001-10-01  Johan Knol <johan.knol AT iduna.nl>
9162
9163         * SDCCicode.c: z80 has no generic pointers
9164         * removed -s from strip in all Makefile(.in)'s. It is not needed, but Solaris chocks on it.
9165
9166 2001-09-30  Michael Hope  <michaelh AT juju.net.nz>
9167
9168         * sim/ucsim/cmd.src/Makefile.in ($(PRJDIR)/libcmd.a): Changed all ar references to $(AR) for Solaris.
9169
9170 2001-09-29  Michael Hope  <michaelh AT juju.net.nz>
9171
9172         * Makefile (sdcc-libs): Added makebin to the list of standard targets.
9173
9174         * support/regression/ports/z80/spec.mk: Updated to use env for sdcc bin dir for automatic regression.
9175
9176 2001-09-25  Michael Hope  <michaelh AT juju.net.nz>
9177
9178         * configure.in: Fixed up so that ucsim is only configured once.
9179
9180         * support/cpp2/configure.in: Fixed to use the program transform to append the .exe for the win32 build.
9181
9182         * src/SDCCutil.c (getPrefixFromBinPath): Fixed up to work with win32 in all of its glory.
9183         (getPathDifference): As above.
9184
9185         * src/SDCCmain.c (preProcess): Changed to use a temporary file in a proper temp directory.  Fixed case where pre-processing only.
9186
9187         * src/SDCCglue.c (tempfilename): Added function for pre-processor.
9188
9189 2001-09-23  Michael Hope  <michaelh AT juju.net.nz>
9190         * .version: Updated to 2.3.1
9191
9192         * src/z80/main.c (z80_port =): Added macro based linker and assembler command line support.
9193         Added copyright header.
9194
9195         * src/SDCCmain.c: Shifted various functions into SDCCutil.c
9196         (assemble): Added support for macro based assembler commands.
9197         (linkEdit): Added support for macro based linker commands.
9198         (preProcess): Changed the pre-processor to use macros.
9199         (_setPaths): Added functionality to autodetect the include, lib and bin dir paths.
9200         (_discoverPaths): Added support for overriding the install directory using the SDCCDIR env variable.
9201
9202         * device/lib/z80/crt0.s: Added module name for debugging.
9203
9204 2001-09-20  Michael Hope  <michaelh AT juju.net.nz>
9205
9206         * src/SDCCmain.c (printVersionInfo): Added the build date to the version info.
9207
9208         * src/SDCChasht.c (hTabDeleteByKey): Fixed delete as it would delete the last item from a bucket even if it wasn't the real one.
9209
9210         * src/SDCCglue.c: Moved gc_strdup to SDCCutil.c
9211
9212         * src/Makefile.in: Added SDCCmacro and SDCCutil
9213
9214 2001-09-19  Michael Hope  <michaelh AT juju.net.nz>
9215
9216         * src/SDCCmain.c (printVersionInfo): Added the build date to the version info.
9217
9218 2001-09-16    <johan AT FRIJA>
9219
9220         * 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.
9221
9222 2001-09-15    <johan AT FRIJA>
9223
9224         * src/mcs51/ralloc.c: (findAssignToSym): fixed bug #460662 part 1
9225         * src/ds390/ralloc.c (findAssignToSym): fixed bug #460662 part 1
9226
9227 2001-09-11    <johan AT FRIJA>
9228
9229         * src/SDCCval.c (valDiv Mod Minus Plus Shift): keep litteral expressions as small as possible (bug #460010)
9230
9231 2001-09-10  Michael Hope  <michaelh AT juju.net.nz>
9232
9233         * support/regression/tests/bug-460444.c: Added test case.
9234
9235         * src/z80/gen.c (genOr): bug 460444: if (a ^ lit) was broken for &, |, and ^.
9236         (genCast): Added justification for all of the asserts.
9237
9238 2001-09-10  Bernhard Held <bernhard AT bernhardheld.de>
9239
9240         * support/regression/support.c: _xdata replaced by xdata
9241
9242         * support/regression/spec.mk: removed _generic
9243
9244 2001-09-09  Michael Hope  <michaelh AT juju.net.nz>
9245
9246         * src/pic/ralloc.c (debugLogRegType): Removed some old types to get it to compile.
9247
9248         * src/z80/gen.c (shiftR2Left2Result): Improved the case when v = v >> n for small values of n to use less code space and time.
9249         (genrshTwo): Fixed v = v >> n where v is a negative int and n is > 8: bug 460010.
9250
9251         * src/z80/peeph.def: Added a rule to optimise shift then compare.
9252
9253         * support/regression/tests/bug-460000.c (testShiftByParam): Added test case.
9254
9255         * support/regression/tests/bug-460010.c: Added test case.
9256
9257         * support/regression/Makefile (test-host): Removed a silly 'clean' target when testing against gcc.
9258
9259 2001-09-09  Bernhard Held <bernhard AT bernhardheld.de>
9260
9261         * support/regression/Makefile: inter-port-clean adjusted for mcs51
9262
9263         * support/regression/testfwk.c: removed workaround for bug #436344
9264
9265         * support/regression/tests/bp.c: use less memory with mcs51
9266
9267         * support/regression/tests/bug-441448.c: use less memory
9268
9269         * support/regression/tests/ports/mcs51/spec.mk: cleanup, use --stack-after-data
9270
9271         * support/regression/collate-results.py: typo
9272
9273 2001-09-08  Michael Hope  <michaelh AT juju.net.nz>
9274
9275         * support/regression/tests/fetchoverlap.c: Added new test case.
9276
9277         * support/regression/tests/bp.c: Added new test case.
9278
9279         * support/regression/tests/bug-448984.c: Added new test case.
9280
9281         * support/regression/tests/pow2shifts.c: Added new test case.
9282
9283         * src/z80/gen.c: Turned off the noise it normally generates for the release.
9284         (genlshTwo): Fixed right shift for count > 8.
9285
9286         * src/z80/ralloc.c: Disabled most of the ACC packing rules as they weren't getting hit and weren't at all safe.
9287
9288 2001-09-08    <johan AT FRIJA>
9289
9290         * src/SDCCicode.c (geniCodeCall): a CPOINTER can be used as a function
9291
9292 2001-09-07    <johan AT FRIJA>
9293
9294         * src/SDCCicode.c (newiCodeCondition): fixed bug #456235 (1.77)
9295
9296         * src/SDCCglue.c (emitRegularMap): only delete a symbol when it is a symbol
9297
9298 2001-09-06    <johan AT FRIJA>
9299
9300         * src/SDCC.y: this could be a fix for bug #458744 (1.37)
9301         * bernhard noted me at this: "() equals to (void)" (1.38)
9302
9303 2001-09-05    <johan AT FRIJA>
9304
9305         * src/SDCCglue.c (emitRegularMap): a fix for bug #458099/2
9306
9307 2001-09-04    <johan AT FRIJA>
9308
9309         * src/SDCCsymt.c (checkSClass): a fix for bug #458099/1
9310
9311
9312 2001-09-04  Paul Stoffregen  <paul AT pjrc.com>
9313
9314         * pragma noinduction broke memcpy on mcs51 large model.  Moved it inside z80 optimization
9315
9316 2001-09-03  Michael Hope  <michaelh AT juju.net.nz>
9317
9318         * link/z80/aslink.h: Fixed path for PATH_MAX
9319
9320 2001-09-02  Michael Hope  <michaelh AT juju.net.nz>
9321
9322         * src/z80/gen.c (fetchLitPair): Changed so that it properly caches direct space references.
9323
9324         * support/regression/tests/addsub.c: Added cases to cover all the +, - combinations.
9325
9326         * support/regression/tests/uminus.c: Added a test for the unary minus operator.
9327
9328         * 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.
9329
9330 2001-09-01  Michael Hope  <michaelh AT juju.net.nz>
9331
9332         * src/z80/gen.c: Fixed up generator to pass the regresion tests, specifically fixing loads for longs, genCmp, and turned on the map file.
9333         (genCmp): Fixed up genCmp for the GB with longs.
9334
9335         * device/lib/gbz80/Makefile: Fixed up all the libraries to pass the regression tests.
9336
9337         * support/regression/ports/host/spec.mk: Updated to compile with the new type specifiers.
9338
9339         * device/lib/Makefile.in (Z80SOURCES): Removed old _mululong, _mulslong, and unneeded _mulint.
9340
9341         * device/lib/_mullong.c (_mulslong): Changed to actually return a value :)
9342
9343 2001-08-30  Paul Stoffregen  <paul AT pjrc.com>
9344
9345         * added peepholes 223 to 231 to mcs51 port.  These improve code when using large model.
9346
9347 2001-08-30  Michael Hope  <michaelh AT juju.net.nz>
9348
9349         * 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.
9350
9351         * src/z80/gen.c (genPlus): Changed bad long add for gb to a fall through.
9352
9353 2001-08-29  Michael Hope  <michaelh AT juju.net.nz>
9354
9355         * link/z80/aslink.h: Fixed long file name support.  Is now based off PATH_MAX instead of a constant.
9356
9357         * src/z80/gen.c: Fixed add and sub for the case where left or right are in static space.
9358
9359 2001-08-30 Bernhard Held   <bernhard AT bernhardheld.de>
9360
9361   * sim/ucsim/configure:    little improvement of Cygwin-detection
9362   * sim/ucsim/configure.in: little improvement of Cygwin-detection
9363   * sim/ucsim/cmd.src/newcmdcl.h: include <sys/types.h> to define fd_set automated build
9364   * support/regression/tests/bug-221100.c: small changes for mcs51
9365   * support/regression/tests/bug-221168.c: small changes for mcs51
9366   * support/regression/tests/bug-227710.c: small changes for mcs51
9367   * support/regression/tests/staticinit.c: small changes for mcs51
9368   * as/mcs51/aslink.h: accept everything as symbol name in rel-files, bug fix ID 452601
9369   * as/mcs51/lklex.c:  accept everything as symbol name in rel-files, bug fix ID 452601
9370   * as/mcs51/lksym.c:  accept everything as symbol name in rel-files, bug fix ID 452601
9371
9372 $Revision$