43c7a4fab5bc9d8166a68c412321e26a0a8724bc
[fw/sdcc] / ChangeLog
1 2005-08-05 Raphael Neider <rneider AT web.de>
2
3         * src/pic16/gen.c (pic16_aopGet): fixed handling of offsets in
4           AOP_PCODE operands, fixes multibyte union-bitfield-accesses
5
6 2005-08-05 Borut Razem <borut.razem AT siol.net>
7
8         * device/lib/Makefile.in: added missing ';'
9         * configure: removed ^M characters
10
11 2005-08-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12
13         * device/include/mcs51/at89c51ed2.h, device/include/mcs51/p89v51rd2.h,
14           device/include/mcs51/at89s53.h: changed to GNU Lesser General Public
15           License
16
17 2005-08-04 Borut Razem <borut.razem AT siol.net>
18
19         * configure.in: pic16 libraries build 2nd try - enable running
20           configure in device/lib/pic16
21         * configure: regenerated from configure.in
22         * device/lib/Makefile.in: create $(PORT)/bin directory
23
24 2005-08-03 Raphael Neider <rneider AT web.de>
25
26         * src/pic16/gen.c (pic16_derefPtr): NEW, single place
27           to get/set values via pointers
28         * (genUnpackBits,genPackBits): changed detection of
29           ptr->bitfield vs. sym.bitfield, fixed access via generic
30           pointers, removed dead (wrong) code for multibyte bitfields
31         * (genNearPointerGet, genGenPointerGet): removed useless code,
32           fixed bitfield detection, fixes #1250594
33         * (genNearPointerSet): removed useless code
34         * src/pic16/gen.h: renamed pic16_emitpcode to pic16_emitpcode_real
35           and introduced macro pic16_emitpcode that conditionally emits
36           the origin of the following pCode (useful for debugging SDCC)
37         * src/pic16/pcode.c: changed (and disabled) some debug outputs
38         * (createDefmap): fixed handling of LFSR for --optimize-df
39
40 2005-08-02 Borut Razem <borut.razem AT siol.net>
41
42         * device/lib/Makefile.in: pic16 libraries build enabled since
43           gputils-0.13.2 are now localy installed at sourceforge's compile farm
44
45 2005-08-02 Raphael Neider <rneider AT web.de>
46
47         * src/pic16/gen.c (genPackBits): removed deprecated warning
48         * (genGenPointerSet): fixed bitfield detection
49
50 2005-08-02 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
51
52         * device/include/mcs51/msm8xc154s.h: Removed PT2 definition, now in 8052.h.
53
54 2005-07-31 Raphael Neider <rneider AT web.de>
55
56         * device/lib/pic16/libdev/pic18f458.c,
57           device/include/pic16/pic18f458.h: added missing T0CONbits
58
59 2005-07-29 Maarten Brock <sourceforge.brock AT dse.nl>
60
61         * device/include/mcs51/msm8xc154s.h: added, thanks to Matthias Arndt
62
63 2005-07-28 Maarten Brock <sourceforge.brock AT dse.nl>
64
65         * src/mcs51/gen.c (operandsEqu): fixed bug 1246687
66
67 2005-07-23 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
68
69         * device/include/mcs51/at89c51ed2.h: added.
70
71 2005-07-23 Raphael Neider <rneider AT web.de>
72
73         * src/pic/gen.h: added emitpcode macro for debugging
74         * src/pic/gen.c (emitpcode): renamed to emitpcode_real
75           and replace by macro adding debug information on demand
76         * (genNot): fixed to C semantics (!0 = 1; !x = 0 iff x != 0)
77         * (gencjne): tried to fix; replaced with correct (slower) code
78         * (gen{Unp,P}ackBits): fixed single bit access
79         * src/pic/pcode.c (AnalyzepCode): fixed DFPRINTF argument
80         * src/pic/pcodepeep.c (pCodeSearchCondition): fixed finding
81           previous instruction
82         * src/pic/pcoderegs.c (regIsSpecial): NEW, check whether a
83           register has to be handled with care (forbidding movement
84           of assignments/uses, removing assignments completely, ...)
85         * (pCodeOptime2pCodes): make use of regIsSpecial
86         * added lots of debugging output (commented out)
87         * src/pic/rallloc.c (deassignLRs): prevent operand registers
88           from being reused as result UNLESS it is known to work
89
90 2005-07-23 Maarten Brock <sourceforge.brock AT dse.nl>
91
92         * support/Util/dbuf.h: include <stddef.h> for size_t
93         * .version: changed to version 2.5.2
94
95 2005-07-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
96
97         * src/SDCCloop.c (loopInvariants): fixed bug #1234048
98
99 2005-07-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
100
101         * src/hc08/gen.c (genMinus): fixed bug #1241835,
102           (genModOneByte): removed needless psha/pula
103
104 2005-07-22 Raphael Neider <rneider AT web.de>
105
106         * src/SDCCmain.c (linkEdit): initialized linkerScriptFileName,
107           have PIC14 handled like PIC16, fixes broken pic14 linker calls
108         * src/pic/gen.c (resolveIfx): do not "invent" labels
109         * (genSkipc): changed to positive logic
110         * (genSkipCond): removed as no longer needed
111         * (pic14_mov2w_regOrLit,genCmp): NEW, replacement for buggy version,
112           backport from PIC16
113         * (genLeftShift): check operands are in different registers
114         * src/pic/genarith.c (genPlus): replaced INCF with ADDLW as
115           INCF does not update CARRY...
116         * src/pic/main.c: fixed _linkCmd
117         * src/pic/pcode.c (unlinkpCode): added inactive code
118         * src/pic/ralloc.c (deassignLRs): keep arguments to shift operations
119           alive (do not assign result and operand overlapping registers)
120
121 2005-07-22 Raphael Neider <rneider AT web.de>
122
123         * src/pic/device.c (dump_sfr): replaced register declaration with
124           call to emitSymbolToFile() to avoid duplicate symbols
125         * (assignRelocatableRegisters): do not declare external symbols
126         * src/pic/ralloc.c (allocNewDirReg): fixed to get size of arrays
127           right (take size of type, not etype)
128         * (allocDirReg): fixed call to allocNewDirReg() to pass OP_SYM_TYPE
129         * (writeUsedRegs): also dump dynDirectRegs (e.g. local variables)
130         * (packRegsForAccUse): disabled assignment of WREG as
131           the result reg to prevent occurence of just fixed #1235003,
132           fixes #1242954
133         * src/pic/glue.c (emitSymbolToFile): NEW, central place to declare
134           symbols (avoids duplicate symbols in .asm file)
135         * (pic14emitRegularMap): use emitSymbolToFile()
136         * src/pic/gen.c (aopOp): fixed spillLocation handling
137         * (gen{Unp,P}ackBits): fixed acquiring bit-operands
138         * (genDataPointerSet): removed unneccessary variables/output
139
140 2005-07-22 Maarten Brock <sourceforge.brock AT dse.nl>
141
142         * as/mcs51/lkarea.c: enlarged codemap for banked memory
143         * device/lib/mcs51/crtbank.asm: added # to 0x0F
144
145 2005-07-21 Raphael Neider <rneider AT web.de>
146
147         * src/pic/gen.c (aopOp): do not generate AOP_ACC operands as pic14
148           architecture cannot handle them efficiently, fixes bug #1235003
149         * src/pic16/device.c (pic16_dump_{u,i}section,pic16_dump_int_registers):
150           check for empty sets before using them (fixes bug #1232190)
151
152 2005-07-19 Maarten Brock <sourceforge.brock AT dse.nl>
153
154         * as/mcs51/lkarea.c (lnkarea, lnkarea2): improved BSEG size calculation,
155           (lnksect2): generate warnings for memory overlap
156         * src/SDCC.lex (doPragma, process_pragma): added pragma's codeseg and
157           constseg to set the name of these segments so you can instruct the linker
158           to place them in banks
159         * src/SDCCast.c (decorateType): use new macro IS_FUNCPTR()
160         * src/SDCCglobl.h: added MODEL_HUGE to enum,
161           added code_seg and const_seg to options
162         * src/SDCCglue.c (emitMaps): use options.const_seg,
163           (createInterruptVect): put interrupt vectors in segment HOME,
164           (glue): put HOME before static segment and put the main glue in HOME,
165           (glue): use options.code_seg
166         * src/SDCCicode.c (geniCodeCall): use new macro IS_FUNCPTR()
167         * src/SDCCmain.c: added option --codeseg and --constseg to set the name of
168           these segments so you can instruct the linker to place them in banks
169           (linkEdit): use code_loc for HOME segment which should be the first
170           segment in code memory now
171         * src/SDCCmem.c: fixed more stuff like bug 1238386
172         * src/SDCCsymt.c (getSize): use generic pointer size for banked functions,
173           (changePointer): don't change function pointers to code pointers for
174           banked functions,
175           (compareType): added exceptional check for banked function pointers
176         * src/SDCCsymt.h: changed IFFUNC_ISBANKEDCALL, added IS_FUNCPTR
177         * src/hc08/main.c (_hc08_genAssemblerPreamble): put HOME first, put CSEG
178           after static in code memory
179         * src/mcs51/gen.c: added aopLiteralLong prototype,
180           (aopForSym): use getSize for functions,
181           (genCall): generate banked calls over one trampoline __sdcc_banked_call
182           in HOME with lsb of address in r0, msb in r1 and bank in r2, use
183           -Wl-bBANKSEG=0xbbaaaa option to set the address (aaaa) and bank (bb) of
184           the segment,
185           (genPcall): use call for literal function pointers and generate banked
186           calls over the one trampoline so there's only one place for the user to
187           modify according to his/hers hardware,
188           (genEndFunction): jump to __sdcc_banked_ret in HOME for banked functions,
189           (genPlusIncr): moved check icount>4 beyond inc dptr optimization
190         * src/mcs51/main.c: added keyword banked,
191           (_mcs51_genExtraAreas): put HOME first followed by GSINIT, STATIC and CSEG
192         * support/Util/SDCCerr.c,
193         * support/Util/SDCCerr.h: added E_BANKED_WITH_CALLEESAVES, registers are
194           needed for passing the bank and address to the trampoline
195         * device/lib/mcs51/crtbank.asm: added for bankswitching
196         * device/lib/mcs51/Makefile: added crtbank
197
198 2005-07-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
199
200         * src/SDCCcse.c (algebraicOpts): fixed loss of volatility
201           for fields at offset 0 of a struct or union as reported
202           on 2005-07-07 in the developer mailing list.
203
204 2005-07-15 Maarten Brock <sourceforge.brock AT dse.nl>
205
206         * src/SDCCmem.c: fixed bug 1238386
207
208 2005-07-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
209
210         * src/mcs51/peeph.def: added labelrefcounting for peepholes
211           (patch #1144962), added peephole 300, enabled 259.x
212         * doc/sdccman.lyx: removed screenshot and provided link instead
213
214 2005-07-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
215
216         * doc/sdccman.lyx: added section about debugging with ddd
217         * doc/figures/ddd_example.eps: screenshot of debugging session
218
219 2005-07-04 Raphael Neider <rneider AT web.de>
220
221         * src/pic/gen.c (genPointerGet): handle pointers to CONST values
222           like CODE pointers, fixes #1115683
223         * src/pic/pcode.c (DoBankSelect): forget LastRegIdx during function
224           call, fixes bugs #1232211, #1228110,
225           fixed wrong casts to pCodeFlow from pCodeInstructions
226
227 2005-07-04 Raphael Neider <rneider AT web.de>
228
229         * src/pic/gen.c (popGet): changed assert to allow for
230           bit operands
231         * (popGetAddr): changed signature to provide
232           an additional index, patched all call sites
233         * (genCmpEq): handle literal-like operands correctly
234         * (genAddrOf): added sanity checks on __code/__data pointers
235         * (genAssign): added handling of symbols from __code section
236         * (gencjne): do not generate code for comparisons whose result
237           is neither stored nor used, fixes bug #1171114
238         * (AccLsh, AccRsh): operate on operand instead of WREG
239         * (shift{Left,Right}_Left2ResultLit): NEW, size independant
240           replacement for Shift{LR}{12}Left2Result; shift (byte/int/long)
241           by known count
242         * rewrote complete shift-by-literal logic, commented unused
243           functions out
244         * (genConstPointerGet): get multiple bytes (if result size > 1),
245           fixed handling of non-immediate addresses
246         * (genPointerGet): handle CODE pointers like CONST pointers
247         * (genpic14Code): insert C-SRC lines as Cource-pCodes
248         * ({aop,op}_isLitLike): NEW, single place to decide whether an
249           operand is to be treated as a literal or not
250         * (mov2w,genPcall,genCmpEq),
251           src/pic/genarith.c: use aop_isLitLike() to decide between
252           literal/register contents
253         * (addSign): added missing offset
254         * src/pic/gen.h: remove newline after FENTRY/FEXIT comments,
255           only emit comment in debug-mode,
256           use {aop,op}_isLitLike throughout the file
257         * src/pic/glue.c: fix initializers for pointers (work in progress)
258         * src/pic/pcode.c (get_op): honor index on _const symbols
259         * ({reset,dump}pCodeStatistics): NEW, estimate code size
260         * (dumppBlock): added pCode size estimation
261         * src/pic/ralloc.c (deassignLRs,serialRegAssign,packRegisters):
262           check for IS_SYMOP before OP_SYMBOL'ing
263         * fixed indentation, compacted switch-statements
264         * (allocReg): find free register and allocate it instead of
265           allocating new registers all the time
266         * (deassignLRs): prevent POINTER_GET's from being assigned the same
267           registers as its operands (necessary only for multibyte GETs)
268
269 2005-07-01 Raphael Neider <rneider AT web.de>
270
271         * src/pic/gen.h: added prototypes emitpComment, popGetAddr and
272           debugging .asm-output macros FENTRY + FEXIT
273         * src/pic/gen.c (Safe_vsnprintf): NEW, is there a more generic
274           way... I wonder...
275         * (emitpComment): NEW, printf to pCode
276         * (popGet): added assert on too large offsets, fixed PO_IMMEDIATE's
277           offset handling
278         * (popGetAddr): NEW, variant of popGet to access an immediates
279           high(er) bytes instead of the n'th byte of memory they reference,
280           replaced popGet with popGetAddr where neccessary
281         * (genDataPointerGet): reactivated and fixed implementation
282         * (genNearPointerGet): enabled call to genDataPointerGet, fixes array-
283           accesses
284         * (genDataPointerSet): fixed multibyte assignments
285         * (genpic14Code): fixed --i-code-in-asm handling
286         * src/pic/genarith.c: fixed PO_IMMEDIATE issue using popGetAddr,
287         * (genPlus): fixed index-out-of-bounds error
288         * src/pic/pcode.c (get_op): fixed PO_IMMEDIATE's index/offset handling
289         * src/pic/ralloc.c: added debugging output macro FENTRY2
290         * (spillThis): fixed indentation, enbraced for-body for clarity
291         * (rematStr): commented out as now unused
292         * (regTypeNum): commented out special spill case (overwrites
293           arbitrary values)
294         * fixes bugs #1229346, #1216476 (both arrays) and #1115667 (SIGSEGV)
295
296 2005-06-30 Maarten Brock <sourceforge.brock AT dse.nl>
297
298         * doc/sdccman.lyx: documented sfr16/sfr32,
299           added example for using storage class with function pointers
300         * src/mcs51/gen.c (genPlusIncr): optimized small offsets from dptr
301
302 2005-06-28 Maarten Brock <sourceforge.brock AT dse.nl>
303
304         * device/lib/_gptrget.c: also push/pop _PSBANK, added # to 0x03
305         * device/lib/_itoa.c,
306         * device/lib/_ltoa.c: optimized codesize
307         * src/SDCCsymt.c (checkSClass): added sanity check for sfr at addresses,
308           but don't know how to suppress the double warning.
309         * src/mcs51/gen.c (genPlusIncr): fixed bug when incrementing volatile int's
310         * support/Util/SDCCerr.c,
311         * support/Util/SDCCerr.h: added warning W_SFR_ABSRANGE for sanity check
312
313 2005-06-27 Maarten Brock <sourceforge.brock AT dse.nl>
314
315         * as/mcs51/asexpr.c (expr): disabled warning "not in .flat24 mode",
316           fixed old K&R prototypes
317         * as/mcs51/asout.c (outrb): always output as if generating 24bit addresses
318         * device/lib/_gptrget.c,
319         * device/lib/_gptrgetc.c,
320         * device/lib/_gptrput.c: changed versions for new memory indicator values,
321           also new versions for small generic pointers and banked generic pointers
322         * src/port.h: added const_name
323         * src/SDCC.lex: added keywords sfr16, __sfr16, sfr32, __sfr32
324         * src/SDCC.y: added tokens SFR16, SFR32 and their sfr_attributes
325         * src/SDCCcse.c (findPrevIc): check all associative operators
326         * src/SDCCglue.c (emitMaps): use CONST_NAME if defined
327         * src/SDCCicode.h: added macro IS_ASSOCIATIVE
328         * src/SDCCmem.c: updated comments,
329           set far-space to 0 for pdata, results in optimized code
330         * src/SDCCmem.h: added macro CONST_NAME
331         * src/SDCCsymt.h: renumerated generic pointer types GPTYPE_... thereby
332           moving the info into the highest bits, see also gptrget/gptrput
333         * src/src.dsp: added sdcc.ico to project files
334         * src/avr/gen.c (genCast): fixed bug 0x%d
335         * src/avr/main.c (avr_port): added "CONST (CODE)" for const_name
336         * src/ds390/gen.c (aopForRemat, adjustArithmeticResult): disconnected direct
337           relation between ptr_type and DCL_TYPE,
338           (genCast): fixed bug 0x%d
339         * src/ds390/main.c (ds390_port, tininative_port, ds400_port): added "CONST
340           (CODE)" for const_name
341         * src/hc08/gen.c (genCast): fixed bug 0x%d
342         * src/hc08/main.c (_hc08_genAssemblerPreamble): added .area ...const_name,
343           (hc08_port): added "CONST (CODE)" for const_name
344         * src/mcs51/gen.c (aopForSym): optimized pushing ACC,
345           (aopForRemat, adjustArithmeticResult): disconnected direct relation
346           between ptr_type and DCL_TYPE,
347           (aopGetUsesAcc, aopGet, aopPut): changed first parameter from asmop* to
348           operand* and took AOP() inside function so sfr-ness can be checked,
349           (all over): repaired calls to aopGetUsesAcc, aopGet, aopPut to comply with
350           new prototype,
351           (genFunction, genEndFunction): optimized stack setup,
352           (genMinus): optimized for literals with ending zeroes (in bytes),
353           (genCast): fixed bug 0x%d
354         * src/mcs51/main.c (_mcs51_keywords): added sfr16 and sfr32,
355           (mcs51_port): added "CONST (CODE)" for const_name
356         * src/mcs51/peeph.def: made rule 226 more generic
357         * src/pic/main.c (pic_port): added "CONST (CODE)" for const_name
358         * src/pic16/main.c (pic16_port): added "CONST (CODE)" for const_name
359         * src/xa51/main.c (xa51_port): added "CONST (CODE)" for const_name
360         * src/z80/main.c (z80_port): added NULL for const_name,
361           (gbz80_port): added NULL for const_name
362         * support/regression/tests/bug663539.c,
363         * support/regression/tests/sfr16.c: new tests
364
365 2005-06-25 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
366
367         * device/include/mcs51/p89v51rd2.h, device/include/mcs51/at89s53.h: added.
368
369 2005-06-24 Raphael Neider <rneider AT web.de>
370
371         * device/lib/pic16/libdev/pic18f[68][567]20.c:
372           corrected typos...
373         * device/include/pic16/signal.h: added USBIF
374           and SIG_USB
375
376 2005-06-24 Raphael Neider <rneider AT web.de>
377
378         * device/lib/pic16/libdev/pic18f2455.c,
379           device/include/pic16/pic18f2455.h: NEW
380         * device/include/pic16/pic18fregs.h,
381           device/lib/pic16/pics.all,
382           src/pic16/device.c: added 18f2455
383         * device/lib/pic16/libdev/pic18f[68][567]20.c,
384           device/include/pic16/{pic18f[68][567].h,usart.h}:
385           replaced MULTIPLE_USARTS define with more relaible
386           compatibility sfrs (for USART access)
387
388 2005-06-20 Slade Rich <slade_rich AT users.sourceforge.net>
389
390         * src/pic/pcode.c : Fixed problem when a string constant contains a "\r\n"
391           and the output asm file line is printed on two lines.
392
393 2005-06-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
394
395         * sim/ucsim/hc08.src/inst.cc (inst_condbranch): fixed simulation of
396           BGT, BLE, BHI, and BLS instructions
397         * src/hc08/gen.c (outAcc, outBitC, outBitNV, genCmpLt, genCmpGt,
398           genCmpEq): removed
399         * src/hc08/gen.c (genCmpEQorNE, genCmp, branchopCmp, nameCmp,
400           negatedCmp, exchangedCmp, genhc08Code): rewrite of comparison handling,
401           fixes bug #1216342
402         * src/hc08/peeph.def: added rules 2g - 2l for new conditional branches
403
404 2005-06-15 Raphael Neider <rneider AT web.de>
405
406         * src/pic16/NOTES: moved Vangelis from active developers to people to contact
407         * device/include/pic16/{6520.h,8520.h}: fixed configuration bits
408         * src/pic16/gen.c (): prevent iTemps from being considered to be in CODESPACE,
409           fixes bug #1221120; for symbols in CODESPACE get number of bytes to read from
410           OP_SYM_TYPE() instead of OP_SYM_ETYPE()
411
412 2005-06-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
413
414         * device/include/mcs51/reg764.h: Changed PB0 to PBO as requested by
415           Marcel Telka in bug #1215704
416
417 2005-06-02 Slade Rich <slade_rich AT users.sourceforge.net>
418
419         * src/pic/pcode.c : Changed pseudo stack size to 15 to allow WSAVE to be
420           located in shared memory bank.
421
422 2005-05-31 Raphael Neider <rneider AT web.de>
423
424         * src/pic16/{gen.c,genarith.c}: replaced sign-extension
425           "CLRF, BTFSC <signbit>, DECF/COMF" with side-effect-free
426           "CLRF, BTFSC <signbit>, SETF"; fixes "long>>9"
427
428 2005-05-27 Maarten Brock <sourceforge.brock AT dse.nl>
429
430         * device/lib/_strncpy.c: fixed the fix
431
432 2005-05-26 Raphael Neider <rneider AT web.de>
433
434         * src/pic16/glue.c (pic16_printIvalChar): fixed _constant_ string
435           initializers with \0, bug #1208187
436         * src/pic/glue.c (printIvalChar): fixed (non- and constant) string
437           intializers with \0, bug #1208187
438
439 2005-05-26 Raphael Neider <rneider AT web.de>
440
441         * src/pic16/glue.c (pic16_printIvalChar): fixed string
442           initializers with \0, bug #1208187
443         * src/pic16/main.c (_process_pragma): added sanity checks
444           for stack position and size, emit warnings when appropriate
445
446 2005-05-26 Maarten Brock <sourceforge.brock AT dse.nl>
447
448         * device/lib/_strncpy.c: fixed not filling with \0
449
450 2005-05-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
451
452         * src/SDCCast.c (funcOfType, funcOfTypeVarg, stringToSymbol,
453           createFunction),
454         * src/SDCC.y (external_definition, enumerator, parameter_declaration,
455           compound_statement),
456         * src/SDCCsymt.h,
457         * src/SDCCsymt.c (addSymChain, processFuncArgs): fixed bug #1159134
458
459 2005-05-24 Raphael Neider <rneider AT web.de>
460
461         * src/pic16/glue.c (pic16_printGPointerType): fixed #1207796
462
463 2005-05-24 Raphael Neider <rneider AT web.de>
464
465         * device/include/pic16/pic18f{442,452,458}.h: fixed wrong
466           TRISE definitions, closes bug #1162453
467
468 2005-05-22 Raphael Neider <rneider AT web.de>
469
470         * src/pic16/main.c (_process_pragma): check for missing
471           arguments to pragmas code and udata
472         * device/include/pic16/pic18f{2550,4331,4455,4520}.h:
473           consistency fixes to match other headers (thanks to Jim Paris)
474         * device/lib/pic16/libio/i2c.ignore: 18f4331 provides no I2C
475
476 2005-05-21 Maarten Brock <sourceforge.brock AT dse.nl>
477
478         * src/SDCCicode.c (isOperandEqual): fixed missing ;
479
480 2005-05-19 Maarten Brock <sourceforge.brock AT dse.nl>
481
482         * support/regression/tests/bug1198642.c: new test
483         * src/SDCCicode.c (isOperandEqual): fixed bug 1198642
484         * src/SDCCcse.c (findPrevIc): added comment, please have a look
485         * support/scripts/resource.h,
486         * support/scripts/resource.rc,
487         * src/src.dsp: added sdcc.ico to project as icon for sdcc.exe
488         * support/scripts/sdcc.ico: added 32x32 icon
489
490 2005-05-18 Raphael Neider <rneider AT web.de>
491
492         * device/lib/pic16/libdev/pic18f*.c,
493         * device/include/pic16/pic18f*.h: updated "sfr" and "at X"
494           keywords to "__sfr" and "__at (X)"
495         * device/include/pic16/pic18fregs.h: added pic18f4520
496         * src/pic16/pcode.c (pic16_pCode2str): fixed (?) bug
497           #1203088 (MPLAB compatibility)
498
499 2005-05-17 Raphael Neider <rneider AT web.de>
500
501         * device/include/pic16/pic18f{2550,4331,4455,4520}.h: NEW
502         * device/lib/pic16/libdev/pic18f{2550,4331,4455,4520}.c: NEW
503         * device/lib/pic16/pics.all: added new devices
504         * src/pic16/device.c: added support for pic18f4520
505
506 2005-05-16 Raphael Neider <rneider AT web.de>
507         * src/pic16/gen.{c,h}: s/mov2f/pic16_mov2f made public
508         * src/pic16/genarith.c (genAddLit): fixed bug 1202480
509         * src/pic16/pcode.{c,h} (pic16_newpCodeOpBit_simple): NEW
510           convenience function for bit access
511
512 2005-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
513
514         * device/lib/printf_large.c: fixed bug 1193299
515         * support/regression/tests/bug1057979.c: added test %3.3s
516
517 2005-05-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
518
519         * device/include/mcs51/8051.h,
520         * device/include/mcs51/8052.h: made parseable with lint
521         * device/include/mcs51/lint.h: added include file for (sp)lint
522         * doc/sdccman.lyx: added doc about use of splint (syntax checking tool)
523         * doc/cdbfileformat.lyx,
524         * doc/test_suite_spec.lyx: hardcoded date to the date of last text change
525
526 2005-05-14 Raphael Neider <rneider AT web.de>
527
528         * device/lib/pic16/Makefile.common.in: add --optimize-df to OPT_FLAGS
529         * device/lib/pic16/libc/stdlib/itoa.c (new)
530         * device/lib/pic16/libc/stdlib/Makefile: have itoa.c built
531         * device/lib/pic16/libio/Makefile: exclude subdir according to
532           ${subdir}.ignore for certain PICs (lacking e.g. i2c)
533         * device/lib/pic16/libio/i2c.ignore (new): pic18f1220 has no I2C support
534         * src/pic16/gen.c (genFunction): prevent annoying warning
535         * src/pic16/pcode.c: renamed stack_t to dynstack_t to prevent
536           nameclashes on BeOS
537         * support/cpp2/cppmain.c (cpp_output_string): new
538         * support/cpp2/cpplib.c (_cpp_do__Pragma): fixed _Pragma(""),
539           fixes bug 1116802
540
541 2005-05-13 Borut Razem <borut.razem AT siol.net>
542
543         * src/SDCCmain.c (linkEdit): fixed bug 1195202
544
545 2005-05-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
546
547         * .version: changed to version 2.5.1; back to bleeding edge development
548
549 2005-05-11 Borut Razem <borut.razem AT siol.net>
550
551         * doc/sdccman.lyx doc/cdbfileformat.lyx doc/test_suite_spec.lyx:
552           generate PDF version 1.3 documents
553
554 2005-05-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
555
556         * .version: changed to version 2.5.0
557
558 2005-04-27 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
559
560         * doc/sdccman.lyx: updated weblinks, index and smaller updates
561
562 2005-04-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
563
564         * doc/sdccman.lyx: changed version 2.5.0, documented --std-c89,
565         --std-sdcc89, --std-c99, --std-sdcc99, and the corresponding #pragmas, as
566         well as many smaller updates.
567         * .version: changed to version 2.5.0-pre1
568
569 2005-04-26 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
570
571         * src/SDCCmain.c (setIncludePath): added port->target to SDCC_INCLUDE_NAME
572
573 2005-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
574
575         * support/regression/tests/bug1185672.c: added
576         * src/mcs51/gen.c (aopGetUsesAcc, genCpl, genAnd, genOr, genXor): fixed
577           bug 1185672
578         * src/mcs51/gen.c (genCall): added comments, made it look safer
579         * src/mcs51/gen.c (genEndFunction): simplified
580
581 2005-04-25 Maarten Brock <sourceforge.brock AT dse.nl>
582
583         * src/mcs51/ralloc.c (serialRegAssign): fixed bug 1189609
584
585 2005-04-14 Borut Razem <borut.razem AT siol.net>
586
587         * fixed bug 1045046 - SIGSEGV with really simple code?:
588           src/pic/pcode.c (pCodeInitRegisters)- pseudo stack size increased to 16
589           src/pic/ralloc.c (typeRegWithIdx) - error message on pseudo stack overflow
590
591 2005-04-14 Borut Razem <borut.razem AT siol.net>
592
593         * src/pic16/gen.c (genInline), src/pic16/main.c (_process_pragma),
594           src/pic16/device.h: temporarily disabled experimental #inline pragma
595           for 2.5.0 release
596
597 2005-04-14 Maarten Brock <sourceforge.brock AT dse.nl>
598
599         * device/include/z80/stdio.h,
600         * device/include/z80/string.h: removed these highly incomplete files so
601           SDCC can use the default ones in device/include/
602
603 2005-04-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
604
605         * src/mcs51/gen.c (genEndFunction): removed unused variable to fix
606         gcc warning.
607         * device/lib/Makefile.in: default PORTINCDIR to the mcs51 subdir to
608         fix sdcpp warnings.
609
610 2005-04-12 Maarten Brock <sourceforge.brock AT dse.nl>
611
612         * device/include/malloc.h: removed redundant __reentrant prototypes
613         * device/lib/_mullong.c: added working xstack variant in asm (C version
614           doesn't pass regression tests)
615         * device/lib/bpx.c: used __data and made bpx char for mcs51
616         * src/SDCCast.c (decorateType): removed unused GPTYPE_IDATA,
617           (createFunction): fixed bug with xstackPtr
618         * src/SDCCcse.c: corrected comments
619         * src/SDCCopt.c (convertToFcall): fixed warning in MSVC,
620           (killDeadCode, eBBlockFromiCode): removed unused code
621         * src/SDCCsymt.h: removed unused GPTYPE_GPTR and GPTYPE_IDATA,
622           corrected comments
623         * src/mcs51/gen.c (aopForSym, aopPut, toBoolean, unsaveRegisters,
624           assignResultValue, genCall, genFunction, genEndFunction, genAnd,
625           genOr, genXor, genAddrOf): fixed several bugs concerning xstack
626           (genModOneByte): fixed warning in MSVC
627         * src/mcs51/main.c (): added comments
628         * src/mcs51/peeph.def: changed 129 to 129.a, added 129.b, 129.c & 129.d
629
630 2005-04-12 Maarten Brock <sourceforge.brock AT dse.nl>
631
632         * src/SDCCmain.c (linkEdit): oops, changed one line too many
633
634 2005-04-11 Maarten Brock <sourceforge.brock AT dse.nl>
635
636         * src/SDCCmain.c (linkEdit): fixed bug with finding crt0.o for z80
637
638 2005-04-10 Vangelis Rokas <vrokas AT users.sourceforge.net>
639
640         * src/pic16/glue.c (printIvalChar): fixed bug when emitting
641         characters arrays of larger size than the declared one.
642
643 2005-04-10 Borut Razem <borut.razem AT siol.net>
644
645         * src/pic/gen.c (genInline),
646           src/pic/pcode.c (newpCodeAsmDir), (pCode2str),
647           (genericPrint), (unlinkpCodeFromBranch), (compareLabel),
648           (findNextInstruction), (findPrevInstruction),
649           (findInstructionUsingLabel),
650           src/pic/pcode.h: fixed bug #1164907 - Labels not being recognized
651         * src/pic/pcode.c (findLabel): added missing '\n'
652         * src/src.dsp: added SDCCdwarf2.c to the project
653
654 2005-04-09 Borut Razem <borut.razem AT siol.net>
655
656         * support/scripts/sdcc.nsi: added include/hc08/* h to NSIS setup
657
658 2005-04-08 Raphael Neider <rneider AT web.de>
659
660         * src/pic16/pcode.c: added helpers defmapInsertAfter (insert a new item
661           into the chain after a given one) and mergeDefmapSymbols (combine
662           defmap entries for each symbol per pcode)
663         * (createDefmap): have defmap entries merged in the end
664         * (defmapReplaceSymRef): split defmap entries covering two accesses to
665           a symbol before replacing one access type's symbol, merge symbols in
666           the end (replacement symbol might already have an entry)
667         * (assignValnums): keep reference to written WREG intact
668
669 2005-04-08 Raphael Neider <rneider AT web.de>
670
671         * src/pic16/pcode.c (struct defmap_s): named anonymous union (for
672           Alpha)
673
674 2005-04-08 Vangelis Rokas <vrokas AT users.sourceforge.net>
675
676         * src/pic16/pcode.c (pic16_get_op2): enlarged size of array b to 128
677         bytes
678
679 2005-04-07 Raphael Neider <rneider AT web.de>
680
681         * device/include/pic16/usart.h: added compatibility defines for
682           devices with more than one USART
683         * device/include/pic16/pic18f[68][567]20.h: activated above defines
684
685 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
686
687         * device/lib/Makefile.in: updated for port specific include
688
689 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
690
691         * support/regression/ports/mcs51/spec.mk: added mcs51 include
692
693 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
694
695         * device/include/8051.h,
696         * device/include/8052.h,
697         * device/include/at89S8252.h,
698         * device/include/at89c55.h,
699         * device/include/at89x051.h,
700         * device/include/at89x51.h,
701         * device/include/at89x52.h,
702         * device/include/mcs51reg.h,
703         * device/include/reg51.h,
704         * device/include/reg764.h,
705         * device/include/regc515c.h,
706         * device/include/sab80515.h: (re)moved these 12 files
707         * device/include/mcs51/8051.h,
708         * device/include/mcs51/8052.h,
709         * device/include/mcs51/at89S8252.h,
710         * device/include/mcs51/at89c55.h,
711         * device/include/mcs51/at89x051.h,
712         * device/include/mcs51/at89x51.h,
713         * device/include/mcs51/at89x52.h,
714         * device/include/mcs51/mcs51reg.h,
715         * device/include/mcs51/reg51.h,
716         * device/include/mcs51/reg764.h,
717         * device/include/mcs51/regc515c.h,
718         * device/include/mcs51/sab80515.h: and added them here
719
720 2005-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
721
722         * device/include/stdarg.h: changed SDCC specific keywords to double
723           underlined form.
724         * device/include/stdint.h: changed intptr_t and uintptr_t for others than
725           mcs51 and ds390.
726         * device/include/hc08/mc68hc908gp32.h,
727         * device/include/hc08/mc68hc908jb8.h,
728         * device/include/hc08/mc68hc908jkjl.h,
729         * device/include/hc08/mc68hc908qy.h: fixed comments
730         * device/include/mcs51/README: updated
731         * device/include/mcs51/c8051f120.h: added PINRSF
732         * device/lib/pic16/libc/stdlib/crc16.c: fixed comments
733         * src/pic16/pcode.c: MSVC6 doesn't accept declaring new variables
734           amidst code. Also inline is not supported.
735
736 2005-04-06 Raphael Neider <rneider AT web.de>
737
738         * src/pic16/pcode.c (pic16_pCodeReplace): also update pcflow->end
739         * (createDefmap): fixed CALLs to depend on FSR1 and RETLW to restore
740           callers stack/frame pointers
741
742 2005-04-06 Vangelis Rokas <vrokas AT users.sourceforge.net>
743
744         * device/include/pic16/usart.h: added, missing in previous commit,
745         * device/include/pic16/adc.h: fixed typo,
746         * device/lib/pic16/libc/utils/cvtdec.S: added missing in previous
747         commit,
748         * device/lib/pic16/libc/stdlib/g_ftoa.S: modified to include
749         <p18fxxx.inc>
750         * device/lib/pic16/libc/stdio/streams.c: leave stdin, stdout
751         uninitialized because a bug appears with gplink
752         * device/lib/pic16/{some makefiles}: moved $(CSTD) from CFLAGS to
753         COMPILE_FLAGS and added CPPFLAGS with -nostdinc because sdcpp
754         complains for unrecognised option
755
756 2005-04-05 Raphael Neider <rneider AT web.de>
757
758         * src/pic16/gen.c (pic16_popCopyReg): made copying work for extended
759           structs as well (using memcpy)
760         * (genFunction): fixed comparison, used pCodeOpLabel to reduce warning
761           on ISRs (GOTO has no label)
762         * src/pic16/device.h: added OF_OPTIMIZE_DF
763         * src/pic16/main.c: added compiler switch --optimize-df to enable the
764           new data flow analysis/optimization
765         * src/pic16/pcode.c: added (prototypes for and implementation of)
766           dataflow analysis functions, fixed pCodeInstructions' inCond and
767           outCond values, made RCALL a branch instruction
768         * (pic16_unlinkpCode): keep C line if possible
769         * (pic16_pCodeUnlink): removed cast on left side of assignment, have
770           C line moved if possible
771         * (pic16_getRegFrompCodeOp): NEW, improved version of...
772         * (pic16_getRegFromInstruction,pic16_getRegFromInstruction2): changed
773           to use new pic16_getRegFrompCodeOp (works for more SFRs)
774         * (pic16_BuildFlow): fixed skip instructions with label (did not start
775           new flow)
776         * (pic16_getJumptabpCode): NEW, needed in...
777         * (LinkFlow): fixed handling of jumptables, calls and conditional
778           branches
779         * (pic16_InsertCommentAfter): NEW
780         * (pic16_pCodeReplace): made verbose and flow preserving
781         * (AnalyzeFlow): added call to data flow analysis
782         * src/pic16/pcode.h: added defmaps to pCodeFlow struct
783         * src/pic16/pcodeflow.h: added PCC_STATUS to mean all STATUS bits
784         * src/pic16/ralloc.c (packRegsForAssign): added return 1 in the end
785
786 2005-04-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
787
788         * src/SDCCast.c (decorateType): fixed bug #1105626
789
790 2005-04-02 Vangelis Rokas <vrokas AT users.sourceforge.net>
791
792         * device/include/asm/pic16/features.h,
793         * pic18f*.h headers,
794         * device/include/pic16/adc.h,
795         * device/include/pic16/delay.h,
796         * device/include/pic16/i2c.h,
797         * device/include/pic16/malloc.h,
798         * device/include/pic16/stdio.h,
799         * device/include/pic16/stdlib.h,
800         * device/include/pic16/string.h,
801         * device/lib/pic16/libc/stdio/printf_tiny.c,
802         * device/lib/pic16/libc/stdio/printf_small.c,
803         * device/lib/pic16/libc/stdio/strmgpsim.c,
804         * device/lib/pic16/libc/stdio/strmmssp.c,
805         * device/lib/pic16/libc/stdio/strmusart.c,
806         * device/lib/pic16/libc/stdio/vfprintf.c,
807         * device/lib/pic16/libc/stdlib/ltoa.c,
808         * device/lib/pic16/libc/stdlib/putchar.c,
809         * device/lib/pic16/libc/stdlib/x_ftoa.c,
810         * device/lib/pic16/libc/stdlib/memchrpgm.c,
811         * device/lib/pic16/libc/stdlib/memchrram.c,
812         * device/lib/pic16/libc/stdlib/memcpypgm2ram.c,
813         * device/lib/pic16/libc/stdlib/memcpyram2ram.c,
814         * device/lib/pic16/libio/adc/adcbusy.c,
815         * device/lib/pic16/libio/adc/adcread.c,
816         * device/lib/pic16/libio/adc/adcsetch.c,
817         * device/lib/pic16/libio/usart/ubaud.c,
818         * device/lib/pic16/libio/usart/ubusy.c,
819         * device/lib/pic16/libio/usart/udrdy.c,
820         * device/lib/pic16/libio/usart/uopen.c,
821         * device/lib/pic16/libio/usart/uputc.c,
822         * device/lib/pic16/libsdcc/gptr/gptrget1.c,
823         * device/lib/pic16/libsdcc/gptr/gptrget2.c,
824         * device/lib/pic16/libsdcc/gptr/gptrget3.c,
825         * device/lib/pic16/libsdcc/gptr/gptrget4.c,
826         * device/lib/pic16/libsdcc/gptr/gptrput1.c,
827         * device/lib/pic16/libsdcc/gptr/gptrput2.c,
828         * device/lib/pic16/libsdcc/gptr/gptrput3.c,
829         * device/lib/pic16/libsdcc/gptr/gptrput4.c: modified all SDCC
830         specific keywords to double underlined form,
831         * device/lib/pic16/libc/Makefile.rules,
832         * device/lib/pic16/libsdcc/Makefile.rules,
833         * device/lib/pic16/libm/Makefile,
834         * device/lib/pic16/libio/Makefile.rules: added CSTD macro in CFLAGS
835         to compile with C standard set in Makefile.common
836         * device/lib/pic16/libc/stdlib/Makefile: added new C sources
837         rand.c and crc.c in compilation process,
838         * device/lib/pic16/libsdcc/int/divuint.c,
839         * device/lib/pic16/libsdcc/long/divulong.c: changed declaration of
840         `c' from signed to unsigned,
841         * device/lib/pic16/startup/crt0.c,
842         * device/lib/pic16/startup/crt0i.c,
843         * device/lib/pic16/startup/crt0iz.c: adopted to all SDCC specific
844         keywords to double underlined form, bug fixes in _do_cinit function
845         which prevented the correct initialization of the .idata segment,
846         * src/pic16/pcoderegs.c (insideLRBlock): fixed a bug that caused the
847         core to enter a infinite loop
848         * device/lib/pic16/libc/stdlib/rand.c, crc.c: new files
849
850 2005-04-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
851
852         * src/SDCCicode.c (getArraySizePtr): fixed bug #1122171
853
854 2005-04-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
855
856         * device/include/Makefile.in: add support for hc08 subdirectory
857         * device/include/hc08/: new subdirectory
858         * device/include/hc08/mc68hc908jkjl.h: new header contributed by
859         Lucas Loizaga, thanks!
860         * device/include/hc08/mc68hc908qy.h,
861         * device/include/hc08/mc68hc908gp32.h,
862         * device/include/hc08/mc68hc908jb8.h: moved hc08 register defs to
863         their own directory. Changed internal macro names to use the compiler
864         reserved namespace. Changed SDCC specific keywords to double
865         underlined form.
866         * device/include/math.h,
867         * device/include/malloc.h,
868         * device/include/stdarg.h,
869         * device/include/stdbool.h
870         * device/include/string.h,
871         * device/include/tinibios.h,
872         * device/include/ds400rom.h,
873         * device/include/8051.h,
874         * device/include/8052.h,
875         * device/include/80c51xa.h,
876         * device/include/at89c55.h,
877         * device/include/at89S8252.h,
878         * device/include/at89x51.h,
879         * device/include/at89x52.h,
880         * device/include/ds80c390.h,
881         * device/include/reg764.h,
882         * device/include/regc515c.h,
883         * device/include/sab80515.h,
884         * device/include/mcs51/c8051f000.h,
885         * device/include/mcs51/c8051f018.h,
886         * device/include/mcs51/c8051f020.h,
887         * device/include/mcs51/c8051f040.h,
888         * device/include/mcs51/c8051f060.h,
889         * device/include/mcs51/c8051f120.h,
890         * device/include/mcs51/c8051f300.h,
891         * device/include/mcs51/c8051f310.h,
892         * device/include/mcs51/c8051f320.h,
893         * device/include/mcs51/c8051f330.h,
894         * device/include/mcs51/c8051f350.h,
895         * device/include/z180.h: Changed SDCC specific keywords to double
896         underlined form.
897
898 2005-03-31 Vangelis Rokas <vrokas AT users.sourceforge.net>
899
900         * src/pic16/device.c (Pics16[]): added devices 18F2550, 18F4331,
901         18F4455,
902         * (pic16_assignConfigWordValue): disable testing of configuration
903         register value with config mask,
904         * src/pic16/gen.c (pic16_testStackOverflow): prefix stack test
905         function with port->fun_prefix,
906         * (genFunction): when generating a naked interrupt function never
907         create an absolute segment placed in interrupt vector address, place
908         the actual interrupt function at IVA instead, when an interrupt
909         function is generated with unspecified interrupt then do not create
910         the absolute section,
911         * (genGenPointerGet, genGenPointerSet, genPackBits): replace all
912         code for generating a call to generic pointer get/put function with
913         a call to function pic16_callGenericPointer(),
914         * src/pic16/genutils.c (pic16_callGenericPointerRW): NEW, generates
915         the call to the generic pointer get/put functions with prefixing the
916         function name with port->fun_prefix,
917         * src/pic16/glue.c (pic16glue): ifdef-out test of OF_LR_SUPPORT,
918         * src/pic16/main.c (_process_pragma): prefix function with
919         port->fun_prefix,
920         * (_pic16_finaliseOptions): define macro __18Fxxxx macro when
921         calling assembler, old 18Fxxxx macro is deprecated,
922         * src/pic16/pcode.c (unlinkpCodeFromBranch): added PC_INLINE and
923         PC_ASMDIR in while condition,
924         * (findInstruction): add PC_ASMDIR in while condition,
925         * (buildCallTree): prefix main with port->fun_prefix,
926         * (pic16_pCode2str): fixed bug that didn't emit the memory access
927         identifier for variable with banked access in instructions BTFSS,
928         BTFSC, BCF, BSF, BTG
929         * (AnalyzeFlow): moved call to OptimizepCode to pic16_AnalyzeBanking,
930         * src/pic16/pcodepeep.c (pCodeOpCompare): increase size of b to 1024,
931         * src/pic16/pcoderegs.c (pic16_pCodeRegoptimizeRegUsage): don't
932         perform optimization when enviroment variable NO_REG_OPT is set,
933         * (insideLRBlock): NEW, return 1 if register is inside an
934         INF_LOCALREGS block,
935         * (RemoveRegFromLRBlock): remove a register that is completely
936         eliminated by register optimization, but it is still left in local
937         register store/restore in/from stack block,
938         * (Remove2pcodes): after removing register, check to see if it
939         should be removed from local register store/restore in/from stack
940         block,
941         * src/pic16/ralloc.c (pic16_decodeOp): added decode for
942         DUMMY_READ_VOLATILE,
943
944         * device/include/pic16/adc.h: minor prototype modifications and
945         update,
946         * device/include/pic16/malloc.h: added GPL notice various
947         modifications,
948         * device/include/pic16/stdint.h: NEW, standard header for ints
949         * device/include/pic16/delay.h: NEW, header for delay functions,
950         delay10tcy, delay100tcy, delay1ktcy, delay10ktcy, delay100ktcy,
951         delay1mtcy,
952         * device/include/pic16/signal.h: NEW, header providing helper macros
953         for implementing signal handlers,
954         * device/include/pic16/stdio.h: added prototypes for functions,
955         printf, vprintf, sprintf, vsprintf, fprintf, vfprintf. Added
956         prototypes for stdin and stdout, added macro PUTCHAR to
957         automatically implement putchar function prototype,
958         * device/include/pic16/usart.h: modified and updated USART library,
959         * device/lib/pic16/libio/adc/,
960         * device/lib/pic16/libio/i2c: some modifications to improve library
961         performance,
962         * device/lib/pic16/libc/stdio/: modifications for the new printf*
963         family of functions,
964         * device/lib/pic16/libc/stdlib/: various modifications in the malloc
965         family of functions and other sources,
966         * device/lib/pic16/libio/usart/: NEW, c sources for the usart module
967         of the PIC18Fxx[28] devices,
968         * device/lib/pic16/libc/delay/: NEW, c sources for the delay functions,
969         * device/lib/pic16/libc/utils/: minor modifications in the .S sources,
970         * device/lib/pic16/startup/{crt0i.c, crt0iz.c}: redesign of the
971         _do_cinit function, because the previous failed when local variables
972         where not placed in the same memory bank,
973         * device/lib/pic16/libsdcc/char/: various modifications to improve
974         library performance,
975         * doc/sdccman.lyx: some reorganization of the PIC16 part, added many
976         information on the new functions of the c library and more...
977
978 2005-03-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
979
980         * src/SDCCBBlock.c (iCodeBreakDown): fixed bug #1170212
981
982 2005-03-26 Raphael Neider <rneider AT web.de>
983
984         * src/pic16/gen.c (genSkipc): fixed semantics (execute branch
985           if condition == CARRY)
986         * (genCmp): adapted to new genSkipc semantics
987         * src/pic16/genutils.c (pic6_genCmp_special): removed side effect
988           on rIfx (genCmp was broken)
989
990 2005-03-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
991
992         * src/SDCCmain.c (setDefaultOptions, optionsTable[], parseCmdLine),
993         * src/z80/main.c (_keywords[]),
994         * src/SDCCglobal.h (struct options),
995         * src/SDCC.y,
996         * src/SDCC.lex (isTargetKeyword, doPragma, pragma_tbl[]): new pragmas
997         to enable/disable SDCC and C99 extensions/keywords (std_c89, std_sdcc89,
998         std_c99, std_sdcc99). Also, equivalent command line options (--std-c89,
999         --std-sdcc89, --std-c99, --std-sdcc99). SDCC specific keywords are
1000         always available in leading double underscore form. The C99 support is
1001         mostly missing, but it's a start.
1002         * support/regression/tests/bug-227710.c: fixed nonconforming use of
1003         reserved identifier "__data".
1004
1005 2005-03-24 Maarten Brock <sourceforge.brock AT dse.nl>
1006
1007         * src/mcs51/peeph.def: fixed bug 1170013
1008
1009 2005-03-22 Maarten Brock <sourceforge.brock AT dse.nl>
1010
1011         * device/include/mcs51reg.h: fixed bug 842007
1012
1013 2005-03-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1014
1015         * src/SDCCcflow.c (dfNumCompare): committed the wrong version of this
1016         last time.
1017
1018 2005-03-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1019
1020         * src/port.h (struct PORT),
1021         * src/avr/ralloc.c (avr_assignRegisters),
1022         * src/avr/main.c,
1023         * src/ds390/ralloc.c (ds390_assignRegisters),
1024         * src/ds390/main.c,
1025         * src/hc08/ralloc.c (hc08_assignRegisters),
1026         * src/hc08/main.c,
1027         * src/mcs51/ralloc.c (mcs51_assignRegisters),
1028         * src/mcs51/main.c,
1029         * src/pic/ralloc.c (pic14_assignRegisters),
1030         * src/pic/main.c,
1031         * src/pic16/ralloc.c (pic16_assignRegisters),
1032         * src/pic16/main.c,
1033         * src/xa51/ralloc.c (xa51_assignRegisters),
1034         * src/xa51/main.c,
1035         * src/z80/ralloc.c (z80_assignRegisters),
1036         * src/z80/ralloc.h,
1037         * src/SDCCopt.c (eBBlockFromiCode, replaceRegEqv, killDeadCode),
1038         * src/SDCCcse.c (ifxOptimize, cseBBlock, cseAllBlocks),
1039         * src/SDCCcse.h,
1040         * src/SDCCdflow.c (computeDataFlow),
1041         * src/SDCCdflow.h,
1042         * src/SDCCloop.c (addDefInExprs, loopInvariants, loopOptimizations),
1043         * src/SDCCloop.h,
1044         * src/SDCCcflow.c (*),
1045         * src/SDCCcflow.h,
1046         * src/SDCCBBlock.c (iCodeBreakDown, dumpEbbsToFileExt, eBBWithEntryLabel),
1047         * src/SDCCBBlock.h (struct ebbIndex): new struct that keeps two copies
1048         of the eBBlock list, sorted by both bbnum and dfnum. (fixes bug with
1049         immedDom() returning wrong block; probably fixes bug #1160833)
1050
1051 2005-03-20 Borut Razem <borut.razem AT siol.net>
1052
1053         * support/scripts/inc2h.pl: WIN32 port
1054
1055 2005-03-19 Maarten Brock <sourceforge.brock AT dse.nl>
1056
1057         * device/lib/makefile.in: added abs.c and labs.c
1058
1059 2005-03-17 Maarten Brock <sourceforge.brock AT dse.nl>
1060
1061         * device/include/stdint.h: added
1062         * device/lib/abs.c: added
1063         * device/lib/labs.c: added
1064         * device/include/stdlib.h: added abs() and labs() prototypes
1065         * device/lib/libsdcc.lib: added abs and labs
1066         * device/include/float.h,
1067         * device/lib/_fsmul.c,
1068         * device/lib/printf_fast.c,
1069         * device/lib/printf_tiny.c: updated comments
1070
1071 2005-03-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1072
1073         * src/SDCCicode.c (geniCodeSwitch, geniCodeJumpTable): fixed
1074         bug #1164313
1075
1076 2005-03-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1077
1078         * src/SDCCcse.c (cseBBlock): retain assignment to self when volatile
1079         * src/SDCCast.c (isLoopCountable): fixed bug #1161985
1080
1081 2005-03-15 Maarten Brock <sourceforge.brock AT dse.nl>
1082
1083         * device/lib/printf_large.c: removed inline assembly for portability and
1084           readability. Use printf_fast if speed or size are more important.
1085         * src/pic16/gen.c: removed conditions around use of DEBUGpc
1086         * src/pic16/genutils.h: added define for DEBUGpc for MSVC
1087
1088 2005-03-15 Vangelis Rokas <vrokas AT users.sourceforge.net>
1089
1090         * src/pic16/genutils.c (pic16_genCmp_special): initialized offs to
1091         prevent compiler warning
1092
1093 2005-03-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
1094
1095         * device/lib/pic16/startup/crt0i.c (_cinit): local variables where
1096         moved to level 0 and declared as static. Also they are explicit
1097         placed in access bank. This was necessery because some times they
1098         might cross memory bank boundaries. crt0iz.c is *NOT* updated!!!
1099         * src/pic16/device.h: added flag OPTIMIZE_CMP to enable some compare
1100         optimizations. Currently only compare to unsigned char is implemented,
1101         * src/pic16/gen.c: added fReturnIdx array,
1102         * (struct resolvedIfx) is moved to gen.h and made public,
1103         * (struct _G): added sregsAlloc and sregsAllocSet fields,
1104         * (aopForSym): added an optimization to directly store in stack of
1105         the operand of a SEND iCode,
1106         * (pic16_aopOp): don't return return registers as strings (AOP_STR)
1107         but as registers instead (AOP_REG) using the fReturnIdx array,
1108         * (pic16_freeAsmop): remove the freed register from the
1109         _G.sregsAlloc field,
1110         * (pic16_aopGet): in case AOP_STR, the compare to 'a' is changed to
1111         a compare of 'WREG',
1112         * (pic16_popGetTempRegCond): changed function prototype, now
1113         function takes also a bitVector argument v which holds the current
1114         set of registers that are allocated for stack access by aopForSym,
1115         registers allocated in aopForSym for accessing stack symbols are not
1116         any more part of the functions usedRegs field,
1117         * (genCall): some times aopOp is called for a stack variable to be
1118         send, aopForSym might perform the push, if this is true make sure
1119         that genCall doesn't push the variable twice by testing _G.resDirect,
1120         * (genFunction): changed testing for unspecified interrupt number
1121         from 256 to INTNO_UNSPEC,
1122         * modified selection scheme of frame pointer generation. Previously
1123         if function did use local registers a frame pointer was generated,
1124         now a frame pointer is generated only if function has arguments
1125         (that need PLUSW2 register access), or has stack arguments, or the
1126         compiler is not instructed to omit the frame pointer,
1127         * (genEndFunction): before restoring local registers that were saved
1128         in the function preamble, also restore the registers that *might*
1129         have been allocated for stack access,
1130         * (genRet): removed some old comments,
1131         * (genCmp, the active (RN's) version): added a call to the
1132         pic16_genCmp_special function to perform the compare with a more
1133         robust and optimized way,
1134         * (genInline): a feature has been added in inline code generation,
1135         which allows a wildcard variable substitution when writing inline
1136         assembly. Code is incomplete and experimental therefore undocumented,
1137         * (genCast): changed order of aopOp for result and right to allow
1138         aopForSym to directly load the result if possible,
1139         * src/pic16/genutils.c (selectCompareOp, pic16_genCmp_special): NEW,
1140         perform an optimized compare on some selected special occasions,
1141         * src/pic16/genutils.h: declaration of resolvedIfx structure from gen.c,
1142         * src/pic16/glue.c (pic16createInterrupVect): make sure we never
1143         generate an IVT any more,
1144         * src/pic16/main.c (pic16_optionsTable): added command line option
1145         --optimize-cmp,
1146         * (_pic16_initPaths): when calling C preprocessor define pic18fXXXX
1147         macro too, when calling assembler define pic18fXXXX *and* __18Fxxxx
1148         macros,
1149         * src/pic16/NOTES: Raphael Neider added in list of active developers
1150         * src/pic16/pcode.c (OPT_TYPE_STR): added strings jumptable_begin and
1151         jumptable_end to prevent bug #,
1152         * (pic16_pciADDWFC, ADDFWC, COMF, CLRF): added some missing flags in
1153         inCond and outCond fields,
1154         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): add a fix for bug #,
1155         * src/pic16/ralloc.c (serialRegAssign): explicit set willCS to 0 to
1156         turn off register spilling,
1157         * (packRegsForOneUse): synced with other ports' versions although it
1158         is not used currently,
1159         * (pic16_packRegisters): added an optimization while reading
1160         structure bitfields, some registers may be saved (malloc code is
1161         decreased by 80 bytes)
1162
1163 2005-03-12 Vangelis Rokas <vrokas AT users.sourceforge.net>
1164
1165         * src/SDCCcse.c (cseBBlock): inside 'do operand lookup' loop test if
1166         left is a bitfield, if yes, then don't optimize assignment. Perhaps
1167         this can be optimized more?
1168
1169 2005-03-10 Raphael Neider <rneider AT web.de>
1170
1171         * src/pic16/gen.c (pic16_loadFSR0, genPackBits, genUnpackBits,
1172           genNearPointerGet): (hopefully) fixed access to bitfields via
1173           pointers (p->bitN = x; and x = p->bitN; failed)
1174
1175 2005-03-09 Paul Stoffregen <paul AT pjrc.com>
1176
1177         * device/lib/printf_fast.c: fix leading zero format, eg "%02d"
1178
1179 2005-03-09 Raphael Neider <rneider AT web.de>
1180
1181         * src/SDCCopt.c (killDeadCode): fixed bug #1156016
1182
1183 2005-03-06 Maarten Brock <sourceforge.brock AT dse.nl>
1184
1185         * src/SDCCicode.h: moved CRITICAL and ENDCRITICAL from SKIP_IC2 to SKIP_IC
1186         * src/mcs51/ralloc.c (willCauseSpill): added check for REG_BIT type,
1187           (regTypeNum): set REG_BIT type if necessary
1188         * src/mcs51/ralloc.h: added define REG_BIT, used to fix bug 1144613
1189         * support/regression/tests/critical.c: check bug 1144613
1190
1191 2005-03-02 Raphael Neider <rneider AT web.de>
1192
1193         * src/pic16/gen.c (genRightShiftLiteral): fixed bug #1154256
1194
1195 2005-02-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1196
1197         * src/avr/ralloc.c (serialRegAssign),
1198         * src/ds390/ralloc.c (serialRegAssign),
1199         * src/hc08/ralloc.c (serialRegAssign),
1200         * src/mcs51/ralloc.c (serialRegAssign),
1201         * src/pic/ralloc.c (serialRegAssign),
1202         * src/pic16/ralloc.c (serialRegAssign),
1203         * src/xa51/ralloc.c (serialRegAssign),
1204         * src/z80/ralloc.c (serialRegAssign): fixed bug #1105154
1205
1206 2005-02-22 Maarten Brock <sourceforge.brock AT dse.nl>
1207
1208         * src/SDCCast.c (decorateType): fixed bug 1124787
1209
1210 2005-02-20 Hubert Sack <sack AT digiplan.de>
1211         committed by Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1212
1213         * src/mcs51/peeph.def: added peepholes 3.h-k and 132.a-f from
1214         patch #1121755
1215
1216 2005-02-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1217
1218         * src/SDCCpeeph.def: new keyword "labelRefCountChange" which allows peepholes
1219         to keep the correct label reference count when adding/removing references
1220         to labels. A peephole file using this is appended to patch #1144962.
1221
1222 2005-02-14 Raphael Neider <rneider AT web.de>
1223
1224         * device/lib/pic16/libc/string/memccpy.c: changed 3rd argument to char
1225         * src/SDCC.lex (process_pragma): fixed to make disable_warning work for PIC16
1226         * src/pic16/gen.c (aopForSym, calls to pic16_aopOp): prevent unneccessary
1227           retrievals of result operand's value on assignment
1228
1229 2005-02-13 Vangelis Rokas <vrokas AT otenet.gr>
1230
1231         * device/include/pic16/string.h: modified prototype for memccpy()
1232         to memccpy(void *, void *, char, size_t)
1233         * src/pic16/gen.c (genFunction, genEndFunction): reenable if-case to
1234         check whether to omit frame pointer or not,
1235         * (genInline): convert all occurences of "\n" to LF in inline
1236         assembler blocks, this helps formatting the inline text,
1237         * (pic16_loadFSR0): modified prototype,
1238         * (genNearPointerGet, genNearPointerSet): reorganization of code,
1239         removed some 8051 legacy code,
1240         * (genPackBits): enabled handling bitfields exceeding one byte in size,
1241         * src/pic16/ralloc.c (pic16_assignRegisters): clear dynrIdx variable
1242         before allocating temporary registers in functions,
1243
1244 2005-02-11 Maarten Brock <sourceforge.brock AT dse.nl>
1245
1246         * support/regression/tests/bitvars.c: corrected the "fix"
1247
1248 2005-02-10 Maarten Brock <sourceforge.brock AT dse.nl>
1249
1250         * support/regression/tests/bitvars.c,
1251         * support/regression/tests/bitwise.c,
1252         * support/regression/tests/rotate.c: "fixed" problems on Alpha
1253
1254 2005-02-10 Raphael Neider <rneider AT web.de>
1255
1256         * src/pic16/pcode.c (assignToSameBank) : fixed cast to pointer of
1257           different size for Alpha
1258         * src/pic16/gen.c (genCmpEq) : improved compare with 0
1259
1260 2005-02-09 Raphael Neider <rneider AT web.de>
1261
1262         * src/SDCC.lex(doPragma) : save and restore warning options as well
1263           (also added new stack plus clone- and copyAndFreeSDCCERRG())
1264         * have #pragma less_pedantic set the errorlevel to WARNING
1265           (fixes #1117001)
1266         * (cloneOptimize) : fixed wrong malloc's size
1267         * support/Util/SDCCerr.[ch] : made SDCCERRG globally accessible to
1268           facilitate correct handling of #pragma (save|restore)
1269
1270 2005-02-09 Maarten Brock <sourceforge.brock AT dse.nl>
1271
1272         * src/mcs51/gen.c: removed non-standard C nameless struct/union
1273
1274 2005-02-04 Slade Rich <slade_rich AT users.sourceforge.net>
1275
1276         * src/pic/gen.c : Fix for bugs #1080519 & #1115662.
1277
1278 2005-02-03 Maarten Brock <sourceforge.brock AT dse.nl>
1279
1280         * device/include/mcs51/c8051f120.h: added declarations for sbit port 2,3&4
1281
1282 2005-02-02 Raphael Neider <rneider AT web.de>
1283
1284         * src/SDCCast.c (processParms): disabled W_NONRENT_ARGS for pic16 port
1285         * src/pic16/gen.c (aopForSym): reenabled special case for function pointers
1286         * (pic16_storeForReturn): fixed to allow returning function pointers
1287         * (genPackBits): improved accessing full bytes, implemented for GPOINTERs
1288         * device/include/pic16/{stddef.h,stdbool.h}: added
1289
1290 2005-02-02 Maarten Brock <sourceforge.brock AT dse.nl>
1291
1292         * device/include/mcs51/c8051f040.h: added define CPT2_PAGE
1293
1294 2005-02-01 Slade Rich <slade_rich AT users.sourceforge.net>
1295
1296         * src/pic16/pic16.dsp : Added file graph.c to make it compile under windows
1297         * src/pic16/Makefile.bcc : Do not use this file but added file graph.c as it
1298          appeared to be required
1299
1300 2005-01-31 Borut Razem <borut.razem AT siol.net>
1301
1302         * support/scripts/sdcc.nsi: added include/asm/ds390, include/asm/mcs51,
1303           include/mcs51 and include/z80 directories to the package
1304
1305 2005-01-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1306
1307         * src/hc08/gen.c (genFunction): fixed bug #1112752
1308
1309 2005-01-30 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1310
1311         * src/mcs51/peeph.def: adapted peephole 258.x to changed gen.c (genAnd)
1312
1313 2005-01-29 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1314
1315         * src/mcs51/gen.c (genAnd): accessing LSB/MSB by rotating acc
1316
1317 2005-01-29 Maarten Brock <sourceforge.brock AT dse.nl>
1318
1319         * device/include/Makefile.in: create/copy mcs51 and z80 include subdirs
1320
1321 2005-01-27 Maarten Brock <sourceforge.brock AT dse.nl>
1322
1323         * device/include/c8051fxxx.h: removed these 6 files
1324         * device/include/mcs51/c8051fxxx.h: added these 11 new files
1325
1326 2005-01-26 Raphael Neider <rneider AT web.de>
1327
1328         * src/pic16/gen.c (genAssign): fixed assignment from longs
1329           in codespace (were cut to three bytes)
1330         * (genDummyRead): implemented (except for CODESPACE...),
1331           fixed bug #1108575
1332         * src/pic16/glue.c (emitStatistics): beautified
1333         * device/lib/pic16/libm/Makefile: added include path
1334
1335 2005-01-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1336
1337         * src/z80/gen.c (aopPut): fixed bug #1103902
1338
1339 2005-01-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1340
1341         * device/lib/expf.c: fixed bug #1095792
1342
1343 2005-01-24 Vangelis Rokas <vrokas AT otenet.gr>
1344
1345         * device/lib/pic16/libm: added Math library sources
1346
1347 2005-01-24 Raphael Neider <rneider AT web.de>
1348
1349         * src/pic16/pcode.h: added second memory operand to pCodeOpReg
1350           to enable upcast to pCodeOpReg2 (there is no type tag to
1351           differenciate the two and pic16_popGet2p cast into PCOR2)
1352         * src/pic16/main.c (_process_pragma): fixed another malloc bug
1353           (sizeof(sectNames) changed to sizeof(sectName))
1354           Both patches fix segfaults under MinGW.
1355
1356 2005-01-23 Raphael Neider <rneider AT web.de>
1357
1358         * src/pic16/{device.c,pcode.c}: s/free/Safe_free/g for
1359           Safe_[mc]?alloc()'ed variables
1360         * src/pic16/gen.c (pic16_aopOp,pic16_popGet): added handling
1361           of (byte sized) temporaries (assign them to WREG for now)
1362         * src/pic16/main.c (_process_pragma): fixed nasty malloc bug
1363           (used sizeof(set *sectSyms) instead of sizeof(struct sectSym)),
1364           this might fix SIGSEGVs on MinGW...
1365         * src/SDCCopt.c (killDeadCode): restored original behaviour
1366           (volatile operands might get thrown away though)
1367
1368 2005-01-23 Vangelis Rokas <vrokas AT otenet.gr>
1369
1370         * src/pic16/gen.c: fixed bug #1106975,
1371         * src/pic16/gen.c: fixed possible bug #1102572, now during TOS
1372         pointer update, INTCON is saved, global interrupts are disabled and
1373         restored after updateing TOS.
1374         * src/SDCC.y, src/SDCC.lex, src/SDCCsymt.c, src/SDCCsymt.h:
1375         * added function attribute 'shadowregs' to take advantage of shadow
1376         registers,
1377         * added function attribute 'wparam' as an alternative to the wparam
1378         pragma,
1379         * support/Utils/SDCCerr.[ch]: added error E_SHADOWREGS_NO_ISR when
1380         user declares a non-ISR function as 'shadowregs',
1381         * doc/sdccman.lyx: updated to reflect recent changes of pic16 port
1382
1383 2005-01-22 Vangelis Rokas <vrokas AT otenet.gr>
1384
1385         * .version: bumped version number to 2.4.8
1386         * device/lib/pic16/pics.all: list of PIC18F devices supported by
1387         pic16 port,
1388         * device/lib/pic16/libio/i2c/: I2C module support library,
1389         * device/include/pic16/i2c.h: I2C support library header,
1390         * device/lib/pic16/libc/stdio/: standard IO support sources,
1391         * (printf_small.c): printf_small() source, supports float print,
1392         * (printf_tiny.c): printf_tiny() source, does not support floats,
1393         * device/lib/pic16/Makefile.common.in: added OPT_FLAGS macro to
1394         enable global optimizations for entire library source, other
1395         Makefiles in the source tree are also modified to reflect this,
1396         * device/lib/pic16/libc/stdlib/putchar.c (putchar): dummy putchar()
1397         function,
1398         * doc/sdccman.lyx: updated to reflect new changes,
1399         * src/pic16/gen.c (aopForSym): don't handle sym->iaccess in
1400         sym->onStack if-case,
1401         * src/pic16/main.c (_pic16_keywords): commented out keywords bit,
1402         sbit, idata, _idata, xdata, _xdata,
1403         * added pragma library, to link an external library, (see doc),
1404         * removed command line options, --pomit-config-words, --pomit-ivt,
1405         --pleave-reset-vector,
1406         * (pic16_finaliseOptions): when define macro SDCC_MODEL_{SMALL/LARGE}
1407         when calling assembler to reflect memory model used, also define
1408         macro STACK_MODEL_{SMALL/LARGE} when compiling and assembling to
1409         reflect stack model used,
1410         * src/pic16/ralloc.c (pic16_allocDirReg): when operand is allocated
1411         on stack return NULL,
1412
1413 2005-01-22 Daniel Winkler <post AT danielwinkler.de>
1414
1415         * src/SDCCopt.c (killDeadCode): do not throw iCodes away if one
1416           of the operands is volatile. Fixes #1020220
1417
1418 2005-01-22 Daniel Winkler <post AT danielwinkler.de>
1419
1420         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): reenabled optimization
1421         * (OptimizeRegUsage): make sure that there is really no other flow where
1422           the first pCode is used
1423
1424 2005-01-22 Raphael Neider <rneider AT web.de>
1425
1426         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): disabled optimization
1427           to fix #1106967 (pCode->seq are not set up correctly)
1428
1429 2005-01-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1430
1431         * src/SDCCglue.c (glue): make sure code area is declared before the
1432         static initialization area.
1433
1434 2005-01-21 Raphael Neider <rneider AT web.de>
1435
1436         * device/lib/Makefile.in: fixed test for pic16 install dir
1437         * device/lib/pic16/*/Makefile*: modified compile flags to enable
1438           optimizations
1439         * doc/sdccman.lyx: updated banksel optimization, removed --flr-support and
1440           added --optimize-goto compiler switch and pragma wparam documentation
1441         * src/pic16/pcode.c (pic16_OptimizeBanksel): removed statistics dump
1442         * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): fixed copying of WREG, PRODL
1443           and PRODH closing bug #1071770 (peephole optimizer)
1444
1445 2005-01-19 Raphael Neider <rneider AT web.de>
1446
1447         * src/SDCCglobl.h: ensure that PATH_MAX >= 2048 to guarantee
1448           cmdLine buffers (used when calling sdcpp...) are large enough
1449           (MAX_PATH=256 truncates arguments leading to system halts when
1450           used in MinGW...)
1451         * src/pic16/gen.c (pic16_sameRegs): relaxed size criterion
1452         * (genUminus): rewritten to for efficiency
1453         * (genNearPointer[GS]et): enforce reloading of FSR0 (was still
1454           used uninitialized in some cases)
1455         * (genCast): upcasting a 16bit int to a 24bit GPOINTER may not
1456           copy the third byte from the int -- now assumes 0x80 (data memory)
1457         * src/pic16/genarith.c (pic16_genPlus): fixed bug when swapping
1458           operands (genAddLit expects the iCode's operands to swapped as
1459           well), fixed leftover bytes (crashed for short left operands)
1460         * (pic16_genMinusDec): performance improvements, removed false
1461           PIC14 emitSKPNCs
1462         * (pic16_genMinus): fixed to cope with differently sized operands
1463         * src/pic16/glue.c (pic16_glue): added new banksel optimization
1464           for --obanksel > 1
1465         * src/pic16/pcode.c: implemented (first phase of) banksel optimization
1466         * src/pic16/graph.[ch]: implementation of directed graphs, used by
1467           new banksel optimization
1468         * src/pic16/pcoderegs.c (pCodeRegMapLiveRangesInFlow): prevented
1469           analysis for temporary registers (segfaults...)
1470         * src/pic16/peeph.def: added rule
1471
1472 2005-01-18 Vangelis Rokas <vrokas AT otenet.gr>
1473
1474         * device/lib/pic16/libc/stdlib/x_ftoa.c: it defines x_ftoa function
1475         which converts a float number to its ASCII representation
1476         * device/lib/pic16/libc/utils/cnvfrac.S,cnvint.S: support
1477         functions to convert the fractional and integer part of a float to ASCII,
1478         * device/lib/pic16/libc/stdlib/(calloc.c,free.c, malloc.c,
1479         realloc.c): added _MALLOC_SPEC to explicit place variables in data
1480         ram
1481         * device/include/asm/pic16/features.h: added _CODE, _DATA, _AUTOMEM,
1482         _STATMEM macros,
1483         * device/include/pic16/adc.h: added GPL info,
1484         * src/pic16/gen.c (genIfxpCOpJump): perform an genIfxJump but using
1485         a pCodeOp as tested operand,
1486         * (genNearPointerGet): optimized bit testing, does not use
1487         intermediate register for bit value, test directly instead with
1488         BTFSS, BTFSC, works only for single bits,
1489         * (genpic16Code): dump the name of the iCode in the asm,
1490         * src/pic16/ralloc.c (decodeOp): removed static declaration and
1491         renamed to pic16_decodeOp,
1492         * (serialRegAssign): do not allocate a temporary register for iCode
1493         sequences that test a single bit for 1/0
1494
1495 2005-01-12 Vangelis Rokas <vrokas AT otenet.gr>
1496
1497         * src/pic16/pcode.[ch]: introduced pic16_stackpnt_*,
1498         pic16_framepnt_*, pic16_stack_*, pic1_frame_* pointer variables to
1499         access stack and frame pointers. They are initially assigned to
1500         point at pic16_pc_fsr1[lh] and pic16_pc_fsr2[lh] variables and other
1501         accessing SFRs. Updated all occurences of modification of stack or
1502         frame pointer in gen.c and pcode.c,
1503         * src/pic16/ralloc.c (serialRegAssign): fixed two bugs with
1504         assigning of a literal value to pointers,
1505         * src/pic16/main.c (pic16_finiliseOptions): set pre-processor define
1506         flag STACK_MODEL_SMALL or STACK_MODEL_LARGE according to the model
1507         selected
1508
1509 2005-01-11 Vangelis Rokas <vrokas AT otenet.gr>
1510
1511         * doc/sdccman.lyx: update documentation about stack pragma, added
1512         some info for stack memory models
1513
1514 2005-01-08 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
1515
1516         * src/pic16/gen.c (DEBUGpc): MSVC 6 does not support macro variable arguments
1517
1518 2005-01-08 Raphael Neider <rneider AT web.de>
1519
1520         * src/pic16/device.c (pic16_dump_usection): changed naming scheme for
1521           udata sections to fix bug #1097823
1522
1523 2005-01-05 Raphael Neider <rneider AT web.de>
1524
1525         * src/pic16/gen.c (genGenericShift): added handling of differently
1526           sized left operand and result
1527
1528 2005-01-04 Raphael Neider <rneider AT web.de>
1529
1530         * src/pic16/gen.c (genIfxJump): fixed inverted skips on CARRY
1531         * (genIfx): fixed (?) read from uninitialized SPIL_LOC (now assumes CARRY
1532           to hold the condition bit)
1533         * added new version of genCmp (old code available via #define)
1534         * added new version of genShiftLeft/genShiftRight in a generic
1535           way, now supports shifting by negative values
1536         * (genLeftShiftLiteral, genRightShiftLiteral): use absolute value of
1537           shiftCount (expected by genGenericShift)
1538         * src/pic16/genarith.c (genPlus): added code for adding CARRY+literal
1539         * src/pic16/pcode.c (pic16_OptimizeJumps): removed annoying statistics
1540           dump
1541         * (pic16_newpCodeOpLit): changed to cast to unsigned char (as e.g. -32766
1542           is an invalid literal too...)
1543
1544 2005-01-04 Vangelis Rokas <vrokas AT otenet.gr>
1545
1546         * src/pic16/gen.c (aopForSym, genEndFunction): applied some fixes
1547         from Raphael Neider,
1548         * src/pic16/pcode.c (pic16_newpCodeOpLit): removed casting to char
1549         for 8-bit literals. This fixes some literal operands which are sign
1550         extended to 16-bits ints when instruction needs only 8-bits.
1551
1552 2004-12-31 Paul Stoffregen <paul AT pjrc.com>
1553
1554         * device/lib/logf.c: added mcs51 assembly version
1555         * device/lib/expf.c: added mcs51 assembly version
1556         * device/lib/_logexpf.c: new shared asm code for expf and logf
1557         * device/include/math.h: add defines for assembly math library
1558         * device/lib/Makefile.in: build new _logexpf.c
1559         * device/lib/libfloat.lib: use new _logexpf.c
1560
1561 2004-12-29 Slade Rich <slade_rich AT users.sourceforge.net>
1562
1563         * src/pic/device.c
1564         * src/pic/pcode.c : adjusted internal stack and pre-allocated registers for
1565           device types which have less than 0x7f registers.
1566
1567 2004-12-29 Slade Rich <slade_rich AT users.sourceforge.net>
1568
1569         * src/pic/genarith.c : Fixed problem with subtraction where the result would not be updated when borrowing.
1570
1571 2004-12-28 Paul Stoffregen <paul AT pjrc.com>
1572
1573         * device/lib/printf_fast.c: only build on supported arch.
1574         * device/lib/printf_tiny.c: only build on supported arch.
1575         * device/lib/printf_fast_f.c: only build if asm float lib
1576         * device/lib/_fsget1arg.c: only build if asm float lib
1577         * device/lib/_fsget2args.c: only build if asm float lib
1578         * device/lib/_fsnormalize.c: only build if asm float lib
1579         * device/lib/_fsreturnval.c: only build if asm float lib
1580         * device/lib/_fsrshift.c: only build if asm float lib
1581         * device/lib/_fsswapargs.c: only build if asm float lib
1582         * device/include/stdio.h: don't provide print_fast,
1583           print_fast_f, print_tiny prototypes if --xstack used
1584
1585 2004-12-28 Maarten Brock <sourceforge.brock AT dse.nl>
1586
1587         * device/lib/sincosf.c (sincosf): don't invert bit/bool by ~
1588         * support/regression/ports/mcs51-stack-auto/spec.mk: added new _fs.. files
1589           to the SOURCES
1590
1591 2004-12-28 Paul Stoffregen <paul AT pjrc.com>
1592
1593         * device/lib/printf_fast_f.c: same as printf_fast, but
1594           with floating point enabled
1595         * device/lib/printf_fast.c: minor tweaks
1596         * device/include/stdio.h: add printf_fast_f
1597
1598 2004-12-27 Paul Stoffregen <paul AT pjrc.com>
1599
1600         * src/SDCCmain.c: make --float-reent default for mcs51
1601         * device/lib/_fsadd.c: added mcs51 assembly version
1602         * device/lib/_fssub.c: added mcs51 assembly version
1603         * device/lib/_fsmul.c: added mcs51 assembly version
1604         * device/lib/_fsdiv.c: added mcs51 assembly version
1605         * device/lib/_fseq.c: added mcs51 assembly version
1606         * device/lib/_fsneq.c: added mcs51 assembly version
1607         * device/lib/_fsgt.c: added mcs51 assembly version
1608         * device/lib/_fslt.c: added mcs51 assembly version
1609         * device/lib/_fscmp.c: shared code for fseq,fsgt,fslt,fsneq
1610         * device/lib/Makefile.in: add _fscmp to build
1611         * device/lib/libfloat.lib: add _fscmp to build
1612
1613 2004-12-27 Paul Stoffregen <paul AT pjrc.com>
1614
1615         * device/lib/_fs2slong.c: added mcs51 assembly version
1616         * device/lib/_fs2sint.c: added mcs51 assembly version
1617         * device/lib/_fs2schar.c: added mcs51 assembly version
1618         * device/lib/_fs2ulong.c: added mcs51 assembly version
1619         * device/lib/_fs2uint.c: added mcs51 assembly version
1620         * device/lib/_fs2uchar.c: added mcs51 assembly version
1621         * device/lib/_slong2fs.c: added mcs51 assembly version
1622         * device/lib/_sint2fs.c: added mcs51 assembly version
1623         * device/lib/_schar2fs.c: added mcs51 assembly version
1624         * device/lib/_ulong2fs.c: added mcs51 assembly version
1625         * device/lib/_uint2fs.c: added mcs51 assembly version
1626         * device/lib/_uchar2fs.c: added mcs51 assembly version
1627         * device/include/float.h: added #define to select asm vs c
1628
1629 2004-12-26 Paul Stoffregen <paul AT pjrc.com>
1630
1631         * device/lib/printf_fast.c: improvements to float output
1632         * device/include/float.h: add defines for assembly float library
1633         * device/lib/_fsget1arg.c: receive 1 float arg
1634         * device/lib/_fsget2args.c: receive 2 float args (reentrant)
1635         * device/lib/_fsnormalize.c: normalize a float
1636         * device/lib/_fsreturnval.c: return float, various helper routines
1637         * device/lib/_fsrshift.c: right shift a float's mantissa
1638         * device/lib/_fsswapargs.c: swap 2 floats
1639         * device/lib/Makefile.in: build these 6 new files for mcs51
1640         * device/lib/libfloat.lib: add these 6 files to the library
1641
1642 2004-12-26 Borut Razem <borut.razem AT siol.net>
1643
1644         * sim/ucsim/avr.src/arith_inst.cc: fixed bug #1088372- savr is not
1645           built by gcc 3.4.2
1646
1647 2004-12-25 Paul Stoffregen <paul AT pjrc.com>
1648
1649         * device/lib/printf_tiny.c: printf for mcs51 in only 267 bytes,
1650           and fully reentrant and register bank neutral.
1651         * device/lib/printf_fast.c: added float (not enabled by default),
1652           added compact/slower integer (also not enabled by default),
1653           improved size/speed of fast integer code, other minor changes
1654         * device/include/stdio.h, device/lib/Makefile.in,
1655           device/lib/libsdcc.lib: integrate printf_tiny into mcs51 build
1656
1657 2004-12-24 Maarten Brock <sourceforge.brock AT dse.nl>
1658
1659         * src/pic16/pcode.c: declaring variables other than at the start of a
1660           block is not supported in C by VC6.
1661
1662 2004-12-22 Vangelis Rokas <vrokas AT otenet.gr>
1663
1664         * applied a previous patch from Raphael Neider that wasn't included
1665         in the previous commits, which fixes infinite loops within jumptable
1666         improvements,
1667         * made some fixes that previous patches introduced
1668
1669 2004-12-21 Vangelis Rokas <vrokas AT otenet.gr>
1670
1671         * src/pic16/gen.c (pic16_aopGet): applied fix from Raphael Neider
1672         that fixes an issue with AOP_PCODE asmop's offset,
1673         * (pic16_popCopyReg): update instance field too,
1674         * (mov2w): modified to pic16_mov2w because it conflicts with mov2w
1675         function of pic port,
1676         * (genCmp, genAnd, genAssign),
1677         * src/pic16/genarith.c (genAddLit): some fixes from Raphael Neider,
1678
1679 2004-12-20 Vangelis Rokas <vrokas AT otenet.gr>
1680
1681         * src/SDCCast.c (gatherAutoInit): allow pic16 to emit static
1682         variables initial values to idata section,
1683         * src/SDCCicode.c (geniCodeCall): patch from ### to fix unreferenced
1684         variables in some functions. This utilizes parmBytes field of iCode
1685         structure to hold the offset of the variable in stack. (might be
1686         able to use the stack field too?)
1687         * applied patch from Raphael Neider # ### , # ###
1688         * src/pic16/glue.c (pic16emitRegularMap): fix to print static
1689         variable initial values in idata section,
1690         * src/pic16/ralloc.c (pic16_allocDirReg): don't allocate register
1691         for static variables with initial value
1692         * src/device/lib/pic16/libsdcc/float/ulong2fs.c (__ulong2fs):
1693         applied fix in while loop from Raphael Neider.
1694
1695 2004-12-19 Maarten Brock <sourceforge.brock AT dse.nl>
1696
1697         * src/ds390/gen.c (genCpl): fixed bit=~(char/bit) bugs, added warning
1698         * src/ds390/main.c (_ds390_regparm): don't pass bit params in registers
1699         * src/ds390/ralloc.c (serialRegAssign): spill bits
1700         * src/mcs51/gen.c (genCpl): fixed bit=~(char) bugs, added warning
1701         * support/Util/SDCCerr.c,
1702         * support/Util/SDCCerr.h: added warning W_COMPLEMENT for using bit=~(bit)
1703         * support/regression/tests/bitvars.c: added tests for bitwise complement(~)
1704         * support/regression/tests/bitwise.c: added test for bitwise complement(~)
1705
1706 2004-12-09 Maarten Brock <sourceforge.brock AT dse.nl>
1707
1708         * device/include/sdcc-lib.h: inserted LGPL, added includes
1709           asm/ds390/features.h and asm/mcs51/features.h
1710         * device/include/asm/default/features.h,
1711         * device/include/asm/gbz80/features.h,
1712         * device/include/asm/z80/features.h: added empty _AUTOMEM
1713           and _STATMEM
1714         * device/include/asm/ds390/features.h,
1715         * device/include/asm/mcs51/features.h: added files with defines for
1716           _AUTOMEM and _STATMEM indicating automatic and static storage class
1717         * device/lib/printf_large.c (_print_format): optimized & used _AUTOMEM
1718         * doc/sdccman.lyx: version 2.4.7, updated xstack documentation
1719         * src/SDCCicode.c (geniCodeCast),
1720         * src/SDCCsymt.c (compareType): allow cast of data-ptr to idata-ptr
1721         * src/SDCCloop.c (loopInduction): removed unused variable lr
1722         * src/SDCCopt.c (convilong, convertToFcall): moved "easy special case"
1723           to convertToFcall to include char modulo (RFE 1065037), added check
1724           if left operand is unsigned and use abs of literal value
1725         * src/SDCCpeeph.c (setFromConditionArgs): removed double quotes option
1726           as it doesn't work after conversion from peephole.def to peephole.rul
1727         * src/mcs51/gen.c (toBoolean): added check for size,
1728           (genModOneByte): optimized code for signed char modulo a literal
1729           power of 2 (thanks to Hubert Sack),
1730           (genRRC): removed unnecessary "clr c",
1731           (genRLC): replaced "add a,acc" with cheaper "rlc a"
1732         * src/mcs51/peeph.def: renamed 115 to 115.a, added rule 115.b: another
1733           jump optimization,
1734           swapped rules 256.c and 256.d,
1735           extended 256.d by using new multiple checks (thanks Erik),
1736           added rules 256.e and 256.f,
1737           updated rule 261.a and 261.b to new generated code
1738         * support/regression/tests/muldiv.c: added test div/mod by a power of 2
1739
1740 2004-12-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1741
1742         * src/SDCCloop.c (basicInduction, loopInduction): fixed several
1743           induction related bugs, including first part of bug #1074377
1744
1745 2004-12-05 Vangelis Rokas <vrokas AT otenet.gr>
1746
1747         * applied patch from bug-report #1076292,
1748         * applied patches for genAnd and Goto-optimizations for Raphael
1749         Neider,
1750         * src/SDCCicode.c (printOperand): fixed !REGA source to compile and
1751         dump a less iCode information,
1752         * src/pic16/device.h (pic16_options_t): added field debgen,
1753         * src/pic16/gen.h: added macros DUMP_FUNCTION_ENTRY,
1754         DUMP_FUNCTION_EXIT, FENTRY, FENTRY2,
1755         * src/pic16/gen.c (my_powof2): renamed to pic16_my_powof2 and made
1756         puclic,
1757         * (various functions): added macros FENTRY and FENTRY2 to functions,
1758         to emit function prologue,
1759         * (various functions): fixed indentation,
1760         * (genNearPointerGet): fixed loading of FSR0,
1761         * (genPackBits): applied patch from Raphael Neider to fix updating
1762         of FSR0 and touching only the modified bits,
1763         * src/pic16/genarith.c (various functions): added macros FENTRY to
1764         emit function prologue in comments,
1765         * src/pic16/pcode.h: added functions debugf2, debugf3,
1766         * src/pic16/ralloc.c: partial fix for packForPush caused
1767         segmentation fault,
1768
1769 2004-12-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1770
1771         * src/mcs51/peeph.def: added 261.a,b (16 bit rotate) by Stas Sergeev
1772           <stsp AT users.sourceforge.net> with reversed byte order
1773         * support/regression/tests/rotate.c: added (ds390 skips some tests)
1774
1775 2004-12-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1776
1777         * src/z80/gen.c (genLeftShift, genRightShift): fixed second part of
1778           bug #1074377
1779         * src/hc08/gen.c (genrshFour, shiftRLong, shiftLLong),
1780         * src/mcs51/gen.c (shiftLLong): Fixed some shifting bugs Frieder found
1781
1782 2004-12-02 Slade Rich <slade_rich AT users.sourceforge.net>
1783
1784         * src/pic/pcode.c : fixed a problem where banksel was not being inserted.
1785
1786 2004-12-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1787
1788         * src/SDCCpeeph.c (callFuncByName): support combined peephole rule
1789           conditions,
1790           (setFromConditionArgs): friendly operand parser for peephole rules,
1791           (operandBaseName, operandsNotRelated): new peephole condition
1792           "operandsNotRelated" -- similar to "operandsNotSame", but takes
1793           architecture specific register naming into account, handles n-way
1794           comparisons, and supports quoted literals
1795         * src/mcs51/peeph.def: restored rule 177.d with an extra condition
1796
1797 2004-12-02 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1798
1799         * src/mcs51/peeph.def: fixed bug #1076940
1800
1801 2004-12-02 Slade Rich <slade_rich AT users.sourceforge.net>
1802
1803         * device/include/pic/pic16f877.h : added an include file for the PIC16F877 device.
1804
1805 2004-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1806
1807         Adding support for replacing ljmps with sjmps in jumptables
1808         generated for switch statements. For now you need to set the
1809         environment variable SDCC_SJMP_JUMPTABLE to enable this.
1810         Now 4 algorithms for mcs51 jumptable generation are used:
1811         ljmp or sjmp jumptables for up to 16 cases, stack-pushing target
1812         addresses loaded pc-relative for up to 112 cases and stack-pushing
1813         target addresses loaded with offset from dptr for up to 256 cases.
1814
1815         * src/SDCCpeeph.c: added peephole conditional labelJTInRange
1816         * src/mcs51/main.c: adapted constants for switch table generation
1817         * src/mcs51/peeph.def: added 260.x for replacing ljmp with sjmp
1818
1819 2004-11-26 Maarten Brock <sourceforge.brock AT dse.nl>
1820
1821         * device/lib/printf_large.c (_print_format): fixed bug 1073386
1822         * support/regression/tests/bug1057979.c: added test for bug 1073386
1823
1824 2004-11-25 Vangelis Rokas <vrokas AT otenet.gr>
1825
1826         * src/pic16/pcode.c: fixed bug which may produce error in non-GNU
1827         compilers
1828
1829 2004-11-25 Vangelis Rokas <vrokas AT otenet.gr>
1830
1831         * src/pic16/device.h,
1832         * src/pic16/genarith.c,
1833         * src/pic16/glue.c,
1834         * src/pic16/main.c,
1835         * src/pic16/pcode.c: applied patches #1068154 and #1070213
1836
1837 2004-11-24 Vangelis Rokas <vrokas AT otenet.gr>
1838
1839         Large cummulative patch for pic16 port.
1840         * device/lib/pic16/gstack.h: NEW, user can specify its own handler
1841         to call when a stack overflow occurs,
1842         * (malloc.h): added CVS Id tag,
1843         * (pic18f{242,252,442,452}.h): added T0CONbits structure and
1844         variable,
1845         * added libc directory. The current version of LibC contains string
1846         functions, ctype functions and macros and some functions of the
1847         stdlib set (like malloc/free/atof/atoi etc...). All functions are to
1848         be extensively tested in the future. Standard disclaimer here.
1849         Library is not automatically build yet. But one can build it by
1850         invoking 'make' inside the libc directory.
1851         * added ADC library under libio. Preliminary version yet.
1852
1853         * src/pic16/gen.h: added emitTOGC macro, to toggle Carry flag,
1854         * src/pic16/gen.c (aopForRemat): asmop size is filled by
1855         aopForRemat() now and not by pic16_aopOp(),
1856         * (pic16_popGetTempReg): removed warning messgae when allocating
1857         temporary registers, its a buggy feature and will be removed,
1858         * (pic16_popGet): set register instance field in AOP_CRY,
1859         * (pic16_outBitC): fixed for results in size greater than 1,
1860         * (genUminusFloat): fixed for pic16, ported code from mcs51,
1861         * (pic16_storeForReturn): optimized return of 0,
1862         * (genCmp): experimental code for new genCmp which uses PIC18's
1863         special compare&skip instructions. Initial tests fail some times
1864         with variables grater than 1 byte in size, so new code is disabled,
1865         * (genUnpackBits, genPackBits): more optimizations in reading/writing,
1866         a single bit,
1867         * (genCast): began a fix to optimize the casting of a bit to another
1868         bit, now assigning a bitfield to another bitfield will fail, sorry,
1869         * src/pic16/main.c: disabled the use of lr-support feature,
1870         * src/pic16/pcode.h: renamed PCASMDIR to PCAD,
1871         * added some function prototypes, added function _debugf prototype,
1872         * src/pic16/pcode.c: (pic16_get_op): fixed emitting operands of register
1873         bits with offset (case PO_GPR_BIT),
1874         * (genericPrint): don't emit INFO pcode when --pcode-verbose not in
1875         command line,
1876         * (isBankInstruction): modified to return 0 for no banking instruction,
1877         and 1 for banking instruction,
1878         * (pic16_isPCinFlow): check for PCAD (assembler directives) too,
1879         caused stop processing pCodes after a inline assembly block,
1880         * (pic16_popCopyGPR2Bit): updated to match bitfields with offset,
1881         * src/pic16/pcoderegs.c: fixed a bug with eliminating some temporary
1882         registers when it shouldn't,
1883         * src/pic16/ralloc.c (allocReg): add preliminary support for
1884         supporting a limited set of temporary registers,
1885
1886 2004-11-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1887
1888         * src/hc08/gen.c (genAssign, genPointerGetSetOfs, genDataPointerGet,
1889           genDataPointerSet): ensure assignments always copy in MSB to LSB
1890           order,
1891           (loadRegFromAop): recognize CLRH optimization,
1892           (genFunction): optimize RECEIVE iCodes in reentrant functions
1893
1894 2004-11-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1895
1896         * src/SDCCmain.c (parseCmdLine, optionsTable[]): fixed bug with
1897           --out-fmt-s19 turning into --out-fmt-elf if s19 was already
1898           selected.
1899         * src/SDCCmain.c (linkEdit): don't define SSEG for HC08
1900         * src/hc08/main.c (_hc08_setDefaultOptions): default xdata to be
1901           contiguous with data
1902
1903 2004-11-19 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1904
1905         * device/lib/_gptrget.c (_gptrget),
1906         * device/lib/_gptrgetc.c (_gptrgetc),
1907         * device/lib/_gptrput.c (_gptrput): _naked allows to use ret
1908           instead of sjmp to ret
1909         * src/mcs51/peeph.def: added peepholes 3.d-g and 177.g,h provided
1910           by Hubert Sack <hsack2002 AT arcor.de> in RFE #1067986, thanks
1911
1912 2004-11-18 Maarten Brock <sourceforge.brock AT dse.nl>
1913
1914         * .version: bumped version to 2.4.7
1915         * device/lib/_gptrget.c (_gptrget): is now _naked
1916         * device/lib/_gptrgetc.c (_gptrgetc): is now _naked
1917         * device/lib/_gptrput.c (_gptrput): is now _naked
1918         * src/SDCCast.c (createBlock): removed ridiculous self-assignment,
1919           (createFunction): fixed xstack
1920         * src/SDCCglue.c (emitMaps): set allocation required for bit area
1921         * src/SDCCicode.c (geniCodeCast): don't change SPEC_OCLS for literal
1922           or bit either,
1923           (geniCodeCritical): store original interrupt state in an iTemp bit
1924           var unless stack-auto
1925         * src/SDCCicode.h: added CRITICAL and ENDCRITICAL to SKIP_IC2
1926         * src/SDCCmain.c (setIncludePath): added include/target to search path
1927         * src/SDCCmem.c (allocParms): store bit vars in bit space, not overlay
1928         * src/SDCCsymt.c (checkFunction): don't check regbank for isr's against
1929           prototype,
1930           (processFuncArgs): put bit vars in bit area
1931         * src/mcs51/gen.c (saveRegisters, unsaveRegisters, genXpush, saveRBank,
1932           unsaveRBank): fixed xstack,
1933           (genFunction): bugfix: replaced (global!) reentrant with fReentrant,
1934           (genFunction, genEndFunction): fixed xstack,
1935           (genAssign): optimization don't walk backwards through mem
1936         * src/mcs51/main.c (_mcs51_regparm): don't pass bit params in registers
1937         * src/mcs51/ralloc.c (createStackSpil): spill bits to bit area
1938         * support/regression/Makefile: also make library (for stack-auto) when
1939           making "all" and added "test-mcs51-xstack-auto"
1940         * support/regression/fwk/lib/testfwk.c: added T2_isr prototype for mcs51
1941         * support/regression/ports/mcs51/T2_isr.c: added this file as a stub
1942         * support/regression/ports/mcs51/fwk.lib: added to link T2_isr stub
1943         * support/regression/ports/mcs51/spec.mk: added rules for fwk.lib
1944         * support/regression/ports/mcs51-stack-auto/spec.mk: replaced
1945           make-library by MAKE_LIBRARY
1946         * support/regression/ports/mcs51-xstack-auto/spec.mk: file added to run
1947           regression tests for xstack
1948         * support/regression/tests/bitvars.c: test for bit vars (bug 938782)
1949         * support/regression/tests/critical.c: test for critical on mcs51
1950
1951 2004-11-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1952
1953         * support/regression/ports/ucz80/spec.mk: use include and lib files from
1954           built version of sdcc instead of installed version
1955
1956 2004-11-14 Maarten Brock <sourceforge.brock AT dse.nl>
1957
1958         * src/mcs51/gen.c (toBoolean): fixed bug 1065458
1959         * device/lib/Makefile.in: z80 uses printf_large.c, sprintf.c and
1960           vprintf.c now
1961         * device/lib/printf_large.c (calculate_digit): fixed bug 1057979
1962         * device/lib/z80/Makefile: don't use printf.c as it fails bug 1057979
1963           WARNING: remove device/lib/build/z80/printf.o by hand when
1964           updating from previous build!
1965         * device/lib/z80/printf.c: updated comment
1966         * support/regression/tests/bug1057979.c: test all ports now
1967         * support/regression/tests/bug1065458.c: file added
1968
1969 2004-11-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1970
1971         * src/z80/gen.c (genFunction, genEndFunction): avoided generating
1972           *_start and *_end symbols for static functions
1973
1974 2004-11-11 Maarten Brock <sourceforge.brock AT dse.nl>
1975
1976         * src/SDCCmain.c (linkEdit): don't suppress crt0 if --nostdlib is used
1977           and search crt0.o in all library paths,
1978           (setIncludePath): proper handling of --nostdinc,
1979           (setLibPath): proper handling of --nostdlib
1980         * support/regression/Makefile,
1981         * support/regression/ports/ds390/spec.mk,
1982         * support/regression/ports/gbz80/spec.mk,
1983         * support/regression/ports/hc08/spec.mk,
1984         * support/regression/ports/mcs51/spec.mk,
1985         * support/regression/ports/mcs51-large/spec.mk,
1986         * support/regression/ports/mcs51-stack-auto/spec.mk,
1987         * support/regression/ports/z80/spec.mk: use include and lib files from
1988           built version of sdcc instead of installed version
1989         * doc/sdccman.lyx: fixed typo in --nostdinc
1990
1991 2004-11-10 Slade Rich <slade_rich AT users.sourceforge.net>
1992
1993         * src/pic/pcode.c,
1994         * src/pic/device.c,
1995         * src/pic/ralloc.c,
1996         * src/pic/gen.c : added support to generate code for struct bit fields.
1997
1998 2004-11-06 Maarten Brock <sourceforge.brock AT dse.nl>
1999
2000         * as/xa51/xa_version.h,
2001         * device/include/errno.h,
2002         * device/include/regc515c.h,
2003         * device/lib/_itoa.c,
2004         * device/lib/_ltoa.c,
2005         * device/lib/ser_ir_cts_rts.c,
2006         * sim/ucsim/xa.src/glob.cc,
2007         * sim/ucsim/xa.src/inst_gen.cc,
2008         * sim/ucsim/xa.src/xa_bit.cc,
2009         * sim/ucsim/xa.src/xa_sfr.cc,
2010         * sim/ucsim/z80.src/inst_dd.cc,
2011         * sim/ucsim/z80.src/inst_fdcb.cc,
2012         * support/scripts/keil2sdcc.pl,
2013         * src/pic16/pic16.dsp,
2014         * src/pic16/pic16a.dsp: corrected cvs line endings
2015         * device/lib/printf_large.c: fixed bug 1057979
2016         * src/pic16/gen.c: fixed non-C standard code
2017         * src/SDCCmain.c: made --pack-iram default, added --no-pack-iram
2018         * src/SDCCglobl.h: changed pack_iram to no_pack_iram
2019         * support/regression/ports/mcs51/support.c: reload T1 asap
2020         * doc/sdccman.lyx: updated for options --pack-iram and --no-pack-iram,
2021           pdata use and clear idata startup behaviour
2022         * support/regression/tests/bug1057979.c: added
2023
2024 2004-11-04 Maarten Brock <sourceforge.brock AT dse.nl>
2025
2026         * device/examples/ds390/ow390/ad26.h,
2027         * device/examples/ds390/ow390/cnt1d.h,
2028         * device/examples/ds390/ow390/crcutil.c,
2029         * device/examples/ds390/ow390/ownet.h,
2030         * device/examples/ds390/ow390/owsesu.c,
2031         * device/examples/ds390/ow390/swt12.h,
2032         * device/examples/ds390/ow390/swtoper.c,
2033         * device/examples/ds390/ow390/temp10.h,
2034         * device/examples/ds390/ow390/thermodl.c,
2035         * device/examples/ds390/tinitalk/tinitalk.dsp,
2036         * device/examples/ds390/tinitalk/tinitalk.dsw,
2037         * device/examples/mcs51/clock/hw.h,
2038         * device/examples/mcs51/simple2/go.bat,
2039         * device/examples/serialcomm/windows/serial.h,
2040         * device/examples/xa51/dummy.c,
2041         * device/examples/xa51/hello.c,
2042         * device/include/80c51xa.h,
2043         * device/include/at89x051.h: corrected cvs line endings
2044
2045 2004-11-04 Vangelis Rokas <vrokas AT otenet.gr>
2046
2047         * src/pic16/main.c (options): added command line --gstack, to trace
2048         stack over/under flows,
2049         * added pragma 'wparam' to allow passing first byte of function
2050         parameters via WREG, syntax is #pragma wparam my_function[, func2...]
2051         * src/pic16/gen.c (pic16_testStackOverflow): function which emits a
2052         call to __gstack_test function and sets up the symbol as extern,
2053         * (pic16_pushpCodeOp, pic16_poppCodeOp, pushw, pushaop, popaopidx,
2054         * popaop): added call to pic16_testStackOverflow,
2055         * (wParamCmp, inWparamList): NEW, test existence of a symbol in
2056         wparamList list,
2057         * (genCall, genPcall): now all parameters are passed via stack
2058         except in functions that are pass to wparam pragma in which WREG is
2059         used too,
2060         * (genPcall): REENTRANT flag is checked to see if variable prototype
2061         contains reentrant keyword, don't call a non-reentrant function, via
2062         a reentrant function pointer or vice versa, functions are never
2063         passed via WREG,
2064         * (genJumpTab): applied patch from bug #1057478 by R.Neider and
2065         D.Winkler,
2066         * src/pic16/glue.c (pic16emitRegularMap): fixed bug which caused a
2067         SIGSEGV when accessing a NULL register stucture,
2068         * (pic16_printGPointerType): modified to handle UPPER modifier for
2069         function initializers, changed prototype of function to simpler one,
2070         * (pic16_printIvalFuncPtr): check to see if function is already
2071         added in externs list,
2072         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): fixed bug which
2073         optimized a move from W to SFR with a move to the same register
2074         later after a CALL,
2075         * device/lib/pic16/debug: NEW directory, contains debug features
2076         which are enabled when linking with libdebug.lib, currently command
2077         line option --gstack enables stack pointer tracing for over/under
2078         flow, corresponding sources are in debug/gstack
2079
2080 2004-10-30 Vangelis Rokas <vrokas AT otenet.gr>
2081
2082         * doc/sdccman.lyx: updated SDCC version,
2083         * (PIC16 port): update list of command line options,
2084         * src/pic16/device.h (structure pic16_options_t): added field gstack
2085         to enable stack overflow tracing on push/pops,
2086         * src/pic16/device.c (statistics structure): added statistics
2087         structure,
2088         * (pic16_dump_access, pic16_dump_usection, pic16_dump_gsection,
2089         pic16_dump_int_registers): increase statistics counters for each
2090         * variable which is encountered
2091         * (pic16_dump_usection): emit each .udata variable to its own udata
2092         section,
2093         * src/pic16/gen.c (assignResultValue, genCall, genPcall, genFunction):
2094         when macro USE_WREG_IN_FUNC_PARAMS is set to 0 pass all function
2095         parameters via stack, otherwise use old scheme,
2096         * src/pic16/glue.c (pic16_emitStatistics): dump statistics in
2097         assembler output file,
2098         * src/pic16/main.c: added command line options --gstack to enable
2099         push/pop tracing for stack overflow,
2100         * src/pic16/pcode.c (all pCodeInstruction records for PIC18F
2101         instructions): added size of each instruction,
2102         * (pic16_countInstruction): estimate size of instructions in
2103         the_pFile list, inline assembly blocks are not counted,
2104         * (pic16_FixRegisterBanking): trace previous register usage, when
2105         banksel optimizations is greater than 0, don't emit a redudant
2106         banksel directive,
2107
2108 2004-10-26 Slade Rich <slade_rich AT users.sourceforge.net>
2109
2110         * src/pic/ralloc.c : fixed inefficient code produced when compiling a complimented bit operation.
2111         * src/pic16/ralloc.c : applied same fix for pic16.
2112         * src/pic/gen.c : tidied it up a little.
2113
2114 2004-10-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2115
2116         * src/mcs51/peeph.def: disabled 259.a,b for removing redundant ret,
2117         thanks to Martin Helmling for reporting (mail on sdcc-devel 2004-10-25)
2118
2119 2004-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2120
2121         * src/SDCCast.c (reverseParms): fixed bug #1040577 (part 2)
2122
2123 2004-10-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2124
2125         * device/lib/ser_ir_cts_rts.c: integer promotion caused a call to the
2126         non-reentrant function __modsint in the interrupt function (thus
2127         corrupting math operations during serial I/O)
2128         * device/lib/ser_ir.c: as above, changed buffersize
2129         * src/mcs51/peeph.def: added 259.a,b for removing redundant ret,
2130         256.c,d for zeroing
2131         * doc/Makefile: added option -t for rsync
2132
2133 2004-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2134
2135         * src/SDCCast.h (struct ast),
2136         * src/SDCCast.c (reverseParms, copyAst): fixed bug #1040577 (part 1)
2137
2138 2004-10-20 Borut Razem <borut.razem AT siol.net>
2139
2140         * support/scripts/sdcc.nsi: added include/pic16/*.h to the setup
2141         package
2142
2143 2004-10-20 Vangelis Rokas <vrokas AT otenet.gr>
2144
2145         * device/lib/pic16/libsdcc/Makefile: added lregs directory in
2146         makefile targets,
2147         * device/lib/pic16/libsdcc/lregs/{Makefile,lrst.c,lrrest.c}: NEW
2148         support functions to replace long sequences of MOVFF's from access
2149         bank registers to stack and vice versa,
2150         * src/pic16/device.h: added new field opt_flags, where optimization
2151         flags can be set to enable certain features,
2152         * src/pic16/gen.c (pic16_emitpinfo): NEW to add PC_INFO pCode in
2153         * pBlock, (genFunction, genEndFunction): surroung loop for
2154         saving/loading used registers in stack with PC_INFO pCodes,
2155         INF_LREGS. Code in between can then be optimized by pCode optimizer
2156         to support function calls,
2157         * (genDataPointerSet): fixed bug which loaded float fields in
2158         structures with corrupt data,
2159         * src/pic16/genutils.c (debugf, _debugf): macro/function which emits
2160         in a standard way debug info on stderr. Feature used for developing
2161         and debugging only,
2162         * src/pic16/glue.c (pic16glue): reformatted, deleted some old and
2163         obsolete chunks of code,
2164         * if optimization flag OF_LR_SUPPORT was set, call pic16_OptimizeLocalRegs,
2165         * src/pic16/main.c (_pic16_parseOptions): added handler for --flr-support,
2166         * pic16/src/pcode.c (pic16_newpCodeInfo,
2167         * (pic16_newpCodeOpLocalRegs),
2168         * (pic16_convertLocalRegs2Support): NEW, to support new optimization
2169         feature,
2170         * (pic16_pCodeConstString): printing of the initial value of a
2171         symbol as a comment is inhibited since parsing was already done by
2172         copyStr and output is corrupt,
2173         * (pic16_pCode2str, genericPrint): handle PC_INFO pCode,
2174
2175 2004-10-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2176
2177         * src/mcs51/ralloc.c (packRegisters): fixed bug #1044601
2178
2179 2004-10-19 Maarten Brock <sourceforge.brock AT dse.nl>
2180
2181         * as/mcs51/lkarea.c: removed old K&R style,
2182           (lnksect): changed check on boundary error,
2183           (lnksect2): changed check on boundary error,
2184           (lnksect2): extend XSTK to end of page if size = 1
2185         * as/mcs51/lkmain.c: removed old K&R style,
2186           (Areas51): create l_IRAM symbol
2187         * as/mcs51/lkmem.c (summary2): added report on PSEG and XSTK
2188         * device/lib/Makefile.in: renamed model-mcs51-reentrant to
2189           model-mcs51-stack-auto, added model-mcs51-xstack-auto
2190         * device/lib/_mullong.c: added version to be compiled with xstack
2191         * device/lib/mcs51/crtclear.asm: clear only upto --iram-size
2192         * device/lib/mcs51/crtxclear.asm: clear pdata as well
2193         * device/lib/mcs51/crtxstack.asm: fixed comment
2194         * src/SDCCglue.c: maxInterrupts defaults to 0,
2195           (emitMaps): added pdata,
2196           (createInterruptVect): (re)moved default,
2197           (glue): added pdata,
2198           (glue): moved __start__xstack to XSTK with default size 1
2199         * src/SDCCmain.c (parseCmdLine): automatically set options.intlong_rent
2200           and options.float_rent when options.stackAuto is set,
2201           (linkEdit): only write XDATA_NAME if provided on command line
2202         * src/SDCCmem.h,
2203         * src/SDCCmem.c: added pdata
2204         * src/port.h: added pdata_name to PORT
2205         * src/mcs51/gen.c (toBoolean): fixed for Acc use of aopGet,
2206           (saveRegisters, unsaveRegisters): removed usage of B,
2207           (genMinus): fixed accumulator clash,
2208           (genJumpTab): added comment, this needs another look
2209         * src/mcs51/gen.c: added check for "B in use" paranoia,
2210           added pushB() and popB()
2211         * src/mcs51/peeph.def: restart after 177.c so 177.a can get a second
2212           chance
2213         * src/avr/main.c,
2214         * src/ds390/main.c,
2215         * src/hc08/main.c,
2216         * src/mcs51/main.c,
2217         * src/pic/main.c,
2218         * src/pic16/main.c,
2219         * src/xa51/main.c,
2220         * src/z80/main.c: (reset_regparms) made void parameter explicit and
2221           added PSEG (PAG,XDATA) or NULL to port specifier
2222         * src/ds390/main.c (_ds390_genIVT): moved implemented default in here
2223         * src/mcs51/main.c (_mcs51_genIVT): moved implemented default in here,
2224           (_mcs51_genInitStartup): removed __start__xstack equ,
2225           (mcs51_port): moved xstack from XSEG (XDATA) to XSTK (PAG,XDATA)
2226         * src/pic16/device.c (pic16_dump_usection, pic16_dump_isection),
2227         * src/z80/gen.c (_rleAppend): fixed warnings
2228         * support/regression/tests/zeropad.c: added pdata test
2229         * .version: bumped to 2.4.6
2230
2231 2004-10-17 Borut Razem <borut.razem AT siol.net>
2232
2233         * support/scripts/sdcc.nsi: cross compiling of WIN32 setup.exe on Linux
2234         as a part of nightly build
2235
2236 2004-10-16 Vangelis Rokas <vrokas AT otenet.gr>
2237
2238         * src/pic16/gen.c (struct _G): added field useWreg, is set to 1 when
2239         WREG holds the first byte function parameters,
2240         * (aopForSym): take special case for symbols which are in FARSPACE
2241         but in CODESPACE too,
2242         * (assignResultValue): modified to take into account _G.useWreg,
2243         * (genCall): don't use wreg for parameter passing when function is
2244         declared as reentrant, too, added optimization INCF to stack
2245         pointer when stack parameter count is 1,
2246         * (genFunction, genEndFunction): refurnished and fixed to not using
2247         wreg for passing parameters when function has varargs or is
2248         reentrant, fixed bug with symbol name compare for generating
2249         functions in absolute address,
2250         * (pic16_storeForReturn): refurnished,
2251         * (genCmp): began writing a new version of the function, not ready
2252         yet, therefore it is disabled,
2253         * (genAssign): do not read code memory when assigning a function to
2254         a pointer function,
2255         * src/pic16/glue.c (pic16emitStaticSeg): abSym->name is defined an
2256         array of characters, not pointer,
2257         * (pic16initialComments): in debug mode emit an .ident directive for
2258         the assembler,
2259         * (_process_pragma): emit a new warning type (internal to pic16)
2260         when setting stack to default length, emit a similar warning when
2261         placing a function at absolute address and address is not word aligned
2262         * (_pic16_parseOptions): added 'return TRUE' statement,
2263         * (_pic16_linkEdit): if compiling a source, then add the source's
2264         file object, first in the list of objects to link,
2265
2266 2004-10-13 Slade Rich <slade_rich AT users.sourceforge.net>
2267
2268         * src/pic/pcoderegs.c : increased count on regUsedinRange to prevent unnecessary warning.
2269         * src/pic/main.c : removed VC warning.
2270         * src/pic/gen.c : changed comment.
2271
2272 2004-10-12 Vangelis Rokas <vrokas AT otenet.gr>
2273
2274         * device/lib/pic16/libsdcc/gptr/gptrput[234].c: an external
2275         reference to a deprecated symbol _GPTRREG was causing failure to
2276         link. Thanks G. M. Gallant for the info.
2277
2278 2004-10-12 Slade Rich <slade_rich AT users.sourceforge.net>
2279
2280         * src/pic/pcode.c : Applied a code patch supplied by Paul Ashmore in
2281         comments for Bugs item #954788.
2282
2283 2004-10-10 Vangelis Rokas <vrokas AT otenet.gr>
2284
2285         * src/pic16/device.c (pic16_dump_gsection,
2286         * pic16_groupRegistersInSection): handle symbols declared to be in
2287         access bank differently,
2288         * src/pic16/gen.c (struct _G): added field resDirect,
2289         * (aopForSym): if symbol on stack and iCode is '=' and result exists,
2290         send values read from stack directly to result and don't allocate
2291         temporary values,
2292         * (pic16_sameRegs): fixed bug that allowed MOVFF to move between
2293         same registers,
2294         * (pic16_sameRegsOfs): NEW,
2295         * (freeAsmop): if _G.resDirect is set then do not mark registers as
2296         free because they were not allocated from temporary pool,
2297         * pic16_popRegFromString): workaround to fix a problem with
2298         allocating variables twice or never,
2299         * (genGenPointerGet): using PRODL instead of FSR0H,
2300         * (genGenPointerSet): using POSTDEC1 (that is a stack location)
2301         instead of FSR0H,
2302         * (genAssign): take advantage of the _G.resDirect flag,
2303         * (genCast): around line 11844, use mov2f instead of directly
2304         MOVFF'ing between operands to account for literal values,
2305         * src/pic16/genutils.c: some new debug functions for gpsim have been
2306         added,
2307         * src/pic16/glue.c (pic16_printIvalType): fixed bug that initialized
2308         float with integer part only,
2309         * src/pic16/main.c (_process_pragma): handle pragma udata access to
2310         place variables in access bank
2311         * device/lib/pic16/libsdcc/gptr/gptr*.c: using BRA instead of GOTO,
2312         updated sources to reflect recent changes in gen.c
2313
2314 2004-10-06 Vangelis Rokas <vrokas AT otenet.gr>
2315
2316         * device/lib/pic16/libsdcc/Makefile.rules: fixed bug concerning
2317         sources that searched for headers in installation path, now the
2318         device/include/pic16 is used,
2319         * src/pic16/glue.c (pic16glue),
2320         * src/pic16/pcode.c (pCode2str, genericPrint): don't print .file or
2321         .line directives if not in debug mode, this suppresses assembler's
2322         warnings for ignored directives
2323
2324 2004-10-05 Maarten Brock <sourceforge.brock AT dse.nl>
2325
2326         * src/port.h: made reset_regparms prototype void parameter explicit.
2327         * src/SDCCsymt.c (processFuncArgs): removed argument "func".
2328         * src/mcs51/ralloc.c (packRegisters): new fix for bugs 898889 & 979599.
2329         * doc/sdccman.lyx: documented warning disabling and how to use
2330           printf_large to make it print floats.
2331         * device/include/stdbool.h: NEW
2332         * device/lib/_atof.c,
2333         * device/lib/_divuint.c,
2334         * device/lib/_divulong.c,
2335         * device/lib/expf.c,
2336         * device/lib/printf_large.c,
2337         * device/lib/sincosf.c,
2338         * device/lib/sincoshf.c: used stdbool.h, all compile with stack-auto now
2339         * device/lib/Makefile.in: added target for model-mcs51-reentrant to build
2340           a completely reentrant lib.
2341
2342 2004-10-05 Vangelis Rokas <vrokas AT otenet.gr>
2343
2344         * device/lib/pic16/libsdcc/gptr/gptr*.c: added return statements
2345         * device/include/pic16/stdio.h: fixed bug with colon
2346
2347 2004-10-03 Vangelis Rokas <vrokas AT otenet.gr>
2348
2349         * device/include/pic16/stdio.h,
2350         * device/include/pic16/stdlib.h,
2351         * device/include/pic16/math.h: NEW
2352         * device/lib/pic16/libsdcc/gptr/*.c (gptrget*, gptrput*): functions
2353         declared as _naked to reduce overhead
2354         * device/lib/Makefile.in (target port-specific-objects-pic16):
2355         changed * to *.* so to ignore the CVS directory,
2356         * src/pic16/gen.c (pic16_freeAsmop): added code to store result of
2357         stacked variables back in stack,
2358         * (genEndFunction): fixed bug reported by G.M. Gallant with stack
2359         corruption
2360
2361 2004-10-01 Vangelis Rokas <vrokas AT otenet.gr>
2362
2363         * .version: bumped version number to 2.4.5
2364         * support/Util/SDCCerr.h: added warning W_POSSBUG2.
2365         * support/Util/SDCCerr.c (messages structure): added entry for
2366         W_POSSBUG2
2367
2368         Large cumulative patch for pic16 port and libraries.
2369         * device/include/pic16/sdcc-lib.h,
2370         * device/include/pic16/stdarg.h,
2371         * device/include/asm/pic16/features.h,
2372         * device/include/lib/pic16/libsdcc/gptr/{*.c, Makefile}: NEW,
2373         * device/include/pic16/float.h: changes reentrant keyword with
2374         _FS_REENTRANT, added prototype for __fsneq, included sdcc-lib.h
2375         * device/lib/pic16/libsdcc/Makefile: added target directory gptr,
2376         updated target build-libraries to include objects from gptr,
2377         * device/lib/pic16/libsdcc/{char,int,long}/*.c: added macro
2378         _IL_REENTRANT to all function headings, included sdcc-lib.h header,
2379         * device/lib/pic16/libsdcc/float/*.c: added macro _FS_REENTRANT to
2380         all function headings,
2381         * src/SDCCmain.c: added global parameter userIncDirsSet,
2382         * (parseCmdLine): when option -I is encountered add directory to
2383         userIncDirsSet too,
2384         * src/version.awk: added space between control and long,
2385         * src/pic16/NOTES: added some notes for the port,
2386         * src/pic16/gen.c: added prototype for mov2fp function,
2387         * (fReturnpic16[]): properly named return value registers,
2388         * (_G structure): added fields stackRegSet, fregsUsed, stack_lat,
2389         * (aopForSym): added code to handle symbols with onStack flag set,
2390         symbols onStack are allocated PTRSIZE bytes,
2391         * (aopFreeAsmop): handles special case where asmops are stack objects,
2392         * (aopGet, pic16_popGet): adde cod to handle new asmop AOP_STA,
2393         * (pic16_popGetTempReg, pic16_popGetTempRegCond, pic16_popReleaseTempReg):
2394         added argument lock to trace flaws in allocating temporary registers
2395         when developing port,
2396         * (pic16_popGetLit, pic16_popGetLit2): changed lit from unsigned to signed
2397         * (pic16_popRegFromString): reenabled allocating a direct register
2398         from string,
2399         * (assignResultValue): various beautifications,
2400         * fixed bug #1037717 (patch from R. Neider & D. Wrinkler) with mistaken
2401         referenced function argument,
2402         * (genIpush): reenabled to allow stacked arguments, handles only
2403         ic->parmPush iCodes,
2404         * (genCall, genPcall): major changes to allow for variable argument
2405         functions, fixed a bug with falsely restoring stack pointer after
2406         returning from call,
2407         * (genFunction): pending code for critical function,
2408         * (shiftR1Left2ResultSigned, shiftR1Left2Result, shiftL2Left2Result,
2409         * (shiftR2Left2Result, shiftLLong) applied patch #1032155 from R.Neider,
2410         * (genNearPointerGet): fixed bug with indirect reading, was always
2411         reading from INDF0
2412         * (genGenPointerGet, genGenPointerSet): rewrote to support generic
2413         pointers,
2414         * (genAddrOf): rewrote code to take address of a stacked function parameter
2415         * (genCast): fixed casting to generic pointer type,
2416         * src/pic16/gen.h: added AOP_STA,
2417         * (struct asmop): added field stk,
2418         * src/pic16/genarith.c (pic16_AopType): handle AOP_STA,
2419         * (pic16_genPlusIncr): changed emitSKPNZ to emitSKPNZ,
2420         * (pic16_genAddLit, pic16_genPlus): applied patch #1034042 by tecodev,
2421         * (pic16_genMinus): fixed bug #1035119 with patch submitted by tecodev,
2422         * src/pic16/genutils.c (pic16_genNot): removed symbol *tlbl,
2423         * src/pic16/glue.c (pic16_printGPPointerType): fixed to support new
2424         generic pointers,
2425         * src/pic16/main.c (_pic16_initPaths): ignores default SDCC include
2426         and library paths,
2427         * (pic16_port structure): generic pointer size is set to 3,
2428         * src/pic16/pcode.c (pic16_newpCodeOpLit): correctly print literal integer,
2429         * (insertBankSwitch): cast to (char *) to prevent 64bit CPUs'
2430         compiler warning,
2431         * src/pic16/ralloc.c (allocReg): prevent allocating register when
2432         operand is an iTemp,
2433
2434 2004-09-24 Martin Helmling <mh AT octo-soft.de>
2435
2436         * debugger/mcs51/cmd.c: set PC if a symbol at pc reg is set
2437         * debugger/mcs51/simi.c: addapt new syntax of s51
2438
2439 2004-09-23 Vangelis Rokas <vrokas AT otenet.gr>
2440
2441         * src/pic16/genutils.c (pic16_genNot): fixed bug #1032265,
2442         * src/pic16/pcode.c: commented out some calls to free() in order to
2443         fix bug #989576,
2444
2445 2004-09-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2446
2447         * src/SDCCicode.h,
2448         * src/SDCCicode.c (isiCodeInFunctionCall),
2449         * src/avr/ralloc.c (selectSpil),
2450         * src/pic/ralloc.c (selectSpil),
2451         * src/pic16/ralloc.c (selectSpil),
2452         * src/ds390/ralloc.c (selectSpil),
2453         * src/hc08/ralloc.c (selectSpil),
2454         * src/xa51/ralloc.c (selectSpil),
2455         * src/mcs51/ralloc.c (selectSpil): Don't use remainSpil to spill to the
2456         stack in the middle of a function call sequence (fixes bug #1020268)
2457         * src/SDCCicode.c (geniCodeJumpTable): fixed error in computing the
2458         costs associated with the minimum switch case.
2459
2460 2004-09-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2461
2462         * src/SDCC.lex: fixed bug #1030549
2463
2464 2004-09-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2465
2466         * src/SDCCcse.h (struct cseDef),
2467         * src/SDCCcse.c (cseBBlock, newCseDef, ifFromAddrTaken): purge CSEs
2468         over a function call if the CSE is derived from a symbol whose
2469         address has been taken (fixes bug #1029883)
2470         * support/regression/tests/bug-1029883: a new regression test for
2471         this bug
2472
2473 2004-09-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2474
2475         * src/hc08/gen.c (emitinline): fixed bug #1029778
2476         * src/SDCC.y (assignment_expr): fixed the grammer so that assignment
2477         to a cast object is no longer a syntax error ("fixes" bug #1030006,
2478         and starts toward RFE #905167)
2479
2480 2004-09-17 Vangelis Rokas <vrokas AT otenet.gr>
2481
2482         * src/pic16/gen.c (mov2f): New function to move an operand to
2483         another without considering if it is a literal or a register,
2484         * (pic16_sameRegs): don't check if they are both AOP_REG,
2485         * (AccRsh): removed andmask=0 lines,
2486         * (genLeftShift): duplicated to be improved in future versions,
2487         * src/pic16/main.c (_process_pragma): emit stack default size in hex,
2488         * src/pic16/pcode.c: added POC_INFSNZW, updated inverted_op fields
2489         in POC_INCFSZ, POC_INCFSZW, POC_INFSNZ,
2490         * (pic16initMnemonics): added initialization for POC_INFSNZW,
2491         * (insertBankSwitch): fixed inserting banksel directives algorithm
2492         for instructions that follow a skip instruction, this fixes a report
2493         for broken subtraction code generation,
2494         * src/pic16/ralloc.c (deassignLRs): do not free register if current
2495         iCode is a left op, just in case result and right share the same
2496         registers
2497
2498 2004-09-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2499
2500         * src/hc08/main.c,
2501         * src/hc08/gen.c (genJumpTable): more efficient jump table, supports
2502         preservation of HX
2503         * src/hc08/gen.c (pullRegs): fixed order of HX & XA pairs
2504         * src/mcs51/ralloc.c (packRegisters): removed the patch applied
2505         on 2004-09-12; it was buggy
2506
2507 2004-09-15 Bernhard Held <bernhard AT bernhardheld.de>
2508
2509         * src/SDCCsymt.h: removed RESULT_CHECK
2510         * src/SDCCast.c,
2511         * src/SDCCglue.c,
2512         * src/SDCCval.c,
2513         * src/pic/glue.c,
2514         * src/pic16/glue.c: replaced RESULT_CHECK with RESULT_TYPE_NONE
2515
2516 2004-09-15 Vangelis Rokas <vrokas AT otenet.gr>
2517
2518         * src/SDCCicode.c (piCode): applied patch from Raphael Neider,
2519         * src/pic16/device.c (pic16_assignConfigWordValues): wrong
2520         configuration values no more rejected by compiler, they are assigned
2521         to configuration registers with a warning message instead,
2522         * src/pic16/glue.c (pic16_emitConfigRegs): added +1 at top-limit of
2523         the for-loop so last conf register is emitted too,
2524         * (_pic16_initPaths): link library libsdcc.lib by default,
2525         * (_hasNativeMulFor): modified test for multiplication according to
2526         Raphael Neider's remarks. Integer multiplication is also done with
2527         support functions,
2528         * device/include/pic16/pic18fregs.h: corrected type error in while
2529         testing and including 18f6720 header file
2530
2531 2004-09-14 Vangelis Rokas <vrokas AT otenet.gr>
2532
2533         * src/pic16/device.h (pic16_options): removed field use_crt,
2534         * src/pic16/gen.c (genUnpackBits): added call to pic16_loadFSR0
2535         until an optimization to handle single bits is added,
2536         * (pic16_loadFSR0): moved before genUnpackBits,
2537         * (genAnd): some white lines removed,
2538         * src/pic16/main.c (_pic16_finaliseOptions): set omit_ivt and clear
2539         leave_reset flags in pic16_options when using crt modules,
2540
2541 2004-09-12 Maarten Brock <sourceforge.brock AT dse.nl>
2542
2543         * src/mcs51/ralloc.c (packRegisters): applied fix by Bernhard Held
2544           for bugs 898889 & 979599. Also used some safer print instructions.
2545
2546 2004-09-12 Vangelis Rokas <vrokas AT otenet.gr>
2547
2548         * src/pic16/device.h (pic16_options_t): added field use_crt,
2549         crt_name, no_crt,
2550         * src/pic16/genarith.c (pic16_genPlus): added an assert(0) line to
2551         catch a probable future bug,
2552         * src/pic16/gen.c: aopIdx function commented out,
2553         * (genAssign): commented out old code which used aopIdx,
2554         * src/pic16/glue.c (pic16glue): removed some legacy fragments of
2555         code, added if conditionals to take into account the --use-crt
2556         command line options,
2557         * src/pic16/main.c (pic16_optionsTable): added new command line
2558         options, --use-crt= and --no-crt,
2559         * (_pic16_linkEdit): now the proper crt object is added in the
2560         linker command line except than when --no-crt is specified,
2561         * src/pic16/pcode.c,
2562         * src/pic16/pcode.h: added some structures and functions for a new
2563         optimization scheme to compansate for instruction overhead between
2564         same iCodes, this scheme is currently under development and is not
2565         working in any way,
2566         * src/pic16/gen.c (genAnd): added patch provided by Aaron Collwell
2567         to && operator,
2568         * device/lib/pic16/startup/crt0i.c,
2569         * device/lib/pic16/startup/crt0iz.c: added global char variable
2570         __uflags to force the generation of an idata section
2571
2572 2004-09-12 Bernhard Held <bernhard AT bernhardheld.de>
2573
2574         * doc/Makefile,
2575         * doc/clean.mk: added support for easy creation of sdcc-doc.tar.bz2
2576         * doc/sdccman.lyx: updated sdcc version to 2.4.4
2577
2578 2004-09-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2579
2580         * doc/sdccman.lyx: fixed a problem with my new index entries (thanks
2581         Frieder) and clarified the default code optimization mode
2582
2583 2004-09-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2584
2585         * src/SDCC.lex (doPragma, process_pragma),
2586         * src/SDCCglobl.h (struct optimize): added pragmas "opt_code_speed",
2587         "opt_code_size", and "opt_code_balanced"
2588         * src/SDCCmain.c (optionsTable[], printOptions, scanOptionsTable):
2589         regrouped options by category, added support for category headers
2590         * src/SDCCmain.c (parseCmdLine): added options "--opt-code-speed"
2591         and "--opt-code-size"
2592         * doc/sdccman.lyx: documented these new options and pragmas
2593         * src/hc08/gen.c (AccLsh, AccRsh): take speed/size optimization
2594         preference into account
2595
2596 2004-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
2597
2598         * src/SDCCicode.c (geniCodePostInc, geniCodePreInc, geniCodePostDec,
2599           geniCodePreDec): Fixed bug 904237 by generating a warning
2600         * src/SDCCerr.h,
2601         * src/SDCCerr.c: added warning W_SIZEOF_VOID
2602
2603 2004-09-09 Slade Rich <slade_rich AT users.sourceforge.net>
2604
2605         * src/pic/device.c : When no max ram set validate full memory range.
2606         * src/pic/pcode.c,
2607         * src/pic/pcodepeep.c : Copy C code comments to optimised replacement code.
2608
2609 2004-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
2610
2611         * device/lib/_gptrget.c,
2612         * device/lib/_gptrput.c: updated comment
2613         * device/lib/calloc.c,
2614         * device/lib/free.c,
2615         * device/lib/malloc.c,
2616         * device/lib/realloc.c: added LGPL, made them reentrant-safe
2617         * src/SDCCcse.c (cseBBlock),
2618         * src/SDCCicode.c (printOperand, geniCodeArray),
2619         * src/SDCCicode.h (struct operand): fixed bug 868103
2620         * support/regression/tests/bug-868103.c: added
2621         * src/SDCCast.c (searchLitOp),
2622         * src/SDCCcse.h (struct cseDef),
2623         * src/SDCCglue.c (printIvalArray, spacesToUnderscores),
2624         * src/SDCCicode.h (struct operand),
2625         * src/SDCCsymt.h (struct sym_link),
2626         * src/avr/gen.c (hasInc),
2627         * src/ds390/gen.c (hasInc),
2628         * src/hc08/gen.c (genPlusIncr, hasInc),
2629         * src/mcs51/gen.c (hasInc),
2630         * src/pic16/glue.c (pic16_printIvalChar),
2631         * src/pic16/ralloc.c (regWithIdx),
2632         * src/xa51/gen.c (hasInc) : removed warnings
2633         * src/SDCCast.c (createBlock): added comment ???
2634         * src/hc08/ralloc.c: updated comments
2635
2636 2004-09-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2637
2638         * doc/sdccman.lyx: updated section on switch statements, added
2639         section about semaphore locking
2640         * doc/Makefile: added option -info for latex2html
2641         * device/lib/_gptrget.c,
2642         * device/lib/_gptrput.c: __XPAGE instead of P2 in outcommented code
2643
2644 2004-09-06 Slade Rich <slade_rich AT users.sourceforge.net>
2645
2646         * src/pic/device.h,
2647         * src/pic/device.c,
2648         * src/pic/port.c : Changed PIC14 code to not set bit RP1 when
2649          maxram is less than 0x100.
2650
2651 2004-09-06 Slade Rich <slade_rich AT users.sourceforge.net>
2652
2653         * Bug fixes for PIC14 - signed RSHIFT problem. Patch supplied by Allen(agschrum).
2654
2655 2004-09-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2656
2657         * src/port.h,
2658         * src/mcs51/main.c,
2659         * src/ds390/main.c,
2660         * src/z80/main.c,
2661         * src/hc08/main.c,
2662         * src/pic/main.c,
2663         * src/pic16/main.c,
2664         * src/avr/main.c,
2665         * src/xa51/main.c
2666         * src/SDCCicode.c (geniCodeJumpTable): Better logic to determine if a
2667         a jump table is the best form for a switch statement, including
2668         automatic insertion of missing cases to make the case range
2669         continuous. Developed in collaboration with Frieder Ferlemann.
2670
2671 2004-09-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2672
2673         * src/hc08/ralloc.c (canDefAccResult): multi-byte shift is unsafe for
2674         accumulator result if it needs sign extension
2675
2676 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
2677
2678         * src/hc08/ralloc.c (canUseAccOperand): fixed comparison bug
2679
2680 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
2681
2682         * device/lib/gbz80/printf.c,
2683         * device/lib/z80/printf.c: removed define for NULL
2684
2685 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
2686
2687         * as/xa51/xa_link.c,
2688         * device/examples/ds390/ow390/ad26.c,
2689         * device/examples/ds390/ow390/cnt1d.c,
2690         * device/examples/ds390/ow390/counter.c,
2691         * device/examples/ds390/ow390/ds2480.h,
2692         * device/examples/ds390/ow390/ds2480ut.c,
2693         * device/examples/ds390/ow390/findtype.c,
2694         * device/examples/ds390/ow390/gethumd.c,
2695         * device/examples/ds390/ow390/owllu.c,
2696         * device/examples/ds390/ow390/ownetu.c,
2697         * device/examples/ds390/ow390/swt12.c,
2698         * device/examples/ds390/ow390/swtloop.c,
2699         * device/examples/ds390/ow390/temp.c,
2700         * device/examples/ds390/ow390/temp10.c,
2701         * device/examples/ds390/ow390/thermo21.c,
2702         * device/examples/ds390/ow390/tinilnk.c,
2703         * device/examples/ds390/ow390/tstfind.c,
2704         * device/examples/serialcomm/windows/serial.cpp,
2705         * device/examples/serialcomm/windows/test_serialcomm.cpp,
2706         * device/include/reg51.h: fixed line endings for cvs
2707
2708 2004-09-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2709
2710         * src/hc08/ralloc.c (canDefAccResult, canUseAccOperand,
2711         packRegsForAccUse, packRegisters): new accumulator register
2712         packing algorithm
2713         * support/regression/ports/hc08/support.c (_putchar): suppress
2714         warning of unused variable
2715         * src/SDCCicode.c: added SWAP entry to codeTable
2716
2717 2004-09-01 Maarten Brock <sourceforge.brock AT dse.nl>
2718
2719         * device/lib/sprintf.c: forgot to add this file before previous commit
2720
2721 2004-09-01 Vangelis Rokas <vrokas AT otenet.gr>
2722
2723         * src/pic16/gen.c (genPackBits): added operand right in function
2724         parameters, load result directly if p_type is POINTER (that is
2725         called by genNearPointerSet)
2726         * (genUnPackBits): added operand left in function parameters,
2727         * (genNearPointerGet, genNearPointerSet): prevent the loading of
2728         FSR0 if accessing bitfields,
2729
2730 2004-08-31 Maarten Brock <sourceforge.brock AT dse.nl>
2731
2732         * device/include/stdio.h: added NULL, size_t, typedef pfn_outputchar,
2733           _print_format; updated printf, sprintf, vsprintf
2734         * device/include/asm/default/features.h: corrected comment/define
2735         * device/lib/Makefile.in: added sprintf.c
2736         * device/lib/libsdcc.lib: added sprintf module
2737         * device/lib/printf_large.c,
2738         * device/lib/vprintf.c,
2739         * device/lib/sprintf.c: totally refactored printf_large and vprintf
2740           into these 3 files
2741         * support/regression/Makefile: changed ALL_PORTS into a usefull default
2742         * support/regression/ports/mcs51-stack-auto/spec.mk: added sprintf
2743         * support/regression/tests/bug-927659.c: removed dummy putchar, enabled
2744           hc08 test
2745         * support/regression/tests/zeropad.c: define idata as data for hc08
2746
2747 2004-08-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2748
2749         * src/SDCCpeeph.c (labelIsReturnOnly): support hc08 rts opcode also
2750         * src/SDCCpeeph.c (buildLabelRefCountHash): assume function entry point
2751         labels are referenced at least once (even if a reference is not found)
2752         * src/hc08/gen.c (emitcode): set isComment flag for comments
2753         * src/hc08/peeph.def: added rules 5a..5f (optimize redundant immediate
2754         loads), rules 6a..6b (optimize jumps to return)
2755
2756 2004-08-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2757
2758         * device/lib/acosf.c (acosf),
2759         * device/lib/asinf.c (asinf),
2760         * device/lib/atanf.c (atanf),
2761         * device/lib/ceilf.c (ceilf),
2762         * device/lib/cosf.c (cosf),
2763         * device/lib/coshf.c (coshf),
2764         * device/lib/cotf.c (cotf),
2765         * device/lib/fabsf.c (fabsf),
2766         * device/lib/floorf.c (floorf),
2767         * device/lib/log10f.c (log10f),
2768         * device/lib/logf.c (logf),
2769         * device/lib/sinf.c (sinf),
2770         * device/lib/sinhf.c (sinhf),
2771         * device/lib/sqrtf.c (sqrtf),
2772         * device/lib/tanf.c (tanf),
2773         * device/lib/tanhf.c (tanhf),
2774         * device/include/math.h: defined _FLOAT_FUNC_REENTRANT macro and
2775         replaced all instances of "reentrant" in the library functions
2776         defined in math.h with this macro.
2777         * support/regression/tests/float_trans.c: reenabled test for hc08
2778
2779 2004-08-30 Bernhard Held <bernhard AT bernhardheld.de>
2780
2781         * device/lib/pic16/Makefile.common.in: added MODELFLAGS again, it was
2782         erroneously deleted
2783
2784 2004-08-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2785
2786         * src/hc08/gen.c (loadRegFromAop): better use of clra & clrx
2787         * src/hc08/gen.c (genAnd, genOr): fixed bug with conditional when
2788         multi-byte volatile operands are used
2789         * src/hc08/gen.c (shiftRLong): fixed bug with wrong rotate direction
2790         * src/hc08/main.c (_hc08_genAssemblerPreamble): moved the built-in
2791         initialization to area GSINIT0 so that it would always precede
2792         any static initializers in GSINIT
2793         * support/regression/tests/zeropad.c: fixed idata define for hc08
2794         * support/regression/tests/bug-927659.c,
2795         * support/regression/tests/float_trans.c: disabled tests for hc08
2796         pending missing library routines
2797         * .version: increased version number to 2.4.4 - hc08 port now passes
2798         regression tests
2799
2800
2801 2004-08-29 Bernhard Held <bernhard AT bernhardheld.de>
2802
2803         * device/lib/pic16/Makefile.common.in: added $(MM) to fix `make clean`
2804         * Makefile.common.in,
2805         * as/Makefile,
2806         * as/hc08/Makefile.in,
2807         * as/mcs51/Makefile.in,
2808         * as/z80/Makefile.in,
2809         * debugger/mcs51/Makefile.in,
2810         * device/include/Makefile.in,
2811         * device/lib/Makefile.in,
2812         * doc/Makefile,
2813         * link/Makefile,
2814         * link/z80/Makefile.in,
2815         * packihx/Makefile.in,
2816         * sim/ucsim/main_in.mk,
2817         * sim/ucsim/avr.src/Makefile.in,
2818         * sim/ucsim/doc/Makefile.in,
2819         * sim/ucsim/gui.src/serio.src/Makefile.in,
2820         * sim/ucsim/hc08.src/Makefile.in,
2821         * sim/ucsim/s51.src/Makefile.in,
2822         * sim/ucsim/xa.src/Makefile.in,
2823         * sim/ucsim/z80.src/Makefile.in,
2824         * src/Makefile.in,
2825         * support/cpp2/Makefile.in,
2826         * support/librarian/Makefile,
2827         * support/makebin/Makefile: added DESTDIR to the install path proposed
2828         by "Maciej 'Agaran' Pijanka" <agaran AT pld-linux.org>
2829         * doc/sdccman.lyx: added DESTDIR documentation
2830
2831 2004-08-29 Vangelis Rokas (vrokas AT otenet.gr>
2832
2833         * src/pic16/gen.c (genFunction, genEndFunction): fixed return
2834         instruction for interrupt handlers, use fast returns when returning
2835         from high priority interrupts
2836
2837 2004-08-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2838
2839         * src/hc08/gen.c (genAnd, genOr, transferAopAop, rmwWithAop): optimized
2840         code generation
2841         * src/hc08/gen.c (genrshFour, genCpl): fixed bugs
2842         * src/hc08/gen.c (genMultOneByte, genDivOneByte, genModOneByte): fixed
2843         bugs, ported much of Bernhard's code from mcs51
2844         * src/mcs51/gen.c (genSend),
2845         * src/hc08/gen.c (genSend): fixed bug with lost SEND iCodes if more
2846         than one when calling a reentrant function
2847         * device/lib/_mullong.c: defined an alternate struct layout for big
2848         endian ports (hc08)
2849
2850 2004-08-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2851
2852         * src/hc08/gen.c (shiftL2Left2Result): fix for bug-500536 regression
2853         test
2854
2855 2004-08-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2856
2857         * src/SDCCsymt.c (processFuncArgs): make sure parameter types
2858         are sane and complete before asking the port its prefered parameter
2859         passing method (fixes bug #1017633)
2860         * device/lib/hc08/_ret.c: added "data" storage class to _ret2
2861         and _ret3
2862
2863 2004-08-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2864
2865         * src/hc08/gen.c (genPackBitsImmed, genUnpackBitsImmed): fix offset
2866         problem in bitfields >= 8 bits.
2867
2868 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
2869
2870         * src/SDCCsymt.c: undid changes that were not meant to be committed
2871
2872 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
2873
2874         * support/regression/ports/hc08spec.mk: REENTRANT must be reentrant
2875
2876 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
2877
2878         * src/hc08/gen.c (genUminusFloat): fixed bug where only 3 bytes were
2879           copied and wrong bit got inverted
2880
2881 2004-08-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2882
2883         * src/hc08/gen.c (genPointerSet, genFarPointerSet): moved code from
2884         genFarPointerSet into genPointerSet; eliminated genFarPointerSet
2885         * src/hc08/gen.c (genPointerGet, genFarPointerGet): moved code from
2886         genFarPointerGet into genPointerGet; eliminated genFarPointerGet
2887         * src/hc08/gen.c (genPackBitsImmed): generate optimized code for
2888         assignments to bitfields at known addresses
2889         * src/hc08/gen.c (genUnpackBitsImmed): generate optimized code for
2890         reads from bitfields at known addresses
2891         * src/hc08/ralloc.c (packRegisters),
2892         * src/hc08/gen.c (genPointerGet, genUnpackBits, genUnpackBitsImmed,
2893         genhc08Code): optimize pointer get values used as conditionals
2894         * src/hc08/peeph.def: added rules 2e & 2f to optimize bit test
2895         and branch
2896
2897 2004-08-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2898
2899         * src/mcs51/gen.c (genPointerGet, genNearPointerGet, genPagedPointerGet,
2900         genFarPointerGet, genCodePointerGet, genGenPointerGet, genUnpackBits),
2901         * src/mcs51/ralloc.c (packRegisters): optimize pointer get values used
2902         as conditionals
2903
2904 2004-08-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2905
2906         * src/mcs51/peeph.def: peepholes 248.i-m for xdata bitfields
2907
2908 2004-08-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2909
2910         * src/mcs51/ralloc.c (packRegsForOneuse): fixed bug #1012650 and some
2911         related problems
2912
2913 2004-08-21 Bernhard Held <bernhard AT bernhardheld.de>
2914
2915         * sim/ucsim/cmd.src/Makefile.in: run lex only if $(PRJDIR)/devel exists
2916
2917 2004-08-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2918
2919         * src/z80/ralloc.c (packRegsForAssign): ported some bug fixes from the
2920         mcs51 port
2921
2922 2004-08-16 Slade Rich <slade_rich AT users.sourceforge.net>
2923
2924         * src/pic/gen.c: Restored fn genRet as previous fix was incorrect.
2925
2926 2004-08-14 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2927
2928         * src/mcs51/gen.c (genJumpTab): jumptables for more than 16 switch
2929         cases use more compact code.
2930
2931 2004-08-13 Slade Rich <slade_rich AT users.sourceforge.net>
2932
2933         * src/pic/gen.c: Fixed problem with fn returning a variable bigger than a char.
2934
2935 2004-08-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2936
2937         * src/SDCClrange.c (findPrevUse): fixed bug #1007371
2938
2939 2004-08-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2940
2941         * src/SDCCsymt.h,
2942         * src/SDCCsymt.c (changePointer, checkDecl, addSymChain): changed
2943         parameter of changePointer() from symbol* to sym_link*
2944         * src/SDCCast.c (decorateType): call changePointer() for CAST op
2945         * src/SDCCsymt.c (compareType): void* type is castable to other
2946         pointers, but not necesarily an exact match.
2947         * src/SDCCicode.c (geniCodeCast): allow void* casting here since it
2948         is no longer blindly treated as an exact match.
2949         * src/SDCCval.c (valCastLiteral): treat missing type as cast to void
2950
2951 2004-08-12 Slade Rich <slade_rich AT users.sourceforge.net>
2952
2953         * src/pic/glue.c: Added struct initialisation fn printIvalStruct.
2954
2955 2004-08-11 Slade Rich <slade_rich AT users.sourceforge.net>
2956
2957         * src/pic/gen.c,
2958         * src/pic/pcode.c,
2959         * src/pic/ralloc.h,
2960         * src/pic/ralloc.c: Printing rIdx on internal verbose debug.
2961
2962 2004-08-10 Slade Rich <slade_rich AT users.sourceforge.net>
2963
2964         * src/pic/device.c,
2965         * src/pic/device.h,
2966         * src/pic/device.c: Will no longer exit if #pragma maxram has not been defined.
2967
2968 2004-08-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2969
2970         * src/mcs51/gen.c (emitcode): fixed bug #992819
2971
2972 2004-08-05 Maarten Brock <sourceforge.brock AT dse.nl>
2973
2974         * src/pic/ralloc.c (deassignLR): allthough pic port is buggy already,
2975           there's no need to make it worse
2976
2977 2004-08-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2978
2979         * src/mcs51/ralloc.c (deassignLR),
2980         * src/ds390/ralloc.c (deassignLR),
2981         * src/hc08/ralloc.c (deassignLR),
2982         * src/z80/ralloc.c (deassignLR),
2983         * src/pic/ralloc.c (deassignLR),
2984         * src/pic16/ralloc.c (deassignLR),
2985         * src/avr/ralloc.c (deassignLR),
2986         * src/SDCClrange.c (findRecursiveSucc, findRecursivePred, findPrevUse,
2987         rlivePoint): fixed another part of bug #971834
2988
2989 2004-08-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2990
2991         * src/z80/main.c: enabled "critical" keyword
2992         * src/z80/mappings.i,
2993         * src/z80/gen.c (genFunction, genEndFunction): support for interrupt
2994         functions (fixes bug #979646)
2995         * doc/sdccman.lyx: added a subsection explaining z80 interrupt support
2996
2997 2004-08-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2998
2999         * src/mcs51/gen.c (genInline): Add \n for labels, not DOS/WIN dirs
3000           such as c:\mydir.
3001
3002 2004-08-03 Maarten Brock <sourceforge.brock AT dse.nl>
3003
3004         * src/SDCCloop.c (loopInvariants): fixed bug 983545, hope this
3005           doesn't disable too much optimizations
3006
3007 2004-08-02 Slade Rich <slade_rich AT users.sourceforge.net>
3008
3009         * src/pic/glue.c Disabled "WARNING: function 'main' undefined" when -S option is used.
3010
3011 2004-08-02 Maarten Brock <sourceforge.brock AT dse.nl>
3012
3013         * src/SDCClrange.c (rlivePoint): fixed bug 988568, thanks to anonymous
3014
3015 2004-08-02 Slade Rich <slade_rich AT users.sourceforge.net>
3016
3017         * src/pic/gen.c tidied up tabs
3018         * src/pic/genarith.c tidied up tabs and fixed bug with literal multiple where same register was used for hi and low byte
3019         * src/pic/main.c tidied up tabs
3020         * src/pic/pcode.c tidied up tabs and disabled verbose code generation
3021         * src/pic/pcoderegs.c tidied up tabs
3022         * src/pic/ralloc.c tidied up tabs
3023
3024 2004-07-30 Vangelis Rokas <vrokas AT otenet.gr>
3025
3026         * src/SDCCmem.c (allocGlobal): don't turn S_REGISTER storage class
3027         to S_FIXED for pic16 port and when symbol is not in level 0,
3028         allocate for S_REGISTER storage class and pic16 port, too,
3029         * src/pic16/device.h: prototype for checkSym,
3030         * src/pic16/device.c (pic16_dump_access, checkSym): NEW,
3031         * (pic16_assignConfigWordValue): test the value and the mask to
3032         validate that the value is suitable for the configuration word,
3033         * src/pic16/glue.c (pic16_printIvalFuncPtr): use 'externs' to
3034         collect extern declared symbols, don't emit symbol twice, check
3035         first if symbol is in publics set first,
3036         * src/pic16/main.c (_pic16_keywords[]): added keyword 'register',
3037         * added command line '--fstack' which enables an experimental
3038         feature for stack access, too buggy to be used yet...
3039         * src/pic16/ralloc.c (pic16_accessregWithName): NEW,
3040         * (pic16_allocDirReg): when register has storage class S_REGISTER
3041         allocate in pic16_dynAccessRegs,
3042         * device/include/pic16/pic18f????.h: modified configuration word
3043         naming convention, words started as CONFIG0H but should be CONFIG1H
3044
3045 2004-07-29 Maarten Brock <sourceforge.brock AT dse.nl>
3046
3047         * device/include/mcs51reg.h: fixed bug 970993
3048
3049 2004-07-27 Maarten Brock <sourceforge.brock AT dse.nl>
3050
3051         * added lib/calloc.c, lib/free.c, lib/realloc.c, include/stddef.h
3052         * updated lib/malloc.c, lib/libsdcc.lib, lib/Makefile.in, include/malloc.h
3053         * src/SDCC.lex (doPragma): added pragma disable_warning <nnn>
3054         * src/SDCCmain.c (parseCmdLine): added option --disable-warning <nnn>
3055         * src/ds390/gen.c (genPlusIncr): fixed bug when incrementing generic pointers
3056         * support/Util/SDCCerr.c (vwerror): suppress disabled warnings and output
3057           error/warning numbers,
3058           added function setWarningDisabled()
3059         * support/Util/SDCCerr.h: added setWarningDisabled() and MAX_ERROR_WARNING
3060         * support/regression/ports/mcs51-stack-auto/spec.mk: added dependencies
3061           _memcmp.c _memmove.c calloc.c realloc.c free.c
3062         * support/regression/tests/malloc.c: added tests for new functionality
3063         * support/regression/tests/zeropad.c: added tests for truncated initializers
3064           and initialized char arrays starting with '\x0'
3065         * src/mcs51/peeph.def: fixed regression, added peephole 177.f
3066
3067 2004-07-26 Bernhard Held <bernhard AT bernhardheld.de>
3068
3069         * support/valdiag/tests/overflow.c: fixed warning on (1 >> 40)
3070
3071 2004-07-26 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3072
3073         * doc/sdccman.lyx: updated example in section "Absolute Addressing"
3074         * src/mcs51/peeph.def: added contributed fix for "bug" #995347 as
3075         peephole 177.e. Thanks to anonymous
3076
3077 2004-07-25 Vangelis Rokas <vrokas AT otenet.gr>
3078
3079         * src/pic16/glue.c (pic16_printIvalFuncPtr): when an extern
3080         function isn't used in the source but referenced as a
3081         variable initializer then declare it as extern in .asm file
3082
3083 2004-07-24 Vangelis Rokas <vrokas AT otenet.gr>
3084
3085         * .version: increased version number to 2.4.3
3086
3087         Adding version extension according to ChangeLog CVS revision
3088         * src/Makefile.in (target all): added dependency 'version.h'
3089         * (rule version.h): added rule to create version.h from ChangeLog,
3090         * (rule dep): added dependency version.h,
3091         * src/version.awk: AWK script to create version.h
3092         * src/SDCCdwarf2.c (dwWriteModule),
3093         * src/SDCCglue.c (initialComments),
3094         * src/SDCCmain.c (printVersionInfo): modified to write after
3095         version string the version extension number,
3096         * src/SDCCutil.c: included "version.h"
3097         * (getBuildNumber): NEW, returns SDCC's ChangeLog minor revision
3098         number,
3099         * src/SDCCutil.h: added prototype for getBuildNumber
3100
3101         * src/SDCCmain.c (parseCmdLine): when sOpt is 'I' add rest in
3102         includeDirsSet, too,
3103         * src/SDCCsymt.c (checkSClass): don't emit error when a variable,
3104         const char [] is found in function prototype...
3105
3106         * src/pic16/genarith.c (pic16_genUMult8XLit_8): optimization to omit
3107         moving to WREG with source is already in WREG,
3108         * src/pic16/gen.h: added AOP_FSR0 and AOP_FSR2 in enum,
3109         * src/pic16/gen.c (getFreePtr): updated to look for FSR0 and FSR2,
3110         * (aopForSym): stack'ed symbols are partially supported, added
3111         if-clause to support symbols in FARSPACE,
3112         * (sameRegs): added test for AOP_ACC to see if registers are same,
3113         * (pic16_freeAsmop): added case for AOP_FSR0 and AOP_FSR2,
3114         * (pic16_aopGet): added case for AOP_FSR0 and AOP_FSR2,
3115         * (pic16_popRegFromString): will not allocate a new register if it
3116         doesn't find one by name, bug may have introduced...
3117         * (pic16_popGet): added case for AOP_FSR0 and AOP_FSR2,
3118         * (genIpush): revived to use pic16 port's stack,
3119         * (genAddrOf): added incomplete case for stack'ed operand,
3120         * (genCast): optimized a pair of MOVFW,MOVWF to MOVFF
3121         * src/pic16/genutils.c (pic16_genNot): almot new vesrion for NOT,
3122         can handle multibyte operands,
3123         * src/pic16/glue.c (pic16_printIval*): some debug info added,
3124         * (pic16initialComments): added message for MPLAB compatibility
3125         mode enabled,
3126         * src/pic16/main.h: prototype for pic16_mplab_comp,
3127         * src/pic16/main.c (pic16_optionsTable): new option --mplab-comp,
3128         which enabled MPLAB compatibility mode (i.e. no #LINE/#FILE, BANKED)
3129         * (_pic16_linkEdit): NEW, handles link stage, transferred here
3130         because of increased complexity of procedure,
3131         * (_process_pragma): stack pragma changed to format 'stack pos len',
3132         emit symbol '_stack_end' to conform with gplink,
3133         * src/pic16/pcode.c (pic16_newpCodeOpBit): using pic16_regWithName
3134         to search for register,
3135         * (pic16_get_op, pic16_get_op2): added case for PO_W, PO_WREG and
3136         PO_GPR_REGISTER,
3137         * (pic16_pCode2str): when in MPLAB compatibility mode, comment out
3138         #LINE directives and replace 'B' with 'BANKED' in instruction opcodes
3139         * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): added
3140         case for PO_GPR_REGISTER,
3141         * (pic16_AnalyzeBanking): removed the old message for inc2h.pl, past
3142         dies, the new era is ahead !...
3143         * src/pic16/ralloc.c: added hash reposits pic16_dynAllocRegNames and
3144         pic16_dynInternalRegs,
3145         * (pic16_allocregWithName, pic16_procregWithName, pic16_regWithname): NEW,
3146         * (pic16_allocDirReg): minor optimizations and bug fixes,
3147         * (pic16_allocWithIdx): when searching pic16_dynProcessorRegs use fixed,
3148
3149         * device/lib/pic16/startup/crt0*.c: extern definition of stack_end,
3150         load stack and frame pointer with address of 'stack_end' symbol
3151
3152 2004-07-23 Vangelis Rokas <vrokas AT otenet.gr>
3153
3154         * src/pic16/glue.c (pic16emitStaticSeg): fixed bug with files
3155         without source code but only variable initializers
3156
3157 2004-07-20 Vangelis Rokas <vrokas AT otenet.gr>
3158
3159         * src/pic16/glue.c (pic16emitRegularMap): unused functions marked as
3160         external are not declared as extern to reduce overhead while linking
3161
3162 2004-07-20 Maarten Brock <sourceforge.brock AT dse.nl>
3163
3164         * src/SDCCast.c (decorateType): removed buggy fix for bug #979599
3165
3166 2004-07-11 Maarten Brock <sourceforge.brock AT dse.nl>
3167
3168         * src/SDCCglue.c (printIvalArray): fixed bug #984229, thanks to Phuah
3169           Yee Keat for the patch
3170         * src/SDCCast.c (decorateType): fixed bug #979599
3171         * src/ds390/gen.h: removed local fReturnSizeDS390
3172         * src/ds390/gen.c: made fReturnSizeDS390 signed short to remove a warning
3173         * src/ds390/gen.c (genAnd, genOr, genXor),
3174         * src/mcs51/gen.c (genAnd, genOr, genXor): generate better optimized code
3175
3176 2004-07-04 Vangelis Rokas <vrokas AT otenet.gr>
3177
3178         * src/SDCCmain.c (linkEdit): modifications only for pic16 port,
3179         add relFilesSet to $3, manipulate $2 to handle linking of object
3180         files without source files in command line,
3181         * device/include/pic16 (all headers): added ID location macros,
3182         * src/pic16/device.c (struct PIC16_device Pics16[]): added field
3183         entries for ID location bytes,
3184         * (pic16_assignIdByteValue): NEW,
3185         * src/pic16/device.h: new structures idRegInfo_t and idBytesInfo_t,
3186         added field dumpcalltree to pic16_options_t,
3187         * src/pic16/gen.c (genCmp): fixed bug case so a temporary register
3188         is used instead of pic16_Gstack_base_addr, check if (ifx) before
3189         emitting rFalseIfx label after check_carry label,
3190         * src/pic16/glue.c (PIC16_IS_IDLOC_ADDRESS, PIC16_IS_HWREG_ADDRESS,
3191         pic16_emitDIRegs), NEW
3192         * (pic16glue): dump .calltree file when option --calltree found,
3193         * src/pic16/main.c (OPTION _pic16_optionsTable): new option --calltree
3194         * (_pic16_genAssemblerPreamble): emit ID locations after
3195         configuration registers,
3196         * (pic16_linkCmd): modifications of the link command,
3197         * src/pic16/pcode.c (pic16_pciMOVFF): PCC_REGISTER replaces PCC_REGISTER2
3198         * (pic16_pCodeInitRegisters): don't init stack registers,
3199         * (pic16_findPrevInstruction): fixed bug,
3200         * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): fixed
3201         bug with immediate registers,
3202         * (buildCallTree): traces stack push and pop,
3203         * (pct2): dump also stack usage for each function,
3204         * src/pic16/ralloc.c (dynrIdx): registers names start from 0x00
3205         * (pic16_allocDirReg): various modifications,
3206         * (pic16_typeRegWithIdx): when searching pic16_dynProcessorRegs set
3207         fixed to 1,
3208
3209 2004-07-02 Vangelis Rokas <vrokas AT otenet.gr>
3210
3211         * src/pic16/pcode.c: removed buggy double colon
3212
3213 2004-07-01 Borut Razem <borut.razem AT siol.net>
3214
3215         * support/scripts/sdcc.nsi: added include/pic16 to setup
3216
3217 2004-06-30 Vangelis Rokas <vrokas AT otenet.gr>
3218
3219         * device/lib/Makefile.in: fixed bug in target objects-pic16,
3220         * device/lib/pic16/Makefile: prefixed with dash (-) command under
3221         target 'clean',
3222         * doc/sdccman.lyx: changed version to 2.4.2 and added some port
3223         specific command line arguments. Also added sample lkr script
3224         for placing a variable at a specific memory bank.
3225         * src/pic16/device.c (pic16_dump_gsection): NEW, to dump variables
3226         at a specific memory bank,
3227         * (pic16_dump_isection): fixed bug which caused string literals to
3228         be omitted when dumping idata section,
3229         * (pic16_groupRegistersInSection): added code to handle registers
3230         in specific memory banks,
3231         * src/pic16/gen.c: labelOffset is prefixed with pic16_ and made
3232         public, all references are renamed too,
3233         * (pic16_aopGet): removed switch cases for AOP_R0,AOP_R1,AOP_DPTR,
3234         AOP_DPTR2,
3235         * (pic16_storeForReturn): added case to handle when dest is WREG,
3236         * src/pic16/genarith.c (pic16_pCodeOpSubType): NEW,
3237         * src/pic16/glue.c (pic16emitRegularMap): when adding a register in
3238         pic16_rel_udata, check to see if that register is marked as being
3239         a member of a specific memory bank,
3240         * (pic16_printIvalCharPtr): added code to add string literals either
3241         to code or the idata sections,
3242         * src/pic16/main.c (_process_pragma): added \n to WHITE constant,
3243         also accept the 'udata' pragma,
3244         * src/pic16/main.h: new structure types sectName and sectSym
3245         * src/pic16/pcode.c: added new pCodeInstruction entry for BANKSEL
3246         * (newpCodeOpBit): added PIC_OPTYPE subt in function prototype,
3247         * (pic16_findPrevInstruction): fixed, it returned nothing,
3248         * (insertBankSwitch): fixed to emit banksel/skip and skip/banksel
3249         instruction combinations,
3250         * (pic16_FixRegisterBanking): heavily reorganised,
3251         * (pic16_AnalyzeBanking): if generating banksel directives is
3252         disabled, then don't call FixRegisterBanking at all,
3253         * src/pic16/ralloc.c (bitEQUs, aliasEQUs, allDefsOutOfRange):
3254         completely removed,
3255         * (pic16_writeUsedRegisters): added call to pic16_dump_gsection
3256
3257 2004-06-29 Bernhard Held <bernhard AT bernhardheld.de>
3258
3259         * src/SDCCglue.c (printChar): fixed bug #973350, patch provided by
3260         Phuah Yee Keat <yk.phuah AT nestac.com>
3261
3262 2004-06-28 Vangelis Rokas <vrokas AT otenet.gr>
3263
3264         * src/pic16/glue.c (pic16createInterruptVect): function now emits
3265         correctly the IVT even if it is relocated to some other location
3266
3267 2004-06-28 Vangelis Rokas <vrokas AT otenet.gr>
3268
3269         * device/include/pic16/pic18fregs.h: added case for pic18f2220.h
3270         * device/include/pic16/pic18f2220.h: NEW,
3271         * device/lib/pic16/libdev/pic18f2220.c: NEW,
3272         * device/lib/pic16/libdev/Makefile: added 18f2220 in DEVS,
3273         * src/pic16/device.c (struct Pics16): added info for 18f2220,
3274         * src/pic16/device.h (struct pic16_options): added ivt_loc and
3275         nodefaultlibs, ivt_loc is the location of the interrupt vector
3276         table, and nodefaultlibs signs that default libraries should not be
3277         linked in link stage,
3278         * src/pic16/gen.c (genFunction): relocate interrupt vector functions
3279         according to --ivt-loc argument,
3280         * src/pic16/main.c (_process_pragma): emit '_stack' as public symbol
3281         when pragma stack is found,
3282
3283 2004-06-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3284
3285         * src/mcs51/peeph.def: added peepholes 182.d (return 0.0),
3286         256 (range check), 257 (do while), 258.a-f (bit banging
3287         f.e. on 3-wire SPI bus)
3288
3289 2004-06-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3290
3291         * src/SDCClrange.c (findNextUseSym): fixed a live range bug with
3292         variables used exclusively within a loop
3293
3294 2004-06-21 Bernhard Held <bernhard AT bernhardheld.de>
3295
3296         * src/mcs51/gen.c (genCpl): quick fix for bug #974835
3297
3298 2004-06-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3299
3300         * src/SDCClrange.c (computeClash): fixed bug #971834
3301
3302 2004-06-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3303
3304         * src/mcs51/gen.c (genCmp): fixed bug #975903
3305         * src/hc08/gen.c (operandsEqu),
3306         * src/ds390/gen.c (operandsEqu),
3307         * src/z80/gen.c (operandsEqu),
3308         * src/pic/gen.c (operandsEqu),
3309         * src/pic16/gen.c (operandsEqu),
3310         * src/mcs51/gen.c (operandsEqu): fixed bug #976283
3311         * src/SDCCmain.c (parseCmdLine): report --unknown-option only once
3312
3313 2004-06-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3314
3315         * src/SDCCcse.c (cseBBlock): fixed bug #966963
3316
3317 2004-06-12 Vangelis Rokas <vrokas AT otenet.gr>
3318
3319         * src/pic16/gen.c (genPointerGet): added E_INTERNAL_ERROR for
3320         default case in switch statement,
3321         * glue.c (pic16_initPointer): expr is initialised via decoarteType
3322         to eliminate problem with initialisation of pointers, but problem
3323         still exists,
3324         * (pic16_pointerTypeToGPByte): removed, no needed for pic16,
3325         * (emitStaticSegment): removed various lines emitting debug info,
3326         * src/pic16/pcode.c, src/pic16/pcode.h, src/pic16/ralloc.h:
3327         added processor registers for utilizing EEPROM,
3328         * src/pic16/pcode.c (pic16_emitDB): number of DBs emitted is not
3329         configurable and set 8
3330
3331 2004-06-08 Vangelis Rokas <vrokas AT otenet.gr>
3332
3333         * .version: increased version number to 2.4.2,
3334
3335         Cumulative patch for pic16 port
3336         * src/pic16/device.c: changed scheme to dump initial values for
3337         variables in idata segment, all print_idata* functions were removed,
3338         now the pic16_printIval* will be called,
3339         * src/pic16/glue.c: (pic16_initPointer, pic16_pointerTypeToGPByte,
3340         * _pic16_printPointerType, pic16_printPointerType,
3341         * pic16_printGPointerType, pic16_printIvalArray, pic16_printIvalStruct,
3342         * pic16_printIvalBitFields, pic16_printIvalFuncPtr, pic16_printIvalPtr:
3343         NEW, similar to the respective functions in SDCCglue.c,
3344         * src/pic16/pcode.c (pic16_emitDB, pic16_flushDB): reverted to old
3345         way, emitting hex bytes,
3346         * (pic16_emitDS): NEW, emits a string for pointer initialisation,
3347
3348 2004-06-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3349
3350         * src/avr/ralloc.c (serialRegAssign),
3351         * src/xa51/ralloc.c (serialRegAssign),
3352         * src/pic/ralloc.c (serialRegAssign),
3353         * src/pic16/ralloc.c (serialRegAssign),
3354         * src/hc08/ralloc.c (serialRegAssign),
3355         * src/z80/ralloc.c (serialRegAssign),
3356         * src/ds390/ralloc.c (serialRegAssign),
3357         * src/mcs51/ralloc.c (serialRegAssign): fixed bug #964479
3358
3359 2004-06-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3360
3361         * src/SDCCicode.c (geniCodeJumpTable): fixed bug #967601
3362         * src/SDCCpeeph.c (labelIsReturnOnly): fixed bug #966505
3363
3364 2004-06-07 Vangelis Rokas <vrokas AT otenet.gr>
3365
3366         Cumulative patch for pic16 port:
3367         * src/pic16/device.h (typedef PIC16_device) modified fields for
3368         defining microcontrollers,
3369         * src/pic16/device.c: added new info for all devices in Pics16 array,
3370         * src/pic16/gen.c (genPcall): fixed bug that caused the return label
3371         to be optimised out by the pCode optimiser,
3372         * src/pic16/glue.c (pic16emitRegularMap): treat implicit aggragates
3373         specially, bug reported by G.M. Gallant,
3374         * src/pic16/pcode.c (pic16_newpCodeLabelFORCE): NEW, marks a label
3375         as force'd so that cannot be optimised out by pCode optimiser,
3376         * src/pic16/pcode.c,
3377         * src/pic16/pcodepeeph.c,
3378         * src/pic16/pcoderegs.c: many modifications to re-enable peepholes,
3379         they are disabled by default, but can be enabled explicit with
3380         command argument --denable-peeps, for testing,
3381         * device/lib/pic16/startup/Makefile: added --no-peep,--pomit-config-words,
3382         --pomit-ivt in COMPILE_FLAGS
3383
3384 2004-06-06 Maarten Brock <sourceforge.brock AT dse.nl>
3385
3386         * src/pic16/pcode.c (pic16_emitDB): removed double semicolon which fails
3387           compilation on MSVC
3388
3389 2004-06-06 Maarten Brock <sourceforge.brock AT dse.nl>
3390
3391         * device/include/sab80515.h: added sfr P6, changed GPL to LGPL
3392
3393 2004-06-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3394
3395         device/include/sab80515.h: fixed bug #967492, DAPR is defined at adress
3396         0xd8, but the correct adress is 0xda. Thanks to anonymous for reporting
3397
3398 2004-06-06 Vangelis Rokas <vrokas AT otenet.gr>
3399
3400         * src/pic16/device.c (pic16_assignConfigWord): fixed bug that
3401         would only assign 0x300001 register.
3402
3403 2004-06-05 Vangelis Rokas <vrokas AT otenet.gr>
3404
3405         * device/lib/pic16/startup/Makefile: added $(MODELFLAGS)
3406         in COMPILE_FLAGS. Thanks to G. Gallant for report.
3407
3408 2004-06-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3409
3410         * doc/sdccman.lyx: minor changes, mentioned beta vendor support
3411         for ds80c400
3412         * src/mcs51/peeph.def: ran unexpand -a over peeph.def
3413         * src/mcs51/peeph.def: removed obsolete peephole 100.a,
3414         added peephole 254 (left shift), 255 (jump table)
3415
3416 2004-06-04 Vangelis Rokas <vrokas AT otenet.gr>
3417
3418         * device/lib/Makefile.in: removed comment line with model-pic16,
3419         * (target port-specific-objects-pic16): the libraries and objects
3420         are copied to the build directory form the device/lib/pic16/bin
3421         directory
3422
3423         Cumulative patch concerning pic16 port:
3424         * library directory has been re-organized,
3425         * added support for PIC18F1220,
3426         * added headers and library sources for chips 18f1220,18f6520,
3427         18f6620,18f6680,18f6720,18f8520,18f8620,18f8680,18f8720
3428
3429         * configuration registers setting has changed, now each supported
3430         device has a complete description of the registers it uses,
3431         * all initialisations are moved to idata sections, these section
3432         can be absolute or relocatable,
3433         * fixed initialisation of codespace variables,
3434         * fixed warning about PCLATU and gpsim,
3435         * src/pic16/gen.c (genCmp): now can handle partially iCodes with no ifx,
3436         * (genAssign): use table reads when assigning from variables in codespace,
3437         * src/pic16/glue.c (pic16emitStaticSeg): fixed to correctly initialise
3438         char/int variables placed in codespace,
3439         * (pic16_emitConfigRegs): NEW, emits a list with configuration
3440         registers set in .asm file, no need for --pomit-config-words anymore,
3441         * (pic16glue): some 8051 legacy segments are commented out
3442         (to be removed completely),
3443         * added support for alternative assembler and linker with --asm=
3444         and --link= command line arguments,
3445         * peepholes are disabled automatically in the port, no need to
3446         specify on command line,
3447         * port supports natively char/int/long multiplication, but converts
3448         all divisions to support functions,
3449         * main.c: pic16_linkCmd and pic16_asmCmd changed to force output
3450         to the file set in variable $2,
3451         * pcode.c (pic16_emitDB, pic16_flushDB): modified to print printable
3452         strings in ASCII format and not in hex,
3453         * ralloc.c (serialRegAssign): added a triplet of conditional calls
3454         to pic16_allocDirReg for IC_RESULT, IC_LEFT and IC_RIGHT so to
3455         allocate proper register if iCodes aren't temporary,
3456
3457 2004-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
3458
3459         * support/regression/tests/zeropad.c: added TEST_G macro for alpha
3460
3461 2004-06-02 Vangelis Rokas <vrokas AT otenet.gr>
3462
3463         * src/pic16/gen.c (genPcall): warning about gpsim and PCLATU
3464         is commented out
3465
3466 2004-06-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3467
3468         * src/hc08/gen.c (genPointerGetSetOfs): disabled optimization if
3469         computed address is reused
3470         * src/hc08/gen.c (genPackBits): fixed offsets in assignments to
3471         multi-byte bitfields
3472
3473 2004-06-01 Maarten Brock <sourceforge.brock AT dse.nl>
3474
3475         * src/z80/gen.c: (genArrayInit): must check for pointers too
3476
3477 2004-06-01 Maarten Brock <sourceforge.brock AT dse.nl>
3478
3479         * support/regression/tests/zeropad.c: never meant to commit the
3480           nestedstruct test: removed, added check for GCC version
3481
3482 2004-05-31 Maarten Brock <sourceforge.brock AT dse.nl>
3483
3484         * src/SDCCast.c (createIvalArray): fixed bug 770487 SIGSEGV
3485         * src/SDCCglue.c (emitRegularMap): fixed bug 770484 allocation problem
3486         * src/SDCCglue.c (initPointer, printIvalType, printIvalStruct,
3487           printIvalArray, printIvalFuncPtr, printIvalPtr, printIval): fixed
3488           bugs 928906 and 954082 half-empty initializers
3489         * src/SDCCsymt.h,
3490         * src/SDCCsymt.c (getAllocSize): added for above fix
3491         * src/z80/gen.c (genArrayInit): fixed bug 741044
3492         * support/regression/tests/zeropad.c: added tests
3493
3494 2004-05-30 Vangelis Rokas <vrokas AT otenet.gr>
3495
3496         * src/pic16/device.c (pic16_dump_section): corrected bug which
3497         caused some symbols of the libraries to be misplaced
3498
3499 2004-05-28 Vangelis Rokas <vrokas AT otenet.gr>
3500
3501         * src/pic16/glue.c,
3502         * src/pic16/ralloc.h,
3503         * src/pic16/ralloc.cc: prefixed IS_CONFIG_ADDRESS with PIC16_
3504         to fix conflict with pic port
3505
3506 2004-05-28 Vangelis Rokas <vrokas AT otenet.gr>
3507
3508         * src/pic16/glue.c (pic16emitStaticSeg): do not print as publics or
3509         externs configuration variables,
3510         * src/pic16/ralloc.h,
3511         * src/pic16/ralloc.cc: IS_CONFIG_ADDRESS is made public and added
3512         prototype in header, commented out some debug messages
3513
3514 2004-05-26 Vangelis Rokas <vrokas AT otenet.gr>
3515
3516         * src/pic16/glue.c,
3517         * src/pic16/main.c,
3518         * src/pic16/pcode.c: added gpasm directives #FILE/#LINE
3519         for gpasm COFF object generation. Thanks to D. Hawkins for
3520         his patch info
3521
3522 2004-05-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3523
3524         * src/ds390/main.c,
3525         * src/mcs51/main.c: fixed sort order of mnemonics (thanks to Maarten
3526         Brock for spotting this)
3527         * src/ds390/gen.c (genEndFunction),
3528         * src/mcs51/gen.c (genEndFunction): always save psw if function is an
3529         interrupt handler and critical. Disable push/pop optimizations when
3530         peephole optimizations disabled.
3531
3532 2004-05-25 Vangelis Rokas <vrokas AT otenet.gr>
3533
3534         Updated pic16 library sources and headers.
3535         * device/lib/pic16/pic18f*/ ,
3536         * device/include/pic16/*.h: modified to handle structured SFR
3537         definitions
3538
3539 2004-05-25 Vangelis Rokas <vrokas AT otenet.gr>
3540
3541         * src/port.h (PORT structure): added hook initPaths, now each
3542         port can declare its own default search paths,
3543         which can been seen with the --print-search-dirs option,
3544         see pic16 port for example,
3545         * src/SDCCmain.c (setBinPaths, setIncludePaths, setLibPath,
3546         setDataPaths): test to options.printSearchDirs is ifdef'ed out,
3547         * (doPrintSearchDirs): NEW, replaces in a central manner the
3548         printing of search dirs which was split in set*Paths functions,
3549         * (main): added call to port->initPaths and doPrintSearchDirs,
3550         * src/avr/main.c,
3551         * src/ds390/main.c,
3552         * src/hc08/main.c,
3553         * src/izt/i186.c,
3554         * src/izt/tlcs900h.c,
3555         * src/mcs51/main.c,
3556         * src/pic/main.c,
3557         * src/pic16/main.c: modified port structures to reflect addition of
3558         initPaths hook,
3559
3560         * src/pic16/device.c (regCompare): registers are finally sorted by name,
3561         * (pic16_dump_section): for registers in same address reserve memory once,
3562         * src/pic16/device.h (struct PIC16_device): changed variable gen_banksel
3563         to no_banksel,
3564         * src/pic16/genarith.c (pic16_genPlus): added code to handle cases where
3565         result is greater in size than right or left,
3566         * (pic16_genUMult8X8_8): there are some cases where the result can
3567         be 16 bits size, so handle these,
3568         * src/pic16/gen.c: changed some pic16_emitpcomment to DEBUGpic16_emitcode,
3569         * (pic16_outBitC): modified to emit pcodes,
3570         * (pic16_storeForReturn): using is_LitOp to see if operand is literal
3571         or not,
3572         * (genDivOneByte): implemented algorithm to divide 8-bits,
3573         * (genCmp): uncommented goto, but issues still exist,
3574         * (genAnd): fixed a bug with variables >8bits,
3575         * (genPackBits): optimization added that uses BCF/BSF to change a
3576         single bit,
3577         * (genAssign): fixed bug when assigning floating point literals,
3578         * src/pic16/glue.c (pic16glue): added assembler directive 'code' before
3579         __sdcc_gsinit_startup label,
3580         * src/pic16/main.c (_pic16_init): removed search directory
3581         initialisations,
3582         * (_pic16_initPaths): NEW, used to initialise search directories,
3583         * (_hasNativeMulFor): support functions for all except char/int
3584         multiplication, and char division,
3585         * (PIC16_port struct): modified entry for native mul support,
3586         * src/pic16/pcode.c (insertBankSwitch): modified to support the renamed
3587         no_banksel option,
3588         * (buildCallTree): call to register_usage is ifdef'ed out,
3589
3590 2004-05-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3591
3592         * device/include/string.h: applied Stas Sergeev's patch to make this
3593         header file compatible with the preprocessor -Wundef option
3594         * src/SDCCmain.c (main): abort compilation if preprocessor reports
3595         failure (fixes bug #941458)
3596
3597 2004-05-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3598
3599         * src/SDCCopt.c (killDeadCode): fixed bug #907733
3600         * support/Util/SDCCerr.c: reworded E_AUTO_ASSUMED diagnostic to clarify
3601         that the variable, not the function, should be static
3602         * src/SDCCval.c (valCastLiteral): fixed bit initialization from literal
3603         to be consistent with non-literal case
3604
3605 2004-05-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3606
3607         * src/SDCCast.c (isConformingBody): fixed bug #949967
3608         * src/SDCCopt.c (cnvToFcall, cnvToFloatCast, cnvFromFloatCast,
3609         convilong): fixed bug #952086
3610
3611 2004-05-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3612
3613         * src/SDCCmem.c (allocVariables): fixed bug #955321
3614
3615 2004-05-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3616
3617         * src/hc08/main.c (_hc08_genAssemblerEnd),
3618         * src/SDCCdwarf2.c (dwOpenFile, dwCloseFile, dwWriteFunction,
3619         dwWriteModule, dwWriteCLine, dwWriteALine, dwarf2FinalizeFile):
3620         completely eliminated the use of a temporary file
3621         * src/SDCCdwarf2.c (dwWriteAttr): fixed bug with location list offset
3622         when more than one file linked
3623         * src/SDCCloop.c (pointerAssigned): fixed bug #954163
3624
3625 2004-05-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3626
3627         * src/SDCCval.c (valForArray): applied Maarten Brock's patch #947682
3628         which fixes bug #543481
3629         * support/regression/tests/bug-751703.c: fixed comments left from a
3630         cut and paste error
3631         * src/SDCCdwarf2.c (dwCloseFile): don't explicitly close a temp file
3632         * src/SDCCdwarf2.c (dwTagFromType): added bitfield support
3633         * src/SDCCdwarf2.c (dwWriteSymbolInternal): handle extern within local
3634         scopes
3635         * src/SDCCdwarf2.c (dwWriteLineNumber): line number deltas are signed
3636         * src/SDCCmain.c (processFile, parseCmdLine): non-alphanumeric chars
3637         are now changed to underscores in moduleName
3638
3639 2004-05-15 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3640
3641         * as/mcs51/lkmem.c: better fix for bug #954173
3642
3643 2004-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
3644         committed by Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3645
3646         * device/include/c8051f020.h: newly added SiLabs (Cygnal) header file
3647         * device/include/c8051f000.h,
3648         * device/include/c8051f120.h,
3649         * device/include/c8051f300.h,
3650         * device/include/c8051f310.h,
3651         * device/include/c8051f320.h: updated (added _XPAGE, CAPN, CAPP,
3652         PWM16) and detab'ed
3653
3654 2004-05-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3655
3656         * doc/sdccman.lyx: mentioned sourceforge's delay between web frontend
3657         and mailing lists, doc'ed --no-peep-comments, removed reference
3658         to knoppix (newest version has no LyX/LaTeX), other minor changes
3659         * src/SDCCglue.c (glue): save 2 bytes stack space with
3660         option --main-return. The ljmp could probably be avoided too
3661
3662 2004-05-14 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3663
3664         * as/mcs51/lkmem.c, as/mcs51/lkaomf51: fixed bug 954173
3665
3666 2004-05-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3667
3668         * src/SDCCsymt.h: added IS_AUTO(symbol) test macro
3669         * src/SDCCopt.c (isLocalWithoutDef),
3670         * src/SDCCicode.c (operandFromSymbol): use the IS_AUTO test macro
3671         which adds a !IS_EXTERN codition. Fixes bugs #877426 and #751703.
3672         (credit to Maarten Brock for patch #949363, on which this is based)
3673         * support/regression/tests/bug-751703.c: some test cases of extern used
3674         within inner scopes.
3675
3676 2004-05-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3677
3678         * src/SDCCdwarf2.c (dwMatchTypes): structs must have matching
3679         SPEC_STRUCT
3680         * src/SDCCdwarf2.c (dwTagFromType): fix to handle recursive
3681         struct definitions
3682         * src/SDCCdwarf2.c (dwWriteModule, dwNewDebugSymbol, dwWriteEndFunction,
3683         dwWriteLabel): fix to create valid debugger symbols even when
3684         the module name has non-alphanumeric symbols in it
3685         * src/SDCCdwarf2.c (dwWriteSymbolInternal): better detection for
3686         when a variable's allocation has been optimized away
3687
3688
3689 2004-05-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3690
3691         * src/hc08/gen.c (hc08_emitDebuggerSymbol),
3692         * src/hc08/main.c,
3693         * src/mcs51/gen.c (mcs51_emitDebuggerSymbol),
3694         * src/mcs51/main.c,
3695         * src/ds390/gen.c (ds390_emitDebuggerSymbol),
3696         * src/ds390/main.c,
3697         * src/z80/gen.c (z80_emitDebuggerSymbol),
3698         * src/z80/main.c,
3699         * src/pic/gen.c (pic14_emitDebuggerSymbol),
3700         * src/pic/main.c,
3701         * src/pic16/gen.c (pic14_emitDebuggerSymbol),
3702         * src/pic16/main.c,
3703         * src/avr/gen.c (avr_emitDebuggerSymbol),
3704         * src/avr/main.c,
3705         * src/xa51/gen.c (xa51_emitDebuggerSymbol),
3706         * src/xa51/main.c,
3707         * src/SDCCdebug.c (emitDebuggerSymbol),
3708         * src/SDCCdebug.h,
3709         * src/port.h: added a debugger struct to the port struct. Added a
3710         callback for defining debugger symbols
3711
3712         * src/SDCCast.c (createLabel),
3713         * src/SDCC.y (labeled_statement): mark all compiler generated labels
3714         with isitmp = 1
3715         * src/SDCCicode.h,
3716         * src/SDCCicode.c (geniCodeFunctionBody): added a link from the FUNCTION
3717         iCode back to the ast for the function
3718
3719         * src/hc08/ralloc.c (hc08_assignRegisters),
3720         * src/hc08/ralloc.h: define a regs struct for the stack pointer. Removed
3721         unneeded fields from the regs struct.
3722         * src/hc08/gen.c (transferRegReg, genFunction, genEndFunction): use the
3723         pushReg() & pullReg() functions instead of emitcode()
3724
3725         * src/hc08/gen.c (genLabel, genhc08Code),
3726         * src/SDCCdebug.h: Added additional debugger hooks needed for DWARF
3727
3728         * src/cdbFile.c (cdbWriteLabel, cdbWriteScope): Added stubs for unneeded
3729         debugger hooks
3730
3731         * src/hc08/gen.c (genEndFunction, genhc08Code),
3732         * src/hc08/gen.h,
3733         * src/mcs51/gen.c (genEndFunction, gen51Code),
3734         * src/mcs51/gen.h,
3735         * src/ds390/gen.c (genEndFunction, gen390Code),
3736         * src/ds390/gen.h,
3737         * src/z80/gen.c (genEndFunction, genZ80Code),
3738         * src/z80/gen.h,
3739         * src/z80/z80.h,
3740         * src/pic/gen.c (genEndFunction, genpic14Code),
3741         * src/pic/gen.h,
3742         * src/pic16/gen.c (genEndFunction, genpic16Code),
3743         * src/pic16/gen.h,
3744         * src/avr/gen.c (genEndFunction, genAVRCode),
3745         * src/avr/gen.h,
3746         * src/xa51/gen.c (genEndFunction, genXA51Code),
3747         * src/xa51/gen.h,
3748         * src/cdbFile.c (cdbWriteFunction, cdbWriteEndFunction): moved cdb
3749         specific code to cdbFile.c and out of the backend code generators
3750
3751         * as/hc08/lkmain.c (main): removed OMF51 support from link-hc08
3752         * as/hc08/lkarea.c (lnkarea): areas with NOLOAD attribute default
3753         starting address is now 0
3754
3755         * as/hc08/asm.h,
3756         * as/hc08/m08pst.c,
3757         * as/hc08/asmain.c (asmbl): implemented the .sleb128 and .uleb128
3758         assembler directive for DWARF support
3759         * as/hc08/lkelf.c (elf): only increment address when rtflg[] set
3760
3761         * src/src.dsp,
3762         * src/Makefile.in,
3763         * src/SDCCdwarf2.c: preliminary DWARF (ver 2) debugger data generator
3764
3765 2004-05-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3766
3767         * src/hc08/gen.c (genJumpTab, emitcode, genhc08code): fixed stack error
3768         and inappropriate peephole optimization in jump tables
3769
3770 2004-04-30 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3771
3772         * as/hc08/m08pst.c,
3773         * src/SDCCglue.c: sdccopt works for the hc08 port now
3774
3775 2004-04-27 Bernhard Held <bernhard AT bernhardheld.de>
3776
3777         * src/SDCCicode.c (geniCodePreInc, geniCodePreDec): fixed bug #942130
3778
3779 2004-04-27 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3780
3781         * as/hc08/lkelf.c: sdccconf.h is not available in WIN32
3782
3783 2004-04-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3784
3785         * src/SDCCpeeph.c (replaceRule): support empty replacement peephole
3786         rules
3787         * src/SDCCmain.c,
3788         * src/SDCCglobl.h,
3789         * src/SDCCpeeph.c (getPeepLine): new option --no-peep-comments omits
3790         comments from the peephole optimizer replacement rules
3791         * src/SDCCmem.c (printAllocInfoSeg): give actual location of spilled
3792         symbols
3793         * src/SDCCcse.c (updateSpillLocation),
3794         * src/SDCCopt.c (killDeadCode, findReqv): better tracking of register
3795         equivalents
3796         * src/hc08/ralloc.c (regTypeNum): pseudo symbols must be in DATA only
3797         * src/hc08/main.c (_hc08_finaliseOptions): made pointers to stack
3798         objects far pointers
3799
3800 2004-04-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3801
3802         * src/SDCCsymt.h: a missing part of my last change
3803         * src/pic/ralloc.c (regTypeNum),
3804         * src/pic16/ralloc.c (regTypeNum): fixed statement/declaration order
3805
3806 2004-04-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3807
3808         * src/SDCCicode.h,
3809         * src/SDCCicode.c (aggrToPtrDclType),
3810         * src/SDCCptropt.h,
3811         * src/SDCCptropt.c (ptrBaseRematSym, ptrPseudoSymSafe,
3812         ptrPseudoSymConvert),
3813         * src/pic/ralloc.c (regTypeNum),
3814         * src/pic16/ralloc.c (regTypeNum),
3815         * src/hc08/ralloc.c (regTypeNum),
3816         * src/ds390/ralloc.c (regTypeNum),
3817         * src/mcs51/ralloc.c (regTypeNum): check for dependancy hazards before
3818         creating pseudo symbols (fixed bugs #777768, #930484, and #933966)
3819
3820 2004-04-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3821
3822         * link/z80/lkmain.c (afile),
3823         * as/hc08/lkmain.c (afile),
3824         * as/mcs51/lkmain.c (afile): fix suggested by Maarten Brock to
3825         prevent a pointer problem when a filename has no directory and
3826         no extension specified.
3827
3828 2004-04-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3829
3830         * link/z80/lkmain.c (afile): allow periods in directory names
3831         * link/z80/lkmain.c (afile),
3832         * as/mcs51/lkmain.c (afile),
3833         * as/hc08/lkmain.c (afile): allow linker script file to have an
3834         extension other than ".lnk"
3835         * link/z80/lklex.c (getfid),
3836         * link/z80/lkmain.c (parse),
3837         * as/mcs51/lklex.c (getfid),
3838         * as/mcs51/lkmain.c (parse),
3839         * as/hc08/lklex.c (getfid),
3840         * as/hc08/lkmain.c (parse): Support comments in the linker script
3841         file on lines by themselves and after filenames
3842
3843 2004-04-20 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3844
3845         * as/link_hc08.dsp: Added as/hc08/lkelf.c to project.
3846
3847 2004-04-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3848
3849         * src/z80/peeph-z80.def: removed some peephole rules that don't
3850         work with multibyte arithmetic (fixed bug #937126)
3851         * src/mcs51/peeph.def: fixed peephole rules 150-158 to apply only
3852         to registers and not global variables
3853         * src/SDCCicode.c (geniCodeAssign, ast2iCode, geniCodePostInc,
3854         geniCodePreInc, geniCodePostDec, geniCodePreDec,
3855         geniCodeLogicAndOr, geniCodeConditional): enforce strict lvalue
3856         checking for assignments not internally generated (fixed bug #931895)
3857         * src/SDCC.y (postfix_expr): ignore typedefs when looking for a
3858         structure member (fixed bug #930072)
3859
3860 2004-04-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3861
3862         * src/SDCCmain.c (linkEdit),
3863         * src/hc08/main.c (_hc08_parseOptions),
3864         * as/hc08/Makefile.in,
3865         * as/hc08/aslink.h,
3866         * as/hc08/asm.h,
3867         * as/hc08/m08pst.c,
3868         * as/hc08/lkrloc.c (relr, rele),
3869         * as/hc08/lkarea.c (lnkarea)
3870         * as/hc08/lkmain.c (afile, parse),
3871         * as/hc08/lkelf.c: support for ELF output
3872         * as/hc08/lks19.c (s19),
3873         * as/hc08/lkihx.c (ihx): ignore areas with the NOLOAD attribute
3874
3875 2004-04-17 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3876
3877         * as/mcs51/lkihx.c: Fixed bug #899105.
3878
3879 2004-04-16 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3880
3881         * doc/sdccman.lyx: Added instructons on how to convert MSVC .dsw and
3882         .dsp files from Unix to DOS.
3883
3884 2004-04-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3885
3886         * doc/sdccman.lyx: removed the ANSI-C noncompliance note regarding
3887         function pointers; we have been compliant for several months now.
3888         * src/mcs51/ralloc.c (serialRegAssign): enabled part of my 2004-04-13
3889         change that was accidently commented out
3890         * src/mcs51/gen.c (freeAsmop, getFreePtr, freeForBranchAsmop, genIfxJump,
3891         genCmpEq, jmpTrueOrFalse, genCmp, genAnd, genOr, genXor, genIfx): fixed
3892         bug #922319
3893
3894 2004-04-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3895
3896         * src/hc08/gen.c: output of all of the internal debugging information
3897         is now controlled by the D() macro; it is disabled by default
3898
3899 2004-04-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3900
3901         * src/mcs51/ralloc.c (serialRegAssign, fillGaps, allocThisReg): try
3902         harder to keep the same registers during a CAST iCode
3903         * src/SDCCopt.c (optimizeCastCast, eBBlockFromiCode): casts of char to
3904         long via int can be done in a single cast, if the signedness is
3905         correct.
3906         * support/regression/tests/bug-927659.c: fixed to avoid conflict with
3907         putchar() in tinibios.c in ds390's library
3908
3909 2004-04-12 Bernhard Held <bernhard AT bernhardheld.de>
3910
3911         * src/SDCCast.c (decorateType): fixed bug #898889,
3912         cast result of a literal complement too
3913         * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #930931,
3914         fixed check for bitfields
3915
3916 2004-04-11 Bernhard Held <bernhard AT bernhardheld.de>
3917
3918         * src/SDCCicode.c (geniCodeLogic): made it static,
3919         (geniCodeLogicAndOr): added in order to fix bug #905492,
3920         (ast2iCode): fixed bug #905492
3921         * support/regression/tests/bug-905492.c: added
3922         * src/SDCCast.c (decorateType): don't decorate/process parms twice,
3923         (processParms): fixed bug #927659: don't copy parms, this will clear
3924         decorated flag
3925         * support/regression/tests/bug-927659.c: added
3926
3927 2004-03-29 Bernhard Held <bernhard AT bernhardheld.de>
3928
3929         * src/SDCCast.c (addCast): don't cast float to char
3930         * device/lib/libsdcc.lib: added _memmove
3931
3932 2004-03-28 Bernhard Held <bernhard AT bernhardheld.de>
3933
3934         * device/lib/large/Makefile: fixed parallel execution by
3935         replacing `make` by `$(MAKE)`
3936
3937 2004-03-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3938
3939         * src/hc08/gen.c (genPointerGetSetOfs): correctly handle 1 byte array
3940         offsets (fixes bug #923936)
3941
3942 2004-03-26 Bernhard Held <bernhard AT bernhardheld.de>
3943
3944         * device/lib/small/Makefile: fixed parallel execution by
3945         replacing `make` by `$(MAKE)`
3946
3947 2004-03-23 Bernhard Held <bernhard AT bernhardheld.de>
3948
3949         * device/lib/vprintf.c (vsprintf): minor optimization, see bug #801101
3950
3951 2004-03-23  Scott Dattalo  <scott AT dattalo.com>
3952
3953         * src/pic/gen.c (genCpl): multi-byte complements were not working.
3954         * src/regression/Makefile: Regression test was not running.
3955
3956 2004-03-23 Bernhard Held <bernhard AT bernhardheld.de>
3957
3958         * src/SDCCast.c (resultTypePropagate, decorateType): avoid promotion to int for
3959         complement if possible
3960         * src/SDCCval.c (valComplement),
3961         * src/SDCCicode.c (operandOperation): fixed complement of literal
3962         * support/regression/tests/onebyte.c (testComplement): added
3963
3964 2004-03-22 Bernhard Held <bernhard AT bernhardheld.de>
3965
3966         * src/SDCCast.c (processParms): fixed bug #920866; decorateType() can
3967         return an optimized tree; actually replace actParm with the new tree
3968         * src/SDCCast.h: added some parantheses to remove side effects
3969         * support/regression/tests/bug-920866.c
3970
3971 2004-03-21  Scott Dattalo  <scott AT dattalo.com>
3972         * src/pic/gen.c, src/pic/gen.h, src/pic/genarith.c, src/pic/pcode.c:
3973         Bit operands were not being handled properly in the pic14 port.
3974         (now src/regression/add.c passes again).
3975
3976 2004-03-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3977
3978         * src/SDCC.y (labeled_statement): case and default no longer require
3979         a following statement (RFE #893037)
3980
3981 2004-03-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3982
3983         * src/mcs51/gen.c (pushSide, genSignedRightShift, genDjnz, geniPush):
3984         use MOVA macro to avoid "mov a,acc" when peephole optimizer is
3985         disabled (fixes bug #916294)
3986         * sim/ucsim/s51.src/mov.cc (inst_mov_a_addr): Throw an error on
3987         "mov a,acc"; patch provided by Lenny Story
3988         * device/include/mc68hc908gp32.h: header contibuted by Juan Gonzalez
3989
3990 2004-03-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3991
3992         * src/mcs51/gen.c (genFunction): optimize RECEIVE in reentrant
3993         functions
3994         * src/ds390/gen.c (genFunction, genEndFunction),
3995         * src/ds390/ralloc.c (ds390_assignRegisters),
3996         * src/mcs51/gen.c (genFunction, genEndFunction, mcs51_assignRegisters):
3997         * src/mcs51/ralloc.c (mcs51_assignRegisters): Skip optimizing registers
3998         pushed if there are parameters passed on the stack. Also, a cleaner
3999         way to decide if r0/r1 should be pushed/popped. (Together they fix
4000         bug #918693)
4001
4002 2004-03-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4003
4004         * doc/sdccman.lyx,
4005         * device/lib/mcs51/crtpagesfr.asm,
4006         * device/lib/mcs51/crtxinit.asm,
4007         * device/lib/mcs51/crtxstack.asm: Changed name of _PAGESFR to _XPAGE
4008         to avoid confusion with Si Lab's SFRPAGE register.
4009
4010 2004-03-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4011
4012         * src/SDCCglue.c (emitMaps): allow public sfr variables
4013         * src/SDCCglue.c (initialComments): include compiler build date
4014         with compiler version and put the timestamp of the generated
4015         assembly file on a serperate line to be less confusing.
4016         * src/port.h: added genInitStartup hook
4017         * src/avr/main.c,
4018         * src/ds390/main.c,
4019         * src/hc08/main.c,
4020         * src/pic/main.c,
4021         * src/pic16/main.c,
4022         * src/xa51/main.c,
4023         * src/z80/main.c: genInitStartup initialize as NULL (default to
4024         historical behaviour)
4025         * src/SDCCglue.c (glue): _sdcc_gsinit_startup is now port specific.
4026         * src/mcs51/main.c: (_mcs51_genInitStartup, _mcs51_genExtraAreas,
4027         _mcs51_genXINIT, _mcs51_genRAMCLEAR): link initialization code from the
4028         library instead of hard coding it into the compiler.
4029         * support/regression/ports/mcs51-stack-auto/spec.mk,
4030         * src/SDCCmain.c (linkEdit): added mcs51.lib to the link libraries
4031         * device/lib/mcs51/Makefile,
4032         * device/lib/small/Makefile,
4033         * device/lib/large/Makefile,
4034         * device/lib/mcs51/crtpagesfr.asm,
4035         * device/lib/mcs51/crtstart.asm,
4036         * device/lib/mcs51/crtxclear.asm,
4037         * device/lib/mcs51/crtxinit.asm,
4038         * device/lib/mcs51/crtclear.asm,
4039         * device/lib/mcs51/crtxstack.asm: move most of the mcs51 C runtime
4040         startup/initialization out of src/SDCCglue.c and src/mcs51/main.c
4041         and into user configurable files.
4042         * device/lib/clean.mk: clean mcs51 directory too
4043         * support/regression/tests/longlit.c: added static to T1 declaration
4044         * doc/sdccman.lyx: documented _PAGESFR sfr for customizing pdata
4045         accesses in the initialization code
4046
4047 2004-03-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4048
4049         * device/include/mc68hc908qy.h: corrected declarations of FLBPR and
4050         OSCTRIMVAL as noted in bug #916008
4051
4052 2004-03-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4053
4054         * src/SDCCloop.c (basicInduction): fixed bug with loop induction
4055         in loops with multiple exits (reported as incorrect registers
4056         used by Martin Helmling in Sdcc-user list)
4057
4058 2004-03-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4059
4060         * src/ds390/main.c (_ds390_genAssemblerPreamble): cosmetic change,
4061         made ds390 register extensions look less like error messages
4062
4063 2004-03-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4064
4065         * src/SDCCglue.c (printIvalPtr): fixed bug with pointer initializer
4066         reported by Adam Wozniak in Sdcc-user list
4067
4068 2004-03-10 Bernhard Held <bernhard AT bernhardheld.de>
4069
4070         * src/SDCCast.c (decorateType): fixed with bug and promotion in
4071         arithmetic optimizations, added debug output
4072
4073 2004-03-09 Bernhard Held <bernhard AT bernhardheld.de>
4074
4075         * device/lib/time.c (mktime): fixed bug reported by Bert Thomas
4076         * sdcc.spec: updated and split sdcc into 3 rpms
4077         * src/SDCCast.c (decorateType): &|^ don't need addCast(); addCast() is
4078         needed for literals of LEFT_OP and '+'
4079         * src/SDCCicode.c (geniCodeLogic): I must have been braindead when I
4080         introduced RESULT_TYPE_NOPROM
4081         (geniCodeMultiply): fixed logic for decision if mul is optimized to
4082         left shift
4083         * src/SDCCsymt.c (computeType): op is int; added RESULT_TYPE_OTHER;
4084         limited promotion to int only for '*'
4085         * src/SDCCsymt.h (computeType): op is int, removed RESULT_TYPE_NOPROM
4086
4087 2004-03-09 Hans Dorn <hjdorn AT users.sourceforge.net>
4088
4089         * src/pic16/gen.c (genSkip),
4090         (genc16bit2lit), (gencjneshort): commented out
4091         (is_LitOp): new helper function, checks operand type
4092         (genCmpEq): rewritten
4093
4094 2004-03-08 Bernhard Held <bernhard AT bernhardheld.de>
4095
4096         * support/regression/tests/bug-908454.c: added
4097
4098 2004-03-07 Bernhard Held <bernhard AT bernhardheld.de>
4099
4100         * src/SDCCast.c (addCast): fixed bug #908454 by promoting bits to char
4101         * src/SDCCicode.c (usualBinaryConversions): op needs int type
4102         (geniCodeCast): cosmetic, don't preserve bit storage class
4103         (geniCodeLeftShift): added promotion
4104         (geniCodeLogic): fixed regression
4105         * src/SDCCsymt.c (computeTypeOr): accept bits too
4106         (compareType): 2nd part of fix for bug #908454, needed for bitfields
4107
4108 2004-03-07  Borut Razem <borut.razem AT siol.net>
4109
4110         * support/Util/findme.c: alloca() replaced with malloc()/free() pair
4111
4112 2004-03-06 Vangelis Rokas <vrokas AT otenet.gr>
4113
4114         * src/pic16/ralloc.c (pic16_genPackRegisters): reverted to old
4115         version of pic16_genPackRegisters which does not check if ic is a
4116         CAST operator,
4117         * src/pic16/gen.c (ifxForOp): disabled new and untested code in
4118         function cause string1.c regression test fails
4119
4120 2004-03-06 Bernhard Held <bernhard AT bernhardheld.de>
4121
4122         * sim/ucsim/configure.in,
4123         * sim/ucsim/configure,
4124         * sim/ucsim/doc/Makefile.in: use docdir
4125         * src/SDCC.y: fixed sbit atrributes
4126         * src/SDCCast.c (getResultTypeFromType): added support for bitfields
4127         * src/SDCCast.c (decorateType): |^& need special promotion handling
4128         * src/SDCCast.h,
4129         * src/SDCCsymt.h: moved definition of RESULT_TYPE
4130         * src/SDCCsymt.h (computeType),
4131         * src/SDCCicode.c: computeType() needs op
4132         * src/SDCCsymt.c (checkTypeSanity),
4133         * doc/sddman.lyx: "plain" bitfields are unsigned
4134         * src/SDCCsymt.c (computeTypeOr): added
4135         * src/SDCCsymt.c (computeType): added support for bitfields, fixed
4136         |^& ops
4137         * src/SDCCval.c (val*): computeType() needs op
4138         * src/SDCCval.c (valCastLiteral): fixed casting of bitfields
4139         * support/regression/tests/onebyte.c: added tests for |^&
4140
4141 2004-03-06 Hans Dorn <hjdorn AT users.sourceforge.net>
4142
4143         * src/pic16/gen.c: (genpic16Code) use copy of printILine's output
4144         for writing icode into asm output.
4145
4146 2004-03-05 Vangelis Rokas <vrokas AT otenet.gr>
4147
4148         * src/pic16/device.c: added some debug lines enabled
4149         with macro DEBUG_CHECK,
4150         * src/pic16/genarith.c: more debug in genPlus,
4151         * (pic16_genUMult8XLit_16, pic16_genUMult8X8_16): removed,
4152         * (pic16_genUMult16X16_16, pic16_genUMult16XLit_16): NEW,
4153         * src/pic16/gen.c: added prototypes for pic16_genMult16X16_16,
4154         * (aopForSym): onStack symbols are re-placed in data memspace,
4155         and onStack flag is cleared,
4156         * (pic16_popGetTempReg, pic16_popReleaseTempReg): modified to
4157         copy temporary pcodeop,
4158         * (genPcall): added warning for not updating PCLATU,
4159         * (genFunction): removed test with IFFUNC_CALLEESAVES, its
4160         always true for pic16 port,
4161         * (genMultOneWord): NEW, supports integer multiplication,
4162         * (genMult): modified to call genMultOneWord,
4163         * (ifxForOp): added warning when return NULL,
4164         * src/pic16/glue.c (pic16emitRegularMap): symbol implicit
4165         flag is set before call to operandFromSymbol for implicit
4166         added structures,
4167         * src/pic16/main.c (_pic16_finaliseOptions): options.float_rent,
4168         options.intlong_rent are set by default,
4169         * (_hasNativeMulFor): modified to allow port generation of integer
4170         multiplication,
4171         * src/pic16/ralloc.c (pic16_allocDirReg): commented out line which
4172         set regtype to REG_SFR for all registers, restricting seting the
4173         accessBank flag for registers 0<= r < 0x80 and 0xf80<=r<=0xfff,
4174
4175 2004-03-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4176
4177         * src/mcs51/peephole.def: added 251.b and 253.x. 253.x are applied
4178         more than 500 times in the regression tests
4179
4180 2004-03-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4181
4182         * support/Util/SDCCerr.h,
4183         * support/Util/SDCCerr.c,
4184         * src/SDCC.y (struct_or_union_specifier, enum_specifier,
4185         enumerator_list),
4186         * src/SDCCsymt.c (addSymChain): show location of oriignal definition
4187         for symbol conflicts.
4188         * support/valdiags/tests/enum.c,
4189         * support/valdiags/tests/tentdecl.c,
4190         * support/valdiags/tests/struct.c: expect possible error messages
4191         referring to original symbol definitions.
4192         * src/SDCC.y (struct_or_union_specifier, struct_declarator),
4193         * src/SDCCsymt.h,
4194         * src/SDCCsymt.c (promoteAnonStructs): support anonymous struct/union
4195
4196 2004-03-03 Hans Dorn <hjdorn AT users.sourceforge.net>
4197
4198         * src/pic16/gen.c (gencjne): fixed for right=REG / left=LIT
4199
4200 2004-02-03 Vangelis Rokas <vrokas AT otenet.gr>
4201
4202         * src/pic16/ralloc.c (newReg): fixed bug #908929
4203
4204 2004-03-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4205
4206         * src/ds390/gen.c: added missing #include "main.h"
4207
4208 2004-03-02 Vangelis Rokas <vrokas AT otenet.gr>
4209
4210         * src/pic16/device.c (checkAddSym): NEW, adds a symbol to set while
4211         checking if symbol is already in set,
4212         * src/pic16/device.h: prototype for checkAddSym,
4213         * src/pic16/gen.c: (_G): added entry interruptvector,
4214         * (assignResultValue): removed some commented out lines,
4215         * (genFunction): check for ISR via sym->type, absolute section for
4216         interrupt code is created via a new pBlock, the goto instruction is
4217         placed now correctly at the interrupt vector position, changed all
4218         references from ivec to _G.interruptvector,
4219         * WREG,STATUS,BSR are not saved in stack upon an entry to interrupt
4220         is the interrupt is a high priority one, same for return from ISR,
4221         * src/pic16/glue.c: changed all calls of addSetHead for publics and
4222         externs to calls of checkAddSym,
4223         * src/pic16/pcode.c (pic16_pBlockConvert2*): emit warning when
4224         pic16_pcode_verbose flag is set,
4225         * src/pic16/pcode.h: extern to pic16_pcode_verbose,
4226         * src/pic16/pcoderegs.c: message about how many registers are saved
4227         will only be emitted if pic16_pcode_verbose flag is set,
4228
4229 2004-03-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4230
4231         * src/ds390/ralloc.h,
4232         * src/ds390/ralloc.c (ds390_regWithIdx),
4233         * src/ds390/gen.c (emitcode),
4234         * src/ds390/main.h,
4235         * src/ds390/main.c (instructionSize, ds390newAsmLineNode, updateOpRW,
4236         ds390opcodeCompare, asmLineNodeFromLineNode, getInstructionSize,
4237         ds390operandCompare, getRegsRead, getRegsWritten,
4238         initializeAsmLineNode): customized instruction size calculation for
4239         ds390, started basis for some register optimizations
4240         * src/ds390/gen.c (gen390Code, emitcode): associate iCodes with
4241         corresponding assembly output
4242         * src/ds390/gen.c (genFunction, genEndFunction): added case to handle
4243         missing push/pop of r0/r1. Optimized push/pops
4244
4245 2004-03-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4246
4247         * src/mcs51/main.c (instructionSize): fixed ACALL size
4248         * src/mcs51/main.c (updateOpRW): fixed bug with @dptr, @a+dptr operands
4249
4250 2004-03-01 Vangelis Rokas <vrokas AT otenet.gr>
4251
4252         * src/pic16/device.c (pic16_dump_section): fixed a bug that allowed
4253         the sorting of rlist with NULL elements
4254         * (print_idataType, print_idata): NEW to create idata sections
4255         * src/pic16/device.h: idataSymSet new variable
4256         * src/pic16/gen.c (genFunction): fixed some bugs in string
4257         comparing, improved the absolute section creation for ISRs,
4258         added FSR0L/FSR0H in registers that are saved in an ISR,
4259         * (genInline): fixed the processing of inline snippets,
4260         now they undergo no process by the peephole optimizer
4261         * src/pic16/glue.c (pic16emitRegularMap): symbols with initialiser
4262         are placed in idataSymSet,
4263         * (pic16emitStaticSeg): extern symbols are added in externs,
4264         * src/pic16/ralloc.c (pic16_allocDirReg): work around to reduce bank
4265         switching when aboslute variables are placed in access bank memory
4266         * (pic16_writeUsedRegs): added call to pic16_dump_idata,
4267         * (packRegsForSupport,packRegsForAccUse,packRegsForOneuse):
4268         commented out with #if,
4269         * (pic16_packRegisters): reintroduce the check for CAST because some
4270         symbols are not correctly handled,
4271         * src/pic16/pcode.h: changed the definition of pCodeAsmDir to hold a
4272         pCodeInstruction instead of pCode,
4273         * src/pic16/pcode.c (pic16_newpCodeAsmDir): modified for the new
4274         pCodeAsmDir definition,
4275         * (pic16_pCode2str, genericPrint): when an AsmDir pcode has a NULL
4276         directive, then the argument directive is emitted without the leading
4277         tab, hack for inline labels which must be in the first column,
4278         * (compareLabel,pic16_findNextInstruction),
4279         * (pic16_findPrevInstruction): added case for PO_ASMDIR,
4280         * (insertBankSwitch): modified for the new pCodeAsmDir,
4281
4282 2004-03-01 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
4283         patch applied by Vangelis Rokas <vrokas AT otenet.gr>
4284
4285         * src/pic16/gen.c (pic16_popGet): case PO_DIR, adds the offset to
4286         instance,
4287         * (pushSide): commented out with #if,
4288         * (assignResultValue): fixed some typos in saving
4289         registers,
4290         * (genPcall): FIXED and sync'ed with genCall,
4291         * (genDataPointerGet,genDataPointerSet): using offset not leoffset
4292         * (genNearPointerGet): fixed to handle some more cases,
4293         implementation scheme via table reads,
4294         * (genConstPointerGet): modified to access code memory correct,
4295         * (genCodePointerGet,genNearPointerSet,genGenPointerSet): modified
4296         and improved to handle some cases
4297         * glue.c (printIvalType,printIvalChar,emitStaticSeg): use "DB"
4298         instead of "RETLW" for init data
4299         * src/pic16/ralloc.c (pic16_allocDirReg): warning when a symbol is
4300         not IN_DIRSPACE, work around to reduce bank switching when aboslute
4301         variables are placed in access bank memory (<0x80 and >=0xf80),
4302         * src/pic16/pcode.c: added SFRs TBLPTR, TABLAT, added opcodes TBLRD,
4303         TBLRD_POSTINC,TBLRD_POSTDEC,TBLRD_PREINC,TBLWT,TBLWT_POSTINC,
4304         TBLWT_POSTDEC,TBLWT_PREINC
4305         * Fixed initialisation of BSR, set "alias" for SSAVE to "0"
4306         * (pic16_emitDB,pic16_flushDB): New functions to generate "DB"
4307         directives
4308         * (pic16_pCodeConstString): use "DB" instead of "RETLW"
4309         * src/pic16/pcode.h: added TBLRD*,TBLWT*, added pic16_emitDB,
4310         pic16_flushDB, made pic16_newpCodeAsmDir public, added TBLPTR, TABLAT
4311         * src/pic16/ralloc.h: added IDX_BSR,IDX_TBLPTR*,IDX_TABLAT
4312
4313 2004-02-29  Borut Razem <borut.razem AT siol.net>
4314
4315         * src/Makefile.in, src/SDCCutil.c, support/Util/findme.c,
4316         support/Util/findme.h, support/Util/system.h: enhance binary relative
4317         search for lib and include by using findProgramPath()
4318
4319 2004-02-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4320
4321         * src/SDCCpeeph.h,
4322         * src/SDCCpeeph.c (pcDistance),
4323         * src/port.h,
4324         * src/mcs51/ralloc.h,
4325         * src/mcs51/ralloc.c (mcs51_regWithIdx),
4326         * src/mcs51/main.h,
4327         * src/mcs51/main.c (instructionSize, asmLineNode, updateOpRW,
4328         mcs51opcodeCompare, asmLineNodeFromLineNode, getInstructionSize,
4329         mcs51operandCompare, getRegsRead, getRegsWritten): made instruction
4330         size calculation port specific, started basis for some register
4331         optimizations
4332         * src/mcs51/gen.c (genFunction, genEndFunction): added case to handle
4333         missing push/pop of r0/r1. Optimized push/pops
4334         * src/mcs51/ralloc.c (packregisters): fixed bug #727095
4335         * device/lib/_modsint.c (_modsint),
4336         * device/lib/_modslong.c (_modslong): fixed sign of result in non-asm
4337         and stack version so regression tests pass
4338
4339 2004-02-26 Bernhard Held <bernhard AT bernhardheld.de>
4340
4341         * src/Makefile.in (dep): include SLIBOBJS in dependency check
4342         * src/SDCCast.c (decorateType): catch another small optimization
4343         with '?' operator
4344         * src/SDCCsymt.c (computeType): added comments and cosmetic changes
4345         * src/SDCCval.c (valMult, valDiv, valMod, valPlus, valMinus, valShift):
4346         modified to finally use computeType() all over SDCC,
4347         see Feature Request #877103
4348         * src/SDCCval.h: cosmetic
4349         * src/SDCCicode.c (operandOperation): fixed EQ_OP bug, now same as in
4350         valCompare(); regression tested in muldiv.c
4351         * support/regression/tests/muldiv.c (testMod): mod sign follows
4352         dividend only
4353
4354 2004-02-23 Bernhard Held <bernhard AT bernhardheld.de>
4355
4356         * src/SDCCast.c (decorateType): fixed bug #902362
4357         * doc/INSTALL.txt: fixed install instructions for win32
4358
4359 2004-02-21 Bernhard Held <bernhard AT bernhardheld.de>
4360
4361         * device/include/Makefile.in (install): fixed by replacing spaces
4362         by tabs
4363         * doc/README.txt,
4364         * doc/INSTALL.txt: updated for release
4365         * doc/sdccman.lyx: added warning for --xstack being buggy
4366
4367 2004-02-20 Bernhard Held <bernhard AT bernhardheld.de>
4368
4369         * src/pic16/ralloc.c (packRegsForAccUse):  disabled functions with #if
4370         to eliminate build warnings.
4371         * src/pic16/gen.c (pic16_popGet): fixed for gcc 2.95.4
4372
4373 2004-02-20 Vangelis Rokas <vrokas AT otenet.gr>
4374            Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
4375
4376         * doc/sdccman.lyx: removed PIC16 from PIC16 Port Specific Options,
4377         removed -penable-stack, added comment for stack pragma, added
4378         warning for not initializing the stack/frame registers, removed
4379         comment at interrupts section
4380
4381         Stack is made permanent, there is no ability to disable stack usage.
4382         * src/pic16/device.h,
4383         * src/pic16/device.c: removed all references to USE_STACK macro,
4384         * src/pic16/device.c (pic16_dump_section): when no elements in
4385         rlist, free rlist before return,
4386         * (pic16_dump_int_registers): NEW, internal registers are a new set
4387         of general purpose registers reused by each function,
4388         * (checkAddReg): returns 1 if registers is added to set,
4389         * (pic16_groupRegistersInSection): when a registers is of type
4390         PO_GPR_TEMP add it in pic16_int_regs and not in pic16_rel_udata,
4391         * src/pic16/device.h: memRange and Assigned Memory are deleted,
4392         SRCASECMP macro is moved here from device.c
4393         * src/pic16/genarith.c (pic16_pCodeOpType): added cases for
4394         PO_PCLATU, PO_PRODL, PO_PRODH,
4395         * (pic16_pCodeOpType, genMinus,
4396         changed compares to "a" register, with AOP_ACC,
4397         * (pic16_genPlus): fixed some bugs and indented properly,
4398         * (pic16_addSign): changed size to size+offset in the MOVWF
4399         instruction,
4400         * (pic16_genUMult8XLit_8): NEW, uses processor MULLW instruction to
4401         multiply 8-bit operand by literal, result is 8-bit,
4402         * (pic16_genUMult8X8_8): NEW, uses processor MULWF instruction to
4403         multiply 2 8-bit operand, result is 8-bit,
4404         * (pic16_genMult8X8_8): modified to call genUMult8X*_8 functions and not
4405         genUMult8X*_16,
4406         * src/pic16/gen.c: changed accUse to contain WREG only,
4407         * (pic16_emitcomment): renamed to pic16_emitpcomment,
4408         * (aopForSym): allocated dir register when IN_DIRSPACE(space) is,
4409         true, do not use immediate addressing any more unless sym is a
4410         pointer in codespace,
4411         * (aopForRemat): do not use immediate addressing when symbol not in
4412         codespace and when symbol's address is requested,
4413         * (aopOp): for-loop in if(sym->accUse) is modified for the new
4414         accUse size (= 1),
4415         * (aopGet): added case for AOP_ACC and don't return "accumulator
4416         bug" but WREG instead,
4417         * (popGetTempReg): pushes contents of temporary register in stack,
4418         * (popReleaseTempReg): pops contents of temporary register from
4419         stack. Use popGetTempReg/popReleaseTempReg in aligned pairs,
4420         * (pic16_popGet): separated case AOP_ACC to return register WREG
4421         from processor registers, AOP_PCODE not checks if pcop is PO_DIR
4422         or PO_IMMEDIATE and initializes their instance/offset appropriately,
4423         * The whole issue with aopForSym,aopForRemat,popGet) is to minimize
4424         the use of immediate pointers to certain cases only.
4425
4426         * (pic16_pushpCodeOpReg, pic16_poppCodeOpReg): use pic16_popGet2p,
4427         * (pic16_loadFromReturn, pic16_storeForReturn: NEW,
4428         * (assignResultValue, genCall, genRet): modified to use the new
4429         function return value scheme with WREG,PRODL,PRODH,FSR0L and FSR0,
4430         genPcall is still broken,
4431         * (genFunction): added code to create 'A' type pBlocks when
4432         interrupt functions are generated, code not extensively tested yet,
4433         ISRs push WREG,STATUS,BSR,PRODL,PRODH,FSR0L,FSR0H registers on stack,
4434         * (genEndFunction): modified so ISRs pop stored registers from stack,
4435         * (genMultOneByte): cleanup,
4436         * (AccRsh): added flag andmask, to and result with appropriate mask,
4437         * (genUnpackBits,genPackBits): fixed and can handle bit fields,
4438         * (genDataPointerGet): fixed and reenabled its use,
4439         * (genNearDataPointerGet): bugs fixed,
4440         * (genDataPointerSet): bugs fixed,
4441         * src/pic16/genutils.c: added functions pic16_DumpValue,pic16_DumpAop,
4442         pic16_DumpSymbol, pic16_DumpOp,
4443         * src/pic16/genutils.h: function prototypes for the above functions,
4444         * src/pic16/glue.c: new flags initsfpnt, to initialize stack/frame
4445         pointers,
4446         * (pic16emitRegularMap): many many many improvements, but needs a
4447         major cleanup,
4448         * src/pic16/main.c: enable_stack in pic16_options is removed,
4449         * (_pic16_parseOptions): removed command line options -penable-stack,
4450         * (_process_pragma): emit stack symbol only when stack pragma is
4451         processed,
4452         * src/pic16/pcode.c: pic16_pc_fsr0 is removed, all operations are
4453         redirected to FSR0L/FSR0H pair,
4454         * (pic16_get_op, pic16_get_op2): modifications and improvements,
4455         * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): added
4456         cases PO_PRODL,PO_PRODH, pic16_getRegFromInstruction2 returns sane
4457         for immediates,
4458         * (insertBankSwitch): modified to handle cases like: (alfa + 1)
4459         * (dumpPicOptype): NEW,
4460         * src/pic16/pcode.h: added PO_PCLATU,PO_PRODL,PO_PRODH in enum,
4461         * src/pic16/pcoderegs.c (pCodeRegMapLiveRangesInFlow): fixed bug
4462         with movff instruction,
4463         * src/pic16/ralloc.c: renamed typeRegWithIdx to pic16_typeRegWithIdx,
4464         added pic16_int_regs, some packRegsFor* functions are commented out,
4465         because produce errors,
4466         * src/pic16/NOTES: minor modifications
4467
4468 2004-02-18  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4469
4470         * as/mcs51/aslink.h, as/mcs51/lkarea.c, as/mcs51/lkdata.c, as/mcs51/lkmain.c,
4471         as/mcs51/lkmem.c, src/SDCCglob.h, src/SDCCmain.c: added options --stack-size and
4472         --pack-iram.
4473         * doc/sdccman.lyx: described options --stack-size and --pack-iram.
4474         * as/mcs51/lkaomf51.c: fixed bug #895763
4475
4476 2004-02-17 Bernhard Held <bernhard AT bernhardheld.de>
4477
4478         * device/include/c8051f320.h: added. Contributed by Maarten Brock.
4479
4480 2004-02-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4481
4482         * doc/sdccman.lyx: added details about the HC08 storage classes and
4483         interrupts, fixed the register usage info for z80 & gbz80
4484
4485 2004-02-17 Vangelis Rokas <vrokas AT otenet.gr>
4486
4487         * doc/sdccman.lyx: added more pic16 port documentation
4488         * device/include/pic16/: added header pic18fregs.h
4489
4490 2004-02-16 Bernhard Held <bernhard AT bernhardheld.de>
4491
4492         * doc/sdccman.lyx: added Vangelis' contribution
4493
4494 2004-02-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4495
4496         * src/SDCClrange.c (rlivePoint): live range of SEND operand should
4497         extend to the next CALL or PCALL, not just to the next CALL.
4498
4499 2004-02-16 Vangelis Rokas <vrokas AT otenet.gr>
4500
4501         * src/pic16/gen.c (genInline): fixed bug #896482 with inline assembly
4502
4503 2004-02-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4504
4505         * src/mcs51/ralloc.c (packRegsForAssign, reassignAliasedSym): fixed
4506         bug #895752 and a better fix for bug #716790
4507
4508 2004-02-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4509
4510         * src/SDCCsymt.c (processFuncArgs): fixed bug #896796
4511
4512 2004-02-14 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4513
4514         * doc/sdccman.lyx: minor changes, minor changed
4515
4516 2004-02-13 Bernhard Held <bernhard AT bernhardheld.de>
4517
4518         * src/SDCCicode.c (usualBinaryConversions): removed pic16 from ports
4519         which can't handle SDCC_NEWONEBYTEOPS,
4520         (geniCodeMultiply): removed conversion from mult to shift for pic14
4521         and pic16
4522
4523 2004-02-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4524
4525         * src/hc08/gen.h,
4526         * src/hc08/gen.c (storeRegToAop, aopOp, aopAdrStr, accopWithAop,
4527         rmwWithAop): Ported my 2003-10-02 fix for bug #663539 to the hc08,
4528         thus fixing bug #895406
4529
4530 2004-02-11 Bernhard Held <bernhard AT bernhardheld.de>
4531
4532         * device/lib/_modsint.c,
4533         * device/lib/_modslong.c: sign follows divisor only
4534         * src/hc08/gen.c (genMultOneByte): if result size is 1,
4535         signs or signedness can be ignored
4536         * src/SDCCast.c (addCast): cosmetic - added lineno to CAST
4537         * src/SDCCast.c (resultTypePropagate): added even more ops: +, - and *,
4538         added optimization for IFX,
4539         (decorateType): Mult/Div/ModOneByte ops can handle all kind of signed
4540         arguments;
4541         reenabled optimization for IFX, which was removed on 2004-01-11
4542         * src/SDCCast.h: added return type IFX
4543         * src/SDCCicode.c: Mult/Div/ModOneByte ops can handle all kind of signed
4544         arguments with 8 or 16 bit results; pic14 and pic16 ports use old
4545         promotion behaviour; env. var. SDCC_NEWONEBYTEOPS selects the new,
4546         SDCC_OLDONEBYTEOPS selects the old behaviour
4547         * src/SDCCsymt.c (computeType): type2 can be NULL (for LEFT_OP);
4548         changed again and commented promotion rule
4549         * src/SDCCval.c (valDiv): promotion no longer necessary
4550         * src/ds390/gen.c (genMultOneByte) (genDivOneByte) (genModOneByte),
4551         * src/mcs51/gen.c (genMultOneByte) (genDivOneByte) (genModOneByte):
4552         rewritten
4553         * support/regression/tests/onebyte.c: added
4554
4555 2004-02-11 Vangelis Rokas <vrokas AT otenet.gr>
4556
4557         * gen.c (genInline): reverted to old code for assemnling inline
4558         code because of bug reported James Chadd
4559
4560 2004-02-10 Vangelis Rokas <vrokas AT otenet.gr>
4561
4562         * ralloc.h: missing declarations from previous patch,
4563         seems that patch for ralloc.h was never applied, fixed
4564
4565 2004-02-10 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
4566            patch committed by Vangelis Rokas <vrokas AT otenet.gr>
4567
4568         * pcode.c,
4569         * pcode.h,
4570         * ralloc.h: added FSR0L, FSR0H and other missing PIC16 SFR's for
4571         indirect addressing. Marked FSR0 as deprecated
4572         * gen.c (pointerCode): commented out, not needed now
4573         (pic16_popGet2p): new MOVFF helper function
4574         (genGenPointerGet),
4575         (genGenPointerSet): reimplemented with MOVFF and POSTINC0
4576         (shiftRLong): removed duplicate debugging info
4577
4578 2004-02-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4579
4580         * src/ds390/gen.c (genNearPointerGet),
4581         * src/mcs51/gen.c (genNearPointerGet): allow the genDataPointerGet()
4582         optimization with bits, but not bitfields.
4583         * src/ds390/ralloc.c (packRegisters),
4584         * src/mcs51/ralloc.c (packRegisters): fixed bug #884453 & #880832
4585
4586 2004-02-09 Bernhard Held <bernhard AT bernhardheld.de>
4587
4588         * src/SDCCcse.c (algebraicOpts): copy operands before modification
4589
4590 2004-02-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4591
4592         * src/SDCCsymt.h,
4593         * src/SDCCicode.c (operandFromSymbol),
4594         * src/mcs51/ralloc.c (verifyRegsAssigned, serialRegAssign),
4595         * src/ds390/ralloc.c (verifyRegsAssigned, serialRegAssign),
4596         * src/z80/ralloc.c (verifyRegsAssigned, serialRegAssign),
4597         * src/hc08/ralloc.c (verifyRegsAssigned, serialRegAssign),
4598         * src/pic/ralloc.c (verifyRegsAssigned, serialRegAssign),
4599         * src/pic16/ralloc.c (verifyRegsAssigned, serialRegAssign): fixed
4600         bug #892038
4601         * src/SDCCast.c (createIvalStruct, createIvalArray, gatherAutoInit),
4602         * src/SDCCglue.c (emitRegularMap, printIvalStruct, printIvalArray,
4603         printIvalCharPtr, printIvalPtr, printIval, emitStaticSeg, emitOverlay)
4604         * src/SDCCsymt.c (newSymbol),
4605         * src/SDCC.y (struct_or_union_specifier, enum_specifier,
4606         enumerator_list),
4607         * src/SDCCval.h,
4608         * src/SDCCval.c (newiList): fixed bug #885705
4609
4610 2004-02-08  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4611
4612         * doc/sdccman.lyx: added section 3.1.4: sdcclib.
4613         * as/mcs51/lkmem.c: report the size of the stack in .mem file.
4614
4615 2004-02-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4616
4617         * device/include/c8051f120.h,
4618         * device/include/c8051f300.h,
4619         * device/include/c8051f310.h: added/updated header files for Silicon
4620         Laboratories (formerly Cygnal) CPUs. Contributed by Maarten Brock.
4621         * doc/sdccman.lyx: minor changes, recommended diff -Naur and diff -u
4622         in new section Submitting patches
4623
4624 2004-02-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4625
4626         * src/mcs51/gen.c (genNearPointerGet, genPagedPointerGet,
4627         genFarPointerGet, genCodePointerGet, genGenPointerGet,
4628         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
4629         genGenPointerSet),
4630         * src/ds390/gen.c (genNearPointerGet, genPagedPointerGet,
4631         genFarPointerGet, genCodePointerGet, genGenPointerGet,
4632         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
4633         genGenPointerSet),
4634         * src/pic16/gen.c (genNearPointerGet, genPagedPointerGet,
4635         genFarPointerGet, genCodePointerGet, genGenPointerGet,
4636         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
4637         genGenPointerSet),
4638         * src/pic/gen.c (genNearPointerGet, genPagedPointerGet,
4639         genFarPointerGet, genCodePointerGet, genGenPointerGet,
4640         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
4641         genGenPointerSet): fixed bug #892400
4642         * src/pic16/gen.c (genSkipz, AccRol): disabled functions with #if 0
4643         to eliminate build warnings.
4644         * src/SDCCast.c (processParms),
4645         * src/SDCC.y (function_declarator2, declarator2_function_attributes):
4646         fixed bug 751859
4647         * support/valdiag/valdiag.py: added GCC to the list of defines active
4648         when compiling with gcc
4649
4650 2004-02-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4651
4652         * support/Util/SDCCerr.h,
4653         * support/Util/SDCCerr.c,
4654         * src/SDCCast.c (decorateType, sizeofOp): complain when sizeof is used
4655         with an incomplete type (fixed bug #883734)
4656         * src/SDCCicode.c (geniCodeCast): fixed bug #890510
4657
4658 2004-02-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4659
4660         * src/pic16/gen.c (genCmpEq, shiftRLong): fixed declarations
4661
4662 2004-02-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4663
4664         * src/SDCCast.c (decorateType),
4665         * src/SDCCicode.c (geniCodeParms, geniCodeCall): fixed bugs in my ANSI
4666         function pointer implementation
4667         * support/regression/tests/funptrs.c: added tests to verify both forms
4668         of function pointers work correctly. Added tests to verify parameters
4669         are passed in the correct order.
4670
4671 2004-02-06  Vangelis Rokas <vrokas AT otenet.gr>
4672
4673         * device.c (regCompare): registers are sorted by ascending
4674         address and increasing size,
4675         * main.c (_pic16_finaliseOptions): removed the declaration
4676         of compiler macro MCU. Now a macro of the format pic18fxxxx
4677         will be defined from the command line
4678
4679 2004-02-06  Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
4680             patch committed by Vangelis Rokas <vrokas AT otenet.gr>
4681
4682         * pcode.c (pic16initMnemonics): fixed typo in assignment to PCOP_RLNCF
4683         PCOP_RLCF was overwritten!
4684         * gen.c (genSkip): commented out calls to pic16_emitcode,
4685         * (genCmpEQ): fixed "long" compares, only high word did get compared,
4686         * (genlshTwo),
4687         * (genRRC): added debugging info,
4688         * (shiftL2Left2Result): Fixed bug, if offr > offl. Result got
4689         overwritten while shifting,
4690         * (shiftR2Left2Result): Fixed bug, if offr < offl. Result got
4691         overwritten while shifting,
4692         * (AccLsh),
4693         * (AccRsh),
4694         * (shiftLLeftOrResult),
4695         * (shiftRLeftOrResult),
4696         * (shiftRLong),
4697         * (shiftLLong): Implemented with pic16_emitpcode
4698         * (genlshFour): Replaced pic16_aopPut with pic16_emitpcode,
4699         * (genLeftShift): Fixed bug, operand for shift by variable always
4700         was "and"ed with 0x0f,
4701         * (genLeftShiftLiteral),
4702         * (genrshTwo),
4703         * (genRightShiftLiteral): added debugging info,
4704         * (genrshFour): added comment,
4705         * (genRightShift): determined signedness from operand "left"
4706         instead of "result"
4707
4708 2004-02-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4709
4710         * src/SDCCicode.c (geniCodeParms),
4711         * src/SDCCast.c (decorateType, processParms): support for ANSI-style
4712         function pointers, fixed function pointer bugs #861242 and #861896
4713
4714 2004-01-31 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4715
4716         * device/include/c8051f000.h,
4717         * device/include/c8051f120.h,
4718         * device/include/c8051f300.h: added header files for Silicon
4719         Laboratories (formerly Cygnal) CPUs. Contributed by Maarten Brock.
4720
4721 2004-01-31 Bernhard Held <bernhard AT bernhardheld.de>
4722
4723         * src/SDCCast.c (processParams): added new type flow and restructured
4724         (gatherAutoInit): added new type flow
4725         (addCast): cosmetic changes
4726         (getLeftResultType): added new type flow for array indices, patch
4727         provided by Stas, see FR #877103
4728         (decorateType): SDCC_NEWTYPEFLOW removed, new type flow is now standard;
4729         array index patch by Stas
4730         * src/SDCCast.h: added prototype getResultTypeFromType()
4731         * src/SDCCval.h,
4732         * src/SDCCval.c (resolveIvalSym) (resolveIvalSym),
4733         * src/pic/glue.c (pic14emitStaticSeg),
4734         * src/pic16/glue.c (pic16emitStaticSeg),
4735         * src/SDCCglue.c (emitRegularMap) (emitStaticSeg): added new type flow
4736         for initialization of symbols
4737         * src/SDCCicode.c (geniCodeArray): removed warning W_ARRAY_BOUND
4738         * support/Util/SDCCerr.h:
4739         * support/Util/SDCCerr.c: replaced W_ARRAY_BOUND by W_IDX_OUT_OF_BOUNDS
4740         * .version: bumped version number to 2.3.8
4741         * device/include/Makefile.in (install),
4742         * doc/Makefile (install): changed to 'rm `find ...`' construct to
4743         avoid warnings
4744
4745 2004-01-30 Bernhard Held <bernhard AT bernhardheld.de>
4746
4747         * support/regression/tests/libmullong.c: fixed for 64 bit hosts
4748         Slade Rich fixed an optimization bug
4749         * src/pic/pcodepeep.c,
4750         * src/pic/pcoderegs.c
4751         * doc/Makefile (install): added test for directory
4752
4753 2004-01-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4754
4755         * src/mcs51/ralloc.c (getRegPtr, getRegGpr),
4756         * src/ds390/ralloc.c (getRegPtr, getRegGpr),
4757         * src/pic/ralloc.c (getRegPtr, getRegGpr),
4758         * src/pic16/ralloc.c (getRegPtr, getRegGpr),
4759         * src/z80/ralloc.c (getRegGpr): fixed bug #883361
4760         * as/mcs51/asexpr.c (term),
4761         * as/hc08/asexpr.c (term): fixed bug #887146
4762
4763 2004-01-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4764
4765         * src/z80/gen.c (genMult): handle single byte result product
4766         * src/SDCCopt.c (killDeadCode): never convert ADDRESS_OF iCode to
4767         DUMMY_READ_VOLATILE (fixed bug #886367)
4768
4769 2004-01-27 Bernhard Held <bernhard AT bernhardheld.de>
4770
4771         * support/regression/tests/libmullong.c: fixed logic, on little endian
4772         hosts we ended without a mullong_wrapper()
4773
4774 2004-01-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4775
4776         * ChangeLog: changed "@" to " AT " in hopes of reducing spam and
4777         virus/worm forged address usage.
4778
4779 2004-01-27 Bernhard Held <bernhard AT bernhardheld.de>
4780
4781         Fixed promotion, it should be done on AST level:
4782         * src/SDCCast.c (addCast): added promotion to int
4783         (decorateType): updated call to upCast()
4784         * src/SDCCicode.c (geniCodeLeftShift): removed call to
4785         usualUnaryConversions()
4786
4787 2004-01-26  Michael Hope  <michaelh AT juju.net.nz>
4788
4789         * support/regression/tests/literalop.c (mulWrapper): Added a
4790         wrapper to remove integer overflow warnings.
4791
4792         * support/regression/tests/float_trans.c: Made work on host.
4793
4794         * support/regression/ports/ucz80/spec.mk (UCZ80): Made detect the
4795         location of sz80.
4796
4797         * support/regression/generate-cases.py (main): Changed from inline
4798         to a main method.
4799
4800         * doc/Makefile (install): Changed to depth first to get rid of
4801         missing directory install warning.
4802
4803         * as/Makefile (install-doc): Made work on Mac.
4804
4805 2004-01-25 Bernhard Held <bernhard AT bernhardheld.de>
4806
4807         * src/SDCCast.c: added an additional type flow in decorateType() of
4808         opposite direction, see feature request #860006; it's enabled at runtime
4809         by setting the environment variable SDCC_NEWTYPEFLOW
4810         * src/SDCCast.h: changed prototype of decorateType()
4811         * src/SDCCglue.c (emitRegularMap): updated call of decorateType()
4812         * src/SDCCicode.c (geniCodeDivision) (geniCodeModulus): promotion from
4813         'char' to 'int' can be omitted, if both operands are 'unsigned char';
4814         see feature request #877103
4815         * src/SDCCval.c: updated call of decorateType()
4816         (valBitwise): fixed bug #882876
4817         (valMinus): added promotion
4818         (valLogicAndOr): result is unsigned
4819         (cheapestVal) (constVal): literals from 0...255 are 'unsigned char' now
4820         * src/SDCCsymt.c (computeType),
4821         * src/mcs51/gen.c (genCmpGt) (genCmpLt): literal 'unsigned char'
4822         must not cause an unsigned operation
4823         * src/pic/glue (pic14emitRegularMap),
4824         * src/pic16/glue.c (pic16emitRegularMap): updated call of decorateType()
4825
4826 2004-01-23 Bernhard Held <bernhard AT bernhardheld.de>
4827
4828         * src/pic/pcode.c (PCodeID): commented out left over debug code
4829
4830 2004-01-20 Bernhard Held <bernhard AT bernhardheld.de>
4831
4832         * support/valdiag/tests/overflow.c: added shift tests
4833         * src/pic/device.c,
4834         * src/pic/gen.c,
4835         * src/pic/gen.h,
4836         * src/pic/glue.c,
4837         * src/pic/main.c,
4838         * src/pic/pcode.c,
4839         * src/pic/pcode.h,
4840         * src/pic/pcodepeep.c,
4841         * src/pic/pcoderegs.c,
4842         * src/pic/ralloc.c,
4843         * src/pic/ralloc.h: applied patch from Slade Rich;
4844         added support for multiple code pages and multiple RAM banks on the
4845         PIC 14 port. The ASM files now no longer simply assume all the
4846         code / RAM are in the same page / bank. This means the linker can
4847         safely allocate code/RAM of separate ASM files to different pages/banks.
4848         * doc/sdccman.lyx: added Slade's tips
4849         * src/mcs51/peeph.def: fixed bug #880768
4850
4851 2004-01-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4852
4853         * src/hc08/ralloc.c (rematStr): fixed bug #879282
4854         * src/SDCCast.c (decorateType): fixed bug #880197
4855
4856 2004-01-20  Michael Hope  <michaelh AT juju.net.nz>
4857
4858         * sim/ucsim/gui.src/serio.src/main.cc: Fixed unconditional use of
4859         getopt.h.
4860
4861         * debugger/mcs51/cmd.c (getValBasic): Changed strtof to strtod as
4862         strtof is not part of C89 and isn't included with Mac OS X.
4863
4864 2004-01-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4865
4866         * src/hc08/gen.c (genPlusIncr, genUminus, genMinusDec, genCmp,
4867         shiftL2Left2Result): fixed bug #879326
4868         (genAnd, genOr, genXor): fixed bug when result was of type AOP_CRY
4869         (genMultOneByte): fixed bug in signed vs unsigned multiplication
4870         * sim/ucsim/hc08.src/inst.cc (inst_clr): added missing effective
4871         address fetch for clr instruction
4872         * device/lib/hc08/_mulint.c: created optimized assembly version
4873         * src/SDCCdflow.c (computeDataFlow): fixed bug #878209
4874
4875 2004-01-19 Bernhard Held <bernhard AT bernhardheld.de>
4876
4877         * src/SDCCicode.c (geniCodeArray): applied patch from Stas Sergeev
4878         proposed in FR #877103
4879
4880 2004-01-18 Bernhard Held <bernhard AT bernhardheld.de>
4881
4882         * src/SDCCval.c (cheapestVal): added missing checks
4883         * src/SDCCicode.c (usualBinaryConversions): fixed condition
4884         * src/SDCCicode.c (geniCodeAdd): fixed part of bug #877103
4885
4886 2004-01-16 Klaus Flittner <klaus_flittner AT gmx.de>
4887
4888         * src/ds390/gen.c (aopOp3): fixed the assignment of different dptrs to
4889         equal operands
4890
4891 2004-01-16 Vangelis Rokas <vrokas AT otenet.gr>
4892
4893         * src/SDCCmain.c (linkEdit): variable $3 of the linker command is
4894         loaded with the linker search paths (-L arguments) and the libraries
4895         to be linked with the current source (-l arguments). Changes
4896         currently will affect only the pic16 port.
4897         * src/pic16/main.c (_pic16_finaliseOptions): add to the linker
4898         include path the port specific paths and port specific libraries,
4899         * gplink command now contains the $3 argument,
4900         * src/pic16/device.h,
4901         * src/pic16/device.c,: structure PIC_device is made public and
4902         renamed to PIC16_device, the same for variable Pics which is renamed
4903         to Pics16. Updated all references to them.
4904         * src/pic16/glue.c (pic16glue): corrected bug with code
4905         initialization which bypassed the variable initializations block.
4906
4907         * device/lib/pic16/Makefile.rules: removed --penable-stack from
4908         COMPILE_FLAGS and added the --nostdinc option
4909
4910 2004-01-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4911
4912         * device/include/mc68hc908jb8.h: Register defs for another member
4913         of the hc08 family. Contributed by Bjorn Bringert - thanks!
4914
4915 2004-01-14 Vangelis Rokas <vrokas AT otenet.gr>
4916
4917         Documenting changes from previous commits.
4918         * configure.in (version 1.56),
4919         * configure: initially I've added AC_CONFIG_SUBDIRS(device/lib/pic16)
4920         when generating output files to configure the pic16 library,
4921         but now I've commented it out, since gputils aren't installed in the
4922         SF compile farm, so library won't compile
4923
4924         * device/lib/Makefile.in (version 1.56): initially I've added in
4925         target 'all' the prerequestive 'model-pic16' so it compiled the
4926         pic16 library, but now I've commented it out for the same reasons
4927         above,
4928         * added targets 'model-pic16' and 'objects-pic16' to compile the
4929         library
4930         * added target 'port-specific-objects-pic16' to handle the
4931         generated libraries and copy them into the build/ directory
4932         * added target 'clean-intermediate-pic16' to clean intermediate
4933         files into pic16 directory
4934         * in target 'installdirs' added line to create directory pic16 in
4935         the installation path
4936
4937         * device/include/Makefile.in (version 1.11): in target 'install'
4938         added lines to copy all header files to installation path,
4939         * in target 'installdirs' added line create directory for pic16
4940         headers in the installation path
4941
4942 2004-01-13 Klaus Flittner <klaus_flittner AT gmx.de>
4943
4944         * src/ds390/gen.c (genCall): fixed a double use of acc and b after
4945          a function call
4946
4947 2004-01-13 Bernhard Held <bernhard AT bernhardheld.de>
4948
4949         * configure,
4950         * device/lib/configure.in,
4951         * device/lib/configure: fixed for autoconf 2.57
4952
4953 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4954
4955         * src/z80/main.c (_parseOptions): fixed the portmode= command line
4956         option so that it actually works. Made it specific to the z80, since
4957         the gbz80 doesn't have these kinds of I/O ports.
4958
4959 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4960
4961         * device/include/z180.h,
4962         * device/lib/_memcpy.c,
4963         * device/lib/_memmove.c,
4964         * device/lib/_mulint.c,
4965         * device/lib/ser_ir.c,
4966         * device/lib/ser_ir_cts_rts.c,
4967         * device/lib/_strcmp.c,
4968         * device/lib/_strtok.c: fixed pragmas to non-deprecated form
4969         * src/z80/main.c (_process_pragma): add support for pragmas bank and
4970         portmode; added deprecation warning for bank= and protmode= forms.
4971         Also, guard against buffer overflow.
4972         * src/z80/gen.c (aopGet): generate better code for sfr banked read
4973
4974 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4975
4976         * src/hc08/main.c (_hc08_genAssemblerPreamble): fixed bug #875487. Also
4977         changed interrupt vector table generation to only emit declared vectors.
4978         * device/include/Makefile.in: added missing backslash
4979         * device/lib/pic16/Makefile.rules: add $(MODELFLAGS) to $(CFLAGS)
4980
4981 2004-01-13 Vangelis Rokas <vrokas AT otenet.gr>
4982
4983         Mainly changes to support compilation of the device libraries
4984         * src/pic16/device.c: stack is allocated via symbol and not
4985         via literal number. The symbol is placed in the corresponding
4986         position of the data ram
4987         * (pic16_dump_section): relocatable and absolute uninitialized
4988         data are now emitted in sorted order to reduce section naming,
4989         * src/pic16/ralloc.c (newReg): fixed bug with SFR's that
4990         weren't marked as being in the access bank,
4991
4992 2004-01-13 Vangelis Rokas <vrokas AT otenet.gr>
4993
4994         Added portion of GNU PIC Library under the directory
4995         device/include/pic16 and device/lib/pic16. These files
4996         contain the declarations of SFRs for the PIC18Fxx2 devices.
4997         The directory is initialized via configure from toplevel.
4998
4999 2004-01-12 Klaus Flittner <klaus_flittner AT gmx.de>
5000
5001         * src/ds390/gen.c (operandsEqu): fixed a little typo, that prevented
5002         the spilllocations to be compared correctly
5003
5004 2004-01-12 Bernhard Held <bernhard AT bernhardheld.de>
5005
5006         * src/SDCCast.c (decorateType): fixed bug introduced today
5007
5008 2004-01-12  Borut Razem <borut.razem AT siol.net>
5009
5010         * src/SDCC.lex, support/Util/SDCCerr.h, support/Util/SDCCerr.c,
5011         doc/sdccman.lyx: upper case pragmas are deprecated
5012
5013 2004-01-12 Bernhard Held <bernhard AT bernhardheld.de>
5014
5015         * src/SDCCast.c (decorateType): replacing 'ul > 0' by  '!ul' results
5016         in simpler and even better code
5017
5018 2004-01-11 Bernhard Held <bernhard AT bernhardheld.de>
5019
5020         * src/SDCCicode.c (operandOperation): fixed bug #874819
5021         * src/SDCCast.c (decorateType): fixed
5022         char foo (unsigned long ul) { return ul > 0; }
5023
5024 2004-01-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5025
5026         * doc/sdccman.lyx: Moved and added some sections, small changes
5027         all over. Telling LaTeX to be less strict with word spacing
5028         to better keep the right margin. Changed some notes about
5029         maintainance of the ports in section 3.2.1 - is it OK like this?
5030
5031 2004-01-11 Vangelis Rokas <vrokas AT otenet.gr>
5032
5033         SDCC source changes:
5034         * src/SDCCopt.c (cntToFcall, cnvToFloatCast, cnvFromFloatCast,
5035         convilong): modified to inform the pic16 port that builtin functions
5036         are external
5037
5038         PIC16 PORT specific changes:
5039         * src/pic16/device.c pic16_dump_equates() added,
5040         processor registers declared internally by the port are emitted in
5041         the translation as equates,
5042         * src/pic16/gen.c: inline code is passed unprocessed to the
5043         translation,
5044         * (pic16_popGetLit2): fnuction modified to take second operand as
5045         pCodeOp pointer and not as literal,
5046         * (popRegFromIdx): prefixed with pic16_,
5047         * (pic16_popCombine2): modified to receive already allocated pCode
5048         operands,
5049         * (pic16_pushpCodeOpReg, pic16_poppCodeOpReg): added
5050         * (genFunction): initializes local stack frame and pushes on stack
5051         all the registers used by this function,
5052         * (genEndFunction): restores all registers from stack and restores
5053         stack frame,
5054         * src/pic16/glue.c (pic16emitRegularMap): various changes and
5055         improvements,
5056         * (pic16glue): changed the program startup sequence,
5057         * added new dbName code 'A' for functions placed in absolute section
5058         * src/pic16/main.c: added function attribute _naked,
5059         * added pragma 'code' to place a fnuction at an absolute address,
5060         * added command line arguments --debug-ralloc and --pcode-verbose,
5061         * (_pic16_finiliseOptions): options.all_callee_saves is set by default
5062         * src/pic16/pcode.c (pic16_pBlockConvert2Absolute) added,
5063         * (pic16_newpCodeOpLit2): modified to take the second operand as
5064         pCodeOp pointer,
5065         * (pic16_printpBlock): modified to emit each function in a separate
5066         section,
5067         * (pic16_get_op): modified to use the gpasm modifiers LOW,HIGH and
5068         UPPER for immediate operands,
5069         * src/pic16/pcodepeeph.c: added peephole support for the LFSR
5070         instruction,
5071         * src/pic16/peeph.def: all peepholes with movff are commented out,
5072         because there is a problem in the pcode peep optimizer,
5073         * src/pic16/ralloc.c: the register allocator can now reuse local
5074         function symbols for another function. This saves register usage.
5075         * src/pic16/ralloc.h: added flag isLocal in structure regs,
5076
5077         Added file src/pic16/NOTES with information about program writing on
5078         the current port version.
5079
5080 2004-01-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5081
5082         * src/mcs51/peephole.def: added peepholes 177.c,d (redundant moves)
5083         and peephole 252 (array access)
5084
5085 2004-01-09  Borut Razem <borut.razem AT siol.net>
5086
5087         * src/SDCCmain.c : fixed #872250: -l command line defined library
5088           files are scanned before standard library files
5089
5090 2004-01-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5091
5092         * src/SDCCast.c (decorateType): fixed bug #874046
5093
5094 2004-01-09  Borut Razem <borut.razem AT siol.net>
5095
5096         * support/scripts/sdcc.nsi: remove previous installation
5097
5098 2004-01-09 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5099
5100         * src/SDCCglue.c (createInterruptVect): don't append 7(5) padding
5101         bytes for last interrupt vector (mcs51)
5102         * sdcc.spec: fixed typo
5103
5104 2004-01-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5105
5106         * src/mcs51/gen.c (genFunction, genEndFunction, genReceive, getTempRegs,
5107         gen51Code): more efficient parameter receive for --model-large
5108         ("bug" #845294)
5109
5110 2004-01-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5111
5112         * src/ds390/main.c,
5113         * src/z80/main.c: added missed needLinkerScript flags (more than
5114         one port structure defined in these file)
5115         * src/ds390/gen.c (aopForSym, aopOp, operandsEqu, aopOp3): fixed
5116         bug #795325
5117
5118 2004-01-08 Vangelis Rokas <vrokas AT otenet.gr>
5119
5120         * src/SDCCmain.c: removed various references to DEFAULT_PORT
5121         * src/port.h: added flag needLinkerScript in port->linker
5122         structure to inform whether to create a .lnk file or not,
5123         * src/avr/main.c,
5124         * src/ds390/main.c,
5125         * src/hc08/main.c,
5126         * src/mcs51/main.c,
5127         * src/pic/main.c,
5128         * src/pic16/main.c,
5129         * src/xa51/main.c,
5130         * src/z80/main.c: changed appropriately to configure
5131         needLinkerScript flag
5132         * src/pic/gen.c,
5133         * src/pic16/gen.c (genAddrOf): fixed bug #863624
5134         * src/pic/glue.c: added variable udata_section_name to
5135         override default uninitialized data segment definition for
5136         devices only with SHAREBANK memory (reported from Erik Epetrich)
5137         * (pic14emitOverlay): modified to emit a commented overlay segment
5138         directive when no overlay data exist
5139         * (picglue): modified to emit uninitialized data segment
5140         according to udata_section_name
5141         * src/pic/main.c (_pic14_parseOptions): added command line
5142         options --udata-section-name=[name] to override default
5143         udata definition name
5144         * modified _linkCmd and _asmCmd to include compiler passed
5145         arguments via -W option
5146         * src/pic16/main.c: added $l in _asmCmd, changed extension for
5147         object file from '.rel' to '.o' in port->linker structure,
5148         changed size of fptr from 2 to 3 in port structure
5149
5150 2004-01-07  Borut Razem <borut.razem AT siol.net>
5151
5152         * support/scripts/sdcc.nsi: update PATH
5153         * support/scripts/sdcc.ico: craeted
5154
5155 2004-01-07 Bernhard Held <bernhard AT bernhardheld.de>
5156
5157         * device/include/Makefile.in: fix install
5158         * doc/Makefile: fix install
5159
5160 2004-01-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5161
5162         * src/SDCCsymt.c (processFuncArgs): fixed superflous allocation noted
5163         in bug #860505
5164         * src/SDCCmem.c (printAllocInfoSeg, printAllocInfo): minor changes to
5165         how the function variable allocation summary is displayed; also
5166         include information about variables allocated to the overlay
5167         segment
5168
5169 2004-01-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5170
5171         * as/mcs51/lkmain.c: Help about -Y option
5172         * as/mcs51/lkarea.c: Fixed gcc warnings
5173
5174 2004-01-06 Bernhard Held <bernhard AT bernhardheld.de>
5175
5176         * src/SDCCval.c (valShift): changed from 16 to 32 bit shift count,
5177         fixed warning
5178         * support/valdiag/tests/overflow.c: added
5179         * src/SDCCast.c (decorateType),
5180         * src/SDCCicode.c (geniCodeLeftShift): added promotion to int for
5181         LEFT_OP (left shift)
5182
5183 2004-01-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5184
5185         * as/mcs51/lkmain.c: stack must be after data when option -Y is not used
5186         (default behaviour).
5187
5188 2004-01-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5189
5190         A python script to validate compiler diagnostic messages. It can be
5191         used to verify that sdcc complains about bad c source code and
5192         gives a good location of the error.
5193         * support/valdiag/Makefile,
5194         * support/valdiag/valdiag.py,
5195         * support/valdiag/tests/*
5196
5197 2004-01-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5198
5199         * src/SDCC.y (enum_specifier, enumerator_list, opt_assign_expr),
5200         * src/SDCCsymt.c (newEnumType),
5201         * src/SDCCsymt.h
5202         * support/Util/SDCCerr.c,
5203         * support/Util/SDCCerr.h: fixed bug #871258 and some other unreported
5204         enum related bugs.
5205         * support/regression/tests/enum.c: added test for enum values that
5206         require at least 2 bytes of storage.
5207
5208 2004-01-06 Vangelis Rokas <vrokas AT otenet.gr>
5209
5210         * src/common.h: added ifndef/define/endif macros
5211         around the header file.
5212         Bug reported from Jesus Calvino-Fraga
5213
5214 2004-01-06 Bernhard Held <bernhard AT bernhardheld.de>
5215
5216         * sdcc.spec: updated
5217         * device/include/Makefile.in: don't install CVS directories
5218         * device/lib/Makefile.in: added removal of CVS directories after install
5219         * doc/Makefile: fixed install, added local_icons
5220         * sim/ucsim/gui.src/Makefile.in: fixed an old typo
5221         * src/mcs51/gen.c (genRightShift): fixed bug #870788
5222         * src/ds390/gen.c (genRightShift): fixed bug #870788
5223         * src/SDCCast.c (decorateType): fixed bug #870781
5224
5225 2004-01-06 Vangelis Rokas <vrokas AT otenet.gr>
5226
5227         PIC16 port related changes:
5228         * device.c: removed pic16_finalMapping and pic16_finalMappingSize,
5229         added variable stackPos,
5230
5231         * gen.c: genCall, assignResultValue: added support for
5232         pushing/retrieving function parameters to/from stack,
5233         genFunction,genEndFunction: setup stack frame for the
5234         generated function,
5235         genAddrOf: will be changed according to bug 863624
5236
5237         * added files genutils.c and genutils.h which contain gen*
5238         debugged and optimised functions extracted from gen.c
5239
5240         * glue.c: added variable 'externs' which holds extern symbols,
5241         pic16emitRegularMap: is modified to properly handle relocatable
5242          symbols under the new scheme,
5243         pic16createInterruptVect: is modified
5244         pic16printPublics: is modified to emit 'global' assembler directives,
5245         added pic16_printExterns to print extern symbols,
5246         pic16glue: initializes stack/frame pointer in the beginning of
5247         the assembly output. Temporary hack, will be corrected later,
5248         because gplink yet does not support stack and SDCC does not
5249         yet support a type of crt0.o object to create the final binary.
5250
5251         * Removed many lines that contain 8051 legacy code.
5252         * The code is finally placed under a 'code' directive.
5253         * Added port specific options.
5254
5255         * _process_pragma: simplified since now we do not need *special*
5256         include file to define SFR registers. But a separate header
5257         will be needed. This will be developed later.
5258         * _pic16_parseOptions: added, parses port specific options:
5259         --pgen-banksel, --obanksel=, --pomit-config-words, --pomit-ivt,
5260         --pleave-reset-vector, --penable-stack, --pstack-model, --debug-xtra
5261         --preplace-udata-with=
5262
5263         * _pic16_setDefaultOptions: modified to initialize section names,
5264         but hack is temporarly out of order since it needs improvement.
5265         * _pic16_genAssemblerPreamble: configuration words are emitted by
5266         their address instead of their name. This part is incomplete and
5267         supports only the 18Fxx2 devices. Other devices will emit an error
5268         during assembly since they do not contain the same set of config
5269         registers
5270         * _pic16_genIVT: is modified,
5271
5272         * pcode.c: added definitions for some hardware registers that are needed
5273         for stack support
5274         * added flag is2LitOp and variable pci_magic in pCodeInstruction.
5275         All PCI entries are updated. Now LFSR is supported.
5276         * Removed pic16_pciTRIS is mentioned by mdubuc in source
5277         * added pic16_newpCodeOpLit2 to support instructions with
5278         two literal arguments
5279         * pic16_pCode2str: corrected code that emits assembler instructions
5280         with two literal operands and those that have an access bit modifier
5281         * genericPrint: now PC_ASMDIR pCodes, can emit a label if it exists,
5282         this fixes a bug which caused some labels to be lost, when an
5283         assembler directive was added, i.e. banksel,
5284         * pic16_FixRegisterBanking: improved logic that causes the insertion
5285         of bank switching,
5286         * InlineFunction: functions that are called once, are not any more
5287         inlined. This can be a port option in the future,
5288
5289         * pcode.h: added pCodeOpLit2 and added variable label in pCodeAsmDir
5290
5291         * ralloc.c: added pic16_rel_udata and pic16_fix_udata variables which
5292         hold the corresponding uninitialized symbols,
5293         * pic16_allocProcessorRegister: registers have explicit marked the
5294         accessBank field,
5295         * pic16_allocInternalRegister: registers are explicit marked as
5296         not used,
5297         * pic16_writeUsedRegs: pic16_dynDirectBitRegs was missing from the
5298         processing list, so bit registers were lost,
5299         *
5300
5301         * ralloc.h: added field 'accessBank' and original symbol operand
5302         in register definition,
5303         * removed the field isMapped from register definition,
5304
5305         ** Several functions have been removed from various sources:
5306         BanksUsedFlow2,BanksUsedFlow,FixBankFlow,InstructionRegBank,
5307         pic16_addMemRange,pic16_isREGinBank,pic16_dump_map,pic16_dump_cblock
5308         isSFR,validAddress,mapRegister,assignRegister,pic16_assignFixedRegisters
5309         pic16_assignRelocatableRegisters
5310
5311         ** others have been introduced:
5312         pic16_areRegsSame,pic16_dump_section,checkAddReg,pic16_groupRegistersInSection
5313         pic16_popGetLit2,pic16_popCombine2,pushw,pushaop
5314
5315 2004-01-05 Vangelis Rokas <vrokas AT otenet.gr>
5316
5317         * support/scripts/inc2h.pl: changed definition of BIT_AT
5318         to emit 'sbit at' instead of 'bit at'. This was a request.
5319
5320         PIC16 port related preliminary changes:
5321         * gen.c: prefixed function popRegFromString with
5322         pic16_ and all references to it corrected
5323         * pcode.c: all pic16_pc_* hardware registers prefixed
5324         with underscore (_),
5325         pic16_popCopyGPR2Bit(): function sets register wasUsed=1
5326         * ralloc.c: newReg(): when register is REG_SFR then
5327         set address to rIdx,
5328         pic16_allocProcessorRegister(): marks register wasUsed=0
5329         pic16_writeUsedRegs(): added a call to assign processor
5330         registers via pic16_assignFixedRegisters
5331
5332 2004-01-04  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5333
5334         * as/mcs51/aslink.h, as/mcs51/lkarea.c, as/mcs51/lkdata.c,
5335         as/mcs51/lkmain.c, as/mcs51/lkmem.c: 8051 linker can now pack
5336         variables in unused register banks.  Also the SSEG is placed
5337         wherever there is enough space for it, and IDATA can be anywhere
5338         in internal RAM.  For now compile using -Wl-Y[stack_size].
5339         The mem file is different for this option as well, since it
5340         makes no sense of talking about DSEG lenght.
5341
5342 2004-01-02 Vangelis Rokas <vrokas AT otenet.gr>
5343
5344         * src/SDCClrange.c: fixed bug 869095 that caused segfault
5345         in certain cases, e.g. when ROM assignment, patch provided
5346         from Albert den Haan.
5347
5348 2004-01-01 Bernhard Held <bernhard AT bernhardheld.de>
5349
5350         Many signedness and type propagation fixes:
5351         * src/SDCCicode.c: made geniCodeCast() static
5352         replaced SPEC_ by IS_ (cosmetic)
5353         (operandOperation): fixed div and mod operation
5354         (usualBinaryConversions): added support for promotion of char
5355         (geniCodeMultiply): replaced (unsigned long) by (TYPE_UDWORD)
5356         (geniCodeDivision): replaced (unsigned long) by (TYPE_UDWORD)
5357         (geniCodeAdd): an array index will stay unsigned, even if promoted
5358         from char to int
5359         (geniCodeArray): ditto
5360         * src/SDCCicode.h: made geniCodeCast() static: removed prototype
5361         * src/SDCCsymt.c (computeType): added more support for char;
5362         promotion of char is selectable by promoteCharToInt, fixed signedness
5363         for all cases
5364         (powof2): replaced (unsigned long) by (TYPE_UDWORD)
5365         * src/SDCCsymt.h (powof2): replaced (unsigned long) by (TYPE_UDWORD)
5366         * src/SDCCval (val*): replaced signedness calculation by
5367         computeType()
5368         rearranged if-branches (cosmetic)
5369         (valShift): added warning W_SHIFT_CHANGED
5370         (valCompare): fixed problem with different types
5371         * src/hc08/rallo.c (leastUsedLR): fixed gcc 3.3 warning
5372         * support/regression/tests/literalop.c: added many cases
5373         * support/regression/tests/ast_constant_folding.c: changed finally to
5374         'unsigned int'
5375         * .version: new year, new version: 2.3.7
5376         * src/SDCCmain.c (main): applied patch #866468
5377         * debugger/mcs51/sdcdb.c (parseCmdLine): added -k for ucsim, patch
5378         provided by Scott Bronson
5379         * doc/sdccman.lyx: updated documentation for sdcdb
5380         updated and added chapter tips
5381
5382 2004-01-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5383
5384         * src/SDCCsymt.h: missing from yesterday's commits
5385
5386 2003-12-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5387
5388         * src/SDCC.y (struct_or_union_specifier),
5389         * support/Util/SDCCerr.c,
5390         * support/Util/SDCCerr.h: verify that struct & union tags are used
5391         as declared.
5392
5393 2003-12-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5394
5395         * src/SDCCglobl.h: missing from yesterday's commits
5396
5397 2003-12-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5398
5399         * src/SDCC.y (external_definition, type_specifier2, sfr_reg_bit,
5400         sft_attributes, struct_declaration, parameter_declaration,
5401         type_name, start_block, declaration_list),
5402         * src/SDCC.lex (check_type): support redefinition of typedef names
5403
5404 2003-12-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5405
5406         * src/mcs51/gen.c (genPlus): added special handling for 256 byte
5407         aligned xdata arrays. Erik helped me with the if clause.
5408
5409 2003-12-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5410
5411         * device/lib/ds390/tinibios.c (CpuSpeed): suppress unreachable code
5412         warning
5413
5414 2003-12-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5415
5416         * src/SDCCast.h,
5417         * src/SDCCast.c (newAst_),
5418         * src/SDCCicode.h,
5419         * src/SDCCicode.c (ast2iCode, newiCode),
5420         * src/SDCCglobl.h,
5421         * src/SDCC.y (logical_and_expr, logical_or_expr, conditional_expr,
5422         expr, statement, expression_statement, selection_statement,
5423         iteration_statement, expr_opt, jump_statement): foundation for tracking
5424         sequence points
5425         * src/SDCCopt.c (killDeadCode): fixed bug #861580 (needs the sequence
5426         point code too)
5427
5428 2003-12-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5429
5430         * support/Util/SDCCerr.c,
5431         * src/SDCCast.h,
5432         * src/SDCCast.c (createCase, createDefault, decorateType),
5433         * src/SDCClabel.c (labelUnreach),
5434         * src/SDCC.y (labeled_statement, jump_statement): More improvements
5435         to error messages.
5436         * support/Util/SDCCerr.c (werrorfl): fixed a non-standard declaration
5437         (with thanks to Stas Sergeev)
5438         * device/include/time.h,
5439         * device/lib/time.c (CheckTime): suppress unreachable code warning
5440
5441 2003-12-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5442
5443         * src/SDCCast.c (createIvalCharPtr),
5444         * src/SDCCglue.c (printChar): fixed bug #862241 (an error in my fix for
5445         bug #753752)
5446         * support/regression/tests/nullstring.c: tests for these two bugs
5447
5448 2003-12-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5449
5450         * support/Util/SDCCerr.h,
5451         * support/Util/SDCCerr.c (E_NOT_ALLOWED),
5452         * src/SDCC.y (struct_declaration, struct_or_union_specifier): complain
5453         about storage class and 'at' used inside struct or union
5454         * src/SDCCBBlock.c (iCodeFromeBBlock),
5455         * src/SDCCcse.c (ifxOptimize),
5456         * src/SDCCglue.c (emitRegularMap, initPointer, printIvalStruct,
5457         printIvalArray, printiValFuncPtr, printIvalCharPtr, printIvalPtr,
5458         printIval, emitStaticSeg, emitOverlay),
5459         * src/SDCClabel.c (deleteIfx),
5460         * src/SDCCopt.c (replaceRegEqv, eBBlockFromiCode),
5461         * src/SDCCast.c (resolveSymbols, createIvalStruct, createIvalArray,
5462         gatherAutoInit, processParms),
5463         * support/Util/SDCCerr.h,
5464         * support/Util/SDCCerr.c (werrorfl): Support for better error location
5465         reporting for post-parse errors.
5466
5467 2003-12-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5468
5469         * src/SDCCval.c (valPlus, valMinus, valShift): fixed some problems with
5470         implicit casts via union; they don't work on big endian systems
5471         (possible fix for bug #861138)
5472
5473 2003-12-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5474
5475         (committed by Erik Petrich <epetrich AT ivorytower.norman.ok.us> on Frieder's behalf)
5476         * src/mcs51/main.c: fixed the fix for bug #737001
5477
5478 2003-12-15  Borut Razem <borut.razem AT siol.net>
5479
5480         * support/scripts/sdcc.nsi: updated for NSIS 2.0 beta 4
5481
5482 2003-12-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5483
5484         * support/makebin/makebin.c: put output in binary mode
5485
5486 2003-12-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5487
5488         * src/mcs51/main.c: fixed bug #737001 for the mcs51. SDCC clears
5489         xdata and data memory on startup. Set the environment variable
5490         SDCC_NOGENRAMCLEAR to disable this.
5491         * src/mcs51/peephole.def,
5492         * src/ds390/peephole.def: using the atomic test and clear instruction jbc
5493         (allows non-interrupt and interrupt code to safely compete for a resource
5494         without the non-interrupt code having to disable interrupts)
5495
5496 2003-12-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5497
5498         * src/SDCCicode.c (geniCodeAdd),
5499         * src/SDCCast.c (decorateType): fixed bug #857753 (need to be careful
5500         with valFromType if type might be a pointer and host is big endian).
5501         * src/SDCCast.c (decorateType): unary plus compatible with all arithmetic
5502         types, not just integer types.
5503         * src/SDCCsymt.c (addSymChain): clarified error message when symbol is
5504         multiply defined with mismatching "at" address.
5505
5506 2003-12-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5507
5508         * src/ds390/main.c (PORT tininative_port): fixed bug #858416
5509         * src/SDCCglue.c (printChar, printIvalChar, emitStaticSeg),
5510         * src/SDCCast.c (createIvalCharPtr, stringToSymbol): handle strings
5511         with embedded nulls (fixed bug #753752)
5512
5513 2003-12-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5514
5515         * src/mcs51/main.c(_mcs51_genRAMCLEAR): using r0 instead of r1/r2.
5516         Apparently this did not see much testing (endless loop)
5517
5518 2003-12-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5519
5520         * src/z80/ralloc.c: set DISABLE_PACK_HL = 1 as a temporary fix to bug #855165
5521
5522 2003-12-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5523
5524         * src/SDCCdebug.c (outputDebugSymbols, outputDebugStackSymbols, dumpSymInfo):
5525         gracefully handle NULL memmap pointers
5526
5527 2003-12-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5528
5529         * src/SDCCopt.c (killDeadCode): change iCode type to DUMMY_READ_VOLATILE
5530         instead of deleting the iCode when an operand is volatile
5531         * src/z80/gen.c (genDummyRead),
5532         * src/mcs51/gen.c (genDummyRead),
5533         * src/ds390/gen.c (genDummyRead),
5534         * src/hc08/gen.c (genDummyRead): handle operands in IC_LEFT and/or IC_RIGHT,
5535         not just IC_RIGHT
5536         * src/SDCCicode.c (geniCodeCall): fixed bug #851607
5537         * src/SDCC.y: fixed bug #850420
5538
5539 2003-12-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5540
5541         Applied z80 i/o port patch from Peter Townson and fixed some operators
5542         to better handle operands in A register.
5543         * device/include/z180.h
5544         * src/SDCC.y
5545         * src/SDCCglue.c
5546         * src/z80/gen.c
5547         * src/z80/gen.h
5548         * src/z80/main.c
5549         * src/z80/peeph-z80.def
5550         * src/z80/peeph.def
5551         * src/z80/z80.h
5552
5553 2003-12-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5554
5555         * src/SDCCsymt.c (addSymChain, compareTypeExact): fixed bug #838241 again
5556
5557 2003-12-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5558
5559         * device/lib/hc08/_mullong.c: Removed extra #endif
5560
5561 2003-12-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5562
5563         * sim/ucsim/hc08.src/inst.cc,
5564         * sim/ucsim/hc08.src/hc08mac.h: fixed some problems with CC flag bits and
5565         carries from x to h
5566         * src/hc08/gen.c (aopAdrStr): fixed problem with 16 bit immediate
5567         * src/hc08/gen.c (XAccRsh): fixed problem with right shift
5568         * device/include/stdarg.h: fixed varargs for hc08
5569         * device/lib/Makefile.in,
5570         * device/lib/hc08/Makefile,
5571         * device/lib/hc08/_mulint.c,
5572         * device/lib/hc08/_mullong.c: fixed some endian problems
5573
5574 2003-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5575
5576         * sdcc/src/mcs51/gen.c (genMultOneByte): help peephole 105
5577         * sdcc/src/mcs51/peeph.def: added peephole 186.e array access in code space
5578         * device/lib/_gptrget.c,
5579         * device/lib/_gptrput.c: P2 not used any more (related to #850747, #785979)
5580
5581 2003-11-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5582
5583         * src/SDCClrange.c (findNextUseSym, rlivePoint): fixed bug #849795
5584         * src/SDCCast.c (astErrors): fixed bug #846007
5585         * src/SDCCsymt.c (checkFunction): fixed follow-up bug on bug #846007
5586
5587 2003-11-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5588
5589         * src/SDCCast.c (decorateType): disabled a transformation I added in
5590         revision 1.188 (access to fields of a structure at an absolute address);
5591         it breaks with bitfields, extern declarations, and gcse analysis.
5592         * src/SDCCopt.c (isLocalWithoutDef): if ADDRESS_OF applied to a symbol, it
5593         could be assigned through a pointer, so don't complain.
5594         * src/SDCCast.c (astErrors),
5595         * src/SDCCast.h,
5596         * src/SDCCglue.c (emitRegularMap): fixed bug #847813
5597
5598 2003-11-26 Vangelis Rokas <vrokas AT otenet.gr>
5599
5600         * src/pic16/main.c (_pic16_genIVT): fixed interrupt vector table
5601         * src/pic16/main.c (_pic16_genAssemblerPreamble): re-enabled the
5602         output of __config directives, since gpasm now supports them
5603         * src/pic16/main.c (_pic16_finaliseOptions): define MCU
5604         pre-processor macro, i.e. -DMCU=p18f452
5605         * src/pic16/ralloc.c: renamed packRegisters to pic16_packRegisters,
5606         and modified to handle 'cast' icode similarly to '=' icode
5607         * src/pic16/device.h (typedef struct PIC_device): added field
5608         'extMIface' to indicate that chip has external memory interface
5609         * src/pic16/device.c: added chips 18F248, 18F258, 18F448, 18F458,
5610         18F6520, 18F6620, 18F6680, 18F6720, 18F8520, 18F8620, 18F8680,
5611         18F8720
5612
5613 2003-11-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5614
5615         * src/SDCC.y (pointer): fixed bug #846006
5616         * support/Util/SDCCerr.c: made W_PTR_TYPE_INVALID message clearer
5617         * src/SDCCast.c (decorateType): fixed bug #846009
5618         * src/ds390/peeph.def,
5619         * src/ds390/gen.c (genAnd, genOr),
5620         * src/mcs51/peeph.def,
5621         * src/mcs51/gen.c (genAnd, genOr): fixed bug #846777
5622
5623 2003-11-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5624
5625         Fixed several common-sub-expression bugs (#772861, #768380, & #755323)
5626         * src/SDCCdflow.c
5627         * src/SDCCcse.c
5628         * src/SDCCcse.h
5629         * src/SDCCBBlock.h
5630         * src/SDCCBBlock.c
5631
5632 2003-11-23 Klaus Flittner <klaus_flittner AT gmx.de>
5633
5634         fixed bug #845089
5635         * src/SDCCbitv.h,
5636         * src/SDCCbitv.c: added function to free a bitvector
5637         * src/SDCClrange.h,
5638         * src/SDCClrange.c: added function to recompute the liveranges
5639         * src/avr/ralloc.c,
5640         * src/ds390/ralloc.c,
5641         * src/hc08/ralloc.c,
5642         * src/mcs51/ralloc.c,
5643         * src/pic/ralloc.c,
5644         * src/pic16/ralloc.c,
5645         * src/xa51/ralloc.c,
5646         * src/z80/ralloc.c: recompute the liveranges after register packing
5647
5648 2003-11-21 Klaus Flittner <klaus_flittner AT gmx.de>
5649
5650         * src/SDCCloop.c (newInduction): fixed bug #845630
5651
5652 2003-11-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5653
5654         * src/SDCCsymt.c (compareTypesExact): disabled debugging output
5655         inadvertantly left behind from my 2003-11-12 change
5656
5657 2003-11-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5658
5659         Updated headers I neglected to commit yesterday.
5660         * src/SDCClrange.h,
5661         * src/SDCCicode.h
5662
5663 2003-11-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5664
5665         * src/SDCCcse.c (algebraicOpts): fixed bug #773153
5666         * src/SDCClrange.c (rlivePoint): need to mark IC_RESULT used if POINTER_SET op
5667         * src/SDCCopt.c (eBBlockFromiCode),
5668         * src/SDCClrange.c (hashiCodeKeys, sequenceiCode, computeLiveRanges): seperated
5669         the creation of the key hash table from the sequencing so it can be used
5670         earlier (for some GCSE bug fixes still pending)
5671
5672 2003-11-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5673
5674         * src/mcs51/gen.c (genPlus): generate shortcut for adding 0xab00
5675         * support/regression/tests/addsub.c: testing genPlus shortcut
5676
5677 2003-11-15  Borut Razem <borut.razem AT siol.net>
5678
5679         * src/SDCCmain.c: fixed bug #841645: -MM command line option passed to sdcpp
5680
5681 2003-11-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5682
5683         * src/SDCCcse.c (cseBBlock): fixed bug #527779
5684         * src/SDCCcse.c (deleteGetPointers): rewrote so that the set
5685         ordering is immaterial.
5686         * src/SDCCdflow.c (mergeInExprs): fixed bug #587536
5687
5688 2003-11-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5689
5690         * src/SDCCicode.c (geniCodeAddressOf): fixed part of bug #840381
5691         * src/SDCCopt.c (replaceRegEqv, isLocalWithoutDef): fixed other part
5692         (SIGSEV) of bug #840381
5693         * src/SDCCmain.c (linkEdit, assemble): fixed bug #841606 (don't
5694         unlink new file before rename if new and old filenames are the same)
5695
5696 2003-11-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5697
5698         * src/mcs51/main.c: started fixing bug #737001 (SDCC not clearing
5699         uninitialized variables) for the mcs51. Set environment variable
5700         SDCC_GENRAMCLEAR to test.
5701         xdata initialization slightly shorter
5702
5703 2003-11-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5704
5705         * src/SDCCsymt.h,
5706         * src/SDCCsymt.c (addSymTypeChain, compareTypesExact): fixed bugs
5707         #838241 & 780691 (basicly the same bug)
5708         * src/SDCCBBlock.c (iCode2eBBlock): fixed bug #840148
5709         * src/SDCCBBlock.c (iCodeFromeBBlock): fixed bug #840162
5710
5711 2003-11-11 Bernhard Held <bernhard AT bernhardheld.de>
5712
5713         * src/SDCCmain.c (linkEdit): "fix" #834252
5714
5715 2003-11-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5716
5717         * src/SDCCast.c (removePostIncDecOps, removePreIncDecOps),
5718         * src/SDCCast.h,
5719         * src/SDCC.y: fixed bug #819403
5720
5721 2003-11-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5722
5723         * support/regression/fwk/lib/testfwk.c: printn is recursive and thus needs
5724         the reentrant attribute.
5725         * src/hc08/gen.c (genPackBits): added missing stack readjustment
5726         * sim/ucsim/hc08.src/inst.cc (inst_mov): fixed bugs with mov instruction
5727         simulation
5728         * src/SDCCast.c (decorateType): fixed bug with storage class not being
5729         updated during pointer dereference; f.e. ~(((char *)1)*) was being
5730         erroneously reduced to a literal.
5731         * src/hc08/ralloc.c (packRegisters, rematStr),
5732         * src/hc08/gen.c (aopForRemat): allow literals to be rematerialized in
5733         some cases
5734
5735 2003-11-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5736
5737         * src/mcs51/main.c: fixed bug #838385. Thanks to Josef Pavlik for finding and fixing
5738         * doc/sdccman.lyx: changed from 'article' to 'book'
5739         * doc/Makefile: readded test_suite_spec and cdbfileformat
5740
5741 2003-11-08 Bernhard Held <bernhard AT bernhardheld.de>
5742
5743         * device/include/stdlib.h: include malloc.h to comply with ANSI
5744         * support/regression/tests/malloc.c: include stdlib.h instead of malloc.h
5745
5746 2003-11-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5747
5748         * doc/Makefile: sdccman.pdf should build with correct references (more info in commit msg)
5749         * doc/clean.mk: also remove *.out files
5750         * doc/sdccman.lyx: some additions, larger top/bottom margins
5751
5752 2003-11-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5753
5754         * src/SDCC.y: fixed bug #837365
5755         * support/regression/tests/bitopcse.c
5756         * src/hc08/gen.c (genPointerGet): Don't assume pointer operand is
5757         a symbol (might be valop instead)
5758         * device/lib/Makefile.in: added errno.c to HC08SOURCES
5759         * device/lib/clean.mk: added hc08 to the cleaning list
5760
5761 2003-11-04  Borut Razem <borut.razem AT siol.net>
5762
5763         * configure, configure.in, sdcc_vc_in.h, sdcconf_in.h: reverted changes,
5764           made 2003-11-04
5765         * support/Util/NewAlloc.c, as/hc08/lklibr.c, as/mcs51/lklibr.c,
5766           as/z80/aslist.c, as/z80/assym.c: removed inclusion of nonstandard malloc.h;
5767           malloc is declared in standard stdlib.h
5768
5769 2003-11-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5770
5771         * device/lib/hc08/Makefile: need to clean .rel not .o files
5772         * src/hc08/gen.c (genDjnz): can't use djnz with extended addressing mode
5773
5774 2003-11-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5775
5776         * src/port.h,
5777         * src/hc08/main.c,
5778         * src/mcs51/main.c,
5779         * src/ds390/main.c,
5780         * src/z80/main.c,
5781         * src/avr/main.c,
5782         * src/pic/main.c,
5783         * src/pic16/main.c,
5784         * src/xa51/main.c: added hasExtBitOp & oclsExpense functions to ports
5785         * src/SDCCicode.c: changed several IS_FARSPACE tests to isOclsExpensive
5786         tests (which uses the port's oclsExpense function)
5787         * src/SDCC.y,
5788         * src/SDCCast.c,
5789         * src/SDCCicode.c,
5790         * src/hc08/gen.c,
5791         * src/ds390/gen.c,
5792         * src/mcs51/gen.c: added support for the SWAP iCode (RFE #834167)
5793
5794 2003-11-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5795
5796         * src/SDCCcse.c (ifxOptimize),
5797         * src/SDCClabel.c (labelIfx, deleteIfx): When the condition to
5798         an IFX iCode is volatile, convert to DUMMY_READ_VOLATILE instead
5799         deleting the IFX iCode.
5800         * src/hc08/ralloc.c: reduced unneeded slocs
5801         * src/hc08/gen.c: fixed bug in asmopToBoolean
5802
5803 2003-11-04  Borut Razem <borut.razem AT siol.net>
5804
5805         * configure, configure.in, sdcc_vc_in.h, sdcconf_in.h,
5806           support/Util/NewAlloc.c, as/hc08/lklibr.c, as/mcs51/lklibr.c,
5807           as/z80/aslist.c, as/z80/assym.c: decision to include malloc.h
5808           transferred to configure
5809
5810 2003-11-03 Bernhard Held <bernhard AT bernhardheld.de>
5811
5812         Use headers defined in the C[++] standards:
5813         * sim/ucsim/gui.src/serio.src/fileio.cc
5814         * sim/ucsim/gui.src/serio.src/frontend.cc
5815         * sim/ucsim/gui.src/serio.src/main.cc
5816         * sim/ucsim/gui.src/serio.src/posix_signal.cc
5817         * support/Util/NewAlloc.c
5818         * as/hc08/lklibr.c
5819         * as/mcs51/lklibr.c
5820         * as/z80/aslist.c
5821         * as/z80/assym.c
5822
5823 2003-11-03  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5824
5825         * Added MSVC projects for hc08 assembler and linker:
5826         all.dsp, config.dsp, sdcc.dsw, /as/hc08/as_hc08.dsp,
5827         /as/hc08/link_hc08.dsp
5828
5829 2003-11-03 Martin Helmling <Martin.Helmling AT octo-soft.de>
5830
5831         * debugger/mcs51/cmd.c: allows filename starting with digit(+ some debug)
5832
5833 2003-11-02 Bernhard Held <bernhard AT bernhardheld.de>
5834
5835         * src/SDCCmain.c (linkEdit): "fixed" again bug #833605
5836
5837 2003-11-01 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5838
5839         * src/mcs51/main.c: xdata initialization is 13 bytes shorter now
5840
5841 2003-10-31  Borut Razem <borut.razem AT siol.net>
5842
5843         * support/cpp2/cpplib.h,
5844           support/cpp2/cpplib.c,
5845           support/cpp2/cpplex.c,
5846           support/cpp2/cppinit.c: introduced #pragma preproc_asm [ + | - ]
5847           to switch _asm block preprocessing on / off. Default is
5848           #pragma preproc_asm +
5849
5850 2003-10-31  Borut Razem <borut.razem AT siol.net>
5851
5852         * support/cpp2/cpplex.c: Fixed _WIN32 problem with CR-CR-LF sequences
5853           when outputting comment blocks (when executed with -C option) and
5854           _asm (SDCPP specific) blocks
5855
5856 2003-10-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5857
5858         * as/hc08/lkrloc.c (relr): Fixed ihx output, fixed lastAreaIndex warning
5859
5860 2003-10-31 Klaus Flittner <klaus_flittner AT gmx.de>
5861
5862         * src/SDCCcse.c (updateSpillLocation): fixed bug #808027
5863
5864 2003-10-31 Bernhard Held <bernhard AT bernhardheld.de>
5865
5866         * src/SDCCmain.c (linkEdit): "fixed" bug #833605
5867         * src/SDCCast.c (decorateType): fixed bug #832664
5868
5869 2003-10-31  Borut Razem <borut.razem AT siol.net>
5870
5871         * support\cpp2\cpplex.c: fixed for SDCPP:
5872           comments(when executed with -C option) and _asm blocks
5873           were included even if they where in skipped #if block.
5874           Applied solution from GCC cpp 3.3.2
5875
5876 2003-10-31  Borut Razem <borut.razem AT siol.net>
5877
5878         * src/SDCC.lex: sdcc now understands both formats:
5879           '# <line_number> <file_name>' and
5880           '#line <line_number> <file_name>'
5881         * support/cpp2/cppmain.c: sdcpp now generates the standard
5882           '# <line_number> <file_name>' instead of former
5883           '#line <line_number> <file_name>'
5884
5885 2003-10-30  Borut Razem <borut.razem AT siol.net>
5886
5887         * support/cpp2/cpphash.h,
5888         * support/cpp2/cpplib.h
5889         * support/cpp2/cpplex.c,
5890         * support/cpp2/cppmain.c,
5891         * support/cpp2/cppinit.c: fixed bug #828015 - Syntax variation for _asm character constants
5892
5893 2003-10-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5894
5895         Fixed a number of problems revealed by bug #827883.
5896         * src/SDCCloop.c (loopInvariants): Spill location of the
5897         result operand should be recomputed if extracted from
5898         a loop. Also, don't extract assignments of an iTemp
5899         from a literal.
5900         * src/SDCCast.c (isConformingBody): loop reversal should
5901         not occur if the control variable is involved with a
5902         relational operator.
5903
5904 2003-10-28 Bernhard Held <bernhard AT bernhardheld.de>
5905
5906         * .version: bumped to 2.3.6 to reflect the big improvements
5907         made by Erik and Klaus. Thanks!
5908
5909 2003-10-28 Klaus Flittner <klaus_flittner AT gmx.de>
5910
5911         Replaced the livrange code.
5912         * src/SDCClrange.c: added new LR code
5913         * src/SDCCloop.c,
5914         * src/SDCCBBlock.h: removed remainig parts from old LR code
5915         * src/ds390/ralloc.c,
5916         * src/ds390/gen.c: minor fixes to make it work with new code
5917
5918 2003-10-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5919
5920         * as/hc08/asm.h,
5921         * as/hc08/lkrloc.c,
5922         * src/hc08/gen.c,
5923         * src/hc08/ralloc.c: Fix various warnings related to the hc08
5924         * src/SDCCicode.c (geniCodePreInc, geniCodePreDec): Fixed bug #829717
5925         (tweaked fix for bug #818696)
5926
5927 2003-10-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5928
5929         * src/z80/ralloc.c (joinPushes): Fixed bug #828742
5930
5931 2003-10-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5932
5933         * src/SDCCmain.c,
5934         * sdccconf_in.h: Fixed bug #828387 (--disable-hc08-port didn't work)
5935         * src/mcs51/gen.c (gencjneshort),
5936         * src/ds390/gen.c (gencjneshort): Made comparison with AOP_IMMD operand
5937         more efficient (per Scott Bronson's suggestion)
5938
5939 2003-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5940
5941         Extended the semantics of the critical keyword to include
5942         individual statements. See RFE #827755 and #799831
5943         * src/SDCC.y
5944         * src/SDCCicode.c
5945         * src/SDCCopt.c
5946         * src/SDCCast.c
5947         * support/Util/SDCCerr.c
5948         * support/Util/SDCCerr.h
5949         * src/mcs51/gen.c
5950         * src/ds390/gen.c
5951         * src/hc08/gen.c
5952
5953 2003-10-19  Borut Razem <borut.razem AT siol.net>
5954
5955         * src/SDCC.lex: fixed bug #825944 - defined yytext_ptr to make it compile with flex 2.5.31
5956
5957 2003-10-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5958
5959         * src/SDCCicode.c (geniCodePreInc, geniCodePreDec, ast2iCode):
5960         Fixed bug #818696
5961         * src/SDCCast.c (ast_print): Fixed --dumptree so that preincrement
5962         and predecrement operand is displayed
5963
5964 2003-10-13 Bernhard Held <bernhard AT bernhardheld.de>
5965
5966         * src/SDCCval.c (valMinus): fixed bug #826041
5967
5968 2003-10-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5969
5970         Some hc08 related updates that I missed earlier
5971         * sim/ucsim/stypes.h
5972         * support/regression/ports/hc08/spec.mk
5973
5974 2003-10-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5975
5976         New target "hc08" for the Motorola 68hc08 family of micros
5977
5978         * configure
5979         * configure.in
5980         * Makefile
5981         * src/hc08/*
5982         * src/SDCCmain.c
5983         * src/port.h
5984         * sim/ucsim/hc08.src/*
5985         * sim/ucsim/configure.in
5986         * src/ucsim/configure
5987         * sim/ucsim/packages_in.mk
5988         * as/hc08/*
5989         * as/Makefile
5990         * device/include/mc68hc908qy.h
5991         * device/lib/hc08/*
5992         * device/lib/Makefile.in
5993         * support/regression/ports/hc08/*
5994         * support/regression/Makefile
5995
5996 2003-10-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5997
5998         * src/z80/gen.c: fixed bug revealed by ast_constant_folding.c
5999         regression test
6000         * src/ds390/gen.c (genCast): fixed bug #821957
6001
6002 2003-10-13 Bernhard Held <bernhard AT bernhardheld.de>
6003
6004         * device/lib/logf.c: "fixed" overlay bug
6005         * support/regression/ports/host/spec.mk: added m library
6006         * support/regression/ports/mcs51-stack-auto/spec.mk: added float funcs
6007         * support/regression/tests/float_trans: added (for Eric)
6008
6009 2003-10-12 Bernhard Held <bernhard AT bernhardheld.de>
6010
6011         * src/mcs51/gen.c (genCpl): fixed bug
6012         http://sf.net/mailarchive/message.php?msg_id=6263915
6013
6014 2003-10-10 Bernhard Held <bernhard AT bernhardheld.de>
6015
6016         * src/SDCCast.c (decorateType): added extended constant folding
6017         * src/SDCCsymt.c (computeType): cleanup
6018         * src/SDCCval.c (valShift): minor optimization
6019         * support/regression/tests/ast_constant_folding.c: added
6020
6021 2003-10-09  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6022
6023         * src/SDCCmain.c: removed some unintended changes
6024
6025 2003-10-09  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6026
6027         * src/SDCCmain.c (setParseWithComma): fixed bug #816685
6028         * src/z80/gen.c: fixed part of bug #817589
6029         * src/SDCCsymt.c (checkFunction): fixed bug #817895
6030
6031 2003-10-08 Bernhard Held <bernhard AT bernhardheld.de>
6032
6033         Replaced cast (void **) with (void *) to avoid gcc 3 warning:
6034         * src/SDCCcflow.c
6035         * src/SDCCcse.c
6036         * src/SDCCdflow.c
6037         * src/SDCClabel.c
6038         * src/SDCClrange.c
6039         * src/SDCCmem.c
6040         * src/SDCCopt.c
6041         * src/SDCCpeeph.c
6042         * src/SDCCset.c
6043         * src/avr/ralloc.c
6044         * src/ds390/ralloc.c
6045         * src/izt/ralloc.c
6046         * src/mcs51/ralloc.c
6047         * src/pic/ralloc.c
6048         * src/pic16/ralloc.c
6049         * src/xa51/ralloc.c
6050         * src/z80/ralloc.c
6051         * src/z80/gen.c: removed unused label "release:"
6052
6053 2003-10-06  Borut Razem <borut.razem AT siol.net>
6054
6055         * src/SDCC.lex: removed definition of unused variables
6056           save_optimize and save_options
6057
6058 2003-10-06 Bernhard Held <bernhard AT bernhardheld.de>
6059
6060         * clean.mk: removed '=' in "-maxdepth=1"
6061         * src/SDCCloop.c: replace LRKLAUS with SDCC_LRKLAUS
6062         * src/SDCClrange.c: replace LRKLAUS with SDCC_LRKLAUS
6063
6064 2003-10-06  Borut Razem <borut.razem AT siol.net>
6065
6066         * src/SDCC.lex, src/SDCC.lex: use dbuf for "_asm" definitions;
6067           my_unput() replaced by unput()
6068
6069 2003-10-05 Bernhard Held <bernhard AT bernhardheld.de>
6070
6071         * src/SDCCloop.c (assignmentsToSym, loopInduction): cast argument of
6072         setToNull() to (void *) to avoid gcc3.x's warning: "dereferencing
6073         type-punned pointer will break strict-aliasing rules"
6074         Old LR behaviour is again default; Klaus' LR can be choosen by
6075         defining the environment variable LRKLAUS
6076         * src/SDCCBBlock.h
6077         * src/SDCCloop.c
6078         * src/SDCClrange.c
6079         * src/ds390/ralloc.c (spillThis): applied Klaus' patch
6080         * clean.mk: fixed removal of files in bin/CVS/
6081         * device/lib/clean.mk: fixed removal of directories small and large
6082         * support/Util/SDCCerr.c: changed W_INT_OVL to ERROR_LEVEL_PEDANTIC
6083         * src/SDCCicode.c,
6084         * src/SDCCval.c: removed superflous test for pedantic
6085
6086 2003-10-05  Borut Razem <borut.razem AT siol.net>
6087
6088         * src/SDCC.lex, support/Util/SDCCerr.c, sdcc/support/Util/SDCCerr.h:
6089           Fixed bug #816692: introduced new ERROR_LEVEL_PEDANTIC warning
6090           message "unmatched #pragma SAVE and #pragma RESTORE"
6091
6092 2003-10-04  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6093
6094         * doc/sdccman.lyx: various additions and updates (interrupts, inline
6095           assembly, critical functions, atomic, nojtbound)
6096
6097 2003-10-04 Bernhard Held <bernhard AT bernhardheld.de>
6098
6099         Applied liferange patch from Klaus Flittner <klaus_flittner AT gmx.de>
6100         * src/SDCCBBlock.h
6101         * src/SDCCloop.c
6102         * src/SDCCloop.h
6103         * src/SDCClrange.c
6104
6105 2003-10-03  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6106
6107         * src/z80/gen.h,
6108         * src/z80/gen.c (aopOp, aopGet, aopPut, genDummyRead),
6109         * src/mcs51/gen.h
6110         * src/mcs51/gen.c (aopOp, aopGet, aopPut, genDummyRead),
6111         * src/ds390/gen.h
6112         * src/ds390/gen.c (aopOp, aopGet, aopPut, genDummyRead),
6113         * src/SDCCicode.c (ast2iCode, geniCodeDummyRead): Fixed bug #663539
6114         * src/SDCCopt.c (killDeadCode): Fixed bugs #663539 & #816705
6115
6116 2003-10-02  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6117
6118         * src/z80/gen.c (genRet): fixed bug #524753
6119         * src/z80/gen.c (genCast): fixed internal error on cast from
6120         pointer to long
6121         * src/z80/gen.c (_saveRegsForCall, emitCall): adapted Johan's
6122         fix for bug #477835 to the z80
6123         * src/z80/gen.c (genZ80code, _vemit2, _emit2): added support
6124         for tracking iCodes in the peephole optimizer for z80
6125
6126 2003-10-01  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6127
6128         * src/SDCCicode.c (geniCodeJumpTable, geniCodeSwitch): fixed
6129         the other part of bug #814548
6130         * src/SDCCpeeph.c (labelInRange): fixed bug #814558
6131
6132 2003-09-30  Bernhard Held <bernhard AT bernhardheld.de>
6133
6134         * src/SDCCcse.c: fixed part of bug #814548
6135
6136 2003-09-28  Borut Razem <borut.razem AT siol.net>
6137
6138         * src/asm.c: rewrite of printILine() to use temporary file instead
6139           a pipe
6140         * src/xa51/main.c: commented out declaration of int rewinds
6141
6142 2003-09-27  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6143
6144         * src/SDCCicode.c (geniCodeJumpTable): Fixed bug #813206
6145
6146 2003-09-26  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6147
6148         * src/SDCCdflow.c (computeDataFlow): Fixed bug #810746
6149         * src/asm.c (printILine): Fixed bug #811015
6150
6151 2003-09-22  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6152
6153         *link/z80/lklibr.c, as/mcs51/lklibr.c: Improved memory allocation and
6154         freeing.
6155
6156 2003-09-21  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6157
6158         * src/z80/gen.c (setupToPreserveCarry): Fixed bug #796955
6159         * src/z80/gen.c (setupPair, genMovePairPair): Fixed setupPair
6160         to correctly handle general case of AOP_PAIRPTR
6161         * src/z80/gen.c (aopGet, aopPut): Generalized AOP_PAIRPTR handling
6162
6163 2003-09-21  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6164
6165         * src/mcs51/ralloc.c (fillGaps),
6166         * src/ds390/ralloc.c (fillGaps): fixed bug #810093 (yet another
6167         register positioning bug)
6168
6169 2003-09-21  Bernhard Held <bernhard AT bernhardheld.de>
6170
6171         * device/lib/_fsdiv.c: replaced (1<<31) by (1ul<<31)
6172
6173 2003-09-19  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6174
6175         * src/mcs51/gen.c (loadDptrFromOperand, genFarPointerGet,
6176         genCodePointerGet, genGenPointerGet, genFarPointerSet,
6177         genGenPointerSet): handle AOP_DPTR correctly when loading dptr
6178         (ralloc doesn't intentionally do this now, but perhaps later)
6179         * src/mcs51/ralloc.c (serialRegAssign, fillGaps),
6180         * src/ds390/ralloc.c (serialRegAssign, fillGaps): fixed some
6181         register positioning bugs (Fixed bug #762602 and #795325)
6182         * src/SDCCicode.c (geniCodeDerefPtr): Track output class correctly
6183         (Fixed bug #808779)
6184         * src/z80/gen.c: increased _vemit2's buffer[] to handle long
6185         lines that --i-code-in-asm generates
6186
6187 2003-09-18  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6188
6189         *link/z80/lklibr.c, as/mcs51/lklibr.c: Fixed Linux segfaults when
6190         trying to fclose a FILE* that was already closed.
6191
6192 2003-09-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6193
6194         * src/SDCCsymt.c (structElemType): fixed bug #808291 (members
6195         of const struct should be treated as if const themselves)
6196
6197 2003-09-18  Bernhard Held <bernhard AT bernhardheld.de>
6198
6199         * src/SDCCval.c (valPlus, valMinus): fixed bug #808337
6200
6201 2003-07-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6202
6203         * support/librarian/sdcclib.c: Generate correct offsets for libraries with
6204         Unix (/n) and DOS (/r/n) line terminations.
6205
6206 2003-09-17  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6207
6208         * src/SDCCopt.c (cnvFromFloatCast, cnvToFloatCast): fixed
6209         bug #613775
6210
6211 2003-09-16  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6212
6213         * src/mcs51/gen.c (genFunction, genEndFunction),
6214         * src/ds390/gen.c (genFunction, genEndFunction): Moved save
6215         and restore of EA so that stack offsets to parameters are
6216         correct when using both critical and reentrant/stack-auto.
6217         * src/z80/gen.c (aopOp): removed erroneous assertion about sloc
6218         size (can be triggered in error if sloc is shared between
6219         different sized objects)
6220         * device/include/float.h: fixed macros to explicitly use
6221         unsigned long where needed
6222
6223 2003-09-15  Bernhard Held <bernhard AT bernhardheld.de>
6224
6225         Feature req. 799831: added code to allow nesting of critical functions
6226         * src/mcs51/gen.c (genFunction, genEndFunction)
6227         * src/ds390/gen.c (genFunction, genEndFunction)
6228
6229 2003-09-14  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6230
6231         * src/SDCCsymt.c (sclsFromPtr),
6232         * src/SDCCsymt.h,
6233         * src/SDCCast.c (decorateType): fixed bug #462971. Also, better
6234         support for standard C idiom of memory mapped variables; for
6235         example, *((xdata int*)0x1234) = 1 is now internally equivalent
6236         to xdata int at 0x1234 tempvar = 1.
6237         * sim/ucsim/z80.src/inst_xd.cc: fixed bug #805483 with patch
6238         provided by Akiya ISHIDA
6239
6240 2003-09-13  Bernhard Held <bernhard AT bernhardheld.de>
6241
6242         * src/SDCCval.c (cheapestVal): reenabled to reduce int to char
6243         * src/SDCCval.c (constVal): added reduction from int to char
6244         * src/SDCCval.c (valMult, valDiv): fixed sign handling
6245         * src/SDCCval.c (valShift): fixed after change of cheapestVal()
6246         * src/SDCCval.c (valCompare): fixed EQ_OP and NE_OP; they have
6247         to ignore the sign
6248         * support/regression/tests/shifts.c: fixed
6249
6250 2003-09-13  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6251
6252         * src/z80/gen.c (genXor): Fixed bug #805445
6253
6254 2003-09-12  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6255
6256         Fixed bug #621531 (const & volatile confusion in the type chain).
6257         DCL_PTR_CONST, DCL_PTR_VOLATILE, & IS_PTR_CONST now exclusively
6258         refer to the const or volatile state of the pointer itself.
6259
6260         * src/SDCCast.c
6261         * src/SDCCglue.c
6262         * src/SDCCicode.c
6263         * src/SDCCsymt.c
6264         * src/SDCCval.c
6265         * src/SDCC.y
6266         * src/SDCCsymt.h
6267         * src/pic/gen.c
6268         * src/pic/ralloc.c
6269         * src/pic16/gen.c
6270         * src/pic16/ralloc.c
6271         * support/regression/tests/const.c
6272
6273 2003-09-10  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6274
6275         When checking for duplicated modules, use absolute paths
6276         instead of relative paths.  Files changed:
6277
6278         * as/mcs51/lklib.c
6279         * link/z80/lklib.c
6280
6281 2003-09-09  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6282
6283         * src/SDCCicode.c (geniCodeLogic): fixed bug #797572
6284
6285 2003-09-07  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6286
6287         * device/include/string.h: added size_t typedef, changed
6288         prototypes to use size_t, eliminated separate reentrant and
6289         non-reentrant declarations, added _memmove declaration
6290         * device/lib/_memcpy.c: changed to use size_t instead of int,
6291         changed /4 to >>2 to avoid division library call
6292         * device/lib/_memcmp.c,
6293         * device/lib/_memset.c,
6294         * device/lib/_strncat.c,
6295         * device/lib/_strncpy.c,
6296         * device/lib/_strncmp.c: changed to use size_t instead of int
6297         * device/lib/_memmove.c: new file (fixed bug #772294)
6298         * device/lib/Makefile.in: added _memmove.c
6299         * device/lib/z80/asm_strings.s: fixed bug #772290
6300         * support/regression/tests/bitfields.c: attempt to fix host assertion
6301         failure on amd64-unknown-linux2.2
6302
6303 2003-09-06  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6304
6305         * src/z80/gen.c (aopPut, spillPairReg): fixed bug #800998
6306         * src/z80/gen.c (genFunction, genEndFunction): fixed "bug" #774700
6307         * as/z80/asmain.c (main): fixed bug #801766
6308
6309 2003-09-06  Bernhard Held <bernhard AT bernhardheld.de>
6310
6311         * src/SDCCicode.c (ast2iCode): fixed differences in iCode with different
6312         compilers
6313
6314 2003-09-05  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6315
6316         * src/SDCCast.c (isConformingBody): fixed loop reversal bug
6317         reported in bug #800609
6318
6319 2003-09-04  Vangelis Rokas <vrokas AT otenet.gr>
6320
6321         * Top header beautifications in src/pic16 directory:
6322           device.c, device.h, gen.c, gen.h, genarith.c, glue.c, pcode.c,
6323           pcodeflow.c, pcodeflow.h, pcode.h, pcodepeep.c, pcoderegs.c,
6324           pcoderegs.h, ralloc.c, ralloc.h
6325         * main.c: added top header and GPL license notice
6326         * pcode.c: fixed the if-conditional warning
6327
6328 2003-09-04  Bernhard Held <bernhard AT bernhardheld.de>
6329
6330         * device/lib/_mullong.c: replaced int by short for gcc
6331
6332 2003-08-31  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6333
6334         * src/SDCCpeeph.c (notVolatile, notVolatileVariable): handle IFX
6335         and JUMPTABLE iCodes properly now (worked by accident before)
6336         * src/mcs51/gen.c (leftRightUseAcc),
6337         * src/ds390/gen.c (leftRightUseAcc): handle IFX and JUMPTABLE
6338         iCode properly now. Use getSize instead of nRegs since a & b
6339         aren't part of the nRegs tally.
6340
6341 2003-08-31  Vangelis Rokas <vrokas AT otenet.gr>
6342
6343         * src/pic16/main.c: corrected offsets of interrupt vectors in _pic16_genIVT()
6344         * src/pic16/pcode.c: fix to disable inserting BANKSEL directive
6345           before instructions that use the _STATUS register
6346
6347 2003-08-31  Bernhard Held <bernhard AT bernhardheld.de>
6348
6349         * src/mcs51/gen.c (freeAsmop): fixed off by one in stack offset (AOP_STK)
6350         * src/mcs51/gen.c (genNearPointerSet): added missing opcode for
6351         fetching of the pointer
6352         * src/mcs51/gen.c (genNearPointerGet): added reuse of PREG,
6353         copied from genNearPointerSet()
6354         * src/mcs51/gen.c (genNearPointerGet): don't pop r0/r1, if RESULTONSTACK
6355         * src/mcs51/gen.c: changed order of freeAsmop(left/right/result)-calls.
6356         If they pop r0/r1 they must be called in the opposite order than aopOp().
6357         * device/lib/_mullong.c: fixed for "--model-large --int-long-reent"
6358         (resp. --stack-auto), prepared for --xstack
6359
6360 2003-08-28  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6361
6362         * doc/sdccman.lyx: reverted tables to those in cvs 1.64
6363
6364 2003-08-28  Bernhard Held <bernhard AT bernhardheld.de>
6365
6366         * device/lib/_startup.c: quick & dirty fix for ds390/ds400;
6367         these ports have their own __sdcc_external_start()
6368
6369 2003-08-26  Bernhard Held <bernhard AT bernhardheld.de>
6370
6371         pic patch provided by Slade Rich <slade_rich AT yahoo.com>
6372         * src/pic/glue.c (pic14printPublics): fixed bug introduced when symbol
6373         type for bits was changed. It resulted in bit variables becoming
6374         global, which is not permitted in PIC 14 assembly output.
6375
6376 2003-08-23  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6377
6378         * doc/sdccman.lyx: various additions and updates. Rearranged sections
6379
6380 2003-08-22  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6381
6382         Z80 and MCS51 linkers complaint if a public symbol is defined
6383         in more than one library module:
6384
6385         * as/mcs51/lklib.c
6386         * link/z80/lklib.c
6387         * as/mcs51/Makefile.in
6388
6389 2003-08-22  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6390
6391         A few small changes that speed up the peephole optimizer.
6392
6393         * src/SDCCpeeph.c
6394
6395 2003-08-22  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6396
6397         Try to make the peephole optimizer smarter by maintaining
6398         an association between the assembly source code and the
6399         iCodes that originated them. Put this information to use
6400         with a new peephole rule condition "notVolatile" so that
6401         the rules can be aggressive yet still safe.
6402
6403         * src/SDCCpeeph.c
6404         * src/SDCCpeeph.h
6405         * src/mcs51/gen.c
6406         * src/mcs51/peeph.def
6407
6408 2003-08-20  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6409
6410         Fixed bug #741761
6411
6412         * src/mcs51/gen.c (aopForSym, leftRightUseAcc),
6413         * src/ds390/gen.c (aopForSym, leftRightUseAcc): preserve A and B
6414         if the left or right operand symbols have the accuse flag set.
6415
6416 2003-08-20  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6417
6418         Changed the type of the result of the ! (NOT) operator to char;
6419         previously it returned the same type as the source. This allows
6420         us to eliminate all the genFloatNot functions (all of its target
6421         implementations were very buggy) since !float can use the same
6422         code as !long now.
6423
6424         * src/SDCCicode.c (ast2iCode): ! returns char
6425         * src/mcs51/gen.c (genNot, genNotFloat),
6426         * src/ds390/gen.c (genNot, genNotFloat),
6427         * src/z80/gen.c (genNot, genNotFloat),
6428         * src/pic/gen.c (genNot, genNotFloat),
6429         * src/pic16/gen.c (genNot, genNotFloat): eliminated genNotFloat
6430
6431 2003-08-19  Bernhard Held <bernhard AT bernhardheld.de>
6432
6433         pic patch provided by Slade Rich <slade_rich AT yahoo.com>
6434         1. Interrupt would not compile properly. Ensure PCLATH register is saved
6435            during interrupts. Ensure WSAVE is located at a shared bank address.
6436         2. Fixed page selection in some places
6437         3. Fixed BTFSS/C to where necessary use registers directly and not simply
6438            the registers name strings.
6439         4. Fixed "signed / unsigned compare" compiler warnings.
6440         5. The PIC port manages its own allocation of the general purpose
6441            registers, but makes no attempt to reuse them. As a result when
6442            compiling it soon runs out of general purpose registers. Some
6443            additional code was added to the files pcode.c and device.c to walk
6444            through the function call tree and rename the registers so that they
6445            get reused.
6446
6447         * src/pic/device.c
6448         * src/pic/gen.c
6449         * src/pic/glue.c
6450         * src/pic/pcode.c
6451         * src/pic/pcode.h
6452         * src/pic/ralloc.c
6453         * src/pic/ralloc.h
6454         * src/pic/genarith.c: Fixed problems with PIC 14 port in functions
6455         genPlus() & genMinus() when the result is the same as left or right
6456
6457 2003-08-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6458
6459         * src/z80/gen.c (isUnsplitable, fetchPairLong): fixed bug #770454
6460
6461 2003-08-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6462
6463         Made bitfield a distinct type from bit so that bitfields
6464         convert as per ANSI C and bits retain their traditional
6465         boolean style behaviour. Implemented bitfield support in
6466         the z80 port.
6467
6468         * src/SDCCsymt.h,
6469         * src/SDCCsymt.c,
6470         * src/SDCCast.c,
6471         * src/cdbFile.c,
6472         * src/mcs51/gen.c,
6473         * src/ds390/gen.c: bit v bitfield split
6474         * src/z80/gen.c: New support for bitfields
6475         * support/regression/tests/bitfields.c: reenabled z80,
6476         added more tests
6477
6478 2003-08-17  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6479
6480         Rules 246.x, 247.x relate to bitfields, the others speed up
6481         access to xdata mapped I/O devices.
6482
6483         * src/mcs51/peeph.def: added 26 peepholes 246.x - 248.x, 180.x
6484
6485 2003-08-16  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6486
6487         Cleaned up genPackBits and genUnpackBits and added two helper
6488         functions, emitPtrByteGet & emitPtrByteSet. Added optimizations
6489         for literal assignments in genPackBits (thanks to Frieder for
6490         reminding me).
6491
6492         * src/mcs51/gen.c
6493         * src/ds390/gen.c
6494
6495 2003-08-16  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6496
6497         Fixed bug #748310 (pointer to function type mishandled when the
6498         function name is omitted). Also fixed a SIGSEGV when a function
6499         attribute (reentrant, etc) is used on a non-function or on a
6500         function but misplaced before the parameter list.
6501
6502         * src/SDCC.y (abstract_declarator, abstract_declaractor2): fixed
6503         bug #748310
6504         * src/SDCC.y (declarator2_function_attributes): avoided SIGSEGV
6505         * support/Util/SDCCerr.h,
6506         * support/Util/SDCCerr.c: Added func attr misuse error msg
6507
6508 2003-08-13  Bernhard Held <bernhard AT bernhardheld.de>
6509
6510         Fixed bug #787649 by anonymous
6511         * src/SDCCglue.c (emitRegularMap): added emission of sloc for func ptr
6512         * src/ds390/gen.c (aopForSym): fixed func ptr in sloc
6513
6514 2003-08-14  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6515
6516         Fixed numerous bitfield problems.
6517
6518         * src/SDCC.y: More bitfield related error checking
6519         * src/SDCCsymt.h,
6520         * src/SDCCsymt.c (compStructSize): fixed bitfield offset calc
6521         * support/Util/SDCCerr.h,
6522         * support/Util/SDCCerr.c: Added & edited some bitfield err msgs
6523         * src/mcs51/gen.c (genPackBits, genUnpackBits): fixed mask bugs
6524         * src/ds390/gen.c (genPackBits, genUnpackBits): fixed mask bugs
6525         * support/regression/tests/bitfields.c: tests added
6526
6527 2003-08-13  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6528
6529         Made the constant following the "interrupt" keyword optional. If
6530         omitted, the function will not automatically be given an entry
6531         in the interrupt vector table (similar to #pragma NOIV, but
6532         less syntacticly kludgy). The interrupt number is also now
6533         range checked. Also fixed a bug in the high order bit example
6534         in the manual.
6535
6536         * src/SDCC.y
6537         * src/SDCCmem.c
6538         * src/SDCCglue.c
6539         * src/SDCCsymt.h
6540         * support/Util/SDCCerr.c
6541         * support/Util/SDCCerr.h
6542         * doc/sdccman.lyx
6543
6544 2003-08-13  Bernhard Held <bernhard AT bernhardheld.de>
6545
6546         * src/SDCCcse.c (algebraicOpts): fix bug converting op from value to type
6547         * src/SDCCicode.c (operandOperation): rewritten some ops
6548         (*, ==, unary_minus) to fix possible overflows and to accord with ANSI
6549         * src/SDCCsymt.c (computeType): literals are handled the same way as any
6550         other type
6551         * src/SDCCval.c (cheapestVal): removed, it doesn't accord with ANSI (can
6552         be re-activated by defining REDUCE_LITERALS)
6553         * src/SDCCval.c (constVal): fixed; hex and octal constants can be
6554         unsigned, but are signed by default
6555         * src/SDCCval.c (constVal): rearranged
6556         * src/SDCCval.c (valMod): preliminary fix
6557         * src/SDCCval.c (valCastLiteral): use TYPE_* types
6558         * support/regression/literalop.c: added, work in progress
6559
6560 2003-08-12  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6561
6562         Generate warnings for useless declarations like "char data;"
6563         that don't do what new users expect.
6564
6565         * src/SDCC.y
6566         * support/Util/SDCCerr.h
6567         * support/Util/SDCCerr.c
6568
6569 2003-08-09  Bernhard Held <bernhard AT bernhardheld.de>
6570
6571         * src/SDCCval.c (valMult): fix overflow detection of negative int
6572
6573 2003-08-07  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6574
6575         * src/z80/ralloc.c (joinPushes): made compatible with new signedness
6576
6577         Changes to support big endian targets:
6578
6579         * src/ports.h
6580         * src/SDCCglue.c
6581         * src/avr/main.c
6582         * src/ds390/main.c
6583         * src/izt/i186.c
6584         * src/mcs51/main.c
6585         * src/pic/main.c
6586         * src/pic16/main.c
6587         * src/xa51/main.c
6588         * src/z80/main.c
6589
6590 2003-08-06  Bernhard Held <bernhard AT bernhardheld.de>
6591
6592         * src/SDCCval.c (cheapestVal): changed behaviour to the same as constVal()
6593         * device/lib/time.c: fixed warning "integer overflow in expression"
6594
6595 2003-08-05  Bernhard Held <bernhard AT bernhardheld.de>
6596
6597         * src/SDCCval.c (cheapestVal, valueFromLit): use TYPE_* types
6598         * src/SDCCval.c (constVal): changed default to signed; hex and octal
6599         constants are unsigned; added recognition of "u" flag for unsigned
6600         * src/SDCCval.c (valMult): fixed signdness, added warning for overflow
6601         * src/SDCCval.c (valDiv, valMod): fixed signdness
6602         * src/SDCCicode.c (operandOperation): fixed critical typo; fixed
6603         signedness of modulo, left and right shift
6604         * support/Util/SDCCerr.c: added warning "integer overflow in expression"
6605         * support/Util/SDCCerr.h: added warning W_INT_OVL
6606         * src/SDCCast.c (decorateType): fixed gcc3.3 warning
6607         * src/SDCCast.c (ast_print): improved output of constants
6608
6609 2003-08-04  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6610
6611         Fixed some warnings when building with MSVC:
6612
6613         * as\mcs51\asdata.c
6614         * as\z80\asdata.c
6615         * as\mcs51\asm.h
6616         * as\z80\asm.h
6617         * link\z80\aslink.h
6618         * link\z80\lkdata.c
6619         * link\z80\lkeval.c
6620         * link\z80\lkgb.c
6621         * link\z80\lkihx.c
6622         * link\z80\lks19.c
6623         * link\z80\lksym.c
6624         * support\cpp2\cpplib.c
6625         * src\ds390\gen.c
6626         * src\mcs51\gen.c
6627
6628 2003-08-03  Bernhard Held <bernhard AT bernhardheld.de>
6629
6630         * src/SDCCast.c (constExprTree): fix bug #781827 by Carl Worth <cworth AT isi.edu>
6631
6632 2003-08-01  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6633
6634         * support\librarian\clean.mk: Do not remove Makefile.
6635         * support\librarian\Makefile: added.
6636
6637 2003-08-01  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6638
6639         Added librarian to MSVC build:
6640         * all.dsp
6641         * sdcc.dsw
6642         * support\librarian\librarian.dsp
6643
6644         'configure' not needed for librarian, removed:
6645         * support\librarian\configure
6646         * support\librarian\configure.in
6647         * support\librarian\config_in.h
6648         * support\librarian\Makefile.in
6649
6650         Hopefully these ones built the librarian and the rest of sdcc properly:
6651         * Makefile
6652         * Makefile.common.in
6653
6654         Messed up 'configure', so revert to previous version:
6655         * configure
6656         * configure.in
6657
6658 2003-07-31  Bernhard Held <bernhard AT bernhardheld.de>
6659
6660         * src/SDCCicode.c (operandOperation): 3. fix, this time for Alpha; ULONG has 64 bits
6661         there, while the mantissa of a double is "only" 53 bits wide.
6662
6663 2003-07-31  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6664
6665         Adding sdcclib to the build.  MSVC project coming soon.
6666         Files added/changed:
6667
6668         * support\librarian\clean.mk
6669         * support\librarian\configure
6670         * support\librarian\configure.in
6671         * support\librarian\config_in.h
6672         * support\librarian\Makefile.bcc
6673         * support\librarian\Makefile.in
6674         * support\librarian\sdcclib.c
6675         * Makefile.bcc
6676         * Makefile
6677         * Makefile.common.in
6678         * configure
6679         * configure.in
6680
6681 2003-07-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6682
6683         Linker now complaints if linked modules have conflicting options, for
6684         example, one compiled using --model-large and another one compiled with
6685         --model-small.  The following files were modified:
6686
6687         * as\mcs51\asdata.c
6688         * as\mcs51\aslink.h
6689         * as\mcs51\asm.h
6690         * as\mcs51\asmain.c
6691         * as\mcs51\asout.c
6692         * as\mcs51\i51pst.c
6693         * as\mcs51\lkdata.c
6694         * as\mcs51\lklibr.c
6695         * as\mcs51\lkmain.c
6696         * as\z80\asdata.c
6697         * as\z80\asm.h
6698         * as\z80\asmain.c
6699         * as\z80\asout.c
6700         * as\z80\z80pst.c
6701         * link\z80\aslink.h
6702         * link\z80\lkdata.c
6703         * link\z80\lklibr.c
6704         * link\z80\lkmain.c
6705         * src\SDCCglue.c
6706
6707 2003-07-28  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6708
6709         *link/z80/aslink.h, link/z80/lklibr.c, as/mcs51/aslink.h,
6710         as/mcs51/lklibr.c: Generate a warning when a library is not found.
6711
6712 2003-07-28  Bernhard Held <bernhard AT bernhardheld.de>
6713
6714         * src/z80/mappings.i: fix _mul[us][int,long] entries
6715
6716 2003-07-26  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6717
6718         *src/SDCCmain.c: do not search for crt0.o when using --nostdlib
6719
6720 2003-07-24  Bernhard Held <bernhard AT bernhardheld.de>
6721
6722         * src/SDCCicode.c (operandOperation): really fixed problem with bitops
6723         * support/regression/tests/bitopcse.c: added
6724         fixed warning:
6725         * src/avr/gen.c:
6726         * src/pic/gen.c:
6727         * src/pic16/gen.c:
6728         * src/z80/gen.c:
6729         * src/xa51/gen.c:
6730
6731 2003-07-24  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6732
6733         added support for new library format to z80, gbz80 linkers:
6734         *link/z80/aslink.h
6735         *link/z80/lklex.c
6736         *link/z80/lklib.c
6737         *link/z80/lklist.c
6738
6739 2003-07-24  Bernhard Held <bernhard AT bernhardheld.de>
6740
6741         * src/SDCCicode.c (operandOperation): fixed problem with bitops and 0xffffffff;
6742         after {double d = 0xffffffff; long l = d;} l will be 0x80000000 (LONG_MIN)
6743
6744 2003-07-23  Bernhard Held <bernhard AT bernhardheld.de>
6745
6746         added DUMMY_READ_VOLATILE:
6747         * src/SDCC.y:
6748         * src/avr/gen.c:
6749         * src/xa51/gen.c:
6750         * src/z80/gen.c:
6751         * src/pic/gen.c:
6752         * src/pic16/gen.c:
6753         * src/mcs51/gen.c:
6754         * src/ds390/gen.c:
6755         * src/SDCCcse.c (algebraicOpts): many improvements
6756         * src/SDCCcse.h: removed algebraicOpts()
6757         * src/SDCCicode.c (picDummyRead): added
6758
6759 2003-07-23  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6760
6761         * as/mcs51/lkmem.c: Changed message "Insufficient DRAM memory" to
6762         "Insufficient space in data memory".
6763
6764 2003-07-20  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6765
6766         * src/mcs51/gen.c: fixed bug #771358
6767         * src/z80/gen.c: fixed bug #759087
6768
6769 2003-07-20  Bernhard Held <bernhard AT bernhardheld.de>
6770
6771         * src/pic16/glue.c: minor cleanup by Vangelis
6772
6773 2003-07-19  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6774
6775         * device/include/regc515c.h: fixed #758477
6776         * device/lib/_gptrget.c: saving some cycles in generic pointer get
6777         * device/lib/_gptrput.c: saved a few bytes
6778         * my tab spacing is 8, yours too?)
6779         * device/lib/_ser.c: process RX bytes earlier than TX bytes
6780         * device/lib/serial.c: process RX bytes earlier than TX bytes
6781         * src/mcs51/gen.c(genGenPointerGet/Set): removed writing of type after postincrement
6782
6783 2003-07-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6784
6785         * src/z80/gen.c: fixed some right shift bugs (#772726 among them)
6786
6787 2003-07-17  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6788
6789     * link/z80/lklibr.c: fixed bug when there is a '.' in a library path.
6790
6791 2003-07-17  Bernhard Held <bernhard AT bernhardheld.de>
6792
6793         * device/lib/Makefile.in: bad fix, reverted to 1.43
6794
6795 2003-07-16  Bernhard Held <bernhard AT bernhardheld.de>
6796
6797         * device/lib/Makefile.in: added missing z80 object files
6798
6799 2003-07-14  Bernhard Held <bernhard AT bernhardheld.de>
6800
6801         * src/SDCCcse.c (algebraicOpts): CSE fun with &|^ and 0x00/0xff literals
6802         pic16 progress by Vangelis:
6803         * src/SDCCglobl.h:
6804         * src/SDCCmain.c:
6805         * src/pic/Makefile:
6806         * src/pic:
6807         * pic/Makefile:
6808         * pic16/device.c:
6809         * pic16/device.h:
6810         * pic16/gen.c:
6811         * pic16/gen.h:
6812         * pic16/genarith.c:
6813         * pic16/glue.c:
6814         * pic16/main.c:
6815         * pic16/pcode.c:
6816         * pic16/pcode.h:
6817         * pic16/pcodepeep.c:
6818         * pic16/peeph.def:
6819
6820 2003-07-13  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6821
6822     * src/SDCCmain.c, src/SDCCglobl.h: added option --no-std-crt0
6823
6824 2003-07-12  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6825
6826     * sdcc.dsw, all.dsp, link/z80/linkgbz80.dsp, as/z80/as-gbz80.dsp:
6827     added gbz80 build to MSVC project.
6828     * src/SDCCmain.c, src/SDCCglue.c, src/z80/main.c, src/z80/z80.dsp,
6829     link/z80/aslink.h, linkz80.dsp: cleaned up z80 and gbz80 asm files
6830     from 8051 stuff and setup so it links using a .lnk file.
6831
6832 2003-07-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6833
6834     * support/librarian/sdcclib.c: sdcc librarian.
6835     * as/mcs51/aslink.h, as/mcs51/lklib.c: Support for libraries created
6836     with sdcclib.
6837
6838 2003-07-03  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6839
6840     * as/mcs51/lkmain.c: properly handle extensions in function afile.
6841
6842 2003-07-02  Borut Razem <borut.razem AT siol.net>
6843
6844         * src/port.h, src/SDCCmain.c, src/pic/glue.h, src/pic/main.c,
6845         src/pic16/glue.h, sdcc/src/pic16/main.c, src/izt/i186.c,
6846         src/izt/tlcs900h.c, src/avr/main.c, src/ds390/main.c, src/mcs51/main.c,
6847         src/xa51/main.c, src/z80/main.c:
6848         virtualization of glue() function: each port has it's own glue function,
6849         which is accessed by do_glue function pointer in PORT.general structure
6850
6851 2003-07-01 Kevin Vigor <kevin AT vigor.nu>
6852
6853         * DS800C400 fun, improved ROM interface and tinibios.
6854
6855 2003-06-27 Kevin Vigor <kevin AT vigor.nu>
6856
6857         * More support for DS80C400. Now includes beginning of interface to ROM.
6858
6859 2003-06-25  Bernhard Held <bernhard AT bernhardheld.de>
6860
6861         * src/mcs51/gen.c (gencjneshort): fixed bug #760345
6862
6863 2003-06-20  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6864
6865         * as/mcs51/lkaomf51.c: Make sure the size of the last procedure is correct.
6866
6867 2003-06-19  Borut Razem <borut.razem AT siol.net>
6868
6869         * src/z80/main.c: fixed Z80 port again: missing -k library paths in linker command line
6870
6871 2003-06-19  Borut Razem <borut.razem AT siol.net>
6872
6873         * src/SDCCutil.h, src/SDCCutil.c, src/SDCCglobl.h, src/SDCCmain.c, src/z80/main.c:
6874         fixed Z80 port - crt0.o: cannot open.
6875
6876 2003-06-19  Bernhard Held <bernhard AT bernhardheld.de>
6877
6878         * support/Util/MySystem.c (merge_command): revert bad fix
6879
6880 2003-06-18  Borut Razem <borut.razem AT siol.net>
6881
6882         * src/SDCC.lex, src/SDCCmain.c: fixed some warnings, introduced with changes made 15.06.1003
6883
6884 2003-06-18  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6885
6886         * src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx:
6887         option --use-stdout sends errors to stdout instead of stderr.
6888
6889 2003-06-18  Bernhard Held <bernhard AT bernhardheld.de>
6890
6891         * support/Util/MySystem.c (merge_command): quick fix for Linux segfault with \"cmd\" arg
6892
6893 2003-06-15  Borut Razem <borut.razem AT siol.net>
6894
6895         * support/cpp2/sdcc.h: HAVE_DOS_BASED_FILE_SYSTEM defined for _WIN32
6896         * src/SDCC.lex: cloneXxx and copyAndFreeXxx functions for options and optimize stack handling
6897         * src/SDCCglobl.h, src/SDCCmain.c, src/ds390/main.c, src/mcs51/main.c, src/z80/main.c:
6898         fixed width array of pointers replaced with sets;
6899         multiple include and lib paths ared transferred to preprocessor and linker
6900         * src/SDCCset.c, src/SDCCset.h: added function setFromSetNonRev() and mergeSets()
6901         * src/SDCCsymt.c: reimplemented function inCalleeSaveList() by using sets instead
6902         fixed width array of pointers
6903         * src/SDCCutil.c, src/SDCCutil.h: added functions fputStrSet(), appendStrSet(), joinStrSet();
6904         removed functions addToList(), join(), joinn(), pathCharsEquivalent(), pathCharTransform(),
6905         fixupPath(), getPathDifference()
6906         * src/ds390/gen.c, src/mcs51/gen.c: reimplemented function  inExcludeList() by using sets instead
6907         fixed width array of pointers
6908
6909 2003-06-11  Bernhard Held <bernhard AT bernhardheld.de>
6910
6911         * src/pic16/ralloc.c: fix warnings
6912         * src/pic16/pcode.c: fix warning
6913
6914 2003-06-10  Scott Dattalo  <scott AT dattalo.com>
6915
6916          Scott D. for Vangelis Rokas (vrokas AT otenet.gr). I (scott) don't
6917         know all the details, but essentially this set of changes enable
6918         the pic16 port to generate movff instructions and generate assembler
6919         directives,
6920         * src/SDCCmain.c:
6921         * src/pic16/gen.c:
6922         * src/pic16/glue.c:
6923         * src/pic16/pcode.c:
6924         * src/pic16/device.c:
6925         * src/pic16/main.c:
6926         * src/pic16/pcode.h:
6927         * src/pic16/pcoderegs.c:
6928         * src/pic16/ralloc.c:
6929         * src/pic16/ralloc.h:
6930
6931 2003-06-08  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6932
6933         * support/Util/SDCCerr.c, src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx:
6934         added option --vc, so sdcc errors and warnings are compatible with
6935         Microsoft Visual Studio.
6936
6937 2003-06-07  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6938
6939         * device/lib/_atof.c, device/lib/Makefile.in, device/include/stdlib.h,
6940           device/lib/libfloat.lib: added atof function.
6941
6942 2003-06-04  Bernhard Held <bernhard AT bernhardheld.de>
6943
6944         * doc/sdccman.lyx: updated to Lyx 1.3
6945         * doc/cdbfileformat.lyx: updated to Lyx 1.3
6946         * doc/test_suite_spec.lyx: updated to Lyx 1.3
6947         * doc/Makefile: added fix for the \tabularnewline problem, thanks to Jesus
6948
6949 2003-06-03  Bernhard Held <bernhard AT bernhardheld.de>
6950
6951         * src/SDCCpeeph.c: separate peepRules2pCode() for pic16 by "Vangelis Rokas" <vrokas AT otenet.gr>
6952
6953 2003-06-02  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6954
6955         * doc/sdccman.lyx: cvs revision keywords, passing pdf information in latex preamble,
6956           additions to the "related tools/documentation" section
6957
6958 2003-06-02  Bernhard Held <bernhard AT bernhardheld.de>
6959
6960         * src/SDCCglue.c (tempfileandname): added check for missing TMP/TEMP/TMPDIR variable
6961
6962 2003-05-29  Bernhard Held <bernhard AT bernhardheld.de>
6963
6964         * src/pic/device.c: added 16F819, patch by "David I. Lehn" <dlehn AT vt.edu>
6965         * src/SDCCcse.c (algebraicOpts): fixed "c * 1"
6966
6967 2003-05-28  Bernhard Held <bernhard AT bernhardheld.de>
6968
6969         * doc/sdccman.lyx: fix double dash and other minor things
6970         * doc/Makefile: fix double dash
6971
6972 2003-05-28  Karl Bongers(patches from Martin Helmling)
6973         * debugger/mcs51/sdcdb.c,cmd.c,break.c and .h files. Martin adds
6974           condition and ignore commands.
6975
6976 2003-05-28  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6977
6978         * doc/sdccman.lyx: Changes all over, index improved, smaller margins. The manual
6979           is in parts still quite out of date, I did changes as far as I felt makes sense
6980           for a non-native english speaker.
6981           Please feel free to add to the manual or to correct my changes.
6982         * doc/Makefile: undid touching the date of intermediate tex files.
6983
6984 2003-05-26  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6985
6986         * doc/sdccman.lyx: Manual has an index now
6987
6988 2003-05-25  Bernhard Held <bernhard AT bernhardheld.de>
6989
6990         Finalize muluint/mulsint and mululong/mulslong merging:
6991         * device/lib/_mulint.c
6992         * device/lib/_mullong.c
6993         * device/lib/gbz80/mul.s
6994         * device/lib/gbz80/stubs.s
6995         * device/lib/z80/mul.s
6996         * device/lib/z80/stubs.s
6997         * src/SDCCsymt.c (initCSupport)
6998
6999 2003-05-25  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7000
7001         * as/mcs51/lkaomf51.c: Address space 'z' was missing.
7002         * src/avr/avr.dsp, src/ds390/ds390.dsp, src/mcs51/mcs51.dsp,
7003           src/pic/pic.dsp, src/pic16/pic16.dsp, src/xa51/xa51.dsp,
7004           src/x80/z80.dsp: peep.rul is bigger now, so /Zm1000 is used
7005           instead of /Zm500.
7006
7007 2003-05-25  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7008
7009         * src/mcs51/peeph.def: added rules 244.x, 245.x. Although they pass
7010           the regression tests I'm not brave enough to enable 245.b, 245.c
7011         * doc/sdccman.lyx: added latex preamble for hyperref package.
7012           Using pdflatex this will give you a hyperlinked pdf file with
7013           bookmarks. (prepend '%' before /usepackage if this breaks something)
7014
7015 2003-05-24  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7016
7017          * doc/sdccman.lyx: updated information about .adb files (fixed bug 742649)
7018
7019 2003-05-22  Bernhard Held <bernhard AT bernhardheld.de>
7020
7021         * src/pic16/pcode.c (pic16_get_op_from_instruction): fixed a gcc 3.x warning
7022
7023 2003-05-21    <johan AT balder>
7024
7025         * src/SDCCglue.c (printIval): fixed bug #739934
7026
7027 2003-05-19  Bernhard Held <bernhard AT bernhardheld.de>
7028
7029         Applied patch from bug 737905 (renamed yylineo to mylineno):
7030         * src/altlex.c
7031         * src/SDCCast.c
7032         * src/SDCglobl.h
7033         * src/SDCC.lex
7034         * src/SDCCsymt.c
7035         * src/SDCCval.c
7036         * src/pic16/pcode.c: Cleaned warnings
7037         * src/pic16/pcodeflow.c: Cleaned warnings
7038         * src/pic16/pcoderegs.c: Cleaned warnings
7039
7040 2003-05-19  Scott Dattalo  <scott AT dattalo.com>
7041
7042         * src/pic16/pcode.c: Cleaned warnings
7043         * src/pic16/pcodepeep.c: Cleaned warnings
7044         * src/pic16/ralloc.c: Cleaned warnings
7045
7046 2003-05-19  Bernhard Held <bernhard AT bernhardheld.de>
7047
7048         * doc/sdccman.lyx: fixed bug 739745
7049         * src/pic16/pcode.c (pic16_get_op): fixed warning on alpha
7050
7051 2003-05-18  Bernhard Held <bernhard AT bernhardheld.de>
7052
7053         * src/port.h: removed DEFAULT_PORT, it's not yet pic16 ;-)
7054         it can be defined with CFLAGS when running configure
7055         * src/SDCCmain.c: fixed compiling + linking with object files
7056
7057 2003-05-18  Vangelis Rokas (vrokas AT otenet.gr)
7058
7059         * configure.in: configure for pic16 port,
7060             added --disable-pic16-port
7061         * sdccconf_in.h: added macro OPT_DISABLE_PIC16
7062         * src/SDCCmain.c: linkOptions is changed to set *,
7063             added if/endif conditional macros to remove options help
7064             messages from optionsTable when a port is not configured, added
7065             support for the PIc16 port in the ports table, when executing
7066             the compiler with no port specified on command line, a default
7067             port is selected with the new macro DEFAULT_PORT which is
7068             defined in port.h, in setDefaultOptions() linkOptions is removed
7069             from initialization assignment, since now it is a set,
7070             parseCmdLine uses setParseWithComma for linkOptions, in
7071             linkEdit() linkOptions are accessed with new function indexSet()
7072             which returns the i'th item of a set variable. See SDCCset.c, in
7073             linkEdit() when calling buildCmdLine(), added linkOptions as
7074             last argument. Now users can pass arguments to gplink via the
7075             -Wl option, main() uses pic16glue() to glue up pic16 programs
7076         * src/SDCCpeeph.c: various changes to support pic16
7077         * src/SDCCset.c: added function  void *indexSet(set *, int)  to
7078             return the i'th item of the set
7079         * src/SDCCset.h: added function prototype for indexSet()
7080         * src/SDCCsymt.c: in checkSClass(), added support for PIC16
7081         * src/clean.mk: added pic16 in CLEANALLPORTS variable
7082         * src/port.h: added TARGET_ID_PIC16,TARGET_IS_PIC16 macro,
7083             added macro DEFAULT_PORT
7084         * src/pic/main.c: corrected arguments of gplnk in _linkCmd
7085         * src/pic16/gen.c: bug fix in genCpl(), now the correct code is
7086             generated
7087         * src/pic16/glue.c: commented out some error producing lines
7088         * src/pic16/main.c: __config directives are commented out to stop
7089             gpasm complaining and test the linkage with gplink, _linkCmd and
7090             _asmCmd changed to be more gplink and gpasm friendly
7091         * src/pic16/peeph.def: peep rule 3 is commented out, since it
7092             produced an error when parsed, peep rule 12 is added to utilize
7093             movff, but it is commented out since the pCode does not support
7094             yet a command with 2 address arguments
7095
7096 2003-05-18    <johan AT balder>
7097
7098         * src/ds390/gen.c (genArrayInit): removed obsolete and buggy ARRAYINIT
7099         * src/ds390/main.c (genArrayInit): removed obsolete and buggy ARRAYINIT
7100 2003-05-17  Karl Bongers(apply patches from Martin Helmling)
7101
7102         * debugger/mcs51/sdcdb.c,cmd.c,break.c and .h files.
7103   Added feature to script commands from file.
7104
7105 2003-05-14  Bernhard Held <bernhard AT bernhardheld.de>
7106
7107         * device/lib/_strtok.c: fixed bug #734355 by Lenny Story and Tim Woodall
7108         * src/SDCCutil.c: include ctype.h for win32
7109
7110 2003-05-13  Bernhard Held <bernhard AT bernhardheld.de>
7111
7112         * src/pic16/*: removed CR from many files, reported by Vangelis Rokas
7113
7114 2003-05-12  Karl Bongers(apply development patches from Martin Helmling)
7115
7116         * debugger/mcs51/sdcdb.c,simi.c,cmd.c,break.c and .h files.
7117   Fixed so you can set breakpoints prior to run, run does not stop
7118   on entry now.  Add tbreak.  Other enhancements and fixes for use
7119   with ddd.
7120
7121 2003-05-12  Borut Razem <borut.razem AT siol.net>
7122
7123         * src/SDCCmain.c: fixed the problem with searching the DATADIR as the last resort on *nix
7124
7125 2003-05-11  Borut Razem <borut.razem AT siol.net>
7126
7127         * src/SDCCutil.c: WIN32 version of getBinPath() calls GetModuleFileName() to determine
7128         the path of bin directory, so that PATH is the only env. variable, which has to be set
7129         in case of standard installation.
7130         * src/ds390/ds390.dsp: increased value of /Zm option to 1000
7131         * src/pic/main.c: add quotes to file name parameters for gplink and gpasm
7132         * src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx: added --print-search-dirs command line option
7133
7134 2003-05-04  Bernhard Held <bernhard AT bernhardheld.de>
7135
7136         * src/SDCCmain.c (linkEdit): fixed buffer overflow for gbz80
7137         * support/regression/Makefile: inter-port-clean is no longer nesessary, the
7138         temp files are in the port dir; clean the gen/test directory when
7139         generating new test.c
7140         * support/regression/ports/host/spec.mk: defined OBJEXT for target clean
7141         * support/regression/tests/vaargs.c: fixed gcc 3.3 warning
7142         * support/regression/tests/zeropad.c: added
7143
7144 2003-05-09    <johan AT balder>
7145
7146         * src/SDCCglue.c: fixed bug #597940
7147
7148 2003-05-05  Karl Bongers(apply patches from Martin Helmling)
7149
7150         * debugger/mcs51/sdcdb.c,simi.c,cmd.c,symtab.c and .h files.
7151   cache sfr, optimize next,step, fix off by one sourceline,
7152   support ddd list function.
7153         * sim/ucsim/cmd.src/newcmd.cc - small fix for sdcdb use.
7154
7155 2003-05-04  Bernhard Held <bernhard AT bernhardheld.de>
7156
7157         * support/regression/HTMLgen.py: added compare_s2f()
7158         * support/regression/Makefile: redo 1.27
7159         * support/regression/generate-cases.py: redo 1.5
7160
7161 2003-04-30  Bernhard Held <bernhard AT bernhardheld.de>
7162
7163         * support/regression/tests/float.c: workaround 33 bit hex constant
7164         * support/regression/tests/simplefloat.c: fix division for host
7165
7166 2003-04-29  Scott Dattalo  <scott AT dattalo.com>
7167
7168         * src/pic/pcoderegs.c Applied patch from Jim Hawkridge <jim AT jimhawkridge.uk.eu.org>
7169         that tame's the PIC's over-aggressive optimizer.
7170
7171 2003-04-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7172
7173          * src.dsw, link/z80/aslink.h, link/z80/linkz80.dsp: z80 linker
7174          support for MSVC.
7175
7176 2003-04-29  Kevin Vigor <kevin AT vigor.nu>
7177
7178         Initial support for DS80C400. "Hello world" runs on TINIm400
7179         (with polled I/O).
7180
7181 2003-04-28  Karl Bongers(apply patches for Martin Helmling)
7182
7183          * debugger/mcs51/sdcdb.c,simi.c,cmd.c,symtab.c and .h files.
7184          * Some notes on ddd usage added in debugger/README
7185          Martin Helmling adding more features and fixes for ddd GUI debugger.
7186          Code added for nexti, stepi, up, down, and other adjustments.
7187
7188 2003-04-28  Scott Dattalo  <scott AT DATTALO.COM>
7189
7190         * src/pic/pCodepeep.c non-wildcard asmops are now handled
7191         * src/pic/peeph.def Added two rules to optimize carry manipulation
7192         * src/pic/* removed debug printfs
7193
7194 2003-04-28  Bernhard Held <bernhard AT bernhardheld.de>
7195
7196         * debugger/mcs51/cmd.c: added header newalloc.h
7197
7198 2003-04-26  Bernhard Held <bernhard AT bernhardheld.de>
7199
7200         * as/Makefile: new EXEEXT
7201         * as/z80/Makefile: remove trailing slash of BUILDIR
7202         * as/z80/clean.mk: new EXEEXT
7203         * Makefile.common.in: add to CFLAGS (and others), don't replace it
7204         * support/cpp2/Makefile.in: new EXEEXT
7205         * src/pic/glue.c (pic14emitRegularMap): fixed warning
7206
7207 2003-04-24  Bernhard Held <bernhard AT bernhardheld.de>
7208
7209         Cygwin's gcc always appends .exe: 'gcc -o a a.c' creates a.exe;
7210         EXEEXT was introduced to fix all related problems with targets
7211         "clean", "install" and "uninstall"; a couple of further flaws
7212         especially with "clean" have been fixed too
7213         * as/mcs51/Makefile.in
7214         * as/mcs51/clean.mk
7215         * as/z80/Makefile
7216         * Makefile
7217         * clean.mk
7218         * debugger/mcs51/Makefile.in
7219         * debugger/mcs51/clean.mk
7220         * link/z80/Makefile
7221         * link/z80/Makefile.in
7222         * link/z80/clean.mk
7223         * link/Makefile
7224         * packihx/Makefile.in
7225         * packihx/clean.mk
7226         * sim/ucsim/Makefile
7227         * sim/ucsim/clean.mk
7228         * sim/ucsim/avr.src/Makefile.in
7229         * sim/ucsim/avr.src/clean.mk
7230         * sim/ucsim/s51.src/Makefile.in
7231         * sim/ucsim/s51.src/clean.mk
7232         * sim/ucsim/xa.src/Makefile.in
7233         * sim/ucsim/xa.src/clean.mk
7234         * sim/ucsim/z80.src/Makefile.in
7235         * sim/ucsim/z80.src/clean.mk
7236         * sim/ucsim/main_in.mk
7237         * sim/ucsim/packages_in.mk
7238         * sim/ucsim/gui.src/Makefile.in
7239         * sim/ucsim/gui.src/serio.src/Makefile.in
7240         * sim/ucsim/gui.src/serio.src/clean.mk
7241         * src/Makefile.in
7242         * src/clean.mk
7243         * support/cpp2/Makefile.in
7244         * support/cpp2/clean.mk
7245         * support/makebin/Makefile
7246         * support/makebin/clean.mk
7247         * support/scripts/sdcc_mingw32: --program-suffix no longer needed
7248         * doc/sdccman.lyx: --program-suffix no longer needed
7249
7250 2003-04-23  Karl Bongers(apply patches for Martin Helmling)
7251
7252          * debugger/mcs51/sdcdb.c,simi.c,cmd.c,..
7253          Martin Helmling added support for ddd GUI debugger.
7254          Code added to display assembly, set variables, and other commands
7255          to interface to ddd.
7256
7257 2003-04-23  Bernhard Held <bernhard AT bernhardheld.de>
7258
7259         * as/Makefile: fix target clean
7260         * as/clean.mk: fix target clean
7261         * as/z80/clean.mk: fix target clean
7262
7263 2003-04-22  Bernhard Held <bernhard AT bernhardheld.de>
7264
7265         * Makefile.common.in: added  AT EXEEXT AT
7266         * configure.in: removed all mingw32 stuff
7267         * configure: rebuilt from configure.in
7268         * doc/sdccman.lyx: updated section "installation"
7269         * support/scripts/sdcc_mingw32: adapted to configure
7270         * support/scripts/sdcc_cygwin_mingw32: added
7271
7272 2003-04-22  Scott Dattalo  <scott AT dattalo.com>
7273
7274         * src/pic Added object file support for the PIC port
7275         * src/pic Applied patch from Craig Franklin (this started the object file support)
7276         * src/regression Updated the PIC regression tests for object files
7277
7278 2003-04-20  Borut Razem <borut.razem AT siol.net>
7279
7280         * sdcc/as/mcs51/lklex.c: make getfid() more robust and fixed gcc warning:
7281           lklex.c: In function `getfid':
7282           lklex.c:203: warning: array subscript has type `char'
7283         * src/SDCCglobl.h: small change in stack handling macros, to avoid crash when compiled
7284           with MSVC with global optimization enabled (probably an cl compiler bug ;-)
7285         * support/Util/SDCCerr.c, support/Util/SDCCerr.h: added function fatal(), called from
7286           stack handling macros
7287
7288 2003-04-19  Borut Razem <borut.razem AT siol.net>
7289
7290         * "handling space characters in file path" task:
7291         * src/SDCCmacro.c: fixed bug in handlig quote at the end of line
7292         * support/Util/BuildCmd.c: define par as NULL if parameter value is invalid
7293         * support/Util/MySystem.h: make it self-sufficient
7294         * src/avr/main.c, src/ds390/main.c, src/mcs51/main.c, src/pic/main.c, src/xa51/main.c,
7295           src/z80/main.c, sdcc/as/mcs51/lklex.c:
7296           handling space characters in file path
7297         * src/SDCCmain.c: introduced setDataPaths() function, {datadir} macro
7298           (it will be used by assemblers, which have their own includes, e.g. gpasm)
7299         * support/Util/MySystem.c: handling space characters in executable's path
7300
7301 2003-04-19  Bernhard Held <bernhard AT bernhardheld.de>
7302
7303         * as/z80/Makefile: fix permanent rebuild of z80
7304         * sim/ucsim/gui.src/Makefile.in: target "install" builds the same packages as target "all"
7305         * support/regression/tests/bitfields.c: added Johan's bitfields.c
7306
7307 2003-04-18      Kevin Vigor <kevin AT vigor.nu>
7308
7309         * src/SDCCopt.c: add special case optimization to replace modulo by
7310           a power of two with a bitwise AND.
7311
7312 2003-04-18    <johan AT balder>
7313
7314         * src/mcs51/gen.c (getFreePtr): fixed bug #635354
7315
7316 2003-04-17    <johan AT balder>
7317
7318         * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #716790 and removes lot's of redundant register usage around function calls
7319         * src/mcs51/ralloc.c (packRegisters): fixed bug #720667
7320
7321 2003-04-13  Borut Razem <borut.razem AT siol.net>
7322
7323         * doc/sdccman.lyx: updated info about #pragma SAVE/RESTORE nesting
7324         * configure.in, configure: fixed problems on cygwin/WinCVS environmet with ports.* line endings;
7325           fixed mingw problem in adl_NORMALIZE_PATH
7326
7327 2003-04-12  Borut Razem <borut.razem AT siol.net>
7328
7329         * fixed "#pragma SAVE/RESTORE can not be nested":
7330         * src/SDCC.lex: reworked pragma handling functions
7331         * sdcc/src/SDCCglobl.h: reworked stack handling macros
7332         * support/Util/SDCCerr.c, support/Util/SDCCerr.h: added E_STACK_VIOLATION error
7333
7334 2003-04-12  Bernhard Held <bernhard AT bernhardheld.de>
7335
7336         * src/SDCCutil.c (pathEquivalent): defined but not used
7337         * debugger/mcs51/sdcdb.c: replace SDCC_LIB_DIR
7338         * configure.in: remove sdcc_datadir, sdcc_lib_dir and sdcc_include_dir
7339         * configure: rebuilt from configure.in
7340         * sdccconf_in.h: remove SDCC_LIB_DIR and SDCC_INCLUDE_DIR
7341         * sdcc_vc_in.h: remove SDCC_LIB_DIR and SDCC_INCLUDE_DIR
7342         * device/include/Makefile.in: replace sdcc_datadir
7343         * device/lib/Makefile.in: replace sdcc_datadir
7344         * Makefile.common.in: add LDFLAGS from configure
7345         * packihx/Makefile.in: use LDFLAGS
7346         * src/Makefile.in: use LDFLAGS
7347         * support/cpp2/Makefile.in: add LDFLAGS from configure
7348         * support/makebin/Makefile: use LDFLAGS
7349         * .version: bumped version number to 2.3.5
7350
7351 2003-04-12  Borut Razem <borut.razem AT siol.net>
7352
7353         * completed "different paths" task:
7354         * src/SDCCmacro.c: fixed bug in handling quotes
7355         * src/SDCCutil.c, src/SDCCutil.c: rewritten getPrefixFromBinPath()
7356         * src/SDCCmain.c: _discoverPaths() replaced with setBinPaths(), setIncludePath() and setLibPath()
7357
7358 2003-04-12  Bernhard Held <bernhard AT bernhardheld.de>
7359
7360         * src/pic/pcoderegs.c (Remove1pcode): fix warning on alpha
7361
7362 2003-04-11 kevin Vigor <kevin AT vigor.nu>
7363
7364         * ds390/gen.c ds390/peeph.def: fix bug 706781
7365
7366 2003-04-11  Borut Razem <borut.razem AT siol.net>
7367
7368         * support/Util/dbuf.c, support/Util/dbuf.h: update to version 1.1.1 - re-added C++ stuff to make it still more portable
7369
7370 2003-04-10  Scott Dattalo  <scott AT dattalo.com>
7371
7372         * src/pic/* Applied the pointer-to-function patch from Steve Tell.
7373         * src/pic/* Fixed several pointer bugs. (PIC port broke when the ruonly bit was
7374          set - this bit used to not be set...).
7375         * src/pic/gen.c Fixed buf 609268 ==> x = (x+1) & 0xf; generated
7376           bad code in PIC Port
7377         * src/regression/and2.c added to test bug 609268
7378         * src/regression/Makefile added and2.c to regression test
7379
7380
7381 2003-04-08    <johan AT CP255758-A>
7382
7383         * src/mcs51/gen.c (gen51Code): display reg usage in --icode-in-asm
7384         * src/mcs51/ralloc.c (serialRegAssign): update the registers in use and save some slocs
7385         * src/SDCCicode.h: added riu to show the register usage in --icode-in-asm
7386
7387 2003-04-07  Bernhard Held <bernhard AT bernhardheld.de>
7388
7389         * configure.in: fully support prefix, exec_prefix, datadir, docdir;
7390         fix bug #487815
7391         * support/cpp2/Makefile.in: fix bug #487815
7392         * configure: rebuilt from configure.in
7393         * Makefile.common.in: docdir changed, new path suffixes
7394         * sdccconf_in.h: new RETSIGTYPE, and other PATHs
7395         * sdcc_vc_in.h: reflect changes from sdccconf.h
7396         * src/SDCCglobl.h: remove *SEPARATOR_CHARS, they are now in sdccconf.h
7397         * src/SDCCutil.h: remove BINDIR hack
7398         * doc/sdccman.lyx: update new path hierarchy
7399
7400 2003-04-06    Paul Stoffregen <paul AT pjrc.com>
7401
7402         * src/SDCCpeeph.c: added okToRemoveSLOC test
7403
7404 2003-04-06    Paul Stoffregen <paul AT pjrc.com>
7405
7406         * device/lib/printf_fast.c: added leading zero format ("%06d", etc)
7407
7408 2003-04-06    Paul Stoffregen <paul AT pjrc.com>
7409
7410         * src/SDCCpeeph.c: added labelIsReturnOnly test
7411         * src/mcs51/peeph.def: Peephole 244: replace ljmp to ret with ret
7412
7413 2003-04-05    <johan AT balder>
7414
7415         * src/SDCCcse.c (cseAllBlocks): fixed bug #460088
7416         * src/SDCCloop.c (DEFSETFUNC): fixed bug #460088
7417         * src/SDCCopt.c (eBBlockFromiCode): fixed bug #460088
7418         * src/SDCCast.c: fixed a warning
7419         * src/SDCCast.h: fixed a warning
7420         * src/SDCCicode.c (operandFromAst): fixed a warning
7421
7422 2003-04-04    <johan AT balder>
7423
7424         * src/SDCCloop.c (DEFSETFUNC): undid the fix for bug #519584
7425         * src/SDCCast.c (decorateType): fixed bug #715076
7426         * src/SDCC.y: fixed bug #702907
7427
7428 2003-04-03    <johan AT balder>
7429
7430         * device/lib/_mulint.c (_muluint): new #pragma LESS_PEDANTIC
7431         * src/SDCCopt.c (eBBlockFromiCode): new #pragma LESS_PEDANTIC
7432         * src/SDCCglobl.h (PRAGMA_LESSPEDANTIC): new #pragma LESS_PEDANTIC
7433         * src/SDCC.lex (doPragma): new #pragma LESS_PEDANTIC
7434         * src/SDCCmain.c (parseCmdLine): new #pragma LESS_PEDANTIC
7435
7436 2003-04-03  Bernhard Held <bernhard AT bernhardheld.de>
7437
7438         * _decdptr.c: fix return values
7439         * _gptrget.c: fix return values
7440         * _gptrgetc.c: fix return values
7441         * _gptrput.c: fix return values
7442         * _mulint.c: fix return values
7443         * as/z80/Makefile: fix 'make -j' problem
7444
7445 2003-04-02  Bernhard Held <bernhard AT bernhardheld.de>
7446
7447         * Makefile.common.in: unused PORT, SCC and SAS removed, fixed docdir
7448         * configure.in: big cleanup, updated to autoconf 2.5x
7449         * configure: rebuilt from configure.in
7450         * sdccconf_in.h: new RETSIGTYPE, and other PATHs
7451         * sdcc_vc_in.h: reflect changes from sdccconf.h
7452         * doc/Makefile: fixed a flaw in "make install"
7453
7454 2003-04-02    <johan AT balder>
7455
7456         * src/ds390/gen.c (genCmp): no comments
7457         * src/mcs51/gen.c (genCmp): no comments
7458         * src/SDCCopt.c (eBBlockFromiCode): detect missing return values
7459         * src/SDCCast.c (ast_print): fixed the function type in --dumptree
7460
7461 2003-04-01  Bernhard Held <bernhard AT bernhardheld.de>
7462
7463         * support/regression/generate-cases.py: place generated file in given sub directory
7464         * support/regression/ports/host/spec.mk: prevent removal of testfwk.o
7465         * support/regression/Makefile: improvements for 'make -j';
7466         side effect: it's simpler and faster now
7467
7468 2003-03-31  Borut Razem <borut.razem AT siol.net>
7469
7470         * src/z80/main.c: link-{port} and as-{port} defined without path
7471         * src/src.dsp: support/Util/MySystem.h and src/SDCCutil.h added to project
7472
7473 2003-03-31  Bernhard Held <bernhard AT bernhardheld.de>
7474
7475         * Makefile, src/Makefile.in: add dependencies, so that 'make -j' works
7476
7477 2003-03-30  Borut Razem <borut.razem AT siol.net>
7478
7479         * support/Util/BuildCmd.c, support/Util/BuildCmd.h: rewrite buildCmdLine(),
7480           changed type of list parameter to set
7481         * src/ds390/main.c: changed type of parameter asmOptions to set in _tininative_do_assemble()
7482         * src/port.h: changed type of do_assemble() parameter to set
7483         * src/SDCCmain.c: type of asmOptions changed to set, introduced setParseWithComma(),
7484           sdcpp defined without path, removed variable VersionString, introduced set binPathSet,
7485           definition of "cppoutfilename" macro with NULL value in preProcess()
7486         * src/SDCCglobl.h: included "SDCCset.h", added declaration of setParseWithComma()
7487         * src/SDCCglue.c: removed variable VersionString, inroduced spacesToUnderscores()
7488         * support/Util/MySystem.c, support/Util/MySystem.h: rewrite, char *ExePathList[]
7489           replaced with set *binPathSet
7490         * shash_add() deallocates the item, if allready exsists, before adding the new one
7491         * src/SDCCmacro.c: handling macros with empty or NULL values in _evalMacros()
7492
7493 2003-03-30  Scott Dattalo  <scott AT dattalo.com>
7494
7495         * src/pic/gen.c: Commit patch from Steve Tell <tell AT telltronics.org> that fixes
7496           a nested for loop bug in the PIC port
7497         * src/regression/nestfor.c: new regression test file Steve wrote to test nested
7498           for loops
7499
7500 2003-03-29  Bernhard Held <bernhard AT bernhardheld.de>
7501
7502         * support/Util/dbuf.h: remove C++ stuff to make it portable
7503
7504 2003-03-28  Borut Razem <borut.razem AT siol.net>
7505
7506         * src/SDCC.lex: Fix for bug #711240: dynamic buffer handling of C
7507           literal strings in stringLiteral()
7508         * support/Util/dbuf.c, support/Util/dbuf.h: added: dynamic buffer handling
7509         * src/Makefile.bcc, src/Makefile.in, src\src.dsp: added support/Util/dbuf.c
7510           to the project
7511
7512 2003-03-27  Paul Stoffregen <paul AT pjrc.com>
7513
7514         * src/SDCCpeeph.c (pcDistance): accurate byte distance for mcs51
7515
7516 2003-03-26    <johan AT balder>
7517
7518         * src/mcs51/gen.c (saveRegisters): catched symbol abuse
7519         * src/ds390/gen.c (saveRegisters): catched symbol abuse
7520         * src/SDCCast.c (decorateType): fixed " -v < 3"
7521
7522 2003-03-23  Bernhard Held <bernhard AT bernhardheld.de>
7523
7524         * doc/cdbfile.html: removed, replaced by cdbfileformat.lyx
7525         Added Lenny Story's debug infrastructure changes:
7526         * src/Makefile.in:  added new files cdbFile.c and SDCCdebug.c
7527         * src/Makefile.bcc: added new files cdbFile.c and SDCCdebug.c
7528         * src/cdbFile.c: added
7529         * src/SDCCdebug.c: added
7530         * src/SDCCdebug.h: added
7531         * src/SDCCast.c (createFunction)
7532         * src/SDCCglue.c (emitRegularMap, emitStaticSeg, emitOverlay, glue)
7533         * src/SDCCmain.c (parseCmdLine, main)
7534         * src/SDCCmem.c (redoStackOffsets)
7535         * src/SDCCsymt.c (cdbStructBlock, cdbTypeInfo, cdbSymbol, cdbStruct, cdbStructBlock)
7536         * src/SDCCsymt.h
7537         * src/common.h
7538         * src/avr/gen.c (genAVRCode)
7539         * src/ds390/gen.c (gen390Code)
7540         * src/mcs51/gen.c (gen51Code)
7541         * src/pic/gen.c (genpic14Code)
7542         * src/pic/glue.c (pic14emitRegularMap, pic14emitStaticSeg, pic14emitOverlay, picglue)
7543         * src/xa51/gen.c (genXA51Code)
7544         * src/SDCCast.c: fixed "void foo(void){char c; -c < 0;}"
7545
7546 2003-03-22  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7547
7548         * src/mcs51/gen.c (genCodePointerGet): quicker code for bug #700797
7549         * src/mcs51/peeph.def: added rules 177, 241.x to 243, touched 181, 182.x, 193.x
7550
7551 2003-03-22    <johan AT balder>
7552
7553         * src/SDCCicode.c (geniCodeDerefPtr): fixed bug #698231
7554
7555 2003-03-21  Bernhard Held <bernhard AT bernhardheld.de>
7556
7557         * support/scripts/sdcc_mingw32: adapted to configure from autoconf 2.54
7558         * doc/cdbfileformat.lyx: added, written by Lenny Story
7559         * doc/Makefile: added cdbfileformat.lyx
7560         * doc/clean.mk: added cdbfileformat.lyx
7561
7562 2003-03-20  Bernhard Held <bernhard AT bernhardheld.de>
7563
7564         * src/mcs51/peeph.def: fix bug #705773
7565
7566 2003-03-20    <johan AT balder>
7567
7568         An sfr/sbit can have an "at #" AND an initializer
7569         * src/SDCCsymt.c (checkSClass):
7570         * src/SDCCmem.c (allocGlobal):
7571         * src/SDCCmem.c (allocLocal):
7572         * src/SDCCast.c (createBlock):
7573
7574 2003-03-17  Bernhard Held <bernhard AT bernhardheld.de>
7575
7576         * src/ds390/peeph.def: fix bug #704878: added rule 213.b suggested by Jan Rejlek
7577
7578 2003-03-16    <johan AT balder>
7579
7580         Undid the hackup of const and volatile, the problem is much bigger
7581         * src/SDCC.y:1.65
7582         * src/SDCCast.c:1.171
7583         * src/SDCCglue.c:1.138
7584         * src/SDCCicode.c:1.146
7585         * src/SDCCsymt.c:1.150
7586         * src/SDCCval.c:1.65
7587
7588 2003-03-15  Bernhard Held <bernhard AT bernhardheld.de>
7589
7590         * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #703541
7591         * src/ds390/gen.c (genAddrOf): fixed bug #704087
7592
7593 2003-03-13    <johan AT balder>
7594
7595         Hackup const and volatile modifiers in type chains a bit:
7596         * src/SDCC.y:1.63
7597         * src/SDCCast.c:1.169
7598         * src/SDCCglue.c:1.136
7599         * src/SDCCicode.c:1.143
7600         * src/SDCCsymt.c1.146
7601         * src/SDCCsymt.h1.59
7602         * src/SDCCval.c:1.63
7603
7604 2003-03-12    <johan AT balder>
7605
7606         * src/SDCCBBlock.h: more LRH debugging junk
7607         * src/SDCCcflow.h: more LRH debugging junk
7608         * src/SDCCloop.c: more LRH debugging junk
7609         * src/SDCC.y (struct_declaration): fixed bug #697590
7610         * src/SDCCsymt.[hc] (cloneSpec): NEVER EVER use this again
7611         * src/ds390/gen.c (aopForRemat): fixed bug #700031
7612         * src/SDCCglue.c (emitStaticSeg): fixed bug #700797
7613
7614 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
7615         * src/SDCCpeeph.c: quit being lazy and made proper fix (peephole
7616         test function names must now match exactly).
7617         * src/SDCCcse.c: added special case in findCheaperOp to allow
7618         extending a short integer. Makes less awful code for bug 700121 test case.
7619
7620 2003-03-11  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7621
7622         * as/mcs51/lkmain.c: Added ASlink-Warning to messages
7623         * as/mcs51/lkaomf51.c: Fixed bug when linking asmblink example
7624
7625 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
7626
7627         * src/SDCCpeeph.c: fix so that operandsNotEqualX functions are
7628         actually called (operandsNotEqual() was called for all
7629         operandsNotEqualX tests).
7630
7631 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
7632
7633         * src/SDCCcse.c: fix findCheaperOp to prevent replacing int types
7634         with shorter literals. Fixes bug 700121.
7635
7636 2003-03-11    <johan AT balder>
7637
7638         * src/SDCCsymt.c (compareType): a (void *) can be assigned to any pointer
7639
7640 2003-03-11  Bernhard Held <bernhard AT bernhardheld.de>
7641
7642         * src/SDCCloop.c (mergeRegions): an evil beast is dead
7643         * src/SDCCmain.c (preProcess): minor cleanup: eliminate preOutName
7644
7645 2003-03-10  Borut Razem <borut.razem AT siol.net>
7646
7647         * src/SDCCmain.c: pipe preprocessor's output
7648         * support/Util/MySystem.c, support/Util/MySystem.h: added my_popen()
7649         * sdcc_vc_in.h: define pclose as _pclose for WIN32
7650         * src/SDCCglue.c, src/SDCCglue.h: added set pipeSet, added function closePipes,
7651         which closes all pipes in pipeSet set
7652         * src/SDCCset.c: free deleted item in function deleteSetItem()
7653         * src/src.dsp, src/z80/z80.dsp: files support/Util/BuildCmd.c and support/Util/MySystem.c
7654         moved from z80 to src subproject
7655         * .version: increased version number to 2.3.4
7656
7657 2003-03-10  Bernhard Held <bernhard AT bernhardheld.de>
7658
7659         * support/regression/ports/mcs51/spec.mk: increase timeout for CF's sparc to 30s
7660         * support/regression/ports/ds390/spec.mk: increase timeout for CF's sparc to 25s
7661         * support/regression/ports/xa51/spec.mk: fix typo
7662
7663 2003-03-09  Bernhard Held <bernhard AT bernhardheld.de>
7664
7665         * src/SDCCglobl.h: PATH_MAX is already defined in mingw32 headers
7666
7667 2003-03-09  Borut Razem <borut.razem AT siol.net>
7668
7669         * src/SDCCmain.c: pipe preprocessor's output
7670         * support/Util/MySystem.c, support/Util/MySystem.h: added my_popen()
7671         * sdcc_vc_in.h: define pclose as _pclose for WIN32
7672         * src/SDCCglue.c, src/SDCCglue.h: added set pipeSet, added function closePipes,
7673         which closes all pipes in pipeSet set
7674         * src/SDCCset.c: free deleted item in function deleteSetItem()
7675         * src/src.dsp, src/z80/z80.dsp: files support/Util/BuildCmd.c and support/Util/MySystem.c
7676         moved from z80 to src subproject
7677
7678 2003-03-09  Borut Razem <borut.razem AT siol.net>
7679
7680         * src/SDCCglue.c: re-implemented tempfilename() and tempfile(): using mkstemp() if available
7681         * src/SDCCsymt.h: fixed MSVC and BORLANDC compilation (included SDCCglobl.h instead srccconf.h)
7682         * sdcc_vc_in.h: explicitly undefined HAVE_MKSTEMP which is not available on BORLANDC and MSVC
7683         * src/SDCCset.h: removed inclusion of sdccconf.h or sdcc_vc.h
7684         * src/SDCCglobl.h: unification of WIN32 native definitions
7685
7686 2003-03-09  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7687
7688         * src/mcs51/gen.c: applied in-/dec patch mentioned on sdcc-devel 2003-03-01
7689
7690 2003-03-08  Bernhard Held <bernhard AT bernhardheld.de>
7691
7692         * src/configure.in:   check for endianess (even while cross-compiling)
7693         * src/configure:      check for endianess (even while cross-compiling)
7694         * src/configure_in.h: check for endianess (even while cross-compiling)
7695         * src/avr/gen.c:        remove old endianess stuff
7696         * src/mcs51/gen.c:      remove old endianess stuff
7697         * src/ds390/gen.c:      remove old endianess stuff
7698         * src/pic/gen.c:        remove old endianess stuff
7699         * src/pic/genarith.c:   remove old endianess stuff
7700         * src/pic/glue.c:       fix endianess check
7701         * src/pic16/gen.c:      remove old endianess stuff
7702         * src/pic16/genarith.c: remove old endianess stuff
7703         * src/pic16/glue.c:     fix endianess check
7704         * src/xa51/gen.c:       remove old endianess stuff
7705         * src/z80/gen.c:        fix endianess check
7706         * src/SDCCglue.c:       fix endianess check
7707         * src/ds390/peeph.def: fix bug 700036
7708
7709 2003-03-08  Bernhard Held <bernhard AT bernhardheld.de>
7710
7711         * src/SDCCsymt.h: use appropriate data-types on host for SDCC's int and long
7712         * src/configure: find appropriate data-types on host for SDCC's int and long
7713         * src/configure.in: find appropriate data-types on host for SDCC's int and long
7714         * src/sdccconf_in.h: find appropriate data-types on host for SDCC's int and long
7715         * src/xa51/gen.c: use %d, not %ld for 4 byte variables
7716
7717 2003-03-07    <johan AT balder>
7718
7719         Just a big NOOP:
7720                 some minor cleanups before the big shot
7721                 OP_DEFS and OP_USES now use Kevin's protection
7722                 new option --nolabelopt
7723
7724         * src/SDCCBBlock.c:
7725         * src/SDCCast.c,:
7726         * src/SDCCcflow.c:
7727         * src/SDCCcse.c:
7728         * src/SDCCicode.c:
7729         * src/SDCCicode.h:
7730         * src/SDCClabel.c:
7731         * src/SDCCloop.c:
7732         * src/SDCCmain.c:
7733         * src/ds390/ralloc.c:
7734         * src/mcs51/ralloc.c:
7735         * src/pic/ralloc.c:
7736         * src/xa51/ralloc.c:
7737         * src/z80/ralloc.c:
7738
7739 2003-03-06  Bernhard Held <bernhard AT bernhardheld.de>
7740
7741         * src/pic/pcode.c (get_op): fix 64 bit warnings
7742         * src/pic/pcode.c (pCode2str): fix 64 bit warnings
7743         * src/SDCChasht.c (newHashTable): fix 64 bit warnings
7744         * src/SDCCsymt.c (checkTypeSanity): fix 64 bit warnings
7745         * support/regression/tests/malloc.c: fix 64 bit warnings
7746
7747 2003-03-04  Bernhard Held <bernhard AT bernhardheld.de>
7748
7749         * src/mcs51/gen.c (genMinus): fixed bug 696436
7750
7751 2003-03-02  Borut Razem <borut.razem AT siol.net>
7752
7753         * src/SDCCmain.c: added BORLANDC, corrected MSVC in printVersionInfo()
7754
7755 2003-02-26  Bernhard Held <bernhard AT bernhardheld.de>
7756
7757         * configure.in: test for mkstemp
7758         * sdccconf_in.h: add HAVE_MKSTEMP
7759
7760 2003-02-24  Bernhard Held <bernhard AT bernhardheld.de>
7761
7762         * device/include/ctype.h: removed warning while using --stack-auto
7763         * device/include/malloc.h: removed warning while using --stack-auto
7764         * device/include/string.h: removed warning while using --stack-auto
7765
7766 2003-02-23  Borut Razem <borut.razem AT siol.net>
7767
7768         * src/asm.h: corrected assertion in function printILine(): _pipe() was not executed on MSVC,
7769         because NDEBUG is defined (see man assert)
7770         * sdcc_vc_in.h: vsnprintf is defined as _vsnprintf on MSVC
7771
7772 2003-02-23  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7773
7774         * src/mcs51/gen.c (genUminusFloat): avoided dptr in-/decrement for xdata variables
7775         * src/mcs51/peeph.def: added rule suggested by Gernot Fink, white space/comment changes
7776
7777 2003-02-18  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7778
7779         * src/SDCCpeeph.c: added peephole conditions testing for same arguments
7780         * src/mcs51/peeph.def: added rules 238a-d which remove redundant moves
7781
7782 2003-02-18    <johan AT balder>
7783
7784         * as/mcs51/asmain.c (asmbl): module can start with a digit
7785         * as/z80/asmain.c (asmbl): module can start with a digit
7786
7787 2003-02-16  Bernhard Held <bernhard AT bernhardheld.de>
7788
7789         * sim/ucsim/mkecho: inserted #!/bin/sh for Cygwin, so that it's executable
7790         * src/asm.c: fix pipe() for Mingw32
7791
7792 2003-02-15  Bernhard Held <bernhard AT bernhardheld.de>
7793
7794         * src/SDCCglue.h: make tmpfileNameSet available for preOutName
7795         * src/SDCCmain.c (preProcess): make sure, that preOutName will be deleted;
7796         make -V work again; --c1mode reads now from stdin
7797         * doc/sdccman.lyx: added --c1mode
7798         * support/Util/SDCCerr.c: new messages for c1 mode
7799         * support/Util/SDCCerr.h: new messages for c1 mode
7800         * src/SDCC.lex (checkCurrFile): test if fullSrcFileName is NULL for c1mode
7801
7802 2003-02-15    <johan AT balder>
7803
7804         * src/asm.c: new options: --no-c-code-in-asm and --i-code-in-asm
7805
7806 2003-02-14  Bernhard Held <bernhard AT bernhardheld.de>
7807
7808         * doc/sdccman.lyx: Environment variables, -o and other minor things
7809
7810 2003-02-14    <johan AT balder>
7811
7812         * src/xa51/main.c: before anyone really tries to use it :)
7813
7814         * Install doc's in share/sdcc/doc
7815         * removed some obsolete files
7816         * Do a proper make distclean and uninstall
7817         M Makefile.common.in
7818         R sdccbuild.sh
7819         M as/Makefile
7820         M device/include/Makefile.in
7821         M device/lib/Makefile.in
7822         M doc/sdccman.lyx
7823         M link/Makefile
7824         M sim/ucsim/doc/Makefile.in
7825         M src/clean.mk
7826         R src/avr/peeph.rul
7827         R src/xa51/peeph.rul
7828         M support/cpp2/Makefile.in
7829         M support/makebin/Makefile
7830
7831
7832 2003-02-13  Bernhard Held <bernhard AT bernhardheld.de>
7833
7834         * support/regression/ports/host/spec.mk: use cc as host compiler for max osx
7835
7836 2003-02-10  Borut Razem <borut.razem AT siol.net>
7837
7838         * doc/bccinst.txt, packihx/packihx.c, sdcc_vc_in.h, src/SDCCset.h,
7839         support/cpp2/config.in: Borland C++ build doesn't depend on Cygwin configure
7840         * Bcc.ini, Makefile.bcc, as/mcs51/Makefile.bcc,
7841         device/examples/ds390/tinitalk/Makefile.bcc, packihx/Makefile.bcc,
7842         support/cpp2/Makefile.bcc, src/Makefile.bcc, src/avr/Makefile.bcc,
7843         src/ds390/Makefile.bcc, src/izt/Makefile.bcc, src/mcs51/Makefile.bcc,
7844         src/pic/Makefile.bcc, src/pic16/Makefile.bcc, src/xa15/Makefile.bcc,
7845         src/z80/Makefile.bcc: Borland Makefile cleanup
7846         * as/z80/Makefile.bcc: Added Borland Makefile
7847         * support/cpp2/borland.h: Removed
7848
7849 2003-02-10  Bernhard Held <bernhard AT bernhardheld.de>
7850
7851         * doc/sdccman.lyx: new pragma NOIV by "Johannes Stezenbach" <js AT convergence.de>
7852         * src/SDCC.lex: new pragma NOIV
7853         * src/SDCCglobl.h: new pragma NOIV
7854         * src/SDCCmem.c: new pragma NOIV
7855
7856 2003-02-09  Bernhard Held <bernhard AT bernhardheld.de>
7857
7858         * src/SDCCmain.c: signal handling is switched off by SDCC_LEAVE_SIGNALS
7859
7860 2003-02-09  Bernhard Held <bernhard AT bernhardheld.de>
7861
7862         * src/SDCCmain.c: signal handling is switched off by --debug
7863         * doc/Makefile: small fix for install; use clean.mk again
7864         * doc/clean.mk: clean *.pdf and *.html too
7865
7866 2003-02-08  Bernhard Held <bernhard AT bernhardheld.de>
7867
7868         * device/lib/_mulint.c: small fix for large/ds390 --int-long-reent resp. --stack-auto
7869         * device/lib/printfl.c: fix a ds390 bug by making it portable
7870         * src/SDCCsymt.c (initCSupport): fix compile warning on Cygwin
7871         * src/SDCCopt.c (cnvToFloatCast): fix compile warning on Cygwin
7872         * src/SDCCopt.c (cnvFromFloatCast): fix compile warning on Cygwin
7873         * debugger/mcs51/cmd.c: converted multi-line string literals
7874         * sim/ucsim/globals.cc: converted multi-line string literals
7875         * src/SDCCmain.c: introduced signal handler to remove temp files
7876         * doc/Makefile: small tweaks, implement clean
7877         * doc: removed generated files
7878
7879 2003-02-05  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7880
7881         * as/mcs51/aslink.h, as/mcs51/lkihx.c, as/mcs51/lkrloc.c:  Applied
7882         patch from Jan Rejlek <jr AT apex-lib.cz> to fix Bug 677692: "Extended
7883         Address Record is not correctly generated for DS390."
7884
7885 2003-02-02  Borut Razem <borut.razem AT siol.net>
7886
7887         * Makefile.bcc: removed non existing cpp project and non compilable izt project from makefile
7888         * as/mcs51/asm.h: fixed compilation with Borland C
7889         * support/cpp2/Makefile.bcc: added rule to generate auto-host.h
7890         * support/cpp2/auto-host_vc_in.h: fixed compilation with Borland C
7891         * src/mcs51/mcs51a.dsp: corrected misspelled project name from msc51a to mcs51a
7892         * src/avr/Makefile.bcc, src/ds390/Makefile.bcc, src/izt/Makefile.bcc,
7893         src/mcs51/Makefile.bcc, src/pic16/Makefile.bcc, src/xa51/Makefile.bcc,
7894         src/z80/Makefile.bcc: delete $(LIB) only if exist
7895         * src/Makefile.bcc, src/pic/Makefile.bcc:  fixed compilation with Borland C
7896
7897 2003-02-02  Bernhard Held <bernhard AT bernhardheld.de>
7898
7899         * device/include/malloc.h: introduced NULL
7900         * device/include/string.h: introduced NULL
7901         * device/include/stdlib.h: introduced NULL
7902         * device/lib/_memcpy.c: removed NULL
7903         * device/lib/_strcat.c: removed NULL
7904         * device/lib/_strchr.c: removed NULL
7905         * device/lib/_strcmp.c: removed NULL
7906         * device/lib/_strcpy.c: removed NULL
7907         * device/lib/_strcspn.c: removed NULL
7908         * device/lib/_strlen.c: removed NULL
7909         * device/lib/_strncat.c: removed NULL
7910         * device/lib/_strncmp.c: removed NULL
7911         * device/lib/_strncpy.c: removed NULL
7912         * device/lib/_strpbrk.c: removed NULL
7913         * device/lib/_strrchr.c: removed NULL
7914         * device/lib/_strspn.c: removed NULL
7915         * device/lib/_strstr.c: removed NULL
7916         * device/lib/_strtok.c: removed NULL
7917         * device/lib/malloc.c: removed NULL, include own header
7918
7919 2003-02-02    <johan AT balder>
7920
7921         * 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
7922         * support/regression/fwk/lib/testfwk.c: div and mod isn't broken anymore
7923         * regressions ds390/spec.mk and mcs51/spec.mk (timeout): my good old balder isn't fast enough for some tests
7924         * src/z80/gen.c (genZ80Code): added c-lines in asm comments
7925         * as/z80/asm.h (NINPUT): increased for long c-comments in regression tests
7926         * src/z80/gen.c (genRightShiftLiteral): fixed the (char)(-3)>>8 (I think)
7927
7928 2003-02-01  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7929
7930         * src/SDCCmain.c: Fixed bug 678574: "ds390: ASlink-Error-Stack overlaps
7931         area 'DATA'"
7932
7933 2003-02-01    <johan AT balder>
7934
7935         * src/SDCCval.c (valBitwise): fixed Karl's "2 | (1<<8)"
7936
7937 2003-01-31    <johan AT CP255758-A>
7938
7939         * src/ds390/main.c (_ds390_genAssemblerPreamble): applied Jan Rejlek's >64K startup patch
7940
7941 2003-01-30    <johan AT balder>
7942
7943         * src/SDCCBBlock.c: automatic bug detection
7944         * src/SDCCicode.c: automatic bug detection
7945
7946 2003-01-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7947
7948         * src/SDCCglobl.h:   now --xram-size 0 works
7949         * src/SDCCmain.c:    now --xram-size 0 works
7950
7951 2003-01-29    <johan AT balder>
7952
7953         * src/almosteverything: changed OP_DEFS and OP_USES from macros to functions to catch symbol abuse (a hot topic in the bug list :)
7954
7955 2003-01-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7956
7957         * as/mcs51/aslink.h: Added options --xram-size and --code-size
7958         * as/mcs51/lkdata.c: Added options --xram-size and --code-size
7959         * as/mcs51/lkmain.c: Added options --xram-size and --code-size
7960         * as/mcs51/lkmem.c:  Added options --xram-size and --code-size
7961         * src/SDCCglobl.h:   Added options --xram-size and --code-size
7962         * src/SDCCmain.c:    Added options --xram-size and --code-size
7963
7964 2003-01-28  Bernhard Held <bernhard AT bernhardheld.de>
7965
7966         * src/ds390/gen.c: fix deps by replacing <common.h> with "common.h"
7967         * src/SDCC.lex: rename P_OVERLAY to P_OVERLAY_ for cross-gcc 3.2 MINGW32
7968
7969 2003-01-27    <johan AT balder>
7970
7971         * src/SDCC.y: fixed bug #613764
7972
7973 2003-01-26    <johan AT balder>
7974
7975         * src/SDCClrange.c:  fixed Bernhard's "char * code ptr = &c"
7976         * src/SDCCsymt.h: fixed bug #673374
7977         * src/SDCCglue.c: fixed bug #661910
7978         * src/SDCCast.c: fixed bug #458099 and 673374
7979
7980 2003-01-26  Bernhard Held <bernhard AT bernhardheld.de>
7981
7982         * as/mcs51/strcmpi.c: added, provides Aurelien Jarno's as_strcmpi(); strcmpi() is not ANSI
7983         * as/mcs51/strcmpi.h: added
7984         * as/mcs51/asm.h: remove ugly "#define strcmpi strcmp"
7985         * as/mcs51/aslink.h: remove ugly "#define strcmpi strcmp"
7986         * as/mcs51/asmain.c: strcmpi -> as_strcmpi
7987         * as/mcs51/assym.c: strcmpi -> as_strcmpi
7988         * as/mcs51/lkmem.c: strcmpi -> as_strcmpi
7989         * as/mcs51/lknoice.c: strcmpi -> as_strcmpi
7990         * as/mcs51/lksym.c: strcmpi -> as_strcmpi
7991         * as/mcs51/Makefile.aslink: new module strcmpi
7992         * as/mcs51/Makefile.asx8051: new module strcmpi
7993         * as/mcs51/Makefil.bcc: new module strcmpi
7994         * as/mcs51/Makefile.in: new module strcmpi
7995         * sim/ucsim/s51.src/uc390.cc (get_mem_size): make RAM big enough for tinibios
7996
7997 2003-01-26    <johan AT balder>
7998
7999         * src/SDCCglue.c: reverted back to 1.124
8000         * src/SDCCast.c: reverted back to 1.156
8001         * src/mcs51/gen.c (aopGet): applied Frieder's efficiency patch
8002
8003 2003-01-25    <johan AT balder>
8004
8005         * src/SDCCglue.c: A better fix for bug #661910
8006         * src/SDCCast.c: A better fix for bug #661910
8007         * src/SDCCglue.c (emitRegularMap): That was a little too efficient
8008
8009 2003-01-24  Bernhard Held <bernhard AT bernhardheld.de>
8010
8011         * src/Makefile.in: remove spawn.o
8012         * src/SDCCmain.c: remove spawn.h
8013         * src/SDCCmain.c (printVersionInfo): report MINGW32 instead of UNIX
8014         * src/spawn.c: removed
8015         * src/spawn.h: removed
8016         * support/regression/ports/ds390/spec.mk: link with -r
8017
8018 2003-01-24    <johan AT CP255758-A>
8019
8020         * src/ds390/gen.c (aopOp): fixed bug #667458
8021         * src/SDCCglue.c (emitRegularMap): fixed bug #458099 again
8022         * src/SDCCast.c (createIvalCharPtr): fixed bug #661910
8023         (createIvalCharPtr): an ival doesn't always have a storage class anymore
8024
8025 2003-01-24  Bernhard Held <bernhard AT bernhardheld.de>
8026
8027         * src/mcs51/peeph.def: better assembler identation by Frieder
8028         * src/mcs51/gen.c: better assembler identation by Frieder
8029
8030 2003-01-22  Bernhard Held <bernhard AT bernhardheld.de>
8031
8032         * as/z80/string.h: removed for gcc 3.2
8033         * support/makebin/makebin.c: #include <string.h> for gcc 3.2
8034         * src/pic/pcode.c (get_op_from_instruction): fix concatenation of string literals with __FUNCTION__ for gcc 3.2
8035
8036 2003-01-19  Bernhard Held <bernhard AT bernhardheld.de>
8037
8038         * src/SDCCmain.c (linkEdit): rename mem and map files even in case of failure
8039         * src/SDCCpeeph.c (replaceRule): fix bug #663503
8040         * support/regression/Makefile: separate temp files for ports
8041         * support/regression/generate-cases.py: separate temp files for ports
8042         * src/mcs51/peeph.def: Frieder: removed 237 (obsolete by 236g and 105); added 237 a/b
8043         * src/ds390/peeph.def: Frieder: removed 237 (obsolete by 236g and 105); added 237 a/b
8044
8045 2003-01-19  Bernhard Held <bernhard AT bernhardheld.de>
8046
8047         * moved tinitalk to device/examples/ds390
8048
8049 2003-01-14  Bernhard Held <bernhard AT bernhardheld.de>
8050
8051         * as/mcs51/lkmem.c: rflag is for DS390
8052         * src/SDCCglobl.h: removed out_name and options stackOnData, genericPtr
8053         * src/SDCCmain.c (optionsTable, setDefaultOptions): removed --stack-after-data and --generic
8054                          (linkEdit): move mem- and map-files the same way as ihx-files
8055         * src/z80/main.c (_setDefaultOptions): removed --generic
8056         * src/SDCCmain.c (_processC1Arg, parseCmdLine, main): --c1mode works again
8057         * src/SDCCglue.c (createInterruptVect, glue): --c1mode works again
8058         * src/pic/glue.c (picglue): --c1mode works again
8059         * src/pic16/glue.c (pic16glue): --c1mode works again
8060         * src/asm.c (printCLine): fix #660034
8061
8062 2003-01-13  Bernhard Held <bernhard AT bernhardheld.de>
8063
8064         * src/ds390/peeph.def: fix #123; add 14 rules by Fiorenzo D. Ramaglia <fd.ramaglia AT tin.it>, 1 by Frieder
8065         * src/mcs51/peeph.def: fix #123; add 14 rules by Fiorenzo, 1 by Frieder
8066         * src/mcs51/gen.c (genFunction): emit r0 instead of ar0 by Fiorenzo
8067         * as/mcs51/lkmem (summary): better fix for sp problem
8068         * src/SDCCglue.c (glue): __start_stack - 1, saves 1 byte!
8069         * src/ds390/main.c (_ds390_finaliseOptions, _tininative_finaliseOptions): stack_loc = 0x400008
8070         * support/regression/ports/*/spec.mk: moving testfwk-object to port dir allow parallel execution of regression tests
8071                                               remove --stack-after-data
8072
8073 2003-01-12  Bernhard Held <bernhard AT bernhardheld.de>
8074
8075         * src/SDCCmain.c (main): port->finaliseOptions() moved for z80 linking
8076         * src/SDCCutil.c (join): ugly bug: missing '\0'
8077         * as/mcs51/lkmem.c (summary): sp on address 7 is safe
8078
8079 2003-01-11  Bernhard Held <bernhard AT bernhardheld.de>
8080
8081         * src/SDCCmain.c (assemble, linkEdit): preparations for -o
8082         * src/port.h: typo
8083         * src/pic/main.c (_asmCmd): gpasm supports -o
8084         * src/z80/main.c: more general macros
8085         * device/lib/Makefile.in: remove intermediate files
8086
8087 2003-01-11  Bernhard Held <bernhard AT bernhardheld.de>
8088
8089         * .version: Bumped version number to 2.3.3
8090         * src/SDCCBBlock.c: new option -o
8091         * src/SDCCglobl.h: new option -o
8092         * src/SDCCglue.c: new option -o
8093         * src/SDCCmain.c: new option -o
8094         * src/asm.c: new option -o
8095         * src/ds390/main.c: new option -o
8096         * src/pic/glue.c: new option -o
8097         * src/pic/pcode.c: new option -o
8098         * src/pic/ralloc.c: new option -o
8099         * src/pic16/glue.c: new option -o
8100         * src/pic16/pcode.c: new option -o
8101         * src/pic16/ralloc.c: new option -o
8102         * src/z80/main.c: new option -o
8103         * device/lib/Makefile.in: use -o
8104         * support/regression/ports/ds390/spec.mk: use -o
8105         * support/regression/ports/gbz80/spec.mk: use -o
8106         * support/regression/ports/mcs51/spec.mk: use -o
8107         * support/regression/ports/mcs51-stack-auto/spec.mk: use -o
8108         * support/regression/ports/z80/spec.mk: use -o
8109         * support/regression/ports/ucz80/spec.mk: use -o
8110         * support/regression/ports/xa51/spec.mk: use -o
8111         * support/regression/fwk/lib/timeout.c: fix usage string
8112
8113 2003-01-09  Bernhard Held <bernhard AT bernhardheld.de>
8114         * src/mcs51/gen.c (genPlus): replaced "mov b,acc" by "mov b,a" Fiorenzo D. Ramaglia <fd.ramaglia AT tin.it>
8115
8116 2003-01-07    <johan AT balder>
8117
8118         * src/SDCCast.c (decorateType): fixed bug #600035
8119
8120 2003-01-07  Bernhard Held <bernhard AT bernhardheld.de>
8121         * as/mcs51/lkmem.c: added several l-modifiers to printf to remove warnings
8122         * as/mcs51/lkaomf51.c: #include <ctype.h> to remove warnings
8123         * src/pic/main.c (_hasNativeMulFor): outcommented unused variables to remove warnings
8124         * src/pic/pcode.c: outcommented unused variable to remove warnings
8125         * src/pic/ralloc.c: outcommented unused variable to remove warnings
8126
8127 2003-01-06    <karl AT turbobit.com>
8128         * sim/ucsim/cmd.src/command.cc: fixed so "break xram r 0x7654" works again in
8129    regression tests.
8130
8131 2003-01-06    <johan AT balder>
8132
8133         * src/SDCCicode.c: fixed array add
8134
8135 2002-01-05  Bernhard Held <bernhard AT bernhardheld.de>
8136         * src/SDCCmacro.c: MAX_STRING_LENGTH increased to 2048; was too small for regression tests
8137         * support/regression/ports/host/support.c: #include <stdarg.h> for gcc 3.2
8138
8139 2003-01-04    <johan AT balder>
8140
8141         * src/SDCCval.c (getNelements): fixed the initialized array of structures
8142
8143 2002-12-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8144         * as/mcs51/Makefile.bcc: fixed typo lkomf51.o -> lkaomf51.o
8145
8146 2002-12-28  Bernhard Held <bernhard AT bernhardheld.de>
8147         * src/mcs51/peeph.def: added rules 234 and 235 from Frieder Ferlemann <frieder.ferlemann AT web.de>
8148         * support/regression/tests/bug-524697.c: fit mem usage into 8032
8149
8150 2002-12-28  Bernhard Held <bernhard AT bernhardheld.de>
8151         * src/mcs51/gen.c (aopGetUsesAcc): inserted missing "return FALSE"
8152
8153 2002-12-27  Bernhard Held <bernhard AT bernhardheld.de>
8154         * as/mcs51/Makefile.in: fixed typo lkomf51.o -> lkaomf51.o
8155
8156 2002-12-26  Bernhard Held <bernhard AT bernhardheld.de>
8157         * src/mcs51/main.c: removed {bindir}{sep} from aslink
8158
8159 2002-12-10  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8160
8161     * in \sdcc\as\mcs51\ changed these files in order to create an
8162     aomf51 file: aslink.h, lkdta.c, lklex.c, lklibr.c, lklist.c,
8163     lkmain.c.  Also added: lkmem.c and lkaomf51.c.  Changed the
8164     following files to include the previous two files: aslink.dsp,
8165     Makefile.aslink, Makefile.bcc, and Makefile.in.
8166
8167     * Changed \sdcc\src\SDCCmain.c so it creates files with extension
8168     .adb instead of .cdb
8169
8170 2002-11-09  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8171
8172         * \sdcc\as\mcs51\lklist.c: Now reports memory usage using the
8173         value from option --iram-size.
8174
8175 2002-09-20  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8176
8177         * \sdcc\as\mcs51\lklist.c: added boundary check before using
8178         dram[] array.
8179
8180 2002-09-18    <wiml AT hhhh.org>
8181
8182         * SDCClrange.h: exposed setFromRange() and setToRange()
8183         * mcs51/ralloc.c: fixed over-eager packRegsForSupport() and
8184           packRegsForAccUse() (bug 542397)
8185         * mcs51/gen.c: MOVA() is now a function to avoid calling aopGet()
8186           multiple times and emitting the fetch operations more than once
8187           added aopGetUsesAcc() function to allow binary operators to
8188           fetch their operands in the correct order; made genMinus() emit
8189           compact code for X = LITERAL - Y
8190
8191 2002-09-00  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8192         * \sdcc\as\mcs51\lklist.c: Fixed incorrect number of parameters to
8193         sprintf() in line 1267.
8194
8195 2002-09-08  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8196         * \sdcc\src\SDCCglue.c: Generate areas REG_BANK_[0-3] only for 8051
8197         like ports.
8198
8199 2002-09-04  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8200         Changes to aslink (All the changes are marked with 'JCF'):
8201
8202         * \sdcc\as\mcs51\aslink.h: External definition of sflag and
8203         summary().
8204
8205         * \sdcc\as\mcs51\lkarea.c: Computes the size of area BSEG_BYTES from
8206         area BSEG.  Also moves, if possible, the DATA area down into the internal
8207         ram so more space is available.
8208
8209         * \sdcc\as\mcs51\lkdata.c: Definition of memory summary output flag
8210         sflag.
8211
8212         * \sdcc\as\mcs51\lklist.c: For the BSEG area report the size in bits,
8213         not bytes.  Function summary() which creates a memory usage summary
8214         file with extension .mem.  Reports of overlaping stack and small stack
8215         size.  If the space for the stack is less than 16 bytes aslink trows a
8216         warning.
8217
8218         * \sdcc\as\mcs51\lkmain.c: Creation of some of the default areas for
8219         the 8051.  Option 'y' for memory summary output file.
8220
8221         Changes to sdcc (All the changes are marked with 'JCF'):
8222
8223         * \sdcc\src\SDCCglobl.h: External definition of RegBankUsed[4].
8224
8225         * \sdcc\src\SDCCglue.c:  If a register bank is used, creates an
8226         overlaying area for it (uses RegBankUsed[4]).
8227
8228         * \sdcc\src\SDCCmain.c: Definition RegBankUsed[4]; marks register
8229         bank zero as used by default.  By default aslink locates the stack
8230         (equivalent to --stack-after-data).  Pass option 'y' to aslink for
8231         the creation of the .mem file.  Delegates the allocation of data area
8232         to aslink (it is not longer 0x30 by default).  If --stack-loc passes
8233         the begining of the stack area to aslink.
8234
8235         * \sdcc\src\SDCCmem.c:  If a register bank is used, marks it so
8236         glue() in SDCCglue.c creates an area for it.
8237
8238 2002-09-03  Borut Razem <borut.razem AT siol.net>
8239         * sdcc/src/SDCCglue.c, sdcc/src/SDCCglue.h, sdcc/src/SDCCmain.c,
8240         sdcc/src/pic/glue.c:
8241         introduced atexit() handler for teporay files removal in case of
8242         errors, assertions, ...
8243
8244 2002-08-29  Borut Razem <borut.razem AT siol.net>
8245         * sdcc/support/cpp2/auto-host_vc_in.h:
8246         re-definition of O_BINARY and other O_XXX as _O_BINARY and _O_XXX, so the problem
8247         with the returned value from read() in sdcc/support/cpp2/cppfiles.c is solved for MSC.
8248         Maybe there is a similar problem with BORLANDC? It should be checked!
8249
8250         * sdcc/src/ds390/ralloc.c, sdcc/src/mcs51/ralloc.c, sdcc/src/z80/ralloc.c:
8251         corrected improper use of assert: the assignment to clr variable was done inside the assert.
8252         In case that NDEBUG was defined, the assert macro was substituted with no-op, so the assignment
8253         was not executed, and the compiler (cl) launched a warning:
8254         ralloc.c(1442) : warning C4700: local variable 'clr' used without having been initialized
8255
8256 2002-08-28  Bernhard Held <bernhard AT bernhardheld.de>
8257         * src/SDCCglue.c (printIvalArray): iterative calculation of array length
8258
8259 2002-08-28  Jesus Calvino-Fraga and Borut Razem <borut.razem AT siol.net>
8260         * sdcc/sdcc.dsw: added sdcpp, sdcppa, yacc, conf projects
8261
8262         * sdcc/src/src.dsp, sdcc/src/avr/avr.dsp, sdcc/src/ds390/ds390.dsp,
8263           sdcc/src/mcs51/mcs51.dsp, sdcc/src/pic/pic.dsp, sdcc/src/z80/z80.dsp,
8264           sdcc/src/xa51/xa51.dsp, sdcc/src/avr/avra.dsp,
8265           sdcc/src/ds390/ds390a.dsp, sdcc/src/mcs51/mcs51a.dsp,
8266           sdcc/src/pic/pica.dsp, sdcc/src/z80/z80a.dsp,
8267           sdcc/src/xa51/xa51a.dsp, sdcc/as/as_z80.dsp,
8268           sdcc/as/aslink.dsp, sdcc/as/asx8051.dsp, sdcc/packihx/packihx.dsp:
8269         - added Release configuration in VS projects
8270         - review of compiler an linker options
8271         - VC .exe files are generated in bin_vc directory, not to interfere
8272           with binaries generated from other projects (cygwin, mingw, bcc ...)
8273
8274         * sdcc/src/yacc.dsp: added
8275
8276         * sdcc/config.dsp, sdcc/configure_vc.awk, sdcc/sdcc_vc_in.h:
8277         added - genarate sdcc_vc.h using sdcc_vc_in.h as template
8278         and insert the version number definitions from .version
8279
8280         * sdcc/support/cpp2/sdcpp.dsp: added - VC project for sdcpp
8281
8282         * sdcc/support/cpp2/sdcppa.dsp, sdcc/support/cpp2/auto-host_vc_in.h:
8283         added - genarate auto-host.h using auto-host_vc_in.h as template
8284
8285         * sdcc/sdcc_vc.h,
8286         removed from CVS, generated automatically
8287
8288 2002-08-25  Bernhard Held <bernhard AT bernhardheld.de>
8289         * support/scripts/inc2h.pl: use gputils or gpasm (from Nathan Hurst)
8290
8291 2002-08-11  Borut Razem <borut.razem AT siol.net>
8292         * support/Util/NewAlloc.c: removed unneeded #include "sdccconf.h" (suggested by Jesus Calvino-Fraga)
8293
8294 2002-08-10  Borut Razem <borut.razem AT siol.net>
8295         * src/SDCCmain.c (main):
8296         file preOutName was unlinked before closed. This seems to be OK on UNIX and cygwin
8297         platforms, but it doesn't work with Visual Studio: the opened file can not be removed.
8298         The consequence was that some temporary files were not removed.
8299
8300         * src/SDCCglue.c:
8301         unification of code in functions tempfilename() and tempfile():
8302         function tempnam() is defined in Visual Studio 6.0 and .NET
8303
8304         * sdcc/sdcc.dsw: removed project sdcpp, added project xa51a
8305
8306         * sdcc/src/src.dsp, sdcc/src/avr/avr.dsp, sdcc/src/ds390/ds390.dsp,
8307           sdcc/src/mcs51/mcs51.dsp, sdcc/src/pic/pic.dsp, sdcc/src/z80/z80.dsp:
8308         - removed compiler command line option /WX: Treats all warnings as errors
8309         - update a list of source files, included into the project
8310
8311         * sdcc/src/avr/avra.dsp, sdcc/src/ds390/ds390a.dsp, sdcc/src/mcs51/mcs51a.dsp,
8312           sdcc/src/pic/pica.dsp, sdcc/src/z80/z80a.dsp:
8313         changed project type to Generic Project so that can be correcly converted to VS.NET project
8314
8315         * sdcc/as/mcs51/asm.h: definition of PATH_MAX for MSC
8316
8317         * sdcc/src/SDCCast.c: solved MSC error in function decorateType()
8318
8319         * sdcc/src/SDCC.y: added missing ending ';' to rules to get rid of bison warnings
8320
8321         * dcc/src/ds390/ralloc.c, sdcc/src/mcs51/ralloc.c:
8322         added return 0 statements after assert() to make compiler happy
8323
8324         * sdcc/src/xa51/peeph.rul, sdcc/src/xa51/peeph.def, sdcc/src/z80/ralloc.c:
8325         added newline in the def file to keep MSC compiler satisfied
8326
8327         * sdcc/src/z80/gen.c:
8328         - function strcasecmp() is not defined in MSC (and probably also in BORLANDC),
8329           so it is replaced with STRCASECMP, which is defined as stricmp in case of MSC and BORLANDC
8330         - solved MSC error in function aopDump()
8331
8332         * sdcc_vc.h: define PREFIX as "\\sdcc"
8333
8334 2002-07-18  Bernhard Held <bernhard AT bernhardheld.de>
8335         * src/SDCCast.c (decorateType): fixed access to array of structures http://sourceforge.net/mailarchive/forum.php?thread_id=902690&forum_id=4107
8336
8337 2002-06-22  Scott Dattalo <scott AT dattalo.com>
8338         * src/pic/*: Numerous bug fixes. Flow analysis has been enhanced.
8339         - Rewrote the register banking algorithm.
8340         - Added pCode live-range analysis to registers (for now, only non-used and
8341         singly-used registers optimized away)
8342
8343         * src/pic/pcoderegs.[ch]: Added new files for pCode live-range analysis
8344
8345         * 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.
8346
8347 2002-05-10  Scott Dattalo <scott AT dattalo.com>
8348         * src/pic/*: Added support for multiplication. Fixed many,many bugs.
8349
8350 2002-04-22  Michael Hope  <michaelh AT vroom>
8351
8352         * device/lib/z80/printf.c: Changed emitter to volatile to work around a pcall bug.
8353
8354         * configure.in (DD_COPT): Added include support required for gbdk.
8355
8356         * .version: Bumped version number just to increase it.
8357
8358         * src/SDCCmain.c: Added -nostdinc to the default options.
8359
8360 2002-04-15  Michael Hope  <michaelh AT vroom>
8361
8362         * device/lib/z80/printf.c (sprintf): Added.
8363
8364         * src/z80/ralloc.c (packRegisters): Disabled pack HL use for GB as it's broken.
8365
8366         * src/z80/peeph.def: Added transpose redundent load rule.
8367
8368         * src/z80/main.c: Added force callee saves for jaune.
8369
8370         * src/port.h: Removed the i186 and tlcs-900h ports as they weren't being being developed.
8371
8372         * src/SDCCmain.c: Pulled the options definition out so that you can add port specific options without changing the main file.
8373
8374 2002-03-28  Johan Knol  <johan AT balder>
8375
8376         * src/SDCCval.c: fixed bug #532436
8377
8378 2002-03-14  Scott Dattalo <scott AT dattalo.com>
8379         * /src/port.h:
8380         Added "char *Processor" field to the port structure.
8381
8382         * /src/SDCCmain.c:
8383         Added -p option. Allows port dependent processor to be specified.
8384
8385         * all ports:
8386         Initialized the new field char *Processor field to NULL in all ports
8387
8388         * /src/pic/*:
8389         Compiler generated registers for interrupt context saving
8390         were not getting allocated.
8391
8392 2002-03-16  Sandeep Dutta  <sandeep AT ddi.com>
8393
8394         * /src/SDCCast.c:
8395         Fixed left shift. Will promote the left side of a left shift
8396         if a) left shifting more than size of operand or b) when assigned
8397         to something size > size of left side
8398
8399 2002-03-14  Scott Dattalo <scott AT dattalo.com>
8400         * src/pic/*
8401         tons of changes. Register allocation has been
8402         rewritten. Added customization for the various PICs. Flow
8403         analysis is restructured. ...
8404
8405         * src/pic/device.h:
8406         Added
8407
8408         * src/pic/device.c:
8409         Added. device.c is a PIC port hack to accomodate variations
8410         in PIC devices.
8411
8412 2002-03-13  Michael Hope  <michaelh AT vroom>
8413
8414         * src/z80/gen.c (genGenPointerGet): Fixed a bug where a pointer in HL is dereferenced into HL but HL is not spilled.  Yeah.
8415
8416 2002-03-04  johanknol  <johanknol AT manik>
8417
8418         * /src/SDCCval.c: fixed
8419
8420         const unsigned char arr[][2] = { { 0, 1 } };
8421         t18.c:1: error: Initializer element is not constant
8422
8423 2002-03-04  bela  <bela AT manik>
8424
8425         * /device/include/mcs51reg.h:
8426         ds89c420 register definition update
8427
8428 2002-03-03    <johan AT FRIJA>
8429
8430         * support/Util/SDCCerr.c: did something, but don't no why anymore
8431
8432         * support/regression/tests/bug-524691.c: made it a little less shy
8433
8434         * src/SDCCast.c (decorateType): fixed bug #524697
8435
8436         * src/SDCCast.c: made some lineno improvements
8437
8438         * src/SDCCval.c (getNelements): changed warning to error
8439
8440         * src/SDCCglue.c (printIvalArray): changed warning to error
8441
8442         * src/SDCCicode.c: fixed a warning for mingw
8443
8444         * src/SDCCast.c (decorateType): fixed the << promotion for ops
8445
8446         * src/SDCCicode.c (geniCodeDivision): divide is shift only for unsigned (bug #524685)
8447
8448 2002-03-02  Sandeep Dutta  <sandeep AT ddi.com>
8449
8450         * src/ds390/peeph.def:
8451         Added some more peephole rules
8452
8453         * src/ds390/gen.c: Various fixes & enhancements
8454
8455         * src/SDCClrange.c, src/SDCClrange.h:
8456         functions "alldefsoutofrange" and "notusedinblock" moved to SDCClrange.c
8457
8458         * src/ds390/ralloc.c:
8459         various fixes & enhancements (ds390) specific
8460
8461         * src/avr/ralloc.c, src/mcs51/ralloc.c, src/pic/ralloc.c, src/xa51/ralloc.c, src/z80/ralloc.c:
8462         Functions "allDefsOutOfRange" & "notUsedinBlock" moved to SDCClrange.c
8463         from rallocs.
8464
8465         * sdcc/src/SDCCcse.c: Better fix for bug # 514308
8466
8467 2002-03-02    <johan AT FRIJA>
8468
8469         * src/SDCCast.c (decorateType): fixed bug #524708
8470
8471         * src/SDCCval.c (floatFromVal): fixed the literal void (whatever that may be)
8472
8473         * src/SDCCicode.c (geniCodePtrPtrSubtract): fixed bug #524691
8474
8475 2002-03-01  Michael Hope  <michaelh AT vroom>
8476
8477         * src/SDCCsymt.c (initCSupport): Removed managling of support function names.
8478
8479         * src/z80/ralloc.c (packRegsForIYUse): Fixed fp bug where four byte operands were packed into IY.
8480
8481 2002-03-01    <johan AT FRIJA>
8482
8483         * src/SDCCglue.c (printIvalPtr): fixed bug #524211
8484
8485         * src/SDCCast.c (decorateType): fixed bug #524209
8486
8487         * src/SDCCval.c (valNot): fixed bug #524195
8488
8489 2002-02-26    <johan AT balder>
8490
8491         * src/xa51/gen.c: fixed a warning
8492
8493         * src/SDCCglue.c (printIvalFuncPtr): fixed bug #522534
8494
8495         * src/SDCCast.c (decorateType): fixed bug #522534
8496
8497 2002-02-23    <johan AT balder>
8498
8499         * src/SDCCdflow.c (computeDataFlow): fixed bug #460088
8500
8501 2002-02-22    <johan AT balder>
8502
8503         * src/SDCCast.c: fixed bug #514865
8504
8505         * src/SDCCy.c ("SDCC.y"): fixed bug #516625
8506
8507 2002-02-21  Sandeep Dutta  <sandeep AT ddi.com>
8508
8509         * sdcc/src/SDCCloop.c:
8510         Previous fix was not good. basic blocks that have "break" or "return" are
8511         not really partof a loop , but live ranges used in these blocks should
8512         be live thru the entire loop, so set partOfLoop but don't add them to
8513         loop region
8514
8515 2002-02-21    <johan AT FRIJA>
8516
8517         * src/SDCCcse.c: fixed bug #514308
8518
8519 2002-02-20  Sandeep Dutta  <sandeep AT ddi.com>
8520
8521         * src/SDCCloop.c:
8522         Fixed BUG #519583. If a conditional block ended in a return/break
8523         statement inside a loop, it was not being considered part of the loop.
8524
8525         * src/SDCCcflow.c: Removed fix (Fixed in SDCCloop.c)
8526
8527 2002-02-10  Karl Bongers <karl AT turbobit.com>
8528
8529         * debugger/*:
8530         Fixed up SDCDB debugger somewhat.  Updated debugger/README
8531         with lots of comments and notes.
8532
8533         * device/examples/test2.c:
8534         Fix bug, "red" variable not being initialized(compiler complained).
8535
8536         * device/examples/Makefile, examples/test3.c:
8537         Add Makefile in device/examples folder, compiles test3.c
8538         for use as a multiple module SDCDB test case.
8539
8540         * sim/ucsim/cmd.src/cmdset.cc:
8541         Took out debug printfs in ucsim "next" command.
8542
8543         * sim/ucsim/xa.src:
8544         Karl and Johan start ucsim XA support.  Most dissassembly working,
8545         about 75% emulation done(plenty of work remaining).
8546
8547         * sim/ucsim/z80.src:
8548         Add Z80 support to ucsim, add test-ucz80 regression test,
8549         notice ucsim/z80 emulation fails on examples/test3.c/itoa code.
8550         Notice z80 compiler fails on examples/test3.c/crc code.
8551
8552 2002-01-30  Sandeep Dutta  <sandeep AT ddi.com>
8553
8554         * src/mcs51/gen.c, src/mcs51/main.c, src/mcs51/ralloc.c:
8555         Added support for --parms-in-bank1
8556
8557         * src/ds390/peeph.def:
8558         added a few more peephole optimzations
8559
8560         * src/ds390/main.c:
8561         1) added __builtin_inp & __builtin_outp used to read in data of given length
8562            from a memory mapped port
8563         2) added __builtin_memcmp
8564         3) added __builtin_swapw swap bytes of a short
8565
8566         * src/ds390/gen.c, src/ds390/gen.h, src/ds390/ralloc.c:
8567         1) handle multiple send & receives from register bank1
8568         2) ralloc can now allocate DPTR1 to some liveRanges
8569
8570         * src/SDCCsymt.c, src/SDCCsymt.h:
8571         changes to handle multiple sends & receives
8572
8573         * src/SDCCptropt.h:
8574         added some pointer arithmetic optimization
8575
8576         * src/SDCCptropt.c:
8577         added some pointer arithmetic optimizations but not stable yet so not
8578         called from anywhere (will get this working shortly)
8579
8580         * src/SDCCopt.c: fixed for multiple sends & receives
8581
8582         * src/SDCCmain.c:
8583         1) added options --parms-in-bank1 (ds390/mcs51) & --protect-sp-update
8584         2) preprocessing done AFTER port->finalizeoptions . This allows ports to
8585            set preprocessor defines (depending on options)
8586
8587         * src/SDCCicode.c, src/SDCCicode.h:
8588         changes made to handle multiple sends & receives
8589
8590         * src/SDCCglobl.h:
8591         Added options --protect-sp-update (ds390) and --parms-in-bank1 (ds390/mcs51)
8592
8593         * src/SDCCcse.c, src/SDCCcse.h:
8594         added function findbackward def (to be used in upcoming optimization)
8595
8596         * src/SDCCcflow.c, src/SDCCcflow.h:
8597         added function returnAtEnd - to determine if a basic block terminates with
8598         a RETURN iCode
8599
8600         * src/SDCCast.c, src/SDCCast.h:
8601         added option parms-in-bank1
8602
8603         * device/lib/_divsint.c, device/lib/_divslong.c, device/lib/_divuint.c
8604         * device/lib/_divulong.c, device/lib/_modsint.c, device/lib/_modslong.c
8605         * device/lib/_modulong.c, device/lib/_mulint.c, device/lib/_mullong.c:
8606         adjusted for --parms-in-bank1 option
8607
8608         * device/include/string.h:
8609         donot redefine "reentrant" keyword
8610
8611         * device/include/ds80c390.h: Added some more SFRs
8612
8613 2002-01-28  Bernhard Held  <bernhard AT bernhardheld.de>
8614
8615         * sim/ucsim: Merged branch ucsim-034-pre3 to main trunk; new version 0.4
8616
8617 2002-01-26  Bernhard Held  <bernhard AT bernhardheld.de>
8618
8619         * src/SDCCast.c (funcOfType): fix usage of double --float-reent
8620
8621 2002-01-22  Bernhard Held  <bernhard AT bernhardheld.de>
8622
8623         * support/regression/fwk/lib/testfwk.c (main): Removed workaround for bug #505387
8624
8625 2002-01-18  Paul Stoffregen  <paul AT pjrc.com>
8626
8627         * Added --xram-movc option
8628
8629 2002-01-13  Bernhard Held  <bernhard AT bernhardheld.de>
8630
8631         * support/regression/Makefile: don't include test-mcs51-stack-auto in target all
8632
8633 2002-01-11  Johan Knol
8634
8635         * Added math lib of Jesus Calvino-Fraga
8636
8637 2002-01-08  Bernhard Held  <bernhard AT bernhardheld.de>
8638
8639         * src/SDCCmain.c (processFile): fix processing of ../../src.c
8640         * support/regression/Makefile: new target test-mcs51-stack-auto
8641         * support/regression/ports/mcs51-stack-auto/spec.mk: added
8642
8643 2002-01-04  Bernhard Held  <bernhard AT bernhardheld.de>
8644
8645         * src/SDCCglue.h: printIvalCharPtr(), not printIvalChar()
8646
8647 2002-01-04  Bernhard Held  <bernhard AT bernhardheld.de>
8648
8649         * support/regression/ports/mcs51/support.c: correct setup of timer / UART
8650
8651 2002-01-03  Bernhard Held  <bernhard AT bernhardheld.de>
8652
8653         * src/SDCCsymt.c (processFuncArgs): fix #498307 by Johan
8654
8655         * src/SDCCglue.h: add definition for printIvalChar()
8656
8657 2002-01-02  Bernhard Held  <bernhard AT bernhardheld.de>
8658
8659         * src/SDCCast.c: fix #498138 by Johan
8660
8661         * src/SDCCglue.c: fix #498138 by Johan
8662
8663 2002-01-02  Bernhard Held  <bernhard AT bernhardheld.de>
8664
8665         * support/regression/Makefile: fix clean
8666
8667         * support/regression/ports/ds390/support.c: fix transmission of last character
8668
8669 2001-12-29  Sandeep Dutta  <sandeep AT ddi.com>
8670
8671         * /sdcc/src/ds390/gen.c:
8672         a) improved computing address of stack variable
8673         b) took out some #if 0 code
8674         c) improved parmBytes adjustment
8675         d) improved genPlusIncr & genMinusIncr
8676         e) genCmp could generate bad code (when left assigned to DPTR)
8677         f) Fixed bug in hasInc
8678
8679         * /sdcc/src/ds390/ralloc.c:
8680         a) packRegsForSupport could mess up live information (Fixed)
8681         b) packRegsDPTRuse could be incorrect for left & right shift
8682
8683         * /sdcc/src/mcs51/ralloc.c:
8684         packRegsForSupport could mess up the live information (Fixed)
8685
8686         * /sdcc/src/mcs51/gen.c: Fixed a bug in hasInc
8687
8688         * /sdcc/src/SDCCast.c:
8689         can reverse a loop even if function call is present as long
8690         as the loop control variable is local & is not passed as parameter
8691
8692 2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>
8693
8694         * /sdcc/ChangeLog: *** empty log message ***
8695
8696         * /sdcc/src/ds390/gen.c, /sdcc/src/ds390/main.c:
8697         More builtin function additions for TININative
8698
8699         * /sdcc/src/ds390/ralloc.c:
8700         Had broken the regression testsuite
8701
8702         * /sdcc/src/SDCCast.c: Fixed a bug in dumptree
8703
8704         * /sdcc/src/SDCCsymt.c, /sdcc/src/SDCCsymt.h:
8705         Added funcattr hasStackParms will be set for reentrant functions when there
8706         are paramteres on the stack, this helps in minimizing frame pointer generation
8707         typeFromStr can handle function pointers now
8708
8709         * /sdcc/doc/builtins.txt, /sdcc/doc/TININative.txt:
8710         *** empty log message ***
8711
8712 2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>
8713
8714         * /src/ds390/gen.c, /src/ds390/main.c:
8715         More builtin function additions for TININative
8716
8717         * /src/ds390/ralloc.c:
8718         Had broken the regression testsuite
8719
8720         * /src/SDCCast.c: Fixed a bug in dumptree
8721
8722         * /src/SDCCsymt.c, /src/SDCCsymt.h:
8723         Added funcattr hasStackParms will be set for reentrant functions when there
8724         are paramteres on the stack, this helps in minimizing frame pointer generation
8725         typeFromStr can handle function pointers now
8726
8727         * /doc/builtins.txt, /doc/TININative.txt:
8728         *** empty log message ***
8729
8730
8731 2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>
8732
8733         * /src/ds390/gen.c, /src/ds390/main.c, /src/ds390/peeph.def, /src/ds390/ralloc.c:
8734         ALPHA version for -mTININative
8735
8736         * /src/izt/i186.c, /src/izt/tlcs900h.c, /src/mcs51/main.c, /src/pic/main.c, /src/z80/main.c, /src/avr/main.c:
8737         updated to reflect changes in the port structure
8738
8739         * /src/port.h:
8740         added function do_assemble (similar to do_link) if non-null this function
8741         will be called to do assembly (-mTININative) requires a multi command
8742         assembly
8743         added function genAssemblerEnd will be called to generate assembler Epilogue
8744
8745         * /src/SDCCsymt.c:
8746         added _JavaNative to debug info printing
8747
8748         * /src/SDCCmain.c: added option --tini-libid
8749         added port->do_assemble function (-mTININative) has a multi command assemble
8750
8751         * /src/SDCCglue.c: Disabled "constExpr" check
8752         added port->genAssemblerEnd function
8753
8754         * /src/SDCCglobl.h: Added option --tini-libid value
8755
8756         * /src/SDCCast.h:
8757         tookout optimizeCompare from the header (has no external references)
8758
8759         * /src/SDCCast.c: made one more function "static"
8760
8761 2001-12-23  Michael Hope  <michaelh AT juju.net.nz>
8762
8763         * src/z80/mappings.i: Added z80asm support.
8764
8765         * src/z80/main.c: Added z80asm support on --asm=z80asm
8766
8767         * src/z80/gen.c: Fixed asm portability issues.
8768
8769         * src/asm.c (tvsprintf): Removed old code, added 'N' for function name.  For extern support.
8770
8771         * src/SDCCglue.c (printExterns): Added global/extern split.
8772
8773 2001-12-17  Bernhard Held  <bernhard AT bernhardheld.de>
8774
8775         * support/regression/Makefile: added test for mcs51 model large
8776
8777         * support/regression/ports/mcs51-large/spec.mk: added test for mcs51 model large
8778
8779         * support/regression/ports/gbz80/spec.mk: added -mgbz80
8780
8781 2001-12-05  Michael Hope  <michaelh AT juju.net.nz>
8782
8783         * src/diff.1 (Index): Many, many optmisiations.  Dhrystone up to 201.
8784
8785 1904-01-06  Michael Hope  <michaelh AT juju.net.nz>
8786
8787         * src/z80/ralloc.c (packRegsForIYUse): Fixed the case where an operand is in direct space.
8788
8789         * src/z80/gen.c (makeFreePairId): Optimised IY load by using a spare pair.
8790
8791 2001-12-02  Bernhard Held  <bernhard AT bernhardheld.de>
8792
8793         * src/mcs51/gen.c (genFunction): avoid excess "inc sp"
8794
8795         * support/regression/tests/simplefloat.c: Port to mcs51.
8796
8797 2001-11-25  Michael Hope  <michaelh AT juju.net.nz>
8798         * support/regression/tests/bug-485362.c: Added.
8799
8800         * support/regression/tests/simplefloat.c (testDivNearOne): Added.
8801
8802         * src/z80/gen.c (aopOp): Fixed case where left and result are in the same spill loc and they have different sizes.
8803
8804         * src/z80/peeph.def: Added rules for optimising two byte compares on the same thing, and to optimise two ptr assign.
8805
8806         * src/z80/gen.c (aopDump): Added a dump function.
8807
8808 2001-11-25  Bernhard Held  <bernhard AT bernhardheld.de>
8809         * sim/ucsim/s51.src/glob.cc: DS390 SFRs and bits added.
8810
8811         * sim/ucsim/s51.src/port.cc: Port 4 and 5 added.
8812
8813         * sim/ucsim/s51.src/regs51.h: DS390 SFRs added.
8814
8815         * sim/ucsim/s51.src/uc390.cc: Some details improved, CKRDY works for tinibios.
8816
8817         * sim/ucsim/s51.src/uc390cl.h: Work in progress.
8818
8819         * sim/ucsim/sim.src/uccl.h: 6 ports for DS390.
8820
8821         * support/regression/fwk/lib/testfwk.c: Run with tinibios.
8822
8823         * support/regression/ports/mcs51/spec.mk: Fine tuninig.
8824
8825         * support/regression/ports/ds390/support.c: Use tinibios.
8826
8827         * support/regression/ports/ds390/spec.mk: Fine tuning, use tinibios.
8828
8829 2001-11-23  Michael Hope  <michaelh AT juju.net.nz>support/regression/tests/bug-460010.c
8830
8831         * src/z80/ralloc.c (packRegsForHLUse3): Changed to not pack into HL if anything is in direct space.
8832         (packRegsForHLUse3): Added packing support for send, cast, and return value from a call.
8833
8834         * src/z80/peeph.def: Added rules for optimising pushes of part of a pair.
8835
8836         * src/z80/gen.c (emitCall): Changed the stack fixup to not use HL.
8837
8838 2001-11-18  Michael Hope  <michaelh AT juju.net.nz>
8839
8840         * src/z80/gen.c (genCmp): Fixed compare on unsigned.
8841
8842         * src/z80/ralloc.c (packRegsForHLUse3): Created and optimised.
8843         (packRegsForIYUse): Created and optimised.
8844
8845 2001-11-07  Michael Hope  <michaelh AT juju.net.nz>
8846
8847         * support/regression/tests/float.c (testFloatAdd): Fixed up warning.
8848 2001-11-18  Bernhard Held  <bernhard AT bernhardheld.de>
8849
8850         * sdcc/support/regression/tests/bug-460010.c: fix seg violation on host
8851
8852         * sdcc/support/regression/tests/muldiv.c: fix output on mcs51
8853
8854         * sdcc/support/regression/tests/stacks.c: fix DSEG overflow on mcs51
8855
8856 2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>
8857
8858         * sdcc/sim/device/lib/_gptrget.c: mem region 5 (idata) added
8859
8860         * sdcc/sim/device/lib/_gptrput.c: mem region 5 (idata) added
8861
8862 2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>
8863
8864         * sdcc/sim/ucsim/globals.cc: New: IXRAM.
8865
8866         * sdcc/sim/ucsim/stypes.h: New: IXRAM.
8867
8868         * sdcc/sim/ucsim/s51.src/uc390.cc: New: IXRAM.
8869
8870 2001-11-07  Michael Hope  <michaelh AT juju.net.nz>
8871
8872         * src/z80/ralloc.c (packRegsForHLUse): Banned IFXs from being packed into HL.
8873         (packRegsForHLUse): Added rule to pack address of/pointer get for itemps into HL for the Z80.
8874         (packRegsForAccUse2): Added rule to pack hbit IFXs into A.
8875
8876         * src/z80/main.c (_setDefaultOptions): Made float code re-entrant by default.
8877
8878         * src/z80/gen.c (aopGetLitWordLong): Added word support for floats.
8879         (genNotFloat): Added.
8880         (genUminusFloat): Added.
8881
8882         * device/lib/z80/Makefile: Added floating pt stubs.
8883
8884         * device/lib/Makefile.in (Z80SOURCES): Added floating pt support.
8885
8886         * src/z80/gen.c (genIpush): Fixed up a push of one byte when left is in a pair.
8887
8888         * device/lib/_fsadd.c (__fsadd): Fixed up return where the numbers are hugely different.
8889
8890 2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>
8891
8892         * sdcc/sim/ucsim/s51.src/glob.cc: Minor fix.
8893
8894         * sdcc/sim/ucsim/s51.src/regs51.h: Minor fix.
8895
8896         * sdcc/support/regression/Makefile: Add port ds390.
8897
8898         * sdcc/support/regression/ports/mcs51/spec.mk: Minor change.
8899
8900         * sdcc/support/regression/ports/z80/spec.mk: Minor change.
8901
8902         * sdcc/support/regression/ports/ds390/spec.mk: Added.
8903
8904         * sdcc/support/regression/ports/ds390/support.c: Added.
8905
8906         * sdcc/support/regression/ports/ds390/uCsim.cmd: Added.
8907
8908         * sdcc/support/regression/ports/mcs51/timeout.c: Cut.
8909
8910         * sdcc/support/regression/fwk/lib/timeout.c: Paste.
8911
8912 2001-11-04  Michael Hope  <michaelh AT juju.net.nz>
8913
8914         * device/include/malloc.h: Added z80 and gbz80 support.
8915
8916         * device/lib/gbz80/heap.s: Added.
8917
8918         * device/lib/z80/heap.s: Added.
8919
8920         * device/lib/malloc.c: Added z80 and gbz80 support.
8921
8922         * support/regression/tests/malloc.c (testMalloc): Added.
8923
8924         * src/SDCCmain.c (parseCmdLine): Added support for -Wp.
8925
8926         * support/regression/tests/bug-478094.c: Added.
8927
8928         * src/z80/gen.c (commitPair): Fixed silly gbz80/z80 commit to static bug.
8929
8930 2001-11-04  Bernhard Held  <bernhard AT bernhardheld.de>
8931
8932         * sdcc/sim/ucsim/s51.src/uc390cl.h: Improvement for ds390 to run regression tests
8933
8934         * sdcc/sim/ucsim/s51.src/uc390.h: Improvement for ds390 to run regression tests
8935
8936         * sdcc/sim/ucsim/s51.src/regs51.h: Improvement for ds390 to run regression tests
8937
8938         * sdcc/sim/ucsim/s51.src/glob.cc: Improvement for ds390 to run regression tests
8939
8940         * sdcc/support/regression/tests/bug-460010.c: Small change for ds390
8941
8942 2001-11-04  Michael Hope  <michaelh AT juju.net.nz>
8943
8944         * src/z80/peeph-gbz80.def: Removed a bad sub optimisation.
8945
8946 2001-11-03  Michael Hope  <michaelh AT juju.net.nz>
8947
8948         * support/regression/tests/bug-477927.c: Added.
8949
8950         * src/z80/peeph.def: Added minor rules.
8951
8952         * src/z80/gen.c (genPlusIncr): Added an extra plusinc rule.
8953
8954         * src/z80/peeph.def: Added jump optimisation modification.
8955
8956 2001-11-01  Michael Hope  <michaelh AT juju.net.nz>
8957
8958         * src/SDCCmain.c (linkEdit): Added runtime path detection to the mcs51 port.
8959
8960 2001-10-30  Michael Hope  <michaelh AT juju.net.nz>
8961
8962         * support/regression/tests/funptrs.c: Added.
8963
8964 2001-10-29  Michael Hope  <michaelh AT juju.net.nz>
8965
8966         * src/z80/ralloc.c (packRegsForHLUse): Fixed up bad spill due to pushing one byte via HL.
8967
8968 2001-10-28  Michael Hope  <michaelh AT juju.net.nz>
8969
8970         * src/z80/gen.c (genArrayInit): Made it work for on stack arrays.
8971
8972         * src/z80/main.c (gbz80_port =): Added rle support to the gbz80 port.
8973
8974         * src/z80/gen.c (genMinus): Fixed for where the result is one byte.
8975         (movLeft2ResultLong): Created.
8976
8977         * src/z80/ralloc.c (packRegsForHLUse): Added a couple of simple cases for the GB.
8978         (joinPushes): Added.  Joins two char pushes into a word push.
8979
8980 2001-10-27  Michael Hope  <michaelh AT juju.net.nz>
8981
8982         * support/cpp2/Makefile.in (install): Added creation of dest dir.
8983
8984         * support/makebin/Makefile (install): Added creation of dest dir.
8985
8986 2001-10-24 Karl Bongers <karl AT turbobit.com>
8987
8988         * configure.in, configure, Makefile, support/cpp: Removed cpp folder, since we have new cpp2 preprocessor code.
8989
8990 2001-10-21  Michael Hope  <michaelh AT juju.net.nz>
8991
8992         * src/z80/ralloc.c: Turned off faulty pack for one use.
8993
8994         * src/z80/peeph-gbz80.def: Removed redundent restart options.
8995
8996         * src/z80/gen.c (genMult): Added native mul for constants on the z80 and gbz80.
8997
8998 2001-10-21  Bernhard Held  <bernhard AT bernhardheld.de>
8999
9000         * support/regression/Makefile: Improved clean
9001
9002         * support/regression/ports/gbz80/spec.mk: Added clean
9003
9004         * support/regression/ports/host/spec.mk: Added clean
9005
9006         * support/regression/ports/z80/spec.mk: Added clean
9007
9008         * support/regression/ports/mcs51/spec.mk: Added clean, little improvements
9009
9010         * support/regression/ports/mcs51/timeout.c: little improvements
9011
9012 2001-10-17  Michael Hope  <michaelh AT juju.net.nz>
9013
9014         * device/lib/malloc.c (MEMHEADER): Fixed against new pedantic pointers.
9015
9016         * support/regression/fwk/include/testfwk.h: Fixed up to use function pts correctly.
9017
9018         * support/regression/generate-cases.py: Fixed up to use function pts correctly.
9019
9020 2001-10-16  Bernhard Held  <bernhard AT bernhardheld.de>
9021
9022         * support/regression/port/mcs51/spec.mk: add timeout for uCsim
9023
9024         * support/regression/port/mcs51/timeout.c: add timeout for uCsim
9025
9026 2001-10-13  Michael Hope  <michaelh AT juju.net.nz>
9027         * src/z80/gen.c (emitCall): Fixed up missing spill of HL when used to assign the result value.
9028
9029         * src/z80/ralloc.c: Turned off pack for one use as it's quite broken.
9030
9031         * src/SDCCmain.c (linkEdit): Added support for passing a legacy command line through the processor.
9032
9033         * src/mcs51/main.c (_linkCmd): Added bin path to command.
9034
9035         * src/SDCCmain.c (initValues): Added support for when it it called just to link.
9036
9037         * as/mcs51/lklibr.c (libfil;): Turned off 'library file' message.
9038
9039         * src/SDCCval.c (constVal): Fixed usage of 'L' modifier problems on ppc.
9040
9041         * support/regression/tests/longor.c: Added.
9042
9043 2001-10-11  Bernhard Held  <bernhard AT bernhardheld.de>
9044
9045         * as/mcs51/asdata.c: replaced FILENAME_MAX with PATH_MAX
9046
9047         * as/mcs51/aslink.h: define PATH_MAX
9048
9049         * as/mcs51/asm.h: define PATH_MAX
9050
9051         * as/mcs51/asmain.c: replaced FILENAME_MAX with PATH_MAX
9052
9053         * as/mcs51/asnoice.c: replaced FILENAME_MAX with PATH_MAX
9054
9055         * as/mcs51/lklex.c: replaced FILENAME_MAX with PATH_MAX
9056
9057         * as/mcs51/lkmain.c: replaced FILENAME_MAX with PATH_MAX
9058
9059         * src/SDCCglobl.h: define PATH_MAX
9060
9061         * src/SDCCmacro.c: replaced FILENAME_MAX with PATH_MAX
9062
9063         * src/SDCCmain.c: replaced FILENAME_MAX with PATH_MAX
9064
9065 2001-10-11  Michael Hope  <michaelh AT juju.net.nz>
9066
9067         * src/z80/gen.c (gencjneshort): Fixed
9068
9069         * src/z80/ralloc.c (packRegsForHLUse): Added pack into HL for cast then ipush.
9070
9071 2001-10-09  Michael Hope  <michaelh AT juju.net.nz>
9072
9073         * support/regression/tests/bug-469671.c: Added.
9074
9075         * src/z80/gen.c (shiftIntoPair): Fixed up warning.
9076
9077 2001-10-08  Michael Hope  <michaelh AT juju.net.nz>
9078
9079         * src/SDCCmain.c: Added --fommit-frame-pointer option and implemented in the z80 port.
9080
9081         * src/z80/gen.c (genPlus): Fixed to work with extended stack.  Also fixed genMinus, genCmp.  genUMinus is still left.
9082
9083 2001-10-08  Bernhar Held  <bernhard AT bernhardheld.de>
9084
9085         * src/SDCCmain.c (preProcess): added define SDCC_NOOVERLAY
9086
9087         * src/device/lib/_mulint.c  : removed hint: nooverlay bug
9088
9089         * src/device/lib/_mullong.c : removed hint: nooverlay bug
9090
9091         * src/device/lib/_divuint.c : removed hint: nooverlay bug
9092
9093         * src/device/lib/_divulong.c: removed hint: nooverlay bug
9094
9095         * src/device/lib/_moduint.c : removed hint: nooverlay bug
9096
9097         * src/device/lib/_modulong.c: removed hint: nooverlay bug
9098
9099 2001-10-07  Michael Hope  <michaelh AT juju.net.nz>
9100
9101         * 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.
9102
9103         * support/Util/NewAlloc.c (freeTrace): Changed free for the gc case to not free at all.  Fixes runtime segfault.
9104
9105         * support/regression/tests/scott-compare3.c (c_abcd): Fixed up casts.
9106
9107 2001-10-07    <johan AT FRIJA>
9108
9109         * device/lib/gets.c (gets): fixed the return value.
9110
9111 2001-10-06  Michael Hope  <michaelh AT juju.net.nz>
9112         * src/SDCCmain.c (WRITE_SEG_LOC): Fixed up to use Safe_strdup.
9113
9114         * 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.
9115
9116         * 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.
9117
9118         * src/z80/gen.c (genZ80Code): Added de-allocation via trace support.
9119
9120         * src/pic/gen.c: Removed Safe_strdup.
9121
9122         * configure.in: Added option to enable libgc support.
9123
9124         * src/SDCCbitv.c (bitVectnBitsOn): Optimised.
9125         (bitVectUnion): Optimised.
9126         (bitVectIntersect): Optimised.
9127         (bitVectBitsInCommon): Optimised.
9128         (bitVectCplAnd): Optimised.
9129
9130         * support/makebin/makebin.c (usage): Removed getopt as mingw32 doesn't have it.  Sigh.
9131
9132 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
9133
9134         * src/SDCCmain.c: distinguish between assembler debug and plain options
9135
9136         * src/avr/main.c:   remove standard assembler options
9137
9138         * src/ds390/main.c: remove standard assembler options
9139
9140         * src/mcs51/main.c: remove standard assembler options
9141
9142         * src/port.h: removed "PENDING" comment
9143
9144 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
9145
9146         * src/device/lib/_mulint.c  : new, with assember functions
9147
9148         * src/device/lib/_mullong.c : new, with assember functions
9149
9150         * src/device/lib/_divuint.c : with assember functions
9151
9152         * src/device/lib/_divsint.c : with assember functions
9153
9154         * src/device/lib/_divulong.c: with assember functions
9155
9156         * src/device/lib/_divslong.c: with assember functions
9157
9158         * src/device/lib/_moduint.c : with assember functions
9159
9160         * src/device/lib/_modsint.c : with assember functions
9161
9162         * src/device/lib/_modulong.c: with assember functions
9163
9164         * src/device/lib/_modslong.c: with assember functions
9165
9166         * src/device/lib/libint.lib:  replaced _muluint.c  and _mulsint.c  by _mulint.c
9167
9168         * src/device/lib/liblong.lib: replaced _mululong.c and _mulslong.c by _mullong.c
9169
9170         * src/device/lib/Makefile.in: replaced _muluint.c  and _mulsint.c  by _mulint.c
9171                                       replaced _mululong.c and _mulslong.c by _mullong.c
9172
9173 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
9174
9175         * src/SDCCsymt.c: sequence of specifiers in pintTypeChain() corrected
9176
9177 2001-10-01 Bernhard Held <bernhard AT bernhardheld.de>
9178
9179         * src/SDCCglue.c: test, if win32api is available for MINGW
9180
9181 2001-10-01 Bernhard Held <bernhard AT bernhardheld.de>
9182
9183         * src/SDCCsymt.c: no more _modifier in printTypeChain()
9184         * support/regression/tests/driverstruct.c: REENTRANT for mcs51
9185         * support/regression/ports/gbz80/spec.mk: removed GENERIC
9186         * support/regression/ports/host/spec.mk: removed GENERIC
9187         * support/regression/ports/mcs51/spec.mk: removed GENERIC
9188         * support/regression/ports/z80/spec.mk: removed GENERIC
9189
9190 2001-10-01  Michael Hope  <michaelh AT juju.net.nz>
9191
9192         * support/regression/fwk/lib/testfwk.c (__printf): Removed GENERIC.
9193
9194         * support/regression/tests/bug-467035.c: Created.
9195
9196 2001-10-01    <johan AT FRIJA>
9197
9198         * src/SDCC.y: fixed bug #466586 part 1
9199
9200 2001-10-01  Johan Knol <johan.knol AT iduna.nl>
9201
9202         * SDCCicode.c: z80 has no generic pointers
9203         * removed -s from strip in all Makefile(.in)'s. It is not needed, but Solaris chocks on it.
9204
9205 2001-09-30  Michael Hope  <michaelh AT juju.net.nz>
9206
9207         * sim/ucsim/cmd.src/Makefile.in ($(PRJDIR)/libcmd.a): Changed all ar references to $(AR) for Solaris.
9208
9209 2001-09-29  Michael Hope  <michaelh AT juju.net.nz>
9210
9211         * Makefile (sdcc-libs): Added makebin to the list of standard targets.
9212
9213         * support/regression/ports/z80/spec.mk: Updated to use env for sdcc bin dir for automatic regression.
9214
9215 2001-09-25  Michael Hope  <michaelh AT juju.net.nz>
9216
9217         * configure.in: Fixed up so that ucsim is only configured once.
9218
9219         * support/cpp2/configure.in: Fixed to use the program transform to append the .exe for the win32 build.
9220
9221         * src/SDCCutil.c (getPrefixFromBinPath): Fixed up to work with win32 in all of its glory.
9222         (getPathDifference): As above.
9223
9224         * src/SDCCmain.c (preProcess): Changed to use a temporary file in a proper temp directory.  Fixed case where pre-processing only.
9225
9226         * src/SDCCglue.c (tempfilename): Added function for pre-processor.
9227
9228 2001-09-23  Michael Hope  <michaelh AT juju.net.nz>
9229         * .version: Updated to 2.3.1
9230
9231         * src/z80/main.c (z80_port =): Added macro based linker and assembler command line support.
9232         Added copyright header.
9233
9234         * src/SDCCmain.c: Shifted various functions into SDCCutil.c
9235         (assemble): Added support for macro based assembler commands.
9236         (linkEdit): Added support for macro based linker commands.
9237         (preProcess): Changed the pre-processor to use macros.
9238         (_setPaths): Added functionality to autodetect the include, lib and bin dir paths.
9239         (_discoverPaths): Added support for overriding the install directory using the SDCCDIR env variable.
9240
9241         * device/lib/z80/crt0.s: Added module name for debugging.
9242
9243 2001-09-20  Michael Hope  <michaelh AT juju.net.nz>
9244
9245         * src/SDCCmain.c (printVersionInfo): Added the build date to the version info.
9246
9247         * src/SDCChasht.c (hTabDeleteByKey): Fixed delete as it would delete the last item from a bucket even if it wasn't the real one.
9248
9249         * src/SDCCglue.c: Moved gc_strdup to SDCCutil.c
9250
9251         * src/Makefile.in: Added SDCCmacro and SDCCutil
9252
9253 2001-09-19  Michael Hope  <michaelh AT juju.net.nz>
9254
9255         * src/SDCCmain.c (printVersionInfo): Added the build date to the version info.
9256
9257 2001-09-16    <johan AT FRIJA>
9258
9259         * 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.
9260
9261 2001-09-15    <johan AT FRIJA>
9262
9263         * src/mcs51/ralloc.c: (findAssignToSym): fixed bug #460662 part 1
9264         * src/ds390/ralloc.c (findAssignToSym): fixed bug #460662 part 1
9265
9266 2001-09-11    <johan AT FRIJA>
9267
9268         * src/SDCCval.c (valDiv Mod Minus Plus Shift): keep litteral expressions as small as possible (bug #460010)
9269
9270 2001-09-10  Michael Hope  <michaelh AT juju.net.nz>
9271
9272         * support/regression/tests/bug-460444.c: Added test case.
9273
9274         * src/z80/gen.c (genOr): bug 460444: if (a ^ lit) was broken for &, |, and ^.
9275         (genCast): Added justification for all of the asserts.
9276
9277 2001-09-10  Bernhard Held <bernhard AT bernhardheld.de>
9278
9279         * support/regression/support.c: _xdata replaced by xdata
9280
9281         * support/regression/spec.mk: removed _generic
9282
9283 2001-09-09  Michael Hope  <michaelh AT juju.net.nz>
9284
9285         * src/pic/ralloc.c (debugLogRegType): Removed some old types to get it to compile.
9286
9287         * src/z80/gen.c (shiftR2Left2Result): Improved the case when v = v >> n for small values of n to use less code space and time.
9288         (genrshTwo): Fixed v = v >> n where v is a negative int and n is > 8: bug 460010.
9289
9290         * src/z80/peeph.def: Added a rule to optimise shift then compare.
9291
9292         * support/regression/tests/bug-460000.c (testShiftByParam): Added test case.
9293
9294         * support/regression/tests/bug-460010.c: Added test case.
9295
9296         * support/regression/Makefile (test-host): Removed a silly 'clean' target when testing against gcc.
9297
9298 2001-09-09  Bernhard Held <bernhard AT bernhardheld.de>
9299
9300         * support/regression/Makefile: inter-port-clean adjusted for mcs51
9301
9302         * support/regression/testfwk.c: removed workaround for bug #436344
9303
9304         * support/regression/tests/bp.c: use less memory with mcs51
9305
9306         * support/regression/tests/bug-441448.c: use less memory
9307
9308         * support/regression/tests/ports/mcs51/spec.mk: cleanup, use --stack-after-data
9309
9310         * support/regression/collate-results.py: typo
9311
9312 2001-09-08  Michael Hope  <michaelh AT juju.net.nz>
9313
9314         * support/regression/tests/fetchoverlap.c: Added new test case.
9315
9316         * support/regression/tests/bp.c: Added new test case.
9317
9318         * support/regression/tests/bug-448984.c: Added new test case.
9319
9320         * support/regression/tests/pow2shifts.c: Added new test case.
9321
9322         * src/z80/gen.c: Turned off the noise it normally generates for the release.
9323         (genlshTwo): Fixed right shift for count > 8.
9324
9325         * src/z80/ralloc.c: Disabled most of the ACC packing rules as they weren't getting hit and weren't at all safe.
9326
9327 2001-09-08    <johan AT FRIJA>
9328
9329         * src/SDCCicode.c (geniCodeCall): a CPOINTER can be used as a function
9330
9331 2001-09-07    <johan AT FRIJA>
9332
9333         * src/SDCCicode.c (newiCodeCondition): fixed bug #456235 (1.77)
9334
9335         * src/SDCCglue.c (emitRegularMap): only delete a symbol when it is a symbol
9336
9337 2001-09-06    <johan AT FRIJA>
9338
9339         * src/SDCC.y: this could be a fix for bug #458744 (1.37)
9340         * bernhard noted me at this: "() equals to (void)" (1.38)
9341
9342 2001-09-05    <johan AT FRIJA>
9343
9344         * src/SDCCglue.c (emitRegularMap): a fix for bug #458099/2
9345
9346 2001-09-04    <johan AT FRIJA>
9347
9348         * src/SDCCsymt.c (checkSClass): a fix for bug #458099/1
9349
9350
9351 2001-09-04  Paul Stoffregen  <paul AT pjrc.com>
9352
9353         * pragma noinduction broke memcpy on mcs51 large model.  Moved it inside z80 optimization
9354
9355 2001-09-03  Michael Hope  <michaelh AT juju.net.nz>
9356
9357         * link/z80/aslink.h: Fixed path for PATH_MAX
9358
9359 2001-09-02  Michael Hope  <michaelh AT juju.net.nz>
9360
9361         * src/z80/gen.c (fetchLitPair): Changed so that it properly caches direct space references.
9362
9363         * support/regression/tests/addsub.c: Added cases to cover all the +, - combinations.
9364
9365         * support/regression/tests/uminus.c: Added a test for the unary minus operator.
9366
9367         * 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.
9368
9369 2001-09-01  Michael Hope  <michaelh AT juju.net.nz>
9370
9371         * src/z80/gen.c: Fixed up generator to pass the regresion tests, specifically fixing loads for longs, genCmp, and turned on the map file.
9372         (genCmp): Fixed up genCmp for the GB with longs.
9373
9374         * device/lib/gbz80/Makefile: Fixed up all the libraries to pass the regression tests.
9375
9376         * support/regression/ports/host/spec.mk: Updated to compile with the new type specifiers.
9377
9378         * device/lib/Makefile.in (Z80SOURCES): Removed old _mululong, _mulslong, and unneeded _mulint.
9379
9380         * device/lib/_mullong.c (_mulslong): Changed to actually return a value :)
9381
9382 2001-08-30  Paul Stoffregen  <paul AT pjrc.com>
9383
9384         * added peepholes 223 to 231 to mcs51 port.  These improve code when using large model.
9385
9386 2001-08-30  Michael Hope  <michaelh AT juju.net.nz>
9387
9388         * 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.
9389
9390         * src/z80/gen.c (genPlus): Changed bad long add for gb to a fall through.
9391
9392 2001-08-29  Michael Hope  <michaelh AT juju.net.nz>
9393
9394         * link/z80/aslink.h: Fixed long file name support.  Is now based off PATH_MAX instead of a constant.
9395
9396         * src/z80/gen.c: Fixed add and sub for the case where left or right are in static space.
9397
9398 2001-08-30 Bernhard Held   <bernhard AT bernhardheld.de>
9399
9400   * sim/ucsim/configure:    little improvement of Cygwin-detection
9401   * sim/ucsim/configure.in: little improvement of Cygwin-detection
9402   * sim/ucsim/cmd.src/newcmdcl.h: include <sys/types.h> to define fd_set automated build
9403   * support/regression/tests/bug-221100.c: small changes for mcs51
9404   * support/regression/tests/bug-221168.c: small changes for mcs51
9405   * support/regression/tests/bug-227710.c: small changes for mcs51
9406   * support/regression/tests/staticinit.c: small changes for mcs51
9407   * as/mcs51/aslink.h: accept everything as symbol name in rel-files, bug fix ID 452601
9408   * as/mcs51/lklex.c:  accept everything as symbol name in rel-files, bug fix ID 452601
9409   * as/mcs51/lksym.c:  accept everything as symbol name in rel-files, bug fix ID 452601
9410
9411 $Revision$