* .version: bumped version to 2.5.6 (pic14 ABI changed)
[fw/sdcc] / ChangeLog
1 2006-04-06 Raphael Neider <rneider AT web.de>
2
3         * .version: bumped version to 2.5.6 (pic14 ABI changed)
4         * src/SDCCmain.c: add -DSDCC_PROCESSOR=<id> for pic14 port
5         * src/pic/glue.c (emitSymbolToFile,pic14_constructAbsMap,
6           pic14emitRegularMap,pic14emitMaps): moved output for absolute symbols to
7             pic14_constructAbsMap
8           (pic14printPublics): declare absolute global symbols as global
9           (pic14createInterruptVect), 
10         * src/pic/ralloc.c (IS_CONFIG_ADDRESS): support second config word,
11           (newReg): assume new registers unused, use correct name in
12             hashtable (reg->name instead of name), more debugLog output
13         * src/pic/device.h (PIC_device): added fields for verbose output
14         * src/pic/device.c: moved device definition to pic14devices.txt,
15             added routines for runtime parsing of pic14devices.txt,
16             added support for second config word
17         * src/pic/main.c (_process_pragma): removed #pragma maxram,
18           (_pic14_keywords): no longer accept "bit" and "sbit" keywords
19           (_pic14_initPaths): add search paths with "pic" suffix (not "pic14")
20           (_pic14_parseOptions): moved pCodeInitRegisters here
21           (_pic14_do_link): add "pic$(ARCH).lib" to linker arguments
22         * src/pic/pcode.c (AnalyzeBanking): bail out on unset processor,
23           (pCodeInitRegisters): rewrapped comments, perpared new approach to
24             handling the pseudo stack
25         * device/lib/Makefile.in: ignore failures in objects-pic16,
26         * device/lib/pic/{configure,configure.in,Makefile}: added libdev/
27         * device/lib/pic/NEWS: document new dependency on picXXX.lib
28         * device/lib/pic/Makefile.subdir,
29         * device/lib/pic16/Makefile.subdir: improved clean rules
30         * device/lib/pic/libdev/: NEW, pic14 device libraries
31         * device/lib/pic/libsdcc/_gptr{get,put}{1,2,3,4}.S: use _X not X
32         * device/lib/pic/libsdcc/macros.inc: use _X not X, declare default SFRs
33         * device/include/Makefile.in: create subdir and install pic14 headers
34         * device/include/pic/p16f_common.inc: removed unused declarations
35         * device/include/pic/pic16*.h: added header files for 100+ 14 bit
36             PICs from inc2h.pl v1.6,
37             replaced BIT_AT macros with struct declarations
38         * device/include/pic/pic14devices.txt: definition of supported devices,
39             all above improvements contributed by Zik Saleeba, thanks
40         * support/scripts/inc2h.pl: removed BIT_AT, replaced with structs
41         * support/scripts/sdcc.nsi: also install pic14 device libraries and
42             headers
43
44 2006-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
45
46         * device/include/mcs51/c8051f410.h: added interrupt numbers,
47         * device/include/mcs51/c8051f200.h: old SiLabs mcu completes the list,
48           thanks to Charles Olds
49
50 2006-04-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
51
52         * debugger/mcs51/cmd.c (infoRegisters): show return address on stack
53
54 2006-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
55
56         * src/SDCCpeeph.c (labelIsReturnOnly): fixed bug 1464657
57         * src/mcs51/gen.c (genJumpTab): fixed bug in medium model
58         * support/regression/bug1464657.c: added, new test
59
60 2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
61
62         * src/SDCCmain.c (preProcess): implemented RFE 1449908, define SDCC as the
63           version number
64
65 2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
66
67         * src/SDCCpeeph.c (initPeepHole): implemented RFE 1460196, when both
68           --no-peep and --peep-file <file> are used don't use default rules but
69           do use the <file>
70
71 2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
72
73         * src/mcs51/gen.c (genCall): fixed bug 1457608
74
75 2006-03-30 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
76
77         * doc/sdccman.lyx: reverted to version 1.129 of december as my latest
78         changes seem to cause (trigger?) problems with the build system.
79
80 2006-03-29 Maarten Brock <sourceforge.brock AT dse.nl>
81
82         * src/SDCCpeeph.c (operandsLiteral): new, added,
83           (callFuncByName): inserted operandsLiteral
84         * src/mcs51/peeph.def: reenabled 132.e, added extra check to 132.x
85
86 2006-03-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
87
88         * doc/sdccman.lyx: added paragraph "Use of SDCC in Education"
89         * src/mcs51/peeph.def: disabled rule 132.e fixing bug #1453093
90
91 2006-03-24 Maarten Brock <sourceforge.brock AT dse.nl>
92
93         * src/z80/gen.c (genFunction, genEndFunction): fixed bug 1160666,
94           implemented patch 1120823 Thanks to Willy De la Court (normal
95           interrupts need an interrupt number now if they are made critical),
96           and enabled nesting of critical functions though not for gbz80
97           (genCritical, genEndCritical): added functions
98           (genZ80Code): added cases for CRITICAL and ENDCRITICAL
99         * src/z80/mappings.i: added "ei" to all mappings
100
101 2006-03-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
102
103         * sim/ucsim/cmd.src/newcmdcl.h: applied patch fixing GCC 4.1 build
104         submitted by the Debian SDCC maintainer Aurelien Jarno:
105         "Credits goes to Martin Michlmayr, who rebuilt the whole Debian
106         archive with gcc 4.1 on mips and wrote the patch"
107
108 2006-03-16 Raphael Neider <rneider AT web.de>
109
110         * src/pic16/genarith.c (genAddLit): simplified and fixed case where
111           the left operand is shorter than the result (c* = lit-c* + int),
112           fixes bug #1450796
113         * src/pic16/gen.c (genRightShift): check IS_SYMOP before accessing
114           OP_SYMBOL
115
116 2006-03-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
117
118         * src/.version: increased version number to 2.5.5
119         * src/SDCCmain.c (linkEdit): do not test for PIC16 target since, PIC16
120         linking is done manually in pic16 port's _linkEdit,
121         * src/SDCCsymt.c (compStructSize): for target PIC16 and shell variable
122         PIC16_PACKED_BITFIELDS, compact bitfield structures as much as possible,
123         * src/pic16/gen.c (aopForSym): when direct register name is WREG then
124         allocate asmop as AOP_ACC,
125         (aopForRemat): added parameter 'bool result' in function declaration,
126         (pic16_aopGet): return AOP_ACC when accessing WREG,
127         (pic16_popGetTempReg): minor modification,
128         (pic16_popRegFromIdx): first try with 'pic16_regWithIdx' then with
129         'pic16_allocWithIdx',
130         (genPcall): removed ftype, usage of OP_SYM_TYPE asserted error when
131         calling function in absolute addresses,
132         (genAssign): take into account AOP_ACC asmop,
133         * src/pic16/pcode.c (pic16_newpCodeOpReg): minor modifications,
134         * src/pic16/pcoderegs.c: some debug functions and lines added,
135         * src/pic16/ralloc.c (decodeRegType): added but commented out,
136         * (pic16_typeRegWithIdx): search 'pic16_dynInternalRegs' for given
137         register too,
138         * (pic16_findFreeReg, pic16_findFreeRegNext): allocate new register via
139         call to allocReg, not by manually allocating a new one,
140         (pic16_assignRegisters): now before going through the register
141         allocating functions mark all registers as free. This eliminates some
142         side effects resulting from peephole parser done earlier in the backbone
143
144 2006-03-13 Maarten Brock <sourceforge.brock AT dse.nl>
145
146         * src/SDCCicode.c (geniCodeLogic),
147         * src/SDCCast.c (decorateType): applied patch by Bernhard for rfe 1422617
148
149 2006-03-10 Maarten Brock <sourceforge.brock AT dse.nl>
150
151         * src/mcs51/gen.c (sameReg): new, checks if two aop regs are the same,
152           (genSend): bugfix, do not allocate and free twice,
153           (shiftRLong): handle partially overlapping aops
154         * support/regression/tests/bitopcse.c: fixed warning redefined idata
155
156 2006-03-08 Borut Razem <borut.razem AT siol.net>
157
158         * support/regression/fwk/include/testfwk.h: added defines for xdata, idata
159           for pic16
160
161 2006-03-08 Maarten Brock <sourceforge.brock AT dse.nl>
162
163         * support/regression/tests/bug1409955.c: new, added
164         * src/mcs51/gen.h: changed asmop.freed:1 to asmop.allocated for tracking
165         * src/mcs51/gen.c (newAsmop): set asmop.allocated to 1,
166           (aopForSym, aopOp): increment asmop.allocated if reused,
167           (freeAsmop): decrement asmop.allocated and check for zero instead of
168           using asmop.freed,
169           (freeForBranchAsmop): use asmop.allocated instead of asmop.freed,
170           (genNot, genCpl, genUminus, genMinus, genMult, genDiv, genMod, genCmpGt,
171            genCmpLt, genAndOp, genOrOp, genAnd, genOr, genXor, genRRC, genRLC,
172            genGetHbit, genGetAbit, genGetByte, genGetWord, genSwap,
173            genLeftShiftLiteral, genLeftShift, genRightShiftLiteral,
174            genSignedRightShift, genRightShift, genDataPointerGet,
175            genPagedPointerGet, genFarPointerGet, genCodePointerGet,
176            genGenPointerGet, genDataPointerSet, genAssign, genCast): free asmop's
177             in reverse order from allocation,
178           (genPlus, genCmpEq): free asmop's in reverse order from allocation and
179             added swappedLR to keep track
180         * support/regression/fwk/include/testfwk.h: added defines for xdata, idata,
181           pdata & code for GCC, z80, gbz80 & hc08
182         * support/regression/tests/zeropad.c: moved defines to testfwk.h
183
184 2006-03-08 Raphael Neider <rneider AT web.de>
185
186         * src/pic16/main.c (_hasNativeMulFor): fixed bug #1444425
187
188 2006-03-07 Maarten Brock <sourceforge.brock AT dse.nl>
189
190         * device/include/mcs51/c8051f410.h: new SiLabs mcu
191         * src/ds390/peeph.def: disabled 186.d and 227.a as fix for #1434401
192         * support/regression/tests/array.c: added parenthesis, made arrays unsigned
193
194 2006-03-06 Borut Razem <borut.razem AT siol.net>
195
196         * support/regression/ports/pic16/spec.mk: link with libm18f.lib,
197           made the linker quiet
198
199 2006-03-06 Vangelis Rokas <vrokas AT users.sourceforge.net>
200
201         * src/pic16/gen.c (genPcall): fixed bug #1443644
202         * src/pic16/device.h (struct pic16_options_t): added 'int CATregs' flag
203         which dumps before the function entry point a data byte which represents
204         the number of the local variables used by the specified function, added
205         'xinst' for initial support for Extended Instruction Support,
206         * src/pic16/gen.c (aopForSym, pic16_aopGet): beautifications,
207         (pic16_testStackOverflow): do not prefix GSTACK_TEST_NAME with
208         port->fun_prefix anymore (may change later),
209         (genFunction, genEndFunction): do not store/restore local registers for
210         _main (this should take care the --main-return command line option in
211         the future),
212         (genOr): removed some legacy pic-port instructions,
213         * src/pic16/genarith.c (genAddLit): re-enabled old code because
214         performing operations with SFR's causes data to be written more than
215         once to each SFR. Perhaps SFRs should be handled in special cases...
216         * src/pic16/glue.c: macros BIG_ENDIAN and BYTE_IN_LONG are moved to
217         pcode.h
218         * src/pic16/main.c (_process_pragma): stack bound checking did not take
219         into account for stack starting position,
220         (struct OPTIONS pic16_optionsTable): added command line argument
221         --extended or -y for Extended Instruction Support,
222         * src/pic16/ralloc.c (pic16_decodeOp): added case for FUNCTION,
223         (deassignLRs): *** perhaps the most important change, old 'for' code
224         (commented out for reference), didn't account for some registers which
225         were left marked 'not free' after a pointer operation. The change
226         reduces register usage a lot in some cases
227
228 2006-03-04 Borut Razem <borut.razem AT siol.net>
229
230         * support/regression/ports/hc08/spec.mk: remove *.asm in traget
231           _clean
232         * support/regression/tests/bug-524697.c: decreased array size for
233           mcs51 to fit into the internal RAM
234         * support/regression/Makefile.in: a little bit more verbose
235
236 2006-03-03 Borut Razem <borut.razem AT siol.net>
237
238         * support/regression/fwk/lib/testfwk.c,
239           support/regression/fwk/include/testfwk.h: introduced function
240           _prints(), nonrecursive _printn(), call _initEmu() from main()
241         * support/regression/ports/gbz80/support.asm,
242           support/regression/ports/ucz80/support.asm,
243           support/regression/ports/z80/support.asm,
244           support/regression/ports/ds390/support.c,
245           support/regression/ports/hc08/support.c,
246           support/regression/ports/host/support.c,
247           support/regression/ports/mcs51/support.c,
248           support/regression/ports/xa51/support.c: added empty _initEmu()
249           function
250         * support/regression/ports/pic16/gpsim.cmd,
251           support/regression/ports/pic16/spec.mk,
252           support/regression/ports/pic16/support.c,
253           support/regression/Makefile.in: added pic16 regression test
254
255 2006-03-01 Raphael Neider <rneider AT web.de>
256
257         * src/pic16/gen.c (genPcall,pic16_derefPtr,genGenPointerGet,
258           genConstPointerGet): use safe way of generating MOVFF to cover
259             literals as well as registers, fixes bug #1440527
260         * src/pic16/glue.c (pic16_printIvalBitFields): prevent NULL pointer
261             dereference
262           (pic16_printIvalUnion,pic16_isUnion): NEW, handle initialized unions
263             more correctly, fixes bug #1232186
264           (pic16_printIval): use pic16_printIvalUnion() for initialized unions
265         * src/pic16/main.c (_pic16_linkEdit): reorder linker arguments to make
266             gplink guess the correct processor in more cases, applied patch
267             from Till Riedel attached to and fixing bug #1436552
268
269 2006-02-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
270
271         * support/regression/tests/array.c: added, contains check for #1434401
272         * src/mcs51/peeph.def: disabled 186.d as temporary fix for #1434401
273
274 2006-02-16 Maarten Brock <sourceforge.brock AT dse.nl>
275
276         * device/include/mcs51/at89s8253.h: new, thanks to Krzysztof Polomka
277         * device/include/mcs51/at89S8252.h: fixed, thanks to Krzysztof Polomka
278         * device/include/mcs51/c8051f326.h,
279         * device/include/mcs51/c8051f340.h: new SiLabs mcu's
280         * device/include/mcs51/c8051f000.h,
281         * device/include/mcs51/c8051f018.h,
282         * device/include/mcs51/c8051f020.h: used () with __at, renamed IDLE,STOP to
283           PCON_IDLE,PCON_STOP and added sfr16 definitions
284
285 2006-02-14 Maarten Brock <sourceforge.brock AT dse.nl>
286
287         * src/mcs51/gen.c (genPlus, genMinus, genMult, genGetAbit, genGetByte,
288           genGetWord): fixed bug 1409955
289
290 2006-02-14 Maarten Brock <sourceforge.brock AT dse.nl>
291
292         * device/include/hc08/mc68hc908gp32.h,
293         * device/include/hc08/mc68hc908jb8.h: removed AWUL, added PTA6 & PTA7
294
295 2006-02-13 Maarten Brock <sourceforge.brock AT dse.nl>
296
297         * src/SDCCast.c (constExprValue): return NULL if not a value
298         * src/SDCCglue.c (printIvalArray): fixed bug 1225568
299         * src/hc08/gen.c(genUnpackBits, genUnpackBitsImmed): fixed bug 1019480
300         * support/regression/tests/bitfields.c: enabled signed bitfield for all
301
302 2006-02-13 Borut Razem <borut.razem AT siol.net>
303
304         * src/regression/ptrarg.c: added, fails due to bug #1430967
305         * src/regression/Makefile: ptrarg.c added, ...
306
307 2006-02-12 Maarten Brock <sourceforge.brock AT dse.nl>
308
309         * src/z80/gen.c (genUnpackBits): fixed bug 1019480
310         * support/regression/tests/bitfields.c: enabled signed bitfield for z80
311
312 2006-02-11 Borut Razem <borut.razem AT siol.net>
313
314         * src/SDCCmain.c: Added "sdcc: Calling linker..." if --verbose,
315           print "Processor: xxx" message to stdout only if --verbose
316
317 2006-02-11 Maarten Brock <sourceforge.brock AT dse.nl>
318
319         * src/SDCCglue.c (printIvalStruct): fixed bug 1426356 union initializer
320         * support/regression/tests/bug1426356.c: added
321         * support/regression/tests/bitfields.c: removed 2 tests
322
323 2006-02-10 Maarten Brock <sourceforge.brock AT dse.nl>
324
325         * device/include/mcs51/at89c51snd1c.h: updated comments, see patch 1428901
326         * device/include/mcs51/c8051f330.h,
327         * device/include/mcs51/c8051f350.h: used () with __at, renamed IDLE,STOP to
328           PCON_IDLE,PCON_STOP and added sfr16 definitions
329         * device/lib/_divsint.c,
330         * device/lib/_divuint.c,
331         * device/lib/_divulong.c,
332         * device/lib/_divulong.c: renamed a,b to x,y to avoid confusion, fixed
333           register bank bug for small stackauto
334
335 2006-02-09 Maarten Brock <sourceforge.brock AT dse.nl>
336
337         * support/regression/fwk/lib/timeout.c: include <stdlib.h> for exit()
338
339 2006-02-08 Maarten Brock <sourceforge.brock AT dse.nl>
340
341         * support/regression/ports/mcs51-xstack-auto/spec.mk: forgot -I(...)/mcs51
342         * all.dsp: corrected several bin paths
343         * device/include/mcs51/c8051f120.h,
344         * device/include/mcs51/c8051f300.h,
345         * device/include/mcs51/c8051f310.h: used () with __at and renamed IDLE,STOP
346           to PCON_IDLE,PCON_STOP
347         * device/include/mcs51/c8051f320.h: see above, also added sfr16 definitions
348         * device/lib/printf_large.c (output_float): fixed bug 1388703
349         * support/regression/tests/bug1057979.c: added test for bug 1388703
350
351 2006-02-08 Raphael Neider <rneider AT web.de>
352
353         * src/pic/pcode.c (pciTRIS): fixed typo,
354           (BuildFlow,LinkFlow_pCode): added (disabled) debug output,
355           (LinkFlow): fixed handling of flows that end in a call,
356           (ReuseReg): perform safety check earlier
357         * src/pic/pcoderegs.c (pCodeRegMapLiveRangesInFlow): fixed
358             to work with flows at the beginning of a pBlock,
359             fixes #1426557 (Symbol not previously defined),
360           (pic14_ReMapLiveRanges): NEW, destroy and rebuild register
361             usage information
362           (RemoveUnusedRegisters): update register usage info
363         * src/pic/ralloc.c (newReg): prevent duplicate registers from being
364             created, reuse existing ones instead
365         * src/pic/gen.c (genPcall): fixed #1424719
366
367 2006-02-07 Bernhard Held <bernhard AT bernhardheld.de>
368
369         * link/z80/lkmain.c,
370         * link/z80/lklex.c,
371         * link/z80/lkdata.c,
372         * link/z80/aslink.h: fixed build on current cygwin:
373         replaced getline() by lk_getline()
374
375 2006-02-01 Borut Razem <borut.razem AT siol.net>
376
377         * src/regression/add.c, src/regression/add2.c, src/regression/add3.c,
378           src/regression/add4.c, src/regression/and1.c, src/regression/and2.c,
379           src/regression/arrays.c, src/regression/b.c, src/regression/bank1.c,
380           src/regression/bool1.c, src/regression/bool2.c,
381           src/regression/bool3.c, src/regression/call1.c,
382           src/regression/compare.c, src/regression/compare10.c,
383           src/regression/compare2.c, src/regression/compare3.c,
384           src/regression/compare4.c, src/regression/compare5.c,
385           src/regression/compare6.c, src/regression/compare7.c,
386           src/regression/compare8.c, src/regression/compare9.c,
387           src/regression/configword.c, src/regression/for.c,
388           src/regression/inline.c, src/regression/mult1.c,
389           src/regression/nestfor.c, src/regression/or1.c,
390           src/regression/pointer1.c, src/regression/ptrfunc.c,
391           src/regression/rotate1.c, src/regression/rotate2.c,
392           src/regression/rotate3.c, src/regression/rotate4.c,
393           src/regression/rotate5.c, src/regression/rotate6.c,
394           src/regression/rotate7.c, src/regression/string1.c,
395           src/regression/struct1.c, src/regression/sub.c,
396           src/regression/sub2.c, src/regression/switch1.c,
397           src/regression/while.c, src/regression/xor.c,
398           src/regression/create_stc, src/regression/simulate,
399           src/regression/rt.sh, src/regression/Makefile: reenabled Scott's PIC14
400           regression tests
401         * src/regression/gpsim_assert.h: added
402
403 2006-01-28 Bernhard Held <bernhard AT bernhardheld.de>
404
405         * src/ds390/gen.c (unsaveRegisters): fixed literal function pointer
406         ((void (code *) (void)) 0) ();
407         * as/hc08/aslex.c,
408         * as/hc08/aslink.h,
409         * as/hc08/asm.h,
410         * as/hc08/asmain.c,
411         * as/hc08/lkdata.c,
412         * as/hc08/lklex.c,
413         * as/hc08/lkmain.c,
414         * as/mcs51/aslex.c,
415         * as/mcs51/aslink.h,
416         * as/mcs51/asm.h,
417         * as/mcs51/asmain.c,
418         * as/mcs51/lkdata.c,
419         * as/mcs51/lklex.c,
420         * as/mcs51/lkmain.c,
421         * as/z80/aslex.c,
422         * as/z80/asm.h,
423         * as/z80/asmain.c: fixed build on current cygwin:
424         replaced getline() by as_getline()
425
426 2006-01-27 Bernhard Held <bernhard AT bernhardheld.de>
427
428         * src/SDCC.y: fixed bug #716242, exchanged pointer and function
429         declarator in the symbol chain
430         * src/SDCCsymt.h,
431         * src/SDCCsymt.c (processFuncPtrArgs): added, removes "(void)"
432         parameter list for function pointers
433         * src/SDCCast.c (decorateType): added call of processFuncPtrArgs()
434         * support/regression/tests/bug-716242.c: added
435
436 2006-01-20 Bernhard Held <bernhard AT bernhardheld.de>
437
438         * src/SDCCicode.c (geniCodeAdd, geniCodeArray): use char for array
439         offset if possible
440         * src/SDCCast.c (getLeftResultType): 255 fits in char, not 256
441
442 2006-01-18 Bernhard Held <bernhard AT bernhardheld.de>
443
444         * src/SDCCast.c (backPatchLabels): fixed bug #1408066: made it
445         inifinitely recurseable, added static
446         * support/regression/tests/bug-1408066.c: added
447
448 2006-01-17 Bernhard Held <bernhard AT bernhardheld.de>
449
450         * src/SDCCicode.h,
451         * src/SDCCicode.c (newiTempPreheaderLabel, newiTempLoopHeaderLabel):
452         renamed, added possibility to create "postLoopLbl"-labels
453         * src/SDCCBBlock.c (iCodeBreakDown): renamed newiTempPreheaderLabel to
454         newiTempLoopHeaderLabel
455         * src/SDCCloop.c (newInduction, newRegion, backEdges, insertIntoLoop,
456         isNotInBlocks, addToExitsMarkDepth, createLoop, dominatedBy,
457         addDefInExprs, assignmentsToSym, isOperandInvariant, pointerAssigned,
458         hasNonPtrUse, loopInvariants, addressTaken, findInduction,
459         findDefInRegion, mergeRegions, ifMerged, mergeInnerLoops): made static,
460         (pinduction, pregion, hasIncomingDefs, findLoopEndSeq): disabled,
461         (basicInduction): fixed bug #136564, made static,
462         (loopInduction): changed parameter of basicInduction, made static,
463         (addPostLoopBlock): added
464         * src/SDCCloop.h: removed backEdges, pregion, pinduction,
465         loopOptimizations, addressTaken, findDefInRegion, hasIncomingDefs,
466         findLoopEndSeq
467         * support/regression/tests/bug-136564.c: added
468         * support/regression/ports/mcs51-xstack-auto/spec.mk: added
469         --std-sdcc99 to LIBSDCCFLAGS
470
471 2006-01-16 Bernhard Held <bernhard AT bernhardheld.de>
472
473         * src/SDCCicode.c (geniCodeIfx): fix bug 1406131: always false
474         while loop
475         * support/regression/tests/bug-1406131.c: added
476
477 2005-12-31 Bernhard Held <bernhard AT bernhardheld.de>
478
479         * src/SDCCast.c (decorateType): fix promotion of unary minus
480         * src/SDCCsymt.c (computeType): beautified
481         * src/SDCCval.c (cheapestVal): beautified, old non-Ansi version removed,
482         (valUnaryPM, valComplement): fix sign and promotion,
483         (valNot): ANSI: result type is int (SDCC: unsigned char)
484         * support/regression/tests/uminus.c: speedup by removing superflous
485         test case 'int'
486         * support/regression/tests/onebyte.c: added promotion and signedness
487         tests for unary minus
488         * support/regressions/tests/bug-477927.c: disable warning about
489         uninitialized variables
490         * support/regression/tests/not.c: added
491
492 2005-12-28 Bernhard Held <bernhard AT bernhardheld.de>
493
494         * device/lib/Makefile.in: added --std-sdcc99 to CFLAGS
495         * src/mcs51/gen.c (gen51Code): show final register usage after
496         fillGaps in asm with --i-code-in-asm
497         * src/SDCClrange.c (sequenceiCode, setLiveFrom, setLiveTo,
498         markLiveRanges, markAlive, findNextUseSym, findNextUse, unvisitBlocks,
499         incUsed, rliveClear, adjustIChain): made static,
500         (setFromRange): excluded because it's unused,
501         (findPrevUseSym, markWholeLoop): added,
502         (findPrevUse): rewritten; fixes bug 895992; now a complete search
503         through all branches of predecessors enables sdcc to emit the warning
504         W_LOCAL_NOINIT, marking of outermost loop was incomplete,
505         (rlivePoint): made static, added parameter emitWarnings which is only
506         true during the first run out of two,
507         (findRecursiveSucc, findRecursivePred): removed,
508         (computeLiveRanges): made static, added parameter emitWarnings,
509         (dumpIcRlive): added for debugging only
510         * src/SDCClrange.h: added boolean parameter to computeLiveRanges(),
511         removed prototype of setFromRange()
512         * src/SDCCopt.c (eBBlockFromiCode): added new parameter emitWarnings
513         in call of computeLiveRanges()
514         * support/regression/tests/bug-895992.c: added
515         * support/regression/tests/bug-971834.c: added
516         * support/valdiag/tests/bug-895992.c: added
517         * support/valdiag/tests/bug-971834.c: added
518
519 2005-12-18 Raphael Neider <rneider AT web.de>
520
521         * src/pic16/gen.c: added IS_DIRECT macro for "direct" operands,
522           (genUnpackBits): improved code for direct operands,
523           (genPackBits): improved code for literal assignment to bitfields
524             and for direct destination operands (no FSR indirection),
525             prevented redundant AND, fixes #1362800,
526           (AccLsh): added parameter to disable masking of the result
527         * src/pic16/pcode.c (pic16_safepCodeUnlink): fixed to work with
528           skip instructions with side-effects (like incfsz),
529           (pic16_pCodeIsAlive): suppress verbose output unless pcode_verbose,
530         * src/pic16/pcoderegs.c (RemoveRegsFromSet): removed annoying warning
531         * device/lib/pic16/Makefile.common.in: added --asm=@GPASM@ to CC,
532           fixes #1375263
533
534 2005-12-11 Bernhard Held <bernhard AT bernhardheld.de>
535
536         * src/SDCCicode.c (geniCodeAssign): fixed bug 11369874, don't use
537         volatile variables as spill location
538
539 2005-12-10 Bernhard Held <bernhard AT bernhardheld.de>
540
541         * src/SDCCcse.c (findCheaperOp): fixed bug 1376320, copy signedness to
542         replacing literals
543         * support/regression/tests/bug-1376320.c: added
544
545 2005-12-08 Raphael Neider <rneider AT web.de>
546
547         * src/pic/device.c: renamed is_shared to pic14_is_shared
548         * src/pic/gen.c (genIfx): re-enabled handling of sbits
549         * src/pic/glue.c (emitSymbolToFile): added workaround for sbits,
550           (is_valid_identifier): added for above workaround
551
552 2005-12-07 Maarten Brock <sourceforge.brock AT dse.nl>
553
554         * device/lib/Makefile.in: fixed to enable port-specific-objects
555         * device/lib/ds390/i2c390.c (BitOutI2C): optimized by making bout unsigned
556           char, thanks Hubert Sack
557         * doc/sdccman.lyx: documented --xstack-loc,
558           elaborated a bit more on interrupts and pitfalls,
559           removed "setjmp/longjmp unsupported",
560           documented some unsupported C99 features
561         * src/SDCCmain.c (linkEdit): adapted default lib path for --stack-auto
562         * src/SDCCpeeph.c (readRules): inserted patch 1367130 for finding missing
563           if, thanks Hubert Sack
564         * src/mcs51/gen.c (genEndFunction): enabled "pop psw" for regbank 0 isr
565         * support/regression/Makefile.in: test-mcs51-stack-auto no longer needs to
566           make make_library
567         * support/regression/get_ticks.py: new, get cpu cycles and code size, so
568           regression tests can report resource usage (rfe 700441)
569         * support/regression/collate-results.py: report resource usage
570         * support/regression/ports/ds390/spec.mk,
571         * support/regression/ports/hc08/spec.mk,
572         * support/regression/ports/mcs51/spec.mk,
573         * support/regression/ports/ucz80/spec.mk: run sim output through get_ticks
574         * support/regression/ports/ds390/uCsim.cmd,
575         * support/regression/ports/hc08/uCsim.cmd,
576         * support/regression/ports/mcs51/uCsim.cmd,
577         * support/regression/ports/ucz80/uCsim.cmd: inserted "state" to report time
578         * support/regression/ports/mcs51-stack-auto/spec.mk: no need to build the
579           library, use the default one
580         * support/regression/ports/mcs51-xstack-auto/spec.mk: inserted rules for
581           building the library
582
583 2005-12-06 Maarten Brock <sourceforge.brock AT dse.nl>
584
585         * config.dsp: added dependency on .version and configure_vc.awk
586         * device/include/setjmp.h: updated for --stack-auto and --xstack
587         * device/include/mcs51/at89c51snd1c.h: corrected line endings
588         * device/include/mcs51/XC866.h: added, thanks Llewellyn van Zyl
589         * device/lib/_setjmp.c: updated for --stack-auto and --xstack
590         * device/lib/libsdcc.lib: added _setjmp
591         * src/SDCCast.c (createIvalCharPtr): fixed warnings,
592           (decorateType): fixed bug 1372851,
593           (optimizeGetHbit): fixed warning
594         * src/SDCCglue.c (printIvalChar, printIvalArray): adapted for flexible
595           array initialisation
596         * support/regression/tests/bug1057979.c: added test for bug 1358192
597         * support/regression/tests/setjmp.c: added, test for setjmp/longjmp
598
599 2005-12-03 Borut Razem <borut.razem AT siol.net>
600
601         * support/scripts/sdcc.nsi: added /SOLID option to "SetCompressor lzma"
602           command since the NSIS was upgraded to version 2.11 on CF x86-linux2
603
604 2005-11-29 Bernhard Held <bernhard AT bernhardheld.de>
605
606         * src/SDCCast.c (createIvalStruct, createIvalArray, createIvalPtr,
607         createIval): implement symbol independant "flexible array member",
608         (createIvalCharPtr): implemented flexible array initialisation with a
609         string
610         * src/SDCCsymt.c (copyStruct): removed,
611         (getSize): fixed misleading comment,
612         (getAllocSize): removed, the additional allocation size is now in
613         sym->flexArrayLength,
614         (checkStructFlexArray): new, syntax checks for flexible array members,
615         (compStructSize): added syntax checks for "flexible array members"
616         (copyStruct): removed,
617         (copyLinkChain): removed inefficient fix for bug 770487
618         * src/SDCCglue.c (emitRegularMap): getAllocSize has been removed
619         * src/SDCCsymt.h: added structdef.b_flexArrayMember and
620         symbol->flexArrayLength
621         * src/SDCCerr.c,
622         * src/SDCCerr.h: added W_INVALID_FLEXARRAY, W_C89_NO_FLEXARRAY,
623         E_FLEXARRAY_NOTATEND and E_FLEXARRAY_INEMPTYSTRCT
624         * support/regression/tests/structflexarray.c: added
625         * support/valdiag/tests/structflexiblearray.c: added
626
627 2005-11-29 Bernhard Held <bernhard AT bernhardheld.de>
628
629         * src/SDCCast.c (decorateType): fixed bug 1368489
630         * support/Util/SDCCerr.c,
631         * support/Util/SDCCerr.h: added warning W_CMP_SU_CHAR
632
633 2005-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
634
635         * device/include/mcs51/at89c51snd1c.h: added file submitted by
636           Weston T. Schmidt <schmidtw AT users.sourceforge.net>, patch #1368001
637
638 2005-11-27 Borut Razem <borut.razem AT siol.net>
639
640         * support/cpp2/cppinit.c, support/cpp2/cpplib.h, support/cpp2/mkdeps.c,
641           support/cpp2/mkdeps.h: added command line option
642           -obj-ext=<extension> to SDCPP to define object file externion, used
643           for generation of make dependencies (-M)
644         * src/SDCCmain.c: pass -obj-ext=<extension> to SDCPP
645
646 2005-11-26 Borut Razem <borut.razem AT siol.net>
647
648         * support/scripts/sdcc.nsi: added small-stack-auto libraries,
649           added missing device/lib/mcs51/crt*.asm, pic and pic16 sources,
650           added pic and pic16 libraries
651
652 2005-11-26 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
653
654         * device/include/float.h: Corrected typo in prototype of __fsgt
655
656 2005-11-25 Borut Razem <borut.razem AT siol.net>
657
658         * sdcc/device/lib/Makefile.in, sdcc/device/lib/incl.mk:
659           added creation of model-mcs51-stack-auto libraries
660
661 2005-11-24 Bernhard Held <bernhard AT bernhardheld.de>
662
663         * src/SDCCsymt.c (copyLinkChain): fixed bug 770487, copy structdef
664         and fields-list too
665         * src/SDCCast.c (createIvalArray): removed obsolete comment
666
667 2005-11-24 Borut Razem <borut.razem AT siol.net>
668
669         * sdcc/device/lib/Makefile.in: remove all unnecessary files, 2nd try...,
670           added missing device/lib/mcs51/crt*.asm sources
671
672 2005-11-23 Bernhard Held <bernhard AT bernhardheld.de>
673
674         * src/SDCCast.c (createIvalCharPtr): fixed bug 1348271
675
676 2005-11-22 Maarten Brock <sourceforge.brock AT dse.nl>
677
678         * device/lib/_fs2schar.c,
679         * device/lib/_fs2sint.c,
680         * device/lib/_fs2slong.c: optimized inline asm
681
682 2005-11-21 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
683
684         * device/lib/_fs2slong.c, device/lib/_fs2sint.c, device/lib/_fs2char.c:
685           Better handling of floats between -1.0 and 0.0.
686
687 2005-11-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
688
689         * src/mcs51/peeph.def: added missing "if"s as noted by Hubert Sack.
690           (the missing "if"s prohibited removal of redundant labels)
691
692 2005-11-19 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
693
694         * device/lib/_fs2slong.c, device/lib/_fs2sint.c, device/lib/_fs2char.c:
695           Properly convert floats between -1.0 and 0.0 to long, int, and char
696           types (max integer value of negative floats tends to zero).
697         * device/lib/modff.c, device/lib/ceilf.c, device/lib/floorf.c:
698           Removed changes made so to work properly with floats between
699           -1.0 and 0.0, as the problem is fixed in _fs2slong.c, _fs2sint.c,
700           and _fs2char.c
701
702 2005-11-18 Bernhard Held <bernhard AT bernhardheld.de>
703
704         * src/SDCCcse.c (ReplaceOpWithCheaperOp): minor fix for debugging only
705         * src/mcs51/gen.c (genUnpackBits): better code and a fix,
706         (genCast) cosmetic change
707         * src/ds390/gen.c (genUnpackBits, ): ported from mcs51
708         * src/ds390/ralloc.c (packRegsForAssign): ported fix for bitfields
709         from mcs51
710         * support/regression/tests/bitfields (testSignedBitfields): added
711
712 2005-11-18 Borut Razem <borut.razem AT siol.net>
713
714         * sdcc/device/lib/Makefile.in: remove all unnecessary files
715         * device/lib/pic/Makefile.rules, device/lib/pic16/Makefile.subdir:
716           introduced SILENT option to make building of pic16 libraries less
717
718 2005-11-18 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
719
720         * device/lib/modff.c, device/lib/ceilf.c, device/lib/floorf.c:
721           Now they work properly with floats between -1.0 and 0.0
722         * device/lib/printf_large.c: Removed temporary patch for bug 1358192
723
724 2005-11-18 Maarten Brock <sourceforge.brock AT dse.nl>
725
726         * src/SDCCicode.c (printOperand): added missing else
727
728 2005-11-18 Bernhard Held <bernhard AT bernhardheld.de>
729
730         * src/SDCCsymt.c (computeType): fixed bug 1358192: added missing else,
731         reformatted for better readability
732         * src/mcs51/gen.c (genUnpackBits): initial, incomplete support for
733         signed bitfields
734
735 2005-11-17 Borut Razem <borut.razem AT siol.net>
736
737         * device/lib/pic16/Makefile.rules, device/lib/pic16/Makefile.subdir:
738           introduced SILENT option to make building of pic16 libraries less
739           verbose - used for nightly snapshot build
740         * doc/sdccman.lyx: documented that SDCDB and ucSim are currently not
741           available on Win32 platforms.
742         * sdcc/device/lib/Makefile.in: added library sources for mcs51, small,
743           medium, large, pic and pic16
744
745 2005-11-16 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
746
747         * device/lib/printf_large.c: Temporary patch for bug 1358192:
748           printf("%f"...) sets fraction to zero.
749
750 2005-11-16 Raphael Neider <rneider AT web.de>
751
752         * src/pic/pcode.c (LinkFlow): handle empty flows correctly,
753           fixes #1357221
754         * src/pic/gen.c (genIfx): implemented for CARRY bit
755         * src/pic16/gen.c (genAssign,genCast): fixed assigning/casting
756           to generic pointers, fixes #1357332,
757           (pic16_movLit2f): NEW,
758           (pic16_storeForReturn,genDataPointerSet): use pic16_movLit2f
759
760 2005-11-14 Maarten Brock <sourceforge.brock AT dse.nl>
761
762         * src/SDCCmain.c (parseCmdLine): fixed bug 1356800, thanks rsudjian
763
764 2005-11-11 Raphael Neider <rneider AT web.de>
765
766         * src/pic/gen.c: handle FPOINTERS like POINTERS everywhere
767         * src/pic16/gen.c (pic16_derefPtr): now works for non-pointers as well,
768           compute pointer's type from operand,
769           (genUnpackBits,genPackBits): handle FPOINTERS correctly, re-indented,
770           improved single bit reads, fixes bug #1353379
771
772 2005-11-09 Borut Razem <borut.razem AT siol.net>
773
774         * support/scripts/sdcc.nsi: added lib/pic to the package
775
776 2005-11-08 Maarten Brock <sourceforge.brock AT dse.nl>
777
778         * src/SDCCval.c (valUnaryPM): fixed bug 1350699
779
780 2005-11-06 Maarten Brock <sourceforge.brock AT dse.nl>
781
782         * support/regression/tests/bug1348008.c: added
783         * src/mcs51/gen.c (saveRBank, unsaveRBank): fixed bug 1348008
784         * support/regression/tests/bug1337835.c: updated comment
785
786 2005-11-06 Borut Razem <borut.razem AT siol.net>
787
788         * sim/ucsim/error.cc, sim/ucsim/errorcl.h,
789           sim/ucsim/sim.src/stack.cc, sim/ucsim/sim.src/stackcl.h,
790           sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
791           sim/ucsim/sim.src/mem.cc, sim/ucsim/sim.src/memcl.h,
792           sim/ucsim/cmd.src/set.cc, sim/ucsim/cmd.src/show.cc:
793           dynamic construction of cl_error_class and derivates - 2.nd try
794
795 2005-11-05 Borut Razem <borut.razem AT siol.net>
796
797         * sim/ucsim/sim.src/error.cc: fixed uninitialized class member variable
798           bug, which caused Bus Errors on sparc solaris
799
800 2005-11-04 Borut Razem <borut.razem AT siol.net>
801
802         * sim/ucsim/error.cc, sim/ucsim/errorcl.h,
803           sim/ucsim/sim.src/stack.cc, sim/ucsim/sim.src/stackcl.h,
804           sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
805           sim/ucsim/sim.src/mem.cc, sim/ucsim/sim.src/memcl.h,
806           sim/ucsim/cmd.src/cmdconf.cc: dynamic construction of cl_error_class
807           and derivates to resolve the initialization problem on OSX
808
809 2005-11-02 Borut Razem <borut.razem AT siol.net>
810
811         * sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/newcmd.cc:
812           corrected typo - #include <winsock2.h>
813
814 2005-11-02 Maarten Brock <sourceforge.brock AT dse.nl>
815
816         * src/asm.c (printILine): always close tmpFile, thanks Beau E. Cox,
817           (_asxxxx_mapping): added org directive for future enhancements
818
819 2005-11-01 Borut Razem <borut.razem AT siol.net>
820
821         * sim/ucsim/app.cc, sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/newcmd.cc:
822           enabled sockets on WIN32
823         * sim/ucsim/cmd.src/newcmd.cc: fixed bug with uninitialized variables
824
825 2005-10-31 Borut Razem <borut.razem AT siol.net>
826
827         * support/regression/generate-cases.py: escape backslashes in {testcase}:
828           WIN32 backslash path delimiters should be escaped when used in C strings
829         * support/regression/tests/bitfields.c: exclude failing assertions for
830           __CYGWIN32__ and __MINGW32__ hosts
831
832 2005-10-30 Borut Razem <borut.razem AT siol.net>
833
834         * src/SDCCutil.c: corrected double comparison typo
835
836 2005-10-30 Maarten Brock <sourceforge.brock AT dse.nl>
837
838         * device/lib/medium/Makefile: added for new memory model medium
839         * device/include/asm/mcs51/features.h: updated for medium/pdata
840         * device/include/mcs51/c8051f120.h: added sfr16/sfr32 definitions,
841           added Multiply & Accumulate sbit's and MAC0_PAGE define
842         * device/include/mcs51/c8051f300.h: added sfr16 definitions
843         * device/include/mcs51/c8051f310.h: added sfr16 definitions
844         * device/lib/_mullong.c: update for medium model
845         * device/lib/incl.mk: added medium model
846         * doc/sdccman.lyx: documented medium model
847         * src/SDCCast.c (isBitAndPow2): simplified using updated powof2
848         * src/SDCCicode.c (geniCodeMultiply, geniCodeDivision): use updated powof2
849         * src/SDCCmain.c (optionsTable, linkEdit): enabled medium model
850         * src/SDCCmem.c (allocIntoSeg): set iaccess for pdata symbols,
851           (allocParms): set SCLS and OCLS to pdata for medium model
852         * src/SDCCsymt.c (processFuncArgs): use default_local_map and set iaccess
853           for pdata,
854           (powof2): return <0 if not power of 2
855         * src/avr/gen.c (genBitWise): use updated powof2
856         * src/mcs51/gen.c (genMinusDec): use acc if necessary,
857           (shiftR2Left2Result): small optimization in setup, save acc when storing,
858           (shiftLLeftOrResult): use B if necessary
859         * src/mcs51/main.c (_mcs51_finaliseOptions, mcs51_port): added medium model
860         * src/mcs51/peeph.def: renamed 226 to 226.b, added 226.a
861         * src/pic/main.c (_pic14_do_link): made void parameter list explicit
862         * support/regression/Makefile.in: added test-mcs51-medium
863         * support/regression/ports/mcs51-medium/spec.mk: added to test medium model
864
865 2005-10-28 Bernhard Held <bernhard AT bernhardheld.de>
866
867         * src/SDCCsymt.c (compStructSize): make bitfields without (un)signed
868         specifier unsigned
869         * device/lib/time.c (mktime): fixed bug 1334315
870
871 2005-10-28 Raphael Neider <rneider AT web.de>
872
873         * device/include/pic/p16f_common.inc: added common declarations
874         * src/pic/ralloc.c (initStack): moved regs *r to block start for Alpha
875
876 2005-10-27 Maarten Brock <sourceforge.brock AT dse.nl>
877
878         * src/mcs51/gen.c (getTempRegs): return 0 if not enough registers found,
879           (aopPutUsesAcc): added to predict accumulator use,
880           (assignResultValue): save acc if necessary,
881           (genMinusDec): store result if indirectly addressed,
882           (genDivOneByte):  save acc if necessary,
883           (movLeft2Result): bugfix if left already in acc,
884           (genAnd, genOr, genXor, shiftL2Left2Result, shiftR2Left2Result): pay more
885             attention to accumulator use (esp. pdata),
886           (genReceive): receive pdata correctly
887         * src/SDCCicode.c (isOperandInPagedSpace): added to detect pdata operands
888         * src/SDCCicode.h: added isOperandInPagedSpace prototype
889
890 2005-10-27 Raphael Neider <rneider AT web.de>
891
892         * doc/sdccman.lyx: corrected version (should be 2.5.4 not 2.5.5)
893
894 2005-10-27 Raphael Neider <rneider AT web.de>
895
896         * .version: changed version to 2.5.4
897         * doc/sdccman.lyx: changed version to 2.5.4, added some remarks to PIC14
898         * device/lib/pic/libsdcc/{_mulint.c,_mullong.c}: use unsigned literals,
899           (_divschar.c,divuchar.c,_mulchar.c,_modschar.c,_moduchar): NEW,
900             arithmetics support routines
901         * device/lib/pic/Makefile.rules: have assembler sources preprocessed
902         * device/lib/Makefile.in: also create installdir for pic
903
904         * src/SDCCopt.c (cnvToFcall): mark support routines `extern' for
905           pic14 port as well
906         * src/pic/device.c (dump_sfr): rewritten to delegate register
907           placement to the linker (use `extern sym' rather than sym EQU addr),
908           (validAddress): fixed to check last specified address
909         * src/pic/gen.c (aopForSym): added code to deal with array (useless?),
910           (popGetLit): truncate literal value to 8 bit,
911           (popGet): moved assert to more appropriate place
912           (popGetExternal): create pCode operand from and mark the according
913             symbol as being `extern'
914           (popGetAddr): added sanity check on immediate's offset, provide
915             GPOINTER tag on demand
916           (aopPut): fixed for immediates,
917           (mov2w_op): move operand's address or contents to WREG (depending on
918             operand type), safer variant of mov2w,
919           (movwf,call_libraryfunc): NEW, handy abbreviations,
920           (get_argument_pcop,get_return_val_pcop,pass_argument,
921           get_returnvalue): interface for accessing function parameters and
922             return values,
923           (assignResultValuei,genRet): use new parameter/return value interface
924           (pic14_getDataSize): back to old version handling generic pointers,
925           (pic14_toBoolean,genNot,genCpl,genCmpEq,genOrOp): heavily rewritten,
926             provided implementation and/or fixed old one,
927           (genMultOneByte,genDivOneByte,genModOneByte): implemented as library
928             calls, removed legacy 8051 reference code
929           (AccLsh,AccRsh): rewritten and fixed to deal with signed operands
930           (loadSignToC): NEW, move the operands sign bit to CARRY,
931           (genGenericShift): NEW, replaces genLeftShift, genRightShift and
932             genRightShiftSigned, accepts negative shift counts,
933           (setup_fsr): load FSR and adjust IRP (indirect memory access),
934           (emitPtrByteGet,emitPtrByteSet): rewritten, now works with
935             generic pointers, __data pointers and __code pointers,
936           (genUnpackBits,genPackBits): rewritten to work with generic pointers
937             and signed bitfields, limit bitfields to 8 bit,
938           (genDataPointerGet): fixed number of bytes read,
939           (genGenPointerGet,genConstPointerGet): fixed bitfield access,
940           (genPointerGet,genPointerSet): fixed handling of __code pointers,
941             pointers to constant data are no longer assumed to point to __code
942             space, removed invalid pointer types,
943           (bitpatternFromVal): retrieve the PICs representation of an integer
944             or float literal,
945           (genDataPointerSet): fixed assigning to po_immediate operands,
946           (genGenPointerSet): implemented as library call,
947           (genIfx): fixed incorrect condition,
948           (genAddrOf): limit generic pointers' addresses to 2 bytes,
949             provide GPOINTER tag according to destination's storage class,
950           (genCast): added code to handle casting to generic pointers, added
951             sign-/zero extension of the result
952           (aop_isLitLike,op_isLitLike): fixed handling of immediates
953         * src/pic/gen.h: added macros to access IRP bit in STATUS register
954         * src/pic/genarith.c (genAddLit): use min(result's,left's) size, sign
955           extend the result
956         * src/pic/glue.c (is_shared_address,is_shared): check whether a given
957           address/register resides in the shared banks
958           (emitSymbolToFile): improved to handle global and `pinned' symbols,
959             put all variables into separate sections (have the linker arrange
960             them)
961           (picglue): put init code and interrupt handlers in separate sections
962         * src/pic/main.c: added port specific options table, modified to PORT
963           structure to make GPOINTERs 3 byte, added pic14_options
964           (_pic14_do_link): private linking routine (update paths to libraries,
965             add libsdcc.lib by default)
966         * src/pic/main.h: declare pic14_options
967         * src/pic/pcode.c: fixed instructions i/o relations,
968           (RegCond): reverted to correct version,
969           (newpCodeOpLit): truncate literals to 8 bit,
970           (genericPrint): added debug output,
971           (getRegFromInstruction): fixed for various operand types, simplified
972           (BuildFlow): fixed broken handling of isntructions with labels
973           (LinkFlow): start at last instruction in flow (skip trailing comments),
974             pass the flow on to the next instruction after CALL
975           (pCodeReplace): NEW, replace a pCode and move meta data to the new one
976           (insertPCodeInstruction): fixed inserting after a skip instruction,
977           (DoBankSelect): fixed for labeled instructions
978           (OptimizepBlock): honor --nopeep switch
979           (AnalyzeFlow,ReuseReg): prevent crash on source files with no function
980         * src/pic/pcodepeep.c (pCodePeepMatchRule): prevent NULL pointer accesses
981         * src/pic/pcoderegs.c (regIsLocal): NEW, check visibility of a register
982           (pCodeOptime2pCodes): allow disabling this optimization via
983             --no-pcode-opt due seldomly occuring bugs, fixed some conditions
984             but is still buggy), started implementation of a dataflow based
985             pCode optimization (CSE + dead code elimination)
986           (pCodeRegMapLiveRangesInFlow): removed bogus inCond
987         * src/pic/ralloc.c (initStack): renamed stack registers to STK%d, the new
988           names are independant of the stack location and therefore portable across
989           devices
990
991 2005-10-27 Maarten Brock <sourceforge.brock AT dse.nl>
992
993         * src/mcs51/ralloc.c (bitType): added to detect bit variables,
994           (selectSpil): fixed bug 1337835 by not spilling bit variables
995         * support/regression/tests/bug1337835.c: added test for this bug
996         * src/mcs51/peeph.def: restart after rule 3.c,
997           addded rules 263.x to optimize loading constants
998
999 2005-10-26 Raphael Neider <rneider AT web.de>
1000
1001         * src/SDCCsymt.c (compStructSize): allow signed bitfields for PIC ports
1002         * src/pic16/gen.c (genUnpackBits): support signed bitfields,
1003           (genAssign): emit warning when casting literals to generic pointer
1004             type, also applies when taking the address of a fixed variable,
1005           (genCast): improved casting to generic pointers
1006         * src/pic16/glue.c (pic16emitStaticSeg): fixed(?) handling of fixed
1007           extern variables, added verbose error message
1008         * device/include/pic16/{string.h,errno.h}: added #pragma library c
1009
1010 2005-10-26 Bernhard Held <bernhard AT bernhardheld.de>
1011
1012         * src/mcs51/gen.c (genMinus): fixed bug 1270906: reverse subtraction,
1013         carry must be complemented too
1014         * src/mcs51/peeph.def: addded rule 262 to remove double cpl c, which
1015         could be emitted by genMinus
1016         * src/SDCCval.c (constVal): fixed bug 1305065
1017
1018 2005-10-25 Bernhard Held <bernhard AT bernhardheld.de>
1019
1020         * src/SDCCast.c (addCast): added promotion for bit variables
1021         (decorateType): emit W_COMPLEMENT before the problem vanishes behind
1022         promotion casts + optimisation
1023         (optimizeGetWord): fix warning 'i' might be used uninitialized
1024         * src/mcs51/gen.c (genCpl): removed W_COMPLEMENT
1025         * src/ds390/gen.c (genCpl): removed W_COMPLEMENT
1026
1027 2005-10-24 Bernhard Held <bernhard AT bernhardheld.de>
1028
1029         * src/SDCCicode.c (ast2iCode): reverted to 1.224 because of regression:
1030         all chars are promoted to int; promotion should be handled in SDCCast.c
1031
1032 2005-10-15 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
1033
1034         * device/lib/_strcmp.c: Fixed bug 1326457
1035
1036 2005-10-11 Raphael Neider <rneider AT web.de>
1037
1038         * device/lib/pic16/libio/i2c.ignore: added 1320, fixes broken builds
1039         * device/lib/pic16/libdev/pic18f1320.c: added 1320's device library
1040
1041 2005-10-05 Maarten Brock <sourceforge.brock AT dse.nl>
1042
1043         * src/SDCC.y (AT): fixed bug with sfr32 addresses when built with GCC
1044         * support/regression/tests/sfr16.c: added test for the sfr32 bug
1045
1046 2005-10-04 Raphael Neider <rneider AT web.de>
1047
1048         * device/include/pic16/pic18fregs.h, src/pic16/devices.inc,
1049           device/lib/pic16/pics.all: added pic18f1320
1050         * src/pic16/pcode.c (mnem2key): fixed prototype's argument mismatch
1051
1052 2005-09-30 Raphael Neider <rneider AT web.de>
1053
1054         * src/pic16/device.c (Pics16[]): moved device descriptions to devices.inc
1055         * src/pic16/devices.inc: NEW, provides device descriptions
1056         * src/pic16/gen.c (genInline): fixed handling of ';'-comments
1057
1058 2005-09-26 Maarten Brock <sourceforge.brock AT dse.nl>
1059
1060         * src/SDCCicode.c (operandOperation): added GETABIT, GETBYTE, GETWORD and
1061           GETHBIT
1062
1063 2005-09-25 Maarten Brock <sourceforge.brock AT dse.nl>
1064
1065         * doc/sdccman.lyx: updated Highest Order Bit documentation,
1066           documented Any Order Bit, Higher Order Byte and Higher Order Word
1067         * src/SDCC.y: added tokens GETABIT, GETBYTE, GETWORD
1068         * src/SDCCast.c (optimizeGetHbit): updated to also accept bool=expr&(1<<n),
1069           (optimizeGetAbit): new, to get any bit, not only the high bit,
1070           (optimizeGetByte): new, to get a byte from a (long) int: expr>>(8*n),
1071           (optimizeGetWord): new, to get a word from a long int: expr>>(8*n),
1072           (isConformingBody): also check GETABIT, GETBYTE, GETWORD,
1073           (decorateType): '&': also try GETABIT, GETBYTE, GETWORD optimization,
1074             RIGHT_OP: also try GETBYTE, GETWORD optimization,
1075             GETABIT, GETBYTE, GETWORD: decorate them,
1076           (isShiftRightLitVal, isBitAndPowOf2): new helper functions,
1077           (ast_print): added GETABIT, GETBYTE, GETWORD
1078         * src/SDCCcse.c (isSignedOp): added GETABIT, GETBYTE, GETWORD
1079         * src/SDCCicode.c (codeTable): added GETABIT, GETBYTE, GETWORD,
1080           (geniCodeBinary): new generic binary icode,
1081           (ast2iCode): added GETABIT, GETBYTE, GETWORD
1082         * src/port.h: updated comment for PORT.hasExtBitOp
1083         * src/mcs51/gen.c (genGetAbit): new, to get any single bit,
1084           (genGetByte): new, to get a single byte,
1085           (genGetWord): new, to get a word from a long,
1086           (gen51Code): added GETABIT, GETBYTE, GETWORD
1087         * src/mcs51/main.c (hasExtBitOp): added GETABIT, GETBYTE, GETWORD
1088
1089 2005-09-23 Raphael Neider <rneider AT web.de>
1090
1091         * configure.in, configure: have device/lib/pic configured
1092         * device/lib/Makefile.in: added model-pic14
1093         * device/lib/clean.mk: added pic/ to clean rule
1094         * device/lib/pic: added rudimentary pic14 library providing support
1095           functions for multiplication/division/generic pointer access
1096         * src/SDCCopt.c (convilong): mark support functions as extern
1097           for pic14 port as well
1098         * src/pic/gen.c (genMult): added assertions,
1099           (genpic14Code): emit warning on unhandled iCodes
1100         * src/pic/main.c (_hasNativeMulFor): return true only for 8x8 bit
1101         * src/pic/pcode.c (pCodeOpCopy),
1102         * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): fixed handling of various
1103           pCodeOpReg-subtypes (PO_{STATUS,INTCON,PCL,PCLATH,PCLATU,BSR,
1104           SFR_REGISTER}), made safe for future extensions
1105         * src/pic16/pcode.c (pic16_safepCodeUnlink): allow for removal of
1106           instructions even if preceeded by SKIP instructions (also remove
1107           them); removed unused code
1108         * src/pic16/pcode.h: added arg2 to pCodeOpLit to match pCodeOpLit2,
1109           prevents leaving parts of the structure uninitialized after copying
1110
1111 2005-09-22 Maarten Brock <sourceforge.brock AT dse.nl>
1112
1113         * src/mcs51/gen.c (genMinus): fix for undetected bug introduced 3 months
1114           ago by me
1115         * support/regression/tests/addsub.c: added test for the bug
1116
1117 2005-09-21 Raphael Neider <rneider AT web.de>
1118
1119         * device/include/pic16/pic18f1220.h,
1120           device/lib/pic16/libdev/pic18f1220.c: added ECCPAS sfr and bitfield
1121         * device/lib/pic16/Makefile.rules: added missing opening paren
1122         * src/pic16/gen.c (pic16_genNot,pic16_genCpl): removed as these
1123           are provided in genutils.c,
1124           (genUminusFloat,genUminus,genCmpEq): added asserts on different
1125           operand/result sizes,
1126           (genCmp): assert on NULL pointers first, then check deref'ed values
1127         * src/pic16/genutils.c (pic16_genCpl): fixed for different operand/
1128           result size
1129
1130 2005-09-18 Raphael Neider <rneider AT web.de>
1131
1132         * src/pic16/gen.c (genFarPointerGet,genFarPointerSet): removed
1133           as these are now unused,
1134           (genPointerGet,genPointerSet): handle FPOINTERs like POINTERs
1135         * src/pic16/pcode.c (pic16_symIsSpecial): assume REG_TMPs to be
1136           local, avoids uninitialized pointer dereference on r->name
1137         * src/pic16/ralloc.c (newReg): fixed indentation
1138
1139 2005-09-13 Maarten Brock <sourceforge.brock AT dse.nl>
1140
1141         * src/SDCCval.c (constVal): fixed bug 730366
1142         * support/Util/SDCCerr.c,
1143         * support/Util/SDCCerr.h: added warning W_INVALID_INT_CONST
1144
1145 2005-09-10 Maarten Brock <sourceforge.brock AT dse.nl>
1146
1147         * as/mcs51/lkmem.c (summary2): fixed report for absolute areas (bug 1210220)
1148
1149 2005-09-09 Maarten Brock <sourceforge.brock AT dse.nl>
1150
1151         * src/mcs51/peeph.def (241.x): fixed bug when comparing generic pointers
1152
1153 2005-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
1154
1155         * as/hc08/lkaomf51.c (OutputName): made name unsigned char,
1156           (hex2dec): made hex_digit unsigned char, removed ascii dependance
1157         * as/mcs51/lkaomf51.c (OutputName): made name unsigned char,
1158           (hex2dec): made hex_digit unsigned char, removed ascii dependance
1159         * as/mcs51/lkarea.c (lnkarea2): sort absolute areas to the front
1160         * packihx/packihx.c (hexDigit): made c unsigned char
1161         * as/mcs51/lklibr.c (fndsym),
1162         * link/z80/lkgb.c (gb),
1163         * link/z80/lklibr.c (fndsym),
1164         * link/z80/lkrloc.c (relr),
1165         * sim/ucsim/libltdl/ltdl.c (load_deplibs, try_dlopen),
1166         * src/SDCC.lex (checkCurrFile, process_pragma),
1167         * src/SDCCglue.c (spacesToUnderscores),
1168         * src/SDCCmain.c (setParseWithComma, processFile),
1169         * src/asm.c (tvsprintf, printCLine),
1170         * src/avr/gen.c (emitcode, aopPut),
1171         * src/ds390/gen.c (emitcode),
1172         * src/hc08/gen.c (emitcode, emitinline),
1173         * src/mcs51/gen.c (emitcode, genInline),
1174         * src/pic/pcodepeep.c (cvt_extract_destination, cvt_extract_status,
1175           tokenizeLineNode),
1176         * src/pic/ralloc.c (debugLog),
1177         * src/pic16/pcodepeep.c (cvt_extract_destination, cvt_extract_status,
1178           tokenizeLineNode),
1179         * src/pic16/ralloc.c (debugLog),
1180         * src/z80/main.c (_process_pragma):
1181            made all ctype.h function calls safe
1182         * src/SDCCopt.c: include math.h for fabs
1183         * src/SDCCpeeph.c: added macros ISCHARDIGIT, ISCHARSPACE and ISCHARALNUM
1184           and used them throughout the code to make ctype.h function calls safe
1185         * src/ds390/main.c (asmLineNodeFromLineNode),
1186         * src/mcs51/main.c (asmLineNodeFromLineNode): made p unsigned char*
1187         * src/pic/gen.c (DEBUGpic14_emitcode, pic14_emitcode): made lbp
1188            unsigned char*
1189         * src/pic/pcode.c (mnem2key): made mnem unsigned char*,
1190           (newpCodeAsmDir): made ctype.h function calls safe
1191         * src/pic16/gen.c (pic16_emitpcomment, DEBUGpic16_emitcode,
1192           pic16_emitcode):  made lbp unsigned char*
1193         * src/pic16/pcode.c (mnem2key): made mnem unsigned char*,
1194           (pic16_newpCodeAsmDir): made ctype.h function calls safe
1195         * src/xa51/gen.c (emitcode),
1196         * src/z80/gen.c (_emit2): made lbp unsigned char*
1197         * support/Util/MySystem.c (split_command): made cmd_line and p unsigned
1198            char*
1199
1200 2005-09-05 Raphael Neider <rneider AT web.de>
1201
1202         * src/pic16/ralloc.c (pic16_allocDirReg): use device specific
1203           access bank splitpoint
1204
1205 2005-09-05 Raphael Neider <rneider AT web.de>
1206
1207         * device/lib/pic16/libc/Makefile: added (missing) string to SUBDIRS
1208
1209 2005-09-03 Maarten Brock <sourceforge.brock AT dse.nl>
1210
1211         * .version: changed to version 2.5.3
1212         * doc/sdccman.lyx: changed version to 2.5.3,
1213           documented --codeseg and --constseg and pragma codeseg and constseg,
1214           documented bit parameters (reentrant) and bit returning
1215         * src/SDCCicode.c (geniCodeReceive): fixed (possible) bug generating
1216            currFunc->recvSize, but is this ok for all ports?
1217           (ast2iCode): result of ~ on unsigned char must be cast to int for
1218            bool to work
1219         * src/SDCCmem.c (allocGlobal, allocLocal): don't put bit returning
1220           function pointers in bit space
1221         * src/SDCCsymt.c (checkSClass): allow bit returning function pointers,
1222           (processFuncArgs): call port.reg_parm() with reentrancy info
1223         * src/port.h,
1224         * src/avr/main.c,
1225         * src/ds390/main.c,
1226         * src/hc08/main.c,
1227         * src/pic/main.c,
1228         * src/pic16/main.c,
1229         * src/xa51/main.c,
1230         * src/z80/main.c: port.reg_parm prototype extended with
1231           "bool reentrant" parameter
1232         * src/mcs51/main.c (_mcs51_regparm): use parameter reentrant instead of
1233           options.stackAuto for allocating bit register parameters
1234         * src/mcs51/gen.c (genNot): optimized complementing direct bit,
1235           (genSend): set BitBankUsed if it is,
1236           (selectRegBank): factored out of genCall for use in genPcall,
1237           (genCall): removed redundant dtype assignmen, use selectRegBank,
1238           (genPcall): handle returning in Carry properly, save in F0 if needed,
1239           (genReceive): handle bit register parameters
1240         * src/mcs51/ralloc.c (updateRegUsage): update BitBankUsed along the way,
1241           (mcs51_assignRegisters): enable bit registers for all reentrant
1242            functions and don't set BitBankUsed unconditionally
1243         * src/mcs51/peeph.def (177.d): fixed bug if %2==%3
1244         * support/regression/tests/bitvars.c: enable tests for SDCC_STACK_AUTO
1245         * support/regression/tests/funptrs.c: added tests for BOOL and for return
1246
1247 2005-08-27 Borut Razem <borut.razem AT siol.net>
1248
1249         * device/lib/Makefile.in: cp on sparc-solaris (SunOS) and on
1250         ppc-osx (Darwin) does not support -u option. It seems that it is
1251         supported only on Linux - GNU cp
1252
1253 2005-08-25 Borut Razem <borut.razem AT siol.net>
1254
1255         * sim/ucsim/gui.src/serio.src/Makefile.in,
1256           sim/ucsim/s51.src/Makefile.in, sim/ucsim/avr.src/Makefile.in,
1257           sim/ucsim/z80.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
1258           sim/ucsim/xa.src/Makefile.in: install -s changed to 2 steps:
1259           install and strip, since the strip at /usr/ccs/bin should be used
1260           on solaris
1261
1262 2005-08-24 Borut Razem <borut.razem AT siol.net>
1263
1264         * clean.mk, device/lib/clean.mk: find on sparc-solaris does not support -maxdepth option
1265
1266 2005-08-23 Bernhard Held <bernhard AT bernhardheld.de>
1267
1268         * src/SDCCopt.c (convertToFcall): fixed modulus with divisors 1 and
1269         ffffffffu
1270
1271 2005-08-23 Maarten Brock <sourceforge.brock AT dse.nl>
1272
1273         * as/mcs51/aslink.h: completed lkrloc.c prototypes
1274         * as/mcs51/lkmain.c (link_main): fixed warning
1275         * device/include/stdbool.h: ds390 has no advanced bit support yet
1276         * src/SDCC.y: use SPEC_SHORT and renamed _signed to b_signed
1277         * src/SDCCsymt.c: use SPEC_SHORT and renamed _signed to b_signed
1278         * src/SDCCsymt.h (struct specifier): renamed _xxx bitfields to b_xxx
1279           and updated their macros
1280         * src/SDCCval.c (constVal): updated comment for renamed b_long
1281
1282 2005-08-22 Maarten Brock <sourceforge.brock AT dse.nl>
1283
1284         * as/mcs51/asdata.c: changed ctype['['] to BINOP
1285         * as/mcs51/asexpr.c (expr): added case '[' for bit access in bdata,
1286           (term): abused bit 15 of s_addr to indicate bit-addressable bytes,
1287           (oprio): set priority for '['
1288         * as/mcs51/aslink.h: added define R_BIT, and prototypes for adb_bit
1289            and adb_24_bit
1290         * as/mcs51/asm.h: added defines R_BIT and S_BIT
1291         * as/mcs51/lkarea.c (lnksect2): use T for seg BIT_BANK and overlay it
1292         * as/mcs51/lkdata.c: changed ctype['['] to BINOP
1293         * as/mcs51/lkmain.c (Areas51): rel2 contains 12 (=C) areas now,
1294           added overlayable BIT_BANK area
1295         * as/mcs51/lkmem.c (summary): add BIT_BANK to BSEG_BYTES in the report,
1296           (summary2): explain 'T' in legenda
1297         * as/mcs51/lkrloc.c: replaced old K&R style,
1298           (relr): added R_BIT processing,
1299           (errmsg): added "Bit-addressable relocation error",
1300           (adb_bit): added for converting from byte- to bit-addressable space,
1301           (adb_24_bit): added for converting from byte- to bit-addressable space
1302         * device/include/stdbool.h: changed BOOL to __bit for mcs51 as it can be
1303            used in reentrant functions now even as return value
1304         * device/lib/_gptrput.c (_gptrput): removed obsolete code
1305         * src/SDCCast.c (resultTypePropagate): also propagate AND_OP and OR_OP,
1306           (decorateType): case '!', GETHBIT, AND_OP, OR_OP: result in bool or char
1307         * src/SDCCglobl.h: added indicator BitBankUsed
1308         * src/SDCCglue.c (glue): emit area BIT_BANK with byte 'bits' and equ's for
1309            the bit registers b0-b7
1310         * src/SDCCicode.c (operandFromSymbol): removed IS_BITVAR check,
1311           (geniCodeCast): fixed bug 1263853,
1312           (geniCodeLogicAndOr): put result in bool or char,
1313           (geniCodeReceive): added parameter func for accessing the return type,
1314           (geniCodeFunctionBody): pass func to geniCodeReceive
1315         * src/SDCCmain.c: added indicator BitBankUsed
1316         * src/SDCCmem.c (allocLocal): explicitly set sclass for V_BIT
1317         * src/SDCCsymt.c (newBoolLink): added for creating a bool/bit,
1318           (checkSClass): don't put automatic bool/bit on stack,
1319           (checkFunction): removed check on function cannot return bit
1320         * src/SDCCsymt.h: added newBoolLink prototype
1321         * src/mcs51/gen.c (rb1regs): added bit registers,
1322           (movc): created for assigning to carry,
1323           (pushReg, popReg): created for pushing registers,
1324           (sameRegs): check both AOP_REG and AOP_CRY types,
1325           (aopOp): handle bit registers,
1326           (aopPut): optimization no self-assign,
1327           (saveRegisters): push reg->base (bits) only once for bit registers,
1328            and use pushReg,
1329           (unsaveRegisters): pop reg->base only once and use popReg,
1330           (assignResultValue): added parameter func and return in carry for bits,
1331           (genIpush): optimization no reload in A if not changed,
1332           (genSend): bit parameters in reentrant functions are passed in bit
1333            registers by first assigning to bits in B, then save registers and
1334            copy B to bits,
1335           (genCall): handle returning in Carry properly, save it in F0 if needed,
1336           (genPcall): updated assignResultValue call, this is not safe yet for bit
1337            returning function !!!
1338           (genFunction): don't generate equ's for bit registers and use pushReg,
1339           (genEndFunction): take care of bit returning functions and use popReg,
1340           (genRet): return bit in Carry,
1341           (genIfx): optimize bit registers and other directly addressable bits,
1342           (genReceive): updated assignResultValue call
1343         * src/mcs51/main.c (_mcs51_reset_regparm): added regBitParmFlg,
1344           (_mcs51_regparm): allow passing of upto 8 bit parameters in bit
1345            registers when using stack-auto
1346         * src/mcs51/ralloc.c (_G): added allBitregs,
1347           (regs8051): added the bit registers,
1348           (createStackSpil): use macro IS_BIT,
1349           (getRegBit): added to allocate a bit register, else spill,
1350           (getRegBitNoSpil): added to allocate a bit register, else a gpr,
1351           (updateRegUsage): factored out to ease stepping while debugging,
1352           (serialRegAssign): use updateRegUsage, only spill bits if necessary,
1353            also allocate bit registers,
1354           (fillGaps): handle bit registers,
1355           (findAllBitregs): added to create bit vector with all bit registers,
1356           (mcs51_allBitregs): returns this bit vector,
1357           (mcs51_assignRegisters): when using stack-auto use bit registers for
1358            passing parameters and creating local variables
1359         * src/mcs51/ralloc.h: added B0_IDX..B7_IDX and prototype mcs51_allBitregs
1360
1361 2005-08-22 Borut Razem <borut.razem AT siol.net>
1362
1363         * device/lib/Makefile.in: replaced find option -or with -o
1364           to make it run on solaris
1365
1366 2005-08-22 Raphael Neider <rneider AT web.de>
1367
1368         * src/pic16/gen.c (pic16_loadFromReturn): added check for AOP_PCODE,
1369           fixes #1265442 (crash on Solaris)
1370
1371 2005-08-20 Borut Razem <borut.razem AT siol.net>
1372
1373         * configure, configure.in: added tests for libsocket and libnsl libraries,
1374           requred by sdcdb on sparc-solaris; generate support/regression/Makefile
1375           from support/regression/Makefile.in
1376         * support/regression/Makefile.in: added
1377         * device/lib/pic16/Makefile.common.in: force make to use bash shell
1378         * sim/ucsim/libtool: regenerated on sparc-solaris
1379         * sim/ucsim/avr.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
1380           sim/ucsim/s51.src/Makefile.in, sim/ucsim/xa.src/Makefile.in,
1381           sim/ucsim/z80.src/Makefile.in: removed GNU ld specific linker options
1382           -Wl,--start-group and -Wl,--end-group to enable ucsim compilation on
1383           sparc-solaris, which doesn't use GNU ld linker
1384         * device/lib/Makefile.in: cp on sparc-solaris (SunOS) does not support -u option
1385         * as/Makefile: find on sparc-solaris does not support -maxdepth option
1386
1387 2005-08-19 Maarten Brock <sourceforge.brock AT dse.nl>
1388
1389         * src/mcs51/peeph.def: updated comments
1390
1391 2005-08-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1392
1393         * device/lib/_gptrget.c,
1394         * device/lib/_gptrput.c: slightly shorter
1395         * doc/sdccman.lyx: incremented version
1396         * src/mcs51/peeph.def: moved peephole comments to the line of first
1397           change to better keep line correlation, reanimated 186.e
1398         * src/mcs51/peeph.def: renamed similar peepholes by using suffixes
1399
1400 2005-08-16 Slade Rich <slade_rich AT users.sourceforge.net>
1401
1402         * src/pic/pcode.c : Pasted ".line" assembly directives patch from
1403           David Saxton with quotes around file name.
1404
1405 2005-08-15 Borut Razem <borut.razem AT siol.net>
1406
1407         * support/regression/tests/bitfields.c, support/regression/tests/bitvars.c,
1408           support/regression/tests/bitwise.c, support/regression/tests/literalop.c,
1409           support/regression/tests/rotate.c, support/regression/tests/zeropad.c:
1410           make tests run on x86_64 platform
1411
1412 2005-08-13 Raphael Neider <rneider AT web.de>
1413
1414         * device/lib/pic16/Makefile.subdir: weakened clean-intermediate rule
1415           as it might be executed DURING a build (parallel make is wonderful)
1416
1417 2005-08-13 Raphael Neider <rneider AT web.de>
1418
1419         * device/lib/Makefile.in (port-specific-objects-pic16):
1420           revert to cp $(PORT)/bin/*.* $(PORTDIR)
1421         * device/lib/pic16/Makefile: added .PHONY targets, removed builddir
1422           dependency
1423         * device/lib/pic16/Makefile.rules: build subdirs before creating
1424           the library, removed builddir rule, create $(builddir) early in
1425           recurse rule, use empty recurse rule for leaf directories
1426         * device/lib/pic16/Makefile.subdir: added phony targets, ignore
1427           mkdir errors (race condition), removed duplicate suffix "hex"
1428           from clean rules
1429         * device/lib/pic16/libdev/Makefile: recursive make via + and $(MAKE)
1430         * device/lib/pic16/libio/Makefile: create sub-make's builddir early,
1431           prevents mkdir -p from aborting on Alpha
1432
1433 2005-08-12 Raphael Neider <rneider AT web.de>
1434
1435         * src/pic16/glue.c (pic16_print(G)PointerType): do not flush
1436           db-statements in order to allow for arrays of pointers in code
1437           sections to be placed without interspersed 0-padding, fixes
1438           bug #1256215
1439         * (emitStatistics): fixed division by zero for pic18f1220
1440         * src/pic16/pcode.c: buffer (up to) 12 DB directives to allow for
1441           unpadded writing of 8-bit, 16-bit, 24-bit and 32-bit values
1442         * (pic16_emitDS): respect DB_ITEMS_PER_LINE
1443         * (pic16_pCodeConstString): keep track of already emitted string
1444           literals to prevent "duplicate definitions of symbol _str_NR"
1445         * src/pic16/ralloc.c (pic16_allocRegByName): removed not so helpful
1446           debug message
1447         * device/lib/Makefile.in: ignore failing PIC16 library builds
1448         * device/lib/pic16/Makefile: do not build if gputils are missing
1449         * device/lib/pic16/Makefile.common.in: do not enforce MAKEFLAGS=-s
1450
1451 2005-08-10 Raphael Neider <rneider AT web.de>
1452
1453         * device/lib/Makefile.in: fixed copying pic16 libraries (broken by
1454           my last commit)
1455
1456 2005-08-10 Raphael Neider <rneider AT web.de>
1457
1458         * src/*.c, src/pic16/{gen.c,glue.c,main.c}: applied Vangelis
1459           Rokas' patch to add the new fixed point type "__fixed16x16"
1460         * device/lib/pic16/libsdcc/fixed16x16: added Vangelis' support
1461           functions for __fixed16x16 arithmetics
1462         * device/lib/pic16: reimplemented the build system to support
1463           a separate build directory, better handling of libio (create
1464           the library in a separate subdir for each architecture) and
1465           easier configuration (centralized in Makefile.common)
1466
1467 2005-08-07 Raphael Neider <rneider AT web.de>
1468
1469         * src/pic16/gen.c (genrshTwo): fixed sign extension
1470         * src/pic16/device.c: added pic18f2320, 4220 and 4320
1471         * device/include/pic16/pic18f2220.h: changed some bit definitions,
1472           added T0CONbits
1473         * device/include/pic16/pic18f4220.h: NEW, header for
1474           pic18f4220 and pic18f4320
1475         * device/include/pic16/pic18fregs.h: added new devices,
1476           embraced Nop(), ClrWdt(), Sleep() and Reset() with do {} while(0)
1477         * device/include/pic16/signal.h: resolved name clashes
1478           on bit definitions, added DEF_HANDLER2(sig1,sig2,handler)
1479           to also allow testing for interrupt enable bits, added
1480           comments on how to use the macros
1481         * device/lib/pic16/libdev/pic18f2220.c: added T0CONbits
1482         * device/lib/pic16/libdev/pic18f{2320,4220,4320}.c: NEW,
1483           register definitions for the devices
1484         * device/lib/pic16/pics.all: added new devices
1485         * device/lib/pic16/libc/stdlib/calloc.c: fixed zeroing
1486           allocated memory
1487         * device/lib/pic16/libc/stdlib/memfree: do not count
1488           the block header as free memory
1489         * device/lib/pic16/libc/stdlib/memmisc.c (_initHeap):
1490           simplified and added missing end-of-blocklist-marker
1491           (reported by Peter Onion, fixes #1252814)
1492         * (_mergeHeapBlock): fixed loop condition
1493         * device/lib/pic16/libc/stdlib/realloc.c: return NULL for
1494           len==0, restructured code
1495         * device/lib/pic16/libc/stdlib/{malloc,memfreemax}.c: cleaned
1496           up a bit, reduced bitfield accesses, prevent endless loops
1497           in case of heap corruption
1498         * device/lib/pic16/libc/stdlib/x_ftoa.c: disabled
1499           "unreferenced arguments/must return a value" warnings
1500         * device/lib/pic16/libio/usart/ubaud.c (usart_baud):
1501           replaced BAUDREG with SPBRG
1502         * device/lib/pic16/libsdcc/lregs/{lrrest.c,lrst.c},
1503           device/lib/pic16/debug/gstack/gstack.c: replaced
1504           _naked, _asm, _endasm with __naked, __asm, __endasm
1505
1506 2005-08-05 Raphael Neider <rneider AT web.de>
1507
1508         * src/pic16/gen.c (pic16_aopGet): fixed handling of offsets in
1509           AOP_PCODE operands, fixes multibyte union-bitfield-accesses
1510
1511 2005-08-05 Borut Razem <borut.razem AT siol.net>
1512
1513         * device/lib/Makefile.in: added missing ';'
1514         * configure: removed ^M characters
1515
1516 2005-08-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
1517
1518         * device/include/mcs51/at89c51ed2.h, device/include/mcs51/p89v51rd2.h,
1519           device/include/mcs51/at89s53.h: changed to GNU Lesser General Public
1520           License
1521
1522 2005-08-04 Borut Razem <borut.razem AT siol.net>
1523
1524         * configure.in: pic16 libraries build 2nd try - enable running
1525           configure in device/lib/pic16
1526         * configure: regenerated from configure.in
1527         * device/lib/Makefile.in: create $(PORT)/bin directory
1528
1529 2005-08-03 Raphael Neider <rneider AT web.de>
1530
1531         * src/pic16/gen.c (pic16_derefPtr): NEW, single place
1532           to get/set values via pointers
1533         * (genUnpackBits,genPackBits): changed detection of
1534           ptr->bitfield vs. sym.bitfield, fixed access via generic
1535           pointers, removed dead (wrong) code for multibyte bitfields
1536         * (genNearPointerGet, genGenPointerGet): removed useless code,
1537           fixed bitfield detection, fixes #1250594
1538         * (genNearPointerSet): removed useless code
1539         * src/pic16/gen.h: renamed pic16_emitpcode to pic16_emitpcode_real
1540           and introduced macro pic16_emitpcode that conditionally emits
1541           the origin of the following pCode (useful for debugging SDCC)
1542         * src/pic16/pcode.c: changed (and disabled) some debug outputs
1543         * (createDefmap): fixed handling of LFSR for --optimize-df
1544
1545 2005-08-02 Borut Razem <borut.razem AT siol.net>
1546
1547         * device/lib/Makefile.in: pic16 libraries build enabled since
1548           gputils-0.13.2 are now localy installed at sourceforge's compile farm
1549
1550 2005-08-02 Raphael Neider <rneider AT web.de>
1551
1552         * src/pic16/gen.c (genPackBits): removed deprecated warning
1553         * (genGenPointerSet): fixed bitfield detection
1554
1555 2005-08-02 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
1556
1557         * device/include/mcs51/msm8xc154s.h: Removed PT2 definition, now in 8052.h.
1558
1559 2005-07-31 Raphael Neider <rneider AT web.de>
1560
1561         * device/lib/pic16/libdev/pic18f458.c,
1562           device/include/pic16/pic18f458.h: added missing T0CONbits
1563
1564 2005-07-29 Maarten Brock <sourceforge.brock AT dse.nl>
1565
1566         * device/include/mcs51/msm8xc154s.h: added, thanks to Matthias Arndt
1567
1568 2005-07-28 Maarten Brock <sourceforge.brock AT dse.nl>
1569
1570         * src/mcs51/gen.c (operandsEqu): fixed bug 1246687
1571
1572 2005-07-23 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
1573
1574         * device/include/mcs51/at89c51ed2.h: added.
1575
1576 2005-07-23 Raphael Neider <rneider AT web.de>
1577
1578         * src/pic/gen.h: added emitpcode macro for debugging
1579         * src/pic/gen.c (emitpcode): renamed to emitpcode_real
1580           and replace by macro adding debug information on demand
1581         * (genNot): fixed to C semantics (!0 = 1; !x = 0 iff x != 0)
1582         * (gencjne): tried to fix; replaced with correct (slower) code
1583         * (gen{Unp,P}ackBits): fixed single bit access
1584         * src/pic/pcode.c (AnalyzepCode): fixed DFPRINTF argument
1585         * src/pic/pcodepeep.c (pCodeSearchCondition): fixed finding
1586           previous instruction
1587         * src/pic/pcoderegs.c (regIsSpecial): NEW, check whether a
1588           register has to be handled with care (forbidding movement
1589           of assignments/uses, removing assignments completely, ...)
1590         * (pCodeOptime2pCodes): make use of regIsSpecial
1591         * added lots of debugging output (commented out)
1592         * src/pic/rallloc.c (deassignLRs): prevent operand registers
1593           from being reused as result UNLESS it is known to work
1594
1595 2005-07-23 Maarten Brock <sourceforge.brock AT dse.nl>
1596
1597         * support/Util/dbuf.h: include <stddef.h> for size_t
1598         * .version: changed to version 2.5.2
1599
1600 2005-07-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1601
1602         * src/SDCCloop.c (loopInvariants): fixed bug #1234048
1603
1604 2005-07-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1605
1606         * src/hc08/gen.c (genMinus): fixed bug #1241835,
1607           (genModOneByte): removed needless psha/pula
1608
1609 2005-07-22 Raphael Neider <rneider AT web.de>
1610
1611         * src/SDCCmain.c (linkEdit): initialized linkerScriptFileName,
1612           have PIC14 handled like PIC16, fixes broken pic14 linker calls
1613         * src/pic/gen.c (resolveIfx): do not "invent" labels
1614         * (genSkipc): changed to positive logic
1615         * (genSkipCond): removed as no longer needed
1616         * (pic14_mov2w_regOrLit,genCmp): NEW, replacement for buggy version,
1617           backport from PIC16
1618         * (genLeftShift): check operands are in different registers
1619         * src/pic/genarith.c (genPlus): replaced INCF with ADDLW as
1620           INCF does not update CARRY...
1621         * src/pic/main.c: fixed _linkCmd
1622         * src/pic/pcode.c (unlinkpCode): added inactive code
1623         * src/pic/ralloc.c (deassignLRs): keep arguments to shift operations
1624           alive (do not assign result and operand overlapping registers)
1625
1626 2005-07-22 Raphael Neider <rneider AT web.de>
1627
1628         * src/pic/device.c (dump_sfr): replaced register declaration with
1629           call to emitSymbolToFile() to avoid duplicate symbols
1630         * (assignRelocatableRegisters): do not declare external symbols
1631         * src/pic/ralloc.c (allocNewDirReg): fixed to get size of arrays
1632           right (take size of type, not etype)
1633         * (allocDirReg): fixed call to allocNewDirReg() to pass OP_SYM_TYPE
1634         * (writeUsedRegs): also dump dynDirectRegs (e.g. local variables)
1635         * (packRegsForAccUse): disabled assignment of WREG as
1636           the result reg to prevent occurence of just fixed #1235003,
1637           fixes #1242954
1638         * src/pic/glue.c (emitSymbolToFile): NEW, central place to declare
1639           symbols (avoids duplicate symbols in .asm file)
1640         * (pic14emitRegularMap): use emitSymbolToFile()
1641         * src/pic/gen.c (aopOp): fixed spillLocation handling
1642         * (gen{Unp,P}ackBits): fixed acquiring bit-operands
1643         * (genDataPointerSet): removed unneccessary variables/output
1644
1645 2005-07-22 Maarten Brock <sourceforge.brock AT dse.nl>
1646
1647         * as/mcs51/lkarea.c: enlarged codemap for banked memory
1648         * device/lib/mcs51/crtbank.asm: added # to 0x0F
1649
1650 2005-07-21 Raphael Neider <rneider AT web.de>
1651
1652         * src/pic/gen.c (aopOp): do not generate AOP_ACC operands as pic14
1653           architecture cannot handle them efficiently, fixes bug #1235003
1654         * src/pic16/device.c (pic16_dump_{u,i}section,pic16_dump_int_registers):
1655           check for empty sets before using them (fixes bug #1232190)
1656
1657 2005-07-19 Maarten Brock <sourceforge.brock AT dse.nl>
1658
1659         * as/mcs51/lkarea.c (lnkarea, lnkarea2): improved BSEG size calculation,
1660           (lnksect2): generate warnings for memory overlap
1661         * src/SDCC.lex (doPragma, process_pragma): added pragma's codeseg and
1662           constseg to set the name of these segments so you can instruct the linker
1663           to place them in banks
1664         * src/SDCCast.c (decorateType): use new macro IS_FUNCPTR()
1665         * src/SDCCglobl.h: added MODEL_HUGE to enum,
1666           added code_seg and const_seg to options
1667         * src/SDCCglue.c (emitMaps): use options.const_seg,
1668           (createInterruptVect): put interrupt vectors in segment HOME,
1669           (glue): put HOME before static segment and put the main glue in HOME,
1670           (glue): use options.code_seg
1671         * src/SDCCicode.c (geniCodeCall): use new macro IS_FUNCPTR()
1672         * src/SDCCmain.c: added option --codeseg and --constseg to set the name of
1673           these segments so you can instruct the linker to place them in banks
1674           (linkEdit): use code_loc for HOME segment which should be the first
1675           segment in code memory now
1676         * src/SDCCmem.c: fixed more stuff like bug 1238386
1677         * src/SDCCsymt.c (getSize): use generic pointer size for banked functions,
1678           (changePointer): don't change function pointers to code pointers for
1679           banked functions,
1680           (compareType): added exceptional check for banked function pointers
1681         * src/SDCCsymt.h: changed IFFUNC_ISBANKEDCALL, added IS_FUNCPTR
1682         * src/hc08/main.c (_hc08_genAssemblerPreamble): put HOME first, put CSEG
1683           after static in code memory
1684         * src/mcs51/gen.c: added aopLiteralLong prototype,
1685           (aopForSym): use getSize for functions,
1686           (genCall): generate banked calls over one trampoline __sdcc_banked_call
1687           in HOME with lsb of address in r0, msb in r1 and bank in r2, use
1688           -Wl-bBANKSEG=0xbbaaaa option to set the address (aaaa) and bank (bb) of
1689           the segment,
1690           (genPcall): use call for literal function pointers and generate banked
1691           calls over the one trampoline so there's only one place for the user to
1692           modify according to his/hers hardware,
1693           (genEndFunction): jump to __sdcc_banked_ret in HOME for banked functions,
1694           (genPlusIncr): moved check icount>4 beyond inc dptr optimization
1695         * src/mcs51/main.c: added keyword banked,
1696           (_mcs51_genExtraAreas): put HOME first followed by GSINIT, STATIC and CSEG
1697         * support/Util/SDCCerr.c,
1698         * support/Util/SDCCerr.h: added E_BANKED_WITH_CALLEESAVES, registers are
1699           needed for passing the bank and address to the trampoline
1700         * device/lib/mcs51/crtbank.asm: added for bankswitching
1701         * device/lib/mcs51/Makefile: added crtbank
1702
1703 2005-07-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1704
1705         * src/SDCCcse.c (algebraicOpts): fixed loss of volatility
1706           for fields at offset 0 of a struct or union as reported
1707           on 2005-07-07 in the developer mailing list.
1708
1709 2005-07-15 Maarten Brock <sourceforge.brock AT dse.nl>
1710
1711         * src/SDCCmem.c: fixed bug 1238386
1712
1713 2005-07-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1714
1715         * src/mcs51/peeph.def: added labelrefcounting for peepholes
1716           (patch #1144962), added peephole 300, enabled 259.x
1717         * doc/sdccman.lyx: removed screenshot and provided link instead
1718
1719 2005-07-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1720
1721         * doc/sdccman.lyx: added section about debugging with ddd
1722         * doc/figures/ddd_example.eps: screenshot of debugging session
1723
1724 2005-07-04 Raphael Neider <rneider AT web.de>
1725
1726         * src/pic/gen.c (genPointerGet): handle pointers to CONST values
1727           like CODE pointers, fixes #1115683
1728         * src/pic/pcode.c (DoBankSelect): forget LastRegIdx during function
1729           call, fixes bugs #1232211, #1228110,
1730           fixed wrong casts to pCodeFlow from pCodeInstructions
1731
1732 2005-07-04 Raphael Neider <rneider AT web.de>
1733
1734         * src/pic/gen.c (popGet): changed assert to allow for
1735           bit operands
1736         * (popGetAddr): changed signature to provide
1737           an additional index, patched all call sites
1738         * (genCmpEq): handle literal-like operands correctly
1739         * (genAddrOf): added sanity checks on __code/__data pointers
1740         * (genAssign): added handling of symbols from __code section
1741         * (gencjne): do not generate code for comparisons whose result
1742           is neither stored nor used, fixes bug #1171114
1743         * (AccLsh, AccRsh): operate on operand instead of WREG
1744         * (shift{Left,Right}_Left2ResultLit): NEW, size independant
1745           replacement for Shift{LR}{12}Left2Result; shift (byte/int/long)
1746           by known count
1747         * rewrote complete shift-by-literal logic, commented unused
1748           functions out
1749         * (genConstPointerGet): get multiple bytes (if result size > 1),
1750           fixed handling of non-immediate addresses
1751         * (genPointerGet): handle CODE pointers like CONST pointers
1752         * (genpic14Code): insert C-SRC lines as Cource-pCodes
1753         * ({aop,op}_isLitLike): NEW, single place to decide whether an
1754           operand is to be treated as a literal or not
1755         * (mov2w,genPcall,genCmpEq),
1756           src/pic/genarith.c: use aop_isLitLike() to decide between
1757           literal/register contents
1758         * (addSign): added missing offset
1759         * src/pic/gen.h: remove newline after FENTRY/FEXIT comments,
1760           only emit comment in debug-mode,
1761           use {aop,op}_isLitLike throughout the file
1762         * src/pic/glue.c: fix initializers for pointers (work in progress)
1763         * src/pic/pcode.c (get_op): honor index on _const symbols
1764         * ({reset,dump}pCodeStatistics): NEW, estimate code size
1765         * (dumppBlock): added pCode size estimation
1766         * src/pic/ralloc.c (deassignLRs,serialRegAssign,packRegisters):
1767           check for IS_SYMOP before OP_SYMBOL'ing
1768         * fixed indentation, compacted switch-statements
1769         * (allocReg): find free register and allocate it instead of
1770           allocating new registers all the time
1771         * (deassignLRs): prevent POINTER_GET's from being assigned the same
1772           registers as its operands (necessary only for multibyte GETs)
1773
1774 2005-07-01 Raphael Neider <rneider AT web.de>
1775
1776         * src/pic/gen.h: added prototypes emitpComment, popGetAddr and
1777           debugging .asm-output macros FENTRY + FEXIT
1778         * src/pic/gen.c (Safe_vsnprintf): NEW, is there a more generic
1779           way... I wonder...
1780         * (emitpComment): NEW, printf to pCode
1781         * (popGet): added assert on too large offsets, fixed PO_IMMEDIATE's
1782           offset handling
1783         * (popGetAddr): NEW, variant of popGet to access an immediates
1784           high(er) bytes instead of the n'th byte of memory they reference,
1785           replaced popGet with popGetAddr where neccessary
1786         * (genDataPointerGet): reactivated and fixed implementation
1787         * (genNearPointerGet): enabled call to genDataPointerGet, fixes array-
1788           accesses
1789         * (genDataPointerSet): fixed multibyte assignments
1790         * (genpic14Code): fixed --i-code-in-asm handling
1791         * src/pic/genarith.c: fixed PO_IMMEDIATE issue using popGetAddr,
1792         * (genPlus): fixed index-out-of-bounds error
1793         * src/pic/pcode.c (get_op): fixed PO_IMMEDIATE's index/offset handling
1794         * src/pic/ralloc.c: added debugging output macro FENTRY2
1795         * (spillThis): fixed indentation, enbraced for-body for clarity
1796         * (rematStr): commented out as now unused
1797         * (regTypeNum): commented out special spill case (overwrites
1798           arbitrary values)
1799         * fixes bugs #1229346, #1216476 (both arrays) and #1115667 (SIGSEGV)
1800
1801 2005-06-30 Maarten Brock <sourceforge.brock AT dse.nl>
1802
1803         * doc/sdccman.lyx: documented sfr16/sfr32,
1804           added example for using storage class with function pointers
1805         * src/mcs51/gen.c (genPlusIncr): optimized small offsets from dptr
1806
1807 2005-06-28 Maarten Brock <sourceforge.brock AT dse.nl>
1808
1809         * device/lib/_gptrget.c: also push/pop _PSBANK, added # to 0x03
1810         * device/lib/_itoa.c,
1811         * device/lib/_ltoa.c: optimized codesize
1812         * src/SDCCsymt.c (checkSClass): added sanity check for sfr at addresses,
1813           but don't know how to suppress the double warning.
1814         * src/mcs51/gen.c (genPlusIncr): fixed bug when incrementing volatile int's
1815         * support/Util/SDCCerr.c,
1816         * support/Util/SDCCerr.h: added warning W_SFR_ABSRANGE for sanity check
1817
1818 2005-06-27 Maarten Brock <sourceforge.brock AT dse.nl>
1819
1820         * as/mcs51/asexpr.c (expr): disabled warning "not in .flat24 mode",
1821           fixed old K&R prototypes
1822         * as/mcs51/asout.c (outrb): always output as if generating 24bit addresses
1823         * device/lib/_gptrget.c,
1824         * device/lib/_gptrgetc.c,
1825         * device/lib/_gptrput.c: changed versions for new memory indicator values,
1826           also new versions for small generic pointers and banked generic pointers
1827         * src/port.h: added const_name
1828         * src/SDCC.lex: added keywords sfr16, __sfr16, sfr32, __sfr32
1829         * src/SDCC.y: added tokens SFR16, SFR32 and their sfr_attributes
1830         * src/SDCCcse.c (findPrevIc): check all associative operators
1831         * src/SDCCglue.c (emitMaps): use CONST_NAME if defined
1832         * src/SDCCicode.h: added macro IS_ASSOCIATIVE
1833         * src/SDCCmem.c: updated comments,
1834           set far-space to 0 for pdata, results in optimized code
1835         * src/SDCCmem.h: added macro CONST_NAME
1836         * src/SDCCsymt.h: renumerated generic pointer types GPTYPE_... thereby
1837           moving the info into the highest bits, see also gptrget/gptrput
1838         * src/src.dsp: added sdcc.ico to project files
1839         * src/avr/gen.c (genCast): fixed bug 0x%d
1840         * src/avr/main.c (avr_port): added "CONST (CODE)" for const_name
1841         * src/ds390/gen.c (aopForRemat, adjustArithmeticResult): disconnected direct
1842           relation between ptr_type and DCL_TYPE,
1843           (genCast): fixed bug 0x%d
1844         * src/ds390/main.c (ds390_port, tininative_port, ds400_port): added "CONST
1845           (CODE)" for const_name
1846         * src/hc08/gen.c (genCast): fixed bug 0x%d
1847         * src/hc08/main.c (_hc08_genAssemblerPreamble): added .area ...const_name,
1848           (hc08_port): added "CONST (CODE)" for const_name
1849         * src/mcs51/gen.c (aopForSym): optimized pushing ACC,
1850           (aopForRemat, adjustArithmeticResult): disconnected direct relation
1851           between ptr_type and DCL_TYPE,
1852           (aopGetUsesAcc, aopGet, aopPut): changed first parameter from asmop* to
1853           operand* and took AOP() inside function so sfr-ness can be checked,
1854           (all over): repaired calls to aopGetUsesAcc, aopGet, aopPut to comply with
1855           new prototype,
1856           (genFunction, genEndFunction): optimized stack setup,
1857           (genMinus): optimized for literals with ending zeroes (in bytes),
1858           (genCast): fixed bug 0x%d
1859         * src/mcs51/main.c (_mcs51_keywords): added sfr16 and sfr32,
1860           (mcs51_port): added "CONST (CODE)" for const_name
1861         * src/mcs51/peeph.def: made rule 226 more generic
1862         * src/pic/main.c (pic_port): added "CONST (CODE)" for const_name
1863         * src/pic16/main.c (pic16_port): added "CONST (CODE)" for const_name
1864         * src/xa51/main.c (xa51_port): added "CONST (CODE)" for const_name
1865         * src/z80/main.c (z80_port): added NULL for const_name,
1866           (gbz80_port): added NULL for const_name
1867         * support/regression/tests/bug663539.c,
1868         * support/regression/tests/sfr16.c: new tests
1869
1870 2005-06-25 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
1871
1872         * device/include/mcs51/p89v51rd2.h, device/include/mcs51/at89s53.h: added.
1873
1874 2005-06-24 Raphael Neider <rneider AT web.de>
1875
1876         * device/lib/pic16/libdev/pic18f[68][567]20.c:
1877           corrected typos...
1878         * device/include/pic16/signal.h: added USBIF
1879           and SIG_USB
1880
1881 2005-06-24 Raphael Neider <rneider AT web.de>
1882
1883         * device/lib/pic16/libdev/pic18f2455.c,
1884           device/include/pic16/pic18f2455.h: NEW
1885         * device/include/pic16/pic18fregs.h,
1886           device/lib/pic16/pics.all,
1887           src/pic16/device.c: added 18f2455
1888         * device/lib/pic16/libdev/pic18f[68][567]20.c,
1889           device/include/pic16/{pic18f[68][567].h,usart.h}:
1890           replaced MULTIPLE_USARTS define with more relaible
1891           compatibility sfrs (for USART access)
1892
1893 2005-06-20 Slade Rich <slade_rich AT users.sourceforge.net>
1894
1895         * src/pic/pcode.c : Fixed problem when a string constant contains a "\r\n"
1896           and the output asm file line is printed on two lines.
1897
1898 2005-06-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1899
1900         * sim/ucsim/hc08.src/inst.cc (inst_condbranch): fixed simulation of
1901           BGT, BLE, BHI, and BLS instructions
1902         * src/hc08/gen.c (outAcc, outBitC, outBitNV, genCmpLt, genCmpGt,
1903           genCmpEq): removed
1904         * src/hc08/gen.c (genCmpEQorNE, genCmp, branchopCmp, nameCmp,
1905           negatedCmp, exchangedCmp, genhc08Code): rewrite of comparison handling,
1906           fixes bug #1216342
1907         * src/hc08/peeph.def: added rules 2g - 2l for new conditional branches
1908
1909 2005-06-15 Raphael Neider <rneider AT web.de>
1910
1911         * src/pic16/NOTES: moved Vangelis from active developers to people to contact
1912         * device/include/pic16/{6520.h,8520.h}: fixed configuration bits
1913         * src/pic16/gen.c (): prevent iTemps from being considered to be in CODESPACE,
1914           fixes bug #1221120; for symbols in CODESPACE get number of bytes to read from
1915           OP_SYM_TYPE() instead of OP_SYM_ETYPE()
1916
1917 2005-06-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1918
1919         * device/include/mcs51/reg764.h: Changed PB0 to PBO as requested by
1920           Marcel Telka in bug #1215704
1921
1922 2005-06-02 Slade Rich <slade_rich AT users.sourceforge.net>
1923
1924         * src/pic/pcode.c : Changed pseudo stack size to 15 to allow WSAVE to be
1925           located in shared memory bank.
1926
1927 2005-05-31 Raphael Neider <rneider AT web.de>
1928
1929         * src/pic16/{gen.c,genarith.c}: replaced sign-extension
1930           "CLRF, BTFSC <signbit>, DECF/COMF" with side-effect-free
1931           "CLRF, BTFSC <signbit>, SETF"; fixes "long>>9"
1932
1933 2005-05-27 Maarten Brock <sourceforge.brock AT dse.nl>
1934
1935         * device/lib/_strncpy.c: fixed the fix
1936
1937 2005-05-26 Raphael Neider <rneider AT web.de>
1938
1939         * src/pic16/glue.c (pic16_printIvalChar): fixed _constant_ string
1940           initializers with \0, bug #1208187
1941         * src/pic/glue.c (printIvalChar): fixed (non- and constant) string
1942           intializers with \0, bug #1208187
1943
1944 2005-05-26 Raphael Neider <rneider AT web.de>
1945
1946         * src/pic16/glue.c (pic16_printIvalChar): fixed string
1947           initializers with \0, bug #1208187
1948         * src/pic16/main.c (_process_pragma): added sanity checks
1949           for stack position and size, emit warnings when appropriate
1950
1951 2005-05-26 Maarten Brock <sourceforge.brock AT dse.nl>
1952
1953         * device/lib/_strncpy.c: fixed not filling with \0
1954
1955 2005-05-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1956
1957         * src/SDCCast.c (funcOfType, funcOfTypeVarg, stringToSymbol,
1958           createFunction),
1959         * src/SDCC.y (external_definition, enumerator, parameter_declaration,
1960           compound_statement),
1961         * src/SDCCsymt.h,
1962         * src/SDCCsymt.c (addSymChain, processFuncArgs): fixed bug #1159134
1963
1964 2005-05-24 Raphael Neider <rneider AT web.de>
1965
1966         * src/pic16/glue.c (pic16_printGPointerType): fixed #1207796
1967
1968 2005-05-24 Raphael Neider <rneider AT web.de>
1969
1970         * device/include/pic16/pic18f{442,452,458}.h: fixed wrong
1971           TRISE definitions, closes bug #1162453
1972
1973 2005-05-22 Raphael Neider <rneider AT web.de>
1974
1975         * src/pic16/main.c (_process_pragma): check for missing
1976           arguments to pragmas code and udata
1977         * device/include/pic16/pic18f{2550,4331,4455,4520}.h:
1978           consistency fixes to match other headers (thanks to Jim Paris)
1979         * device/lib/pic16/libio/i2c.ignore: 18f4331 provides no I2C
1980
1981 2005-05-21 Maarten Brock <sourceforge.brock AT dse.nl>
1982
1983         * src/SDCCicode.c (isOperandEqual): fixed missing ;
1984
1985 2005-05-19 Maarten Brock <sourceforge.brock AT dse.nl>
1986
1987         * support/regression/tests/bug1198642.c: new test
1988         * src/SDCCicode.c (isOperandEqual): fixed bug 1198642
1989         * src/SDCCcse.c (findPrevIc): added comment, please have a look
1990         * support/scripts/resource.h,
1991         * support/scripts/resource.rc,
1992         * src/src.dsp: added sdcc.ico to project as icon for sdcc.exe
1993         * support/scripts/sdcc.ico: added 32x32 icon
1994
1995 2005-05-18 Raphael Neider <rneider AT web.de>
1996
1997         * device/lib/pic16/libdev/pic18f*.c,
1998         * device/include/pic16/pic18f*.h: updated "sfr" and "at X"
1999           keywords to "__sfr" and "__at (X)"
2000         * device/include/pic16/pic18fregs.h: added pic18f4520
2001         * src/pic16/pcode.c (pic16_pCode2str): fixed (?) bug
2002           #1203088 (MPLAB compatibility)
2003
2004 2005-05-17 Raphael Neider <rneider AT web.de>
2005
2006         * device/include/pic16/pic18f{2550,4331,4455,4520}.h: NEW
2007         * device/lib/pic16/libdev/pic18f{2550,4331,4455,4520}.c: NEW
2008         * device/lib/pic16/pics.all: added new devices
2009         * src/pic16/device.c: added support for pic18f4520
2010
2011 2005-05-16 Raphael Neider <rneider AT web.de>
2012         * src/pic16/gen.{c,h}: s/mov2f/pic16_mov2f made public
2013         * src/pic16/genarith.c (genAddLit): fixed bug 1202480
2014         * src/pic16/pcode.{c,h} (pic16_newpCodeOpBit_simple): NEW
2015           convenience function for bit access
2016
2017 2005-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
2018
2019         * device/lib/printf_large.c: fixed bug 1193299
2020         * support/regression/tests/bug1057979.c: added test %3.3s
2021
2022 2005-05-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2023
2024         * device/include/mcs51/8051.h,
2025         * device/include/mcs51/8052.h: made parseable with lint
2026         * device/include/mcs51/lint.h: added include file for (sp)lint
2027         * doc/sdccman.lyx: added doc about use of splint (syntax checking tool)
2028         * doc/cdbfileformat.lyx,
2029         * doc/test_suite_spec.lyx: hardcoded date to the date of last text change
2030
2031 2005-05-14 Raphael Neider <rneider AT web.de>
2032
2033         * device/lib/pic16/Makefile.common.in: add --optimize-df to OPT_FLAGS
2034         * device/lib/pic16/libc/stdlib/itoa.c (new)
2035         * device/lib/pic16/libc/stdlib/Makefile: have itoa.c built
2036         * device/lib/pic16/libio/Makefile: exclude subdir according to
2037           ${subdir}.ignore for certain PICs (lacking e.g. i2c)
2038         * device/lib/pic16/libio/i2c.ignore (new): pic18f1220 has no I2C support
2039         * src/pic16/gen.c (genFunction): prevent annoying warning
2040         * src/pic16/pcode.c: renamed stack_t to dynstack_t to prevent
2041           nameclashes on BeOS
2042         * support/cpp2/cppmain.c (cpp_output_string): new
2043         * support/cpp2/cpplib.c (_cpp_do__Pragma): fixed _Pragma(""),
2044           fixes bug 1116802
2045
2046 2005-05-13 Borut Razem <borut.razem AT siol.net>
2047
2048         * src/SDCCmain.c (linkEdit): fixed bug 1195202
2049
2050 2005-05-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2051
2052         * .version: changed to version 2.5.1; back to bleeding edge development
2053
2054 2005-05-11 Borut Razem <borut.razem AT siol.net>
2055
2056         * doc/sdccman.lyx doc/cdbfileformat.lyx doc/test_suite_spec.lyx:
2057           generate PDF version 1.3 documents
2058
2059 2005-05-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2060
2061         * .version: changed to version 2.5.0
2062
2063 2005-04-27 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2064
2065         * doc/sdccman.lyx: updated weblinks, index and smaller updates
2066
2067 2005-04-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2068
2069         * doc/sdccman.lyx: changed version 2.5.0, documented --std-c89,
2070         --std-sdcc89, --std-c99, --std-sdcc99, and the corresponding #pragmas, as
2071         well as many smaller updates.
2072         * .version: changed to version 2.5.0-pre1
2073
2074 2005-04-26 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2075
2076         * src/SDCCmain.c (setIncludePath): added port->target to SDCC_INCLUDE_NAME
2077
2078 2005-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
2079
2080         * support/regression/tests/bug1185672.c: added
2081         * src/mcs51/gen.c (aopGetUsesAcc, genCpl, genAnd, genOr, genXor): fixed
2082           bug 1185672
2083         * src/mcs51/gen.c (genCall): added comments, made it look safer
2084         * src/mcs51/gen.c (genEndFunction): simplified
2085
2086 2005-04-25 Maarten Brock <sourceforge.brock AT dse.nl>
2087
2088         * src/mcs51/ralloc.c (serialRegAssign): fixed bug 1189609
2089
2090 2005-04-14 Borut Razem <borut.razem AT siol.net>
2091
2092         * fixed bug 1045046 - SIGSEGV with really simple code?:
2093           src/pic/pcode.c (pCodeInitRegisters)- pseudo stack size increased to 16
2094           src/pic/ralloc.c (typeRegWithIdx) - error message on pseudo stack overflow
2095
2096 2005-04-14 Borut Razem <borut.razem AT siol.net>
2097
2098         * src/pic16/gen.c (genInline), src/pic16/main.c (_process_pragma),
2099           src/pic16/device.h: temporarily disabled experimental #inline pragma
2100           for 2.5.0 release
2101
2102 2005-04-14 Maarten Brock <sourceforge.brock AT dse.nl>
2103
2104         * device/include/z80/stdio.h,
2105         * device/include/z80/string.h: removed these highly incomplete files so
2106           SDCC can use the default ones in device/include/
2107
2108 2005-04-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2109
2110         * src/mcs51/gen.c (genEndFunction): removed unused variable to fix
2111         gcc warning.
2112         * device/lib/Makefile.in: default PORTINCDIR to the mcs51 subdir to
2113         fix sdcpp warnings.
2114
2115 2005-04-12 Maarten Brock <sourceforge.brock AT dse.nl>
2116
2117         * device/include/malloc.h: removed redundant __reentrant prototypes
2118         * device/lib/_mullong.c: added working xstack variant in asm (C version
2119           doesn't pass regression tests)
2120         * device/lib/bpx.c: used __data and made bpx char for mcs51
2121         * src/SDCCast.c (decorateType): removed unused GPTYPE_IDATA,
2122           (createFunction): fixed bug with xstackPtr
2123         * src/SDCCcse.c: corrected comments
2124         * src/SDCCopt.c (convertToFcall): fixed warning in MSVC,
2125           (killDeadCode, eBBlockFromiCode): removed unused code
2126         * src/SDCCsymt.h: removed unused GPTYPE_GPTR and GPTYPE_IDATA,
2127           corrected comments
2128         * src/mcs51/gen.c (aopForSym, aopPut, toBoolean, unsaveRegisters,
2129           assignResultValue, genCall, genFunction, genEndFunction, genAnd,
2130           genOr, genXor, genAddrOf): fixed several bugs concerning xstack
2131           (genModOneByte): fixed warning in MSVC
2132         * src/mcs51/main.c (): added comments
2133         * src/mcs51/peeph.def: changed 129 to 129.a, added 129.b, 129.c & 129.d
2134
2135 2005-04-12 Maarten Brock <sourceforge.brock AT dse.nl>
2136
2137         * src/SDCCmain.c (linkEdit): oops, changed one line too many
2138
2139 2005-04-11 Maarten Brock <sourceforge.brock AT dse.nl>
2140
2141         * src/SDCCmain.c (linkEdit): fixed bug with finding crt0.o for z80
2142
2143 2005-04-10 Vangelis Rokas <vrokas AT users.sourceforge.net>
2144
2145         * src/pic16/glue.c (printIvalChar): fixed bug when emitting
2146         characters arrays of larger size than the declared one.
2147
2148 2005-04-10 Borut Razem <borut.razem AT siol.net>
2149
2150         * src/pic/gen.c (genInline),
2151           src/pic/pcode.c (newpCodeAsmDir), (pCode2str),
2152           (genericPrint), (unlinkpCodeFromBranch), (compareLabel),
2153           (findNextInstruction), (findPrevInstruction),
2154           (findInstructionUsingLabel),
2155           src/pic/pcode.h: fixed bug #1164907 - Labels not being recognized
2156         * src/pic/pcode.c (findLabel): added missing '\n'
2157         * src/src.dsp: added SDCCdwarf2.c to the project
2158
2159 2005-04-09 Borut Razem <borut.razem AT siol.net>
2160
2161         * support/scripts/sdcc.nsi: added include/hc08/* h to NSIS setup
2162
2163 2005-04-08 Raphael Neider <rneider AT web.de>
2164
2165         * src/pic16/pcode.c: added helpers defmapInsertAfter (insert a new item
2166           into the chain after a given one) and mergeDefmapSymbols (combine
2167           defmap entries for each symbol per pcode)
2168         * (createDefmap): have defmap entries merged in the end
2169         * (defmapReplaceSymRef): split defmap entries covering two accesses to
2170           a symbol before replacing one access type's symbol, merge symbols in
2171           the end (replacement symbol might already have an entry)
2172         * (assignValnums): keep reference to written WREG intact
2173
2174 2005-04-08 Raphael Neider <rneider AT web.de>
2175
2176         * src/pic16/pcode.c (struct defmap_s): named anonymous union (for
2177           Alpha)
2178
2179 2005-04-08 Vangelis Rokas <vrokas AT users.sourceforge.net>
2180
2181         * src/pic16/pcode.c (pic16_get_op2): enlarged size of array b to 128
2182         bytes
2183
2184 2005-04-07 Raphael Neider <rneider AT web.de>
2185
2186         * device/include/pic16/usart.h: added compatibility defines for
2187           devices with more than one USART
2188         * device/include/pic16/pic18f[68][567]20.h: activated above defines
2189
2190 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
2191
2192         * device/lib/Makefile.in: updated for port specific include
2193
2194 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
2195
2196         * support/regression/ports/mcs51/spec.mk: added mcs51 include
2197
2198 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
2199
2200         * device/include/8051.h,
2201         * device/include/8052.h,
2202         * device/include/at89S8252.h,
2203         * device/include/at89c55.h,
2204         * device/include/at89x051.h,
2205         * device/include/at89x51.h,
2206         * device/include/at89x52.h,
2207         * device/include/mcs51reg.h,
2208         * device/include/reg51.h,
2209         * device/include/reg764.h,
2210         * device/include/regc515c.h,
2211         * device/include/sab80515.h: (re)moved these 12 files
2212         * device/include/mcs51/8051.h,
2213         * device/include/mcs51/8052.h,
2214         * device/include/mcs51/at89S8252.h,
2215         * device/include/mcs51/at89c55.h,
2216         * device/include/mcs51/at89x051.h,
2217         * device/include/mcs51/at89x51.h,
2218         * device/include/mcs51/at89x52.h,
2219         * device/include/mcs51/mcs51reg.h,
2220         * device/include/mcs51/reg51.h,
2221         * device/include/mcs51/reg764.h,
2222         * device/include/mcs51/regc515c.h,
2223         * device/include/mcs51/sab80515.h: and added them here
2224
2225 2005-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
2226
2227         * device/include/stdarg.h: changed SDCC specific keywords to double
2228           underlined form.
2229         * device/include/stdint.h: changed intptr_t and uintptr_t for others than
2230           mcs51 and ds390.
2231         * device/include/hc08/mc68hc908gp32.h,
2232         * device/include/hc08/mc68hc908jb8.h,
2233         * device/include/hc08/mc68hc908jkjl.h,
2234         * device/include/hc08/mc68hc908qy.h: fixed comments
2235         * device/include/mcs51/README: updated
2236         * device/include/mcs51/c8051f120.h: added PINRSF
2237         * device/lib/pic16/libc/stdlib/crc16.c: fixed comments
2238         * src/pic16/pcode.c: MSVC6 doesn't accept declaring new variables
2239           amidst code. Also inline is not supported.
2240
2241 2005-04-06 Raphael Neider <rneider AT web.de>
2242
2243         * src/pic16/pcode.c (pic16_pCodeReplace): also update pcflow->end
2244         * (createDefmap): fixed CALLs to depend on FSR1 and RETLW to restore
2245           callers stack/frame pointers
2246
2247 2005-04-06 Vangelis Rokas <vrokas AT users.sourceforge.net>
2248
2249         * device/include/pic16/usart.h: added, missing in previous commit,
2250         * device/include/pic16/adc.h: fixed typo,
2251         * device/lib/pic16/libc/utils/cvtdec.S: added missing in previous
2252         commit,
2253         * device/lib/pic16/libc/stdlib/g_ftoa.S: modified to include
2254         <p18fxxx.inc>
2255         * device/lib/pic16/libc/stdio/streams.c: leave stdin, stdout
2256         uninitialized because a bug appears with gplink
2257         * device/lib/pic16/{some makefiles}: moved $(CSTD) from CFLAGS to
2258         COMPILE_FLAGS and added CPPFLAGS with -nostdinc because sdcpp
2259         complains for unrecognised option
2260
2261 2005-04-05 Raphael Neider <rneider AT web.de>
2262
2263         * src/pic16/gen.c (pic16_popCopyReg): made copying work for extended
2264           structs as well (using memcpy)
2265         * (genFunction): fixed comparison, used pCodeOpLabel to reduce warning
2266           on ISRs (GOTO has no label)
2267         * src/pic16/device.h: added OF_OPTIMIZE_DF
2268         * src/pic16/main.c: added compiler switch --optimize-df to enable the
2269           new data flow analysis/optimization
2270         * src/pic16/pcode.c: added (prototypes for and implementation of)
2271           dataflow analysis functions, fixed pCodeInstructions' inCond and
2272           outCond values, made RCALL a branch instruction
2273         * (pic16_unlinkpCode): keep C line if possible
2274         * (pic16_pCodeUnlink): removed cast on left side of assignment, have
2275           C line moved if possible
2276         * (pic16_getRegFrompCodeOp): NEW, improved version of...
2277         * (pic16_getRegFromInstruction,pic16_getRegFromInstruction2): changed
2278           to use new pic16_getRegFrompCodeOp (works for more SFRs)
2279         * (pic16_BuildFlow): fixed skip instructions with label (did not start
2280           new flow)
2281         * (pic16_getJumptabpCode): NEW, needed in...
2282         * (LinkFlow): fixed handling of jumptables, calls and conditional
2283           branches
2284         * (pic16_InsertCommentAfter): NEW
2285         * (pic16_pCodeReplace): made verbose and flow preserving
2286         * (AnalyzeFlow): added call to data flow analysis
2287         * src/pic16/pcode.h: added defmaps to pCodeFlow struct
2288         * src/pic16/pcodeflow.h: added PCC_STATUS to mean all STATUS bits
2289         * src/pic16/ralloc.c (packRegsForAssign): added return 1 in the end
2290
2291 2005-04-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2292
2293         * src/SDCCast.c (decorateType): fixed bug #1105626
2294
2295 2005-04-02 Vangelis Rokas <vrokas AT users.sourceforge.net>
2296
2297         * device/include/asm/pic16/features.h,
2298         * pic18f*.h headers,
2299         * device/include/pic16/adc.h,
2300         * device/include/pic16/delay.h,
2301         * device/include/pic16/i2c.h,
2302         * device/include/pic16/malloc.h,
2303         * device/include/pic16/stdio.h,
2304         * device/include/pic16/stdlib.h,
2305         * device/include/pic16/string.h,
2306         * device/lib/pic16/libc/stdio/printf_tiny.c,
2307         * device/lib/pic16/libc/stdio/printf_small.c,
2308         * device/lib/pic16/libc/stdio/strmgpsim.c,
2309         * device/lib/pic16/libc/stdio/strmmssp.c,
2310         * device/lib/pic16/libc/stdio/strmusart.c,
2311         * device/lib/pic16/libc/stdio/vfprintf.c,
2312         * device/lib/pic16/libc/stdlib/ltoa.c,
2313         * device/lib/pic16/libc/stdlib/putchar.c,
2314         * device/lib/pic16/libc/stdlib/x_ftoa.c,
2315         * device/lib/pic16/libc/stdlib/memchrpgm.c,
2316         * device/lib/pic16/libc/stdlib/memchrram.c,
2317         * device/lib/pic16/libc/stdlib/memcpypgm2ram.c,
2318         * device/lib/pic16/libc/stdlib/memcpyram2ram.c,
2319         * device/lib/pic16/libio/adc/adcbusy.c,
2320         * device/lib/pic16/libio/adc/adcread.c,
2321         * device/lib/pic16/libio/adc/adcsetch.c,
2322         * device/lib/pic16/libio/usart/ubaud.c,
2323         * device/lib/pic16/libio/usart/ubusy.c,
2324         * device/lib/pic16/libio/usart/udrdy.c,
2325         * device/lib/pic16/libio/usart/uopen.c,
2326         * device/lib/pic16/libio/usart/uputc.c,
2327         * device/lib/pic16/libsdcc/gptr/gptrget1.c,
2328         * device/lib/pic16/libsdcc/gptr/gptrget2.c,
2329         * device/lib/pic16/libsdcc/gptr/gptrget3.c,
2330         * device/lib/pic16/libsdcc/gptr/gptrget4.c,
2331         * device/lib/pic16/libsdcc/gptr/gptrput1.c,
2332         * device/lib/pic16/libsdcc/gptr/gptrput2.c,
2333         * device/lib/pic16/libsdcc/gptr/gptrput3.c,
2334         * device/lib/pic16/libsdcc/gptr/gptrput4.c: modified all SDCC
2335         specific keywords to double underlined form,
2336         * device/lib/pic16/libc/Makefile.rules,
2337         * device/lib/pic16/libsdcc/Makefile.rules,
2338         * device/lib/pic16/libm/Makefile,
2339         * device/lib/pic16/libio/Makefile.rules: added CSTD macro in CFLAGS
2340         to compile with C standard set in Makefile.common
2341         * device/lib/pic16/libc/stdlib/Makefile: added new C sources
2342         rand.c and crc.c in compilation process,
2343         * device/lib/pic16/libsdcc/int/divuint.c,
2344         * device/lib/pic16/libsdcc/long/divulong.c: changed declaration of
2345         `c' from signed to unsigned,
2346         * device/lib/pic16/startup/crt0.c,
2347         * device/lib/pic16/startup/crt0i.c,
2348         * device/lib/pic16/startup/crt0iz.c: adopted to all SDCC specific
2349         keywords to double underlined form, bug fixes in _do_cinit function
2350         which prevented the correct initialization of the .idata segment,
2351         * src/pic16/pcoderegs.c (insideLRBlock): fixed a bug that caused the
2352         core to enter a infinite loop
2353         * device/lib/pic16/libc/stdlib/rand.c, crc.c: new files
2354
2355 2005-04-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2356
2357         * src/SDCCicode.c (getArraySizePtr): fixed bug #1122171
2358
2359 2005-04-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2360
2361         * device/include/Makefile.in: add support for hc08 subdirectory
2362         * device/include/hc08/: new subdirectory
2363         * device/include/hc08/mc68hc908jkjl.h: new header contributed by
2364         Lucas Loizaga, thanks!
2365         * device/include/hc08/mc68hc908qy.h,
2366         * device/include/hc08/mc68hc908gp32.h,
2367         * device/include/hc08/mc68hc908jb8.h: moved hc08 register defs to
2368         their own directory. Changed internal macro names to use the compiler
2369         reserved namespace. Changed SDCC specific keywords to double
2370         underlined form.
2371         * device/include/math.h,
2372         * device/include/malloc.h,
2373         * device/include/stdarg.h,
2374         * device/include/stdbool.h
2375         * device/include/string.h,
2376         * device/include/tinibios.h,
2377         * device/include/ds400rom.h,
2378         * device/include/8051.h,
2379         * device/include/8052.h,
2380         * device/include/80c51xa.h,
2381         * device/include/at89c55.h,
2382         * device/include/at89S8252.h,
2383         * device/include/at89x51.h,
2384         * device/include/at89x52.h,
2385         * device/include/ds80c390.h,
2386         * device/include/reg764.h,
2387         * device/include/regc515c.h,
2388         * device/include/sab80515.h,
2389         * device/include/mcs51/c8051f000.h,
2390         * device/include/mcs51/c8051f018.h,
2391         * device/include/mcs51/c8051f020.h,
2392         * device/include/mcs51/c8051f040.h,
2393         * device/include/mcs51/c8051f060.h,
2394         * device/include/mcs51/c8051f120.h,
2395         * device/include/mcs51/c8051f300.h,
2396         * device/include/mcs51/c8051f310.h,
2397         * device/include/mcs51/c8051f320.h,
2398         * device/include/mcs51/c8051f330.h,
2399         * device/include/mcs51/c8051f350.h,
2400         * device/include/z180.h: Changed SDCC specific keywords to double
2401         underlined form.
2402
2403 2005-03-31 Vangelis Rokas <vrokas AT users.sourceforge.net>
2404
2405         * src/pic16/device.c (Pics16[]): added devices 18F2550, 18F4331,
2406         18F4455,
2407         * (pic16_assignConfigWordValue): disable testing of configuration
2408         register value with config mask,
2409         * src/pic16/gen.c (pic16_testStackOverflow): prefix stack test
2410         function with port->fun_prefix,
2411         * (genFunction): when generating a naked interrupt function never
2412         create an absolute segment placed in interrupt vector address, place
2413         the actual interrupt function at IVA instead, when an interrupt
2414         function is generated with unspecified interrupt then do not create
2415         the absolute section,
2416         * (genGenPointerGet, genGenPointerSet, genPackBits): replace all
2417         code for generating a call to generic pointer get/put function with
2418         a call to function pic16_callGenericPointer(),
2419         * src/pic16/genutils.c (pic16_callGenericPointerRW): NEW, generates
2420         the call to the generic pointer get/put functions with prefixing the
2421         function name with port->fun_prefix,
2422         * src/pic16/glue.c (pic16glue): ifdef-out test of OF_LR_SUPPORT,
2423         * src/pic16/main.c (_process_pragma): prefix function with
2424         port->fun_prefix,
2425         * (_pic16_finaliseOptions): define macro __18Fxxxx macro when
2426         calling assembler, old 18Fxxxx macro is deprecated,
2427         * src/pic16/pcode.c (unlinkpCodeFromBranch): added PC_INLINE and
2428         PC_ASMDIR in while condition,
2429         * (findInstruction): add PC_ASMDIR in while condition,
2430         * (buildCallTree): prefix main with port->fun_prefix,
2431         * (pic16_pCode2str): fixed bug that didn't emit the memory access
2432         identifier for variable with banked access in instructions BTFSS,
2433         BTFSC, BCF, BSF, BTG
2434         * (AnalyzeFlow): moved call to OptimizepCode to pic16_AnalyzeBanking,
2435         * src/pic16/pcodepeep.c (pCodeOpCompare): increase size of b to 1024,
2436         * src/pic16/pcoderegs.c (pic16_pCodeRegoptimizeRegUsage): don't
2437         perform optimization when enviroment variable NO_REG_OPT is set,
2438         * (insideLRBlock): NEW, return 1 if register is inside an
2439         INF_LOCALREGS block,
2440         * (RemoveRegFromLRBlock): remove a register that is completely
2441         eliminated by register optimization, but it is still left in local
2442         register store/restore in/from stack block,
2443         * (Remove2pcodes): after removing register, check to see if it
2444         should be removed from local register store/restore in/from stack
2445         block,
2446         * src/pic16/ralloc.c (pic16_decodeOp): added decode for
2447         DUMMY_READ_VOLATILE,
2448
2449         * device/include/pic16/adc.h: minor prototype modifications and
2450         update,
2451         * device/include/pic16/malloc.h: added GPL notice various
2452         modifications,
2453         * device/include/pic16/stdint.h: NEW, standard header for ints
2454         * device/include/pic16/delay.h: NEW, header for delay functions,
2455         delay10tcy, delay100tcy, delay1ktcy, delay10ktcy, delay100ktcy,
2456         delay1mtcy,
2457         * device/include/pic16/signal.h: NEW, header providing helper macros
2458         for implementing signal handlers,
2459         * device/include/pic16/stdio.h: added prototypes for functions,
2460         printf, vprintf, sprintf, vsprintf, fprintf, vfprintf. Added
2461         prototypes for stdin and stdout, added macro PUTCHAR to
2462         automatically implement putchar function prototype,
2463         * device/include/pic16/usart.h: modified and updated USART library,
2464         * device/lib/pic16/libio/adc/,
2465         * device/lib/pic16/libio/i2c: some modifications to improve library
2466         performance,
2467         * device/lib/pic16/libc/stdio/: modifications for the new printf*
2468         family of functions,
2469         * device/lib/pic16/libc/stdlib/: various modifications in the malloc
2470         family of functions and other sources,
2471         * device/lib/pic16/libio/usart/: NEW, c sources for the usart module
2472         of the PIC18Fxx[28] devices,
2473         * device/lib/pic16/libc/delay/: NEW, c sources for the delay functions,
2474         * device/lib/pic16/libc/utils/: minor modifications in the .S sources,
2475         * device/lib/pic16/startup/{crt0i.c, crt0iz.c}: redesign of the
2476         _do_cinit function, because the previous failed when local variables
2477         where not placed in the same memory bank,
2478         * device/lib/pic16/libsdcc/char/: various modifications to improve
2479         library performance,
2480         * doc/sdccman.lyx: some reorganization of the PIC16 part, added many
2481         information on the new functions of the c library and more...
2482
2483 2005-03-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2484
2485         * src/SDCCBBlock.c (iCodeBreakDown): fixed bug #1170212
2486
2487 2005-03-26 Raphael Neider <rneider AT web.de>
2488
2489         * src/pic16/gen.c (genSkipc): fixed semantics (execute branch
2490           if condition == CARRY)
2491         * (genCmp): adapted to new genSkipc semantics
2492         * src/pic16/genutils.c (pic6_genCmp_special): removed side effect
2493           on rIfx (genCmp was broken)
2494
2495 2005-03-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2496
2497         * src/SDCCmain.c (setDefaultOptions, optionsTable[], parseCmdLine),
2498         * src/z80/main.c (_keywords[]),
2499         * src/SDCCglobal.h (struct options),
2500         * src/SDCC.y,
2501         * src/SDCC.lex (isTargetKeyword, doPragma, pragma_tbl[]): new pragmas
2502         to enable/disable SDCC and C99 extensions/keywords (std_c89, std_sdcc89,
2503         std_c99, std_sdcc99). Also, equivalent command line options (--std-c89,
2504         --std-sdcc89, --std-c99, --std-sdcc99). SDCC specific keywords are
2505         always available in leading double underscore form. The C99 support is
2506         mostly missing, but it's a start.
2507         * support/regression/tests/bug-227710.c: fixed nonconforming use of
2508         reserved identifier "__data".
2509
2510 2005-03-24 Maarten Brock <sourceforge.brock AT dse.nl>
2511
2512         * src/mcs51/peeph.def: fixed bug 1170013
2513
2514 2005-03-22 Maarten Brock <sourceforge.brock AT dse.nl>
2515
2516         * device/include/mcs51reg.h: fixed bug 842007
2517
2518 2005-03-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2519
2520         * src/SDCCcflow.c (dfNumCompare): committed the wrong version of this
2521         last time.
2522
2523 2005-03-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2524
2525         * src/port.h (struct PORT),
2526         * src/avr/ralloc.c (avr_assignRegisters),
2527         * src/avr/main.c,
2528         * src/ds390/ralloc.c (ds390_assignRegisters),
2529         * src/ds390/main.c,
2530         * src/hc08/ralloc.c (hc08_assignRegisters),
2531         * src/hc08/main.c,
2532         * src/mcs51/ralloc.c (mcs51_assignRegisters),
2533         * src/mcs51/main.c,
2534         * src/pic/ralloc.c (pic14_assignRegisters),
2535         * src/pic/main.c,
2536         * src/pic16/ralloc.c (pic16_assignRegisters),
2537         * src/pic16/main.c,
2538         * src/xa51/ralloc.c (xa51_assignRegisters),
2539         * src/xa51/main.c,
2540         * src/z80/ralloc.c (z80_assignRegisters),
2541         * src/z80/ralloc.h,
2542         * src/SDCCopt.c (eBBlockFromiCode, replaceRegEqv, killDeadCode),
2543         * src/SDCCcse.c (ifxOptimize, cseBBlock, cseAllBlocks),
2544         * src/SDCCcse.h,
2545         * src/SDCCdflow.c (computeDataFlow),
2546         * src/SDCCdflow.h,
2547         * src/SDCCloop.c (addDefInExprs, loopInvariants, loopOptimizations),
2548         * src/SDCCloop.h,
2549         * src/SDCCcflow.c (*),
2550         * src/SDCCcflow.h,
2551         * src/SDCCBBlock.c (iCodeBreakDown, dumpEbbsToFileExt, eBBWithEntryLabel),
2552         * src/SDCCBBlock.h (struct ebbIndex): new struct that keeps two copies
2553         of the eBBlock list, sorted by both bbnum and dfnum. (fixes bug with
2554         immedDom() returning wrong block; probably fixes bug #1160833)
2555
2556 2005-03-20 Borut Razem <borut.razem AT siol.net>
2557
2558         * support/scripts/inc2h.pl: WIN32 port
2559
2560 2005-03-19 Maarten Brock <sourceforge.brock AT dse.nl>
2561
2562         * device/lib/makefile.in: added abs.c and labs.c
2563
2564 2005-03-17 Maarten Brock <sourceforge.brock AT dse.nl>
2565
2566         * device/include/stdint.h: added
2567         * device/lib/abs.c: added
2568         * device/lib/labs.c: added
2569         * device/include/stdlib.h: added abs() and labs() prototypes
2570         * device/lib/libsdcc.lib: added abs and labs
2571         * device/include/float.h,
2572         * device/lib/_fsmul.c,
2573         * device/lib/printf_fast.c,
2574         * device/lib/printf_tiny.c: updated comments
2575
2576 2005-03-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2577
2578         * src/SDCCicode.c (geniCodeSwitch, geniCodeJumpTable): fixed
2579         bug #1164313
2580
2581 2005-03-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2582
2583         * src/SDCCcse.c (cseBBlock): retain assignment to self when volatile
2584         * src/SDCCast.c (isLoopCountable): fixed bug #1161985
2585
2586 2005-03-15 Maarten Brock <sourceforge.brock AT dse.nl>
2587
2588         * device/lib/printf_large.c: removed inline assembly for portability and
2589           readability. Use printf_fast if speed or size are more important.
2590         * src/pic16/gen.c: removed conditions around use of DEBUGpc
2591         * src/pic16/genutils.h: added define for DEBUGpc for MSVC
2592
2593 2005-03-15 Vangelis Rokas <vrokas AT users.sourceforge.net>
2594
2595         * src/pic16/genutils.c (pic16_genCmp_special): initialized offs to
2596         prevent compiler warning
2597
2598 2005-03-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
2599
2600         * device/lib/pic16/startup/crt0i.c (_cinit): local variables where
2601         moved to level 0 and declared as static. Also they are explicit
2602         placed in access bank. This was necessery because some times they
2603         might cross memory bank boundaries. crt0iz.c is *NOT* updated!!!
2604         * src/pic16/device.h: added flag OPTIMIZE_CMP to enable some compare
2605         optimizations. Currently only compare to unsigned char is implemented,
2606         * src/pic16/gen.c: added fReturnIdx array,
2607         * (struct resolvedIfx) is moved to gen.h and made public,
2608         * (struct _G): added sregsAlloc and sregsAllocSet fields,
2609         * (aopForSym): added an optimization to directly store in stack of
2610         the operand of a SEND iCode,
2611         * (pic16_aopOp): don't return return registers as strings (AOP_STR)
2612         but as registers instead (AOP_REG) using the fReturnIdx array,
2613         * (pic16_freeAsmop): remove the freed register from the
2614         _G.sregsAlloc field,
2615         * (pic16_aopGet): in case AOP_STR, the compare to 'a' is changed to
2616         a compare of 'WREG',
2617         * (pic16_popGetTempRegCond): changed function prototype, now
2618         function takes also a bitVector argument v which holds the current
2619         set of registers that are allocated for stack access by aopForSym,
2620         registers allocated in aopForSym for accessing stack symbols are not
2621         any more part of the functions usedRegs field,
2622         * (genCall): some times aopOp is called for a stack variable to be
2623         send, aopForSym might perform the push, if this is true make sure
2624         that genCall doesn't push the variable twice by testing _G.resDirect,
2625         * (genFunction): changed testing for unspecified interrupt number
2626         from 256 to INTNO_UNSPEC,
2627         * modified selection scheme of frame pointer generation. Previously
2628         if function did use local registers a frame pointer was generated,
2629         now a frame pointer is generated only if function has arguments
2630         (that need PLUSW2 register access), or has stack arguments, or the
2631         compiler is not instructed to omit the frame pointer,
2632         * (genEndFunction): before restoring local registers that were saved
2633         in the function preamble, also restore the registers that *might*
2634         have been allocated for stack access,
2635         * (genRet): removed some old comments,
2636         * (genCmp, the active (RN's) version): added a call to the
2637         pic16_genCmp_special function to perform the compare with a more
2638         robust and optimized way,
2639         * (genInline): a feature has been added in inline code generation,
2640         which allows a wildcard variable substitution when writing inline
2641         assembly. Code is incomplete and experimental therefore undocumented,
2642         * (genCast): changed order of aopOp for result and right to allow
2643         aopForSym to directly load the result if possible,
2644         * src/pic16/genutils.c (selectCompareOp, pic16_genCmp_special): NEW,
2645         perform an optimized compare on some selected special occasions,
2646         * src/pic16/genutils.h: declaration of resolvedIfx structure from gen.c,
2647         * src/pic16/glue.c (pic16createInterrupVect): make sure we never
2648         generate an IVT any more,
2649         * src/pic16/main.c (pic16_optionsTable): added command line option
2650         --optimize-cmp,
2651         * (_pic16_initPaths): when calling C preprocessor define pic18fXXXX
2652         macro too, when calling assembler define pic18fXXXX *and* __18Fxxxx
2653         macros,
2654         * src/pic16/NOTES: Raphael Neider added in list of active developers
2655         * src/pic16/pcode.c (OPT_TYPE_STR): added strings jumptable_begin and
2656         jumptable_end to prevent bug #,
2657         * (pic16_pciADDWFC, ADDFWC, COMF, CLRF): added some missing flags in
2658         inCond and outCond fields,
2659         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): add a fix for bug #,
2660         * src/pic16/ralloc.c (serialRegAssign): explicit set willCS to 0 to
2661         turn off register spilling,
2662         * (packRegsForOneUse): synced with other ports' versions although it
2663         is not used currently,
2664         * (pic16_packRegisters): added an optimization while reading
2665         structure bitfields, some registers may be saved (malloc code is
2666         decreased by 80 bytes)
2667
2668 2005-03-12 Vangelis Rokas <vrokas AT users.sourceforge.net>
2669
2670         * src/SDCCcse.c (cseBBlock): inside 'do operand lookup' loop test if
2671         left is a bitfield, if yes, then don't optimize assignment. Perhaps
2672         this can be optimized more?
2673
2674 2005-03-10 Raphael Neider <rneider AT web.de>
2675
2676         * src/pic16/gen.c (pic16_loadFSR0, genPackBits, genUnpackBits,
2677           genNearPointerGet): (hopefully) fixed access to bitfields via
2678           pointers (p->bitN = x; and x = p->bitN; failed)
2679
2680 2005-03-09 Paul Stoffregen <paul AT pjrc.com>
2681
2682         * device/lib/printf_fast.c: fix leading zero format, eg "%02d"
2683
2684 2005-03-09 Raphael Neider <rneider AT web.de>
2685
2686         * src/SDCCopt.c (killDeadCode): fixed bug #1156016
2687
2688 2005-03-06 Maarten Brock <sourceforge.brock AT dse.nl>
2689
2690         * src/SDCCicode.h: moved CRITICAL and ENDCRITICAL from SKIP_IC2 to SKIP_IC
2691         * src/mcs51/ralloc.c (willCauseSpill): added check for REG_BIT type,
2692           (regTypeNum): set REG_BIT type if necessary
2693         * src/mcs51/ralloc.h: added define REG_BIT, used to fix bug 1144613
2694         * support/regression/tests/critical.c: check bug 1144613
2695
2696 2005-03-02 Raphael Neider <rneider AT web.de>
2697
2698         * src/pic16/gen.c (genRightShiftLiteral): fixed bug #1154256
2699
2700 2005-02-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2701
2702         * src/avr/ralloc.c (serialRegAssign),
2703         * src/ds390/ralloc.c (serialRegAssign),
2704         * src/hc08/ralloc.c (serialRegAssign),
2705         * src/mcs51/ralloc.c (serialRegAssign),
2706         * src/pic/ralloc.c (serialRegAssign),
2707         * src/pic16/ralloc.c (serialRegAssign),
2708         * src/xa51/ralloc.c (serialRegAssign),
2709         * src/z80/ralloc.c (serialRegAssign): fixed bug #1105154
2710
2711 2005-02-22 Maarten Brock <sourceforge.brock AT dse.nl>
2712
2713         * src/SDCCast.c (decorateType): fixed bug 1124787
2714
2715 2005-02-20 Hubert Sack <sack AT digiplan.de>
2716         committed by Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2717
2718         * src/mcs51/peeph.def: added peepholes 3.h-k and 132.a-f from
2719         patch #1121755
2720
2721 2005-02-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2722
2723         * src/SDCCpeeph.def: new keyword "labelRefCountChange" which allows peepholes
2724         to keep the correct label reference count when adding/removing references
2725         to labels. A peephole file using this is appended to patch #1144962.
2726
2727 2005-02-14 Raphael Neider <rneider AT web.de>
2728
2729         * device/lib/pic16/libc/string/memccpy.c: changed 3rd argument to char
2730         * src/SDCC.lex (process_pragma): fixed to make disable_warning work for PIC16
2731         * src/pic16/gen.c (aopForSym, calls to pic16_aopOp): prevent unneccessary
2732           retrievals of result operand's value on assignment
2733
2734 2005-02-13 Vangelis Rokas <vrokas AT otenet.gr>
2735
2736         * device/include/pic16/string.h: modified prototype for memccpy()
2737         to memccpy(void *, void *, char, size_t)
2738         * src/pic16/gen.c (genFunction, genEndFunction): reenable if-case to
2739         check whether to omit frame pointer or not,
2740         * (genInline): convert all occurences of "\n" to LF in inline
2741         assembler blocks, this helps formatting the inline text,
2742         * (pic16_loadFSR0): modified prototype,
2743         * (genNearPointerGet, genNearPointerSet): reorganization of code,
2744         removed some 8051 legacy code,
2745         * (genPackBits): enabled handling bitfields exceeding one byte in size,
2746         * src/pic16/ralloc.c (pic16_assignRegisters): clear dynrIdx variable
2747         before allocating temporary registers in functions,
2748
2749 2005-02-11 Maarten Brock <sourceforge.brock AT dse.nl>
2750
2751         * support/regression/tests/bitvars.c: corrected the "fix"
2752
2753 2005-02-10 Maarten Brock <sourceforge.brock AT dse.nl>
2754
2755         * support/regression/tests/bitvars.c,
2756         * support/regression/tests/bitwise.c,
2757         * support/regression/tests/rotate.c: "fixed" problems on Alpha
2758
2759 2005-02-10 Raphael Neider <rneider AT web.de>
2760
2761         * src/pic16/pcode.c (assignToSameBank) : fixed cast to pointer of
2762           different size for Alpha
2763         * src/pic16/gen.c (genCmpEq) : improved compare with 0
2764
2765 2005-02-09 Raphael Neider <rneider AT web.de>
2766
2767         * src/SDCC.lex(doPragma) : save and restore warning options as well
2768           (also added new stack plus clone- and copyAndFreeSDCCERRG())
2769         * have #pragma less_pedantic set the errorlevel to WARNING
2770           (fixes #1117001)
2771         * (cloneOptimize) : fixed wrong malloc's size
2772         * support/Util/SDCCerr.[ch] : made SDCCERRG globally accessible to
2773           facilitate correct handling of #pragma (save|restore)
2774
2775 2005-02-09 Maarten Brock <sourceforge.brock AT dse.nl>
2776
2777         * src/mcs51/gen.c: removed non-standard C nameless struct/union
2778
2779 2005-02-04 Slade Rich <slade_rich AT users.sourceforge.net>
2780
2781         * src/pic/gen.c : Fix for bugs #1080519 & #1115662.
2782
2783 2005-02-03 Maarten Brock <sourceforge.brock AT dse.nl>
2784
2785         * device/include/mcs51/c8051f120.h: added declarations for sbit port 2,3&4
2786
2787 2005-02-02 Raphael Neider <rneider AT web.de>
2788
2789         * src/SDCCast.c (processParms): disabled W_NONRENT_ARGS for pic16 port
2790         * src/pic16/gen.c (aopForSym): reenabled special case for function pointers
2791         * (pic16_storeForReturn): fixed to allow returning function pointers
2792         * (genPackBits): improved accessing full bytes, implemented for GPOINTERs
2793         * device/include/pic16/{stddef.h,stdbool.h}: added
2794
2795 2005-02-02 Maarten Brock <sourceforge.brock AT dse.nl>
2796
2797         * device/include/mcs51/c8051f040.h: added define CPT2_PAGE
2798
2799 2005-02-01 Slade Rich <slade_rich AT users.sourceforge.net>
2800
2801         * src/pic16/pic16.dsp : Added file graph.c to make it compile under windows
2802         * src/pic16/Makefile.bcc : Do not use this file but added file graph.c as it
2803          appeared to be required
2804
2805 2005-01-31 Borut Razem <borut.razem AT siol.net>
2806
2807         * support/scripts/sdcc.nsi: added include/asm/ds390, include/asm/mcs51,
2808           include/mcs51 and include/z80 directories to the package
2809
2810 2005-01-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2811
2812         * src/hc08/gen.c (genFunction): fixed bug #1112752
2813
2814 2005-01-30 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2815
2816         * src/mcs51/peeph.def: adapted peephole 258.x to changed gen.c (genAnd)
2817
2818 2005-01-29 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2819
2820         * src/mcs51/gen.c (genAnd): accessing LSB/MSB by rotating acc
2821
2822 2005-01-29 Maarten Brock <sourceforge.brock AT dse.nl>
2823
2824         * device/include/Makefile.in: create/copy mcs51 and z80 include subdirs
2825
2826 2005-01-27 Maarten Brock <sourceforge.brock AT dse.nl>
2827
2828         * device/include/c8051fxxx.h: removed these 6 files
2829         * device/include/mcs51/c8051fxxx.h: added these 11 new files
2830
2831 2005-01-26 Raphael Neider <rneider AT web.de>
2832
2833         * src/pic16/gen.c (genAssign): fixed assignment from longs
2834           in codespace (were cut to three bytes)
2835         * (genDummyRead): implemented (except for CODESPACE...),
2836           fixed bug #1108575
2837         * src/pic16/glue.c (emitStatistics): beautified
2838         * device/lib/pic16/libm/Makefile: added include path
2839
2840 2005-01-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2841
2842         * src/z80/gen.c (aopPut): fixed bug #1103902
2843
2844 2005-01-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2845
2846         * device/lib/expf.c: fixed bug #1095792
2847
2848 2005-01-24 Vangelis Rokas <vrokas AT otenet.gr>
2849
2850         * device/lib/pic16/libm: added Math library sources
2851
2852 2005-01-24 Raphael Neider <rneider AT web.de>
2853
2854         * src/pic16/pcode.h: added second memory operand to pCodeOpReg
2855           to enable upcast to pCodeOpReg2 (there is no type tag to
2856           differenciate the two and pic16_popGet2p cast into PCOR2)
2857         * src/pic16/main.c (_process_pragma): fixed another malloc bug
2858           (sizeof(sectNames) changed to sizeof(sectName))
2859           Both patches fix segfaults under MinGW.
2860
2861 2005-01-23 Raphael Neider <rneider AT web.de>
2862
2863         * src/pic16/{device.c,pcode.c}: s/free/Safe_free/g for
2864           Safe_[mc]?alloc()'ed variables
2865         * src/pic16/gen.c (pic16_aopOp,pic16_popGet): added handling
2866           of (byte sized) temporaries (assign them to WREG for now)
2867         * src/pic16/main.c (_process_pragma): fixed nasty malloc bug
2868           (used sizeof(set *sectSyms) instead of sizeof(struct sectSym)),
2869           this might fix SIGSEGVs on MinGW...
2870         * src/SDCCopt.c (killDeadCode): restored original behaviour
2871           (volatile operands might get thrown away though)
2872
2873 2005-01-23 Vangelis Rokas <vrokas AT otenet.gr>
2874
2875         * src/pic16/gen.c: fixed bug #1106975,
2876         * src/pic16/gen.c: fixed possible bug #1102572, now during TOS
2877         pointer update, INTCON is saved, global interrupts are disabled and
2878         restored after updateing TOS.
2879         * src/SDCC.y, src/SDCC.lex, src/SDCCsymt.c, src/SDCCsymt.h:
2880         * added function attribute 'shadowregs' to take advantage of shadow
2881         registers,
2882         * added function attribute 'wparam' as an alternative to the wparam
2883         pragma,
2884         * support/Utils/SDCCerr.[ch]: added error E_SHADOWREGS_NO_ISR when
2885         user declares a non-ISR function as 'shadowregs',
2886         * doc/sdccman.lyx: updated to reflect recent changes of pic16 port
2887
2888 2005-01-22 Vangelis Rokas <vrokas AT otenet.gr>
2889
2890         * .version: bumped version number to 2.4.8
2891         * device/lib/pic16/pics.all: list of PIC18F devices supported by
2892         pic16 port,
2893         * device/lib/pic16/libio/i2c/: I2C module support library,
2894         * device/include/pic16/i2c.h: I2C support library header,
2895         * device/lib/pic16/libc/stdio/: standard IO support sources,
2896         * (printf_small.c): printf_small() source, supports float print,
2897         * (printf_tiny.c): printf_tiny() source, does not support floats,
2898         * device/lib/pic16/Makefile.common.in: added OPT_FLAGS macro to
2899         enable global optimizations for entire library source, other
2900         Makefiles in the source tree are also modified to reflect this,
2901         * device/lib/pic16/libc/stdlib/putchar.c (putchar): dummy putchar()
2902         function,
2903         * doc/sdccman.lyx: updated to reflect new changes,
2904         * src/pic16/gen.c (aopForSym): don't handle sym->iaccess in
2905         sym->onStack if-case,
2906         * src/pic16/main.c (_pic16_keywords): commented out keywords bit,
2907         sbit, idata, _idata, xdata, _xdata,
2908         * added pragma library, to link an external library, (see doc),
2909         * removed command line options, --pomit-config-words, --pomit-ivt,
2910         --pleave-reset-vector,
2911         * (pic16_finaliseOptions): when define macro SDCC_MODEL_{SMALL/LARGE}
2912         when calling assembler to reflect memory model used, also define
2913         macro STACK_MODEL_{SMALL/LARGE} when compiling and assembling to
2914         reflect stack model used,
2915         * src/pic16/ralloc.c (pic16_allocDirReg): when operand is allocated
2916         on stack return NULL,
2917
2918 2005-01-22 Daniel Winkler <post AT danielwinkler.de>
2919
2920         * src/SDCCopt.c (killDeadCode): do not throw iCodes away if one
2921           of the operands is volatile. Fixes #1020220
2922
2923 2005-01-22 Daniel Winkler <post AT danielwinkler.de>
2924
2925         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): reenabled optimization
2926         * (OptimizeRegUsage): make sure that there is really no other flow where
2927           the first pCode is used
2928
2929 2005-01-22 Raphael Neider <rneider AT web.de>
2930
2931         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): disabled optimization
2932           to fix #1106967 (pCode->seq are not set up correctly)
2933
2934 2005-01-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2935
2936         * src/SDCCglue.c (glue): make sure code area is declared before the
2937         static initialization area.
2938
2939 2005-01-21 Raphael Neider <rneider AT web.de>
2940
2941         * device/lib/Makefile.in: fixed test for pic16 install dir
2942         * device/lib/pic16/*/Makefile*: modified compile flags to enable
2943           optimizations
2944         * doc/sdccman.lyx: updated banksel optimization, removed --flr-support and
2945           added --optimize-goto compiler switch and pragma wparam documentation
2946         * src/pic16/pcode.c (pic16_OptimizeBanksel): removed statistics dump
2947         * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): fixed copying of WREG, PRODL
2948           and PRODH closing bug #1071770 (peephole optimizer)
2949
2950 2005-01-19 Raphael Neider <rneider AT web.de>
2951
2952         * src/SDCCglobl.h: ensure that PATH_MAX >= 2048 to guarantee
2953           cmdLine buffers (used when calling sdcpp...) are large enough
2954           (MAX_PATH=256 truncates arguments leading to system halts when
2955           used in MinGW...)
2956         * src/pic16/gen.c (pic16_sameRegs): relaxed size criterion
2957         * (genUminus): rewritten to for efficiency
2958         * (genNearPointer[GS]et): enforce reloading of FSR0 (was still
2959           used uninitialized in some cases)
2960         * (genCast): upcasting a 16bit int to a 24bit GPOINTER may not
2961           copy the third byte from the int -- now assumes 0x80 (data memory)
2962         * src/pic16/genarith.c (pic16_genPlus): fixed bug when swapping
2963           operands (genAddLit expects the iCode's operands to swapped as
2964           well), fixed leftover bytes (crashed for short left operands)
2965         * (pic16_genMinusDec): performance improvements, removed false
2966           PIC14 emitSKPNCs
2967         * (pic16_genMinus): fixed to cope with differently sized operands
2968         * src/pic16/glue.c (pic16_glue): added new banksel optimization
2969           for --obanksel > 1
2970         * src/pic16/pcode.c: implemented (first phase of) banksel optimization
2971         * src/pic16/graph.[ch]: implementation of directed graphs, used by
2972           new banksel optimization
2973         * src/pic16/pcoderegs.c (pCodeRegMapLiveRangesInFlow): prevented
2974           analysis for temporary registers (segfaults...)
2975         * src/pic16/peeph.def: added rule
2976
2977 2005-01-18 Vangelis Rokas <vrokas AT otenet.gr>
2978
2979         * device/lib/pic16/libc/stdlib/x_ftoa.c: it defines x_ftoa function
2980         which converts a float number to its ASCII representation
2981         * device/lib/pic16/libc/utils/cnvfrac.S,cnvint.S: support
2982         functions to convert the fractional and integer part of a float to ASCII,
2983         * device/lib/pic16/libc/stdlib/(calloc.c,free.c, malloc.c,
2984         realloc.c): added _MALLOC_SPEC to explicit place variables in data
2985         ram
2986         * device/include/asm/pic16/features.h: added _CODE, _DATA, _AUTOMEM,
2987         _STATMEM macros,
2988         * device/include/pic16/adc.h: added GPL info,
2989         * src/pic16/gen.c (genIfxpCOpJump): perform an genIfxJump but using
2990         a pCodeOp as tested operand,
2991         * (genNearPointerGet): optimized bit testing, does not use
2992         intermediate register for bit value, test directly instead with
2993         BTFSS, BTFSC, works only for single bits,
2994         * (genpic16Code): dump the name of the iCode in the asm,
2995         * src/pic16/ralloc.c (decodeOp): removed static declaration and
2996         renamed to pic16_decodeOp,
2997         * (serialRegAssign): do not allocate a temporary register for iCode
2998         sequences that test a single bit for 1/0
2999
3000 2005-01-12 Vangelis Rokas <vrokas AT otenet.gr>
3001
3002         * src/pic16/pcode.[ch]: introduced pic16_stackpnt_*,
3003         pic16_framepnt_*, pic16_stack_*, pic1_frame_* pointer variables to
3004         access stack and frame pointers. They are initially assigned to
3005         point at pic16_pc_fsr1[lh] and pic16_pc_fsr2[lh] variables and other
3006         accessing SFRs. Updated all occurences of modification of stack or
3007         frame pointer in gen.c and pcode.c,
3008         * src/pic16/ralloc.c (serialRegAssign): fixed two bugs with
3009         assigning of a literal value to pointers,
3010         * src/pic16/main.c (pic16_finiliseOptions): set pre-processor define
3011         flag STACK_MODEL_SMALL or STACK_MODEL_LARGE according to the model
3012         selected
3013
3014 2005-01-11 Vangelis Rokas <vrokas AT otenet.gr>
3015
3016         * doc/sdccman.lyx: update documentation about stack pragma, added
3017         some info for stack memory models
3018
3019 2005-01-08 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3020
3021         * src/pic16/gen.c (DEBUGpc): MSVC 6 does not support macro variable arguments
3022
3023 2005-01-08 Raphael Neider <rneider AT web.de>
3024
3025         * src/pic16/device.c (pic16_dump_usection): changed naming scheme for
3026           udata sections to fix bug #1097823
3027
3028 2005-01-05 Raphael Neider <rneider AT web.de>
3029
3030         * src/pic16/gen.c (genGenericShift): added handling of differently
3031           sized left operand and result
3032
3033 2005-01-04 Raphael Neider <rneider AT web.de>
3034
3035         * src/pic16/gen.c (genIfxJump): fixed inverted skips on CARRY
3036         * (genIfx): fixed (?) read from uninitialized SPIL_LOC (now assumes CARRY
3037           to hold the condition bit)
3038         * added new version of genCmp (old code available via #define)
3039         * added new version of genShiftLeft/genShiftRight in a generic
3040           way, now supports shifting by negative values
3041         * (genLeftShiftLiteral, genRightShiftLiteral): use absolute value of
3042           shiftCount (expected by genGenericShift)
3043         * src/pic16/genarith.c (genPlus): added code for adding CARRY+literal
3044         * src/pic16/pcode.c (pic16_OptimizeJumps): removed annoying statistics
3045           dump
3046         * (pic16_newpCodeOpLit): changed to cast to unsigned char (as e.g. -32766
3047           is an invalid literal too...)
3048
3049 2005-01-04 Vangelis Rokas <vrokas AT otenet.gr>
3050
3051         * src/pic16/gen.c (aopForSym, genEndFunction): applied some fixes
3052         from Raphael Neider,
3053         * src/pic16/pcode.c (pic16_newpCodeOpLit): removed casting to char
3054         for 8-bit literals. This fixes some literal operands which are sign
3055         extended to 16-bits ints when instruction needs only 8-bits.
3056
3057 2004-12-31 Paul Stoffregen <paul AT pjrc.com>
3058
3059         * device/lib/logf.c: added mcs51 assembly version
3060         * device/lib/expf.c: added mcs51 assembly version
3061         * device/lib/_logexpf.c: new shared asm code for expf and logf
3062         * device/include/math.h: add defines for assembly math library
3063         * device/lib/Makefile.in: build new _logexpf.c
3064         * device/lib/libfloat.lib: use new _logexpf.c
3065
3066 2004-12-29 Slade Rich <slade_rich AT users.sourceforge.net>
3067
3068         * src/pic/device.c
3069         * src/pic/pcode.c : adjusted internal stack and pre-allocated registers for
3070           device types which have less than 0x7f registers.
3071
3072 2004-12-29 Slade Rich <slade_rich AT users.sourceforge.net>
3073
3074         * src/pic/genarith.c : Fixed problem with subtraction where the result would not be updated when borrowing.
3075
3076 2004-12-28 Paul Stoffregen <paul AT pjrc.com>
3077
3078         * device/lib/printf_fast.c: only build on supported arch.
3079         * device/lib/printf_tiny.c: only build on supported arch.
3080         * device/lib/printf_fast_f.c: only build if asm float lib
3081         * device/lib/_fsget1arg.c: only build if asm float lib
3082         * device/lib/_fsget2args.c: only build if asm float lib
3083         * device/lib/_fsnormalize.c: only build if asm float lib
3084         * device/lib/_fsreturnval.c: only build if asm float lib
3085         * device/lib/_fsrshift.c: only build if asm float lib
3086         * device/lib/_fsswapargs.c: only build if asm float lib
3087         * device/include/stdio.h: don't provide print_fast,
3088           print_fast_f, print_tiny prototypes if --xstack used
3089
3090 2004-12-28 Maarten Brock <sourceforge.brock AT dse.nl>
3091
3092         * device/lib/sincosf.c (sincosf): don't invert bit/bool by ~
3093         * support/regression/ports/mcs51-stack-auto/spec.mk: added new _fs.. files
3094           to the SOURCES
3095
3096 2004-12-28 Paul Stoffregen <paul AT pjrc.com>
3097
3098         * device/lib/printf_fast_f.c: same as printf_fast, but
3099           with floating point enabled
3100         * device/lib/printf_fast.c: minor tweaks
3101         * device/include/stdio.h: add printf_fast_f
3102
3103 2004-12-27 Paul Stoffregen <paul AT pjrc.com>
3104
3105         * src/SDCCmain.c: make --float-reent default for mcs51
3106         * device/lib/_fsadd.c: added mcs51 assembly version
3107         * device/lib/_fssub.c: added mcs51 assembly version
3108         * device/lib/_fsmul.c: added mcs51 assembly version
3109         * device/lib/_fsdiv.c: added mcs51 assembly version
3110         * device/lib/_fseq.c: added mcs51 assembly version
3111         * device/lib/_fsneq.c: added mcs51 assembly version
3112         * device/lib/_fsgt.c: added mcs51 assembly version
3113         * device/lib/_fslt.c: added mcs51 assembly version
3114         * device/lib/_fscmp.c: shared code for fseq,fsgt,fslt,fsneq
3115         * device/lib/Makefile.in: add _fscmp to build
3116         * device/lib/libfloat.lib: add _fscmp to build
3117
3118 2004-12-27 Paul Stoffregen <paul AT pjrc.com>
3119
3120         * device/lib/_fs2slong.c: added mcs51 assembly version
3121         * device/lib/_fs2sint.c: added mcs51 assembly version
3122         * device/lib/_fs2schar.c: added mcs51 assembly version
3123         * device/lib/_fs2ulong.c: added mcs51 assembly version
3124         * device/lib/_fs2uint.c: added mcs51 assembly version
3125         * device/lib/_fs2uchar.c: added mcs51 assembly version
3126         * device/lib/_slong2fs.c: added mcs51 assembly version
3127         * device/lib/_sint2fs.c: added mcs51 assembly version
3128         * device/lib/_schar2fs.c: added mcs51 assembly version
3129         * device/lib/_ulong2fs.c: added mcs51 assembly version
3130         * device/lib/_uint2fs.c: added mcs51 assembly version
3131         * device/lib/_uchar2fs.c: added mcs51 assembly version
3132         * device/include/float.h: added #define to select asm vs c
3133
3134 2004-12-26 Paul Stoffregen <paul AT pjrc.com>
3135
3136         * device/lib/printf_fast.c: improvements to float output
3137         * device/include/float.h: add defines for assembly float library
3138         * device/lib/_fsget1arg.c: receive 1 float arg
3139         * device/lib/_fsget2args.c: receive 2 float args (reentrant)
3140         * device/lib/_fsnormalize.c: normalize a float
3141         * device/lib/_fsreturnval.c: return float, various helper routines
3142         * device/lib/_fsrshift.c: right shift a float's mantissa
3143         * device/lib/_fsswapargs.c: swap 2 floats
3144         * device/lib/Makefile.in: build these 6 new files for mcs51
3145         * device/lib/libfloat.lib: add these 6 files to the library
3146
3147 2004-12-26 Borut Razem <borut.razem AT siol.net>
3148
3149         * sim/ucsim/avr.src/arith_inst.cc: fixed bug #1088372- savr is not
3150           built by gcc 3.4.2
3151
3152 2004-12-25 Paul Stoffregen <paul AT pjrc.com>
3153
3154         * device/lib/printf_tiny.c: printf for mcs51 in only 267 bytes,
3155           and fully reentrant and register bank neutral.
3156         * device/lib/printf_fast.c: added float (not enabled by default),
3157           added compact/slower integer (also not enabled by default),
3158           improved size/speed of fast integer code, other minor changes
3159         * device/include/stdio.h, device/lib/Makefile.in,
3160           device/lib/libsdcc.lib: integrate printf_tiny into mcs51 build
3161
3162 2004-12-24 Maarten Brock <sourceforge.brock AT dse.nl>
3163
3164         * src/pic16/pcode.c: declaring variables other than at the start of a
3165           block is not supported in C by VC6.
3166
3167 2004-12-22 Vangelis Rokas <vrokas AT otenet.gr>
3168
3169         * applied a previous patch from Raphael Neider that wasn't included
3170         in the previous commits, which fixes infinite loops within jumptable
3171         improvements,
3172         * made some fixes that previous patches introduced
3173
3174 2004-12-21 Vangelis Rokas <vrokas AT otenet.gr>
3175
3176         * src/pic16/gen.c (pic16_aopGet): applied fix from Raphael Neider
3177         that fixes an issue with AOP_PCODE asmop's offset,
3178         * (pic16_popCopyReg): update instance field too,
3179         * (mov2w): modified to pic16_mov2w because it conflicts with mov2w
3180         function of pic port,
3181         * (genCmp, genAnd, genAssign),
3182         * src/pic16/genarith.c (genAddLit): some fixes from Raphael Neider,
3183
3184 2004-12-20 Vangelis Rokas <vrokas AT otenet.gr>
3185
3186         * src/SDCCast.c (gatherAutoInit): allow pic16 to emit static
3187         variables initial values to idata section,
3188         * src/SDCCicode.c (geniCodeCall): patch from ### to fix unreferenced
3189         variables in some functions. This utilizes parmBytes field of iCode
3190         structure to hold the offset of the variable in stack. (might be
3191         able to use the stack field too?)
3192         * applied patch from Raphael Neider # ### , # ###
3193         * src/pic16/glue.c (pic16emitRegularMap): fix to print static
3194         variable initial values in idata section,
3195         * src/pic16/ralloc.c (pic16_allocDirReg): don't allocate register
3196         for static variables with initial value
3197         * src/device/lib/pic16/libsdcc/float/ulong2fs.c (__ulong2fs):
3198         applied fix in while loop from Raphael Neider.
3199
3200 2004-12-19 Maarten Brock <sourceforge.brock AT dse.nl>
3201
3202         * src/ds390/gen.c (genCpl): fixed bit=~(char/bit) bugs, added warning
3203         * src/ds390/main.c (_ds390_regparm): don't pass bit params in registers
3204         * src/ds390/ralloc.c (serialRegAssign): spill bits
3205         * src/mcs51/gen.c (genCpl): fixed bit=~(char) bugs, added warning
3206         * support/Util/SDCCerr.c,
3207         * support/Util/SDCCerr.h: added warning W_COMPLEMENT for using bit=~(bit)
3208         * support/regression/tests/bitvars.c: added tests for bitwise complement(~)
3209         * support/regression/tests/bitwise.c: added test for bitwise complement(~)
3210
3211 2004-12-09 Maarten Brock <sourceforge.brock AT dse.nl>
3212
3213         * device/include/sdcc-lib.h: inserted LGPL, added includes
3214           asm/ds390/features.h and asm/mcs51/features.h
3215         * device/include/asm/default/features.h,
3216         * device/include/asm/gbz80/features.h,
3217         * device/include/asm/z80/features.h: added empty _AUTOMEM
3218           and _STATMEM
3219         * device/include/asm/ds390/features.h,
3220         * device/include/asm/mcs51/features.h: added files with defines for
3221           _AUTOMEM and _STATMEM indicating automatic and static storage class
3222         * device/lib/printf_large.c (_print_format): optimized & used _AUTOMEM
3223         * doc/sdccman.lyx: version 2.4.7, updated xstack documentation
3224         * src/SDCCicode.c (geniCodeCast),
3225         * src/SDCCsymt.c (compareType): allow cast of data-ptr to idata-ptr
3226         * src/SDCCloop.c (loopInduction): removed unused variable lr
3227         * src/SDCCopt.c (convilong, convertToFcall): moved "easy special case"
3228           to convertToFcall to include char modulo (RFE 1065037), added check
3229           if left operand is unsigned and use abs of literal value
3230         * src/SDCCpeeph.c (setFromConditionArgs): removed double quotes option
3231           as it doesn't work after conversion from peephole.def to peephole.rul
3232         * src/mcs51/gen.c (toBoolean): added check for size,
3233           (genModOneByte): optimized code for signed char modulo a literal
3234           power of 2 (thanks to Hubert Sack),
3235           (genRRC): removed unnecessary "clr c",
3236           (genRLC): replaced "add a,acc" with cheaper "rlc a"
3237         * src/mcs51/peeph.def: renamed 115 to 115.a, added rule 115.b: another
3238           jump optimization,
3239           swapped rules 256.c and 256.d,
3240           extended 256.d by using new multiple checks (thanks Erik),
3241           added rules 256.e and 256.f,
3242           updated rule 261.a and 261.b to new generated code
3243         * support/regression/tests/muldiv.c: added test div/mod by a power of 2
3244
3245 2004-12-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3246
3247         * src/SDCCloop.c (basicInduction, loopInduction): fixed several
3248           induction related bugs, including first part of bug #1074377
3249
3250 2004-12-05 Vangelis Rokas <vrokas AT otenet.gr>
3251
3252         * applied patch from bug-report #1076292,
3253         * applied patches for genAnd and Goto-optimizations for Raphael
3254         Neider,
3255         * src/SDCCicode.c (printOperand): fixed !REGA source to compile and
3256         dump a less iCode information,
3257         * src/pic16/device.h (pic16_options_t): added field debgen,
3258         * src/pic16/gen.h: added macros DUMP_FUNCTION_ENTRY,
3259         DUMP_FUNCTION_EXIT, FENTRY, FENTRY2,
3260         * src/pic16/gen.c (my_powof2): renamed to pic16_my_powof2 and made
3261         puclic,
3262         * (various functions): added macros FENTRY and FENTRY2 to functions,
3263         to emit function prologue,
3264         * (various functions): fixed indentation,
3265         * (genNearPointerGet): fixed loading of FSR0,
3266         * (genPackBits): applied patch from Raphael Neider to fix updating
3267         of FSR0 and touching only the modified bits,
3268         * src/pic16/genarith.c (various functions): added macros FENTRY to
3269         emit function prologue in comments,
3270         * src/pic16/pcode.h: added functions debugf2, debugf3,
3271         * src/pic16/ralloc.c: partial fix for packForPush caused
3272         segmentation fault,
3273
3274 2004-12-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3275
3276         * src/mcs51/peeph.def: added 261.a,b (16 bit rotate) by Stas Sergeev
3277           <stsp AT users.sourceforge.net> with reversed byte order
3278         * support/regression/tests/rotate.c: added (ds390 skips some tests)
3279
3280 2004-12-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3281
3282         * src/z80/gen.c (genLeftShift, genRightShift): fixed second part of
3283           bug #1074377
3284         * src/hc08/gen.c (genrshFour, shiftRLong, shiftLLong),
3285         * src/mcs51/gen.c (shiftLLong): Fixed some shifting bugs Frieder found
3286
3287 2004-12-02 Slade Rich <slade_rich AT users.sourceforge.net>
3288
3289         * src/pic/pcode.c : fixed a problem where banksel was not being inserted.
3290
3291 2004-12-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3292
3293         * src/SDCCpeeph.c (callFuncByName): support combined peephole rule
3294           conditions,
3295           (setFromConditionArgs): friendly operand parser for peephole rules,
3296           (operandBaseName, operandsNotRelated): new peephole condition
3297           "operandsNotRelated" -- similar to "operandsNotSame", but takes
3298           architecture specific register naming into account, handles n-way
3299           comparisons, and supports quoted literals
3300         * src/mcs51/peeph.def: restored rule 177.d with an extra condition
3301
3302 2004-12-02 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3303
3304         * src/mcs51/peeph.def: fixed bug #1076940
3305
3306 2004-12-02 Slade Rich <slade_rich AT users.sourceforge.net>
3307
3308         * device/include/pic/pic16f877.h : added an include file for the PIC16F877 device.
3309
3310 2004-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3311
3312         Adding support for replacing ljmps with sjmps in jumptables
3313         generated for switch statements. For now you need to set the
3314         environment variable SDCC_SJMP_JUMPTABLE to enable this.
3315         Now 4 algorithms for mcs51 jumptable generation are used:
3316         ljmp or sjmp jumptables for up to 16 cases, stack-pushing target
3317         addresses loaded pc-relative for up to 112 cases and stack-pushing
3318         target addresses loaded with offset from dptr for up to 256 cases.
3319
3320         * src/SDCCpeeph.c: added peephole conditional labelJTInRange
3321         * src/mcs51/main.c: adapted constants for switch table generation
3322         * src/mcs51/peeph.def: added 260.x for replacing ljmp with sjmp
3323
3324 2004-11-26 Maarten Brock <sourceforge.brock AT dse.nl>
3325
3326         * device/lib/printf_large.c (_print_format): fixed bug 1073386
3327         * support/regression/tests/bug1057979.c: added test for bug 1073386
3328
3329 2004-11-25 Vangelis Rokas <vrokas AT otenet.gr>
3330
3331         * src/pic16/pcode.c: fixed bug which may produce error in non-GNU
3332         compilers
3333
3334 2004-11-25 Vangelis Rokas <vrokas AT otenet.gr>
3335
3336         * src/pic16/device.h,
3337         * src/pic16/genarith.c,
3338         * src/pic16/glue.c,
3339         * src/pic16/main.c,
3340         * src/pic16/pcode.c: applied patches #1068154 and #1070213
3341
3342 2004-11-24 Vangelis Rokas <vrokas AT otenet.gr>
3343
3344         Large cummulative patch for pic16 port.
3345         * device/lib/pic16/gstack.h: NEW, user can specify its own handler
3346         to call when a stack overflow occurs,
3347         * (malloc.h): added CVS Id tag,
3348         * (pic18f{242,252,442,452}.h): added T0CONbits structure and
3349         variable,
3350         * added libc directory. The current version of LibC contains string
3351         functions, ctype functions and macros and some functions of the
3352         stdlib set (like malloc/free/atof/atoi etc...). All functions are to
3353         be extensively tested in the future. Standard disclaimer here.
3354         Library is not automatically build yet. But one can build it by
3355         invoking 'make' inside the libc directory.
3356         * added ADC library under libio. Preliminary version yet.
3357
3358         * src/pic16/gen.h: added emitTOGC macro, to toggle Carry flag,
3359         * src/pic16/gen.c (aopForRemat): asmop size is filled by
3360         aopForRemat() now and not by pic16_aopOp(),
3361         * (pic16_popGetTempReg): removed warning messgae when allocating
3362         temporary registers, its a buggy feature and will be removed,
3363         * (pic16_popGet): set register instance field in AOP_CRY,
3364         * (pic16_outBitC): fixed for results in size greater than 1,
3365         * (genUminusFloat): fixed for pic16, ported code from mcs51,
3366         * (pic16_storeForReturn): optimized return of 0,
3367         * (genCmp): experimental code for new genCmp which uses PIC18's
3368         special compare&skip instructions. Initial tests fail some times
3369         with variables grater than 1 byte in size, so new code is disabled,
3370         * (genUnpackBits, genPackBits): more optimizations in reading/writing,
3371         a single bit,
3372         * (genCast): began a fix to optimize the casting of a bit to another
3373         bit, now assigning a bitfield to another bitfield will fail, sorry,
3374         * src/pic16/main.c: disabled the use of lr-support feature,
3375         * src/pic16/pcode.h: renamed PCASMDIR to PCAD,
3376         * added some function prototypes, added function _debugf prototype,
3377         * src/pic16/pcode.c: (pic16_get_op): fixed emitting operands of register
3378         bits with offset (case PO_GPR_BIT),
3379         * (genericPrint): don't emit INFO pcode when --pcode-verbose not in
3380         command line,
3381         * (isBankInstruction): modified to return 0 for no banking instruction,
3382         and 1 for banking instruction,
3383         * (pic16_isPCinFlow): check for PCAD (assembler directives) too,
3384         caused stop processing pCodes after a inline assembly block,
3385         * (pic16_popCopyGPR2Bit): updated to match bitfields with offset,
3386         * src/pic16/pcoderegs.c: fixed a bug with eliminating some temporary
3387         registers when it shouldn't,
3388         * src/pic16/ralloc.c (allocReg): add preliminary support for
3389         supporting a limited set of temporary registers,
3390
3391 2004-11-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3392
3393         * src/hc08/gen.c (genAssign, genPointerGetSetOfs, genDataPointerGet,
3394           genDataPointerSet): ensure assignments always copy in MSB to LSB
3395           order,
3396           (loadRegFromAop): recognize CLRH optimization,
3397           (genFunction): optimize RECEIVE iCodes in reentrant functions
3398
3399 2004-11-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3400
3401         * src/SDCCmain.c (parseCmdLine, optionsTable[]): fixed bug with
3402           --out-fmt-s19 turning into --out-fmt-elf if s19 was already
3403           selected.
3404         * src/SDCCmain.c (linkEdit): don't define SSEG for HC08
3405         * src/hc08/main.c (_hc08_setDefaultOptions): default xdata to be
3406           contiguous with data
3407
3408 2004-11-19 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3409
3410         * device/lib/_gptrget.c (_gptrget),
3411         * device/lib/_gptrgetc.c (_gptrgetc),
3412         * device/lib/_gptrput.c (_gptrput): _naked allows to use ret
3413           instead of sjmp to ret
3414         * src/mcs51/peeph.def: added peepholes 3.d-g and 177.g,h provided
3415           by Hubert Sack <hsack2002 AT arcor.de> in RFE #1067986, thanks
3416
3417 2004-11-18 Maarten Brock <sourceforge.brock AT dse.nl>
3418
3419         * .version: bumped version to 2.4.7
3420         * device/lib/_gptrget.c (_gptrget): is now _naked
3421         * device/lib/_gptrgetc.c (_gptrgetc): is now _naked
3422         * device/lib/_gptrput.c (_gptrput): is now _naked
3423         * src/SDCCast.c (createBlock): removed ridiculous self-assignment,
3424           (createFunction): fixed xstack
3425         * src/SDCCglue.c (emitMaps): set allocation required for bit area
3426         * src/SDCCicode.c (geniCodeCast): don't change SPEC_OCLS for literal
3427           or bit either,
3428           (geniCodeCritical): store original interrupt state in an iTemp bit
3429           var unless stack-auto
3430         * src/SDCCicode.h: added CRITICAL and ENDCRITICAL to SKIP_IC2
3431         * src/SDCCmain.c (setIncludePath): added include/target to search path
3432         * src/SDCCmem.c (allocParms): store bit vars in bit space, not overlay
3433         * src/SDCCsymt.c (checkFunction): don't check regbank for isr's against
3434           prototype,
3435           (processFuncArgs): put bit vars in bit area
3436         * src/mcs51/gen.c (saveRegisters, unsaveRegisters, genXpush, saveRBank,
3437           unsaveRBank): fixed xstack,
3438           (genFunction): bugfix: replaced (global!) reentrant with fReentrant,
3439           (genFunction, genEndFunction): fixed xstack,
3440           (genAssign): optimization don't walk backwards through mem
3441         * src/mcs51/main.c (_mcs51_regparm): don't pass bit params in registers
3442         * src/mcs51/ralloc.c (createStackSpil): spill bits to bit area
3443         * support/regression/Makefile: also make library (for stack-auto) when
3444           making "all" and added "test-mcs51-xstack-auto"
3445         * support/regression/fwk/lib/testfwk.c: added T2_isr prototype for mcs51
3446         * support/regression/ports/mcs51/T2_isr.c: added this file as a stub
3447         * support/regression/ports/mcs51/fwk.lib: added to link T2_isr stub
3448         * support/regression/ports/mcs51/spec.mk: added rules for fwk.lib
3449         * support/regression/ports/mcs51-stack-auto/spec.mk: replaced
3450           make-library by MAKE_LIBRARY
3451         * support/regression/ports/mcs51-xstack-auto/spec.mk: file added to run
3452           regression tests for xstack
3453         * support/regression/tests/bitvars.c: test for bit vars (bug 938782)
3454         * support/regression/tests/critical.c: test for critical on mcs51
3455
3456 2004-11-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3457
3458         * support/regression/ports/ucz80/spec.mk: use include and lib files from
3459           built version of sdcc instead of installed version
3460
3461 2004-11-14 Maarten Brock <sourceforge.brock AT dse.nl>
3462
3463         * src/mcs51/gen.c (toBoolean): fixed bug 1065458
3464         * device/lib/Makefile.in: z80 uses printf_large.c, sprintf.c and
3465           vprintf.c now
3466         * device/lib/printf_large.c (calculate_digit): fixed bug 1057979
3467         * device/lib/z80/Makefile: don't use printf.c as it fails bug 1057979
3468           WARNING: remove device/lib/build/z80/printf.o by hand when
3469           updating from previous build!
3470         * device/lib/z80/printf.c: updated comment
3471         * support/regression/tests/bug1057979.c: test all ports now
3472         * support/regression/tests/bug1065458.c: file added
3473
3474 2004-11-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3475
3476         * src/z80/gen.c (genFunction, genEndFunction): avoided generating
3477           *_start and *_end symbols for static functions
3478
3479 2004-11-11 Maarten Brock <sourceforge.brock AT dse.nl>
3480
3481         * src/SDCCmain.c (linkEdit): don't suppress crt0 if --nostdlib is used
3482           and search crt0.o in all library paths,
3483           (setIncludePath): proper handling of --nostdinc,
3484           (setLibPath): proper handling of --nostdlib
3485         * support/regression/Makefile,
3486         * support/regression/ports/ds390/spec.mk,
3487         * support/regression/ports/gbz80/spec.mk,
3488         * support/regression/ports/hc08/spec.mk,
3489         * support/regression/ports/mcs51/spec.mk,
3490         * support/regression/ports/mcs51-large/spec.mk,
3491         * support/regression/ports/mcs51-stack-auto/spec.mk,
3492         * support/regression/ports/z80/spec.mk: use include and lib files from
3493           built version of sdcc instead of installed version
3494         * doc/sdccman.lyx: fixed typo in --nostdinc
3495
3496 2004-11-10 Slade Rich <slade_rich AT users.sourceforge.net>
3497
3498         * src/pic/pcode.c,
3499         * src/pic/device.c,
3500         * src/pic/ralloc.c,
3501         * src/pic/gen.c : added support to generate code for struct bit fields.
3502
3503 2004-11-06 Maarten Brock <sourceforge.brock AT dse.nl>
3504
3505         * as/xa51/xa_version.h,
3506         * device/include/errno.h,
3507         * device/include/regc515c.h,
3508         * device/lib/_itoa.c,
3509         * device/lib/_ltoa.c,
3510         * device/lib/ser_ir_cts_rts.c,
3511         * sim/ucsim/xa.src/glob.cc,
3512         * sim/ucsim/xa.src/inst_gen.cc,
3513         * sim/ucsim/xa.src/xa_bit.cc,
3514         * sim/ucsim/xa.src/xa_sfr.cc,
3515         * sim/ucsim/z80.src/inst_dd.cc,
3516         * sim/ucsim/z80.src/inst_fdcb.cc,
3517         * support/scripts/keil2sdcc.pl,
3518         * src/pic16/pic16.dsp,
3519         * src/pic16/pic16a.dsp: corrected cvs line endings
3520         * device/lib/printf_large.c: fixed bug 1057979
3521         * src/pic16/gen.c: fixed non-C standard code
3522         * src/SDCCmain.c: made --pack-iram default, added --no-pack-iram
3523         * src/SDCCglobl.h: changed pack_iram to no_pack_iram
3524         * support/regression/ports/mcs51/support.c: reload T1 asap
3525         * doc/sdccman.lyx: updated for options --pack-iram and --no-pack-iram,
3526           pdata use and clear idata startup behaviour
3527         * support/regression/tests/bug1057979.c: added
3528
3529 2004-11-04 Maarten Brock <sourceforge.brock AT dse.nl>
3530
3531         * device/examples/ds390/ow390/ad26.h,
3532         * device/examples/ds390/ow390/cnt1d.h,
3533         * device/examples/ds390/ow390/crcutil.c,
3534         * device/examples/ds390/ow390/ownet.h,
3535         * device/examples/ds390/ow390/owsesu.c,
3536         * device/examples/ds390/ow390/swt12.h,
3537         * device/examples/ds390/ow390/swtoper.c,
3538         * device/examples/ds390/ow390/temp10.h,
3539         * device/examples/ds390/ow390/thermodl.c,
3540         * device/examples/ds390/tinitalk/tinitalk.dsp,
3541         * device/examples/ds390/tinitalk/tinitalk.dsw,
3542         * device/examples/mcs51/clock/hw.h,
3543         * device/examples/mcs51/simple2/go.bat,
3544         * device/examples/serialcomm/windows/serial.h,
3545         * device/examples/xa51/dummy.c,
3546         * device/examples/xa51/hello.c,
3547         * device/include/80c51xa.h,
3548         * device/include/at89x051.h: corrected cvs line endings
3549
3550 2004-11-04 Vangelis Rokas <vrokas AT otenet.gr>
3551
3552         * src/pic16/main.c (options): added command line --gstack, to trace
3553         stack over/under flows,
3554         * added pragma 'wparam' to allow passing first byte of function
3555         parameters via WREG, syntax is #pragma wparam my_function[, func2...]
3556         * src/pic16/gen.c (pic16_testStackOverflow): function which emits a
3557         call to __gstack_test function and sets up the symbol as extern,
3558         * (pic16_pushpCodeOp, pic16_poppCodeOp, pushw, pushaop, popaopidx,
3559         * popaop): added call to pic16_testStackOverflow,
3560         * (wParamCmp, inWparamList): NEW, test existence of a symbol in
3561         wparamList list,
3562         * (genCall, genPcall): now all parameters are passed via stack
3563         except in functions that are pass to wparam pragma in which WREG is
3564         used too,
3565         * (genPcall): REENTRANT flag is checked to see if variable prototype
3566         contains reentrant keyword, don't call a non-reentrant function, via
3567         a reentrant function pointer or vice versa, functions are never
3568         passed via WREG,
3569         * (genJumpTab): applied patch from bug #1057478 by R.Neider and
3570         D.Winkler,
3571         * src/pic16/glue.c (pic16emitRegularMap): fixed bug which caused a
3572         SIGSEGV when accessing a NULL register stucture,
3573         * (pic16_printGPointerType): modified to handle UPPER modifier for
3574         function initializers, changed prototype of function to simpler one,
3575         * (pic16_printIvalFuncPtr): check to see if function is already
3576         added in externs list,
3577         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): fixed bug which
3578         optimized a move from W to SFR with a move to the same register
3579         later after a CALL,
3580         * device/lib/pic16/debug: NEW directory, contains debug features
3581         which are enabled when linking with libdebug.lib, currently command
3582         line option --gstack enables stack pointer tracing for over/under
3583         flow, corresponding sources are in debug/gstack
3584
3585 2004-10-30 Vangelis Rokas <vrokas AT otenet.gr>
3586
3587         * doc/sdccman.lyx: updated SDCC version,
3588         * (PIC16 port): update list of command line options,
3589         * src/pic16/device.h (structure pic16_options_t): added field gstack
3590         to enable stack overflow tracing on push/pops,
3591         * src/pic16/device.c (statistics structure): added statistics
3592         structure,
3593         * (pic16_dump_access, pic16_dump_usection, pic16_dump_gsection,
3594         pic16_dump_int_registers): increase statistics counters for each
3595         * variable which is encountered
3596         * (pic16_dump_usection): emit each .udata variable to its own udata
3597         section,
3598         * src/pic16/gen.c (assignResultValue, genCall, genPcall, genFunction):
3599         when macro USE_WREG_IN_FUNC_PARAMS is set to 0 pass all function
3600         parameters via stack, otherwise use old scheme,
3601         * src/pic16/glue.c (pic16_emitStatistics): dump statistics in
3602         assembler output file,
3603         * src/pic16/main.c: added command line options --gstack to enable
3604         push/pop tracing for stack overflow,
3605         * src/pic16/pcode.c (all pCodeInstruction records for PIC18F
3606         instructions): added size of each instruction,
3607         * (pic16_countInstruction): estimate size of instructions in
3608         the_pFile list, inline assembly blocks are not counted,
3609         * (pic16_FixRegisterBanking): trace previous register usage, when
3610         banksel optimizations is greater than 0, don't emit a redudant
3611         banksel directive,
3612
3613 2004-10-26 Slade Rich <slade_rich AT users.sourceforge.net>
3614
3615         * src/pic/ralloc.c : fixed inefficient code produced when compiling a complimented bit operation.
3616         * src/pic16/ralloc.c : applied same fix for pic16.
3617         * src/pic/gen.c : tidied it up a little.
3618
3619 2004-10-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3620
3621         * src/mcs51/peeph.def: disabled 259.a,b for removing redundant ret,
3622         thanks to Martin Helmling for reporting (mail on sdcc-devel 2004-10-25)
3623
3624 2004-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3625
3626         * src/SDCCast.c (reverseParms): fixed bug #1040577 (part 2)
3627
3628 2004-10-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3629
3630         * device/lib/ser_ir_cts_rts.c: integer promotion caused a call to the
3631         non-reentrant function __modsint in the interrupt function (thus
3632         corrupting math operations during serial I/O)
3633         * device/lib/ser_ir.c: as above, changed buffersize
3634         * src/mcs51/peeph.def: added 259.a,b for removing redundant ret,
3635         256.c,d for zeroing
3636         * doc/Makefile: added option -t for rsync
3637
3638 2004-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3639
3640         * src/SDCCast.h (struct ast),
3641         * src/SDCCast.c (reverseParms, copyAst): fixed bug #1040577 (part 1)
3642
3643 2004-10-20 Borut Razem <borut.razem AT siol.net>
3644
3645         * support/scripts/sdcc.nsi: added include/pic16/*.h to the setup
3646         package
3647
3648 2004-10-20 Vangelis Rokas <vrokas AT otenet.gr>
3649
3650         * device/lib/pic16/libsdcc/Makefile: added lregs directory in
3651         makefile targets,
3652         * device/lib/pic16/libsdcc/lregs/{Makefile,lrst.c,lrrest.c}: NEW
3653         support functions to replace long sequences of MOVFF's from access
3654         bank registers to stack and vice versa,
3655         * src/pic16/device.h: added new field opt_flags, where optimization
3656         flags can be set to enable certain features,
3657         * src/pic16/gen.c (pic16_emitpinfo): NEW to add PC_INFO pCode in
3658         * pBlock, (genFunction, genEndFunction): surroung loop for
3659         saving/loading used registers in stack with PC_INFO pCodes,
3660         INF_LREGS. Code in between can then be optimized by pCode optimizer
3661         to support function calls,
3662         * (genDataPointerSet): fixed bug which loaded float fields in
3663         structures with corrupt data,
3664         * src/pic16/genutils.c (debugf, _debugf): macro/function which emits
3665         in a standard way debug info on stderr. Feature used for developing
3666         and debugging only,
3667         * src/pic16/glue.c (pic16glue): reformatted, deleted some old and
3668         obsolete chunks of code,
3669         * if optimization flag OF_LR_SUPPORT was set, call pic16_OptimizeLocalRegs,
3670         * src/pic16/main.c (_pic16_parseOptions): added handler for --flr-support,
3671         * pic16/src/pcode.c (pic16_newpCodeInfo,
3672         * (pic16_newpCodeOpLocalRegs),
3673         * (pic16_convertLocalRegs2Support): NEW, to support new optimization
3674         feature,
3675         * (pic16_pCodeConstString): printing of the initial value of a
3676         symbol as a comment is inhibited since parsing was already done by
3677         copyStr and output is corrupt,
3678         * (pic16_pCode2str, genericPrint): handle PC_INFO pCode,
3679
3680 2004-10-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3681
3682         * src/mcs51/ralloc.c (packRegisters): fixed bug #1044601
3683
3684 2004-10-19 Maarten Brock <sourceforge.brock AT dse.nl>
3685
3686         * as/mcs51/lkarea.c: removed old K&R style,
3687           (lnksect): changed check on boundary error,
3688           (lnksect2): changed check on boundary error,
3689           (lnksect2): extend XSTK to end of page if size = 1
3690         * as/mcs51/lkmain.c: removed old K&R style,
3691           (Areas51): create l_IRAM symbol
3692         * as/mcs51/lkmem.c (summary2): added report on PSEG and XSTK
3693         * device/lib/Makefile.in: renamed model-mcs51-reentrant to
3694           model-mcs51-stack-auto, added model-mcs51-xstack-auto
3695         * device/lib/_mullong.c: added version to be compiled with xstack
3696         * device/lib/mcs51/crtclear.asm: clear only upto --iram-size
3697         * device/lib/mcs51/crtxclear.asm: clear pdata as well
3698         * device/lib/mcs51/crtxstack.asm: fixed comment
3699         * src/SDCCglue.c: maxInterrupts defaults to 0,
3700           (emitMaps): added pdata,
3701           (createInterruptVect): (re)moved default,
3702           (glue): added pdata,
3703           (glue): moved __start__xstack to XSTK with default size 1
3704         * src/SDCCmain.c (parseCmdLine): automatically set options.intlong_rent
3705           and options.float_rent when options.stackAuto is set,
3706           (linkEdit): only write XDATA_NAME if provided on command line
3707         * src/SDCCmem.h,
3708         * src/SDCCmem.c: added pdata
3709         * src/port.h: added pdata_name to PORT
3710         * src/mcs51/gen.c (toBoolean): fixed for Acc use of aopGet,
3711           (saveRegisters, unsaveRegisters): removed usage of B,
3712           (genMinus): fixed accumulator clash,
3713           (genJumpTab): added comment, this needs another look
3714         * src/mcs51/gen.c: added check for "B in use" paranoia,
3715           added pushB() and popB()
3716         * src/mcs51/peeph.def: restart after 177.c so 177.a can get a second
3717           chance
3718         * src/avr/main.c,
3719         * src/ds390/main.c,
3720         * src/hc08/main.c,
3721         * src/mcs51/main.c,
3722         * src/pic/main.c,
3723         * src/pic16/main.c,
3724         * src/xa51/main.c,
3725         * src/z80/main.c: (reset_regparms) made void parameter explicit and
3726           added PSEG (PAG,XDATA) or NULL to port specifier
3727         * src/ds390/main.c (_ds390_genIVT): moved implemented default in here
3728         * src/mcs51/main.c (_mcs51_genIVT): moved implemented default in here,
3729           (_mcs51_genInitStartup): removed __start__xstack equ,
3730           (mcs51_port): moved xstack from XSEG (XDATA) to XSTK (PAG,XDATA)
3731         * src/pic16/device.c (pic16_dump_usection, pic16_dump_isection),
3732         * src/z80/gen.c (_rleAppend): fixed warnings
3733         * support/regression/tests/zeropad.c: added pdata test
3734         * .version: bumped to 2.4.6
3735
3736 2004-10-17 Borut Razem <borut.razem AT siol.net>
3737
3738         * support/scripts/sdcc.nsi: cross compiling of WIN32 setup.exe on Linux
3739         as a part of nightly build
3740
3741 2004-10-16 Vangelis Rokas <vrokas AT otenet.gr>
3742
3743         * src/pic16/gen.c (struct _G): added field useWreg, is set to 1 when
3744         WREG holds the first byte function parameters,
3745         * (aopForSym): take special case for symbols which are in FARSPACE
3746         but in CODESPACE too,
3747         * (assignResultValue): modified to take into account _G.useWreg,
3748         * (genCall): don't use wreg for parameter passing when function is
3749         declared as reentrant, too, added optimization INCF to stack
3750         pointer when stack parameter count is 1,
3751         * (genFunction, genEndFunction): refurnished and fixed to not using
3752         wreg for passing parameters when function has varargs or is
3753         reentrant, fixed bug with symbol name compare for generating
3754         functions in absolute address,
3755         * (pic16_storeForReturn): refurnished,
3756         * (genCmp): began writing a new version of the function, not ready
3757         yet, therefore it is disabled,
3758         * (genAssign): do not read code memory when assigning a function to
3759         a pointer function,
3760         * src/pic16/glue.c (pic16emitStaticSeg): abSym->name is defined an
3761         array of characters, not pointer,
3762         * (pic16initialComments): in debug mode emit an .ident directive for
3763         the assembler,
3764         * (_process_pragma): emit a new warning type (internal to pic16)
3765         when setting stack to default length, emit a similar warning when
3766         placing a function at absolute address and address is not word aligned
3767         * (_pic16_parseOptions): added 'return TRUE' statement,
3768         * (_pic16_linkEdit): if compiling a source, then add the source's
3769         file object, first in the list of objects to link,
3770
3771 2004-10-13 Slade Rich <slade_rich AT users.sourceforge.net>
3772
3773         * src/pic/pcoderegs.c : increased count on regUsedinRange to prevent unnecessary warning.
3774         * src/pic/main.c : removed VC warning.
3775         * src/pic/gen.c : changed comment.
3776
3777 2004-10-12 Vangelis Rokas <vrokas AT otenet.gr>
3778
3779         * device/lib/pic16/libsdcc/gptr/gptrput[234].c: an external
3780         reference to a deprecated symbol _GPTRREG was causing failure to
3781         link. Thanks G. M. Gallant for the info.
3782
3783 2004-10-12 Slade Rich <slade_rich AT users.sourceforge.net>
3784
3785         * src/pic/pcode.c : Applied a code patch supplied by Paul Ashmore in
3786         comments for Bugs item #954788.
3787
3788 2004-10-10 Vangelis Rokas <vrokas AT otenet.gr>
3789
3790         * src/pic16/device.c (pic16_dump_gsection,
3791         * pic16_groupRegistersInSection): handle symbols declared to be in
3792         access bank differently,
3793         * src/pic16/gen.c (struct _G): added field resDirect,
3794         * (aopForSym): if symbol on stack and iCode is '=' and result exists,
3795         send values read from stack directly to result and don't allocate
3796         temporary values,
3797         * (pic16_sameRegs): fixed bug that allowed MOVFF to move between
3798         same registers,
3799         * (pic16_sameRegsOfs): NEW,
3800         * (freeAsmop): if _G.resDirect is set then do not mark registers as
3801         free because they were not allocated from temporary pool,
3802         * pic16_popRegFromString): workaround to fix a problem with
3803         allocating variables twice or never,
3804         * (genGenPointerGet): using PRODL instead of FSR0H,
3805         * (genGenPointerSet): using POSTDEC1 (that is a stack location)
3806         instead of FSR0H,
3807         * (genAssign): take advantage of the _G.resDirect flag,
3808         * (genCast): around line 11844, use mov2f instead of directly
3809         MOVFF'ing between operands to account for literal values,
3810         * src/pic16/genutils.c: some new debug functions for gpsim have been
3811         added,
3812         * src/pic16/glue.c (pic16_printIvalType): fixed bug that initialized
3813         float with integer part only,
3814         * src/pic16/main.c (_process_pragma): handle pragma udata access to
3815         place variables in access bank
3816         * device/lib/pic16/libsdcc/gptr/gptr*.c: using BRA instead of GOTO,
3817         updated sources to reflect recent changes in gen.c
3818
3819 2004-10-06 Vangelis Rokas <vrokas AT otenet.gr>
3820
3821         * device/lib/pic16/libsdcc/Makefile.rules: fixed bug concerning
3822         sources that searched for headers in installation path, now the
3823         device/include/pic16 is used,
3824         * src/pic16/glue.c (pic16glue),
3825         * src/pic16/pcode.c (pCode2str, genericPrint): don't print .file or
3826         .line directives if not in debug mode, this suppresses assembler's
3827         warnings for ignored directives
3828
3829 2004-10-05 Maarten Brock <sourceforge.brock AT dse.nl>
3830
3831         * src/port.h: made reset_regparms prototype void parameter explicit.
3832         * src/SDCCsymt.c (processFuncArgs): removed argument "func".
3833         * src/mcs51/ralloc.c (packRegisters): new fix for bugs 898889 & 979599.
3834         * doc/sdccman.lyx: documented warning disabling and how to use
3835           printf_large to make it print floats.
3836         * device/include/stdbool.h: NEW
3837         * device/lib/_atof.c,
3838         * device/lib/_divuint.c,
3839         * device/lib/_divulong.c,
3840         * device/lib/expf.c,
3841         * device/lib/printf_large.c,
3842         * device/lib/sincosf.c,
3843         * device/lib/sincoshf.c: used stdbool.h, all compile with stack-auto now
3844         * device/lib/Makefile.in: added target for model-mcs51-reentrant to build
3845           a completely reentrant lib.
3846
3847 2004-10-05 Vangelis Rokas <vrokas AT otenet.gr>
3848
3849         * device/lib/pic16/libsdcc/gptr/gptr*.c: added return statements
3850         * device/include/pic16/stdio.h: fixed bug with colon
3851
3852 2004-10-03 Vangelis Rokas <vrokas AT otenet.gr>
3853
3854         * device/include/pic16/stdio.h,
3855         * device/include/pic16/stdlib.h,
3856         * device/include/pic16/math.h: NEW
3857         * device/lib/pic16/libsdcc/gptr/*.c (gptrget*, gptrput*): functions
3858         declared as _naked to reduce overhead
3859         * device/lib/Makefile.in (target port-specific-objects-pic16):
3860         changed * to *.* so to ignore the CVS directory,
3861         * src/pic16/gen.c (pic16_freeAsmop): added code to store result of
3862         stacked variables back in stack,
3863         * (genEndFunction): fixed bug reported by G.M. Gallant with stack
3864         corruption
3865
3866 2004-10-01 Vangelis Rokas <vrokas AT otenet.gr>
3867
3868         * .version: bumped version number to 2.4.5
3869         * support/Util/SDCCerr.h: added warning W_POSSBUG2.
3870         * support/Util/SDCCerr.c (messages structure): added entry for
3871         W_POSSBUG2
3872
3873         Large cumulative patch for pic16 port and libraries.
3874         * device/include/pic16/sdcc-lib.h,
3875         * device/include/pic16/stdarg.h,
3876         * device/include/asm/pic16/features.h,
3877         * device/include/lib/pic16/libsdcc/gptr/{*.c, Makefile}: NEW,
3878         * device/include/pic16/float.h: changes reentrant keyword with
3879         _FS_REENTRANT, added prototype for __fsneq, included sdcc-lib.h
3880         * device/lib/pic16/libsdcc/Makefile: added target directory gptr,
3881         updated target build-libraries to include objects from gptr,
3882         * device/lib/pic16/libsdcc/{char,int,long}/*.c: added macro
3883         _IL_REENTRANT to all function headings, included sdcc-lib.h header,
3884         * device/lib/pic16/libsdcc/float/*.c: added macro _FS_REENTRANT to
3885         all function headings,
3886         * src/SDCCmain.c: added global parameter userIncDirsSet,
3887         * (parseCmdLine): when option -I is encountered add directory to
3888         userIncDirsSet too,
3889         * src/version.awk: added space between control and long,
3890         * src/pic16/NOTES: added some notes for the port,
3891         * src/pic16/gen.c: added prototype for mov2fp function,
3892         * (fReturnpic16[]): properly named return value registers,
3893         * (_G structure): added fields stackRegSet, fregsUsed, stack_lat,
3894         * (aopForSym): added code to handle symbols with onStack flag set,
3895         symbols onStack are allocated PTRSIZE bytes,
3896         * (aopFreeAsmop): handles special case where asmops are stack objects,
3897         * (aopGet, pic16_popGet): adde cod to handle new asmop AOP_STA,
3898         * (pic16_popGetTempReg, pic16_popGetTempRegCond, pic16_popReleaseTempReg):
3899         added argument lock to trace flaws in allocating temporary registers
3900         when developing port,
3901         * (pic16_popGetLit, pic16_popGetLit2): changed lit from unsigned to signed
3902         * (pic16_popRegFromString): reenabled allocating a direct register
3903         from string,
3904         * (assignResultValue): various beautifications,
3905         * fixed bug #1037717 (patch from R. Neider & D. Wrinkler) with mistaken
3906         referenced function argument,
3907         * (genIpush): reenabled to allow stacked arguments, handles only
3908         ic->parmPush iCodes,
3909         * (genCall, genPcall): major changes to allow for variable argument
3910         functions, fixed a bug with falsely restoring stack pointer after
3911         returning from call,
3912         * (genFunction): pending code for critical function,
3913         * (shiftR1Left2ResultSigned, shiftR1Left2Result, shiftL2Left2Result,
3914         * (shiftR2Left2Result, shiftLLong) applied patch #1032155 from R.Neider,
3915         * (genNearPointerGet): fixed bug with indirect reading, was always
3916         reading from INDF0
3917         * (genGenPointerGet, genGenPointerSet): rewrote to support generic
3918         pointers,
3919         * (genAddrOf): rewrote code to take address of a stacked function parameter
3920         * (genCast): fixed casting to generic pointer type,
3921         * src/pic16/gen.h: added AOP_STA,
3922         * (struct asmop): added field stk,
3923         * src/pic16/genarith.c (pic16_AopType): handle AOP_STA,
3924         * (pic16_genPlusIncr): changed emitSKPNZ to emitSKPNZ,
3925         * (pic16_genAddLit, pic16_genPlus): applied patch #1034042 by tecodev,
3926         * (pic16_genMinus): fixed bug #1035119 with patch submitted by tecodev,
3927         * src/pic16/genutils.c (pic16_genNot): removed symbol *tlbl,
3928         * src/pic16/glue.c (pic16_printGPPointerType): fixed to support new
3929         generic pointers,
3930         * src/pic16/main.c (_pic16_initPaths): ignores default SDCC include
3931         and library paths,
3932         * (pic16_port structure): generic pointer size is set to 3,
3933         * src/pic16/pcode.c (pic16_newpCodeOpLit): correctly print literal integer,
3934         * (insertBankSwitch): cast to (char *) to prevent 64bit CPUs'
3935         compiler warning,
3936         * src/pic16/ralloc.c (allocReg): prevent allocating register when
3937         operand is an iTemp,
3938
3939 2004-09-24 Martin Helmling <mh AT octo-soft.de>
3940
3941         * debugger/mcs51/cmd.c: set PC if a symbol at pc reg is set
3942         * debugger/mcs51/simi.c: addapt new syntax of s51
3943
3944 2004-09-23 Vangelis Rokas <vrokas AT otenet.gr>
3945
3946         * src/pic16/genutils.c (pic16_genNot): fixed bug #1032265,
3947         * src/pic16/pcode.c: commented out some calls to free() in order to
3948         fix bug #989576,
3949
3950 2004-09-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3951
3952         * src/SDCCicode.h,
3953         * src/SDCCicode.c (isiCodeInFunctionCall),
3954         * src/avr/ralloc.c (selectSpil),
3955         * src/pic/ralloc.c (selectSpil),
3956         * src/pic16/ralloc.c (selectSpil),
3957         * src/ds390/ralloc.c (selectSpil),
3958         * src/hc08/ralloc.c (selectSpil),
3959         * src/xa51/ralloc.c (selectSpil),
3960         * src/mcs51/ralloc.c (selectSpil): Don't use remainSpil to spill to the
3961         stack in the middle of a function call sequence (fixes bug #1020268)
3962         * src/SDCCicode.c (geniCodeJumpTable): fixed error in computing the
3963         costs associated with the minimum switch case.
3964
3965 2004-09-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3966
3967         * src/SDCC.lex: fixed bug #1030549
3968
3969 2004-09-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3970
3971         * src/SDCCcse.h (struct cseDef),
3972         * src/SDCCcse.c (cseBBlock, newCseDef, ifFromAddrTaken): purge CSEs
3973         over a function call if the CSE is derived from a symbol whose
3974         address has been taken (fixes bug #1029883)
3975         * support/regression/tests/bug-1029883: a new regression test for
3976         this bug
3977
3978 2004-09-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3979
3980         * src/hc08/gen.c (emitinline): fixed bug #1029778
3981         * src/SDCC.y (assignment_expr): fixed the grammer so that assignment
3982         to a cast object is no longer a syntax error ("fixes" bug #1030006,
3983         and starts toward RFE #905167)
3984
3985 2004-09-17 Vangelis Rokas <vrokas AT otenet.gr>
3986
3987         * src/pic16/gen.c (mov2f): New function to move an operand to
3988         another without considering if it is a literal or a register,
3989         * (pic16_sameRegs): don't check if they are both AOP_REG,
3990         * (AccRsh): removed andmask=0 lines,
3991         * (genLeftShift): duplicated to be improved in future versions,
3992         * src/pic16/main.c (_process_pragma): emit stack default size in hex,
3993         * src/pic16/pcode.c: added POC_INFSNZW, updated inverted_op fields
3994         in POC_INCFSZ, POC_INCFSZW, POC_INFSNZ,
3995         * (pic16initMnemonics): added initialization for POC_INFSNZW,
3996         * (insertBankSwitch): fixed inserting banksel directives algorithm
3997         for instructions that follow a skip instruction, this fixes a report
3998         for broken subtraction code generation,
3999         * src/pic16/ralloc.c (deassignLRs): do not free register if current
4000         iCode is a left op, just in case result and right share the same
4001         registers
4002
4003 2004-09-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4004
4005         * src/hc08/main.c,
4006         * src/hc08/gen.c (genJumpTable): more efficient jump table, supports
4007         preservation of HX
4008         * src/hc08/gen.c (pullRegs): fixed order of HX & XA pairs
4009         * src/mcs51/ralloc.c (packRegisters): removed the patch applied
4010         on 2004-09-12; it was buggy
4011
4012 2004-09-15 Bernhard Held <bernhard AT bernhardheld.de>
4013
4014         * src/SDCCsymt.h: removed RESULT_CHECK
4015         * src/SDCCast.c,
4016         * src/SDCCglue.c,
4017         * src/SDCCval.c,
4018         * src/pic/glue.c,
4019         * src/pic16/glue.c: replaced RESULT_CHECK with RESULT_TYPE_NONE
4020
4021 2004-09-15 Vangelis Rokas <vrokas AT otenet.gr>
4022
4023         * src/SDCCicode.c (piCode): applied patch from Raphael Neider,
4024         * src/pic16/device.c (pic16_assignConfigWordValues): wrong
4025         configuration values no more rejected by compiler, they are assigned
4026         to configuration registers with a warning message instead,
4027         * src/pic16/glue.c (pic16_emitConfigRegs): added +1 at top-limit of
4028         the for-loop so last conf register is emitted too,
4029         * (_pic16_initPaths): link library libsdcc.lib by default,
4030         * (_hasNativeMulFor): modified test for multiplication according to
4031         Raphael Neider's remarks. Integer multiplication is also done with
4032         support functions,
4033         * device/include/pic16/pic18fregs.h: corrected type error in while
4034         testing and including 18f6720 header file
4035
4036 2004-09-14 Vangelis Rokas <vrokas AT otenet.gr>
4037
4038         * src/pic16/device.h (pic16_options): removed field use_crt,
4039         * src/pic16/gen.c (genUnpackBits): added call to pic16_loadFSR0
4040         until an optimization to handle single bits is added,
4041         * (pic16_loadFSR0): moved before genUnpackBits,
4042         * (genAnd): some white lines removed,
4043         * src/pic16/main.c (_pic16_finaliseOptions): set omit_ivt and clear
4044         leave_reset flags in pic16_options when using crt modules,
4045
4046 2004-09-12 Maarten Brock <sourceforge.brock AT dse.nl>
4047
4048         * src/mcs51/ralloc.c (packRegisters): applied fix by Bernhard Held
4049           for bugs 898889 & 979599. Also used some safer print instructions.
4050
4051 2004-09-12 Vangelis Rokas <vrokas AT otenet.gr>
4052
4053         * src/pic16/device.h (pic16_options_t): added field use_crt,
4054         crt_name, no_crt,
4055         * src/pic16/genarith.c (pic16_genPlus): added an assert(0) line to
4056         catch a probable future bug,
4057         * src/pic16/gen.c: aopIdx function commented out,
4058         * (genAssign): commented out old code which used aopIdx,
4059         * src/pic16/glue.c (pic16glue): removed some legacy fragments of
4060         code, added if conditionals to take into account the --use-crt
4061         command line options,
4062         * src/pic16/main.c (pic16_optionsTable): added new command line
4063         options, --use-crt= and --no-crt,
4064         * (_pic16_linkEdit): now the proper crt object is added in the
4065         linker command line except than when --no-crt is specified,
4066         * src/pic16/pcode.c,
4067         * src/pic16/pcode.h: added some structures and functions for a new
4068         optimization scheme to compansate for instruction overhead between
4069         same iCodes, this scheme is currently under development and is not
4070         working in any way,
4071         * src/pic16/gen.c (genAnd): added patch provided by Aaron Collwell
4072         to && operator,
4073         * device/lib/pic16/startup/crt0i.c,
4074         * device/lib/pic16/startup/crt0iz.c: added global char variable
4075         __uflags to force the generation of an idata section
4076
4077 2004-09-12 Bernhard Held <bernhard AT bernhardheld.de>
4078
4079         * doc/Makefile,
4080         * doc/clean.mk: added support for easy creation of sdcc-doc.tar.bz2
4081         * doc/sdccman.lyx: updated sdcc version to 2.4.4
4082
4083 2004-09-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4084
4085         * doc/sdccman.lyx: fixed a problem with my new index entries (thanks
4086         Frieder) and clarified the default code optimization mode
4087
4088 2004-09-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4089
4090         * src/SDCC.lex (doPragma, process_pragma),
4091         * src/SDCCglobl.h (struct optimize): added pragmas "opt_code_speed",
4092         "opt_code_size", and "opt_code_balanced"
4093         * src/SDCCmain.c (optionsTable[], printOptions, scanOptionsTable):
4094         regrouped options by category, added support for category headers
4095         * src/SDCCmain.c (parseCmdLine): added options "--opt-code-speed"
4096         and "--opt-code-size"
4097         * doc/sdccman.lyx: documented these new options and pragmas
4098         * src/hc08/gen.c (AccLsh, AccRsh): take speed/size optimization
4099         preference into account
4100
4101 2004-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
4102
4103         * src/SDCCicode.c (geniCodePostInc, geniCodePreInc, geniCodePostDec,
4104           geniCodePreDec): Fixed bug 904237 by generating a warning
4105         * src/SDCCerr.h,
4106         * src/SDCCerr.c: added warning W_SIZEOF_VOID
4107
4108 2004-09-09 Slade Rich <slade_rich AT users.sourceforge.net>
4109
4110         * src/pic/device.c : When no max ram set validate full memory range.
4111         * src/pic/pcode.c,
4112         * src/pic/pcodepeep.c : Copy C code comments to optimised replacement code.
4113
4114 2004-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
4115
4116         * device/lib/_gptrget.c,
4117         * device/lib/_gptrput.c: updated comment
4118         * device/lib/calloc.c,
4119         * device/lib/free.c,
4120         * device/lib/malloc.c,
4121         * device/lib/realloc.c: added LGPL, made them reentrant-safe
4122         * src/SDCCcse.c (cseBBlock),
4123         * src/SDCCicode.c (printOperand, geniCodeArray),
4124         * src/SDCCicode.h (struct operand): fixed bug 868103
4125         * support/regression/tests/bug-868103.c: added
4126         * src/SDCCast.c (searchLitOp),
4127         * src/SDCCcse.h (struct cseDef),
4128         * src/SDCCglue.c (printIvalArray, spacesToUnderscores),
4129         * src/SDCCicode.h (struct operand),
4130         * src/SDCCsymt.h (struct sym_link),
4131         * src/avr/gen.c (hasInc),
4132         * src/ds390/gen.c (hasInc),
4133         * src/hc08/gen.c (genPlusIncr, hasInc),
4134         * src/mcs51/gen.c (hasInc),
4135         * src/pic16/glue.c (pic16_printIvalChar),
4136         * src/pic16/ralloc.c (regWithIdx),
4137         * src/xa51/gen.c (hasInc) : removed warnings
4138         * src/SDCCast.c (createBlock): added comment ???
4139         * src/hc08/ralloc.c: updated comments
4140
4141 2004-09-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4142
4143         * doc/sdccman.lyx: updated section on switch statements, added
4144         section about semaphore locking
4145         * doc/Makefile: added option -info for latex2html
4146         * device/lib/_gptrget.c,
4147         * device/lib/_gptrput.c: __XPAGE instead of P2 in outcommented code
4148
4149 2004-09-06 Slade Rich <slade_rich AT users.sourceforge.net>
4150
4151         * src/pic/device.h,
4152         * src/pic/device.c,
4153         * src/pic/port.c : Changed PIC14 code to not set bit RP1 when
4154          maxram is less than 0x100.
4155
4156 2004-09-06 Slade Rich <slade_rich AT users.sourceforge.net>
4157
4158         * Bug fixes for PIC14 - signed RSHIFT problem. Patch supplied by Allen(agschrum).
4159
4160 2004-09-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4161
4162         * src/port.h,
4163         * src/mcs51/main.c,
4164         * src/ds390/main.c,
4165         * src/z80/main.c,
4166         * src/hc08/main.c,
4167         * src/pic/main.c,
4168         * src/pic16/main.c,
4169         * src/avr/main.c,
4170         * src/xa51/main.c
4171         * src/SDCCicode.c (geniCodeJumpTable): Better logic to determine if a
4172         a jump table is the best form for a switch statement, including
4173         automatic insertion of missing cases to make the case range
4174         continuous. Developed in collaboration with Frieder Ferlemann.
4175
4176 2004-09-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4177
4178         * src/hc08/ralloc.c (canDefAccResult): multi-byte shift is unsafe for
4179         accumulator result if it needs sign extension
4180
4181 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
4182
4183         * src/hc08/ralloc.c (canUseAccOperand): fixed comparison bug
4184
4185 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
4186
4187         * device/lib/gbz80/printf.c,
4188         * device/lib/z80/printf.c: removed define for NULL
4189
4190 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
4191
4192         * as/xa51/xa_link.c,
4193         * device/examples/ds390/ow390/ad26.c,
4194         * device/examples/ds390/ow390/cnt1d.c,
4195         * device/examples/ds390/ow390/counter.c,
4196         * device/examples/ds390/ow390/ds2480.h,
4197         * device/examples/ds390/ow390/ds2480ut.c,
4198         * device/examples/ds390/ow390/findtype.c,
4199         * device/examples/ds390/ow390/gethumd.c,
4200         * device/examples/ds390/ow390/owllu.c,
4201         * device/examples/ds390/ow390/ownetu.c,
4202         * device/examples/ds390/ow390/swt12.c,
4203         * device/examples/ds390/ow390/swtloop.c,
4204         * device/examples/ds390/ow390/temp.c,
4205         * device/examples/ds390/ow390/temp10.c,
4206         * device/examples/ds390/ow390/thermo21.c,
4207         * device/examples/ds390/ow390/tinilnk.c,
4208         * device/examples/ds390/ow390/tstfind.c,
4209         * device/examples/serialcomm/windows/serial.cpp,
4210         * device/examples/serialcomm/windows/test_serialcomm.cpp,
4211         * device/include/reg51.h: fixed line endings for cvs
4212
4213 2004-09-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4214
4215         * src/hc08/ralloc.c (canDefAccResult, canUseAccOperand,
4216         packRegsForAccUse, packRegisters): new accumulator register
4217         packing algorithm
4218         * support/regression/ports/hc08/support.c (_putchar): suppress
4219         warning of unused variable
4220         * src/SDCCicode.c: added SWAP entry to codeTable
4221
4222 2004-09-01 Maarten Brock <sourceforge.brock AT dse.nl>
4223
4224         * device/lib/sprintf.c: forgot to add this file before previous commit
4225
4226 2004-09-01 Vangelis Rokas <vrokas AT otenet.gr>
4227
4228         * src/pic16/gen.c (genPackBits): added operand right in function
4229         parameters, load result directly if p_type is POINTER (that is
4230         called by genNearPointerSet)
4231         * (genUnPackBits): added operand left in function parameters,
4232         * (genNearPointerGet, genNearPointerSet): prevent the loading of
4233         FSR0 if accessing bitfields,
4234
4235 2004-08-31 Maarten Brock <sourceforge.brock AT dse.nl>
4236
4237         * device/include/stdio.h: added NULL, size_t, typedef pfn_outputchar,
4238           _print_format; updated printf, sprintf, vsprintf
4239         * device/include/asm/default/features.h: corrected comment/define
4240         * device/lib/Makefile.in: added sprintf.c
4241         * device/lib/libsdcc.lib: added sprintf module
4242         * device/lib/printf_large.c,
4243         * device/lib/vprintf.c,
4244         * device/lib/sprintf.c: totally refactored printf_large and vprintf
4245           into these 3 files
4246         * support/regression/Makefile: changed ALL_PORTS into a usefull default
4247         * support/regression/ports/mcs51-stack-auto/spec.mk: added sprintf
4248         * support/regression/tests/bug-927659.c: removed dummy putchar, enabled
4249           hc08 test
4250         * support/regression/tests/zeropad.c: define idata as data for hc08
4251
4252 2004-08-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4253
4254         * src/SDCCpeeph.c (labelIsReturnOnly): support hc08 rts opcode also
4255         * src/SDCCpeeph.c (buildLabelRefCountHash): assume function entry point
4256         labels are referenced at least once (even if a reference is not found)
4257         * src/hc08/gen.c (emitcode): set isComment flag for comments
4258         * src/hc08/peeph.def: added rules 5a..5f (optimize redundant immediate
4259         loads), rules 6a..6b (optimize jumps to return)
4260
4261 2004-08-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4262
4263         * device/lib/acosf.c (acosf),
4264         * device/lib/asinf.c (asinf),
4265         * device/lib/atanf.c (atanf),
4266         * device/lib/ceilf.c (ceilf),
4267         * device/lib/cosf.c (cosf),
4268         * device/lib/coshf.c (coshf),
4269         * device/lib/cotf.c (cotf),
4270         * device/lib/fabsf.c (fabsf),
4271         * device/lib/floorf.c (floorf),
4272         * device/lib/log10f.c (log10f),
4273         * device/lib/logf.c (logf),
4274         * device/lib/sinf.c (sinf),
4275         * device/lib/sinhf.c (sinhf),
4276         * device/lib/sqrtf.c (sqrtf),
4277         * device/lib/tanf.c (tanf),
4278         * device/lib/tanhf.c (tanhf),
4279         * device/include/math.h: defined _FLOAT_FUNC_REENTRANT macro and
4280         replaced all instances of "reentrant" in the library functions
4281         defined in math.h with this macro.
4282         * support/regression/tests/float_trans.c: reenabled test for hc08
4283
4284 2004-08-30 Bernhard Held <bernhard AT bernhardheld.de>
4285
4286         * device/lib/pic16/Makefile.common.in: added MODELFLAGS again, it was
4287         erroneously deleted
4288
4289 2004-08-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4290
4291         * src/hc08/gen.c (loadRegFromAop): better use of clra & clrx
4292         * src/hc08/gen.c (genAnd, genOr): fixed bug with conditional when
4293         multi-byte volatile operands are used
4294         * src/hc08/gen.c (shiftRLong): fixed bug with wrong rotate direction
4295         * src/hc08/main.c (_hc08_genAssemblerPreamble): moved the built-in
4296         initialization to area GSINIT0 so that it would always precede
4297         any static initializers in GSINIT
4298         * support/regression/tests/zeropad.c: fixed idata define for hc08
4299         * support/regression/tests/bug-927659.c,
4300         * support/regression/tests/float_trans.c: disabled tests for hc08
4301         pending missing library routines
4302         * .version: increased version number to 2.4.4 - hc08 port now passes
4303         regression tests
4304
4305
4306 2004-08-29 Bernhard Held <bernhard AT bernhardheld.de>
4307
4308         * device/lib/pic16/Makefile.common.in: added $(MM) to fix `make clean`
4309         * Makefile.common.in,
4310         * as/Makefile,
4311         * as/hc08/Makefile.in,
4312         * as/mcs51/Makefile.in,
4313         * as/z80/Makefile.in,
4314         * debugger/mcs51/Makefile.in,
4315         * device/include/Makefile.in,
4316         * device/lib/Makefile.in,
4317         * doc/Makefile,
4318         * link/Makefile,
4319         * link/z80/Makefile.in,
4320         * packihx/Makefile.in,
4321         * sim/ucsim/main_in.mk,
4322         * sim/ucsim/avr.src/Makefile.in,
4323         * sim/ucsim/doc/Makefile.in,
4324         * sim/ucsim/gui.src/serio.src/Makefile.in,
4325         * sim/ucsim/hc08.src/Makefile.in,
4326         * sim/ucsim/s51.src/Makefile.in,
4327         * sim/ucsim/xa.src/Makefile.in,
4328         * sim/ucsim/z80.src/Makefile.in,
4329         * src/Makefile.in,
4330         * support/cpp2/Makefile.in,
4331         * support/librarian/Makefile,
4332         * support/makebin/Makefile: added DESTDIR to the install path proposed
4333         by "Maciej 'Agaran' Pijanka" <agaran AT pld-linux.org>
4334         * doc/sdccman.lyx: added DESTDIR documentation
4335
4336 2004-08-29 Vangelis Rokas (vrokas AT otenet.gr>
4337
4338         * src/pic16/gen.c (genFunction, genEndFunction): fixed return
4339         instruction for interrupt handlers, use fast returns when returning
4340         from high priority interrupts
4341
4342 2004-08-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4343
4344         * src/hc08/gen.c (genAnd, genOr, transferAopAop, rmwWithAop): optimized
4345         code generation
4346         * src/hc08/gen.c (genrshFour, genCpl): fixed bugs
4347         * src/hc08/gen.c (genMultOneByte, genDivOneByte, genModOneByte): fixed
4348         bugs, ported much of Bernhard's code from mcs51
4349         * src/mcs51/gen.c (genSend),
4350         * src/hc08/gen.c (genSend): fixed bug with lost SEND iCodes if more
4351         than one when calling a reentrant function
4352         * device/lib/_mullong.c: defined an alternate struct layout for big
4353         endian ports (hc08)
4354
4355 2004-08-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4356
4357         * src/hc08/gen.c (shiftL2Left2Result): fix for bug-500536 regression
4358         test
4359
4360 2004-08-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4361
4362         * src/SDCCsymt.c (processFuncArgs): make sure parameter types
4363         are sane and complete before asking the port its prefered parameter
4364         passing method (fixes bug #1017633)
4365         * device/lib/hc08/_ret.c: added "data" storage class to _ret2
4366         and _ret3
4367
4368 2004-08-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4369
4370         * src/hc08/gen.c (genPackBitsImmed, genUnpackBitsImmed): fix offset
4371         problem in bitfields >= 8 bits.
4372
4373 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
4374
4375         * src/SDCCsymt.c: undid changes that were not meant to be committed
4376
4377 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
4378
4379         * support/regression/ports/hc08spec.mk: REENTRANT must be reentrant
4380
4381 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
4382
4383         * src/hc08/gen.c (genUminusFloat): fixed bug where only 3 bytes were
4384           copied and wrong bit got inverted
4385
4386 2004-08-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4387
4388         * src/hc08/gen.c (genPointerSet, genFarPointerSet): moved code from
4389         genFarPointerSet into genPointerSet; eliminated genFarPointerSet
4390         * src/hc08/gen.c (genPointerGet, genFarPointerGet): moved code from
4391         genFarPointerGet into genPointerGet; eliminated genFarPointerGet
4392         * src/hc08/gen.c (genPackBitsImmed): generate optimized code for
4393         assignments to bitfields at known addresses
4394         * src/hc08/gen.c (genUnpackBitsImmed): generate optimized code for
4395         reads from bitfields at known addresses
4396         * src/hc08/ralloc.c (packRegisters),
4397         * src/hc08/gen.c (genPointerGet, genUnpackBits, genUnpackBitsImmed,
4398         genhc08Code): optimize pointer get values used as conditionals
4399         * src/hc08/peeph.def: added rules 2e & 2f to optimize bit test
4400         and branch
4401
4402 2004-08-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4403
4404         * src/mcs51/gen.c (genPointerGet, genNearPointerGet, genPagedPointerGet,
4405         genFarPointerGet, genCodePointerGet, genGenPointerGet, genUnpackBits),
4406         * src/mcs51/ralloc.c (packRegisters): optimize pointer get values used
4407         as conditionals
4408
4409 2004-08-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4410
4411         * src/mcs51/peeph.def: peepholes 248.i-m for xdata bitfields
4412
4413 2004-08-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4414
4415         * src/mcs51/ralloc.c (packRegsForOneuse): fixed bug #1012650 and some
4416         related problems
4417
4418 2004-08-21 Bernhard Held <bernhard AT bernhardheld.de>
4419
4420         * sim/ucsim/cmd.src/Makefile.in: run lex only if $(PRJDIR)/devel exists
4421
4422 2004-08-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4423
4424         * src/z80/ralloc.c (packRegsForAssign): ported some bug fixes from the
4425         mcs51 port
4426
4427 2004-08-16 Slade Rich <slade_rich AT users.sourceforge.net>
4428
4429         * src/pic/gen.c: Restored fn genRet as previous fix was incorrect.
4430
4431 2004-08-14 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4432
4433         * src/mcs51/gen.c (genJumpTab): jumptables for more than 16 switch
4434         cases use more compact code.
4435
4436 2004-08-13 Slade Rich <slade_rich AT users.sourceforge.net>
4437
4438         * src/pic/gen.c: Fixed problem with fn returning a variable bigger than a char.
4439
4440 2004-08-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4441
4442         * src/SDCClrange.c (findPrevUse): fixed bug #1007371
4443
4444 2004-08-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4445
4446         * src/SDCCsymt.h,
4447         * src/SDCCsymt.c (changePointer, checkDecl, addSymChain): changed
4448         parameter of changePointer() from symbol* to sym_link*
4449         * src/SDCCast.c (decorateType): call changePointer() for CAST op
4450         * src/SDCCsymt.c (compareType): void* type is castable to other
4451         pointers, but not necesarily an exact match.
4452         * src/SDCCicode.c (geniCodeCast): allow void* casting here since it
4453         is no longer blindly treated as an exact match.
4454         * src/SDCCval.c (valCastLiteral): treat missing type as cast to void
4455
4456 2004-08-12 Slade Rich <slade_rich AT users.sourceforge.net>
4457
4458         * src/pic/glue.c: Added struct initialisation fn printIvalStruct.
4459
4460 2004-08-11 Slade Rich <slade_rich AT users.sourceforge.net>
4461
4462         * src/pic/gen.c,
4463         * src/pic/pcode.c,
4464         * src/pic/ralloc.h,
4465         * src/pic/ralloc.c: Printing rIdx on internal verbose debug.
4466
4467 2004-08-10 Slade Rich <slade_rich AT users.sourceforge.net>
4468
4469         * src/pic/device.c,
4470         * src/pic/device.h,
4471         * src/pic/device.c: Will no longer exit if #pragma maxram has not been defined.
4472
4473 2004-08-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4474
4475         * src/mcs51/gen.c (emitcode): fixed bug #992819
4476
4477 2004-08-05 Maarten Brock <sourceforge.brock AT dse.nl>
4478
4479         * src/pic/ralloc.c (deassignLR): allthough pic port is buggy already,
4480           there's no need to make it worse
4481
4482 2004-08-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4483
4484         * src/mcs51/ralloc.c (deassignLR),
4485         * src/ds390/ralloc.c (deassignLR),
4486         * src/hc08/ralloc.c (deassignLR),
4487         * src/z80/ralloc.c (deassignLR),
4488         * src/pic/ralloc.c (deassignLR),
4489         * src/pic16/ralloc.c (deassignLR),
4490         * src/avr/ralloc.c (deassignLR),
4491         * src/SDCClrange.c (findRecursiveSucc, findRecursivePred, findPrevUse,
4492         rlivePoint): fixed another part of bug #971834
4493
4494 2004-08-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4495
4496         * src/z80/main.c: enabled "critical" keyword
4497         * src/z80/mappings.i,
4498         * src/z80/gen.c (genFunction, genEndFunction): support for interrupt
4499         functions (fixes bug #979646)
4500         * doc/sdccman.lyx: added a subsection explaining z80 interrupt support
4501
4502 2004-08-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4503
4504         * src/mcs51/gen.c (genInline): Add \n for labels, not DOS/WIN dirs
4505           such as c:\mydir.
4506
4507 2004-08-03 Maarten Brock <sourceforge.brock AT dse.nl>
4508
4509         * src/SDCCloop.c (loopInvariants): fixed bug 983545, hope this
4510           doesn't disable too much optimizations
4511
4512 2004-08-02 Slade Rich <slade_rich AT users.sourceforge.net>
4513
4514         * src/pic/glue.c Disabled "WARNING: function 'main' undefined" when -S option is used.
4515
4516 2004-08-02 Maarten Brock <sourceforge.brock AT dse.nl>
4517
4518         * src/SDCClrange.c (rlivePoint): fixed bug 988568, thanks to anonymous
4519
4520 2004-08-02 Slade Rich <slade_rich AT users.sourceforge.net>
4521
4522         * src/pic/gen.c tidied up tabs
4523         * src/pic/genarith.c tidied up tabs and fixed bug with literal multiple where same register was used for hi and low byte
4524         * src/pic/main.c tidied up tabs
4525         * src/pic/pcode.c tidied up tabs and disabled verbose code generation
4526         * src/pic/pcoderegs.c tidied up tabs
4527         * src/pic/ralloc.c tidied up tabs
4528
4529 2004-07-30 Vangelis Rokas <vrokas AT otenet.gr>
4530
4531         * src/SDCCmem.c (allocGlobal): don't turn S_REGISTER storage class
4532         to S_FIXED for pic16 port and when symbol is not in level 0,
4533         allocate for S_REGISTER storage class and pic16 port, too,
4534         * src/pic16/device.h: prototype for checkSym,
4535         * src/pic16/device.c (pic16_dump_access, checkSym): NEW,
4536         * (pic16_assignConfigWordValue): test the value and the mask to
4537         validate that the value is suitable for the configuration word,
4538         * src/pic16/glue.c (pic16_printIvalFuncPtr): use 'externs' to
4539         collect extern declared symbols, don't emit symbol twice, check
4540         first if symbol is in publics set first,
4541         * src/pic16/main.c (_pic16_keywords[]): added keyword 'register',
4542         * added command line '--fstack' which enables an experimental
4543         feature for stack access, too buggy to be used yet...
4544         * src/pic16/ralloc.c (pic16_accessregWithName): NEW,
4545         * (pic16_allocDirReg): when register has storage class S_REGISTER
4546         allocate in pic16_dynAccessRegs,
4547         * device/include/pic16/pic18f????.h: modified configuration word
4548         naming convention, words started as CONFIG0H but should be CONFIG1H
4549
4550 2004-07-29 Maarten Brock <sourceforge.brock AT dse.nl>
4551
4552         * device/include/mcs51reg.h: fixed bug 970993
4553
4554 2004-07-27 Maarten Brock <sourceforge.brock AT dse.nl>
4555
4556         * added lib/calloc.c, lib/free.c, lib/realloc.c, include/stddef.h
4557         * updated lib/malloc.c, lib/libsdcc.lib, lib/Makefile.in, include/malloc.h
4558         * src/SDCC.lex (doPragma): added pragma disable_warning <nnn>
4559         * src/SDCCmain.c (parseCmdLine): added option --disable-warning <nnn>
4560         * src/ds390/gen.c (genPlusIncr): fixed bug when incrementing generic pointers
4561         * support/Util/SDCCerr.c (vwerror): suppress disabled warnings and output
4562           error/warning numbers,
4563           added function setWarningDisabled()
4564         * support/Util/SDCCerr.h: added setWarningDisabled() and MAX_ERROR_WARNING
4565         * support/regression/ports/mcs51-stack-auto/spec.mk: added dependencies
4566           _memcmp.c _memmove.c calloc.c realloc.c free.c
4567         * support/regression/tests/malloc.c: added tests for new functionality
4568         * support/regression/tests/zeropad.c: added tests for truncated initializers
4569           and initialized char arrays starting with '\x0'
4570         * src/mcs51/peeph.def: fixed regression, added peephole 177.f
4571
4572 2004-07-26 Bernhard Held <bernhard AT bernhardheld.de>
4573
4574         * support/valdiag/tests/overflow.c: fixed warning on (1 >> 40)
4575
4576 2004-07-26 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4577
4578         * doc/sdccman.lyx: updated example in section "Absolute Addressing"
4579         * src/mcs51/peeph.def: added contributed fix for "bug" #995347 as
4580         peephole 177.e. Thanks to anonymous
4581
4582 2004-07-25 Vangelis Rokas <vrokas AT otenet.gr>
4583
4584         * src/pic16/glue.c (pic16_printIvalFuncPtr): when an extern
4585         function isn't used in the source but referenced as a
4586         variable initializer then declare it as extern in .asm file
4587
4588 2004-07-24 Vangelis Rokas <vrokas AT otenet.gr>
4589
4590         * .version: increased version number to 2.4.3
4591
4592         Adding version extension according to ChangeLog CVS revision
4593         * src/Makefile.in (target all): added dependency 'version.h'
4594         * (rule version.h): added rule to create version.h from ChangeLog,
4595         * (rule dep): added dependency version.h,
4596         * src/version.awk: AWK script to create version.h
4597         * src/SDCCdwarf2.c (dwWriteModule),
4598         * src/SDCCglue.c (initialComments),
4599         * src/SDCCmain.c (printVersionInfo): modified to write after
4600         version string the version extension number,
4601         * src/SDCCutil.c: included "version.h"
4602         * (getBuildNumber): NEW, returns SDCC's ChangeLog minor revision
4603         number,
4604         * src/SDCCutil.h: added prototype for getBuildNumber
4605
4606         * src/SDCCmain.c (parseCmdLine): when sOpt is 'I' add rest in
4607         includeDirsSet, too,
4608         * src/SDCCsymt.c (checkSClass): don't emit error when a variable,
4609         const char [] is found in function prototype...
4610
4611         * src/pic16/genarith.c (pic16_genUMult8XLit_8): optimization to omit
4612         moving to WREG with source is already in WREG,
4613         * src/pic16/gen.h: added AOP_FSR0 and AOP_FSR2 in enum,
4614         * src/pic16/gen.c (getFreePtr): updated to look for FSR0 and FSR2,
4615         * (aopForSym): stack'ed symbols are partially supported, added
4616         if-clause to support symbols in FARSPACE,
4617         * (sameRegs): added test for AOP_ACC to see if registers are same,
4618         * (pic16_freeAsmop): added case for AOP_FSR0 and AOP_FSR2,
4619         * (pic16_aopGet): added case for AOP_FSR0 and AOP_FSR2,
4620         * (pic16_popRegFromString): will not allocate a new register if it
4621         doesn't find one by name, bug may have introduced...
4622         * (pic16_popGet): added case for AOP_FSR0 and AOP_FSR2,
4623         * (genIpush): revived to use pic16 port's stack,
4624         * (genAddrOf): added incomplete case for stack'ed operand,
4625         * (genCast): optimized a pair of MOVFW,MOVWF to MOVFF
4626         * src/pic16/genutils.c (pic16_genNot): almot new vesrion for NOT,
4627         can handle multibyte operands,
4628         * src/pic16/glue.c (pic16_printIval*): some debug info added,
4629         * (pic16initialComments): added message for MPLAB compatibility
4630         mode enabled,
4631         * src/pic16/main.h: prototype for pic16_mplab_comp,
4632         * src/pic16/main.c (pic16_optionsTable): new option --mplab-comp,
4633         which enabled MPLAB compatibility mode (i.e. no #LINE/#FILE, BANKED)
4634         * (_pic16_linkEdit): NEW, handles link stage, transferred here
4635         because of increased complexity of procedure,
4636         * (_process_pragma): stack pragma changed to format 'stack pos len',
4637         emit symbol '_stack_end' to conform with gplink,
4638         * src/pic16/pcode.c (pic16_newpCodeOpBit): using pic16_regWithName
4639         to search for register,
4640         * (pic16_get_op, pic16_get_op2): added case for PO_W, PO_WREG and
4641         PO_GPR_REGISTER,
4642         * (pic16_pCode2str): when in MPLAB compatibility mode, comment out
4643         #LINE directives and replace 'B' with 'BANKED' in instruction opcodes
4644         * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): added
4645         case for PO_GPR_REGISTER,
4646         * (pic16_AnalyzeBanking): removed the old message for inc2h.pl, past
4647         dies, the new era is ahead !...
4648         * src/pic16/ralloc.c: added hash reposits pic16_dynAllocRegNames and
4649         pic16_dynInternalRegs,
4650         * (pic16_allocregWithName, pic16_procregWithName, pic16_regWithname): NEW,
4651         * (pic16_allocDirReg): minor optimizations and bug fixes,
4652         * (pic16_allocWithIdx): when searching pic16_dynProcessorRegs use fixed,
4653
4654         * device/lib/pic16/startup/crt0*.c: extern definition of stack_end,
4655         load stack and frame pointer with address of 'stack_end' symbol
4656
4657 2004-07-23 Vangelis Rokas <vrokas AT otenet.gr>
4658
4659         * src/pic16/glue.c (pic16emitStaticSeg): fixed bug with files
4660         without source code but only variable initializers
4661
4662 2004-07-20 Vangelis Rokas <vrokas AT otenet.gr>
4663
4664         * src/pic16/glue.c (pic16emitRegularMap): unused functions marked as
4665         external are not declared as extern to reduce overhead while linking
4666
4667 2004-07-20 Maarten Brock <sourceforge.brock AT dse.nl>
4668
4669         * src/SDCCast.c (decorateType): removed buggy fix for bug #979599
4670
4671 2004-07-11 Maarten Brock <sourceforge.brock AT dse.nl>
4672
4673         * src/SDCCglue.c (printIvalArray): fixed bug #984229, thanks to Phuah
4674           Yee Keat for the patch
4675         * src/SDCCast.c (decorateType): fixed bug #979599
4676         * src/ds390/gen.h: removed local fReturnSizeDS390
4677         * src/ds390/gen.c: made fReturnSizeDS390 signed short to remove a warning
4678         * src/ds390/gen.c (genAnd, genOr, genXor),
4679         * src/mcs51/gen.c (genAnd, genOr, genXor): generate better optimized code
4680
4681 2004-07-04 Vangelis Rokas <vrokas AT otenet.gr>
4682
4683         * src/SDCCmain.c (linkEdit): modifications only for pic16 port,
4684         add relFilesSet to $3, manipulate $2 to handle linking of object
4685         files without source files in command line,
4686         * device/include/pic16 (all headers): added ID location macros,
4687         * src/pic16/device.c (struct PIC16_device Pics16[]): added field
4688         entries for ID location bytes,
4689         * (pic16_assignIdByteValue): NEW,
4690         * src/pic16/device.h: new structures idRegInfo_t and idBytesInfo_t,
4691         added field dumpcalltree to pic16_options_t,
4692         * src/pic16/gen.c (genCmp): fixed bug case so a temporary register
4693         is used instead of pic16_Gstack_base_addr, check if (ifx) before
4694         emitting rFalseIfx label after check_carry label,
4695         * src/pic16/glue.c (PIC16_IS_IDLOC_ADDRESS, PIC16_IS_HWREG_ADDRESS,
4696         pic16_emitDIRegs), NEW
4697         * (pic16glue): dump .calltree file when option --calltree found,
4698         * src/pic16/main.c (OPTION _pic16_optionsTable): new option --calltree
4699         * (_pic16_genAssemblerPreamble): emit ID locations after
4700         configuration registers,
4701         * (pic16_linkCmd): modifications of the link command,
4702         * src/pic16/pcode.c (pic16_pciMOVFF): PCC_REGISTER replaces PCC_REGISTER2
4703         * (pic16_pCodeInitRegisters): don't init stack registers,
4704         * (pic16_findPrevInstruction): fixed bug,
4705         * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): fixed
4706         bug with immediate registers,
4707         * (buildCallTree): traces stack push and pop,
4708         * (pct2): dump also stack usage for each function,
4709         * src/pic16/ralloc.c (dynrIdx): registers names start from 0x00
4710         * (pic16_allocDirReg): various modifications,
4711         * (pic16_typeRegWithIdx): when searching pic16_dynProcessorRegs set
4712         fixed to 1,
4713
4714 2004-07-02 Vangelis Rokas <vrokas AT otenet.gr>
4715
4716         * src/pic16/pcode.c: removed buggy double colon
4717
4718 2004-07-01 Borut Razem <borut.razem AT siol.net>
4719
4720         * support/scripts/sdcc.nsi: added include/pic16 to setup
4721
4722 2004-06-30 Vangelis Rokas <vrokas AT otenet.gr>
4723
4724         * device/lib/Makefile.in: fixed bug in target objects-pic16,
4725         * device/lib/pic16/Makefile: prefixed with dash (-) command under
4726         target 'clean',
4727         * doc/sdccman.lyx: changed version to 2.4.2 and added some port
4728         specific command line arguments. Also added sample lkr script
4729         for placing a variable at a specific memory bank.
4730         * src/pic16/device.c (pic16_dump_gsection): NEW, to dump variables
4731         at a specific memory bank,
4732         * (pic16_dump_isection): fixed bug which caused string literals to
4733         be omitted when dumping idata section,
4734         * (pic16_groupRegistersInSection): added code to handle registers
4735         in specific memory banks,
4736         * src/pic16/gen.c: labelOffset is prefixed with pic16_ and made
4737         public, all references are renamed too,
4738         * (pic16_aopGet): removed switch cases for AOP_R0,AOP_R1,AOP_DPTR,
4739         AOP_DPTR2,
4740         * (pic16_storeForReturn): added case to handle when dest is WREG,
4741         * src/pic16/genarith.c (pic16_pCodeOpSubType): NEW,
4742         * src/pic16/glue.c (pic16emitRegularMap): when adding a register in
4743         pic16_rel_udata, check to see if that register is marked as being
4744         a member of a specific memory bank,
4745         * (pic16_printIvalCharPtr): added code to add string literals either
4746         to code or the idata sections,
4747         * src/pic16/main.c (_process_pragma): added \n to WHITE constant,
4748         also accept the 'udata' pragma,
4749         * src/pic16/main.h: new structure types sectName and sectSym
4750         * src/pic16/pcode.c: added new pCodeInstruction entry for BANKSEL
4751         * (newpCodeOpBit): added PIC_OPTYPE subt in function prototype,
4752         * (pic16_findPrevInstruction): fixed, it returned nothing,
4753         * (insertBankSwitch): fixed to emit banksel/skip and skip/banksel
4754         instruction combinations,
4755         * (pic16_FixRegisterBanking): heavily reorganised,
4756         * (pic16_AnalyzeBanking): if generating banksel directives is
4757         disabled, then don't call FixRegisterBanking at all,
4758         * src/pic16/ralloc.c (bitEQUs, aliasEQUs, allDefsOutOfRange):
4759         completely removed,
4760         * (pic16_writeUsedRegisters): added call to pic16_dump_gsection
4761
4762 2004-06-29 Bernhard Held <bernhard AT bernhardheld.de>
4763
4764         * src/SDCCglue.c (printChar): fixed bug #973350, patch provided by
4765         Phuah Yee Keat <yk.phuah AT nestac.com>
4766
4767 2004-06-28 Vangelis Rokas <vrokas AT otenet.gr>
4768
4769         * src/pic16/glue.c (pic16createInterruptVect): function now emits
4770         correctly the IVT even if it is relocated to some other location
4771
4772 2004-06-28 Vangelis Rokas <vrokas AT otenet.gr>
4773
4774         * device/include/pic16/pic18fregs.h: added case for pic18f2220.h
4775         * device/include/pic16/pic18f2220.h: NEW,
4776         * device/lib/pic16/libdev/pic18f2220.c: NEW,
4777         * device/lib/pic16/libdev/Makefile: added 18f2220 in DEVS,
4778         * src/pic16/device.c (struct Pics16): added info for 18f2220,
4779         * src/pic16/device.h (struct pic16_options): added ivt_loc and
4780         nodefaultlibs, ivt_loc is the location of the interrupt vector
4781         table, and nodefaultlibs signs that default libraries should not be
4782         linked in link stage,
4783         * src/pic16/gen.c (genFunction): relocate interrupt vector functions
4784         according to --ivt-loc argument,
4785         * src/pic16/main.c (_process_pragma): emit '_stack' as public symbol
4786         when pragma stack is found,
4787
4788 2004-06-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4789
4790         * src/mcs51/peeph.def: added peepholes 182.d (return 0.0),
4791         256 (range check), 257 (do while), 258.a-f (bit banging
4792         f.e. on 3-wire SPI bus)
4793
4794 2004-06-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4795
4796         * src/SDCClrange.c (findNextUseSym): fixed a live range bug with
4797         variables used exclusively within a loop
4798
4799 2004-06-21 Bernhard Held <bernhard AT bernhardheld.de>
4800
4801         * src/mcs51/gen.c (genCpl): quick fix for bug #974835
4802
4803 2004-06-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4804
4805         * src/SDCClrange.c (computeClash): fixed bug #971834
4806
4807 2004-06-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4808
4809         * src/mcs51/gen.c (genCmp): fixed bug #975903
4810         * src/hc08/gen.c (operandsEqu),
4811         * src/ds390/gen.c (operandsEqu),
4812         * src/z80/gen.c (operandsEqu),
4813         * src/pic/gen.c (operandsEqu),
4814         * src/pic16/gen.c (operandsEqu),
4815         * src/mcs51/gen.c (operandsEqu): fixed bug #976283
4816         * src/SDCCmain.c (parseCmdLine): report --unknown-option only once
4817
4818 2004-06-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4819
4820         * src/SDCCcse.c (cseBBlock): fixed bug #966963
4821
4822 2004-06-12 Vangelis Rokas <vrokas AT otenet.gr>
4823
4824         * src/pic16/gen.c (genPointerGet): added E_INTERNAL_ERROR for
4825         default case in switch statement,
4826         * glue.c (pic16_initPointer): expr is initialised via decoarteType
4827         to eliminate problem with initialisation of pointers, but problem
4828         still exists,
4829         * (pic16_pointerTypeToGPByte): removed, no needed for pic16,
4830         * (emitStaticSegment): removed various lines emitting debug info,
4831         * src/pic16/pcode.c, src/pic16/pcode.h, src/pic16/ralloc.h:
4832         added processor registers for utilizing EEPROM,
4833         * src/pic16/pcode.c (pic16_emitDB): number of DBs emitted is not
4834         configurable and set 8
4835
4836 2004-06-08 Vangelis Rokas <vrokas AT otenet.gr>
4837
4838         * .version: increased version number to 2.4.2,
4839
4840         Cumulative patch for pic16 port
4841         * src/pic16/device.c: changed scheme to dump initial values for
4842         variables in idata segment, all print_idata* functions were removed,
4843         now the pic16_printIval* will be called,
4844         * src/pic16/glue.c: (pic16_initPointer, pic16_pointerTypeToGPByte,
4845         * _pic16_printPointerType, pic16_printPointerType,
4846         * pic16_printGPointerType, pic16_printIvalArray, pic16_printIvalStruct,
4847         * pic16_printIvalBitFields, pic16_printIvalFuncPtr, pic16_printIvalPtr:
4848         NEW, similar to the respective functions in SDCCglue.c,
4849         * src/pic16/pcode.c (pic16_emitDB, pic16_flushDB): reverted to old
4850         way, emitting hex bytes,
4851         * (pic16_emitDS): NEW, emits a string for pointer initialisation,
4852
4853 2004-06-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4854
4855         * src/avr/ralloc.c (serialRegAssign),
4856         * src/xa51/ralloc.c (serialRegAssign),
4857         * src/pic/ralloc.c (serialRegAssign),
4858         * src/pic16/ralloc.c (serialRegAssign),
4859         * src/hc08/ralloc.c (serialRegAssign),
4860         * src/z80/ralloc.c (serialRegAssign),
4861         * src/ds390/ralloc.c (serialRegAssign),
4862         * src/mcs51/ralloc.c (serialRegAssign): fixed bug #964479
4863
4864 2004-06-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4865
4866         * src/SDCCicode.c (geniCodeJumpTable): fixed bug #967601
4867         * src/SDCCpeeph.c (labelIsReturnOnly): fixed bug #966505
4868
4869 2004-06-07 Vangelis Rokas <vrokas AT otenet.gr>
4870
4871         Cumulative patch for pic16 port:
4872         * src/pic16/device.h (typedef PIC16_device) modified fields for
4873         defining microcontrollers,
4874         * src/pic16/device.c: added new info for all devices in Pics16 array,
4875         * src/pic16/gen.c (genPcall): fixed bug that caused the return label
4876         to be optimised out by the pCode optimiser,
4877         * src/pic16/glue.c (pic16emitRegularMap): treat implicit aggragates
4878         specially, bug reported by G.M. Gallant,
4879         * src/pic16/pcode.c (pic16_newpCodeLabelFORCE): NEW, marks a label
4880         as force'd so that cannot be optimised out by pCode optimiser,
4881         * src/pic16/pcode.c,
4882         * src/pic16/pcodepeeph.c,
4883         * src/pic16/pcoderegs.c: many modifications to re-enable peepholes,
4884         they are disabled by default, but can be enabled explicit with
4885         command argument --denable-peeps, for testing,
4886         * device/lib/pic16/startup/Makefile: added --no-peep,--pomit-config-words,
4887         --pomit-ivt in COMPILE_FLAGS
4888
4889 2004-06-06 Maarten Brock <sourceforge.brock AT dse.nl>
4890
4891         * src/pic16/pcode.c (pic16_emitDB): removed double semicolon which fails
4892           compilation on MSVC
4893
4894 2004-06-06 Maarten Brock <sourceforge.brock AT dse.nl>
4895
4896         * device/include/sab80515.h: added sfr P6, changed GPL to LGPL
4897
4898 2004-06-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4899
4900         device/include/sab80515.h: fixed bug #967492, DAPR is defined at adress
4901         0xd8, but the correct adress is 0xda. Thanks to anonymous for reporting
4902
4903 2004-06-06 Vangelis Rokas <vrokas AT otenet.gr>
4904
4905         * src/pic16/device.c (pic16_assignConfigWord): fixed bug that
4906         would only assign 0x300001 register.
4907
4908 2004-06-05 Vangelis Rokas <vrokas AT otenet.gr>
4909
4910         * device/lib/pic16/startup/Makefile: added $(MODELFLAGS)
4911         in COMPILE_FLAGS. Thanks to G. Gallant for report.
4912
4913 2004-06-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4914
4915         * doc/sdccman.lyx: minor changes, mentioned beta vendor support
4916         for ds80c400
4917         * src/mcs51/peeph.def: ran unexpand -a over peeph.def
4918         * src/mcs51/peeph.def: removed obsolete peephole 100.a,
4919         added peephole 254 (left shift), 255 (jump table)
4920
4921 2004-06-04 Vangelis Rokas <vrokas AT otenet.gr>
4922
4923         * device/lib/Makefile.in: removed comment line with model-pic16,
4924         * (target port-specific-objects-pic16): the libraries and objects
4925         are copied to the build directory form the device/lib/pic16/bin
4926         directory
4927
4928         Cumulative patch concerning pic16 port:
4929         * library directory has been re-organized,
4930         * added support for PIC18F1220,
4931         * added headers and library sources for chips 18f1220,18f6520,
4932         18f6620,18f6680,18f6720,18f8520,18f8620,18f8680,18f8720
4933
4934         * configuration registers setting has changed, now each supported
4935         device has a complete description of the registers it uses,
4936         * all initialisations are moved to idata sections, these section
4937         can be absolute or relocatable,
4938         * fixed initialisation of codespace variables,
4939         * fixed warning about PCLATU and gpsim,
4940         * src/pic16/gen.c (genCmp): now can handle partially iCodes with no ifx,
4941         * (genAssign): use table reads when assigning from variables in codespace,
4942         * src/pic16/glue.c (pic16emitStaticSeg): fixed to correctly initialise
4943         char/int variables placed in codespace,
4944         * (pic16_emitConfigRegs): NEW, emits a list with configuration
4945         registers set in .asm file, no need for --pomit-config-words anymore,
4946         * (pic16glue): some 8051 legacy segments are commented out
4947         (to be removed completely),
4948         * added support for alternative assembler and linker with --asm=
4949         and --link= command line arguments,
4950         * peepholes are disabled automatically in the port, no need to
4951         specify on command line,
4952         * port supports natively char/int/long multiplication, but converts
4953         all divisions to support functions,
4954         * main.c: pic16_linkCmd and pic16_asmCmd changed to force output
4955         to the file set in variable $2,
4956         * pcode.c (pic16_emitDB, pic16_flushDB): modified to print printable
4957         strings in ASCII format and not in hex,
4958         * ralloc.c (serialRegAssign): added a triplet of conditional calls
4959         to pic16_allocDirReg for IC_RESULT, IC_LEFT and IC_RIGHT so to
4960         allocate proper register if iCodes aren't temporary,
4961
4962 2004-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
4963
4964         * support/regression/tests/zeropad.c: added TEST_G macro for alpha
4965
4966 2004-06-02 Vangelis Rokas <vrokas AT otenet.gr>
4967
4968         * src/pic16/gen.c (genPcall): warning about gpsim and PCLATU
4969         is commented out
4970
4971 2004-06-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4972
4973         * src/hc08/gen.c (genPointerGetSetOfs): disabled optimization if
4974         computed address is reused
4975         * src/hc08/gen.c (genPackBits): fixed offsets in assignments to
4976         multi-byte bitfields
4977
4978 2004-06-01 Maarten Brock <sourceforge.brock AT dse.nl>
4979
4980         * src/z80/gen.c: (genArrayInit): must check for pointers too
4981
4982 2004-06-01 Maarten Brock <sourceforge.brock AT dse.nl>
4983
4984         * support/regression/tests/zeropad.c: never meant to commit the
4985           nestedstruct test: removed, added check for GCC version
4986
4987 2004-05-31 Maarten Brock <sourceforge.brock AT dse.nl>
4988
4989         * src/SDCCast.c (createIvalArray): fixed bug 770487 SIGSEGV
4990         * src/SDCCglue.c (emitRegularMap): fixed bug 770484 allocation problem
4991         * src/SDCCglue.c (initPointer, printIvalType, printIvalStruct,
4992           printIvalArray, printIvalFuncPtr, printIvalPtr, printIval): fixed
4993           bugs 928906 and 954082 half-empty initializers
4994         * src/SDCCsymt.h,
4995         * src/SDCCsymt.c (getAllocSize): added for above fix
4996         * src/z80/gen.c (genArrayInit): fixed bug 741044
4997         * support/regression/tests/zeropad.c: added tests
4998
4999 2004-05-30 Vangelis Rokas <vrokas AT otenet.gr>
5000
5001         * src/pic16/device.c (pic16_dump_section): corrected bug which
5002         caused some symbols of the libraries to be misplaced
5003
5004 2004-05-28 Vangelis Rokas <vrokas AT otenet.gr>
5005
5006         * src/pic16/glue.c,
5007         * src/pic16/ralloc.h,
5008         * src/pic16/ralloc.cc: prefixed IS_CONFIG_ADDRESS with PIC16_
5009         to fix conflict with pic port
5010
5011 2004-05-28 Vangelis Rokas <vrokas AT otenet.gr>
5012
5013         * src/pic16/glue.c (pic16emitStaticSeg): do not print as publics or
5014         externs configuration variables,
5015         * src/pic16/ralloc.h,
5016         * src/pic16/ralloc.cc: IS_CONFIG_ADDRESS is made public and added
5017         prototype in header, commented out some debug messages
5018
5019 2004-05-26 Vangelis Rokas <vrokas AT otenet.gr>
5020
5021         * src/pic16/glue.c,
5022         * src/pic16/main.c,
5023         * src/pic16/pcode.c: added gpasm directives #FILE/#LINE
5024         for gpasm COFF object generation. Thanks to D. Hawkins for
5025         his patch info
5026
5027 2004-05-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5028
5029         * src/ds390/main.c,
5030         * src/mcs51/main.c: fixed sort order of mnemonics (thanks to Maarten
5031         Brock for spotting this)
5032         * src/ds390/gen.c (genEndFunction),
5033         * src/mcs51/gen.c (genEndFunction): always save psw if function is an
5034         interrupt handler and critical. Disable push/pop optimizations when
5035         peephole optimizations disabled.
5036
5037 2004-05-25 Vangelis Rokas <vrokas AT otenet.gr>
5038
5039         Updated pic16 library sources and headers.
5040         * device/lib/pic16/pic18f*/ ,
5041         * device/include/pic16/*.h: modified to handle structured SFR
5042         definitions
5043
5044 2004-05-25 Vangelis Rokas <vrokas AT otenet.gr>
5045
5046         * src/port.h (PORT structure): added hook initPaths, now each
5047         port can declare its own default search paths,
5048         which can been seen with the --print-search-dirs option,
5049         see pic16 port for example,
5050         * src/SDCCmain.c (setBinPaths, setIncludePaths, setLibPath,
5051         setDataPaths): test to options.printSearchDirs is ifdef'ed out,
5052         * (doPrintSearchDirs): NEW, replaces in a central manner the
5053         printing of search dirs which was split in set*Paths functions,
5054         * (main): added call to port->initPaths and doPrintSearchDirs,
5055         * src/avr/main.c,
5056         * src/ds390/main.c,
5057         * src/hc08/main.c,
5058         * src/izt/i186.c,
5059         * src/izt/tlcs900h.c,
5060         * src/mcs51/main.c,
5061         * src/pic/main.c,
5062         * src/pic16/main.c: modified port structures to reflect addition of
5063         initPaths hook,
5064
5065         * src/pic16/device.c (regCompare): registers are finally sorted by name,
5066         * (pic16_dump_section): for registers in same address reserve memory once,
5067         * src/pic16/device.h (struct PIC16_device): changed variable gen_banksel
5068         to no_banksel,
5069         * src/pic16/genarith.c (pic16_genPlus): added code to handle cases where
5070         result is greater in size than right or left,
5071         * (pic16_genUMult8X8_8): there are some cases where the result can
5072         be 16 bits size, so handle these,
5073         * src/pic16/gen.c: changed some pic16_emitpcomment to DEBUGpic16_emitcode,
5074         * (pic16_outBitC): modified to emit pcodes,
5075         * (pic16_storeForReturn): using is_LitOp to see if operand is literal
5076         or not,
5077         * (genDivOneByte): implemented algorithm to divide 8-bits,
5078         * (genCmp): uncommented goto, but issues still exist,
5079         * (genAnd): fixed a bug with variables >8bits,
5080         * (genPackBits): optimization added that uses BCF/BSF to change a
5081         single bit,
5082         * (genAssign): fixed bug when assigning floating point literals,
5083         * src/pic16/glue.c (pic16glue): added assembler directive 'code' before
5084         __sdcc_gsinit_startup label,
5085         * src/pic16/main.c (_pic16_init): removed search directory
5086         initialisations,
5087         * (_pic16_initPaths): NEW, used to initialise search directories,
5088         * (_hasNativeMulFor): support functions for all except char/int
5089         multiplication, and char division,
5090         * (PIC16_port struct): modified entry for native mul support,
5091         * src/pic16/pcode.c (insertBankSwitch): modified to support the renamed
5092         no_banksel option,
5093         * (buildCallTree): call to register_usage is ifdef'ed out,
5094
5095 2004-05-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5096
5097         * device/include/string.h: applied Stas Sergeev's patch to make this
5098         header file compatible with the preprocessor -Wundef option
5099         * src/SDCCmain.c (main): abort compilation if preprocessor reports
5100         failure (fixes bug #941458)
5101
5102 2004-05-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5103
5104         * src/SDCCopt.c (killDeadCode): fixed bug #907733
5105         * support/Util/SDCCerr.c: reworded E_AUTO_ASSUMED diagnostic to clarify
5106         that the variable, not the function, should be static
5107         * src/SDCCval.c (valCastLiteral): fixed bit initialization from literal
5108         to be consistent with non-literal case
5109
5110 2004-05-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5111
5112         * src/SDCCast.c (isConformingBody): fixed bug #949967
5113         * src/SDCCopt.c (cnvToFcall, cnvToFloatCast, cnvFromFloatCast,
5114         convilong): fixed bug #952086
5115
5116 2004-05-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5117
5118         * src/SDCCmem.c (allocVariables): fixed bug #955321
5119
5120 2004-05-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5121
5122         * src/hc08/main.c (_hc08_genAssemblerEnd),
5123         * src/SDCCdwarf2.c (dwOpenFile, dwCloseFile, dwWriteFunction,
5124         dwWriteModule, dwWriteCLine, dwWriteALine, dwarf2FinalizeFile):
5125         completely eliminated the use of a temporary file
5126         * src/SDCCdwarf2.c (dwWriteAttr): fixed bug with location list offset
5127         when more than one file linked
5128         * src/SDCCloop.c (pointerAssigned): fixed bug #954163
5129
5130 2004-05-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5131
5132         * src/SDCCval.c (valForArray): applied Maarten Brock's patch #947682
5133         which fixes bug #543481
5134         * support/regression/tests/bug-751703.c: fixed comments left from a
5135         cut and paste error
5136         * src/SDCCdwarf2.c (dwCloseFile): don't explicitly close a temp file
5137         * src/SDCCdwarf2.c (dwTagFromType): added bitfield support
5138         * src/SDCCdwarf2.c (dwWriteSymbolInternal): handle extern within local
5139         scopes
5140         * src/SDCCdwarf2.c (dwWriteLineNumber): line number deltas are signed
5141         * src/SDCCmain.c (processFile, parseCmdLine): non-alphanumeric chars
5142         are now changed to underscores in moduleName
5143
5144 2004-05-15 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5145
5146         * as/mcs51/lkmem.c: better fix for bug #954173
5147
5148 2004-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
5149         committed by Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5150
5151         * device/include/c8051f020.h: newly added SiLabs (Cygnal) header file
5152         * device/include/c8051f000.h,
5153         * device/include/c8051f120.h,
5154         * device/include/c8051f300.h,
5155         * device/include/c8051f310.h,
5156         * device/include/c8051f320.h: updated (added _XPAGE, CAPN, CAPP,
5157         PWM16) and detab'ed
5158
5159 2004-05-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5160
5161         * doc/sdccman.lyx: mentioned sourceforge's delay between web frontend
5162         and mailing lists, doc'ed --no-peep-comments, removed reference
5163         to knoppix (newest version has no LyX/LaTeX), other minor changes
5164         * src/SDCCglue.c (glue): save 2 bytes stack space with
5165         option --main-return. The ljmp could probably be avoided too
5166
5167 2004-05-14 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5168
5169         * as/mcs51/lkmem.c, as/mcs51/lkaomf51: fixed bug 954173
5170
5171 2004-05-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5172
5173         * src/SDCCsymt.h: added IS_AUTO(symbol) test macro
5174         * src/SDCCopt.c (isLocalWithoutDef),
5175         * src/SDCCicode.c (operandFromSymbol): use the IS_AUTO test macro
5176         which adds a !IS_EXTERN codition. Fixes bugs #877426 and #751703.
5177         (credit to Maarten Brock for patch #949363, on which this is based)
5178         * support/regression/tests/bug-751703.c: some test cases of extern used
5179         within inner scopes.
5180
5181 2004-05-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5182
5183         * src/SDCCdwarf2.c (dwMatchTypes): structs must have matching
5184         SPEC_STRUCT
5185         * src/SDCCdwarf2.c (dwTagFromType): fix to handle recursive
5186         struct definitions
5187         * src/SDCCdwarf2.c (dwWriteModule, dwNewDebugSymbol, dwWriteEndFunction,
5188         dwWriteLabel): fix to create valid debugger symbols even when
5189         the module name has non-alphanumeric symbols in it
5190         * src/SDCCdwarf2.c (dwWriteSymbolInternal): better detection for
5191         when a variable's allocation has been optimized away
5192
5193
5194 2004-05-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5195
5196         * src/hc08/gen.c (hc08_emitDebuggerSymbol),
5197         * src/hc08/main.c,
5198         * src/mcs51/gen.c (mcs51_emitDebuggerSymbol),
5199         * src/mcs51/main.c,
5200         * src/ds390/gen.c (ds390_emitDebuggerSymbol),
5201         * src/ds390/main.c,
5202         * src/z80/gen.c (z80_emitDebuggerSymbol),
5203         * src/z80/main.c,
5204         * src/pic/gen.c (pic14_emitDebuggerSymbol),
5205         * src/pic/main.c,
5206         * src/pic16/gen.c (pic14_emitDebuggerSymbol),
5207         * src/pic16/main.c,
5208         * src/avr/gen.c (avr_emitDebuggerSymbol),
5209         * src/avr/main.c,
5210         * src/xa51/gen.c (xa51_emitDebuggerSymbol),
5211         * src/xa51/main.c,
5212         * src/SDCCdebug.c (emitDebuggerSymbol),
5213         * src/SDCCdebug.h,
5214         * src/port.h: added a debugger struct to the port struct. Added a
5215         callback for defining debugger symbols
5216
5217         * src/SDCCast.c (createLabel),
5218         * src/SDCC.y (labeled_statement): mark all compiler generated labels
5219         with isitmp = 1
5220         * src/SDCCicode.h,
5221         * src/SDCCicode.c (geniCodeFunctionBody): added a link from the FUNCTION
5222         iCode back to the ast for the function
5223
5224         * src/hc08/ralloc.c (hc08_assignRegisters),
5225         * src/hc08/ralloc.h: define a regs struct for the stack pointer. Removed
5226         unneeded fields from the regs struct.
5227         * src/hc08/gen.c (transferRegReg, genFunction, genEndFunction): use the
5228         pushReg() & pullReg() functions instead of emitcode()
5229
5230         * src/hc08/gen.c (genLabel, genhc08Code),
5231         * src/SDCCdebug.h: Added additional debugger hooks needed for DWARF
5232
5233         * src/cdbFile.c (cdbWriteLabel, cdbWriteScope): Added stubs for unneeded
5234         debugger hooks
5235
5236         * src/hc08/gen.c (genEndFunction, genhc08Code),
5237         * src/hc08/gen.h,
5238         * src/mcs51/gen.c (genEndFunction, gen51Code),
5239         * src/mcs51/gen.h,
5240         * src/ds390/gen.c (genEndFunction, gen390Code),
5241         * src/ds390/gen.h,
5242         * src/z80/gen.c (genEndFunction, genZ80Code),
5243         * src/z80/gen.h,
5244         * src/z80/z80.h,
5245         * src/pic/gen.c (genEndFunction, genpic14Code),
5246         * src/pic/gen.h,
5247         * src/pic16/gen.c (genEndFunction, genpic16Code),
5248         * src/pic16/gen.h,
5249         * src/avr/gen.c (genEndFunction, genAVRCode),
5250         * src/avr/gen.h,
5251         * src/xa51/gen.c (genEndFunction, genXA51Code),
5252         * src/xa51/gen.h,
5253         * src/cdbFile.c (cdbWriteFunction, cdbWriteEndFunction): moved cdb
5254         specific code to cdbFile.c and out of the backend code generators
5255
5256         * as/hc08/lkmain.c (main): removed OMF51 support from link-hc08
5257         * as/hc08/lkarea.c (lnkarea): areas with NOLOAD attribute default
5258         starting address is now 0
5259
5260         * as/hc08/asm.h,
5261         * as/hc08/m08pst.c,
5262         * as/hc08/asmain.c (asmbl): implemented the .sleb128 and .uleb128
5263         assembler directive for DWARF support
5264         * as/hc08/lkelf.c (elf): only increment address when rtflg[] set
5265
5266         * src/src.dsp,
5267         * src/Makefile.in,
5268         * src/SDCCdwarf2.c: preliminary DWARF (ver 2) debugger data generator
5269
5270 2004-05-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5271
5272         * src/hc08/gen.c (genJumpTab, emitcode, genhc08code): fixed stack error
5273         and inappropriate peephole optimization in jump tables
5274
5275 2004-04-30 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5276
5277         * as/hc08/m08pst.c,
5278         * src/SDCCglue.c: sdccopt works for the hc08 port now
5279
5280 2004-04-27 Bernhard Held <bernhard AT bernhardheld.de>
5281
5282         * src/SDCCicode.c (geniCodePreInc, geniCodePreDec): fixed bug #942130
5283
5284 2004-04-27 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5285
5286         * as/hc08/lkelf.c: sdccconf.h is not available in WIN32
5287
5288 2004-04-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5289
5290         * src/SDCCpeeph.c (replaceRule): support empty replacement peephole
5291         rules
5292         * src/SDCCmain.c,
5293         * src/SDCCglobl.h,
5294         * src/SDCCpeeph.c (getPeepLine): new option --no-peep-comments omits
5295         comments from the peephole optimizer replacement rules
5296         * src/SDCCmem.c (printAllocInfoSeg): give actual location of spilled
5297         symbols
5298         * src/SDCCcse.c (updateSpillLocation),
5299         * src/SDCCopt.c (killDeadCode, findReqv): better tracking of register
5300         equivalents
5301         * src/hc08/ralloc.c (regTypeNum): pseudo symbols must be in DATA only
5302         * src/hc08/main.c (_hc08_finaliseOptions): made pointers to stack
5303         objects far pointers
5304
5305 2004-04-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5306
5307         * src/SDCCsymt.h: a missing part of my last change
5308         * src/pic/ralloc.c (regTypeNum),
5309         * src/pic16/ralloc.c (regTypeNum): fixed statement/declaration order
5310
5311 2004-04-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5312
5313         * src/SDCCicode.h,
5314         * src/SDCCicode.c (aggrToPtrDclType),
5315         * src/SDCCptropt.h,
5316         * src/SDCCptropt.c (ptrBaseRematSym, ptrPseudoSymSafe,
5317         ptrPseudoSymConvert),
5318         * src/pic/ralloc.c (regTypeNum),
5319         * src/pic16/ralloc.c (regTypeNum),
5320         * src/hc08/ralloc.c (regTypeNum),
5321         * src/ds390/ralloc.c (regTypeNum),
5322         * src/mcs51/ralloc.c (regTypeNum): check for dependancy hazards before
5323         creating pseudo symbols (fixed bugs #777768, #930484, and #933966)
5324
5325 2004-04-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5326
5327         * link/z80/lkmain.c (afile),
5328         * as/hc08/lkmain.c (afile),
5329         * as/mcs51/lkmain.c (afile): fix suggested by Maarten Brock to
5330         prevent a pointer problem when a filename has no directory and
5331         no extension specified.
5332
5333 2004-04-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5334
5335         * link/z80/lkmain.c (afile): allow periods in directory names
5336         * link/z80/lkmain.c (afile),
5337         * as/mcs51/lkmain.c (afile),
5338         * as/hc08/lkmain.c (afile): allow linker script file to have an
5339         extension other than ".lnk"
5340         * link/z80/lklex.c (getfid),
5341         * link/z80/lkmain.c (parse),
5342         * as/mcs51/lklex.c (getfid),
5343         * as/mcs51/lkmain.c (parse),
5344         * as/hc08/lklex.c (getfid),
5345         * as/hc08/lkmain.c (parse): Support comments in the linker script
5346         file on lines by themselves and after filenames
5347
5348 2004-04-20 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5349
5350         * as/link_hc08.dsp: Added as/hc08/lkelf.c to project.
5351
5352 2004-04-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5353
5354         * src/z80/peeph-z80.def: removed some peephole rules that don't
5355         work with multibyte arithmetic (fixed bug #937126)
5356         * src/mcs51/peeph.def: fixed peephole rules 150-158 to apply only
5357         to registers and not global variables
5358         * src/SDCCicode.c (geniCodeAssign, ast2iCode, geniCodePostInc,
5359         geniCodePreInc, geniCodePostDec, geniCodePreDec,
5360         geniCodeLogicAndOr, geniCodeConditional): enforce strict lvalue
5361         checking for assignments not internally generated (fixed bug #931895)
5362         * src/SDCC.y (postfix_expr): ignore typedefs when looking for a
5363         structure member (fixed bug #930072)
5364
5365 2004-04-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5366
5367         * src/SDCCmain.c (linkEdit),
5368         * src/hc08/main.c (_hc08_parseOptions),
5369         * as/hc08/Makefile.in,
5370         * as/hc08/aslink.h,
5371         * as/hc08/asm.h,
5372         * as/hc08/m08pst.c,
5373         * as/hc08/lkrloc.c (relr, rele),
5374         * as/hc08/lkarea.c (lnkarea)
5375         * as/hc08/lkmain.c (afile, parse),
5376         * as/hc08/lkelf.c: support for ELF output
5377         * as/hc08/lks19.c (s19),
5378         * as/hc08/lkihx.c (ihx): ignore areas with the NOLOAD attribute
5379
5380 2004-04-17 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5381
5382         * as/mcs51/lkihx.c: Fixed bug #899105.
5383
5384 2004-04-16 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5385
5386         * doc/sdccman.lyx: Added instructons on how to convert MSVC .dsw and
5387         .dsp files from Unix to DOS.
5388
5389 2004-04-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5390
5391         * doc/sdccman.lyx: removed the ANSI-C noncompliance note regarding
5392         function pointers; we have been compliant for several months now.
5393         * src/mcs51/ralloc.c (serialRegAssign): enabled part of my 2004-04-13
5394         change that was accidently commented out
5395         * src/mcs51/gen.c (freeAsmop, getFreePtr, freeForBranchAsmop, genIfxJump,
5396         genCmpEq, jmpTrueOrFalse, genCmp, genAnd, genOr, genXor, genIfx): fixed
5397         bug #922319
5398
5399 2004-04-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5400
5401         * src/hc08/gen.c: output of all of the internal debugging information
5402         is now controlled by the D() macro; it is disabled by default
5403
5404 2004-04-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5405
5406         * src/mcs51/ralloc.c (serialRegAssign, fillGaps, allocThisReg): try
5407         harder to keep the same registers during a CAST iCode
5408         * src/SDCCopt.c (optimizeCastCast, eBBlockFromiCode): casts of char to
5409         long via int can be done in a single cast, if the signedness is
5410         correct.
5411         * support/regression/tests/bug-927659.c: fixed to avoid conflict with
5412         putchar() in tinibios.c in ds390's library
5413
5414 2004-04-12 Bernhard Held <bernhard AT bernhardheld.de>
5415
5416         * src/SDCCast.c (decorateType): fixed bug #898889,
5417         cast result of a literal complement too
5418         * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #930931,
5419         fixed check for bitfields
5420
5421 2004-04-11 Bernhard Held <bernhard AT bernhardheld.de>
5422
5423         * src/SDCCicode.c (geniCodeLogic): made it static,
5424         (geniCodeLogicAndOr): added in order to fix bug #905492,
5425         (ast2iCode): fixed bug #905492
5426         * support/regression/tests/bug-905492.c: added
5427         * src/SDCCast.c (decorateType): don't decorate/process parms twice,
5428         (processParms): fixed bug #927659: don't copy parms, this will clear
5429         decorated flag
5430         * support/regression/tests/bug-927659.c: added
5431
5432 2004-03-29 Bernhard Held <bernhard AT bernhardheld.de>
5433
5434         * src/SDCCast.c (addCast): don't cast float to char
5435         * device/lib/libsdcc.lib: added _memmove
5436
5437 2004-03-28 Bernhard Held <bernhard AT bernhardheld.de>
5438
5439         * device/lib/large/Makefile: fixed parallel execution by
5440         replacing `make` by `$(MAKE)`
5441
5442 2004-03-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5443
5444         * src/hc08/gen.c (genPointerGetSetOfs): correctly handle 1 byte array
5445         offsets (fixes bug #923936)
5446
5447 2004-03-26 Bernhard Held <bernhard AT bernhardheld.de>
5448
5449         * device/lib/small/Makefile: fixed parallel execution by
5450         replacing `make` by `$(MAKE)`
5451
5452 2004-03-23 Bernhard Held <bernhard AT bernhardheld.de>
5453
5454         * device/lib/vprintf.c (vsprintf): minor optimization, see bug #801101
5455
5456 2004-03-23  Scott Dattalo  <scott AT dattalo.com>
5457
5458         * src/pic/gen.c (genCpl): multi-byte complements were not working.
5459         * src/regression/Makefile: Regression test was not running.
5460
5461 2004-03-23 Bernhard Held <bernhard AT bernhardheld.de>
5462
5463         * src/SDCCast.c (resultTypePropagate, decorateType): avoid promotion to int for
5464         complement if possible
5465         * src/SDCCval.c (valComplement),
5466         * src/SDCCicode.c (operandOperation): fixed complement of literal
5467         * support/regression/tests/onebyte.c (testComplement): added
5468
5469 2004-03-22 Bernhard Held <bernhard AT bernhardheld.de>
5470
5471         * src/SDCCast.c (processParms): fixed bug #920866; decorateType() can
5472         return an optimized tree; actually replace actParm with the new tree
5473         * src/SDCCast.h: added some parantheses to remove side effects
5474         * support/regression/tests/bug-920866.c
5475
5476 2004-03-21  Scott Dattalo  <scott AT dattalo.com>
5477         * src/pic/gen.c, src/pic/gen.h, src/pic/genarith.c, src/pic/pcode.c:
5478         Bit operands were not being handled properly in the pic14 port.
5479         (now src/regression/add.c passes again).
5480
5481 2004-03-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5482
5483         * src/SDCC.y (labeled_statement): case and default no longer require
5484         a following statement (RFE #893037)
5485
5486 2004-03-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5487
5488         * src/mcs51/gen.c (pushSide, genSignedRightShift, genDjnz, geniPush):
5489         use MOVA macro to avoid "mov a,acc" when peephole optimizer is
5490         disabled (fixes bug #916294)
5491         * sim/ucsim/s51.src/mov.cc (inst_mov_a_addr): Throw an error on
5492         "mov a,acc"; patch provided by Lenny Story
5493         * device/include/mc68hc908gp32.h: header contibuted by Juan Gonzalez
5494
5495 2004-03-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5496
5497         * src/mcs51/gen.c (genFunction): optimize RECEIVE in reentrant
5498         functions
5499         * src/ds390/gen.c (genFunction, genEndFunction),
5500         * src/ds390/ralloc.c (ds390_assignRegisters),
5501         * src/mcs51/gen.c (genFunction, genEndFunction, mcs51_assignRegisters):
5502         * src/mcs51/ralloc.c (mcs51_assignRegisters): Skip optimizing registers
5503         pushed if there are parameters passed on the stack. Also, a cleaner
5504         way to decide if r0/r1 should be pushed/popped. (Together they fix
5505         bug #918693)
5506
5507 2004-03-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5508
5509         * doc/sdccman.lyx,
5510         * device/lib/mcs51/crtpagesfr.asm,
5511         * device/lib/mcs51/crtxinit.asm,
5512         * device/lib/mcs51/crtxstack.asm: Changed name of _PAGESFR to _XPAGE
5513         to avoid confusion with Si Lab's SFRPAGE register.
5514
5515 2004-03-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5516
5517         * src/SDCCglue.c (emitMaps): allow public sfr variables
5518         * src/SDCCglue.c (initialComments): include compiler build date
5519         with compiler version and put the timestamp of the generated
5520         assembly file on a serperate line to be less confusing.
5521         * src/port.h: added genInitStartup hook
5522         * src/avr/main.c,
5523         * src/ds390/main.c,
5524         * src/hc08/main.c,
5525         * src/pic/main.c,
5526         * src/pic16/main.c,
5527         * src/xa51/main.c,
5528         * src/z80/main.c: genInitStartup initialize as NULL (default to
5529         historical behaviour)
5530         * src/SDCCglue.c (glue): _sdcc_gsinit_startup is now port specific.
5531         * src/mcs51/main.c: (_mcs51_genInitStartup, _mcs51_genExtraAreas,
5532         _mcs51_genXINIT, _mcs51_genRAMCLEAR): link initialization code from the
5533         library instead of hard coding it into the compiler.
5534         * support/regression/ports/mcs51-stack-auto/spec.mk,
5535         * src/SDCCmain.c (linkEdit): added mcs51.lib to the link libraries
5536         * device/lib/mcs51/Makefile,
5537         * device/lib/small/Makefile,
5538         * device/lib/large/Makefile,
5539         * device/lib/mcs51/crtpagesfr.asm,
5540         * device/lib/mcs51/crtstart.asm,
5541         * device/lib/mcs51/crtxclear.asm,
5542         * device/lib/mcs51/crtxinit.asm,
5543         * device/lib/mcs51/crtclear.asm,
5544         * device/lib/mcs51/crtxstack.asm: move most of the mcs51 C runtime
5545         startup/initialization out of src/SDCCglue.c and src/mcs51/main.c
5546         and into user configurable files.
5547         * device/lib/clean.mk: clean mcs51 directory too
5548         * support/regression/tests/longlit.c: added static to T1 declaration
5549         * doc/sdccman.lyx: documented _PAGESFR sfr for customizing pdata
5550         accesses in the initialization code
5551
5552 2004-03-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5553
5554         * device/include/mc68hc908qy.h: corrected declarations of FLBPR and
5555         OSCTRIMVAL as noted in bug #916008
5556
5557 2004-03-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5558
5559         * src/SDCCloop.c (basicInduction): fixed bug with loop induction
5560         in loops with multiple exits (reported as incorrect registers
5561         used by Martin Helmling in Sdcc-user list)
5562
5563 2004-03-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5564
5565         * src/ds390/main.c (_ds390_genAssemblerPreamble): cosmetic change,
5566         made ds390 register extensions look less like error messages
5567
5568 2004-03-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5569
5570         * src/SDCCglue.c (printIvalPtr): fixed bug with pointer initializer
5571         reported by Adam Wozniak in Sdcc-user list
5572
5573 2004-03-10 Bernhard Held <bernhard AT bernhardheld.de>
5574
5575         * src/SDCCast.c (decorateType): fixed with bug and promotion in
5576         arithmetic optimizations, added debug output
5577
5578 2004-03-09 Bernhard Held <bernhard AT bernhardheld.de>
5579
5580         * device/lib/time.c (mktime): fixed bug reported by Bert Thomas
5581         * sdcc.spec: updated and split sdcc into 3 rpms
5582         * src/SDCCast.c (decorateType): &|^ don't need addCast(); addCast() is
5583         needed for literals of LEFT_OP and '+'
5584         * src/SDCCicode.c (geniCodeLogic): I must have been braindead when I
5585         introduced RESULT_TYPE_NOPROM
5586         (geniCodeMultiply): fixed logic for decision if mul is optimized to
5587         left shift
5588         * src/SDCCsymt.c (computeType): op is int; added RESULT_TYPE_OTHER;
5589         limited promotion to int only for '*'
5590         * src/SDCCsymt.h (computeType): op is int, removed RESULT_TYPE_NOPROM
5591
5592 2004-03-09 Hans Dorn <hjdorn AT users.sourceforge.net>
5593
5594         * src/pic16/gen.c (genSkip),
5595         (genc16bit2lit), (gencjneshort): commented out
5596         (is_LitOp): new helper function, checks operand type
5597         (genCmpEq): rewritten
5598
5599 2004-03-08 Bernhard Held <bernhard AT bernhardheld.de>
5600
5601         * support/regression/tests/bug-908454.c: added
5602
5603 2004-03-07 Bernhard Held <bernhard AT bernhardheld.de>
5604
5605         * src/SDCCast.c (addCast): fixed bug #908454 by promoting bits to char
5606         * src/SDCCicode.c (usualBinaryConversions): op needs int type
5607         (geniCodeCast): cosmetic, don't preserve bit storage class
5608         (geniCodeLeftShift): added promotion
5609         (geniCodeLogic): fixed regression
5610         * src/SDCCsymt.c (computeTypeOr): accept bits too
5611         (compareType): 2nd part of fix for bug #908454, needed for bitfields
5612
5613 2004-03-07  Borut Razem <borut.razem AT siol.net>
5614
5615         * support/Util/findme.c: alloca() replaced with malloc()/free() pair
5616
5617 2004-03-06 Vangelis Rokas <vrokas AT otenet.gr>
5618
5619         * src/pic16/ralloc.c (pic16_genPackRegisters): reverted to old
5620         version of pic16_genPackRegisters which does not check if ic is a
5621         CAST operator,
5622         * src/pic16/gen.c (ifxForOp): disabled new and untested code in
5623         function cause string1.c regression test fails
5624
5625 2004-03-06 Bernhard Held <bernhard AT bernhardheld.de>
5626
5627         * sim/ucsim/configure.in,
5628         * sim/ucsim/configure,
5629         * sim/ucsim/doc/Makefile.in: use docdir
5630         * src/SDCC.y: fixed sbit atrributes
5631         * src/SDCCast.c (getResultTypeFromType): added support for bitfields
5632         * src/SDCCast.c (decorateType): |^& need special promotion handling
5633         * src/SDCCast.h,
5634         * src/SDCCsymt.h: moved definition of RESULT_TYPE
5635         * src/SDCCsymt.h (computeType),
5636         * src/SDCCicode.c: computeType() needs op
5637         * src/SDCCsymt.c (checkTypeSanity),
5638         * doc/sddman.lyx: "plain" bitfields are unsigned
5639         * src/SDCCsymt.c (computeTypeOr): added
5640         * src/SDCCsymt.c (computeType): added support for bitfields, fixed
5641         |^& ops
5642         * src/SDCCval.c (val*): computeType() needs op
5643         * src/SDCCval.c (valCastLiteral): fixed casting of bitfields
5644         * support/regression/tests/onebyte.c: added tests for |^&
5645
5646 2004-03-06 Hans Dorn <hjdorn AT users.sourceforge.net>
5647
5648         * src/pic16/gen.c: (genpic16Code) use copy of printILine's output
5649         for writing icode into asm output.
5650
5651 2004-03-05 Vangelis Rokas <vrokas AT otenet.gr>
5652
5653         * src/pic16/device.c: added some debug lines enabled
5654         with macro DEBUG_CHECK,
5655         * src/pic16/genarith.c: more debug in genPlus,
5656         * (pic16_genUMult8XLit_16, pic16_genUMult8X8_16): removed,
5657         * (pic16_genUMult16X16_16, pic16_genUMult16XLit_16): NEW,
5658         * src/pic16/gen.c: added prototypes for pic16_genMult16X16_16,
5659         * (aopForSym): onStack symbols are re-placed in data memspace,
5660         and onStack flag is cleared,
5661         * (pic16_popGetTempReg, pic16_popReleaseTempReg): modified to
5662         copy temporary pcodeop,
5663         * (genPcall): added warning for not updating PCLATU,
5664         * (genFunction): removed test with IFFUNC_CALLEESAVES, its
5665         always true for pic16 port,
5666         * (genMultOneWord): NEW, supports integer multiplication,
5667         * (genMult): modified to call genMultOneWord,
5668         * (ifxForOp): added warning when return NULL,
5669         * src/pic16/glue.c (pic16emitRegularMap): symbol implicit
5670         flag is set before call to operandFromSymbol for implicit
5671         added structures,
5672         * src/pic16/main.c (_pic16_finaliseOptions): options.float_rent,
5673         options.intlong_rent are set by default,
5674         * (_hasNativeMulFor): modified to allow port generation of integer
5675         multiplication,
5676         * src/pic16/ralloc.c (pic16_allocDirReg): commented out line which
5677         set regtype to REG_SFR for all registers, restricting seting the
5678         accessBank flag for registers 0<= r < 0x80 and 0xf80<=r<=0xfff,
5679
5680 2004-03-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5681
5682         * src/mcs51/peephole.def: added 251.b and 253.x. 253.x are applied
5683         more than 500 times in the regression tests
5684
5685 2004-03-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5686
5687         * support/Util/SDCCerr.h,
5688         * support/Util/SDCCerr.c,
5689         * src/SDCC.y (struct_or_union_specifier, enum_specifier,
5690         enumerator_list),
5691         * src/SDCCsymt.c (addSymChain): show location of oriignal definition
5692         for symbol conflicts.
5693         * support/valdiags/tests/enum.c,
5694         * support/valdiags/tests/tentdecl.c,
5695         * support/valdiags/tests/struct.c: expect possible error messages
5696         referring to original symbol definitions.
5697         * src/SDCC.y (struct_or_union_specifier, struct_declarator),
5698         * src/SDCCsymt.h,
5699         * src/SDCCsymt.c (promoteAnonStructs): support anonymous struct/union
5700
5701 2004-03-03 Hans Dorn <hjdorn AT users.sourceforge.net>
5702
5703         * src/pic16/gen.c (gencjne): fixed for right=REG / left=LIT
5704
5705 2004-02-03 Vangelis Rokas <vrokas AT otenet.gr>
5706
5707         * src/pic16/ralloc.c (newReg): fixed bug #908929
5708
5709 2004-03-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5710
5711         * src/ds390/gen.c: added missing #include "main.h"
5712
5713 2004-03-02 Vangelis Rokas <vrokas AT otenet.gr>
5714
5715         * src/pic16/device.c (checkAddSym): NEW, adds a symbol to set while
5716         checking if symbol is already in set,
5717         * src/pic16/device.h: prototype for checkAddSym,
5718         * src/pic16/gen.c: (_G): added entry interruptvector,
5719         * (assignResultValue): removed some commented out lines,
5720         * (genFunction): check for ISR via sym->type, absolute section for
5721         interrupt code is created via a new pBlock, the goto instruction is
5722         placed now correctly at the interrupt vector position, changed all
5723         references from ivec to _G.interruptvector,
5724         * WREG,STATUS,BSR are not saved in stack upon an entry to interrupt
5725         is the interrupt is a high priority one, same for return from ISR,
5726         * src/pic16/glue.c: changed all calls of addSetHead for publics and
5727         externs to calls of checkAddSym,
5728         * src/pic16/pcode.c (pic16_pBlockConvert2*): emit warning when
5729         pic16_pcode_verbose flag is set,
5730         * src/pic16/pcode.h: extern to pic16_pcode_verbose,
5731         * src/pic16/pcoderegs.c: message about how many registers are saved
5732         will only be emitted if pic16_pcode_verbose flag is set,
5733
5734 2004-03-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5735
5736         * src/ds390/ralloc.h,
5737         * src/ds390/ralloc.c (ds390_regWithIdx),
5738         * src/ds390/gen.c (emitcode),
5739         * src/ds390/main.h,
5740         * src/ds390/main.c (instructionSize, ds390newAsmLineNode, updateOpRW,
5741         ds390opcodeCompare, asmLineNodeFromLineNode, getInstructionSize,
5742         ds390operandCompare, getRegsRead, getRegsWritten,
5743         initializeAsmLineNode): customized instruction size calculation for
5744         ds390, started basis for some register optimizations
5745         * src/ds390/gen.c (gen390Code, emitcode): associate iCodes with
5746         corresponding assembly output
5747         * src/ds390/gen.c (genFunction, genEndFunction): added case to handle
5748         missing push/pop of r0/r1. Optimized push/pops
5749
5750 2004-03-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5751
5752         * src/mcs51/main.c (instructionSize): fixed ACALL size
5753         * src/mcs51/main.c (updateOpRW): fixed bug with @dptr, @a+dptr operands
5754
5755 2004-03-01 Vangelis Rokas <vrokas AT otenet.gr>
5756
5757         * src/pic16/device.c (pic16_dump_section): fixed a bug that allowed
5758         the sorting of rlist with NULL elements
5759         * (print_idataType, print_idata): NEW to create idata sections
5760         * src/pic16/device.h: idataSymSet new variable
5761         * src/pic16/gen.c (genFunction): fixed some bugs in string
5762         comparing, improved the absolute section creation for ISRs,
5763         added FSR0L/FSR0H in registers that are saved in an ISR,
5764         * (genInline): fixed the processing of inline snippets,
5765         now they undergo no process by the peephole optimizer
5766         * src/pic16/glue.c (pic16emitRegularMap): symbols with initialiser
5767         are placed in idataSymSet,
5768         * (pic16emitStaticSeg): extern symbols are added in externs,
5769         * src/pic16/ralloc.c (pic16_allocDirReg): work around to reduce bank
5770         switching when aboslute variables are placed in access bank memory
5771         * (pic16_writeUsedRegs): added call to pic16_dump_idata,
5772         * (packRegsForSupport,packRegsForAccUse,packRegsForOneuse):
5773         commented out with #if,
5774         * (pic16_packRegisters): reintroduce the check for CAST because some
5775         symbols are not correctly handled,
5776         * src/pic16/pcode.h: changed the definition of pCodeAsmDir to hold a
5777         pCodeInstruction instead of pCode,
5778         * src/pic16/pcode.c (pic16_newpCodeAsmDir): modified for the new
5779         pCodeAsmDir definition,
5780         * (pic16_pCode2str, genericPrint): when an AsmDir pcode has a NULL
5781         directive, then the argument directive is emitted without the leading
5782         tab, hack for inline labels which must be in the first column,
5783         * (compareLabel,pic16_findNextInstruction),
5784         * (pic16_findPrevInstruction): added case for PO_ASMDIR,
5785         * (insertBankSwitch): modified for the new pCodeAsmDir,
5786
5787 2004-03-01 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
5788         patch applied by Vangelis Rokas <vrokas AT otenet.gr>
5789
5790         * src/pic16/gen.c (pic16_popGet): case PO_DIR, adds the offset to
5791         instance,
5792         * (pushSide): commented out with #if,
5793         * (assignResultValue): fixed some typos in saving
5794         registers,
5795         * (genPcall): FIXED and sync'ed with genCall,
5796         * (genDataPointerGet,genDataPointerSet): using offset not leoffset
5797         * (genNearPointerGet): fixed to handle some more cases,
5798         implementation scheme via table reads,
5799         * (genConstPointerGet): modified to access code memory correct,
5800         * (genCodePointerGet,genNearPointerSet,genGenPointerSet): modified
5801         and improved to handle some cases
5802         * glue.c (printIvalType,printIvalChar,emitStaticSeg): use "DB"
5803         instead of "RETLW" for init data
5804         * src/pic16/ralloc.c (pic16_allocDirReg): warning when a symbol is
5805         not IN_DIRSPACE, work around to reduce bank switching when aboslute
5806         variables are placed in access bank memory (<0x80 and >=0xf80),
5807         * src/pic16/pcode.c: added SFRs TBLPTR, TABLAT, added opcodes TBLRD,
5808         TBLRD_POSTINC,TBLRD_POSTDEC,TBLRD_PREINC,TBLWT,TBLWT_POSTINC,
5809         TBLWT_POSTDEC,TBLWT_PREINC
5810         * Fixed initialisation of BSR, set "alias" for SSAVE to "0"
5811         * (pic16_emitDB,pic16_flushDB): New functions to generate "DB"
5812         directives
5813         * (pic16_pCodeConstString): use "DB" instead of "RETLW"
5814         * src/pic16/pcode.h: added TBLRD*,TBLWT*, added pic16_emitDB,
5815         pic16_flushDB, made pic16_newpCodeAsmDir public, added TBLPTR, TABLAT
5816         * src/pic16/ralloc.h: added IDX_BSR,IDX_TBLPTR*,IDX_TABLAT
5817
5818 2004-02-29  Borut Razem <borut.razem AT siol.net>
5819
5820         * src/Makefile.in, src/SDCCutil.c, support/Util/findme.c,
5821         support/Util/findme.h, support/Util/system.h: enhance binary relative
5822         search for lib and include by using findProgramPath()
5823
5824 2004-02-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5825
5826         * src/SDCCpeeph.h,
5827         * src/SDCCpeeph.c (pcDistance),
5828         * src/port.h,
5829         * src/mcs51/ralloc.h,
5830         * src/mcs51/ralloc.c (mcs51_regWithIdx),
5831         * src/mcs51/main.h,
5832         * src/mcs51/main.c (instructionSize, asmLineNode, updateOpRW,
5833         mcs51opcodeCompare, asmLineNodeFromLineNode, getInstructionSize,
5834         mcs51operandCompare, getRegsRead, getRegsWritten): made instruction
5835         size calculation port specific, started basis for some register
5836         optimizations
5837         * src/mcs51/gen.c (genFunction, genEndFunction): added case to handle
5838         missing push/pop of r0/r1. Optimized push/pops
5839         * src/mcs51/ralloc.c (packregisters): fixed bug #727095
5840         * device/lib/_modsint.c (_modsint),
5841         * device/lib/_modslong.c (_modslong): fixed sign of result in non-asm
5842         and stack version so regression tests pass
5843
5844 2004-02-26 Bernhard Held <bernhard AT bernhardheld.de>
5845
5846         * src/Makefile.in (dep): include SLIBOBJS in dependency check
5847         * src/SDCCast.c (decorateType): catch another small optimization
5848         with '?' operator
5849         * src/SDCCsymt.c (computeType): added comments and cosmetic changes
5850         * src/SDCCval.c (valMult, valDiv, valMod, valPlus, valMinus, valShift):
5851         modified to finally use computeType() all over SDCC,
5852         see Feature Request #877103
5853         * src/SDCCval.h: cosmetic
5854         * src/SDCCicode.c (operandOperation): fixed EQ_OP bug, now same as in
5855         valCompare(); regression tested in muldiv.c
5856         * support/regression/tests/muldiv.c (testMod): mod sign follows
5857         dividend only
5858
5859 2004-02-23 Bernhard Held <bernhard AT bernhardheld.de>
5860
5861         * src/SDCCast.c (decorateType): fixed bug #902362
5862         * doc/INSTALL.txt: fixed install instructions for win32
5863
5864 2004-02-21 Bernhard Held <bernhard AT bernhardheld.de>
5865
5866         * device/include/Makefile.in (install): fixed by replacing spaces
5867         by tabs
5868         * doc/README.txt,
5869         * doc/INSTALL.txt: updated for release
5870         * doc/sdccman.lyx: added warning for --xstack being buggy
5871
5872 2004-02-20 Bernhard Held <bernhard AT bernhardheld.de>
5873
5874         * src/pic16/ralloc.c (packRegsForAccUse):  disabled functions with #if
5875         to eliminate build warnings.
5876         * src/pic16/gen.c (pic16_popGet): fixed for gcc 2.95.4
5877
5878 2004-02-20 Vangelis Rokas <vrokas AT otenet.gr>
5879            Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
5880
5881         * doc/sdccman.lyx: removed PIC16 from PIC16 Port Specific Options,
5882         removed -penable-stack, added comment for stack pragma, added
5883         warning for not initializing the stack/frame registers, removed
5884         comment at interrupts section
5885
5886         Stack is made permanent, there is no ability to disable stack usage.
5887         * src/pic16/device.h,
5888         * src/pic16/device.c: removed all references to USE_STACK macro,
5889         * src/pic16/device.c (pic16_dump_section): when no elements in
5890         rlist, free rlist before return,
5891         * (pic16_dump_int_registers): NEW, internal registers are a new set
5892         of general purpose registers reused by each function,
5893         * (checkAddReg): returns 1 if registers is added to set,
5894         * (pic16_groupRegistersInSection): when a registers is of type
5895         PO_GPR_TEMP add it in pic16_int_regs and not in pic16_rel_udata,
5896         * src/pic16/device.h: memRange and Assigned Memory are deleted,
5897         SRCASECMP macro is moved here from device.c
5898         * src/pic16/genarith.c (pic16_pCodeOpType): added cases for
5899         PO_PCLATU, PO_PRODL, PO_PRODH,
5900         * (pic16_pCodeOpType, genMinus,
5901         changed compares to "a" register, with AOP_ACC,
5902         * (pic16_genPlus): fixed some bugs and indented properly,
5903         * (pic16_addSign): changed size to size+offset in the MOVWF
5904         instruction,
5905         * (pic16_genUMult8XLit_8): NEW, uses processor MULLW instruction to
5906         multiply 8-bit operand by literal, result is 8-bit,
5907         * (pic16_genUMult8X8_8): NEW, uses processor MULWF instruction to
5908         multiply 2 8-bit operand, result is 8-bit,
5909         * (pic16_genMult8X8_8): modified to call genUMult8X*_8 functions and not
5910         genUMult8X*_16,
5911         * src/pic16/gen.c: changed accUse to contain WREG only,
5912         * (pic16_emitcomment): renamed to pic16_emitpcomment,
5913         * (aopForSym): allocated dir register when IN_DIRSPACE(space) is,
5914         true, do not use immediate addressing any more unless sym is a
5915         pointer in codespace,
5916         * (aopForRemat): do not use immediate addressing when symbol not in
5917         codespace and when symbol's address is requested,
5918         * (aopOp): for-loop in if(sym->accUse) is modified for the new
5919         accUse size (= 1),
5920         * (aopGet): added case for AOP_ACC and don't return "accumulator
5921         bug" but WREG instead,
5922         * (popGetTempReg): pushes contents of temporary register in stack,
5923         * (popReleaseTempReg): pops contents of temporary register from
5924         stack. Use popGetTempReg/popReleaseTempReg in aligned pairs,
5925         * (pic16_popGet): separated case AOP_ACC to return register WREG
5926         from processor registers, AOP_PCODE not checks if pcop is PO_DIR
5927         or PO_IMMEDIATE and initializes their instance/offset appropriately,
5928         * The whole issue with aopForSym,aopForRemat,popGet) is to minimize
5929         the use of immediate pointers to certain cases only.
5930
5931         * (pic16_pushpCodeOpReg, pic16_poppCodeOpReg): use pic16_popGet2p,
5932         * (pic16_loadFromReturn, pic16_storeForReturn: NEW,
5933         * (assignResultValue, genCall, genRet): modified to use the new
5934         function return value scheme with WREG,PRODL,PRODH,FSR0L and FSR0,
5935         genPcall is still broken,
5936         * (genFunction): added code to create 'A' type pBlocks when
5937         interrupt functions are generated, code not extensively tested yet,
5938         ISRs push WREG,STATUS,BSR,PRODL,PRODH,FSR0L,FSR0H registers on stack,
5939         * (genEndFunction): modified so ISRs pop stored registers from stack,
5940         * (genMultOneByte): cleanup,
5941         * (AccRsh): added flag andmask, to and result with appropriate mask,
5942         * (genUnpackBits,genPackBits): fixed and can handle bit fields,
5943         * (genDataPointerGet): fixed and reenabled its use,
5944         * (genNearDataPointerGet): bugs fixed,
5945         * (genDataPointerSet): bugs fixed,
5946         * src/pic16/genutils.c: added functions pic16_DumpValue,pic16_DumpAop,
5947         pic16_DumpSymbol, pic16_DumpOp,
5948         * src/pic16/genutils.h: function prototypes for the above functions,
5949         * src/pic16/glue.c: new flags initsfpnt, to initialize stack/frame
5950         pointers,
5951         * (pic16emitRegularMap): many many many improvements, but needs a
5952         major cleanup,
5953         * src/pic16/main.c: enable_stack in pic16_options is removed,
5954         * (_pic16_parseOptions): removed command line options -penable-stack,
5955         * (_process_pragma): emit stack symbol only when stack pragma is
5956         processed,
5957         * src/pic16/pcode.c: pic16_pc_fsr0 is removed, all operations are
5958         redirected to FSR0L/FSR0H pair,
5959         * (pic16_get_op, pic16_get_op2): modifications and improvements,
5960         * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): added
5961         cases PO_PRODL,PO_PRODH, pic16_getRegFromInstruction2 returns sane
5962         for immediates,
5963         * (insertBankSwitch): modified to handle cases like: (alfa + 1)
5964         * (dumpPicOptype): NEW,
5965         * src/pic16/pcode.h: added PO_PCLATU,PO_PRODL,PO_PRODH in enum,
5966         * src/pic16/pcoderegs.c (pCodeRegMapLiveRangesInFlow): fixed bug
5967         with movff instruction,
5968         * src/pic16/ralloc.c: renamed typeRegWithIdx to pic16_typeRegWithIdx,
5969         added pic16_int_regs, some packRegsFor* functions are commented out,
5970         because produce errors,
5971         * src/pic16/NOTES: minor modifications
5972
5973 2004-02-18  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5974
5975         * as/mcs51/aslink.h, as/mcs51/lkarea.c, as/mcs51/lkdata.c, as/mcs51/lkmain.c,
5976         as/mcs51/lkmem.c, src/SDCCglob.h, src/SDCCmain.c: added options --stack-size and
5977         --pack-iram.
5978         * doc/sdccman.lyx: described options --stack-size and --pack-iram.
5979         * as/mcs51/lkaomf51.c: fixed bug #895763
5980
5981 2004-02-17 Bernhard Held <bernhard AT bernhardheld.de>
5982
5983         * device/include/c8051f320.h: added. Contributed by Maarten Brock.
5984
5985 2004-02-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5986
5987         * doc/sdccman.lyx: added details about the HC08 storage classes and
5988         interrupts, fixed the register usage info for z80 & gbz80
5989
5990 2004-02-17 Vangelis Rokas <vrokas AT otenet.gr>
5991
5992         * doc/sdccman.lyx: added more pic16 port documentation
5993         * device/include/pic16/: added header pic18fregs.h
5994
5995 2004-02-16 Bernhard Held <bernhard AT bernhardheld.de>
5996
5997         * doc/sdccman.lyx: added Vangelis' contribution
5998
5999 2004-02-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6000
6001         * src/SDCClrange.c (rlivePoint): live range of SEND operand should
6002         extend to the next CALL or PCALL, not just to the next CALL.
6003
6004 2004-02-16 Vangelis Rokas <vrokas AT otenet.gr>
6005
6006         * src/pic16/gen.c (genInline): fixed bug #896482 with inline assembly
6007
6008 2004-02-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6009
6010         * src/mcs51/ralloc.c (packRegsForAssign, reassignAliasedSym): fixed
6011         bug #895752 and a better fix for bug #716790
6012
6013 2004-02-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6014
6015         * src/SDCCsymt.c (processFuncArgs): fixed bug #896796
6016
6017 2004-02-14 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6018
6019         * doc/sdccman.lyx: minor changes, minor changed
6020
6021 2004-02-13 Bernhard Held <bernhard AT bernhardheld.de>
6022
6023         * src/SDCCicode.c (usualBinaryConversions): removed pic16 from ports
6024         which can't handle SDCC_NEWONEBYTEOPS,
6025         (geniCodeMultiply): removed conversion from mult to shift for pic14
6026         and pic16
6027
6028 2004-02-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6029
6030         * src/hc08/gen.h,
6031         * src/hc08/gen.c (storeRegToAop, aopOp, aopAdrStr, accopWithAop,
6032         rmwWithAop): Ported my 2003-10-02 fix for bug #663539 to the hc08,
6033         thus fixing bug #895406
6034
6035 2004-02-11 Bernhard Held <bernhard AT bernhardheld.de>
6036
6037         * device/lib/_modsint.c,
6038         * device/lib/_modslong.c: sign follows divisor only
6039         * src/hc08/gen.c (genMultOneByte): if result size is 1,
6040         signs or signedness can be ignored
6041         * src/SDCCast.c (addCast): cosmetic - added lineno to CAST
6042         * src/SDCCast.c (resultTypePropagate): added even more ops: +, - and *,
6043         added optimization for IFX,
6044         (decorateType): Mult/Div/ModOneByte ops can handle all kind of signed
6045         arguments;
6046         reenabled optimization for IFX, which was removed on 2004-01-11
6047         * src/SDCCast.h: added return type IFX
6048         * src/SDCCicode.c: Mult/Div/ModOneByte ops can handle all kind of signed
6049         arguments with 8 or 16 bit results; pic14 and pic16 ports use old
6050         promotion behaviour; env. var. SDCC_NEWONEBYTEOPS selects the new,
6051         SDCC_OLDONEBYTEOPS selects the old behaviour
6052         * src/SDCCsymt.c (computeType): type2 can be NULL (for LEFT_OP);
6053         changed again and commented promotion rule
6054         * src/SDCCval.c (valDiv): promotion no longer necessary
6055         * src/ds390/gen.c (genMultOneByte) (genDivOneByte) (genModOneByte),
6056         * src/mcs51/gen.c (genMultOneByte) (genDivOneByte) (genModOneByte):
6057         rewritten
6058         * support/regression/tests/onebyte.c: added
6059
6060 2004-02-11 Vangelis Rokas <vrokas AT otenet.gr>
6061
6062         * gen.c (genInline): reverted to old code for assemnling inline
6063         code because of bug reported James Chadd
6064
6065 2004-02-10 Vangelis Rokas <vrokas AT otenet.gr>
6066
6067         * ralloc.h: missing declarations from previous patch,
6068         seems that patch for ralloc.h was never applied, fixed
6069
6070 2004-02-10 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
6071            patch committed by Vangelis Rokas <vrokas AT otenet.gr>
6072
6073         * pcode.c,
6074         * pcode.h,
6075         * ralloc.h: added FSR0L, FSR0H and other missing PIC16 SFR's for
6076         indirect addressing. Marked FSR0 as deprecated
6077         * gen.c (pointerCode): commented out, not needed now
6078         (pic16_popGet2p): new MOVFF helper function
6079         (genGenPointerGet),
6080         (genGenPointerSet): reimplemented with MOVFF and POSTINC0
6081         (shiftRLong): removed duplicate debugging info
6082
6083 2004-02-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6084
6085         * src/ds390/gen.c (genNearPointerGet),
6086         * src/mcs51/gen.c (genNearPointerGet): allow the genDataPointerGet()
6087         optimization with bits, but not bitfields.
6088         * src/ds390/ralloc.c (packRegisters),
6089         * src/mcs51/ralloc.c (packRegisters): fixed bug #884453 & #880832
6090
6091 2004-02-09 Bernhard Held <bernhard AT bernhardheld.de>
6092
6093         * src/SDCCcse.c (algebraicOpts): copy operands before modification
6094
6095 2004-02-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6096
6097         * src/SDCCsymt.h,
6098         * src/SDCCicode.c (operandFromSymbol),
6099         * src/mcs51/ralloc.c (verifyRegsAssigned, serialRegAssign),
6100         * src/ds390/ralloc.c (verifyRegsAssigned, serialRegAssign),
6101         * src/z80/ralloc.c (verifyRegsAssigned, serialRegAssign),
6102         * src/hc08/ralloc.c (verifyRegsAssigned, serialRegAssign),
6103         * src/pic/ralloc.c (verifyRegsAssigned, serialRegAssign),
6104         * src/pic16/ralloc.c (verifyRegsAssigned, serialRegAssign): fixed
6105         bug #892038
6106         * src/SDCCast.c (createIvalStruct, createIvalArray, gatherAutoInit),
6107         * src/SDCCglue.c (emitRegularMap, printIvalStruct, printIvalArray,
6108         printIvalCharPtr, printIvalPtr, printIval, emitStaticSeg, emitOverlay)
6109         * src/SDCCsymt.c (newSymbol),
6110         * src/SDCC.y (struct_or_union_specifier, enum_specifier,
6111         enumerator_list),
6112         * src/SDCCval.h,
6113         * src/SDCCval.c (newiList): fixed bug #885705
6114
6115 2004-02-08  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6116
6117         * doc/sdccman.lyx: added section 3.1.4: sdcclib.
6118         * as/mcs51/lkmem.c: report the size of the stack in .mem file.
6119
6120 2004-02-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6121
6122         * device/include/c8051f120.h,
6123         * device/include/c8051f300.h,
6124         * device/include/c8051f310.h: added/updated header files for Silicon
6125         Laboratories (formerly Cygnal) CPUs. Contributed by Maarten Brock.
6126         * doc/sdccman.lyx: minor changes, recommended diff -Naur and diff -u
6127         in new section Submitting patches
6128
6129 2004-02-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6130
6131         * src/mcs51/gen.c (genNearPointerGet, genPagedPointerGet,
6132         genFarPointerGet, genCodePointerGet, genGenPointerGet,
6133         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
6134         genGenPointerSet),
6135         * src/ds390/gen.c (genNearPointerGet, genPagedPointerGet,
6136         genFarPointerGet, genCodePointerGet, genGenPointerGet,
6137         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
6138         genGenPointerSet),
6139         * src/pic16/gen.c (genNearPointerGet, genPagedPointerGet,
6140         genFarPointerGet, genCodePointerGet, genGenPointerGet,
6141         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
6142         genGenPointerSet),
6143         * src/pic/gen.c (genNearPointerGet, genPagedPointerGet,
6144         genFarPointerGet, genCodePointerGet, genGenPointerGet,
6145         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
6146         genGenPointerSet): fixed bug #892400
6147         * src/pic16/gen.c (genSkipz, AccRol): disabled functions with #if 0
6148         to eliminate build warnings.
6149         * src/SDCCast.c (processParms),
6150         * src/SDCC.y (function_declarator2, declarator2_function_attributes):
6151         fixed bug 751859
6152         * support/valdiag/valdiag.py: added GCC to the list of defines active
6153         when compiling with gcc
6154
6155 2004-02-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6156
6157         * support/Util/SDCCerr.h,
6158         * support/Util/SDCCerr.c,
6159         * src/SDCCast.c (decorateType, sizeofOp): complain when sizeof is used
6160         with an incomplete type (fixed bug #883734)
6161         * src/SDCCicode.c (geniCodeCast): fixed bug #890510
6162
6163 2004-02-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6164
6165         * src/pic16/gen.c (genCmpEq, shiftRLong): fixed declarations
6166
6167 2004-02-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6168
6169         * src/SDCCast.c (decorateType),
6170         * src/SDCCicode.c (geniCodeParms, geniCodeCall): fixed bugs in my ANSI
6171         function pointer implementation
6172         * support/regression/tests/funptrs.c: added tests to verify both forms
6173         of function pointers work correctly. Added tests to verify parameters
6174         are passed in the correct order.
6175
6176 2004-02-06  Vangelis Rokas <vrokas AT otenet.gr>
6177
6178         * device.c (regCompare): registers are sorted by ascending
6179         address and increasing size,
6180         * main.c (_pic16_finaliseOptions): removed the declaration
6181         of compiler macro MCU. Now a macro of the format pic18fxxxx
6182         will be defined from the command line
6183
6184 2004-02-06  Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
6185             patch committed by Vangelis Rokas <vrokas AT otenet.gr>
6186
6187         * pcode.c (pic16initMnemonics): fixed typo in assignment to PCOP_RLNCF
6188         PCOP_RLCF was overwritten!
6189         * gen.c (genSkip): commented out calls to pic16_emitcode,
6190         * (genCmpEQ): fixed "long" compares, only high word did get compared,
6191         * (genlshTwo),
6192         * (genRRC): added debugging info,
6193         * (shiftL2Left2Result): Fixed bug, if offr > offl. Result got
6194         overwritten while shifting,
6195         * (shiftR2Left2Result): Fixed bug, if offr < offl. Result got
6196         overwritten while shifting,
6197         * (AccLsh),
6198         * (AccRsh),
6199         * (shiftLLeftOrResult),
6200         * (shiftRLeftOrResult),
6201         * (shiftRLong),
6202         * (shiftLLong): Implemented with pic16_emitpcode
6203         * (genlshFour): Replaced pic16_aopPut with pic16_emitpcode,
6204         * (genLeftShift): Fixed bug, operand for shift by variable always
6205         was "and"ed with 0x0f,
6206         * (genLeftShiftLiteral),
6207         * (genrshTwo),
6208         * (genRightShiftLiteral): added debugging info,
6209         * (genrshFour): added comment,
6210         * (genRightShift): determined signedness from operand "left"
6211         instead of "result"
6212
6213 2004-02-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6214
6215         * src/SDCCicode.c (geniCodeParms),
6216         * src/SDCCast.c (decorateType, processParms): support for ANSI-style
6217         function pointers, fixed function pointer bugs #861242 and #861896
6218
6219 2004-01-31 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6220
6221         * device/include/c8051f000.h,
6222         * device/include/c8051f120.h,
6223         * device/include/c8051f300.h: added header files for Silicon
6224         Laboratories (formerly Cygnal) CPUs. Contributed by Maarten Brock.
6225
6226 2004-01-31 Bernhard Held <bernhard AT bernhardheld.de>
6227
6228         * src/SDCCast.c (processParams): added new type flow and restructured
6229         (gatherAutoInit): added new type flow
6230         (addCast): cosmetic changes
6231         (getLeftResultType): added new type flow for array indices, patch
6232         provided by Stas, see FR #877103
6233         (decorateType): SDCC_NEWTYPEFLOW removed, new type flow is now standard;
6234         array index patch by Stas
6235         * src/SDCCast.h: added prototype getResultTypeFromType()
6236         * src/SDCCval.h,
6237         * src/SDCCval.c (resolveIvalSym) (resolveIvalSym),
6238         * src/pic/glue.c (pic14emitStaticSeg),
6239         * src/pic16/glue.c (pic16emitStaticSeg),
6240         * src/SDCCglue.c (emitRegularMap) (emitStaticSeg): added new type flow
6241         for initialization of symbols
6242         * src/SDCCicode.c (geniCodeArray): removed warning W_ARRAY_BOUND
6243         * support/Util/SDCCerr.h:
6244         * support/Util/SDCCerr.c: replaced W_ARRAY_BOUND by W_IDX_OUT_OF_BOUNDS
6245         * .version: bumped version number to 2.3.8
6246         * device/include/Makefile.in (install),
6247         * doc/Makefile (install): changed to 'rm `find ...`' construct to
6248         avoid warnings
6249
6250 2004-01-30 Bernhard Held <bernhard AT bernhardheld.de>
6251
6252         * support/regression/tests/libmullong.c: fixed for 64 bit hosts
6253         Slade Rich fixed an optimization bug
6254         * src/pic/pcodepeep.c,
6255         * src/pic/pcoderegs.c
6256         * doc/Makefile (install): added test for directory
6257
6258 2004-01-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6259
6260         * src/mcs51/ralloc.c (getRegPtr, getRegGpr),
6261         * src/ds390/ralloc.c (getRegPtr, getRegGpr),
6262         * src/pic/ralloc.c (getRegPtr, getRegGpr),
6263         * src/pic16/ralloc.c (getRegPtr, getRegGpr),
6264         * src/z80/ralloc.c (getRegGpr): fixed bug #883361
6265         * as/mcs51/asexpr.c (term),
6266         * as/hc08/asexpr.c (term): fixed bug #887146
6267
6268 2004-01-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6269
6270         * src/z80/gen.c (genMult): handle single byte result product
6271         * src/SDCCopt.c (killDeadCode): never convert ADDRESS_OF iCode to
6272         DUMMY_READ_VOLATILE (fixed bug #886367)
6273
6274 2004-01-27 Bernhard Held <bernhard AT bernhardheld.de>
6275
6276         * support/regression/tests/libmullong.c: fixed logic, on little endian
6277         hosts we ended without a mullong_wrapper()
6278
6279 2004-01-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6280
6281         * ChangeLog: changed "@" to " AT " in hopes of reducing spam and
6282         virus/worm forged address usage.
6283
6284 2004-01-27 Bernhard Held <bernhard AT bernhardheld.de>
6285
6286         Fixed promotion, it should be done on AST level:
6287         * src/SDCCast.c (addCast): added promotion to int
6288         (decorateType): updated call to upCast()
6289         * src/SDCCicode.c (geniCodeLeftShift): removed call to
6290         usualUnaryConversions()
6291
6292 2004-01-26  Michael Hope  <michaelh AT juju.net.nz>
6293
6294         * support/regression/tests/literalop.c (mulWrapper): Added a
6295         wrapper to remove integer overflow warnings.
6296
6297         * support/regression/tests/float_trans.c: Made work on host.
6298
6299         * support/regression/ports/ucz80/spec.mk (UCZ80): Made detect the
6300         location of sz80.
6301
6302         * support/regression/generate-cases.py (main): Changed from inline
6303         to a main method.
6304
6305         * doc/Makefile (install): Changed to depth first to get rid of
6306         missing directory install warning.
6307
6308         * as/Makefile (install-doc): Made work on Mac.
6309
6310 2004-01-25 Bernhard Held <bernhard AT bernhardheld.de>
6311
6312         * src/SDCCast.c: added an additional type flow in decorateType() of
6313         opposite direction, see feature request #860006; it's enabled at runtime
6314         by setting the environment variable SDCC_NEWTYPEFLOW
6315         * src/SDCCast.h: changed prototype of decorateType()
6316         * src/SDCCglue.c (emitRegularMap): updated call of decorateType()
6317         * src/SDCCicode.c (geniCodeDivision) (geniCodeModulus): promotion from
6318         'char' to 'int' can be omitted, if both operands are 'unsigned char';
6319         see feature request #877103
6320         * src/SDCCval.c: updated call of decorateType()
6321         (valBitwise): fixed bug #882876
6322         (valMinus): added promotion
6323         (valLogicAndOr): result is unsigned
6324         (cheapestVal) (constVal): literals from 0...255 are 'unsigned char' now
6325         * src/SDCCsymt.c (computeType),
6326         * src/mcs51/gen.c (genCmpGt) (genCmpLt): literal 'unsigned char'
6327         must not cause an unsigned operation
6328         * src/pic/glue (pic14emitRegularMap),
6329         * src/pic16/glue.c (pic16emitRegularMap): updated call of decorateType()
6330
6331 2004-01-23 Bernhard Held <bernhard AT bernhardheld.de>
6332
6333         * src/pic/pcode.c (PCodeID): commented out left over debug code
6334
6335 2004-01-20 Bernhard Held <bernhard AT bernhardheld.de>
6336
6337         * support/valdiag/tests/overflow.c: added shift tests
6338         * src/pic/device.c,
6339         * src/pic/gen.c,
6340         * src/pic/gen.h,
6341         * src/pic/glue.c,
6342         * src/pic/main.c,
6343         * src/pic/pcode.c,
6344         * src/pic/pcode.h,
6345         * src/pic/pcodepeep.c,
6346         * src/pic/pcoderegs.c,
6347         * src/pic/ralloc.c,
6348         * src/pic/ralloc.h: applied patch from Slade Rich;
6349         added support for multiple code pages and multiple RAM banks on the
6350         PIC 14 port. The ASM files now no longer simply assume all the
6351         code / RAM are in the same page / bank. This means the linker can
6352         safely allocate code/RAM of separate ASM files to different pages/banks.
6353         * doc/sdccman.lyx: added Slade's tips
6354         * src/mcs51/peeph.def: fixed bug #880768
6355
6356 2004-01-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6357
6358         * src/hc08/ralloc.c (rematStr): fixed bug #879282
6359         * src/SDCCast.c (decorateType): fixed bug #880197
6360
6361 2004-01-20  Michael Hope  <michaelh AT juju.net.nz>
6362
6363         * sim/ucsim/gui.src/serio.src/main.cc: Fixed unconditional use of
6364         getopt.h.
6365
6366         * debugger/mcs51/cmd.c (getValBasic): Changed strtof to strtod as
6367         strtof is not part of C89 and isn't included with Mac OS X.
6368
6369 2004-01-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6370
6371         * src/hc08/gen.c (genPlusIncr, genUminus, genMinusDec, genCmp,
6372         shiftL2Left2Result): fixed bug #879326
6373         (genAnd, genOr, genXor): fixed bug when result was of type AOP_CRY
6374         (genMultOneByte): fixed bug in signed vs unsigned multiplication
6375         * sim/ucsim/hc08.src/inst.cc (inst_clr): added missing effective
6376         address fetch for clr instruction
6377         * device/lib/hc08/_mulint.c: created optimized assembly version
6378         * src/SDCCdflow.c (computeDataFlow): fixed bug #878209
6379
6380 2004-01-19 Bernhard Held <bernhard AT bernhardheld.de>
6381
6382         * src/SDCCicode.c (geniCodeArray): applied patch from Stas Sergeev
6383         proposed in FR #877103
6384
6385 2004-01-18 Bernhard Held <bernhard AT bernhardheld.de>
6386
6387         * src/SDCCval.c (cheapestVal): added missing checks
6388         * src/SDCCicode.c (usualBinaryConversions): fixed condition
6389         * src/SDCCicode.c (geniCodeAdd): fixed part of bug #877103
6390
6391 2004-01-16 Klaus Flittner <klaus_flittner AT gmx.de>
6392
6393         * src/ds390/gen.c (aopOp3): fixed the assignment of different dptrs to
6394         equal operands
6395
6396 2004-01-16 Vangelis Rokas <vrokas AT otenet.gr>
6397
6398         * src/SDCCmain.c (linkEdit): variable $3 of the linker command is
6399         loaded with the linker search paths (-L arguments) and the libraries
6400         to be linked with the current source (-l arguments). Changes
6401         currently will affect only the pic16 port.
6402         * src/pic16/main.c (_pic16_finaliseOptions): add to the linker
6403         include path the port specific paths and port specific libraries,
6404         * gplink command now contains the $3 argument,
6405         * src/pic16/device.h,
6406         * src/pic16/device.c,: structure PIC_device is made public and
6407         renamed to PIC16_device, the same for variable Pics which is renamed
6408         to Pics16. Updated all references to them.
6409         * src/pic16/glue.c (pic16glue): corrected bug with code
6410         initialization which bypassed the variable initializations block.
6411
6412         * device/lib/pic16/Makefile.rules: removed --penable-stack from
6413         COMPILE_FLAGS and added the --nostdinc option
6414
6415 2004-01-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6416
6417         * device/include/mc68hc908jb8.h: Register defs for another member
6418         of the hc08 family. Contributed by Bjorn Bringert - thanks!
6419
6420 2004-01-14 Vangelis Rokas <vrokas AT otenet.gr>
6421
6422         Documenting changes from previous commits.
6423         * configure.in (version 1.56),
6424         * configure: initially I've added AC_CONFIG_SUBDIRS(device/lib/pic16)
6425         when generating output files to configure the pic16 library,
6426         but now I've commented it out, since gputils aren't installed in the
6427         SF compile farm, so library won't compile
6428
6429         * device/lib/Makefile.in (version 1.56): initially I've added in
6430         target 'all' the prerequestive 'model-pic16' so it compiled the
6431         pic16 library, but now I've commented it out for the same reasons
6432         above,
6433         * added targets 'model-pic16' and 'objects-pic16' to compile the
6434         library
6435         * added target 'port-specific-objects-pic16' to handle the
6436         generated libraries and copy them into the build/ directory
6437         * added target 'clean-intermediate-pic16' to clean intermediate
6438         files into pic16 directory
6439         * in target 'installdirs' added line to create directory pic16 in
6440         the installation path
6441
6442         * device/include/Makefile.in (version 1.11): in target 'install'
6443         added lines to copy all header files to installation path,
6444         * in target 'installdirs' added line create directory for pic16
6445         headers in the installation path
6446
6447 2004-01-13 Klaus Flittner <klaus_flittner AT gmx.de>
6448
6449         * src/ds390/gen.c (genCall): fixed a double use of acc and b after
6450          a function call
6451
6452 2004-01-13 Bernhard Held <bernhard AT bernhardheld.de>
6453
6454         * configure,
6455         * device/lib/configure.in,
6456         * device/lib/configure: fixed for autoconf 2.57
6457
6458 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6459
6460         * src/z80/main.c (_parseOptions): fixed the portmode= command line
6461         option so that it actually works. Made it specific to the z80, since
6462         the gbz80 doesn't have these kinds of I/O ports.
6463
6464 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6465
6466         * device/include/z180.h,
6467         * device/lib/_memcpy.c,
6468         * device/lib/_memmove.c,
6469         * device/lib/_mulint.c,
6470         * device/lib/ser_ir.c,
6471         * device/lib/ser_ir_cts_rts.c,
6472         * device/lib/_strcmp.c,
6473         * device/lib/_strtok.c: fixed pragmas to non-deprecated form
6474         * src/z80/main.c (_process_pragma): add support for pragmas bank and
6475         portmode; added deprecation warning for bank= and protmode= forms.
6476         Also, guard against buffer overflow.
6477         * src/z80/gen.c (aopGet): generate better code for sfr banked read
6478
6479 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6480
6481         * src/hc08/main.c (_hc08_genAssemblerPreamble): fixed bug #875487. Also
6482         changed interrupt vector table generation to only emit declared vectors.
6483         * device/include/Makefile.in: added missing backslash
6484         * device/lib/pic16/Makefile.rules: add $(MODELFLAGS) to $(CFLAGS)
6485
6486 2004-01-13 Vangelis Rokas <vrokas AT otenet.gr>
6487
6488         Mainly changes to support compilation of the device libraries
6489         * src/pic16/device.c: stack is allocated via symbol and not
6490         via literal number. The symbol is placed in the corresponding
6491         position of the data ram
6492         * (pic16_dump_section): relocatable and absolute uninitialized
6493         data are now emitted in sorted order to reduce section naming,
6494         * src/pic16/ralloc.c (newReg): fixed bug with SFR's that
6495         weren't marked as being in the access bank,
6496
6497 2004-01-13 Vangelis Rokas <vrokas AT otenet.gr>
6498
6499         Added portion of GNU PIC Library under the directory
6500         device/include/pic16 and device/lib/pic16. These files
6501         contain the declarations of SFRs for the PIC18Fxx2 devices.
6502         The directory is initialized via configure from toplevel.
6503
6504 2004-01-12 Klaus Flittner <klaus_flittner AT gmx.de>
6505
6506         * src/ds390/gen.c (operandsEqu): fixed a little typo, that prevented
6507         the spilllocations to be compared correctly
6508
6509 2004-01-12 Bernhard Held <bernhard AT bernhardheld.de>
6510
6511         * src/SDCCast.c (decorateType): fixed bug introduced today
6512
6513 2004-01-12  Borut Razem <borut.razem AT siol.net>
6514
6515         * src/SDCC.lex, support/Util/SDCCerr.h, support/Util/SDCCerr.c,
6516         doc/sdccman.lyx: upper case pragmas are deprecated
6517
6518 2004-01-12 Bernhard Held <bernhard AT bernhardheld.de>
6519
6520         * src/SDCCast.c (decorateType): replacing 'ul > 0' by  '!ul' results
6521         in simpler and even better code
6522
6523 2004-01-11 Bernhard Held <bernhard AT bernhardheld.de>
6524
6525         * src/SDCCicode.c (operandOperation): fixed bug #874819
6526         * src/SDCCast.c (decorateType): fixed
6527         char foo (unsigned long ul) { return ul > 0; }
6528
6529 2004-01-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6530
6531         * doc/sdccman.lyx: Moved and added some sections, small changes
6532         all over. Telling LaTeX to be less strict with word spacing
6533         to better keep the right margin. Changed some notes about
6534         maintainance of the ports in section 3.2.1 - is it OK like this?
6535
6536 2004-01-11 Vangelis Rokas <vrokas AT otenet.gr>
6537
6538         SDCC source changes:
6539         * src/SDCCopt.c (cntToFcall, cnvToFloatCast, cnvFromFloatCast,
6540         convilong): modified to inform the pic16 port that builtin functions
6541         are external
6542
6543         PIC16 PORT specific changes:
6544         * src/pic16/device.c pic16_dump_equates() added,
6545         processor registers declared internally by the port are emitted in
6546         the translation as equates,
6547         * src/pic16/gen.c: inline code is passed unprocessed to the
6548         translation,
6549         * (pic16_popGetLit2): fnuction modified to take second operand as
6550         pCodeOp pointer and not as literal,
6551         * (popRegFromIdx): prefixed with pic16_,
6552         * (pic16_popCombine2): modified to receive already allocated pCode
6553         operands,
6554         * (pic16_pushpCodeOpReg, pic16_poppCodeOpReg): added
6555         * (genFunction): initializes local stack frame and pushes on stack
6556         all the registers used by this function,
6557         * (genEndFunction): restores all registers from stack and restores
6558         stack frame,
6559         * src/pic16/glue.c (pic16emitRegularMap): various changes and
6560         improvements,
6561         * (pic16glue): changed the program startup sequence,
6562         * added new dbName code 'A' for functions placed in absolute section
6563         * src/pic16/main.c: added function attribute _naked,
6564         * added pragma 'code' to place a fnuction at an absolute address,
6565         * added command line arguments --debug-ralloc and --pcode-verbose,
6566         * (_pic16_finiliseOptions): options.all_callee_saves is set by default
6567         * src/pic16/pcode.c (pic16_pBlockConvert2Absolute) added,
6568         * (pic16_newpCodeOpLit2): modified to take the second operand as
6569         pCodeOp pointer,
6570         * (pic16_printpBlock): modified to emit each function in a separate
6571         section,
6572         * (pic16_get_op): modified to use the gpasm modifiers LOW,HIGH and
6573         UPPER for immediate operands,
6574         * src/pic16/pcodepeeph.c: added peephole support for the LFSR
6575         instruction,
6576         * src/pic16/peeph.def: all peepholes with movff are commented out,
6577         because there is a problem in the pcode peep optimizer,
6578         * src/pic16/ralloc.c: the register allocator can now reuse local
6579         function symbols for another function. This saves register usage.
6580         * src/pic16/ralloc.h: added flag isLocal in structure regs,
6581
6582         Added file src/pic16/NOTES with information about program writing on
6583         the current port version.
6584
6585 2004-01-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6586
6587         * src/mcs51/peephole.def: added peepholes 177.c,d (redundant moves)
6588         and peephole 252 (array access)
6589
6590 2004-01-09  Borut Razem <borut.razem AT siol.net>
6591
6592         * src/SDCCmain.c : fixed #872250: -l command line defined library
6593           files are scanned before standard library files
6594
6595 2004-01-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6596
6597         * src/SDCCast.c (decorateType): fixed bug #874046
6598
6599 2004-01-09  Borut Razem <borut.razem AT siol.net>
6600
6601         * support/scripts/sdcc.nsi: remove previous installation
6602
6603 2004-01-09 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6604
6605         * src/SDCCglue.c (createInterruptVect): don't append 7(5) padding
6606         bytes for last interrupt vector (mcs51)
6607         * sdcc.spec: fixed typo
6608
6609 2004-01-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6610
6611         * src/mcs51/gen.c (genFunction, genEndFunction, genReceive, getTempRegs,
6612         gen51Code): more efficient parameter receive for --model-large
6613         ("bug" #845294)
6614
6615 2004-01-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6616
6617         * src/ds390/main.c,
6618         * src/z80/main.c: added missed needLinkerScript flags (more than
6619         one port structure defined in these file)
6620         * src/ds390/gen.c (aopForSym, aopOp, operandsEqu, aopOp3): fixed
6621         bug #795325
6622
6623 2004-01-08 Vangelis Rokas <vrokas AT otenet.gr>
6624
6625         * src/SDCCmain.c: removed various references to DEFAULT_PORT
6626         * src/port.h: added flag needLinkerScript in port->linker
6627         structure to inform whether to create a .lnk file or not,
6628         * src/avr/main.c,
6629         * src/ds390/main.c,
6630         * src/hc08/main.c,
6631         * src/mcs51/main.c,
6632         * src/pic/main.c,
6633         * src/pic16/main.c,
6634         * src/xa51/main.c,
6635         * src/z80/main.c: changed appropriately to configure
6636         needLinkerScript flag
6637         * src/pic/gen.c,
6638         * src/pic16/gen.c (genAddrOf): fixed bug #863624
6639         * src/pic/glue.c: added variable udata_section_name to
6640         override default uninitialized data segment definition for
6641         devices only with SHAREBANK memory (reported from Erik Epetrich)
6642         * (pic14emitOverlay): modified to emit a commented overlay segment
6643         directive when no overlay data exist
6644         * (picglue): modified to emit uninitialized data segment
6645         according to udata_section_name
6646         * src/pic/main.c (_pic14_parseOptions): added command line
6647         options --udata-section-name=[name] to override default
6648         udata definition name
6649         * modified _linkCmd and _asmCmd to include compiler passed
6650         arguments via -W option
6651         * src/pic16/main.c: added $l in _asmCmd, changed extension for
6652         object file from '.rel' to '.o' in port->linker structure,
6653         changed size of fptr from 2 to 3 in port structure
6654
6655 2004-01-07  Borut Razem <borut.razem AT siol.net>
6656
6657         * support/scripts/sdcc.nsi: update PATH
6658         * support/scripts/sdcc.ico: craeted
6659
6660 2004-01-07 Bernhard Held <bernhard AT bernhardheld.de>
6661
6662         * device/include/Makefile.in: fix install
6663         * doc/Makefile: fix install
6664
6665 2004-01-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6666
6667         * src/SDCCsymt.c (processFuncArgs): fixed superflous allocation noted
6668         in bug #860505
6669         * src/SDCCmem.c (printAllocInfoSeg, printAllocInfo): minor changes to
6670         how the function variable allocation summary is displayed; also
6671         include information about variables allocated to the overlay
6672         segment
6673
6674 2004-01-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6675
6676         * as/mcs51/lkmain.c: Help about -Y option
6677         * as/mcs51/lkarea.c: Fixed gcc warnings
6678
6679 2004-01-06 Bernhard Held <bernhard AT bernhardheld.de>
6680
6681         * src/SDCCval.c (valShift): changed from 16 to 32 bit shift count,
6682         fixed warning
6683         * support/valdiag/tests/overflow.c: added
6684         * src/SDCCast.c (decorateType),
6685         * src/SDCCicode.c (geniCodeLeftShift): added promotion to int for
6686         LEFT_OP (left shift)
6687
6688 2004-01-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6689
6690         * as/mcs51/lkmain.c: stack must be after data when option -Y is not used
6691         (default behaviour).
6692
6693 2004-01-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6694
6695         A python script to validate compiler diagnostic messages. It can be
6696         used to verify that sdcc complains about bad c source code and
6697         gives a good location of the error.
6698         * support/valdiag/Makefile,
6699         * support/valdiag/valdiag.py,
6700         * support/valdiag/tests/*
6701
6702 2004-01-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6703
6704         * src/SDCC.y (enum_specifier, enumerator_list, opt_assign_expr),
6705         * src/SDCCsymt.c (newEnumType),
6706         * src/SDCCsymt.h
6707         * support/Util/SDCCerr.c,
6708         * support/Util/SDCCerr.h: fixed bug #871258 and some other unreported
6709         enum related bugs.
6710         * support/regression/tests/enum.c: added test for enum values that
6711         require at least 2 bytes of storage.
6712
6713 2004-01-06 Vangelis Rokas <vrokas AT otenet.gr>
6714
6715         * src/common.h: added ifndef/define/endif macros
6716         around the header file.
6717         Bug reported from Jesus Calvino-Fraga
6718
6719 2004-01-06 Bernhard Held <bernhard AT bernhardheld.de>
6720
6721         * sdcc.spec: updated
6722         * device/include/Makefile.in: don't install CVS directories
6723         * device/lib/Makefile.in: added removal of CVS directories after install
6724         * doc/Makefile: fixed install, added local_icons
6725         * sim/ucsim/gui.src/Makefile.in: fixed an old typo
6726         * src/mcs51/gen.c (genRightShift): fixed bug #870788
6727         * src/ds390/gen.c (genRightShift): fixed bug #870788
6728         * src/SDCCast.c (decorateType): fixed bug #870781
6729
6730 2004-01-06 Vangelis Rokas <vrokas AT otenet.gr>
6731
6732         PIC16 port related changes:
6733         * device.c: removed pic16_finalMapping and pic16_finalMappingSize,
6734         added variable stackPos,
6735
6736         * gen.c: genCall, assignResultValue: added support for
6737         pushing/retrieving function parameters to/from stack,
6738         genFunction,genEndFunction: setup stack frame for the
6739         generated function,
6740         genAddrOf: will be changed according to bug 863624
6741
6742         * added files genutils.c and genutils.h which contain gen*
6743         debugged and optimised functions extracted from gen.c
6744
6745         * glue.c: added variable 'externs' which holds extern symbols,
6746         pic16emitRegularMap: is modified to properly handle relocatable
6747          symbols under the new scheme,
6748         pic16createInterruptVect: is modified
6749         pic16printPublics: is modified to emit 'global' assembler directives,
6750         added pic16_printExterns to print extern symbols,
6751         pic16glue: initializes stack/frame pointer in the beginning of
6752         the assembly output. Temporary hack, will be corrected later,
6753         because gplink yet does not support stack and SDCC does not
6754         yet support a type of crt0.o object to create the final binary.
6755
6756         * Removed many lines that contain 8051 legacy code.
6757         * The code is finally placed under a 'code' directive.
6758         * Added port specific options.
6759
6760         * _process_pragma: simplified since now we do not need *special*
6761         include file to define SFR registers. But a separate header
6762         will be needed. This will be developed later.
6763         * _pic16_parseOptions: added, parses port specific options:
6764         --pgen-banksel, --obanksel=, --pomit-config-words, --pomit-ivt,
6765         --pleave-reset-vector, --penable-stack, --pstack-model, --debug-xtra
6766         --preplace-udata-with=
6767
6768         * _pic16_setDefaultOptions: modified to initialize section names,
6769         but hack is temporarly out of order since it needs improvement.
6770         * _pic16_genAssemblerPreamble: configuration words are emitted by
6771         their address instead of their name. This part is incomplete and
6772         supports only the 18Fxx2 devices. Other devices will emit an error
6773         during assembly since they do not contain the same set of config
6774         registers
6775         * _pic16_genIVT: is modified,
6776
6777         * pcode.c: added definitions for some hardware registers that are needed
6778         for stack support
6779         * added flag is2LitOp and variable pci_magic in pCodeInstruction.
6780         All PCI entries are updated. Now LFSR is supported.
6781         * Removed pic16_pciTRIS is mentioned by mdubuc in source
6782         * added pic16_newpCodeOpLit2 to support instructions with
6783         two literal arguments
6784         * pic16_pCode2str: corrected code that emits assembler instructions
6785         with two literal operands and those that have an access bit modifier
6786         * genericPrint: now PC_ASMDIR pCodes, can emit a label if it exists,
6787         this fixes a bug which caused some labels to be lost, when an
6788         assembler directive was added, i.e. banksel,
6789         * pic16_FixRegisterBanking: improved logic that causes the insertion
6790         of bank switching,
6791         * InlineFunction: functions that are called once, are not any more
6792         inlined. This can be a port option in the future,
6793
6794         * pcode.h: added pCodeOpLit2 and added variable label in pCodeAsmDir
6795
6796         * ralloc.c: added pic16_rel_udata and pic16_fix_udata variables which
6797         hold the corresponding uninitialized symbols,
6798         * pic16_allocProcessorRegister: registers have explicit marked the
6799         accessBank field,
6800         * pic16_allocInternalRegister: registers are explicit marked as
6801         not used,
6802         * pic16_writeUsedRegs: pic16_dynDirectBitRegs was missing from the
6803         processing list, so bit registers were lost,
6804         *
6805
6806         * ralloc.h: added field 'accessBank' and original symbol operand
6807         in register definition,
6808         * removed the field isMapped from register definition,
6809
6810         ** Several functions have been removed from various sources:
6811         BanksUsedFlow2,BanksUsedFlow,FixBankFlow,InstructionRegBank,
6812         pic16_addMemRange,pic16_isREGinBank,pic16_dump_map,pic16_dump_cblock
6813         isSFR,validAddress,mapRegister,assignRegister,pic16_assignFixedRegisters
6814         pic16_assignRelocatableRegisters
6815
6816         ** others have been introduced:
6817         pic16_areRegsSame,pic16_dump_section,checkAddReg,pic16_groupRegistersInSection
6818         pic16_popGetLit2,pic16_popCombine2,pushw,pushaop
6819
6820 2004-01-05 Vangelis Rokas <vrokas AT otenet.gr>
6821
6822         * support/scripts/inc2h.pl: changed definition of BIT_AT
6823         to emit 'sbit at' instead of 'bit at'. This was a request.
6824
6825         PIC16 port related preliminary changes:
6826         * gen.c: prefixed function popRegFromString with
6827         pic16_ and all references to it corrected
6828         * pcode.c: all pic16_pc_* hardware registers prefixed
6829         with underscore (_),
6830         pic16_popCopyGPR2Bit(): function sets register wasUsed=1
6831         * ralloc.c: newReg(): when register is REG_SFR then
6832         set address to rIdx,
6833         pic16_allocProcessorRegister(): marks register wasUsed=0
6834         pic16_writeUsedRegs(): added a call to assign processor
6835         registers via pic16_assignFixedRegisters
6836
6837 2004-01-04  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6838
6839         * as/mcs51/aslink.h, as/mcs51/lkarea.c, as/mcs51/lkdata.c,
6840         as/mcs51/lkmain.c, as/mcs51/lkmem.c: 8051 linker can now pack
6841         variables in unused register banks.  Also the SSEG is placed
6842         wherever there is enough space for it, and IDATA can be anywhere
6843         in internal RAM.  For now compile using -Wl-Y[stack_size].
6844         The mem file is different for this option as well, since it
6845         makes no sense of talking about DSEG lenght.
6846
6847 2004-01-02 Vangelis Rokas <vrokas AT otenet.gr>
6848
6849         * src/SDCClrange.c: fixed bug 869095 that caused segfault
6850         in certain cases, e.g. when ROM assignment, patch provided
6851         from Albert den Haan.
6852
6853 2004-01-01 Bernhard Held <bernhard AT bernhardheld.de>
6854
6855         Many signedness and type propagation fixes:
6856         * src/SDCCicode.c: made geniCodeCast() static
6857         replaced SPEC_ by IS_ (cosmetic)
6858         (operandOperation): fixed div and mod operation
6859         (usualBinaryConversions): added support for promotion of char
6860         (geniCodeMultiply): replaced (unsigned long) by (TYPE_UDWORD)
6861         (geniCodeDivision): replaced (unsigned long) by (TYPE_UDWORD)
6862         (geniCodeAdd): an array index will stay unsigned, even if promoted
6863         from char to int
6864         (geniCodeArray): ditto
6865         * src/SDCCicode.h: made geniCodeCast() static: removed prototype
6866         * src/SDCCsymt.c (computeType): added more support for char;
6867         promotion of char is selectable by promoteCharToInt, fixed signedness
6868         for all cases
6869         (powof2): replaced (unsigned long) by (TYPE_UDWORD)
6870         * src/SDCCsymt.h (powof2): replaced (unsigned long) by (TYPE_UDWORD)
6871         * src/SDCCval (val*): replaced signedness calculation by
6872         computeType()
6873         rearranged if-branches (cosmetic)
6874         (valShift): added warning W_SHIFT_CHANGED
6875         (valCompare): fixed problem with different types
6876         * src/hc08/rallo.c (leastUsedLR): fixed gcc 3.3 warning
6877         * support/regression/tests/literalop.c: added many cases
6878         * support/regression/tests/ast_constant_folding.c: changed finally to
6879         'unsigned int'
6880         * .version: new year, new version: 2.3.7
6881         * src/SDCCmain.c (main): applied patch #866468
6882         * debugger/mcs51/sdcdb.c (parseCmdLine): added -k for ucsim, patch
6883         provided by Scott Bronson
6884         * doc/sdccman.lyx: updated documentation for sdcdb
6885         updated and added chapter tips
6886
6887 2004-01-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6888
6889         * src/SDCCsymt.h: missing from yesterday's commits
6890
6891 2003-12-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6892
6893         * src/SDCC.y (struct_or_union_specifier),
6894         * support/Util/SDCCerr.c,
6895         * support/Util/SDCCerr.h: verify that struct & union tags are used
6896         as declared.
6897
6898 2003-12-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6899
6900         * src/SDCCglobl.h: missing from yesterday's commits
6901
6902 2003-12-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6903
6904         * src/SDCC.y (external_definition, type_specifier2, sfr_reg_bit,
6905         sft_attributes, struct_declaration, parameter_declaration,
6906         type_name, start_block, declaration_list),
6907         * src/SDCC.lex (check_type): support redefinition of typedef names
6908
6909 2003-12-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6910
6911         * src/mcs51/gen.c (genPlus): added special handling for 256 byte
6912         aligned xdata arrays. Erik helped me with the if clause.
6913
6914 2003-12-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6915
6916         * device/lib/ds390/tinibios.c (CpuSpeed): suppress unreachable code
6917         warning
6918
6919 2003-12-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6920
6921         * src/SDCCast.h,
6922         * src/SDCCast.c (newAst_),
6923         * src/SDCCicode.h,
6924         * src/SDCCicode.c (ast2iCode, newiCode),
6925         * src/SDCCglobl.h,
6926         * src/SDCC.y (logical_and_expr, logical_or_expr, conditional_expr,
6927         expr, statement, expression_statement, selection_statement,
6928         iteration_statement, expr_opt, jump_statement): foundation for tracking
6929         sequence points
6930         * src/SDCCopt.c (killDeadCode): fixed bug #861580 (needs the sequence
6931         point code too)
6932
6933 2003-12-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6934
6935         * support/Util/SDCCerr.c,
6936         * src/SDCCast.h,
6937         * src/SDCCast.c (createCase, createDefault, decorateType),
6938         * src/SDCClabel.c (labelUnreach),
6939         * src/SDCC.y (labeled_statement, jump_statement): More improvements
6940         to error messages.
6941         * support/Util/SDCCerr.c (werrorfl): fixed a non-standard declaration
6942         (with thanks to Stas Sergeev)
6943         * device/include/time.h,
6944         * device/lib/time.c (CheckTime): suppress unreachable code warning
6945
6946 2003-12-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6947
6948         * src/SDCCast.c (createIvalCharPtr),
6949         * src/SDCCglue.c (printChar): fixed bug #862241 (an error in my fix for
6950         bug #753752)
6951         * support/regression/tests/nullstring.c: tests for these two bugs
6952
6953 2003-12-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6954
6955         * support/Util/SDCCerr.h,
6956         * support/Util/SDCCerr.c (E_NOT_ALLOWED),
6957         * src/SDCC.y (struct_declaration, struct_or_union_specifier): complain
6958         about storage class and 'at' used inside struct or union
6959         * src/SDCCBBlock.c (iCodeFromeBBlock),
6960         * src/SDCCcse.c (ifxOptimize),
6961         * src/SDCCglue.c (emitRegularMap, initPointer, printIvalStruct,
6962         printIvalArray, printiValFuncPtr, printIvalCharPtr, printIvalPtr,
6963         printIval, emitStaticSeg, emitOverlay),
6964         * src/SDCClabel.c (deleteIfx),
6965         * src/SDCCopt.c (replaceRegEqv, eBBlockFromiCode),
6966         * src/SDCCast.c (resolveSymbols, createIvalStruct, createIvalArray,
6967         gatherAutoInit, processParms),
6968         * support/Util/SDCCerr.h,
6969         * support/Util/SDCCerr.c (werrorfl): Support for better error location
6970         reporting for post-parse errors.
6971
6972 2003-12-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6973
6974         * src/SDCCval.c (valPlus, valMinus, valShift): fixed some problems with
6975         implicit casts via union; they don't work on big endian systems
6976         (possible fix for bug #861138)
6977
6978 2003-12-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6979
6980         (committed by Erik Petrich <epetrich AT ivorytower.norman.ok.us> on Frieder's behalf)
6981         * src/mcs51/main.c: fixed the fix for bug #737001
6982
6983 2003-12-15  Borut Razem <borut.razem AT siol.net>
6984
6985         * support/scripts/sdcc.nsi: updated for NSIS 2.0 beta 4
6986
6987 2003-12-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6988
6989         * support/makebin/makebin.c: put output in binary mode
6990
6991 2003-12-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6992
6993         * src/mcs51/main.c: fixed bug #737001 for the mcs51. SDCC clears
6994         xdata and data memory on startup. Set the environment variable
6995         SDCC_NOGENRAMCLEAR to disable this.
6996         * src/mcs51/peephole.def,
6997         * src/ds390/peephole.def: using the atomic test and clear instruction jbc
6998         (allows non-interrupt and interrupt code to safely compete for a resource
6999         without the non-interrupt code having to disable interrupts)
7000
7001 2003-12-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7002
7003         * src/SDCCicode.c (geniCodeAdd),
7004         * src/SDCCast.c (decorateType): fixed bug #857753 (need to be careful
7005         with valFromType if type might be a pointer and host is big endian).
7006         * src/SDCCast.c (decorateType): unary plus compatible with all arithmetic
7007         types, not just integer types.
7008         * src/SDCCsymt.c (addSymChain): clarified error message when symbol is
7009         multiply defined with mismatching "at" address.
7010
7011 2003-12-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7012
7013         * src/ds390/main.c (PORT tininative_port): fixed bug #858416
7014         * src/SDCCglue.c (printChar, printIvalChar, emitStaticSeg),
7015         * src/SDCCast.c (createIvalCharPtr, stringToSymbol): handle strings
7016         with embedded nulls (fixed bug #753752)
7017
7018 2003-12-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7019
7020         * src/mcs51/main.c(_mcs51_genRAMCLEAR): using r0 instead of r1/r2.
7021         Apparently this did not see much testing (endless loop)
7022
7023 2003-12-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7024
7025         * src/z80/ralloc.c: set DISABLE_PACK_HL = 1 as a temporary fix to bug #855165
7026
7027 2003-12-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7028
7029         * src/SDCCdebug.c (outputDebugSymbols, outputDebugStackSymbols, dumpSymInfo):
7030         gracefully handle NULL memmap pointers
7031
7032 2003-12-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7033
7034         * src/SDCCopt.c (killDeadCode): change iCode type to DUMMY_READ_VOLATILE
7035         instead of deleting the iCode when an operand is volatile
7036         * src/z80/gen.c (genDummyRead),
7037         * src/mcs51/gen.c (genDummyRead),
7038         * src/ds390/gen.c (genDummyRead),
7039         * src/hc08/gen.c (genDummyRead): handle operands in IC_LEFT and/or IC_RIGHT,
7040         not just IC_RIGHT
7041         * src/SDCCicode.c (geniCodeCall): fixed bug #851607
7042         * src/SDCC.y: fixed bug #850420
7043
7044 2003-12-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7045
7046         Applied z80 i/o port patch from Peter Townson and fixed some operators
7047         to better handle operands in A register.
7048         * device/include/z180.h
7049         * src/SDCC.y
7050         * src/SDCCglue.c
7051         * src/z80/gen.c
7052         * src/z80/gen.h
7053         * src/z80/main.c
7054         * src/z80/peeph-z80.def
7055         * src/z80/peeph.def
7056         * src/z80/z80.h
7057
7058 2003-12-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7059
7060         * src/SDCCsymt.c (addSymChain, compareTypeExact): fixed bug #838241 again
7061
7062 2003-12-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7063
7064         * device/lib/hc08/_mullong.c: Removed extra #endif
7065
7066 2003-12-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7067
7068         * sim/ucsim/hc08.src/inst.cc,
7069         * sim/ucsim/hc08.src/hc08mac.h: fixed some problems with CC flag bits and
7070         carries from x to h
7071         * src/hc08/gen.c (aopAdrStr): fixed problem with 16 bit immediate
7072         * src/hc08/gen.c (XAccRsh): fixed problem with right shift
7073         * device/include/stdarg.h: fixed varargs for hc08
7074         * device/lib/Makefile.in,
7075         * device/lib/hc08/Makefile,
7076         * device/lib/hc08/_mulint.c,
7077         * device/lib/hc08/_mullong.c: fixed some endian problems
7078
7079 2003-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7080
7081         * sdcc/src/mcs51/gen.c (genMultOneByte): help peephole 105
7082         * sdcc/src/mcs51/peeph.def: added peephole 186.e array access in code space
7083         * device/lib/_gptrget.c,
7084         * device/lib/_gptrput.c: P2 not used any more (related to #850747, #785979)
7085
7086 2003-11-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7087
7088         * src/SDCClrange.c (findNextUseSym, rlivePoint): fixed bug #849795
7089         * src/SDCCast.c (astErrors): fixed bug #846007
7090         * src/SDCCsymt.c (checkFunction): fixed follow-up bug on bug #846007
7091
7092 2003-11-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7093
7094         * src/SDCCast.c (decorateType): disabled a transformation I added in
7095         revision 1.188 (access to fields of a structure at an absolute address);
7096         it breaks with bitfields, extern declarations, and gcse analysis.
7097         * src/SDCCopt.c (isLocalWithoutDef): if ADDRESS_OF applied to a symbol, it
7098         could be assigned through a pointer, so don't complain.
7099         * src/SDCCast.c (astErrors),
7100         * src/SDCCast.h,
7101         * src/SDCCglue.c (emitRegularMap): fixed bug #847813
7102
7103 2003-11-26 Vangelis Rokas <vrokas AT otenet.gr>
7104
7105         * src/pic16/main.c (_pic16_genIVT): fixed interrupt vector table
7106         * src/pic16/main.c (_pic16_genAssemblerPreamble): re-enabled the
7107         output of __config directives, since gpasm now supports them
7108         * src/pic16/main.c (_pic16_finaliseOptions): define MCU
7109         pre-processor macro, i.e. -DMCU=p18f452
7110         * src/pic16/ralloc.c: renamed packRegisters to pic16_packRegisters,
7111         and modified to handle 'cast' icode similarly to '=' icode
7112         * src/pic16/device.h (typedef struct PIC_device): added field
7113         'extMIface' to indicate that chip has external memory interface
7114         * src/pic16/device.c: added chips 18F248, 18F258, 18F448, 18F458,
7115         18F6520, 18F6620, 18F6680, 18F6720, 18F8520, 18F8620, 18F8680,
7116         18F8720
7117
7118 2003-11-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7119
7120         * src/SDCC.y (pointer): fixed bug #846006
7121         * support/Util/SDCCerr.c: made W_PTR_TYPE_INVALID message clearer
7122         * src/SDCCast.c (decorateType): fixed bug #846009
7123         * src/ds390/peeph.def,
7124         * src/ds390/gen.c (genAnd, genOr),
7125         * src/mcs51/peeph.def,
7126         * src/mcs51/gen.c (genAnd, genOr): fixed bug #846777
7127
7128 2003-11-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7129
7130         Fixed several common-sub-expression bugs (#772861, #768380, & #755323)
7131         * src/SDCCdflow.c
7132         * src/SDCCcse.c
7133         * src/SDCCcse.h
7134         * src/SDCCBBlock.h
7135         * src/SDCCBBlock.c
7136
7137 2003-11-23 Klaus Flittner <klaus_flittner AT gmx.de>
7138
7139         fixed bug #845089
7140         * src/SDCCbitv.h,
7141         * src/SDCCbitv.c: added function to free a bitvector
7142         * src/SDCClrange.h,
7143         * src/SDCClrange.c: added function to recompute the liveranges
7144         * src/avr/ralloc.c,
7145         * src/ds390/ralloc.c,
7146         * src/hc08/ralloc.c,
7147         * src/mcs51/ralloc.c,
7148         * src/pic/ralloc.c,
7149         * src/pic16/ralloc.c,
7150         * src/xa51/ralloc.c,
7151         * src/z80/ralloc.c: recompute the liveranges after register packing
7152
7153 2003-11-21 Klaus Flittner <klaus_flittner AT gmx.de>
7154
7155         * src/SDCCloop.c (newInduction): fixed bug #845630
7156
7157 2003-11-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7158
7159         * src/SDCCsymt.c (compareTypesExact): disabled debugging output
7160         inadvertantly left behind from my 2003-11-12 change
7161
7162 2003-11-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7163
7164         Updated headers I neglected to commit yesterday.
7165         * src/SDCClrange.h,
7166         * src/SDCCicode.h
7167
7168 2003-11-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7169
7170         * src/SDCCcse.c (algebraicOpts): fixed bug #773153
7171         * src/SDCClrange.c (rlivePoint): need to mark IC_RESULT used if POINTER_SET op
7172         * src/SDCCopt.c (eBBlockFromiCode),
7173         * src/SDCClrange.c (hashiCodeKeys, sequenceiCode, computeLiveRanges): seperated
7174         the creation of the key hash table from the sequencing so it can be used
7175         earlier (for some GCSE bug fixes still pending)
7176
7177 2003-11-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7178
7179         * src/mcs51/gen.c (genPlus): generate shortcut for adding 0xab00
7180         * support/regression/tests/addsub.c: testing genPlus shortcut
7181
7182 2003-11-15  Borut Razem <borut.razem AT siol.net>
7183
7184         * src/SDCCmain.c: fixed bug #841645: -MM command line option passed to sdcpp
7185
7186 2003-11-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7187
7188         * src/SDCCcse.c (cseBBlock): fixed bug #527779
7189         * src/SDCCcse.c (deleteGetPointers): rewrote so that the set
7190         ordering is immaterial.
7191         * src/SDCCdflow.c (mergeInExprs): fixed bug #587536
7192
7193 2003-11-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7194
7195         * src/SDCCicode.c (geniCodeAddressOf): fixed part of bug #840381
7196         * src/SDCCopt.c (replaceRegEqv, isLocalWithoutDef): fixed other part
7197         (SIGSEV) of bug #840381
7198         * src/SDCCmain.c (linkEdit, assemble): fixed bug #841606 (don't
7199         unlink new file before rename if new and old filenames are the same)
7200
7201 2003-11-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7202
7203         * src/mcs51/main.c: started fixing bug #737001 (SDCC not clearing
7204         uninitialized variables) for the mcs51. Set environment variable
7205         SDCC_GENRAMCLEAR to test.
7206         xdata initialization slightly shorter
7207
7208 2003-11-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7209
7210         * src/SDCCsymt.h,
7211         * src/SDCCsymt.c (addSymTypeChain, compareTypesExact): fixed bugs
7212         #838241 & 780691 (basicly the same bug)
7213         * src/SDCCBBlock.c (iCode2eBBlock): fixed bug #840148
7214         * src/SDCCBBlock.c (iCodeFromeBBlock): fixed bug #840162
7215
7216 2003-11-11 Bernhard Held <bernhard AT bernhardheld.de>
7217
7218         * src/SDCCmain.c (linkEdit): "fix" #834252
7219
7220 2003-11-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7221
7222         * src/SDCCast.c (removePostIncDecOps, removePreIncDecOps),
7223         * src/SDCCast.h,
7224         * src/SDCC.y: fixed bug #819403
7225
7226 2003-11-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7227
7228         * support/regression/fwk/lib/testfwk.c: printn is recursive and thus needs
7229         the reentrant attribute.
7230         * src/hc08/gen.c (genPackBits): added missing stack readjustment
7231         * sim/ucsim/hc08.src/inst.cc (inst_mov): fixed bugs with mov instruction
7232         simulation
7233         * src/SDCCast.c (decorateType): fixed bug with storage class not being
7234         updated during pointer dereference; f.e. ~(((char *)1)*) was being
7235         erroneously reduced to a literal.
7236         * src/hc08/ralloc.c (packRegisters, rematStr),
7237         * src/hc08/gen.c (aopForRemat): allow literals to be rematerialized in
7238         some cases
7239
7240 2003-11-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7241
7242         * src/mcs51/main.c: fixed bug #838385. Thanks to Josef Pavlik for finding and fixing
7243         * doc/sdccman.lyx: changed from 'article' to 'book'
7244         * doc/Makefile: readded test_suite_spec and cdbfileformat
7245
7246 2003-11-08 Bernhard Held <bernhard AT bernhardheld.de>
7247
7248         * device/include/stdlib.h: include malloc.h to comply with ANSI
7249         * support/regression/tests/malloc.c: include stdlib.h instead of malloc.h
7250
7251 2003-11-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7252
7253         * doc/Makefile: sdccman.pdf should build with correct references (more info in commit msg)
7254         * doc/clean.mk: also remove *.out files
7255         * doc/sdccman.lyx: some additions, larger top/bottom margins
7256
7257 2003-11-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7258
7259         * src/SDCC.y: fixed bug #837365
7260         * support/regression/tests/bitopcse.c
7261         * src/hc08/gen.c (genPointerGet): Don't assume pointer operand is
7262         a symbol (might be valop instead)
7263         * device/lib/Makefile.in: added errno.c to HC08SOURCES
7264         * device/lib/clean.mk: added hc08 to the cleaning list
7265
7266 2003-11-04  Borut Razem <borut.razem AT siol.net>
7267
7268         * configure, configure.in, sdcc_vc_in.h, sdcconf_in.h: reverted changes,
7269           made 2003-11-04
7270         * support/Util/NewAlloc.c, as/hc08/lklibr.c, as/mcs51/lklibr.c,
7271           as/z80/aslist.c, as/z80/assym.c: removed inclusion of nonstandard malloc.h;
7272           malloc is declared in standard stdlib.h
7273
7274 2003-11-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7275
7276         * device/lib/hc08/Makefile: need to clean .rel not .o files
7277         * src/hc08/gen.c (genDjnz): can't use djnz with extended addressing mode
7278
7279 2003-11-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7280
7281         * src/port.h,
7282         * src/hc08/main.c,
7283         * src/mcs51/main.c,
7284         * src/ds390/main.c,
7285         * src/z80/main.c,
7286         * src/avr/main.c,
7287         * src/pic/main.c,
7288         * src/pic16/main.c,
7289         * src/xa51/main.c: added hasExtBitOp & oclsExpense functions to ports
7290         * src/SDCCicode.c: changed several IS_FARSPACE tests to isOclsExpensive
7291         tests (which uses the port's oclsExpense function)
7292         * src/SDCC.y,
7293         * src/SDCCast.c,
7294         * src/SDCCicode.c,
7295         * src/hc08/gen.c,
7296         * src/ds390/gen.c,
7297         * src/mcs51/gen.c: added support for the SWAP iCode (RFE #834167)
7298
7299 2003-11-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7300
7301         * src/SDCCcse.c (ifxOptimize),
7302         * src/SDCClabel.c (labelIfx, deleteIfx): When the condition to
7303         an IFX iCode is volatile, convert to DUMMY_READ_VOLATILE instead
7304         deleting the IFX iCode.
7305         * src/hc08/ralloc.c: reduced unneeded slocs
7306         * src/hc08/gen.c: fixed bug in asmopToBoolean
7307
7308 2003-11-04  Borut Razem <borut.razem AT siol.net>
7309
7310         * configure, configure.in, sdcc_vc_in.h, sdcconf_in.h,
7311           support/Util/NewAlloc.c, as/hc08/lklibr.c, as/mcs51/lklibr.c,
7312           as/z80/aslist.c, as/z80/assym.c: decision to include malloc.h
7313           transferred to configure
7314
7315 2003-11-03 Bernhard Held <bernhard AT bernhardheld.de>
7316
7317         Use headers defined in the C[++] standards:
7318         * sim/ucsim/gui.src/serio.src/fileio.cc
7319         * sim/ucsim/gui.src/serio.src/frontend.cc
7320         * sim/ucsim/gui.src/serio.src/main.cc
7321         * sim/ucsim/gui.src/serio.src/posix_signal.cc
7322         * support/Util/NewAlloc.c
7323         * as/hc08/lklibr.c
7324         * as/mcs51/lklibr.c
7325         * as/z80/aslist.c
7326         * as/z80/assym.c
7327
7328 2003-11-03  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7329
7330         * Added MSVC projects for hc08 assembler and linker:
7331         all.dsp, config.dsp, sdcc.dsw, /as/hc08/as_hc08.dsp,
7332         /as/hc08/link_hc08.dsp
7333
7334 2003-11-03 Martin Helmling <Martin.Helmling AT octo-soft.de>
7335
7336         * debugger/mcs51/cmd.c: allows filename starting with digit(+ some debug)
7337
7338 2003-11-02 Bernhard Held <bernhard AT bernhardheld.de>
7339
7340         * src/SDCCmain.c (linkEdit): "fixed" again bug #833605
7341
7342 2003-11-01 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7343
7344         * src/mcs51/main.c: xdata initialization is 13 bytes shorter now
7345
7346 2003-10-31  Borut Razem <borut.razem AT siol.net>
7347
7348         * support/cpp2/cpplib.h,
7349           support/cpp2/cpplib.c,
7350           support/cpp2/cpplex.c,
7351           support/cpp2/cppinit.c: introduced #pragma preproc_asm [ + | - ]
7352           to switch _asm block preprocessing on / off. Default is
7353           #pragma preproc_asm +
7354
7355 2003-10-31  Borut Razem <borut.razem AT siol.net>
7356
7357         * support/cpp2/cpplex.c: Fixed _WIN32 problem with CR-CR-LF sequences
7358           when outputting comment blocks (when executed with -C option) and
7359           _asm (SDCPP specific) blocks
7360
7361 2003-10-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7362
7363         * as/hc08/lkrloc.c (relr): Fixed ihx output, fixed lastAreaIndex warning
7364
7365 2003-10-31 Klaus Flittner <klaus_flittner AT gmx.de>
7366
7367         * src/SDCCcse.c (updateSpillLocation): fixed bug #808027
7368
7369 2003-10-31 Bernhard Held <bernhard AT bernhardheld.de>
7370
7371         * src/SDCCmain.c (linkEdit): "fixed" bug #833605
7372         * src/SDCCast.c (decorateType): fixed bug #832664
7373
7374 2003-10-31  Borut Razem <borut.razem AT siol.net>
7375
7376         * support\cpp2\cpplex.c: fixed for SDCPP:
7377           comments(when executed with -C option) and _asm blocks
7378           were included even if they where in skipped #if block.
7379           Applied solution from GCC cpp 3.3.2
7380
7381 2003-10-31  Borut Razem <borut.razem AT siol.net>
7382
7383         * src/SDCC.lex: sdcc now understands both formats:
7384           '# <line_number> <file_name>' and
7385           '#line <line_number> <file_name>'
7386         * support/cpp2/cppmain.c: sdcpp now generates the standard
7387           '# <line_number> <file_name>' instead of former
7388           '#line <line_number> <file_name>'
7389
7390 2003-10-30  Borut Razem <borut.razem AT siol.net>
7391
7392         * support/cpp2/cpphash.h,
7393         * support/cpp2/cpplib.h
7394         * support/cpp2/cpplex.c,
7395         * support/cpp2/cppmain.c,
7396         * support/cpp2/cppinit.c: fixed bug #828015 - Syntax variation for _asm character constants
7397
7398 2003-10-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7399
7400         Fixed a number of problems revealed by bug #827883.
7401         * src/SDCCloop.c (loopInvariants): Spill location of the
7402         result operand should be recomputed if extracted from
7403         a loop. Also, don't extract assignments of an iTemp
7404         from a literal.
7405         * src/SDCCast.c (isConformingBody): loop reversal should
7406         not occur if the control variable is involved with a
7407         relational operator.
7408
7409 2003-10-28 Bernhard Held <bernhard AT bernhardheld.de>
7410
7411         * .version: bumped to 2.3.6 to reflect the big improvements
7412         made by Erik and Klaus. Thanks!
7413
7414 2003-10-28 Klaus Flittner <klaus_flittner AT gmx.de>
7415
7416         Replaced the livrange code.
7417         * src/SDCClrange.c: added new LR code
7418         * src/SDCCloop.c,
7419         * src/SDCCBBlock.h: removed remainig parts from old LR code
7420         * src/ds390/ralloc.c,
7421         * src/ds390/gen.c: minor fixes to make it work with new code
7422
7423 2003-10-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7424
7425         * as/hc08/asm.h,
7426         * as/hc08/lkrloc.c,
7427         * src/hc08/gen.c,
7428         * src/hc08/ralloc.c: Fix various warnings related to the hc08
7429         * src/SDCCicode.c (geniCodePreInc, geniCodePreDec): Fixed bug #829717
7430         (tweaked fix for bug #818696)
7431
7432 2003-10-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7433
7434         * src/z80/ralloc.c (joinPushes): Fixed bug #828742
7435
7436 2003-10-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7437
7438         * src/SDCCmain.c,
7439         * sdccconf_in.h: Fixed bug #828387 (--disable-hc08-port didn't work)
7440         * src/mcs51/gen.c (gencjneshort),
7441         * src/ds390/gen.c (gencjneshort): Made comparison with AOP_IMMD operand
7442         more efficient (per Scott Bronson's suggestion)
7443
7444 2003-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7445
7446         Extended the semantics of the critical keyword to include
7447         individual statements. See RFE #827755 and #799831
7448         * src/SDCC.y
7449         * src/SDCCicode.c
7450         * src/SDCCopt.c
7451         * src/SDCCast.c
7452         * support/Util/SDCCerr.c
7453         * support/Util/SDCCerr.h
7454         * src/mcs51/gen.c
7455         * src/ds390/gen.c
7456         * src/hc08/gen.c
7457
7458 2003-10-19  Borut Razem <borut.razem AT siol.net>
7459
7460         * src/SDCC.lex: fixed bug #825944 - defined yytext_ptr to make it compile with flex 2.5.31
7461
7462 2003-10-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7463
7464         * src/SDCCicode.c (geniCodePreInc, geniCodePreDec, ast2iCode):
7465         Fixed bug #818696
7466         * src/SDCCast.c (ast_print): Fixed --dumptree so that preincrement
7467         and predecrement operand is displayed
7468
7469 2003-10-13 Bernhard Held <bernhard AT bernhardheld.de>
7470
7471         * src/SDCCval.c (valMinus): fixed bug #826041
7472
7473 2003-10-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7474
7475         Some hc08 related updates that I missed earlier
7476         * sim/ucsim/stypes.h
7477         * support/regression/ports/hc08/spec.mk
7478
7479 2003-10-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7480
7481         New target "hc08" for the Motorola 68hc08 family of micros
7482
7483         * configure
7484         * configure.in
7485         * Makefile
7486         * src/hc08/*
7487         * src/SDCCmain.c
7488         * src/port.h
7489         * sim/ucsim/hc08.src/*
7490         * sim/ucsim/configure.in
7491         * src/ucsim/configure
7492         * sim/ucsim/packages_in.mk
7493         * as/hc08/*
7494         * as/Makefile
7495         * device/include/mc68hc908qy.h
7496         * device/lib/hc08/*
7497         * device/lib/Makefile.in
7498         * support/regression/ports/hc08/*
7499         * support/regression/Makefile
7500
7501 2003-10-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7502
7503         * src/z80/gen.c: fixed bug revealed by ast_constant_folding.c
7504         regression test
7505         * src/ds390/gen.c (genCast): fixed bug #821957
7506
7507 2003-10-13 Bernhard Held <bernhard AT bernhardheld.de>
7508
7509         * device/lib/logf.c: "fixed" overlay bug
7510         * support/regression/ports/host/spec.mk: added m library
7511         * support/regression/ports/mcs51-stack-auto/spec.mk: added float funcs
7512         * support/regression/tests/float_trans: added (for Eric)
7513
7514 2003-10-12 Bernhard Held <bernhard AT bernhardheld.de>
7515
7516         * src/mcs51/gen.c (genCpl): fixed bug
7517         http://sf.net/mailarchive/message.php?msg_id=6263915
7518
7519 2003-10-10 Bernhard Held <bernhard AT bernhardheld.de>
7520
7521         * src/SDCCast.c (decorateType): added extended constant folding
7522         * src/SDCCsymt.c (computeType): cleanup
7523         * src/SDCCval.c (valShift): minor optimization
7524         * support/regression/tests/ast_constant_folding.c: added
7525
7526 2003-10-09  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7527
7528         * src/SDCCmain.c: removed some unintended changes
7529
7530 2003-10-09  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7531
7532         * src/SDCCmain.c (setParseWithComma): fixed bug #816685
7533         * src/z80/gen.c: fixed part of bug #817589
7534         * src/SDCCsymt.c (checkFunction): fixed bug #817895
7535
7536 2003-10-08 Bernhard Held <bernhard AT bernhardheld.de>
7537
7538         Replaced cast (void **) with (void *) to avoid gcc 3 warning:
7539         * src/SDCCcflow.c
7540         * src/SDCCcse.c
7541         * src/SDCCdflow.c
7542         * src/SDCClabel.c
7543         * src/SDCClrange.c
7544         * src/SDCCmem.c
7545         * src/SDCCopt.c
7546         * src/SDCCpeeph.c
7547         * src/SDCCset.c
7548         * src/avr/ralloc.c
7549         * src/ds390/ralloc.c
7550         * src/izt/ralloc.c
7551         * src/mcs51/ralloc.c
7552         * src/pic/ralloc.c
7553         * src/pic16/ralloc.c
7554         * src/xa51/ralloc.c
7555         * src/z80/ralloc.c
7556         * src/z80/gen.c: removed unused label "release:"
7557
7558 2003-10-06  Borut Razem <borut.razem AT siol.net>
7559
7560         * src/SDCC.lex: removed definition of unused variables
7561           save_optimize and save_options
7562
7563 2003-10-06 Bernhard Held <bernhard AT bernhardheld.de>
7564
7565         * clean.mk: removed '=' in "-maxdepth=1"
7566         * src/SDCCloop.c: replace LRKLAUS with SDCC_LRKLAUS
7567         * src/SDCClrange.c: replace LRKLAUS with SDCC_LRKLAUS
7568
7569 2003-10-06  Borut Razem <borut.razem AT siol.net>
7570
7571         * src/SDCC.lex, src/SDCC.lex: use dbuf for "_asm" definitions;
7572           my_unput() replaced by unput()
7573
7574 2003-10-05 Bernhard Held <bernhard AT bernhardheld.de>
7575
7576         * src/SDCCloop.c (assignmentsToSym, loopInduction): cast argument of
7577         setToNull() to (void *) to avoid gcc3.x's warning: "dereferencing
7578         type-punned pointer will break strict-aliasing rules"
7579         Old LR behaviour is again default; Klaus' LR can be choosen by
7580         defining the environment variable LRKLAUS
7581         * src/SDCCBBlock.h
7582         * src/SDCCloop.c
7583         * src/SDCClrange.c
7584         * src/ds390/ralloc.c (spillThis): applied Klaus' patch
7585         * clean.mk: fixed removal of files in bin/CVS/
7586         * device/lib/clean.mk: fixed removal of directories small and large
7587         * support/Util/SDCCerr.c: changed W_INT_OVL to ERROR_LEVEL_PEDANTIC
7588         * src/SDCCicode.c,
7589         * src/SDCCval.c: removed superflous test for pedantic
7590
7591 2003-10-05  Borut Razem <borut.razem AT siol.net>
7592
7593         * src/SDCC.lex, support/Util/SDCCerr.c, sdcc/support/Util/SDCCerr.h:
7594           Fixed bug #816692: introduced new ERROR_LEVEL_PEDANTIC warning
7595           message "unmatched #pragma SAVE and #pragma RESTORE"
7596
7597 2003-10-04  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7598
7599         * doc/sdccman.lyx: various additions and updates (interrupts, inline
7600           assembly, critical functions, atomic, nojtbound)
7601
7602 2003-10-04 Bernhard Held <bernhard AT bernhardheld.de>
7603
7604         Applied liferange patch from Klaus Flittner <klaus_flittner AT gmx.de>
7605         * src/SDCCBBlock.h
7606         * src/SDCCloop.c
7607         * src/SDCCloop.h
7608         * src/SDCClrange.c
7609
7610 2003-10-03  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7611
7612         * src/z80/gen.h,
7613         * src/z80/gen.c (aopOp, aopGet, aopPut, genDummyRead),
7614         * src/mcs51/gen.h
7615         * src/mcs51/gen.c (aopOp, aopGet, aopPut, genDummyRead),
7616         * src/ds390/gen.h
7617         * src/ds390/gen.c (aopOp, aopGet, aopPut, genDummyRead),
7618         * src/SDCCicode.c (ast2iCode, geniCodeDummyRead): Fixed bug #663539
7619         * src/SDCCopt.c (killDeadCode): Fixed bugs #663539 & #816705
7620
7621 2003-10-02  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7622
7623         * src/z80/gen.c (genRet): fixed bug #524753
7624         * src/z80/gen.c (genCast): fixed internal error on cast from
7625         pointer to long
7626         * src/z80/gen.c (_saveRegsForCall, emitCall): adapted Johan's
7627         fix for bug #477835 to the z80
7628         * src/z80/gen.c (genZ80code, _vemit2, _emit2): added support
7629         for tracking iCodes in the peephole optimizer for z80
7630
7631 2003-10-01  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7632
7633         * src/SDCCicode.c (geniCodeJumpTable, geniCodeSwitch): fixed
7634         the other part of bug #814548
7635         * src/SDCCpeeph.c (labelInRange): fixed bug #814558
7636
7637 2003-09-30  Bernhard Held <bernhard AT bernhardheld.de>
7638
7639         * src/SDCCcse.c: fixed part of bug #814548
7640
7641 2003-09-28  Borut Razem <borut.razem AT siol.net>
7642
7643         * src/asm.c: rewrite of printILine() to use temporary file instead
7644           a pipe
7645         * src/xa51/main.c: commented out declaration of int rewinds
7646
7647 2003-09-27  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7648
7649         * src/SDCCicode.c (geniCodeJumpTable): Fixed bug #813206
7650
7651 2003-09-26  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7652
7653         * src/SDCCdflow.c (computeDataFlow): Fixed bug #810746
7654         * src/asm.c (printILine): Fixed bug #811015
7655
7656 2003-09-22  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7657
7658         *link/z80/lklibr.c, as/mcs51/lklibr.c: Improved memory allocation and
7659         freeing.
7660
7661 2003-09-21  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7662
7663         * src/z80/gen.c (setupToPreserveCarry): Fixed bug #796955
7664         * src/z80/gen.c (setupPair, genMovePairPair): Fixed setupPair
7665         to correctly handle general case of AOP_PAIRPTR
7666         * src/z80/gen.c (aopGet, aopPut): Generalized AOP_PAIRPTR handling
7667
7668 2003-09-21  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7669
7670         * src/mcs51/ralloc.c (fillGaps),
7671         * src/ds390/ralloc.c (fillGaps): fixed bug #810093 (yet another
7672         register positioning bug)
7673
7674 2003-09-21  Bernhard Held <bernhard AT bernhardheld.de>
7675
7676         * device/lib/_fsdiv.c: replaced (1<<31) by (1ul<<31)
7677
7678 2003-09-19  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7679
7680         * src/mcs51/gen.c (loadDptrFromOperand, genFarPointerGet,
7681         genCodePointerGet, genGenPointerGet, genFarPointerSet,
7682         genGenPointerSet): handle AOP_DPTR correctly when loading dptr
7683         (ralloc doesn't intentionally do this now, but perhaps later)
7684         * src/mcs51/ralloc.c (serialRegAssign, fillGaps),
7685         * src/ds390/ralloc.c (serialRegAssign, fillGaps): fixed some
7686         register positioning bugs (Fixed bug #762602 and #795325)
7687         * src/SDCCicode.c (geniCodeDerefPtr): Track output class correctly
7688         (Fixed bug #808779)
7689         * src/z80/gen.c: increased _vemit2's buffer[] to handle long
7690         lines that --i-code-in-asm generates
7691
7692 2003-09-18  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7693
7694         *link/z80/lklibr.c, as/mcs51/lklibr.c: Fixed Linux segfaults when
7695         trying to fclose a FILE* that was already closed.
7696
7697 2003-09-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7698
7699         * src/SDCCsymt.c (structElemType): fixed bug #808291 (members
7700         of const struct should be treated as if const themselves)
7701
7702 2003-09-18  Bernhard Held <bernhard AT bernhardheld.de>
7703
7704         * src/SDCCval.c (valPlus, valMinus): fixed bug #808337
7705
7706 2003-07-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7707
7708         * support/librarian/sdcclib.c: Generate correct offsets for libraries with
7709         Unix (/n) and DOS (/r/n) line terminations.
7710
7711 2003-09-17  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7712
7713         * src/SDCCopt.c (cnvFromFloatCast, cnvToFloatCast): fixed
7714         bug #613775
7715
7716 2003-09-16  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7717
7718         * src/mcs51/gen.c (genFunction, genEndFunction),
7719         * src/ds390/gen.c (genFunction, genEndFunction): Moved save
7720         and restore of EA so that stack offsets to parameters are
7721         correct when using both critical and reentrant/stack-auto.
7722         * src/z80/gen.c (aopOp): removed erroneous assertion about sloc
7723         size (can be triggered in error if sloc is shared between
7724         different sized objects)
7725         * device/include/float.h: fixed macros to explicitly use
7726         unsigned long where needed
7727
7728 2003-09-15  Bernhard Held <bernhard AT bernhardheld.de>
7729
7730         Feature req. 799831: added code to allow nesting of critical functions
7731         * src/mcs51/gen.c (genFunction, genEndFunction)
7732         * src/ds390/gen.c (genFunction, genEndFunction)
7733
7734 2003-09-14  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7735
7736         * src/SDCCsymt.c (sclsFromPtr),
7737         * src/SDCCsymt.h,
7738         * src/SDCCast.c (decorateType): fixed bug #462971. Also, better
7739         support for standard C idiom of memory mapped variables; for
7740         example, *((xdata int*)0x1234) = 1 is now internally equivalent
7741         to xdata int at 0x1234 tempvar = 1.
7742         * sim/ucsim/z80.src/inst_xd.cc: fixed bug #805483 with patch
7743         provided by Akiya ISHIDA
7744
7745 2003-09-13  Bernhard Held <bernhard AT bernhardheld.de>
7746
7747         * src/SDCCval.c (cheapestVal): reenabled to reduce int to char
7748         * src/SDCCval.c (constVal): added reduction from int to char
7749         * src/SDCCval.c (valMult, valDiv): fixed sign handling
7750         * src/SDCCval.c (valShift): fixed after change of cheapestVal()
7751         * src/SDCCval.c (valCompare): fixed EQ_OP and NE_OP; they have
7752         to ignore the sign
7753         * support/regression/tests/shifts.c: fixed
7754
7755 2003-09-13  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7756
7757         * src/z80/gen.c (genXor): Fixed bug #805445
7758
7759 2003-09-12  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7760
7761         Fixed bug #621531 (const & volatile confusion in the type chain).
7762         DCL_PTR_CONST, DCL_PTR_VOLATILE, & IS_PTR_CONST now exclusively
7763         refer to the const or volatile state of the pointer itself.
7764
7765         * src/SDCCast.c
7766         * src/SDCCglue.c
7767         * src/SDCCicode.c
7768         * src/SDCCsymt.c
7769         * src/SDCCval.c
7770         * src/SDCC.y
7771         * src/SDCCsymt.h
7772         * src/pic/gen.c
7773         * src/pic/ralloc.c
7774         * src/pic16/gen.c
7775         * src/pic16/ralloc.c
7776         * support/regression/tests/const.c
7777
7778 2003-09-10  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7779
7780         When checking for duplicated modules, use absolute paths
7781         instead of relative paths.  Files changed:
7782
7783         * as/mcs51/lklib.c
7784         * link/z80/lklib.c
7785
7786 2003-09-09  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7787
7788         * src/SDCCicode.c (geniCodeLogic): fixed bug #797572
7789
7790 2003-09-07  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7791
7792         * device/include/string.h: added size_t typedef, changed
7793         prototypes to use size_t, eliminated separate reentrant and
7794         non-reentrant declarations, added _memmove declaration
7795         * device/lib/_memcpy.c: changed to use size_t instead of int,
7796         changed /4 to >>2 to avoid division library call
7797         * device/lib/_memcmp.c,
7798         * device/lib/_memset.c,
7799         * device/lib/_strncat.c,
7800         * device/lib/_strncpy.c,
7801         * device/lib/_strncmp.c: changed to use size_t instead of int
7802         * device/lib/_memmove.c: new file (fixed bug #772294)
7803         * device/lib/Makefile.in: added _memmove.c
7804         * device/lib/z80/asm_strings.s: fixed bug #772290
7805         * support/regression/tests/bitfields.c: attempt to fix host assertion
7806         failure on amd64-unknown-linux2.2
7807
7808 2003-09-06  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7809
7810         * src/z80/gen.c (aopPut, spillPairReg): fixed bug #800998
7811         * src/z80/gen.c (genFunction, genEndFunction): fixed "bug" #774700
7812         * as/z80/asmain.c (main): fixed bug #801766
7813
7814 2003-09-06  Bernhard Held <bernhard AT bernhardheld.de>
7815
7816         * src/SDCCicode.c (ast2iCode): fixed differences in iCode with different
7817         compilers
7818
7819 2003-09-05  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7820
7821         * src/SDCCast.c (isConformingBody): fixed loop reversal bug
7822         reported in bug #800609
7823
7824 2003-09-04  Vangelis Rokas <vrokas AT otenet.gr>
7825
7826         * Top header beautifications in src/pic16 directory:
7827           device.c, device.h, gen.c, gen.h, genarith.c, glue.c, pcode.c,
7828           pcodeflow.c, pcodeflow.h, pcode.h, pcodepeep.c, pcoderegs.c,
7829           pcoderegs.h, ralloc.c, ralloc.h
7830         * main.c: added top header and GPL license notice
7831         * pcode.c: fixed the if-conditional warning
7832
7833 2003-09-04  Bernhard Held <bernhard AT bernhardheld.de>
7834
7835         * device/lib/_mullong.c: replaced int by short for gcc
7836
7837 2003-08-31  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7838
7839         * src/SDCCpeeph.c (notVolatile, notVolatileVariable): handle IFX
7840         and JUMPTABLE iCodes properly now (worked by accident before)
7841         * src/mcs51/gen.c (leftRightUseAcc),
7842         * src/ds390/gen.c (leftRightUseAcc): handle IFX and JUMPTABLE
7843         iCode properly now. Use getSize instead of nRegs since a & b
7844         aren't part of the nRegs tally.
7845
7846 2003-08-31  Vangelis Rokas <vrokas AT otenet.gr>
7847
7848         * src/pic16/main.c: corrected offsets of interrupt vectors in _pic16_genIVT()
7849         * src/pic16/pcode.c: fix to disable inserting BANKSEL directive
7850           before instructions that use the _STATUS register
7851
7852 2003-08-31  Bernhard Held <bernhard AT bernhardheld.de>
7853
7854         * src/mcs51/gen.c (freeAsmop): fixed off by one in stack offset (AOP_STK)
7855         * src/mcs51/gen.c (genNearPointerSet): added missing opcode for
7856         fetching of the pointer
7857         * src/mcs51/gen.c (genNearPointerGet): added reuse of PREG,
7858         copied from genNearPointerSet()
7859         * src/mcs51/gen.c (genNearPointerGet): don't pop r0/r1, if RESULTONSTACK
7860         * src/mcs51/gen.c: changed order of freeAsmop(left/right/result)-calls.
7861         If they pop r0/r1 they must be called in the opposite order than aopOp().
7862         * device/lib/_mullong.c: fixed for "--model-large --int-long-reent"
7863         (resp. --stack-auto), prepared for --xstack
7864
7865 2003-08-28  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7866
7867         * doc/sdccman.lyx: reverted tables to those in cvs 1.64
7868
7869 2003-08-28  Bernhard Held <bernhard AT bernhardheld.de>
7870
7871         * device/lib/_startup.c: quick & dirty fix for ds390/ds400;
7872         these ports have their own __sdcc_external_start()
7873
7874 2003-08-26  Bernhard Held <bernhard AT bernhardheld.de>
7875
7876         pic patch provided by Slade Rich <slade_rich AT yahoo.com>
7877         * src/pic/glue.c (pic14printPublics): fixed bug introduced when symbol
7878         type for bits was changed. It resulted in bit variables becoming
7879         global, which is not permitted in PIC 14 assembly output.
7880
7881 2003-08-23  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7882
7883         * doc/sdccman.lyx: various additions and updates. Rearranged sections
7884
7885 2003-08-22  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7886
7887         Z80 and MCS51 linkers complaint if a public symbol is defined
7888         in more than one library module:
7889
7890         * as/mcs51/lklib.c
7891         * link/z80/lklib.c
7892         * as/mcs51/Makefile.in
7893
7894 2003-08-22  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7895
7896         A few small changes that speed up the peephole optimizer.
7897
7898         * src/SDCCpeeph.c
7899
7900 2003-08-22  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7901
7902         Try to make the peephole optimizer smarter by maintaining
7903         an association between the assembly source code and the
7904         iCodes that originated them. Put this information to use
7905         with a new peephole rule condition "notVolatile" so that
7906         the rules can be aggressive yet still safe.
7907
7908         * src/SDCCpeeph.c
7909         * src/SDCCpeeph.h
7910         * src/mcs51/gen.c
7911         * src/mcs51/peeph.def
7912
7913 2003-08-20  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7914
7915         Fixed bug #741761
7916
7917         * src/mcs51/gen.c (aopForSym, leftRightUseAcc),
7918         * src/ds390/gen.c (aopForSym, leftRightUseAcc): preserve A and B
7919         if the left or right operand symbols have the accuse flag set.
7920
7921 2003-08-20  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7922
7923         Changed the type of the result of the ! (NOT) operator to char;
7924         previously it returned the same type as the source. This allows
7925         us to eliminate all the genFloatNot functions (all of its target
7926         implementations were very buggy) since !float can use the same
7927         code as !long now.
7928
7929         * src/SDCCicode.c (ast2iCode): ! returns char
7930         * src/mcs51/gen.c (genNot, genNotFloat),
7931         * src/ds390/gen.c (genNot, genNotFloat),
7932         * src/z80/gen.c (genNot, genNotFloat),
7933         * src/pic/gen.c (genNot, genNotFloat),
7934         * src/pic16/gen.c (genNot, genNotFloat): eliminated genNotFloat
7935
7936 2003-08-19  Bernhard Held <bernhard AT bernhardheld.de>
7937
7938         pic patch provided by Slade Rich <slade_rich AT yahoo.com>
7939         1. Interrupt would not compile properly. Ensure PCLATH register is saved
7940            during interrupts. Ensure WSAVE is located at a shared bank address.
7941         2. Fixed page selection in some places
7942         3. Fixed BTFSS/C to where necessary use registers directly and not simply
7943            the registers name strings.
7944         4. Fixed "signed / unsigned compare" compiler warnings.
7945         5. The PIC port manages its own allocation of the general purpose
7946            registers, but makes no attempt to reuse them. As a result when
7947            compiling it soon runs out of general purpose registers. Some
7948            additional code was added to the files pcode.c and device.c to walk
7949            through the function call tree and rename the registers so that they
7950            get reused.
7951
7952         * src/pic/device.c
7953         * src/pic/gen.c
7954         * src/pic/glue.c
7955         * src/pic/pcode.c
7956         * src/pic/pcode.h
7957         * src/pic/ralloc.c
7958         * src/pic/ralloc.h
7959         * src/pic/genarith.c: Fixed problems with PIC 14 port in functions
7960         genPlus() & genMinus() when the result is the same as left or right
7961
7962 2003-08-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7963
7964         * src/z80/gen.c (isUnsplitable, fetchPairLong): fixed bug #770454
7965
7966 2003-08-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7967
7968         Made bitfield a distinct type from bit so that bitfields
7969         convert as per ANSI C and bits retain their traditional
7970         boolean style behaviour. Implemented bitfield support in
7971         the z80 port.
7972
7973         * src/SDCCsymt.h,
7974         * src/SDCCsymt.c,
7975         * src/SDCCast.c,
7976         * src/cdbFile.c,
7977         * src/mcs51/gen.c,
7978         * src/ds390/gen.c: bit v bitfield split
7979         * src/z80/gen.c: New support for bitfields
7980         * support/regression/tests/bitfields.c: reenabled z80,
7981         added more tests
7982
7983 2003-08-17  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7984
7985         Rules 246.x, 247.x relate to bitfields, the others speed up
7986         access to xdata mapped I/O devices.
7987
7988         * src/mcs51/peeph.def: added 26 peepholes 246.x - 248.x, 180.x
7989
7990 2003-08-16  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7991
7992         Cleaned up genPackBits and genUnpackBits and added two helper
7993         functions, emitPtrByteGet & emitPtrByteSet. Added optimizations
7994         for literal assignments in genPackBits (thanks to Frieder for
7995         reminding me).
7996
7997         * src/mcs51/gen.c
7998         * src/ds390/gen.c
7999
8000 2003-08-16  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8001
8002         Fixed bug #748310 (pointer to function type mishandled when the
8003         function name is omitted). Also fixed a SIGSEGV when a function
8004         attribute (reentrant, etc) is used on a non-function or on a
8005         function but misplaced before the parameter list.
8006
8007         * src/SDCC.y (abstract_declarator, abstract_declaractor2): fixed
8008         bug #748310
8009         * src/SDCC.y (declarator2_function_attributes): avoided SIGSEGV
8010         * support/Util/SDCCerr.h,
8011         * support/Util/SDCCerr.c: Added func attr misuse error msg
8012
8013 2003-08-13  Bernhard Held <bernhard AT bernhardheld.de>
8014
8015         Fixed bug #787649 by anonymous
8016         * src/SDCCglue.c (emitRegularMap): added emission of sloc for func ptr
8017         * src/ds390/gen.c (aopForSym): fixed func ptr in sloc
8018
8019 2003-08-14  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8020
8021         Fixed numerous bitfield problems.
8022
8023         * src/SDCC.y: More bitfield related error checking
8024         * src/SDCCsymt.h,
8025         * src/SDCCsymt.c (compStructSize): fixed bitfield offset calc
8026         * support/Util/SDCCerr.h,
8027         * support/Util/SDCCerr.c: Added & edited some bitfield err msgs
8028         * src/mcs51/gen.c (genPackBits, genUnpackBits): fixed mask bugs
8029         * src/ds390/gen.c (genPackBits, genUnpackBits): fixed mask bugs
8030         * support/regression/tests/bitfields.c: tests added
8031
8032 2003-08-13  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8033
8034         Made the constant following the "interrupt" keyword optional. If
8035         omitted, the function will not automatically be given an entry
8036         in the interrupt vector table (similar to #pragma NOIV, but
8037         less syntacticly kludgy). The interrupt number is also now
8038         range checked. Also fixed a bug in the high order bit example
8039         in the manual.
8040
8041         * src/SDCC.y
8042         * src/SDCCmem.c
8043         * src/SDCCglue.c
8044         * src/SDCCsymt.h
8045         * support/Util/SDCCerr.c
8046         * support/Util/SDCCerr.h
8047         * doc/sdccman.lyx
8048
8049 2003-08-13  Bernhard Held <bernhard AT bernhardheld.de>
8050
8051         * src/SDCCcse.c (algebraicOpts): fix bug converting op from value to type
8052         * src/SDCCicode.c (operandOperation): rewritten some ops
8053         (*, ==, unary_minus) to fix possible overflows and to accord with ANSI
8054         * src/SDCCsymt.c (computeType): literals are handled the same way as any
8055         other type
8056         * src/SDCCval.c (cheapestVal): removed, it doesn't accord with ANSI (can
8057         be re-activated by defining REDUCE_LITERALS)
8058         * src/SDCCval.c (constVal): fixed; hex and octal constants can be
8059         unsigned, but are signed by default
8060         * src/SDCCval.c (constVal): rearranged
8061         * src/SDCCval.c (valMod): preliminary fix
8062         * src/SDCCval.c (valCastLiteral): use TYPE_* types
8063         * support/regression/literalop.c: added, work in progress
8064
8065 2003-08-12  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8066
8067         Generate warnings for useless declarations like "char data;"
8068         that don't do what new users expect.
8069
8070         * src/SDCC.y
8071         * support/Util/SDCCerr.h
8072         * support/Util/SDCCerr.c
8073
8074 2003-08-09  Bernhard Held <bernhard AT bernhardheld.de>
8075
8076         * src/SDCCval.c (valMult): fix overflow detection of negative int
8077
8078 2003-08-07  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8079
8080         * src/z80/ralloc.c (joinPushes): made compatible with new signedness
8081
8082         Changes to support big endian targets:
8083
8084         * src/ports.h
8085         * src/SDCCglue.c
8086         * src/avr/main.c
8087         * src/ds390/main.c
8088         * src/izt/i186.c
8089         * src/mcs51/main.c
8090         * src/pic/main.c
8091         * src/pic16/main.c
8092         * src/xa51/main.c
8093         * src/z80/main.c
8094
8095 2003-08-06  Bernhard Held <bernhard AT bernhardheld.de>
8096
8097         * src/SDCCval.c (cheapestVal): changed behaviour to the same as constVal()
8098         * device/lib/time.c: fixed warning "integer overflow in expression"
8099
8100 2003-08-05  Bernhard Held <bernhard AT bernhardheld.de>
8101
8102         * src/SDCCval.c (cheapestVal, valueFromLit): use TYPE_* types
8103         * src/SDCCval.c (constVal): changed default to signed; hex and octal
8104         constants are unsigned; added recognition of "u" flag for unsigned
8105         * src/SDCCval.c (valMult): fixed signdness, added warning for overflow
8106         * src/SDCCval.c (valDiv, valMod): fixed signdness
8107         * src/SDCCicode.c (operandOperation): fixed critical typo; fixed
8108         signedness of modulo, left and right shift
8109         * support/Util/SDCCerr.c: added warning "integer overflow in expression"
8110         * support/Util/SDCCerr.h: added warning W_INT_OVL
8111         * src/SDCCast.c (decorateType): fixed gcc3.3 warning
8112         * src/SDCCast.c (ast_print): improved output of constants
8113
8114 2003-08-04  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8115
8116         Fixed some warnings when building with MSVC:
8117
8118         * as\mcs51\asdata.c
8119         * as\z80\asdata.c
8120         * as\mcs51\asm.h
8121         * as\z80\asm.h
8122         * link\z80\aslink.h
8123         * link\z80\lkdata.c
8124         * link\z80\lkeval.c
8125         * link\z80\lkgb.c
8126         * link\z80\lkihx.c
8127         * link\z80\lks19.c
8128         * link\z80\lksym.c
8129         * support\cpp2\cpplib.c
8130         * src\ds390\gen.c
8131         * src\mcs51\gen.c
8132
8133 2003-08-03  Bernhard Held <bernhard AT bernhardheld.de>
8134
8135         * src/SDCCast.c (constExprTree): fix bug #781827 by Carl Worth <cworth AT isi.edu>
8136
8137 2003-08-01  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8138
8139         * support\librarian\clean.mk: Do not remove Makefile.
8140         * support\librarian\Makefile: added.
8141
8142 2003-08-01  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8143
8144         Added librarian to MSVC build:
8145         * all.dsp
8146         * sdcc.dsw
8147         * support\librarian\librarian.dsp
8148
8149         'configure' not needed for librarian, removed:
8150         * support\librarian\configure
8151         * support\librarian\configure.in
8152         * support\librarian\config_in.h
8153         * support\librarian\Makefile.in
8154
8155         Hopefully these ones built the librarian and the rest of sdcc properly:
8156         * Makefile
8157         * Makefile.common.in
8158
8159         Messed up 'configure', so revert to previous version:
8160         * configure
8161         * configure.in
8162
8163 2003-07-31  Bernhard Held <bernhard AT bernhardheld.de>
8164
8165         * src/SDCCicode.c (operandOperation): 3. fix, this time for Alpha; ULONG has 64 bits
8166         there, while the mantissa of a double is "only" 53 bits wide.
8167
8168 2003-07-31  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8169
8170         Adding sdcclib to the build.  MSVC project coming soon.
8171         Files added/changed:
8172
8173         * support\librarian\clean.mk
8174         * support\librarian\configure
8175         * support\librarian\configure.in
8176         * support\librarian\config_in.h
8177         * support\librarian\Makefile.bcc
8178         * support\librarian\Makefile.in
8179         * support\librarian\sdcclib.c
8180         * Makefile.bcc
8181         * Makefile
8182         * Makefile.common.in
8183         * configure
8184         * configure.in
8185
8186 2003-07-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8187
8188         Linker now complaints if linked modules have conflicting options, for
8189         example, one compiled using --model-large and another one compiled with
8190         --model-small.  The following files were modified:
8191
8192         * as\mcs51\asdata.c
8193         * as\mcs51\aslink.h
8194         * as\mcs51\asm.h
8195         * as\mcs51\asmain.c
8196         * as\mcs51\asout.c
8197         * as\mcs51\i51pst.c
8198         * as\mcs51\lkdata.c
8199         * as\mcs51\lklibr.c
8200         * as\mcs51\lkmain.c
8201         * as\z80\asdata.c
8202         * as\z80\asm.h
8203         * as\z80\asmain.c
8204         * as\z80\asout.c
8205         * as\z80\z80pst.c
8206         * link\z80\aslink.h
8207         * link\z80\lkdata.c
8208         * link\z80\lklibr.c
8209         * link\z80\lkmain.c
8210         * src\SDCCglue.c
8211
8212 2003-07-28  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8213
8214         *link/z80/aslink.h, link/z80/lklibr.c, as/mcs51/aslink.h,
8215         as/mcs51/lklibr.c: Generate a warning when a library is not found.
8216
8217 2003-07-28  Bernhard Held <bernhard AT bernhardheld.de>
8218
8219         * src/z80/mappings.i: fix _mul[us][int,long] entries
8220
8221 2003-07-26  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8222
8223         *src/SDCCmain.c: do not search for crt0.o when using --nostdlib
8224
8225 2003-07-24  Bernhard Held <bernhard AT bernhardheld.de>
8226
8227         * src/SDCCicode.c (operandOperation): really fixed problem with bitops
8228         * support/regression/tests/bitopcse.c: added
8229         fixed warning:
8230         * src/avr/gen.c:
8231         * src/pic/gen.c:
8232         * src/pic16/gen.c:
8233         * src/z80/gen.c:
8234         * src/xa51/gen.c:
8235
8236 2003-07-24  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8237
8238         added support for new library format to z80, gbz80 linkers:
8239         *link/z80/aslink.h
8240         *link/z80/lklex.c
8241         *link/z80/lklib.c
8242         *link/z80/lklist.c
8243
8244 2003-07-24  Bernhard Held <bernhard AT bernhardheld.de>
8245
8246         * src/SDCCicode.c (operandOperation): fixed problem with bitops and 0xffffffff;
8247         after {double d = 0xffffffff; long l = d;} l will be 0x80000000 (LONG_MIN)
8248
8249 2003-07-23  Bernhard Held <bernhard AT bernhardheld.de>
8250
8251         added DUMMY_READ_VOLATILE:
8252         * src/SDCC.y:
8253         * src/avr/gen.c:
8254         * src/xa51/gen.c:
8255         * src/z80/gen.c:
8256         * src/pic/gen.c:
8257         * src/pic16/gen.c:
8258         * src/mcs51/gen.c:
8259         * src/ds390/gen.c:
8260         * src/SDCCcse.c (algebraicOpts): many improvements
8261         * src/SDCCcse.h: removed algebraicOpts()
8262         * src/SDCCicode.c (picDummyRead): added
8263
8264 2003-07-23  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8265
8266         * as/mcs51/lkmem.c: Changed message "Insufficient DRAM memory" to
8267         "Insufficient space in data memory".
8268
8269 2003-07-20  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8270
8271         * src/mcs51/gen.c: fixed bug #771358
8272         * src/z80/gen.c: fixed bug #759087
8273
8274 2003-07-20  Bernhard Held <bernhard AT bernhardheld.de>
8275
8276         * src/pic16/glue.c: minor cleanup by Vangelis
8277
8278 2003-07-19  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8279
8280         * device/include/regc515c.h: fixed #758477
8281         * device/lib/_gptrget.c: saving some cycles in generic pointer get
8282         * device/lib/_gptrput.c: saved a few bytes
8283         * my tab spacing is 8, yours too?)
8284         * device/lib/_ser.c: process RX bytes earlier than TX bytes
8285         * device/lib/serial.c: process RX bytes earlier than TX bytes
8286         * src/mcs51/gen.c(genGenPointerGet/Set): removed writing of type after postincrement
8287
8288 2003-07-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8289
8290         * src/z80/gen.c: fixed some right shift bugs (#772726 among them)
8291
8292 2003-07-17  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8293
8294     * link/z80/lklibr.c: fixed bug when there is a '.' in a library path.
8295
8296 2003-07-17  Bernhard Held <bernhard AT bernhardheld.de>
8297
8298         * device/lib/Makefile.in: bad fix, reverted to 1.43
8299
8300 2003-07-16  Bernhard Held <bernhard AT bernhardheld.de>
8301
8302         * device/lib/Makefile.in: added missing z80 object files
8303
8304 2003-07-14  Bernhard Held <bernhard AT bernhardheld.de>
8305
8306         * src/SDCCcse.c (algebraicOpts): CSE fun with &|^ and 0x00/0xff literals
8307         pic16 progress by Vangelis:
8308         * src/SDCCglobl.h:
8309         * src/SDCCmain.c:
8310         * src/pic/Makefile:
8311         * src/pic:
8312         * pic/Makefile:
8313         * pic16/device.c:
8314         * pic16/device.h:
8315         * pic16/gen.c:
8316         * pic16/gen.h:
8317         * pic16/genarith.c:
8318         * pic16/glue.c:
8319         * pic16/main.c:
8320         * pic16/pcode.c:
8321         * pic16/pcode.h:
8322         * pic16/pcodepeep.c:
8323         * pic16/peeph.def:
8324
8325 2003-07-13  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8326
8327     * src/SDCCmain.c, src/SDCCglobl.h: added option --no-std-crt0
8328
8329 2003-07-12  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8330
8331     * sdcc.dsw, all.dsp, link/z80/linkgbz80.dsp, as/z80/as-gbz80.dsp:
8332     added gbz80 build to MSVC project.
8333     * src/SDCCmain.c, src/SDCCglue.c, src/z80/main.c, src/z80/z80.dsp,
8334     link/z80/aslink.h, linkz80.dsp: cleaned up z80 and gbz80 asm files
8335     from 8051 stuff and setup so it links using a .lnk file.
8336
8337 2003-07-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8338
8339     * support/librarian/sdcclib.c: sdcc librarian.
8340     * as/mcs51/aslink.h, as/mcs51/lklib.c: Support for libraries created
8341     with sdcclib.
8342
8343 2003-07-03  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8344
8345     * as/mcs51/lkmain.c: properly handle extensions in function afile.
8346
8347 2003-07-02  Borut Razem <borut.razem AT siol.net>
8348
8349         * src/port.h, src/SDCCmain.c, src/pic/glue.h, src/pic/main.c,
8350         src/pic16/glue.h, sdcc/src/pic16/main.c, src/izt/i186.c,
8351         src/izt/tlcs900h.c, src/avr/main.c, src/ds390/main.c, src/mcs51/main.c,
8352         src/xa51/main.c, src/z80/main.c:
8353         virtualization of glue() function: each port has it's own glue function,
8354         which is accessed by do_glue function pointer in PORT.general structure
8355
8356 2003-07-01 Kevin Vigor <kevin AT vigor.nu>
8357
8358         * DS800C400 fun, improved ROM interface and tinibios.
8359
8360 2003-06-27 Kevin Vigor <kevin AT vigor.nu>
8361
8362         * More support for DS80C400. Now includes beginning of interface to ROM.
8363
8364 2003-06-25  Bernhard Held <bernhard AT bernhardheld.de>
8365
8366         * src/mcs51/gen.c (gencjneshort): fixed bug #760345
8367
8368 2003-06-20  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8369
8370         * as/mcs51/lkaomf51.c: Make sure the size of the last procedure is correct.
8371
8372 2003-06-19  Borut Razem <borut.razem AT siol.net>
8373
8374         * src/z80/main.c: fixed Z80 port again: missing -k library paths in linker command line
8375
8376 2003-06-19  Borut Razem <borut.razem AT siol.net>
8377
8378         * src/SDCCutil.h, src/SDCCutil.c, src/SDCCglobl.h, src/SDCCmain.c, src/z80/main.c:
8379         fixed Z80 port - crt0.o: cannot open.
8380
8381 2003-06-19  Bernhard Held <bernhard AT bernhardheld.de>
8382
8383         * support/Util/MySystem.c (merge_command): revert bad fix
8384
8385 2003-06-18  Borut Razem <borut.razem AT siol.net>
8386
8387         * src/SDCC.lex, src/SDCCmain.c: fixed some warnings, introduced with changes made 15.06.1003
8388
8389 2003-06-18  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8390
8391         * src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx:
8392         option --use-stdout sends errors to stdout instead of stderr.
8393
8394 2003-06-18  Bernhard Held <bernhard AT bernhardheld.de>
8395
8396         * support/Util/MySystem.c (merge_command): quick fix for Linux segfault with \"cmd\" arg
8397
8398 2003-06-15  Borut Razem <borut.razem AT siol.net>
8399
8400         * support/cpp2/sdcc.h: HAVE_DOS_BASED_FILE_SYSTEM defined for _WIN32
8401         * src/SDCC.lex: cloneXxx and copyAndFreeXxx functions for options and optimize stack handling
8402         * src/SDCCglobl.h, src/SDCCmain.c, src/ds390/main.c, src/mcs51/main.c, src/z80/main.c:
8403         fixed width array of pointers replaced with sets;
8404         multiple include and lib paths ared transferred to preprocessor and linker
8405         * src/SDCCset.c, src/SDCCset.h: added function setFromSetNonRev() and mergeSets()
8406         * src/SDCCsymt.c: reimplemented function inCalleeSaveList() by using sets instead
8407         fixed width array of pointers
8408         * src/SDCCutil.c, src/SDCCutil.h: added functions fputStrSet(), appendStrSet(), joinStrSet();
8409         removed functions addToList(), join(), joinn(), pathCharsEquivalent(), pathCharTransform(),
8410         fixupPath(), getPathDifference()
8411         * src/ds390/gen.c, src/mcs51/gen.c: reimplemented function  inExcludeList() by using sets instead
8412         fixed width array of pointers
8413
8414 2003-06-11  Bernhard Held <bernhard AT bernhardheld.de>
8415
8416         * src/pic16/ralloc.c: fix warnings
8417         * src/pic16/pcode.c: fix warning
8418
8419 2003-06-10  Scott Dattalo  <scott AT dattalo.com>
8420
8421          Scott D. for Vangelis Rokas (vrokas AT otenet.gr). I (scott) don't
8422         know all the details, but essentially this set of changes enable
8423         the pic16 port to generate movff instructions and generate assembler
8424         directives,
8425         * src/SDCCmain.c:
8426         * src/pic16/gen.c:
8427         * src/pic16/glue.c:
8428         * src/pic16/pcode.c:
8429         * src/pic16/device.c:
8430         * src/pic16/main.c:
8431         * src/pic16/pcode.h:
8432         * src/pic16/pcoderegs.c:
8433         * src/pic16/ralloc.c:
8434         * src/pic16/ralloc.h:
8435
8436 2003-06-08  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8437
8438         * support/Util/SDCCerr.c, src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx:
8439         added option --vc, so sdcc errors and warnings are compatible with
8440         Microsoft Visual Studio.
8441
8442 2003-06-07  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8443
8444         * device/lib/_atof.c, device/lib/Makefile.in, device/include/stdlib.h,
8445           device/lib/libfloat.lib: added atof function.
8446
8447 2003-06-04  Bernhard Held <bernhard AT bernhardheld.de>
8448
8449         * doc/sdccman.lyx: updated to Lyx 1.3
8450         * doc/cdbfileformat.lyx: updated to Lyx 1.3
8451         * doc/test_suite_spec.lyx: updated to Lyx 1.3
8452         * doc/Makefile: added fix for the \tabularnewline problem, thanks to Jesus
8453
8454 2003-06-03  Bernhard Held <bernhard AT bernhardheld.de>
8455
8456         * src/SDCCpeeph.c: separate peepRules2pCode() for pic16 by "Vangelis Rokas" <vrokas AT otenet.gr>
8457
8458 2003-06-02  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8459
8460         * doc/sdccman.lyx: cvs revision keywords, passing pdf information in latex preamble,
8461           additions to the "related tools/documentation" section
8462
8463 2003-06-02  Bernhard Held <bernhard AT bernhardheld.de>
8464
8465         * src/SDCCglue.c (tempfileandname): added check for missing TMP/TEMP/TMPDIR variable
8466
8467 2003-05-29  Bernhard Held <bernhard AT bernhardheld.de>
8468
8469         * src/pic/device.c: added 16F819, patch by "David I. Lehn" <dlehn AT vt.edu>
8470         * src/SDCCcse.c (algebraicOpts): fixed "c * 1"
8471
8472 2003-05-28  Bernhard Held <bernhard AT bernhardheld.de>
8473
8474         * doc/sdccman.lyx: fix double dash and other minor things
8475         * doc/Makefile: fix double dash
8476
8477 2003-05-28  Karl Bongers(patches from Martin Helmling)
8478         * debugger/mcs51/sdcdb.c,cmd.c,break.c and .h files. Martin adds
8479           condition and ignore commands.
8480
8481 2003-05-28  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8482
8483         * doc/sdccman.lyx: Changes all over, index improved, smaller margins. The manual
8484           is in parts still quite out of date, I did changes as far as I felt makes sense
8485           for a non-native english speaker.
8486           Please feel free to add to the manual or to correct my changes.
8487         * doc/Makefile: undid touching the date of intermediate tex files.
8488
8489 2003-05-26  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8490
8491         * doc/sdccman.lyx: Manual has an index now
8492
8493 2003-05-25  Bernhard Held <bernhard AT bernhardheld.de>
8494
8495         Finalize muluint/mulsint and mululong/mulslong merging:
8496         * device/lib/_mulint.c
8497         * device/lib/_mullong.c
8498         * device/lib/gbz80/mul.s
8499         * device/lib/gbz80/stubs.s
8500         * device/lib/z80/mul.s
8501         * device/lib/z80/stubs.s
8502         * src/SDCCsymt.c (initCSupport)
8503
8504 2003-05-25  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8505
8506         * as/mcs51/lkaomf51.c: Address space 'z' was missing.
8507         * src/avr/avr.dsp, src/ds390/ds390.dsp, src/mcs51/mcs51.dsp,
8508           src/pic/pic.dsp, src/pic16/pic16.dsp, src/xa51/xa51.dsp,
8509           src/x80/z80.dsp: peep.rul is bigger now, so /Zm1000 is used
8510           instead of /Zm500.
8511
8512 2003-05-25  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8513
8514         * src/mcs51/peeph.def: added rules 244.x, 245.x. Although they pass
8515           the regression tests I'm not brave enough to enable 245.b, 245.c
8516         * doc/sdccman.lyx: added latex preamble for hyperref package.
8517           Using pdflatex this will give you a hyperlinked pdf file with
8518           bookmarks. (prepend '%' before /usepackage if this breaks something)
8519
8520 2003-05-24  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8521
8522          * doc/sdccman.lyx: updated information about .adb files (fixed bug 742649)
8523
8524 2003-05-22  Bernhard Held <bernhard AT bernhardheld.de>
8525
8526         * src/pic16/pcode.c (pic16_get_op_from_instruction): fixed a gcc 3.x warning
8527
8528 2003-05-21    <johan AT balder>
8529
8530         * src/SDCCglue.c (printIval): fixed bug #739934
8531
8532 2003-05-19  Bernhard Held <bernhard AT bernhardheld.de>
8533
8534         Applied patch from bug 737905 (renamed yylineo to mylineno):
8535         * src/altlex.c
8536         * src/SDCCast.c
8537         * src/SDCglobl.h
8538         * src/SDCC.lex
8539         * src/SDCCsymt.c
8540         * src/SDCCval.c
8541         * src/pic16/pcode.c: Cleaned warnings
8542         * src/pic16/pcodeflow.c: Cleaned warnings
8543         * src/pic16/pcoderegs.c: Cleaned warnings
8544
8545 2003-05-19  Scott Dattalo  <scott AT dattalo.com>
8546
8547         * src/pic16/pcode.c: Cleaned warnings
8548         * src/pic16/pcodepeep.c: Cleaned warnings
8549         * src/pic16/ralloc.c: Cleaned warnings
8550
8551 2003-05-19  Bernhard Held <bernhard AT bernhardheld.de>
8552
8553         * doc/sdccman.lyx: fixed bug 739745
8554         * src/pic16/pcode.c (pic16_get_op): fixed warning on alpha
8555
8556 2003-05-18  Bernhard Held <bernhard AT bernhardheld.de>
8557
8558         * src/port.h: removed DEFAULT_PORT, it's not yet pic16 ;-)
8559         it can be defined with CFLAGS when running configure
8560         * src/SDCCmain.c: fixed compiling + linking with object files
8561
8562 2003-05-18  Vangelis Rokas (vrokas AT otenet.gr)
8563
8564         * configure.in: configure for pic16 port,
8565             added --disable-pic16-port
8566         * sdccconf_in.h: added macro OPT_DISABLE_PIC16
8567         * src/SDCCmain.c: linkOptions is changed to set *,
8568             added if/endif conditional macros to remove options help
8569             messages from optionsTable when a port is not configured, added
8570             support for the PIc16 port in the ports table, when executing
8571             the compiler with no port specified on command line, a default
8572             port is selected with the new macro DEFAULT_PORT which is
8573             defined in port.h, in setDefaultOptions() linkOptions is removed
8574             from initialization assignment, since now it is a set,
8575             parseCmdLine uses setParseWithComma for linkOptions, in
8576             linkEdit() linkOptions are accessed with new function indexSet()
8577             which returns the i'th item of a set variable. See SDCCset.c, in
8578             linkEdit() when calling buildCmdLine(), added linkOptions as
8579             last argument. Now users can pass arguments to gplink via the
8580             -Wl option, main() uses pic16glue() to glue up pic16 programs
8581         * src/SDCCpeeph.c: various changes to support pic16
8582         * src/SDCCset.c: added function  void *indexSet(set *, int)  to
8583             return the i'th item of the set
8584         * src/SDCCset.h: added function prototype for indexSet()
8585         * src/SDCCsymt.c: in checkSClass(), added support for PIC16
8586         * src/clean.mk: added pic16 in CLEANALLPORTS variable
8587         * src/port.h: added TARGET_ID_PIC16,TARGET_IS_PIC16 macro,
8588             added macro DEFAULT_PORT
8589         * src/pic/main.c: corrected arguments of gplnk in _linkCmd
8590         * src/pic16/gen.c: bug fix in genCpl(), now the correct code is
8591             generated
8592         * src/pic16/glue.c: commented out some error producing lines
8593         * src/pic16/main.c: __config directives are commented out to stop
8594             gpasm complaining and test the linkage with gplink, _linkCmd and
8595             _asmCmd changed to be more gplink and gpasm friendly
8596         * src/pic16/peeph.def: peep rule 3 is commented out, since it
8597             produced an error when parsed, peep rule 12 is added to utilize
8598             movff, but it is commented out since the pCode does not support
8599             yet a command with 2 address arguments
8600
8601 2003-05-18    <johan AT balder>
8602
8603         * src/ds390/gen.c (genArrayInit): removed obsolete and buggy ARRAYINIT
8604         * src/ds390/main.c (genArrayInit): removed obsolete and buggy ARRAYINIT
8605 2003-05-17  Karl Bongers(apply patches from Martin Helmling)
8606
8607         * debugger/mcs51/sdcdb.c,cmd.c,break.c and .h files.
8608   Added feature to script commands from file.
8609
8610 2003-05-14  Bernhard Held <bernhard AT bernhardheld.de>
8611
8612         * device/lib/_strtok.c: fixed bug #734355 by Lenny Story and Tim Woodall
8613         * src/SDCCutil.c: include ctype.h for win32
8614
8615 2003-05-13  Bernhard Held <bernhard AT bernhardheld.de>
8616
8617         * src/pic16/*: removed CR from many files, reported by Vangelis Rokas
8618
8619 2003-05-12  Karl Bongers(apply development patches from Martin Helmling)
8620
8621         * debugger/mcs51/sdcdb.c,simi.c,cmd.c,break.c and .h files.
8622   Fixed so you can set breakpoints prior to run, run does not stop
8623   on entry now.  Add tbreak.  Other enhancements and fixes for use
8624   with ddd.
8625
8626 2003-05-12  Borut Razem <borut.razem AT siol.net>
8627
8628         * src/SDCCmain.c: fixed the problem with searching the DATADIR as the last resort on *nix
8629
8630 2003-05-11  Borut Razem <borut.razem AT siol.net>
8631
8632         * src/SDCCutil.c: WIN32 version of getBinPath() calls GetModuleFileName() to determine
8633         the path of bin directory, so that PATH is the only env. variable, which has to be set
8634         in case of standard installation.
8635         * src/ds390/ds390.dsp: increased value of /Zm option to 1000
8636         * src/pic/main.c: add quotes to file name parameters for gplink and gpasm
8637         * src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx: added --print-search-dirs command line option
8638
8639 2003-05-04  Bernhard Held <bernhard AT bernhardheld.de>
8640
8641         * src/SDCCmain.c (linkEdit): fixed buffer overflow for gbz80
8642         * support/regression/Makefile: inter-port-clean is no longer nesessary, the
8643         temp files are in the port dir; clean the gen/test directory when
8644         generating new test.c
8645         * support/regression/ports/host/spec.mk: defined OBJEXT for target clean
8646         * support/regression/tests/vaargs.c: fixed gcc 3.3 warning
8647         * support/regression/tests/zeropad.c: added
8648
8649 2003-05-09    <johan AT balder>
8650
8651         * src/SDCCglue.c: fixed bug #597940
8652
8653 2003-05-05  Karl Bongers(apply patches from Martin Helmling)
8654
8655         * debugger/mcs51/sdcdb.c,simi.c,cmd.c,symtab.c and .h files.
8656   cache sfr, optimize next,step, fix off by one sourceline,
8657   support ddd list function.
8658         * sim/ucsim/cmd.src/newcmd.cc - small fix for sdcdb use.
8659
8660 2003-05-04  Bernhard Held <bernhard AT bernhardheld.de>
8661
8662         * support/regression/HTMLgen.py: added compare_s2f()
8663         * support/regression/Makefile: redo 1.27
8664         * support/regression/generate-cases.py: redo 1.5
8665
8666 2003-04-30  Bernhard Held <bernhard AT bernhardheld.de>
8667
8668         * support/regression/tests/float.c: workaround 33 bit hex constant
8669         * support/regression/tests/simplefloat.c: fix division for host
8670
8671 2003-04-29  Scott Dattalo  <scott AT dattalo.com>
8672
8673         * src/pic/pcoderegs.c Applied patch from Jim Hawkridge <jim AT jimhawkridge.uk.eu.org>
8674         that tame's the PIC's over-aggressive optimizer.
8675
8676 2003-04-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8677
8678          * src.dsw, link/z80/aslink.h, link/z80/linkz80.dsp: z80 linker
8679          support for MSVC.
8680
8681 2003-04-29  Kevin Vigor <kevin AT vigor.nu>
8682
8683         Initial support for DS80C400. "Hello world" runs on TINIm400
8684         (with polled I/O).
8685
8686 2003-04-28  Karl Bongers(apply patches for Martin Helmling)
8687
8688          * debugger/mcs51/sdcdb.c,simi.c,cmd.c,symtab.c and .h files.
8689          * Some notes on ddd usage added in debugger/README
8690          Martin Helmling adding more features and fixes for ddd GUI debugger.
8691          Code added for nexti, stepi, up, down, and other adjustments.
8692
8693 2003-04-28  Scott Dattalo  <scott AT DATTALO.COM>
8694
8695         * src/pic/pCodepeep.c non-wildcard asmops are now handled
8696         * src/pic/peeph.def Added two rules to optimize carry manipulation
8697         * src/pic/* removed debug printfs
8698
8699 2003-04-28  Bernhard Held <bernhard AT bernhardheld.de>
8700
8701         * debugger/mcs51/cmd.c: added header newalloc.h
8702
8703 2003-04-26  Bernhard Held <bernhard AT bernhardheld.de>
8704
8705         * as/Makefile: new EXEEXT
8706         * as/z80/Makefile: remove trailing slash of BUILDIR
8707         * as/z80/clean.mk: new EXEEXT
8708         * Makefile.common.in: add to CFLAGS (and others), don't replace it
8709         * support/cpp2/Makefile.in: new EXEEXT
8710         * src/pic/glue.c (pic14emitRegularMap): fixed warning
8711
8712 2003-04-24  Bernhard Held <bernhard AT bernhardheld.de>
8713
8714         Cygwin's gcc always appends .exe: 'gcc -o a a.c' creates a.exe;
8715         EXEEXT was introduced to fix all related problems with targets
8716         "clean", "install" and "uninstall"; a couple of further flaws
8717         especially with "clean" have been fixed too
8718         * as/mcs51/Makefile.in
8719         * as/mcs51/clean.mk
8720         * as/z80/Makefile
8721         * Makefile
8722         * clean.mk
8723         * debugger/mcs51/Makefile.in
8724         * debugger/mcs51/clean.mk
8725         * link/z80/Makefile
8726         * link/z80/Makefile.in
8727         * link/z80/clean.mk
8728         * link/Makefile
8729         * packihx/Makefile.in
8730         * packihx/clean.mk
8731         * sim/ucsim/Makefile
8732         * sim/ucsim/clean.mk
8733         * sim/ucsim/avr.src/Makefile.in
8734         * sim/ucsim/avr.src/clean.mk
8735         * sim/ucsim/s51.src/Makefile.in
8736         * sim/ucsim/s51.src/clean.mk
8737         * sim/ucsim/xa.src/Makefile.in
8738         * sim/ucsim/xa.src/clean.mk
8739         * sim/ucsim/z80.src/Makefile.in
8740         * sim/ucsim/z80.src/clean.mk
8741         * sim/ucsim/main_in.mk
8742         * sim/ucsim/packages_in.mk
8743         * sim/ucsim/gui.src/Makefile.in
8744         * sim/ucsim/gui.src/serio.src/Makefile.in
8745         * sim/ucsim/gui.src/serio.src/clean.mk
8746         * src/Makefile.in
8747         * src/clean.mk
8748         * support/cpp2/Makefile.in
8749         * support/cpp2/clean.mk
8750         * support/makebin/Makefile
8751         * support/makebin/clean.mk
8752         * support/scripts/sdcc_mingw32: --program-suffix no longer needed
8753         * doc/sdccman.lyx: --program-suffix no longer needed
8754
8755 2003-04-23  Karl Bongers(apply patches for Martin Helmling)
8756
8757          * debugger/mcs51/sdcdb.c,simi.c,cmd.c,..
8758          Martin Helmling added support for ddd GUI debugger.
8759          Code added to display assembly, set variables, and other commands
8760          to interface to ddd.
8761
8762 2003-04-23  Bernhard Held <bernhard AT bernhardheld.de>
8763
8764         * as/Makefile: fix target clean
8765         * as/clean.mk: fix target clean
8766         * as/z80/clean.mk: fix target clean
8767
8768 2003-04-22  Bernhard Held <bernhard AT bernhardheld.de>
8769
8770         * Makefile.common.in: added  AT EXEEXT AT
8771         * configure.in: removed all mingw32 stuff
8772         * configure: rebuilt from configure.in
8773         * doc/sdccman.lyx: updated section "installation"
8774         * support/scripts/sdcc_mingw32: adapted to configure
8775         * support/scripts/sdcc_cygwin_mingw32: added
8776
8777 2003-04-22  Scott Dattalo  <scott AT dattalo.com>
8778
8779         * src/pic Added object file support for the PIC port
8780         * src/pic Applied patch from Craig Franklin (this started the object file support)
8781         * src/regression Updated the PIC regression tests for object files
8782
8783 2003-04-20  Borut Razem <borut.razem AT siol.net>
8784
8785         * sdcc/as/mcs51/lklex.c: make getfid() more robust and fixed gcc warning:
8786           lklex.c: In function `getfid':
8787           lklex.c:203: warning: array subscript has type `char'
8788         * src/SDCCglobl.h: small change in stack handling macros, to avoid crash when compiled
8789           with MSVC with global optimization enabled (probably an cl compiler bug ;-)
8790         * support/Util/SDCCerr.c, support/Util/SDCCerr.h: added function fatal(), called from
8791           stack handling macros
8792
8793 2003-04-19  Borut Razem <borut.razem AT siol.net>
8794
8795         * "handling space characters in file path" task:
8796         * src/SDCCmacro.c: fixed bug in handlig quote at the end of line
8797         * support/Util/BuildCmd.c: define par as NULL if parameter value is invalid
8798         * support/Util/MySystem.h: make it self-sufficient
8799         * src/avr/main.c, src/ds390/main.c, src/mcs51/main.c, src/pic/main.c, src/xa51/main.c,
8800           src/z80/main.c, sdcc/as/mcs51/lklex.c:
8801           handling space characters in file path
8802         * src/SDCCmain.c: introduced setDataPaths() function, {datadir} macro
8803           (it will be used by assemblers, which have their own includes, e.g. gpasm)
8804         * support/Util/MySystem.c: handling space characters in executable's path
8805
8806 2003-04-19  Bernhard Held <bernhard AT bernhardheld.de>
8807
8808         * as/z80/Makefile: fix permanent rebuild of z80
8809         * sim/ucsim/gui.src/Makefile.in: target "install" builds the same packages as target "all"
8810         * support/regression/tests/bitfields.c: added Johan's bitfields.c
8811
8812 2003-04-18      Kevin Vigor <kevin AT vigor.nu>
8813
8814         * src/SDCCopt.c: add special case optimization to replace modulo by
8815           a power of two with a bitwise AND.
8816
8817 2003-04-18    <johan AT balder>
8818
8819         * src/mcs51/gen.c (getFreePtr): fixed bug #635354
8820
8821 2003-04-17    <johan AT balder>
8822
8823         * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #716790 and removes lot's of redundant register usage around function calls
8824         * src/mcs51/ralloc.c (packRegisters): fixed bug #720667
8825
8826 2003-04-13  Borut Razem <borut.razem AT siol.net>
8827
8828         * doc/sdccman.lyx: updated info about #pragma SAVE/RESTORE nesting
8829         * configure.in, configure: fixed problems on cygwin/WinCVS environmet with ports.* line endings;
8830           fixed mingw problem in adl_NORMALIZE_PATH
8831
8832 2003-04-12  Borut Razem <borut.razem AT siol.net>
8833
8834         * fixed "#pragma SAVE/RESTORE can not be nested":
8835         * src/SDCC.lex: reworked pragma handling functions
8836         * sdcc/src/SDCCglobl.h: reworked stack handling macros
8837         * support/Util/SDCCerr.c, support/Util/SDCCerr.h: added E_STACK_VIOLATION error
8838
8839 2003-04-12  Bernhard Held <bernhard AT bernhardheld.de>
8840
8841         * src/SDCCutil.c (pathEquivalent): defined but not used
8842         * debugger/mcs51/sdcdb.c: replace SDCC_LIB_DIR
8843         * configure.in: remove sdcc_datadir, sdcc_lib_dir and sdcc_include_dir
8844         * configure: rebuilt from configure.in
8845         * sdccconf_in.h: remove SDCC_LIB_DIR and SDCC_INCLUDE_DIR
8846         * sdcc_vc_in.h: remove SDCC_LIB_DIR and SDCC_INCLUDE_DIR
8847         * device/include/Makefile.in: replace sdcc_datadir
8848         * device/lib/Makefile.in: replace sdcc_datadir
8849         * Makefile.common.in: add LDFLAGS from configure
8850         * packihx/Makefile.in: use LDFLAGS
8851         * src/Makefile.in: use LDFLAGS
8852         * support/cpp2/Makefile.in: add LDFLAGS from configure
8853         * support/makebin/Makefile: use LDFLAGS
8854         * .version: bumped version number to 2.3.5
8855
8856 2003-04-12  Borut Razem <borut.razem AT siol.net>
8857
8858         * completed "different paths" task:
8859         * src/SDCCmacro.c: fixed bug in handling quotes
8860         * src/SDCCutil.c, src/SDCCutil.c: rewritten getPrefixFromBinPath()
8861         * src/SDCCmain.c: _discoverPaths() replaced with setBinPaths(), setIncludePath() and setLibPath()
8862
8863 2003-04-12  Bernhard Held <bernhard AT bernhardheld.de>
8864
8865         * src/pic/pcoderegs.c (Remove1pcode): fix warning on alpha
8866
8867 2003-04-11 kevin Vigor <kevin AT vigor.nu>
8868
8869         * ds390/gen.c ds390/peeph.def: fix bug 706781
8870
8871 2003-04-11  Borut Razem <borut.razem AT siol.net>
8872
8873         * support/Util/dbuf.c, support/Util/dbuf.h: update to version 1.1.1 - re-added C++ stuff to make it still more portable
8874
8875 2003-04-10  Scott Dattalo  <scott AT dattalo.com>
8876
8877         * src/pic/* Applied the pointer-to-function patch from Steve Tell.
8878         * src/pic/* Fixed several pointer bugs. (PIC port broke when the ruonly bit was
8879          set - this bit used to not be set...).
8880         * src/pic/gen.c Fixed buf 609268 ==> x = (x+1) & 0xf; generated
8881           bad code in PIC Port
8882         * src/regression/and2.c added to test bug 609268
8883         * src/regression/Makefile added and2.c to regression test
8884
8885
8886 2003-04-08    <johan AT CP255758-A>
8887
8888         * src/mcs51/gen.c (gen51Code): display reg usage in --icode-in-asm
8889         * src/mcs51/ralloc.c (serialRegAssign): update the registers in use and save some slocs
8890         * src/SDCCicode.h: added riu to show the register usage in --icode-in-asm
8891
8892 2003-04-07  Bernhard Held <bernhard AT bernhardheld.de>
8893
8894         * configure.in: fully support prefix, exec_prefix, datadir, docdir;
8895         fix bug #487815
8896         * support/cpp2/Makefile.in: fix bug #487815
8897         * configure: rebuilt from configure.in
8898         * Makefile.common.in: docdir changed, new path suffixes
8899         * sdccconf_in.h: new RETSIGTYPE, and other PATHs
8900         * sdcc_vc_in.h: reflect changes from sdccconf.h
8901         * src/SDCCglobl.h: remove *SEPARATOR_CHARS, they are now in sdccconf.h
8902         * src/SDCCutil.h: remove BINDIR hack
8903         * doc/sdccman.lyx: update new path hierarchy
8904
8905 2003-04-06    Paul Stoffregen <paul AT pjrc.com>
8906
8907         * src/SDCCpeeph.c: added okToRemoveSLOC test
8908
8909 2003-04-06    Paul Stoffregen <paul AT pjrc.com>
8910
8911         * device/lib/printf_fast.c: added leading zero format ("%06d", etc)
8912
8913 2003-04-06    Paul Stoffregen <paul AT pjrc.com>
8914
8915         * src/SDCCpeeph.c: added labelIsReturnOnly test
8916         * src/mcs51/peeph.def: Peephole 244: replace ljmp to ret with ret
8917
8918 2003-04-05    <johan AT balder>
8919
8920         * src/SDCCcse.c (cseAllBlocks): fixed bug #460088
8921         * src/SDCCloop.c (DEFSETFUNC): fixed bug #460088
8922         * src/SDCCopt.c (eBBlockFromiCode): fixed bug #460088
8923         * src/SDCCast.c: fixed a warning
8924         * src/SDCCast.h: fixed a warning
8925         * src/SDCCicode.c (operandFromAst): fixed a warning
8926
8927 2003-04-04    <johan AT balder>
8928
8929         * src/SDCCloop.c (DEFSETFUNC): undid the fix for bug #519584
8930         * src/SDCCast.c (decorateType): fixed bug #715076
8931         * src/SDCC.y: fixed bug #702907
8932
8933 2003-04-03    <johan AT balder>
8934
8935         * device/lib/_mulint.c (_muluint): new #pragma LESS_PEDANTIC
8936         * src/SDCCopt.c (eBBlockFromiCode): new #pragma LESS_PEDANTIC
8937         * src/SDCCglobl.h (PRAGMA_LESSPEDANTIC): new #pragma LESS_PEDANTIC
8938         * src/SDCC.lex (doPragma): new #pragma LESS_PEDANTIC
8939         * src/SDCCmain.c (parseCmdLine): new #pragma LESS_PEDANTIC
8940
8941 2003-04-03  Bernhard Held <bernhard AT bernhardheld.de>
8942
8943         * _decdptr.c: fix return values
8944         * _gptrget.c: fix return values
8945         * _gptrgetc.c: fix return values
8946         * _gptrput.c: fix return values
8947         * _mulint.c: fix return values
8948         * as/z80/Makefile: fix 'make -j' problem
8949
8950 2003-04-02  Bernhard Held <bernhard AT bernhardheld.de>
8951
8952         * Makefile.common.in: unused PORT, SCC and SAS removed, fixed docdir
8953         * configure.in: big cleanup, updated to autoconf 2.5x
8954         * configure: rebuilt from configure.in
8955         * sdccconf_in.h: new RETSIGTYPE, and other PATHs
8956         * sdcc_vc_in.h: reflect changes from sdccconf.h
8957         * doc/Makefile: fixed a flaw in "make install"
8958
8959 2003-04-02    <johan AT balder>
8960
8961         * src/ds390/gen.c (genCmp): no comments
8962         * src/mcs51/gen.c (genCmp): no comments
8963         * src/SDCCopt.c (eBBlockFromiCode): detect missing return values
8964         * src/SDCCast.c (ast_print): fixed the function type in --dumptree
8965
8966 2003-04-01  Bernhard Held <bernhard AT bernhardheld.de>
8967
8968         * support/regression/generate-cases.py: place generated file in given sub directory
8969         * support/regression/ports/host/spec.mk: prevent removal of testfwk.o
8970         * support/regression/Makefile: improvements for 'make -j';
8971         side effect: it's simpler and faster now
8972
8973 2003-03-31  Borut Razem <borut.razem AT siol.net>
8974
8975         * src/z80/main.c: link-{port} and as-{port} defined without path
8976         * src/src.dsp: support/Util/MySystem.h and src/SDCCutil.h added to project
8977
8978 2003-03-31  Bernhard Held <bernhard AT bernhardheld.de>
8979
8980         * Makefile, src/Makefile.in: add dependencies, so that 'make -j' works
8981
8982 2003-03-30  Borut Razem <borut.razem AT siol.net>
8983
8984         * support/Util/BuildCmd.c, support/Util/BuildCmd.h: rewrite buildCmdLine(),
8985           changed type of list parameter to set
8986         * src/ds390/main.c: changed type of parameter asmOptions to set in _tininative_do_assemble()
8987         * src/port.h: changed type of do_assemble() parameter to set
8988         * src/SDCCmain.c: type of asmOptions changed to set, introduced setParseWithComma(),
8989           sdcpp defined without path, removed variable VersionString, introduced set binPathSet,
8990           definition of "cppoutfilename" macro with NULL value in preProcess()
8991         * src/SDCCglobl.h: included "SDCCset.h", added declaration of setParseWithComma()
8992         * src/SDCCglue.c: removed variable VersionString, inroduced spacesToUnderscores()
8993         * support/Util/MySystem.c, support/Util/MySystem.h: rewrite, char *ExePathList[]
8994           replaced with set *binPathSet
8995         * shash_add() deallocates the item, if allready exsists, before adding the new one
8996         * src/SDCCmacro.c: handling macros with empty or NULL values in _evalMacros()
8997
8998 2003-03-30  Scott Dattalo  <scott AT dattalo.com>
8999
9000         * src/pic/gen.c: Commit patch from Steve Tell <tell AT telltronics.org> that fixes
9001           a nested for loop bug in the PIC port
9002         * src/regression/nestfor.c: new regression test file Steve wrote to test nested
9003           for loops
9004
9005 2003-03-29  Bernhard Held <bernhard AT bernhardheld.de>
9006
9007         * support/Util/dbuf.h: remove C++ stuff to make it portable
9008
9009 2003-03-28  Borut Razem <borut.razem AT siol.net>
9010
9011         * src/SDCC.lex: Fix for bug #711240: dynamic buffer handling of C
9012           literal strings in stringLiteral()
9013         * support/Util/dbuf.c, support/Util/dbuf.h: added: dynamic buffer handling
9014         * src/Makefile.bcc, src/Makefile.in, src\src.dsp: added support/Util/dbuf.c
9015           to the project
9016
9017 2003-03-27  Paul Stoffregen <paul AT pjrc.com>
9018
9019         * src/SDCCpeeph.c (pcDistance): accurate byte distance for mcs51
9020
9021 2003-03-26    <johan AT balder>
9022
9023         * src/mcs51/gen.c (saveRegisters): catched symbol abuse
9024         * src/ds390/gen.c (saveRegisters): catched symbol abuse
9025         * src/SDCCast.c (decorateType): fixed " -v < 3"
9026
9027 2003-03-23  Bernhard Held <bernhard AT bernhardheld.de>
9028
9029         * doc/cdbfile.html: removed, replaced by cdbfileformat.lyx
9030         Added Lenny Story's debug infrastructure changes:
9031         * src/Makefile.in:  added new files cdbFile.c and SDCCdebug.c
9032         * src/Makefile.bcc: added new files cdbFile.c and SDCCdebug.c
9033         * src/cdbFile.c: added
9034         * src/SDCCdebug.c: added
9035         * src/SDCCdebug.h: added
9036         * src/SDCCast.c (createFunction)
9037         * src/SDCCglue.c (emitRegularMap, emitStaticSeg, emitOverlay, glue)
9038         * src/SDCCmain.c (parseCmdLine, main)
9039         * src/SDCCmem.c (redoStackOffsets)
9040         * src/SDCCsymt.c (cdbStructBlock, cdbTypeInfo, cdbSymbol, cdbStruct, cdbStructBlock)
9041         * src/SDCCsymt.h
9042         * src/common.h
9043         * src/avr/gen.c (genAVRCode)
9044         * src/ds390/gen.c (gen390Code)
9045         * src/mcs51/gen.c (gen51Code)
9046         * src/pic/gen.c (genpic14Code)
9047         * src/pic/glue.c (pic14emitRegularMap, pic14emitStaticSeg, pic14emitOverlay, picglue)
9048         * src/xa51/gen.c (genXA51Code)
9049         * src/SDCCast.c: fixed "void foo(void){char c; -c < 0;}"
9050
9051 2003-03-22  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9052
9053         * src/mcs51/gen.c (genCodePointerGet): quicker code for bug #700797
9054         * src/mcs51/peeph.def: added rules 177, 241.x to 243, touched 181, 182.x, 193.x
9055
9056 2003-03-22    <johan AT balder>
9057
9058         * src/SDCCicode.c (geniCodeDerefPtr): fixed bug #698231
9059
9060 2003-03-21  Bernhard Held <bernhard AT bernhardheld.de>
9061
9062         * support/scripts/sdcc_mingw32: adapted to configure from autoconf 2.54
9063         * doc/cdbfileformat.lyx: added, written by Lenny Story
9064         * doc/Makefile: added cdbfileformat.lyx
9065         * doc/clean.mk: added cdbfileformat.lyx
9066
9067 2003-03-20  Bernhard Held <bernhard AT bernhardheld.de>
9068
9069         * src/mcs51/peeph.def: fix bug #705773
9070
9071 2003-03-20    <johan AT balder>
9072
9073         An sfr/sbit can have an "at #" AND an initializer
9074         * src/SDCCsymt.c (checkSClass):
9075         * src/SDCCmem.c (allocGlobal):
9076         * src/SDCCmem.c (allocLocal):
9077         * src/SDCCast.c (createBlock):
9078
9079 2003-03-17  Bernhard Held <bernhard AT bernhardheld.de>
9080
9081         * src/ds390/peeph.def: fix bug #704878: added rule 213.b suggested by Jan Rejlek
9082
9083 2003-03-16    <johan AT balder>
9084
9085         Undid the hackup of const and volatile, the problem is much bigger
9086         * src/SDCC.y:1.65
9087         * src/SDCCast.c:1.171
9088         * src/SDCCglue.c:1.138
9089         * src/SDCCicode.c:1.146
9090         * src/SDCCsymt.c:1.150
9091         * src/SDCCval.c:1.65
9092
9093 2003-03-15  Bernhard Held <bernhard AT bernhardheld.de>
9094
9095         * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #703541
9096         * src/ds390/gen.c (genAddrOf): fixed bug #704087
9097
9098 2003-03-13    <johan AT balder>
9099
9100         Hackup const and volatile modifiers in type chains a bit:
9101         * src/SDCC.y:1.63
9102         * src/SDCCast.c:1.169
9103         * src/SDCCglue.c:1.136
9104         * src/SDCCicode.c:1.143
9105         * src/SDCCsymt.c1.146
9106         * src/SDCCsymt.h1.59
9107         * src/SDCCval.c:1.63
9108
9109 2003-03-12    <johan AT balder>
9110
9111         * src/SDCCBBlock.h: more LRH debugging junk
9112         * src/SDCCcflow.h: more LRH debugging junk
9113         * src/SDCCloop.c: more LRH debugging junk
9114         * src/SDCC.y (struct_declaration): fixed bug #697590
9115         * src/SDCCsymt.[hc] (cloneSpec): NEVER EVER use this again
9116         * src/ds390/gen.c (aopForRemat): fixed bug #700031
9117         * src/SDCCglue.c (emitStaticSeg): fixed bug #700797
9118
9119 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
9120         * src/SDCCpeeph.c: quit being lazy and made proper fix (peephole
9121         test function names must now match exactly).
9122         * src/SDCCcse.c: added special case in findCheaperOp to allow
9123         extending a short integer. Makes less awful code for bug 700121 test case.
9124
9125 2003-03-11  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9126
9127         * as/mcs51/lkmain.c: Added ASlink-Warning to messages
9128         * as/mcs51/lkaomf51.c: Fixed bug when linking asmblink example
9129
9130 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
9131
9132         * src/SDCCpeeph.c: fix so that operandsNotEqualX functions are
9133         actually called (operandsNotEqual() was called for all
9134         operandsNotEqualX tests).
9135
9136 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
9137
9138         * src/SDCCcse.c: fix findCheaperOp to prevent replacing int types
9139         with shorter literals. Fixes bug 700121.
9140
9141 2003-03-11    <johan AT balder>
9142
9143         * src/SDCCsymt.c (compareType): a (void *) can be assigned to any pointer
9144
9145 2003-03-11  Bernhard Held <bernhard AT bernhardheld.de>
9146
9147         * src/SDCCloop.c (mergeRegions): an evil beast is dead
9148         * src/SDCCmain.c (preProcess): minor cleanup: eliminate preOutName
9149
9150 2003-03-10  Borut Razem <borut.razem AT siol.net>
9151
9152         * src/SDCCmain.c: pipe preprocessor's output
9153         * support/Util/MySystem.c, support/Util/MySystem.h: added my_popen()
9154         * sdcc_vc_in.h: define pclose as _pclose for WIN32
9155         * src/SDCCglue.c, src/SDCCglue.h: added set pipeSet, added function closePipes,
9156         which closes all pipes in pipeSet set
9157         * src/SDCCset.c: free deleted item in function deleteSetItem()
9158         * src/src.dsp, src/z80/z80.dsp: files support/Util/BuildCmd.c and support/Util/MySystem.c
9159         moved from z80 to src subproject
9160         * .version: increased version number to 2.3.4
9161
9162 2003-03-10  Bernhard Held <bernhard AT bernhardheld.de>
9163
9164         * support/regression/ports/mcs51/spec.mk: increase timeout for CF's sparc to 30s
9165         * support/regression/ports/ds390/spec.mk: increase timeout for CF's sparc to 25s
9166         * support/regression/ports/xa51/spec.mk: fix typo
9167
9168 2003-03-09  Bernhard Held <bernhard AT bernhardheld.de>
9169
9170         * src/SDCCglobl.h: PATH_MAX is already defined in mingw32 headers
9171
9172 2003-03-09  Borut Razem <borut.razem AT siol.net>
9173
9174         * src/SDCCmain.c: pipe preprocessor's output
9175         * support/Util/MySystem.c, support/Util/MySystem.h: added my_popen()
9176         * sdcc_vc_in.h: define pclose as _pclose for WIN32
9177         * src/SDCCglue.c, src/SDCCglue.h: added set pipeSet, added function closePipes,
9178         which closes all pipes in pipeSet set
9179         * src/SDCCset.c: free deleted item in function deleteSetItem()
9180         * src/src.dsp, src/z80/z80.dsp: files support/Util/BuildCmd.c and support/Util/MySystem.c
9181         moved from z80 to src subproject
9182
9183 2003-03-09  Borut Razem <borut.razem AT siol.net>
9184
9185         * src/SDCCglue.c: re-implemented tempfilename() and tempfile(): using mkstemp() if available
9186         * src/SDCCsymt.h: fixed MSVC and BORLANDC compilation (included SDCCglobl.h instead srccconf.h)
9187         * sdcc_vc_in.h: explicitly undefined HAVE_MKSTEMP which is not available on BORLANDC and MSVC
9188         * src/SDCCset.h: removed inclusion of sdccconf.h or sdcc_vc.h
9189         * src/SDCCglobl.h: unification of WIN32 native definitions
9190
9191 2003-03-09  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9192
9193         * src/mcs51/gen.c: applied in-/dec patch mentioned on sdcc-devel 2003-03-01
9194
9195 2003-03-08  Bernhard Held <bernhard AT bernhardheld.de>
9196
9197         * src/configure.in:   check for endianess (even while cross-compiling)
9198         * src/configure:      check for endianess (even while cross-compiling)
9199         * src/configure_in.h: check for endianess (even while cross-compiling)
9200         * src/avr/gen.c:        remove old endianess stuff
9201         * src/mcs51/gen.c:      remove old endianess stuff
9202         * src/ds390/gen.c:      remove old endianess stuff
9203         * src/pic/gen.c:        remove old endianess stuff
9204         * src/pic/genarith.c:   remove old endianess stuff
9205         * src/pic/glue.c:       fix endianess check
9206         * src/pic16/gen.c:      remove old endianess stuff
9207         * src/pic16/genarith.c: remove old endianess stuff
9208         * src/pic16/glue.c:     fix endianess check
9209         * src/xa51/gen.c:       remove old endianess stuff
9210         * src/z80/gen.c:        fix endianess check
9211         * src/SDCCglue.c:       fix endianess check
9212         * src/ds390/peeph.def: fix bug 700036
9213
9214 2003-03-08  Bernhard Held <bernhard AT bernhardheld.de>
9215
9216         * src/SDCCsymt.h: use appropriate data-types on host for SDCC's int and long
9217         * src/configure: find appropriate data-types on host for SDCC's int and long
9218         * src/configure.in: find appropriate data-types on host for SDCC's int and long
9219         * src/sdccconf_in.h: find appropriate data-types on host for SDCC's int and long
9220         * src/xa51/gen.c: use %d, not %ld for 4 byte variables
9221
9222 2003-03-07    <johan AT balder>
9223
9224         Just a big NOOP:
9225                 some minor cleanups before the big shot
9226                 OP_DEFS and OP_USES now use Kevin's protection
9227                 new option --nolabelopt
9228
9229         * src/SDCCBBlock.c:
9230         * src/SDCCast.c,:
9231         * src/SDCCcflow.c:
9232         * src/SDCCcse.c:
9233         * src/SDCCicode.c:
9234         * src/SDCCicode.h:
9235         * src/SDCClabel.c:
9236         * src/SDCCloop.c:
9237         * src/SDCCmain.c:
9238         * src/ds390/ralloc.c:
9239         * src/mcs51/ralloc.c:
9240         * src/pic/ralloc.c:
9241         * src/xa51/ralloc.c:
9242         * src/z80/ralloc.c:
9243
9244 2003-03-06  Bernhard Held <bernhard AT bernhardheld.de>
9245
9246         * src/pic/pcode.c (get_op): fix 64 bit warnings
9247         * src/pic/pcode.c (pCode2str): fix 64 bit warnings
9248         * src/SDCChasht.c (newHashTable): fix 64 bit warnings
9249         * src/SDCCsymt.c (checkTypeSanity): fix 64 bit warnings
9250         * support/regression/tests/malloc.c: fix 64 bit warnings
9251
9252 2003-03-04  Bernhard Held <bernhard AT bernhardheld.de>
9253
9254         * src/mcs51/gen.c (genMinus): fixed bug 696436
9255
9256 2003-03-02  Borut Razem <borut.razem AT siol.net>
9257
9258         * src/SDCCmain.c: added BORLANDC, corrected MSVC in printVersionInfo()
9259
9260 2003-02-26  Bernhard Held <bernhard AT bernhardheld.de>
9261
9262         * configure.in: test for mkstemp
9263         * sdccconf_in.h: add HAVE_MKSTEMP
9264
9265 2003-02-24  Bernhard Held <bernhard AT bernhardheld.de>
9266
9267         * device/include/ctype.h: removed warning while using --stack-auto
9268         * device/include/malloc.h: removed warning while using --stack-auto
9269         * device/include/string.h: removed warning while using --stack-auto
9270
9271 2003-02-23  Borut Razem <borut.razem AT siol.net>
9272
9273         * src/asm.h: corrected assertion in function printILine(): _pipe() was not executed on MSVC,
9274         because NDEBUG is defined (see man assert)
9275         * sdcc_vc_in.h: vsnprintf is defined as _vsnprintf on MSVC
9276
9277 2003-02-23  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9278
9279         * src/mcs51/gen.c (genUminusFloat): avoided dptr in-/decrement for xdata variables
9280         * src/mcs51/peeph.def: added rule suggested by Gernot Fink, white space/comment changes
9281
9282 2003-02-18  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9283
9284         * src/SDCCpeeph.c: added peephole conditions testing for same arguments
9285         * src/mcs51/peeph.def: added rules 238a-d which remove redundant moves
9286
9287 2003-02-18    <johan AT balder>
9288
9289         * as/mcs51/asmain.c (asmbl): module can start with a digit
9290         * as/z80/asmain.c (asmbl): module can start with a digit
9291
9292 2003-02-16  Bernhard Held <bernhard AT bernhardheld.de>
9293
9294         * sim/ucsim/mkecho: inserted #!/bin/sh for Cygwin, so that it's executable
9295         * src/asm.c: fix pipe() for Mingw32
9296
9297 2003-02-15  Bernhard Held <bernhard AT bernhardheld.de>
9298
9299         * src/SDCCglue.h: make tmpfileNameSet available for preOutName
9300         * src/SDCCmain.c (preProcess): make sure, that preOutName will be deleted;
9301         make -V work again; --c1mode reads now from stdin
9302         * doc/sdccman.lyx: added --c1mode
9303         * support/Util/SDCCerr.c: new messages for c1 mode
9304         * support/Util/SDCCerr.h: new messages for c1 mode
9305         * src/SDCC.lex (checkCurrFile): test if fullSrcFileName is NULL for c1mode
9306
9307 2003-02-15    <johan AT balder>
9308
9309         * src/asm.c: new options: --no-c-code-in-asm and --i-code-in-asm
9310
9311 2003-02-14  Bernhard Held <bernhard AT bernhardheld.de>
9312
9313         * doc/sdccman.lyx: Environment variables, -o and other minor things
9314
9315 2003-02-14    <johan AT balder>
9316
9317         * src/xa51/main.c: before anyone really tries to use it :)
9318
9319         * Install doc's in share/sdcc/doc
9320         * removed some obsolete files
9321         * Do a proper make distclean and uninstall
9322         M Makefile.common.in
9323         R sdccbuild.sh
9324         M as/Makefile
9325         M device/include/Makefile.in
9326         M device/lib/Makefile.in
9327         M doc/sdccman.lyx
9328         M link/Makefile
9329         M sim/ucsim/doc/Makefile.in
9330         M src/clean.mk
9331         R src/avr/peeph.rul
9332         R src/xa51/peeph.rul
9333         M support/cpp2/Makefile.in
9334         M support/makebin/Makefile
9335
9336
9337 2003-02-13  Bernhard Held <bernhard AT bernhardheld.de>
9338
9339         * support/regression/ports/host/spec.mk: use cc as host compiler for max osx
9340
9341 2003-02-10  Borut Razem <borut.razem AT siol.net>
9342
9343         * doc/bccinst.txt, packihx/packihx.c, sdcc_vc_in.h, src/SDCCset.h,
9344         support/cpp2/config.in: Borland C++ build doesn't depend on Cygwin configure
9345         * Bcc.ini, Makefile.bcc, as/mcs51/Makefile.bcc,
9346         device/examples/ds390/tinitalk/Makefile.bcc, packihx/Makefile.bcc,
9347         support/cpp2/Makefile.bcc, src/Makefile.bcc, src/avr/Makefile.bcc,
9348         src/ds390/Makefile.bcc, src/izt/Makefile.bcc, src/mcs51/Makefile.bcc,
9349         src/pic/Makefile.bcc, src/pic16/Makefile.bcc, src/xa15/Makefile.bcc,
9350         src/z80/Makefile.bcc: Borland Makefile cleanup
9351         * as/z80/Makefile.bcc: Added Borland Makefile
9352         * support/cpp2/borland.h: Removed
9353
9354 2003-02-10  Bernhard Held <bernhard AT bernhardheld.de>
9355
9356         * doc/sdccman.lyx: new pragma NOIV by "Johannes Stezenbach" <js AT convergence.de>
9357         * src/SDCC.lex: new pragma NOIV
9358         * src/SDCCglobl.h: new pragma NOIV
9359         * src/SDCCmem.c: new pragma NOIV
9360
9361 2003-02-09  Bernhard Held <bernhard AT bernhardheld.de>
9362
9363         * src/SDCCmain.c: signal handling is switched off by SDCC_LEAVE_SIGNALS
9364
9365 2003-02-09  Bernhard Held <bernhard AT bernhardheld.de>
9366
9367         * src/SDCCmain.c: signal handling is switched off by --debug
9368         * doc/Makefile: small fix for install; use clean.mk again
9369         * doc/clean.mk: clean *.pdf and *.html too
9370
9371 2003-02-08  Bernhard Held <bernhard AT bernhardheld.de>
9372
9373         * device/lib/_mulint.c: small fix for large/ds390 --int-long-reent resp. --stack-auto
9374         * device/lib/printfl.c: fix a ds390 bug by making it portable
9375         * src/SDCCsymt.c (initCSupport): fix compile warning on Cygwin
9376         * src/SDCCopt.c (cnvToFloatCast): fix compile warning on Cygwin
9377         * src/SDCCopt.c (cnvFromFloatCast): fix compile warning on Cygwin
9378         * debugger/mcs51/cmd.c: converted multi-line string literals
9379         * sim/ucsim/globals.cc: converted multi-line string literals
9380         * src/SDCCmain.c: introduced signal handler to remove temp files
9381         * doc/Makefile: small tweaks, implement clean
9382         * doc: removed generated files
9383
9384 2003-02-05  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9385
9386         * as/mcs51/aslink.h, as/mcs51/lkihx.c, as/mcs51/lkrloc.c:  Applied
9387         patch from Jan Rejlek <jr AT apex-lib.cz> to fix Bug 677692: "Extended
9388         Address Record is not correctly generated for DS390."
9389
9390 2003-02-02  Borut Razem <borut.razem AT siol.net>
9391
9392         * Makefile.bcc: removed non existing cpp project and non compilable izt project from makefile
9393         * as/mcs51/asm.h: fixed compilation with Borland C
9394         * support/cpp2/Makefile.bcc: added rule to generate auto-host.h
9395         * support/cpp2/auto-host_vc_in.h: fixed compilation with Borland C
9396         * src/mcs51/mcs51a.dsp: corrected misspelled project name from msc51a to mcs51a
9397         * src/avr/Makefile.bcc, src/ds390/Makefile.bcc, src/izt/Makefile.bcc,
9398         src/mcs51/Makefile.bcc, src/pic16/Makefile.bcc, src/xa51/Makefile.bcc,
9399         src/z80/Makefile.bcc: delete $(LIB) only if exist
9400         * src/Makefile.bcc, src/pic/Makefile.bcc:  fixed compilation with Borland C
9401
9402 2003-02-02  Bernhard Held <bernhard AT bernhardheld.de>
9403
9404         * device/include/malloc.h: introduced NULL
9405         * device/include/string.h: introduced NULL
9406         * device/include/stdlib.h: introduced NULL
9407         * device/lib/_memcpy.c: removed NULL
9408         * device/lib/_strcat.c: removed NULL
9409         * device/lib/_strchr.c: removed NULL
9410         * device/lib/_strcmp.c: removed NULL
9411         * device/lib/_strcpy.c: removed NULL
9412         * device/lib/_strcspn.c: removed NULL
9413         * device/lib/_strlen.c: removed NULL
9414         * device/lib/_strncat.c: removed NULL
9415         * device/lib/_strncmp.c: removed NULL
9416         * device/lib/_strncpy.c: removed NULL
9417         * device/lib/_strpbrk.c: removed NULL
9418         * device/lib/_strrchr.c: removed NULL
9419         * device/lib/_strspn.c: removed NULL
9420         * device/lib/_strstr.c: removed NULL
9421         * device/lib/_strtok.c: removed NULL
9422         * device/lib/malloc.c: removed NULL, include own header
9423
9424 2003-02-02    <johan AT balder>
9425
9426         * 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
9427         * support/regression/fwk/lib/testfwk.c: div and mod isn't broken anymore
9428         * regressions ds390/spec.mk and mcs51/spec.mk (timeout): my good old balder isn't fast enough for some tests
9429         * src/z80/gen.c (genZ80Code): added c-lines in asm comments
9430         * as/z80/asm.h (NINPUT): increased for long c-comments in regression tests
9431         * src/z80/gen.c (genRightShiftLiteral): fixed the (char)(-3)>>8 (I think)
9432
9433 2003-02-01  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9434
9435         * src/SDCCmain.c: Fixed bug 678574: "ds390: ASlink-Error-Stack overlaps
9436         area 'DATA'"
9437
9438 2003-02-01    <johan AT balder>
9439
9440         * src/SDCCval.c (valBitwise): fixed Karl's "2 | (1<<8)"
9441
9442 2003-01-31    <johan AT CP255758-A>
9443
9444         * src/ds390/main.c (_ds390_genAssemblerPreamble): applied Jan Rejlek's >64K startup patch
9445
9446 2003-01-30    <johan AT balder>
9447
9448         * src/SDCCBBlock.c: automatic bug detection
9449         * src/SDCCicode.c: automatic bug detection
9450
9451 2003-01-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9452
9453         * src/SDCCglobl.h:   now --xram-size 0 works
9454         * src/SDCCmain.c:    now --xram-size 0 works
9455
9456 2003-01-29    <johan AT balder>
9457
9458         * src/almosteverything: changed OP_DEFS and OP_USES from macros to functions to catch symbol abuse (a hot topic in the bug list :)
9459
9460 2003-01-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9461
9462         * as/mcs51/aslink.h: Added options --xram-size and --code-size
9463         * as/mcs51/lkdata.c: Added options --xram-size and --code-size
9464         * as/mcs51/lkmain.c: Added options --xram-size and --code-size
9465         * as/mcs51/lkmem.c:  Added options --xram-size and --code-size
9466         * src/SDCCglobl.h:   Added options --xram-size and --code-size
9467         * src/SDCCmain.c:    Added options --xram-size and --code-size
9468
9469 2003-01-28  Bernhard Held <bernhard AT bernhardheld.de>
9470
9471         * src/ds390/gen.c: fix deps by replacing <common.h> with "common.h"
9472         * src/SDCC.lex: rename P_OVERLAY to P_OVERLAY_ for cross-gcc 3.2 MINGW32
9473
9474 2003-01-27    <johan AT balder>
9475
9476         * src/SDCC.y: fixed bug #613764
9477
9478 2003-01-26    <johan AT balder>
9479
9480         * src/SDCClrange.c:  fixed Bernhard's "char * code ptr = &c"
9481         * src/SDCCsymt.h: fixed bug #673374
9482         * src/SDCCglue.c: fixed bug #661910
9483         * src/SDCCast.c: fixed bug #458099 and 673374
9484
9485 2003-01-26  Bernhard Held <bernhard AT bernhardheld.de>
9486
9487         * as/mcs51/strcmpi.c: added, provides Aurelien Jarno's as_strcmpi(); strcmpi() is not ANSI
9488         * as/mcs51/strcmpi.h: added
9489         * as/mcs51/asm.h: remove ugly "#define strcmpi strcmp"
9490         * as/mcs51/aslink.h: remove ugly "#define strcmpi strcmp"
9491         * as/mcs51/asmain.c: strcmpi -> as_strcmpi
9492         * as/mcs51/assym.c: strcmpi -> as_strcmpi
9493         * as/mcs51/lkmem.c: strcmpi -> as_strcmpi
9494         * as/mcs51/lknoice.c: strcmpi -> as_strcmpi
9495         * as/mcs51/lksym.c: strcmpi -> as_strcmpi
9496         * as/mcs51/Makefile.aslink: new module strcmpi
9497         * as/mcs51/Makefile.asx8051: new module strcmpi
9498         * as/mcs51/Makefil.bcc: new module strcmpi
9499         * as/mcs51/Makefile.in: new module strcmpi
9500         * sim/ucsim/s51.src/uc390.cc (get_mem_size): make RAM big enough for tinibios
9501
9502 2003-01-26    <johan AT balder>
9503
9504         * src/SDCCglue.c: reverted back to 1.124
9505         * src/SDCCast.c: reverted back to 1.156
9506         * src/mcs51/gen.c (aopGet): applied Frieder's efficiency patch
9507
9508 2003-01-25    <johan AT balder>
9509
9510         * src/SDCCglue.c: A better fix for bug #661910
9511         * src/SDCCast.c: A better fix for bug #661910
9512         * src/SDCCglue.c (emitRegularMap): That was a little too efficient
9513
9514 2003-01-24  Bernhard Held <bernhard AT bernhardheld.de>
9515
9516         * src/Makefile.in: remove spawn.o
9517         * src/SDCCmain.c: remove spawn.h
9518         * src/SDCCmain.c (printVersionInfo): report MINGW32 instead of UNIX
9519         * src/spawn.c: removed
9520         * src/spawn.h: removed
9521         * support/regression/ports/ds390/spec.mk: link with -r
9522
9523 2003-01-24    <johan AT CP255758-A>
9524
9525         * src/ds390/gen.c (aopOp): fixed bug #667458
9526         * src/SDCCglue.c (emitRegularMap): fixed bug #458099 again
9527         * src/SDCCast.c (createIvalCharPtr): fixed bug #661910
9528         (createIvalCharPtr): an ival doesn't always have a storage class anymore
9529
9530 2003-01-24  Bernhard Held <bernhard AT bernhardheld.de>
9531
9532         * src/mcs51/peeph.def: better assembler identation by Frieder
9533         * src/mcs51/gen.c: better assembler identation by Frieder
9534
9535 2003-01-22  Bernhard Held <bernhard AT bernhardheld.de>
9536
9537         * as/z80/string.h: removed for gcc 3.2
9538         * support/makebin/makebin.c: #include <string.h> for gcc 3.2
9539         * src/pic/pcode.c (get_op_from_instruction): fix concatenation of string literals with __FUNCTION__ for gcc 3.2
9540
9541 2003-01-19  Bernhard Held <bernhard AT bernhardheld.de>
9542
9543         * src/SDCCmain.c (linkEdit): rename mem and map files even in case of failure
9544         * src/SDCCpeeph.c (replaceRule): fix bug #663503
9545         * support/regression/Makefile: separate temp files for ports
9546         * support/regression/generate-cases.py: separate temp files for ports
9547         * src/mcs51/peeph.def: Frieder: removed 237 (obsolete by 236g and 105); added 237 a/b
9548         * src/ds390/peeph.def: Frieder: removed 237 (obsolete by 236g and 105); added 237 a/b
9549
9550 2003-01-19  Bernhard Held <bernhard AT bernhardheld.de>
9551
9552         * moved tinitalk to device/examples/ds390
9553
9554 2003-01-14  Bernhard Held <bernhard AT bernhardheld.de>
9555
9556         * as/mcs51/lkmem.c: rflag is for DS390
9557         * src/SDCCglobl.h: removed out_name and options stackOnData, genericPtr
9558         * src/SDCCmain.c (optionsTable, setDefaultOptions): removed --stack-after-data and --generic
9559                          (linkEdit): move mem- and map-files the same way as ihx-files
9560         * src/z80/main.c (_setDefaultOptions): removed --generic
9561         * src/SDCCmain.c (_processC1Arg, parseCmdLine, main): --c1mode works again
9562         * src/SDCCglue.c (createInterruptVect, glue): --c1mode works again
9563         * src/pic/glue.c (picglue): --c1mode works again
9564         * src/pic16/glue.c (pic16glue): --c1mode works again
9565         * src/asm.c (printCLine): fix #660034
9566
9567 2003-01-13  Bernhard Held <bernhard AT bernhardheld.de>
9568
9569         * src/ds390/peeph.def: fix #123; add 14 rules by Fiorenzo D. Ramaglia <fd.ramaglia AT tin.it>, 1 by Frieder
9570         * src/mcs51/peeph.def: fix #123; add 14 rules by Fiorenzo, 1 by Frieder
9571         * src/mcs51/gen.c (genFunction): emit r0 instead of ar0 by Fiorenzo
9572         * as/mcs51/lkmem (summary): better fix for sp problem
9573         * src/SDCCglue.c (glue): __start_stack - 1, saves 1 byte!
9574         * src/ds390/main.c (_ds390_finaliseOptions, _tininative_finaliseOptions): stack_loc = 0x400008
9575         * support/regression/ports/*/spec.mk: moving testfwk-object to port dir allow parallel execution of regression tests
9576                                               remove --stack-after-data
9577
9578 2003-01-12  Bernhard Held <bernhard AT bernhardheld.de>
9579
9580         * src/SDCCmain.c (main): port->finaliseOptions() moved for z80 linking
9581         * src/SDCCutil.c (join): ugly bug: missing '\0'
9582         * as/mcs51/lkmem.c (summary): sp on address 7 is safe
9583
9584 2003-01-11  Bernhard Held <bernhard AT bernhardheld.de>
9585
9586         * src/SDCCmain.c (assemble, linkEdit): preparations for -o
9587         * src/port.h: typo
9588         * src/pic/main.c (_asmCmd): gpasm supports -o
9589         * src/z80/main.c: more general macros
9590         * device/lib/Makefile.in: remove intermediate files
9591
9592 2003-01-11  Bernhard Held <bernhard AT bernhardheld.de>
9593
9594         * .version: Bumped version number to 2.3.3
9595         * src/SDCCBBlock.c: new option -o
9596         * src/SDCCglobl.h: new option -o
9597         * src/SDCCglue.c: new option -o
9598         * src/SDCCmain.c: new option -o
9599         * src/asm.c: new option -o
9600         * src/ds390/main.c: new option -o
9601         * src/pic/glue.c: new option -o
9602         * src/pic/pcode.c: new option -o
9603         * src/pic/ralloc.c: new option -o
9604         * src/pic16/glue.c: new option -o
9605         * src/pic16/pcode.c: new option -o
9606         * src/pic16/ralloc.c: new option -o
9607         * src/z80/main.c: new option -o
9608         * device/lib/Makefile.in: use -o
9609         * support/regression/ports/ds390/spec.mk: use -o
9610         * support/regression/ports/gbz80/spec.mk: use -o
9611         * support/regression/ports/mcs51/spec.mk: use -o
9612         * support/regression/ports/mcs51-stack-auto/spec.mk: use -o
9613         * support/regression/ports/z80/spec.mk: use -o
9614         * support/regression/ports/ucz80/spec.mk: use -o
9615         * support/regression/ports/xa51/spec.mk: use -o
9616         * support/regression/fwk/lib/timeout.c: fix usage string
9617
9618 2003-01-09  Bernhard Held <bernhard AT bernhardheld.de>
9619         * src/mcs51/gen.c (genPlus): replaced "mov b,acc" by "mov b,a" Fiorenzo D. Ramaglia <fd.ramaglia AT tin.it>
9620
9621 2003-01-07    <johan AT balder>
9622
9623         * src/SDCCast.c (decorateType): fixed bug #600035
9624
9625 2003-01-07  Bernhard Held <bernhard AT bernhardheld.de>
9626         * as/mcs51/lkmem.c: added several l-modifiers to printf to remove warnings
9627         * as/mcs51/lkaomf51.c: #include <ctype.h> to remove warnings
9628         * src/pic/main.c (_hasNativeMulFor): outcommented unused variables to remove warnings
9629         * src/pic/pcode.c: outcommented unused variable to remove warnings
9630         * src/pic/ralloc.c: outcommented unused variable to remove warnings
9631
9632 2003-01-06    <karl AT turbobit.com>
9633         * sim/ucsim/cmd.src/command.cc: fixed so "break xram r 0x7654" works again in
9634    regression tests.
9635
9636 2003-01-06    <johan AT balder>
9637
9638         * src/SDCCicode.c: fixed array add
9639
9640 2002-01-05  Bernhard Held <bernhard AT bernhardheld.de>
9641         * src/SDCCmacro.c: MAX_STRING_LENGTH increased to 2048; was too small for regression tests
9642         * support/regression/ports/host/support.c: #include <stdarg.h> for gcc 3.2
9643
9644 2003-01-04    <johan AT balder>
9645
9646         * src/SDCCval.c (getNelements): fixed the initialized array of structures
9647
9648 2002-12-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9649         * as/mcs51/Makefile.bcc: fixed typo lkomf51.o -> lkaomf51.o
9650
9651 2002-12-28  Bernhard Held <bernhard AT bernhardheld.de>
9652         * src/mcs51/peeph.def: added rules 234 and 235 from Frieder Ferlemann <frieder.ferlemann AT web.de>
9653         * support/regression/tests/bug-524697.c: fit mem usage into 8032
9654
9655 2002-12-28  Bernhard Held <bernhard AT bernhardheld.de>
9656         * src/mcs51/gen.c (aopGetUsesAcc): inserted missing "return FALSE"
9657
9658 2002-12-27  Bernhard Held <bernhard AT bernhardheld.de>
9659         * as/mcs51/Makefile.in: fixed typo lkomf51.o -> lkaomf51.o
9660
9661 2002-12-26  Bernhard Held <bernhard AT bernhardheld.de>
9662         * src/mcs51/main.c: removed {bindir}{sep} from aslink
9663
9664 2002-12-10  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9665
9666     * in \sdcc\as\mcs51\ changed these files in order to create an
9667     aomf51 file: aslink.h, lkdta.c, lklex.c, lklibr.c, lklist.c,
9668     lkmain.c.  Also added: lkmem.c and lkaomf51.c.  Changed the
9669     following files to include the previous two files: aslink.dsp,
9670     Makefile.aslink, Makefile.bcc, and Makefile.in.
9671
9672     * Changed \sdcc\src\SDCCmain.c so it creates files with extension
9673     .adb instead of .cdb
9674
9675 2002-11-09  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9676
9677         * \sdcc\as\mcs51\lklist.c: Now reports memory usage using the
9678         value from option --iram-size.
9679
9680 2002-09-20  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9681
9682         * \sdcc\as\mcs51\lklist.c: added boundary check before using
9683         dram[] array.
9684
9685 2002-09-18    <wiml AT hhhh.org>
9686
9687         * SDCClrange.h: exposed setFromRange() and setToRange()
9688         * mcs51/ralloc.c: fixed over-eager packRegsForSupport() and
9689           packRegsForAccUse() (bug 542397)
9690         * mcs51/gen.c: MOVA() is now a function to avoid calling aopGet()
9691           multiple times and emitting the fetch operations more than once
9692           added aopGetUsesAcc() function to allow binary operators to
9693           fetch their operands in the correct order; made genMinus() emit
9694           compact code for X = LITERAL - Y
9695
9696 2002-09-00  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9697         * \sdcc\as\mcs51\lklist.c: Fixed incorrect number of parameters to
9698         sprintf() in line 1267.
9699
9700 2002-09-08  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9701         * \sdcc\src\SDCCglue.c: Generate areas REG_BANK_[0-3] only for 8051
9702         like ports.
9703
9704 2002-09-04  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9705         Changes to aslink (All the changes are marked with 'JCF'):
9706
9707         * \sdcc\as\mcs51\aslink.h: External definition of sflag and
9708         summary().
9709
9710         * \sdcc\as\mcs51\lkarea.c: Computes the size of area BSEG_BYTES from
9711         area BSEG.  Also moves, if possible, the DATA area down into the internal
9712         ram so more space is available.
9713
9714         * \sdcc\as\mcs51\lkdata.c: Definition of memory summary output flag
9715         sflag.
9716
9717         * \sdcc\as\mcs51\lklist.c: For the BSEG area report the size in bits,
9718         not bytes.  Function summary() which creates a memory usage summary
9719         file with extension .mem.  Reports of overlaping stack and small stack
9720         size.  If the space for the stack is less than 16 bytes aslink trows a
9721         warning.
9722
9723         * \sdcc\as\mcs51\lkmain.c: Creation of some of the default areas for
9724         the 8051.  Option 'y' for memory summary output file.
9725
9726         Changes to sdcc (All the changes are marked with 'JCF'):
9727
9728         * \sdcc\src\SDCCglobl.h: External definition of RegBankUsed[4].
9729
9730         * \sdcc\src\SDCCglue.c:  If a register bank is used, creates an
9731         overlaying area for it (uses RegBankUsed[4]).
9732
9733         * \sdcc\src\SDCCmain.c: Definition RegBankUsed[4]; marks register
9734         bank zero as used by default.  By default aslink locates the stack
9735         (equivalent to --stack-after-data).  Pass option 'y' to aslink for
9736         the creation of the .mem file.  Delegates the allocation of data area
9737         to aslink (it is not longer 0x30 by default).  If --stack-loc passes
9738         the begining of the stack area to aslink.
9739
9740         * \sdcc\src\SDCCmem.c:  If a register bank is used, marks it so
9741         glue() in SDCCglue.c creates an area for it.
9742
9743 2002-09-03  Borut Razem <borut.razem AT siol.net>
9744         * sdcc/src/SDCCglue.c, sdcc/src/SDCCglue.h, sdcc/src/SDCCmain.c,
9745         sdcc/src/pic/glue.c:
9746         introduced atexit() handler for teporay files removal in case of
9747         errors, assertions, ...
9748
9749 2002-08-29  Borut Razem <borut.razem AT siol.net>
9750         * sdcc/support/cpp2/auto-host_vc_in.h:
9751         re-definition of O_BINARY and other O_XXX as _O_BINARY and _O_XXX, so the problem
9752         with the returned value from read() in sdcc/support/cpp2/cppfiles.c is solved for MSC.
9753         Maybe there is a similar problem with BORLANDC? It should be checked!
9754
9755         * sdcc/src/ds390/ralloc.c, sdcc/src/mcs51/ralloc.c, sdcc/src/z80/ralloc.c:
9756         corrected improper use of assert: the assignment to clr variable was done inside the assert.
9757         In case that NDEBUG was defined, the assert macro was substituted with no-op, so the assignment
9758         was not executed, and the compiler (cl) launched a warning:
9759         ralloc.c(1442) : warning C4700: local variable 'clr' used without having been initialized
9760
9761 2002-08-28  Bernhard Held <bernhard AT bernhardheld.de>
9762         * src/SDCCglue.c (printIvalArray): iterative calculation of array length
9763
9764 2002-08-28  Jesus Calvino-Fraga and Borut Razem <borut.razem AT siol.net>
9765         * sdcc/sdcc.dsw: added sdcpp, sdcppa, yacc, conf projects
9766
9767         * sdcc/src/src.dsp, sdcc/src/avr/avr.dsp, sdcc/src/ds390/ds390.dsp,
9768           sdcc/src/mcs51/mcs51.dsp, sdcc/src/pic/pic.dsp, sdcc/src/z80/z80.dsp,
9769           sdcc/src/xa51/xa51.dsp, sdcc/src/avr/avra.dsp,
9770           sdcc/src/ds390/ds390a.dsp, sdcc/src/mcs51/mcs51a.dsp,
9771           sdcc/src/pic/pica.dsp, sdcc/src/z80/z80a.dsp,
9772           sdcc/src/xa51/xa51a.dsp, sdcc/as/as_z80.dsp,
9773           sdcc/as/aslink.dsp, sdcc/as/asx8051.dsp, sdcc/packihx/packihx.dsp:
9774         - added Release configuration in VS projects
9775         - review of compiler an linker options
9776         - VC .exe files are generated in bin_vc directory, not to interfere
9777           with binaries generated from other projects (cygwin, mingw, bcc ...)
9778
9779         * sdcc/src/yacc.dsp: added
9780
9781         * sdcc/config.dsp, sdcc/configure_vc.awk, sdcc/sdcc_vc_in.h:
9782         added - genarate sdcc_vc.h using sdcc_vc_in.h as template
9783         and insert the version number definitions from .version
9784
9785         * sdcc/support/cpp2/sdcpp.dsp: added - VC project for sdcpp
9786
9787         * sdcc/support/cpp2/sdcppa.dsp, sdcc/support/cpp2/auto-host_vc_in.h:
9788         added - genarate auto-host.h using auto-host_vc_in.h as template
9789
9790         * sdcc/sdcc_vc.h,
9791         removed from CVS, generated automatically
9792
9793 2002-08-25  Bernhard Held <bernhard AT bernhardheld.de>
9794         * support/scripts/inc2h.pl: use gputils or gpasm (from Nathan Hurst)
9795
9796 2002-08-11  Borut Razem <borut.razem AT siol.net>
9797         * support/Util/NewAlloc.c: removed unneeded #include "sdccconf.h" (suggested by Jesus Calvino-Fraga)
9798
9799 2002-08-10  Borut Razem <borut.razem AT siol.net>
9800         * src/SDCCmain.c (main):
9801         file preOutName was unlinked before closed. This seems to be OK on UNIX and cygwin
9802         platforms, but it doesn't work with Visual Studio: the opened file can not be removed.
9803         The consequence was that some temporary files were not removed.
9804
9805         * src/SDCCglue.c:
9806         unification of code in functions tempfilename() and tempfile():
9807         function tempnam() is defined in Visual Studio 6.0 and .NET
9808
9809         * sdcc/sdcc.dsw: removed project sdcpp, added project xa51a
9810
9811         * sdcc/src/src.dsp, sdcc/src/avr/avr.dsp, sdcc/src/ds390/ds390.dsp,
9812           sdcc/src/mcs51/mcs51.dsp, sdcc/src/pic/pic.dsp, sdcc/src/z80/z80.dsp:
9813         - removed compiler command line option /WX: Treats all warnings as errors
9814         - update a list of source files, included into the project
9815
9816         * sdcc/src/avr/avra.dsp, sdcc/src/ds390/ds390a.dsp, sdcc/src/mcs51/mcs51a.dsp,
9817           sdcc/src/pic/pica.dsp, sdcc/src/z80/z80a.dsp:
9818         changed project type to Generic Project so that can be correcly converted to VS.NET project
9819
9820         * sdcc/as/mcs51/asm.h: definition of PATH_MAX for MSC
9821
9822         * sdcc/src/SDCCast.c: solved MSC error in function decorateType()
9823
9824         * sdcc/src/SDCC.y: added missing ending ';' to rules to get rid of bison warnings
9825
9826         * dcc/src/ds390/ralloc.c, sdcc/src/mcs51/ralloc.c:
9827         added return 0 statements after assert() to make compiler happy
9828
9829         * sdcc/src/xa51/peeph.rul, sdcc/src/xa51/peeph.def, sdcc/src/z80/ralloc.c:
9830         added newline in the def file to keep MSC compiler satisfied
9831
9832         * sdcc/src/z80/gen.c:
9833         - function strcasecmp() is not defined in MSC (and probably also in BORLANDC),
9834           so it is replaced with STRCASECMP, which is defined as stricmp in case of MSC and BORLANDC
9835         - solved MSC error in function aopDump()
9836
9837         * sdcc_vc.h: define PREFIX as "\\sdcc"
9838
9839 2002-07-18  Bernhard Held <bernhard AT bernhardheld.de>
9840         * src/SDCCast.c (decorateType): fixed access to array of structures http://sourceforge.net/mailarchive/forum.php?thread_id=902690&forum_id=4107
9841
9842 2002-06-22  Scott Dattalo <scott AT dattalo.com>
9843         * src/pic/*: Numerous bug fixes. Flow analysis has been enhanced.
9844         - Rewrote the register banking algorithm.
9845         - Added pCode live-range analysis to registers (for now, only non-used and
9846         singly-used registers optimized away)
9847
9848         * src/pic/pcoderegs.[ch]: Added new files for pCode live-range analysis
9849
9850         * 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.
9851
9852 2002-05-10  Scott Dattalo <scott AT dattalo.com>
9853         * src/pic/*: Added support for multiplication. Fixed many,many bugs.
9854
9855 2002-04-22  Michael Hope  <michaelh AT vroom>
9856
9857         * device/lib/z80/printf.c: Changed emitter to volatile to work around a pcall bug.
9858
9859         * configure.in (DD_COPT): Added include support required for gbdk.
9860
9861         * .version: Bumped version number just to increase it.
9862
9863         * src/SDCCmain.c: Added -nostdinc to the default options.
9864
9865 2002-04-15  Michael Hope  <michaelh AT vroom>
9866
9867         * device/lib/z80/printf.c (sprintf): Added.
9868
9869         * src/z80/ralloc.c (packRegisters): Disabled pack HL use for GB as it's broken.
9870
9871         * src/z80/peeph.def: Added transpose redundent load rule.
9872
9873         * src/z80/main.c: Added force callee saves for jaune.
9874
9875         * src/port.h: Removed the i186 and tlcs-900h ports as they weren't being being developed.
9876
9877         * src/SDCCmain.c: Pulled the options definition out so that you can add port specific options without changing the main file.
9878
9879 2002-03-28  Johan Knol  <johan AT balder>
9880
9881         * src/SDCCval.c: fixed bug #532436
9882
9883 2002-03-14  Scott Dattalo <scott AT dattalo.com>
9884         * /src/port.h:
9885         Added "char *Processor" field to the port structure.
9886
9887         * /src/SDCCmain.c:
9888         Added -p option. Allows port dependent processor to be specified.
9889
9890         * all ports:
9891         Initialized the new field char *Processor field to NULL in all ports
9892
9893         * /src/pic/*:
9894         Compiler generated registers for interrupt context saving
9895         were not getting allocated.
9896
9897 2002-03-16  Sandeep Dutta  <sandeep AT ddi.com>
9898
9899         * /src/SDCCast.c:
9900         Fixed left shift. Will promote the left side of a left shift
9901         if a) left shifting more than size of operand or b) when assigned
9902         to something size > size of left side
9903
9904 2002-03-14  Scott Dattalo <scott AT dattalo.com>
9905         * src/pic/*
9906         tons of changes. Register allocation has been
9907         rewritten. Added customization for the various PICs. Flow
9908         analysis is restructured. ...
9909
9910         * src/pic/device.h:
9911         Added
9912
9913         * src/pic/device.c:
9914         Added. device.c is a PIC port hack to accomodate variations
9915         in PIC devices.
9916
9917 2002-03-13  Michael Hope  <michaelh AT vroom>
9918
9919         * src/z80/gen.c (genGenPointerGet): Fixed a bug where a pointer in HL is dereferenced into HL but HL is not spilled.  Yeah.
9920
9921 2002-03-04  johanknol  <johanknol AT manik>
9922
9923         * /src/SDCCval.c: fixed
9924
9925         const unsigned char arr[][2] = { { 0, 1 } };
9926         t18.c:1: error: Initializer element is not constant
9927
9928 2002-03-04  bela  <bela AT manik>
9929
9930         * /device/include/mcs51reg.h:
9931         ds89c420 register definition update
9932
9933 2002-03-03    <johan AT FRIJA>
9934
9935         * support/Util/SDCCerr.c: did something, but don't no why anymore
9936
9937         * support/regression/tests/bug-524691.c: made it a little less shy
9938
9939         * src/SDCCast.c (decorateType): fixed bug #524697
9940
9941         * src/SDCCast.c: made some lineno improvements
9942
9943         * src/SDCCval.c (getNelements): changed warning to error
9944
9945         * src/SDCCglue.c (printIvalArray): changed warning to error
9946
9947         * src/SDCCicode.c: fixed a warning for mingw
9948
9949         * src/SDCCast.c (decorateType): fixed the << promotion for ops
9950
9951         * src/SDCCicode.c (geniCodeDivision): divide is shift only for unsigned (bug #524685)
9952
9953 2002-03-02  Sandeep Dutta  <sandeep AT ddi.com>
9954
9955         * src/ds390/peeph.def:
9956         Added some more peephole rules
9957
9958         * src/ds390/gen.c: Various fixes & enhancements
9959
9960         * src/SDCClrange.c, src/SDCClrange.h:
9961         functions "alldefsoutofrange" and "notusedinblock" moved to SDCClrange.c
9962
9963         * src/ds390/ralloc.c:
9964         various fixes & enhancements (ds390) specific
9965
9966         * src/avr/ralloc.c, src/mcs51/ralloc.c, src/pic/ralloc.c, src/xa51/ralloc.c, src/z80/ralloc.c:
9967         Functions "allDefsOutOfRange" & "notUsedinBlock" moved to SDCClrange.c
9968         from rallocs.
9969
9970         * sdcc/src/SDCCcse.c: Better fix for bug # 514308
9971
9972 2002-03-02    <johan AT FRIJA>
9973
9974         * src/SDCCast.c (decorateType): fixed bug #524708
9975
9976         * src/SDCCval.c (floatFromVal): fixed the literal void (whatever that may be)
9977
9978         * src/SDCCicode.c (geniCodePtrPtrSubtract): fixed bug #524691
9979
9980 2002-03-01  Michael Hope  <michaelh AT vroom>
9981
9982         * src/SDCCsymt.c (initCSupport): Removed managling of support function names.
9983
9984         * src/z80/ralloc.c (packRegsForIYUse): Fixed fp bug where four byte operands were packed into IY.
9985
9986 2002-03-01    <johan AT FRIJA>
9987
9988         * src/SDCCglue.c (printIvalPtr): fixed bug #524211
9989
9990         * src/SDCCast.c (decorateType): fixed bug #524209
9991
9992         * src/SDCCval.c (valNot): fixed bug #524195
9993
9994 2002-02-26    <johan AT balder>
9995
9996         * src/xa51/gen.c: fixed a warning
9997
9998         * src/SDCCglue.c (printIvalFuncPtr): fixed bug #522534
9999
10000         * src/SDCCast.c (decorateType): fixed bug #522534
10001
10002 2002-02-23    <johan AT balder>
10003
10004         * src/SDCCdflow.c (computeDataFlow): fixed bug #460088
10005
10006 2002-02-22    <johan AT balder>
10007
10008         * src/SDCCast.c: fixed bug #514865
10009
10010         * src/SDCCy.c ("SDCC.y"): fixed bug #516625
10011
10012 2002-02-21  Sandeep Dutta  <sandeep AT ddi.com>
10013
10014         * sdcc/src/SDCCloop.c:
10015         Previous fix was not good. basic blocks that have "break" or "return" are
10016         not really partof a loop , but live ranges used in these blocks should
10017         be live thru the entire loop, so set partOfLoop but don't add them to
10018         loop region
10019
10020 2002-02-21    <johan AT FRIJA>
10021
10022         * src/SDCCcse.c: fixed bug #514308
10023
10024 2002-02-20  Sandeep Dutta  <sandeep AT ddi.com>
10025
10026         * src/SDCCloop.c:
10027         Fixed BUG #519583. If a conditional block ended in a return/break
10028         statement inside a loop, it was not being considered part of the loop.
10029
10030         * src/SDCCcflow.c: Removed fix (Fixed in SDCCloop.c)
10031
10032 2002-02-10  Karl Bongers <karl AT turbobit.com>
10033
10034         * debugger/*:
10035         Fixed up SDCDB debugger somewhat.  Updated debugger/README
10036         with lots of comments and notes.
10037
10038         * device/examples/test2.c:
10039         Fix bug, "red" variable not being initialized(compiler complained).
10040
10041         * device/examples/Makefile, examples/test3.c:
10042         Add Makefile in device/examples folder, compiles test3.c
10043         for use as a multiple module SDCDB test case.
10044
10045         * sim/ucsim/cmd.src/cmdset.cc:
10046         Took out debug printfs in ucsim "next" command.
10047
10048         * sim/ucsim/xa.src:
10049         Karl and Johan start ucsim XA support.  Most dissassembly working,
10050         about 75% emulation done(plenty of work remaining).
10051
10052         * sim/ucsim/z80.src:
10053         Add Z80 support to ucsim, add test-ucz80 regression test,
10054         notice ucsim/z80 emulation fails on examples/test3.c/itoa code.
10055         Notice z80 compiler fails on examples/test3.c/crc code.
10056
10057 2002-01-30  Sandeep Dutta  <sandeep AT ddi.com>
10058
10059         * src/mcs51/gen.c, src/mcs51/main.c, src/mcs51/ralloc.c:
10060         Added support for --parms-in-bank1
10061
10062         * src/ds390/peeph.def:
10063         added a few more peephole optimzations
10064
10065         * src/ds390/main.c:
10066         1) added __builtin_inp & __builtin_outp used to read in data of given length
10067            from a memory mapped port
10068         2) added __builtin_memcmp
10069         3) added __builtin_swapw swap bytes of a short
10070
10071         * src/ds390/gen.c, src/ds390/gen.h, src/ds390/ralloc.c:
10072         1) handle multiple send & receives from register bank1
10073         2) ralloc can now allocate DPTR1 to some liveRanges
10074
10075         * src/SDCCsymt.c, src/SDCCsymt.h:
10076         changes to handle multiple sends & receives
10077
10078         * src/SDCCptropt.h:
10079         added some pointer arithmetic optimization
10080
10081         * src/SDCCptropt.c:
10082         added some pointer arithmetic optimizations but not stable yet so not
10083         called from anywhere (will get this working shortly)
10084
10085         * src/SDCCopt.c: fixed for multiple sends & receives
10086
10087         * src/SDCCmain.c:
10088         1) added options --parms-in-bank1 (ds390/mcs51) & --protect-sp-update
10089         2) preprocessing done AFTER port->finalizeoptions . This allows ports to
10090            set preprocessor defines (depending on options)
10091
10092         * src/SDCCicode.c, src/SDCCicode.h:
10093         changes made to handle multiple sends & receives
10094
10095         * src/SDCCglobl.h:
10096         Added options --protect-sp-update (ds390) and --parms-in-bank1 (ds390/mcs51)
10097
10098         * src/SDCCcse.c, src/SDCCcse.h:
10099         added function findbackward def (to be used in upcoming optimization)
10100
10101         * src/SDCCcflow.c, src/SDCCcflow.h:
10102         added function returnAtEnd - to determine if a basic block terminates with
10103         a RETURN iCode
10104
10105         * src/SDCCast.c, src/SDCCast.h:
10106         added option parms-in-bank1
10107
10108         * device/lib/_divsint.c, device/lib/_divslong.c, device/lib/_divuint.c
10109         * device/lib/_divulong.c, device/lib/_modsint.c, device/lib/_modslong.c
10110         * device/lib/_modulong.c, device/lib/_mulint.c, device/lib/_mullong.c:
10111         adjusted for --parms-in-bank1 option
10112
10113         * device/include/string.h:
10114         donot redefine "reentrant" keyword
10115
10116         * device/include/ds80c390.h: Added some more SFRs
10117
10118 2002-01-28  Bernhard Held  <bernhard AT bernhardheld.de>
10119
10120         * sim/ucsim: Merged branch ucsim-034-pre3 to main trunk; new version 0.4
10121
10122 2002-01-26  Bernhard Held  <bernhard AT bernhardheld.de>
10123
10124         * src/SDCCast.c (funcOfType): fix usage of double --float-reent
10125
10126 2002-01-22  Bernhard Held  <bernhard AT bernhardheld.de>
10127
10128         * support/regression/fwk/lib/testfwk.c (main): Removed workaround for bug #505387
10129
10130 2002-01-18  Paul Stoffregen  <paul AT pjrc.com>
10131
10132         * Added --xram-movc option
10133
10134 2002-01-13  Bernhard Held  <bernhard AT bernhardheld.de>
10135
10136         * support/regression/Makefile: don't include test-mcs51-stack-auto in target all
10137
10138 2002-01-11  Johan Knol
10139
10140         * Added math lib of Jesus Calvino-Fraga
10141
10142 2002-01-08  Bernhard Held  <bernhard AT bernhardheld.de>
10143
10144         * src/SDCCmain.c (processFile): fix processing of ../../src.c
10145         * support/regression/Makefile: new target test-mcs51-stack-auto
10146         * support/regression/ports/mcs51-stack-auto/spec.mk: added
10147
10148 2002-01-04  Bernhard Held  <bernhard AT bernhardheld.de>
10149
10150         * src/SDCCglue.h: printIvalCharPtr(), not printIvalChar()
10151
10152 2002-01-04  Bernhard Held  <bernhard AT bernhardheld.de>
10153
10154         * support/regression/ports/mcs51/support.c: correct setup of timer / UART
10155
10156 2002-01-03  Bernhard Held  <bernhard AT bernhardheld.de>
10157
10158         * src/SDCCsymt.c (processFuncArgs): fix #498307 by Johan
10159
10160         * src/SDCCglue.h: add definition for printIvalChar()
10161
10162 2002-01-02  Bernhard Held  <bernhard AT bernhardheld.de>
10163
10164         * src/SDCCast.c: fix #498138 by Johan
10165
10166         * src/SDCCglue.c: fix #498138 by Johan
10167
10168 2002-01-02  Bernhard Held  <bernhard AT bernhardheld.de>
10169
10170         * support/regression/Makefile: fix clean
10171
10172         * support/regression/ports/ds390/support.c: fix transmission of last character
10173
10174 2001-12-29  Sandeep Dutta  <sandeep AT ddi.com>
10175
10176         * /sdcc/src/ds390/gen.c:
10177         a) improved computing address of stack variable
10178         b) took out some #if 0 code
10179         c) improved parmBytes adjustment
10180         d) improved genPlusIncr & genMinusIncr
10181         e) genCmp could generate bad code (when left assigned to DPTR)
10182         f) Fixed bug in hasInc
10183
10184         * /sdcc/src/ds390/ralloc.c:
10185         a) packRegsForSupport could mess up live information (Fixed)
10186         b) packRegsDPTRuse could be incorrect for left & right shift
10187
10188         * /sdcc/src/mcs51/ralloc.c:
10189         packRegsForSupport could mess up the live information (Fixed)
10190
10191         * /sdcc/src/mcs51/gen.c: Fixed a bug in hasInc
10192
10193         * /sdcc/src/SDCCast.c:
10194         can reverse a loop even if function call is present as long
10195         as the loop control variable is local & is not passed as parameter
10196
10197 2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>
10198
10199         * /sdcc/ChangeLog: *** empty log message ***
10200
10201         * /sdcc/src/ds390/gen.c, /sdcc/src/ds390/main.c:
10202         More builtin function additions for TININative
10203
10204         * /sdcc/src/ds390/ralloc.c:
10205         Had broken the regression testsuite
10206
10207         * /sdcc/src/SDCCast.c: Fixed a bug in dumptree
10208
10209         * /sdcc/src/SDCCsymt.c, /sdcc/src/SDCCsymt.h:
10210         Added funcattr hasStackParms will be set for reentrant functions when there
10211         are paramteres on the stack, this helps in minimizing frame pointer generation
10212         typeFromStr can handle function pointers now
10213
10214         * /sdcc/doc/builtins.txt, /sdcc/doc/TININative.txt:
10215         *** empty log message ***
10216
10217 2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>
10218
10219         * /src/ds390/gen.c, /src/ds390/main.c:
10220         More builtin function additions for TININative
10221
10222         * /src/ds390/ralloc.c:
10223         Had broken the regression testsuite
10224
10225         * /src/SDCCast.c: Fixed a bug in dumptree
10226
10227         * /src/SDCCsymt.c, /src/SDCCsymt.h:
10228         Added funcattr hasStackParms will be set for reentrant functions when there
10229         are paramteres on the stack, this helps in minimizing frame pointer generation
10230         typeFromStr can handle function pointers now
10231
10232         * /doc/builtins.txt, /doc/TININative.txt:
10233         *** empty log message ***
10234
10235
10236 2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>
10237
10238         * /src/ds390/gen.c, /src/ds390/main.c, /src/ds390/peeph.def, /src/ds390/ralloc.c:
10239         ALPHA version for -mTININative
10240
10241         * /src/izt/i186.c, /src/izt/tlcs900h.c, /src/mcs51/main.c, /src/pic/main.c, /src/z80/main.c, /src/avr/main.c:
10242         updated to reflect changes in the port structure
10243
10244         * /src/port.h:
10245         added function do_assemble (similar to do_link) if non-null this function
10246         will be called to do assembly (-mTININative) requires a multi command
10247         assembly
10248         added function genAssemblerEnd will be called to generate assembler Epilogue
10249
10250         * /src/SDCCsymt.c:
10251         added _JavaNative to debug info printing
10252
10253         * /src/SDCCmain.c: added option --tini-libid
10254         added port->do_assemble function (-mTININative) has a multi command assemble
10255
10256         * /src/SDCCglue.c: Disabled "constExpr" check
10257         added port->genAssemblerEnd function
10258
10259         * /src/SDCCglobl.h: Added option --tini-libid value
10260
10261         * /src/SDCCast.h:
10262         tookout optimizeCompare from the header (has no external references)
10263
10264         * /src/SDCCast.c: made one more function "static"
10265
10266 2001-12-23  Michael Hope  <michaelh AT juju.net.nz>
10267
10268         * src/z80/mappings.i: Added z80asm support.
10269
10270         * src/z80/main.c: Added z80asm support on --asm=z80asm
10271
10272         * src/z80/gen.c: Fixed asm portability issues.
10273
10274         * src/asm.c (tvsprintf): Removed old code, added 'N' for function name.  For extern support.
10275
10276         * src/SDCCglue.c (printExterns): Added global/extern split.
10277
10278 2001-12-17  Bernhard Held  <bernhard AT bernhardheld.de>
10279
10280         * support/regression/Makefile: added test for mcs51 model large
10281
10282         * support/regression/ports/mcs51-large/spec.mk: added test for mcs51 model large
10283
10284         * support/regression/ports/gbz80/spec.mk: added -mgbz80
10285
10286 2001-12-05  Michael Hope  <michaelh AT juju.net.nz>
10287
10288         * src/diff.1 (Index): Many, many optmisiations.  Dhrystone up to 201.
10289
10290 1904-01-06  Michael Hope  <michaelh AT juju.net.nz>
10291
10292         * src/z80/ralloc.c (packRegsForIYUse): Fixed the case where an operand is in direct space.
10293
10294         * src/z80/gen.c (makeFreePairId): Optimised IY load by using a spare pair.
10295
10296 2001-12-02  Bernhard Held  <bernhard AT bernhardheld.de>
10297
10298         * src/mcs51/gen.c (genFunction): avoid excess "inc sp"
10299
10300         * support/regression/tests/simplefloat.c: Port to mcs51.
10301
10302 2001-11-25  Michael Hope  <michaelh AT juju.net.nz>
10303         * support/regression/tests/bug-485362.c: Added.
10304
10305         * support/regression/tests/simplefloat.c (testDivNearOne): Added.
10306
10307         * src/z80/gen.c (aopOp): Fixed case where left and result are in the same spill loc and they have different sizes.
10308
10309         * src/z80/peeph.def: Added rules for optimising two byte compares on the same thing, and to optimise two ptr assign.
10310
10311         * src/z80/gen.c (aopDump): Added a dump function.
10312
10313 2001-11-25  Bernhard Held  <bernhard AT bernhardheld.de>
10314         * sim/ucsim/s51.src/glob.cc: DS390 SFRs and bits added.
10315
10316         * sim/ucsim/s51.src/port.cc: Port 4 and 5 added.
10317
10318         * sim/ucsim/s51.src/regs51.h: DS390 SFRs added.
10319
10320         * sim/ucsim/s51.src/uc390.cc: Some details improved, CKRDY works for tinibios.
10321
10322         * sim/ucsim/s51.src/uc390cl.h: Work in progress.
10323
10324         * sim/ucsim/sim.src/uccl.h: 6 ports for DS390.
10325
10326         * support/regression/fwk/lib/testfwk.c: Run with tinibios.
10327
10328         * support/regression/ports/mcs51/spec.mk: Fine tuninig.
10329
10330         * support/regression/ports/ds390/support.c: Use tinibios.
10331
10332         * support/regression/ports/ds390/spec.mk: Fine tuning, use tinibios.
10333
10334 2001-11-23  Michael Hope  <michaelh AT juju.net.nz>support/regression/tests/bug-460010.c
10335
10336         * src/z80/ralloc.c (packRegsForHLUse3): Changed to not pack into HL if anything is in direct space.
10337         (packRegsForHLUse3): Added packing support for send, cast, and return value from a call.
10338
10339         * src/z80/peeph.def: Added rules for optimising pushes of part of a pair.
10340
10341         * src/z80/gen.c (emitCall): Changed the stack fixup to not use HL.
10342
10343 2001-11-18  Michael Hope  <michaelh AT juju.net.nz>
10344
10345         * src/z80/gen.c (genCmp): Fixed compare on unsigned.
10346
10347         * src/z80/ralloc.c (packRegsForHLUse3): Created and optimised.
10348         (packRegsForIYUse): Created and optimised.
10349
10350 2001-11-07  Michael Hope  <michaelh AT juju.net.nz>
10351
10352         * support/regression/tests/float.c (testFloatAdd): Fixed up warning.
10353 2001-11-18  Bernhard Held  <bernhard AT bernhardheld.de>
10354
10355         * sdcc/support/regression/tests/bug-460010.c: fix seg violation on host
10356
10357         * sdcc/support/regression/tests/muldiv.c: fix output on mcs51
10358
10359         * sdcc/support/regression/tests/stacks.c: fix DSEG overflow on mcs51
10360
10361 2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>
10362
10363         * sdcc/sim/device/lib/_gptrget.c: mem region 5 (idata) added
10364
10365         * sdcc/sim/device/lib/_gptrput.c: mem region 5 (idata) added
10366
10367 2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>
10368
10369         * sdcc/sim/ucsim/globals.cc: New: IXRAM.
10370
10371         * sdcc/sim/ucsim/stypes.h: New: IXRAM.
10372
10373         * sdcc/sim/ucsim/s51.src/uc390.cc: New: IXRAM.
10374
10375 2001-11-07  Michael Hope  <michaelh AT juju.net.nz>
10376
10377         * src/z80/ralloc.c (packRegsForHLUse): Banned IFXs from being packed into HL.
10378         (packRegsForHLUse): Added rule to pack address of/pointer get for itemps into HL for the Z80.
10379         (packRegsForAccUse2): Added rule to pack hbit IFXs into A.
10380
10381         * src/z80/main.c (_setDefaultOptions): Made float code re-entrant by default.
10382
10383         * src/z80/gen.c (aopGetLitWordLong): Added word support for floats.
10384         (genNotFloat): Added.
10385         (genUminusFloat): Added.
10386
10387         * device/lib/z80/Makefile: Added floating pt stubs.
10388
10389         * device/lib/Makefile.in (Z80SOURCES): Added floating pt support.
10390
10391         * src/z80/gen.c (genIpush): Fixed up a push of one byte when left is in a pair.
10392
10393         * device/lib/_fsadd.c (__fsadd): Fixed up return where the numbers are hugely different.
10394
10395 2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>
10396
10397         * sdcc/sim/ucsim/s51.src/glob.cc: Minor fix.
10398
10399         * sdcc/sim/ucsim/s51.src/regs51.h: Minor fix.
10400
10401         * sdcc/support/regression/Makefile: Add port ds390.
10402
10403         * sdcc/support/regression/ports/mcs51/spec.mk: Minor change.
10404
10405         * sdcc/support/regression/ports/z80/spec.mk: Minor change.
10406
10407         * sdcc/support/regression/ports/ds390/spec.mk: Added.
10408
10409         * sdcc/support/regression/ports/ds390/support.c: Added.
10410
10411         * sdcc/support/regression/ports/ds390/uCsim.cmd: Added.
10412
10413         * sdcc/support/regression/ports/mcs51/timeout.c: Cut.
10414
10415         * sdcc/support/regression/fwk/lib/timeout.c: Paste.
10416
10417 2001-11-04  Michael Hope  <michaelh AT juju.net.nz>
10418
10419         * device/include/malloc.h: Added z80 and gbz80 support.
10420
10421         * device/lib/gbz80/heap.s: Added.
10422
10423         * device/lib/z80/heap.s: Added.
10424
10425         * device/lib/malloc.c: Added z80 and gbz80 support.
10426
10427         * support/regression/tests/malloc.c (testMalloc): Added.
10428
10429         * src/SDCCmain.c (parseCmdLine): Added support for -Wp.
10430
10431         * support/regression/tests/bug-478094.c: Added.
10432
10433         * src/z80/gen.c (commitPair): Fixed silly gbz80/z80 commit to static bug.
10434
10435 2001-11-04  Bernhard Held  <bernhard AT bernhardheld.de>
10436
10437         * sdcc/sim/ucsim/s51.src/uc390cl.h: Improvement for ds390 to run regression tests
10438
10439         * sdcc/sim/ucsim/s51.src/uc390.h: Improvement for ds390 to run regression tests
10440
10441         * sdcc/sim/ucsim/s51.src/regs51.h: Improvement for ds390 to run regression tests
10442
10443         * sdcc/sim/ucsim/s51.src/glob.cc: Improvement for ds390 to run regression tests
10444
10445         * sdcc/support/regression/tests/bug-460010.c: Small change for ds390
10446
10447 2001-11-04  Michael Hope  <michaelh AT juju.net.nz>
10448
10449         * src/z80/peeph-gbz80.def: Removed a bad sub optimisation.
10450
10451 2001-11-03  Michael Hope  <michaelh AT juju.net.nz>
10452
10453         * support/regression/tests/bug-477927.c: Added.
10454
10455         * src/z80/peeph.def: Added minor rules.
10456
10457         * src/z80/gen.c (genPlusIncr): Added an extra plusinc rule.
10458
10459         * src/z80/peeph.def: Added jump optimisation modification.
10460
10461 2001-11-01  Michael Hope  <michaelh AT juju.net.nz>
10462
10463         * src/SDCCmain.c (linkEdit): Added runtime path detection to the mcs51 port.
10464
10465 2001-10-30  Michael Hope  <michaelh AT juju.net.nz>
10466
10467         * support/regression/tests/funptrs.c: Added.
10468
10469 2001-10-29  Michael Hope  <michaelh AT juju.net.nz>
10470
10471         * src/z80/ralloc.c (packRegsForHLUse): Fixed up bad spill due to pushing one byte via HL.
10472
10473 2001-10-28  Michael Hope  <michaelh AT juju.net.nz>
10474
10475         * src/z80/gen.c (genArrayInit): Made it work for on stack arrays.
10476
10477         * src/z80/main.c (gbz80_port =): Added rle support to the gbz80 port.
10478
10479         * src/z80/gen.c (genMinus): Fixed for where the result is one byte.
10480         (movLeft2ResultLong): Created.
10481
10482         * src/z80/ralloc.c (packRegsForHLUse): Added a couple of simple cases for the GB.
10483         (joinPushes): Added.  Joins two char pushes into a word push.
10484
10485 2001-10-27  Michael Hope  <michaelh AT juju.net.nz>
10486
10487         * support/cpp2/Makefile.in (install): Added creation of dest dir.
10488
10489         * support/makebin/Makefile (install): Added creation of dest dir.
10490
10491 2001-10-24 Karl Bongers <karl AT turbobit.com>
10492
10493         * configure.in, configure, Makefile, support/cpp: Removed cpp folder, since we have new cpp2 preprocessor code.
10494
10495 2001-10-21  Michael Hope  <michaelh AT juju.net.nz>
10496
10497         * src/z80/ralloc.c: Turned off faulty pack for one use.
10498
10499         * src/z80/peeph-gbz80.def: Removed redundent restart options.
10500
10501         * src/z80/gen.c (genMult): Added native mul for constants on the z80 and gbz80.
10502
10503 2001-10-21  Bernhard Held  <bernhard AT bernhardheld.de>
10504
10505         * support/regression/Makefile: Improved clean
10506
10507         * support/regression/ports/gbz80/spec.mk: Added clean
10508
10509         * support/regression/ports/host/spec.mk: Added clean
10510
10511         * support/regression/ports/z80/spec.mk: Added clean
10512
10513         * support/regression/ports/mcs51/spec.mk: Added clean, little improvements
10514
10515         * support/regression/ports/mcs51/timeout.c: little improvements
10516
10517 2001-10-17  Michael Hope  <michaelh AT juju.net.nz>
10518
10519         * device/lib/malloc.c (MEMHEADER): Fixed against new pedantic pointers.
10520
10521         * support/regression/fwk/include/testfwk.h: Fixed up to use function pts correctly.
10522
10523         * support/regression/generate-cases.py: Fixed up to use function pts correctly.
10524
10525 2001-10-16  Bernhard Held  <bernhard AT bernhardheld.de>
10526
10527         * support/regression/port/mcs51/spec.mk: add timeout for uCsim
10528
10529         * support/regression/port/mcs51/timeout.c: add timeout for uCsim
10530
10531 2001-10-13  Michael Hope  <michaelh AT juju.net.nz>
10532         * src/z80/gen.c (emitCall): Fixed up missing spill of HL when used to assign the result value.
10533
10534         * src/z80/ralloc.c: Turned off pack for one use as it's quite broken.
10535
10536         * src/SDCCmain.c (linkEdit): Added support for passing a legacy command line through the processor.
10537
10538         * src/mcs51/main.c (_linkCmd): Added bin path to command.
10539
10540         * src/SDCCmain.c (initValues): Added support for when it it called just to link.
10541
10542         * as/mcs51/lklibr.c (libfil;): Turned off 'library file' message.
10543
10544         * src/SDCCval.c (constVal): Fixed usage of 'L' modifier problems on ppc.
10545
10546         * support/regression/tests/longor.c: Added.
10547
10548 2001-10-11  Bernhard Held  <bernhard AT bernhardheld.de>
10549
10550         * as/mcs51/asdata.c: replaced FILENAME_MAX with PATH_MAX
10551
10552         * as/mcs51/aslink.h: define PATH_MAX
10553
10554         * as/mcs51/asm.h: define PATH_MAX
10555
10556         * as/mcs51/asmain.c: replaced FILENAME_MAX with PATH_MAX
10557
10558         * as/mcs51/asnoice.c: replaced FILENAME_MAX with PATH_MAX
10559
10560         * as/mcs51/lklex.c: replaced FILENAME_MAX with PATH_MAX
10561
10562         * as/mcs51/lkmain.c: replaced FILENAME_MAX with PATH_MAX
10563
10564         * src/SDCCglobl.h: define PATH_MAX
10565
10566         * src/SDCCmacro.c: replaced FILENAME_MAX with PATH_MAX
10567
10568         * src/SDCCmain.c: replaced FILENAME_MAX with PATH_MAX
10569
10570 2001-10-11  Michael Hope  <michaelh AT juju.net.nz>
10571
10572         * src/z80/gen.c (gencjneshort): Fixed
10573
10574         * src/z80/ralloc.c (packRegsForHLUse): Added pack into HL for cast then ipush.
10575
10576 2001-10-09  Michael Hope  <michaelh AT juju.net.nz>
10577
10578         * support/regression/tests/bug-469671.c: Added.
10579
10580         * src/z80/gen.c (shiftIntoPair): Fixed up warning.
10581
10582 2001-10-08  Michael Hope  <michaelh AT juju.net.nz>
10583
10584         * src/SDCCmain.c: Added --fommit-frame-pointer option and implemented in the z80 port.
10585
10586         * src/z80/gen.c (genPlus): Fixed to work with extended stack.  Also fixed genMinus, genCmp.  genUMinus is still left.
10587
10588 2001-10-08  Bernhar Held  <bernhard AT bernhardheld.de>
10589
10590         * src/SDCCmain.c (preProcess): added define SDCC_NOOVERLAY
10591
10592         * src/device/lib/_mulint.c  : removed hint: nooverlay bug
10593
10594         * src/device/lib/_mullong.c : removed hint: nooverlay bug
10595
10596         * src/device/lib/_divuint.c : removed hint: nooverlay bug
10597
10598         * src/device/lib/_divulong.c: removed hint: nooverlay bug
10599
10600         * src/device/lib/_moduint.c : removed hint: nooverlay bug
10601
10602         * src/device/lib/_modulong.c: removed hint: nooverlay bug
10603
10604 2001-10-07  Michael Hope  <michaelh AT juju.net.nz>
10605
10606         * 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.
10607
10608         * support/Util/NewAlloc.c (freeTrace): Changed free for the gc case to not free at all.  Fixes runtime segfault.
10609
10610         * support/regression/tests/scott-compare3.c (c_abcd): Fixed up casts.
10611
10612 2001-10-07    <johan AT FRIJA>
10613
10614         * device/lib/gets.c (gets): fixed the return value.
10615
10616 2001-10-06  Michael Hope  <michaelh AT juju.net.nz>
10617         * src/SDCCmain.c (WRITE_SEG_LOC): Fixed up to use Safe_strdup.
10618
10619         * 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.
10620
10621         * 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.
10622
10623         * src/z80/gen.c (genZ80Code): Added de-allocation via trace support.
10624
10625         * src/pic/gen.c: Removed Safe_strdup.
10626
10627         * configure.in: Added option to enable libgc support.
10628
10629         * src/SDCCbitv.c (bitVectnBitsOn): Optimised.
10630         (bitVectUnion): Optimised.
10631         (bitVectIntersect): Optimised.
10632         (bitVectBitsInCommon): Optimised.
10633         (bitVectCplAnd): Optimised.
10634
10635         * support/makebin/makebin.c (usage): Removed getopt as mingw32 doesn't have it.  Sigh.
10636
10637 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
10638
10639         * src/SDCCmain.c: distinguish between assembler debug and plain options
10640
10641         * src/avr/main.c:   remove standard assembler options
10642
10643         * src/ds390/main.c: remove standard assembler options
10644
10645         * src/mcs51/main.c: remove standard assembler options
10646
10647         * src/port.h: removed "PENDING" comment
10648
10649 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
10650
10651         * src/device/lib/_mulint.c  : new, with assember functions
10652
10653         * src/device/lib/_mullong.c : new, with assember functions
10654
10655         * src/device/lib/_divuint.c : with assember functions
10656
10657         * src/device/lib/_divsint.c : with assember functions
10658
10659         * src/device/lib/_divulong.c: with assember functions
10660
10661         * src/device/lib/_divslong.c: with assember functions
10662
10663         * src/device/lib/_moduint.c : with assember functions
10664
10665         * src/device/lib/_modsint.c : with assember functions
10666
10667         * src/device/lib/_modulong.c: with assember functions
10668
10669         * src/device/lib/_modslong.c: with assember functions
10670
10671         * src/device/lib/libint.lib:  replaced _muluint.c  and _mulsint.c  by _mulint.c
10672
10673         * src/device/lib/liblong.lib: replaced _mululong.c and _mulslong.c by _mullong.c
10674
10675         * src/device/lib/Makefile.in: replaced _muluint.c  and _mulsint.c  by _mulint.c
10676                                       replaced _mululong.c and _mulslong.c by _mullong.c
10677
10678 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
10679
10680         * src/SDCCsymt.c: sequence of specifiers in pintTypeChain() corrected
10681
10682 2001-10-01 Bernhard Held <bernhard AT bernhardheld.de>
10683
10684         * src/SDCCglue.c: test, if win32api is available for MINGW
10685
10686 2001-10-01 Bernhard Held <bernhard AT bernhardheld.de>
10687
10688         * src/SDCCsymt.c: no more _modifier in printTypeChain()
10689         * support/regression/tests/driverstruct.c: REENTRANT for mcs51
10690         * support/regression/ports/gbz80/spec.mk: removed GENERIC
10691         * support/regression/ports/host/spec.mk: removed GENERIC
10692         * support/regression/ports/mcs51/spec.mk: removed GENERIC
10693         * support/regression/ports/z80/spec.mk: removed GENERIC
10694
10695 2001-10-01  Michael Hope  <michaelh AT juju.net.nz>
10696
10697         * support/regression/fwk/lib/testfwk.c (__printf): Removed GENERIC.
10698
10699         * support/regression/tests/bug-467035.c: Created.
10700
10701 2001-10-01    <johan AT FRIJA>
10702
10703         * src/SDCC.y: fixed bug #466586 part 1
10704
10705 2001-10-01  Johan Knol <johan.knol AT iduna.nl>
10706
10707         * SDCCicode.c: z80 has no generic pointers
10708         * removed -s from strip in all Makefile(.in)'s. It is not needed, but Solaris chocks on it.
10709
10710 2001-09-30  Michael Hope  <michaelh AT juju.net.nz>
10711
10712         * sim/ucsim/cmd.src/Makefile.in ($(PRJDIR)/libcmd.a): Changed all ar references to $(AR) for Solaris.
10713
10714 2001-09-29  Michael Hope  <michaelh AT juju.net.nz>
10715
10716         * Makefile (sdcc-libs): Added makebin to the list of standard targets.
10717
10718         * support/regression/ports/z80/spec.mk: Updated to use env for sdcc bin dir for automatic regression.
10719
10720 2001-09-25  Michael Hope  <michaelh AT juju.net.nz>
10721
10722         * configure.in: Fixed up so that ucsim is only configured once.
10723
10724         * support/cpp2/configure.in: Fixed to use the program transform to append the .exe for the win32 build.
10725
10726         * src/SDCCutil.c (getPrefixFromBinPath): Fixed up to work with win32 in all of its glory.
10727         (getPathDifference): As above.
10728
10729         * src/SDCCmain.c (preProcess): Changed to use a temporary file in a proper temp directory.  Fixed case where pre-processing only.
10730
10731         * src/SDCCglue.c (tempfilename): Added function for pre-processor.
10732
10733 2001-09-23  Michael Hope  <michaelh AT juju.net.nz>
10734         * .version: Updated to 2.3.1
10735
10736         * src/z80/main.c (z80_port =): Added macro based linker and assembler command line support.
10737         Added copyright header.
10738
10739         * src/SDCCmain.c: Shifted various functions into SDCCutil.c
10740         (assemble): Added support for macro based assembler commands.
10741         (linkEdit): Added support for macro based linker commands.
10742         (preProcess): Changed the pre-processor to use macros.
10743         (_setPaths): Added functionality to autodetect the include, lib and bin dir paths.
10744         (_discoverPaths): Added support for overriding the install directory using the SDCCDIR env variable.
10745
10746         * device/lib/z80/crt0.s: Added module name for debugging.
10747
10748 2001-09-20  Michael Hope  <michaelh AT juju.net.nz>
10749
10750         * src/SDCCmain.c (printVersionInfo): Added the build date to the version info.
10751
10752         * src/SDCChasht.c (hTabDeleteByKey): Fixed delete as it would delete the last item from a bucket even if it wasn't the real one.
10753
10754         * src/SDCCglue.c: Moved gc_strdup to SDCCutil.c
10755
10756         * src/Makefile.in: Added SDCCmacro and SDCCutil
10757
10758 2001-09-19  Michael Hope  <michaelh AT juju.net.nz>
10759
10760         * src/SDCCmain.c (printVersionInfo): Added the build date to the version info.
10761
10762 2001-09-16    <johan AT FRIJA>
10763
10764         * 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.
10765
10766 2001-09-15    <johan AT FRIJA>
10767
10768         * src/mcs51/ralloc.c: (findAssignToSym): fixed bug #460662 part 1
10769         * src/ds390/ralloc.c (findAssignToSym): fixed bug #460662 part 1
10770
10771 2001-09-11    <johan AT FRIJA>
10772
10773         * src/SDCCval.c (valDiv Mod Minus Plus Shift): keep litteral expressions as small as possible (bug #460010)
10774
10775 2001-09-10  Michael Hope  <michaelh AT juju.net.nz>
10776
10777         * support/regression/tests/bug-460444.c: Added test case.
10778
10779         * src/z80/gen.c (genOr): bug 460444: if (a ^ lit) was broken for &, |, and ^.
10780         (genCast): Added justification for all of the asserts.
10781
10782 2001-09-10  Bernhard Held <bernhard AT bernhardheld.de>
10783
10784         * support/regression/support.c: _xdata replaced by xdata
10785
10786         * support/regression/spec.mk: removed _generic
10787
10788 2001-09-09  Michael Hope  <michaelh AT juju.net.nz>
10789
10790         * src/pic/ralloc.c (debugLogRegType): Removed some old types to get it to compile.
10791
10792         * src/z80/gen.c (shiftR2Left2Result): Improved the case when v = v >> n for small values of n to use less code space and time.
10793         (genrshTwo): Fixed v = v >> n where v is a negative int and n is > 8: bug 460010.
10794
10795         * src/z80/peeph.def: Added a rule to optimise shift then compare.
10796
10797         * support/regression/tests/bug-460000.c (testShiftByParam): Added test case.
10798
10799         * support/regression/tests/bug-460010.c: Added test case.
10800
10801         * support/regression/Makefile (test-host): Removed a silly 'clean' target when testing against gcc.
10802
10803 2001-09-09  Bernhard Held <bernhard AT bernhardheld.de>
10804
10805         * support/regression/Makefile: inter-port-clean adjusted for mcs51
10806
10807         * support/regression/testfwk.c: removed workaround for bug #436344
10808
10809         * support/regression/tests/bp.c: use less memory with mcs51
10810
10811         * support/regression/tests/bug-441448.c: use less memory
10812
10813         * support/regression/tests/ports/mcs51/spec.mk: cleanup, use --stack-after-data
10814
10815         * support/regression/collate-results.py: typo
10816
10817 2001-09-08  Michael Hope  <michaelh AT juju.net.nz>
10818
10819         * support/regression/tests/fetchoverlap.c: Added new test case.
10820
10821         * support/regression/tests/bp.c: Added new test case.
10822
10823         * support/regression/tests/bug-448984.c: Added new test case.
10824
10825         * support/regression/tests/pow2shifts.c: Added new test case.
10826
10827         * src/z80/gen.c: Turned off the noise it normally generates for the release.
10828         (genlshTwo): Fixed right shift for count > 8.
10829
10830         * src/z80/ralloc.c: Disabled most of the ACC packing rules as they weren't getting hit and weren't at all safe.
10831
10832 2001-09-08    <johan AT FRIJA>
10833
10834         * src/SDCCicode.c (geniCodeCall): a CPOINTER can be used as a function
10835
10836 2001-09-07    <johan AT FRIJA>
10837
10838         * src/SDCCicode.c (newiCodeCondition): fixed bug #456235 (1.77)
10839
10840         * src/SDCCglue.c (emitRegularMap): only delete a symbol when it is a symbol
10841
10842 2001-09-06    <johan AT FRIJA>
10843
10844         * src/SDCC.y: this could be a fix for bug #458744 (1.37)
10845         * bernhard noted me at this: "() equals to (void)" (1.38)
10846
10847 2001-09-05    <johan AT FRIJA>
10848
10849         * src/SDCCglue.c (emitRegularMap): a fix for bug #458099/2
10850
10851 2001-09-04    <johan AT FRIJA>
10852
10853         * src/SDCCsymt.c (checkSClass): a fix for bug #458099/1
10854
10855
10856 2001-09-04  Paul Stoffregen  <paul AT pjrc.com>
10857
10858         * pragma noinduction broke memcpy on mcs51 large model.  Moved it inside z80 optimization
10859
10860 2001-09-03  Michael Hope  <michaelh AT juju.net.nz>
10861
10862         * link/z80/aslink.h: Fixed path for PATH_MAX
10863
10864 2001-09-02  Michael Hope  <michaelh AT juju.net.nz>
10865
10866         * src/z80/gen.c (fetchLitPair): Changed so that it properly caches direct space references.
10867
10868         * support/regression/tests/addsub.c: Added cases to cover all the +, - combinations.
10869
10870         * support/regression/tests/uminus.c: Added a test for the unary minus operator.
10871
10872         * 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.
10873
10874 2001-09-01  Michael Hope  <michaelh AT juju.net.nz>
10875
10876         * src/z80/gen.c: Fixed up generator to pass the regresion tests, specifically fixing loads for longs, genCmp, and turned on the map file.
10877         (genCmp): Fixed up genCmp for the GB with longs.
10878
10879         * device/lib/gbz80/Makefile: Fixed up all the libraries to pass the regression tests.
10880
10881         * support/regression/ports/host/spec.mk: Updated to compile with the new type specifiers.
10882
10883         * device/lib/Makefile.in (Z80SOURCES): Removed old _mululong, _mulslong, and unneeded _mulint.
10884
10885         * device/lib/_mullong.c (_mulslong): Changed to actually return a value :)
10886
10887 2001-08-30  Paul Stoffregen  <paul AT pjrc.com>
10888
10889         * added peepholes 223 to 231 to mcs51 port.  These improve code when using large model.
10890
10891 2001-08-30  Michael Hope  <michaelh AT juju.net.nz>
10892
10893         * 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.
10894
10895         * src/z80/gen.c (genPlus): Changed bad long add for gb to a fall through.
10896
10897 2001-08-29  Michael Hope  <michaelh AT juju.net.nz>
10898
10899         * link/z80/aslink.h: Fixed long file name support.  Is now based off PATH_MAX instead of a constant.
10900
10901         * src/z80/gen.c: Fixed add and sub for the case where left or right are in static space.
10902
10903 2001-08-30 Bernhard Held   <bernhard AT bernhardheld.de>
10904
10905   * sim/ucsim/configure:    little improvement of Cygwin-detection
10906   * sim/ucsim/configure.in: little improvement of Cygwin-detection
10907   * sim/ucsim/cmd.src/newcmdcl.h: include <sys/types.h> to define fd_set automated build
10908   * support/regression/tests/bug-221100.c: small changes for mcs51
10909   * support/regression/tests/bug-221168.c: small changes for mcs51
10910   * support/regression/tests/bug-227710.c: small changes for mcs51
10911   * support/regression/tests/staticinit.c: small changes for mcs51
10912   * as/mcs51/aslink.h: accept everything as symbol name in rel-files, bug fix ID 452601
10913   * as/mcs51/lklex.c:  accept everything as symbol name in rel-files, bug fix ID 452601
10914   * as/mcs51/lksym.c:  accept everything as symbol name in rel-files, bug fix ID 452601
10915
10916 $Revision$